configure revision 688b3aec
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xclock 1.0.8.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xclock/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: https://gitlab.freedesktop.org/xorg/app/xclock/issues
271$0: about your system, including any error possibly output
272$0: before this message. Then install a modern shell, or
273$0: manually run the script under such a shell if you do
274$0: have one."
275  fi
276  exit 1
277fi
278fi
279fi
280SHELL=${CONFIG_SHELL-/bin/sh}
281export SHELL
282# Unset more variables known to interfere with behavior of common tools.
283CLICOLOR_FORCE= GREP_OPTIONS=
284unset CLICOLOR_FORCE GREP_OPTIONS
285
286## --------------------- ##
287## M4sh Shell Functions. ##
288## --------------------- ##
289# as_fn_unset VAR
290# ---------------
291# Portably unset VAR.
292as_fn_unset ()
293{
294  { eval $1=; unset $1;}
295}
296as_unset=as_fn_unset
297
298# as_fn_set_status STATUS
299# -----------------------
300# Set $? to STATUS, without forking.
301as_fn_set_status ()
302{
303  return $1
304} # as_fn_set_status
305
306# as_fn_exit STATUS
307# -----------------
308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309as_fn_exit ()
310{
311  set +e
312  as_fn_set_status $1
313  exit $1
314} # as_fn_exit
315
316# as_fn_mkdir_p
317# -------------
318# Create "$as_dir" as a directory, including parents if necessary.
319as_fn_mkdir_p ()
320{
321
322  case $as_dir in #(
323  -*) as_dir=./$as_dir;;
324  esac
325  test -d "$as_dir" || eval $as_mkdir_p || {
326    as_dirs=
327    while :; do
328      case $as_dir in #(
329      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330      *) as_qdir=$as_dir;;
331      esac
332      as_dirs="'$as_qdir' $as_dirs"
333      as_dir=`$as_dirname -- "$as_dir" ||
334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335	 X"$as_dir" : 'X\(//\)[^/]' \| \
336	 X"$as_dir" : 'X\(//\)$' \| \
337	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338$as_echo X"$as_dir" |
339    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)[^/].*/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\).*/{
352	    s//\1/
353	    q
354	  }
355	  s/.*/./; q'`
356      test -d "$as_dir" && break
357    done
358    test -z "$as_dirs" || eval "mkdir $as_dirs"
359  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362} # as_fn_mkdir_p
363
364# as_fn_executable_p FILE
365# -----------------------
366# Test if FILE is an executable regular file.
367as_fn_executable_p ()
368{
369  test -f "$1" && test -x "$1"
370} # as_fn_executable_p
371# as_fn_append VAR VALUE
372# ----------------------
373# Append the text in VALUE to the end of the definition contained in VAR. Take
374# advantage of any shell optimizations that allow amortized linear growth over
375# repeated appends, instead of the typical quadratic growth present in naive
376# implementations.
377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378  eval 'as_fn_append ()
379  {
380    eval $1+=\$2
381  }'
382else
383  as_fn_append ()
384  {
385    eval $1=\$$1\$2
386  }
387fi # as_fn_append
388
389# as_fn_arith ARG...
390# ------------------
391# Perform arithmetic evaluation on the ARGs, and store the result in the
392# global $as_val. Take advantage of shells that can avoid forks. The arguments
393# must be portable across $(()) and expr.
394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395  eval 'as_fn_arith ()
396  {
397    as_val=$(( $* ))
398  }'
399else
400  as_fn_arith ()
401  {
402    as_val=`expr "$@" || test $? -eq 1`
403  }
404fi # as_fn_arith
405
406
407# as_fn_error STATUS ERROR [LINENO LOG_FD]
408# ----------------------------------------
409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411# script with STATUS, using 1 if that was 0.
412as_fn_error ()
413{
414  as_status=$1; test $as_status -eq 0 && as_status=1
415  if test "$4"; then
416    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418  fi
419  $as_echo "$as_me: error: $2" >&2
420  as_fn_exit $as_status
421} # as_fn_error
422
423if expr a : '\(a\)' >/dev/null 2>&1 &&
424   test "X`expr 00001 : '.*\(...\)'`" = X001; then
425  as_expr=expr
426else
427  as_expr=false
428fi
429
430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431  as_basename=basename
432else
433  as_basename=false
434fi
435
436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437  as_dirname=dirname
438else
439  as_dirname=false
440fi
441
442as_me=`$as_basename -- "$0" ||
443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444	 X"$0" : 'X\(//\)$' \| \
445	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446$as_echo X/"$0" |
447    sed '/^.*\/\([^/][^/]*\)\/*$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\/\)$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\).*/{
456	    s//\1/
457	    q
458	  }
459	  s/.*/./; q'`
460
461# Avoid depending upon Character Ranges.
462as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465as_cr_digits='0123456789'
466as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469  as_lineno_1=$LINENO as_lineno_1a=$LINENO
470  as_lineno_2=$LINENO as_lineno_2a=$LINENO
471  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
474  sed -n '
475    p
476    /[$]LINENO/=
477  ' <$as_myself |
478    sed '
479      s/[$]LINENO.*/&-/
480      t lineno
481      b
482      :lineno
483      N
484      :loop
485      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486      t loop
487      s/-\n.*//
488    ' >$as_me.lineno &&
489  chmod +x "$as_me.lineno" ||
490    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493  # already done that, so ensure we don't try to do so again and fall
494  # in an infinite loop.  This has already happened in practice.
495  _as_can_reexec=no; export _as_can_reexec
496  # Don't try to exec as it changes $[0], causing all sort of problems
497  # (the dirname of $[0] is not the place where we might find the
498  # original and so on.  Autoconf is especially sensitive to this).
499  . "./$as_me.lineno"
500  # Exit status is that of the last command.
501  exit
502}
503
504ECHO_C= ECHO_N= ECHO_T=
505case `echo -n x` in #(((((
506-n*)
507  case `echo 'xy\c'` in
508  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
509  xy)  ECHO_C='\c';;
510  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
511       ECHO_T='	';;
512  esac;;
513*)
514  ECHO_N='-n';;
515esac
516
517rm -f conf$$ conf$$.exe conf$$.file
518if test -d conf$$.dir; then
519  rm -f conf$$.dir/conf$$.file
520else
521  rm -f conf$$.dir
522  mkdir conf$$.dir 2>/dev/null
523fi
524if (echo >conf$$.file) 2>/dev/null; then
525  if ln -s conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s='ln -s'
527    # ... but there are two gotchas:
528    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530    # In both cases, we have to default to `cp -pR'.
531    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532      as_ln_s='cp -pR'
533  elif ln conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s=ln
535  else
536    as_ln_s='cp -pR'
537  fi
538else
539  as_ln_s='cp -pR'
540fi
541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542rmdir conf$$.dir 2>/dev/null
543
544if mkdir -p . 2>/dev/null; then
545  as_mkdir_p='mkdir -p "$as_dir"'
546else
547  test -d ./-p && rmdir ./-p
548  as_mkdir_p=false
549fi
550
551as_test_x='test -x'
552as_executable_p=as_fn_executable_p
553
554# Sed expression to map a string onto a valid CPP name.
555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557# Sed expression to map a string onto a valid variable name.
558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561test -n "$DJDIR" || exec 7<&0 </dev/null
562exec 6>&1
563
564# Name of the host.
565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566# so uname gets run too.
567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569#
570# Initializations.
571#
572ac_default_prefix=/usr/local
573ac_clean_files=
574ac_config_libobj_dir=.
575LIBOBJS=
576cross_compiling=no
577subdirs=
578MFLAGS=
579MAKEFLAGS=
580
581# Identity of this package.
582PACKAGE_NAME='xclock'
583PACKAGE_TARNAME='xclock'
584PACKAGE_VERSION='1.0.8'
585PACKAGE_STRING='xclock 1.0.8'
586PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xclock/issues'
587PACKAGE_URL=''
588
589ac_unique_file="Makefile.am"
590# Factoring default headers for most tests.
591ac_includes_default="\
592#include <stdio.h>
593#ifdef HAVE_SYS_TYPES_H
594# include <sys/types.h>
595#endif
596#ifdef HAVE_SYS_STAT_H
597# include <sys/stat.h>
598#endif
599#ifdef STDC_HEADERS
600# include <stdlib.h>
601# include <stddef.h>
602#else
603# ifdef HAVE_STDLIB_H
604#  include <stdlib.h>
605# endif
606#endif
607#ifdef HAVE_STRING_H
608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609#  include <memory.h>
610# endif
611# include <string.h>
612#endif
613#ifdef HAVE_STRINGS_H
614# include <strings.h>
615#endif
616#ifdef HAVE_INTTYPES_H
617# include <inttypes.h>
618#endif
619#ifdef HAVE_STDINT_H
620# include <stdint.h>
621#endif
622#ifdef HAVE_UNISTD_H
623# include <unistd.h>
624#endif"
625
626ac_subst_vars='am__EXEEXT_FALSE
627am__EXEEXT_TRUE
628LTLIBOBJS
629LIBOBJS
630appdefaultdir
631APPDEFS_LIBS
632APPDEFS_CFLAGS
633XKB_LIBS
634XKB_CFLAGS
635XFT_LIBS
636XFT_CFLAGS
637XCLOCK_LIBS
638XCLOCK_CFLAGS
639LTLIBICONV
640LIBICONV
641MAN_SUBSTS
642XORG_MAN_PAGE
643ADMIN_MAN_DIR
644DRIVER_MAN_DIR
645MISC_MAN_DIR
646FILE_MAN_DIR
647LIB_MAN_DIR
648APP_MAN_DIR
649ADMIN_MAN_SUFFIX
650DRIVER_MAN_SUFFIX
651MISC_MAN_SUFFIX
652FILE_MAN_SUFFIX
653LIB_MAN_SUFFIX
654APP_MAN_SUFFIX
655SED
656host_os
657host_vendor
658host_cpu
659host
660build_os
661build_vendor
662build_cpu
663build
664INSTALL_CMD
665PKG_CONFIG_LIBDIR
666PKG_CONFIG_PATH
667PKG_CONFIG
668CHANGELOG_CMD
669STRICT_CFLAGS
670CWARNFLAGS
671BASE_CFLAGS
672EGREP
673GREP
674CPP
675am__fastdepCC_FALSE
676am__fastdepCC_TRUE
677CCDEPMODE
678am__nodep
679AMDEPBACKSLASH
680AMDEP_FALSE
681AMDEP_TRUE
682am__quote
683am__include
684DEPDIR
685OBJEXT
686EXEEXT
687ac_ct_CC
688CPPFLAGS
689LDFLAGS
690CFLAGS
691CC
692AM_BACKSLASH
693AM_DEFAULT_VERBOSITY
694AM_DEFAULT_V
695AM_V
696am__untar
697am__tar
698AMTAR
699am__leading_dot
700SET_MAKE
701AWK
702mkdir_p
703MKDIR_P
704INSTALL_STRIP_PROGRAM
705STRIP
706install_sh
707MAKEINFO
708AUTOHEADER
709AUTOMAKE
710AUTOCONF
711ACLOCAL
712VERSION
713PACKAGE
714CYGPATH_W
715am__isrc
716INSTALL_DATA
717INSTALL_SCRIPT
718INSTALL_PROGRAM
719target_alias
720host_alias
721build_alias
722LIBS
723ECHO_T
724ECHO_N
725ECHO_C
726DEFS
727mandir
728localedir
729libdir
730psdir
731pdfdir
732dvidir
733htmldir
734infodir
735docdir
736oldincludedir
737includedir
738localstatedir
739sharedstatedir
740sysconfdir
741datadir
742datarootdir
743libexecdir
744sbindir
745bindir
746program_transform_name
747prefix
748exec_prefix
749PACKAGE_URL
750PACKAGE_BUGREPORT
751PACKAGE_STRING
752PACKAGE_VERSION
753PACKAGE_TARNAME
754PACKAGE_NAME
755PATH_SEPARATOR
756SHELL'
757ac_subst_files=''
758ac_user_opts='
759enable_option_checking
760enable_silent_rules
761enable_dependency_tracking
762enable_selective_werror
763enable_strict_compilation
764with_gnu_ld
765enable_rpath
766with_libiconv_prefix
767with_xft
768with_xkb
769with_appdefaultdir
770'
771      ac_precious_vars='build_alias
772host_alias
773target_alias
774CC
775CFLAGS
776LDFLAGS
777LIBS
778CPPFLAGS
779CPP
780PKG_CONFIG
781PKG_CONFIG_PATH
782PKG_CONFIG_LIBDIR
783XCLOCK_CFLAGS
784XCLOCK_LIBS
785XFT_CFLAGS
786XFT_LIBS
787XKB_CFLAGS
788XKB_LIBS
789APPDEFS_CFLAGS
790APPDEFS_LIBS'
791
792
793# Initialize some variables set by options.
794ac_init_help=
795ac_init_version=false
796ac_unrecognized_opts=
797ac_unrecognized_sep=
798# The variables have the same names as the options, with
799# dashes changed to underlines.
800cache_file=/dev/null
801exec_prefix=NONE
802no_create=
803no_recursion=
804prefix=NONE
805program_prefix=NONE
806program_suffix=NONE
807program_transform_name=s,x,x,
808silent=
809site=
810srcdir=
811verbose=
812x_includes=NONE
813x_libraries=NONE
814
815# Installation directory options.
816# These are left unexpanded so users can "make install exec_prefix=/foo"
817# and all the variables that are supposed to be based on exec_prefix
818# by default will actually change.
819# Use braces instead of parens because sh, perl, etc. also accept them.
820# (The list follows the same order as the GNU Coding Standards.)
821bindir='${exec_prefix}/bin'
822sbindir='${exec_prefix}/sbin'
823libexecdir='${exec_prefix}/libexec'
824datarootdir='${prefix}/share'
825datadir='${datarootdir}'
826sysconfdir='${prefix}/etc'
827sharedstatedir='${prefix}/com'
828localstatedir='${prefix}/var'
829includedir='${prefix}/include'
830oldincludedir='/usr/include'
831docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832infodir='${datarootdir}/info'
833htmldir='${docdir}'
834dvidir='${docdir}'
835pdfdir='${docdir}'
836psdir='${docdir}'
837libdir='${exec_prefix}/lib'
838localedir='${datarootdir}/locale'
839mandir='${datarootdir}/man'
840
841ac_prev=
842ac_dashdash=
843for ac_option
844do
845  # If the previous option needs an argument, assign it.
846  if test -n "$ac_prev"; then
847    eval $ac_prev=\$ac_option
848    ac_prev=
849    continue
850  fi
851
852  case $ac_option in
853  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854  *=)   ac_optarg= ;;
855  *)    ac_optarg=yes ;;
856  esac
857
858  # Accept the important Cygnus configure options, so we can diagnose typos.
859
860  case $ac_dashdash$ac_option in
861  --)
862    ac_dashdash=yes ;;
863
864  -bindir | --bindir | --bindi | --bind | --bin | --bi)
865    ac_prev=bindir ;;
866  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867    bindir=$ac_optarg ;;
868
869  -build | --build | --buil | --bui | --bu)
870    ac_prev=build_alias ;;
871  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872    build_alias=$ac_optarg ;;
873
874  -cache-file | --cache-file | --cache-fil | --cache-fi \
875  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876    ac_prev=cache_file ;;
877  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879    cache_file=$ac_optarg ;;
880
881  --config-cache | -C)
882    cache_file=config.cache ;;
883
884  -datadir | --datadir | --datadi | --datad)
885    ac_prev=datadir ;;
886  -datadir=* | --datadir=* | --datadi=* | --datad=*)
887    datadir=$ac_optarg ;;
888
889  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890  | --dataroo | --dataro | --datar)
891    ac_prev=datarootdir ;;
892  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894    datarootdir=$ac_optarg ;;
895
896  -disable-* | --disable-*)
897    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898    # Reject names that are not valid shell variable names.
899    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900      as_fn_error $? "invalid feature name: $ac_useropt"
901    ac_useropt_orig=$ac_useropt
902    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903    case $ac_user_opts in
904      *"
905"enable_$ac_useropt"
906"*) ;;
907      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908	 ac_unrecognized_sep=', ';;
909    esac
910    eval enable_$ac_useropt=no ;;
911
912  -docdir | --docdir | --docdi | --doc | --do)
913    ac_prev=docdir ;;
914  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915    docdir=$ac_optarg ;;
916
917  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918    ac_prev=dvidir ;;
919  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920    dvidir=$ac_optarg ;;
921
922  -enable-* | --enable-*)
923    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924    # Reject names that are not valid shell variable names.
925    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926      as_fn_error $? "invalid feature name: $ac_useropt"
927    ac_useropt_orig=$ac_useropt
928    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929    case $ac_user_opts in
930      *"
931"enable_$ac_useropt"
932"*) ;;
933      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934	 ac_unrecognized_sep=', ';;
935    esac
936    eval enable_$ac_useropt=\$ac_optarg ;;
937
938  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940  | --exec | --exe | --ex)
941    ac_prev=exec_prefix ;;
942  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944  | --exec=* | --exe=* | --ex=*)
945    exec_prefix=$ac_optarg ;;
946
947  -gas | --gas | --ga | --g)
948    # Obsolete; use --with-gas.
949    with_gas=yes ;;
950
951  -help | --help | --hel | --he | -h)
952    ac_init_help=long ;;
953  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954    ac_init_help=recursive ;;
955  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956    ac_init_help=short ;;
957
958  -host | --host | --hos | --ho)
959    ac_prev=host_alias ;;
960  -host=* | --host=* | --hos=* | --ho=*)
961    host_alias=$ac_optarg ;;
962
963  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964    ac_prev=htmldir ;;
965  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966  | --ht=*)
967    htmldir=$ac_optarg ;;
968
969  -includedir | --includedir | --includedi | --included | --include \
970  | --includ | --inclu | --incl | --inc)
971    ac_prev=includedir ;;
972  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973  | --includ=* | --inclu=* | --incl=* | --inc=*)
974    includedir=$ac_optarg ;;
975
976  -infodir | --infodir | --infodi | --infod | --info | --inf)
977    ac_prev=infodir ;;
978  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979    infodir=$ac_optarg ;;
980
981  -libdir | --libdir | --libdi | --libd)
982    ac_prev=libdir ;;
983  -libdir=* | --libdir=* | --libdi=* | --libd=*)
984    libdir=$ac_optarg ;;
985
986  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987  | --libexe | --libex | --libe)
988    ac_prev=libexecdir ;;
989  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990  | --libexe=* | --libex=* | --libe=*)
991    libexecdir=$ac_optarg ;;
992
993  -localedir | --localedir | --localedi | --localed | --locale)
994    ac_prev=localedir ;;
995  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996    localedir=$ac_optarg ;;
997
998  -localstatedir | --localstatedir | --localstatedi | --localstated \
999  | --localstate | --localstat | --localsta | --localst | --locals)
1000    ac_prev=localstatedir ;;
1001  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1003    localstatedir=$ac_optarg ;;
1004
1005  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006    ac_prev=mandir ;;
1007  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008    mandir=$ac_optarg ;;
1009
1010  -nfp | --nfp | --nf)
1011    # Obsolete; use --without-fp.
1012    with_fp=no ;;
1013
1014  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015  | --no-cr | --no-c | -n)
1016    no_create=yes ;;
1017
1018  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020    no_recursion=yes ;;
1021
1022  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024  | --oldin | --oldi | --old | --ol | --o)
1025    ac_prev=oldincludedir ;;
1026  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029    oldincludedir=$ac_optarg ;;
1030
1031  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032    ac_prev=prefix ;;
1033  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034    prefix=$ac_optarg ;;
1035
1036  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037  | --program-pre | --program-pr | --program-p)
1038    ac_prev=program_prefix ;;
1039  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041    program_prefix=$ac_optarg ;;
1042
1043  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044  | --program-suf | --program-su | --program-s)
1045    ac_prev=program_suffix ;;
1046  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048    program_suffix=$ac_optarg ;;
1049
1050  -program-transform-name | --program-transform-name \
1051  | --program-transform-nam | --program-transform-na \
1052  | --program-transform-n | --program-transform- \
1053  | --program-transform | --program-transfor \
1054  | --program-transfo | --program-transf \
1055  | --program-trans | --program-tran \
1056  | --progr-tra | --program-tr | --program-t)
1057    ac_prev=program_transform_name ;;
1058  -program-transform-name=* | --program-transform-name=* \
1059  | --program-transform-nam=* | --program-transform-na=* \
1060  | --program-transform-n=* | --program-transform-=* \
1061  | --program-transform=* | --program-transfor=* \
1062  | --program-transfo=* | --program-transf=* \
1063  | --program-trans=* | --program-tran=* \
1064  | --progr-tra=* | --program-tr=* | --program-t=*)
1065    program_transform_name=$ac_optarg ;;
1066
1067  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068    ac_prev=pdfdir ;;
1069  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070    pdfdir=$ac_optarg ;;
1071
1072  -psdir | --psdir | --psdi | --psd | --ps)
1073    ac_prev=psdir ;;
1074  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075    psdir=$ac_optarg ;;
1076
1077  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078  | -silent | --silent | --silen | --sile | --sil)
1079    silent=yes ;;
1080
1081  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1082    ac_prev=sbindir ;;
1083  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1084  | --sbi=* | --sb=*)
1085    sbindir=$ac_optarg ;;
1086
1087  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1088  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1089  | --sharedst | --shareds | --shared | --share | --shar \
1090  | --sha | --sh)
1091    ac_prev=sharedstatedir ;;
1092  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1093  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1094  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1095  | --sha=* | --sh=*)
1096    sharedstatedir=$ac_optarg ;;
1097
1098  -site | --site | --sit)
1099    ac_prev=site ;;
1100  -site=* | --site=* | --sit=*)
1101    site=$ac_optarg ;;
1102
1103  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1104    ac_prev=srcdir ;;
1105  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1106    srcdir=$ac_optarg ;;
1107
1108  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1109  | --syscon | --sysco | --sysc | --sys | --sy)
1110    ac_prev=sysconfdir ;;
1111  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1112  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1113    sysconfdir=$ac_optarg ;;
1114
1115  -target | --target | --targe | --targ | --tar | --ta | --t)
1116    ac_prev=target_alias ;;
1117  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1118    target_alias=$ac_optarg ;;
1119
1120  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1121    verbose=yes ;;
1122
1123  -version | --version | --versio | --versi | --vers | -V)
1124    ac_init_version=: ;;
1125
1126  -with-* | --with-*)
1127    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1128    # Reject names that are not valid shell variable names.
1129    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130      as_fn_error $? "invalid package name: $ac_useropt"
1131    ac_useropt_orig=$ac_useropt
1132    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133    case $ac_user_opts in
1134      *"
1135"with_$ac_useropt"
1136"*) ;;
1137      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1138	 ac_unrecognized_sep=', ';;
1139    esac
1140    eval with_$ac_useropt=\$ac_optarg ;;
1141
1142  -without-* | --without-*)
1143    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144    # Reject names that are not valid shell variable names.
1145    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146      as_fn_error $? "invalid package name: $ac_useropt"
1147    ac_useropt_orig=$ac_useropt
1148    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149    case $ac_user_opts in
1150      *"
1151"with_$ac_useropt"
1152"*) ;;
1153      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1154	 ac_unrecognized_sep=', ';;
1155    esac
1156    eval with_$ac_useropt=no ;;
1157
1158  --x)
1159    # Obsolete; use --with-x.
1160    with_x=yes ;;
1161
1162  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163  | --x-incl | --x-inc | --x-in | --x-i)
1164    ac_prev=x_includes ;;
1165  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167    x_includes=$ac_optarg ;;
1168
1169  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171    ac_prev=x_libraries ;;
1172  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174    x_libraries=$ac_optarg ;;
1175
1176  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1177Try \`$0 --help' for more information"
1178    ;;
1179
1180  *=*)
1181    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182    # Reject names that are not valid shell variable names.
1183    case $ac_envvar in #(
1184      '' | [0-9]* | *[!_$as_cr_alnum]* )
1185      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1186    esac
1187    eval $ac_envvar=\$ac_optarg
1188    export $ac_envvar ;;
1189
1190  *)
1191    # FIXME: should be removed in autoconf 3.0.
1192    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1193    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1195    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1196    ;;
1197
1198  esac
1199done
1200
1201if test -n "$ac_prev"; then
1202  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1203  as_fn_error $? "missing argument to $ac_option"
1204fi
1205
1206if test -n "$ac_unrecognized_opts"; then
1207  case $enable_option_checking in
1208    no) ;;
1209    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1210    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1211  esac
1212fi
1213
1214# Check all directory arguments for consistency.
1215for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216		datadir sysconfdir sharedstatedir localstatedir includedir \
1217		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218		libdir localedir mandir
1219do
1220  eval ac_val=\$$ac_var
1221  # Remove trailing slashes.
1222  case $ac_val in
1223    */ )
1224      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1225      eval $ac_var=\$ac_val;;
1226  esac
1227  # Be sure to have absolute directory names.
1228  case $ac_val in
1229    [\\/$]* | ?:[\\/]* )  continue;;
1230    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1231  esac
1232  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1233done
1234
1235# There might be people who depend on the old broken behavior: `$host'
1236# used to hold the argument of --host etc.
1237# FIXME: To remove some day.
1238build=$build_alias
1239host=$host_alias
1240target=$target_alias
1241
1242# FIXME: To remove some day.
1243if test "x$host_alias" != x; then
1244  if test "x$build_alias" = x; then
1245    cross_compiling=maybe
1246  elif test "x$build_alias" != "x$host_alias"; then
1247    cross_compiling=yes
1248  fi
1249fi
1250
1251ac_tool_prefix=
1252test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253
1254test "$silent" = yes && exec 6>/dev/null
1255
1256
1257ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258ac_ls_di=`ls -di .` &&
1259ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1260  as_fn_error $? "working directory cannot be determined"
1261test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262  as_fn_error $? "pwd does not report name of working directory"
1263
1264
1265# Find the source files, if location was not specified.
1266if test -z "$srcdir"; then
1267  ac_srcdir_defaulted=yes
1268  # Try the directory containing this script, then the parent directory.
1269  ac_confdir=`$as_dirname -- "$as_myself" ||
1270$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271	 X"$as_myself" : 'X\(//\)[^/]' \| \
1272	 X"$as_myself" : 'X\(//\)$' \| \
1273	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1274$as_echo X"$as_myself" |
1275    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276	    s//\1/
1277	    q
1278	  }
1279	  /^X\(\/\/\)[^/].*/{
1280	    s//\1/
1281	    q
1282	  }
1283	  /^X\(\/\/\)$/{
1284	    s//\1/
1285	    q
1286	  }
1287	  /^X\(\/\).*/{
1288	    s//\1/
1289	    q
1290	  }
1291	  s/.*/./; q'`
1292  srcdir=$ac_confdir
1293  if test ! -r "$srcdir/$ac_unique_file"; then
1294    srcdir=..
1295  fi
1296else
1297  ac_srcdir_defaulted=no
1298fi
1299if test ! -r "$srcdir/$ac_unique_file"; then
1300  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1302fi
1303ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304ac_abs_confdir=`(
1305	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1306	pwd)`
1307# When building in place, set srcdir=.
1308if test "$ac_abs_confdir" = "$ac_pwd"; then
1309  srcdir=.
1310fi
1311# Remove unnecessary trailing slashes from srcdir.
1312# Double slashes in file names in object file debugging info
1313# mess up M-x gdb in Emacs.
1314case $srcdir in
1315*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316esac
1317for ac_var in $ac_precious_vars; do
1318  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319  eval ac_env_${ac_var}_value=\$${ac_var}
1320  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322done
1323
1324#
1325# Report the --help message.
1326#
1327if test "$ac_init_help" = "long"; then
1328  # Omit some internal or obsolete options to make the list less imposing.
1329  # This message is too long to be a string in the A/UX 3.1 sh.
1330  cat <<_ACEOF
1331\`configure' configures xclock 1.0.8 to adapt to many kinds of systems.
1332
1333Usage: $0 [OPTION]... [VAR=VALUE]...
1334
1335To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336VAR=VALUE.  See below for descriptions of some of the useful variables.
1337
1338Defaults for the options are specified in brackets.
1339
1340Configuration:
1341  -h, --help              display this help and exit
1342      --help=short        display options specific to this package
1343      --help=recursive    display the short help of all the included packages
1344  -V, --version           display version information and exit
1345  -q, --quiet, --silent   do not print \`checking ...' messages
1346      --cache-file=FILE   cache test results in FILE [disabled]
1347  -C, --config-cache      alias for \`--cache-file=config.cache'
1348  -n, --no-create         do not create output files
1349      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1350
1351Installation directories:
1352  --prefix=PREFIX         install architecture-independent files in PREFIX
1353                          [$ac_default_prefix]
1354  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1355                          [PREFIX]
1356
1357By default, \`make install' will install all the files in
1358\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1359an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360for instance \`--prefix=\$HOME'.
1361
1362For better control, use the options below.
1363
1364Fine tuning of the installation directories:
1365  --bindir=DIR            user executables [EPREFIX/bin]
1366  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1367  --libexecdir=DIR        program executables [EPREFIX/libexec]
1368  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1369  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1370  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1371  --libdir=DIR            object code libraries [EPREFIX/lib]
1372  --includedir=DIR        C header files [PREFIX/include]
1373  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1374  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1375  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1376  --infodir=DIR           info documentation [DATAROOTDIR/info]
1377  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1378  --mandir=DIR            man documentation [DATAROOTDIR/man]
1379  --docdir=DIR            documentation root [DATAROOTDIR/doc/xclock]
1380  --htmldir=DIR           html documentation [DOCDIR]
1381  --dvidir=DIR            dvi documentation [DOCDIR]
1382  --pdfdir=DIR            pdf documentation [DOCDIR]
1383  --psdir=DIR             ps documentation [DOCDIR]
1384_ACEOF
1385
1386  cat <<\_ACEOF
1387
1388Program names:
1389  --program-prefix=PREFIX            prepend PREFIX to installed program names
1390  --program-suffix=SUFFIX            append SUFFIX to installed program names
1391  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1392
1393System types:
1394  --build=BUILD     configure for building on BUILD [guessed]
1395  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1396_ACEOF
1397fi
1398
1399if test -n "$ac_init_help"; then
1400  case $ac_init_help in
1401     short | recursive ) echo "Configuration of xclock 1.0.8:";;
1402   esac
1403  cat <<\_ACEOF
1404
1405Optional Features:
1406  --disable-option-checking  ignore unrecognized --enable/--with options
1407  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1408  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1409  --enable-silent-rules   less verbose build output (undo: "make V=1")
1410  --disable-silent-rules  verbose build output (undo: "make V=0")
1411  --enable-dependency-tracking
1412                          do not reject slow dependency extractors
1413  --disable-dependency-tracking
1414                          speeds up one-time build
1415  --disable-selective-werror
1416                          Turn off selective compiler errors. (default:
1417                          enabled)
1418  --enable-strict-compilation
1419                          Enable all warnings from compiler and make them
1420                          errors (default: disabled)
1421  --disable-rpath         do not hardcode runtime library paths
1422
1423Optional Packages:
1424  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1425  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1426  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1427  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1428  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1429  --with-xft              Use Xft2 and Xrender for rendering (Default is YES)
1430  --with-xkb              Use XKB to sound bells (Default is YES)
1431  --with-appdefaultdir=<pathname>
1432                          specify directory for app-defaults files (default is
1433                          autodetected)
1434
1435Some influential environment variables:
1436  CC          C compiler command
1437  CFLAGS      C compiler flags
1438  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1439              nonstandard directory <lib dir>
1440  LIBS        libraries to pass to the linker, e.g. -l<library>
1441  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1442              you have headers in a nonstandard directory <include dir>
1443  CPP         C preprocessor
1444  PKG_CONFIG  path to pkg-config utility
1445  PKG_CONFIG_PATH
1446              directories to add to pkg-config's search path
1447  PKG_CONFIG_LIBDIR
1448              path overriding pkg-config's built-in search path
1449  XCLOCK_CFLAGS
1450              C compiler flags for XCLOCK, overriding pkg-config
1451  XCLOCK_LIBS linker flags for XCLOCK, overriding pkg-config
1452  XFT_CFLAGS  C compiler flags for XFT, overriding pkg-config
1453  XFT_LIBS    linker flags for XFT, overriding pkg-config
1454  XKB_CFLAGS  C compiler flags for XKB, overriding pkg-config
1455  XKB_LIBS    linker flags for XKB, overriding pkg-config
1456  APPDEFS_CFLAGS
1457              C compiler flags for APPDEFS, overriding pkg-config
1458  APPDEFS_LIBS
1459              linker flags for APPDEFS, overriding pkg-config
1460
1461Use these variables to override the choices made by `configure' or to help
1462it to find libraries and programs with nonstandard names/locations.
1463
1464Report bugs to <https://gitlab.freedesktop.org/xorg/app/xclock/issues>.
1465_ACEOF
1466ac_status=$?
1467fi
1468
1469if test "$ac_init_help" = "recursive"; then
1470  # If there are subdirs, report their specific --help.
1471  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1472    test -d "$ac_dir" ||
1473      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1474      continue
1475    ac_builddir=.
1476
1477case "$ac_dir" in
1478.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479*)
1480  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1481  # A ".." for each directory in $ac_dir_suffix.
1482  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1483  case $ac_top_builddir_sub in
1484  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1486  esac ;;
1487esac
1488ac_abs_top_builddir=$ac_pwd
1489ac_abs_builddir=$ac_pwd$ac_dir_suffix
1490# for backward compatibility:
1491ac_top_builddir=$ac_top_build_prefix
1492
1493case $srcdir in
1494  .)  # We are building in place.
1495    ac_srcdir=.
1496    ac_top_srcdir=$ac_top_builddir_sub
1497    ac_abs_top_srcdir=$ac_pwd ;;
1498  [\\/]* | ?:[\\/]* )  # Absolute name.
1499    ac_srcdir=$srcdir$ac_dir_suffix;
1500    ac_top_srcdir=$srcdir
1501    ac_abs_top_srcdir=$srcdir ;;
1502  *) # Relative name.
1503    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1504    ac_top_srcdir=$ac_top_build_prefix$srcdir
1505    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1506esac
1507ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1508
1509    cd "$ac_dir" || { ac_status=$?; continue; }
1510    # Check for guested configure.
1511    if test -f "$ac_srcdir/configure.gnu"; then
1512      echo &&
1513      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1514    elif test -f "$ac_srcdir/configure"; then
1515      echo &&
1516      $SHELL "$ac_srcdir/configure" --help=recursive
1517    else
1518      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1519    fi || ac_status=$?
1520    cd "$ac_pwd" || { ac_status=$?; break; }
1521  done
1522fi
1523
1524test -n "$ac_init_help" && exit $ac_status
1525if $ac_init_version; then
1526  cat <<\_ACEOF
1527xclock configure 1.0.8
1528generated by GNU Autoconf 2.69
1529
1530Copyright (C) 2012 Free Software Foundation, Inc.
1531This configure script is free software; the Free Software Foundation
1532gives unlimited permission to copy, distribute and modify it.
1533_ACEOF
1534  exit
1535fi
1536
1537## ------------------------ ##
1538## Autoconf initialization. ##
1539## ------------------------ ##
1540
1541# ac_fn_c_try_compile LINENO
1542# --------------------------
1543# Try to compile conftest.$ac_ext, and return whether this succeeded.
1544ac_fn_c_try_compile ()
1545{
1546  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547  rm -f conftest.$ac_objext
1548  if { { ac_try="$ac_compile"
1549case "(($ac_try" in
1550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551  *) ac_try_echo=$ac_try;;
1552esac
1553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554$as_echo "$ac_try_echo"; } >&5
1555  (eval "$ac_compile") 2>conftest.err
1556  ac_status=$?
1557  if test -s conftest.err; then
1558    grep -v '^ *+' conftest.err >conftest.er1
1559    cat conftest.er1 >&5
1560    mv -f conftest.er1 conftest.err
1561  fi
1562  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563  test $ac_status = 0; } && {
1564	 test -z "$ac_c_werror_flag" ||
1565	 test ! -s conftest.err
1566       } && test -s conftest.$ac_objext; then :
1567  ac_retval=0
1568else
1569  $as_echo "$as_me: failed program was:" >&5
1570sed 's/^/| /' conftest.$ac_ext >&5
1571
1572	ac_retval=1
1573fi
1574  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575  as_fn_set_status $ac_retval
1576
1577} # ac_fn_c_try_compile
1578
1579# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1580# ---------------------------------------------
1581# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1582# accordingly.
1583ac_fn_c_check_decl ()
1584{
1585  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586  as_decl_name=`echo $2|sed 's/ *(.*//'`
1587  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1588  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1589$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1590if eval \${$3+:} false; then :
1591  $as_echo_n "(cached) " >&6
1592else
1593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1594/* end confdefs.h.  */
1595$4
1596int
1597main ()
1598{
1599#ifndef $as_decl_name
1600#ifdef __cplusplus
1601  (void) $as_decl_use;
1602#else
1603  (void) $as_decl_name;
1604#endif
1605#endif
1606
1607  ;
1608  return 0;
1609}
1610_ACEOF
1611if ac_fn_c_try_compile "$LINENO"; then :
1612  eval "$3=yes"
1613else
1614  eval "$3=no"
1615fi
1616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1617fi
1618eval ac_res=\$$3
1619	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1620$as_echo "$ac_res" >&6; }
1621  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622
1623} # ac_fn_c_check_decl
1624
1625# ac_fn_c_try_cpp LINENO
1626# ----------------------
1627# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1628ac_fn_c_try_cpp ()
1629{
1630  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631  if { { ac_try="$ac_cpp conftest.$ac_ext"
1632case "(($ac_try" in
1633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634  *) ac_try_echo=$ac_try;;
1635esac
1636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637$as_echo "$ac_try_echo"; } >&5
1638  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1639  ac_status=$?
1640  if test -s conftest.err; then
1641    grep -v '^ *+' conftest.err >conftest.er1
1642    cat conftest.er1 >&5
1643    mv -f conftest.er1 conftest.err
1644  fi
1645  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646  test $ac_status = 0; } > conftest.i && {
1647	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1648	 test ! -s conftest.err
1649       }; then :
1650  ac_retval=0
1651else
1652  $as_echo "$as_me: failed program was:" >&5
1653sed 's/^/| /' conftest.$ac_ext >&5
1654
1655    ac_retval=1
1656fi
1657  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658  as_fn_set_status $ac_retval
1659
1660} # ac_fn_c_try_cpp
1661
1662# ac_fn_c_try_run LINENO
1663# ----------------------
1664# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1665# that executables *can* be run.
1666ac_fn_c_try_run ()
1667{
1668  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669  if { { ac_try="$ac_link"
1670case "(($ac_try" in
1671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672  *) ac_try_echo=$ac_try;;
1673esac
1674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675$as_echo "$ac_try_echo"; } >&5
1676  (eval "$ac_link") 2>&5
1677  ac_status=$?
1678  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1680  { { case "(($ac_try" in
1681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682  *) ac_try_echo=$ac_try;;
1683esac
1684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685$as_echo "$ac_try_echo"; } >&5
1686  (eval "$ac_try") 2>&5
1687  ac_status=$?
1688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689  test $ac_status = 0; }; }; then :
1690  ac_retval=0
1691else
1692  $as_echo "$as_me: program exited with status $ac_status" >&5
1693       $as_echo "$as_me: failed program was:" >&5
1694sed 's/^/| /' conftest.$ac_ext >&5
1695
1696       ac_retval=$ac_status
1697fi
1698  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1699  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700  as_fn_set_status $ac_retval
1701
1702} # ac_fn_c_try_run
1703
1704# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1705# -------------------------------------------------------
1706# Tests whether HEADER exists and can be compiled using the include files in
1707# INCLUDES, setting the cache variable VAR accordingly.
1708ac_fn_c_check_header_compile ()
1709{
1710  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712$as_echo_n "checking for $2... " >&6; }
1713if eval \${$3+:} false; then :
1714  $as_echo_n "(cached) " >&6
1715else
1716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717/* end confdefs.h.  */
1718$4
1719#include <$2>
1720_ACEOF
1721if ac_fn_c_try_compile "$LINENO"; then :
1722  eval "$3=yes"
1723else
1724  eval "$3=no"
1725fi
1726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1727fi
1728eval ac_res=\$$3
1729	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730$as_echo "$ac_res" >&6; }
1731  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732
1733} # ac_fn_c_check_header_compile
1734
1735# ac_fn_c_try_link LINENO
1736# -----------------------
1737# Try to link conftest.$ac_ext, and return whether this succeeded.
1738ac_fn_c_try_link ()
1739{
1740  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741  rm -f conftest.$ac_objext conftest$ac_exeext
1742  if { { ac_try="$ac_link"
1743case "(($ac_try" in
1744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745  *) ac_try_echo=$ac_try;;
1746esac
1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748$as_echo "$ac_try_echo"; } >&5
1749  (eval "$ac_link") 2>conftest.err
1750  ac_status=$?
1751  if test -s conftest.err; then
1752    grep -v '^ *+' conftest.err >conftest.er1
1753    cat conftest.er1 >&5
1754    mv -f conftest.er1 conftest.err
1755  fi
1756  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757  test $ac_status = 0; } && {
1758	 test -z "$ac_c_werror_flag" ||
1759	 test ! -s conftest.err
1760       } && test -s conftest$ac_exeext && {
1761	 test "$cross_compiling" = yes ||
1762	 test -x conftest$ac_exeext
1763       }; then :
1764  ac_retval=0
1765else
1766  $as_echo "$as_me: failed program was:" >&5
1767sed 's/^/| /' conftest.$ac_ext >&5
1768
1769	ac_retval=1
1770fi
1771  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1772  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1773  # interfere with the next link command; also delete a directory that is
1774  # left behind by Apple's compiler.  We do this before executing the actions.
1775  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1776  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777  as_fn_set_status $ac_retval
1778
1779} # ac_fn_c_try_link
1780
1781# ac_fn_c_check_func LINENO FUNC VAR
1782# ----------------------------------
1783# Tests whether FUNC exists, setting the cache variable VAR accordingly
1784ac_fn_c_check_func ()
1785{
1786  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788$as_echo_n "checking for $2... " >&6; }
1789if eval \${$3+:} false; then :
1790  $as_echo_n "(cached) " >&6
1791else
1792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793/* end confdefs.h.  */
1794/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1795   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1796#define $2 innocuous_$2
1797
1798/* System header to define __stub macros and hopefully few prototypes,
1799    which can conflict with char $2 (); below.
1800    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1801    <limits.h> exists even on freestanding compilers.  */
1802
1803#ifdef __STDC__
1804# include <limits.h>
1805#else
1806# include <assert.h>
1807#endif
1808
1809#undef $2
1810
1811/* Override any GCC internal prototype to avoid an error.
1812   Use char because int might match the return type of a GCC
1813   builtin and then its argument prototype would still apply.  */
1814#ifdef __cplusplus
1815extern "C"
1816#endif
1817char $2 ();
1818/* The GNU C library defines this for functions which it implements
1819    to always fail with ENOSYS.  Some functions are actually named
1820    something starting with __ and the normal name is an alias.  */
1821#if defined __stub_$2 || defined __stub___$2
1822choke me
1823#endif
1824
1825int
1826main ()
1827{
1828return $2 ();
1829  ;
1830  return 0;
1831}
1832_ACEOF
1833if ac_fn_c_try_link "$LINENO"; then :
1834  eval "$3=yes"
1835else
1836  eval "$3=no"
1837fi
1838rm -f core conftest.err conftest.$ac_objext \
1839    conftest$ac_exeext conftest.$ac_ext
1840fi
1841eval ac_res=\$$3
1842	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843$as_echo "$ac_res" >&6; }
1844  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845
1846} # ac_fn_c_check_func
1847cat >config.log <<_ACEOF
1848This file contains any messages produced by compilers while
1849running configure, to aid debugging if configure makes a mistake.
1850
1851It was created by xclock $as_me 1.0.8, which was
1852generated by GNU Autoconf 2.69.  Invocation command line was
1853
1854  $ $0 $@
1855
1856_ACEOF
1857exec 5>>config.log
1858{
1859cat <<_ASUNAME
1860## --------- ##
1861## Platform. ##
1862## --------- ##
1863
1864hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1865uname -m = `(uname -m) 2>/dev/null || echo unknown`
1866uname -r = `(uname -r) 2>/dev/null || echo unknown`
1867uname -s = `(uname -s) 2>/dev/null || echo unknown`
1868uname -v = `(uname -v) 2>/dev/null || echo unknown`
1869
1870/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1871/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1872
1873/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1874/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1875/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1876/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1877/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1878/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1879/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1880
1881_ASUNAME
1882
1883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884for as_dir in $PATH
1885do
1886  IFS=$as_save_IFS
1887  test -z "$as_dir" && as_dir=.
1888    $as_echo "PATH: $as_dir"
1889  done
1890IFS=$as_save_IFS
1891
1892} >&5
1893
1894cat >&5 <<_ACEOF
1895
1896
1897## ----------- ##
1898## Core tests. ##
1899## ----------- ##
1900
1901_ACEOF
1902
1903
1904# Keep a trace of the command line.
1905# Strip out --no-create and --no-recursion so they do not pile up.
1906# Strip out --silent because we don't want to record it for future runs.
1907# Also quote any args containing shell meta-characters.
1908# Make two passes to allow for proper duplicate-argument suppression.
1909ac_configure_args=
1910ac_configure_args0=
1911ac_configure_args1=
1912ac_must_keep_next=false
1913for ac_pass in 1 2
1914do
1915  for ac_arg
1916  do
1917    case $ac_arg in
1918    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1919    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1920    | -silent | --silent | --silen | --sile | --sil)
1921      continue ;;
1922    *\'*)
1923      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1924    esac
1925    case $ac_pass in
1926    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1927    2)
1928      as_fn_append ac_configure_args1 " '$ac_arg'"
1929      if test $ac_must_keep_next = true; then
1930	ac_must_keep_next=false # Got value, back to normal.
1931      else
1932	case $ac_arg in
1933	  *=* | --config-cache | -C | -disable-* | --disable-* \
1934	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1935	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1936	  | -with-* | --with-* | -without-* | --without-* | --x)
1937	    case "$ac_configure_args0 " in
1938	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1939	    esac
1940	    ;;
1941	  -* ) ac_must_keep_next=true ;;
1942	esac
1943      fi
1944      as_fn_append ac_configure_args " '$ac_arg'"
1945      ;;
1946    esac
1947  done
1948done
1949{ ac_configure_args0=; unset ac_configure_args0;}
1950{ ac_configure_args1=; unset ac_configure_args1;}
1951
1952# When interrupted or exit'd, cleanup temporary files, and complete
1953# config.log.  We remove comments because anyway the quotes in there
1954# would cause problems or look ugly.
1955# WARNING: Use '\'' to represent an apostrophe within the trap.
1956# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1957trap 'exit_status=$?
1958  # Save into config.log some information that might help in debugging.
1959  {
1960    echo
1961
1962    $as_echo "## ---------------- ##
1963## Cache variables. ##
1964## ---------------- ##"
1965    echo
1966    # The following way of writing the cache mishandles newlines in values,
1967(
1968  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1969    eval ac_val=\$$ac_var
1970    case $ac_val in #(
1971    *${as_nl}*)
1972      case $ac_var in #(
1973      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1974$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1975      esac
1976      case $ac_var in #(
1977      _ | IFS | as_nl) ;; #(
1978      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1979      *) { eval $ac_var=; unset $ac_var;} ;;
1980      esac ;;
1981    esac
1982  done
1983  (set) 2>&1 |
1984    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1985    *${as_nl}ac_space=\ *)
1986      sed -n \
1987	"s/'\''/'\''\\\\'\'''\''/g;
1988	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1989      ;; #(
1990    *)
1991      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1992      ;;
1993    esac |
1994    sort
1995)
1996    echo
1997
1998    $as_echo "## ----------------- ##
1999## Output variables. ##
2000## ----------------- ##"
2001    echo
2002    for ac_var in $ac_subst_vars
2003    do
2004      eval ac_val=\$$ac_var
2005      case $ac_val in
2006      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2007      esac
2008      $as_echo "$ac_var='\''$ac_val'\''"
2009    done | sort
2010    echo
2011
2012    if test -n "$ac_subst_files"; then
2013      $as_echo "## ------------------- ##
2014## File substitutions. ##
2015## ------------------- ##"
2016      echo
2017      for ac_var in $ac_subst_files
2018      do
2019	eval ac_val=\$$ac_var
2020	case $ac_val in
2021	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2022	esac
2023	$as_echo "$ac_var='\''$ac_val'\''"
2024      done | sort
2025      echo
2026    fi
2027
2028    if test -s confdefs.h; then
2029      $as_echo "## ----------- ##
2030## confdefs.h. ##
2031## ----------- ##"
2032      echo
2033      cat confdefs.h
2034      echo
2035    fi
2036    test "$ac_signal" != 0 &&
2037      $as_echo "$as_me: caught signal $ac_signal"
2038    $as_echo "$as_me: exit $exit_status"
2039  } >&5
2040  rm -f core *.core core.conftest.* &&
2041    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2042    exit $exit_status
2043' 0
2044for ac_signal in 1 2 13 15; do
2045  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2046done
2047ac_signal=0
2048
2049# confdefs.h avoids OS command line length limits that DEFS can exceed.
2050rm -f -r conftest* confdefs.h
2051
2052$as_echo "/* confdefs.h */" > confdefs.h
2053
2054# Predefined preprocessor variables.
2055
2056cat >>confdefs.h <<_ACEOF
2057#define PACKAGE_NAME "$PACKAGE_NAME"
2058_ACEOF
2059
2060cat >>confdefs.h <<_ACEOF
2061#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2062_ACEOF
2063
2064cat >>confdefs.h <<_ACEOF
2065#define PACKAGE_VERSION "$PACKAGE_VERSION"
2066_ACEOF
2067
2068cat >>confdefs.h <<_ACEOF
2069#define PACKAGE_STRING "$PACKAGE_STRING"
2070_ACEOF
2071
2072cat >>confdefs.h <<_ACEOF
2073#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2074_ACEOF
2075
2076cat >>confdefs.h <<_ACEOF
2077#define PACKAGE_URL "$PACKAGE_URL"
2078_ACEOF
2079
2080
2081# Let the site file select an alternate cache file if it wants to.
2082# Prefer an explicitly selected file to automatically selected ones.
2083ac_site_file1=NONE
2084ac_site_file2=NONE
2085if test -n "$CONFIG_SITE"; then
2086  # We do not want a PATH search for config.site.
2087  case $CONFIG_SITE in #((
2088    -*)  ac_site_file1=./$CONFIG_SITE;;
2089    */*) ac_site_file1=$CONFIG_SITE;;
2090    *)   ac_site_file1=./$CONFIG_SITE;;
2091  esac
2092elif test "x$prefix" != xNONE; then
2093  ac_site_file1=$prefix/share/config.site
2094  ac_site_file2=$prefix/etc/config.site
2095else
2096  ac_site_file1=$ac_default_prefix/share/config.site
2097  ac_site_file2=$ac_default_prefix/etc/config.site
2098fi
2099for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2100do
2101  test "x$ac_site_file" = xNONE && continue
2102  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2103    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2104$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2105    sed 's/^/| /' "$ac_site_file" >&5
2106    . "$ac_site_file" \
2107      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2108$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2109as_fn_error $? "failed to load site script $ac_site_file
2110See \`config.log' for more details" "$LINENO" 5; }
2111  fi
2112done
2113
2114if test -r "$cache_file"; then
2115  # Some versions of bash will fail to source /dev/null (special files
2116  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2117  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2118    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2119$as_echo "$as_me: loading cache $cache_file" >&6;}
2120    case $cache_file in
2121      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2122      *)                      . "./$cache_file";;
2123    esac
2124  fi
2125else
2126  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2127$as_echo "$as_me: creating cache $cache_file" >&6;}
2128  >$cache_file
2129fi
2130
2131# Check that the precious variables saved in the cache have kept the same
2132# value.
2133ac_cache_corrupted=false
2134for ac_var in $ac_precious_vars; do
2135  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2136  eval ac_new_set=\$ac_env_${ac_var}_set
2137  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2138  eval ac_new_val=\$ac_env_${ac_var}_value
2139  case $ac_old_set,$ac_new_set in
2140    set,)
2141      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2142$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2143      ac_cache_corrupted=: ;;
2144    ,set)
2145      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2146$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2147      ac_cache_corrupted=: ;;
2148    ,);;
2149    *)
2150      if test "x$ac_old_val" != "x$ac_new_val"; then
2151	# differences in whitespace do not lead to failure.
2152	ac_old_val_w=`echo x $ac_old_val`
2153	ac_new_val_w=`echo x $ac_new_val`
2154	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2155	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2156$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2157	  ac_cache_corrupted=:
2158	else
2159	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2160$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2161	  eval $ac_var=\$ac_old_val
2162	fi
2163	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2164$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2165	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2166$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2167      fi;;
2168  esac
2169  # Pass precious variables to config.status.
2170  if test "$ac_new_set" = set; then
2171    case $ac_new_val in
2172    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2173    *) ac_arg=$ac_var=$ac_new_val ;;
2174    esac
2175    case " $ac_configure_args " in
2176      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2177      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2178    esac
2179  fi
2180done
2181if $ac_cache_corrupted; then
2182  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2184  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2185$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2186  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2187fi
2188## -------------------- ##
2189## Main body of script. ##
2190## -------------------- ##
2191
2192ac_ext=c
2193ac_cpp='$CPP $CPPFLAGS'
2194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2196ac_compiler_gnu=$ac_cv_c_compiler_gnu
2197
2198
2199
2200ac_config_headers="$ac_config_headers config.h"
2201
2202
2203# Initialize Automake
2204am__api_version='1.15'
2205
2206ac_aux_dir=
2207for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2208  if test -f "$ac_dir/install-sh"; then
2209    ac_aux_dir=$ac_dir
2210    ac_install_sh="$ac_aux_dir/install-sh -c"
2211    break
2212  elif test -f "$ac_dir/install.sh"; then
2213    ac_aux_dir=$ac_dir
2214    ac_install_sh="$ac_aux_dir/install.sh -c"
2215    break
2216  elif test -f "$ac_dir/shtool"; then
2217    ac_aux_dir=$ac_dir
2218    ac_install_sh="$ac_aux_dir/shtool install -c"
2219    break
2220  fi
2221done
2222if test -z "$ac_aux_dir"; then
2223  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2224fi
2225
2226# These three variables are undocumented and unsupported,
2227# and are intended to be withdrawn in a future Autoconf release.
2228# They can cause serious problems if a builder's source tree is in a directory
2229# whose full name contains unusual characters.
2230ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2231ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2232ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2233
2234
2235# Find a good install program.  We prefer a C program (faster),
2236# so one script is as good as another.  But avoid the broken or
2237# incompatible versions:
2238# SysV /etc/install, /usr/sbin/install
2239# SunOS /usr/etc/install
2240# IRIX /sbin/install
2241# AIX /bin/install
2242# AmigaOS /C/install, which installs bootblocks on floppy discs
2243# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2244# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2245# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2246# OS/2's system install, which has a completely different semantic
2247# ./install, which can be erroneously created by make from ./install.sh.
2248# Reject install programs that cannot install multiple files.
2249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2250$as_echo_n "checking for a BSD-compatible install... " >&6; }
2251if test -z "$INSTALL"; then
2252if ${ac_cv_path_install+:} false; then :
2253  $as_echo_n "(cached) " >&6
2254else
2255  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256for as_dir in $PATH
2257do
2258  IFS=$as_save_IFS
2259  test -z "$as_dir" && as_dir=.
2260    # Account for people who put trailing slashes in PATH elements.
2261case $as_dir/ in #((
2262  ./ | .// | /[cC]/* | \
2263  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2264  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2265  /usr/ucb/* ) ;;
2266  *)
2267    # OSF1 and SCO ODT 3.0 have their own names for install.
2268    # Don't use installbsd from OSF since it installs stuff as root
2269    # by default.
2270    for ac_prog in ginstall scoinst install; do
2271      for ac_exec_ext in '' $ac_executable_extensions; do
2272	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2273	  if test $ac_prog = install &&
2274	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2275	    # AIX install.  It has an incompatible calling convention.
2276	    :
2277	  elif test $ac_prog = install &&
2278	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2279	    # program-specific install script used by HP pwplus--don't use.
2280	    :
2281	  else
2282	    rm -rf conftest.one conftest.two conftest.dir
2283	    echo one > conftest.one
2284	    echo two > conftest.two
2285	    mkdir conftest.dir
2286	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2287	      test -s conftest.one && test -s conftest.two &&
2288	      test -s conftest.dir/conftest.one &&
2289	      test -s conftest.dir/conftest.two
2290	    then
2291	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2292	      break 3
2293	    fi
2294	  fi
2295	fi
2296      done
2297    done
2298    ;;
2299esac
2300
2301  done
2302IFS=$as_save_IFS
2303
2304rm -rf conftest.one conftest.two conftest.dir
2305
2306fi
2307  if test "${ac_cv_path_install+set}" = set; then
2308    INSTALL=$ac_cv_path_install
2309  else
2310    # As a last resort, use the slow shell script.  Don't cache a
2311    # value for INSTALL within a source directory, because that will
2312    # break other packages using the cache if that directory is
2313    # removed, or if the value is a relative name.
2314    INSTALL=$ac_install_sh
2315  fi
2316fi
2317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2318$as_echo "$INSTALL" >&6; }
2319
2320# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2321# It thinks the first close brace ends the variable substitution.
2322test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2323
2324test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2325
2326test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2327
2328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2329$as_echo_n "checking whether build environment is sane... " >&6; }
2330# Reject unsafe characters in $srcdir or the absolute working directory
2331# name.  Accept space and tab only in the latter.
2332am_lf='
2333'
2334case `pwd` in
2335  *[\\\"\#\$\&\'\`$am_lf]*)
2336    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2337esac
2338case $srcdir in
2339  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2340    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2341esac
2342
2343# Do 'set' in a subshell so we don't clobber the current shell's
2344# arguments.  Must try -L first in case configure is actually a
2345# symlink; some systems play weird games with the mod time of symlinks
2346# (eg FreeBSD returns the mod time of the symlink's containing
2347# directory).
2348if (
2349   am_has_slept=no
2350   for am_try in 1 2; do
2351     echo "timestamp, slept: $am_has_slept" > conftest.file
2352     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2353     if test "$*" = "X"; then
2354	# -L didn't work.
2355	set X `ls -t "$srcdir/configure" conftest.file`
2356     fi
2357     if test "$*" != "X $srcdir/configure conftest.file" \
2358	&& test "$*" != "X conftest.file $srcdir/configure"; then
2359
2360	# If neither matched, then we have a broken ls.  This can happen
2361	# if, for instance, CONFIG_SHELL is bash and it inherits a
2362	# broken ls alias from the environment.  This has actually
2363	# happened.  Such a system could not be considered "sane".
2364	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2365  alias in your environment" "$LINENO" 5
2366     fi
2367     if test "$2" = conftest.file || test $am_try -eq 2; then
2368       break
2369     fi
2370     # Just in case.
2371     sleep 1
2372     am_has_slept=yes
2373   done
2374   test "$2" = conftest.file
2375   )
2376then
2377   # Ok.
2378   :
2379else
2380   as_fn_error $? "newly created file is older than distributed files!
2381Check your system clock" "$LINENO" 5
2382fi
2383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2384$as_echo "yes" >&6; }
2385# If we didn't sleep, we still need to ensure time stamps of config.status and
2386# generated files are strictly newer.
2387am_sleep_pid=
2388if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2389  ( sleep 1 ) &
2390  am_sleep_pid=$!
2391fi
2392
2393rm -f conftest.file
2394
2395test "$program_prefix" != NONE &&
2396  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2397# Use a double $ so make ignores it.
2398test "$program_suffix" != NONE &&
2399  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2400# Double any \ or $.
2401# By default was `s,x,x', remove it if useless.
2402ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2403program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2404
2405# Expand $ac_aux_dir to an absolute path.
2406am_aux_dir=`cd "$ac_aux_dir" && pwd`
2407
2408if test x"${MISSING+set}" != xset; then
2409  case $am_aux_dir in
2410  *\ * | *\	*)
2411    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2412  *)
2413    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2414  esac
2415fi
2416# Use eval to expand $SHELL
2417if eval "$MISSING --is-lightweight"; then
2418  am_missing_run="$MISSING "
2419else
2420  am_missing_run=
2421  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2422$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2423fi
2424
2425if test x"${install_sh+set}" != xset; then
2426  case $am_aux_dir in
2427  *\ * | *\	*)
2428    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2429  *)
2430    install_sh="\${SHELL} $am_aux_dir/install-sh"
2431  esac
2432fi
2433
2434# Installed binaries are usually stripped using 'strip' when the user
2435# run "make install-strip".  However 'strip' might not be the right
2436# tool to use in cross-compilation environments, therefore Automake
2437# will honor the 'STRIP' environment variable to overrule this program.
2438if test "$cross_compiling" != no; then
2439  if test -n "$ac_tool_prefix"; then
2440  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2441set dummy ${ac_tool_prefix}strip; ac_word=$2
2442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2443$as_echo_n "checking for $ac_word... " >&6; }
2444if ${ac_cv_prog_STRIP+:} false; then :
2445  $as_echo_n "(cached) " >&6
2446else
2447  if test -n "$STRIP"; then
2448  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2449else
2450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451for as_dir in $PATH
2452do
2453  IFS=$as_save_IFS
2454  test -z "$as_dir" && as_dir=.
2455    for ac_exec_ext in '' $ac_executable_extensions; do
2456  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2457    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2458    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2459    break 2
2460  fi
2461done
2462  done
2463IFS=$as_save_IFS
2464
2465fi
2466fi
2467STRIP=$ac_cv_prog_STRIP
2468if test -n "$STRIP"; then
2469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2470$as_echo "$STRIP" >&6; }
2471else
2472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2473$as_echo "no" >&6; }
2474fi
2475
2476
2477fi
2478if test -z "$ac_cv_prog_STRIP"; then
2479  ac_ct_STRIP=$STRIP
2480  # Extract the first word of "strip", so it can be a program name with args.
2481set dummy strip; ac_word=$2
2482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2483$as_echo_n "checking for $ac_word... " >&6; }
2484if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2485  $as_echo_n "(cached) " >&6
2486else
2487  if test -n "$ac_ct_STRIP"; then
2488  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2489else
2490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491for as_dir in $PATH
2492do
2493  IFS=$as_save_IFS
2494  test -z "$as_dir" && as_dir=.
2495    for ac_exec_ext in '' $ac_executable_extensions; do
2496  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2497    ac_cv_prog_ac_ct_STRIP="strip"
2498    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2499    break 2
2500  fi
2501done
2502  done
2503IFS=$as_save_IFS
2504
2505fi
2506fi
2507ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2508if test -n "$ac_ct_STRIP"; then
2509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2510$as_echo "$ac_ct_STRIP" >&6; }
2511else
2512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2513$as_echo "no" >&6; }
2514fi
2515
2516  if test "x$ac_ct_STRIP" = x; then
2517    STRIP=":"
2518  else
2519    case $cross_compiling:$ac_tool_warned in
2520yes:)
2521{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2522$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2523ac_tool_warned=yes ;;
2524esac
2525    STRIP=$ac_ct_STRIP
2526  fi
2527else
2528  STRIP="$ac_cv_prog_STRIP"
2529fi
2530
2531fi
2532INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2533
2534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2535$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2536if test -z "$MKDIR_P"; then
2537  if ${ac_cv_path_mkdir+:} false; then :
2538  $as_echo_n "(cached) " >&6
2539else
2540  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2542do
2543  IFS=$as_save_IFS
2544  test -z "$as_dir" && as_dir=.
2545    for ac_prog in mkdir gmkdir; do
2546	 for ac_exec_ext in '' $ac_executable_extensions; do
2547	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2548	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2549	     'mkdir (GNU coreutils) '* | \
2550	     'mkdir (coreutils) '* | \
2551	     'mkdir (fileutils) '4.1*)
2552	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2553	       break 3;;
2554	   esac
2555	 done
2556       done
2557  done
2558IFS=$as_save_IFS
2559
2560fi
2561
2562  test -d ./--version && rmdir ./--version
2563  if test "${ac_cv_path_mkdir+set}" = set; then
2564    MKDIR_P="$ac_cv_path_mkdir -p"
2565  else
2566    # As a last resort, use the slow shell script.  Don't cache a
2567    # value for MKDIR_P within a source directory, because that will
2568    # break other packages using the cache if that directory is
2569    # removed, or if the value is a relative name.
2570    MKDIR_P="$ac_install_sh -d"
2571  fi
2572fi
2573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2574$as_echo "$MKDIR_P" >&6; }
2575
2576for ac_prog in gawk mawk nawk awk
2577do
2578  # Extract the first word of "$ac_prog", so it can be a program name with args.
2579set dummy $ac_prog; ac_word=$2
2580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2581$as_echo_n "checking for $ac_word... " >&6; }
2582if ${ac_cv_prog_AWK+:} false; then :
2583  $as_echo_n "(cached) " >&6
2584else
2585  if test -n "$AWK"; then
2586  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2587else
2588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589for as_dir in $PATH
2590do
2591  IFS=$as_save_IFS
2592  test -z "$as_dir" && as_dir=.
2593    for ac_exec_ext in '' $ac_executable_extensions; do
2594  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2595    ac_cv_prog_AWK="$ac_prog"
2596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2597    break 2
2598  fi
2599done
2600  done
2601IFS=$as_save_IFS
2602
2603fi
2604fi
2605AWK=$ac_cv_prog_AWK
2606if test -n "$AWK"; then
2607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2608$as_echo "$AWK" >&6; }
2609else
2610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2611$as_echo "no" >&6; }
2612fi
2613
2614
2615  test -n "$AWK" && break
2616done
2617
2618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2619$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2620set x ${MAKE-make}
2621ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2622if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2623  $as_echo_n "(cached) " >&6
2624else
2625  cat >conftest.make <<\_ACEOF
2626SHELL = /bin/sh
2627all:
2628	@echo '@@@%%%=$(MAKE)=@@@%%%'
2629_ACEOF
2630# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2631case `${MAKE-make} -f conftest.make 2>/dev/null` in
2632  *@@@%%%=?*=@@@%%%*)
2633    eval ac_cv_prog_make_${ac_make}_set=yes;;
2634  *)
2635    eval ac_cv_prog_make_${ac_make}_set=no;;
2636esac
2637rm -f conftest.make
2638fi
2639if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2641$as_echo "yes" >&6; }
2642  SET_MAKE=
2643else
2644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645$as_echo "no" >&6; }
2646  SET_MAKE="MAKE=${MAKE-make}"
2647fi
2648
2649rm -rf .tst 2>/dev/null
2650mkdir .tst 2>/dev/null
2651if test -d .tst; then
2652  am__leading_dot=.
2653else
2654  am__leading_dot=_
2655fi
2656rmdir .tst 2>/dev/null
2657
2658# Check whether --enable-silent-rules was given.
2659if test "${enable_silent_rules+set}" = set; then :
2660  enableval=$enable_silent_rules;
2661fi
2662
2663case $enable_silent_rules in # (((
2664  yes) AM_DEFAULT_VERBOSITY=0;;
2665   no) AM_DEFAULT_VERBOSITY=1;;
2666    *) AM_DEFAULT_VERBOSITY=1;;
2667esac
2668am_make=${MAKE-make}
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2670$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2671if ${am_cv_make_support_nested_variables+:} false; then :
2672  $as_echo_n "(cached) " >&6
2673else
2674  if $as_echo 'TRUE=$(BAR$(V))
2675BAR0=false
2676BAR1=true
2677V=1
2678am__doit:
2679	@$(TRUE)
2680.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2681  am_cv_make_support_nested_variables=yes
2682else
2683  am_cv_make_support_nested_variables=no
2684fi
2685fi
2686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2687$as_echo "$am_cv_make_support_nested_variables" >&6; }
2688if test $am_cv_make_support_nested_variables = yes; then
2689    AM_V='$(V)'
2690  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2691else
2692  AM_V=$AM_DEFAULT_VERBOSITY
2693  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2694fi
2695AM_BACKSLASH='\'
2696
2697if test "`cd $srcdir && pwd`" != "`pwd`"; then
2698  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2699  # is not polluted with repeated "-I."
2700  am__isrc=' -I$(srcdir)'
2701  # test to see if srcdir already configured
2702  if test -f $srcdir/config.status; then
2703    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2704  fi
2705fi
2706
2707# test whether we have cygpath
2708if test -z "$CYGPATH_W"; then
2709  if (cygpath --version) >/dev/null 2>/dev/null; then
2710    CYGPATH_W='cygpath -w'
2711  else
2712    CYGPATH_W=echo
2713  fi
2714fi
2715
2716
2717# Define the identity of the package.
2718 PACKAGE='xclock'
2719 VERSION='1.0.8'
2720
2721
2722cat >>confdefs.h <<_ACEOF
2723#define PACKAGE "$PACKAGE"
2724_ACEOF
2725
2726
2727cat >>confdefs.h <<_ACEOF
2728#define VERSION "$VERSION"
2729_ACEOF
2730
2731# Some tools Automake needs.
2732
2733ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2734
2735
2736AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2737
2738
2739AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2740
2741
2742AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2743
2744
2745MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2746
2747# For better backward compatibility.  To be removed once Automake 1.9.x
2748# dies out for good.  For more background, see:
2749# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2750# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2751mkdir_p='$(MKDIR_P)'
2752
2753# We need awk for the "check" target (and possibly the TAP driver).  The
2754# system "awk" is bad on some platforms.
2755# Always define AMTAR for backward compatibility.  Yes, it's still used
2756# in the wild :-(  We should find a proper way to deprecate it ...
2757AMTAR='$${TAR-tar}'
2758
2759
2760# We'll loop over all known methods to create a tar archive until one works.
2761_am_tools='gnutar  pax cpio none'
2762
2763am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2764
2765
2766
2767
2768
2769
2770# POSIX will say in a future version that running "rm -f" with no argument
2771# is OK; and we want to be able to make that assumption in our Makefile
2772# recipes.  So use an aggressive probe to check that the usage we want is
2773# actually supported "in the wild" to an acceptable degree.
2774# See automake bug#10828.
2775# To make any issue more visible, cause the running configure to be aborted
2776# by default if the 'rm' program in use doesn't match our expectations; the
2777# user can still override this though.
2778if rm -f && rm -fr && rm -rf; then : OK; else
2779  cat >&2 <<'END'
2780Oops!
2781
2782Your 'rm' program seems unable to run without file operands specified
2783on the command line, even when the '-f' option is present.  This is contrary
2784to the behaviour of most rm programs out there, and not conforming with
2785the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2786
2787Please tell bug-automake@gnu.org about your system, including the value
2788of your $PATH and any error possibly output before this message.  This
2789can help us improve future automake versions.
2790
2791END
2792  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2793    echo 'Configuration will proceed anyway, since you have set the' >&2
2794    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2795    echo >&2
2796  else
2797    cat >&2 <<'END'
2798Aborting the configuration process, to ensure you take notice of the issue.
2799
2800You can download and install GNU coreutils to get an 'rm' implementation
2801that behaves properly: <http://www.gnu.org/software/coreutils/>.
2802
2803If you want to complete the configuration process using your problematic
2804'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2805to "yes", and re-run configure.
2806
2807END
2808    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2809  fi
2810fi
2811
2812
2813# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825DEPDIR="${am__leading_dot}deps"
2826
2827ac_config_commands="$ac_config_commands depfiles"
2828
2829
2830am_make=${MAKE-make}
2831cat > confinc << 'END'
2832am__doit:
2833	@echo this is the am__doit target
2834.PHONY: am__doit
2835END
2836# If we don't find an include directive, just comment out the code.
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2838$as_echo_n "checking for style of include used by $am_make... " >&6; }
2839am__include="#"
2840am__quote=
2841_am_result=none
2842# First try GNU make style include.
2843echo "include confinc" > confmf
2844# Ignore all kinds of additional output from 'make'.
2845case `$am_make -s -f confmf 2> /dev/null` in #(
2846*the\ am__doit\ target*)
2847  am__include=include
2848  am__quote=
2849  _am_result=GNU
2850  ;;
2851esac
2852# Now try BSD make style include.
2853if test "$am__include" = "#"; then
2854   echo '.include "confinc"' > confmf
2855   case `$am_make -s -f confmf 2> /dev/null` in #(
2856   *the\ am__doit\ target*)
2857     am__include=.include
2858     am__quote="\""
2859     _am_result=BSD
2860     ;;
2861   esac
2862fi
2863
2864
2865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2866$as_echo "$_am_result" >&6; }
2867rm -f confinc confmf
2868
2869# Check whether --enable-dependency-tracking was given.
2870if test "${enable_dependency_tracking+set}" = set; then :
2871  enableval=$enable_dependency_tracking;
2872fi
2873
2874if test "x$enable_dependency_tracking" != xno; then
2875  am_depcomp="$ac_aux_dir/depcomp"
2876  AMDEPBACKSLASH='\'
2877  am__nodep='_no'
2878fi
2879 if test "x$enable_dependency_tracking" != xno; then
2880  AMDEP_TRUE=
2881  AMDEP_FALSE='#'
2882else
2883  AMDEP_TRUE='#'
2884  AMDEP_FALSE=
2885fi
2886
2887
2888ac_ext=c
2889ac_cpp='$CPP $CPPFLAGS'
2890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2892ac_compiler_gnu=$ac_cv_c_compiler_gnu
2893if test -n "$ac_tool_prefix"; then
2894  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2895set dummy ${ac_tool_prefix}gcc; ac_word=$2
2896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897$as_echo_n "checking for $ac_word... " >&6; }
2898if ${ac_cv_prog_CC+:} false; then :
2899  $as_echo_n "(cached) " >&6
2900else
2901  if test -n "$CC"; then
2902  ac_cv_prog_CC="$CC" # Let the user override the test.
2903else
2904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905for as_dir in $PATH
2906do
2907  IFS=$as_save_IFS
2908  test -z "$as_dir" && as_dir=.
2909    for ac_exec_ext in '' $ac_executable_extensions; do
2910  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2911    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2912    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2913    break 2
2914  fi
2915done
2916  done
2917IFS=$as_save_IFS
2918
2919fi
2920fi
2921CC=$ac_cv_prog_CC
2922if test -n "$CC"; then
2923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2924$as_echo "$CC" >&6; }
2925else
2926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927$as_echo "no" >&6; }
2928fi
2929
2930
2931fi
2932if test -z "$ac_cv_prog_CC"; then
2933  ac_ct_CC=$CC
2934  # Extract the first word of "gcc", so it can be a program name with args.
2935set dummy gcc; ac_word=$2
2936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937$as_echo_n "checking for $ac_word... " >&6; }
2938if ${ac_cv_prog_ac_ct_CC+:} false; then :
2939  $as_echo_n "(cached) " >&6
2940else
2941  if test -n "$ac_ct_CC"; then
2942  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2943else
2944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945for as_dir in $PATH
2946do
2947  IFS=$as_save_IFS
2948  test -z "$as_dir" && as_dir=.
2949    for ac_exec_ext in '' $ac_executable_extensions; do
2950  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2951    ac_cv_prog_ac_ct_CC="gcc"
2952    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953    break 2
2954  fi
2955done
2956  done
2957IFS=$as_save_IFS
2958
2959fi
2960fi
2961ac_ct_CC=$ac_cv_prog_ac_ct_CC
2962if test -n "$ac_ct_CC"; then
2963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2964$as_echo "$ac_ct_CC" >&6; }
2965else
2966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967$as_echo "no" >&6; }
2968fi
2969
2970  if test "x$ac_ct_CC" = x; then
2971    CC=""
2972  else
2973    case $cross_compiling:$ac_tool_warned in
2974yes:)
2975{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2976$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2977ac_tool_warned=yes ;;
2978esac
2979    CC=$ac_ct_CC
2980  fi
2981else
2982  CC="$ac_cv_prog_CC"
2983fi
2984
2985if test -z "$CC"; then
2986          if test -n "$ac_tool_prefix"; then
2987    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2988set dummy ${ac_tool_prefix}cc; ac_word=$2
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990$as_echo_n "checking for $ac_word... " >&6; }
2991if ${ac_cv_prog_CC+:} false; then :
2992  $as_echo_n "(cached) " >&6
2993else
2994  if test -n "$CC"; then
2995  ac_cv_prog_CC="$CC" # Let the user override the test.
2996else
2997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998for as_dir in $PATH
2999do
3000  IFS=$as_save_IFS
3001  test -z "$as_dir" && as_dir=.
3002    for ac_exec_ext in '' $ac_executable_extensions; do
3003  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3004    ac_cv_prog_CC="${ac_tool_prefix}cc"
3005    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006    break 2
3007  fi
3008done
3009  done
3010IFS=$as_save_IFS
3011
3012fi
3013fi
3014CC=$ac_cv_prog_CC
3015if test -n "$CC"; then
3016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3017$as_echo "$CC" >&6; }
3018else
3019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020$as_echo "no" >&6; }
3021fi
3022
3023
3024  fi
3025fi
3026if test -z "$CC"; then
3027  # Extract the first word of "cc", so it can be a program name with args.
3028set dummy cc; ac_word=$2
3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030$as_echo_n "checking for $ac_word... " >&6; }
3031if ${ac_cv_prog_CC+:} false; then :
3032  $as_echo_n "(cached) " >&6
3033else
3034  if test -n "$CC"; then
3035  ac_cv_prog_CC="$CC" # Let the user override the test.
3036else
3037  ac_prog_rejected=no
3038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039for as_dir in $PATH
3040do
3041  IFS=$as_save_IFS
3042  test -z "$as_dir" && as_dir=.
3043    for ac_exec_ext in '' $ac_executable_extensions; do
3044  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3045    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3046       ac_prog_rejected=yes
3047       continue
3048     fi
3049    ac_cv_prog_CC="cc"
3050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051    break 2
3052  fi
3053done
3054  done
3055IFS=$as_save_IFS
3056
3057if test $ac_prog_rejected = yes; then
3058  # We found a bogon in the path, so make sure we never use it.
3059  set dummy $ac_cv_prog_CC
3060  shift
3061  if test $# != 0; then
3062    # We chose a different compiler from the bogus one.
3063    # However, it has the same basename, so the bogon will be chosen
3064    # first if we set CC to just the basename; use the full file name.
3065    shift
3066    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3067  fi
3068fi
3069fi
3070fi
3071CC=$ac_cv_prog_CC
3072if test -n "$CC"; then
3073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3074$as_echo "$CC" >&6; }
3075else
3076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077$as_echo "no" >&6; }
3078fi
3079
3080
3081fi
3082if test -z "$CC"; then
3083  if test -n "$ac_tool_prefix"; then
3084  for ac_prog in cl.exe
3085  do
3086    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3087set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089$as_echo_n "checking for $ac_word... " >&6; }
3090if ${ac_cv_prog_CC+:} false; then :
3091  $as_echo_n "(cached) " >&6
3092else
3093  if test -n "$CC"; then
3094  ac_cv_prog_CC="$CC" # Let the user override the test.
3095else
3096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097for as_dir in $PATH
3098do
3099  IFS=$as_save_IFS
3100  test -z "$as_dir" && as_dir=.
3101    for ac_exec_ext in '' $ac_executable_extensions; do
3102  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3103    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3104    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105    break 2
3106  fi
3107done
3108  done
3109IFS=$as_save_IFS
3110
3111fi
3112fi
3113CC=$ac_cv_prog_CC
3114if test -n "$CC"; then
3115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3116$as_echo "$CC" >&6; }
3117else
3118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119$as_echo "no" >&6; }
3120fi
3121
3122
3123    test -n "$CC" && break
3124  done
3125fi
3126if test -z "$CC"; then
3127  ac_ct_CC=$CC
3128  for ac_prog in cl.exe
3129do
3130  # Extract the first word of "$ac_prog", so it can be a program name with args.
3131set dummy $ac_prog; ac_word=$2
3132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3133$as_echo_n "checking for $ac_word... " >&6; }
3134if ${ac_cv_prog_ac_ct_CC+:} false; then :
3135  $as_echo_n "(cached) " >&6
3136else
3137  if test -n "$ac_ct_CC"; then
3138  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3139else
3140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141for as_dir in $PATH
3142do
3143  IFS=$as_save_IFS
3144  test -z "$as_dir" && as_dir=.
3145    for ac_exec_ext in '' $ac_executable_extensions; do
3146  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3147    ac_cv_prog_ac_ct_CC="$ac_prog"
3148    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149    break 2
3150  fi
3151done
3152  done
3153IFS=$as_save_IFS
3154
3155fi
3156fi
3157ac_ct_CC=$ac_cv_prog_ac_ct_CC
3158if test -n "$ac_ct_CC"; then
3159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3160$as_echo "$ac_ct_CC" >&6; }
3161else
3162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163$as_echo "no" >&6; }
3164fi
3165
3166
3167  test -n "$ac_ct_CC" && break
3168done
3169
3170  if test "x$ac_ct_CC" = x; then
3171    CC=""
3172  else
3173    case $cross_compiling:$ac_tool_warned in
3174yes:)
3175{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3176$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3177ac_tool_warned=yes ;;
3178esac
3179    CC=$ac_ct_CC
3180  fi
3181fi
3182
3183fi
3184
3185
3186test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3187$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3188as_fn_error $? "no acceptable C compiler found in \$PATH
3189See \`config.log' for more details" "$LINENO" 5; }
3190
3191# Provide some information about the compiler.
3192$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3193set X $ac_compile
3194ac_compiler=$2
3195for ac_option in --version -v -V -qversion; do
3196  { { ac_try="$ac_compiler $ac_option >&5"
3197case "(($ac_try" in
3198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199  *) ac_try_echo=$ac_try;;
3200esac
3201eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3202$as_echo "$ac_try_echo"; } >&5
3203  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3204  ac_status=$?
3205  if test -s conftest.err; then
3206    sed '10a\
3207... rest of stderr output deleted ...
3208         10q' conftest.err >conftest.er1
3209    cat conftest.er1 >&5
3210  fi
3211  rm -f conftest.er1 conftest.err
3212  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213  test $ac_status = 0; }
3214done
3215
3216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217/* end confdefs.h.  */
3218
3219int
3220main ()
3221{
3222
3223  ;
3224  return 0;
3225}
3226_ACEOF
3227ac_clean_files_save=$ac_clean_files
3228ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3229# Try to create an executable without -o first, disregard a.out.
3230# It will help us diagnose broken compilers, and finding out an intuition
3231# of exeext.
3232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3233$as_echo_n "checking whether the C compiler works... " >&6; }
3234ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3235
3236# The possible output files:
3237ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3238
3239ac_rmfiles=
3240for ac_file in $ac_files
3241do
3242  case $ac_file in
3243    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3244    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3245  esac
3246done
3247rm -f $ac_rmfiles
3248
3249if { { ac_try="$ac_link_default"
3250case "(($ac_try" in
3251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252  *) ac_try_echo=$ac_try;;
3253esac
3254eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3255$as_echo "$ac_try_echo"; } >&5
3256  (eval "$ac_link_default") 2>&5
3257  ac_status=$?
3258  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3259  test $ac_status = 0; }; then :
3260  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3261# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3262# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3263# so that the user can short-circuit this test for compilers unknown to
3264# Autoconf.
3265for ac_file in $ac_files ''
3266do
3267  test -f "$ac_file" || continue
3268  case $ac_file in
3269    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3270	;;
3271    [ab].out )
3272	# We found the default executable, but exeext='' is most
3273	# certainly right.
3274	break;;
3275    *.* )
3276	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3277	then :; else
3278	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3279	fi
3280	# We set ac_cv_exeext here because the later test for it is not
3281	# safe: cross compilers may not add the suffix if given an `-o'
3282	# argument, so we may need to know it at that point already.
3283	# Even if this section looks crufty: it has the advantage of
3284	# actually working.
3285	break;;
3286    * )
3287	break;;
3288  esac
3289done
3290test "$ac_cv_exeext" = no && ac_cv_exeext=
3291
3292else
3293  ac_file=''
3294fi
3295if test -z "$ac_file"; then :
3296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297$as_echo "no" >&6; }
3298$as_echo "$as_me: failed program was:" >&5
3299sed 's/^/| /' conftest.$ac_ext >&5
3300
3301{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3302$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3303as_fn_error 77 "C compiler cannot create executables
3304See \`config.log' for more details" "$LINENO" 5; }
3305else
3306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3307$as_echo "yes" >&6; }
3308fi
3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3310$as_echo_n "checking for C compiler default output file name... " >&6; }
3311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3312$as_echo "$ac_file" >&6; }
3313ac_exeext=$ac_cv_exeext
3314
3315rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3316ac_clean_files=$ac_clean_files_save
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3318$as_echo_n "checking for suffix of executables... " >&6; }
3319if { { ac_try="$ac_link"
3320case "(($ac_try" in
3321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322  *) ac_try_echo=$ac_try;;
3323esac
3324eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3325$as_echo "$ac_try_echo"; } >&5
3326  (eval "$ac_link") 2>&5
3327  ac_status=$?
3328  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3329  test $ac_status = 0; }; then :
3330  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3331# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3332# work properly (i.e., refer to `conftest.exe'), while it won't with
3333# `rm'.
3334for ac_file in conftest.exe conftest conftest.*; do
3335  test -f "$ac_file" || continue
3336  case $ac_file in
3337    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3338    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3339	  break;;
3340    * ) break;;
3341  esac
3342done
3343else
3344  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3346as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3347See \`config.log' for more details" "$LINENO" 5; }
3348fi
3349rm -f conftest conftest$ac_cv_exeext
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3351$as_echo "$ac_cv_exeext" >&6; }
3352
3353rm -f conftest.$ac_ext
3354EXEEXT=$ac_cv_exeext
3355ac_exeext=$EXEEXT
3356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357/* end confdefs.h.  */
3358#include <stdio.h>
3359int
3360main ()
3361{
3362FILE *f = fopen ("conftest.out", "w");
3363 return ferror (f) || fclose (f) != 0;
3364
3365  ;
3366  return 0;
3367}
3368_ACEOF
3369ac_clean_files="$ac_clean_files conftest.out"
3370# Check that the compiler produces executables we can run.  If not, either
3371# the compiler is broken, or we cross compile.
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3373$as_echo_n "checking whether we are cross compiling... " >&6; }
3374if test "$cross_compiling" != yes; then
3375  { { ac_try="$ac_link"
3376case "(($ac_try" in
3377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378  *) ac_try_echo=$ac_try;;
3379esac
3380eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3381$as_echo "$ac_try_echo"; } >&5
3382  (eval "$ac_link") 2>&5
3383  ac_status=$?
3384  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3385  test $ac_status = 0; }
3386  if { ac_try='./conftest$ac_cv_exeext'
3387  { { case "(($ac_try" in
3388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389  *) ac_try_echo=$ac_try;;
3390esac
3391eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3392$as_echo "$ac_try_echo"; } >&5
3393  (eval "$ac_try") 2>&5
3394  ac_status=$?
3395  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3396  test $ac_status = 0; }; }; then
3397    cross_compiling=no
3398  else
3399    if test "$cross_compiling" = maybe; then
3400	cross_compiling=yes
3401    else
3402	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3403$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3404as_fn_error $? "cannot run C compiled programs.
3405If you meant to cross compile, use \`--host'.
3406See \`config.log' for more details" "$LINENO" 5; }
3407    fi
3408  fi
3409fi
3410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3411$as_echo "$cross_compiling" >&6; }
3412
3413rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3414ac_clean_files=$ac_clean_files_save
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3416$as_echo_n "checking for suffix of object files... " >&6; }
3417if ${ac_cv_objext+:} false; then :
3418  $as_echo_n "(cached) " >&6
3419else
3420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421/* end confdefs.h.  */
3422
3423int
3424main ()
3425{
3426
3427  ;
3428  return 0;
3429}
3430_ACEOF
3431rm -f conftest.o conftest.obj
3432if { { ac_try="$ac_compile"
3433case "(($ac_try" in
3434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435  *) ac_try_echo=$ac_try;;
3436esac
3437eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3438$as_echo "$ac_try_echo"; } >&5
3439  (eval "$ac_compile") 2>&5
3440  ac_status=$?
3441  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442  test $ac_status = 0; }; then :
3443  for ac_file in conftest.o conftest.obj conftest.*; do
3444  test -f "$ac_file" || continue;
3445  case $ac_file in
3446    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3447    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3448       break;;
3449  esac
3450done
3451else
3452  $as_echo "$as_me: failed program was:" >&5
3453sed 's/^/| /' conftest.$ac_ext >&5
3454
3455{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457as_fn_error $? "cannot compute suffix of object files: cannot compile
3458See \`config.log' for more details" "$LINENO" 5; }
3459fi
3460rm -f conftest.$ac_cv_objext conftest.$ac_ext
3461fi
3462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3463$as_echo "$ac_cv_objext" >&6; }
3464OBJEXT=$ac_cv_objext
3465ac_objext=$OBJEXT
3466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3467$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3468if ${ac_cv_c_compiler_gnu+:} false; then :
3469  $as_echo_n "(cached) " >&6
3470else
3471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472/* end confdefs.h.  */
3473
3474int
3475main ()
3476{
3477#ifndef __GNUC__
3478       choke me
3479#endif
3480
3481  ;
3482  return 0;
3483}
3484_ACEOF
3485if ac_fn_c_try_compile "$LINENO"; then :
3486  ac_compiler_gnu=yes
3487else
3488  ac_compiler_gnu=no
3489fi
3490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3491ac_cv_c_compiler_gnu=$ac_compiler_gnu
3492
3493fi
3494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3495$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3496if test $ac_compiler_gnu = yes; then
3497  GCC=yes
3498else
3499  GCC=
3500fi
3501ac_test_CFLAGS=${CFLAGS+set}
3502ac_save_CFLAGS=$CFLAGS
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3504$as_echo_n "checking whether $CC accepts -g... " >&6; }
3505if ${ac_cv_prog_cc_g+:} false; then :
3506  $as_echo_n "(cached) " >&6
3507else
3508  ac_save_c_werror_flag=$ac_c_werror_flag
3509   ac_c_werror_flag=yes
3510   ac_cv_prog_cc_g=no
3511   CFLAGS="-g"
3512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513/* end confdefs.h.  */
3514
3515int
3516main ()
3517{
3518
3519  ;
3520  return 0;
3521}
3522_ACEOF
3523if ac_fn_c_try_compile "$LINENO"; then :
3524  ac_cv_prog_cc_g=yes
3525else
3526  CFLAGS=""
3527      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528/* end confdefs.h.  */
3529
3530int
3531main ()
3532{
3533
3534  ;
3535  return 0;
3536}
3537_ACEOF
3538if ac_fn_c_try_compile "$LINENO"; then :
3539
3540else
3541  ac_c_werror_flag=$ac_save_c_werror_flag
3542	 CFLAGS="-g"
3543	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544/* end confdefs.h.  */
3545
3546int
3547main ()
3548{
3549
3550  ;
3551  return 0;
3552}
3553_ACEOF
3554if ac_fn_c_try_compile "$LINENO"; then :
3555  ac_cv_prog_cc_g=yes
3556fi
3557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558fi
3559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560fi
3561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562   ac_c_werror_flag=$ac_save_c_werror_flag
3563fi
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3565$as_echo "$ac_cv_prog_cc_g" >&6; }
3566if test "$ac_test_CFLAGS" = set; then
3567  CFLAGS=$ac_save_CFLAGS
3568elif test $ac_cv_prog_cc_g = yes; then
3569  if test "$GCC" = yes; then
3570    CFLAGS="-g -O2"
3571  else
3572    CFLAGS="-g"
3573  fi
3574else
3575  if test "$GCC" = yes; then
3576    CFLAGS="-O2"
3577  else
3578    CFLAGS=
3579  fi
3580fi
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3582$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3583if ${ac_cv_prog_cc_c89+:} false; then :
3584  $as_echo_n "(cached) " >&6
3585else
3586  ac_cv_prog_cc_c89=no
3587ac_save_CC=$CC
3588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589/* end confdefs.h.  */
3590#include <stdarg.h>
3591#include <stdio.h>
3592struct stat;
3593/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3594struct buf { int x; };
3595FILE * (*rcsopen) (struct buf *, struct stat *, int);
3596static char *e (p, i)
3597     char **p;
3598     int i;
3599{
3600  return p[i];
3601}
3602static char *f (char * (*g) (char **, int), char **p, ...)
3603{
3604  char *s;
3605  va_list v;
3606  va_start (v,p);
3607  s = g (p, va_arg (v,int));
3608  va_end (v);
3609  return s;
3610}
3611
3612/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3613   function prototypes and stuff, but not '\xHH' hex character constants.
3614   These don't provoke an error unfortunately, instead are silently treated
3615   as 'x'.  The following induces an error, until -std is added to get
3616   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3617   array size at least.  It's necessary to write '\x00'==0 to get something
3618   that's true only with -std.  */
3619int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3620
3621/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3622   inside strings and character constants.  */
3623#define FOO(x) 'x'
3624int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3625
3626int test (int i, double x);
3627struct s1 {int (*f) (int a);};
3628struct s2 {int (*f) (double a);};
3629int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3630int argc;
3631char **argv;
3632int
3633main ()
3634{
3635return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3636  ;
3637  return 0;
3638}
3639_ACEOF
3640for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3641	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3642do
3643  CC="$ac_save_CC $ac_arg"
3644  if ac_fn_c_try_compile "$LINENO"; then :
3645  ac_cv_prog_cc_c89=$ac_arg
3646fi
3647rm -f core conftest.err conftest.$ac_objext
3648  test "x$ac_cv_prog_cc_c89" != "xno" && break
3649done
3650rm -f conftest.$ac_ext
3651CC=$ac_save_CC
3652
3653fi
3654# AC_CACHE_VAL
3655case "x$ac_cv_prog_cc_c89" in
3656  x)
3657    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3658$as_echo "none needed" >&6; } ;;
3659  xno)
3660    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3661$as_echo "unsupported" >&6; } ;;
3662  *)
3663    CC="$CC $ac_cv_prog_cc_c89"
3664    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3665$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3666esac
3667if test "x$ac_cv_prog_cc_c89" != xno; then :
3668
3669fi
3670
3671ac_ext=c
3672ac_cpp='$CPP $CPPFLAGS'
3673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3675ac_compiler_gnu=$ac_cv_c_compiler_gnu
3676
3677ac_ext=c
3678ac_cpp='$CPP $CPPFLAGS'
3679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3681ac_compiler_gnu=$ac_cv_c_compiler_gnu
3682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3683$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3684if ${am_cv_prog_cc_c_o+:} false; then :
3685  $as_echo_n "(cached) " >&6
3686else
3687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688/* end confdefs.h.  */
3689
3690int
3691main ()
3692{
3693
3694  ;
3695  return 0;
3696}
3697_ACEOF
3698  # Make sure it works both with $CC and with simple cc.
3699  # Following AC_PROG_CC_C_O, we do the test twice because some
3700  # compilers refuse to overwrite an existing .o file with -o,
3701  # though they will create one.
3702  am_cv_prog_cc_c_o=yes
3703  for am_i in 1 2; do
3704    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3705   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3706   ac_status=$?
3707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708   (exit $ac_status); } \
3709         && test -f conftest2.$ac_objext; then
3710      : OK
3711    else
3712      am_cv_prog_cc_c_o=no
3713      break
3714    fi
3715  done
3716  rm -f core conftest*
3717  unset am_i
3718fi
3719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3720$as_echo "$am_cv_prog_cc_c_o" >&6; }
3721if test "$am_cv_prog_cc_c_o" != yes; then
3722   # Losing compiler, so override with the script.
3723   # FIXME: It is wrong to rewrite CC.
3724   # But if we don't then we get into trouble of one sort or another.
3725   # A longer-term fix would be to have automake use am__CC in this case,
3726   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3727   CC="$am_aux_dir/compile $CC"
3728fi
3729ac_ext=c
3730ac_cpp='$CPP $CPPFLAGS'
3731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3733ac_compiler_gnu=$ac_cv_c_compiler_gnu
3734
3735
3736depcc="$CC"   am_compiler_list=
3737
3738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3739$as_echo_n "checking dependency style of $depcc... " >&6; }
3740if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3741  $as_echo_n "(cached) " >&6
3742else
3743  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3744  # We make a subdir and do the tests there.  Otherwise we can end up
3745  # making bogus files that we don't know about and never remove.  For
3746  # instance it was reported that on HP-UX the gcc test will end up
3747  # making a dummy file named 'D' -- because '-MD' means "put the output
3748  # in D".
3749  rm -rf conftest.dir
3750  mkdir conftest.dir
3751  # Copy depcomp to subdir because otherwise we won't find it if we're
3752  # using a relative directory.
3753  cp "$am_depcomp" conftest.dir
3754  cd conftest.dir
3755  # We will build objects and dependencies in a subdirectory because
3756  # it helps to detect inapplicable dependency modes.  For instance
3757  # both Tru64's cc and ICC support -MD to output dependencies as a
3758  # side effect of compilation, but ICC will put the dependencies in
3759  # the current directory while Tru64 will put them in the object
3760  # directory.
3761  mkdir sub
3762
3763  am_cv_CC_dependencies_compiler_type=none
3764  if test "$am_compiler_list" = ""; then
3765     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3766  fi
3767  am__universal=false
3768  case " $depcc " in #(
3769     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3770     esac
3771
3772  for depmode in $am_compiler_list; do
3773    # Setup a source with many dependencies, because some compilers
3774    # like to wrap large dependency lists on column 80 (with \), and
3775    # we should not choose a depcomp mode which is confused by this.
3776    #
3777    # We need to recreate these files for each test, as the compiler may
3778    # overwrite some of them when testing with obscure command lines.
3779    # This happens at least with the AIX C compiler.
3780    : > sub/conftest.c
3781    for i in 1 2 3 4 5 6; do
3782      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3783      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3784      # Solaris 10 /bin/sh.
3785      echo '/* dummy */' > sub/conftst$i.h
3786    done
3787    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3788
3789    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3790    # mode.  It turns out that the SunPro C++ compiler does not properly
3791    # handle '-M -o', and we need to detect this.  Also, some Intel
3792    # versions had trouble with output in subdirs.
3793    am__obj=sub/conftest.${OBJEXT-o}
3794    am__minus_obj="-o $am__obj"
3795    case $depmode in
3796    gcc)
3797      # This depmode causes a compiler race in universal mode.
3798      test "$am__universal" = false || continue
3799      ;;
3800    nosideeffect)
3801      # After this tag, mechanisms are not by side-effect, so they'll
3802      # only be used when explicitly requested.
3803      if test "x$enable_dependency_tracking" = xyes; then
3804	continue
3805      else
3806	break
3807      fi
3808      ;;
3809    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3810      # This compiler won't grok '-c -o', but also, the minuso test has
3811      # not run yet.  These depmodes are late enough in the game, and
3812      # so weak that their functioning should not be impacted.
3813      am__obj=conftest.${OBJEXT-o}
3814      am__minus_obj=
3815      ;;
3816    none) break ;;
3817    esac
3818    if depmode=$depmode \
3819       source=sub/conftest.c object=$am__obj \
3820       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3821       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3822         >/dev/null 2>conftest.err &&
3823       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3824       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3825       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3826       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3827      # icc doesn't choke on unknown options, it will just issue warnings
3828      # or remarks (even with -Werror).  So we grep stderr for any message
3829      # that says an option was ignored or not supported.
3830      # When given -MP, icc 7.0 and 7.1 complain thusly:
3831      #   icc: Command line warning: ignoring option '-M'; no argument required
3832      # The diagnosis changed in icc 8.0:
3833      #   icc: Command line remark: option '-MP' not supported
3834      if (grep 'ignoring option' conftest.err ||
3835          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3836        am_cv_CC_dependencies_compiler_type=$depmode
3837        break
3838      fi
3839    fi
3840  done
3841
3842  cd ..
3843  rm -rf conftest.dir
3844else
3845  am_cv_CC_dependencies_compiler_type=none
3846fi
3847
3848fi
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3850$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3851CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3852
3853 if
3854  test "x$enable_dependency_tracking" != xno \
3855  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3856  am__fastdepCC_TRUE=
3857  am__fastdepCC_FALSE='#'
3858else
3859  am__fastdepCC_TRUE='#'
3860  am__fastdepCC_FALSE=
3861fi
3862
3863
3864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3865$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3866if ${ac_cv_prog_cc_c99+:} false; then :
3867  $as_echo_n "(cached) " >&6
3868else
3869  ac_cv_prog_cc_c99=no
3870ac_save_CC=$CC
3871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872/* end confdefs.h.  */
3873#include <stdarg.h>
3874#include <stdbool.h>
3875#include <stdlib.h>
3876#include <wchar.h>
3877#include <stdio.h>
3878
3879// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3880#define debug(...) fprintf (stderr, __VA_ARGS__)
3881#define showlist(...) puts (#__VA_ARGS__)
3882#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3883static void
3884test_varargs_macros (void)
3885{
3886  int x = 1234;
3887  int y = 5678;
3888  debug ("Flag");
3889  debug ("X = %d\n", x);
3890  showlist (The first, second, and third items.);
3891  report (x>y, "x is %d but y is %d", x, y);
3892}
3893
3894// Check long long types.
3895#define BIG64 18446744073709551615ull
3896#define BIG32 4294967295ul
3897#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3898#if !BIG_OK
3899  your preprocessor is broken;
3900#endif
3901#if BIG_OK
3902#else
3903  your preprocessor is broken;
3904#endif
3905static long long int bignum = -9223372036854775807LL;
3906static unsigned long long int ubignum = BIG64;
3907
3908struct incomplete_array
3909{
3910  int datasize;
3911  double data[];
3912};
3913
3914struct named_init {
3915  int number;
3916  const wchar_t *name;
3917  double average;
3918};
3919
3920typedef const char *ccp;
3921
3922static inline int
3923test_restrict (ccp restrict text)
3924{
3925  // See if C++-style comments work.
3926  // Iterate through items via the restricted pointer.
3927  // Also check for declarations in for loops.
3928  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3929    continue;
3930  return 0;
3931}
3932
3933// Check varargs and va_copy.
3934static void
3935test_varargs (const char *format, ...)
3936{
3937  va_list args;
3938  va_start (args, format);
3939  va_list args_copy;
3940  va_copy (args_copy, args);
3941
3942  const char *str;
3943  int number;
3944  float fnumber;
3945
3946  while (*format)
3947    {
3948      switch (*format++)
3949	{
3950	case 's': // string
3951	  str = va_arg (args_copy, const char *);
3952	  break;
3953	case 'd': // int
3954	  number = va_arg (args_copy, int);
3955	  break;
3956	case 'f': // float
3957	  fnumber = va_arg (args_copy, double);
3958	  break;
3959	default:
3960	  break;
3961	}
3962    }
3963  va_end (args_copy);
3964  va_end (args);
3965}
3966
3967int
3968main ()
3969{
3970
3971  // Check bool.
3972  _Bool success = false;
3973
3974  // Check restrict.
3975  if (test_restrict ("String literal") == 0)
3976    success = true;
3977  char *restrict newvar = "Another string";
3978
3979  // Check varargs.
3980  test_varargs ("s, d' f .", "string", 65, 34.234);
3981  test_varargs_macros ();
3982
3983  // Check flexible array members.
3984  struct incomplete_array *ia =
3985    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3986  ia->datasize = 10;
3987  for (int i = 0; i < ia->datasize; ++i)
3988    ia->data[i] = i * 1.234;
3989
3990  // Check named initializers.
3991  struct named_init ni = {
3992    .number = 34,
3993    .name = L"Test wide string",
3994    .average = 543.34343,
3995  };
3996
3997  ni.number = 58;
3998
3999  int dynamic_array[ni.number];
4000  dynamic_array[ni.number - 1] = 543;
4001
4002  // work around unused variable warnings
4003  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4004	  || dynamic_array[ni.number - 1] != 543);
4005
4006  ;
4007  return 0;
4008}
4009_ACEOF
4010for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4011do
4012  CC="$ac_save_CC $ac_arg"
4013  if ac_fn_c_try_compile "$LINENO"; then :
4014  ac_cv_prog_cc_c99=$ac_arg
4015fi
4016rm -f core conftest.err conftest.$ac_objext
4017  test "x$ac_cv_prog_cc_c99" != "xno" && break
4018done
4019rm -f conftest.$ac_ext
4020CC=$ac_save_CC
4021
4022fi
4023# AC_CACHE_VAL
4024case "x$ac_cv_prog_cc_c99" in
4025  x)
4026    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4027$as_echo "none needed" >&6; } ;;
4028  xno)
4029    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4030$as_echo "unsupported" >&6; } ;;
4031  *)
4032    CC="$CC $ac_cv_prog_cc_c99"
4033    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4034$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4035esac
4036if test "x$ac_cv_prog_cc_c99" != xno; then :
4037
4038fi
4039
4040
4041
4042ac_ext=c
4043ac_cpp='$CPP $CPPFLAGS'
4044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4046ac_compiler_gnu=$ac_cv_c_compiler_gnu
4047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4048$as_echo_n "checking how to run the C preprocessor... " >&6; }
4049# On Suns, sometimes $CPP names a directory.
4050if test -n "$CPP" && test -d "$CPP"; then
4051  CPP=
4052fi
4053if test -z "$CPP"; then
4054  if ${ac_cv_prog_CPP+:} false; then :
4055  $as_echo_n "(cached) " >&6
4056else
4057      # Double quotes because CPP needs to be expanded
4058    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4059    do
4060      ac_preproc_ok=false
4061for ac_c_preproc_warn_flag in '' yes
4062do
4063  # Use a header file that comes with gcc, so configuring glibc
4064  # with a fresh cross-compiler works.
4065  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4066  # <limits.h> exists even on freestanding compilers.
4067  # On the NeXT, cc -E runs the code through the compiler's parser,
4068  # not just through cpp. "Syntax error" is here to catch this case.
4069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070/* end confdefs.h.  */
4071#ifdef __STDC__
4072# include <limits.h>
4073#else
4074# include <assert.h>
4075#endif
4076		     Syntax error
4077_ACEOF
4078if ac_fn_c_try_cpp "$LINENO"; then :
4079
4080else
4081  # Broken: fails on valid input.
4082continue
4083fi
4084rm -f conftest.err conftest.i conftest.$ac_ext
4085
4086  # OK, works on sane cases.  Now check whether nonexistent headers
4087  # can be detected and how.
4088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089/* end confdefs.h.  */
4090#include <ac_nonexistent.h>
4091_ACEOF
4092if ac_fn_c_try_cpp "$LINENO"; then :
4093  # Broken: success on invalid input.
4094continue
4095else
4096  # Passes both tests.
4097ac_preproc_ok=:
4098break
4099fi
4100rm -f conftest.err conftest.i conftest.$ac_ext
4101
4102done
4103# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4104rm -f conftest.i conftest.err conftest.$ac_ext
4105if $ac_preproc_ok; then :
4106  break
4107fi
4108
4109    done
4110    ac_cv_prog_CPP=$CPP
4111
4112fi
4113  CPP=$ac_cv_prog_CPP
4114else
4115  ac_cv_prog_CPP=$CPP
4116fi
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4118$as_echo "$CPP" >&6; }
4119ac_preproc_ok=false
4120for ac_c_preproc_warn_flag in '' yes
4121do
4122  # Use a header file that comes with gcc, so configuring glibc
4123  # with a fresh cross-compiler works.
4124  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4125  # <limits.h> exists even on freestanding compilers.
4126  # On the NeXT, cc -E runs the code through the compiler's parser,
4127  # not just through cpp. "Syntax error" is here to catch this case.
4128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129/* end confdefs.h.  */
4130#ifdef __STDC__
4131# include <limits.h>
4132#else
4133# include <assert.h>
4134#endif
4135		     Syntax error
4136_ACEOF
4137if ac_fn_c_try_cpp "$LINENO"; then :
4138
4139else
4140  # Broken: fails on valid input.
4141continue
4142fi
4143rm -f conftest.err conftest.i conftest.$ac_ext
4144
4145  # OK, works on sane cases.  Now check whether nonexistent headers
4146  # can be detected and how.
4147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148/* end confdefs.h.  */
4149#include <ac_nonexistent.h>
4150_ACEOF
4151if ac_fn_c_try_cpp "$LINENO"; then :
4152  # Broken: success on invalid input.
4153continue
4154else
4155  # Passes both tests.
4156ac_preproc_ok=:
4157break
4158fi
4159rm -f conftest.err conftest.i conftest.$ac_ext
4160
4161done
4162# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4163rm -f conftest.i conftest.err conftest.$ac_ext
4164if $ac_preproc_ok; then :
4165
4166else
4167  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4168$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4169as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4170See \`config.log' for more details" "$LINENO" 5; }
4171fi
4172
4173ac_ext=c
4174ac_cpp='$CPP $CPPFLAGS'
4175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4177ac_compiler_gnu=$ac_cv_c_compiler_gnu
4178
4179
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4181$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4182if ${ac_cv_path_GREP+:} false; then :
4183  $as_echo_n "(cached) " >&6
4184else
4185  if test -z "$GREP"; then
4186  ac_path_GREP_found=false
4187  # Loop through the user's path and test for each of PROGNAME-LIST
4188  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4190do
4191  IFS=$as_save_IFS
4192  test -z "$as_dir" && as_dir=.
4193    for ac_prog in grep ggrep; do
4194    for ac_exec_ext in '' $ac_executable_extensions; do
4195      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4196      as_fn_executable_p "$ac_path_GREP" || continue
4197# Check for GNU ac_path_GREP and select it if it is found.
4198  # Check for GNU $ac_path_GREP
4199case `"$ac_path_GREP" --version 2>&1` in
4200*GNU*)
4201  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4202*)
4203  ac_count=0
4204  $as_echo_n 0123456789 >"conftest.in"
4205  while :
4206  do
4207    cat "conftest.in" "conftest.in" >"conftest.tmp"
4208    mv "conftest.tmp" "conftest.in"
4209    cp "conftest.in" "conftest.nl"
4210    $as_echo 'GREP' >> "conftest.nl"
4211    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4212    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4213    as_fn_arith $ac_count + 1 && ac_count=$as_val
4214    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4215      # Best one so far, save it but keep looking for a better one
4216      ac_cv_path_GREP="$ac_path_GREP"
4217      ac_path_GREP_max=$ac_count
4218    fi
4219    # 10*(2^10) chars as input seems more than enough
4220    test $ac_count -gt 10 && break
4221  done
4222  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4223esac
4224
4225      $ac_path_GREP_found && break 3
4226    done
4227  done
4228  done
4229IFS=$as_save_IFS
4230  if test -z "$ac_cv_path_GREP"; then
4231    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4232  fi
4233else
4234  ac_cv_path_GREP=$GREP
4235fi
4236
4237fi
4238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4239$as_echo "$ac_cv_path_GREP" >&6; }
4240 GREP="$ac_cv_path_GREP"
4241
4242
4243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4244$as_echo_n "checking for egrep... " >&6; }
4245if ${ac_cv_path_EGREP+:} false; then :
4246  $as_echo_n "(cached) " >&6
4247else
4248  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4249   then ac_cv_path_EGREP="$GREP -E"
4250   else
4251     if test -z "$EGREP"; then
4252  ac_path_EGREP_found=false
4253  # Loop through the user's path and test for each of PROGNAME-LIST
4254  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4256do
4257  IFS=$as_save_IFS
4258  test -z "$as_dir" && as_dir=.
4259    for ac_prog in egrep; do
4260    for ac_exec_ext in '' $ac_executable_extensions; do
4261      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4262      as_fn_executable_p "$ac_path_EGREP" || continue
4263# Check for GNU ac_path_EGREP and select it if it is found.
4264  # Check for GNU $ac_path_EGREP
4265case `"$ac_path_EGREP" --version 2>&1` in
4266*GNU*)
4267  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4268*)
4269  ac_count=0
4270  $as_echo_n 0123456789 >"conftest.in"
4271  while :
4272  do
4273    cat "conftest.in" "conftest.in" >"conftest.tmp"
4274    mv "conftest.tmp" "conftest.in"
4275    cp "conftest.in" "conftest.nl"
4276    $as_echo 'EGREP' >> "conftest.nl"
4277    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4278    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4279    as_fn_arith $ac_count + 1 && ac_count=$as_val
4280    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4281      # Best one so far, save it but keep looking for a better one
4282      ac_cv_path_EGREP="$ac_path_EGREP"
4283      ac_path_EGREP_max=$ac_count
4284    fi
4285    # 10*(2^10) chars as input seems more than enough
4286    test $ac_count -gt 10 && break
4287  done
4288  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4289esac
4290
4291      $ac_path_EGREP_found && break 3
4292    done
4293  done
4294  done
4295IFS=$as_save_IFS
4296  if test -z "$ac_cv_path_EGREP"; then
4297    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4298  fi
4299else
4300  ac_cv_path_EGREP=$EGREP
4301fi
4302
4303   fi
4304fi
4305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4306$as_echo "$ac_cv_path_EGREP" >&6; }
4307 EGREP="$ac_cv_path_EGREP"
4308
4309
4310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4311$as_echo_n "checking for ANSI C header files... " >&6; }
4312if ${ac_cv_header_stdc+:} false; then :
4313  $as_echo_n "(cached) " >&6
4314else
4315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316/* end confdefs.h.  */
4317#include <stdlib.h>
4318#include <stdarg.h>
4319#include <string.h>
4320#include <float.h>
4321
4322int
4323main ()
4324{
4325
4326  ;
4327  return 0;
4328}
4329_ACEOF
4330if ac_fn_c_try_compile "$LINENO"; then :
4331  ac_cv_header_stdc=yes
4332else
4333  ac_cv_header_stdc=no
4334fi
4335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4336
4337if test $ac_cv_header_stdc = yes; then
4338  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340/* end confdefs.h.  */
4341#include <string.h>
4342
4343_ACEOF
4344if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4345  $EGREP "memchr" >/dev/null 2>&1; then :
4346
4347else
4348  ac_cv_header_stdc=no
4349fi
4350rm -f conftest*
4351
4352fi
4353
4354if test $ac_cv_header_stdc = yes; then
4355  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4357/* end confdefs.h.  */
4358#include <stdlib.h>
4359
4360_ACEOF
4361if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4362  $EGREP "free" >/dev/null 2>&1; then :
4363
4364else
4365  ac_cv_header_stdc=no
4366fi
4367rm -f conftest*
4368
4369fi
4370
4371if test $ac_cv_header_stdc = yes; then
4372  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4373  if test "$cross_compiling" = yes; then :
4374  :
4375else
4376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377/* end confdefs.h.  */
4378#include <ctype.h>
4379#include <stdlib.h>
4380#if ((' ' & 0x0FF) == 0x020)
4381# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4382# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4383#else
4384# define ISLOWER(c) \
4385		   (('a' <= (c) && (c) <= 'i') \
4386		     || ('j' <= (c) && (c) <= 'r') \
4387		     || ('s' <= (c) && (c) <= 'z'))
4388# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4389#endif
4390
4391#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4392int
4393main ()
4394{
4395  int i;
4396  for (i = 0; i < 256; i++)
4397    if (XOR (islower (i), ISLOWER (i))
4398	|| toupper (i) != TOUPPER (i))
4399      return 2;
4400  return 0;
4401}
4402_ACEOF
4403if ac_fn_c_try_run "$LINENO"; then :
4404
4405else
4406  ac_cv_header_stdc=no
4407fi
4408rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4409  conftest.$ac_objext conftest.beam conftest.$ac_ext
4410fi
4411
4412fi
4413fi
4414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4415$as_echo "$ac_cv_header_stdc" >&6; }
4416if test $ac_cv_header_stdc = yes; then
4417
4418$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4419
4420fi
4421
4422# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4423for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4424		  inttypes.h stdint.h unistd.h
4425do :
4426  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4427ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4428"
4429if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4430  cat >>confdefs.h <<_ACEOF
4431#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4432_ACEOF
4433
4434fi
4435
4436done
4437
4438
4439
4440
4441
4442
4443ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4444if test "x$ac_cv_have_decl___clang__" = xyes; then :
4445  CLANGCC="yes"
4446else
4447  CLANGCC="no"
4448fi
4449
4450ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4451if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4452  INTELCC="yes"
4453else
4454  INTELCC="no"
4455fi
4456
4457ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4458if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4459  SUNCC="yes"
4460else
4461  SUNCC="no"
4462fi
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4473	if test -n "$ac_tool_prefix"; then
4474  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4475set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4477$as_echo_n "checking for $ac_word... " >&6; }
4478if ${ac_cv_path_PKG_CONFIG+:} false; then :
4479  $as_echo_n "(cached) " >&6
4480else
4481  case $PKG_CONFIG in
4482  [\\/]* | ?:[\\/]*)
4483  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4484  ;;
4485  *)
4486  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487for as_dir in $PATH
4488do
4489  IFS=$as_save_IFS
4490  test -z "$as_dir" && as_dir=.
4491    for ac_exec_ext in '' $ac_executable_extensions; do
4492  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4493    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4494    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4495    break 2
4496  fi
4497done
4498  done
4499IFS=$as_save_IFS
4500
4501  ;;
4502esac
4503fi
4504PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4505if test -n "$PKG_CONFIG"; then
4506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4507$as_echo "$PKG_CONFIG" >&6; }
4508else
4509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4510$as_echo "no" >&6; }
4511fi
4512
4513
4514fi
4515if test -z "$ac_cv_path_PKG_CONFIG"; then
4516  ac_pt_PKG_CONFIG=$PKG_CONFIG
4517  # Extract the first word of "pkg-config", so it can be a program name with args.
4518set dummy pkg-config; ac_word=$2
4519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4520$as_echo_n "checking for $ac_word... " >&6; }
4521if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4522  $as_echo_n "(cached) " >&6
4523else
4524  case $ac_pt_PKG_CONFIG in
4525  [\\/]* | ?:[\\/]*)
4526  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4527  ;;
4528  *)
4529  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530for as_dir in $PATH
4531do
4532  IFS=$as_save_IFS
4533  test -z "$as_dir" && as_dir=.
4534    for ac_exec_ext in '' $ac_executable_extensions; do
4535  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4536    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4537    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4538    break 2
4539  fi
4540done
4541  done
4542IFS=$as_save_IFS
4543
4544  ;;
4545esac
4546fi
4547ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4548if test -n "$ac_pt_PKG_CONFIG"; then
4549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4550$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4551else
4552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4553$as_echo "no" >&6; }
4554fi
4555
4556  if test "x$ac_pt_PKG_CONFIG" = x; then
4557    PKG_CONFIG=""
4558  else
4559    case $cross_compiling:$ac_tool_warned in
4560yes:)
4561{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4562$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4563ac_tool_warned=yes ;;
4564esac
4565    PKG_CONFIG=$ac_pt_PKG_CONFIG
4566  fi
4567else
4568  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4569fi
4570
4571fi
4572if test -n "$PKG_CONFIG"; then
4573	_pkg_min_version=0.9.0
4574	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4575$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4576	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4577		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4578$as_echo "yes" >&6; }
4579	else
4580		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581$as_echo "no" >&6; }
4582		PKG_CONFIG=""
4583	fi
4584fi
4585# Make sure we can run config.sub.
4586$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4587  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4588
4589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4590$as_echo_n "checking build system type... " >&6; }
4591if ${ac_cv_build+:} false; then :
4592  $as_echo_n "(cached) " >&6
4593else
4594  ac_build_alias=$build_alias
4595test "x$ac_build_alias" = x &&
4596  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4597test "x$ac_build_alias" = x &&
4598  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4599ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4600  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4601
4602fi
4603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4604$as_echo "$ac_cv_build" >&6; }
4605case $ac_cv_build in
4606*-*-*) ;;
4607*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4608esac
4609build=$ac_cv_build
4610ac_save_IFS=$IFS; IFS='-'
4611set x $ac_cv_build
4612shift
4613build_cpu=$1
4614build_vendor=$2
4615shift; shift
4616# Remember, the first character of IFS is used to create $*,
4617# except with old shells:
4618build_os=$*
4619IFS=$ac_save_IFS
4620case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4621
4622
4623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4624$as_echo_n "checking host system type... " >&6; }
4625if ${ac_cv_host+:} false; then :
4626  $as_echo_n "(cached) " >&6
4627else
4628  if test "x$host_alias" = x; then
4629  ac_cv_host=$ac_cv_build
4630else
4631  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4632    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4633fi
4634
4635fi
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4637$as_echo "$ac_cv_host" >&6; }
4638case $ac_cv_host in
4639*-*-*) ;;
4640*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4641esac
4642host=$ac_cv_host
4643ac_save_IFS=$IFS; IFS='-'
4644set x $ac_cv_host
4645shift
4646host_cpu=$1
4647host_vendor=$2
4648shift; shift
4649# Remember, the first character of IFS is used to create $*,
4650# except with old shells:
4651host_os=$*
4652IFS=$ac_save_IFS
4653case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4654
4655
4656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4657$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4658if ${ac_cv_path_SED+:} false; then :
4659  $as_echo_n "(cached) " >&6
4660else
4661            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4662     for ac_i in 1 2 3 4 5 6 7; do
4663       ac_script="$ac_script$as_nl$ac_script"
4664     done
4665     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4666     { ac_script=; unset ac_script;}
4667     if test -z "$SED"; then
4668  ac_path_SED_found=false
4669  # Loop through the user's path and test for each of PROGNAME-LIST
4670  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671for as_dir in $PATH
4672do
4673  IFS=$as_save_IFS
4674  test -z "$as_dir" && as_dir=.
4675    for ac_prog in sed gsed; do
4676    for ac_exec_ext in '' $ac_executable_extensions; do
4677      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4678      as_fn_executable_p "$ac_path_SED" || continue
4679# Check for GNU ac_path_SED and select it if it is found.
4680  # Check for GNU $ac_path_SED
4681case `"$ac_path_SED" --version 2>&1` in
4682*GNU*)
4683  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4684*)
4685  ac_count=0
4686  $as_echo_n 0123456789 >"conftest.in"
4687  while :
4688  do
4689    cat "conftest.in" "conftest.in" >"conftest.tmp"
4690    mv "conftest.tmp" "conftest.in"
4691    cp "conftest.in" "conftest.nl"
4692    $as_echo '' >> "conftest.nl"
4693    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4694    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4695    as_fn_arith $ac_count + 1 && ac_count=$as_val
4696    if test $ac_count -gt ${ac_path_SED_max-0}; then
4697      # Best one so far, save it but keep looking for a better one
4698      ac_cv_path_SED="$ac_path_SED"
4699      ac_path_SED_max=$ac_count
4700    fi
4701    # 10*(2^10) chars as input seems more than enough
4702    test $ac_count -gt 10 && break
4703  done
4704  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4705esac
4706
4707      $ac_path_SED_found && break 3
4708    done
4709  done
4710  done
4711IFS=$as_save_IFS
4712  if test -z "$ac_cv_path_SED"; then
4713    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4714  fi
4715else
4716  ac_cv_path_SED=$SED
4717fi
4718
4719fi
4720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4721$as_echo "$ac_cv_path_SED" >&6; }
4722 SED="$ac_cv_path_SED"
4723  rm -f conftest.sed
4724
4725
4726
4727
4728
4729
4730# Check whether --enable-selective-werror was given.
4731if test "${enable_selective_werror+set}" = set; then :
4732  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4733else
4734  SELECTIVE_WERROR=yes
4735fi
4736
4737
4738
4739
4740
4741# -v is too short to test reliably with XORG_TESTSET_CFLAG
4742if test "x$SUNCC" = "xyes"; then
4743    BASE_CFLAGS="-v"
4744else
4745    BASE_CFLAGS=""
4746fi
4747
4748# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762xorg_testset_save_CFLAGS="$CFLAGS"
4763
4764if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4765	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4766	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4767$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4768if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4769  $as_echo_n "(cached) " >&6
4770else
4771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772/* end confdefs.h.  */
4773int i;
4774_ACEOF
4775if ac_fn_c_try_compile "$LINENO"; then :
4776  xorg_cv_cc_flag_unknown_warning_option=yes
4777else
4778  xorg_cv_cc_flag_unknown_warning_option=no
4779fi
4780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4781fi
4782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4783$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4784	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4785	CFLAGS="$xorg_testset_save_CFLAGS"
4786fi
4787
4788if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4789	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4790		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4791	fi
4792	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4793	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4794$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4795if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4796  $as_echo_n "(cached) " >&6
4797else
4798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4799/* end confdefs.h.  */
4800int i;
4801_ACEOF
4802if ac_fn_c_try_compile "$LINENO"; then :
4803  xorg_cv_cc_flag_unused_command_line_argument=yes
4804else
4805  xorg_cv_cc_flag_unused_command_line_argument=no
4806fi
4807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808fi
4809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4810$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4811	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4812	CFLAGS="$xorg_testset_save_CFLAGS"
4813fi
4814
4815found="no"
4816
4817	if test $found = "no" ; then
4818		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4819			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4820		fi
4821
4822		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4823			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4824		fi
4825
4826		CFLAGS="$CFLAGS -Wall"
4827
4828		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4829$as_echo_n "checking if $CC supports -Wall... " >&6; }
4830		cacheid=xorg_cv_cc_flag__Wall
4831		if eval \${$cacheid+:} false; then :
4832  $as_echo_n "(cached) " >&6
4833else
4834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835/* end confdefs.h.  */
4836int i;
4837int
4838main ()
4839{
4840
4841  ;
4842  return 0;
4843}
4844_ACEOF
4845if ac_fn_c_try_link "$LINENO"; then :
4846  eval $cacheid=yes
4847else
4848  eval $cacheid=no
4849fi
4850rm -f core conftest.err conftest.$ac_objext \
4851    conftest$ac_exeext conftest.$ac_ext
4852fi
4853
4854
4855		CFLAGS="$xorg_testset_save_CFLAGS"
4856
4857		eval supported=\$$cacheid
4858		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4859$as_echo "$supported" >&6; }
4860		if test "$supported" = "yes" ; then
4861			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4862			found="yes"
4863		fi
4864	fi
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880xorg_testset_save_CFLAGS="$CFLAGS"
4881
4882if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4883	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4884	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4885$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4886if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4887  $as_echo_n "(cached) " >&6
4888else
4889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890/* end confdefs.h.  */
4891int i;
4892_ACEOF
4893if ac_fn_c_try_compile "$LINENO"; then :
4894  xorg_cv_cc_flag_unknown_warning_option=yes
4895else
4896  xorg_cv_cc_flag_unknown_warning_option=no
4897fi
4898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4899fi
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4901$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4902	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4903	CFLAGS="$xorg_testset_save_CFLAGS"
4904fi
4905
4906if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4907	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4908		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4909	fi
4910	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4911	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4912$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4913if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4914  $as_echo_n "(cached) " >&6
4915else
4916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917/* end confdefs.h.  */
4918int i;
4919_ACEOF
4920if ac_fn_c_try_compile "$LINENO"; then :
4921  xorg_cv_cc_flag_unused_command_line_argument=yes
4922else
4923  xorg_cv_cc_flag_unused_command_line_argument=no
4924fi
4925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4926fi
4927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4928$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4929	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4930	CFLAGS="$xorg_testset_save_CFLAGS"
4931fi
4932
4933found="no"
4934
4935	if test $found = "no" ; then
4936		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4937			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4938		fi
4939
4940		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4941			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4942		fi
4943
4944		CFLAGS="$CFLAGS -Wpointer-arith"
4945
4946		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4947$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4948		cacheid=xorg_cv_cc_flag__Wpointer_arith
4949		if eval \${$cacheid+:} false; then :
4950  $as_echo_n "(cached) " >&6
4951else
4952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953/* end confdefs.h.  */
4954int i;
4955int
4956main ()
4957{
4958
4959  ;
4960  return 0;
4961}
4962_ACEOF
4963if ac_fn_c_try_link "$LINENO"; then :
4964  eval $cacheid=yes
4965else
4966  eval $cacheid=no
4967fi
4968rm -f core conftest.err conftest.$ac_objext \
4969    conftest$ac_exeext conftest.$ac_ext
4970fi
4971
4972
4973		CFLAGS="$xorg_testset_save_CFLAGS"
4974
4975		eval supported=\$$cacheid
4976		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4977$as_echo "$supported" >&6; }
4978		if test "$supported" = "yes" ; then
4979			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4980			found="yes"
4981		fi
4982	fi
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998xorg_testset_save_CFLAGS="$CFLAGS"
4999
5000if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5001	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5002	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5003$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5004if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5005  $as_echo_n "(cached) " >&6
5006else
5007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5008/* end confdefs.h.  */
5009int i;
5010_ACEOF
5011if ac_fn_c_try_compile "$LINENO"; then :
5012  xorg_cv_cc_flag_unknown_warning_option=yes
5013else
5014  xorg_cv_cc_flag_unknown_warning_option=no
5015fi
5016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017fi
5018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5019$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5020	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5021	CFLAGS="$xorg_testset_save_CFLAGS"
5022fi
5023
5024if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5025	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5026		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5027	fi
5028	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5029	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5030$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5031if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5032  $as_echo_n "(cached) " >&6
5033else
5034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5035/* end confdefs.h.  */
5036int i;
5037_ACEOF
5038if ac_fn_c_try_compile "$LINENO"; then :
5039  xorg_cv_cc_flag_unused_command_line_argument=yes
5040else
5041  xorg_cv_cc_flag_unused_command_line_argument=no
5042fi
5043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5044fi
5045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5046$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5047	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5048	CFLAGS="$xorg_testset_save_CFLAGS"
5049fi
5050
5051found="no"
5052
5053	if test $found = "no" ; then
5054		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5055			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5056		fi
5057
5058		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5059			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5060		fi
5061
5062		CFLAGS="$CFLAGS -Wmissing-declarations"
5063
5064		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5065$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5066		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5067		if eval \${$cacheid+:} false; then :
5068  $as_echo_n "(cached) " >&6
5069else
5070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071/* end confdefs.h.  */
5072int i;
5073int
5074main ()
5075{
5076
5077  ;
5078  return 0;
5079}
5080_ACEOF
5081if ac_fn_c_try_link "$LINENO"; then :
5082  eval $cacheid=yes
5083else
5084  eval $cacheid=no
5085fi
5086rm -f core conftest.err conftest.$ac_objext \
5087    conftest$ac_exeext conftest.$ac_ext
5088fi
5089
5090
5091		CFLAGS="$xorg_testset_save_CFLAGS"
5092
5093		eval supported=\$$cacheid
5094		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5095$as_echo "$supported" >&6; }
5096		if test "$supported" = "yes" ; then
5097			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5098			found="yes"
5099		fi
5100	fi
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116xorg_testset_save_CFLAGS="$CFLAGS"
5117
5118if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5119	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5120	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5121$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5122if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5123  $as_echo_n "(cached) " >&6
5124else
5125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5126/* end confdefs.h.  */
5127int i;
5128_ACEOF
5129if ac_fn_c_try_compile "$LINENO"; then :
5130  xorg_cv_cc_flag_unknown_warning_option=yes
5131else
5132  xorg_cv_cc_flag_unknown_warning_option=no
5133fi
5134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5135fi
5136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5137$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5138	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5139	CFLAGS="$xorg_testset_save_CFLAGS"
5140fi
5141
5142if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5143	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5144		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5145	fi
5146	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5147	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5148$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5149if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5150  $as_echo_n "(cached) " >&6
5151else
5152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153/* end confdefs.h.  */
5154int i;
5155_ACEOF
5156if ac_fn_c_try_compile "$LINENO"; then :
5157  xorg_cv_cc_flag_unused_command_line_argument=yes
5158else
5159  xorg_cv_cc_flag_unused_command_line_argument=no
5160fi
5161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5162fi
5163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5164$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5165	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5166	CFLAGS="$xorg_testset_save_CFLAGS"
5167fi
5168
5169found="no"
5170
5171	if test $found = "no" ; then
5172		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5173			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5174		fi
5175
5176		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5177			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5178		fi
5179
5180		CFLAGS="$CFLAGS -Wformat=2"
5181
5182		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5183$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5184		cacheid=xorg_cv_cc_flag__Wformat_2
5185		if eval \${$cacheid+:} false; then :
5186  $as_echo_n "(cached) " >&6
5187else
5188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5189/* end confdefs.h.  */
5190int i;
5191int
5192main ()
5193{
5194
5195  ;
5196  return 0;
5197}
5198_ACEOF
5199if ac_fn_c_try_link "$LINENO"; then :
5200  eval $cacheid=yes
5201else
5202  eval $cacheid=no
5203fi
5204rm -f core conftest.err conftest.$ac_objext \
5205    conftest$ac_exeext conftest.$ac_ext
5206fi
5207
5208
5209		CFLAGS="$xorg_testset_save_CFLAGS"
5210
5211		eval supported=\$$cacheid
5212		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5213$as_echo "$supported" >&6; }
5214		if test "$supported" = "yes" ; then
5215			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5216			found="yes"
5217		fi
5218	fi
5219
5220	if test $found = "no" ; then
5221		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5222			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5223		fi
5224
5225		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5226			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5227		fi
5228
5229		CFLAGS="$CFLAGS -Wformat"
5230
5231		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5232$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5233		cacheid=xorg_cv_cc_flag__Wformat
5234		if eval \${$cacheid+:} false; then :
5235  $as_echo_n "(cached) " >&6
5236else
5237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238/* end confdefs.h.  */
5239int i;
5240int
5241main ()
5242{
5243
5244  ;
5245  return 0;
5246}
5247_ACEOF
5248if ac_fn_c_try_link "$LINENO"; then :
5249  eval $cacheid=yes
5250else
5251  eval $cacheid=no
5252fi
5253rm -f core conftest.err conftest.$ac_objext \
5254    conftest$ac_exeext conftest.$ac_ext
5255fi
5256
5257
5258		CFLAGS="$xorg_testset_save_CFLAGS"
5259
5260		eval supported=\$$cacheid
5261		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5262$as_echo "$supported" >&6; }
5263		if test "$supported" = "yes" ; then
5264			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5265			found="yes"
5266		fi
5267	fi
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285xorg_testset_save_CFLAGS="$CFLAGS"
5286
5287if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5288	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5289	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5290$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5291if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5292  $as_echo_n "(cached) " >&6
5293else
5294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295/* end confdefs.h.  */
5296int i;
5297_ACEOF
5298if ac_fn_c_try_compile "$LINENO"; then :
5299  xorg_cv_cc_flag_unknown_warning_option=yes
5300else
5301  xorg_cv_cc_flag_unknown_warning_option=no
5302fi
5303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5304fi
5305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5306$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5307	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5308	CFLAGS="$xorg_testset_save_CFLAGS"
5309fi
5310
5311if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5312	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5313		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5314	fi
5315	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5316	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5317$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5318if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5319  $as_echo_n "(cached) " >&6
5320else
5321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322/* end confdefs.h.  */
5323int i;
5324_ACEOF
5325if ac_fn_c_try_compile "$LINENO"; then :
5326  xorg_cv_cc_flag_unused_command_line_argument=yes
5327else
5328  xorg_cv_cc_flag_unused_command_line_argument=no
5329fi
5330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5331fi
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5333$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5334	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5335	CFLAGS="$xorg_testset_save_CFLAGS"
5336fi
5337
5338found="no"
5339
5340	if test $found = "no" ; then
5341		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5342			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5343		fi
5344
5345		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5346			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5347		fi
5348
5349		CFLAGS="$CFLAGS -Wstrict-prototypes"
5350
5351		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5352$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5353		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5354		if eval \${$cacheid+:} false; then :
5355  $as_echo_n "(cached) " >&6
5356else
5357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5358/* end confdefs.h.  */
5359int i;
5360int
5361main ()
5362{
5363
5364  ;
5365  return 0;
5366}
5367_ACEOF
5368if ac_fn_c_try_link "$LINENO"; then :
5369  eval $cacheid=yes
5370else
5371  eval $cacheid=no
5372fi
5373rm -f core conftest.err conftest.$ac_objext \
5374    conftest$ac_exeext conftest.$ac_ext
5375fi
5376
5377
5378		CFLAGS="$xorg_testset_save_CFLAGS"
5379
5380		eval supported=\$$cacheid
5381		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5382$as_echo "$supported" >&6; }
5383		if test "$supported" = "yes" ; then
5384			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5385			found="yes"
5386		fi
5387	fi
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403xorg_testset_save_CFLAGS="$CFLAGS"
5404
5405if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5406	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5407	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5408$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5409if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5410  $as_echo_n "(cached) " >&6
5411else
5412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413/* end confdefs.h.  */
5414int i;
5415_ACEOF
5416if ac_fn_c_try_compile "$LINENO"; then :
5417  xorg_cv_cc_flag_unknown_warning_option=yes
5418else
5419  xorg_cv_cc_flag_unknown_warning_option=no
5420fi
5421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5422fi
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5424$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5425	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5426	CFLAGS="$xorg_testset_save_CFLAGS"
5427fi
5428
5429if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5430	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5431		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5432	fi
5433	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5434	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5435$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5436if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5437  $as_echo_n "(cached) " >&6
5438else
5439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440/* end confdefs.h.  */
5441int i;
5442_ACEOF
5443if ac_fn_c_try_compile "$LINENO"; then :
5444  xorg_cv_cc_flag_unused_command_line_argument=yes
5445else
5446  xorg_cv_cc_flag_unused_command_line_argument=no
5447fi
5448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5449fi
5450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5451$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5452	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5453	CFLAGS="$xorg_testset_save_CFLAGS"
5454fi
5455
5456found="no"
5457
5458	if test $found = "no" ; then
5459		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5460			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5461		fi
5462
5463		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5464			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5465		fi
5466
5467		CFLAGS="$CFLAGS -Wmissing-prototypes"
5468
5469		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5470$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5471		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5472		if eval \${$cacheid+:} false; then :
5473  $as_echo_n "(cached) " >&6
5474else
5475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476/* end confdefs.h.  */
5477int i;
5478int
5479main ()
5480{
5481
5482  ;
5483  return 0;
5484}
5485_ACEOF
5486if ac_fn_c_try_link "$LINENO"; then :
5487  eval $cacheid=yes
5488else
5489  eval $cacheid=no
5490fi
5491rm -f core conftest.err conftest.$ac_objext \
5492    conftest$ac_exeext conftest.$ac_ext
5493fi
5494
5495
5496		CFLAGS="$xorg_testset_save_CFLAGS"
5497
5498		eval supported=\$$cacheid
5499		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5500$as_echo "$supported" >&6; }
5501		if test "$supported" = "yes" ; then
5502			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5503			found="yes"
5504		fi
5505	fi
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521xorg_testset_save_CFLAGS="$CFLAGS"
5522
5523if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5524	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5525	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5526$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5527if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5528  $as_echo_n "(cached) " >&6
5529else
5530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5531/* end confdefs.h.  */
5532int i;
5533_ACEOF
5534if ac_fn_c_try_compile "$LINENO"; then :
5535  xorg_cv_cc_flag_unknown_warning_option=yes
5536else
5537  xorg_cv_cc_flag_unknown_warning_option=no
5538fi
5539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5540fi
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5542$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5543	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5544	CFLAGS="$xorg_testset_save_CFLAGS"
5545fi
5546
5547if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5548	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5549		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5550	fi
5551	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5552	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5553$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5554if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5555  $as_echo_n "(cached) " >&6
5556else
5557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558/* end confdefs.h.  */
5559int i;
5560_ACEOF
5561if ac_fn_c_try_compile "$LINENO"; then :
5562  xorg_cv_cc_flag_unused_command_line_argument=yes
5563else
5564  xorg_cv_cc_flag_unused_command_line_argument=no
5565fi
5566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5567fi
5568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5569$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5570	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5571	CFLAGS="$xorg_testset_save_CFLAGS"
5572fi
5573
5574found="no"
5575
5576	if test $found = "no" ; then
5577		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5578			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5579		fi
5580
5581		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5582			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5583		fi
5584
5585		CFLAGS="$CFLAGS -Wnested-externs"
5586
5587		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5588$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5589		cacheid=xorg_cv_cc_flag__Wnested_externs
5590		if eval \${$cacheid+:} false; then :
5591  $as_echo_n "(cached) " >&6
5592else
5593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594/* end confdefs.h.  */
5595int i;
5596int
5597main ()
5598{
5599
5600  ;
5601  return 0;
5602}
5603_ACEOF
5604if ac_fn_c_try_link "$LINENO"; then :
5605  eval $cacheid=yes
5606else
5607  eval $cacheid=no
5608fi
5609rm -f core conftest.err conftest.$ac_objext \
5610    conftest$ac_exeext conftest.$ac_ext
5611fi
5612
5613
5614		CFLAGS="$xorg_testset_save_CFLAGS"
5615
5616		eval supported=\$$cacheid
5617		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5618$as_echo "$supported" >&6; }
5619		if test "$supported" = "yes" ; then
5620			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5621			found="yes"
5622		fi
5623	fi
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639xorg_testset_save_CFLAGS="$CFLAGS"
5640
5641if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5642	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5643	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5644$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5645if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5646  $as_echo_n "(cached) " >&6
5647else
5648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649/* end confdefs.h.  */
5650int i;
5651_ACEOF
5652if ac_fn_c_try_compile "$LINENO"; then :
5653  xorg_cv_cc_flag_unknown_warning_option=yes
5654else
5655  xorg_cv_cc_flag_unknown_warning_option=no
5656fi
5657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5658fi
5659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5660$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5661	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5662	CFLAGS="$xorg_testset_save_CFLAGS"
5663fi
5664
5665if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5666	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5667		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5668	fi
5669	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5670	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5671$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5672if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5673  $as_echo_n "(cached) " >&6
5674else
5675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676/* end confdefs.h.  */
5677int i;
5678_ACEOF
5679if ac_fn_c_try_compile "$LINENO"; then :
5680  xorg_cv_cc_flag_unused_command_line_argument=yes
5681else
5682  xorg_cv_cc_flag_unused_command_line_argument=no
5683fi
5684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5685fi
5686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5687$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5688	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5689	CFLAGS="$xorg_testset_save_CFLAGS"
5690fi
5691
5692found="no"
5693
5694	if test $found = "no" ; then
5695		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5696			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5697		fi
5698
5699		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5700			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5701		fi
5702
5703		CFLAGS="$CFLAGS -Wbad-function-cast"
5704
5705		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5706$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5707		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5708		if eval \${$cacheid+:} false; then :
5709  $as_echo_n "(cached) " >&6
5710else
5711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5712/* end confdefs.h.  */
5713int i;
5714int
5715main ()
5716{
5717
5718  ;
5719  return 0;
5720}
5721_ACEOF
5722if ac_fn_c_try_link "$LINENO"; then :
5723  eval $cacheid=yes
5724else
5725  eval $cacheid=no
5726fi
5727rm -f core conftest.err conftest.$ac_objext \
5728    conftest$ac_exeext conftest.$ac_ext
5729fi
5730
5731
5732		CFLAGS="$xorg_testset_save_CFLAGS"
5733
5734		eval supported=\$$cacheid
5735		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5736$as_echo "$supported" >&6; }
5737		if test "$supported" = "yes" ; then
5738			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5739			found="yes"
5740		fi
5741	fi
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757xorg_testset_save_CFLAGS="$CFLAGS"
5758
5759if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5760	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5761	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5762$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5763if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5764  $as_echo_n "(cached) " >&6
5765else
5766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767/* end confdefs.h.  */
5768int i;
5769_ACEOF
5770if ac_fn_c_try_compile "$LINENO"; then :
5771  xorg_cv_cc_flag_unknown_warning_option=yes
5772else
5773  xorg_cv_cc_flag_unknown_warning_option=no
5774fi
5775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776fi
5777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5778$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5779	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5780	CFLAGS="$xorg_testset_save_CFLAGS"
5781fi
5782
5783if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5784	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5785		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5786	fi
5787	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5788	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5789$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5790if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5791  $as_echo_n "(cached) " >&6
5792else
5793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794/* end confdefs.h.  */
5795int i;
5796_ACEOF
5797if ac_fn_c_try_compile "$LINENO"; then :
5798  xorg_cv_cc_flag_unused_command_line_argument=yes
5799else
5800  xorg_cv_cc_flag_unused_command_line_argument=no
5801fi
5802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5803fi
5804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5805$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5806	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5807	CFLAGS="$xorg_testset_save_CFLAGS"
5808fi
5809
5810found="no"
5811
5812	if test $found = "no" ; then
5813		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5814			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5815		fi
5816
5817		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5818			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5819		fi
5820
5821		CFLAGS="$CFLAGS -Wold-style-definition"
5822
5823		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5824$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5825		cacheid=xorg_cv_cc_flag__Wold_style_definition
5826		if eval \${$cacheid+:} false; then :
5827  $as_echo_n "(cached) " >&6
5828else
5829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5830/* end confdefs.h.  */
5831int i;
5832int
5833main ()
5834{
5835
5836  ;
5837  return 0;
5838}
5839_ACEOF
5840if ac_fn_c_try_link "$LINENO"; then :
5841  eval $cacheid=yes
5842else
5843  eval $cacheid=no
5844fi
5845rm -f core conftest.err conftest.$ac_objext \
5846    conftest$ac_exeext conftest.$ac_ext
5847fi
5848
5849
5850		CFLAGS="$xorg_testset_save_CFLAGS"
5851
5852		eval supported=\$$cacheid
5853		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5854$as_echo "$supported" >&6; }
5855		if test "$supported" = "yes" ; then
5856			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5857			found="yes"
5858		fi
5859	fi
5860
5861	if test $found = "no" ; then
5862		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5863			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5864		fi
5865
5866		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5867			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5868		fi
5869
5870		CFLAGS="$CFLAGS -fd"
5871
5872		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5873$as_echo_n "checking if $CC supports -fd... " >&6; }
5874		cacheid=xorg_cv_cc_flag__fd
5875		if eval \${$cacheid+:} false; then :
5876  $as_echo_n "(cached) " >&6
5877else
5878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879/* end confdefs.h.  */
5880int i;
5881int
5882main ()
5883{
5884
5885  ;
5886  return 0;
5887}
5888_ACEOF
5889if ac_fn_c_try_link "$LINENO"; then :
5890  eval $cacheid=yes
5891else
5892  eval $cacheid=no
5893fi
5894rm -f core conftest.err conftest.$ac_objext \
5895    conftest$ac_exeext conftest.$ac_ext
5896fi
5897
5898
5899		CFLAGS="$xorg_testset_save_CFLAGS"
5900
5901		eval supported=\$$cacheid
5902		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5903$as_echo "$supported" >&6; }
5904		if test "$supported" = "yes" ; then
5905			BASE_CFLAGS="$BASE_CFLAGS -fd"
5906			found="yes"
5907		fi
5908	fi
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924xorg_testset_save_CFLAGS="$CFLAGS"
5925
5926if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5927	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5928	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5929$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5930if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5931  $as_echo_n "(cached) " >&6
5932else
5933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5934/* end confdefs.h.  */
5935int i;
5936_ACEOF
5937if ac_fn_c_try_compile "$LINENO"; then :
5938  xorg_cv_cc_flag_unknown_warning_option=yes
5939else
5940  xorg_cv_cc_flag_unknown_warning_option=no
5941fi
5942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5943fi
5944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5945$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5946	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5947	CFLAGS="$xorg_testset_save_CFLAGS"
5948fi
5949
5950if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5951	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5952		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5953	fi
5954	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5955	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5956$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5957if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5958  $as_echo_n "(cached) " >&6
5959else
5960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961/* end confdefs.h.  */
5962int i;
5963_ACEOF
5964if ac_fn_c_try_compile "$LINENO"; then :
5965  xorg_cv_cc_flag_unused_command_line_argument=yes
5966else
5967  xorg_cv_cc_flag_unused_command_line_argument=no
5968fi
5969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970fi
5971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5972$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5973	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5974	CFLAGS="$xorg_testset_save_CFLAGS"
5975fi
5976
5977found="no"
5978
5979	if test $found = "no" ; then
5980		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5981			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5982		fi
5983
5984		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5985			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5986		fi
5987
5988		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5989
5990		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5991$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5992		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5993		if eval \${$cacheid+:} false; then :
5994  $as_echo_n "(cached) " >&6
5995else
5996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997/* end confdefs.h.  */
5998int i;
5999int
6000main ()
6001{
6002
6003  ;
6004  return 0;
6005}
6006_ACEOF
6007if ac_fn_c_try_link "$LINENO"; then :
6008  eval $cacheid=yes
6009else
6010  eval $cacheid=no
6011fi
6012rm -f core conftest.err conftest.$ac_objext \
6013    conftest$ac_exeext conftest.$ac_ext
6014fi
6015
6016
6017		CFLAGS="$xorg_testset_save_CFLAGS"
6018
6019		eval supported=\$$cacheid
6020		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6021$as_echo "$supported" >&6; }
6022		if test "$supported" = "yes" ; then
6023			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6024			found="yes"
6025		fi
6026	fi
6027
6028
6029
6030
6031
6032# This chunk adds additional warnings that could catch undesired effects.
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046xorg_testset_save_CFLAGS="$CFLAGS"
6047
6048if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6049	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6050	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6051$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6052if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6053  $as_echo_n "(cached) " >&6
6054else
6055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6056/* end confdefs.h.  */
6057int i;
6058_ACEOF
6059if ac_fn_c_try_compile "$LINENO"; then :
6060  xorg_cv_cc_flag_unknown_warning_option=yes
6061else
6062  xorg_cv_cc_flag_unknown_warning_option=no
6063fi
6064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6065fi
6066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6067$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6068	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6069	CFLAGS="$xorg_testset_save_CFLAGS"
6070fi
6071
6072if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6073	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6074		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6075	fi
6076	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6077	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6078$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6079if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6080  $as_echo_n "(cached) " >&6
6081else
6082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6083/* end confdefs.h.  */
6084int i;
6085_ACEOF
6086if ac_fn_c_try_compile "$LINENO"; then :
6087  xorg_cv_cc_flag_unused_command_line_argument=yes
6088else
6089  xorg_cv_cc_flag_unused_command_line_argument=no
6090fi
6091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6092fi
6093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6094$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6095	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6096	CFLAGS="$xorg_testset_save_CFLAGS"
6097fi
6098
6099found="no"
6100
6101	if test $found = "no" ; then
6102		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6103			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6104		fi
6105
6106		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6107			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6108		fi
6109
6110		CFLAGS="$CFLAGS -Wunused"
6111
6112		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6113$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6114		cacheid=xorg_cv_cc_flag__Wunused
6115		if eval \${$cacheid+:} false; then :
6116  $as_echo_n "(cached) " >&6
6117else
6118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6119/* end confdefs.h.  */
6120int i;
6121int
6122main ()
6123{
6124
6125  ;
6126  return 0;
6127}
6128_ACEOF
6129if ac_fn_c_try_link "$LINENO"; then :
6130  eval $cacheid=yes
6131else
6132  eval $cacheid=no
6133fi
6134rm -f core conftest.err conftest.$ac_objext \
6135    conftest$ac_exeext conftest.$ac_ext
6136fi
6137
6138
6139		CFLAGS="$xorg_testset_save_CFLAGS"
6140
6141		eval supported=\$$cacheid
6142		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6143$as_echo "$supported" >&6; }
6144		if test "$supported" = "yes" ; then
6145			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6146			found="yes"
6147		fi
6148	fi
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164xorg_testset_save_CFLAGS="$CFLAGS"
6165
6166if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6167	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6168	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6169$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6170if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6171  $as_echo_n "(cached) " >&6
6172else
6173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6174/* end confdefs.h.  */
6175int i;
6176_ACEOF
6177if ac_fn_c_try_compile "$LINENO"; then :
6178  xorg_cv_cc_flag_unknown_warning_option=yes
6179else
6180  xorg_cv_cc_flag_unknown_warning_option=no
6181fi
6182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6183fi
6184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6185$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6186	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6187	CFLAGS="$xorg_testset_save_CFLAGS"
6188fi
6189
6190if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6191	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6192		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6193	fi
6194	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6195	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6196$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6197if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6198  $as_echo_n "(cached) " >&6
6199else
6200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201/* end confdefs.h.  */
6202int i;
6203_ACEOF
6204if ac_fn_c_try_compile "$LINENO"; then :
6205  xorg_cv_cc_flag_unused_command_line_argument=yes
6206else
6207  xorg_cv_cc_flag_unused_command_line_argument=no
6208fi
6209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6210fi
6211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6212$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6213	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6214	CFLAGS="$xorg_testset_save_CFLAGS"
6215fi
6216
6217found="no"
6218
6219	if test $found = "no" ; then
6220		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6221			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6222		fi
6223
6224		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6225			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6226		fi
6227
6228		CFLAGS="$CFLAGS -Wuninitialized"
6229
6230		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6231$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6232		cacheid=xorg_cv_cc_flag__Wuninitialized
6233		if eval \${$cacheid+:} false; then :
6234  $as_echo_n "(cached) " >&6
6235else
6236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237/* end confdefs.h.  */
6238int i;
6239int
6240main ()
6241{
6242
6243  ;
6244  return 0;
6245}
6246_ACEOF
6247if ac_fn_c_try_link "$LINENO"; then :
6248  eval $cacheid=yes
6249else
6250  eval $cacheid=no
6251fi
6252rm -f core conftest.err conftest.$ac_objext \
6253    conftest$ac_exeext conftest.$ac_ext
6254fi
6255
6256
6257		CFLAGS="$xorg_testset_save_CFLAGS"
6258
6259		eval supported=\$$cacheid
6260		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6261$as_echo "$supported" >&6; }
6262		if test "$supported" = "yes" ; then
6263			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6264			found="yes"
6265		fi
6266	fi
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282xorg_testset_save_CFLAGS="$CFLAGS"
6283
6284if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6285	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6286	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6287$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6288if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6289  $as_echo_n "(cached) " >&6
6290else
6291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292/* end confdefs.h.  */
6293int i;
6294_ACEOF
6295if ac_fn_c_try_compile "$LINENO"; then :
6296  xorg_cv_cc_flag_unknown_warning_option=yes
6297else
6298  xorg_cv_cc_flag_unknown_warning_option=no
6299fi
6300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6301fi
6302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6303$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6304	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6305	CFLAGS="$xorg_testset_save_CFLAGS"
6306fi
6307
6308if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6309	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6310		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6311	fi
6312	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6313	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6314$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6315if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6316  $as_echo_n "(cached) " >&6
6317else
6318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319/* end confdefs.h.  */
6320int i;
6321_ACEOF
6322if ac_fn_c_try_compile "$LINENO"; then :
6323  xorg_cv_cc_flag_unused_command_line_argument=yes
6324else
6325  xorg_cv_cc_flag_unused_command_line_argument=no
6326fi
6327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6328fi
6329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6330$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6331	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6332	CFLAGS="$xorg_testset_save_CFLAGS"
6333fi
6334
6335found="no"
6336
6337	if test $found = "no" ; then
6338		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6339			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6340		fi
6341
6342		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6343			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6344		fi
6345
6346		CFLAGS="$CFLAGS -Wshadow"
6347
6348		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6349$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6350		cacheid=xorg_cv_cc_flag__Wshadow
6351		if eval \${$cacheid+:} false; then :
6352  $as_echo_n "(cached) " >&6
6353else
6354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355/* end confdefs.h.  */
6356int i;
6357int
6358main ()
6359{
6360
6361  ;
6362  return 0;
6363}
6364_ACEOF
6365if ac_fn_c_try_link "$LINENO"; then :
6366  eval $cacheid=yes
6367else
6368  eval $cacheid=no
6369fi
6370rm -f core conftest.err conftest.$ac_objext \
6371    conftest$ac_exeext conftest.$ac_ext
6372fi
6373
6374
6375		CFLAGS="$xorg_testset_save_CFLAGS"
6376
6377		eval supported=\$$cacheid
6378		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6379$as_echo "$supported" >&6; }
6380		if test "$supported" = "yes" ; then
6381			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6382			found="yes"
6383		fi
6384	fi
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400xorg_testset_save_CFLAGS="$CFLAGS"
6401
6402if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6403	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6404	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6405$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6406if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6407  $as_echo_n "(cached) " >&6
6408else
6409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410/* end confdefs.h.  */
6411int i;
6412_ACEOF
6413if ac_fn_c_try_compile "$LINENO"; then :
6414  xorg_cv_cc_flag_unknown_warning_option=yes
6415else
6416  xorg_cv_cc_flag_unknown_warning_option=no
6417fi
6418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6419fi
6420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6421$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6422	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6423	CFLAGS="$xorg_testset_save_CFLAGS"
6424fi
6425
6426if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6427	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6428		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6429	fi
6430	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6431	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6432$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6433if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6434  $as_echo_n "(cached) " >&6
6435else
6436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437/* end confdefs.h.  */
6438int i;
6439_ACEOF
6440if ac_fn_c_try_compile "$LINENO"; then :
6441  xorg_cv_cc_flag_unused_command_line_argument=yes
6442else
6443  xorg_cv_cc_flag_unused_command_line_argument=no
6444fi
6445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6446fi
6447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6448$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6449	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6450	CFLAGS="$xorg_testset_save_CFLAGS"
6451fi
6452
6453found="no"
6454
6455	if test $found = "no" ; then
6456		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6457			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6458		fi
6459
6460		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6461			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6462		fi
6463
6464		CFLAGS="$CFLAGS -Wmissing-noreturn"
6465
6466		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6467$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6468		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6469		if eval \${$cacheid+:} false; then :
6470  $as_echo_n "(cached) " >&6
6471else
6472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473/* end confdefs.h.  */
6474int i;
6475int
6476main ()
6477{
6478
6479  ;
6480  return 0;
6481}
6482_ACEOF
6483if ac_fn_c_try_link "$LINENO"; then :
6484  eval $cacheid=yes
6485else
6486  eval $cacheid=no
6487fi
6488rm -f core conftest.err conftest.$ac_objext \
6489    conftest$ac_exeext conftest.$ac_ext
6490fi
6491
6492
6493		CFLAGS="$xorg_testset_save_CFLAGS"
6494
6495		eval supported=\$$cacheid
6496		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6497$as_echo "$supported" >&6; }
6498		if test "$supported" = "yes" ; then
6499			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6500			found="yes"
6501		fi
6502	fi
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518xorg_testset_save_CFLAGS="$CFLAGS"
6519
6520if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6521	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6522	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6523$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6524if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6525  $as_echo_n "(cached) " >&6
6526else
6527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528/* end confdefs.h.  */
6529int i;
6530_ACEOF
6531if ac_fn_c_try_compile "$LINENO"; then :
6532  xorg_cv_cc_flag_unknown_warning_option=yes
6533else
6534  xorg_cv_cc_flag_unknown_warning_option=no
6535fi
6536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6537fi
6538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6539$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6540	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6541	CFLAGS="$xorg_testset_save_CFLAGS"
6542fi
6543
6544if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6545	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6546		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6547	fi
6548	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6549	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6550$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6551if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6552  $as_echo_n "(cached) " >&6
6553else
6554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555/* end confdefs.h.  */
6556int i;
6557_ACEOF
6558if ac_fn_c_try_compile "$LINENO"; then :
6559  xorg_cv_cc_flag_unused_command_line_argument=yes
6560else
6561  xorg_cv_cc_flag_unused_command_line_argument=no
6562fi
6563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564fi
6565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6566$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6567	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6568	CFLAGS="$xorg_testset_save_CFLAGS"
6569fi
6570
6571found="no"
6572
6573	if test $found = "no" ; then
6574		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6575			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6576		fi
6577
6578		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6579			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6580		fi
6581
6582		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6583
6584		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6585$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6586		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6587		if eval \${$cacheid+:} false; then :
6588  $as_echo_n "(cached) " >&6
6589else
6590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591/* end confdefs.h.  */
6592int i;
6593int
6594main ()
6595{
6596
6597  ;
6598  return 0;
6599}
6600_ACEOF
6601if ac_fn_c_try_link "$LINENO"; then :
6602  eval $cacheid=yes
6603else
6604  eval $cacheid=no
6605fi
6606rm -f core conftest.err conftest.$ac_objext \
6607    conftest$ac_exeext conftest.$ac_ext
6608fi
6609
6610
6611		CFLAGS="$xorg_testset_save_CFLAGS"
6612
6613		eval supported=\$$cacheid
6614		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6615$as_echo "$supported" >&6; }
6616		if test "$supported" = "yes" ; then
6617			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6618			found="yes"
6619		fi
6620	fi
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636xorg_testset_save_CFLAGS="$CFLAGS"
6637
6638if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6639	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6640	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6641$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6642if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6643  $as_echo_n "(cached) " >&6
6644else
6645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646/* end confdefs.h.  */
6647int i;
6648_ACEOF
6649if ac_fn_c_try_compile "$LINENO"; then :
6650  xorg_cv_cc_flag_unknown_warning_option=yes
6651else
6652  xorg_cv_cc_flag_unknown_warning_option=no
6653fi
6654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6655fi
6656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6657$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6658	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6659	CFLAGS="$xorg_testset_save_CFLAGS"
6660fi
6661
6662if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6663	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6664		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6665	fi
6666	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6667	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6668$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6669if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6670  $as_echo_n "(cached) " >&6
6671else
6672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6673/* end confdefs.h.  */
6674int i;
6675_ACEOF
6676if ac_fn_c_try_compile "$LINENO"; then :
6677  xorg_cv_cc_flag_unused_command_line_argument=yes
6678else
6679  xorg_cv_cc_flag_unused_command_line_argument=no
6680fi
6681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6682fi
6683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6684$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6685	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6686	CFLAGS="$xorg_testset_save_CFLAGS"
6687fi
6688
6689found="no"
6690
6691	if test $found = "no" ; then
6692		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6693			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6694		fi
6695
6696		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6697			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6698		fi
6699
6700		CFLAGS="$CFLAGS -Wredundant-decls"
6701
6702		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6703$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6704		cacheid=xorg_cv_cc_flag__Wredundant_decls
6705		if eval \${$cacheid+:} false; then :
6706  $as_echo_n "(cached) " >&6
6707else
6708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709/* end confdefs.h.  */
6710int i;
6711int
6712main ()
6713{
6714
6715  ;
6716  return 0;
6717}
6718_ACEOF
6719if ac_fn_c_try_link "$LINENO"; then :
6720  eval $cacheid=yes
6721else
6722  eval $cacheid=no
6723fi
6724rm -f core conftest.err conftest.$ac_objext \
6725    conftest$ac_exeext conftest.$ac_ext
6726fi
6727
6728
6729		CFLAGS="$xorg_testset_save_CFLAGS"
6730
6731		eval supported=\$$cacheid
6732		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6733$as_echo "$supported" >&6; }
6734		if test "$supported" = "yes" ; then
6735			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6736			found="yes"
6737		fi
6738	fi
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754xorg_testset_save_CFLAGS="$CFLAGS"
6755
6756if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6757	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6758	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6759$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6760if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6761  $as_echo_n "(cached) " >&6
6762else
6763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764/* end confdefs.h.  */
6765int i;
6766_ACEOF
6767if ac_fn_c_try_compile "$LINENO"; then :
6768  xorg_cv_cc_flag_unknown_warning_option=yes
6769else
6770  xorg_cv_cc_flag_unknown_warning_option=no
6771fi
6772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6773fi
6774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6775$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6776	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6777	CFLAGS="$xorg_testset_save_CFLAGS"
6778fi
6779
6780if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6781	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6782		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6783	fi
6784	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6785	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6786$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6787if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6788  $as_echo_n "(cached) " >&6
6789else
6790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6791/* end confdefs.h.  */
6792int i;
6793_ACEOF
6794if ac_fn_c_try_compile "$LINENO"; then :
6795  xorg_cv_cc_flag_unused_command_line_argument=yes
6796else
6797  xorg_cv_cc_flag_unused_command_line_argument=no
6798fi
6799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6800fi
6801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6802$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6803	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6804	CFLAGS="$xorg_testset_save_CFLAGS"
6805fi
6806
6807found="no"
6808
6809	if test $found = "no" ; then
6810		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6811			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6812		fi
6813
6814		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6815			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6816		fi
6817
6818		CFLAGS="$CFLAGS -Wlogical-op"
6819
6820		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6821$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6822		cacheid=xorg_cv_cc_flag__Wlogical_op
6823		if eval \${$cacheid+:} false; then :
6824  $as_echo_n "(cached) " >&6
6825else
6826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827/* end confdefs.h.  */
6828int i;
6829int
6830main ()
6831{
6832
6833  ;
6834  return 0;
6835}
6836_ACEOF
6837if ac_fn_c_try_link "$LINENO"; then :
6838  eval $cacheid=yes
6839else
6840  eval $cacheid=no
6841fi
6842rm -f core conftest.err conftest.$ac_objext \
6843    conftest$ac_exeext conftest.$ac_ext
6844fi
6845
6846
6847		CFLAGS="$xorg_testset_save_CFLAGS"
6848
6849		eval supported=\$$cacheid
6850		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6851$as_echo "$supported" >&6; }
6852		if test "$supported" = "yes" ; then
6853			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6854			found="yes"
6855		fi
6856	fi
6857
6858
6859
6860# These are currently disabled because they are noisy.  They will be enabled
6861# in the future once the codebase is sufficiently modernized to silence
6862# them.  For now, I don't want them to drown out the other warnings.
6863# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6864# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6865# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6866
6867# Turn some warnings into errors, so we don't accidently get successful builds
6868# when there are problems that should be fixed.
6869
6870if test "x$SELECTIVE_WERROR" = "xyes" ; then
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884xorg_testset_save_CFLAGS="$CFLAGS"
6885
6886if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6887	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6888	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6889$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6890if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6891  $as_echo_n "(cached) " >&6
6892else
6893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894/* end confdefs.h.  */
6895int i;
6896_ACEOF
6897if ac_fn_c_try_compile "$LINENO"; then :
6898  xorg_cv_cc_flag_unknown_warning_option=yes
6899else
6900  xorg_cv_cc_flag_unknown_warning_option=no
6901fi
6902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6903fi
6904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6905$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6906	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6907	CFLAGS="$xorg_testset_save_CFLAGS"
6908fi
6909
6910if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6911	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6912		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6913	fi
6914	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6915	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6916$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6917if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6918  $as_echo_n "(cached) " >&6
6919else
6920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921/* end confdefs.h.  */
6922int i;
6923_ACEOF
6924if ac_fn_c_try_compile "$LINENO"; then :
6925  xorg_cv_cc_flag_unused_command_line_argument=yes
6926else
6927  xorg_cv_cc_flag_unused_command_line_argument=no
6928fi
6929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6930fi
6931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6932$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6933	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6934	CFLAGS="$xorg_testset_save_CFLAGS"
6935fi
6936
6937found="no"
6938
6939	if test $found = "no" ; then
6940		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6941			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6942		fi
6943
6944		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6945			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6946		fi
6947
6948		CFLAGS="$CFLAGS -Werror=implicit"
6949
6950		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6951$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6952		cacheid=xorg_cv_cc_flag__Werror_implicit
6953		if eval \${$cacheid+:} false; then :
6954  $as_echo_n "(cached) " >&6
6955else
6956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957/* end confdefs.h.  */
6958int i;
6959int
6960main ()
6961{
6962
6963  ;
6964  return 0;
6965}
6966_ACEOF
6967if ac_fn_c_try_link "$LINENO"; then :
6968  eval $cacheid=yes
6969else
6970  eval $cacheid=no
6971fi
6972rm -f core conftest.err conftest.$ac_objext \
6973    conftest$ac_exeext conftest.$ac_ext
6974fi
6975
6976
6977		CFLAGS="$xorg_testset_save_CFLAGS"
6978
6979		eval supported=\$$cacheid
6980		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6981$as_echo "$supported" >&6; }
6982		if test "$supported" = "yes" ; then
6983			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6984			found="yes"
6985		fi
6986	fi
6987
6988	if test $found = "no" ; then
6989		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6990			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6991		fi
6992
6993		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6994			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6995		fi
6996
6997		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6998
6999		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7000$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7001		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7002		if eval \${$cacheid+:} false; then :
7003  $as_echo_n "(cached) " >&6
7004else
7005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006/* end confdefs.h.  */
7007int i;
7008int
7009main ()
7010{
7011
7012  ;
7013  return 0;
7014}
7015_ACEOF
7016if ac_fn_c_try_link "$LINENO"; then :
7017  eval $cacheid=yes
7018else
7019  eval $cacheid=no
7020fi
7021rm -f core conftest.err conftest.$ac_objext \
7022    conftest$ac_exeext conftest.$ac_ext
7023fi
7024
7025
7026		CFLAGS="$xorg_testset_save_CFLAGS"
7027
7028		eval supported=\$$cacheid
7029		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7030$as_echo "$supported" >&6; }
7031		if test "$supported" = "yes" ; then
7032			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7033			found="yes"
7034		fi
7035	fi
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051xorg_testset_save_CFLAGS="$CFLAGS"
7052
7053if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7054	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7055	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7056$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7057if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7058  $as_echo_n "(cached) " >&6
7059else
7060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061/* end confdefs.h.  */
7062int i;
7063_ACEOF
7064if ac_fn_c_try_compile "$LINENO"; then :
7065  xorg_cv_cc_flag_unknown_warning_option=yes
7066else
7067  xorg_cv_cc_flag_unknown_warning_option=no
7068fi
7069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7070fi
7071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7072$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7073	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7074	CFLAGS="$xorg_testset_save_CFLAGS"
7075fi
7076
7077if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7078	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7079		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7080	fi
7081	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7082	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7083$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7084if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7085  $as_echo_n "(cached) " >&6
7086else
7087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7088/* end confdefs.h.  */
7089int i;
7090_ACEOF
7091if ac_fn_c_try_compile "$LINENO"; then :
7092  xorg_cv_cc_flag_unused_command_line_argument=yes
7093else
7094  xorg_cv_cc_flag_unused_command_line_argument=no
7095fi
7096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7097fi
7098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7099$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7100	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7101	CFLAGS="$xorg_testset_save_CFLAGS"
7102fi
7103
7104found="no"
7105
7106	if test $found = "no" ; then
7107		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7108			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7109		fi
7110
7111		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7112			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7113		fi
7114
7115		CFLAGS="$CFLAGS -Werror=nonnull"
7116
7117		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7118$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7119		cacheid=xorg_cv_cc_flag__Werror_nonnull
7120		if eval \${$cacheid+:} false; then :
7121  $as_echo_n "(cached) " >&6
7122else
7123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124/* end confdefs.h.  */
7125int i;
7126int
7127main ()
7128{
7129
7130  ;
7131  return 0;
7132}
7133_ACEOF
7134if ac_fn_c_try_link "$LINENO"; then :
7135  eval $cacheid=yes
7136else
7137  eval $cacheid=no
7138fi
7139rm -f core conftest.err conftest.$ac_objext \
7140    conftest$ac_exeext conftest.$ac_ext
7141fi
7142
7143
7144		CFLAGS="$xorg_testset_save_CFLAGS"
7145
7146		eval supported=\$$cacheid
7147		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7148$as_echo "$supported" >&6; }
7149		if test "$supported" = "yes" ; then
7150			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7151			found="yes"
7152		fi
7153	fi
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169xorg_testset_save_CFLAGS="$CFLAGS"
7170
7171if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7172	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7173	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7174$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7175if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7176  $as_echo_n "(cached) " >&6
7177else
7178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179/* end confdefs.h.  */
7180int i;
7181_ACEOF
7182if ac_fn_c_try_compile "$LINENO"; then :
7183  xorg_cv_cc_flag_unknown_warning_option=yes
7184else
7185  xorg_cv_cc_flag_unknown_warning_option=no
7186fi
7187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7188fi
7189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7190$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7191	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7192	CFLAGS="$xorg_testset_save_CFLAGS"
7193fi
7194
7195if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7196	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7197		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7198	fi
7199	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7200	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7201$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7202if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7203  $as_echo_n "(cached) " >&6
7204else
7205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206/* end confdefs.h.  */
7207int i;
7208_ACEOF
7209if ac_fn_c_try_compile "$LINENO"; then :
7210  xorg_cv_cc_flag_unused_command_line_argument=yes
7211else
7212  xorg_cv_cc_flag_unused_command_line_argument=no
7213fi
7214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7215fi
7216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7217$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7218	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7219	CFLAGS="$xorg_testset_save_CFLAGS"
7220fi
7221
7222found="no"
7223
7224	if test $found = "no" ; then
7225		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7226			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7227		fi
7228
7229		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7230			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7231		fi
7232
7233		CFLAGS="$CFLAGS -Werror=init-self"
7234
7235		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7236$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7237		cacheid=xorg_cv_cc_flag__Werror_init_self
7238		if eval \${$cacheid+:} false; then :
7239  $as_echo_n "(cached) " >&6
7240else
7241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242/* end confdefs.h.  */
7243int i;
7244int
7245main ()
7246{
7247
7248  ;
7249  return 0;
7250}
7251_ACEOF
7252if ac_fn_c_try_link "$LINENO"; then :
7253  eval $cacheid=yes
7254else
7255  eval $cacheid=no
7256fi
7257rm -f core conftest.err conftest.$ac_objext \
7258    conftest$ac_exeext conftest.$ac_ext
7259fi
7260
7261
7262		CFLAGS="$xorg_testset_save_CFLAGS"
7263
7264		eval supported=\$$cacheid
7265		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7266$as_echo "$supported" >&6; }
7267		if test "$supported" = "yes" ; then
7268			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7269			found="yes"
7270		fi
7271	fi
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287xorg_testset_save_CFLAGS="$CFLAGS"
7288
7289if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7290	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7291	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7292$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7293if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7294  $as_echo_n "(cached) " >&6
7295else
7296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297/* end confdefs.h.  */
7298int i;
7299_ACEOF
7300if ac_fn_c_try_compile "$LINENO"; then :
7301  xorg_cv_cc_flag_unknown_warning_option=yes
7302else
7303  xorg_cv_cc_flag_unknown_warning_option=no
7304fi
7305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7306fi
7307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7308$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7309	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7310	CFLAGS="$xorg_testset_save_CFLAGS"
7311fi
7312
7313if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7314	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7315		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7316	fi
7317	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7318	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7319$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7320if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7321  $as_echo_n "(cached) " >&6
7322else
7323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7324/* end confdefs.h.  */
7325int i;
7326_ACEOF
7327if ac_fn_c_try_compile "$LINENO"; then :
7328  xorg_cv_cc_flag_unused_command_line_argument=yes
7329else
7330  xorg_cv_cc_flag_unused_command_line_argument=no
7331fi
7332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7333fi
7334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7335$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7336	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7337	CFLAGS="$xorg_testset_save_CFLAGS"
7338fi
7339
7340found="no"
7341
7342	if test $found = "no" ; then
7343		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7344			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7345		fi
7346
7347		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7348			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7349		fi
7350
7351		CFLAGS="$CFLAGS -Werror=main"
7352
7353		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7354$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7355		cacheid=xorg_cv_cc_flag__Werror_main
7356		if eval \${$cacheid+:} false; then :
7357  $as_echo_n "(cached) " >&6
7358else
7359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360/* end confdefs.h.  */
7361int i;
7362int
7363main ()
7364{
7365
7366  ;
7367  return 0;
7368}
7369_ACEOF
7370if ac_fn_c_try_link "$LINENO"; then :
7371  eval $cacheid=yes
7372else
7373  eval $cacheid=no
7374fi
7375rm -f core conftest.err conftest.$ac_objext \
7376    conftest$ac_exeext conftest.$ac_ext
7377fi
7378
7379
7380		CFLAGS="$xorg_testset_save_CFLAGS"
7381
7382		eval supported=\$$cacheid
7383		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7384$as_echo "$supported" >&6; }
7385		if test "$supported" = "yes" ; then
7386			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7387			found="yes"
7388		fi
7389	fi
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405xorg_testset_save_CFLAGS="$CFLAGS"
7406
7407if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7408	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7409	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7410$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7411if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7412  $as_echo_n "(cached) " >&6
7413else
7414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415/* end confdefs.h.  */
7416int i;
7417_ACEOF
7418if ac_fn_c_try_compile "$LINENO"; then :
7419  xorg_cv_cc_flag_unknown_warning_option=yes
7420else
7421  xorg_cv_cc_flag_unknown_warning_option=no
7422fi
7423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7424fi
7425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7426$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7427	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7428	CFLAGS="$xorg_testset_save_CFLAGS"
7429fi
7430
7431if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7432	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7433		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7434	fi
7435	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7436	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7437$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7438if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7439  $as_echo_n "(cached) " >&6
7440else
7441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442/* end confdefs.h.  */
7443int i;
7444_ACEOF
7445if ac_fn_c_try_compile "$LINENO"; then :
7446  xorg_cv_cc_flag_unused_command_line_argument=yes
7447else
7448  xorg_cv_cc_flag_unused_command_line_argument=no
7449fi
7450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7451fi
7452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7453$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7454	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7455	CFLAGS="$xorg_testset_save_CFLAGS"
7456fi
7457
7458found="no"
7459
7460	if test $found = "no" ; then
7461		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7462			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7463		fi
7464
7465		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7466			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7467		fi
7468
7469		CFLAGS="$CFLAGS -Werror=missing-braces"
7470
7471		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7472$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7473		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7474		if eval \${$cacheid+:} false; then :
7475  $as_echo_n "(cached) " >&6
7476else
7477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478/* end confdefs.h.  */
7479int i;
7480int
7481main ()
7482{
7483
7484  ;
7485  return 0;
7486}
7487_ACEOF
7488if ac_fn_c_try_link "$LINENO"; then :
7489  eval $cacheid=yes
7490else
7491  eval $cacheid=no
7492fi
7493rm -f core conftest.err conftest.$ac_objext \
7494    conftest$ac_exeext conftest.$ac_ext
7495fi
7496
7497
7498		CFLAGS="$xorg_testset_save_CFLAGS"
7499
7500		eval supported=\$$cacheid
7501		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7502$as_echo "$supported" >&6; }
7503		if test "$supported" = "yes" ; then
7504			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7505			found="yes"
7506		fi
7507	fi
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523xorg_testset_save_CFLAGS="$CFLAGS"
7524
7525if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7526	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7527	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7528$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7529if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7530  $as_echo_n "(cached) " >&6
7531else
7532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533/* end confdefs.h.  */
7534int i;
7535_ACEOF
7536if ac_fn_c_try_compile "$LINENO"; then :
7537  xorg_cv_cc_flag_unknown_warning_option=yes
7538else
7539  xorg_cv_cc_flag_unknown_warning_option=no
7540fi
7541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7542fi
7543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7544$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7545	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7546	CFLAGS="$xorg_testset_save_CFLAGS"
7547fi
7548
7549if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7550	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7551		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7552	fi
7553	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7554	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7555$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7556if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7557  $as_echo_n "(cached) " >&6
7558else
7559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560/* end confdefs.h.  */
7561int i;
7562_ACEOF
7563if ac_fn_c_try_compile "$LINENO"; then :
7564  xorg_cv_cc_flag_unused_command_line_argument=yes
7565else
7566  xorg_cv_cc_flag_unused_command_line_argument=no
7567fi
7568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7569fi
7570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7571$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7572	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7573	CFLAGS="$xorg_testset_save_CFLAGS"
7574fi
7575
7576found="no"
7577
7578	if test $found = "no" ; then
7579		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7580			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7581		fi
7582
7583		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7584			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7585		fi
7586
7587		CFLAGS="$CFLAGS -Werror=sequence-point"
7588
7589		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7590$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7591		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7592		if eval \${$cacheid+:} false; then :
7593  $as_echo_n "(cached) " >&6
7594else
7595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596/* end confdefs.h.  */
7597int i;
7598int
7599main ()
7600{
7601
7602  ;
7603  return 0;
7604}
7605_ACEOF
7606if ac_fn_c_try_link "$LINENO"; then :
7607  eval $cacheid=yes
7608else
7609  eval $cacheid=no
7610fi
7611rm -f core conftest.err conftest.$ac_objext \
7612    conftest$ac_exeext conftest.$ac_ext
7613fi
7614
7615
7616		CFLAGS="$xorg_testset_save_CFLAGS"
7617
7618		eval supported=\$$cacheid
7619		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7620$as_echo "$supported" >&6; }
7621		if test "$supported" = "yes" ; then
7622			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7623			found="yes"
7624		fi
7625	fi
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641xorg_testset_save_CFLAGS="$CFLAGS"
7642
7643if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7644	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7645	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7646$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7647if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7648  $as_echo_n "(cached) " >&6
7649else
7650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651/* end confdefs.h.  */
7652int i;
7653_ACEOF
7654if ac_fn_c_try_compile "$LINENO"; then :
7655  xorg_cv_cc_flag_unknown_warning_option=yes
7656else
7657  xorg_cv_cc_flag_unknown_warning_option=no
7658fi
7659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7660fi
7661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7662$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7663	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7664	CFLAGS="$xorg_testset_save_CFLAGS"
7665fi
7666
7667if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7668	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7669		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7670	fi
7671	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7672	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7673$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7674if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7675  $as_echo_n "(cached) " >&6
7676else
7677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7678/* end confdefs.h.  */
7679int i;
7680_ACEOF
7681if ac_fn_c_try_compile "$LINENO"; then :
7682  xorg_cv_cc_flag_unused_command_line_argument=yes
7683else
7684  xorg_cv_cc_flag_unused_command_line_argument=no
7685fi
7686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7687fi
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7689$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7690	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7691	CFLAGS="$xorg_testset_save_CFLAGS"
7692fi
7693
7694found="no"
7695
7696	if test $found = "no" ; then
7697		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7698			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7699		fi
7700
7701		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7702			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7703		fi
7704
7705		CFLAGS="$CFLAGS -Werror=return-type"
7706
7707		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7708$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7709		cacheid=xorg_cv_cc_flag__Werror_return_type
7710		if eval \${$cacheid+:} false; then :
7711  $as_echo_n "(cached) " >&6
7712else
7713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714/* end confdefs.h.  */
7715int i;
7716int
7717main ()
7718{
7719
7720  ;
7721  return 0;
7722}
7723_ACEOF
7724if ac_fn_c_try_link "$LINENO"; then :
7725  eval $cacheid=yes
7726else
7727  eval $cacheid=no
7728fi
7729rm -f core conftest.err conftest.$ac_objext \
7730    conftest$ac_exeext conftest.$ac_ext
7731fi
7732
7733
7734		CFLAGS="$xorg_testset_save_CFLAGS"
7735
7736		eval supported=\$$cacheid
7737		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7738$as_echo "$supported" >&6; }
7739		if test "$supported" = "yes" ; then
7740			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7741			found="yes"
7742		fi
7743	fi
7744
7745	if test $found = "no" ; then
7746		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7747			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7748		fi
7749
7750		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7751			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7752		fi
7753
7754		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7755
7756		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7757$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7758		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7759		if eval \${$cacheid+:} false; then :
7760  $as_echo_n "(cached) " >&6
7761else
7762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763/* end confdefs.h.  */
7764int i;
7765int
7766main ()
7767{
7768
7769  ;
7770  return 0;
7771}
7772_ACEOF
7773if ac_fn_c_try_link "$LINENO"; then :
7774  eval $cacheid=yes
7775else
7776  eval $cacheid=no
7777fi
7778rm -f core conftest.err conftest.$ac_objext \
7779    conftest$ac_exeext conftest.$ac_ext
7780fi
7781
7782
7783		CFLAGS="$xorg_testset_save_CFLAGS"
7784
7785		eval supported=\$$cacheid
7786		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7787$as_echo "$supported" >&6; }
7788		if test "$supported" = "yes" ; then
7789			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7790			found="yes"
7791		fi
7792	fi
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808xorg_testset_save_CFLAGS="$CFLAGS"
7809
7810if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7811	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7812	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7813$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7814if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7815  $as_echo_n "(cached) " >&6
7816else
7817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818/* end confdefs.h.  */
7819int i;
7820_ACEOF
7821if ac_fn_c_try_compile "$LINENO"; then :
7822  xorg_cv_cc_flag_unknown_warning_option=yes
7823else
7824  xorg_cv_cc_flag_unknown_warning_option=no
7825fi
7826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7827fi
7828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7829$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7830	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7831	CFLAGS="$xorg_testset_save_CFLAGS"
7832fi
7833
7834if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7835	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7836		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7837	fi
7838	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7839	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7840$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7841if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7842  $as_echo_n "(cached) " >&6
7843else
7844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845/* end confdefs.h.  */
7846int i;
7847_ACEOF
7848if ac_fn_c_try_compile "$LINENO"; then :
7849  xorg_cv_cc_flag_unused_command_line_argument=yes
7850else
7851  xorg_cv_cc_flag_unused_command_line_argument=no
7852fi
7853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7854fi
7855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7856$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7857	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7858	CFLAGS="$xorg_testset_save_CFLAGS"
7859fi
7860
7861found="no"
7862
7863	if test $found = "no" ; then
7864		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7865			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7866		fi
7867
7868		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7869			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7870		fi
7871
7872		CFLAGS="$CFLAGS -Werror=trigraphs"
7873
7874		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7875$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7876		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7877		if eval \${$cacheid+:} false; then :
7878  $as_echo_n "(cached) " >&6
7879else
7880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7881/* end confdefs.h.  */
7882int i;
7883int
7884main ()
7885{
7886
7887  ;
7888  return 0;
7889}
7890_ACEOF
7891if ac_fn_c_try_link "$LINENO"; then :
7892  eval $cacheid=yes
7893else
7894  eval $cacheid=no
7895fi
7896rm -f core conftest.err conftest.$ac_objext \
7897    conftest$ac_exeext conftest.$ac_ext
7898fi
7899
7900
7901		CFLAGS="$xorg_testset_save_CFLAGS"
7902
7903		eval supported=\$$cacheid
7904		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7905$as_echo "$supported" >&6; }
7906		if test "$supported" = "yes" ; then
7907			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7908			found="yes"
7909		fi
7910	fi
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926xorg_testset_save_CFLAGS="$CFLAGS"
7927
7928if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7929	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7930	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7931$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7932if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7933  $as_echo_n "(cached) " >&6
7934else
7935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936/* end confdefs.h.  */
7937int i;
7938_ACEOF
7939if ac_fn_c_try_compile "$LINENO"; then :
7940  xorg_cv_cc_flag_unknown_warning_option=yes
7941else
7942  xorg_cv_cc_flag_unknown_warning_option=no
7943fi
7944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7945fi
7946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7947$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7948	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7949	CFLAGS="$xorg_testset_save_CFLAGS"
7950fi
7951
7952if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7953	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7954		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7955	fi
7956	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7957	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7958$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7959if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7960  $as_echo_n "(cached) " >&6
7961else
7962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7963/* end confdefs.h.  */
7964int i;
7965_ACEOF
7966if ac_fn_c_try_compile "$LINENO"; then :
7967  xorg_cv_cc_flag_unused_command_line_argument=yes
7968else
7969  xorg_cv_cc_flag_unused_command_line_argument=no
7970fi
7971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7972fi
7973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7974$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7975	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7976	CFLAGS="$xorg_testset_save_CFLAGS"
7977fi
7978
7979found="no"
7980
7981	if test $found = "no" ; then
7982		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7983			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7984		fi
7985
7986		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7987			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7988		fi
7989
7990		CFLAGS="$CFLAGS -Werror=array-bounds"
7991
7992		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7993$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7994		cacheid=xorg_cv_cc_flag__Werror_array_bounds
7995		if eval \${$cacheid+:} false; then :
7996  $as_echo_n "(cached) " >&6
7997else
7998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7999/* end confdefs.h.  */
8000int i;
8001int
8002main ()
8003{
8004
8005  ;
8006  return 0;
8007}
8008_ACEOF
8009if ac_fn_c_try_link "$LINENO"; then :
8010  eval $cacheid=yes
8011else
8012  eval $cacheid=no
8013fi
8014rm -f core conftest.err conftest.$ac_objext \
8015    conftest$ac_exeext conftest.$ac_ext
8016fi
8017
8018
8019		CFLAGS="$xorg_testset_save_CFLAGS"
8020
8021		eval supported=\$$cacheid
8022		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8023$as_echo "$supported" >&6; }
8024		if test "$supported" = "yes" ; then
8025			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8026			found="yes"
8027		fi
8028	fi
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044xorg_testset_save_CFLAGS="$CFLAGS"
8045
8046if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8047	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8048	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8049$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8050if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8051  $as_echo_n "(cached) " >&6
8052else
8053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8054/* end confdefs.h.  */
8055int i;
8056_ACEOF
8057if ac_fn_c_try_compile "$LINENO"; then :
8058  xorg_cv_cc_flag_unknown_warning_option=yes
8059else
8060  xorg_cv_cc_flag_unknown_warning_option=no
8061fi
8062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8063fi
8064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8065$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8066	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8067	CFLAGS="$xorg_testset_save_CFLAGS"
8068fi
8069
8070if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8071	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8072		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8073	fi
8074	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8075	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8076$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8077if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8078  $as_echo_n "(cached) " >&6
8079else
8080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8081/* end confdefs.h.  */
8082int i;
8083_ACEOF
8084if ac_fn_c_try_compile "$LINENO"; then :
8085  xorg_cv_cc_flag_unused_command_line_argument=yes
8086else
8087  xorg_cv_cc_flag_unused_command_line_argument=no
8088fi
8089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8090fi
8091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8092$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8093	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8094	CFLAGS="$xorg_testset_save_CFLAGS"
8095fi
8096
8097found="no"
8098
8099	if test $found = "no" ; then
8100		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8101			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8102		fi
8103
8104		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8105			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8106		fi
8107
8108		CFLAGS="$CFLAGS -Werror=write-strings"
8109
8110		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8111$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8112		cacheid=xorg_cv_cc_flag__Werror_write_strings
8113		if eval \${$cacheid+:} false; then :
8114  $as_echo_n "(cached) " >&6
8115else
8116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117/* end confdefs.h.  */
8118int i;
8119int
8120main ()
8121{
8122
8123  ;
8124  return 0;
8125}
8126_ACEOF
8127if ac_fn_c_try_link "$LINENO"; then :
8128  eval $cacheid=yes
8129else
8130  eval $cacheid=no
8131fi
8132rm -f core conftest.err conftest.$ac_objext \
8133    conftest$ac_exeext conftest.$ac_ext
8134fi
8135
8136
8137		CFLAGS="$xorg_testset_save_CFLAGS"
8138
8139		eval supported=\$$cacheid
8140		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8141$as_echo "$supported" >&6; }
8142		if test "$supported" = "yes" ; then
8143			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8144			found="yes"
8145		fi
8146	fi
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162xorg_testset_save_CFLAGS="$CFLAGS"
8163
8164if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8165	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8166	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8167$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8168if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8169  $as_echo_n "(cached) " >&6
8170else
8171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172/* end confdefs.h.  */
8173int i;
8174_ACEOF
8175if ac_fn_c_try_compile "$LINENO"; then :
8176  xorg_cv_cc_flag_unknown_warning_option=yes
8177else
8178  xorg_cv_cc_flag_unknown_warning_option=no
8179fi
8180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8181fi
8182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8183$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8184	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8185	CFLAGS="$xorg_testset_save_CFLAGS"
8186fi
8187
8188if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8189	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8190		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8191	fi
8192	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8193	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8194$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8195if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8196  $as_echo_n "(cached) " >&6
8197else
8198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199/* end confdefs.h.  */
8200int i;
8201_ACEOF
8202if ac_fn_c_try_compile "$LINENO"; then :
8203  xorg_cv_cc_flag_unused_command_line_argument=yes
8204else
8205  xorg_cv_cc_flag_unused_command_line_argument=no
8206fi
8207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8208fi
8209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8210$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8211	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8212	CFLAGS="$xorg_testset_save_CFLAGS"
8213fi
8214
8215found="no"
8216
8217	if test $found = "no" ; then
8218		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8219			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8220		fi
8221
8222		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8223			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8224		fi
8225
8226		CFLAGS="$CFLAGS -Werror=address"
8227
8228		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8229$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8230		cacheid=xorg_cv_cc_flag__Werror_address
8231		if eval \${$cacheid+:} false; then :
8232  $as_echo_n "(cached) " >&6
8233else
8234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235/* end confdefs.h.  */
8236int i;
8237int
8238main ()
8239{
8240
8241  ;
8242  return 0;
8243}
8244_ACEOF
8245if ac_fn_c_try_link "$LINENO"; then :
8246  eval $cacheid=yes
8247else
8248  eval $cacheid=no
8249fi
8250rm -f core conftest.err conftest.$ac_objext \
8251    conftest$ac_exeext conftest.$ac_ext
8252fi
8253
8254
8255		CFLAGS="$xorg_testset_save_CFLAGS"
8256
8257		eval supported=\$$cacheid
8258		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8259$as_echo "$supported" >&6; }
8260		if test "$supported" = "yes" ; then
8261			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8262			found="yes"
8263		fi
8264	fi
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280xorg_testset_save_CFLAGS="$CFLAGS"
8281
8282if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8283	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8284	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8285$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8286if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8287  $as_echo_n "(cached) " >&6
8288else
8289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8290/* end confdefs.h.  */
8291int i;
8292_ACEOF
8293if ac_fn_c_try_compile "$LINENO"; then :
8294  xorg_cv_cc_flag_unknown_warning_option=yes
8295else
8296  xorg_cv_cc_flag_unknown_warning_option=no
8297fi
8298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8299fi
8300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8301$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8302	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8303	CFLAGS="$xorg_testset_save_CFLAGS"
8304fi
8305
8306if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8307	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8308		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8309	fi
8310	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8311	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8312$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8313if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8314  $as_echo_n "(cached) " >&6
8315else
8316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8317/* end confdefs.h.  */
8318int i;
8319_ACEOF
8320if ac_fn_c_try_compile "$LINENO"; then :
8321  xorg_cv_cc_flag_unused_command_line_argument=yes
8322else
8323  xorg_cv_cc_flag_unused_command_line_argument=no
8324fi
8325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8326fi
8327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8328$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8329	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8330	CFLAGS="$xorg_testset_save_CFLAGS"
8331fi
8332
8333found="no"
8334
8335	if test $found = "no" ; then
8336		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8337			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8338		fi
8339
8340		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8341			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8342		fi
8343
8344		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8345
8346		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8347$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8348		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8349		if eval \${$cacheid+:} false; then :
8350  $as_echo_n "(cached) " >&6
8351else
8352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8353/* end confdefs.h.  */
8354int i;
8355int
8356main ()
8357{
8358
8359  ;
8360  return 0;
8361}
8362_ACEOF
8363if ac_fn_c_try_link "$LINENO"; then :
8364  eval $cacheid=yes
8365else
8366  eval $cacheid=no
8367fi
8368rm -f core conftest.err conftest.$ac_objext \
8369    conftest$ac_exeext conftest.$ac_ext
8370fi
8371
8372
8373		CFLAGS="$xorg_testset_save_CFLAGS"
8374
8375		eval supported=\$$cacheid
8376		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8377$as_echo "$supported" >&6; }
8378		if test "$supported" = "yes" ; then
8379			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8380			found="yes"
8381		fi
8382	fi
8383
8384	if test $found = "no" ; then
8385		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8386			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8387		fi
8388
8389		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8390			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8391		fi
8392
8393		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8394
8395		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8396$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8397		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8398		if eval \${$cacheid+:} false; then :
8399  $as_echo_n "(cached) " >&6
8400else
8401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402/* end confdefs.h.  */
8403int i;
8404int
8405main ()
8406{
8407
8408  ;
8409  return 0;
8410}
8411_ACEOF
8412if ac_fn_c_try_link "$LINENO"; then :
8413  eval $cacheid=yes
8414else
8415  eval $cacheid=no
8416fi
8417rm -f core conftest.err conftest.$ac_objext \
8418    conftest$ac_exeext conftest.$ac_ext
8419fi
8420
8421
8422		CFLAGS="$xorg_testset_save_CFLAGS"
8423
8424		eval supported=\$$cacheid
8425		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8426$as_echo "$supported" >&6; }
8427		if test "$supported" = "yes" ; then
8428			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8429			found="yes"
8430		fi
8431	fi
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447xorg_testset_save_CFLAGS="$CFLAGS"
8448
8449if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8450	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8451	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8452$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8453if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8454  $as_echo_n "(cached) " >&6
8455else
8456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457/* end confdefs.h.  */
8458int i;
8459_ACEOF
8460if ac_fn_c_try_compile "$LINENO"; then :
8461  xorg_cv_cc_flag_unknown_warning_option=yes
8462else
8463  xorg_cv_cc_flag_unknown_warning_option=no
8464fi
8465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8466fi
8467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8468$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8469	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8470	CFLAGS="$xorg_testset_save_CFLAGS"
8471fi
8472
8473if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8474	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8475		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8476	fi
8477	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8478	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8479$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8480if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8481  $as_echo_n "(cached) " >&6
8482else
8483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484/* end confdefs.h.  */
8485int i;
8486_ACEOF
8487if ac_fn_c_try_compile "$LINENO"; then :
8488  xorg_cv_cc_flag_unused_command_line_argument=yes
8489else
8490  xorg_cv_cc_flag_unused_command_line_argument=no
8491fi
8492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8493fi
8494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8495$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8496	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8497	CFLAGS="$xorg_testset_save_CFLAGS"
8498fi
8499
8500found="no"
8501
8502	if test $found = "no" ; then
8503		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8504			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8505		fi
8506
8507		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8508			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8509		fi
8510
8511		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8512
8513		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8514$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8515		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8516		if eval \${$cacheid+:} false; then :
8517  $as_echo_n "(cached) " >&6
8518else
8519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520/* end confdefs.h.  */
8521int i;
8522int
8523main ()
8524{
8525
8526  ;
8527  return 0;
8528}
8529_ACEOF
8530if ac_fn_c_try_link "$LINENO"; then :
8531  eval $cacheid=yes
8532else
8533  eval $cacheid=no
8534fi
8535rm -f core conftest.err conftest.$ac_objext \
8536    conftest$ac_exeext conftest.$ac_ext
8537fi
8538
8539
8540		CFLAGS="$xorg_testset_save_CFLAGS"
8541
8542		eval supported=\$$cacheid
8543		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8544$as_echo "$supported" >&6; }
8545		if test "$supported" = "yes" ; then
8546			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8547			found="yes"
8548		fi
8549	fi
8550
8551 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8552else
8553{ $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
8554$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;}
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568xorg_testset_save_CFLAGS="$CFLAGS"
8569
8570if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8571	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8572	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8573$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8574if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8575  $as_echo_n "(cached) " >&6
8576else
8577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8578/* end confdefs.h.  */
8579int i;
8580_ACEOF
8581if ac_fn_c_try_compile "$LINENO"; then :
8582  xorg_cv_cc_flag_unknown_warning_option=yes
8583else
8584  xorg_cv_cc_flag_unknown_warning_option=no
8585fi
8586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8587fi
8588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8589$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8590	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8591	CFLAGS="$xorg_testset_save_CFLAGS"
8592fi
8593
8594if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8595	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8596		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8597	fi
8598	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8599	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8600$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8601if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8602  $as_echo_n "(cached) " >&6
8603else
8604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605/* end confdefs.h.  */
8606int i;
8607_ACEOF
8608if ac_fn_c_try_compile "$LINENO"; then :
8609  xorg_cv_cc_flag_unused_command_line_argument=yes
8610else
8611  xorg_cv_cc_flag_unused_command_line_argument=no
8612fi
8613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8614fi
8615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8616$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8617	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8618	CFLAGS="$xorg_testset_save_CFLAGS"
8619fi
8620
8621found="no"
8622
8623	if test $found = "no" ; then
8624		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8625			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8626		fi
8627
8628		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8629			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8630		fi
8631
8632		CFLAGS="$CFLAGS -Wimplicit"
8633
8634		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8635$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8636		cacheid=xorg_cv_cc_flag__Wimplicit
8637		if eval \${$cacheid+:} false; then :
8638  $as_echo_n "(cached) " >&6
8639else
8640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641/* end confdefs.h.  */
8642int i;
8643int
8644main ()
8645{
8646
8647  ;
8648  return 0;
8649}
8650_ACEOF
8651if ac_fn_c_try_link "$LINENO"; then :
8652  eval $cacheid=yes
8653else
8654  eval $cacheid=no
8655fi
8656rm -f core conftest.err conftest.$ac_objext \
8657    conftest$ac_exeext conftest.$ac_ext
8658fi
8659
8660
8661		CFLAGS="$xorg_testset_save_CFLAGS"
8662
8663		eval supported=\$$cacheid
8664		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8665$as_echo "$supported" >&6; }
8666		if test "$supported" = "yes" ; then
8667			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8668			found="yes"
8669		fi
8670	fi
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686xorg_testset_save_CFLAGS="$CFLAGS"
8687
8688if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8689	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8690	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8691$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8692if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8693  $as_echo_n "(cached) " >&6
8694else
8695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8696/* end confdefs.h.  */
8697int i;
8698_ACEOF
8699if ac_fn_c_try_compile "$LINENO"; then :
8700  xorg_cv_cc_flag_unknown_warning_option=yes
8701else
8702  xorg_cv_cc_flag_unknown_warning_option=no
8703fi
8704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8705fi
8706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8707$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8708	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8709	CFLAGS="$xorg_testset_save_CFLAGS"
8710fi
8711
8712if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8713	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8714		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8715	fi
8716	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8717	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8718$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8719if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8720  $as_echo_n "(cached) " >&6
8721else
8722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8723/* end confdefs.h.  */
8724int i;
8725_ACEOF
8726if ac_fn_c_try_compile "$LINENO"; then :
8727  xorg_cv_cc_flag_unused_command_line_argument=yes
8728else
8729  xorg_cv_cc_flag_unused_command_line_argument=no
8730fi
8731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8732fi
8733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8734$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8735	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8736	CFLAGS="$xorg_testset_save_CFLAGS"
8737fi
8738
8739found="no"
8740
8741	if test $found = "no" ; then
8742		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8743			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8744		fi
8745
8746		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8747			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8748		fi
8749
8750		CFLAGS="$CFLAGS -Wnonnull"
8751
8752		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8753$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8754		cacheid=xorg_cv_cc_flag__Wnonnull
8755		if eval \${$cacheid+:} false; then :
8756  $as_echo_n "(cached) " >&6
8757else
8758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8759/* end confdefs.h.  */
8760int i;
8761int
8762main ()
8763{
8764
8765  ;
8766  return 0;
8767}
8768_ACEOF
8769if ac_fn_c_try_link "$LINENO"; then :
8770  eval $cacheid=yes
8771else
8772  eval $cacheid=no
8773fi
8774rm -f core conftest.err conftest.$ac_objext \
8775    conftest$ac_exeext conftest.$ac_ext
8776fi
8777
8778
8779		CFLAGS="$xorg_testset_save_CFLAGS"
8780
8781		eval supported=\$$cacheid
8782		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8783$as_echo "$supported" >&6; }
8784		if test "$supported" = "yes" ; then
8785			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8786			found="yes"
8787		fi
8788	fi
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804xorg_testset_save_CFLAGS="$CFLAGS"
8805
8806if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8807	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8808	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8809$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8810if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8811  $as_echo_n "(cached) " >&6
8812else
8813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8814/* end confdefs.h.  */
8815int i;
8816_ACEOF
8817if ac_fn_c_try_compile "$LINENO"; then :
8818  xorg_cv_cc_flag_unknown_warning_option=yes
8819else
8820  xorg_cv_cc_flag_unknown_warning_option=no
8821fi
8822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8823fi
8824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8825$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8826	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8827	CFLAGS="$xorg_testset_save_CFLAGS"
8828fi
8829
8830if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8831	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8832		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8833	fi
8834	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8835	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8836$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8837if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8838  $as_echo_n "(cached) " >&6
8839else
8840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8841/* end confdefs.h.  */
8842int i;
8843_ACEOF
8844if ac_fn_c_try_compile "$LINENO"; then :
8845  xorg_cv_cc_flag_unused_command_line_argument=yes
8846else
8847  xorg_cv_cc_flag_unused_command_line_argument=no
8848fi
8849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8850fi
8851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8852$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8853	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8854	CFLAGS="$xorg_testset_save_CFLAGS"
8855fi
8856
8857found="no"
8858
8859	if test $found = "no" ; then
8860		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8861			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8862		fi
8863
8864		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8865			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8866		fi
8867
8868		CFLAGS="$CFLAGS -Winit-self"
8869
8870		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8871$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8872		cacheid=xorg_cv_cc_flag__Winit_self
8873		if eval \${$cacheid+:} false; then :
8874  $as_echo_n "(cached) " >&6
8875else
8876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8877/* end confdefs.h.  */
8878int i;
8879int
8880main ()
8881{
8882
8883  ;
8884  return 0;
8885}
8886_ACEOF
8887if ac_fn_c_try_link "$LINENO"; then :
8888  eval $cacheid=yes
8889else
8890  eval $cacheid=no
8891fi
8892rm -f core conftest.err conftest.$ac_objext \
8893    conftest$ac_exeext conftest.$ac_ext
8894fi
8895
8896
8897		CFLAGS="$xorg_testset_save_CFLAGS"
8898
8899		eval supported=\$$cacheid
8900		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8901$as_echo "$supported" >&6; }
8902		if test "$supported" = "yes" ; then
8903			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8904			found="yes"
8905		fi
8906	fi
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922xorg_testset_save_CFLAGS="$CFLAGS"
8923
8924if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8925	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8926	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8927$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8928if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8929  $as_echo_n "(cached) " >&6
8930else
8931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932/* end confdefs.h.  */
8933int i;
8934_ACEOF
8935if ac_fn_c_try_compile "$LINENO"; then :
8936  xorg_cv_cc_flag_unknown_warning_option=yes
8937else
8938  xorg_cv_cc_flag_unknown_warning_option=no
8939fi
8940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8941fi
8942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8943$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8944	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8945	CFLAGS="$xorg_testset_save_CFLAGS"
8946fi
8947
8948if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8949	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8950		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8951	fi
8952	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8953	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8954$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8955if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8956  $as_echo_n "(cached) " >&6
8957else
8958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959/* end confdefs.h.  */
8960int i;
8961_ACEOF
8962if ac_fn_c_try_compile "$LINENO"; then :
8963  xorg_cv_cc_flag_unused_command_line_argument=yes
8964else
8965  xorg_cv_cc_flag_unused_command_line_argument=no
8966fi
8967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8968fi
8969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8970$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8971	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8972	CFLAGS="$xorg_testset_save_CFLAGS"
8973fi
8974
8975found="no"
8976
8977	if test $found = "no" ; then
8978		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8979			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8980		fi
8981
8982		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8983			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8984		fi
8985
8986		CFLAGS="$CFLAGS -Wmain"
8987
8988		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8989$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8990		cacheid=xorg_cv_cc_flag__Wmain
8991		if eval \${$cacheid+:} false; then :
8992  $as_echo_n "(cached) " >&6
8993else
8994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995/* end confdefs.h.  */
8996int i;
8997int
8998main ()
8999{
9000
9001  ;
9002  return 0;
9003}
9004_ACEOF
9005if ac_fn_c_try_link "$LINENO"; then :
9006  eval $cacheid=yes
9007else
9008  eval $cacheid=no
9009fi
9010rm -f core conftest.err conftest.$ac_objext \
9011    conftest$ac_exeext conftest.$ac_ext
9012fi
9013
9014
9015		CFLAGS="$xorg_testset_save_CFLAGS"
9016
9017		eval supported=\$$cacheid
9018		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9019$as_echo "$supported" >&6; }
9020		if test "$supported" = "yes" ; then
9021			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9022			found="yes"
9023		fi
9024	fi
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040xorg_testset_save_CFLAGS="$CFLAGS"
9041
9042if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9043	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9044	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9045$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9046if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9047  $as_echo_n "(cached) " >&6
9048else
9049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050/* end confdefs.h.  */
9051int i;
9052_ACEOF
9053if ac_fn_c_try_compile "$LINENO"; then :
9054  xorg_cv_cc_flag_unknown_warning_option=yes
9055else
9056  xorg_cv_cc_flag_unknown_warning_option=no
9057fi
9058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9059fi
9060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9061$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9062	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9063	CFLAGS="$xorg_testset_save_CFLAGS"
9064fi
9065
9066if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9067	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9068		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9069	fi
9070	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9071	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9072$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9073if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9074  $as_echo_n "(cached) " >&6
9075else
9076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9077/* end confdefs.h.  */
9078int i;
9079_ACEOF
9080if ac_fn_c_try_compile "$LINENO"; then :
9081  xorg_cv_cc_flag_unused_command_line_argument=yes
9082else
9083  xorg_cv_cc_flag_unused_command_line_argument=no
9084fi
9085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9086fi
9087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9088$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9089	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9090	CFLAGS="$xorg_testset_save_CFLAGS"
9091fi
9092
9093found="no"
9094
9095	if test $found = "no" ; then
9096		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9097			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9098		fi
9099
9100		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9101			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9102		fi
9103
9104		CFLAGS="$CFLAGS -Wmissing-braces"
9105
9106		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9107$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9108		cacheid=xorg_cv_cc_flag__Wmissing_braces
9109		if eval \${$cacheid+:} false; then :
9110  $as_echo_n "(cached) " >&6
9111else
9112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9113/* end confdefs.h.  */
9114int i;
9115int
9116main ()
9117{
9118
9119  ;
9120  return 0;
9121}
9122_ACEOF
9123if ac_fn_c_try_link "$LINENO"; then :
9124  eval $cacheid=yes
9125else
9126  eval $cacheid=no
9127fi
9128rm -f core conftest.err conftest.$ac_objext \
9129    conftest$ac_exeext conftest.$ac_ext
9130fi
9131
9132
9133		CFLAGS="$xorg_testset_save_CFLAGS"
9134
9135		eval supported=\$$cacheid
9136		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9137$as_echo "$supported" >&6; }
9138		if test "$supported" = "yes" ; then
9139			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9140			found="yes"
9141		fi
9142	fi
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158xorg_testset_save_CFLAGS="$CFLAGS"
9159
9160if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9161	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9162	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9163$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9164if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9165  $as_echo_n "(cached) " >&6
9166else
9167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9168/* end confdefs.h.  */
9169int i;
9170_ACEOF
9171if ac_fn_c_try_compile "$LINENO"; then :
9172  xorg_cv_cc_flag_unknown_warning_option=yes
9173else
9174  xorg_cv_cc_flag_unknown_warning_option=no
9175fi
9176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9177fi
9178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9179$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9180	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9181	CFLAGS="$xorg_testset_save_CFLAGS"
9182fi
9183
9184if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9185	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9186		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9187	fi
9188	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9189	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9190$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9191if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9192  $as_echo_n "(cached) " >&6
9193else
9194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9195/* end confdefs.h.  */
9196int i;
9197_ACEOF
9198if ac_fn_c_try_compile "$LINENO"; then :
9199  xorg_cv_cc_flag_unused_command_line_argument=yes
9200else
9201  xorg_cv_cc_flag_unused_command_line_argument=no
9202fi
9203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9204fi
9205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9206$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9207	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9208	CFLAGS="$xorg_testset_save_CFLAGS"
9209fi
9210
9211found="no"
9212
9213	if test $found = "no" ; then
9214		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9215			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9216		fi
9217
9218		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9219			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9220		fi
9221
9222		CFLAGS="$CFLAGS -Wsequence-point"
9223
9224		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9225$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9226		cacheid=xorg_cv_cc_flag__Wsequence_point
9227		if eval \${$cacheid+:} false; then :
9228  $as_echo_n "(cached) " >&6
9229else
9230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231/* end confdefs.h.  */
9232int i;
9233int
9234main ()
9235{
9236
9237  ;
9238  return 0;
9239}
9240_ACEOF
9241if ac_fn_c_try_link "$LINENO"; then :
9242  eval $cacheid=yes
9243else
9244  eval $cacheid=no
9245fi
9246rm -f core conftest.err conftest.$ac_objext \
9247    conftest$ac_exeext conftest.$ac_ext
9248fi
9249
9250
9251		CFLAGS="$xorg_testset_save_CFLAGS"
9252
9253		eval supported=\$$cacheid
9254		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9255$as_echo "$supported" >&6; }
9256		if test "$supported" = "yes" ; then
9257			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9258			found="yes"
9259		fi
9260	fi
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276xorg_testset_save_CFLAGS="$CFLAGS"
9277
9278if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9279	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9280	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9281$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9282if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9283  $as_echo_n "(cached) " >&6
9284else
9285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9286/* end confdefs.h.  */
9287int i;
9288_ACEOF
9289if ac_fn_c_try_compile "$LINENO"; then :
9290  xorg_cv_cc_flag_unknown_warning_option=yes
9291else
9292  xorg_cv_cc_flag_unknown_warning_option=no
9293fi
9294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9295fi
9296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9297$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9298	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9299	CFLAGS="$xorg_testset_save_CFLAGS"
9300fi
9301
9302if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9303	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9304		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9305	fi
9306	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9307	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9308$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9309if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9310  $as_echo_n "(cached) " >&6
9311else
9312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9313/* end confdefs.h.  */
9314int i;
9315_ACEOF
9316if ac_fn_c_try_compile "$LINENO"; then :
9317  xorg_cv_cc_flag_unused_command_line_argument=yes
9318else
9319  xorg_cv_cc_flag_unused_command_line_argument=no
9320fi
9321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9322fi
9323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9324$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9325	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9326	CFLAGS="$xorg_testset_save_CFLAGS"
9327fi
9328
9329found="no"
9330
9331	if test $found = "no" ; then
9332		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9333			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9334		fi
9335
9336		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9337			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9338		fi
9339
9340		CFLAGS="$CFLAGS -Wreturn-type"
9341
9342		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9343$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9344		cacheid=xorg_cv_cc_flag__Wreturn_type
9345		if eval \${$cacheid+:} false; then :
9346  $as_echo_n "(cached) " >&6
9347else
9348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9349/* end confdefs.h.  */
9350int i;
9351int
9352main ()
9353{
9354
9355  ;
9356  return 0;
9357}
9358_ACEOF
9359if ac_fn_c_try_link "$LINENO"; then :
9360  eval $cacheid=yes
9361else
9362  eval $cacheid=no
9363fi
9364rm -f core conftest.err conftest.$ac_objext \
9365    conftest$ac_exeext conftest.$ac_ext
9366fi
9367
9368
9369		CFLAGS="$xorg_testset_save_CFLAGS"
9370
9371		eval supported=\$$cacheid
9372		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9373$as_echo "$supported" >&6; }
9374		if test "$supported" = "yes" ; then
9375			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9376			found="yes"
9377		fi
9378	fi
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394xorg_testset_save_CFLAGS="$CFLAGS"
9395
9396if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9397	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9398	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9399$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9400if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9401  $as_echo_n "(cached) " >&6
9402else
9403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9404/* end confdefs.h.  */
9405int i;
9406_ACEOF
9407if ac_fn_c_try_compile "$LINENO"; then :
9408  xorg_cv_cc_flag_unknown_warning_option=yes
9409else
9410  xorg_cv_cc_flag_unknown_warning_option=no
9411fi
9412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9413fi
9414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9415$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9416	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9417	CFLAGS="$xorg_testset_save_CFLAGS"
9418fi
9419
9420if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9421	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9422		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9423	fi
9424	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9425	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9426$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9427if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9428  $as_echo_n "(cached) " >&6
9429else
9430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9431/* end confdefs.h.  */
9432int i;
9433_ACEOF
9434if ac_fn_c_try_compile "$LINENO"; then :
9435  xorg_cv_cc_flag_unused_command_line_argument=yes
9436else
9437  xorg_cv_cc_flag_unused_command_line_argument=no
9438fi
9439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9440fi
9441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9442$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9443	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9444	CFLAGS="$xorg_testset_save_CFLAGS"
9445fi
9446
9447found="no"
9448
9449	if test $found = "no" ; then
9450		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9451			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9452		fi
9453
9454		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9455			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9456		fi
9457
9458		CFLAGS="$CFLAGS -Wtrigraphs"
9459
9460		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9461$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9462		cacheid=xorg_cv_cc_flag__Wtrigraphs
9463		if eval \${$cacheid+:} false; then :
9464  $as_echo_n "(cached) " >&6
9465else
9466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9467/* end confdefs.h.  */
9468int i;
9469int
9470main ()
9471{
9472
9473  ;
9474  return 0;
9475}
9476_ACEOF
9477if ac_fn_c_try_link "$LINENO"; then :
9478  eval $cacheid=yes
9479else
9480  eval $cacheid=no
9481fi
9482rm -f core conftest.err conftest.$ac_objext \
9483    conftest$ac_exeext conftest.$ac_ext
9484fi
9485
9486
9487		CFLAGS="$xorg_testset_save_CFLAGS"
9488
9489		eval supported=\$$cacheid
9490		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9491$as_echo "$supported" >&6; }
9492		if test "$supported" = "yes" ; then
9493			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9494			found="yes"
9495		fi
9496	fi
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512xorg_testset_save_CFLAGS="$CFLAGS"
9513
9514if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9515	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9516	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9517$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9518if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9519  $as_echo_n "(cached) " >&6
9520else
9521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522/* end confdefs.h.  */
9523int i;
9524_ACEOF
9525if ac_fn_c_try_compile "$LINENO"; then :
9526  xorg_cv_cc_flag_unknown_warning_option=yes
9527else
9528  xorg_cv_cc_flag_unknown_warning_option=no
9529fi
9530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9531fi
9532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9533$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9534	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9535	CFLAGS="$xorg_testset_save_CFLAGS"
9536fi
9537
9538if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9539	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9540		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9541	fi
9542	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9543	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9544$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9545if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9546  $as_echo_n "(cached) " >&6
9547else
9548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9549/* end confdefs.h.  */
9550int i;
9551_ACEOF
9552if ac_fn_c_try_compile "$LINENO"; then :
9553  xorg_cv_cc_flag_unused_command_line_argument=yes
9554else
9555  xorg_cv_cc_flag_unused_command_line_argument=no
9556fi
9557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9558fi
9559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9560$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9561	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9562	CFLAGS="$xorg_testset_save_CFLAGS"
9563fi
9564
9565found="no"
9566
9567	if test $found = "no" ; then
9568		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9569			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9570		fi
9571
9572		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9573			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9574		fi
9575
9576		CFLAGS="$CFLAGS -Warray-bounds"
9577
9578		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9579$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9580		cacheid=xorg_cv_cc_flag__Warray_bounds
9581		if eval \${$cacheid+:} false; then :
9582  $as_echo_n "(cached) " >&6
9583else
9584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585/* end confdefs.h.  */
9586int i;
9587int
9588main ()
9589{
9590
9591  ;
9592  return 0;
9593}
9594_ACEOF
9595if ac_fn_c_try_link "$LINENO"; then :
9596  eval $cacheid=yes
9597else
9598  eval $cacheid=no
9599fi
9600rm -f core conftest.err conftest.$ac_objext \
9601    conftest$ac_exeext conftest.$ac_ext
9602fi
9603
9604
9605		CFLAGS="$xorg_testset_save_CFLAGS"
9606
9607		eval supported=\$$cacheid
9608		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9609$as_echo "$supported" >&6; }
9610		if test "$supported" = "yes" ; then
9611			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9612			found="yes"
9613		fi
9614	fi
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630xorg_testset_save_CFLAGS="$CFLAGS"
9631
9632if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9633	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9634	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9635$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9636if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9637  $as_echo_n "(cached) " >&6
9638else
9639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640/* end confdefs.h.  */
9641int i;
9642_ACEOF
9643if ac_fn_c_try_compile "$LINENO"; then :
9644  xorg_cv_cc_flag_unknown_warning_option=yes
9645else
9646  xorg_cv_cc_flag_unknown_warning_option=no
9647fi
9648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9649fi
9650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9651$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9652	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9653	CFLAGS="$xorg_testset_save_CFLAGS"
9654fi
9655
9656if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9657	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9658		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9659	fi
9660	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9661	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9662$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9663if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9664  $as_echo_n "(cached) " >&6
9665else
9666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9667/* end confdefs.h.  */
9668int i;
9669_ACEOF
9670if ac_fn_c_try_compile "$LINENO"; then :
9671  xorg_cv_cc_flag_unused_command_line_argument=yes
9672else
9673  xorg_cv_cc_flag_unused_command_line_argument=no
9674fi
9675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9676fi
9677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9678$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9679	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9680	CFLAGS="$xorg_testset_save_CFLAGS"
9681fi
9682
9683found="no"
9684
9685	if test $found = "no" ; then
9686		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9687			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9688		fi
9689
9690		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9691			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9692		fi
9693
9694		CFLAGS="$CFLAGS -Wwrite-strings"
9695
9696		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9697$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9698		cacheid=xorg_cv_cc_flag__Wwrite_strings
9699		if eval \${$cacheid+:} false; then :
9700  $as_echo_n "(cached) " >&6
9701else
9702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9703/* end confdefs.h.  */
9704int i;
9705int
9706main ()
9707{
9708
9709  ;
9710  return 0;
9711}
9712_ACEOF
9713if ac_fn_c_try_link "$LINENO"; then :
9714  eval $cacheid=yes
9715else
9716  eval $cacheid=no
9717fi
9718rm -f core conftest.err conftest.$ac_objext \
9719    conftest$ac_exeext conftest.$ac_ext
9720fi
9721
9722
9723		CFLAGS="$xorg_testset_save_CFLAGS"
9724
9725		eval supported=\$$cacheid
9726		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9727$as_echo "$supported" >&6; }
9728		if test "$supported" = "yes" ; then
9729			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9730			found="yes"
9731		fi
9732	fi
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748xorg_testset_save_CFLAGS="$CFLAGS"
9749
9750if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9751	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9752	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9753$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9754if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9755  $as_echo_n "(cached) " >&6
9756else
9757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9758/* end confdefs.h.  */
9759int i;
9760_ACEOF
9761if ac_fn_c_try_compile "$LINENO"; then :
9762  xorg_cv_cc_flag_unknown_warning_option=yes
9763else
9764  xorg_cv_cc_flag_unknown_warning_option=no
9765fi
9766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9767fi
9768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9769$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9770	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9771	CFLAGS="$xorg_testset_save_CFLAGS"
9772fi
9773
9774if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9775	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9776		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9777	fi
9778	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9779	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9780$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9781if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9782  $as_echo_n "(cached) " >&6
9783else
9784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785/* end confdefs.h.  */
9786int i;
9787_ACEOF
9788if ac_fn_c_try_compile "$LINENO"; then :
9789  xorg_cv_cc_flag_unused_command_line_argument=yes
9790else
9791  xorg_cv_cc_flag_unused_command_line_argument=no
9792fi
9793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9794fi
9795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9796$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9797	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9798	CFLAGS="$xorg_testset_save_CFLAGS"
9799fi
9800
9801found="no"
9802
9803	if test $found = "no" ; then
9804		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9805			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9806		fi
9807
9808		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9809			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9810		fi
9811
9812		CFLAGS="$CFLAGS -Waddress"
9813
9814		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9815$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9816		cacheid=xorg_cv_cc_flag__Waddress
9817		if eval \${$cacheid+:} false; then :
9818  $as_echo_n "(cached) " >&6
9819else
9820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821/* end confdefs.h.  */
9822int i;
9823int
9824main ()
9825{
9826
9827  ;
9828  return 0;
9829}
9830_ACEOF
9831if ac_fn_c_try_link "$LINENO"; then :
9832  eval $cacheid=yes
9833else
9834  eval $cacheid=no
9835fi
9836rm -f core conftest.err conftest.$ac_objext \
9837    conftest$ac_exeext conftest.$ac_ext
9838fi
9839
9840
9841		CFLAGS="$xorg_testset_save_CFLAGS"
9842
9843		eval supported=\$$cacheid
9844		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9845$as_echo "$supported" >&6; }
9846		if test "$supported" = "yes" ; then
9847			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9848			found="yes"
9849		fi
9850	fi
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866xorg_testset_save_CFLAGS="$CFLAGS"
9867
9868if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9869	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9870	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9871$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9872if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9873  $as_echo_n "(cached) " >&6
9874else
9875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9876/* end confdefs.h.  */
9877int i;
9878_ACEOF
9879if ac_fn_c_try_compile "$LINENO"; then :
9880  xorg_cv_cc_flag_unknown_warning_option=yes
9881else
9882  xorg_cv_cc_flag_unknown_warning_option=no
9883fi
9884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9885fi
9886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9887$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9888	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9889	CFLAGS="$xorg_testset_save_CFLAGS"
9890fi
9891
9892if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9893	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9894		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9895	fi
9896	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9897	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9898$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9899if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9900  $as_echo_n "(cached) " >&6
9901else
9902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9903/* end confdefs.h.  */
9904int i;
9905_ACEOF
9906if ac_fn_c_try_compile "$LINENO"; then :
9907  xorg_cv_cc_flag_unused_command_line_argument=yes
9908else
9909  xorg_cv_cc_flag_unused_command_line_argument=no
9910fi
9911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9912fi
9913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9914$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9915	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9916	CFLAGS="$xorg_testset_save_CFLAGS"
9917fi
9918
9919found="no"
9920
9921	if test $found = "no" ; then
9922		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9923			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9924		fi
9925
9926		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9927			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9928		fi
9929
9930		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9931
9932		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9933$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9934		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9935		if eval \${$cacheid+:} false; then :
9936  $as_echo_n "(cached) " >&6
9937else
9938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9939/* end confdefs.h.  */
9940int i;
9941int
9942main ()
9943{
9944
9945  ;
9946  return 0;
9947}
9948_ACEOF
9949if ac_fn_c_try_link "$LINENO"; then :
9950  eval $cacheid=yes
9951else
9952  eval $cacheid=no
9953fi
9954rm -f core conftest.err conftest.$ac_objext \
9955    conftest$ac_exeext conftest.$ac_ext
9956fi
9957
9958
9959		CFLAGS="$xorg_testset_save_CFLAGS"
9960
9961		eval supported=\$$cacheid
9962		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9963$as_echo "$supported" >&6; }
9964		if test "$supported" = "yes" ; then
9965			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9966			found="yes"
9967		fi
9968	fi
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984xorg_testset_save_CFLAGS="$CFLAGS"
9985
9986if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9987	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9988	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9989$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9990if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9991  $as_echo_n "(cached) " >&6
9992else
9993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9994/* end confdefs.h.  */
9995int i;
9996_ACEOF
9997if ac_fn_c_try_compile "$LINENO"; then :
9998  xorg_cv_cc_flag_unknown_warning_option=yes
9999else
10000  xorg_cv_cc_flag_unknown_warning_option=no
10001fi
10002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10003fi
10004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10005$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10006	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10007	CFLAGS="$xorg_testset_save_CFLAGS"
10008fi
10009
10010if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10011	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10012		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10013	fi
10014	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10015	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10016$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10017if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10018  $as_echo_n "(cached) " >&6
10019else
10020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10021/* end confdefs.h.  */
10022int i;
10023_ACEOF
10024if ac_fn_c_try_compile "$LINENO"; then :
10025  xorg_cv_cc_flag_unused_command_line_argument=yes
10026else
10027  xorg_cv_cc_flag_unused_command_line_argument=no
10028fi
10029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10030fi
10031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10032$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10033	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10034	CFLAGS="$xorg_testset_save_CFLAGS"
10035fi
10036
10037found="no"
10038
10039	if test $found = "no" ; then
10040		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10041			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10042		fi
10043
10044		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10045			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10046		fi
10047
10048		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10049
10050		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10051$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10052		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10053		if eval \${$cacheid+:} false; then :
10054  $as_echo_n "(cached) " >&6
10055else
10056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10057/* end confdefs.h.  */
10058int i;
10059int
10060main ()
10061{
10062
10063  ;
10064  return 0;
10065}
10066_ACEOF
10067if ac_fn_c_try_link "$LINENO"; then :
10068  eval $cacheid=yes
10069else
10070  eval $cacheid=no
10071fi
10072rm -f core conftest.err conftest.$ac_objext \
10073    conftest$ac_exeext conftest.$ac_ext
10074fi
10075
10076
10077		CFLAGS="$xorg_testset_save_CFLAGS"
10078
10079		eval supported=\$$cacheid
10080		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10081$as_echo "$supported" >&6; }
10082		if test "$supported" = "yes" ; then
10083			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10084			found="yes"
10085		fi
10086	fi
10087
10088
10089fi
10090
10091
10092
10093
10094
10095
10096
10097		CWARNFLAGS="$BASE_CFLAGS"
10098		if  test "x$GCC" = xyes ; then
10099		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10100		fi
10101
10102
10103
10104
10105
10106
10107
10108
10109# Check whether --enable-strict-compilation was given.
10110if test "${enable_strict_compilation+set}" = set; then :
10111  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10112else
10113  STRICT_COMPILE=no
10114fi
10115
10116
10117
10118
10119
10120
10121STRICT_CFLAGS=""
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135xorg_testset_save_CFLAGS="$CFLAGS"
10136
10137if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10138	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10139	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10140$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10141if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10142  $as_echo_n "(cached) " >&6
10143else
10144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10145/* end confdefs.h.  */
10146int i;
10147_ACEOF
10148if ac_fn_c_try_compile "$LINENO"; then :
10149  xorg_cv_cc_flag_unknown_warning_option=yes
10150else
10151  xorg_cv_cc_flag_unknown_warning_option=no
10152fi
10153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10154fi
10155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10156$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10157	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10158	CFLAGS="$xorg_testset_save_CFLAGS"
10159fi
10160
10161if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10162	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10163		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10164	fi
10165	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10166	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10167$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10168if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10169  $as_echo_n "(cached) " >&6
10170else
10171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10172/* end confdefs.h.  */
10173int i;
10174_ACEOF
10175if ac_fn_c_try_compile "$LINENO"; then :
10176  xorg_cv_cc_flag_unused_command_line_argument=yes
10177else
10178  xorg_cv_cc_flag_unused_command_line_argument=no
10179fi
10180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10181fi
10182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10183$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10184	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10185	CFLAGS="$xorg_testset_save_CFLAGS"
10186fi
10187
10188found="no"
10189
10190	if test $found = "no" ; then
10191		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10192			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10193		fi
10194
10195		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10196			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10197		fi
10198
10199		CFLAGS="$CFLAGS -pedantic"
10200
10201		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10202$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10203		cacheid=xorg_cv_cc_flag__pedantic
10204		if eval \${$cacheid+:} false; then :
10205  $as_echo_n "(cached) " >&6
10206else
10207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10208/* end confdefs.h.  */
10209int i;
10210int
10211main ()
10212{
10213
10214  ;
10215  return 0;
10216}
10217_ACEOF
10218if ac_fn_c_try_link "$LINENO"; then :
10219  eval $cacheid=yes
10220else
10221  eval $cacheid=no
10222fi
10223rm -f core conftest.err conftest.$ac_objext \
10224    conftest$ac_exeext conftest.$ac_ext
10225fi
10226
10227
10228		CFLAGS="$xorg_testset_save_CFLAGS"
10229
10230		eval supported=\$$cacheid
10231		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10232$as_echo "$supported" >&6; }
10233		if test "$supported" = "yes" ; then
10234			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10235			found="yes"
10236		fi
10237	fi
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253xorg_testset_save_CFLAGS="$CFLAGS"
10254
10255if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10256	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10257	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10258$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10259if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10260  $as_echo_n "(cached) " >&6
10261else
10262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10263/* end confdefs.h.  */
10264int i;
10265_ACEOF
10266if ac_fn_c_try_compile "$LINENO"; then :
10267  xorg_cv_cc_flag_unknown_warning_option=yes
10268else
10269  xorg_cv_cc_flag_unknown_warning_option=no
10270fi
10271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10272fi
10273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10274$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10275	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10276	CFLAGS="$xorg_testset_save_CFLAGS"
10277fi
10278
10279if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10280	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10281		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10282	fi
10283	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10284	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10285$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10286if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10287  $as_echo_n "(cached) " >&6
10288else
10289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10290/* end confdefs.h.  */
10291int i;
10292_ACEOF
10293if ac_fn_c_try_compile "$LINENO"; then :
10294  xorg_cv_cc_flag_unused_command_line_argument=yes
10295else
10296  xorg_cv_cc_flag_unused_command_line_argument=no
10297fi
10298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10299fi
10300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10301$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10302	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10303	CFLAGS="$xorg_testset_save_CFLAGS"
10304fi
10305
10306found="no"
10307
10308	if test $found = "no" ; then
10309		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10310			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10311		fi
10312
10313		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10314			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10315		fi
10316
10317		CFLAGS="$CFLAGS -Werror"
10318
10319		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10320$as_echo_n "checking if $CC supports -Werror... " >&6; }
10321		cacheid=xorg_cv_cc_flag__Werror
10322		if eval \${$cacheid+:} false; then :
10323  $as_echo_n "(cached) " >&6
10324else
10325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10326/* end confdefs.h.  */
10327int i;
10328int
10329main ()
10330{
10331
10332  ;
10333  return 0;
10334}
10335_ACEOF
10336if ac_fn_c_try_link "$LINENO"; then :
10337  eval $cacheid=yes
10338else
10339  eval $cacheid=no
10340fi
10341rm -f core conftest.err conftest.$ac_objext \
10342    conftest$ac_exeext conftest.$ac_ext
10343fi
10344
10345
10346		CFLAGS="$xorg_testset_save_CFLAGS"
10347
10348		eval supported=\$$cacheid
10349		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10350$as_echo "$supported" >&6; }
10351		if test "$supported" = "yes" ; then
10352			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10353			found="yes"
10354		fi
10355	fi
10356
10357	if test $found = "no" ; then
10358		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10359			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10360		fi
10361
10362		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10363			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10364		fi
10365
10366		CFLAGS="$CFLAGS -errwarn"
10367
10368		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10369$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10370		cacheid=xorg_cv_cc_flag__errwarn
10371		if eval \${$cacheid+:} false; then :
10372  $as_echo_n "(cached) " >&6
10373else
10374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10375/* end confdefs.h.  */
10376int i;
10377int
10378main ()
10379{
10380
10381  ;
10382  return 0;
10383}
10384_ACEOF
10385if ac_fn_c_try_link "$LINENO"; then :
10386  eval $cacheid=yes
10387else
10388  eval $cacheid=no
10389fi
10390rm -f core conftest.err conftest.$ac_objext \
10391    conftest$ac_exeext conftest.$ac_ext
10392fi
10393
10394
10395		CFLAGS="$xorg_testset_save_CFLAGS"
10396
10397		eval supported=\$$cacheid
10398		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10399$as_echo "$supported" >&6; }
10400		if test "$supported" = "yes" ; then
10401			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10402			found="yes"
10403		fi
10404	fi
10405
10406
10407
10408# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10409# activate it with -Werror, so we add it here explicitly.
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423xorg_testset_save_CFLAGS="$CFLAGS"
10424
10425if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10426	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10427	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10428$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10429if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10430  $as_echo_n "(cached) " >&6
10431else
10432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10433/* end confdefs.h.  */
10434int i;
10435_ACEOF
10436if ac_fn_c_try_compile "$LINENO"; then :
10437  xorg_cv_cc_flag_unknown_warning_option=yes
10438else
10439  xorg_cv_cc_flag_unknown_warning_option=no
10440fi
10441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10442fi
10443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10444$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10445	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10446	CFLAGS="$xorg_testset_save_CFLAGS"
10447fi
10448
10449if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10450	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10451		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10452	fi
10453	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10454	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10455$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10456if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10457  $as_echo_n "(cached) " >&6
10458else
10459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10460/* end confdefs.h.  */
10461int i;
10462_ACEOF
10463if ac_fn_c_try_compile "$LINENO"; then :
10464  xorg_cv_cc_flag_unused_command_line_argument=yes
10465else
10466  xorg_cv_cc_flag_unused_command_line_argument=no
10467fi
10468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10469fi
10470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10471$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10472	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10473	CFLAGS="$xorg_testset_save_CFLAGS"
10474fi
10475
10476found="no"
10477
10478	if test $found = "no" ; then
10479		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10480			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10481		fi
10482
10483		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10484			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10485		fi
10486
10487		CFLAGS="$CFLAGS -Werror=attributes"
10488
10489		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10490$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10491		cacheid=xorg_cv_cc_flag__Werror_attributes
10492		if eval \${$cacheid+:} false; then :
10493  $as_echo_n "(cached) " >&6
10494else
10495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10496/* end confdefs.h.  */
10497int i;
10498int
10499main ()
10500{
10501
10502  ;
10503  return 0;
10504}
10505_ACEOF
10506if ac_fn_c_try_link "$LINENO"; then :
10507  eval $cacheid=yes
10508else
10509  eval $cacheid=no
10510fi
10511rm -f core conftest.err conftest.$ac_objext \
10512    conftest$ac_exeext conftest.$ac_ext
10513fi
10514
10515
10516		CFLAGS="$xorg_testset_save_CFLAGS"
10517
10518		eval supported=\$$cacheid
10519		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10520$as_echo "$supported" >&6; }
10521		if test "$supported" = "yes" ; then
10522			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10523			found="yes"
10524		fi
10525	fi
10526
10527
10528
10529if test "x$STRICT_COMPILE" = "xyes"; then
10530    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10531    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10532fi
10533
10534
10535
10536
10537
10538
10539cat >>confdefs.h <<_ACEOF
10540#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10541_ACEOF
10542
10543	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10544	if test "x$PVM" = "x"; then
10545		PVM="0"
10546	fi
10547
10548cat >>confdefs.h <<_ACEOF
10549#define PACKAGE_VERSION_MINOR $PVM
10550_ACEOF
10551
10552	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10553	if test "x$PVP" = "x"; then
10554		PVP="0"
10555	fi
10556
10557cat >>confdefs.h <<_ACEOF
10558#define PACKAGE_VERSION_PATCHLEVEL $PVP
10559_ACEOF
10560
10561
10562
10563CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10564mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10565|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10566echo 'git directory not found: installing possibly empty changelog.' >&2)"
10567
10568
10569
10570
10571macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10572INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10573mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10574|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10575echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10576
10577
10578
10579
10580
10581
10582if test x$APP_MAN_SUFFIX = x    ; then
10583    APP_MAN_SUFFIX=1
10584fi
10585if test x$APP_MAN_DIR = x    ; then
10586    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10587fi
10588
10589if test x$LIB_MAN_SUFFIX = x    ; then
10590    LIB_MAN_SUFFIX=3
10591fi
10592if test x$LIB_MAN_DIR = x    ; then
10593    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10594fi
10595
10596if test x$FILE_MAN_SUFFIX = x    ; then
10597    case $host_os in
10598	# Solaris 2.0 - 11 use SysV man page sections
10599	solaris2.?|solaris2.1[01])	FILE_MAN_SUFFIX=4  ;;
10600	*)				FILE_MAN_SUFFIX=5  ;;
10601    esac
10602fi
10603if test x$FILE_MAN_DIR = x    ; then
10604    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10605fi
10606
10607if test x$MISC_MAN_SUFFIX = x    ; then
10608    case $host_os in
10609	# Solaris 2.0 - 11 use SysV man page sections
10610	solaris2.?|solaris2.1[01])	MISC_MAN_SUFFIX=5  ;;
10611	*)				MISC_MAN_SUFFIX=7  ;;
10612    esac
10613fi
10614if test x$MISC_MAN_DIR = x    ; then
10615    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10616fi
10617
10618if test x$DRIVER_MAN_SUFFIX = x    ; then
10619    case $host_os in
10620	# Solaris 2.0 - 11 use SysV man page sections
10621	solaris2.?|solaris2.1[01])	DRIVER_MAN_SUFFIX=7  ;;
10622	*)				DRIVER_MAN_SUFFIX=4  ;;
10623    esac
10624fi
10625if test x$DRIVER_MAN_DIR = x    ; then
10626    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10627fi
10628
10629if test x$ADMIN_MAN_SUFFIX = x    ; then
10630    case $host_os in
10631	# Solaris 2.0 - 11 use SysV man page sections
10632	solaris2.?|solaris2.1[01])	ADMIN_MAN_SUFFIX=1m ;;
10633	*)				ADMIN_MAN_SUFFIX=8  ;;
10634    esac
10635fi
10636if test x$ADMIN_MAN_DIR = x    ; then
10637    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10638fi
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654XORG_MAN_PAGE="X Version 11"
10655
10656MAN_SUBSTS="\
10657	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10658	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10659	-e 's|__xservername__|Xorg|g' \
10660	-e 's|__xconfigfile__|xorg.conf|g' \
10661	-e 's|__projectroot__|\$(prefix)|g' \
10662	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10663	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10664	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10665	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10666	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10667	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10668	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10669
10670
10671
10672# Check whether --enable-silent-rules was given.
10673if test "${enable_silent_rules+set}" = set; then :
10674  enableval=$enable_silent_rules;
10675fi
10676
10677case $enable_silent_rules in # (((
10678  yes) AM_DEFAULT_VERBOSITY=0;;
10679   no) AM_DEFAULT_VERBOSITY=1;;
10680    *) AM_DEFAULT_VERBOSITY=0;;
10681esac
10682am_make=${MAKE-make}
10683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10684$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10685if ${am_cv_make_support_nested_variables+:} false; then :
10686  $as_echo_n "(cached) " >&6
10687else
10688  if $as_echo 'TRUE=$(BAR$(V))
10689BAR0=false
10690BAR1=true
10691V=1
10692am__doit:
10693	@$(TRUE)
10694.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10695  am_cv_make_support_nested_variables=yes
10696else
10697  am_cv_make_support_nested_variables=no
10698fi
10699fi
10700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10701$as_echo "$am_cv_make_support_nested_variables" >&6; }
10702if test $am_cv_make_support_nested_variables = yes; then
10703    AM_V='$(V)'
10704  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10705else
10706  AM_V=$AM_DEFAULT_VERBOSITY
10707  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10708fi
10709AM_BACKSLASH='\'
10710
10711
10712
10713for ac_func in strlcpy getpid nl_langinfo
10714do :
10715  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10716ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10717if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10718  cat >>confdefs.h <<_ACEOF
10719#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10720_ACEOF
10721
10722fi
10723done
10724
10725
10726
10727      if test "X$prefix" = "XNONE"; then
10728    acl_final_prefix="$ac_default_prefix"
10729  else
10730    acl_final_prefix="$prefix"
10731  fi
10732  if test "X$exec_prefix" = "XNONE"; then
10733    acl_final_exec_prefix='${prefix}'
10734  else
10735    acl_final_exec_prefix="$exec_prefix"
10736  fi
10737  acl_save_prefix="$prefix"
10738  prefix="$acl_final_prefix"
10739  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10740  prefix="$acl_save_prefix"
10741
10742
10743
10744# Check whether --with-gnu-ld was given.
10745if test "${with_gnu_ld+set}" = set; then :
10746  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10747else
10748  with_gnu_ld=no
10749fi
10750
10751# Prepare PATH_SEPARATOR.
10752# The user is always right.
10753if test "${PATH_SEPARATOR+set}" != set; then
10754  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
10755  # contains only /bin. Note that ksh looks also at the FPATH variable,
10756  # so we have to set that as well for the test.
10757  PATH_SEPARATOR=:
10758  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
10759    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
10760           || PATH_SEPARATOR=';'
10761       }
10762fi
10763
10764ac_prog=ld
10765if test "$GCC" = yes; then
10766  # Check if gcc -print-prog-name=ld gives a path.
10767  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10768$as_echo_n "checking for ld used by $CC... " >&6; }
10769  case $host in
10770  *-*-mingw*)
10771    # gcc leaves a trailing carriage return which upsets mingw
10772    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10773  *)
10774    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10775  esac
10776  case $ac_prog in
10777    # Accept absolute paths.
10778    [\\/]* | ?:[\\/]*)
10779      re_direlt='/[^/][^/]*/\.\./'
10780      # Canonicalize the pathname of ld
10781      ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
10782      while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
10783        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10784      done
10785      test -z "$LD" && LD="$ac_prog"
10786      ;;
10787  "")
10788    # If it fails, then pretend we aren't using GCC.
10789    ac_prog=ld
10790    ;;
10791  *)
10792    # If it is relative, then search for the first ld in PATH.
10793    with_gnu_ld=unknown
10794    ;;
10795  esac
10796elif test "$with_gnu_ld" = yes; then
10797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10798$as_echo_n "checking for GNU ld... " >&6; }
10799else
10800  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10801$as_echo_n "checking for non-GNU ld... " >&6; }
10802fi
10803if ${acl_cv_path_LD+:} false; then :
10804  $as_echo_n "(cached) " >&6
10805else
10806  if test -z "$LD"; then
10807  acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10808  for ac_dir in $PATH; do
10809    IFS="$acl_save_ifs"
10810    test -z "$ac_dir" && ac_dir=.
10811    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10812      acl_cv_path_LD="$ac_dir/$ac_prog"
10813      # Check to see if the program is GNU ld.  I'd rather use --version,
10814      # but apparently some variants of GNU ld only accept -v.
10815      # Break only if it was the GNU/non-GNU ld that we prefer.
10816      case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
10817      *GNU* | *'with BFD'*)
10818        test "$with_gnu_ld" != no && break
10819        ;;
10820      *)
10821        test "$with_gnu_ld" != yes && break
10822        ;;
10823      esac
10824    fi
10825  done
10826  IFS="$acl_save_ifs"
10827else
10828  acl_cv_path_LD="$LD" # Let the user override the test with a path.
10829fi
10830fi
10831
10832LD="$acl_cv_path_LD"
10833if test -n "$LD"; then
10834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10835$as_echo "$LD" >&6; }
10836else
10837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10838$as_echo "no" >&6; }
10839fi
10840test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10842$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10843if ${acl_cv_prog_gnu_ld+:} false; then :
10844  $as_echo_n "(cached) " >&6
10845else
10846  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10847case `$LD -v 2>&1 </dev/null` in
10848*GNU* | *'with BFD'*)
10849  acl_cv_prog_gnu_ld=yes
10850  ;;
10851*)
10852  acl_cv_prog_gnu_ld=no
10853  ;;
10854esac
10855fi
10856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10857$as_echo "$acl_cv_prog_gnu_ld" >&6; }
10858with_gnu_ld=$acl_cv_prog_gnu_ld
10859
10860
10861
10862
10863                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10864$as_echo_n "checking for shared library run path origin... " >&6; }
10865if ${acl_cv_rpath+:} false; then :
10866  $as_echo_n "(cached) " >&6
10867else
10868
10869    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10870    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10871    . ./conftest.sh
10872    rm -f ./conftest.sh
10873    acl_cv_rpath=done
10874
10875fi
10876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10877$as_echo "$acl_cv_rpath" >&6; }
10878  wl="$acl_cv_wl"
10879  acl_libext="$acl_cv_libext"
10880  acl_shlibext="$acl_cv_shlibext"
10881  acl_libname_spec="$acl_cv_libname_spec"
10882  acl_library_names_spec="$acl_cv_library_names_spec"
10883  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10884  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10885  acl_hardcode_direct="$acl_cv_hardcode_direct"
10886  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
10887    # Check whether --enable-rpath was given.
10888if test "${enable_rpath+set}" = set; then :
10889  enableval=$enable_rpath; :
10890else
10891  enable_rpath=yes
10892fi
10893
10894
10895
10896
10897  acl_libdirstem=lib
10898  acl_libdirstem2=
10899  case "$host_os" in
10900    solaris*)
10901                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
10902$as_echo_n "checking for 64-bit host... " >&6; }
10903if ${gl_cv_solaris_64bit+:} false; then :
10904  $as_echo_n "(cached) " >&6
10905else
10906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10907/* end confdefs.h.  */
10908
10909#ifdef _LP64
10910sixtyfour bits
10911#endif
10912
10913_ACEOF
10914if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10915  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
10916  gl_cv_solaris_64bit=yes
10917else
10918  gl_cv_solaris_64bit=no
10919fi
10920rm -f conftest*
10921
10922
10923fi
10924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
10925$as_echo "$gl_cv_solaris_64bit" >&6; }
10926      if test $gl_cv_solaris_64bit = yes; then
10927        acl_libdirstem=lib/64
10928        case "$host_cpu" in
10929          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
10930          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
10931        esac
10932      fi
10933      ;;
10934    *)
10935      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
10936      if test -n "$searchpath"; then
10937        acl_save_IFS="${IFS= 	}"; IFS=":"
10938        for searchdir in $searchpath; do
10939          if test -d "$searchdir"; then
10940            case "$searchdir" in
10941              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
10942              */../ | */.. )
10943                # Better ignore directories of this form. They are misleading.
10944                ;;
10945              *) searchdir=`cd "$searchdir" && pwd`
10946                 case "$searchdir" in
10947                   */lib64 ) acl_libdirstem=lib64 ;;
10948                 esac ;;
10949            esac
10950          fi
10951        done
10952        IFS="$acl_save_IFS"
10953      fi
10954      ;;
10955  esac
10956  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969    use_additional=yes
10970
10971  acl_save_prefix="$prefix"
10972  prefix="$acl_final_prefix"
10973  acl_save_exec_prefix="$exec_prefix"
10974  exec_prefix="$acl_final_exec_prefix"
10975
10976    eval additional_includedir=\"$includedir\"
10977    eval additional_libdir=\"$libdir\"
10978
10979  exec_prefix="$acl_save_exec_prefix"
10980  prefix="$acl_save_prefix"
10981
10982
10983# Check whether --with-libiconv-prefix was given.
10984if test "${with_libiconv_prefix+set}" = set; then :
10985  withval=$with_libiconv_prefix;
10986    if test "X$withval" = "Xno"; then
10987      use_additional=no
10988    else
10989      if test "X$withval" = "X"; then
10990
10991  acl_save_prefix="$prefix"
10992  prefix="$acl_final_prefix"
10993  acl_save_exec_prefix="$exec_prefix"
10994  exec_prefix="$acl_final_exec_prefix"
10995
10996          eval additional_includedir=\"$includedir\"
10997          eval additional_libdir=\"$libdir\"
10998
10999  exec_prefix="$acl_save_exec_prefix"
11000  prefix="$acl_save_prefix"
11001
11002      else
11003        additional_includedir="$withval/include"
11004        additional_libdir="$withval/$acl_libdirstem"
11005        if test "$acl_libdirstem2" != "$acl_libdirstem" \
11006           && ! test -d "$withval/$acl_libdirstem"; then
11007          additional_libdir="$withval/$acl_libdirstem2"
11008        fi
11009      fi
11010    fi
11011
11012fi
11013
11014      LIBICONV=
11015  LTLIBICONV=
11016  INCICONV=
11017  LIBICONV_PREFIX=
11018      HAVE_LIBICONV=
11019  rpathdirs=
11020  ltrpathdirs=
11021  names_already_handled=
11022  names_next_round='iconv '
11023  while test -n "$names_next_round"; do
11024    names_this_round="$names_next_round"
11025    names_next_round=
11026    for name in $names_this_round; do
11027      already_handled=
11028      for n in $names_already_handled; do
11029        if test "$n" = "$name"; then
11030          already_handled=yes
11031          break
11032        fi
11033      done
11034      if test -z "$already_handled"; then
11035        names_already_handled="$names_already_handled $name"
11036                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
11037        eval value=\"\$HAVE_LIB$uppername\"
11038        if test -n "$value"; then
11039          if test "$value" = yes; then
11040            eval value=\"\$LIB$uppername\"
11041            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11042            eval value=\"\$LTLIB$uppername\"
11043            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11044          else
11045                                    :
11046          fi
11047        else
11048                              found_dir=
11049          found_la=
11050          found_so=
11051          found_a=
11052          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
11053          if test -n "$acl_shlibext"; then
11054            shrext=".$acl_shlibext"             # typically: shrext=.so
11055          else
11056            shrext=
11057          fi
11058          if test $use_additional = yes; then
11059            dir="$additional_libdir"
11060                                    if test -n "$acl_shlibext"; then
11061              if test -f "$dir/$libname$shrext"; then
11062                found_dir="$dir"
11063                found_so="$dir/$libname$shrext"
11064              else
11065                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11066                  ver=`(cd "$dir" && \
11067                        for f in "$libname$shrext".*; do echo "$f"; done \
11068                        | sed -e "s,^$libname$shrext\\\\.,," \
11069                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11070                        | sed 1q ) 2>/dev/null`
11071                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11072                    found_dir="$dir"
11073                    found_so="$dir/$libname$shrext.$ver"
11074                  fi
11075                else
11076                  eval library_names=\"$acl_library_names_spec\"
11077                  for f in $library_names; do
11078                    if test -f "$dir/$f"; then
11079                      found_dir="$dir"
11080                      found_so="$dir/$f"
11081                      break
11082                    fi
11083                  done
11084                fi
11085              fi
11086            fi
11087                        if test "X$found_dir" = "X"; then
11088              if test -f "$dir/$libname.$acl_libext"; then
11089                found_dir="$dir"
11090                found_a="$dir/$libname.$acl_libext"
11091              fi
11092            fi
11093            if test "X$found_dir" != "X"; then
11094              if test -f "$dir/$libname.la"; then
11095                found_la="$dir/$libname.la"
11096              fi
11097            fi
11098          fi
11099          if test "X$found_dir" = "X"; then
11100            for x in $LDFLAGS $LTLIBICONV; do
11101
11102  acl_save_prefix="$prefix"
11103  prefix="$acl_final_prefix"
11104  acl_save_exec_prefix="$exec_prefix"
11105  exec_prefix="$acl_final_exec_prefix"
11106  eval x=\"$x\"
11107  exec_prefix="$acl_save_exec_prefix"
11108  prefix="$acl_save_prefix"
11109
11110              case "$x" in
11111                -L*)
11112                  dir=`echo "X$x" | sed -e 's/^X-L//'`
11113                                    if test -n "$acl_shlibext"; then
11114                    if test -f "$dir/$libname$shrext"; then
11115                      found_dir="$dir"
11116                      found_so="$dir/$libname$shrext"
11117                    else
11118                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11119                        ver=`(cd "$dir" && \
11120                              for f in "$libname$shrext".*; do echo "$f"; done \
11121                              | sed -e "s,^$libname$shrext\\\\.,," \
11122                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11123                              | sed 1q ) 2>/dev/null`
11124                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11125                          found_dir="$dir"
11126                          found_so="$dir/$libname$shrext.$ver"
11127                        fi
11128                      else
11129                        eval library_names=\"$acl_library_names_spec\"
11130                        for f in $library_names; do
11131                          if test -f "$dir/$f"; then
11132                            found_dir="$dir"
11133                            found_so="$dir/$f"
11134                            break
11135                          fi
11136                        done
11137                      fi
11138                    fi
11139                  fi
11140                                    if test "X$found_dir" = "X"; then
11141                    if test -f "$dir/$libname.$acl_libext"; then
11142                      found_dir="$dir"
11143                      found_a="$dir/$libname.$acl_libext"
11144                    fi
11145                  fi
11146                  if test "X$found_dir" != "X"; then
11147                    if test -f "$dir/$libname.la"; then
11148                      found_la="$dir/$libname.la"
11149                    fi
11150                  fi
11151                  ;;
11152              esac
11153              if test "X$found_dir" != "X"; then
11154                break
11155              fi
11156            done
11157          fi
11158          if test "X$found_dir" != "X"; then
11159                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11160            if test "X$found_so" != "X"; then
11161                                                        if test "$enable_rpath" = no \
11162                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11163                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11164                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11165              else
11166                                                                                haveit=
11167                for x in $ltrpathdirs; do
11168                  if test "X$x" = "X$found_dir"; then
11169                    haveit=yes
11170                    break
11171                  fi
11172                done
11173                if test -z "$haveit"; then
11174                  ltrpathdirs="$ltrpathdirs $found_dir"
11175                fi
11176                                if test "$acl_hardcode_direct" = yes; then
11177                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11178                else
11179                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11180                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11181                                                            haveit=
11182                    for x in $rpathdirs; do
11183                      if test "X$x" = "X$found_dir"; then
11184                        haveit=yes
11185                        break
11186                      fi
11187                    done
11188                    if test -z "$haveit"; then
11189                      rpathdirs="$rpathdirs $found_dir"
11190                    fi
11191                  else
11192                                                                                haveit=
11193                    for x in $LDFLAGS $LIBICONV; do
11194
11195  acl_save_prefix="$prefix"
11196  prefix="$acl_final_prefix"
11197  acl_save_exec_prefix="$exec_prefix"
11198  exec_prefix="$acl_final_exec_prefix"
11199  eval x=\"$x\"
11200  exec_prefix="$acl_save_exec_prefix"
11201  prefix="$acl_save_prefix"
11202
11203                      if test "X$x" = "X-L$found_dir"; then
11204                        haveit=yes
11205                        break
11206                      fi
11207                    done
11208                    if test -z "$haveit"; then
11209                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11210                    fi
11211                    if test "$acl_hardcode_minus_L" != no; then
11212                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11213                    else
11214                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11215                    fi
11216                  fi
11217                fi
11218              fi
11219            else
11220              if test "X$found_a" != "X"; then
11221                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11222              else
11223                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11224              fi
11225            fi
11226                        additional_includedir=
11227            case "$found_dir" in
11228              */$acl_libdirstem | */$acl_libdirstem/)
11229                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11230                if test "$name" = 'iconv'; then
11231                  LIBICONV_PREFIX="$basedir"
11232                fi
11233                additional_includedir="$basedir/include"
11234                ;;
11235              */$acl_libdirstem2 | */$acl_libdirstem2/)
11236                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11237                if test "$name" = 'iconv'; then
11238                  LIBICONV_PREFIX="$basedir"
11239                fi
11240                additional_includedir="$basedir/include"
11241                ;;
11242            esac
11243            if test "X$additional_includedir" != "X"; then
11244                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
11245                haveit=
11246                if test "X$additional_includedir" = "X/usr/local/include"; then
11247                  if test -n "$GCC"; then
11248                    case $host_os in
11249                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11250                    esac
11251                  fi
11252                fi
11253                if test -z "$haveit"; then
11254                  for x in $CPPFLAGS $INCICONV; do
11255
11256  acl_save_prefix="$prefix"
11257  prefix="$acl_final_prefix"
11258  acl_save_exec_prefix="$exec_prefix"
11259  exec_prefix="$acl_final_exec_prefix"
11260  eval x=\"$x\"
11261  exec_prefix="$acl_save_exec_prefix"
11262  prefix="$acl_save_prefix"
11263
11264                    if test "X$x" = "X-I$additional_includedir"; then
11265                      haveit=yes
11266                      break
11267                    fi
11268                  done
11269                  if test -z "$haveit"; then
11270                    if test -d "$additional_includedir"; then
11271                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11272                    fi
11273                  fi
11274                fi
11275              fi
11276            fi
11277                        if test -n "$found_la"; then
11278                                                        save_libdir="$libdir"
11279              case "$found_la" in
11280                */* | *\\*) . "$found_la" ;;
11281                *) . "./$found_la" ;;
11282              esac
11283              libdir="$save_libdir"
11284                            for dep in $dependency_libs; do
11285                case "$dep" in
11286                  -L*)
11287                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11288                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11289                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11290                      haveit=
11291                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11292                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11293                        if test -n "$GCC"; then
11294                          case $host_os in
11295                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11296                          esac
11297                        fi
11298                      fi
11299                      if test -z "$haveit"; then
11300                        haveit=
11301                        for x in $LDFLAGS $LIBICONV; do
11302
11303  acl_save_prefix="$prefix"
11304  prefix="$acl_final_prefix"
11305  acl_save_exec_prefix="$exec_prefix"
11306  exec_prefix="$acl_final_exec_prefix"
11307  eval x=\"$x\"
11308  exec_prefix="$acl_save_exec_prefix"
11309  prefix="$acl_save_prefix"
11310
11311                          if test "X$x" = "X-L$additional_libdir"; then
11312                            haveit=yes
11313                            break
11314                          fi
11315                        done
11316                        if test -z "$haveit"; then
11317                          if test -d "$additional_libdir"; then
11318                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11319                          fi
11320                        fi
11321                        haveit=
11322                        for x in $LDFLAGS $LTLIBICONV; do
11323
11324  acl_save_prefix="$prefix"
11325  prefix="$acl_final_prefix"
11326  acl_save_exec_prefix="$exec_prefix"
11327  exec_prefix="$acl_final_exec_prefix"
11328  eval x=\"$x\"
11329  exec_prefix="$acl_save_exec_prefix"
11330  prefix="$acl_save_prefix"
11331
11332                          if test "X$x" = "X-L$additional_libdir"; then
11333                            haveit=yes
11334                            break
11335                          fi
11336                        done
11337                        if test -z "$haveit"; then
11338                          if test -d "$additional_libdir"; then
11339                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11340                          fi
11341                        fi
11342                      fi
11343                    fi
11344                    ;;
11345                  -R*)
11346                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
11347                    if test "$enable_rpath" != no; then
11348                                                                  haveit=
11349                      for x in $rpathdirs; do
11350                        if test "X$x" = "X$dir"; then
11351                          haveit=yes
11352                          break
11353                        fi
11354                      done
11355                      if test -z "$haveit"; then
11356                        rpathdirs="$rpathdirs $dir"
11357                      fi
11358                                                                  haveit=
11359                      for x in $ltrpathdirs; do
11360                        if test "X$x" = "X$dir"; then
11361                          haveit=yes
11362                          break
11363                        fi
11364                      done
11365                      if test -z "$haveit"; then
11366                        ltrpathdirs="$ltrpathdirs $dir"
11367                      fi
11368                    fi
11369                    ;;
11370                  -l*)
11371                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11372                    ;;
11373                  *.la)
11374                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11375                    ;;
11376                  *)
11377                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11378                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11379                    ;;
11380                esac
11381              done
11382            fi
11383          else
11384                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11385            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11386          fi
11387        fi
11388      fi
11389    done
11390  done
11391  if test "X$rpathdirs" != "X"; then
11392    if test -n "$acl_hardcode_libdir_separator"; then
11393                        alldirs=
11394      for found_dir in $rpathdirs; do
11395        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11396      done
11397            acl_save_libdir="$libdir"
11398      libdir="$alldirs"
11399      eval flag=\"$acl_hardcode_libdir_flag_spec\"
11400      libdir="$acl_save_libdir"
11401      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11402    else
11403            for found_dir in $rpathdirs; do
11404        acl_save_libdir="$libdir"
11405        libdir="$found_dir"
11406        eval flag=\"$acl_hardcode_libdir_flag_spec\"
11407        libdir="$acl_save_libdir"
11408        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11409      done
11410    fi
11411  fi
11412  if test "X$ltrpathdirs" != "X"; then
11413            for found_dir in $ltrpathdirs; do
11414      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11415    done
11416  fi
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429          am_save_CPPFLAGS="$CPPFLAGS"
11430
11431  for element in $INCICONV; do
11432    haveit=
11433    for x in $CPPFLAGS; do
11434
11435  acl_save_prefix="$prefix"
11436  prefix="$acl_final_prefix"
11437  acl_save_exec_prefix="$exec_prefix"
11438  exec_prefix="$acl_final_exec_prefix"
11439  eval x=\"$x\"
11440  exec_prefix="$acl_save_exec_prefix"
11441  prefix="$acl_save_prefix"
11442
11443      if test "X$x" = "X$element"; then
11444        haveit=yes
11445        break
11446      fi
11447    done
11448    if test -z "$haveit"; then
11449      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11450    fi
11451  done
11452
11453
11454  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11455$as_echo_n "checking for iconv... " >&6; }
11456if ${am_cv_func_iconv+:} false; then :
11457  $as_echo_n "(cached) " >&6
11458else
11459
11460    am_cv_func_iconv="no, consider installing GNU libiconv"
11461    am_cv_lib_iconv=no
11462    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11463/* end confdefs.h.  */
11464
11465#include <stdlib.h>
11466#include <iconv.h>
11467
11468int
11469main ()
11470{
11471iconv_t cd = iconv_open("","");
11472           iconv(cd,NULL,NULL,NULL,NULL);
11473           iconv_close(cd);
11474  ;
11475  return 0;
11476}
11477_ACEOF
11478if ac_fn_c_try_link "$LINENO"; then :
11479  am_cv_func_iconv=yes
11480fi
11481rm -f core conftest.err conftest.$ac_objext \
11482    conftest$ac_exeext conftest.$ac_ext
11483    if test "$am_cv_func_iconv" != yes; then
11484      am_save_LIBS="$LIBS"
11485      LIBS="$LIBS $LIBICONV"
11486      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11487/* end confdefs.h.  */
11488
11489#include <stdlib.h>
11490#include <iconv.h>
11491
11492int
11493main ()
11494{
11495iconv_t cd = iconv_open("","");
11496             iconv(cd,NULL,NULL,NULL,NULL);
11497             iconv_close(cd);
11498  ;
11499  return 0;
11500}
11501_ACEOF
11502if ac_fn_c_try_link "$LINENO"; then :
11503  am_cv_lib_iconv=yes
11504        am_cv_func_iconv=yes
11505fi
11506rm -f core conftest.err conftest.$ac_objext \
11507    conftest$ac_exeext conftest.$ac_ext
11508      LIBS="$am_save_LIBS"
11509    fi
11510
11511fi
11512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11513$as_echo "$am_cv_func_iconv" >&6; }
11514  if test "$am_cv_func_iconv" = yes; then
11515    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11516$as_echo_n "checking for working iconv... " >&6; }
11517if ${am_cv_func_iconv_works+:} false; then :
11518  $as_echo_n "(cached) " >&6
11519else
11520
11521                  am_save_LIBS="$LIBS"
11522      if test $am_cv_lib_iconv = yes; then
11523        LIBS="$LIBS $LIBICONV"
11524      fi
11525      am_cv_func_iconv_works=no
11526      for ac_iconv_const in '' 'const'; do
11527        if test "$cross_compiling" = yes; then :
11528  case "$host_os" in
11529             aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11530             *)            am_cv_func_iconv_works="guessing yes" ;;
11531           esac
11532else
11533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534/* end confdefs.h.  */
11535
11536#include <iconv.h>
11537#include <string.h>
11538
11539#ifndef ICONV_CONST
11540# define ICONV_CONST $ac_iconv_const
11541#endif
11542
11543int
11544main ()
11545{
11546int result = 0;
11547  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
11548     returns.  */
11549  {
11550    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11551    if (cd_utf8_to_88591 != (iconv_t)(-1))
11552      {
11553        static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
11554        char buf[10];
11555        ICONV_CONST char *inptr = input;
11556        size_t inbytesleft = strlen (input);
11557        char *outptr = buf;
11558        size_t outbytesleft = sizeof (buf);
11559        size_t res = iconv (cd_utf8_to_88591,
11560                            &inptr, &inbytesleft,
11561                            &outptr, &outbytesleft);
11562        if (res == 0)
11563          result |= 1;
11564        iconv_close (cd_utf8_to_88591);
11565      }
11566  }
11567  /* Test against Solaris 10 bug: Failures are not distinguishable from
11568     successful returns.  */
11569  {
11570    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11571    if (cd_ascii_to_88591 != (iconv_t)(-1))
11572      {
11573        static ICONV_CONST char input[] = "\263";
11574        char buf[10];
11575        ICONV_CONST char *inptr = input;
11576        size_t inbytesleft = strlen (input);
11577        char *outptr = buf;
11578        size_t outbytesleft = sizeof (buf);
11579        size_t res = iconv (cd_ascii_to_88591,
11580                            &inptr, &inbytesleft,
11581                            &outptr, &outbytesleft);
11582        if (res == 0)
11583          result |= 2;
11584        iconv_close (cd_ascii_to_88591);
11585      }
11586  }
11587  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
11588  {
11589    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
11590    if (cd_88591_to_utf8 != (iconv_t)(-1))
11591      {
11592        static ICONV_CONST char input[] = "\304";
11593        static char buf[2] = { (char)0xDE, (char)0xAD };
11594        ICONV_CONST char *inptr = input;
11595        size_t inbytesleft = 1;
11596        char *outptr = buf;
11597        size_t outbytesleft = 1;
11598        size_t res = iconv (cd_88591_to_utf8,
11599                            &inptr, &inbytesleft,
11600                            &outptr, &outbytesleft);
11601        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
11602          result |= 4;
11603        iconv_close (cd_88591_to_utf8);
11604      }
11605  }
11606#if 0 /* This bug could be worked around by the caller.  */
11607  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
11608  {
11609    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11610    if (cd_88591_to_utf8 != (iconv_t)(-1))
11611      {
11612        static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11613        char buf[50];
11614        ICONV_CONST char *inptr = input;
11615        size_t inbytesleft = strlen (input);
11616        char *outptr = buf;
11617        size_t outbytesleft = sizeof (buf);
11618        size_t res = iconv (cd_88591_to_utf8,
11619                            &inptr, &inbytesleft,
11620                            &outptr, &outbytesleft);
11621        if ((int)res > 0)
11622          result |= 8;
11623        iconv_close (cd_88591_to_utf8);
11624      }
11625  }
11626#endif
11627  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
11628     provided.  */
11629  if (/* Try standardized names.  */
11630      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
11631      /* Try IRIX, OSF/1 names.  */
11632      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
11633      /* Try AIX names.  */
11634      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
11635      /* Try HP-UX names.  */
11636      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
11637    result |= 16;
11638  return result;
11639
11640  ;
11641  return 0;
11642}
11643_ACEOF
11644if ac_fn_c_try_run "$LINENO"; then :
11645  am_cv_func_iconv_works=yes
11646fi
11647rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11648  conftest.$ac_objext conftest.beam conftest.$ac_ext
11649fi
11650
11651        test "$am_cv_func_iconv_works" = no || break
11652      done
11653      LIBS="$am_save_LIBS"
11654
11655fi
11656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
11657$as_echo "$am_cv_func_iconv_works" >&6; }
11658    case "$am_cv_func_iconv_works" in
11659      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
11660      *)   am_func_iconv=yes ;;
11661    esac
11662  else
11663    am_func_iconv=no am_cv_lib_iconv=no
11664  fi
11665  if test "$am_func_iconv" = yes; then
11666
11667$as_echo "#define HAVE_ICONV 1" >>confdefs.h
11668
11669  fi
11670  if test "$am_cv_lib_iconv" = yes; then
11671    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11672$as_echo_n "checking how to link with libiconv... " >&6; }
11673    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11674$as_echo "$LIBICONV" >&6; }
11675  else
11676            CPPFLAGS="$am_save_CPPFLAGS"
11677    LIBICONV=
11678    LTLIBICONV=
11679  fi
11680
11681
11682
11683  if test "$am_cv_func_iconv" = yes; then
11684    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11685$as_echo_n "checking for iconv declaration... " >&6; }
11686    if ${am_cv_proto_iconv+:} false; then :
11687  $as_echo_n "(cached) " >&6
11688else
11689
11690      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11691/* end confdefs.h.  */
11692
11693#include <stdlib.h>
11694#include <iconv.h>
11695extern
11696#ifdef __cplusplus
11697"C"
11698#endif
11699#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
11700size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11701#else
11702size_t iconv();
11703#endif
11704
11705int
11706main ()
11707{
11708
11709  ;
11710  return 0;
11711}
11712_ACEOF
11713if ac_fn_c_try_compile "$LINENO"; then :
11714  am_cv_proto_iconv_arg1=""
11715else
11716  am_cv_proto_iconv_arg1="const"
11717fi
11718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11719      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);"
11720fi
11721
11722    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11723    { $as_echo "$as_me:${as_lineno-$LINENO}: result:
11724         $am_cv_proto_iconv" >&5
11725$as_echo "
11726         $am_cv_proto_iconv" >&6; }
11727
11728cat >>confdefs.h <<_ACEOF
11729#define ICONV_CONST $am_cv_proto_iconv_arg1
11730_ACEOF
11731
11732
11733  fi
11734
11735
11736
11737pkg_failed=no
11738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCLOCK" >&5
11739$as_echo_n "checking for XCLOCK... " >&6; }
11740
11741if test -n "$XCLOCK_CFLAGS"; then
11742    pkg_cv_XCLOCK_CFLAGS="$XCLOCK_CFLAGS"
11743 elif test -n "$PKG_CONFIG"; then
11744    if test -n "$PKG_CONFIG" && \
11745    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu x11 xproto >= 7.0.17\""; } >&5
11746  ($PKG_CONFIG --exists --print-errors "xaw7 xmu x11 xproto >= 7.0.17") 2>&5
11747  ac_status=$?
11748  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11749  test $ac_status = 0; }; then
11750  pkg_cv_XCLOCK_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu x11 xproto >= 7.0.17" 2>/dev/null`
11751		      test "x$?" != "x0" && pkg_failed=yes
11752else
11753  pkg_failed=yes
11754fi
11755 else
11756    pkg_failed=untried
11757fi
11758if test -n "$XCLOCK_LIBS"; then
11759    pkg_cv_XCLOCK_LIBS="$XCLOCK_LIBS"
11760 elif test -n "$PKG_CONFIG"; then
11761    if test -n "$PKG_CONFIG" && \
11762    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu x11 xproto >= 7.0.17\""; } >&5
11763  ($PKG_CONFIG --exists --print-errors "xaw7 xmu x11 xproto >= 7.0.17") 2>&5
11764  ac_status=$?
11765  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11766  test $ac_status = 0; }; then
11767  pkg_cv_XCLOCK_LIBS=`$PKG_CONFIG --libs "xaw7 xmu x11 xproto >= 7.0.17" 2>/dev/null`
11768		      test "x$?" != "x0" && pkg_failed=yes
11769else
11770  pkg_failed=yes
11771fi
11772 else
11773    pkg_failed=untried
11774fi
11775
11776
11777
11778if test $pkg_failed = yes; then
11779   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780$as_echo "no" >&6; }
11781
11782if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11783        _pkg_short_errors_supported=yes
11784else
11785        _pkg_short_errors_supported=no
11786fi
11787        if test $_pkg_short_errors_supported = yes; then
11788	        XCLOCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu x11 xproto >= 7.0.17" 2>&1`
11789        else
11790	        XCLOCK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu x11 xproto >= 7.0.17" 2>&1`
11791        fi
11792	# Put the nasty error message in config.log where it belongs
11793	echo "$XCLOCK_PKG_ERRORS" >&5
11794
11795	as_fn_error $? "Package requirements (xaw7 xmu x11 xproto >= 7.0.17) were not met:
11796
11797$XCLOCK_PKG_ERRORS
11798
11799Consider adjusting the PKG_CONFIG_PATH environment variable if you
11800installed software in a non-standard prefix.
11801
11802Alternatively, you may set the environment variables XCLOCK_CFLAGS
11803and XCLOCK_LIBS to avoid the need to call pkg-config.
11804See the pkg-config man page for more details." "$LINENO" 5
11805elif test $pkg_failed = untried; then
11806     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11807$as_echo "no" >&6; }
11808	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11809$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11810as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11811is in your PATH or set the PKG_CONFIG environment variable to the full
11812path to pkg-config.
11813
11814Alternatively, you may set the environment variables XCLOCK_CFLAGS
11815and XCLOCK_LIBS to avoid the need to call pkg-config.
11816See the pkg-config man page for more details.
11817
11818To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11819See \`config.log' for more details" "$LINENO" 5; }
11820else
11821	XCLOCK_CFLAGS=$pkg_cv_XCLOCK_CFLAGS
11822	XCLOCK_LIBS=$pkg_cv_XCLOCK_LIBS
11823        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11824$as_echo "yes" >&6; }
11825
11826fi
11827XCLOCK_LIBS="$XCLOCK_LIBS $LIBICONV"
11828
11829
11830# Check whether --with-xft was given.
11831if test "${with_xft+set}" = set; then :
11832  withval=$with_xft; use_xft="$withval"
11833else
11834  use_xft="try"
11835fi
11836
11837if test x$use_xft != xno ; then
11838
11839pkg_failed=no
11840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFT" >&5
11841$as_echo_n "checking for XFT... " >&6; }
11842
11843if test -n "$XFT_CFLAGS"; then
11844    pkg_cv_XFT_CFLAGS="$XFT_CFLAGS"
11845 elif test -n "$PKG_CONFIG"; then
11846    if test -n "$PKG_CONFIG" && \
11847    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender xft\""; } >&5
11848  ($PKG_CONFIG --exists --print-errors "xrender xft") 2>&5
11849  ac_status=$?
11850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11851  test $ac_status = 0; }; then
11852  pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xrender xft" 2>/dev/null`
11853		      test "x$?" != "x0" && pkg_failed=yes
11854else
11855  pkg_failed=yes
11856fi
11857 else
11858    pkg_failed=untried
11859fi
11860if test -n "$XFT_LIBS"; then
11861    pkg_cv_XFT_LIBS="$XFT_LIBS"
11862 elif test -n "$PKG_CONFIG"; then
11863    if test -n "$PKG_CONFIG" && \
11864    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender xft\""; } >&5
11865  ($PKG_CONFIG --exists --print-errors "xrender xft") 2>&5
11866  ac_status=$?
11867  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11868  test $ac_status = 0; }; then
11869  pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xrender xft" 2>/dev/null`
11870		      test "x$?" != "x0" && pkg_failed=yes
11871else
11872  pkg_failed=yes
11873fi
11874 else
11875    pkg_failed=untried
11876fi
11877
11878
11879
11880if test $pkg_failed = yes; then
11881   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11882$as_echo "no" >&6; }
11883
11884if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11885        _pkg_short_errors_supported=yes
11886else
11887        _pkg_short_errors_supported=no
11888fi
11889        if test $_pkg_short_errors_supported = yes; then
11890	        XFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrender xft" 2>&1`
11891        else
11892	        XFT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrender xft" 2>&1`
11893        fi
11894	# Put the nasty error message in config.log where it belongs
11895	echo "$XFT_PKG_ERRORS" >&5
11896
11897	as_fn_error $? "Package requirements (xrender xft) were not met:
11898
11899$XFT_PKG_ERRORS
11900
11901Consider adjusting the PKG_CONFIG_PATH environment variable if you
11902installed software in a non-standard prefix.
11903
11904Alternatively, you may set the environment variables XFT_CFLAGS
11905and XFT_LIBS to avoid the need to call pkg-config.
11906See the pkg-config man page for more details." "$LINENO" 5
11907elif test $pkg_failed = untried; then
11908     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11909$as_echo "no" >&6; }
11910	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11911$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11912as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11913is in your PATH or set the PKG_CONFIG environment variable to the full
11914path to pkg-config.
11915
11916Alternatively, you may set the environment variables XFT_CFLAGS
11917and XFT_LIBS to avoid the need to call pkg-config.
11918See the pkg-config man page for more details.
11919
11920To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11921See \`config.log' for more details" "$LINENO" 5; }
11922else
11923	XFT_CFLAGS=$pkg_cv_XFT_CFLAGS
11924	XFT_LIBS=$pkg_cv_XFT_LIBS
11925        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11926$as_echo "yes" >&6; }
11927
11928fi
11929	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5
11930$as_echo_n "checking for library containing sqrt... " >&6; }
11931if ${ac_cv_search_sqrt+:} false; then :
11932  $as_echo_n "(cached) " >&6
11933else
11934  ac_func_search_save_LIBS=$LIBS
11935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11936/* end confdefs.h.  */
11937
11938/* Override any GCC internal prototype to avoid an error.
11939   Use char because int might match the return type of a GCC
11940   builtin and then its argument prototype would still apply.  */
11941#ifdef __cplusplus
11942extern "C"
11943#endif
11944char sqrt ();
11945int
11946main ()
11947{
11948return sqrt ();
11949  ;
11950  return 0;
11951}
11952_ACEOF
11953for ac_lib in '' m; do
11954  if test -z "$ac_lib"; then
11955    ac_res="none required"
11956  else
11957    ac_res=-l$ac_lib
11958    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11959  fi
11960  if ac_fn_c_try_link "$LINENO"; then :
11961  ac_cv_search_sqrt=$ac_res
11962fi
11963rm -f core conftest.err conftest.$ac_objext \
11964    conftest$ac_exeext
11965  if ${ac_cv_search_sqrt+:} false; then :
11966  break
11967fi
11968done
11969if ${ac_cv_search_sqrt+:} false; then :
11970
11971else
11972  ac_cv_search_sqrt=no
11973fi
11974rm conftest.$ac_ext
11975LIBS=$ac_func_search_save_LIBS
11976fi
11977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5
11978$as_echo "$ac_cv_search_sqrt" >&6; }
11979ac_res=$ac_cv_search_sqrt
11980if test "$ac_res" != no; then :
11981  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11982
11983fi
11984
11985	XCLOCK_CFLAGS="$XCLOCK_CFLAGS $XFT_CFLAGS"
11986	XCLOCK_LIBS="$XCLOCK_LIBS $XFT_LIBS"
11987
11988$as_echo "#define XRENDER 1" >>confdefs.h
11989
11990
11991$as_echo "#define XFREE86_FT2 1" >>confdefs.h
11992
11993fi
11994
11995
11996# Check whether --with-xkb was given.
11997if test "${with_xkb+set}" = set; then :
11998  withval=$with_xkb; use_xkb="$withval"
11999else
12000  use_xkb="try"
12001fi
12002
12003if test x$use_xkb != xno ; then
12004
12005pkg_failed=no
12006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XKB" >&5
12007$as_echo_n "checking for XKB... " >&6; }
12008
12009if test -n "$XKB_CFLAGS"; then
12010    pkg_cv_XKB_CFLAGS="$XKB_CFLAGS"
12011 elif test -n "$PKG_CONFIG"; then
12012    if test -n "$PKG_CONFIG" && \
12013    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile\""; } >&5
12014  ($PKG_CONFIG --exists --print-errors "xkbfile") 2>&5
12015  ac_status=$?
12016  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12017  test $ac_status = 0; }; then
12018  pkg_cv_XKB_CFLAGS=`$PKG_CONFIG --cflags "xkbfile" 2>/dev/null`
12019		      test "x$?" != "x0" && pkg_failed=yes
12020else
12021  pkg_failed=yes
12022fi
12023 else
12024    pkg_failed=untried
12025fi
12026if test -n "$XKB_LIBS"; then
12027    pkg_cv_XKB_LIBS="$XKB_LIBS"
12028 elif test -n "$PKG_CONFIG"; then
12029    if test -n "$PKG_CONFIG" && \
12030    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile\""; } >&5
12031  ($PKG_CONFIG --exists --print-errors "xkbfile") 2>&5
12032  ac_status=$?
12033  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12034  test $ac_status = 0; }; then
12035  pkg_cv_XKB_LIBS=`$PKG_CONFIG --libs "xkbfile" 2>/dev/null`
12036		      test "x$?" != "x0" && pkg_failed=yes
12037else
12038  pkg_failed=yes
12039fi
12040 else
12041    pkg_failed=untried
12042fi
12043
12044
12045
12046if test $pkg_failed = yes; then
12047   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12048$as_echo "no" >&6; }
12049
12050if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12051        _pkg_short_errors_supported=yes
12052else
12053        _pkg_short_errors_supported=no
12054fi
12055        if test $_pkg_short_errors_supported = yes; then
12056	        XKB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xkbfile" 2>&1`
12057        else
12058	        XKB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xkbfile" 2>&1`
12059        fi
12060	# Put the nasty error message in config.log where it belongs
12061	echo "$XKB_PKG_ERRORS" >&5
12062
12063	as_fn_error $? "Package requirements (xkbfile) were not met:
12064
12065$XKB_PKG_ERRORS
12066
12067Consider adjusting the PKG_CONFIG_PATH environment variable if you
12068installed software in a non-standard prefix.
12069
12070Alternatively, you may set the environment variables XKB_CFLAGS
12071and XKB_LIBS to avoid the need to call pkg-config.
12072See the pkg-config man page for more details." "$LINENO" 5
12073elif test $pkg_failed = untried; then
12074     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12075$as_echo "no" >&6; }
12076	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12077$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12078as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12079is in your PATH or set the PKG_CONFIG environment variable to the full
12080path to pkg-config.
12081
12082Alternatively, you may set the environment variables XKB_CFLAGS
12083and XKB_LIBS to avoid the need to call pkg-config.
12084See the pkg-config man page for more details.
12085
12086To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12087See \`config.log' for more details" "$LINENO" 5; }
12088else
12089	XKB_CFLAGS=$pkg_cv_XKB_CFLAGS
12090	XKB_LIBS=$pkg_cv_XKB_LIBS
12091        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12092$as_echo "yes" >&6; }
12093
12094fi
12095	XCLOCK_CFLAGS="$XCLOCK_CFLAGS $XKB_CFLAGS"
12096	XCLOCK_LIBS="$XCLOCK_LIBS $XKB_LIBS"
12097
12098$as_echo "#define XKB 1" >>confdefs.h
12099
12100fi
12101
12102
12103
12104pkg_failed=no
12105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
12106$as_echo_n "checking for APPDEFS... " >&6; }
12107
12108if test -n "$APPDEFS_CFLAGS"; then
12109    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
12110 elif test -n "$PKG_CONFIG"; then
12111    if test -n "$PKG_CONFIG" && \
12112    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
12113  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
12114  ac_status=$?
12115  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12116  test $ac_status = 0; }; then
12117  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
12118		      test "x$?" != "x0" && pkg_failed=yes
12119else
12120  pkg_failed=yes
12121fi
12122 else
12123    pkg_failed=untried
12124fi
12125if test -n "$APPDEFS_LIBS"; then
12126    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
12127 elif test -n "$PKG_CONFIG"; then
12128    if test -n "$PKG_CONFIG" && \
12129    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
12130  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
12131  ac_status=$?
12132  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12133  test $ac_status = 0; }; then
12134  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
12135		      test "x$?" != "x0" && pkg_failed=yes
12136else
12137  pkg_failed=yes
12138fi
12139 else
12140    pkg_failed=untried
12141fi
12142
12143
12144
12145if test $pkg_failed = yes; then
12146   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12147$as_echo "no" >&6; }
12148
12149if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12150        _pkg_short_errors_supported=yes
12151else
12152        _pkg_short_errors_supported=no
12153fi
12154        if test $_pkg_short_errors_supported = yes; then
12155	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
12156        else
12157	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
12158        fi
12159	# Put the nasty error message in config.log where it belongs
12160	echo "$APPDEFS_PKG_ERRORS" >&5
12161
12162	as_fn_error $? "Package requirements (xt) were not met:
12163
12164$APPDEFS_PKG_ERRORS
12165
12166Consider adjusting the PKG_CONFIG_PATH environment variable if you
12167installed software in a non-standard prefix.
12168
12169Alternatively, you may set the environment variables APPDEFS_CFLAGS
12170and APPDEFS_LIBS to avoid the need to call pkg-config.
12171See the pkg-config man page for more details." "$LINENO" 5
12172elif test $pkg_failed = untried; then
12173     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12174$as_echo "no" >&6; }
12175	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12176$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12177as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12178is in your PATH or set the PKG_CONFIG environment variable to the full
12179path to pkg-config.
12180
12181Alternatively, you may set the environment variables APPDEFS_CFLAGS
12182and APPDEFS_LIBS to avoid the need to call pkg-config.
12183See the pkg-config man page for more details.
12184
12185To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12186See \`config.log' for more details" "$LINENO" 5; }
12187else
12188	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
12189	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
12190        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12191$as_echo "yes" >&6; }
12192
12193fi
12194xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
12195
12196# Check whether --with-appdefaultdir was given.
12197if test "${with_appdefaultdir+set}" = set; then :
12198  withval=$with_appdefaultdir; appdefaultdir="$withval"
12199else
12200  appdefaultdir="${xt_appdefaultdir}"
12201fi
12202
12203
12204
12205ac_config_files="$ac_config_files Makefile man/Makefile"
12206
12207cat >confcache <<\_ACEOF
12208# This file is a shell script that caches the results of configure
12209# tests run on this system so they can be shared between configure
12210# scripts and configure runs, see configure's option --config-cache.
12211# It is not useful on other systems.  If it contains results you don't
12212# want to keep, you may remove or edit it.
12213#
12214# config.status only pays attention to the cache file if you give it
12215# the --recheck option to rerun configure.
12216#
12217# `ac_cv_env_foo' variables (set or unset) will be overridden when
12218# loading this file, other *unset* `ac_cv_foo' will be assigned the
12219# following values.
12220
12221_ACEOF
12222
12223# The following way of writing the cache mishandles newlines in values,
12224# but we know of no workaround that is simple, portable, and efficient.
12225# So, we kill variables containing newlines.
12226# Ultrix sh set writes to stderr and can't be redirected directly,
12227# and sets the high bit in the cache file unless we assign to the vars.
12228(
12229  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12230    eval ac_val=\$$ac_var
12231    case $ac_val in #(
12232    *${as_nl}*)
12233      case $ac_var in #(
12234      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12235$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12236      esac
12237      case $ac_var in #(
12238      _ | IFS | as_nl) ;; #(
12239      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12240      *) { eval $ac_var=; unset $ac_var;} ;;
12241      esac ;;
12242    esac
12243  done
12244
12245  (set) 2>&1 |
12246    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12247    *${as_nl}ac_space=\ *)
12248      # `set' does not quote correctly, so add quotes: double-quote
12249      # substitution turns \\\\ into \\, and sed turns \\ into \.
12250      sed -n \
12251	"s/'/'\\\\''/g;
12252	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12253      ;; #(
12254    *)
12255      # `set' quotes correctly as required by POSIX, so do not add quotes.
12256      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12257      ;;
12258    esac |
12259    sort
12260) |
12261  sed '
12262     /^ac_cv_env_/b end
12263     t clear
12264     :clear
12265     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12266     t end
12267     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12268     :end' >>confcache
12269if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12270  if test -w "$cache_file"; then
12271    if test "x$cache_file" != "x/dev/null"; then
12272      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12273$as_echo "$as_me: updating cache $cache_file" >&6;}
12274      if test ! -f "$cache_file" || test -h "$cache_file"; then
12275	cat confcache >"$cache_file"
12276      else
12277        case $cache_file in #(
12278        */* | ?:*)
12279	  mv -f confcache "$cache_file"$$ &&
12280	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12281        *)
12282	  mv -f confcache "$cache_file" ;;
12283	esac
12284      fi
12285    fi
12286  else
12287    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12288$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12289  fi
12290fi
12291rm -f confcache
12292
12293test "x$prefix" = xNONE && prefix=$ac_default_prefix
12294# Let make expand exec_prefix.
12295test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12296
12297DEFS=-DHAVE_CONFIG_H
12298
12299ac_libobjs=
12300ac_ltlibobjs=
12301U=
12302for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12303  # 1. Remove the extension, and $U if already installed.
12304  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12305  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12306  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12307  #    will be set to the directory where LIBOBJS objects are built.
12308  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12309  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12310done
12311LIBOBJS=$ac_libobjs
12312
12313LTLIBOBJS=$ac_ltlibobjs
12314
12315
12316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12317$as_echo_n "checking that generated files are newer than configure... " >&6; }
12318   if test -n "$am_sleep_pid"; then
12319     # Hide warnings about reused PIDs.
12320     wait $am_sleep_pid 2>/dev/null
12321   fi
12322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12323$as_echo "done" >&6; }
12324 if test -n "$EXEEXT"; then
12325  am__EXEEXT_TRUE=
12326  am__EXEEXT_FALSE='#'
12327else
12328  am__EXEEXT_TRUE='#'
12329  am__EXEEXT_FALSE=
12330fi
12331
12332if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12333  as_fn_error $? "conditional \"AMDEP\" was never defined.
12334Usually this means the macro was only invoked conditionally." "$LINENO" 5
12335fi
12336if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12337  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12338Usually this means the macro was only invoked conditionally." "$LINENO" 5
12339fi
12340
12341: "${CONFIG_STATUS=./config.status}"
12342ac_write_fail=0
12343ac_clean_files_save=$ac_clean_files
12344ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12345{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12346$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12347as_write_fail=0
12348cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12349#! $SHELL
12350# Generated by $as_me.
12351# Run this file to recreate the current configuration.
12352# Compiler output produced by configure, useful for debugging
12353# configure, is in config.log if it exists.
12354
12355debug=false
12356ac_cs_recheck=false
12357ac_cs_silent=false
12358
12359SHELL=\${CONFIG_SHELL-$SHELL}
12360export SHELL
12361_ASEOF
12362cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12363## -------------------- ##
12364## M4sh Initialization. ##
12365## -------------------- ##
12366
12367# Be more Bourne compatible
12368DUALCASE=1; export DUALCASE # for MKS sh
12369if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12370  emulate sh
12371  NULLCMD=:
12372  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12373  # is contrary to our usage.  Disable this feature.
12374  alias -g '${1+"$@"}'='"$@"'
12375  setopt NO_GLOB_SUBST
12376else
12377  case `(set -o) 2>/dev/null` in #(
12378  *posix*) :
12379    set -o posix ;; #(
12380  *) :
12381     ;;
12382esac
12383fi
12384
12385
12386as_nl='
12387'
12388export as_nl
12389# Printing a long string crashes Solaris 7 /usr/bin/printf.
12390as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12391as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12392as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12393# Prefer a ksh shell builtin over an external printf program on Solaris,
12394# but without wasting forks for bash or zsh.
12395if test -z "$BASH_VERSION$ZSH_VERSION" \
12396    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12397  as_echo='print -r --'
12398  as_echo_n='print -rn --'
12399elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12400  as_echo='printf %s\n'
12401  as_echo_n='printf %s'
12402else
12403  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12404    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12405    as_echo_n='/usr/ucb/echo -n'
12406  else
12407    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12408    as_echo_n_body='eval
12409      arg=$1;
12410      case $arg in #(
12411      *"$as_nl"*)
12412	expr "X$arg" : "X\\(.*\\)$as_nl";
12413	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12414      esac;
12415      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12416    '
12417    export as_echo_n_body
12418    as_echo_n='sh -c $as_echo_n_body as_echo'
12419  fi
12420  export as_echo_body
12421  as_echo='sh -c $as_echo_body as_echo'
12422fi
12423
12424# The user is always right.
12425if test "${PATH_SEPARATOR+set}" != set; then
12426  PATH_SEPARATOR=:
12427  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12428    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12429      PATH_SEPARATOR=';'
12430  }
12431fi
12432
12433
12434# IFS
12435# We need space, tab and new line, in precisely that order.  Quoting is
12436# there to prevent editors from complaining about space-tab.
12437# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12438# splitting by setting IFS to empty value.)
12439IFS=" ""	$as_nl"
12440
12441# Find who we are.  Look in the path if we contain no directory separator.
12442as_myself=
12443case $0 in #((
12444  *[\\/]* ) as_myself=$0 ;;
12445  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12446for as_dir in $PATH
12447do
12448  IFS=$as_save_IFS
12449  test -z "$as_dir" && as_dir=.
12450    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12451  done
12452IFS=$as_save_IFS
12453
12454     ;;
12455esac
12456# We did not find ourselves, most probably we were run as `sh COMMAND'
12457# in which case we are not to be found in the path.
12458if test "x$as_myself" = x; then
12459  as_myself=$0
12460fi
12461if test ! -f "$as_myself"; then
12462  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12463  exit 1
12464fi
12465
12466# Unset variables that we do not need and which cause bugs (e.g. in
12467# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12468# suppresses any "Segmentation fault" message there.  '((' could
12469# trigger a bug in pdksh 5.2.14.
12470for as_var in BASH_ENV ENV MAIL MAILPATH
12471do eval test x\${$as_var+set} = xset \
12472  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12473done
12474PS1='$ '
12475PS2='> '
12476PS4='+ '
12477
12478# NLS nuisances.
12479LC_ALL=C
12480export LC_ALL
12481LANGUAGE=C
12482export LANGUAGE
12483
12484# CDPATH.
12485(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12486
12487
12488# as_fn_error STATUS ERROR [LINENO LOG_FD]
12489# ----------------------------------------
12490# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12491# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12492# script with STATUS, using 1 if that was 0.
12493as_fn_error ()
12494{
12495  as_status=$1; test $as_status -eq 0 && as_status=1
12496  if test "$4"; then
12497    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12498    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12499  fi
12500  $as_echo "$as_me: error: $2" >&2
12501  as_fn_exit $as_status
12502} # as_fn_error
12503
12504
12505# as_fn_set_status STATUS
12506# -----------------------
12507# Set $? to STATUS, without forking.
12508as_fn_set_status ()
12509{
12510  return $1
12511} # as_fn_set_status
12512
12513# as_fn_exit STATUS
12514# -----------------
12515# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12516as_fn_exit ()
12517{
12518  set +e
12519  as_fn_set_status $1
12520  exit $1
12521} # as_fn_exit
12522
12523# as_fn_unset VAR
12524# ---------------
12525# Portably unset VAR.
12526as_fn_unset ()
12527{
12528  { eval $1=; unset $1;}
12529}
12530as_unset=as_fn_unset
12531# as_fn_append VAR VALUE
12532# ----------------------
12533# Append the text in VALUE to the end of the definition contained in VAR. Take
12534# advantage of any shell optimizations that allow amortized linear growth over
12535# repeated appends, instead of the typical quadratic growth present in naive
12536# implementations.
12537if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12538  eval 'as_fn_append ()
12539  {
12540    eval $1+=\$2
12541  }'
12542else
12543  as_fn_append ()
12544  {
12545    eval $1=\$$1\$2
12546  }
12547fi # as_fn_append
12548
12549# as_fn_arith ARG...
12550# ------------------
12551# Perform arithmetic evaluation on the ARGs, and store the result in the
12552# global $as_val. Take advantage of shells that can avoid forks. The arguments
12553# must be portable across $(()) and expr.
12554if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12555  eval 'as_fn_arith ()
12556  {
12557    as_val=$(( $* ))
12558  }'
12559else
12560  as_fn_arith ()
12561  {
12562    as_val=`expr "$@" || test $? -eq 1`
12563  }
12564fi # as_fn_arith
12565
12566
12567if expr a : '\(a\)' >/dev/null 2>&1 &&
12568   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12569  as_expr=expr
12570else
12571  as_expr=false
12572fi
12573
12574if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12575  as_basename=basename
12576else
12577  as_basename=false
12578fi
12579
12580if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12581  as_dirname=dirname
12582else
12583  as_dirname=false
12584fi
12585
12586as_me=`$as_basename -- "$0" ||
12587$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12588	 X"$0" : 'X\(//\)$' \| \
12589	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12590$as_echo X/"$0" |
12591    sed '/^.*\/\([^/][^/]*\)\/*$/{
12592	    s//\1/
12593	    q
12594	  }
12595	  /^X\/\(\/\/\)$/{
12596	    s//\1/
12597	    q
12598	  }
12599	  /^X\/\(\/\).*/{
12600	    s//\1/
12601	    q
12602	  }
12603	  s/.*/./; q'`
12604
12605# Avoid depending upon Character Ranges.
12606as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12607as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12608as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12609as_cr_digits='0123456789'
12610as_cr_alnum=$as_cr_Letters$as_cr_digits
12611
12612ECHO_C= ECHO_N= ECHO_T=
12613case `echo -n x` in #(((((
12614-n*)
12615  case `echo 'xy\c'` in
12616  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12617  xy)  ECHO_C='\c';;
12618  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12619       ECHO_T='	';;
12620  esac;;
12621*)
12622  ECHO_N='-n';;
12623esac
12624
12625rm -f conf$$ conf$$.exe conf$$.file
12626if test -d conf$$.dir; then
12627  rm -f conf$$.dir/conf$$.file
12628else
12629  rm -f conf$$.dir
12630  mkdir conf$$.dir 2>/dev/null
12631fi
12632if (echo >conf$$.file) 2>/dev/null; then
12633  if ln -s conf$$.file conf$$ 2>/dev/null; then
12634    as_ln_s='ln -s'
12635    # ... but there are two gotchas:
12636    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12637    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12638    # In both cases, we have to default to `cp -pR'.
12639    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12640      as_ln_s='cp -pR'
12641  elif ln conf$$.file conf$$ 2>/dev/null; then
12642    as_ln_s=ln
12643  else
12644    as_ln_s='cp -pR'
12645  fi
12646else
12647  as_ln_s='cp -pR'
12648fi
12649rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12650rmdir conf$$.dir 2>/dev/null
12651
12652
12653# as_fn_mkdir_p
12654# -------------
12655# Create "$as_dir" as a directory, including parents if necessary.
12656as_fn_mkdir_p ()
12657{
12658
12659  case $as_dir in #(
12660  -*) as_dir=./$as_dir;;
12661  esac
12662  test -d "$as_dir" || eval $as_mkdir_p || {
12663    as_dirs=
12664    while :; do
12665      case $as_dir in #(
12666      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12667      *) as_qdir=$as_dir;;
12668      esac
12669      as_dirs="'$as_qdir' $as_dirs"
12670      as_dir=`$as_dirname -- "$as_dir" ||
12671$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12672	 X"$as_dir" : 'X\(//\)[^/]' \| \
12673	 X"$as_dir" : 'X\(//\)$' \| \
12674	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12675$as_echo X"$as_dir" |
12676    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12677	    s//\1/
12678	    q
12679	  }
12680	  /^X\(\/\/\)[^/].*/{
12681	    s//\1/
12682	    q
12683	  }
12684	  /^X\(\/\/\)$/{
12685	    s//\1/
12686	    q
12687	  }
12688	  /^X\(\/\).*/{
12689	    s//\1/
12690	    q
12691	  }
12692	  s/.*/./; q'`
12693      test -d "$as_dir" && break
12694    done
12695    test -z "$as_dirs" || eval "mkdir $as_dirs"
12696  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12697
12698
12699} # as_fn_mkdir_p
12700if mkdir -p . 2>/dev/null; then
12701  as_mkdir_p='mkdir -p "$as_dir"'
12702else
12703  test -d ./-p && rmdir ./-p
12704  as_mkdir_p=false
12705fi
12706
12707
12708# as_fn_executable_p FILE
12709# -----------------------
12710# Test if FILE is an executable regular file.
12711as_fn_executable_p ()
12712{
12713  test -f "$1" && test -x "$1"
12714} # as_fn_executable_p
12715as_test_x='test -x'
12716as_executable_p=as_fn_executable_p
12717
12718# Sed expression to map a string onto a valid CPP name.
12719as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12720
12721# Sed expression to map a string onto a valid variable name.
12722as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12723
12724
12725exec 6>&1
12726## ----------------------------------- ##
12727## Main body of $CONFIG_STATUS script. ##
12728## ----------------------------------- ##
12729_ASEOF
12730test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12731
12732cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12733# Save the log message, to keep $0 and so on meaningful, and to
12734# report actual input values of CONFIG_FILES etc. instead of their
12735# values after options handling.
12736ac_log="
12737This file was extended by xclock $as_me 1.0.8, which was
12738generated by GNU Autoconf 2.69.  Invocation command line was
12739
12740  CONFIG_FILES    = $CONFIG_FILES
12741  CONFIG_HEADERS  = $CONFIG_HEADERS
12742  CONFIG_LINKS    = $CONFIG_LINKS
12743  CONFIG_COMMANDS = $CONFIG_COMMANDS
12744  $ $0 $@
12745
12746on `(hostname || uname -n) 2>/dev/null | sed 1q`
12747"
12748
12749_ACEOF
12750
12751case $ac_config_files in *"
12752"*) set x $ac_config_files; shift; ac_config_files=$*;;
12753esac
12754
12755case $ac_config_headers in *"
12756"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12757esac
12758
12759
12760cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12761# Files that config.status was made for.
12762config_files="$ac_config_files"
12763config_headers="$ac_config_headers"
12764config_commands="$ac_config_commands"
12765
12766_ACEOF
12767
12768cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12769ac_cs_usage="\
12770\`$as_me' instantiates files and other configuration actions
12771from templates according to the current configuration.  Unless the files
12772and actions are specified as TAGs, all are instantiated by default.
12773
12774Usage: $0 [OPTION]... [TAG]...
12775
12776  -h, --help       print this help, then exit
12777  -V, --version    print version number and configuration settings, then exit
12778      --config     print configuration, then exit
12779  -q, --quiet, --silent
12780                   do not print progress messages
12781  -d, --debug      don't remove temporary files
12782      --recheck    update $as_me by reconfiguring in the same conditions
12783      --file=FILE[:TEMPLATE]
12784                   instantiate the configuration file FILE
12785      --header=FILE[:TEMPLATE]
12786                   instantiate the configuration header FILE
12787
12788Configuration files:
12789$config_files
12790
12791Configuration headers:
12792$config_headers
12793
12794Configuration commands:
12795$config_commands
12796
12797Report bugs to <https://gitlab.freedesktop.org/xorg/app/xclock/issues>."
12798
12799_ACEOF
12800cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12801ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12802ac_cs_version="\\
12803xclock config.status 1.0.8
12804configured by $0, generated by GNU Autoconf 2.69,
12805  with options \\"\$ac_cs_config\\"
12806
12807Copyright (C) 2012 Free Software Foundation, Inc.
12808This config.status script is free software; the Free Software Foundation
12809gives unlimited permission to copy, distribute and modify it."
12810
12811ac_pwd='$ac_pwd'
12812srcdir='$srcdir'
12813INSTALL='$INSTALL'
12814MKDIR_P='$MKDIR_P'
12815AWK='$AWK'
12816test -n "\$AWK" || AWK=awk
12817_ACEOF
12818
12819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12820# The default lists apply if the user does not specify any file.
12821ac_need_defaults=:
12822while test $# != 0
12823do
12824  case $1 in
12825  --*=?*)
12826    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12827    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12828    ac_shift=:
12829    ;;
12830  --*=)
12831    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12832    ac_optarg=
12833    ac_shift=:
12834    ;;
12835  *)
12836    ac_option=$1
12837    ac_optarg=$2
12838    ac_shift=shift
12839    ;;
12840  esac
12841
12842  case $ac_option in
12843  # Handling of the options.
12844  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12845    ac_cs_recheck=: ;;
12846  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12847    $as_echo "$ac_cs_version"; exit ;;
12848  --config | --confi | --conf | --con | --co | --c )
12849    $as_echo "$ac_cs_config"; exit ;;
12850  --debug | --debu | --deb | --de | --d | -d )
12851    debug=: ;;
12852  --file | --fil | --fi | --f )
12853    $ac_shift
12854    case $ac_optarg in
12855    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12856    '') as_fn_error $? "missing file argument" ;;
12857    esac
12858    as_fn_append CONFIG_FILES " '$ac_optarg'"
12859    ac_need_defaults=false;;
12860  --header | --heade | --head | --hea )
12861    $ac_shift
12862    case $ac_optarg in
12863    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12864    esac
12865    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12866    ac_need_defaults=false;;
12867  --he | --h)
12868    # Conflict between --help and --header
12869    as_fn_error $? "ambiguous option: \`$1'
12870Try \`$0 --help' for more information.";;
12871  --help | --hel | -h )
12872    $as_echo "$ac_cs_usage"; exit ;;
12873  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12874  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12875    ac_cs_silent=: ;;
12876
12877  # This is an error.
12878  -*) as_fn_error $? "unrecognized option: \`$1'
12879Try \`$0 --help' for more information." ;;
12880
12881  *) as_fn_append ac_config_targets " $1"
12882     ac_need_defaults=false ;;
12883
12884  esac
12885  shift
12886done
12887
12888ac_configure_extra_args=
12889
12890if $ac_cs_silent; then
12891  exec 6>/dev/null
12892  ac_configure_extra_args="$ac_configure_extra_args --silent"
12893fi
12894
12895_ACEOF
12896cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12897if \$ac_cs_recheck; then
12898  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12899  shift
12900  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12901  CONFIG_SHELL='$SHELL'
12902  export CONFIG_SHELL
12903  exec "\$@"
12904fi
12905
12906_ACEOF
12907cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12908exec 5>>config.log
12909{
12910  echo
12911  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12912## Running $as_me. ##
12913_ASBOX
12914  $as_echo "$ac_log"
12915} >&5
12916
12917_ACEOF
12918cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12919#
12920# INIT-COMMANDS
12921#
12922AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12923
12924_ACEOF
12925
12926cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12927
12928# Handling of arguments.
12929for ac_config_target in $ac_config_targets
12930do
12931  case $ac_config_target in
12932    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12933    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12934    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12935    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12936
12937  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12938  esac
12939done
12940
12941
12942# If the user did not use the arguments to specify the items to instantiate,
12943# then the envvar interface is used.  Set only those that are not.
12944# We use the long form for the default assignment because of an extremely
12945# bizarre bug on SunOS 4.1.3.
12946if $ac_need_defaults; then
12947  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12948  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12949  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12950fi
12951
12952# Have a temporary directory for convenience.  Make it in the build tree
12953# simply because there is no reason against having it here, and in addition,
12954# creating and moving files from /tmp can sometimes cause problems.
12955# Hook for its removal unless debugging.
12956# Note that there is a small window in which the directory will not be cleaned:
12957# after its creation but before its name has been assigned to `$tmp'.
12958$debug ||
12959{
12960  tmp= ac_tmp=
12961  trap 'exit_status=$?
12962  : "${ac_tmp:=$tmp}"
12963  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12964' 0
12965  trap 'as_fn_exit 1' 1 2 13 15
12966}
12967# Create a (secure) tmp directory for tmp files.
12968
12969{
12970  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12971  test -d "$tmp"
12972}  ||
12973{
12974  tmp=./conf$$-$RANDOM
12975  (umask 077 && mkdir "$tmp")
12976} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12977ac_tmp=$tmp
12978
12979# Set up the scripts for CONFIG_FILES section.
12980# No need to generate them if there are no CONFIG_FILES.
12981# This happens for instance with `./config.status config.h'.
12982if test -n "$CONFIG_FILES"; then
12983
12984
12985ac_cr=`echo X | tr X '\015'`
12986# On cygwin, bash can eat \r inside `` if the user requested igncr.
12987# But we know of no other shell where ac_cr would be empty at this
12988# point, so we can use a bashism as a fallback.
12989if test "x$ac_cr" = x; then
12990  eval ac_cr=\$\'\\r\'
12991fi
12992ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12993if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12994  ac_cs_awk_cr='\\r'
12995else
12996  ac_cs_awk_cr=$ac_cr
12997fi
12998
12999echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13000_ACEOF
13001
13002
13003{
13004  echo "cat >conf$$subs.awk <<_ACEOF" &&
13005  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13006  echo "_ACEOF"
13007} >conf$$subs.sh ||
13008  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13009ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13010ac_delim='%!_!# '
13011for ac_last_try in false false false false false :; do
13012  . ./conf$$subs.sh ||
13013    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13014
13015  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13016  if test $ac_delim_n = $ac_delim_num; then
13017    break
13018  elif $ac_last_try; then
13019    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13020  else
13021    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13022  fi
13023done
13024rm -f conf$$subs.sh
13025
13026cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13027cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13028_ACEOF
13029sed -n '
13030h
13031s/^/S["/; s/!.*/"]=/
13032p
13033g
13034s/^[^!]*!//
13035:repl
13036t repl
13037s/'"$ac_delim"'$//
13038t delim
13039:nl
13040h
13041s/\(.\{148\}\)..*/\1/
13042t more1
13043s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13044p
13045n
13046b repl
13047:more1
13048s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13049p
13050g
13051s/.\{148\}//
13052t nl
13053:delim
13054h
13055s/\(.\{148\}\)..*/\1/
13056t more2
13057s/["\\]/\\&/g; s/^/"/; s/$/"/
13058p
13059b
13060:more2
13061s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13062p
13063g
13064s/.\{148\}//
13065t delim
13066' <conf$$subs.awk | sed '
13067/^[^""]/{
13068  N
13069  s/\n//
13070}
13071' >>$CONFIG_STATUS || ac_write_fail=1
13072rm -f conf$$subs.awk
13073cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13074_ACAWK
13075cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13076  for (key in S) S_is_set[key] = 1
13077  FS = ""
13078
13079}
13080{
13081  line = $ 0
13082  nfields = split(line, field, "@")
13083  substed = 0
13084  len = length(field[1])
13085  for (i = 2; i < nfields; i++) {
13086    key = field[i]
13087    keylen = length(key)
13088    if (S_is_set[key]) {
13089      value = S[key]
13090      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13091      len += length(value) + length(field[++i])
13092      substed = 1
13093    } else
13094      len += 1 + keylen
13095  }
13096
13097  print line
13098}
13099
13100_ACAWK
13101_ACEOF
13102cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13103if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13104  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13105else
13106  cat
13107fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13108  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13109_ACEOF
13110
13111# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13112# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13113# trailing colons and then remove the whole line if VPATH becomes empty
13114# (actually we leave an empty line to preserve line numbers).
13115if test "x$srcdir" = x.; then
13116  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13117h
13118s///
13119s/^/:/
13120s/[	 ]*$/:/
13121s/:\$(srcdir):/:/g
13122s/:\${srcdir}:/:/g
13123s/:@srcdir@:/:/g
13124s/^:*//
13125s/:*$//
13126x
13127s/\(=[	 ]*\).*/\1/
13128G
13129s/\n//
13130s/^[^=]*=[	 ]*$//
13131}'
13132fi
13133
13134cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13135fi # test -n "$CONFIG_FILES"
13136
13137# Set up the scripts for CONFIG_HEADERS section.
13138# No need to generate them if there are no CONFIG_HEADERS.
13139# This happens for instance with `./config.status Makefile'.
13140if test -n "$CONFIG_HEADERS"; then
13141cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13142BEGIN {
13143_ACEOF
13144
13145# Transform confdefs.h into an awk script `defines.awk', embedded as
13146# here-document in config.status, that substitutes the proper values into
13147# config.h.in to produce config.h.
13148
13149# Create a delimiter string that does not exist in confdefs.h, to ease
13150# handling of long lines.
13151ac_delim='%!_!# '
13152for ac_last_try in false false :; do
13153  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13154  if test -z "$ac_tt"; then
13155    break
13156  elif $ac_last_try; then
13157    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13158  else
13159    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13160  fi
13161done
13162
13163# For the awk script, D is an array of macro values keyed by name,
13164# likewise P contains macro parameters if any.  Preserve backslash
13165# newline sequences.
13166
13167ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13168sed -n '
13169s/.\{148\}/&'"$ac_delim"'/g
13170t rset
13171:rset
13172s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13173t def
13174d
13175:def
13176s/\\$//
13177t bsnl
13178s/["\\]/\\&/g
13179s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13180D["\1"]=" \3"/p
13181s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13182d
13183:bsnl
13184s/["\\]/\\&/g
13185s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13186D["\1"]=" \3\\\\\\n"\\/p
13187t cont
13188s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13189t cont
13190d
13191:cont
13192n
13193s/.\{148\}/&'"$ac_delim"'/g
13194t clear
13195:clear
13196s/\\$//
13197t bsnlc
13198s/["\\]/\\&/g; s/^/"/; s/$/"/p
13199d
13200:bsnlc
13201s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13202b cont
13203' <confdefs.h | sed '
13204s/'"$ac_delim"'/"\\\
13205"/g' >>$CONFIG_STATUS || ac_write_fail=1
13206
13207cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13208  for (key in D) D_is_set[key] = 1
13209  FS = ""
13210}
13211/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13212  line = \$ 0
13213  split(line, arg, " ")
13214  if (arg[1] == "#") {
13215    defundef = arg[2]
13216    mac1 = arg[3]
13217  } else {
13218    defundef = substr(arg[1], 2)
13219    mac1 = arg[2]
13220  }
13221  split(mac1, mac2, "(") #)
13222  macro = mac2[1]
13223  prefix = substr(line, 1, index(line, defundef) - 1)
13224  if (D_is_set[macro]) {
13225    # Preserve the white space surrounding the "#".
13226    print prefix "define", macro P[macro] D[macro]
13227    next
13228  } else {
13229    # Replace #undef with comments.  This is necessary, for example,
13230    # in the case of _POSIX_SOURCE, which is predefined and required
13231    # on some systems where configure will not decide to define it.
13232    if (defundef == "undef") {
13233      print "/*", prefix defundef, macro, "*/"
13234      next
13235    }
13236  }
13237}
13238{ print }
13239_ACAWK
13240_ACEOF
13241cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13242  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13243fi # test -n "$CONFIG_HEADERS"
13244
13245
13246eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13247shift
13248for ac_tag
13249do
13250  case $ac_tag in
13251  :[FHLC]) ac_mode=$ac_tag; continue;;
13252  esac
13253  case $ac_mode$ac_tag in
13254  :[FHL]*:*);;
13255  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13256  :[FH]-) ac_tag=-:-;;
13257  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13258  esac
13259  ac_save_IFS=$IFS
13260  IFS=:
13261  set x $ac_tag
13262  IFS=$ac_save_IFS
13263  shift
13264  ac_file=$1
13265  shift
13266
13267  case $ac_mode in
13268  :L) ac_source=$1;;
13269  :[FH])
13270    ac_file_inputs=
13271    for ac_f
13272    do
13273      case $ac_f in
13274      -) ac_f="$ac_tmp/stdin";;
13275      *) # Look for the file first in the build tree, then in the source tree
13276	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13277	 # because $ac_f cannot contain `:'.
13278	 test -f "$ac_f" ||
13279	   case $ac_f in
13280	   [\\/$]*) false;;
13281	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13282	   esac ||
13283	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13284      esac
13285      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13286      as_fn_append ac_file_inputs " '$ac_f'"
13287    done
13288
13289    # Let's still pretend it is `configure' which instantiates (i.e., don't
13290    # use $as_me), people would be surprised to read:
13291    #    /* config.h.  Generated by config.status.  */
13292    configure_input='Generated from '`
13293	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13294	`' by configure.'
13295    if test x"$ac_file" != x-; then
13296      configure_input="$ac_file.  $configure_input"
13297      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13298$as_echo "$as_me: creating $ac_file" >&6;}
13299    fi
13300    # Neutralize special characters interpreted by sed in replacement strings.
13301    case $configure_input in #(
13302    *\&* | *\|* | *\\* )
13303       ac_sed_conf_input=`$as_echo "$configure_input" |
13304       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13305    *) ac_sed_conf_input=$configure_input;;
13306    esac
13307
13308    case $ac_tag in
13309    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13310      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13311    esac
13312    ;;
13313  esac
13314
13315  ac_dir=`$as_dirname -- "$ac_file" ||
13316$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13317	 X"$ac_file" : 'X\(//\)[^/]' \| \
13318	 X"$ac_file" : 'X\(//\)$' \| \
13319	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13320$as_echo X"$ac_file" |
13321    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13322	    s//\1/
13323	    q
13324	  }
13325	  /^X\(\/\/\)[^/].*/{
13326	    s//\1/
13327	    q
13328	  }
13329	  /^X\(\/\/\)$/{
13330	    s//\1/
13331	    q
13332	  }
13333	  /^X\(\/\).*/{
13334	    s//\1/
13335	    q
13336	  }
13337	  s/.*/./; q'`
13338  as_dir="$ac_dir"; as_fn_mkdir_p
13339  ac_builddir=.
13340
13341case "$ac_dir" in
13342.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13343*)
13344  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13345  # A ".." for each directory in $ac_dir_suffix.
13346  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13347  case $ac_top_builddir_sub in
13348  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13349  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13350  esac ;;
13351esac
13352ac_abs_top_builddir=$ac_pwd
13353ac_abs_builddir=$ac_pwd$ac_dir_suffix
13354# for backward compatibility:
13355ac_top_builddir=$ac_top_build_prefix
13356
13357case $srcdir in
13358  .)  # We are building in place.
13359    ac_srcdir=.
13360    ac_top_srcdir=$ac_top_builddir_sub
13361    ac_abs_top_srcdir=$ac_pwd ;;
13362  [\\/]* | ?:[\\/]* )  # Absolute name.
13363    ac_srcdir=$srcdir$ac_dir_suffix;
13364    ac_top_srcdir=$srcdir
13365    ac_abs_top_srcdir=$srcdir ;;
13366  *) # Relative name.
13367    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13368    ac_top_srcdir=$ac_top_build_prefix$srcdir
13369    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13370esac
13371ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13372
13373
13374  case $ac_mode in
13375  :F)
13376  #
13377  # CONFIG_FILE
13378  #
13379
13380  case $INSTALL in
13381  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13382  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13383  esac
13384  ac_MKDIR_P=$MKDIR_P
13385  case $MKDIR_P in
13386  [\\/$]* | ?:[\\/]* ) ;;
13387  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13388  esac
13389_ACEOF
13390
13391cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13392# If the template does not know about datarootdir, expand it.
13393# FIXME: This hack should be removed a few years after 2.60.
13394ac_datarootdir_hack=; ac_datarootdir_seen=
13395ac_sed_dataroot='
13396/datarootdir/ {
13397  p
13398  q
13399}
13400/@datadir@/p
13401/@docdir@/p
13402/@infodir@/p
13403/@localedir@/p
13404/@mandir@/p'
13405case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13406*datarootdir*) ac_datarootdir_seen=yes;;
13407*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13408  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13409$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13410_ACEOF
13411cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13412  ac_datarootdir_hack='
13413  s&@datadir@&$datadir&g
13414  s&@docdir@&$docdir&g
13415  s&@infodir@&$infodir&g
13416  s&@localedir@&$localedir&g
13417  s&@mandir@&$mandir&g
13418  s&\\\${datarootdir}&$datarootdir&g' ;;
13419esac
13420_ACEOF
13421
13422# Neutralize VPATH when `$srcdir' = `.'.
13423# Shell code in configure.ac might set extrasub.
13424# FIXME: do we really want to maintain this feature?
13425cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13426ac_sed_extra="$ac_vpsub
13427$extrasub
13428_ACEOF
13429cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13430:t
13431/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13432s|@configure_input@|$ac_sed_conf_input|;t t
13433s&@top_builddir@&$ac_top_builddir_sub&;t t
13434s&@top_build_prefix@&$ac_top_build_prefix&;t t
13435s&@srcdir@&$ac_srcdir&;t t
13436s&@abs_srcdir@&$ac_abs_srcdir&;t t
13437s&@top_srcdir@&$ac_top_srcdir&;t t
13438s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13439s&@builddir@&$ac_builddir&;t t
13440s&@abs_builddir@&$ac_abs_builddir&;t t
13441s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13442s&@INSTALL@&$ac_INSTALL&;t t
13443s&@MKDIR_P@&$ac_MKDIR_P&;t t
13444$ac_datarootdir_hack
13445"
13446eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13447  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13448
13449test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13450  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13451  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13452      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13453  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13454which seems to be undefined.  Please make sure it is defined" >&5
13455$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13456which seems to be undefined.  Please make sure it is defined" >&2;}
13457
13458  rm -f "$ac_tmp/stdin"
13459  case $ac_file in
13460  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13461  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13462  esac \
13463  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13464 ;;
13465  :H)
13466  #
13467  # CONFIG_HEADER
13468  #
13469  if test x"$ac_file" != x-; then
13470    {
13471      $as_echo "/* $configure_input  */" \
13472      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13473    } >"$ac_tmp/config.h" \
13474      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13475    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13476      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13477$as_echo "$as_me: $ac_file is unchanged" >&6;}
13478    else
13479      rm -f "$ac_file"
13480      mv "$ac_tmp/config.h" "$ac_file" \
13481	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13482    fi
13483  else
13484    $as_echo "/* $configure_input  */" \
13485      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13486      || as_fn_error $? "could not create -" "$LINENO" 5
13487  fi
13488# Compute "$ac_file"'s index in $config_headers.
13489_am_arg="$ac_file"
13490_am_stamp_count=1
13491for _am_header in $config_headers :; do
13492  case $_am_header in
13493    $_am_arg | $_am_arg:* )
13494      break ;;
13495    * )
13496      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13497  esac
13498done
13499echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13500$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13501	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13502	 X"$_am_arg" : 'X\(//\)$' \| \
13503	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13504$as_echo X"$_am_arg" |
13505    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13506	    s//\1/
13507	    q
13508	  }
13509	  /^X\(\/\/\)[^/].*/{
13510	    s//\1/
13511	    q
13512	  }
13513	  /^X\(\/\/\)$/{
13514	    s//\1/
13515	    q
13516	  }
13517	  /^X\(\/\).*/{
13518	    s//\1/
13519	    q
13520	  }
13521	  s/.*/./; q'`/stamp-h$_am_stamp_count
13522 ;;
13523
13524  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13525$as_echo "$as_me: executing $ac_file commands" >&6;}
13526 ;;
13527  esac
13528
13529
13530  case $ac_file$ac_mode in
13531    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13532  # Older Autoconf quotes --file arguments for eval, but not when files
13533  # are listed without --file.  Let's play safe and only enable the eval
13534  # if we detect the quoting.
13535  case $CONFIG_FILES in
13536  *\'*) eval set x "$CONFIG_FILES" ;;
13537  *)   set x $CONFIG_FILES ;;
13538  esac
13539  shift
13540  for mf
13541  do
13542    # Strip MF so we end up with the name of the file.
13543    mf=`echo "$mf" | sed -e 's/:.*$//'`
13544    # Check whether this is an Automake generated Makefile or not.
13545    # We used to match only the files named 'Makefile.in', but
13546    # some people rename them; so instead we look at the file content.
13547    # Grep'ing the first line is not enough: some people post-process
13548    # each Makefile.in and add a new line on top of each file to say so.
13549    # Grep'ing the whole file is not good either: AIX grep has a line
13550    # limit of 2048, but all sed's we know have understand at least 4000.
13551    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13552      dirpart=`$as_dirname -- "$mf" ||
13553$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13554	 X"$mf" : 'X\(//\)[^/]' \| \
13555	 X"$mf" : 'X\(//\)$' \| \
13556	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13557$as_echo X"$mf" |
13558    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13559	    s//\1/
13560	    q
13561	  }
13562	  /^X\(\/\/\)[^/].*/{
13563	    s//\1/
13564	    q
13565	  }
13566	  /^X\(\/\/\)$/{
13567	    s//\1/
13568	    q
13569	  }
13570	  /^X\(\/\).*/{
13571	    s//\1/
13572	    q
13573	  }
13574	  s/.*/./; q'`
13575    else
13576      continue
13577    fi
13578    # Extract the definition of DEPDIR, am__include, and am__quote
13579    # from the Makefile without running 'make'.
13580    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13581    test -z "$DEPDIR" && continue
13582    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13583    test -z "$am__include" && continue
13584    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13585    # Find all dependency output files, they are included files with
13586    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13587    # simplest approach to changing $(DEPDIR) to its actual value in the
13588    # expansion.
13589    for file in `sed -n "
13590      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13591	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13592      # Make sure the directory exists.
13593      test -f "$dirpart/$file" && continue
13594      fdir=`$as_dirname -- "$file" ||
13595$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13596	 X"$file" : 'X\(//\)[^/]' \| \
13597	 X"$file" : 'X\(//\)$' \| \
13598	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13599$as_echo X"$file" |
13600    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13601	    s//\1/
13602	    q
13603	  }
13604	  /^X\(\/\/\)[^/].*/{
13605	    s//\1/
13606	    q
13607	  }
13608	  /^X\(\/\/\)$/{
13609	    s//\1/
13610	    q
13611	  }
13612	  /^X\(\/\).*/{
13613	    s//\1/
13614	    q
13615	  }
13616	  s/.*/./; q'`
13617      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13618      # echo "creating $dirpart/$file"
13619      echo '# dummy' > "$dirpart/$file"
13620    done
13621  done
13622}
13623 ;;
13624
13625  esac
13626done # for ac_tag
13627
13628
13629as_fn_exit 0
13630_ACEOF
13631ac_clean_files=$ac_clean_files_save
13632
13633test $ac_write_fail = 0 ||
13634  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13635
13636
13637# configure is writing to config.log, and then calls config.status.
13638# config.status does its own redirection, appending to config.log.
13639# Unfortunately, on DOS this fails, as config.log is still kept open
13640# by configure, so config.status won't be able to write to it; its
13641# output is simply discarded.  So we exec the FD to /dev/null,
13642# effectively closing config.log, so it can be properly (re)opened and
13643# appended to by config.status.  When coming back to configure, we
13644# need to make the FD available again.
13645if test "$no_create" != yes; then
13646  ac_cs_success=:
13647  ac_config_status_args=
13648  test "$silent" = yes &&
13649    ac_config_status_args="$ac_config_status_args --quiet"
13650  exec 5>/dev/null
13651  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13652  exec 5>>config.log
13653  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13654  # would make configure fail if this is the last instruction.
13655  $ac_cs_success || as_fn_exit 1
13656fi
13657if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13658  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13659$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13660fi
13661
13662