configure revision 6d36ef34
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xman 1.1.3.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194	 /*)
195	   for as_base in sh bash ksh sh5; do
196	     # Try only shells that exist, to save several forks.
197	     as_shell=$as_dir/$as_base
198	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205	   done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218	# neutralization value for shells without unset; and this also
219	# works around shells that cannot unset nonexistent variables.
220	# Preserve -v and -x to the replacement shell.
221	BASH_ENV=/dev/null
222	ENV=/dev/null
223	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224	export CONFIG_SHELL
225	case $- in # ((((
226	  *v*x* | *x*v* ) as_opts=-vx ;;
227	  *v* ) as_opts=-v ;;
228	  *x* ) as_opts=-x ;;
229	  * ) as_opts= ;;
230	esac
231	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243$0: about your system, including any error possibly output
244$0: before this message. Then install a modern shell, or
245$0: manually run the script under such a shell if you do
246$0: have one."
247  fi
248  exit 1
249fi
250fi
251fi
252SHELL=${CONFIG_SHELL-/bin/sh}
253export SHELL
254# Unset more variables known to interfere with behavior of common tools.
255CLICOLOR_FORCE= GREP_OPTIONS=
256unset CLICOLOR_FORCE GREP_OPTIONS
257
258## --------------------- ##
259## M4sh Shell Functions. ##
260## --------------------- ##
261# as_fn_unset VAR
262# ---------------
263# Portably unset VAR.
264as_fn_unset ()
265{
266  { eval $1=; unset $1;}
267}
268as_unset=as_fn_unset
269
270# as_fn_set_status STATUS
271# -----------------------
272# Set $? to STATUS, without forking.
273as_fn_set_status ()
274{
275  return $1
276} # as_fn_set_status
277
278# as_fn_exit STATUS
279# -----------------
280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281as_fn_exit ()
282{
283  set +e
284  as_fn_set_status $1
285  exit $1
286} # as_fn_exit
287
288# as_fn_mkdir_p
289# -------------
290# Create "$as_dir" as a directory, including parents if necessary.
291as_fn_mkdir_p ()
292{
293
294  case $as_dir in #(
295  -*) as_dir=./$as_dir;;
296  esac
297  test -d "$as_dir" || eval $as_mkdir_p || {
298    as_dirs=
299    while :; do
300      case $as_dir in #(
301      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302      *) as_qdir=$as_dir;;
303      esac
304      as_dirs="'$as_qdir' $as_dirs"
305      as_dir=`$as_dirname -- "$as_dir" ||
306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307	 X"$as_dir" : 'X\(//\)[^/]' \| \
308	 X"$as_dir" : 'X\(//\)$' \| \
309	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310$as_echo X"$as_dir" |
311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\/\)[^/].*/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\/\)$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\).*/{
324	    s//\1/
325	    q
326	  }
327	  s/.*/./; q'`
328      test -d "$as_dir" && break
329    done
330    test -z "$as_dirs" || eval "mkdir $as_dirs"
331  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334} # as_fn_mkdir_p
335# as_fn_append VAR VALUE
336# ----------------------
337# Append the text in VALUE to the end of the definition contained in VAR. Take
338# advantage of any shell optimizations that allow amortized linear growth over
339# repeated appends, instead of the typical quadratic growth present in naive
340# implementations.
341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342  eval 'as_fn_append ()
343  {
344    eval $1+=\$2
345  }'
346else
347  as_fn_append ()
348  {
349    eval $1=\$$1\$2
350  }
351fi # as_fn_append
352
353# as_fn_arith ARG...
354# ------------------
355# Perform arithmetic evaluation on the ARGs, and store the result in the
356# global $as_val. Take advantage of shells that can avoid forks. The arguments
357# must be portable across $(()) and expr.
358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359  eval 'as_fn_arith ()
360  {
361    as_val=$(( $* ))
362  }'
363else
364  as_fn_arith ()
365  {
366    as_val=`expr "$@" || test $? -eq 1`
367  }
368fi # as_fn_arith
369
370
371# as_fn_error STATUS ERROR [LINENO LOG_FD]
372# ----------------------------------------
373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375# script with STATUS, using 1 if that was 0.
376as_fn_error ()
377{
378  as_status=$1; test $as_status -eq 0 && as_status=1
379  if test "$4"; then
380    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382  fi
383  $as_echo "$as_me: error: $2" >&2
384  as_fn_exit $as_status
385} # as_fn_error
386
387if expr a : '\(a\)' >/dev/null 2>&1 &&
388   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389  as_expr=expr
390else
391  as_expr=false
392fi
393
394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395  as_basename=basename
396else
397  as_basename=false
398fi
399
400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401  as_dirname=dirname
402else
403  as_dirname=false
404fi
405
406as_me=`$as_basename -- "$0" ||
407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408	 X"$0" : 'X\(//\)$' \| \
409	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410$as_echo X/"$0" |
411    sed '/^.*\/\([^/][^/]*\)\/*$/{
412	    s//\1/
413	    q
414	  }
415	  /^X\/\(\/\/\)$/{
416	    s//\1/
417	    q
418	  }
419	  /^X\/\(\/\).*/{
420	    s//\1/
421	    q
422	  }
423	  s/.*/./; q'`
424
425# Avoid depending upon Character Ranges.
426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429as_cr_digits='0123456789'
430as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456  # Don't try to exec as it changes $[0], causing all sort of problems
457  # (the dirname of $[0] is not the place where we might find the
458  # original and so on.  Autoconf is especially sensitive to this).
459  . "./$as_me.lineno"
460  # Exit status is that of the last command.
461  exit
462}
463
464ECHO_C= ECHO_N= ECHO_T=
465case `echo -n x` in #(((((
466-n*)
467  case `echo 'xy\c'` in
468  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469  xy)  ECHO_C='\c';;
470  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471       ECHO_T='	';;
472  esac;;
473*)
474  ECHO_N='-n';;
475esac
476
477rm -f conf$$ conf$$.exe conf$$.file
478if test -d conf$$.dir; then
479  rm -f conf$$.dir/conf$$.file
480else
481  rm -f conf$$.dir
482  mkdir conf$$.dir 2>/dev/null
483fi
484if (echo >conf$$.file) 2>/dev/null; then
485  if ln -s conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s='ln -s'
487    # ... but there are two gotchas:
488    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490    # In both cases, we have to default to `cp -p'.
491    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492      as_ln_s='cp -p'
493  elif ln conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s=ln
495  else
496    as_ln_s='cp -p'
497  fi
498else
499  as_ln_s='cp -p'
500fi
501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502rmdir conf$$.dir 2>/dev/null
503
504if mkdir -p . 2>/dev/null; then
505  as_mkdir_p='mkdir -p "$as_dir"'
506else
507  test -d ./-p && rmdir ./-p
508  as_mkdir_p=false
509fi
510
511if test -x / >/dev/null 2>&1; then
512  as_test_x='test -x'
513else
514  if ls -dL / >/dev/null 2>&1; then
515    as_ls_L_option=L
516  else
517    as_ls_L_option=
518  fi
519  as_test_x='
520    eval sh -c '\''
521      if test -d "$1"; then
522	test -d "$1/.";
523      else
524	case $1 in #(
525	-*)set "./$1";;
526	esac;
527	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528	???[sx]*):;;*)false;;esac;fi
529    '\'' sh
530  '
531fi
532as_executable_p=$as_test_x
533
534# Sed expression to map a string onto a valid CPP name.
535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537# Sed expression to map a string onto a valid variable name.
538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541test -n "$DJDIR" || exec 7<&0 </dev/null
542exec 6>&1
543
544# Name of the host.
545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546# so uname gets run too.
547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549#
550# Initializations.
551#
552ac_default_prefix=/usr/local
553ac_clean_files=
554ac_config_libobj_dir=.
555LIBOBJS=
556cross_compiling=no
557subdirs=
558MFLAGS=
559MAKEFLAGS=
560
561# Identity of this package.
562PACKAGE_NAME='xman'
563PACKAGE_TARNAME='xman'
564PACKAGE_VERSION='1.1.3'
565PACKAGE_STRING='xman 1.1.3'
566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567PACKAGE_URL=''
568
569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
572#ifdef HAVE_SYS_TYPES_H
573# include <sys/types.h>
574#endif
575#ifdef HAVE_SYS_STAT_H
576# include <sys/stat.h>
577#endif
578#ifdef STDC_HEADERS
579# include <stdlib.h>
580# include <stddef.h>
581#else
582# ifdef HAVE_STDLIB_H
583#  include <stdlib.h>
584# endif
585#endif
586#ifdef HAVE_STRING_H
587# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588#  include <memory.h>
589# endif
590# include <string.h>
591#endif
592#ifdef HAVE_STRINGS_H
593# include <strings.h>
594#endif
595#ifdef HAVE_INTTYPES_H
596# include <inttypes.h>
597#endif
598#ifdef HAVE_STDINT_H
599# include <stdint.h>
600#endif
601#ifdef HAVE_UNISTD_H
602# include <unistd.h>
603#endif"
604
605ac_subst_vars='am__EXEEXT_FALSE
606am__EXEEXT_TRUE
607LTLIBOBJS
608LIBOBJS
609appdefaultdir
610APPDEFS_LIBS
611APPDEFS_CFLAGS
612XMAN_LIBS
613XMAN_CFLAGS
614HELPDIR
615GROFF
616MAN_SUBSTS
617XORG_MAN_PAGE
618ADMIN_MAN_DIR
619DRIVER_MAN_DIR
620MISC_MAN_DIR
621FILE_MAN_DIR
622LIB_MAN_DIR
623APP_MAN_DIR
624ADMIN_MAN_SUFFIX
625DRIVER_MAN_SUFFIX
626MISC_MAN_SUFFIX
627FILE_MAN_SUFFIX
628LIB_MAN_SUFFIX
629APP_MAN_SUFFIX
630SED
631host_os
632host_vendor
633host_cpu
634host
635build_os
636build_vendor
637build_cpu
638build
639INSTALL_CMD
640PKG_CONFIG
641CHANGELOG_CMD
642STRICT_CFLAGS
643CWARNFLAGS
644BASE_CFLAGS
645EGREP
646GREP
647CPP
648am__fastdepCC_FALSE
649am__fastdepCC_TRUE
650CCDEPMODE
651am__nodep
652AMDEPBACKSLASH
653AMDEP_FALSE
654AMDEP_TRUE
655am__quote
656am__include
657DEPDIR
658OBJEXT
659EXEEXT
660ac_ct_CC
661CPPFLAGS
662LDFLAGS
663CFLAGS
664CC
665MAINT
666MAINTAINER_MODE_FALSE
667MAINTAINER_MODE_TRUE
668AM_BACKSLASH
669AM_DEFAULT_VERBOSITY
670AM_DEFAULT_V
671AM_V
672am__untar
673am__tar
674AMTAR
675am__leading_dot
676SET_MAKE
677AWK
678mkdir_p
679MKDIR_P
680INSTALL_STRIP_PROGRAM
681STRIP
682install_sh
683MAKEINFO
684AUTOHEADER
685AUTOMAKE
686AUTOCONF
687ACLOCAL
688VERSION
689PACKAGE
690CYGPATH_W
691am__isrc
692INSTALL_DATA
693INSTALL_SCRIPT
694INSTALL_PROGRAM
695target_alias
696host_alias
697build_alias
698LIBS
699ECHO_T
700ECHO_N
701ECHO_C
702DEFS
703mandir
704localedir
705libdir
706psdir
707pdfdir
708dvidir
709htmldir
710infodir
711docdir
712oldincludedir
713includedir
714localstatedir
715sharedstatedir
716sysconfdir
717datadir
718datarootdir
719libexecdir
720sbindir
721bindir
722program_transform_name
723prefix
724exec_prefix
725PACKAGE_URL
726PACKAGE_BUGREPORT
727PACKAGE_STRING
728PACKAGE_VERSION
729PACKAGE_TARNAME
730PACKAGE_NAME
731PATH_SEPARATOR
732SHELL'
733ac_subst_files=''
734ac_user_opts='
735enable_option_checking
736enable_silent_rules
737enable_maintainer_mode
738enable_dependency_tracking
739enable_selective_werror
740enable_strict_compilation
741with_helpdir
742with_sysmanpath
743with_localmanpath
744with_manconfig
745with_appdefaultdir
746'
747      ac_precious_vars='build_alias
748host_alias
749target_alias
750CC
751CFLAGS
752LDFLAGS
753LIBS
754CPPFLAGS
755CPP
756PKG_CONFIG
757XMAN_CFLAGS
758XMAN_LIBS
759APPDEFS_CFLAGS
760APPDEFS_LIBS'
761
762
763# Initialize some variables set by options.
764ac_init_help=
765ac_init_version=false
766ac_unrecognized_opts=
767ac_unrecognized_sep=
768# The variables have the same names as the options, with
769# dashes changed to underlines.
770cache_file=/dev/null
771exec_prefix=NONE
772no_create=
773no_recursion=
774prefix=NONE
775program_prefix=NONE
776program_suffix=NONE
777program_transform_name=s,x,x,
778silent=
779site=
780srcdir=
781verbose=
782x_includes=NONE
783x_libraries=NONE
784
785# Installation directory options.
786# These are left unexpanded so users can "make install exec_prefix=/foo"
787# and all the variables that are supposed to be based on exec_prefix
788# by default will actually change.
789# Use braces instead of parens because sh, perl, etc. also accept them.
790# (The list follows the same order as the GNU Coding Standards.)
791bindir='${exec_prefix}/bin'
792sbindir='${exec_prefix}/sbin'
793libexecdir='${exec_prefix}/libexec'
794datarootdir='${prefix}/share'
795datadir='${datarootdir}'
796sysconfdir='${prefix}/etc'
797sharedstatedir='${prefix}/com'
798localstatedir='${prefix}/var'
799includedir='${prefix}/include'
800oldincludedir='/usr/include'
801docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
802infodir='${datarootdir}/info'
803htmldir='${docdir}'
804dvidir='${docdir}'
805pdfdir='${docdir}'
806psdir='${docdir}'
807libdir='${exec_prefix}/lib'
808localedir='${datarootdir}/locale'
809mandir='${datarootdir}/man'
810
811ac_prev=
812ac_dashdash=
813for ac_option
814do
815  # If the previous option needs an argument, assign it.
816  if test -n "$ac_prev"; then
817    eval $ac_prev=\$ac_option
818    ac_prev=
819    continue
820  fi
821
822  case $ac_option in
823  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
824  *=)   ac_optarg= ;;
825  *)    ac_optarg=yes ;;
826  esac
827
828  # Accept the important Cygnus configure options, so we can diagnose typos.
829
830  case $ac_dashdash$ac_option in
831  --)
832    ac_dashdash=yes ;;
833
834  -bindir | --bindir | --bindi | --bind | --bin | --bi)
835    ac_prev=bindir ;;
836  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
837    bindir=$ac_optarg ;;
838
839  -build | --build | --buil | --bui | --bu)
840    ac_prev=build_alias ;;
841  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
842    build_alias=$ac_optarg ;;
843
844  -cache-file | --cache-file | --cache-fil | --cache-fi \
845  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
846    ac_prev=cache_file ;;
847  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
848  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
849    cache_file=$ac_optarg ;;
850
851  --config-cache | -C)
852    cache_file=config.cache ;;
853
854  -datadir | --datadir | --datadi | --datad)
855    ac_prev=datadir ;;
856  -datadir=* | --datadir=* | --datadi=* | --datad=*)
857    datadir=$ac_optarg ;;
858
859  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
860  | --dataroo | --dataro | --datar)
861    ac_prev=datarootdir ;;
862  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
863  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
864    datarootdir=$ac_optarg ;;
865
866  -disable-* | --disable-*)
867    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
868    # Reject names that are not valid shell variable names.
869    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
870      as_fn_error $? "invalid feature name: $ac_useropt"
871    ac_useropt_orig=$ac_useropt
872    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
873    case $ac_user_opts in
874      *"
875"enable_$ac_useropt"
876"*) ;;
877      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
878	 ac_unrecognized_sep=', ';;
879    esac
880    eval enable_$ac_useropt=no ;;
881
882  -docdir | --docdir | --docdi | --doc | --do)
883    ac_prev=docdir ;;
884  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
885    docdir=$ac_optarg ;;
886
887  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
888    ac_prev=dvidir ;;
889  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
890    dvidir=$ac_optarg ;;
891
892  -enable-* | --enable-*)
893    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
894    # Reject names that are not valid shell variable names.
895    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896      as_fn_error $? "invalid feature name: $ac_useropt"
897    ac_useropt_orig=$ac_useropt
898    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899    case $ac_user_opts in
900      *"
901"enable_$ac_useropt"
902"*) ;;
903      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
904	 ac_unrecognized_sep=', ';;
905    esac
906    eval enable_$ac_useropt=\$ac_optarg ;;
907
908  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
909  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
910  | --exec | --exe | --ex)
911    ac_prev=exec_prefix ;;
912  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
913  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
914  | --exec=* | --exe=* | --ex=*)
915    exec_prefix=$ac_optarg ;;
916
917  -gas | --gas | --ga | --g)
918    # Obsolete; use --with-gas.
919    with_gas=yes ;;
920
921  -help | --help | --hel | --he | -h)
922    ac_init_help=long ;;
923  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
924    ac_init_help=recursive ;;
925  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
926    ac_init_help=short ;;
927
928  -host | --host | --hos | --ho)
929    ac_prev=host_alias ;;
930  -host=* | --host=* | --hos=* | --ho=*)
931    host_alias=$ac_optarg ;;
932
933  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
934    ac_prev=htmldir ;;
935  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
936  | --ht=*)
937    htmldir=$ac_optarg ;;
938
939  -includedir | --includedir | --includedi | --included | --include \
940  | --includ | --inclu | --incl | --inc)
941    ac_prev=includedir ;;
942  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
943  | --includ=* | --inclu=* | --incl=* | --inc=*)
944    includedir=$ac_optarg ;;
945
946  -infodir | --infodir | --infodi | --infod | --info | --inf)
947    ac_prev=infodir ;;
948  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
949    infodir=$ac_optarg ;;
950
951  -libdir | --libdir | --libdi | --libd)
952    ac_prev=libdir ;;
953  -libdir=* | --libdir=* | --libdi=* | --libd=*)
954    libdir=$ac_optarg ;;
955
956  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
957  | --libexe | --libex | --libe)
958    ac_prev=libexecdir ;;
959  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
960  | --libexe=* | --libex=* | --libe=*)
961    libexecdir=$ac_optarg ;;
962
963  -localedir | --localedir | --localedi | --localed | --locale)
964    ac_prev=localedir ;;
965  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
966    localedir=$ac_optarg ;;
967
968  -localstatedir | --localstatedir | --localstatedi | --localstated \
969  | --localstate | --localstat | --localsta | --localst | --locals)
970    ac_prev=localstatedir ;;
971  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
972  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
973    localstatedir=$ac_optarg ;;
974
975  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
976    ac_prev=mandir ;;
977  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
978    mandir=$ac_optarg ;;
979
980  -nfp | --nfp | --nf)
981    # Obsolete; use --without-fp.
982    with_fp=no ;;
983
984  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
985  | --no-cr | --no-c | -n)
986    no_create=yes ;;
987
988  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
989  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
990    no_recursion=yes ;;
991
992  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
993  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
994  | --oldin | --oldi | --old | --ol | --o)
995    ac_prev=oldincludedir ;;
996  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
997  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
998  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
999    oldincludedir=$ac_optarg ;;
1000
1001  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1002    ac_prev=prefix ;;
1003  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1004    prefix=$ac_optarg ;;
1005
1006  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1007  | --program-pre | --program-pr | --program-p)
1008    ac_prev=program_prefix ;;
1009  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1010  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1011    program_prefix=$ac_optarg ;;
1012
1013  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1014  | --program-suf | --program-su | --program-s)
1015    ac_prev=program_suffix ;;
1016  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1017  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1018    program_suffix=$ac_optarg ;;
1019
1020  -program-transform-name | --program-transform-name \
1021  | --program-transform-nam | --program-transform-na \
1022  | --program-transform-n | --program-transform- \
1023  | --program-transform | --program-transfor \
1024  | --program-transfo | --program-transf \
1025  | --program-trans | --program-tran \
1026  | --progr-tra | --program-tr | --program-t)
1027    ac_prev=program_transform_name ;;
1028  -program-transform-name=* | --program-transform-name=* \
1029  | --program-transform-nam=* | --program-transform-na=* \
1030  | --program-transform-n=* | --program-transform-=* \
1031  | --program-transform=* | --program-transfor=* \
1032  | --program-transfo=* | --program-transf=* \
1033  | --program-trans=* | --program-tran=* \
1034  | --progr-tra=* | --program-tr=* | --program-t=*)
1035    program_transform_name=$ac_optarg ;;
1036
1037  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1038    ac_prev=pdfdir ;;
1039  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1040    pdfdir=$ac_optarg ;;
1041
1042  -psdir | --psdir | --psdi | --psd | --ps)
1043    ac_prev=psdir ;;
1044  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1045    psdir=$ac_optarg ;;
1046
1047  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048  | -silent | --silent | --silen | --sile | --sil)
1049    silent=yes ;;
1050
1051  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1052    ac_prev=sbindir ;;
1053  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1054  | --sbi=* | --sb=*)
1055    sbindir=$ac_optarg ;;
1056
1057  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1058  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1059  | --sharedst | --shareds | --shared | --share | --shar \
1060  | --sha | --sh)
1061    ac_prev=sharedstatedir ;;
1062  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1063  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1064  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1065  | --sha=* | --sh=*)
1066    sharedstatedir=$ac_optarg ;;
1067
1068  -site | --site | --sit)
1069    ac_prev=site ;;
1070  -site=* | --site=* | --sit=*)
1071    site=$ac_optarg ;;
1072
1073  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1074    ac_prev=srcdir ;;
1075  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1076    srcdir=$ac_optarg ;;
1077
1078  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1079  | --syscon | --sysco | --sysc | --sys | --sy)
1080    ac_prev=sysconfdir ;;
1081  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1082  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1083    sysconfdir=$ac_optarg ;;
1084
1085  -target | --target | --targe | --targ | --tar | --ta | --t)
1086    ac_prev=target_alias ;;
1087  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1088    target_alias=$ac_optarg ;;
1089
1090  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1091    verbose=yes ;;
1092
1093  -version | --version | --versio | --versi | --vers | -V)
1094    ac_init_version=: ;;
1095
1096  -with-* | --with-*)
1097    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1098    # Reject names that are not valid shell variable names.
1099    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100      as_fn_error $? "invalid package name: $ac_useropt"
1101    ac_useropt_orig=$ac_useropt
1102    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103    case $ac_user_opts in
1104      *"
1105"with_$ac_useropt"
1106"*) ;;
1107      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1108	 ac_unrecognized_sep=', ';;
1109    esac
1110    eval with_$ac_useropt=\$ac_optarg ;;
1111
1112  -without-* | --without-*)
1113    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1114    # Reject names that are not valid shell variable names.
1115    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116      as_fn_error $? "invalid package name: $ac_useropt"
1117    ac_useropt_orig=$ac_useropt
1118    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119    case $ac_user_opts in
1120      *"
1121"with_$ac_useropt"
1122"*) ;;
1123      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1124	 ac_unrecognized_sep=', ';;
1125    esac
1126    eval with_$ac_useropt=no ;;
1127
1128  --x)
1129    # Obsolete; use --with-x.
1130    with_x=yes ;;
1131
1132  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1133  | --x-incl | --x-inc | --x-in | --x-i)
1134    ac_prev=x_includes ;;
1135  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1136  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1137    x_includes=$ac_optarg ;;
1138
1139  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1140  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1141    ac_prev=x_libraries ;;
1142  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1143  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1144    x_libraries=$ac_optarg ;;
1145
1146  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1147Try \`$0 --help' for more information"
1148    ;;
1149
1150  *=*)
1151    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1152    # Reject names that are not valid shell variable names.
1153    case $ac_envvar in #(
1154      '' | [0-9]* | *[!_$as_cr_alnum]* )
1155      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1156    esac
1157    eval $ac_envvar=\$ac_optarg
1158    export $ac_envvar ;;
1159
1160  *)
1161    # FIXME: should be removed in autoconf 3.0.
1162    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1163    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1164      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1165    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1166    ;;
1167
1168  esac
1169done
1170
1171if test -n "$ac_prev"; then
1172  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1173  as_fn_error $? "missing argument to $ac_option"
1174fi
1175
1176if test -n "$ac_unrecognized_opts"; then
1177  case $enable_option_checking in
1178    no) ;;
1179    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1180    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1181  esac
1182fi
1183
1184# Check all directory arguments for consistency.
1185for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1186		datadir sysconfdir sharedstatedir localstatedir includedir \
1187		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1188		libdir localedir mandir
1189do
1190  eval ac_val=\$$ac_var
1191  # Remove trailing slashes.
1192  case $ac_val in
1193    */ )
1194      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1195      eval $ac_var=\$ac_val;;
1196  esac
1197  # Be sure to have absolute directory names.
1198  case $ac_val in
1199    [\\/$]* | ?:[\\/]* )  continue;;
1200    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1201  esac
1202  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1203done
1204
1205# There might be people who depend on the old broken behavior: `$host'
1206# used to hold the argument of --host etc.
1207# FIXME: To remove some day.
1208build=$build_alias
1209host=$host_alias
1210target=$target_alias
1211
1212# FIXME: To remove some day.
1213if test "x$host_alias" != x; then
1214  if test "x$build_alias" = x; then
1215    cross_compiling=maybe
1216    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1217    If a cross compiler is detected then cross compile mode will be used" >&2
1218  elif test "x$build_alias" != "x$host_alias"; then
1219    cross_compiling=yes
1220  fi
1221fi
1222
1223ac_tool_prefix=
1224test -n "$host_alias" && ac_tool_prefix=$host_alias-
1225
1226test "$silent" = yes && exec 6>/dev/null
1227
1228
1229ac_pwd=`pwd` && test -n "$ac_pwd" &&
1230ac_ls_di=`ls -di .` &&
1231ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1232  as_fn_error $? "working directory cannot be determined"
1233test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1234  as_fn_error $? "pwd does not report name of working directory"
1235
1236
1237# Find the source files, if location was not specified.
1238if test -z "$srcdir"; then
1239  ac_srcdir_defaulted=yes
1240  # Try the directory containing this script, then the parent directory.
1241  ac_confdir=`$as_dirname -- "$as_myself" ||
1242$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1243	 X"$as_myself" : 'X\(//\)[^/]' \| \
1244	 X"$as_myself" : 'X\(//\)$' \| \
1245	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1246$as_echo X"$as_myself" |
1247    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1248	    s//\1/
1249	    q
1250	  }
1251	  /^X\(\/\/\)[^/].*/{
1252	    s//\1/
1253	    q
1254	  }
1255	  /^X\(\/\/\)$/{
1256	    s//\1/
1257	    q
1258	  }
1259	  /^X\(\/\).*/{
1260	    s//\1/
1261	    q
1262	  }
1263	  s/.*/./; q'`
1264  srcdir=$ac_confdir
1265  if test ! -r "$srcdir/$ac_unique_file"; then
1266    srcdir=..
1267  fi
1268else
1269  ac_srcdir_defaulted=no
1270fi
1271if test ! -r "$srcdir/$ac_unique_file"; then
1272  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1273  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1274fi
1275ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1276ac_abs_confdir=`(
1277	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1278	pwd)`
1279# When building in place, set srcdir=.
1280if test "$ac_abs_confdir" = "$ac_pwd"; then
1281  srcdir=.
1282fi
1283# Remove unnecessary trailing slashes from srcdir.
1284# Double slashes in file names in object file debugging info
1285# mess up M-x gdb in Emacs.
1286case $srcdir in
1287*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1288esac
1289for ac_var in $ac_precious_vars; do
1290  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1291  eval ac_env_${ac_var}_value=\$${ac_var}
1292  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1293  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1294done
1295
1296#
1297# Report the --help message.
1298#
1299if test "$ac_init_help" = "long"; then
1300  # Omit some internal or obsolete options to make the list less imposing.
1301  # This message is too long to be a string in the A/UX 3.1 sh.
1302  cat <<_ACEOF
1303\`configure' configures xman 1.1.3 to adapt to many kinds of systems.
1304
1305Usage: $0 [OPTION]... [VAR=VALUE]...
1306
1307To assign environment variables (e.g., CC, CFLAGS...), specify them as
1308VAR=VALUE.  See below for descriptions of some of the useful variables.
1309
1310Defaults for the options are specified in brackets.
1311
1312Configuration:
1313  -h, --help              display this help and exit
1314      --help=short        display options specific to this package
1315      --help=recursive    display the short help of all the included packages
1316  -V, --version           display version information and exit
1317  -q, --quiet, --silent   do not print \`checking ...' messages
1318      --cache-file=FILE   cache test results in FILE [disabled]
1319  -C, --config-cache      alias for \`--cache-file=config.cache'
1320  -n, --no-create         do not create output files
1321      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1322
1323Installation directories:
1324  --prefix=PREFIX         install architecture-independent files in PREFIX
1325                          [$ac_default_prefix]
1326  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1327                          [PREFIX]
1328
1329By default, \`make install' will install all the files in
1330\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1331an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1332for instance \`--prefix=\$HOME'.
1333
1334For better control, use the options below.
1335
1336Fine tuning of the installation directories:
1337  --bindir=DIR            user executables [EPREFIX/bin]
1338  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1339  --libexecdir=DIR        program executables [EPREFIX/libexec]
1340  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1341  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1342  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1343  --libdir=DIR            object code libraries [EPREFIX/lib]
1344  --includedir=DIR        C header files [PREFIX/include]
1345  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1346  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1347  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1348  --infodir=DIR           info documentation [DATAROOTDIR/info]
1349  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1350  --mandir=DIR            man documentation [DATAROOTDIR/man]
1351  --docdir=DIR            documentation root [DATAROOTDIR/doc/xman]
1352  --htmldir=DIR           html documentation [DOCDIR]
1353  --dvidir=DIR            dvi documentation [DOCDIR]
1354  --pdfdir=DIR            pdf documentation [DOCDIR]
1355  --psdir=DIR             ps documentation [DOCDIR]
1356_ACEOF
1357
1358  cat <<\_ACEOF
1359
1360Program names:
1361  --program-prefix=PREFIX            prepend PREFIX to installed program names
1362  --program-suffix=SUFFIX            append SUFFIX to installed program names
1363  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1364
1365System types:
1366  --build=BUILD     configure for building on BUILD [guessed]
1367  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1368_ACEOF
1369fi
1370
1371if test -n "$ac_init_help"; then
1372  case $ac_init_help in
1373     short | recursive ) echo "Configuration of xman 1.1.3:";;
1374   esac
1375  cat <<\_ACEOF
1376
1377Optional Features:
1378  --disable-option-checking  ignore unrecognized --enable/--with options
1379  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1380  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1381  --enable-silent-rules   less verbose build output (undo: "make V=1")
1382  --disable-silent-rules  verbose build output (undo: "make V=0")
1383  --enable-maintainer-mode
1384                          enable make rules and dependencies not useful (and
1385                          sometimes confusing) to the casual installer
1386  --enable-dependency-tracking
1387                          do not reject slow dependency extractors
1388  --disable-dependency-tracking
1389                          speeds up one-time build
1390  --disable-selective-werror
1391                          Turn off selective compiler errors. (default:
1392                          enabled)
1393  --enable-strict-compilation
1394                          Enable all warnings from compiler and make them
1395                          errors (default: disabled)
1396
1397Optional Packages:
1398  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1399  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1400  --with-helpdir=<path>   Set default directory for xman.help (default:
1401                          ${datadir}/X11)
1402  --with-sysmanpath=<path>
1403                          Set default system man page search path
1404  --with-localmanpath=<path>
1405                          Set default local man page search path
1406  --with-manconfig=<filename>
1407                          Set default system man configuration file
1408  --with-appdefaultdir=<pathname>
1409                          specify directory for app-defaults files (default is
1410                          autodetected)
1411
1412Some influential environment variables:
1413  CC          C compiler command
1414  CFLAGS      C compiler flags
1415  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1416              nonstandard directory <lib dir>
1417  LIBS        libraries to pass to the linker, e.g. -l<library>
1418  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1419              you have headers in a nonstandard directory <include dir>
1420  CPP         C preprocessor
1421  PKG_CONFIG  path to pkg-config utility
1422  XMAN_CFLAGS C compiler flags for XMAN, overriding pkg-config
1423  XMAN_LIBS   linker flags for XMAN, overriding pkg-config
1424  APPDEFS_CFLAGS
1425              C compiler flags for APPDEFS, overriding pkg-config
1426  APPDEFS_LIBS
1427              linker flags for APPDEFS, overriding pkg-config
1428
1429Use these variables to override the choices made by `configure' or to help
1430it to find libraries and programs with nonstandard names/locations.
1431
1432Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1433_ACEOF
1434ac_status=$?
1435fi
1436
1437if test "$ac_init_help" = "recursive"; then
1438  # If there are subdirs, report their specific --help.
1439  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1440    test -d "$ac_dir" ||
1441      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1442      continue
1443    ac_builddir=.
1444
1445case "$ac_dir" in
1446.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1447*)
1448  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1449  # A ".." for each directory in $ac_dir_suffix.
1450  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1451  case $ac_top_builddir_sub in
1452  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1454  esac ;;
1455esac
1456ac_abs_top_builddir=$ac_pwd
1457ac_abs_builddir=$ac_pwd$ac_dir_suffix
1458# for backward compatibility:
1459ac_top_builddir=$ac_top_build_prefix
1460
1461case $srcdir in
1462  .)  # We are building in place.
1463    ac_srcdir=.
1464    ac_top_srcdir=$ac_top_builddir_sub
1465    ac_abs_top_srcdir=$ac_pwd ;;
1466  [\\/]* | ?:[\\/]* )  # Absolute name.
1467    ac_srcdir=$srcdir$ac_dir_suffix;
1468    ac_top_srcdir=$srcdir
1469    ac_abs_top_srcdir=$srcdir ;;
1470  *) # Relative name.
1471    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1472    ac_top_srcdir=$ac_top_build_prefix$srcdir
1473    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1474esac
1475ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1476
1477    cd "$ac_dir" || { ac_status=$?; continue; }
1478    # Check for guested configure.
1479    if test -f "$ac_srcdir/configure.gnu"; then
1480      echo &&
1481      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1482    elif test -f "$ac_srcdir/configure"; then
1483      echo &&
1484      $SHELL "$ac_srcdir/configure" --help=recursive
1485    else
1486      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1487    fi || ac_status=$?
1488    cd "$ac_pwd" || { ac_status=$?; break; }
1489  done
1490fi
1491
1492test -n "$ac_init_help" && exit $ac_status
1493if $ac_init_version; then
1494  cat <<\_ACEOF
1495xman configure 1.1.3
1496generated by GNU Autoconf 2.68
1497
1498Copyright (C) 2010 Free Software Foundation, Inc.
1499This configure script is free software; the Free Software Foundation
1500gives unlimited permission to copy, distribute and modify it.
1501_ACEOF
1502  exit
1503fi
1504
1505## ------------------------ ##
1506## Autoconf initialization. ##
1507## ------------------------ ##
1508
1509# ac_fn_c_try_compile LINENO
1510# --------------------------
1511# Try to compile conftest.$ac_ext, and return whether this succeeded.
1512ac_fn_c_try_compile ()
1513{
1514  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1515  rm -f conftest.$ac_objext
1516  if { { ac_try="$ac_compile"
1517case "(($ac_try" in
1518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519  *) ac_try_echo=$ac_try;;
1520esac
1521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522$as_echo "$ac_try_echo"; } >&5
1523  (eval "$ac_compile") 2>conftest.err
1524  ac_status=$?
1525  if test -s conftest.err; then
1526    grep -v '^ *+' conftest.err >conftest.er1
1527    cat conftest.er1 >&5
1528    mv -f conftest.er1 conftest.err
1529  fi
1530  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531  test $ac_status = 0; } && {
1532	 test -z "$ac_c_werror_flag" ||
1533	 test ! -s conftest.err
1534       } && test -s conftest.$ac_objext; then :
1535  ac_retval=0
1536else
1537  $as_echo "$as_me: failed program was:" >&5
1538sed 's/^/| /' conftest.$ac_ext >&5
1539
1540	ac_retval=1
1541fi
1542  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1543  as_fn_set_status $ac_retval
1544
1545} # ac_fn_c_try_compile
1546
1547# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1548# ---------------------------------------------
1549# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1550# accordingly.
1551ac_fn_c_check_decl ()
1552{
1553  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554  as_decl_name=`echo $2|sed 's/ *(.*//'`
1555  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1556  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1557$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1558if eval \${$3+:} false; then :
1559  $as_echo_n "(cached) " >&6
1560else
1561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1562/* end confdefs.h.  */
1563$4
1564int
1565main ()
1566{
1567#ifndef $as_decl_name
1568#ifdef __cplusplus
1569  (void) $as_decl_use;
1570#else
1571  (void) $as_decl_name;
1572#endif
1573#endif
1574
1575  ;
1576  return 0;
1577}
1578_ACEOF
1579if ac_fn_c_try_compile "$LINENO"; then :
1580  eval "$3=yes"
1581else
1582  eval "$3=no"
1583fi
1584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1585fi
1586eval ac_res=\$$3
1587	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1588$as_echo "$ac_res" >&6; }
1589  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590
1591} # ac_fn_c_check_decl
1592
1593# ac_fn_c_try_cpp LINENO
1594# ----------------------
1595# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1596ac_fn_c_try_cpp ()
1597{
1598  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599  if { { ac_try="$ac_cpp conftest.$ac_ext"
1600case "(($ac_try" in
1601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602  *) ac_try_echo=$ac_try;;
1603esac
1604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605$as_echo "$ac_try_echo"; } >&5
1606  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1607  ac_status=$?
1608  if test -s conftest.err; then
1609    grep -v '^ *+' conftest.err >conftest.er1
1610    cat conftest.er1 >&5
1611    mv -f conftest.er1 conftest.err
1612  fi
1613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614  test $ac_status = 0; } > conftest.i && {
1615	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1616	 test ! -s conftest.err
1617       }; then :
1618  ac_retval=0
1619else
1620  $as_echo "$as_me: failed program was:" >&5
1621sed 's/^/| /' conftest.$ac_ext >&5
1622
1623    ac_retval=1
1624fi
1625  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626  as_fn_set_status $ac_retval
1627
1628} # ac_fn_c_try_cpp
1629
1630# ac_fn_c_try_run LINENO
1631# ----------------------
1632# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1633# that executables *can* be run.
1634ac_fn_c_try_run ()
1635{
1636  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637  if { { ac_try="$ac_link"
1638case "(($ac_try" in
1639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640  *) ac_try_echo=$ac_try;;
1641esac
1642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643$as_echo "$ac_try_echo"; } >&5
1644  (eval "$ac_link") 2>&5
1645  ac_status=$?
1646  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1648  { { case "(($ac_try" in
1649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650  *) ac_try_echo=$ac_try;;
1651esac
1652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653$as_echo "$ac_try_echo"; } >&5
1654  (eval "$ac_try") 2>&5
1655  ac_status=$?
1656  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657  test $ac_status = 0; }; }; then :
1658  ac_retval=0
1659else
1660  $as_echo "$as_me: program exited with status $ac_status" >&5
1661       $as_echo "$as_me: failed program was:" >&5
1662sed 's/^/| /' conftest.$ac_ext >&5
1663
1664       ac_retval=$ac_status
1665fi
1666  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1667  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668  as_fn_set_status $ac_retval
1669
1670} # ac_fn_c_try_run
1671
1672# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1673# -------------------------------------------------------
1674# Tests whether HEADER exists and can be compiled using the include files in
1675# INCLUDES, setting the cache variable VAR accordingly.
1676ac_fn_c_check_header_compile ()
1677{
1678  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680$as_echo_n "checking for $2... " >&6; }
1681if eval \${$3+:} false; then :
1682  $as_echo_n "(cached) " >&6
1683else
1684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685/* end confdefs.h.  */
1686$4
1687#include <$2>
1688_ACEOF
1689if ac_fn_c_try_compile "$LINENO"; then :
1690  eval "$3=yes"
1691else
1692  eval "$3=no"
1693fi
1694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1695fi
1696eval ac_res=\$$3
1697	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1698$as_echo "$ac_res" >&6; }
1699  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700
1701} # ac_fn_c_check_header_compile
1702
1703# ac_fn_c_try_link LINENO
1704# -----------------------
1705# Try to link conftest.$ac_ext, and return whether this succeeded.
1706ac_fn_c_try_link ()
1707{
1708  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709  rm -f conftest.$ac_objext conftest$ac_exeext
1710  if { { ac_try="$ac_link"
1711case "(($ac_try" in
1712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713  *) ac_try_echo=$ac_try;;
1714esac
1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716$as_echo "$ac_try_echo"; } >&5
1717  (eval "$ac_link") 2>conftest.err
1718  ac_status=$?
1719  if test -s conftest.err; then
1720    grep -v '^ *+' conftest.err >conftest.er1
1721    cat conftest.er1 >&5
1722    mv -f conftest.er1 conftest.err
1723  fi
1724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725  test $ac_status = 0; } && {
1726	 test -z "$ac_c_werror_flag" ||
1727	 test ! -s conftest.err
1728       } && test -s conftest$ac_exeext && {
1729	 test "$cross_compiling" = yes ||
1730	 $as_test_x conftest$ac_exeext
1731       }; then :
1732  ac_retval=0
1733else
1734  $as_echo "$as_me: failed program was:" >&5
1735sed 's/^/| /' conftest.$ac_ext >&5
1736
1737	ac_retval=1
1738fi
1739  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1740  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1741  # interfere with the next link command; also delete a directory that is
1742  # left behind by Apple's compiler.  We do this before executing the actions.
1743  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745  as_fn_set_status $ac_retval
1746
1747} # ac_fn_c_try_link
1748
1749# ac_fn_c_check_func LINENO FUNC VAR
1750# ----------------------------------
1751# Tests whether FUNC exists, setting the cache variable VAR accordingly
1752ac_fn_c_check_func ()
1753{
1754  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756$as_echo_n "checking for $2... " >&6; }
1757if eval \${$3+:} false; then :
1758  $as_echo_n "(cached) " >&6
1759else
1760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761/* end confdefs.h.  */
1762/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1763   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1764#define $2 innocuous_$2
1765
1766/* System header to define __stub macros and hopefully few prototypes,
1767    which can conflict with char $2 (); below.
1768    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1769    <limits.h> exists even on freestanding compilers.  */
1770
1771#ifdef __STDC__
1772# include <limits.h>
1773#else
1774# include <assert.h>
1775#endif
1776
1777#undef $2
1778
1779/* Override any GCC internal prototype to avoid an error.
1780   Use char because int might match the return type of a GCC
1781   builtin and then its argument prototype would still apply.  */
1782#ifdef __cplusplus
1783extern "C"
1784#endif
1785char $2 ();
1786/* The GNU C library defines this for functions which it implements
1787    to always fail with ENOSYS.  Some functions are actually named
1788    something starting with __ and the normal name is an alias.  */
1789#if defined __stub_$2 || defined __stub___$2
1790choke me
1791#endif
1792
1793int
1794main ()
1795{
1796return $2 ();
1797  ;
1798  return 0;
1799}
1800_ACEOF
1801if ac_fn_c_try_link "$LINENO"; then :
1802  eval "$3=yes"
1803else
1804  eval "$3=no"
1805fi
1806rm -f core conftest.err conftest.$ac_objext \
1807    conftest$ac_exeext conftest.$ac_ext
1808fi
1809eval ac_res=\$$3
1810	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811$as_echo "$ac_res" >&6; }
1812  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813
1814} # ac_fn_c_check_func
1815cat >config.log <<_ACEOF
1816This file contains any messages produced by compilers while
1817running configure, to aid debugging if configure makes a mistake.
1818
1819It was created by xman $as_me 1.1.3, which was
1820generated by GNU Autoconf 2.68.  Invocation command line was
1821
1822  $ $0 $@
1823
1824_ACEOF
1825exec 5>>config.log
1826{
1827cat <<_ASUNAME
1828## --------- ##
1829## Platform. ##
1830## --------- ##
1831
1832hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1833uname -m = `(uname -m) 2>/dev/null || echo unknown`
1834uname -r = `(uname -r) 2>/dev/null || echo unknown`
1835uname -s = `(uname -s) 2>/dev/null || echo unknown`
1836uname -v = `(uname -v) 2>/dev/null || echo unknown`
1837
1838/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1839/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1840
1841/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1842/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1843/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1844/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1845/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1846/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1847/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1848
1849_ASUNAME
1850
1851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1852for as_dir in $PATH
1853do
1854  IFS=$as_save_IFS
1855  test -z "$as_dir" && as_dir=.
1856    $as_echo "PATH: $as_dir"
1857  done
1858IFS=$as_save_IFS
1859
1860} >&5
1861
1862cat >&5 <<_ACEOF
1863
1864
1865## ----------- ##
1866## Core tests. ##
1867## ----------- ##
1868
1869_ACEOF
1870
1871
1872# Keep a trace of the command line.
1873# Strip out --no-create and --no-recursion so they do not pile up.
1874# Strip out --silent because we don't want to record it for future runs.
1875# Also quote any args containing shell meta-characters.
1876# Make two passes to allow for proper duplicate-argument suppression.
1877ac_configure_args=
1878ac_configure_args0=
1879ac_configure_args1=
1880ac_must_keep_next=false
1881for ac_pass in 1 2
1882do
1883  for ac_arg
1884  do
1885    case $ac_arg in
1886    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1887    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1888    | -silent | --silent | --silen | --sile | --sil)
1889      continue ;;
1890    *\'*)
1891      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1892    esac
1893    case $ac_pass in
1894    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1895    2)
1896      as_fn_append ac_configure_args1 " '$ac_arg'"
1897      if test $ac_must_keep_next = true; then
1898	ac_must_keep_next=false # Got value, back to normal.
1899      else
1900	case $ac_arg in
1901	  *=* | --config-cache | -C | -disable-* | --disable-* \
1902	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1903	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1904	  | -with-* | --with-* | -without-* | --without-* | --x)
1905	    case "$ac_configure_args0 " in
1906	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1907	    esac
1908	    ;;
1909	  -* ) ac_must_keep_next=true ;;
1910	esac
1911      fi
1912      as_fn_append ac_configure_args " '$ac_arg'"
1913      ;;
1914    esac
1915  done
1916done
1917{ ac_configure_args0=; unset ac_configure_args0;}
1918{ ac_configure_args1=; unset ac_configure_args1;}
1919
1920# When interrupted or exit'd, cleanup temporary files, and complete
1921# config.log.  We remove comments because anyway the quotes in there
1922# would cause problems or look ugly.
1923# WARNING: Use '\'' to represent an apostrophe within the trap.
1924# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1925trap 'exit_status=$?
1926  # Save into config.log some information that might help in debugging.
1927  {
1928    echo
1929
1930    $as_echo "## ---------------- ##
1931## Cache variables. ##
1932## ---------------- ##"
1933    echo
1934    # The following way of writing the cache mishandles newlines in values,
1935(
1936  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1937    eval ac_val=\$$ac_var
1938    case $ac_val in #(
1939    *${as_nl}*)
1940      case $ac_var in #(
1941      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1942$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1943      esac
1944      case $ac_var in #(
1945      _ | IFS | as_nl) ;; #(
1946      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1947      *) { eval $ac_var=; unset $ac_var;} ;;
1948      esac ;;
1949    esac
1950  done
1951  (set) 2>&1 |
1952    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1953    *${as_nl}ac_space=\ *)
1954      sed -n \
1955	"s/'\''/'\''\\\\'\'''\''/g;
1956	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1957      ;; #(
1958    *)
1959      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1960      ;;
1961    esac |
1962    sort
1963)
1964    echo
1965
1966    $as_echo "## ----------------- ##
1967## Output variables. ##
1968## ----------------- ##"
1969    echo
1970    for ac_var in $ac_subst_vars
1971    do
1972      eval ac_val=\$$ac_var
1973      case $ac_val in
1974      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1975      esac
1976      $as_echo "$ac_var='\''$ac_val'\''"
1977    done | sort
1978    echo
1979
1980    if test -n "$ac_subst_files"; then
1981      $as_echo "## ------------------- ##
1982## File substitutions. ##
1983## ------------------- ##"
1984      echo
1985      for ac_var in $ac_subst_files
1986      do
1987	eval ac_val=\$$ac_var
1988	case $ac_val in
1989	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1990	esac
1991	$as_echo "$ac_var='\''$ac_val'\''"
1992      done | sort
1993      echo
1994    fi
1995
1996    if test -s confdefs.h; then
1997      $as_echo "## ----------- ##
1998## confdefs.h. ##
1999## ----------- ##"
2000      echo
2001      cat confdefs.h
2002      echo
2003    fi
2004    test "$ac_signal" != 0 &&
2005      $as_echo "$as_me: caught signal $ac_signal"
2006    $as_echo "$as_me: exit $exit_status"
2007  } >&5
2008  rm -f core *.core core.conftest.* &&
2009    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2010    exit $exit_status
2011' 0
2012for ac_signal in 1 2 13 15; do
2013  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2014done
2015ac_signal=0
2016
2017# confdefs.h avoids OS command line length limits that DEFS can exceed.
2018rm -f -r conftest* confdefs.h
2019
2020$as_echo "/* confdefs.h */" > confdefs.h
2021
2022# Predefined preprocessor variables.
2023
2024cat >>confdefs.h <<_ACEOF
2025#define PACKAGE_NAME "$PACKAGE_NAME"
2026_ACEOF
2027
2028cat >>confdefs.h <<_ACEOF
2029#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2030_ACEOF
2031
2032cat >>confdefs.h <<_ACEOF
2033#define PACKAGE_VERSION "$PACKAGE_VERSION"
2034_ACEOF
2035
2036cat >>confdefs.h <<_ACEOF
2037#define PACKAGE_STRING "$PACKAGE_STRING"
2038_ACEOF
2039
2040cat >>confdefs.h <<_ACEOF
2041#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2042_ACEOF
2043
2044cat >>confdefs.h <<_ACEOF
2045#define PACKAGE_URL "$PACKAGE_URL"
2046_ACEOF
2047
2048
2049# Let the site file select an alternate cache file if it wants to.
2050# Prefer an explicitly selected file to automatically selected ones.
2051ac_site_file1=NONE
2052ac_site_file2=NONE
2053if test -n "$CONFIG_SITE"; then
2054  # We do not want a PATH search for config.site.
2055  case $CONFIG_SITE in #((
2056    -*)  ac_site_file1=./$CONFIG_SITE;;
2057    */*) ac_site_file1=$CONFIG_SITE;;
2058    *)   ac_site_file1=./$CONFIG_SITE;;
2059  esac
2060elif test "x$prefix" != xNONE; then
2061  ac_site_file1=$prefix/share/config.site
2062  ac_site_file2=$prefix/etc/config.site
2063else
2064  ac_site_file1=$ac_default_prefix/share/config.site
2065  ac_site_file2=$ac_default_prefix/etc/config.site
2066fi
2067for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2068do
2069  test "x$ac_site_file" = xNONE && continue
2070  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2071    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2072$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2073    sed 's/^/| /' "$ac_site_file" >&5
2074    . "$ac_site_file" \
2075      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2076$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2077as_fn_error $? "failed to load site script $ac_site_file
2078See \`config.log' for more details" "$LINENO" 5; }
2079  fi
2080done
2081
2082if test -r "$cache_file"; then
2083  # Some versions of bash will fail to source /dev/null (special files
2084  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2085  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2086    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2087$as_echo "$as_me: loading cache $cache_file" >&6;}
2088    case $cache_file in
2089      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2090      *)                      . "./$cache_file";;
2091    esac
2092  fi
2093else
2094  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2095$as_echo "$as_me: creating cache $cache_file" >&6;}
2096  >$cache_file
2097fi
2098
2099# Check that the precious variables saved in the cache have kept the same
2100# value.
2101ac_cache_corrupted=false
2102for ac_var in $ac_precious_vars; do
2103  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2104  eval ac_new_set=\$ac_env_${ac_var}_set
2105  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2106  eval ac_new_val=\$ac_env_${ac_var}_value
2107  case $ac_old_set,$ac_new_set in
2108    set,)
2109      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2110$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2111      ac_cache_corrupted=: ;;
2112    ,set)
2113      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2114$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2115      ac_cache_corrupted=: ;;
2116    ,);;
2117    *)
2118      if test "x$ac_old_val" != "x$ac_new_val"; then
2119	# differences in whitespace do not lead to failure.
2120	ac_old_val_w=`echo x $ac_old_val`
2121	ac_new_val_w=`echo x $ac_new_val`
2122	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2123	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2124$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2125	  ac_cache_corrupted=:
2126	else
2127	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2128$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2129	  eval $ac_var=\$ac_old_val
2130	fi
2131	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2132$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2133	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2134$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2135      fi;;
2136  esac
2137  # Pass precious variables to config.status.
2138  if test "$ac_new_set" = set; then
2139    case $ac_new_val in
2140    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2141    *) ac_arg=$ac_var=$ac_new_val ;;
2142    esac
2143    case " $ac_configure_args " in
2144      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2145      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2146    esac
2147  fi
2148done
2149if $ac_cache_corrupted; then
2150  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2151$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2152  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2153$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2154  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2155fi
2156## -------------------- ##
2157## Main body of script. ##
2158## -------------------- ##
2159
2160ac_ext=c
2161ac_cpp='$CPP $CPPFLAGS'
2162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2164ac_compiler_gnu=$ac_cv_c_compiler_gnu
2165
2166
2167am__api_version='1.14'
2168
2169ac_aux_dir=
2170for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2171  if test -f "$ac_dir/install-sh"; then
2172    ac_aux_dir=$ac_dir
2173    ac_install_sh="$ac_aux_dir/install-sh -c"
2174    break
2175  elif test -f "$ac_dir/install.sh"; then
2176    ac_aux_dir=$ac_dir
2177    ac_install_sh="$ac_aux_dir/install.sh -c"
2178    break
2179  elif test -f "$ac_dir/shtool"; then
2180    ac_aux_dir=$ac_dir
2181    ac_install_sh="$ac_aux_dir/shtool install -c"
2182    break
2183  fi
2184done
2185if test -z "$ac_aux_dir"; then
2186  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2187fi
2188
2189# These three variables are undocumented and unsupported,
2190# and are intended to be withdrawn in a future Autoconf release.
2191# They can cause serious problems if a builder's source tree is in a directory
2192# whose full name contains unusual characters.
2193ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2194ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2195ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2196
2197
2198# Find a good install program.  We prefer a C program (faster),
2199# so one script is as good as another.  But avoid the broken or
2200# incompatible versions:
2201# SysV /etc/install, /usr/sbin/install
2202# SunOS /usr/etc/install
2203# IRIX /sbin/install
2204# AIX /bin/install
2205# AmigaOS /C/install, which installs bootblocks on floppy discs
2206# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2207# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2208# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2209# OS/2's system install, which has a completely different semantic
2210# ./install, which can be erroneously created by make from ./install.sh.
2211# Reject install programs that cannot install multiple files.
2212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2213$as_echo_n "checking for a BSD-compatible install... " >&6; }
2214if test -z "$INSTALL"; then
2215if ${ac_cv_path_install+:} false; then :
2216  $as_echo_n "(cached) " >&6
2217else
2218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219for as_dir in $PATH
2220do
2221  IFS=$as_save_IFS
2222  test -z "$as_dir" && as_dir=.
2223    # Account for people who put trailing slashes in PATH elements.
2224case $as_dir/ in #((
2225  ./ | .// | /[cC]/* | \
2226  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2227  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2228  /usr/ucb/* ) ;;
2229  *)
2230    # OSF1 and SCO ODT 3.0 have their own names for install.
2231    # Don't use installbsd from OSF since it installs stuff as root
2232    # by default.
2233    for ac_prog in ginstall scoinst install; do
2234      for ac_exec_ext in '' $ac_executable_extensions; do
2235	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2236	  if test $ac_prog = install &&
2237	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2238	    # AIX install.  It has an incompatible calling convention.
2239	    :
2240	  elif test $ac_prog = install &&
2241	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2242	    # program-specific install script used by HP pwplus--don't use.
2243	    :
2244	  else
2245	    rm -rf conftest.one conftest.two conftest.dir
2246	    echo one > conftest.one
2247	    echo two > conftest.two
2248	    mkdir conftest.dir
2249	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2250	      test -s conftest.one && test -s conftest.two &&
2251	      test -s conftest.dir/conftest.one &&
2252	      test -s conftest.dir/conftest.two
2253	    then
2254	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2255	      break 3
2256	    fi
2257	  fi
2258	fi
2259      done
2260    done
2261    ;;
2262esac
2263
2264  done
2265IFS=$as_save_IFS
2266
2267rm -rf conftest.one conftest.two conftest.dir
2268
2269fi
2270  if test "${ac_cv_path_install+set}" = set; then
2271    INSTALL=$ac_cv_path_install
2272  else
2273    # As a last resort, use the slow shell script.  Don't cache a
2274    # value for INSTALL within a source directory, because that will
2275    # break other packages using the cache if that directory is
2276    # removed, or if the value is a relative name.
2277    INSTALL=$ac_install_sh
2278  fi
2279fi
2280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2281$as_echo "$INSTALL" >&6; }
2282
2283# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2284# It thinks the first close brace ends the variable substitution.
2285test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2286
2287test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2288
2289test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2290
2291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2292$as_echo_n "checking whether build environment is sane... " >&6; }
2293# Reject unsafe characters in $srcdir or the absolute working directory
2294# name.  Accept space and tab only in the latter.
2295am_lf='
2296'
2297case `pwd` in
2298  *[\\\"\#\$\&\'\`$am_lf]*)
2299    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2300esac
2301case $srcdir in
2302  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2303    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2304esac
2305
2306# Do 'set' in a subshell so we don't clobber the current shell's
2307# arguments.  Must try -L first in case configure is actually a
2308# symlink; some systems play weird games with the mod time of symlinks
2309# (eg FreeBSD returns the mod time of the symlink's containing
2310# directory).
2311if (
2312   am_has_slept=no
2313   for am_try in 1 2; do
2314     echo "timestamp, slept: $am_has_slept" > conftest.file
2315     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2316     if test "$*" = "X"; then
2317	# -L didn't work.
2318	set X `ls -t "$srcdir/configure" conftest.file`
2319     fi
2320     if test "$*" != "X $srcdir/configure conftest.file" \
2321	&& test "$*" != "X conftest.file $srcdir/configure"; then
2322
2323	# If neither matched, then we have a broken ls.  This can happen
2324	# if, for instance, CONFIG_SHELL is bash and it inherits a
2325	# broken ls alias from the environment.  This has actually
2326	# happened.  Such a system could not be considered "sane".
2327	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2328  alias in your environment" "$LINENO" 5
2329     fi
2330     if test "$2" = conftest.file || test $am_try -eq 2; then
2331       break
2332     fi
2333     # Just in case.
2334     sleep 1
2335     am_has_slept=yes
2336   done
2337   test "$2" = conftest.file
2338   )
2339then
2340   # Ok.
2341   :
2342else
2343   as_fn_error $? "newly created file is older than distributed files!
2344Check your system clock" "$LINENO" 5
2345fi
2346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2347$as_echo "yes" >&6; }
2348# If we didn't sleep, we still need to ensure time stamps of config.status and
2349# generated files are strictly newer.
2350am_sleep_pid=
2351if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2352  ( sleep 1 ) &
2353  am_sleep_pid=$!
2354fi
2355
2356rm -f conftest.file
2357
2358test "$program_prefix" != NONE &&
2359  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2360# Use a double $ so make ignores it.
2361test "$program_suffix" != NONE &&
2362  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2363# Double any \ or $.
2364# By default was `s,x,x', remove it if useless.
2365ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2366program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2367
2368# expand $ac_aux_dir to an absolute path
2369am_aux_dir=`cd $ac_aux_dir && pwd`
2370
2371if test x"${MISSING+set}" != xset; then
2372  case $am_aux_dir in
2373  *\ * | *\	*)
2374    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2375  *)
2376    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2377  esac
2378fi
2379# Use eval to expand $SHELL
2380if eval "$MISSING --is-lightweight"; then
2381  am_missing_run="$MISSING "
2382else
2383  am_missing_run=
2384  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2385$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2386fi
2387
2388if test x"${install_sh}" != xset; then
2389  case $am_aux_dir in
2390  *\ * | *\	*)
2391    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2392  *)
2393    install_sh="\${SHELL} $am_aux_dir/install-sh"
2394  esac
2395fi
2396
2397# Installed binaries are usually stripped using 'strip' when the user
2398# run "make install-strip".  However 'strip' might not be the right
2399# tool to use in cross-compilation environments, therefore Automake
2400# will honor the 'STRIP' environment variable to overrule this program.
2401if test "$cross_compiling" != no; then
2402  if test -n "$ac_tool_prefix"; then
2403  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2404set dummy ${ac_tool_prefix}strip; ac_word=$2
2405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2406$as_echo_n "checking for $ac_word... " >&6; }
2407if ${ac_cv_prog_STRIP+:} false; then :
2408  $as_echo_n "(cached) " >&6
2409else
2410  if test -n "$STRIP"; then
2411  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2412else
2413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414for as_dir in $PATH
2415do
2416  IFS=$as_save_IFS
2417  test -z "$as_dir" && as_dir=.
2418    for ac_exec_ext in '' $ac_executable_extensions; do
2419  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2420    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2421    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2422    break 2
2423  fi
2424done
2425  done
2426IFS=$as_save_IFS
2427
2428fi
2429fi
2430STRIP=$ac_cv_prog_STRIP
2431if test -n "$STRIP"; then
2432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2433$as_echo "$STRIP" >&6; }
2434else
2435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2436$as_echo "no" >&6; }
2437fi
2438
2439
2440fi
2441if test -z "$ac_cv_prog_STRIP"; then
2442  ac_ct_STRIP=$STRIP
2443  # Extract the first word of "strip", so it can be a program name with args.
2444set dummy strip; ac_word=$2
2445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2446$as_echo_n "checking for $ac_word... " >&6; }
2447if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2448  $as_echo_n "(cached) " >&6
2449else
2450  if test -n "$ac_ct_STRIP"; then
2451  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2452else
2453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454for as_dir in $PATH
2455do
2456  IFS=$as_save_IFS
2457  test -z "$as_dir" && as_dir=.
2458    for ac_exec_ext in '' $ac_executable_extensions; do
2459  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2460    ac_cv_prog_ac_ct_STRIP="strip"
2461    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2462    break 2
2463  fi
2464done
2465  done
2466IFS=$as_save_IFS
2467
2468fi
2469fi
2470ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2471if test -n "$ac_ct_STRIP"; then
2472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2473$as_echo "$ac_ct_STRIP" >&6; }
2474else
2475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2476$as_echo "no" >&6; }
2477fi
2478
2479  if test "x$ac_ct_STRIP" = x; then
2480    STRIP=":"
2481  else
2482    case $cross_compiling:$ac_tool_warned in
2483yes:)
2484{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2485$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2486ac_tool_warned=yes ;;
2487esac
2488    STRIP=$ac_ct_STRIP
2489  fi
2490else
2491  STRIP="$ac_cv_prog_STRIP"
2492fi
2493
2494fi
2495INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2496
2497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2498$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2499if test -z "$MKDIR_P"; then
2500  if ${ac_cv_path_mkdir+:} false; then :
2501  $as_echo_n "(cached) " >&6
2502else
2503  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2505do
2506  IFS=$as_save_IFS
2507  test -z "$as_dir" && as_dir=.
2508    for ac_prog in mkdir gmkdir; do
2509	 for ac_exec_ext in '' $ac_executable_extensions; do
2510	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2511	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2512	     'mkdir (GNU coreutils) '* | \
2513	     'mkdir (coreutils) '* | \
2514	     'mkdir (fileutils) '4.1*)
2515	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2516	       break 3;;
2517	   esac
2518	 done
2519       done
2520  done
2521IFS=$as_save_IFS
2522
2523fi
2524
2525  test -d ./--version && rmdir ./--version
2526  if test "${ac_cv_path_mkdir+set}" = set; then
2527    MKDIR_P="$ac_cv_path_mkdir -p"
2528  else
2529    # As a last resort, use the slow shell script.  Don't cache a
2530    # value for MKDIR_P within a source directory, because that will
2531    # break other packages using the cache if that directory is
2532    # removed, or if the value is a relative name.
2533    MKDIR_P="$ac_install_sh -d"
2534  fi
2535fi
2536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2537$as_echo "$MKDIR_P" >&6; }
2538
2539for ac_prog in gawk mawk nawk awk
2540do
2541  # Extract the first word of "$ac_prog", so it can be a program name with args.
2542set dummy $ac_prog; ac_word=$2
2543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2544$as_echo_n "checking for $ac_word... " >&6; }
2545if ${ac_cv_prog_AWK+:} false; then :
2546  $as_echo_n "(cached) " >&6
2547else
2548  if test -n "$AWK"; then
2549  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2550else
2551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552for as_dir in $PATH
2553do
2554  IFS=$as_save_IFS
2555  test -z "$as_dir" && as_dir=.
2556    for ac_exec_ext in '' $ac_executable_extensions; do
2557  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2558    ac_cv_prog_AWK="$ac_prog"
2559    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2560    break 2
2561  fi
2562done
2563  done
2564IFS=$as_save_IFS
2565
2566fi
2567fi
2568AWK=$ac_cv_prog_AWK
2569if test -n "$AWK"; then
2570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2571$as_echo "$AWK" >&6; }
2572else
2573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2574$as_echo "no" >&6; }
2575fi
2576
2577
2578  test -n "$AWK" && break
2579done
2580
2581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2582$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2583set x ${MAKE-make}
2584ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2585if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2586  $as_echo_n "(cached) " >&6
2587else
2588  cat >conftest.make <<\_ACEOF
2589SHELL = /bin/sh
2590all:
2591	@echo '@@@%%%=$(MAKE)=@@@%%%'
2592_ACEOF
2593# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2594case `${MAKE-make} -f conftest.make 2>/dev/null` in
2595  *@@@%%%=?*=@@@%%%*)
2596    eval ac_cv_prog_make_${ac_make}_set=yes;;
2597  *)
2598    eval ac_cv_prog_make_${ac_make}_set=no;;
2599esac
2600rm -f conftest.make
2601fi
2602if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2604$as_echo "yes" >&6; }
2605  SET_MAKE=
2606else
2607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2608$as_echo "no" >&6; }
2609  SET_MAKE="MAKE=${MAKE-make}"
2610fi
2611
2612rm -rf .tst 2>/dev/null
2613mkdir .tst 2>/dev/null
2614if test -d .tst; then
2615  am__leading_dot=.
2616else
2617  am__leading_dot=_
2618fi
2619rmdir .tst 2>/dev/null
2620
2621# Check whether --enable-silent-rules was given.
2622if test "${enable_silent_rules+set}" = set; then :
2623  enableval=$enable_silent_rules;
2624fi
2625
2626case $enable_silent_rules in # (((
2627  yes) AM_DEFAULT_VERBOSITY=0;;
2628   no) AM_DEFAULT_VERBOSITY=1;;
2629    *) AM_DEFAULT_VERBOSITY=1;;
2630esac
2631am_make=${MAKE-make}
2632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2633$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2634if ${am_cv_make_support_nested_variables+:} false; then :
2635  $as_echo_n "(cached) " >&6
2636else
2637  if $as_echo 'TRUE=$(BAR$(V))
2638BAR0=false
2639BAR1=true
2640V=1
2641am__doit:
2642	@$(TRUE)
2643.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2644  am_cv_make_support_nested_variables=yes
2645else
2646  am_cv_make_support_nested_variables=no
2647fi
2648fi
2649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2650$as_echo "$am_cv_make_support_nested_variables" >&6; }
2651if test $am_cv_make_support_nested_variables = yes; then
2652    AM_V='$(V)'
2653  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2654else
2655  AM_V=$AM_DEFAULT_VERBOSITY
2656  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2657fi
2658AM_BACKSLASH='\'
2659
2660if test "`cd $srcdir && pwd`" != "`pwd`"; then
2661  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2662  # is not polluted with repeated "-I."
2663  am__isrc=' -I$(srcdir)'
2664  # test to see if srcdir already configured
2665  if test -f $srcdir/config.status; then
2666    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2667  fi
2668fi
2669
2670# test whether we have cygpath
2671if test -z "$CYGPATH_W"; then
2672  if (cygpath --version) >/dev/null 2>/dev/null; then
2673    CYGPATH_W='cygpath -w'
2674  else
2675    CYGPATH_W=echo
2676  fi
2677fi
2678
2679
2680# Define the identity of the package.
2681 PACKAGE='xman'
2682 VERSION='1.1.3'
2683
2684
2685cat >>confdefs.h <<_ACEOF
2686#define PACKAGE "$PACKAGE"
2687_ACEOF
2688
2689
2690cat >>confdefs.h <<_ACEOF
2691#define VERSION "$VERSION"
2692_ACEOF
2693
2694# Some tools Automake needs.
2695
2696ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2697
2698
2699AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2700
2701
2702AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2703
2704
2705AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2706
2707
2708MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2709
2710# For better backward compatibility.  To be removed once Automake 1.9.x
2711# dies out for good.  For more background, see:
2712# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2713# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2714mkdir_p='$(MKDIR_P)'
2715
2716# We need awk for the "check" target.  The system "awk" is bad on
2717# some platforms.
2718# Always define AMTAR for backward compatibility.  Yes, it's still used
2719# in the wild :-(  We should find a proper way to deprecate it ...
2720AMTAR='$${TAR-tar}'
2721
2722
2723# We'll loop over all known methods to create a tar archive until one works.
2724_am_tools='gnutar  pax cpio none'
2725
2726am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2727
2728
2729
2730
2731
2732
2733# POSIX will say in a future version that running "rm -f" with no argument
2734# is OK; and we want to be able to make that assumption in our Makefile
2735# recipes.  So use an aggressive probe to check that the usage we want is
2736# actually supported "in the wild" to an acceptable degree.
2737# See automake bug#10828.
2738# To make any issue more visible, cause the running configure to be aborted
2739# by default if the 'rm' program in use doesn't match our expectations; the
2740# user can still override this though.
2741if rm -f && rm -fr && rm -rf; then : OK; else
2742  cat >&2 <<'END'
2743Oops!
2744
2745Your 'rm' program seems unable to run without file operands specified
2746on the command line, even when the '-f' option is present.  This is contrary
2747to the behaviour of most rm programs out there, and not conforming with
2748the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2749
2750Please tell bug-automake@gnu.org about your system, including the value
2751of your $PATH and any error possibly output before this message.  This
2752can help us improve future automake versions.
2753
2754END
2755  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2756    echo 'Configuration will proceed anyway, since you have set the' >&2
2757    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2758    echo >&2
2759  else
2760    cat >&2 <<'END'
2761Aborting the configuration process, to ensure you take notice of the issue.
2762
2763You can download and install GNU coreutils to get an 'rm' implementation
2764that behaves properly: <http://www.gnu.org/software/coreutils/>.
2765
2766If you want to complete the configuration process using your problematic
2767'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2768to "yes", and re-run configure.
2769
2770END
2771    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2772  fi
2773fi
2774
2775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2776$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2777    # Check whether --enable-maintainer-mode was given.
2778if test "${enable_maintainer_mode+set}" = set; then :
2779  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2780else
2781  USE_MAINTAINER_MODE=no
2782fi
2783
2784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2785$as_echo "$USE_MAINTAINER_MODE" >&6; }
2786   if test $USE_MAINTAINER_MODE = yes; then
2787  MAINTAINER_MODE_TRUE=
2788  MAINTAINER_MODE_FALSE='#'
2789else
2790  MAINTAINER_MODE_TRUE='#'
2791  MAINTAINER_MODE_FALSE=
2792fi
2793
2794  MAINT=$MAINTAINER_MODE_TRUE
2795
2796
2797
2798# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810DEPDIR="${am__leading_dot}deps"
2811
2812ac_config_commands="$ac_config_commands depfiles"
2813
2814
2815am_make=${MAKE-make}
2816cat > confinc << 'END'
2817am__doit:
2818	@echo this is the am__doit target
2819.PHONY: am__doit
2820END
2821# If we don't find an include directive, just comment out the code.
2822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2823$as_echo_n "checking for style of include used by $am_make... " >&6; }
2824am__include="#"
2825am__quote=
2826_am_result=none
2827# First try GNU make style include.
2828echo "include confinc" > confmf
2829# Ignore all kinds of additional output from 'make'.
2830case `$am_make -s -f confmf 2> /dev/null` in #(
2831*the\ am__doit\ target*)
2832  am__include=include
2833  am__quote=
2834  _am_result=GNU
2835  ;;
2836esac
2837# Now try BSD make style include.
2838if test "$am__include" = "#"; then
2839   echo '.include "confinc"' > confmf
2840   case `$am_make -s -f confmf 2> /dev/null` in #(
2841   *the\ am__doit\ target*)
2842     am__include=.include
2843     am__quote="\""
2844     _am_result=BSD
2845     ;;
2846   esac
2847fi
2848
2849
2850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2851$as_echo "$_am_result" >&6; }
2852rm -f confinc confmf
2853
2854# Check whether --enable-dependency-tracking was given.
2855if test "${enable_dependency_tracking+set}" = set; then :
2856  enableval=$enable_dependency_tracking;
2857fi
2858
2859if test "x$enable_dependency_tracking" != xno; then
2860  am_depcomp="$ac_aux_dir/depcomp"
2861  AMDEPBACKSLASH='\'
2862  am__nodep='_no'
2863fi
2864 if test "x$enable_dependency_tracking" != xno; then
2865  AMDEP_TRUE=
2866  AMDEP_FALSE='#'
2867else
2868  AMDEP_TRUE='#'
2869  AMDEP_FALSE=
2870fi
2871
2872
2873ac_ext=c
2874ac_cpp='$CPP $CPPFLAGS'
2875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2877ac_compiler_gnu=$ac_cv_c_compiler_gnu
2878if test -n "$ac_tool_prefix"; then
2879  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2880set dummy ${ac_tool_prefix}gcc; ac_word=$2
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882$as_echo_n "checking for $ac_word... " >&6; }
2883if ${ac_cv_prog_CC+:} false; then :
2884  $as_echo_n "(cached) " >&6
2885else
2886  if test -n "$CC"; then
2887  ac_cv_prog_CC="$CC" # Let the user override the test.
2888else
2889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890for as_dir in $PATH
2891do
2892  IFS=$as_save_IFS
2893  test -z "$as_dir" && as_dir=.
2894    for ac_exec_ext in '' $ac_executable_extensions; do
2895  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2897    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898    break 2
2899  fi
2900done
2901  done
2902IFS=$as_save_IFS
2903
2904fi
2905fi
2906CC=$ac_cv_prog_CC
2907if test -n "$CC"; then
2908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2909$as_echo "$CC" >&6; }
2910else
2911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912$as_echo "no" >&6; }
2913fi
2914
2915
2916fi
2917if test -z "$ac_cv_prog_CC"; then
2918  ac_ct_CC=$CC
2919  # Extract the first word of "gcc", so it can be a program name with args.
2920set dummy gcc; ac_word=$2
2921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2922$as_echo_n "checking for $ac_word... " >&6; }
2923if ${ac_cv_prog_ac_ct_CC+:} false; then :
2924  $as_echo_n "(cached) " >&6
2925else
2926  if test -n "$ac_ct_CC"; then
2927  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2928else
2929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930for as_dir in $PATH
2931do
2932  IFS=$as_save_IFS
2933  test -z "$as_dir" && as_dir=.
2934    for ac_exec_ext in '' $ac_executable_extensions; do
2935  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2936    ac_cv_prog_ac_ct_CC="gcc"
2937    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2938    break 2
2939  fi
2940done
2941  done
2942IFS=$as_save_IFS
2943
2944fi
2945fi
2946ac_ct_CC=$ac_cv_prog_ac_ct_CC
2947if test -n "$ac_ct_CC"; then
2948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2949$as_echo "$ac_ct_CC" >&6; }
2950else
2951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952$as_echo "no" >&6; }
2953fi
2954
2955  if test "x$ac_ct_CC" = x; then
2956    CC=""
2957  else
2958    case $cross_compiling:$ac_tool_warned in
2959yes:)
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2962ac_tool_warned=yes ;;
2963esac
2964    CC=$ac_ct_CC
2965  fi
2966else
2967  CC="$ac_cv_prog_CC"
2968fi
2969
2970if test -z "$CC"; then
2971          if test -n "$ac_tool_prefix"; then
2972    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2973set dummy ${ac_tool_prefix}cc; ac_word=$2
2974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975$as_echo_n "checking for $ac_word... " >&6; }
2976if ${ac_cv_prog_CC+:} false; then :
2977  $as_echo_n "(cached) " >&6
2978else
2979  if test -n "$CC"; then
2980  ac_cv_prog_CC="$CC" # Let the user override the test.
2981else
2982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983for as_dir in $PATH
2984do
2985  IFS=$as_save_IFS
2986  test -z "$as_dir" && as_dir=.
2987    for ac_exec_ext in '' $ac_executable_extensions; do
2988  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2989    ac_cv_prog_CC="${ac_tool_prefix}cc"
2990    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2991    break 2
2992  fi
2993done
2994  done
2995IFS=$as_save_IFS
2996
2997fi
2998fi
2999CC=$ac_cv_prog_CC
3000if test -n "$CC"; then
3001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3002$as_echo "$CC" >&6; }
3003else
3004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005$as_echo "no" >&6; }
3006fi
3007
3008
3009  fi
3010fi
3011if test -z "$CC"; then
3012  # Extract the first word of "cc", so it can be a program name with args.
3013set dummy cc; ac_word=$2
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015$as_echo_n "checking for $ac_word... " >&6; }
3016if ${ac_cv_prog_CC+:} false; then :
3017  $as_echo_n "(cached) " >&6
3018else
3019  if test -n "$CC"; then
3020  ac_cv_prog_CC="$CC" # Let the user override the test.
3021else
3022  ac_prog_rejected=no
3023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024for as_dir in $PATH
3025do
3026  IFS=$as_save_IFS
3027  test -z "$as_dir" && as_dir=.
3028    for ac_exec_ext in '' $ac_executable_extensions; do
3029  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3030    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3031       ac_prog_rejected=yes
3032       continue
3033     fi
3034    ac_cv_prog_CC="cc"
3035    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3036    break 2
3037  fi
3038done
3039  done
3040IFS=$as_save_IFS
3041
3042if test $ac_prog_rejected = yes; then
3043  # We found a bogon in the path, so make sure we never use it.
3044  set dummy $ac_cv_prog_CC
3045  shift
3046  if test $# != 0; then
3047    # We chose a different compiler from the bogus one.
3048    # However, it has the same basename, so the bogon will be chosen
3049    # first if we set CC to just the basename; use the full file name.
3050    shift
3051    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3052  fi
3053fi
3054fi
3055fi
3056CC=$ac_cv_prog_CC
3057if test -n "$CC"; then
3058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3059$as_echo "$CC" >&6; }
3060else
3061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062$as_echo "no" >&6; }
3063fi
3064
3065
3066fi
3067if test -z "$CC"; then
3068  if test -n "$ac_tool_prefix"; then
3069  for ac_prog in cl.exe
3070  do
3071    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3072set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074$as_echo_n "checking for $ac_word... " >&6; }
3075if ${ac_cv_prog_CC+:} false; then :
3076  $as_echo_n "(cached) " >&6
3077else
3078  if test -n "$CC"; then
3079  ac_cv_prog_CC="$CC" # Let the user override the test.
3080else
3081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082for as_dir in $PATH
3083do
3084  IFS=$as_save_IFS
3085  test -z "$as_dir" && as_dir=.
3086    for ac_exec_ext in '' $ac_executable_extensions; do
3087  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3088    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3089    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3090    break 2
3091  fi
3092done
3093  done
3094IFS=$as_save_IFS
3095
3096fi
3097fi
3098CC=$ac_cv_prog_CC
3099if test -n "$CC"; then
3100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3101$as_echo "$CC" >&6; }
3102else
3103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104$as_echo "no" >&6; }
3105fi
3106
3107
3108    test -n "$CC" && break
3109  done
3110fi
3111if test -z "$CC"; then
3112  ac_ct_CC=$CC
3113  for ac_prog in cl.exe
3114do
3115  # Extract the first word of "$ac_prog", so it can be a program name with args.
3116set dummy $ac_prog; ac_word=$2
3117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118$as_echo_n "checking for $ac_word... " >&6; }
3119if ${ac_cv_prog_ac_ct_CC+:} false; then :
3120  $as_echo_n "(cached) " >&6
3121else
3122  if test -n "$ac_ct_CC"; then
3123  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3124else
3125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126for as_dir in $PATH
3127do
3128  IFS=$as_save_IFS
3129  test -z "$as_dir" && as_dir=.
3130    for ac_exec_ext in '' $ac_executable_extensions; do
3131  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3132    ac_cv_prog_ac_ct_CC="$ac_prog"
3133    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3134    break 2
3135  fi
3136done
3137  done
3138IFS=$as_save_IFS
3139
3140fi
3141fi
3142ac_ct_CC=$ac_cv_prog_ac_ct_CC
3143if test -n "$ac_ct_CC"; then
3144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3145$as_echo "$ac_ct_CC" >&6; }
3146else
3147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148$as_echo "no" >&6; }
3149fi
3150
3151
3152  test -n "$ac_ct_CC" && break
3153done
3154
3155  if test "x$ac_ct_CC" = x; then
3156    CC=""
3157  else
3158    case $cross_compiling:$ac_tool_warned in
3159yes:)
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3162ac_tool_warned=yes ;;
3163esac
3164    CC=$ac_ct_CC
3165  fi
3166fi
3167
3168fi
3169
3170
3171test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3172$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3173as_fn_error $? "no acceptable C compiler found in \$PATH
3174See \`config.log' for more details" "$LINENO" 5; }
3175
3176# Provide some information about the compiler.
3177$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3178set X $ac_compile
3179ac_compiler=$2
3180for ac_option in --version -v -V -qversion; do
3181  { { ac_try="$ac_compiler $ac_option >&5"
3182case "(($ac_try" in
3183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184  *) ac_try_echo=$ac_try;;
3185esac
3186eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3187$as_echo "$ac_try_echo"; } >&5
3188  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3189  ac_status=$?
3190  if test -s conftest.err; then
3191    sed '10a\
3192... rest of stderr output deleted ...
3193         10q' conftest.err >conftest.er1
3194    cat conftest.er1 >&5
3195  fi
3196  rm -f conftest.er1 conftest.err
3197  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3198  test $ac_status = 0; }
3199done
3200
3201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3202/* end confdefs.h.  */
3203
3204int
3205main ()
3206{
3207
3208  ;
3209  return 0;
3210}
3211_ACEOF
3212ac_clean_files_save=$ac_clean_files
3213ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3214# Try to create an executable without -o first, disregard a.out.
3215# It will help us diagnose broken compilers, and finding out an intuition
3216# of exeext.
3217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3218$as_echo_n "checking whether the C compiler works... " >&6; }
3219ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3220
3221# The possible output files:
3222ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3223
3224ac_rmfiles=
3225for ac_file in $ac_files
3226do
3227  case $ac_file in
3228    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3229    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3230  esac
3231done
3232rm -f $ac_rmfiles
3233
3234if { { ac_try="$ac_link_default"
3235case "(($ac_try" in
3236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237  *) ac_try_echo=$ac_try;;
3238esac
3239eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3240$as_echo "$ac_try_echo"; } >&5
3241  (eval "$ac_link_default") 2>&5
3242  ac_status=$?
3243  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3244  test $ac_status = 0; }; then :
3245  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3246# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3247# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3248# so that the user can short-circuit this test for compilers unknown to
3249# Autoconf.
3250for ac_file in $ac_files ''
3251do
3252  test -f "$ac_file" || continue
3253  case $ac_file in
3254    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3255	;;
3256    [ab].out )
3257	# We found the default executable, but exeext='' is most
3258	# certainly right.
3259	break;;
3260    *.* )
3261	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3262	then :; else
3263	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3264	fi
3265	# We set ac_cv_exeext here because the later test for it is not
3266	# safe: cross compilers may not add the suffix if given an `-o'
3267	# argument, so we may need to know it at that point already.
3268	# Even if this section looks crufty: it has the advantage of
3269	# actually working.
3270	break;;
3271    * )
3272	break;;
3273  esac
3274done
3275test "$ac_cv_exeext" = no && ac_cv_exeext=
3276
3277else
3278  ac_file=''
3279fi
3280if test -z "$ac_file"; then :
3281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282$as_echo "no" >&6; }
3283$as_echo "$as_me: failed program was:" >&5
3284sed 's/^/| /' conftest.$ac_ext >&5
3285
3286{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3288as_fn_error 77 "C compiler cannot create executables
3289See \`config.log' for more details" "$LINENO" 5; }
3290else
3291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3292$as_echo "yes" >&6; }
3293fi
3294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3295$as_echo_n "checking for C compiler default output file name... " >&6; }
3296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3297$as_echo "$ac_file" >&6; }
3298ac_exeext=$ac_cv_exeext
3299
3300rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3301ac_clean_files=$ac_clean_files_save
3302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3303$as_echo_n "checking for suffix of executables... " >&6; }
3304if { { ac_try="$ac_link"
3305case "(($ac_try" in
3306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307  *) ac_try_echo=$ac_try;;
3308esac
3309eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310$as_echo "$ac_try_echo"; } >&5
3311  (eval "$ac_link") 2>&5
3312  ac_status=$?
3313  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314  test $ac_status = 0; }; then :
3315  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3316# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3317# work properly (i.e., refer to `conftest.exe'), while it won't with
3318# `rm'.
3319for ac_file in conftest.exe conftest conftest.*; do
3320  test -f "$ac_file" || continue
3321  case $ac_file in
3322    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3323    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3324	  break;;
3325    * ) break;;
3326  esac
3327done
3328else
3329  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3332See \`config.log' for more details" "$LINENO" 5; }
3333fi
3334rm -f conftest conftest$ac_cv_exeext
3335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3336$as_echo "$ac_cv_exeext" >&6; }
3337
3338rm -f conftest.$ac_ext
3339EXEEXT=$ac_cv_exeext
3340ac_exeext=$EXEEXT
3341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342/* end confdefs.h.  */
3343#include <stdio.h>
3344int
3345main ()
3346{
3347FILE *f = fopen ("conftest.out", "w");
3348 return ferror (f) || fclose (f) != 0;
3349
3350  ;
3351  return 0;
3352}
3353_ACEOF
3354ac_clean_files="$ac_clean_files conftest.out"
3355# Check that the compiler produces executables we can run.  If not, either
3356# the compiler is broken, or we cross compile.
3357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3358$as_echo_n "checking whether we are cross compiling... " >&6; }
3359if test "$cross_compiling" != yes; then
3360  { { ac_try="$ac_link"
3361case "(($ac_try" in
3362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363  *) ac_try_echo=$ac_try;;
3364esac
3365eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3366$as_echo "$ac_try_echo"; } >&5
3367  (eval "$ac_link") 2>&5
3368  ac_status=$?
3369  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3370  test $ac_status = 0; }
3371  if { ac_try='./conftest$ac_cv_exeext'
3372  { { case "(($ac_try" in
3373  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374  *) ac_try_echo=$ac_try;;
3375esac
3376eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3377$as_echo "$ac_try_echo"; } >&5
3378  (eval "$ac_try") 2>&5
3379  ac_status=$?
3380  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381  test $ac_status = 0; }; }; then
3382    cross_compiling=no
3383  else
3384    if test "$cross_compiling" = maybe; then
3385	cross_compiling=yes
3386    else
3387	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3388$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3389as_fn_error $? "cannot run C compiled programs.
3390If you meant to cross compile, use \`--host'.
3391See \`config.log' for more details" "$LINENO" 5; }
3392    fi
3393  fi
3394fi
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3396$as_echo "$cross_compiling" >&6; }
3397
3398rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3399ac_clean_files=$ac_clean_files_save
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3401$as_echo_n "checking for suffix of object files... " >&6; }
3402if ${ac_cv_objext+:} false; then :
3403  $as_echo_n "(cached) " >&6
3404else
3405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406/* end confdefs.h.  */
3407
3408int
3409main ()
3410{
3411
3412  ;
3413  return 0;
3414}
3415_ACEOF
3416rm -f conftest.o conftest.obj
3417if { { ac_try="$ac_compile"
3418case "(($ac_try" in
3419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420  *) ac_try_echo=$ac_try;;
3421esac
3422eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3423$as_echo "$ac_try_echo"; } >&5
3424  (eval "$ac_compile") 2>&5
3425  ac_status=$?
3426  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3427  test $ac_status = 0; }; then :
3428  for ac_file in conftest.o conftest.obj conftest.*; do
3429  test -f "$ac_file" || continue;
3430  case $ac_file in
3431    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3432    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3433       break;;
3434  esac
3435done
3436else
3437  $as_echo "$as_me: failed program was:" >&5
3438sed 's/^/| /' conftest.$ac_ext >&5
3439
3440{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442as_fn_error $? "cannot compute suffix of object files: cannot compile
3443See \`config.log' for more details" "$LINENO" 5; }
3444fi
3445rm -f conftest.$ac_cv_objext conftest.$ac_ext
3446fi
3447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3448$as_echo "$ac_cv_objext" >&6; }
3449OBJEXT=$ac_cv_objext
3450ac_objext=$OBJEXT
3451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3452$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3453if ${ac_cv_c_compiler_gnu+:} false; then :
3454  $as_echo_n "(cached) " >&6
3455else
3456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457/* end confdefs.h.  */
3458
3459int
3460main ()
3461{
3462#ifndef __GNUC__
3463       choke me
3464#endif
3465
3466  ;
3467  return 0;
3468}
3469_ACEOF
3470if ac_fn_c_try_compile "$LINENO"; then :
3471  ac_compiler_gnu=yes
3472else
3473  ac_compiler_gnu=no
3474fi
3475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476ac_cv_c_compiler_gnu=$ac_compiler_gnu
3477
3478fi
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3480$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3481if test $ac_compiler_gnu = yes; then
3482  GCC=yes
3483else
3484  GCC=
3485fi
3486ac_test_CFLAGS=${CFLAGS+set}
3487ac_save_CFLAGS=$CFLAGS
3488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3489$as_echo_n "checking whether $CC accepts -g... " >&6; }
3490if ${ac_cv_prog_cc_g+:} false; then :
3491  $as_echo_n "(cached) " >&6
3492else
3493  ac_save_c_werror_flag=$ac_c_werror_flag
3494   ac_c_werror_flag=yes
3495   ac_cv_prog_cc_g=no
3496   CFLAGS="-g"
3497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498/* end confdefs.h.  */
3499
3500int
3501main ()
3502{
3503
3504  ;
3505  return 0;
3506}
3507_ACEOF
3508if ac_fn_c_try_compile "$LINENO"; then :
3509  ac_cv_prog_cc_g=yes
3510else
3511  CFLAGS=""
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
3525else
3526  ac_c_werror_flag=$ac_save_c_werror_flag
3527	 CFLAGS="-g"
3528	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529/* end confdefs.h.  */
3530
3531int
3532main ()
3533{
3534
3535  ;
3536  return 0;
3537}
3538_ACEOF
3539if ac_fn_c_try_compile "$LINENO"; then :
3540  ac_cv_prog_cc_g=yes
3541fi
3542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3543fi
3544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3545fi
3546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547   ac_c_werror_flag=$ac_save_c_werror_flag
3548fi
3549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3550$as_echo "$ac_cv_prog_cc_g" >&6; }
3551if test "$ac_test_CFLAGS" = set; then
3552  CFLAGS=$ac_save_CFLAGS
3553elif test $ac_cv_prog_cc_g = yes; then
3554  if test "$GCC" = yes; then
3555    CFLAGS="-g -O2"
3556  else
3557    CFLAGS="-g"
3558  fi
3559else
3560  if test "$GCC" = yes; then
3561    CFLAGS="-O2"
3562  else
3563    CFLAGS=
3564  fi
3565fi
3566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3567$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3568if ${ac_cv_prog_cc_c89+:} false; then :
3569  $as_echo_n "(cached) " >&6
3570else
3571  ac_cv_prog_cc_c89=no
3572ac_save_CC=$CC
3573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574/* end confdefs.h.  */
3575#include <stdarg.h>
3576#include <stdio.h>
3577#include <sys/types.h>
3578#include <sys/stat.h>
3579/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3580struct buf { int x; };
3581FILE * (*rcsopen) (struct buf *, struct stat *, int);
3582static char *e (p, i)
3583     char **p;
3584     int i;
3585{
3586  return p[i];
3587}
3588static char *f (char * (*g) (char **, int), char **p, ...)
3589{
3590  char *s;
3591  va_list v;
3592  va_start (v,p);
3593  s = g (p, va_arg (v,int));
3594  va_end (v);
3595  return s;
3596}
3597
3598/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3599   function prototypes and stuff, but not '\xHH' hex character constants.
3600   These don't provoke an error unfortunately, instead are silently treated
3601   as 'x'.  The following induces an error, until -std is added to get
3602   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3603   array size at least.  It's necessary to write '\x00'==0 to get something
3604   that's true only with -std.  */
3605int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3606
3607/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3608   inside strings and character constants.  */
3609#define FOO(x) 'x'
3610int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3611
3612int test (int i, double x);
3613struct s1 {int (*f) (int a);};
3614struct s2 {int (*f) (double a);};
3615int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3616int argc;
3617char **argv;
3618int
3619main ()
3620{
3621return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3622  ;
3623  return 0;
3624}
3625_ACEOF
3626for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3627	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3628do
3629  CC="$ac_save_CC $ac_arg"
3630  if ac_fn_c_try_compile "$LINENO"; then :
3631  ac_cv_prog_cc_c89=$ac_arg
3632fi
3633rm -f core conftest.err conftest.$ac_objext
3634  test "x$ac_cv_prog_cc_c89" != "xno" && break
3635done
3636rm -f conftest.$ac_ext
3637CC=$ac_save_CC
3638
3639fi
3640# AC_CACHE_VAL
3641case "x$ac_cv_prog_cc_c89" in
3642  x)
3643    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3644$as_echo "none needed" >&6; } ;;
3645  xno)
3646    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3647$as_echo "unsupported" >&6; } ;;
3648  *)
3649    CC="$CC $ac_cv_prog_cc_c89"
3650    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3651$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3652esac
3653if test "x$ac_cv_prog_cc_c89" != xno; then :
3654
3655fi
3656
3657ac_ext=c
3658ac_cpp='$CPP $CPPFLAGS'
3659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3661ac_compiler_gnu=$ac_cv_c_compiler_gnu
3662
3663ac_ext=c
3664ac_cpp='$CPP $CPPFLAGS'
3665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3667ac_compiler_gnu=$ac_cv_c_compiler_gnu
3668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3669$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3670if ${am_cv_prog_cc_c_o+:} false; then :
3671  $as_echo_n "(cached) " >&6
3672else
3673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674/* end confdefs.h.  */
3675
3676int
3677main ()
3678{
3679
3680  ;
3681  return 0;
3682}
3683_ACEOF
3684  # Make sure it works both with $CC and with simple cc.
3685  # Following AC_PROG_CC_C_O, we do the test twice because some
3686  # compilers refuse to overwrite an existing .o file with -o,
3687  # though they will create one.
3688  am_cv_prog_cc_c_o=yes
3689  for am_i in 1 2; do
3690    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3691   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3692   ac_status=$?
3693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694   (exit $ac_status); } \
3695         && test -f conftest2.$ac_objext; then
3696      : OK
3697    else
3698      am_cv_prog_cc_c_o=no
3699      break
3700    fi
3701  done
3702  rm -f core conftest*
3703  unset am_i
3704fi
3705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3706$as_echo "$am_cv_prog_cc_c_o" >&6; }
3707if test "$am_cv_prog_cc_c_o" != yes; then
3708   # Losing compiler, so override with the script.
3709   # FIXME: It is wrong to rewrite CC.
3710   # But if we don't then we get into trouble of one sort or another.
3711   # A longer-term fix would be to have automake use am__CC in this case,
3712   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3713   CC="$am_aux_dir/compile $CC"
3714fi
3715ac_ext=c
3716ac_cpp='$CPP $CPPFLAGS'
3717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3719ac_compiler_gnu=$ac_cv_c_compiler_gnu
3720
3721
3722depcc="$CC"   am_compiler_list=
3723
3724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3725$as_echo_n "checking dependency style of $depcc... " >&6; }
3726if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3727  $as_echo_n "(cached) " >&6
3728else
3729  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3730  # We make a subdir and do the tests there.  Otherwise we can end up
3731  # making bogus files that we don't know about and never remove.  For
3732  # instance it was reported that on HP-UX the gcc test will end up
3733  # making a dummy file named 'D' -- because '-MD' means "put the output
3734  # in D".
3735  rm -rf conftest.dir
3736  mkdir conftest.dir
3737  # Copy depcomp to subdir because otherwise we won't find it if we're
3738  # using a relative directory.
3739  cp "$am_depcomp" conftest.dir
3740  cd conftest.dir
3741  # We will build objects and dependencies in a subdirectory because
3742  # it helps to detect inapplicable dependency modes.  For instance
3743  # both Tru64's cc and ICC support -MD to output dependencies as a
3744  # side effect of compilation, but ICC will put the dependencies in
3745  # the current directory while Tru64 will put them in the object
3746  # directory.
3747  mkdir sub
3748
3749  am_cv_CC_dependencies_compiler_type=none
3750  if test "$am_compiler_list" = ""; then
3751     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3752  fi
3753  am__universal=false
3754  case " $depcc " in #(
3755     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3756     esac
3757
3758  for depmode in $am_compiler_list; do
3759    # Setup a source with many dependencies, because some compilers
3760    # like to wrap large dependency lists on column 80 (with \), and
3761    # we should not choose a depcomp mode which is confused by this.
3762    #
3763    # We need to recreate these files for each test, as the compiler may
3764    # overwrite some of them when testing with obscure command lines.
3765    # This happens at least with the AIX C compiler.
3766    : > sub/conftest.c
3767    for i in 1 2 3 4 5 6; do
3768      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3769      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3770      # Solaris 10 /bin/sh.
3771      echo '/* dummy */' > sub/conftst$i.h
3772    done
3773    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3774
3775    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3776    # mode.  It turns out that the SunPro C++ compiler does not properly
3777    # handle '-M -o', and we need to detect this.  Also, some Intel
3778    # versions had trouble with output in subdirs.
3779    am__obj=sub/conftest.${OBJEXT-o}
3780    am__minus_obj="-o $am__obj"
3781    case $depmode in
3782    gcc)
3783      # This depmode causes a compiler race in universal mode.
3784      test "$am__universal" = false || continue
3785      ;;
3786    nosideeffect)
3787      # After this tag, mechanisms are not by side-effect, so they'll
3788      # only be used when explicitly requested.
3789      if test "x$enable_dependency_tracking" = xyes; then
3790	continue
3791      else
3792	break
3793      fi
3794      ;;
3795    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3796      # This compiler won't grok '-c -o', but also, the minuso test has
3797      # not run yet.  These depmodes are late enough in the game, and
3798      # so weak that their functioning should not be impacted.
3799      am__obj=conftest.${OBJEXT-o}
3800      am__minus_obj=
3801      ;;
3802    none) break ;;
3803    esac
3804    if depmode=$depmode \
3805       source=sub/conftest.c object=$am__obj \
3806       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3807       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3808         >/dev/null 2>conftest.err &&
3809       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3810       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3811       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3812       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3813      # icc doesn't choke on unknown options, it will just issue warnings
3814      # or remarks (even with -Werror).  So we grep stderr for any message
3815      # that says an option was ignored or not supported.
3816      # When given -MP, icc 7.0 and 7.1 complain thusly:
3817      #   icc: Command line warning: ignoring option '-M'; no argument required
3818      # The diagnosis changed in icc 8.0:
3819      #   icc: Command line remark: option '-MP' not supported
3820      if (grep 'ignoring option' conftest.err ||
3821          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3822        am_cv_CC_dependencies_compiler_type=$depmode
3823        break
3824      fi
3825    fi
3826  done
3827
3828  cd ..
3829  rm -rf conftest.dir
3830else
3831  am_cv_CC_dependencies_compiler_type=none
3832fi
3833
3834fi
3835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3836$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3837CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3838
3839 if
3840  test "x$enable_dependency_tracking" != xno \
3841  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3842  am__fastdepCC_TRUE=
3843  am__fastdepCC_FALSE='#'
3844else
3845  am__fastdepCC_TRUE='#'
3846  am__fastdepCC_FALSE=
3847fi
3848
3849
3850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3851$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3852if ${ac_cv_prog_cc_c99+:} false; then :
3853  $as_echo_n "(cached) " >&6
3854else
3855  ac_cv_prog_cc_c99=no
3856ac_save_CC=$CC
3857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858/* end confdefs.h.  */
3859#include <stdarg.h>
3860#include <stdbool.h>
3861#include <stdlib.h>
3862#include <wchar.h>
3863#include <stdio.h>
3864
3865// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3866#define debug(...) fprintf (stderr, __VA_ARGS__)
3867#define showlist(...) puts (#__VA_ARGS__)
3868#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3869static void
3870test_varargs_macros (void)
3871{
3872  int x = 1234;
3873  int y = 5678;
3874  debug ("Flag");
3875  debug ("X = %d\n", x);
3876  showlist (The first, second, and third items.);
3877  report (x>y, "x is %d but y is %d", x, y);
3878}
3879
3880// Check long long types.
3881#define BIG64 18446744073709551615ull
3882#define BIG32 4294967295ul
3883#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3884#if !BIG_OK
3885  your preprocessor is broken;
3886#endif
3887#if BIG_OK
3888#else
3889  your preprocessor is broken;
3890#endif
3891static long long int bignum = -9223372036854775807LL;
3892static unsigned long long int ubignum = BIG64;
3893
3894struct incomplete_array
3895{
3896  int datasize;
3897  double data[];
3898};
3899
3900struct named_init {
3901  int number;
3902  const wchar_t *name;
3903  double average;
3904};
3905
3906typedef const char *ccp;
3907
3908static inline int
3909test_restrict (ccp restrict text)
3910{
3911  // See if C++-style comments work.
3912  // Iterate through items via the restricted pointer.
3913  // Also check for declarations in for loops.
3914  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3915    continue;
3916  return 0;
3917}
3918
3919// Check varargs and va_copy.
3920static void
3921test_varargs (const char *format, ...)
3922{
3923  va_list args;
3924  va_start (args, format);
3925  va_list args_copy;
3926  va_copy (args_copy, args);
3927
3928  const char *str;
3929  int number;
3930  float fnumber;
3931
3932  while (*format)
3933    {
3934      switch (*format++)
3935	{
3936	case 's': // string
3937	  str = va_arg (args_copy, const char *);
3938	  break;
3939	case 'd': // int
3940	  number = va_arg (args_copy, int);
3941	  break;
3942	case 'f': // float
3943	  fnumber = va_arg (args_copy, double);
3944	  break;
3945	default:
3946	  break;
3947	}
3948    }
3949  va_end (args_copy);
3950  va_end (args);
3951}
3952
3953int
3954main ()
3955{
3956
3957  // Check bool.
3958  _Bool success = false;
3959
3960  // Check restrict.
3961  if (test_restrict ("String literal") == 0)
3962    success = true;
3963  char *restrict newvar = "Another string";
3964
3965  // Check varargs.
3966  test_varargs ("s, d' f .", "string", 65, 34.234);
3967  test_varargs_macros ();
3968
3969  // Check flexible array members.
3970  struct incomplete_array *ia =
3971    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3972  ia->datasize = 10;
3973  for (int i = 0; i < ia->datasize; ++i)
3974    ia->data[i] = i * 1.234;
3975
3976  // Check named initializers.
3977  struct named_init ni = {
3978    .number = 34,
3979    .name = L"Test wide string",
3980    .average = 543.34343,
3981  };
3982
3983  ni.number = 58;
3984
3985  int dynamic_array[ni.number];
3986  dynamic_array[ni.number - 1] = 543;
3987
3988  // work around unused variable warnings
3989  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3990	  || dynamic_array[ni.number - 1] != 543);
3991
3992  ;
3993  return 0;
3994}
3995_ACEOF
3996for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3997do
3998  CC="$ac_save_CC $ac_arg"
3999  if ac_fn_c_try_compile "$LINENO"; then :
4000  ac_cv_prog_cc_c99=$ac_arg
4001fi
4002rm -f core conftest.err conftest.$ac_objext
4003  test "x$ac_cv_prog_cc_c99" != "xno" && break
4004done
4005rm -f conftest.$ac_ext
4006CC=$ac_save_CC
4007
4008fi
4009# AC_CACHE_VAL
4010case "x$ac_cv_prog_cc_c99" in
4011  x)
4012    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4013$as_echo "none needed" >&6; } ;;
4014  xno)
4015    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4016$as_echo "unsupported" >&6; } ;;
4017  *)
4018    CC="$CC $ac_cv_prog_cc_c99"
4019    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4020$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4021esac
4022if test "x$ac_cv_prog_cc_c99" != xno; then :
4023
4024fi
4025
4026
4027
4028ac_ext=c
4029ac_cpp='$CPP $CPPFLAGS'
4030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4032ac_compiler_gnu=$ac_cv_c_compiler_gnu
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4034$as_echo_n "checking how to run the C preprocessor... " >&6; }
4035# On Suns, sometimes $CPP names a directory.
4036if test -n "$CPP" && test -d "$CPP"; then
4037  CPP=
4038fi
4039if test -z "$CPP"; then
4040  if ${ac_cv_prog_CPP+:} false; then :
4041  $as_echo_n "(cached) " >&6
4042else
4043      # Double quotes because CPP needs to be expanded
4044    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4045    do
4046      ac_preproc_ok=false
4047for ac_c_preproc_warn_flag in '' yes
4048do
4049  # Use a header file that comes with gcc, so configuring glibc
4050  # with a fresh cross-compiler works.
4051  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4052  # <limits.h> exists even on freestanding compilers.
4053  # On the NeXT, cc -E runs the code through the compiler's parser,
4054  # not just through cpp. "Syntax error" is here to catch this case.
4055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056/* end confdefs.h.  */
4057#ifdef __STDC__
4058# include <limits.h>
4059#else
4060# include <assert.h>
4061#endif
4062		     Syntax error
4063_ACEOF
4064if ac_fn_c_try_cpp "$LINENO"; then :
4065
4066else
4067  # Broken: fails on valid input.
4068continue
4069fi
4070rm -f conftest.err conftest.i conftest.$ac_ext
4071
4072  # OK, works on sane cases.  Now check whether nonexistent headers
4073  # can be detected and how.
4074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075/* end confdefs.h.  */
4076#include <ac_nonexistent.h>
4077_ACEOF
4078if ac_fn_c_try_cpp "$LINENO"; then :
4079  # Broken: success on invalid input.
4080continue
4081else
4082  # Passes both tests.
4083ac_preproc_ok=:
4084break
4085fi
4086rm -f conftest.err conftest.i conftest.$ac_ext
4087
4088done
4089# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4090rm -f conftest.i conftest.err conftest.$ac_ext
4091if $ac_preproc_ok; then :
4092  break
4093fi
4094
4095    done
4096    ac_cv_prog_CPP=$CPP
4097
4098fi
4099  CPP=$ac_cv_prog_CPP
4100else
4101  ac_cv_prog_CPP=$CPP
4102fi
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4104$as_echo "$CPP" >&6; }
4105ac_preproc_ok=false
4106for ac_c_preproc_warn_flag in '' yes
4107do
4108  # Use a header file that comes with gcc, so configuring glibc
4109  # with a fresh cross-compiler works.
4110  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4111  # <limits.h> exists even on freestanding compilers.
4112  # On the NeXT, cc -E runs the code through the compiler's parser,
4113  # not just through cpp. "Syntax error" is here to catch this case.
4114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115/* end confdefs.h.  */
4116#ifdef __STDC__
4117# include <limits.h>
4118#else
4119# include <assert.h>
4120#endif
4121		     Syntax error
4122_ACEOF
4123if ac_fn_c_try_cpp "$LINENO"; then :
4124
4125else
4126  # Broken: fails on valid input.
4127continue
4128fi
4129rm -f conftest.err conftest.i conftest.$ac_ext
4130
4131  # OK, works on sane cases.  Now check whether nonexistent headers
4132  # can be detected and how.
4133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134/* end confdefs.h.  */
4135#include <ac_nonexistent.h>
4136_ACEOF
4137if ac_fn_c_try_cpp "$LINENO"; then :
4138  # Broken: success on invalid input.
4139continue
4140else
4141  # Passes both tests.
4142ac_preproc_ok=:
4143break
4144fi
4145rm -f conftest.err conftest.i conftest.$ac_ext
4146
4147done
4148# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4149rm -f conftest.i conftest.err conftest.$ac_ext
4150if $ac_preproc_ok; then :
4151
4152else
4153  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4155as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4156See \`config.log' for more details" "$LINENO" 5; }
4157fi
4158
4159ac_ext=c
4160ac_cpp='$CPP $CPPFLAGS'
4161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4163ac_compiler_gnu=$ac_cv_c_compiler_gnu
4164
4165
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4167$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4168if ${ac_cv_path_GREP+:} false; then :
4169  $as_echo_n "(cached) " >&6
4170else
4171  if test -z "$GREP"; then
4172  ac_path_GREP_found=false
4173  # Loop through the user's path and test for each of PROGNAME-LIST
4174  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4176do
4177  IFS=$as_save_IFS
4178  test -z "$as_dir" && as_dir=.
4179    for ac_prog in grep ggrep; do
4180    for ac_exec_ext in '' $ac_executable_extensions; do
4181      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4182      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4183# Check for GNU ac_path_GREP and select it if it is found.
4184  # Check for GNU $ac_path_GREP
4185case `"$ac_path_GREP" --version 2>&1` in
4186*GNU*)
4187  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4188*)
4189  ac_count=0
4190  $as_echo_n 0123456789 >"conftest.in"
4191  while :
4192  do
4193    cat "conftest.in" "conftest.in" >"conftest.tmp"
4194    mv "conftest.tmp" "conftest.in"
4195    cp "conftest.in" "conftest.nl"
4196    $as_echo 'GREP' >> "conftest.nl"
4197    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4198    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4199    as_fn_arith $ac_count + 1 && ac_count=$as_val
4200    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4201      # Best one so far, save it but keep looking for a better one
4202      ac_cv_path_GREP="$ac_path_GREP"
4203      ac_path_GREP_max=$ac_count
4204    fi
4205    # 10*(2^10) chars as input seems more than enough
4206    test $ac_count -gt 10 && break
4207  done
4208  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4209esac
4210
4211      $ac_path_GREP_found && break 3
4212    done
4213  done
4214  done
4215IFS=$as_save_IFS
4216  if test -z "$ac_cv_path_GREP"; then
4217    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4218  fi
4219else
4220  ac_cv_path_GREP=$GREP
4221fi
4222
4223fi
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4225$as_echo "$ac_cv_path_GREP" >&6; }
4226 GREP="$ac_cv_path_GREP"
4227
4228
4229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4230$as_echo_n "checking for egrep... " >&6; }
4231if ${ac_cv_path_EGREP+:} false; then :
4232  $as_echo_n "(cached) " >&6
4233else
4234  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4235   then ac_cv_path_EGREP="$GREP -E"
4236   else
4237     if test -z "$EGREP"; then
4238  ac_path_EGREP_found=false
4239  # Loop through the user's path and test for each of PROGNAME-LIST
4240  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4242do
4243  IFS=$as_save_IFS
4244  test -z "$as_dir" && as_dir=.
4245    for ac_prog in egrep; do
4246    for ac_exec_ext in '' $ac_executable_extensions; do
4247      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4248      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4249# Check for GNU ac_path_EGREP and select it if it is found.
4250  # Check for GNU $ac_path_EGREP
4251case `"$ac_path_EGREP" --version 2>&1` in
4252*GNU*)
4253  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4254*)
4255  ac_count=0
4256  $as_echo_n 0123456789 >"conftest.in"
4257  while :
4258  do
4259    cat "conftest.in" "conftest.in" >"conftest.tmp"
4260    mv "conftest.tmp" "conftest.in"
4261    cp "conftest.in" "conftest.nl"
4262    $as_echo 'EGREP' >> "conftest.nl"
4263    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4264    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4265    as_fn_arith $ac_count + 1 && ac_count=$as_val
4266    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4267      # Best one so far, save it but keep looking for a better one
4268      ac_cv_path_EGREP="$ac_path_EGREP"
4269      ac_path_EGREP_max=$ac_count
4270    fi
4271    # 10*(2^10) chars as input seems more than enough
4272    test $ac_count -gt 10 && break
4273  done
4274  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4275esac
4276
4277      $ac_path_EGREP_found && break 3
4278    done
4279  done
4280  done
4281IFS=$as_save_IFS
4282  if test -z "$ac_cv_path_EGREP"; then
4283    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4284  fi
4285else
4286  ac_cv_path_EGREP=$EGREP
4287fi
4288
4289   fi
4290fi
4291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4292$as_echo "$ac_cv_path_EGREP" >&6; }
4293 EGREP="$ac_cv_path_EGREP"
4294
4295
4296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4297$as_echo_n "checking for ANSI C header files... " >&6; }
4298if ${ac_cv_header_stdc+:} false; then :
4299  $as_echo_n "(cached) " >&6
4300else
4301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302/* end confdefs.h.  */
4303#include <stdlib.h>
4304#include <stdarg.h>
4305#include <string.h>
4306#include <float.h>
4307
4308int
4309main ()
4310{
4311
4312  ;
4313  return 0;
4314}
4315_ACEOF
4316if ac_fn_c_try_compile "$LINENO"; then :
4317  ac_cv_header_stdc=yes
4318else
4319  ac_cv_header_stdc=no
4320fi
4321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4322
4323if test $ac_cv_header_stdc = yes; then
4324  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326/* end confdefs.h.  */
4327#include <string.h>
4328
4329_ACEOF
4330if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4331  $EGREP "memchr" >/dev/null 2>&1; then :
4332
4333else
4334  ac_cv_header_stdc=no
4335fi
4336rm -f conftest*
4337
4338fi
4339
4340if test $ac_cv_header_stdc = yes; then
4341  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343/* end confdefs.h.  */
4344#include <stdlib.h>
4345
4346_ACEOF
4347if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4348  $EGREP "free" >/dev/null 2>&1; then :
4349
4350else
4351  ac_cv_header_stdc=no
4352fi
4353rm -f conftest*
4354
4355fi
4356
4357if test $ac_cv_header_stdc = yes; then
4358  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4359  if test "$cross_compiling" = yes; then :
4360  :
4361else
4362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363/* end confdefs.h.  */
4364#include <ctype.h>
4365#include <stdlib.h>
4366#if ((' ' & 0x0FF) == 0x020)
4367# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4368# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4369#else
4370# define ISLOWER(c) \
4371		   (('a' <= (c) && (c) <= 'i') \
4372		     || ('j' <= (c) && (c) <= 'r') \
4373		     || ('s' <= (c) && (c) <= 'z'))
4374# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4375#endif
4376
4377#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4378int
4379main ()
4380{
4381  int i;
4382  for (i = 0; i < 256; i++)
4383    if (XOR (islower (i), ISLOWER (i))
4384	|| toupper (i) != TOUPPER (i))
4385      return 2;
4386  return 0;
4387}
4388_ACEOF
4389if ac_fn_c_try_run "$LINENO"; then :
4390
4391else
4392  ac_cv_header_stdc=no
4393fi
4394rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4395  conftest.$ac_objext conftest.beam conftest.$ac_ext
4396fi
4397
4398fi
4399fi
4400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4401$as_echo "$ac_cv_header_stdc" >&6; }
4402if test $ac_cv_header_stdc = yes; then
4403
4404$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4405
4406fi
4407
4408# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4409for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4410		  inttypes.h stdint.h unistd.h
4411do :
4412  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4413ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4414"
4415if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4416  cat >>confdefs.h <<_ACEOF
4417#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4418_ACEOF
4419
4420fi
4421
4422done
4423
4424
4425
4426
4427
4428
4429ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4430if test "x$ac_cv_have_decl___clang__" = xyes; then :
4431  CLANGCC="yes"
4432else
4433  CLANGCC="no"
4434fi
4435
4436ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4437if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4438  INTELCC="yes"
4439else
4440  INTELCC="no"
4441fi
4442
4443ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4444if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4445  SUNCC="yes"
4446else
4447  SUNCC="no"
4448fi
4449
4450
4451
4452
4453if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4454	if test -n "$ac_tool_prefix"; then
4455  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4456set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4458$as_echo_n "checking for $ac_word... " >&6; }
4459if ${ac_cv_path_PKG_CONFIG+:} false; then :
4460  $as_echo_n "(cached) " >&6
4461else
4462  case $PKG_CONFIG in
4463  [\\/]* | ?:[\\/]*)
4464  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4465  ;;
4466  *)
4467  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468for as_dir in $PATH
4469do
4470  IFS=$as_save_IFS
4471  test -z "$as_dir" && as_dir=.
4472    for ac_exec_ext in '' $ac_executable_extensions; do
4473  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4474    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4475    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4476    break 2
4477  fi
4478done
4479  done
4480IFS=$as_save_IFS
4481
4482  ;;
4483esac
4484fi
4485PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4486if test -n "$PKG_CONFIG"; then
4487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4488$as_echo "$PKG_CONFIG" >&6; }
4489else
4490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491$as_echo "no" >&6; }
4492fi
4493
4494
4495fi
4496if test -z "$ac_cv_path_PKG_CONFIG"; then
4497  ac_pt_PKG_CONFIG=$PKG_CONFIG
4498  # Extract the first word of "pkg-config", so it can be a program name with args.
4499set dummy pkg-config; ac_word=$2
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4501$as_echo_n "checking for $ac_word... " >&6; }
4502if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4503  $as_echo_n "(cached) " >&6
4504else
4505  case $ac_pt_PKG_CONFIG in
4506  [\\/]* | ?:[\\/]*)
4507  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4508  ;;
4509  *)
4510  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511for as_dir in $PATH
4512do
4513  IFS=$as_save_IFS
4514  test -z "$as_dir" && as_dir=.
4515    for ac_exec_ext in '' $ac_executable_extensions; do
4516  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4517    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4518    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4519    break 2
4520  fi
4521done
4522  done
4523IFS=$as_save_IFS
4524
4525  ;;
4526esac
4527fi
4528ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4529if test -n "$ac_pt_PKG_CONFIG"; then
4530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4531$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4532else
4533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4534$as_echo "no" >&6; }
4535fi
4536
4537  if test "x$ac_pt_PKG_CONFIG" = x; then
4538    PKG_CONFIG=""
4539  else
4540    case $cross_compiling:$ac_tool_warned in
4541yes:)
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4543$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4544ac_tool_warned=yes ;;
4545esac
4546    PKG_CONFIG=$ac_pt_PKG_CONFIG
4547  fi
4548else
4549  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4550fi
4551
4552fi
4553if test -n "$PKG_CONFIG"; then
4554	_pkg_min_version=0.9.0
4555	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4556$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4557	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4558		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4559$as_echo "yes" >&6; }
4560	else
4561		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4562$as_echo "no" >&6; }
4563		PKG_CONFIG=""
4564	fi
4565
4566fi
4567# Make sure we can run config.sub.
4568$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4569  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4570
4571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4572$as_echo_n "checking build system type... " >&6; }
4573if ${ac_cv_build+:} false; then :
4574  $as_echo_n "(cached) " >&6
4575else
4576  ac_build_alias=$build_alias
4577test "x$ac_build_alias" = x &&
4578  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4579test "x$ac_build_alias" = x &&
4580  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4581ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4582  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4583
4584fi
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4586$as_echo "$ac_cv_build" >&6; }
4587case $ac_cv_build in
4588*-*-*) ;;
4589*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4590esac
4591build=$ac_cv_build
4592ac_save_IFS=$IFS; IFS='-'
4593set x $ac_cv_build
4594shift
4595build_cpu=$1
4596build_vendor=$2
4597shift; shift
4598# Remember, the first character of IFS is used to create $*,
4599# except with old shells:
4600build_os=$*
4601IFS=$ac_save_IFS
4602case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4603
4604
4605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4606$as_echo_n "checking host system type... " >&6; }
4607if ${ac_cv_host+:} false; then :
4608  $as_echo_n "(cached) " >&6
4609else
4610  if test "x$host_alias" = x; then
4611  ac_cv_host=$ac_cv_build
4612else
4613  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4614    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4615fi
4616
4617fi
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4619$as_echo "$ac_cv_host" >&6; }
4620case $ac_cv_host in
4621*-*-*) ;;
4622*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4623esac
4624host=$ac_cv_host
4625ac_save_IFS=$IFS; IFS='-'
4626set x $ac_cv_host
4627shift
4628host_cpu=$1
4629host_vendor=$2
4630shift; shift
4631# Remember, the first character of IFS is used to create $*,
4632# except with old shells:
4633host_os=$*
4634IFS=$ac_save_IFS
4635case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4636
4637
4638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4639$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4640if ${ac_cv_path_SED+:} false; then :
4641  $as_echo_n "(cached) " >&6
4642else
4643            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4644     for ac_i in 1 2 3 4 5 6 7; do
4645       ac_script="$ac_script$as_nl$ac_script"
4646     done
4647     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4648     { ac_script=; unset ac_script;}
4649     if test -z "$SED"; then
4650  ac_path_SED_found=false
4651  # Loop through the user's path and test for each of PROGNAME-LIST
4652  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653for as_dir in $PATH
4654do
4655  IFS=$as_save_IFS
4656  test -z "$as_dir" && as_dir=.
4657    for ac_prog in sed gsed; do
4658    for ac_exec_ext in '' $ac_executable_extensions; do
4659      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4660      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4661# Check for GNU ac_path_SED and select it if it is found.
4662  # Check for GNU $ac_path_SED
4663case `"$ac_path_SED" --version 2>&1` in
4664*GNU*)
4665  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4666*)
4667  ac_count=0
4668  $as_echo_n 0123456789 >"conftest.in"
4669  while :
4670  do
4671    cat "conftest.in" "conftest.in" >"conftest.tmp"
4672    mv "conftest.tmp" "conftest.in"
4673    cp "conftest.in" "conftest.nl"
4674    $as_echo '' >> "conftest.nl"
4675    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4676    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4677    as_fn_arith $ac_count + 1 && ac_count=$as_val
4678    if test $ac_count -gt ${ac_path_SED_max-0}; then
4679      # Best one so far, save it but keep looking for a better one
4680      ac_cv_path_SED="$ac_path_SED"
4681      ac_path_SED_max=$ac_count
4682    fi
4683    # 10*(2^10) chars as input seems more than enough
4684    test $ac_count -gt 10 && break
4685  done
4686  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4687esac
4688
4689      $ac_path_SED_found && break 3
4690    done
4691  done
4692  done
4693IFS=$as_save_IFS
4694  if test -z "$ac_cv_path_SED"; then
4695    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4696  fi
4697else
4698  ac_cv_path_SED=$SED
4699fi
4700
4701fi
4702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4703$as_echo "$ac_cv_path_SED" >&6; }
4704 SED="$ac_cv_path_SED"
4705  rm -f conftest.sed
4706
4707
4708
4709
4710
4711
4712# Check whether --enable-selective-werror was given.
4713if test "${enable_selective_werror+set}" = set; then :
4714  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4715else
4716  SELECTIVE_WERROR=yes
4717fi
4718
4719
4720
4721
4722
4723# -v is too short to test reliably with XORG_TESTSET_CFLAG
4724if test "x$SUNCC" = "xyes"; then
4725    BASE_CFLAGS="-v"
4726else
4727    BASE_CFLAGS=""
4728fi
4729
4730# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744xorg_testset_save_CFLAGS="$CFLAGS"
4745
4746if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4747	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4748	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4749$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4750if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4751  $as_echo_n "(cached) " >&6
4752else
4753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754/* end confdefs.h.  */
4755int i;
4756_ACEOF
4757if ac_fn_c_try_compile "$LINENO"; then :
4758  xorg_cv_cc_flag_unknown_warning_option=yes
4759else
4760  xorg_cv_cc_flag_unknown_warning_option=no
4761fi
4762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4763fi
4764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4765$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4766	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4767	CFLAGS="$xorg_testset_save_CFLAGS"
4768fi
4769
4770if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4771	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4772		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4773	fi
4774	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4775	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4776$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4777if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4778  $as_echo_n "(cached) " >&6
4779else
4780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4781/* end confdefs.h.  */
4782int i;
4783_ACEOF
4784if ac_fn_c_try_compile "$LINENO"; then :
4785  xorg_cv_cc_flag_unused_command_line_argument=yes
4786else
4787  xorg_cv_cc_flag_unused_command_line_argument=no
4788fi
4789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4790fi
4791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4792$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4793	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4794	CFLAGS="$xorg_testset_save_CFLAGS"
4795fi
4796
4797found="no"
4798
4799	if test $found = "no" ; then
4800		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4801			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4802		fi
4803
4804		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4805			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4806		fi
4807
4808		CFLAGS="$CFLAGS -Wall"
4809
4810		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4811$as_echo_n "checking if $CC supports -Wall... " >&6; }
4812		cacheid=xorg_cv_cc_flag__Wall
4813		if eval \${$cacheid+:} false; then :
4814  $as_echo_n "(cached) " >&6
4815else
4816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817/* end confdefs.h.  */
4818int i;
4819int
4820main ()
4821{
4822
4823  ;
4824  return 0;
4825}
4826_ACEOF
4827if ac_fn_c_try_link "$LINENO"; then :
4828  eval $cacheid=yes
4829else
4830  eval $cacheid=no
4831fi
4832rm -f core conftest.err conftest.$ac_objext \
4833    conftest$ac_exeext conftest.$ac_ext
4834fi
4835
4836
4837		CFLAGS="$xorg_testset_save_CFLAGS"
4838
4839		eval supported=\$$cacheid
4840		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4841$as_echo "$supported" >&6; }
4842		if test "$supported" = "yes" ; then
4843			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4844			found="yes"
4845		fi
4846	fi
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862xorg_testset_save_CFLAGS="$CFLAGS"
4863
4864if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4865	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4866	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4867$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4868if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4869  $as_echo_n "(cached) " >&6
4870else
4871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872/* end confdefs.h.  */
4873int i;
4874_ACEOF
4875if ac_fn_c_try_compile "$LINENO"; then :
4876  xorg_cv_cc_flag_unknown_warning_option=yes
4877else
4878  xorg_cv_cc_flag_unknown_warning_option=no
4879fi
4880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4881fi
4882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4883$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4884	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4885	CFLAGS="$xorg_testset_save_CFLAGS"
4886fi
4887
4888if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4889	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4890		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4891	fi
4892	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4893	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4894$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4895if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4896  $as_echo_n "(cached) " >&6
4897else
4898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4899/* end confdefs.h.  */
4900int i;
4901_ACEOF
4902if ac_fn_c_try_compile "$LINENO"; then :
4903  xorg_cv_cc_flag_unused_command_line_argument=yes
4904else
4905  xorg_cv_cc_flag_unused_command_line_argument=no
4906fi
4907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908fi
4909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4910$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4911	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4912	CFLAGS="$xorg_testset_save_CFLAGS"
4913fi
4914
4915found="no"
4916
4917	if test $found = "no" ; then
4918		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4919			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4920		fi
4921
4922		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4923			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4924		fi
4925
4926		CFLAGS="$CFLAGS -Wpointer-arith"
4927
4928		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4929$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4930		cacheid=xorg_cv_cc_flag__Wpointer_arith
4931		if eval \${$cacheid+:} false; then :
4932  $as_echo_n "(cached) " >&6
4933else
4934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935/* end confdefs.h.  */
4936int i;
4937int
4938main ()
4939{
4940
4941  ;
4942  return 0;
4943}
4944_ACEOF
4945if ac_fn_c_try_link "$LINENO"; then :
4946  eval $cacheid=yes
4947else
4948  eval $cacheid=no
4949fi
4950rm -f core conftest.err conftest.$ac_objext \
4951    conftest$ac_exeext conftest.$ac_ext
4952fi
4953
4954
4955		CFLAGS="$xorg_testset_save_CFLAGS"
4956
4957		eval supported=\$$cacheid
4958		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4959$as_echo "$supported" >&6; }
4960		if test "$supported" = "yes" ; then
4961			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4962			found="yes"
4963		fi
4964	fi
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980xorg_testset_save_CFLAGS="$CFLAGS"
4981
4982if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4983	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4984	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4985$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4986if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4987  $as_echo_n "(cached) " >&6
4988else
4989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990/* end confdefs.h.  */
4991int i;
4992_ACEOF
4993if ac_fn_c_try_compile "$LINENO"; then :
4994  xorg_cv_cc_flag_unknown_warning_option=yes
4995else
4996  xorg_cv_cc_flag_unknown_warning_option=no
4997fi
4998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4999fi
5000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5001$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5002	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5003	CFLAGS="$xorg_testset_save_CFLAGS"
5004fi
5005
5006if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5007	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5008		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5009	fi
5010	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5011	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5012$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5013if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5014  $as_echo_n "(cached) " >&6
5015else
5016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017/* end confdefs.h.  */
5018int i;
5019_ACEOF
5020if ac_fn_c_try_compile "$LINENO"; then :
5021  xorg_cv_cc_flag_unused_command_line_argument=yes
5022else
5023  xorg_cv_cc_flag_unused_command_line_argument=no
5024fi
5025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5026fi
5027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5028$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5029	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5030	CFLAGS="$xorg_testset_save_CFLAGS"
5031fi
5032
5033found="no"
5034
5035	if test $found = "no" ; then
5036		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5037			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5038		fi
5039
5040		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5041			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5042		fi
5043
5044		CFLAGS="$CFLAGS -Wmissing-declarations"
5045
5046		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5047$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5048		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5049		if eval \${$cacheid+:} false; then :
5050  $as_echo_n "(cached) " >&6
5051else
5052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053/* end confdefs.h.  */
5054int i;
5055int
5056main ()
5057{
5058
5059  ;
5060  return 0;
5061}
5062_ACEOF
5063if ac_fn_c_try_link "$LINENO"; then :
5064  eval $cacheid=yes
5065else
5066  eval $cacheid=no
5067fi
5068rm -f core conftest.err conftest.$ac_objext \
5069    conftest$ac_exeext conftest.$ac_ext
5070fi
5071
5072
5073		CFLAGS="$xorg_testset_save_CFLAGS"
5074
5075		eval supported=\$$cacheid
5076		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5077$as_echo "$supported" >&6; }
5078		if test "$supported" = "yes" ; then
5079			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5080			found="yes"
5081		fi
5082	fi
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098xorg_testset_save_CFLAGS="$CFLAGS"
5099
5100if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5101	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5102	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5103$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5104if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5105  $as_echo_n "(cached) " >&6
5106else
5107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5108/* end confdefs.h.  */
5109int i;
5110_ACEOF
5111if ac_fn_c_try_compile "$LINENO"; then :
5112  xorg_cv_cc_flag_unknown_warning_option=yes
5113else
5114  xorg_cv_cc_flag_unknown_warning_option=no
5115fi
5116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5117fi
5118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5119$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5120	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5121	CFLAGS="$xorg_testset_save_CFLAGS"
5122fi
5123
5124if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5125	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5126		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5127	fi
5128	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5129	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5130$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5131if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5132  $as_echo_n "(cached) " >&6
5133else
5134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135/* end confdefs.h.  */
5136int i;
5137_ACEOF
5138if ac_fn_c_try_compile "$LINENO"; then :
5139  xorg_cv_cc_flag_unused_command_line_argument=yes
5140else
5141  xorg_cv_cc_flag_unused_command_line_argument=no
5142fi
5143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5144fi
5145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5146$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5147	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5148	CFLAGS="$xorg_testset_save_CFLAGS"
5149fi
5150
5151found="no"
5152
5153	if test $found = "no" ; then
5154		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5155			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5156		fi
5157
5158		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5159			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5160		fi
5161
5162		CFLAGS="$CFLAGS -Wformat=2"
5163
5164		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5165$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5166		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5167		if eval \${$cacheid+:} false; then :
5168  $as_echo_n "(cached) " >&6
5169else
5170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171/* end confdefs.h.  */
5172int i;
5173int
5174main ()
5175{
5176
5177  ;
5178  return 0;
5179}
5180_ACEOF
5181if ac_fn_c_try_link "$LINENO"; then :
5182  eval $cacheid=yes
5183else
5184  eval $cacheid=no
5185fi
5186rm -f core conftest.err conftest.$ac_objext \
5187    conftest$ac_exeext conftest.$ac_ext
5188fi
5189
5190
5191		CFLAGS="$xorg_testset_save_CFLAGS"
5192
5193		eval supported=\$$cacheid
5194		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5195$as_echo "$supported" >&6; }
5196		if test "$supported" = "yes" ; then
5197			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5198			found="yes"
5199		fi
5200	fi
5201
5202	if test $found = "no" ; then
5203		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5204			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5205		fi
5206
5207		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5208			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5209		fi
5210
5211		CFLAGS="$CFLAGS -Wformat"
5212
5213		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5214$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5215		cacheid=xorg_cv_cc_flag__Wformat
5216		if eval \${$cacheid+:} false; then :
5217  $as_echo_n "(cached) " >&6
5218else
5219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220/* end confdefs.h.  */
5221int i;
5222int
5223main ()
5224{
5225
5226  ;
5227  return 0;
5228}
5229_ACEOF
5230if ac_fn_c_try_link "$LINENO"; then :
5231  eval $cacheid=yes
5232else
5233  eval $cacheid=no
5234fi
5235rm -f core conftest.err conftest.$ac_objext \
5236    conftest$ac_exeext conftest.$ac_ext
5237fi
5238
5239
5240		CFLAGS="$xorg_testset_save_CFLAGS"
5241
5242		eval supported=\$$cacheid
5243		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5244$as_echo "$supported" >&6; }
5245		if test "$supported" = "yes" ; then
5246			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5247			found="yes"
5248		fi
5249	fi
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267xorg_testset_save_CFLAGS="$CFLAGS"
5268
5269if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5270	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5271	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5272$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5273if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5274  $as_echo_n "(cached) " >&6
5275else
5276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277/* end confdefs.h.  */
5278int i;
5279_ACEOF
5280if ac_fn_c_try_compile "$LINENO"; then :
5281  xorg_cv_cc_flag_unknown_warning_option=yes
5282else
5283  xorg_cv_cc_flag_unknown_warning_option=no
5284fi
5285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5286fi
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5288$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5289	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5290	CFLAGS="$xorg_testset_save_CFLAGS"
5291fi
5292
5293if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5294	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5295		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5296	fi
5297	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5298	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5299$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5300if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5301  $as_echo_n "(cached) " >&6
5302else
5303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304/* end confdefs.h.  */
5305int i;
5306_ACEOF
5307if ac_fn_c_try_compile "$LINENO"; then :
5308  xorg_cv_cc_flag_unused_command_line_argument=yes
5309else
5310  xorg_cv_cc_flag_unused_command_line_argument=no
5311fi
5312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5313fi
5314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5315$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5316	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5317	CFLAGS="$xorg_testset_save_CFLAGS"
5318fi
5319
5320found="no"
5321
5322	if test $found = "no" ; then
5323		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5324			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5325		fi
5326
5327		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5328			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5329		fi
5330
5331		CFLAGS="$CFLAGS -Wstrict-prototypes"
5332
5333		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5334$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5335		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5336		if eval \${$cacheid+:} false; then :
5337  $as_echo_n "(cached) " >&6
5338else
5339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340/* end confdefs.h.  */
5341int i;
5342int
5343main ()
5344{
5345
5346  ;
5347  return 0;
5348}
5349_ACEOF
5350if ac_fn_c_try_link "$LINENO"; then :
5351  eval $cacheid=yes
5352else
5353  eval $cacheid=no
5354fi
5355rm -f core conftest.err conftest.$ac_objext \
5356    conftest$ac_exeext conftest.$ac_ext
5357fi
5358
5359
5360		CFLAGS="$xorg_testset_save_CFLAGS"
5361
5362		eval supported=\$$cacheid
5363		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5364$as_echo "$supported" >&6; }
5365		if test "$supported" = "yes" ; then
5366			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5367			found="yes"
5368		fi
5369	fi
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385xorg_testset_save_CFLAGS="$CFLAGS"
5386
5387if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5388	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5389	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5390$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5391if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5392  $as_echo_n "(cached) " >&6
5393else
5394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395/* end confdefs.h.  */
5396int i;
5397_ACEOF
5398if ac_fn_c_try_compile "$LINENO"; then :
5399  xorg_cv_cc_flag_unknown_warning_option=yes
5400else
5401  xorg_cv_cc_flag_unknown_warning_option=no
5402fi
5403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5404fi
5405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5406$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5407	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5408	CFLAGS="$xorg_testset_save_CFLAGS"
5409fi
5410
5411if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5412	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5413		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5414	fi
5415	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5416	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5417$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5418if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5419  $as_echo_n "(cached) " >&6
5420else
5421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5422/* end confdefs.h.  */
5423int i;
5424_ACEOF
5425if ac_fn_c_try_compile "$LINENO"; then :
5426  xorg_cv_cc_flag_unused_command_line_argument=yes
5427else
5428  xorg_cv_cc_flag_unused_command_line_argument=no
5429fi
5430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5431fi
5432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5433$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5434	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5435	CFLAGS="$xorg_testset_save_CFLAGS"
5436fi
5437
5438found="no"
5439
5440	if test $found = "no" ; then
5441		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5442			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5443		fi
5444
5445		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5446			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5447		fi
5448
5449		CFLAGS="$CFLAGS -Wmissing-prototypes"
5450
5451		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5452$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5453		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5454		if eval \${$cacheid+:} false; then :
5455  $as_echo_n "(cached) " >&6
5456else
5457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458/* end confdefs.h.  */
5459int i;
5460int
5461main ()
5462{
5463
5464  ;
5465  return 0;
5466}
5467_ACEOF
5468if ac_fn_c_try_link "$LINENO"; then :
5469  eval $cacheid=yes
5470else
5471  eval $cacheid=no
5472fi
5473rm -f core conftest.err conftest.$ac_objext \
5474    conftest$ac_exeext conftest.$ac_ext
5475fi
5476
5477
5478		CFLAGS="$xorg_testset_save_CFLAGS"
5479
5480		eval supported=\$$cacheid
5481		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5482$as_echo "$supported" >&6; }
5483		if test "$supported" = "yes" ; then
5484			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5485			found="yes"
5486		fi
5487	fi
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503xorg_testset_save_CFLAGS="$CFLAGS"
5504
5505if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5506	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5507	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5508$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5509if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5510  $as_echo_n "(cached) " >&6
5511else
5512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513/* end confdefs.h.  */
5514int i;
5515_ACEOF
5516if ac_fn_c_try_compile "$LINENO"; then :
5517  xorg_cv_cc_flag_unknown_warning_option=yes
5518else
5519  xorg_cv_cc_flag_unknown_warning_option=no
5520fi
5521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5522fi
5523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5524$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5525	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5526	CFLAGS="$xorg_testset_save_CFLAGS"
5527fi
5528
5529if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5530	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5531		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5532	fi
5533	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5534	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5535$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5536if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5537  $as_echo_n "(cached) " >&6
5538else
5539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540/* end confdefs.h.  */
5541int i;
5542_ACEOF
5543if ac_fn_c_try_compile "$LINENO"; then :
5544  xorg_cv_cc_flag_unused_command_line_argument=yes
5545else
5546  xorg_cv_cc_flag_unused_command_line_argument=no
5547fi
5548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5549fi
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5551$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5552	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5553	CFLAGS="$xorg_testset_save_CFLAGS"
5554fi
5555
5556found="no"
5557
5558	if test $found = "no" ; then
5559		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5560			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5561		fi
5562
5563		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5564			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5565		fi
5566
5567		CFLAGS="$CFLAGS -Wnested-externs"
5568
5569		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5570$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5571		cacheid=xorg_cv_cc_flag__Wnested_externs
5572		if eval \${$cacheid+:} false; then :
5573  $as_echo_n "(cached) " >&6
5574else
5575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576/* end confdefs.h.  */
5577int i;
5578int
5579main ()
5580{
5581
5582  ;
5583  return 0;
5584}
5585_ACEOF
5586if ac_fn_c_try_link "$LINENO"; then :
5587  eval $cacheid=yes
5588else
5589  eval $cacheid=no
5590fi
5591rm -f core conftest.err conftest.$ac_objext \
5592    conftest$ac_exeext conftest.$ac_ext
5593fi
5594
5595
5596		CFLAGS="$xorg_testset_save_CFLAGS"
5597
5598		eval supported=\$$cacheid
5599		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5600$as_echo "$supported" >&6; }
5601		if test "$supported" = "yes" ; then
5602			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5603			found="yes"
5604		fi
5605	fi
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621xorg_testset_save_CFLAGS="$CFLAGS"
5622
5623if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5624	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5625	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5626$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5627if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5628  $as_echo_n "(cached) " >&6
5629else
5630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631/* end confdefs.h.  */
5632int i;
5633_ACEOF
5634if ac_fn_c_try_compile "$LINENO"; then :
5635  xorg_cv_cc_flag_unknown_warning_option=yes
5636else
5637  xorg_cv_cc_flag_unknown_warning_option=no
5638fi
5639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5640fi
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5642$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5643	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5644	CFLAGS="$xorg_testset_save_CFLAGS"
5645fi
5646
5647if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5648	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5649		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5650	fi
5651	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5652	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5653$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5654if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5655  $as_echo_n "(cached) " >&6
5656else
5657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658/* end confdefs.h.  */
5659int i;
5660_ACEOF
5661if ac_fn_c_try_compile "$LINENO"; then :
5662  xorg_cv_cc_flag_unused_command_line_argument=yes
5663else
5664  xorg_cv_cc_flag_unused_command_line_argument=no
5665fi
5666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5667fi
5668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5669$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5670	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5671	CFLAGS="$xorg_testset_save_CFLAGS"
5672fi
5673
5674found="no"
5675
5676	if test $found = "no" ; then
5677		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5678			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5679		fi
5680
5681		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5682			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5683		fi
5684
5685		CFLAGS="$CFLAGS -Wbad-function-cast"
5686
5687		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5688$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5689		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5690		if eval \${$cacheid+:} false; then :
5691  $as_echo_n "(cached) " >&6
5692else
5693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694/* end confdefs.h.  */
5695int i;
5696int
5697main ()
5698{
5699
5700  ;
5701  return 0;
5702}
5703_ACEOF
5704if ac_fn_c_try_link "$LINENO"; then :
5705  eval $cacheid=yes
5706else
5707  eval $cacheid=no
5708fi
5709rm -f core conftest.err conftest.$ac_objext \
5710    conftest$ac_exeext conftest.$ac_ext
5711fi
5712
5713
5714		CFLAGS="$xorg_testset_save_CFLAGS"
5715
5716		eval supported=\$$cacheid
5717		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5718$as_echo "$supported" >&6; }
5719		if test "$supported" = "yes" ; then
5720			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5721			found="yes"
5722		fi
5723	fi
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739xorg_testset_save_CFLAGS="$CFLAGS"
5740
5741if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5742	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5743	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5744$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5745if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5746  $as_echo_n "(cached) " >&6
5747else
5748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749/* end confdefs.h.  */
5750int i;
5751_ACEOF
5752if ac_fn_c_try_compile "$LINENO"; then :
5753  xorg_cv_cc_flag_unknown_warning_option=yes
5754else
5755  xorg_cv_cc_flag_unknown_warning_option=no
5756fi
5757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5758fi
5759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5760$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5761	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5762	CFLAGS="$xorg_testset_save_CFLAGS"
5763fi
5764
5765if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5766	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5767		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5768	fi
5769	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5770	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5771$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5772if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5773  $as_echo_n "(cached) " >&6
5774else
5775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776/* end confdefs.h.  */
5777int i;
5778_ACEOF
5779if ac_fn_c_try_compile "$LINENO"; then :
5780  xorg_cv_cc_flag_unused_command_line_argument=yes
5781else
5782  xorg_cv_cc_flag_unused_command_line_argument=no
5783fi
5784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5785fi
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5787$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5788	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5789	CFLAGS="$xorg_testset_save_CFLAGS"
5790fi
5791
5792found="no"
5793
5794	if test $found = "no" ; then
5795		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5796			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5797		fi
5798
5799		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5800			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5801		fi
5802
5803		CFLAGS="$CFLAGS -Wold-style-definition"
5804
5805		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5806$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5807		cacheid=xorg_cv_cc_flag__Wold_style_definition
5808		if eval \${$cacheid+:} false; then :
5809  $as_echo_n "(cached) " >&6
5810else
5811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5812/* end confdefs.h.  */
5813int i;
5814int
5815main ()
5816{
5817
5818  ;
5819  return 0;
5820}
5821_ACEOF
5822if ac_fn_c_try_link "$LINENO"; then :
5823  eval $cacheid=yes
5824else
5825  eval $cacheid=no
5826fi
5827rm -f core conftest.err conftest.$ac_objext \
5828    conftest$ac_exeext conftest.$ac_ext
5829fi
5830
5831
5832		CFLAGS="$xorg_testset_save_CFLAGS"
5833
5834		eval supported=\$$cacheid
5835		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5836$as_echo "$supported" >&6; }
5837		if test "$supported" = "yes" ; then
5838			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5839			found="yes"
5840		fi
5841	fi
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857xorg_testset_save_CFLAGS="$CFLAGS"
5858
5859if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5860	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5861	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5862$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5863if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5864  $as_echo_n "(cached) " >&6
5865else
5866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5867/* end confdefs.h.  */
5868int i;
5869_ACEOF
5870if ac_fn_c_try_compile "$LINENO"; then :
5871  xorg_cv_cc_flag_unknown_warning_option=yes
5872else
5873  xorg_cv_cc_flag_unknown_warning_option=no
5874fi
5875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5876fi
5877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5878$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5879	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5880	CFLAGS="$xorg_testset_save_CFLAGS"
5881fi
5882
5883if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5884	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5885		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5886	fi
5887	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5888	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5889$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5890if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5891  $as_echo_n "(cached) " >&6
5892else
5893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5894/* end confdefs.h.  */
5895int i;
5896_ACEOF
5897if ac_fn_c_try_compile "$LINENO"; then :
5898  xorg_cv_cc_flag_unused_command_line_argument=yes
5899else
5900  xorg_cv_cc_flag_unused_command_line_argument=no
5901fi
5902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5903fi
5904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5905$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5906	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5907	CFLAGS="$xorg_testset_save_CFLAGS"
5908fi
5909
5910found="no"
5911
5912	if test $found = "no" ; then
5913		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5914			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5915		fi
5916
5917		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5918			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5919		fi
5920
5921		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5922
5923		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5924$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5925		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5926		if eval \${$cacheid+:} false; then :
5927  $as_echo_n "(cached) " >&6
5928else
5929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930/* end confdefs.h.  */
5931int i;
5932int
5933main ()
5934{
5935
5936  ;
5937  return 0;
5938}
5939_ACEOF
5940if ac_fn_c_try_link "$LINENO"; then :
5941  eval $cacheid=yes
5942else
5943  eval $cacheid=no
5944fi
5945rm -f core conftest.err conftest.$ac_objext \
5946    conftest$ac_exeext conftest.$ac_ext
5947fi
5948
5949
5950		CFLAGS="$xorg_testset_save_CFLAGS"
5951
5952		eval supported=\$$cacheid
5953		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5954$as_echo "$supported" >&6; }
5955		if test "$supported" = "yes" ; then
5956			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5957			found="yes"
5958		fi
5959	fi
5960
5961
5962
5963
5964
5965# This chunk adds additional warnings that could catch undesired effects.
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979xorg_testset_save_CFLAGS="$CFLAGS"
5980
5981if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5982	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5983	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5984$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5985if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5986  $as_echo_n "(cached) " >&6
5987else
5988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5989/* end confdefs.h.  */
5990int i;
5991_ACEOF
5992if ac_fn_c_try_compile "$LINENO"; then :
5993  xorg_cv_cc_flag_unknown_warning_option=yes
5994else
5995  xorg_cv_cc_flag_unknown_warning_option=no
5996fi
5997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5998fi
5999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6000$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6001	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6002	CFLAGS="$xorg_testset_save_CFLAGS"
6003fi
6004
6005if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6006	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6007		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6008	fi
6009	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6010	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6011$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6012if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6013  $as_echo_n "(cached) " >&6
6014else
6015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6016/* end confdefs.h.  */
6017int i;
6018_ACEOF
6019if ac_fn_c_try_compile "$LINENO"; then :
6020  xorg_cv_cc_flag_unused_command_line_argument=yes
6021else
6022  xorg_cv_cc_flag_unused_command_line_argument=no
6023fi
6024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6025fi
6026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6027$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6028	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6029	CFLAGS="$xorg_testset_save_CFLAGS"
6030fi
6031
6032found="no"
6033
6034	if test $found = "no" ; then
6035		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6036			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6037		fi
6038
6039		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6040			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6041		fi
6042
6043		CFLAGS="$CFLAGS -Wunused"
6044
6045		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6046$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6047		cacheid=xorg_cv_cc_flag__Wunused
6048		if eval \${$cacheid+:} false; then :
6049  $as_echo_n "(cached) " >&6
6050else
6051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6052/* end confdefs.h.  */
6053int i;
6054int
6055main ()
6056{
6057
6058  ;
6059  return 0;
6060}
6061_ACEOF
6062if ac_fn_c_try_link "$LINENO"; then :
6063  eval $cacheid=yes
6064else
6065  eval $cacheid=no
6066fi
6067rm -f core conftest.err conftest.$ac_objext \
6068    conftest$ac_exeext conftest.$ac_ext
6069fi
6070
6071
6072		CFLAGS="$xorg_testset_save_CFLAGS"
6073
6074		eval supported=\$$cacheid
6075		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6076$as_echo "$supported" >&6; }
6077		if test "$supported" = "yes" ; then
6078			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6079			found="yes"
6080		fi
6081	fi
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097xorg_testset_save_CFLAGS="$CFLAGS"
6098
6099if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6100	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6101	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6102$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6103if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6104  $as_echo_n "(cached) " >&6
6105else
6106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6107/* end confdefs.h.  */
6108int i;
6109_ACEOF
6110if ac_fn_c_try_compile "$LINENO"; then :
6111  xorg_cv_cc_flag_unknown_warning_option=yes
6112else
6113  xorg_cv_cc_flag_unknown_warning_option=no
6114fi
6115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6116fi
6117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6118$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6119	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6120	CFLAGS="$xorg_testset_save_CFLAGS"
6121fi
6122
6123if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6124	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6125		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6126	fi
6127	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6128	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6129$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6130if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6131  $as_echo_n "(cached) " >&6
6132else
6133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134/* end confdefs.h.  */
6135int i;
6136_ACEOF
6137if ac_fn_c_try_compile "$LINENO"; then :
6138  xorg_cv_cc_flag_unused_command_line_argument=yes
6139else
6140  xorg_cv_cc_flag_unused_command_line_argument=no
6141fi
6142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6143fi
6144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6145$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6146	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6147	CFLAGS="$xorg_testset_save_CFLAGS"
6148fi
6149
6150found="no"
6151
6152	if test $found = "no" ; then
6153		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6154			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6155		fi
6156
6157		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6158			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6159		fi
6160
6161		CFLAGS="$CFLAGS -Wuninitialized"
6162
6163		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6164$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6165		cacheid=xorg_cv_cc_flag__Wuninitialized
6166		if eval \${$cacheid+:} false; then :
6167  $as_echo_n "(cached) " >&6
6168else
6169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6170/* end confdefs.h.  */
6171int i;
6172int
6173main ()
6174{
6175
6176  ;
6177  return 0;
6178}
6179_ACEOF
6180if ac_fn_c_try_link "$LINENO"; then :
6181  eval $cacheid=yes
6182else
6183  eval $cacheid=no
6184fi
6185rm -f core conftest.err conftest.$ac_objext \
6186    conftest$ac_exeext conftest.$ac_ext
6187fi
6188
6189
6190		CFLAGS="$xorg_testset_save_CFLAGS"
6191
6192		eval supported=\$$cacheid
6193		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6194$as_echo "$supported" >&6; }
6195		if test "$supported" = "yes" ; then
6196			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6197			found="yes"
6198		fi
6199	fi
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215xorg_testset_save_CFLAGS="$CFLAGS"
6216
6217if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6218	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6219	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6220$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6221if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6222  $as_echo_n "(cached) " >&6
6223else
6224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225/* end confdefs.h.  */
6226int i;
6227_ACEOF
6228if ac_fn_c_try_compile "$LINENO"; then :
6229  xorg_cv_cc_flag_unknown_warning_option=yes
6230else
6231  xorg_cv_cc_flag_unknown_warning_option=no
6232fi
6233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6234fi
6235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6236$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6237	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6238	CFLAGS="$xorg_testset_save_CFLAGS"
6239fi
6240
6241if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6242	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6243		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6244	fi
6245	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6246	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6247$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6248if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6249  $as_echo_n "(cached) " >&6
6250else
6251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6252/* end confdefs.h.  */
6253int i;
6254_ACEOF
6255if ac_fn_c_try_compile "$LINENO"; then :
6256  xorg_cv_cc_flag_unused_command_line_argument=yes
6257else
6258  xorg_cv_cc_flag_unused_command_line_argument=no
6259fi
6260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6261fi
6262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6263$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6264	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6265	CFLAGS="$xorg_testset_save_CFLAGS"
6266fi
6267
6268found="no"
6269
6270	if test $found = "no" ; then
6271		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6272			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6273		fi
6274
6275		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6276			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6277		fi
6278
6279		CFLAGS="$CFLAGS -Wshadow"
6280
6281		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6282$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6283		cacheid=xorg_cv_cc_flag__Wshadow
6284		if eval \${$cacheid+:} false; then :
6285  $as_echo_n "(cached) " >&6
6286else
6287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6288/* end confdefs.h.  */
6289int i;
6290int
6291main ()
6292{
6293
6294  ;
6295  return 0;
6296}
6297_ACEOF
6298if ac_fn_c_try_link "$LINENO"; then :
6299  eval $cacheid=yes
6300else
6301  eval $cacheid=no
6302fi
6303rm -f core conftest.err conftest.$ac_objext \
6304    conftest$ac_exeext conftest.$ac_ext
6305fi
6306
6307
6308		CFLAGS="$xorg_testset_save_CFLAGS"
6309
6310		eval supported=\$$cacheid
6311		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6312$as_echo "$supported" >&6; }
6313		if test "$supported" = "yes" ; then
6314			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6315			found="yes"
6316		fi
6317	fi
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333xorg_testset_save_CFLAGS="$CFLAGS"
6334
6335if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6336	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6337	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6338$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6339if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6340  $as_echo_n "(cached) " >&6
6341else
6342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343/* end confdefs.h.  */
6344int i;
6345_ACEOF
6346if ac_fn_c_try_compile "$LINENO"; then :
6347  xorg_cv_cc_flag_unknown_warning_option=yes
6348else
6349  xorg_cv_cc_flag_unknown_warning_option=no
6350fi
6351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6352fi
6353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6354$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6355	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6356	CFLAGS="$xorg_testset_save_CFLAGS"
6357fi
6358
6359if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6360	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6361		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6362	fi
6363	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6364	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6365$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6366if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6367  $as_echo_n "(cached) " >&6
6368else
6369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6370/* end confdefs.h.  */
6371int i;
6372_ACEOF
6373if ac_fn_c_try_compile "$LINENO"; then :
6374  xorg_cv_cc_flag_unused_command_line_argument=yes
6375else
6376  xorg_cv_cc_flag_unused_command_line_argument=no
6377fi
6378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6379fi
6380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6381$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6382	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6383	CFLAGS="$xorg_testset_save_CFLAGS"
6384fi
6385
6386found="no"
6387
6388	if test $found = "no" ; then
6389		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6390			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6391		fi
6392
6393		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6394			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6395		fi
6396
6397		CFLAGS="$CFLAGS -Wcast-qual"
6398
6399		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6400$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6401		cacheid=xorg_cv_cc_flag__Wcast_qual
6402		if eval \${$cacheid+:} false; then :
6403  $as_echo_n "(cached) " >&6
6404else
6405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6406/* end confdefs.h.  */
6407int i;
6408int
6409main ()
6410{
6411
6412  ;
6413  return 0;
6414}
6415_ACEOF
6416if ac_fn_c_try_link "$LINENO"; then :
6417  eval $cacheid=yes
6418else
6419  eval $cacheid=no
6420fi
6421rm -f core conftest.err conftest.$ac_objext \
6422    conftest$ac_exeext conftest.$ac_ext
6423fi
6424
6425
6426		CFLAGS="$xorg_testset_save_CFLAGS"
6427
6428		eval supported=\$$cacheid
6429		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6430$as_echo "$supported" >&6; }
6431		if test "$supported" = "yes" ; then
6432			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6433			found="yes"
6434		fi
6435	fi
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451xorg_testset_save_CFLAGS="$CFLAGS"
6452
6453if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6454	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6455	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6456$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6457if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6458  $as_echo_n "(cached) " >&6
6459else
6460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461/* end confdefs.h.  */
6462int i;
6463_ACEOF
6464if ac_fn_c_try_compile "$LINENO"; then :
6465  xorg_cv_cc_flag_unknown_warning_option=yes
6466else
6467  xorg_cv_cc_flag_unknown_warning_option=no
6468fi
6469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6470fi
6471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6472$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6473	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6474	CFLAGS="$xorg_testset_save_CFLAGS"
6475fi
6476
6477if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6478	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6479		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6480	fi
6481	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6482	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6483$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6484if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6485  $as_echo_n "(cached) " >&6
6486else
6487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488/* end confdefs.h.  */
6489int i;
6490_ACEOF
6491if ac_fn_c_try_compile "$LINENO"; then :
6492  xorg_cv_cc_flag_unused_command_line_argument=yes
6493else
6494  xorg_cv_cc_flag_unused_command_line_argument=no
6495fi
6496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6497fi
6498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6499$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6500	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6501	CFLAGS="$xorg_testset_save_CFLAGS"
6502fi
6503
6504found="no"
6505
6506	if test $found = "no" ; then
6507		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6508			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6509		fi
6510
6511		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6512			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6513		fi
6514
6515		CFLAGS="$CFLAGS -Wmissing-noreturn"
6516
6517		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6518$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6519		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6520		if eval \${$cacheid+:} false; then :
6521  $as_echo_n "(cached) " >&6
6522else
6523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524/* end confdefs.h.  */
6525int i;
6526int
6527main ()
6528{
6529
6530  ;
6531  return 0;
6532}
6533_ACEOF
6534if ac_fn_c_try_link "$LINENO"; then :
6535  eval $cacheid=yes
6536else
6537  eval $cacheid=no
6538fi
6539rm -f core conftest.err conftest.$ac_objext \
6540    conftest$ac_exeext conftest.$ac_ext
6541fi
6542
6543
6544		CFLAGS="$xorg_testset_save_CFLAGS"
6545
6546		eval supported=\$$cacheid
6547		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6548$as_echo "$supported" >&6; }
6549		if test "$supported" = "yes" ; then
6550			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6551			found="yes"
6552		fi
6553	fi
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569xorg_testset_save_CFLAGS="$CFLAGS"
6570
6571if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6572	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6573	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6574$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6575if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6576  $as_echo_n "(cached) " >&6
6577else
6578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579/* end confdefs.h.  */
6580int i;
6581_ACEOF
6582if ac_fn_c_try_compile "$LINENO"; then :
6583  xorg_cv_cc_flag_unknown_warning_option=yes
6584else
6585  xorg_cv_cc_flag_unknown_warning_option=no
6586fi
6587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6588fi
6589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6590$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6591	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6592	CFLAGS="$xorg_testset_save_CFLAGS"
6593fi
6594
6595if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6596	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6597		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6598	fi
6599	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6600	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6601$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6602if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6603  $as_echo_n "(cached) " >&6
6604else
6605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6606/* end confdefs.h.  */
6607int i;
6608_ACEOF
6609if ac_fn_c_try_compile "$LINENO"; then :
6610  xorg_cv_cc_flag_unused_command_line_argument=yes
6611else
6612  xorg_cv_cc_flag_unused_command_line_argument=no
6613fi
6614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6615fi
6616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6617$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6618	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6619	CFLAGS="$xorg_testset_save_CFLAGS"
6620fi
6621
6622found="no"
6623
6624	if test $found = "no" ; then
6625		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6626			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6627		fi
6628
6629		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6630			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6631		fi
6632
6633		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6634
6635		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6636$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6637		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6638		if eval \${$cacheid+:} false; then :
6639  $as_echo_n "(cached) " >&6
6640else
6641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6642/* end confdefs.h.  */
6643int i;
6644int
6645main ()
6646{
6647
6648  ;
6649  return 0;
6650}
6651_ACEOF
6652if ac_fn_c_try_link "$LINENO"; then :
6653  eval $cacheid=yes
6654else
6655  eval $cacheid=no
6656fi
6657rm -f core conftest.err conftest.$ac_objext \
6658    conftest$ac_exeext conftest.$ac_ext
6659fi
6660
6661
6662		CFLAGS="$xorg_testset_save_CFLAGS"
6663
6664		eval supported=\$$cacheid
6665		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6666$as_echo "$supported" >&6; }
6667		if test "$supported" = "yes" ; then
6668			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6669			found="yes"
6670		fi
6671	fi
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687xorg_testset_save_CFLAGS="$CFLAGS"
6688
6689if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6690	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6691	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6692$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6693if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6694  $as_echo_n "(cached) " >&6
6695else
6696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697/* end confdefs.h.  */
6698int i;
6699_ACEOF
6700if ac_fn_c_try_compile "$LINENO"; then :
6701  xorg_cv_cc_flag_unknown_warning_option=yes
6702else
6703  xorg_cv_cc_flag_unknown_warning_option=no
6704fi
6705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6706fi
6707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6708$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6709	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6710	CFLAGS="$xorg_testset_save_CFLAGS"
6711fi
6712
6713if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6714	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6715		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6716	fi
6717	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6718	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6719$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6720if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6721  $as_echo_n "(cached) " >&6
6722else
6723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724/* end confdefs.h.  */
6725int i;
6726_ACEOF
6727if ac_fn_c_try_compile "$LINENO"; then :
6728  xorg_cv_cc_flag_unused_command_line_argument=yes
6729else
6730  xorg_cv_cc_flag_unused_command_line_argument=no
6731fi
6732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6733fi
6734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6735$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6736	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6737	CFLAGS="$xorg_testset_save_CFLAGS"
6738fi
6739
6740found="no"
6741
6742	if test $found = "no" ; then
6743		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6744			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6745		fi
6746
6747		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6748			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6749		fi
6750
6751		CFLAGS="$CFLAGS -Wredundant-decls"
6752
6753		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6754$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6755		cacheid=xorg_cv_cc_flag__Wredundant_decls
6756		if eval \${$cacheid+:} false; then :
6757  $as_echo_n "(cached) " >&6
6758else
6759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760/* end confdefs.h.  */
6761int i;
6762int
6763main ()
6764{
6765
6766  ;
6767  return 0;
6768}
6769_ACEOF
6770if ac_fn_c_try_link "$LINENO"; then :
6771  eval $cacheid=yes
6772else
6773  eval $cacheid=no
6774fi
6775rm -f core conftest.err conftest.$ac_objext \
6776    conftest$ac_exeext conftest.$ac_ext
6777fi
6778
6779
6780		CFLAGS="$xorg_testset_save_CFLAGS"
6781
6782		eval supported=\$$cacheid
6783		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6784$as_echo "$supported" >&6; }
6785		if test "$supported" = "yes" ; then
6786			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6787			found="yes"
6788		fi
6789	fi
6790
6791
6792
6793# These are currently disabled because they are noisy.  They will be enabled
6794# in the future once the codebase is sufficiently modernized to silence
6795# them.  For now, I don't want them to drown out the other warnings.
6796# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6797# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6798# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6799
6800# Turn some warnings into errors, so we don't accidently get successful builds
6801# when there are problems that should be fixed.
6802
6803if test "x$SELECTIVE_WERROR" = "xyes" ; then
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817xorg_testset_save_CFLAGS="$CFLAGS"
6818
6819if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6820	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6821	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6822$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6823if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6824  $as_echo_n "(cached) " >&6
6825else
6826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827/* end confdefs.h.  */
6828int i;
6829_ACEOF
6830if ac_fn_c_try_compile "$LINENO"; then :
6831  xorg_cv_cc_flag_unknown_warning_option=yes
6832else
6833  xorg_cv_cc_flag_unknown_warning_option=no
6834fi
6835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6836fi
6837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6838$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6839	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6840	CFLAGS="$xorg_testset_save_CFLAGS"
6841fi
6842
6843if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6844	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6845		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6846	fi
6847	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6848	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6849$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6850if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6851  $as_echo_n "(cached) " >&6
6852else
6853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6854/* end confdefs.h.  */
6855int i;
6856_ACEOF
6857if ac_fn_c_try_compile "$LINENO"; then :
6858  xorg_cv_cc_flag_unused_command_line_argument=yes
6859else
6860  xorg_cv_cc_flag_unused_command_line_argument=no
6861fi
6862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6863fi
6864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6865$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6866	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6867	CFLAGS="$xorg_testset_save_CFLAGS"
6868fi
6869
6870found="no"
6871
6872	if test $found = "no" ; then
6873		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6874			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6875		fi
6876
6877		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6878			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6879		fi
6880
6881		CFLAGS="$CFLAGS -Werror=implicit"
6882
6883		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6884$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6885		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6886		if eval \${$cacheid+:} false; then :
6887  $as_echo_n "(cached) " >&6
6888else
6889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890/* end confdefs.h.  */
6891int i;
6892int
6893main ()
6894{
6895
6896  ;
6897  return 0;
6898}
6899_ACEOF
6900if ac_fn_c_try_link "$LINENO"; then :
6901  eval $cacheid=yes
6902else
6903  eval $cacheid=no
6904fi
6905rm -f core conftest.err conftest.$ac_objext \
6906    conftest$ac_exeext conftest.$ac_ext
6907fi
6908
6909
6910		CFLAGS="$xorg_testset_save_CFLAGS"
6911
6912		eval supported=\$$cacheid
6913		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6914$as_echo "$supported" >&6; }
6915		if test "$supported" = "yes" ; then
6916			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6917			found="yes"
6918		fi
6919	fi
6920
6921	if test $found = "no" ; then
6922		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6923			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6924		fi
6925
6926		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6927			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6928		fi
6929
6930		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6931
6932		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6933$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6934		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6935		if eval \${$cacheid+:} false; then :
6936  $as_echo_n "(cached) " >&6
6937else
6938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939/* end confdefs.h.  */
6940int i;
6941int
6942main ()
6943{
6944
6945  ;
6946  return 0;
6947}
6948_ACEOF
6949if ac_fn_c_try_link "$LINENO"; then :
6950  eval $cacheid=yes
6951else
6952  eval $cacheid=no
6953fi
6954rm -f core conftest.err conftest.$ac_objext \
6955    conftest$ac_exeext conftest.$ac_ext
6956fi
6957
6958
6959		CFLAGS="$xorg_testset_save_CFLAGS"
6960
6961		eval supported=\$$cacheid
6962		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6963$as_echo "$supported" >&6; }
6964		if test "$supported" = "yes" ; then
6965			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6966			found="yes"
6967		fi
6968	fi
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984xorg_testset_save_CFLAGS="$CFLAGS"
6985
6986if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6987	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6988	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6989$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6990if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6991  $as_echo_n "(cached) " >&6
6992else
6993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994/* end confdefs.h.  */
6995int i;
6996_ACEOF
6997if ac_fn_c_try_compile "$LINENO"; then :
6998  xorg_cv_cc_flag_unknown_warning_option=yes
6999else
7000  xorg_cv_cc_flag_unknown_warning_option=no
7001fi
7002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7003fi
7004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7005$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7006	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7007	CFLAGS="$xorg_testset_save_CFLAGS"
7008fi
7009
7010if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7011	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7012		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7013	fi
7014	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7015	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7016$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7017if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7018  $as_echo_n "(cached) " >&6
7019else
7020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7021/* end confdefs.h.  */
7022int i;
7023_ACEOF
7024if ac_fn_c_try_compile "$LINENO"; then :
7025  xorg_cv_cc_flag_unused_command_line_argument=yes
7026else
7027  xorg_cv_cc_flag_unused_command_line_argument=no
7028fi
7029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7030fi
7031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7032$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7033	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7034	CFLAGS="$xorg_testset_save_CFLAGS"
7035fi
7036
7037found="no"
7038
7039	if test $found = "no" ; then
7040		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7041			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7042		fi
7043
7044		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7045			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7046		fi
7047
7048		CFLAGS="$CFLAGS -Werror=nonnull"
7049
7050		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7051$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7052		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7053		if eval \${$cacheid+:} false; then :
7054  $as_echo_n "(cached) " >&6
7055else
7056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057/* end confdefs.h.  */
7058int i;
7059int
7060main ()
7061{
7062
7063  ;
7064  return 0;
7065}
7066_ACEOF
7067if ac_fn_c_try_link "$LINENO"; then :
7068  eval $cacheid=yes
7069else
7070  eval $cacheid=no
7071fi
7072rm -f core conftest.err conftest.$ac_objext \
7073    conftest$ac_exeext conftest.$ac_ext
7074fi
7075
7076
7077		CFLAGS="$xorg_testset_save_CFLAGS"
7078
7079		eval supported=\$$cacheid
7080		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7081$as_echo "$supported" >&6; }
7082		if test "$supported" = "yes" ; then
7083			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7084			found="yes"
7085		fi
7086	fi
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102xorg_testset_save_CFLAGS="$CFLAGS"
7103
7104if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7105	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7106	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7107$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7108if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7109  $as_echo_n "(cached) " >&6
7110else
7111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112/* end confdefs.h.  */
7113int i;
7114_ACEOF
7115if ac_fn_c_try_compile "$LINENO"; then :
7116  xorg_cv_cc_flag_unknown_warning_option=yes
7117else
7118  xorg_cv_cc_flag_unknown_warning_option=no
7119fi
7120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7121fi
7122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7123$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7124	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7125	CFLAGS="$xorg_testset_save_CFLAGS"
7126fi
7127
7128if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7129	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7130		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7131	fi
7132	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7133	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7134$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7135if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7136  $as_echo_n "(cached) " >&6
7137else
7138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7139/* end confdefs.h.  */
7140int i;
7141_ACEOF
7142if ac_fn_c_try_compile "$LINENO"; then :
7143  xorg_cv_cc_flag_unused_command_line_argument=yes
7144else
7145  xorg_cv_cc_flag_unused_command_line_argument=no
7146fi
7147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7148fi
7149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7150$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7151	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7152	CFLAGS="$xorg_testset_save_CFLAGS"
7153fi
7154
7155found="no"
7156
7157	if test $found = "no" ; then
7158		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7159			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7160		fi
7161
7162		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7163			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7164		fi
7165
7166		CFLAGS="$CFLAGS -Werror=init-self"
7167
7168		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7169$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7170		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7171		if eval \${$cacheid+:} false; then :
7172  $as_echo_n "(cached) " >&6
7173else
7174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175/* end confdefs.h.  */
7176int i;
7177int
7178main ()
7179{
7180
7181  ;
7182  return 0;
7183}
7184_ACEOF
7185if ac_fn_c_try_link "$LINENO"; then :
7186  eval $cacheid=yes
7187else
7188  eval $cacheid=no
7189fi
7190rm -f core conftest.err conftest.$ac_objext \
7191    conftest$ac_exeext conftest.$ac_ext
7192fi
7193
7194
7195		CFLAGS="$xorg_testset_save_CFLAGS"
7196
7197		eval supported=\$$cacheid
7198		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7199$as_echo "$supported" >&6; }
7200		if test "$supported" = "yes" ; then
7201			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7202			found="yes"
7203		fi
7204	fi
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220xorg_testset_save_CFLAGS="$CFLAGS"
7221
7222if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7223	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7224	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7225$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7226if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7227  $as_echo_n "(cached) " >&6
7228else
7229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7230/* end confdefs.h.  */
7231int i;
7232_ACEOF
7233if ac_fn_c_try_compile "$LINENO"; then :
7234  xorg_cv_cc_flag_unknown_warning_option=yes
7235else
7236  xorg_cv_cc_flag_unknown_warning_option=no
7237fi
7238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7239fi
7240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7241$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7242	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7243	CFLAGS="$xorg_testset_save_CFLAGS"
7244fi
7245
7246if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7247	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7248		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7249	fi
7250	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7251	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7252$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7253if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7254  $as_echo_n "(cached) " >&6
7255else
7256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7257/* end confdefs.h.  */
7258int i;
7259_ACEOF
7260if ac_fn_c_try_compile "$LINENO"; then :
7261  xorg_cv_cc_flag_unused_command_line_argument=yes
7262else
7263  xorg_cv_cc_flag_unused_command_line_argument=no
7264fi
7265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7266fi
7267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7268$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7269	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7270	CFLAGS="$xorg_testset_save_CFLAGS"
7271fi
7272
7273found="no"
7274
7275	if test $found = "no" ; then
7276		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7277			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7278		fi
7279
7280		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7281			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7282		fi
7283
7284		CFLAGS="$CFLAGS -Werror=main"
7285
7286		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7287$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7288		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7289		if eval \${$cacheid+:} false; then :
7290  $as_echo_n "(cached) " >&6
7291else
7292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293/* end confdefs.h.  */
7294int i;
7295int
7296main ()
7297{
7298
7299  ;
7300  return 0;
7301}
7302_ACEOF
7303if ac_fn_c_try_link "$LINENO"; then :
7304  eval $cacheid=yes
7305else
7306  eval $cacheid=no
7307fi
7308rm -f core conftest.err conftest.$ac_objext \
7309    conftest$ac_exeext conftest.$ac_ext
7310fi
7311
7312
7313		CFLAGS="$xorg_testset_save_CFLAGS"
7314
7315		eval supported=\$$cacheid
7316		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7317$as_echo "$supported" >&6; }
7318		if test "$supported" = "yes" ; then
7319			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7320			found="yes"
7321		fi
7322	fi
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338xorg_testset_save_CFLAGS="$CFLAGS"
7339
7340if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7341	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7342	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7343$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7344if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7345  $as_echo_n "(cached) " >&6
7346else
7347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348/* end confdefs.h.  */
7349int i;
7350_ACEOF
7351if ac_fn_c_try_compile "$LINENO"; then :
7352  xorg_cv_cc_flag_unknown_warning_option=yes
7353else
7354  xorg_cv_cc_flag_unknown_warning_option=no
7355fi
7356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357fi
7358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7359$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7360	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7361	CFLAGS="$xorg_testset_save_CFLAGS"
7362fi
7363
7364if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7365	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7366		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7367	fi
7368	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7369	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7370$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7371if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7372  $as_echo_n "(cached) " >&6
7373else
7374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7375/* end confdefs.h.  */
7376int i;
7377_ACEOF
7378if ac_fn_c_try_compile "$LINENO"; then :
7379  xorg_cv_cc_flag_unused_command_line_argument=yes
7380else
7381  xorg_cv_cc_flag_unused_command_line_argument=no
7382fi
7383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7384fi
7385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7386$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7387	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7388	CFLAGS="$xorg_testset_save_CFLAGS"
7389fi
7390
7391found="no"
7392
7393	if test $found = "no" ; then
7394		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7395			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7396		fi
7397
7398		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7399			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7400		fi
7401
7402		CFLAGS="$CFLAGS -Werror=missing-braces"
7403
7404		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7405$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7406		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7407		if eval \${$cacheid+:} false; then :
7408  $as_echo_n "(cached) " >&6
7409else
7410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411/* end confdefs.h.  */
7412int i;
7413int
7414main ()
7415{
7416
7417  ;
7418  return 0;
7419}
7420_ACEOF
7421if ac_fn_c_try_link "$LINENO"; then :
7422  eval $cacheid=yes
7423else
7424  eval $cacheid=no
7425fi
7426rm -f core conftest.err conftest.$ac_objext \
7427    conftest$ac_exeext conftest.$ac_ext
7428fi
7429
7430
7431		CFLAGS="$xorg_testset_save_CFLAGS"
7432
7433		eval supported=\$$cacheid
7434		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7435$as_echo "$supported" >&6; }
7436		if test "$supported" = "yes" ; then
7437			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7438			found="yes"
7439		fi
7440	fi
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456xorg_testset_save_CFLAGS="$CFLAGS"
7457
7458if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7459	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7460	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7461$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7462if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7463  $as_echo_n "(cached) " >&6
7464else
7465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7466/* end confdefs.h.  */
7467int i;
7468_ACEOF
7469if ac_fn_c_try_compile "$LINENO"; then :
7470  xorg_cv_cc_flag_unknown_warning_option=yes
7471else
7472  xorg_cv_cc_flag_unknown_warning_option=no
7473fi
7474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7475fi
7476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7477$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7478	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7479	CFLAGS="$xorg_testset_save_CFLAGS"
7480fi
7481
7482if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7483	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7484		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7485	fi
7486	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7487	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7488$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7489if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7490  $as_echo_n "(cached) " >&6
7491else
7492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7493/* end confdefs.h.  */
7494int i;
7495_ACEOF
7496if ac_fn_c_try_compile "$LINENO"; then :
7497  xorg_cv_cc_flag_unused_command_line_argument=yes
7498else
7499  xorg_cv_cc_flag_unused_command_line_argument=no
7500fi
7501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7502fi
7503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7504$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7505	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7506	CFLAGS="$xorg_testset_save_CFLAGS"
7507fi
7508
7509found="no"
7510
7511	if test $found = "no" ; then
7512		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7513			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7514		fi
7515
7516		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7517			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7518		fi
7519
7520		CFLAGS="$CFLAGS -Werror=sequence-point"
7521
7522		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7523$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7524		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7525		if eval \${$cacheid+:} false; then :
7526  $as_echo_n "(cached) " >&6
7527else
7528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7529/* end confdefs.h.  */
7530int i;
7531int
7532main ()
7533{
7534
7535  ;
7536  return 0;
7537}
7538_ACEOF
7539if ac_fn_c_try_link "$LINENO"; then :
7540  eval $cacheid=yes
7541else
7542  eval $cacheid=no
7543fi
7544rm -f core conftest.err conftest.$ac_objext \
7545    conftest$ac_exeext conftest.$ac_ext
7546fi
7547
7548
7549		CFLAGS="$xorg_testset_save_CFLAGS"
7550
7551		eval supported=\$$cacheid
7552		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7553$as_echo "$supported" >&6; }
7554		if test "$supported" = "yes" ; then
7555			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7556			found="yes"
7557		fi
7558	fi
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574xorg_testset_save_CFLAGS="$CFLAGS"
7575
7576if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7577	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7578	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7579$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7580if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7581  $as_echo_n "(cached) " >&6
7582else
7583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584/* end confdefs.h.  */
7585int i;
7586_ACEOF
7587if ac_fn_c_try_compile "$LINENO"; then :
7588  xorg_cv_cc_flag_unknown_warning_option=yes
7589else
7590  xorg_cv_cc_flag_unknown_warning_option=no
7591fi
7592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7593fi
7594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7595$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7596	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7597	CFLAGS="$xorg_testset_save_CFLAGS"
7598fi
7599
7600if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7601	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7602		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7603	fi
7604	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7605	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7606$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7607if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7608  $as_echo_n "(cached) " >&6
7609else
7610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7611/* end confdefs.h.  */
7612int i;
7613_ACEOF
7614if ac_fn_c_try_compile "$LINENO"; then :
7615  xorg_cv_cc_flag_unused_command_line_argument=yes
7616else
7617  xorg_cv_cc_flag_unused_command_line_argument=no
7618fi
7619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7620fi
7621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7622$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7623	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7624	CFLAGS="$xorg_testset_save_CFLAGS"
7625fi
7626
7627found="no"
7628
7629	if test $found = "no" ; then
7630		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7631			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7632		fi
7633
7634		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7635			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7636		fi
7637
7638		CFLAGS="$CFLAGS -Werror=return-type"
7639
7640		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7641$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7642		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7643		if eval \${$cacheid+:} false; then :
7644  $as_echo_n "(cached) " >&6
7645else
7646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647/* end confdefs.h.  */
7648int i;
7649int
7650main ()
7651{
7652
7653  ;
7654  return 0;
7655}
7656_ACEOF
7657if ac_fn_c_try_link "$LINENO"; then :
7658  eval $cacheid=yes
7659else
7660  eval $cacheid=no
7661fi
7662rm -f core conftest.err conftest.$ac_objext \
7663    conftest$ac_exeext conftest.$ac_ext
7664fi
7665
7666
7667		CFLAGS="$xorg_testset_save_CFLAGS"
7668
7669		eval supported=\$$cacheid
7670		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7671$as_echo "$supported" >&6; }
7672		if test "$supported" = "yes" ; then
7673			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7674			found="yes"
7675		fi
7676	fi
7677
7678	if test $found = "no" ; then
7679		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7680			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7681		fi
7682
7683		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7684			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7685		fi
7686
7687		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7688
7689		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7690$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7691		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7692		if eval \${$cacheid+:} false; then :
7693  $as_echo_n "(cached) " >&6
7694else
7695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696/* end confdefs.h.  */
7697int i;
7698int
7699main ()
7700{
7701
7702  ;
7703  return 0;
7704}
7705_ACEOF
7706if ac_fn_c_try_link "$LINENO"; then :
7707  eval $cacheid=yes
7708else
7709  eval $cacheid=no
7710fi
7711rm -f core conftest.err conftest.$ac_objext \
7712    conftest$ac_exeext conftest.$ac_ext
7713fi
7714
7715
7716		CFLAGS="$xorg_testset_save_CFLAGS"
7717
7718		eval supported=\$$cacheid
7719		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7720$as_echo "$supported" >&6; }
7721		if test "$supported" = "yes" ; then
7722			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7723			found="yes"
7724		fi
7725	fi
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741xorg_testset_save_CFLAGS="$CFLAGS"
7742
7743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7744	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7745	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7746$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7747if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7748  $as_echo_n "(cached) " >&6
7749else
7750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751/* end confdefs.h.  */
7752int i;
7753_ACEOF
7754if ac_fn_c_try_compile "$LINENO"; then :
7755  xorg_cv_cc_flag_unknown_warning_option=yes
7756else
7757  xorg_cv_cc_flag_unknown_warning_option=no
7758fi
7759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7760fi
7761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7762$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7763	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7764	CFLAGS="$xorg_testset_save_CFLAGS"
7765fi
7766
7767if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7768	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7769		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7770	fi
7771	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7772	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7773$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7774if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7775  $as_echo_n "(cached) " >&6
7776else
7777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778/* end confdefs.h.  */
7779int i;
7780_ACEOF
7781if ac_fn_c_try_compile "$LINENO"; then :
7782  xorg_cv_cc_flag_unused_command_line_argument=yes
7783else
7784  xorg_cv_cc_flag_unused_command_line_argument=no
7785fi
7786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7787fi
7788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7789$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7790	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7791	CFLAGS="$xorg_testset_save_CFLAGS"
7792fi
7793
7794found="no"
7795
7796	if test $found = "no" ; then
7797		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7798			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7799		fi
7800
7801		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7802			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7803		fi
7804
7805		CFLAGS="$CFLAGS -Werror=trigraphs"
7806
7807		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7808$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7809		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7810		if eval \${$cacheid+:} false; then :
7811  $as_echo_n "(cached) " >&6
7812else
7813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814/* end confdefs.h.  */
7815int i;
7816int
7817main ()
7818{
7819
7820  ;
7821  return 0;
7822}
7823_ACEOF
7824if ac_fn_c_try_link "$LINENO"; then :
7825  eval $cacheid=yes
7826else
7827  eval $cacheid=no
7828fi
7829rm -f core conftest.err conftest.$ac_objext \
7830    conftest$ac_exeext conftest.$ac_ext
7831fi
7832
7833
7834		CFLAGS="$xorg_testset_save_CFLAGS"
7835
7836		eval supported=\$$cacheid
7837		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7838$as_echo "$supported" >&6; }
7839		if test "$supported" = "yes" ; then
7840			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7841			found="yes"
7842		fi
7843	fi
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859xorg_testset_save_CFLAGS="$CFLAGS"
7860
7861if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7862	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7863	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7864$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7865if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7866  $as_echo_n "(cached) " >&6
7867else
7868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7869/* end confdefs.h.  */
7870int i;
7871_ACEOF
7872if ac_fn_c_try_compile "$LINENO"; then :
7873  xorg_cv_cc_flag_unknown_warning_option=yes
7874else
7875  xorg_cv_cc_flag_unknown_warning_option=no
7876fi
7877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7878fi
7879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7880$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7881	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7882	CFLAGS="$xorg_testset_save_CFLAGS"
7883fi
7884
7885if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7886	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7887		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7888	fi
7889	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7890	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7891$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7892if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7893  $as_echo_n "(cached) " >&6
7894else
7895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896/* end confdefs.h.  */
7897int i;
7898_ACEOF
7899if ac_fn_c_try_compile "$LINENO"; then :
7900  xorg_cv_cc_flag_unused_command_line_argument=yes
7901else
7902  xorg_cv_cc_flag_unused_command_line_argument=no
7903fi
7904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7905fi
7906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7907$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7908	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7909	CFLAGS="$xorg_testset_save_CFLAGS"
7910fi
7911
7912found="no"
7913
7914	if test $found = "no" ; then
7915		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7916			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7917		fi
7918
7919		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7920			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7921		fi
7922
7923		CFLAGS="$CFLAGS -Werror=array-bounds"
7924
7925		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7926$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7927		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7928		if eval \${$cacheid+:} false; then :
7929  $as_echo_n "(cached) " >&6
7930else
7931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932/* end confdefs.h.  */
7933int i;
7934int
7935main ()
7936{
7937
7938  ;
7939  return 0;
7940}
7941_ACEOF
7942if ac_fn_c_try_link "$LINENO"; then :
7943  eval $cacheid=yes
7944else
7945  eval $cacheid=no
7946fi
7947rm -f core conftest.err conftest.$ac_objext \
7948    conftest$ac_exeext conftest.$ac_ext
7949fi
7950
7951
7952		CFLAGS="$xorg_testset_save_CFLAGS"
7953
7954		eval supported=\$$cacheid
7955		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7956$as_echo "$supported" >&6; }
7957		if test "$supported" = "yes" ; then
7958			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7959			found="yes"
7960		fi
7961	fi
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977xorg_testset_save_CFLAGS="$CFLAGS"
7978
7979if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7980	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7981	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7982$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7983if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7984  $as_echo_n "(cached) " >&6
7985else
7986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987/* end confdefs.h.  */
7988int i;
7989_ACEOF
7990if ac_fn_c_try_compile "$LINENO"; then :
7991  xorg_cv_cc_flag_unknown_warning_option=yes
7992else
7993  xorg_cv_cc_flag_unknown_warning_option=no
7994fi
7995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7996fi
7997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7998$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7999	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8000	CFLAGS="$xorg_testset_save_CFLAGS"
8001fi
8002
8003if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8004	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8005		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8006	fi
8007	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8008	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8009$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8010if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8011  $as_echo_n "(cached) " >&6
8012else
8013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014/* end confdefs.h.  */
8015int i;
8016_ACEOF
8017if ac_fn_c_try_compile "$LINENO"; then :
8018  xorg_cv_cc_flag_unused_command_line_argument=yes
8019else
8020  xorg_cv_cc_flag_unused_command_line_argument=no
8021fi
8022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8023fi
8024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8025$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8026	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8027	CFLAGS="$xorg_testset_save_CFLAGS"
8028fi
8029
8030found="no"
8031
8032	if test $found = "no" ; then
8033		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8034			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8035		fi
8036
8037		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8038			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8039		fi
8040
8041		CFLAGS="$CFLAGS -Werror=write-strings"
8042
8043		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8044$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8045		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8046		if eval \${$cacheid+:} false; then :
8047  $as_echo_n "(cached) " >&6
8048else
8049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050/* end confdefs.h.  */
8051int i;
8052int
8053main ()
8054{
8055
8056  ;
8057  return 0;
8058}
8059_ACEOF
8060if ac_fn_c_try_link "$LINENO"; then :
8061  eval $cacheid=yes
8062else
8063  eval $cacheid=no
8064fi
8065rm -f core conftest.err conftest.$ac_objext \
8066    conftest$ac_exeext conftest.$ac_ext
8067fi
8068
8069
8070		CFLAGS="$xorg_testset_save_CFLAGS"
8071
8072		eval supported=\$$cacheid
8073		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8074$as_echo "$supported" >&6; }
8075		if test "$supported" = "yes" ; then
8076			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8077			found="yes"
8078		fi
8079	fi
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095xorg_testset_save_CFLAGS="$CFLAGS"
8096
8097if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8098	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8099	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8100$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8101if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8102  $as_echo_n "(cached) " >&6
8103else
8104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8105/* end confdefs.h.  */
8106int i;
8107_ACEOF
8108if ac_fn_c_try_compile "$LINENO"; then :
8109  xorg_cv_cc_flag_unknown_warning_option=yes
8110else
8111  xorg_cv_cc_flag_unknown_warning_option=no
8112fi
8113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114fi
8115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8116$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8117	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8118	CFLAGS="$xorg_testset_save_CFLAGS"
8119fi
8120
8121if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8122	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8123		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8124	fi
8125	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8126	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8127$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8128if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8129  $as_echo_n "(cached) " >&6
8130else
8131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8132/* end confdefs.h.  */
8133int i;
8134_ACEOF
8135if ac_fn_c_try_compile "$LINENO"; then :
8136  xorg_cv_cc_flag_unused_command_line_argument=yes
8137else
8138  xorg_cv_cc_flag_unused_command_line_argument=no
8139fi
8140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8141fi
8142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8143$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8144	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8145	CFLAGS="$xorg_testset_save_CFLAGS"
8146fi
8147
8148found="no"
8149
8150	if test $found = "no" ; then
8151		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8152			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8153		fi
8154
8155		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8156			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8157		fi
8158
8159		CFLAGS="$CFLAGS -Werror=address"
8160
8161		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8162$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8163		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8164		if eval \${$cacheid+:} false; then :
8165  $as_echo_n "(cached) " >&6
8166else
8167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8168/* end confdefs.h.  */
8169int i;
8170int
8171main ()
8172{
8173
8174  ;
8175  return 0;
8176}
8177_ACEOF
8178if ac_fn_c_try_link "$LINENO"; then :
8179  eval $cacheid=yes
8180else
8181  eval $cacheid=no
8182fi
8183rm -f core conftest.err conftest.$ac_objext \
8184    conftest$ac_exeext conftest.$ac_ext
8185fi
8186
8187
8188		CFLAGS="$xorg_testset_save_CFLAGS"
8189
8190		eval supported=\$$cacheid
8191		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8192$as_echo "$supported" >&6; }
8193		if test "$supported" = "yes" ; then
8194			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8195			found="yes"
8196		fi
8197	fi
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213xorg_testset_save_CFLAGS="$CFLAGS"
8214
8215if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8216	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8217	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8218$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8219if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8220  $as_echo_n "(cached) " >&6
8221else
8222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8223/* end confdefs.h.  */
8224int i;
8225_ACEOF
8226if ac_fn_c_try_compile "$LINENO"; then :
8227  xorg_cv_cc_flag_unknown_warning_option=yes
8228else
8229  xorg_cv_cc_flag_unknown_warning_option=no
8230fi
8231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8232fi
8233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8234$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8235	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8236	CFLAGS="$xorg_testset_save_CFLAGS"
8237fi
8238
8239if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8240	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8241		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8242	fi
8243	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8244	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8245$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8246if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8247  $as_echo_n "(cached) " >&6
8248else
8249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8250/* end confdefs.h.  */
8251int i;
8252_ACEOF
8253if ac_fn_c_try_compile "$LINENO"; then :
8254  xorg_cv_cc_flag_unused_command_line_argument=yes
8255else
8256  xorg_cv_cc_flag_unused_command_line_argument=no
8257fi
8258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8259fi
8260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8261$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8262	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8263	CFLAGS="$xorg_testset_save_CFLAGS"
8264fi
8265
8266found="no"
8267
8268	if test $found = "no" ; then
8269		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8270			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8271		fi
8272
8273		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8274			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8275		fi
8276
8277		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8278
8279		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8280$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8281		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8282		if eval \${$cacheid+:} false; then :
8283  $as_echo_n "(cached) " >&6
8284else
8285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8286/* end confdefs.h.  */
8287int i;
8288int
8289main ()
8290{
8291
8292  ;
8293  return 0;
8294}
8295_ACEOF
8296if ac_fn_c_try_link "$LINENO"; then :
8297  eval $cacheid=yes
8298else
8299  eval $cacheid=no
8300fi
8301rm -f core conftest.err conftest.$ac_objext \
8302    conftest$ac_exeext conftest.$ac_ext
8303fi
8304
8305
8306		CFLAGS="$xorg_testset_save_CFLAGS"
8307
8308		eval supported=\$$cacheid
8309		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8310$as_echo "$supported" >&6; }
8311		if test "$supported" = "yes" ; then
8312			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8313			found="yes"
8314		fi
8315	fi
8316
8317	if test $found = "no" ; then
8318		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8319			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8320		fi
8321
8322		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8323			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8324		fi
8325
8326		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8327
8328		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8329$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8330		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8331		if eval \${$cacheid+:} false; then :
8332  $as_echo_n "(cached) " >&6
8333else
8334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335/* end confdefs.h.  */
8336int i;
8337int
8338main ()
8339{
8340
8341  ;
8342  return 0;
8343}
8344_ACEOF
8345if ac_fn_c_try_link "$LINENO"; then :
8346  eval $cacheid=yes
8347else
8348  eval $cacheid=no
8349fi
8350rm -f core conftest.err conftest.$ac_objext \
8351    conftest$ac_exeext conftest.$ac_ext
8352fi
8353
8354
8355		CFLAGS="$xorg_testset_save_CFLAGS"
8356
8357		eval supported=\$$cacheid
8358		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8359$as_echo "$supported" >&6; }
8360		if test "$supported" = "yes" ; then
8361			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8362			found="yes"
8363		fi
8364	fi
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380xorg_testset_save_CFLAGS="$CFLAGS"
8381
8382if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8383	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8384	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8385$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8386if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8387  $as_echo_n "(cached) " >&6
8388else
8389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8390/* end confdefs.h.  */
8391int i;
8392_ACEOF
8393if ac_fn_c_try_compile "$LINENO"; then :
8394  xorg_cv_cc_flag_unknown_warning_option=yes
8395else
8396  xorg_cv_cc_flag_unknown_warning_option=no
8397fi
8398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8399fi
8400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8401$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8402	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8403	CFLAGS="$xorg_testset_save_CFLAGS"
8404fi
8405
8406if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8407	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8408		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8409	fi
8410	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8411	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8412$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8413if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8414  $as_echo_n "(cached) " >&6
8415else
8416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8417/* end confdefs.h.  */
8418int i;
8419_ACEOF
8420if ac_fn_c_try_compile "$LINENO"; then :
8421  xorg_cv_cc_flag_unused_command_line_argument=yes
8422else
8423  xorg_cv_cc_flag_unused_command_line_argument=no
8424fi
8425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8426fi
8427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8428$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8429	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8430	CFLAGS="$xorg_testset_save_CFLAGS"
8431fi
8432
8433found="no"
8434
8435	if test $found = "no" ; then
8436		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8437			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8438		fi
8439
8440		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8441			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8442		fi
8443
8444		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8445
8446		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8447$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8448		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8449		if eval \${$cacheid+:} false; then :
8450  $as_echo_n "(cached) " >&6
8451else
8452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453/* end confdefs.h.  */
8454int i;
8455int
8456main ()
8457{
8458
8459  ;
8460  return 0;
8461}
8462_ACEOF
8463if ac_fn_c_try_link "$LINENO"; then :
8464  eval $cacheid=yes
8465else
8466  eval $cacheid=no
8467fi
8468rm -f core conftest.err conftest.$ac_objext \
8469    conftest$ac_exeext conftest.$ac_ext
8470fi
8471
8472
8473		CFLAGS="$xorg_testset_save_CFLAGS"
8474
8475		eval supported=\$$cacheid
8476		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8477$as_echo "$supported" >&6; }
8478		if test "$supported" = "yes" ; then
8479			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8480			found="yes"
8481		fi
8482	fi
8483
8484 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8485else
8486{ $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
8487$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;}
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501xorg_testset_save_CFLAGS="$CFLAGS"
8502
8503if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8504	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8505	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8506$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8507if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8508  $as_echo_n "(cached) " >&6
8509else
8510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511/* end confdefs.h.  */
8512int i;
8513_ACEOF
8514if ac_fn_c_try_compile "$LINENO"; then :
8515  xorg_cv_cc_flag_unknown_warning_option=yes
8516else
8517  xorg_cv_cc_flag_unknown_warning_option=no
8518fi
8519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8520fi
8521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8522$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8523	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8524	CFLAGS="$xorg_testset_save_CFLAGS"
8525fi
8526
8527if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8528	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8529		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8530	fi
8531	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8532	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8533$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8534if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8535  $as_echo_n "(cached) " >&6
8536else
8537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538/* end confdefs.h.  */
8539int i;
8540_ACEOF
8541if ac_fn_c_try_compile "$LINENO"; then :
8542  xorg_cv_cc_flag_unused_command_line_argument=yes
8543else
8544  xorg_cv_cc_flag_unused_command_line_argument=no
8545fi
8546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8547fi
8548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8549$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8550	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8551	CFLAGS="$xorg_testset_save_CFLAGS"
8552fi
8553
8554found="no"
8555
8556	if test $found = "no" ; then
8557		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8558			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8559		fi
8560
8561		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8562			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8563		fi
8564
8565		CFLAGS="$CFLAGS -Wimplicit"
8566
8567		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8568$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8569		cacheid=xorg_cv_cc_flag__Wimplicit
8570		if eval \${$cacheid+:} false; then :
8571  $as_echo_n "(cached) " >&6
8572else
8573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8574/* end confdefs.h.  */
8575int i;
8576int
8577main ()
8578{
8579
8580  ;
8581  return 0;
8582}
8583_ACEOF
8584if ac_fn_c_try_link "$LINENO"; then :
8585  eval $cacheid=yes
8586else
8587  eval $cacheid=no
8588fi
8589rm -f core conftest.err conftest.$ac_objext \
8590    conftest$ac_exeext conftest.$ac_ext
8591fi
8592
8593
8594		CFLAGS="$xorg_testset_save_CFLAGS"
8595
8596		eval supported=\$$cacheid
8597		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8598$as_echo "$supported" >&6; }
8599		if test "$supported" = "yes" ; then
8600			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8601			found="yes"
8602		fi
8603	fi
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619xorg_testset_save_CFLAGS="$CFLAGS"
8620
8621if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8622	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8623	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8624$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8625if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8626  $as_echo_n "(cached) " >&6
8627else
8628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8629/* end confdefs.h.  */
8630int i;
8631_ACEOF
8632if ac_fn_c_try_compile "$LINENO"; then :
8633  xorg_cv_cc_flag_unknown_warning_option=yes
8634else
8635  xorg_cv_cc_flag_unknown_warning_option=no
8636fi
8637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8638fi
8639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8640$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8641	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8642	CFLAGS="$xorg_testset_save_CFLAGS"
8643fi
8644
8645if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8646	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8647		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8648	fi
8649	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8650	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8651$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8652if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8653  $as_echo_n "(cached) " >&6
8654else
8655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656/* end confdefs.h.  */
8657int i;
8658_ACEOF
8659if ac_fn_c_try_compile "$LINENO"; then :
8660  xorg_cv_cc_flag_unused_command_line_argument=yes
8661else
8662  xorg_cv_cc_flag_unused_command_line_argument=no
8663fi
8664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8665fi
8666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8667$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8668	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8669	CFLAGS="$xorg_testset_save_CFLAGS"
8670fi
8671
8672found="no"
8673
8674	if test $found = "no" ; then
8675		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8676			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8677		fi
8678
8679		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8680			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8681		fi
8682
8683		CFLAGS="$CFLAGS -Wnonnull"
8684
8685		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8686$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8687		cacheid=xorg_cv_cc_flag__Wnonnull
8688		if eval \${$cacheid+:} false; then :
8689  $as_echo_n "(cached) " >&6
8690else
8691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8692/* end confdefs.h.  */
8693int i;
8694int
8695main ()
8696{
8697
8698  ;
8699  return 0;
8700}
8701_ACEOF
8702if ac_fn_c_try_link "$LINENO"; then :
8703  eval $cacheid=yes
8704else
8705  eval $cacheid=no
8706fi
8707rm -f core conftest.err conftest.$ac_objext \
8708    conftest$ac_exeext conftest.$ac_ext
8709fi
8710
8711
8712		CFLAGS="$xorg_testset_save_CFLAGS"
8713
8714		eval supported=\$$cacheid
8715		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8716$as_echo "$supported" >&6; }
8717		if test "$supported" = "yes" ; then
8718			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8719			found="yes"
8720		fi
8721	fi
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737xorg_testset_save_CFLAGS="$CFLAGS"
8738
8739if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8740	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8741	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8742$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8743if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8744  $as_echo_n "(cached) " >&6
8745else
8746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8747/* end confdefs.h.  */
8748int i;
8749_ACEOF
8750if ac_fn_c_try_compile "$LINENO"; then :
8751  xorg_cv_cc_flag_unknown_warning_option=yes
8752else
8753  xorg_cv_cc_flag_unknown_warning_option=no
8754fi
8755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8756fi
8757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8758$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8759	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8760	CFLAGS="$xorg_testset_save_CFLAGS"
8761fi
8762
8763if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8764	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8765		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8766	fi
8767	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8768	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8769$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8770if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8771  $as_echo_n "(cached) " >&6
8772else
8773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8774/* end confdefs.h.  */
8775int i;
8776_ACEOF
8777if ac_fn_c_try_compile "$LINENO"; then :
8778  xorg_cv_cc_flag_unused_command_line_argument=yes
8779else
8780  xorg_cv_cc_flag_unused_command_line_argument=no
8781fi
8782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8783fi
8784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8785$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8786	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8787	CFLAGS="$xorg_testset_save_CFLAGS"
8788fi
8789
8790found="no"
8791
8792	if test $found = "no" ; then
8793		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8794			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8795		fi
8796
8797		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8798			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8799		fi
8800
8801		CFLAGS="$CFLAGS -Winit-self"
8802
8803		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8804$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8805		cacheid=xorg_cv_cc_flag__Winit_self
8806		if eval \${$cacheid+:} false; then :
8807  $as_echo_n "(cached) " >&6
8808else
8809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8810/* end confdefs.h.  */
8811int i;
8812int
8813main ()
8814{
8815
8816  ;
8817  return 0;
8818}
8819_ACEOF
8820if ac_fn_c_try_link "$LINENO"; then :
8821  eval $cacheid=yes
8822else
8823  eval $cacheid=no
8824fi
8825rm -f core conftest.err conftest.$ac_objext \
8826    conftest$ac_exeext conftest.$ac_ext
8827fi
8828
8829
8830		CFLAGS="$xorg_testset_save_CFLAGS"
8831
8832		eval supported=\$$cacheid
8833		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8834$as_echo "$supported" >&6; }
8835		if test "$supported" = "yes" ; then
8836			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8837			found="yes"
8838		fi
8839	fi
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855xorg_testset_save_CFLAGS="$CFLAGS"
8856
8857if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8858	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8859	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8860$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8861if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8862  $as_echo_n "(cached) " >&6
8863else
8864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8865/* end confdefs.h.  */
8866int i;
8867_ACEOF
8868if ac_fn_c_try_compile "$LINENO"; then :
8869  xorg_cv_cc_flag_unknown_warning_option=yes
8870else
8871  xorg_cv_cc_flag_unknown_warning_option=no
8872fi
8873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8874fi
8875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8876$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8877	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8878	CFLAGS="$xorg_testset_save_CFLAGS"
8879fi
8880
8881if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8882	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8883		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8884	fi
8885	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8886	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8887$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8888if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8889  $as_echo_n "(cached) " >&6
8890else
8891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8892/* end confdefs.h.  */
8893int i;
8894_ACEOF
8895if ac_fn_c_try_compile "$LINENO"; then :
8896  xorg_cv_cc_flag_unused_command_line_argument=yes
8897else
8898  xorg_cv_cc_flag_unused_command_line_argument=no
8899fi
8900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8901fi
8902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8903$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8904	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8905	CFLAGS="$xorg_testset_save_CFLAGS"
8906fi
8907
8908found="no"
8909
8910	if test $found = "no" ; then
8911		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8912			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8913		fi
8914
8915		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8916			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8917		fi
8918
8919		CFLAGS="$CFLAGS -Wmain"
8920
8921		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8922$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8923		cacheid=xorg_cv_cc_flag__Wmain
8924		if eval \${$cacheid+:} false; then :
8925  $as_echo_n "(cached) " >&6
8926else
8927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8928/* end confdefs.h.  */
8929int i;
8930int
8931main ()
8932{
8933
8934  ;
8935  return 0;
8936}
8937_ACEOF
8938if ac_fn_c_try_link "$LINENO"; then :
8939  eval $cacheid=yes
8940else
8941  eval $cacheid=no
8942fi
8943rm -f core conftest.err conftest.$ac_objext \
8944    conftest$ac_exeext conftest.$ac_ext
8945fi
8946
8947
8948		CFLAGS="$xorg_testset_save_CFLAGS"
8949
8950		eval supported=\$$cacheid
8951		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8952$as_echo "$supported" >&6; }
8953		if test "$supported" = "yes" ; then
8954			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8955			found="yes"
8956		fi
8957	fi
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973xorg_testset_save_CFLAGS="$CFLAGS"
8974
8975if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8976	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8977	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8978$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8979if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8980  $as_echo_n "(cached) " >&6
8981else
8982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8983/* end confdefs.h.  */
8984int i;
8985_ACEOF
8986if ac_fn_c_try_compile "$LINENO"; then :
8987  xorg_cv_cc_flag_unknown_warning_option=yes
8988else
8989  xorg_cv_cc_flag_unknown_warning_option=no
8990fi
8991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8992fi
8993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8994$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8995	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8996	CFLAGS="$xorg_testset_save_CFLAGS"
8997fi
8998
8999if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9000	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9001		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9002	fi
9003	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9004	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9005$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9006if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9007  $as_echo_n "(cached) " >&6
9008else
9009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9010/* end confdefs.h.  */
9011int i;
9012_ACEOF
9013if ac_fn_c_try_compile "$LINENO"; then :
9014  xorg_cv_cc_flag_unused_command_line_argument=yes
9015else
9016  xorg_cv_cc_flag_unused_command_line_argument=no
9017fi
9018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9019fi
9020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9021$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9022	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9023	CFLAGS="$xorg_testset_save_CFLAGS"
9024fi
9025
9026found="no"
9027
9028	if test $found = "no" ; then
9029		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9030			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9031		fi
9032
9033		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9034			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9035		fi
9036
9037		CFLAGS="$CFLAGS -Wmissing-braces"
9038
9039		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9040$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9041		cacheid=xorg_cv_cc_flag__Wmissing_braces
9042		if eval \${$cacheid+:} false; then :
9043  $as_echo_n "(cached) " >&6
9044else
9045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9046/* end confdefs.h.  */
9047int i;
9048int
9049main ()
9050{
9051
9052  ;
9053  return 0;
9054}
9055_ACEOF
9056if ac_fn_c_try_link "$LINENO"; then :
9057  eval $cacheid=yes
9058else
9059  eval $cacheid=no
9060fi
9061rm -f core conftest.err conftest.$ac_objext \
9062    conftest$ac_exeext conftest.$ac_ext
9063fi
9064
9065
9066		CFLAGS="$xorg_testset_save_CFLAGS"
9067
9068		eval supported=\$$cacheid
9069		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9070$as_echo "$supported" >&6; }
9071		if test "$supported" = "yes" ; then
9072			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9073			found="yes"
9074		fi
9075	fi
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091xorg_testset_save_CFLAGS="$CFLAGS"
9092
9093if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9094	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9095	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9096$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9097if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9098  $as_echo_n "(cached) " >&6
9099else
9100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9101/* end confdefs.h.  */
9102int i;
9103_ACEOF
9104if ac_fn_c_try_compile "$LINENO"; then :
9105  xorg_cv_cc_flag_unknown_warning_option=yes
9106else
9107  xorg_cv_cc_flag_unknown_warning_option=no
9108fi
9109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9110fi
9111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9112$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9113	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9114	CFLAGS="$xorg_testset_save_CFLAGS"
9115fi
9116
9117if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9118	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9119		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9120	fi
9121	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9122	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9123$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9124if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9125  $as_echo_n "(cached) " >&6
9126else
9127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9128/* end confdefs.h.  */
9129int i;
9130_ACEOF
9131if ac_fn_c_try_compile "$LINENO"; then :
9132  xorg_cv_cc_flag_unused_command_line_argument=yes
9133else
9134  xorg_cv_cc_flag_unused_command_line_argument=no
9135fi
9136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9137fi
9138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9139$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9140	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9141	CFLAGS="$xorg_testset_save_CFLAGS"
9142fi
9143
9144found="no"
9145
9146	if test $found = "no" ; then
9147		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9148			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9149		fi
9150
9151		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9152			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9153		fi
9154
9155		CFLAGS="$CFLAGS -Wsequence-point"
9156
9157		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9158$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9159		cacheid=xorg_cv_cc_flag__Wsequence_point
9160		if eval \${$cacheid+:} false; then :
9161  $as_echo_n "(cached) " >&6
9162else
9163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9164/* end confdefs.h.  */
9165int i;
9166int
9167main ()
9168{
9169
9170  ;
9171  return 0;
9172}
9173_ACEOF
9174if ac_fn_c_try_link "$LINENO"; then :
9175  eval $cacheid=yes
9176else
9177  eval $cacheid=no
9178fi
9179rm -f core conftest.err conftest.$ac_objext \
9180    conftest$ac_exeext conftest.$ac_ext
9181fi
9182
9183
9184		CFLAGS="$xorg_testset_save_CFLAGS"
9185
9186		eval supported=\$$cacheid
9187		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9188$as_echo "$supported" >&6; }
9189		if test "$supported" = "yes" ; then
9190			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9191			found="yes"
9192		fi
9193	fi
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209xorg_testset_save_CFLAGS="$CFLAGS"
9210
9211if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9212	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9213	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9214$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9215if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9216  $as_echo_n "(cached) " >&6
9217else
9218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9219/* end confdefs.h.  */
9220int i;
9221_ACEOF
9222if ac_fn_c_try_compile "$LINENO"; then :
9223  xorg_cv_cc_flag_unknown_warning_option=yes
9224else
9225  xorg_cv_cc_flag_unknown_warning_option=no
9226fi
9227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9228fi
9229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9230$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9231	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9232	CFLAGS="$xorg_testset_save_CFLAGS"
9233fi
9234
9235if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9236	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9237		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9238	fi
9239	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9240	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9241$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9242if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9243  $as_echo_n "(cached) " >&6
9244else
9245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9246/* end confdefs.h.  */
9247int i;
9248_ACEOF
9249if ac_fn_c_try_compile "$LINENO"; then :
9250  xorg_cv_cc_flag_unused_command_line_argument=yes
9251else
9252  xorg_cv_cc_flag_unused_command_line_argument=no
9253fi
9254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9255fi
9256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9257$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9258	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9259	CFLAGS="$xorg_testset_save_CFLAGS"
9260fi
9261
9262found="no"
9263
9264	if test $found = "no" ; then
9265		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9266			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9267		fi
9268
9269		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9270			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9271		fi
9272
9273		CFLAGS="$CFLAGS -Wreturn-type"
9274
9275		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9276$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9277		cacheid=xorg_cv_cc_flag__Wreturn_type
9278		if eval \${$cacheid+:} false; then :
9279  $as_echo_n "(cached) " >&6
9280else
9281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282/* end confdefs.h.  */
9283int i;
9284int
9285main ()
9286{
9287
9288  ;
9289  return 0;
9290}
9291_ACEOF
9292if ac_fn_c_try_link "$LINENO"; then :
9293  eval $cacheid=yes
9294else
9295  eval $cacheid=no
9296fi
9297rm -f core conftest.err conftest.$ac_objext \
9298    conftest$ac_exeext conftest.$ac_ext
9299fi
9300
9301
9302		CFLAGS="$xorg_testset_save_CFLAGS"
9303
9304		eval supported=\$$cacheid
9305		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9306$as_echo "$supported" >&6; }
9307		if test "$supported" = "yes" ; then
9308			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9309			found="yes"
9310		fi
9311	fi
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327xorg_testset_save_CFLAGS="$CFLAGS"
9328
9329if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9330	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9331	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9332$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9333if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9334  $as_echo_n "(cached) " >&6
9335else
9336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9337/* end confdefs.h.  */
9338int i;
9339_ACEOF
9340if ac_fn_c_try_compile "$LINENO"; then :
9341  xorg_cv_cc_flag_unknown_warning_option=yes
9342else
9343  xorg_cv_cc_flag_unknown_warning_option=no
9344fi
9345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9346fi
9347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9348$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9349	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9350	CFLAGS="$xorg_testset_save_CFLAGS"
9351fi
9352
9353if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9354	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9355		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9356	fi
9357	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9358	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9359$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9360if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9361  $as_echo_n "(cached) " >&6
9362else
9363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364/* end confdefs.h.  */
9365int i;
9366_ACEOF
9367if ac_fn_c_try_compile "$LINENO"; then :
9368  xorg_cv_cc_flag_unused_command_line_argument=yes
9369else
9370  xorg_cv_cc_flag_unused_command_line_argument=no
9371fi
9372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9373fi
9374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9375$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9376	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9377	CFLAGS="$xorg_testset_save_CFLAGS"
9378fi
9379
9380found="no"
9381
9382	if test $found = "no" ; then
9383		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9384			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9385		fi
9386
9387		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9388			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9389		fi
9390
9391		CFLAGS="$CFLAGS -Wtrigraphs"
9392
9393		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9394$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9395		cacheid=xorg_cv_cc_flag__Wtrigraphs
9396		if eval \${$cacheid+:} false; then :
9397  $as_echo_n "(cached) " >&6
9398else
9399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9400/* end confdefs.h.  */
9401int i;
9402int
9403main ()
9404{
9405
9406  ;
9407  return 0;
9408}
9409_ACEOF
9410if ac_fn_c_try_link "$LINENO"; then :
9411  eval $cacheid=yes
9412else
9413  eval $cacheid=no
9414fi
9415rm -f core conftest.err conftest.$ac_objext \
9416    conftest$ac_exeext conftest.$ac_ext
9417fi
9418
9419
9420		CFLAGS="$xorg_testset_save_CFLAGS"
9421
9422		eval supported=\$$cacheid
9423		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9424$as_echo "$supported" >&6; }
9425		if test "$supported" = "yes" ; then
9426			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9427			found="yes"
9428		fi
9429	fi
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445xorg_testset_save_CFLAGS="$CFLAGS"
9446
9447if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9448	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9449	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9450$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9451if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9452  $as_echo_n "(cached) " >&6
9453else
9454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455/* end confdefs.h.  */
9456int i;
9457_ACEOF
9458if ac_fn_c_try_compile "$LINENO"; then :
9459  xorg_cv_cc_flag_unknown_warning_option=yes
9460else
9461  xorg_cv_cc_flag_unknown_warning_option=no
9462fi
9463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9464fi
9465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9466$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9467	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9468	CFLAGS="$xorg_testset_save_CFLAGS"
9469fi
9470
9471if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9472	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9473		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9474	fi
9475	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9476	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9477$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9478if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9479  $as_echo_n "(cached) " >&6
9480else
9481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482/* end confdefs.h.  */
9483int i;
9484_ACEOF
9485if ac_fn_c_try_compile "$LINENO"; then :
9486  xorg_cv_cc_flag_unused_command_line_argument=yes
9487else
9488  xorg_cv_cc_flag_unused_command_line_argument=no
9489fi
9490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9491fi
9492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9493$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9494	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9495	CFLAGS="$xorg_testset_save_CFLAGS"
9496fi
9497
9498found="no"
9499
9500	if test $found = "no" ; then
9501		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9502			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9503		fi
9504
9505		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9506			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9507		fi
9508
9509		CFLAGS="$CFLAGS -Warray-bounds"
9510
9511		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9512$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9513		cacheid=xorg_cv_cc_flag__Warray_bounds
9514		if eval \${$cacheid+:} false; then :
9515  $as_echo_n "(cached) " >&6
9516else
9517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9518/* end confdefs.h.  */
9519int i;
9520int
9521main ()
9522{
9523
9524  ;
9525  return 0;
9526}
9527_ACEOF
9528if ac_fn_c_try_link "$LINENO"; then :
9529  eval $cacheid=yes
9530else
9531  eval $cacheid=no
9532fi
9533rm -f core conftest.err conftest.$ac_objext \
9534    conftest$ac_exeext conftest.$ac_ext
9535fi
9536
9537
9538		CFLAGS="$xorg_testset_save_CFLAGS"
9539
9540		eval supported=\$$cacheid
9541		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9542$as_echo "$supported" >&6; }
9543		if test "$supported" = "yes" ; then
9544			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9545			found="yes"
9546		fi
9547	fi
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563xorg_testset_save_CFLAGS="$CFLAGS"
9564
9565if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9566	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9567	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9568$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9569if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9570  $as_echo_n "(cached) " >&6
9571else
9572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9573/* end confdefs.h.  */
9574int i;
9575_ACEOF
9576if ac_fn_c_try_compile "$LINENO"; then :
9577  xorg_cv_cc_flag_unknown_warning_option=yes
9578else
9579  xorg_cv_cc_flag_unknown_warning_option=no
9580fi
9581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9582fi
9583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9584$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9585	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9586	CFLAGS="$xorg_testset_save_CFLAGS"
9587fi
9588
9589if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9590	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9591		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9592	fi
9593	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9594	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9595$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9596if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9597  $as_echo_n "(cached) " >&6
9598else
9599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9600/* end confdefs.h.  */
9601int i;
9602_ACEOF
9603if ac_fn_c_try_compile "$LINENO"; then :
9604  xorg_cv_cc_flag_unused_command_line_argument=yes
9605else
9606  xorg_cv_cc_flag_unused_command_line_argument=no
9607fi
9608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9609fi
9610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9611$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9612	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9613	CFLAGS="$xorg_testset_save_CFLAGS"
9614fi
9615
9616found="no"
9617
9618	if test $found = "no" ; then
9619		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9620			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9621		fi
9622
9623		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9624			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9625		fi
9626
9627		CFLAGS="$CFLAGS -Wwrite-strings"
9628
9629		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9630$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9631		cacheid=xorg_cv_cc_flag__Wwrite_strings
9632		if eval \${$cacheid+:} false; then :
9633  $as_echo_n "(cached) " >&6
9634else
9635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636/* end confdefs.h.  */
9637int i;
9638int
9639main ()
9640{
9641
9642  ;
9643  return 0;
9644}
9645_ACEOF
9646if ac_fn_c_try_link "$LINENO"; then :
9647  eval $cacheid=yes
9648else
9649  eval $cacheid=no
9650fi
9651rm -f core conftest.err conftest.$ac_objext \
9652    conftest$ac_exeext conftest.$ac_ext
9653fi
9654
9655
9656		CFLAGS="$xorg_testset_save_CFLAGS"
9657
9658		eval supported=\$$cacheid
9659		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9660$as_echo "$supported" >&6; }
9661		if test "$supported" = "yes" ; then
9662			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9663			found="yes"
9664		fi
9665	fi
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681xorg_testset_save_CFLAGS="$CFLAGS"
9682
9683if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9684	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9685	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9686$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9687if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9688  $as_echo_n "(cached) " >&6
9689else
9690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9691/* end confdefs.h.  */
9692int i;
9693_ACEOF
9694if ac_fn_c_try_compile "$LINENO"; then :
9695  xorg_cv_cc_flag_unknown_warning_option=yes
9696else
9697  xorg_cv_cc_flag_unknown_warning_option=no
9698fi
9699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9700fi
9701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9702$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9703	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9704	CFLAGS="$xorg_testset_save_CFLAGS"
9705fi
9706
9707if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9708	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9709		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9710	fi
9711	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9712	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9713$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9714if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9715  $as_echo_n "(cached) " >&6
9716else
9717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9718/* end confdefs.h.  */
9719int i;
9720_ACEOF
9721if ac_fn_c_try_compile "$LINENO"; then :
9722  xorg_cv_cc_flag_unused_command_line_argument=yes
9723else
9724  xorg_cv_cc_flag_unused_command_line_argument=no
9725fi
9726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9727fi
9728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9729$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9730	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9731	CFLAGS="$xorg_testset_save_CFLAGS"
9732fi
9733
9734found="no"
9735
9736	if test $found = "no" ; then
9737		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9738			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9739		fi
9740
9741		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9742			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9743		fi
9744
9745		CFLAGS="$CFLAGS -Waddress"
9746
9747		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9748$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9749		cacheid=xorg_cv_cc_flag__Waddress
9750		if eval \${$cacheid+:} false; then :
9751  $as_echo_n "(cached) " >&6
9752else
9753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754/* end confdefs.h.  */
9755int i;
9756int
9757main ()
9758{
9759
9760  ;
9761  return 0;
9762}
9763_ACEOF
9764if ac_fn_c_try_link "$LINENO"; then :
9765  eval $cacheid=yes
9766else
9767  eval $cacheid=no
9768fi
9769rm -f core conftest.err conftest.$ac_objext \
9770    conftest$ac_exeext conftest.$ac_ext
9771fi
9772
9773
9774		CFLAGS="$xorg_testset_save_CFLAGS"
9775
9776		eval supported=\$$cacheid
9777		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9778$as_echo "$supported" >&6; }
9779		if test "$supported" = "yes" ; then
9780			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9781			found="yes"
9782		fi
9783	fi
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799xorg_testset_save_CFLAGS="$CFLAGS"
9800
9801if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9802	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9803	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9804$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9805if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9806  $as_echo_n "(cached) " >&6
9807else
9808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9809/* end confdefs.h.  */
9810int i;
9811_ACEOF
9812if ac_fn_c_try_compile "$LINENO"; then :
9813  xorg_cv_cc_flag_unknown_warning_option=yes
9814else
9815  xorg_cv_cc_flag_unknown_warning_option=no
9816fi
9817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9818fi
9819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9820$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9821	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9822	CFLAGS="$xorg_testset_save_CFLAGS"
9823fi
9824
9825if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9826	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9827		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9828	fi
9829	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9830	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9831$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9832if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9833  $as_echo_n "(cached) " >&6
9834else
9835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9836/* end confdefs.h.  */
9837int i;
9838_ACEOF
9839if ac_fn_c_try_compile "$LINENO"; then :
9840  xorg_cv_cc_flag_unused_command_line_argument=yes
9841else
9842  xorg_cv_cc_flag_unused_command_line_argument=no
9843fi
9844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9845fi
9846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9847$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9848	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9849	CFLAGS="$xorg_testset_save_CFLAGS"
9850fi
9851
9852found="no"
9853
9854	if test $found = "no" ; then
9855		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9856			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9857		fi
9858
9859		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9860			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9861		fi
9862
9863		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9864
9865		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9866$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9867		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9868		if eval \${$cacheid+:} false; then :
9869  $as_echo_n "(cached) " >&6
9870else
9871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9872/* end confdefs.h.  */
9873int i;
9874int
9875main ()
9876{
9877
9878  ;
9879  return 0;
9880}
9881_ACEOF
9882if ac_fn_c_try_link "$LINENO"; then :
9883  eval $cacheid=yes
9884else
9885  eval $cacheid=no
9886fi
9887rm -f core conftest.err conftest.$ac_objext \
9888    conftest$ac_exeext conftest.$ac_ext
9889fi
9890
9891
9892		CFLAGS="$xorg_testset_save_CFLAGS"
9893
9894		eval supported=\$$cacheid
9895		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9896$as_echo "$supported" >&6; }
9897		if test "$supported" = "yes" ; then
9898			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9899			found="yes"
9900		fi
9901	fi
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917xorg_testset_save_CFLAGS="$CFLAGS"
9918
9919if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9920	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9921	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9922$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9923if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9924  $as_echo_n "(cached) " >&6
9925else
9926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927/* end confdefs.h.  */
9928int i;
9929_ACEOF
9930if ac_fn_c_try_compile "$LINENO"; then :
9931  xorg_cv_cc_flag_unknown_warning_option=yes
9932else
9933  xorg_cv_cc_flag_unknown_warning_option=no
9934fi
9935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9936fi
9937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9938$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9939	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9940	CFLAGS="$xorg_testset_save_CFLAGS"
9941fi
9942
9943if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9944	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9945		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9946	fi
9947	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9948	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9949$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9950if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9951  $as_echo_n "(cached) " >&6
9952else
9953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9954/* end confdefs.h.  */
9955int i;
9956_ACEOF
9957if ac_fn_c_try_compile "$LINENO"; then :
9958  xorg_cv_cc_flag_unused_command_line_argument=yes
9959else
9960  xorg_cv_cc_flag_unused_command_line_argument=no
9961fi
9962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9963fi
9964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9965$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9966	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9967	CFLAGS="$xorg_testset_save_CFLAGS"
9968fi
9969
9970found="no"
9971
9972	if test $found = "no" ; then
9973		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9974			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9975		fi
9976
9977		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9978			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9979		fi
9980
9981		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9982
9983		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9984$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9985		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9986		if eval \${$cacheid+:} false; then :
9987  $as_echo_n "(cached) " >&6
9988else
9989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9990/* end confdefs.h.  */
9991int i;
9992int
9993main ()
9994{
9995
9996  ;
9997  return 0;
9998}
9999_ACEOF
10000if ac_fn_c_try_link "$LINENO"; then :
10001  eval $cacheid=yes
10002else
10003  eval $cacheid=no
10004fi
10005rm -f core conftest.err conftest.$ac_objext \
10006    conftest$ac_exeext conftest.$ac_ext
10007fi
10008
10009
10010		CFLAGS="$xorg_testset_save_CFLAGS"
10011
10012		eval supported=\$$cacheid
10013		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10014$as_echo "$supported" >&6; }
10015		if test "$supported" = "yes" ; then
10016			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10017			found="yes"
10018		fi
10019	fi
10020
10021
10022fi
10023
10024
10025
10026
10027
10028
10029
10030		CWARNFLAGS="$BASE_CFLAGS"
10031		if  test "x$GCC" = xyes ; then
10032		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10033		fi
10034
10035
10036
10037
10038
10039
10040
10041
10042# Check whether --enable-strict-compilation was given.
10043if test "${enable_strict_compilation+set}" = set; then :
10044  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10045else
10046  STRICT_COMPILE=no
10047fi
10048
10049
10050
10051
10052
10053
10054STRICT_CFLAGS=""
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068xorg_testset_save_CFLAGS="$CFLAGS"
10069
10070if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10071	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10072	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10073$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10074if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10075  $as_echo_n "(cached) " >&6
10076else
10077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10078/* end confdefs.h.  */
10079int i;
10080_ACEOF
10081if ac_fn_c_try_compile "$LINENO"; then :
10082  xorg_cv_cc_flag_unknown_warning_option=yes
10083else
10084  xorg_cv_cc_flag_unknown_warning_option=no
10085fi
10086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10087fi
10088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10089$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10090	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10091	CFLAGS="$xorg_testset_save_CFLAGS"
10092fi
10093
10094if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10095	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10096		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10097	fi
10098	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10099	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10100$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10101if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10102  $as_echo_n "(cached) " >&6
10103else
10104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10105/* end confdefs.h.  */
10106int i;
10107_ACEOF
10108if ac_fn_c_try_compile "$LINENO"; then :
10109  xorg_cv_cc_flag_unused_command_line_argument=yes
10110else
10111  xorg_cv_cc_flag_unused_command_line_argument=no
10112fi
10113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10114fi
10115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10116$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10117	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10118	CFLAGS="$xorg_testset_save_CFLAGS"
10119fi
10120
10121found="no"
10122
10123	if test $found = "no" ; then
10124		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10125			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10126		fi
10127
10128		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10129			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10130		fi
10131
10132		CFLAGS="$CFLAGS -pedantic"
10133
10134		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10135$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10136		cacheid=xorg_cv_cc_flag__pedantic
10137		if eval \${$cacheid+:} false; then :
10138  $as_echo_n "(cached) " >&6
10139else
10140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10141/* end confdefs.h.  */
10142int i;
10143int
10144main ()
10145{
10146
10147  ;
10148  return 0;
10149}
10150_ACEOF
10151if ac_fn_c_try_link "$LINENO"; then :
10152  eval $cacheid=yes
10153else
10154  eval $cacheid=no
10155fi
10156rm -f core conftest.err conftest.$ac_objext \
10157    conftest$ac_exeext conftest.$ac_ext
10158fi
10159
10160
10161		CFLAGS="$xorg_testset_save_CFLAGS"
10162
10163		eval supported=\$$cacheid
10164		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10165$as_echo "$supported" >&6; }
10166		if test "$supported" = "yes" ; then
10167			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10168			found="yes"
10169		fi
10170	fi
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186xorg_testset_save_CFLAGS="$CFLAGS"
10187
10188if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10189	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10190	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10191$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10192if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10193  $as_echo_n "(cached) " >&6
10194else
10195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10196/* end confdefs.h.  */
10197int i;
10198_ACEOF
10199if ac_fn_c_try_compile "$LINENO"; then :
10200  xorg_cv_cc_flag_unknown_warning_option=yes
10201else
10202  xorg_cv_cc_flag_unknown_warning_option=no
10203fi
10204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10205fi
10206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10207$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10208	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10209	CFLAGS="$xorg_testset_save_CFLAGS"
10210fi
10211
10212if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10213	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10214		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10215	fi
10216	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10217	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10218$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10219if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10220  $as_echo_n "(cached) " >&6
10221else
10222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10223/* end confdefs.h.  */
10224int i;
10225_ACEOF
10226if ac_fn_c_try_compile "$LINENO"; then :
10227  xorg_cv_cc_flag_unused_command_line_argument=yes
10228else
10229  xorg_cv_cc_flag_unused_command_line_argument=no
10230fi
10231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10232fi
10233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10234$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10235	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10236	CFLAGS="$xorg_testset_save_CFLAGS"
10237fi
10238
10239found="no"
10240
10241	if test $found = "no" ; then
10242		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10243			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10244		fi
10245
10246		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10247			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10248		fi
10249
10250		CFLAGS="$CFLAGS -Werror"
10251
10252		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10253$as_echo_n "checking if $CC supports -Werror... " >&6; }
10254		cacheid=xorg_cv_cc_flag__Werror
10255		if eval \${$cacheid+:} false; then :
10256  $as_echo_n "(cached) " >&6
10257else
10258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10259/* end confdefs.h.  */
10260int i;
10261int
10262main ()
10263{
10264
10265  ;
10266  return 0;
10267}
10268_ACEOF
10269if ac_fn_c_try_link "$LINENO"; then :
10270  eval $cacheid=yes
10271else
10272  eval $cacheid=no
10273fi
10274rm -f core conftest.err conftest.$ac_objext \
10275    conftest$ac_exeext conftest.$ac_ext
10276fi
10277
10278
10279		CFLAGS="$xorg_testset_save_CFLAGS"
10280
10281		eval supported=\$$cacheid
10282		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10283$as_echo "$supported" >&6; }
10284		if test "$supported" = "yes" ; then
10285			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10286			found="yes"
10287		fi
10288	fi
10289
10290	if test $found = "no" ; then
10291		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10292			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10293		fi
10294
10295		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10296			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10297		fi
10298
10299		CFLAGS="$CFLAGS -errwarn"
10300
10301		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10302$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10303		cacheid=xorg_cv_cc_flag__errwarn
10304		if eval \${$cacheid+:} false; then :
10305  $as_echo_n "(cached) " >&6
10306else
10307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308/* end confdefs.h.  */
10309int i;
10310int
10311main ()
10312{
10313
10314  ;
10315  return 0;
10316}
10317_ACEOF
10318if ac_fn_c_try_link "$LINENO"; then :
10319  eval $cacheid=yes
10320else
10321  eval $cacheid=no
10322fi
10323rm -f core conftest.err conftest.$ac_objext \
10324    conftest$ac_exeext conftest.$ac_ext
10325fi
10326
10327
10328		CFLAGS="$xorg_testset_save_CFLAGS"
10329
10330		eval supported=\$$cacheid
10331		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10332$as_echo "$supported" >&6; }
10333		if test "$supported" = "yes" ; then
10334			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10335			found="yes"
10336		fi
10337	fi
10338
10339
10340
10341# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10342# activate it with -Werror, so we add it here explicitly.
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356xorg_testset_save_CFLAGS="$CFLAGS"
10357
10358if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10359	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10360	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10361$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10362if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10363  $as_echo_n "(cached) " >&6
10364else
10365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10366/* end confdefs.h.  */
10367int i;
10368_ACEOF
10369if ac_fn_c_try_compile "$LINENO"; then :
10370  xorg_cv_cc_flag_unknown_warning_option=yes
10371else
10372  xorg_cv_cc_flag_unknown_warning_option=no
10373fi
10374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10375fi
10376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10377$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10378	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10379	CFLAGS="$xorg_testset_save_CFLAGS"
10380fi
10381
10382if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10383	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10384		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10385	fi
10386	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10387	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10388$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10389if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10390  $as_echo_n "(cached) " >&6
10391else
10392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10393/* end confdefs.h.  */
10394int i;
10395_ACEOF
10396if ac_fn_c_try_compile "$LINENO"; then :
10397  xorg_cv_cc_flag_unused_command_line_argument=yes
10398else
10399  xorg_cv_cc_flag_unused_command_line_argument=no
10400fi
10401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10402fi
10403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10404$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10405	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10406	CFLAGS="$xorg_testset_save_CFLAGS"
10407fi
10408
10409found="no"
10410
10411	if test $found = "no" ; then
10412		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10413			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10414		fi
10415
10416		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10417			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10418		fi
10419
10420		CFLAGS="$CFLAGS -Werror=attributes"
10421
10422		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10423$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10424		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10425		if eval \${$cacheid+:} false; then :
10426  $as_echo_n "(cached) " >&6
10427else
10428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10429/* end confdefs.h.  */
10430int i;
10431int
10432main ()
10433{
10434
10435  ;
10436  return 0;
10437}
10438_ACEOF
10439if ac_fn_c_try_link "$LINENO"; then :
10440  eval $cacheid=yes
10441else
10442  eval $cacheid=no
10443fi
10444rm -f core conftest.err conftest.$ac_objext \
10445    conftest$ac_exeext conftest.$ac_ext
10446fi
10447
10448
10449		CFLAGS="$xorg_testset_save_CFLAGS"
10450
10451		eval supported=\$$cacheid
10452		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10453$as_echo "$supported" >&6; }
10454		if test "$supported" = "yes" ; then
10455			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10456			found="yes"
10457		fi
10458	fi
10459
10460
10461
10462if test "x$STRICT_COMPILE" = "xyes"; then
10463    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10464    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10465fi
10466
10467
10468
10469
10470
10471
10472cat >>confdefs.h <<_ACEOF
10473#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10474_ACEOF
10475
10476	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10477	if test "x$PVM" = "x"; then
10478		PVM="0"
10479	fi
10480
10481cat >>confdefs.h <<_ACEOF
10482#define PACKAGE_VERSION_MINOR $PVM
10483_ACEOF
10484
10485	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10486	if test "x$PVP" = "x"; then
10487		PVP="0"
10488	fi
10489
10490cat >>confdefs.h <<_ACEOF
10491#define PACKAGE_VERSION_PATCHLEVEL $PVP
10492_ACEOF
10493
10494
10495
10496CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10497mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10498|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10499echo 'git directory not found: installing possibly empty changelog.' >&2)"
10500
10501
10502
10503
10504macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10505INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10506mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10507|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10508echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10509
10510
10511
10512
10513
10514
10515if test x$APP_MAN_SUFFIX = x    ; then
10516    APP_MAN_SUFFIX=1
10517fi
10518if test x$APP_MAN_DIR = x    ; then
10519    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10520fi
10521
10522if test x$LIB_MAN_SUFFIX = x    ; then
10523    LIB_MAN_SUFFIX=3
10524fi
10525if test x$LIB_MAN_DIR = x    ; then
10526    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10527fi
10528
10529if test x$FILE_MAN_SUFFIX = x    ; then
10530    case $host_os in
10531	solaris*)	FILE_MAN_SUFFIX=4  ;;
10532	*)		FILE_MAN_SUFFIX=5  ;;
10533    esac
10534fi
10535if test x$FILE_MAN_DIR = x    ; then
10536    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10537fi
10538
10539if test x$MISC_MAN_SUFFIX = x    ; then
10540    case $host_os in
10541	solaris*)	MISC_MAN_SUFFIX=5  ;;
10542	*)		MISC_MAN_SUFFIX=7  ;;
10543    esac
10544fi
10545if test x$MISC_MAN_DIR = x    ; then
10546    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10547fi
10548
10549if test x$DRIVER_MAN_SUFFIX = x    ; then
10550    case $host_os in
10551	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10552	*)		DRIVER_MAN_SUFFIX=4  ;;
10553    esac
10554fi
10555if test x$DRIVER_MAN_DIR = x    ; then
10556    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10557fi
10558
10559if test x$ADMIN_MAN_SUFFIX = x    ; then
10560    case $host_os in
10561	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10562	*)		ADMIN_MAN_SUFFIX=8  ;;
10563    esac
10564fi
10565if test x$ADMIN_MAN_DIR = x    ; then
10566    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10567fi
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583XORG_MAN_PAGE="X Version 11"
10584
10585MAN_SUBSTS="\
10586	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10587	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10588	-e 's|__xservername__|Xorg|g' \
10589	-e 's|__xconfigfile__|xorg.conf|g' \
10590	-e 's|__projectroot__|\$(prefix)|g' \
10591	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10592	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10593	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10594	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10595	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10596	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10597	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10598
10599
10600
10601# Check whether --enable-silent-rules was given.
10602if test "${enable_silent_rules+set}" = set; then :
10603  enableval=$enable_silent_rules;
10604fi
10605
10606case $enable_silent_rules in # (((
10607  yes) AM_DEFAULT_VERBOSITY=0;;
10608   no) AM_DEFAULT_VERBOSITY=1;;
10609    *) AM_DEFAULT_VERBOSITY=0;;
10610esac
10611am_make=${MAKE-make}
10612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10613$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10614if ${am_cv_make_support_nested_variables+:} false; then :
10615  $as_echo_n "(cached) " >&6
10616else
10617  if $as_echo 'TRUE=$(BAR$(V))
10618BAR0=false
10619BAR1=true
10620V=1
10621am__doit:
10622	@$(TRUE)
10623.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10624  am_cv_make_support_nested_variables=yes
10625else
10626  am_cv_make_support_nested_variables=no
10627fi
10628fi
10629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10630$as_echo "$am_cv_make_support_nested_variables" >&6; }
10631if test $am_cv_make_support_nested_variables = yes; then
10632    AM_V='$(V)'
10633  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10634else
10635  AM_V=$AM_DEFAULT_VERBOSITY
10636  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10637fi
10638AM_BACKSLASH='\'
10639
10640
10641
10642ac_config_headers="$ac_config_headers config.h"
10643
10644
10645
10646
10647# Extract the first word of "groff", so it can be a program name with args.
10648set dummy groff; ac_word=$2
10649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10650$as_echo_n "checking for $ac_word... " >&6; }
10651if ${ac_cv_prog_GROFF+:} false; then :
10652  $as_echo_n "(cached) " >&6
10653else
10654  if test -n "$GROFF"; then
10655  ac_cv_prog_GROFF="$GROFF" # Let the user override the test.
10656else
10657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10658for as_dir in $PATH
10659do
10660  IFS=$as_save_IFS
10661  test -z "$as_dir" && as_dir=.
10662    for ac_exec_ext in '' $ac_executable_extensions; do
10663  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10664    ac_cv_prog_GROFF="found"
10665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10666    break 2
10667  fi
10668done
10669  done
10670IFS=$as_save_IFS
10671
10672  test -z "$ac_cv_prog_GROFF" && ac_cv_prog_GROFF="missing"
10673fi
10674fi
10675GROFF=$ac_cv_prog_GROFF
10676if test -n "$GROFF"; then
10677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
10678$as_echo "$GROFF" >&6; }
10679else
10680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10681$as_echo "no" >&6; }
10682fi
10683
10684
10685if test "x$GROFF" = "xfound" ; then
10686
10687$as_echo "#define HAS_GROFF 1" >>confdefs.h
10688
10689fi
10690
10691for ac_func in mkstemp
10692do :
10693  ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
10694if test "x$ac_cv_func_mkstemp" = xyes; then :
10695  cat >>confdefs.h <<_ACEOF
10696#define HAVE_MKSTEMP 1
10697_ACEOF
10698
10699fi
10700done
10701
10702
10703
10704# Check whether --with-helpdir was given.
10705if test "${with_helpdir+set}" = set; then :
10706  withval=$with_helpdir; HELPDIR="$withval"
10707else
10708  HELPDIR=${datadir}/X11
10709fi
10710
10711
10712
10713
10714# Check whether --with-sysmanpath was given.
10715if test "${with_sysmanpath+set}" = set; then :
10716  withval=$with_sysmanpath; SYSMANPATH="$withval"
10717fi
10718
10719if test x$SYSMANPATH != x; then
10720
10721cat >>confdefs.h <<_ACEOF
10722#define SYSMANPATH "$SYSMANPATH"
10723_ACEOF
10724
10725fi
10726
10727
10728# Check whether --with-localmanpath was given.
10729if test "${with_localmanpath+set}" = set; then :
10730  withval=$with_localmanpath; LOCALMANPATH="$withval"
10731fi
10732
10733if test x$LOCALMANPATH != x; then
10734
10735cat >>confdefs.h <<_ACEOF
10736#define LOCALMANPATH "$LOCALMANPATH"
10737_ACEOF
10738
10739fi
10740
10741# Obtain compiler/linker options from depedencies
10742
10743pkg_failed=no
10744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMAN" >&5
10745$as_echo_n "checking for XMAN... " >&6; }
10746
10747if test -n "$XMAN_CFLAGS"; then
10748    pkg_cv_XMAN_CFLAGS="$XMAN_CFLAGS"
10749 elif test -n "$PKG_CONFIG"; then
10750    if test -n "$PKG_CONFIG" && \
10751    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt\""; } >&5
10752  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt") 2>&5
10753  ac_status=$?
10754  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10755  test $ac_status = 0; }; then
10756  pkg_cv_XMAN_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 xaw7 xt" 2>/dev/null`
10757else
10758  pkg_failed=yes
10759fi
10760 else
10761    pkg_failed=untried
10762fi
10763if test -n "$XMAN_LIBS"; then
10764    pkg_cv_XMAN_LIBS="$XMAN_LIBS"
10765 elif test -n "$PKG_CONFIG"; then
10766    if test -n "$PKG_CONFIG" && \
10767    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt\""; } >&5
10768  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt") 2>&5
10769  ac_status=$?
10770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10771  test $ac_status = 0; }; then
10772  pkg_cv_XMAN_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 xaw7 xt" 2>/dev/null`
10773else
10774  pkg_failed=yes
10775fi
10776 else
10777    pkg_failed=untried
10778fi
10779
10780
10781
10782if test $pkg_failed = yes; then
10783
10784if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10785        _pkg_short_errors_supported=yes
10786else
10787        _pkg_short_errors_supported=no
10788fi
10789        if test $_pkg_short_errors_supported = yes; then
10790	        XMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.17 xaw7 xt" 2>&1`
10791        else
10792	        XMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.17 xaw7 xt" 2>&1`
10793        fi
10794	# Put the nasty error message in config.log where it belongs
10795	echo "$XMAN_PKG_ERRORS" >&5
10796
10797	as_fn_error $? "Package requirements (xproto >= 7.0.17 xaw7 xt) were not met:
10798
10799$XMAN_PKG_ERRORS
10800
10801Consider adjusting the PKG_CONFIG_PATH environment variable if you
10802installed software in a non-standard prefix.
10803
10804Alternatively, you may set the environment variables XMAN_CFLAGS
10805and XMAN_LIBS to avoid the need to call pkg-config.
10806See the pkg-config man page for more details.
10807" "$LINENO" 5
10808elif test $pkg_failed = untried; then
10809	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10810$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10811as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10812is in your PATH or set the PKG_CONFIG environment variable to the full
10813path to pkg-config.
10814
10815Alternatively, you may set the environment variables XMAN_CFLAGS
10816and XMAN_LIBS to avoid the need to call pkg-config.
10817See the pkg-config man page for more details.
10818
10819To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10820See \`config.log' for more details" "$LINENO" 5; }
10821else
10822	XMAN_CFLAGS=$pkg_cv_XMAN_CFLAGS
10823	XMAN_LIBS=$pkg_cv_XMAN_LIBS
10824        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10825$as_echo "yes" >&6; }
10826	:
10827fi
10828
10829
10830# Check whether --with-manconfig was given.
10831if test "${with_manconfig+set}" = set; then :
10832  withval=$with_manconfig; MANCONF="$withval"
10833fi
10834
10835if test x$MANCONF = x; then
10836# Check for man page config files
10837    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /etc/man.conf" >&5
10838$as_echo_n "checking for /etc/man.conf... " >&6; }
10839if ${ac_cv_file__etc_man_conf+:} false; then :
10840  $as_echo_n "(cached) " >&6
10841else
10842  test "$cross_compiling" = yes &&
10843  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10844if test -r "/etc/man.conf"; then
10845  ac_cv_file__etc_man_conf=yes
10846else
10847  ac_cv_file__etc_man_conf=no
10848fi
10849fi
10850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_man_conf" >&5
10851$as_echo "$ac_cv_file__etc_man_conf" >&6; }
10852if test "x$ac_cv_file__etc_man_conf" = xyes; then :
10853  MANCONF="/etc/man.conf"
10854else
10855  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /etc/man.config" >&5
10856$as_echo_n "checking for /etc/man.config... " >&6; }
10857if ${ac_cv_file__etc_man_config+:} false; then :
10858  $as_echo_n "(cached) " >&6
10859else
10860  test "$cross_compiling" = yes &&
10861  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10862if test -r "/etc/man.config"; then
10863  ac_cv_file__etc_man_config=yes
10864else
10865  ac_cv_file__etc_man_config=no
10866fi
10867fi
10868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_man_config" >&5
10869$as_echo "$ac_cv_file__etc_man_config" >&6; }
10870if test "x$ac_cv_file__etc_man_config" = xyes; then :
10871  MANCONF="/etc/man.config"
10872else
10873  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /etc/manpath.config" >&5
10874$as_echo_n "checking for /etc/manpath.config... " >&6; }
10875if ${ac_cv_file__etc_manpath_config+:} false; then :
10876  $as_echo_n "(cached) " >&6
10877else
10878  test "$cross_compiling" = yes &&
10879  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10880if test -r "/etc/manpath.config"; then
10881  ac_cv_file__etc_manpath_config=yes
10882else
10883  ac_cv_file__etc_manpath_config=no
10884fi
10885fi
10886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_manpath_config" >&5
10887$as_echo "$ac_cv_file__etc_manpath_config" >&6; }
10888if test "x$ac_cv_file__etc_manpath_config" = xyes; then :
10889  MANCONF="/etc/manpath.config"
10890else
10891  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/misc/man.conf" >&5
10892$as_echo_n "checking for /usr/share/misc/man.conf... " >&6; }
10893if ${ac_cv_file__usr_share_misc_man_conf+:} false; then :
10894  $as_echo_n "(cached) " >&6
10895else
10896  test "$cross_compiling" = yes &&
10897  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10898if test -r "/usr/share/misc/man.conf"; then
10899  ac_cv_file__usr_share_misc_man_conf=yes
10900else
10901  ac_cv_file__usr_share_misc_man_conf=no
10902fi
10903fi
10904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_misc_man_conf" >&5
10905$as_echo "$ac_cv_file__usr_share_misc_man_conf" >&6; }
10906if test "x$ac_cv_file__usr_share_misc_man_conf" = xyes; then :
10907  MANCONF="/usr/share/misc/man.conf"
10908fi
10909
10910fi
10911
10912fi
10913
10914fi
10915
10916fi
10917
10918if test x$MANCONF != x ; then
10919
10920cat >>confdefs.h <<_ACEOF
10921#define MANCONF "$MANCONF"
10922_ACEOF
10923
10924
10925    # Try to determine format of config file
10926    # would be better to somehow determine from the files themselves, but
10927    # we'll guess based on pathname and OS for now (mirrors old Imake tests)
10928    { $as_echo "$as_me:${as_lineno-$LINENO}: checking man config file format" >&5
10929$as_echo_n "checking man config file format... " >&6; }
10930    if test x$MANCONF = x/etc/manpath.config ; then
10931	MAN_CONFIG_STYLE="FreeBSD"
10932    else
10933	case $host_os in
10934	*darwin* | *openbsd* | *netbsd* )
10935	    MAN_CONFIG_STYLE="OpenBSD"
10936	    ;;
10937	*linux* | cygwin* )
10938	    MAN_CONFIG_STYLE="Linux"
10939	    ;;
10940	*bsd* )
10941	    MAN_CONFIG_STYLE="BSD"
10942	    ;;
10943	*)
10944	    ;;
10945	esac
10946    fi
10947    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN_CONFIG_STYLE" >&5
10948$as_echo "$MAN_CONFIG_STYLE" >&6; }
10949
10950    case $MAN_CONFIG_STYLE in
10951	FreeBSD)
10952
10953$as_echo "#define MANCONFIGSTYLE_FreeBSD 1" >>confdefs.h
10954
10955	    ;;
10956	OpenBSD)
10957
10958$as_echo "#define MANCONFIGSTYLE_OpenBSD 1" >>confdefs.h
10959
10960	    ;;
10961	BSD)
10962
10963$as_echo "#define MANCONFIGSTYLE_BSD 1" >>confdefs.h
10964
10965	    ;;
10966	Linux)
10967
10968$as_echo "#define MANCONFIGSTYLE_Linux 1" >>confdefs.h
10969
10970	    ;;
10971	*)
10972	    as_fn_error $? "Could not determine man page file config format." "$LINENO" 5
10973    esac
10974fi
10975
10976
10977pkg_failed=no
10978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
10979$as_echo_n "checking for APPDEFS... " >&6; }
10980
10981if test -n "$APPDEFS_CFLAGS"; then
10982    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
10983 elif test -n "$PKG_CONFIG"; then
10984    if test -n "$PKG_CONFIG" && \
10985    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10986  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10987  ac_status=$?
10988  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10989  test $ac_status = 0; }; then
10990  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
10991else
10992  pkg_failed=yes
10993fi
10994 else
10995    pkg_failed=untried
10996fi
10997if test -n "$APPDEFS_LIBS"; then
10998    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
10999 elif test -n "$PKG_CONFIG"; then
11000    if test -n "$PKG_CONFIG" && \
11001    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11002  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11003  ac_status=$?
11004  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11005  test $ac_status = 0; }; then
11006  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
11007else
11008  pkg_failed=yes
11009fi
11010 else
11011    pkg_failed=untried
11012fi
11013
11014
11015
11016if test $pkg_failed = yes; then
11017
11018if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11019        _pkg_short_errors_supported=yes
11020else
11021        _pkg_short_errors_supported=no
11022fi
11023        if test $_pkg_short_errors_supported = yes; then
11024	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1`
11025        else
11026	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1`
11027        fi
11028	# Put the nasty error message in config.log where it belongs
11029	echo "$APPDEFS_PKG_ERRORS" >&5
11030
11031	as_fn_error $? "Package requirements (xt) were not met:
11032
11033$APPDEFS_PKG_ERRORS
11034
11035Consider adjusting the PKG_CONFIG_PATH environment variable if you
11036installed software in a non-standard prefix.
11037
11038Alternatively, you may set the environment variables APPDEFS_CFLAGS
11039and APPDEFS_LIBS to avoid the need to call pkg-config.
11040See the pkg-config man page for more details.
11041" "$LINENO" 5
11042elif test $pkg_failed = untried; then
11043	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11044$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11045as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11046is in your PATH or set the PKG_CONFIG environment variable to the full
11047path to pkg-config.
11048
11049Alternatively, you may set the environment variables APPDEFS_CFLAGS
11050and APPDEFS_LIBS to avoid the need to call pkg-config.
11051See the pkg-config man page for more details.
11052
11053To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11054See \`config.log' for more details" "$LINENO" 5; }
11055else
11056	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
11057	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
11058        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11059$as_echo "yes" >&6; }
11060	:
11061fi
11062xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11063
11064# Check whether --with-appdefaultdir was given.
11065if test "${with_appdefaultdir+set}" = set; then :
11066  withval=$with_appdefaultdir; appdefaultdir="$withval"
11067else
11068  appdefaultdir="${xt_appdefaultdir}"
11069fi
11070
11071
11072
11073if test "x$RELEASE_VERSION" != "x"; then
11074
11075cat >>confdefs.h <<_ACEOF
11076#define RELEASE_VERSION "$RELEASE_VERSION"
11077_ACEOF
11078
11079fi
11080
11081ac_config_files="$ac_config_files Makefile man/Makefile"
11082
11083cat >confcache <<\_ACEOF
11084# This file is a shell script that caches the results of configure
11085# tests run on this system so they can be shared between configure
11086# scripts and configure runs, see configure's option --config-cache.
11087# It is not useful on other systems.  If it contains results you don't
11088# want to keep, you may remove or edit it.
11089#
11090# config.status only pays attention to the cache file if you give it
11091# the --recheck option to rerun configure.
11092#
11093# `ac_cv_env_foo' variables (set or unset) will be overridden when
11094# loading this file, other *unset* `ac_cv_foo' will be assigned the
11095# following values.
11096
11097_ACEOF
11098
11099# The following way of writing the cache mishandles newlines in values,
11100# but we know of no workaround that is simple, portable, and efficient.
11101# So, we kill variables containing newlines.
11102# Ultrix sh set writes to stderr and can't be redirected directly,
11103# and sets the high bit in the cache file unless we assign to the vars.
11104(
11105  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11106    eval ac_val=\$$ac_var
11107    case $ac_val in #(
11108    *${as_nl}*)
11109      case $ac_var in #(
11110      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11111$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11112      esac
11113      case $ac_var in #(
11114      _ | IFS | as_nl) ;; #(
11115      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11116      *) { eval $ac_var=; unset $ac_var;} ;;
11117      esac ;;
11118    esac
11119  done
11120
11121  (set) 2>&1 |
11122    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11123    *${as_nl}ac_space=\ *)
11124      # `set' does not quote correctly, so add quotes: double-quote
11125      # substitution turns \\\\ into \\, and sed turns \\ into \.
11126      sed -n \
11127	"s/'/'\\\\''/g;
11128	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11129      ;; #(
11130    *)
11131      # `set' quotes correctly as required by POSIX, so do not add quotes.
11132      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11133      ;;
11134    esac |
11135    sort
11136) |
11137  sed '
11138     /^ac_cv_env_/b end
11139     t clear
11140     :clear
11141     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11142     t end
11143     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11144     :end' >>confcache
11145if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11146  if test -w "$cache_file"; then
11147    if test "x$cache_file" != "x/dev/null"; then
11148      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11149$as_echo "$as_me: updating cache $cache_file" >&6;}
11150      if test ! -f "$cache_file" || test -h "$cache_file"; then
11151	cat confcache >"$cache_file"
11152      else
11153        case $cache_file in #(
11154        */* | ?:*)
11155	  mv -f confcache "$cache_file"$$ &&
11156	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11157        *)
11158	  mv -f confcache "$cache_file" ;;
11159	esac
11160      fi
11161    fi
11162  else
11163    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11164$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11165  fi
11166fi
11167rm -f confcache
11168
11169test "x$prefix" = xNONE && prefix=$ac_default_prefix
11170# Let make expand exec_prefix.
11171test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11172
11173DEFS=-DHAVE_CONFIG_H
11174
11175ac_libobjs=
11176ac_ltlibobjs=
11177U=
11178for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11179  # 1. Remove the extension, and $U if already installed.
11180  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11181  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11182  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11183  #    will be set to the directory where LIBOBJS objects are built.
11184  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11185  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11186done
11187LIBOBJS=$ac_libobjs
11188
11189LTLIBOBJS=$ac_ltlibobjs
11190
11191
11192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11193$as_echo_n "checking that generated files are newer than configure... " >&6; }
11194   if test -n "$am_sleep_pid"; then
11195     # Hide warnings about reused PIDs.
11196     wait $am_sleep_pid 2>/dev/null
11197   fi
11198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11199$as_echo "done" >&6; }
11200 if test -n "$EXEEXT"; then
11201  am__EXEEXT_TRUE=
11202  am__EXEEXT_FALSE='#'
11203else
11204  am__EXEEXT_TRUE='#'
11205  am__EXEEXT_FALSE=
11206fi
11207
11208if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11209  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11210Usually this means the macro was only invoked conditionally." "$LINENO" 5
11211fi
11212if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11213  as_fn_error $? "conditional \"AMDEP\" was never defined.
11214Usually this means the macro was only invoked conditionally." "$LINENO" 5
11215fi
11216if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11217  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11218Usually this means the macro was only invoked conditionally." "$LINENO" 5
11219fi
11220
11221: "${CONFIG_STATUS=./config.status}"
11222ac_write_fail=0
11223ac_clean_files_save=$ac_clean_files
11224ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11225{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11226$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11227as_write_fail=0
11228cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11229#! $SHELL
11230# Generated by $as_me.
11231# Run this file to recreate the current configuration.
11232# Compiler output produced by configure, useful for debugging
11233# configure, is in config.log if it exists.
11234
11235debug=false
11236ac_cs_recheck=false
11237ac_cs_silent=false
11238
11239SHELL=\${CONFIG_SHELL-$SHELL}
11240export SHELL
11241_ASEOF
11242cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11243## -------------------- ##
11244## M4sh Initialization. ##
11245## -------------------- ##
11246
11247# Be more Bourne compatible
11248DUALCASE=1; export DUALCASE # for MKS sh
11249if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11250  emulate sh
11251  NULLCMD=:
11252  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11253  # is contrary to our usage.  Disable this feature.
11254  alias -g '${1+"$@"}'='"$@"'
11255  setopt NO_GLOB_SUBST
11256else
11257  case `(set -o) 2>/dev/null` in #(
11258  *posix*) :
11259    set -o posix ;; #(
11260  *) :
11261     ;;
11262esac
11263fi
11264
11265
11266as_nl='
11267'
11268export as_nl
11269# Printing a long string crashes Solaris 7 /usr/bin/printf.
11270as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11271as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11272as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11273# Prefer a ksh shell builtin over an external printf program on Solaris,
11274# but without wasting forks for bash or zsh.
11275if test -z "$BASH_VERSION$ZSH_VERSION" \
11276    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11277  as_echo='print -r --'
11278  as_echo_n='print -rn --'
11279elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11280  as_echo='printf %s\n'
11281  as_echo_n='printf %s'
11282else
11283  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11284    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11285    as_echo_n='/usr/ucb/echo -n'
11286  else
11287    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11288    as_echo_n_body='eval
11289      arg=$1;
11290      case $arg in #(
11291      *"$as_nl"*)
11292	expr "X$arg" : "X\\(.*\\)$as_nl";
11293	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11294      esac;
11295      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11296    '
11297    export as_echo_n_body
11298    as_echo_n='sh -c $as_echo_n_body as_echo'
11299  fi
11300  export as_echo_body
11301  as_echo='sh -c $as_echo_body as_echo'
11302fi
11303
11304# The user is always right.
11305if test "${PATH_SEPARATOR+set}" != set; then
11306  PATH_SEPARATOR=:
11307  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11308    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11309      PATH_SEPARATOR=';'
11310  }
11311fi
11312
11313
11314# IFS
11315# We need space, tab and new line, in precisely that order.  Quoting is
11316# there to prevent editors from complaining about space-tab.
11317# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11318# splitting by setting IFS to empty value.)
11319IFS=" ""	$as_nl"
11320
11321# Find who we are.  Look in the path if we contain no directory separator.
11322as_myself=
11323case $0 in #((
11324  *[\\/]* ) as_myself=$0 ;;
11325  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11326for as_dir in $PATH
11327do
11328  IFS=$as_save_IFS
11329  test -z "$as_dir" && as_dir=.
11330    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11331  done
11332IFS=$as_save_IFS
11333
11334     ;;
11335esac
11336# We did not find ourselves, most probably we were run as `sh COMMAND'
11337# in which case we are not to be found in the path.
11338if test "x$as_myself" = x; then
11339  as_myself=$0
11340fi
11341if test ! -f "$as_myself"; then
11342  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11343  exit 1
11344fi
11345
11346# Unset variables that we do not need and which cause bugs (e.g. in
11347# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11348# suppresses any "Segmentation fault" message there.  '((' could
11349# trigger a bug in pdksh 5.2.14.
11350for as_var in BASH_ENV ENV MAIL MAILPATH
11351do eval test x\${$as_var+set} = xset \
11352  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11353done
11354PS1='$ '
11355PS2='> '
11356PS4='+ '
11357
11358# NLS nuisances.
11359LC_ALL=C
11360export LC_ALL
11361LANGUAGE=C
11362export LANGUAGE
11363
11364# CDPATH.
11365(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11366
11367
11368# as_fn_error STATUS ERROR [LINENO LOG_FD]
11369# ----------------------------------------
11370# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11371# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11372# script with STATUS, using 1 if that was 0.
11373as_fn_error ()
11374{
11375  as_status=$1; test $as_status -eq 0 && as_status=1
11376  if test "$4"; then
11377    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11378    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11379  fi
11380  $as_echo "$as_me: error: $2" >&2
11381  as_fn_exit $as_status
11382} # as_fn_error
11383
11384
11385# as_fn_set_status STATUS
11386# -----------------------
11387# Set $? to STATUS, without forking.
11388as_fn_set_status ()
11389{
11390  return $1
11391} # as_fn_set_status
11392
11393# as_fn_exit STATUS
11394# -----------------
11395# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11396as_fn_exit ()
11397{
11398  set +e
11399  as_fn_set_status $1
11400  exit $1
11401} # as_fn_exit
11402
11403# as_fn_unset VAR
11404# ---------------
11405# Portably unset VAR.
11406as_fn_unset ()
11407{
11408  { eval $1=; unset $1;}
11409}
11410as_unset=as_fn_unset
11411# as_fn_append VAR VALUE
11412# ----------------------
11413# Append the text in VALUE to the end of the definition contained in VAR. Take
11414# advantage of any shell optimizations that allow amortized linear growth over
11415# repeated appends, instead of the typical quadratic growth present in naive
11416# implementations.
11417if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11418  eval 'as_fn_append ()
11419  {
11420    eval $1+=\$2
11421  }'
11422else
11423  as_fn_append ()
11424  {
11425    eval $1=\$$1\$2
11426  }
11427fi # as_fn_append
11428
11429# as_fn_arith ARG...
11430# ------------------
11431# Perform arithmetic evaluation on the ARGs, and store the result in the
11432# global $as_val. Take advantage of shells that can avoid forks. The arguments
11433# must be portable across $(()) and expr.
11434if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11435  eval 'as_fn_arith ()
11436  {
11437    as_val=$(( $* ))
11438  }'
11439else
11440  as_fn_arith ()
11441  {
11442    as_val=`expr "$@" || test $? -eq 1`
11443  }
11444fi # as_fn_arith
11445
11446
11447if expr a : '\(a\)' >/dev/null 2>&1 &&
11448   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11449  as_expr=expr
11450else
11451  as_expr=false
11452fi
11453
11454if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11455  as_basename=basename
11456else
11457  as_basename=false
11458fi
11459
11460if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11461  as_dirname=dirname
11462else
11463  as_dirname=false
11464fi
11465
11466as_me=`$as_basename -- "$0" ||
11467$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11468	 X"$0" : 'X\(//\)$' \| \
11469	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11470$as_echo X/"$0" |
11471    sed '/^.*\/\([^/][^/]*\)\/*$/{
11472	    s//\1/
11473	    q
11474	  }
11475	  /^X\/\(\/\/\)$/{
11476	    s//\1/
11477	    q
11478	  }
11479	  /^X\/\(\/\).*/{
11480	    s//\1/
11481	    q
11482	  }
11483	  s/.*/./; q'`
11484
11485# Avoid depending upon Character Ranges.
11486as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11487as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11488as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11489as_cr_digits='0123456789'
11490as_cr_alnum=$as_cr_Letters$as_cr_digits
11491
11492ECHO_C= ECHO_N= ECHO_T=
11493case `echo -n x` in #(((((
11494-n*)
11495  case `echo 'xy\c'` in
11496  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11497  xy)  ECHO_C='\c';;
11498  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11499       ECHO_T='	';;
11500  esac;;
11501*)
11502  ECHO_N='-n';;
11503esac
11504
11505rm -f conf$$ conf$$.exe conf$$.file
11506if test -d conf$$.dir; then
11507  rm -f conf$$.dir/conf$$.file
11508else
11509  rm -f conf$$.dir
11510  mkdir conf$$.dir 2>/dev/null
11511fi
11512if (echo >conf$$.file) 2>/dev/null; then
11513  if ln -s conf$$.file conf$$ 2>/dev/null; then
11514    as_ln_s='ln -s'
11515    # ... but there are two gotchas:
11516    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11517    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11518    # In both cases, we have to default to `cp -p'.
11519    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11520      as_ln_s='cp -p'
11521  elif ln conf$$.file conf$$ 2>/dev/null; then
11522    as_ln_s=ln
11523  else
11524    as_ln_s='cp -p'
11525  fi
11526else
11527  as_ln_s='cp -p'
11528fi
11529rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11530rmdir conf$$.dir 2>/dev/null
11531
11532
11533# as_fn_mkdir_p
11534# -------------
11535# Create "$as_dir" as a directory, including parents if necessary.
11536as_fn_mkdir_p ()
11537{
11538
11539  case $as_dir in #(
11540  -*) as_dir=./$as_dir;;
11541  esac
11542  test -d "$as_dir" || eval $as_mkdir_p || {
11543    as_dirs=
11544    while :; do
11545      case $as_dir in #(
11546      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11547      *) as_qdir=$as_dir;;
11548      esac
11549      as_dirs="'$as_qdir' $as_dirs"
11550      as_dir=`$as_dirname -- "$as_dir" ||
11551$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11552	 X"$as_dir" : 'X\(//\)[^/]' \| \
11553	 X"$as_dir" : 'X\(//\)$' \| \
11554	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11555$as_echo X"$as_dir" |
11556    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11557	    s//\1/
11558	    q
11559	  }
11560	  /^X\(\/\/\)[^/].*/{
11561	    s//\1/
11562	    q
11563	  }
11564	  /^X\(\/\/\)$/{
11565	    s//\1/
11566	    q
11567	  }
11568	  /^X\(\/\).*/{
11569	    s//\1/
11570	    q
11571	  }
11572	  s/.*/./; q'`
11573      test -d "$as_dir" && break
11574    done
11575    test -z "$as_dirs" || eval "mkdir $as_dirs"
11576  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11577
11578
11579} # as_fn_mkdir_p
11580if mkdir -p . 2>/dev/null; then
11581  as_mkdir_p='mkdir -p "$as_dir"'
11582else
11583  test -d ./-p && rmdir ./-p
11584  as_mkdir_p=false
11585fi
11586
11587if test -x / >/dev/null 2>&1; then
11588  as_test_x='test -x'
11589else
11590  if ls -dL / >/dev/null 2>&1; then
11591    as_ls_L_option=L
11592  else
11593    as_ls_L_option=
11594  fi
11595  as_test_x='
11596    eval sh -c '\''
11597      if test -d "$1"; then
11598	test -d "$1/.";
11599      else
11600	case $1 in #(
11601	-*)set "./$1";;
11602	esac;
11603	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11604	???[sx]*):;;*)false;;esac;fi
11605    '\'' sh
11606  '
11607fi
11608as_executable_p=$as_test_x
11609
11610# Sed expression to map a string onto a valid CPP name.
11611as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11612
11613# Sed expression to map a string onto a valid variable name.
11614as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11615
11616
11617exec 6>&1
11618## ----------------------------------- ##
11619## Main body of $CONFIG_STATUS script. ##
11620## ----------------------------------- ##
11621_ASEOF
11622test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11623
11624cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11625# Save the log message, to keep $0 and so on meaningful, and to
11626# report actual input values of CONFIG_FILES etc. instead of their
11627# values after options handling.
11628ac_log="
11629This file was extended by xman $as_me 1.1.3, which was
11630generated by GNU Autoconf 2.68.  Invocation command line was
11631
11632  CONFIG_FILES    = $CONFIG_FILES
11633  CONFIG_HEADERS  = $CONFIG_HEADERS
11634  CONFIG_LINKS    = $CONFIG_LINKS
11635  CONFIG_COMMANDS = $CONFIG_COMMANDS
11636  $ $0 $@
11637
11638on `(hostname || uname -n) 2>/dev/null | sed 1q`
11639"
11640
11641_ACEOF
11642
11643case $ac_config_files in *"
11644"*) set x $ac_config_files; shift; ac_config_files=$*;;
11645esac
11646
11647case $ac_config_headers in *"
11648"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11649esac
11650
11651
11652cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11653# Files that config.status was made for.
11654config_files="$ac_config_files"
11655config_headers="$ac_config_headers"
11656config_commands="$ac_config_commands"
11657
11658_ACEOF
11659
11660cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11661ac_cs_usage="\
11662\`$as_me' instantiates files and other configuration actions
11663from templates according to the current configuration.  Unless the files
11664and actions are specified as TAGs, all are instantiated by default.
11665
11666Usage: $0 [OPTION]... [TAG]...
11667
11668  -h, --help       print this help, then exit
11669  -V, --version    print version number and configuration settings, then exit
11670      --config     print configuration, then exit
11671  -q, --quiet, --silent
11672                   do not print progress messages
11673  -d, --debug      don't remove temporary files
11674      --recheck    update $as_me by reconfiguring in the same conditions
11675      --file=FILE[:TEMPLATE]
11676                   instantiate the configuration file FILE
11677      --header=FILE[:TEMPLATE]
11678                   instantiate the configuration header FILE
11679
11680Configuration files:
11681$config_files
11682
11683Configuration headers:
11684$config_headers
11685
11686Configuration commands:
11687$config_commands
11688
11689Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11690
11691_ACEOF
11692cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11693ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11694ac_cs_version="\\
11695xman config.status 1.1.3
11696configured by $0, generated by GNU Autoconf 2.68,
11697  with options \\"\$ac_cs_config\\"
11698
11699Copyright (C) 2010 Free Software Foundation, Inc.
11700This config.status script is free software; the Free Software Foundation
11701gives unlimited permission to copy, distribute and modify it."
11702
11703ac_pwd='$ac_pwd'
11704srcdir='$srcdir'
11705INSTALL='$INSTALL'
11706MKDIR_P='$MKDIR_P'
11707AWK='$AWK'
11708test -n "\$AWK" || AWK=awk
11709_ACEOF
11710
11711cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11712# The default lists apply if the user does not specify any file.
11713ac_need_defaults=:
11714while test $# != 0
11715do
11716  case $1 in
11717  --*=?*)
11718    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11719    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11720    ac_shift=:
11721    ;;
11722  --*=)
11723    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11724    ac_optarg=
11725    ac_shift=:
11726    ;;
11727  *)
11728    ac_option=$1
11729    ac_optarg=$2
11730    ac_shift=shift
11731    ;;
11732  esac
11733
11734  case $ac_option in
11735  # Handling of the options.
11736  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11737    ac_cs_recheck=: ;;
11738  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11739    $as_echo "$ac_cs_version"; exit ;;
11740  --config | --confi | --conf | --con | --co | --c )
11741    $as_echo "$ac_cs_config"; exit ;;
11742  --debug | --debu | --deb | --de | --d | -d )
11743    debug=: ;;
11744  --file | --fil | --fi | --f )
11745    $ac_shift
11746    case $ac_optarg in
11747    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11748    '') as_fn_error $? "missing file argument" ;;
11749    esac
11750    as_fn_append CONFIG_FILES " '$ac_optarg'"
11751    ac_need_defaults=false;;
11752  --header | --heade | --head | --hea )
11753    $ac_shift
11754    case $ac_optarg in
11755    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11756    esac
11757    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11758    ac_need_defaults=false;;
11759  --he | --h)
11760    # Conflict between --help and --header
11761    as_fn_error $? "ambiguous option: \`$1'
11762Try \`$0 --help' for more information.";;
11763  --help | --hel | -h )
11764    $as_echo "$ac_cs_usage"; exit ;;
11765  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11766  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11767    ac_cs_silent=: ;;
11768
11769  # This is an error.
11770  -*) as_fn_error $? "unrecognized option: \`$1'
11771Try \`$0 --help' for more information." ;;
11772
11773  *) as_fn_append ac_config_targets " $1"
11774     ac_need_defaults=false ;;
11775
11776  esac
11777  shift
11778done
11779
11780ac_configure_extra_args=
11781
11782if $ac_cs_silent; then
11783  exec 6>/dev/null
11784  ac_configure_extra_args="$ac_configure_extra_args --silent"
11785fi
11786
11787_ACEOF
11788cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11789if \$ac_cs_recheck; then
11790  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11791  shift
11792  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11793  CONFIG_SHELL='$SHELL'
11794  export CONFIG_SHELL
11795  exec "\$@"
11796fi
11797
11798_ACEOF
11799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11800exec 5>>config.log
11801{
11802  echo
11803  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11804## Running $as_me. ##
11805_ASBOX
11806  $as_echo "$ac_log"
11807} >&5
11808
11809_ACEOF
11810cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11811#
11812# INIT-COMMANDS
11813#
11814AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11815
11816_ACEOF
11817
11818cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11819
11820# Handling of arguments.
11821for ac_config_target in $ac_config_targets
11822do
11823  case $ac_config_target in
11824    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11825    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11826    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11827    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11828
11829  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11830  esac
11831done
11832
11833
11834# If the user did not use the arguments to specify the items to instantiate,
11835# then the envvar interface is used.  Set only those that are not.
11836# We use the long form for the default assignment because of an extremely
11837# bizarre bug on SunOS 4.1.3.
11838if $ac_need_defaults; then
11839  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11840  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11841  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11842fi
11843
11844# Have a temporary directory for convenience.  Make it in the build tree
11845# simply because there is no reason against having it here, and in addition,
11846# creating and moving files from /tmp can sometimes cause problems.
11847# Hook for its removal unless debugging.
11848# Note that there is a small window in which the directory will not be cleaned:
11849# after its creation but before its name has been assigned to `$tmp'.
11850$debug ||
11851{
11852  tmp= ac_tmp=
11853  trap 'exit_status=$?
11854  : "${ac_tmp:=$tmp}"
11855  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11856' 0
11857  trap 'as_fn_exit 1' 1 2 13 15
11858}
11859# Create a (secure) tmp directory for tmp files.
11860
11861{
11862  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11863  test -d "$tmp"
11864}  ||
11865{
11866  tmp=./conf$$-$RANDOM
11867  (umask 077 && mkdir "$tmp")
11868} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11869ac_tmp=$tmp
11870
11871# Set up the scripts for CONFIG_FILES section.
11872# No need to generate them if there are no CONFIG_FILES.
11873# This happens for instance with `./config.status config.h'.
11874if test -n "$CONFIG_FILES"; then
11875
11876
11877ac_cr=`echo X | tr X '\015'`
11878# On cygwin, bash can eat \r inside `` if the user requested igncr.
11879# But we know of no other shell where ac_cr would be empty at this
11880# point, so we can use a bashism as a fallback.
11881if test "x$ac_cr" = x; then
11882  eval ac_cr=\$\'\\r\'
11883fi
11884ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11885if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11886  ac_cs_awk_cr='\\r'
11887else
11888  ac_cs_awk_cr=$ac_cr
11889fi
11890
11891echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11892_ACEOF
11893
11894
11895{
11896  echo "cat >conf$$subs.awk <<_ACEOF" &&
11897  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11898  echo "_ACEOF"
11899} >conf$$subs.sh ||
11900  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11901ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11902ac_delim='%!_!# '
11903for ac_last_try in false false false false false :; do
11904  . ./conf$$subs.sh ||
11905    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11906
11907  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11908  if test $ac_delim_n = $ac_delim_num; then
11909    break
11910  elif $ac_last_try; then
11911    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11912  else
11913    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11914  fi
11915done
11916rm -f conf$$subs.sh
11917
11918cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11919cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11920_ACEOF
11921sed -n '
11922h
11923s/^/S["/; s/!.*/"]=/
11924p
11925g
11926s/^[^!]*!//
11927:repl
11928t repl
11929s/'"$ac_delim"'$//
11930t delim
11931:nl
11932h
11933s/\(.\{148\}\)..*/\1/
11934t more1
11935s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11936p
11937n
11938b repl
11939:more1
11940s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11941p
11942g
11943s/.\{148\}//
11944t nl
11945:delim
11946h
11947s/\(.\{148\}\)..*/\1/
11948t more2
11949s/["\\]/\\&/g; s/^/"/; s/$/"/
11950p
11951b
11952:more2
11953s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11954p
11955g
11956s/.\{148\}//
11957t delim
11958' <conf$$subs.awk | sed '
11959/^[^""]/{
11960  N
11961  s/\n//
11962}
11963' >>$CONFIG_STATUS || ac_write_fail=1
11964rm -f conf$$subs.awk
11965cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11966_ACAWK
11967cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11968  for (key in S) S_is_set[key] = 1
11969  FS = ""
11970
11971}
11972{
11973  line = $ 0
11974  nfields = split(line, field, "@")
11975  substed = 0
11976  len = length(field[1])
11977  for (i = 2; i < nfields; i++) {
11978    key = field[i]
11979    keylen = length(key)
11980    if (S_is_set[key]) {
11981      value = S[key]
11982      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11983      len += length(value) + length(field[++i])
11984      substed = 1
11985    } else
11986      len += 1 + keylen
11987  }
11988
11989  print line
11990}
11991
11992_ACAWK
11993_ACEOF
11994cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11995if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11996  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11997else
11998  cat
11999fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12000  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12001_ACEOF
12002
12003# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12004# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12005# trailing colons and then remove the whole line if VPATH becomes empty
12006# (actually we leave an empty line to preserve line numbers).
12007if test "x$srcdir" = x.; then
12008  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12009h
12010s///
12011s/^/:/
12012s/[	 ]*$/:/
12013s/:\$(srcdir):/:/g
12014s/:\${srcdir}:/:/g
12015s/:@srcdir@:/:/g
12016s/^:*//
12017s/:*$//
12018x
12019s/\(=[	 ]*\).*/\1/
12020G
12021s/\n//
12022s/^[^=]*=[	 ]*$//
12023}'
12024fi
12025
12026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12027fi # test -n "$CONFIG_FILES"
12028
12029# Set up the scripts for CONFIG_HEADERS section.
12030# No need to generate them if there are no CONFIG_HEADERS.
12031# This happens for instance with `./config.status Makefile'.
12032if test -n "$CONFIG_HEADERS"; then
12033cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12034BEGIN {
12035_ACEOF
12036
12037# Transform confdefs.h into an awk script `defines.awk', embedded as
12038# here-document in config.status, that substitutes the proper values into
12039# config.h.in to produce config.h.
12040
12041# Create a delimiter string that does not exist in confdefs.h, to ease
12042# handling of long lines.
12043ac_delim='%!_!# '
12044for ac_last_try in false false :; do
12045  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12046  if test -z "$ac_tt"; then
12047    break
12048  elif $ac_last_try; then
12049    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12050  else
12051    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12052  fi
12053done
12054
12055# For the awk script, D is an array of macro values keyed by name,
12056# likewise P contains macro parameters if any.  Preserve backslash
12057# newline sequences.
12058
12059ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12060sed -n '
12061s/.\{148\}/&'"$ac_delim"'/g
12062t rset
12063:rset
12064s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12065t def
12066d
12067:def
12068s/\\$//
12069t bsnl
12070s/["\\]/\\&/g
12071s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12072D["\1"]=" \3"/p
12073s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12074d
12075:bsnl
12076s/["\\]/\\&/g
12077s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12078D["\1"]=" \3\\\\\\n"\\/p
12079t cont
12080s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12081t cont
12082d
12083:cont
12084n
12085s/.\{148\}/&'"$ac_delim"'/g
12086t clear
12087:clear
12088s/\\$//
12089t bsnlc
12090s/["\\]/\\&/g; s/^/"/; s/$/"/p
12091d
12092:bsnlc
12093s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12094b cont
12095' <confdefs.h | sed '
12096s/'"$ac_delim"'/"\\\
12097"/g' >>$CONFIG_STATUS || ac_write_fail=1
12098
12099cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12100  for (key in D) D_is_set[key] = 1
12101  FS = ""
12102}
12103/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12104  line = \$ 0
12105  split(line, arg, " ")
12106  if (arg[1] == "#") {
12107    defundef = arg[2]
12108    mac1 = arg[3]
12109  } else {
12110    defundef = substr(arg[1], 2)
12111    mac1 = arg[2]
12112  }
12113  split(mac1, mac2, "(") #)
12114  macro = mac2[1]
12115  prefix = substr(line, 1, index(line, defundef) - 1)
12116  if (D_is_set[macro]) {
12117    # Preserve the white space surrounding the "#".
12118    print prefix "define", macro P[macro] D[macro]
12119    next
12120  } else {
12121    # Replace #undef with comments.  This is necessary, for example,
12122    # in the case of _POSIX_SOURCE, which is predefined and required
12123    # on some systems where configure will not decide to define it.
12124    if (defundef == "undef") {
12125      print "/*", prefix defundef, macro, "*/"
12126      next
12127    }
12128  }
12129}
12130{ print }
12131_ACAWK
12132_ACEOF
12133cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12134  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12135fi # test -n "$CONFIG_HEADERS"
12136
12137
12138eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12139shift
12140for ac_tag
12141do
12142  case $ac_tag in
12143  :[FHLC]) ac_mode=$ac_tag; continue;;
12144  esac
12145  case $ac_mode$ac_tag in
12146  :[FHL]*:*);;
12147  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12148  :[FH]-) ac_tag=-:-;;
12149  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12150  esac
12151  ac_save_IFS=$IFS
12152  IFS=:
12153  set x $ac_tag
12154  IFS=$ac_save_IFS
12155  shift
12156  ac_file=$1
12157  shift
12158
12159  case $ac_mode in
12160  :L) ac_source=$1;;
12161  :[FH])
12162    ac_file_inputs=
12163    for ac_f
12164    do
12165      case $ac_f in
12166      -) ac_f="$ac_tmp/stdin";;
12167      *) # Look for the file first in the build tree, then in the source tree
12168	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12169	 # because $ac_f cannot contain `:'.
12170	 test -f "$ac_f" ||
12171	   case $ac_f in
12172	   [\\/$]*) false;;
12173	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12174	   esac ||
12175	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12176      esac
12177      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12178      as_fn_append ac_file_inputs " '$ac_f'"
12179    done
12180
12181    # Let's still pretend it is `configure' which instantiates (i.e., don't
12182    # use $as_me), people would be surprised to read:
12183    #    /* config.h.  Generated by config.status.  */
12184    configure_input='Generated from '`
12185	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12186	`' by configure.'
12187    if test x"$ac_file" != x-; then
12188      configure_input="$ac_file.  $configure_input"
12189      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12190$as_echo "$as_me: creating $ac_file" >&6;}
12191    fi
12192    # Neutralize special characters interpreted by sed in replacement strings.
12193    case $configure_input in #(
12194    *\&* | *\|* | *\\* )
12195       ac_sed_conf_input=`$as_echo "$configure_input" |
12196       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12197    *) ac_sed_conf_input=$configure_input;;
12198    esac
12199
12200    case $ac_tag in
12201    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12202      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12203    esac
12204    ;;
12205  esac
12206
12207  ac_dir=`$as_dirname -- "$ac_file" ||
12208$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12209	 X"$ac_file" : 'X\(//\)[^/]' \| \
12210	 X"$ac_file" : 'X\(//\)$' \| \
12211	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12212$as_echo X"$ac_file" |
12213    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12214	    s//\1/
12215	    q
12216	  }
12217	  /^X\(\/\/\)[^/].*/{
12218	    s//\1/
12219	    q
12220	  }
12221	  /^X\(\/\/\)$/{
12222	    s//\1/
12223	    q
12224	  }
12225	  /^X\(\/\).*/{
12226	    s//\1/
12227	    q
12228	  }
12229	  s/.*/./; q'`
12230  as_dir="$ac_dir"; as_fn_mkdir_p
12231  ac_builddir=.
12232
12233case "$ac_dir" in
12234.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12235*)
12236  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12237  # A ".." for each directory in $ac_dir_suffix.
12238  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12239  case $ac_top_builddir_sub in
12240  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12241  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12242  esac ;;
12243esac
12244ac_abs_top_builddir=$ac_pwd
12245ac_abs_builddir=$ac_pwd$ac_dir_suffix
12246# for backward compatibility:
12247ac_top_builddir=$ac_top_build_prefix
12248
12249case $srcdir in
12250  .)  # We are building in place.
12251    ac_srcdir=.
12252    ac_top_srcdir=$ac_top_builddir_sub
12253    ac_abs_top_srcdir=$ac_pwd ;;
12254  [\\/]* | ?:[\\/]* )  # Absolute name.
12255    ac_srcdir=$srcdir$ac_dir_suffix;
12256    ac_top_srcdir=$srcdir
12257    ac_abs_top_srcdir=$srcdir ;;
12258  *) # Relative name.
12259    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12260    ac_top_srcdir=$ac_top_build_prefix$srcdir
12261    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12262esac
12263ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12264
12265
12266  case $ac_mode in
12267  :F)
12268  #
12269  # CONFIG_FILE
12270  #
12271
12272  case $INSTALL in
12273  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12274  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12275  esac
12276  ac_MKDIR_P=$MKDIR_P
12277  case $MKDIR_P in
12278  [\\/$]* | ?:[\\/]* ) ;;
12279  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12280  esac
12281_ACEOF
12282
12283cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12284# If the template does not know about datarootdir, expand it.
12285# FIXME: This hack should be removed a few years after 2.60.
12286ac_datarootdir_hack=; ac_datarootdir_seen=
12287ac_sed_dataroot='
12288/datarootdir/ {
12289  p
12290  q
12291}
12292/@datadir@/p
12293/@docdir@/p
12294/@infodir@/p
12295/@localedir@/p
12296/@mandir@/p'
12297case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12298*datarootdir*) ac_datarootdir_seen=yes;;
12299*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12300  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12301$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12302_ACEOF
12303cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12304  ac_datarootdir_hack='
12305  s&@datadir@&$datadir&g
12306  s&@docdir@&$docdir&g
12307  s&@infodir@&$infodir&g
12308  s&@localedir@&$localedir&g
12309  s&@mandir@&$mandir&g
12310  s&\\\${datarootdir}&$datarootdir&g' ;;
12311esac
12312_ACEOF
12313
12314# Neutralize VPATH when `$srcdir' = `.'.
12315# Shell code in configure.ac might set extrasub.
12316# FIXME: do we really want to maintain this feature?
12317cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12318ac_sed_extra="$ac_vpsub
12319$extrasub
12320_ACEOF
12321cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12322:t
12323/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12324s|@configure_input@|$ac_sed_conf_input|;t t
12325s&@top_builddir@&$ac_top_builddir_sub&;t t
12326s&@top_build_prefix@&$ac_top_build_prefix&;t t
12327s&@srcdir@&$ac_srcdir&;t t
12328s&@abs_srcdir@&$ac_abs_srcdir&;t t
12329s&@top_srcdir@&$ac_top_srcdir&;t t
12330s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12331s&@builddir@&$ac_builddir&;t t
12332s&@abs_builddir@&$ac_abs_builddir&;t t
12333s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12334s&@INSTALL@&$ac_INSTALL&;t t
12335s&@MKDIR_P@&$ac_MKDIR_P&;t t
12336$ac_datarootdir_hack
12337"
12338eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12339  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12340
12341test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12342  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12343  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12344      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12345  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12346which seems to be undefined.  Please make sure it is defined" >&5
12347$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12348which seems to be undefined.  Please make sure it is defined" >&2;}
12349
12350  rm -f "$ac_tmp/stdin"
12351  case $ac_file in
12352  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12353  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12354  esac \
12355  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12356 ;;
12357  :H)
12358  #
12359  # CONFIG_HEADER
12360  #
12361  if test x"$ac_file" != x-; then
12362    {
12363      $as_echo "/* $configure_input  */" \
12364      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12365    } >"$ac_tmp/config.h" \
12366      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12367    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12368      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12369$as_echo "$as_me: $ac_file is unchanged" >&6;}
12370    else
12371      rm -f "$ac_file"
12372      mv "$ac_tmp/config.h" "$ac_file" \
12373	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12374    fi
12375  else
12376    $as_echo "/* $configure_input  */" \
12377      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12378      || as_fn_error $? "could not create -" "$LINENO" 5
12379  fi
12380# Compute "$ac_file"'s index in $config_headers.
12381_am_arg="$ac_file"
12382_am_stamp_count=1
12383for _am_header in $config_headers :; do
12384  case $_am_header in
12385    $_am_arg | $_am_arg:* )
12386      break ;;
12387    * )
12388      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12389  esac
12390done
12391echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12392$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12393	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12394	 X"$_am_arg" : 'X\(//\)$' \| \
12395	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12396$as_echo X"$_am_arg" |
12397    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12398	    s//\1/
12399	    q
12400	  }
12401	  /^X\(\/\/\)[^/].*/{
12402	    s//\1/
12403	    q
12404	  }
12405	  /^X\(\/\/\)$/{
12406	    s//\1/
12407	    q
12408	  }
12409	  /^X\(\/\).*/{
12410	    s//\1/
12411	    q
12412	  }
12413	  s/.*/./; q'`/stamp-h$_am_stamp_count
12414 ;;
12415
12416  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12417$as_echo "$as_me: executing $ac_file commands" >&6;}
12418 ;;
12419  esac
12420
12421
12422  case $ac_file$ac_mode in
12423    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12424  # Older Autoconf quotes --file arguments for eval, but not when files
12425  # are listed without --file.  Let's play safe and only enable the eval
12426  # if we detect the quoting.
12427  case $CONFIG_FILES in
12428  *\'*) eval set x "$CONFIG_FILES" ;;
12429  *)   set x $CONFIG_FILES ;;
12430  esac
12431  shift
12432  for mf
12433  do
12434    # Strip MF so we end up with the name of the file.
12435    mf=`echo "$mf" | sed -e 's/:.*$//'`
12436    # Check whether this is an Automake generated Makefile or not.
12437    # We used to match only the files named 'Makefile.in', but
12438    # some people rename them; so instead we look at the file content.
12439    # Grep'ing the first line is not enough: some people post-process
12440    # each Makefile.in and add a new line on top of each file to say so.
12441    # Grep'ing the whole file is not good either: AIX grep has a line
12442    # limit of 2048, but all sed's we know have understand at least 4000.
12443    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12444      dirpart=`$as_dirname -- "$mf" ||
12445$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12446	 X"$mf" : 'X\(//\)[^/]' \| \
12447	 X"$mf" : 'X\(//\)$' \| \
12448	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12449$as_echo X"$mf" |
12450    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12451	    s//\1/
12452	    q
12453	  }
12454	  /^X\(\/\/\)[^/].*/{
12455	    s//\1/
12456	    q
12457	  }
12458	  /^X\(\/\/\)$/{
12459	    s//\1/
12460	    q
12461	  }
12462	  /^X\(\/\).*/{
12463	    s//\1/
12464	    q
12465	  }
12466	  s/.*/./; q'`
12467    else
12468      continue
12469    fi
12470    # Extract the definition of DEPDIR, am__include, and am__quote
12471    # from the Makefile without running 'make'.
12472    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12473    test -z "$DEPDIR" && continue
12474    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12475    test -z "$am__include" && continue
12476    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12477    # Find all dependency output files, they are included files with
12478    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12479    # simplest approach to changing $(DEPDIR) to its actual value in the
12480    # expansion.
12481    for file in `sed -n "
12482      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12483	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12484      # Make sure the directory exists.
12485      test -f "$dirpart/$file" && continue
12486      fdir=`$as_dirname -- "$file" ||
12487$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12488	 X"$file" : 'X\(//\)[^/]' \| \
12489	 X"$file" : 'X\(//\)$' \| \
12490	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12491$as_echo X"$file" |
12492    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12493	    s//\1/
12494	    q
12495	  }
12496	  /^X\(\/\/\)[^/].*/{
12497	    s//\1/
12498	    q
12499	  }
12500	  /^X\(\/\/\)$/{
12501	    s//\1/
12502	    q
12503	  }
12504	  /^X\(\/\).*/{
12505	    s//\1/
12506	    q
12507	  }
12508	  s/.*/./; q'`
12509      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12510      # echo "creating $dirpart/$file"
12511      echo '# dummy' > "$dirpart/$file"
12512    done
12513  done
12514}
12515 ;;
12516
12517  esac
12518done # for ac_tag
12519
12520
12521as_fn_exit 0
12522_ACEOF
12523ac_clean_files=$ac_clean_files_save
12524
12525test $ac_write_fail = 0 ||
12526  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12527
12528
12529# configure is writing to config.log, and then calls config.status.
12530# config.status does its own redirection, appending to config.log.
12531# Unfortunately, on DOS this fails, as config.log is still kept open
12532# by configure, so config.status won't be able to write to it; its
12533# output is simply discarded.  So we exec the FD to /dev/null,
12534# effectively closing config.log, so it can be properly (re)opened and
12535# appended to by config.status.  When coming back to configure, we
12536# need to make the FD available again.
12537if test "$no_create" != yes; then
12538  ac_cs_success=:
12539  ac_config_status_args=
12540  test "$silent" = yes &&
12541    ac_config_status_args="$ac_config_status_args --quiet"
12542  exec 5>/dev/null
12543  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12544  exec 5>>config.log
12545  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12546  # would make configure fail if this is the last instruction.
12547  $ac_cs_success || as_fn_exit 1
12548fi
12549if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12550  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12551$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12552fi
12553
12554