configure revision 972599cf
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xorg-docs 1.7.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194	 /*)
195	   for as_base in sh bash ksh sh5; do
196	     # Try only shells that exist, to save several forks.
197	     as_shell=$as_dir/$as_base
198	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205	   done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218	# neutralization value for shells without unset; and this also
219	# works around shells that cannot unset nonexistent variables.
220	# Preserve -v and -x to the replacement shell.
221	BASH_ENV=/dev/null
222	ENV=/dev/null
223	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224	export CONFIG_SHELL
225	case $- in # ((((
226	  *v*x* | *x*v* ) as_opts=-vx ;;
227	  *v* ) as_opts=-v ;;
228	  *x* ) as_opts=-x ;;
229	  * ) as_opts= ;;
230	esac
231	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243$0: about your system, including any error possibly output
244$0: before this message. Then install a modern shell, or
245$0: manually run the script under such a shell if you do
246$0: have one."
247  fi
248  exit 1
249fi
250fi
251fi
252SHELL=${CONFIG_SHELL-/bin/sh}
253export SHELL
254# Unset more variables known to interfere with behavior of common tools.
255CLICOLOR_FORCE= GREP_OPTIONS=
256unset CLICOLOR_FORCE GREP_OPTIONS
257
258## --------------------- ##
259## M4sh Shell Functions. ##
260## --------------------- ##
261# as_fn_unset VAR
262# ---------------
263# Portably unset VAR.
264as_fn_unset ()
265{
266  { eval $1=; unset $1;}
267}
268as_unset=as_fn_unset
269
270# as_fn_set_status STATUS
271# -----------------------
272# Set $? to STATUS, without forking.
273as_fn_set_status ()
274{
275  return $1
276} # as_fn_set_status
277
278# as_fn_exit STATUS
279# -----------------
280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281as_fn_exit ()
282{
283  set +e
284  as_fn_set_status $1
285  exit $1
286} # as_fn_exit
287
288# as_fn_mkdir_p
289# -------------
290# Create "$as_dir" as a directory, including parents if necessary.
291as_fn_mkdir_p ()
292{
293
294  case $as_dir in #(
295  -*) as_dir=./$as_dir;;
296  esac
297  test -d "$as_dir" || eval $as_mkdir_p || {
298    as_dirs=
299    while :; do
300      case $as_dir in #(
301      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302      *) as_qdir=$as_dir;;
303      esac
304      as_dirs="'$as_qdir' $as_dirs"
305      as_dir=`$as_dirname -- "$as_dir" ||
306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307	 X"$as_dir" : 'X\(//\)[^/]' \| \
308	 X"$as_dir" : 'X\(//\)$' \| \
309	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310$as_echo X"$as_dir" |
311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\/\)[^/].*/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\/\)$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\).*/{
324	    s//\1/
325	    q
326	  }
327	  s/.*/./; q'`
328      test -d "$as_dir" && break
329    done
330    test -z "$as_dirs" || eval "mkdir $as_dirs"
331  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334} # as_fn_mkdir_p
335# as_fn_append VAR VALUE
336# ----------------------
337# Append the text in VALUE to the end of the definition contained in VAR. Take
338# advantage of any shell optimizations that allow amortized linear growth over
339# repeated appends, instead of the typical quadratic growth present in naive
340# implementations.
341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342  eval 'as_fn_append ()
343  {
344    eval $1+=\$2
345  }'
346else
347  as_fn_append ()
348  {
349    eval $1=\$$1\$2
350  }
351fi # as_fn_append
352
353# as_fn_arith ARG...
354# ------------------
355# Perform arithmetic evaluation on the ARGs, and store the result in the
356# global $as_val. Take advantage of shells that can avoid forks. The arguments
357# must be portable across $(()) and expr.
358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359  eval 'as_fn_arith ()
360  {
361    as_val=$(( $* ))
362  }'
363else
364  as_fn_arith ()
365  {
366    as_val=`expr "$@" || test $? -eq 1`
367  }
368fi # as_fn_arith
369
370
371# as_fn_error STATUS ERROR [LINENO LOG_FD]
372# ----------------------------------------
373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375# script with STATUS, using 1 if that was 0.
376as_fn_error ()
377{
378  as_status=$1; test $as_status -eq 0 && as_status=1
379  if test "$4"; then
380    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382  fi
383  $as_echo "$as_me: error: $2" >&2
384  as_fn_exit $as_status
385} # as_fn_error
386
387if expr a : '\(a\)' >/dev/null 2>&1 &&
388   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389  as_expr=expr
390else
391  as_expr=false
392fi
393
394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395  as_basename=basename
396else
397  as_basename=false
398fi
399
400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401  as_dirname=dirname
402else
403  as_dirname=false
404fi
405
406as_me=`$as_basename -- "$0" ||
407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408	 X"$0" : 'X\(//\)$' \| \
409	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410$as_echo X/"$0" |
411    sed '/^.*\/\([^/][^/]*\)\/*$/{
412	    s//\1/
413	    q
414	  }
415	  /^X\/\(\/\/\)$/{
416	    s//\1/
417	    q
418	  }
419	  /^X\/\(\/\).*/{
420	    s//\1/
421	    q
422	  }
423	  s/.*/./; q'`
424
425# Avoid depending upon Character Ranges.
426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429as_cr_digits='0123456789'
430as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456  # Don't try to exec as it changes $[0], causing all sort of problems
457  # (the dirname of $[0] is not the place where we might find the
458  # original and so on.  Autoconf is especially sensitive to this).
459  . "./$as_me.lineno"
460  # Exit status is that of the last command.
461  exit
462}
463
464ECHO_C= ECHO_N= ECHO_T=
465case `echo -n x` in #(((((
466-n*)
467  case `echo 'xy\c'` in
468  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469  xy)  ECHO_C='\c';;
470  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471       ECHO_T='	';;
472  esac;;
473*)
474  ECHO_N='-n';;
475esac
476
477rm -f conf$$ conf$$.exe conf$$.file
478if test -d conf$$.dir; then
479  rm -f conf$$.dir/conf$$.file
480else
481  rm -f conf$$.dir
482  mkdir conf$$.dir 2>/dev/null
483fi
484if (echo >conf$$.file) 2>/dev/null; then
485  if ln -s conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s='ln -s'
487    # ... but there are two gotchas:
488    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490    # In both cases, we have to default to `cp -p'.
491    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492      as_ln_s='cp -p'
493  elif ln conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s=ln
495  else
496    as_ln_s='cp -p'
497  fi
498else
499  as_ln_s='cp -p'
500fi
501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502rmdir conf$$.dir 2>/dev/null
503
504if mkdir -p . 2>/dev/null; then
505  as_mkdir_p='mkdir -p "$as_dir"'
506else
507  test -d ./-p && rmdir ./-p
508  as_mkdir_p=false
509fi
510
511if test -x / >/dev/null 2>&1; then
512  as_test_x='test -x'
513else
514  if ls -dL / >/dev/null 2>&1; then
515    as_ls_L_option=L
516  else
517    as_ls_L_option=
518  fi
519  as_test_x='
520    eval sh -c '\''
521      if test -d "$1"; then
522	test -d "$1/.";
523      else
524	case $1 in #(
525	-*)set "./$1";;
526	esac;
527	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528	???[sx]*):;;*)false;;esac;fi
529    '\'' sh
530  '
531fi
532as_executable_p=$as_test_x
533
534# Sed expression to map a string onto a valid CPP name.
535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537# Sed expression to map a string onto a valid variable name.
538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540as_awk_strverscmp='
541  # Use only awk features that work with 7th edition Unix awk (1978).
542  # My, what an old awk you have, Mr. Solaris!
543  END {
544    while (length(v1) && length(v2)) {
545      # Set d1 to be the next thing to compare from v1, and likewise for d2.
546      # Normally this is a single character, but if v1 and v2 contain digits,
547      # compare them as integers and fractions as strverscmp does.
548      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
549	# Split v1 and v2 into their leading digit string components d1 and d2,
550	# and advance v1 and v2 past the leading digit strings.
551	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
552	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
553	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
554	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
555	if (d1 ~ /^0/) {
556	  if (d2 ~ /^0/) {
557	    # Compare two fractions.
558	    while (d1 ~ /^0/ && d2 ~ /^0/) {
559	      d1 = substr(d1, 2); len1--
560	      d2 = substr(d2, 2); len2--
561	    }
562	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
563	      # The two components differ in length, and the common prefix
564	      # contains only leading zeros.  Consider the longer to be less.
565	      d1 = -len1
566	      d2 = -len2
567	    } else {
568	      # Otherwise, compare as strings.
569	      d1 = "x" d1
570	      d2 = "x" d2
571	    }
572	  } else {
573	    # A fraction is less than an integer.
574	    exit 1
575	  }
576	} else {
577	  if (d2 ~ /^0/) {
578	    # An integer is greater than a fraction.
579	    exit 2
580	  } else {
581	    # Compare two integers.
582	    d1 += 0
583	    d2 += 0
584	  }
585	}
586      } else {
587	# The normal case, without worrying about digits.
588	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
589	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
590      }
591      if (d1 < d2) exit 1
592      if (d1 > d2) exit 2
593    }
594    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
595    # which mishandles some comparisons of empty strings to integers.
596    if (length(v2)) exit 1
597    if (length(v1)) exit 2
598  }
599'
600
601test -n "$DJDIR" || exec 7<&0 </dev/null
602exec 6>&1
603
604# Name of the host.
605# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606# so uname gets run too.
607ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609#
610# Initializations.
611#
612ac_default_prefix=/usr/local
613ac_clean_files=
614ac_config_libobj_dir=.
615LIBOBJS=
616cross_compiling=no
617subdirs=
618MFLAGS=
619MAKEFLAGS=
620
621# Identity of this package.
622PACKAGE_NAME='xorg-docs'
623PACKAGE_TARNAME='xorg-docs'
624PACKAGE_VERSION='1.7'
625PACKAGE_STRING='xorg-docs 1.7'
626PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
627PACKAGE_URL=''
628
629ac_unique_file="Makefile.am"
630# Factoring default headers for most tests.
631ac_includes_default="\
632#include <stdio.h>
633#ifdef HAVE_SYS_TYPES_H
634# include <sys/types.h>
635#endif
636#ifdef HAVE_SYS_STAT_H
637# include <sys/stat.h>
638#endif
639#ifdef STDC_HEADERS
640# include <stdlib.h>
641# include <stddef.h>
642#else
643# ifdef HAVE_STDLIB_H
644#  include <stdlib.h>
645# endif
646#endif
647#ifdef HAVE_STRING_H
648# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
649#  include <memory.h>
650# endif
651# include <string.h>
652#endif
653#ifdef HAVE_STRINGS_H
654# include <strings.h>
655#endif
656#ifdef HAVE_INTTYPES_H
657# include <inttypes.h>
658#endif
659#ifdef HAVE_STDINT_H
660# include <stdint.h>
661#endif
662#ifdef HAVE_UNISTD_H
663# include <unistd.h>
664#endif"
665
666ac_subst_vars='am__EXEEXT_FALSE
667am__EXEEXT_TRUE
668LTLIBOBJS
669LIBOBJS
670HAVE_STYLESHEETS_FALSE
671HAVE_STYLESHEETS_TRUE
672XSL_STYLESHEET
673STYLESHEET_SRCDIR
674XORG_SGML_PATH
675HAVE_FOP_FALSE
676HAVE_FOP_TRUE
677FOP
678HAVE_XSLTPROC_FALSE
679HAVE_XSLTPROC_TRUE
680XSLTPROC
681HAVE_XMLTO_FALSE
682HAVE_XMLTO_TRUE
683HAVE_XMLTO_TEXT_FALSE
684HAVE_XMLTO_TEXT_TRUE
685XMLTO
686ENABLE_SPECS_FALSE
687ENABLE_SPECS_TRUE
688ENABLE_DOCS_FALSE
689ENABLE_DOCS_TRUE
690AM_BACKSLASH
691AM_DEFAULT_VERBOSITY
692MAN_SUBSTS
693XORG_MAN_PAGE
694ADMIN_MAN_DIR
695DRIVER_MAN_DIR
696MISC_MAN_DIR
697FILE_MAN_DIR
698LIB_MAN_DIR
699APP_MAN_DIR
700ADMIN_MAN_SUFFIX
701DRIVER_MAN_SUFFIX
702MISC_MAN_SUFFIX
703FILE_MAN_SUFFIX
704LIB_MAN_SUFFIX
705APP_MAN_SUFFIX
706SED
707host_os
708host_vendor
709host_cpu
710host
711build_os
712build_vendor
713build_cpu
714build
715INSTALL_CMD
716PKG_CONFIG
717CHANGELOG_CMD
718STRICT_CFLAGS
719CWARNFLAGS
720BASE_CFLAGS
721EGREP
722GREP
723CPP
724am__fastdepCC_FALSE
725am__fastdepCC_TRUE
726CCDEPMODE
727am__nodep
728AMDEPBACKSLASH
729AMDEP_FALSE
730AMDEP_TRUE
731am__quote
732am__include
733DEPDIR
734OBJEXT
735EXEEXT
736ac_ct_CC
737CPPFLAGS
738LDFLAGS
739CFLAGS
740CC
741MAINT
742MAINTAINER_MODE_FALSE
743MAINTAINER_MODE_TRUE
744am__untar
745am__tar
746AMTAR
747am__leading_dot
748SET_MAKE
749AWK
750mkdir_p
751MKDIR_P
752INSTALL_STRIP_PROGRAM
753STRIP
754install_sh
755MAKEINFO
756AUTOHEADER
757AUTOMAKE
758AUTOCONF
759ACLOCAL
760VERSION
761PACKAGE
762CYGPATH_W
763am__isrc
764INSTALL_DATA
765INSTALL_SCRIPT
766INSTALL_PROGRAM
767target_alias
768host_alias
769build_alias
770LIBS
771ECHO_T
772ECHO_N
773ECHO_C
774DEFS
775mandir
776localedir
777libdir
778psdir
779pdfdir
780dvidir
781htmldir
782infodir
783docdir
784oldincludedir
785includedir
786localstatedir
787sharedstatedir
788sysconfdir
789datadir
790datarootdir
791libexecdir
792sbindir
793bindir
794program_transform_name
795prefix
796exec_prefix
797PACKAGE_URL
798PACKAGE_BUGREPORT
799PACKAGE_STRING
800PACKAGE_VERSION
801PACKAGE_TARNAME
802PACKAGE_NAME
803PATH_SEPARATOR
804SHELL'
805ac_subst_files=''
806ac_user_opts='
807enable_option_checking
808enable_maintainer_mode
809enable_dependency_tracking
810enable_selective_werror
811enable_strict_compilation
812enable_silent_rules
813enable_docs
814enable_specs
815with_xmlto
816with_xsltproc
817with_fop
818'
819      ac_precious_vars='build_alias
820host_alias
821target_alias
822CC
823CFLAGS
824LDFLAGS
825LIBS
826CPPFLAGS
827CPP
828PKG_CONFIG
829XMLTO
830XSLTPROC
831FOP'
832
833
834# Initialize some variables set by options.
835ac_init_help=
836ac_init_version=false
837ac_unrecognized_opts=
838ac_unrecognized_sep=
839# The variables have the same names as the options, with
840# dashes changed to underlines.
841cache_file=/dev/null
842exec_prefix=NONE
843no_create=
844no_recursion=
845prefix=NONE
846program_prefix=NONE
847program_suffix=NONE
848program_transform_name=s,x,x,
849silent=
850site=
851srcdir=
852verbose=
853x_includes=NONE
854x_libraries=NONE
855
856# Installation directory options.
857# These are left unexpanded so users can "make install exec_prefix=/foo"
858# and all the variables that are supposed to be based on exec_prefix
859# by default will actually change.
860# Use braces instead of parens because sh, perl, etc. also accept them.
861# (The list follows the same order as the GNU Coding Standards.)
862bindir='${exec_prefix}/bin'
863sbindir='${exec_prefix}/sbin'
864libexecdir='${exec_prefix}/libexec'
865datarootdir='${prefix}/share'
866datadir='${datarootdir}'
867sysconfdir='${prefix}/etc'
868sharedstatedir='${prefix}/com'
869localstatedir='${prefix}/var'
870includedir='${prefix}/include'
871oldincludedir='/usr/include'
872docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873infodir='${datarootdir}/info'
874htmldir='${docdir}'
875dvidir='${docdir}'
876pdfdir='${docdir}'
877psdir='${docdir}'
878libdir='${exec_prefix}/lib'
879localedir='${datarootdir}/locale'
880mandir='${datarootdir}/man'
881
882ac_prev=
883ac_dashdash=
884for ac_option
885do
886  # If the previous option needs an argument, assign it.
887  if test -n "$ac_prev"; then
888    eval $ac_prev=\$ac_option
889    ac_prev=
890    continue
891  fi
892
893  case $ac_option in
894  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895  *=)   ac_optarg= ;;
896  *)    ac_optarg=yes ;;
897  esac
898
899  # Accept the important Cygnus configure options, so we can diagnose typos.
900
901  case $ac_dashdash$ac_option in
902  --)
903    ac_dashdash=yes ;;
904
905  -bindir | --bindir | --bindi | --bind | --bin | --bi)
906    ac_prev=bindir ;;
907  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
908    bindir=$ac_optarg ;;
909
910  -build | --build | --buil | --bui | --bu)
911    ac_prev=build_alias ;;
912  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
913    build_alias=$ac_optarg ;;
914
915  -cache-file | --cache-file | --cache-fil | --cache-fi \
916  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
917    ac_prev=cache_file ;;
918  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
919  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
920    cache_file=$ac_optarg ;;
921
922  --config-cache | -C)
923    cache_file=config.cache ;;
924
925  -datadir | --datadir | --datadi | --datad)
926    ac_prev=datadir ;;
927  -datadir=* | --datadir=* | --datadi=* | --datad=*)
928    datadir=$ac_optarg ;;
929
930  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
931  | --dataroo | --dataro | --datar)
932    ac_prev=datarootdir ;;
933  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
934  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
935    datarootdir=$ac_optarg ;;
936
937  -disable-* | --disable-*)
938    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939    # Reject names that are not valid shell variable names.
940    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941      as_fn_error $? "invalid feature name: $ac_useropt"
942    ac_useropt_orig=$ac_useropt
943    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944    case $ac_user_opts in
945      *"
946"enable_$ac_useropt"
947"*) ;;
948      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
949	 ac_unrecognized_sep=', ';;
950    esac
951    eval enable_$ac_useropt=no ;;
952
953  -docdir | --docdir | --docdi | --doc | --do)
954    ac_prev=docdir ;;
955  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
956    docdir=$ac_optarg ;;
957
958  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
959    ac_prev=dvidir ;;
960  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
961    dvidir=$ac_optarg ;;
962
963  -enable-* | --enable-*)
964    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
965    # Reject names that are not valid shell variable names.
966    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967      as_fn_error $? "invalid feature name: $ac_useropt"
968    ac_useropt_orig=$ac_useropt
969    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970    case $ac_user_opts in
971      *"
972"enable_$ac_useropt"
973"*) ;;
974      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
975	 ac_unrecognized_sep=', ';;
976    esac
977    eval enable_$ac_useropt=\$ac_optarg ;;
978
979  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
980  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
981  | --exec | --exe | --ex)
982    ac_prev=exec_prefix ;;
983  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
984  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
985  | --exec=* | --exe=* | --ex=*)
986    exec_prefix=$ac_optarg ;;
987
988  -gas | --gas | --ga | --g)
989    # Obsolete; use --with-gas.
990    with_gas=yes ;;
991
992  -help | --help | --hel | --he | -h)
993    ac_init_help=long ;;
994  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
995    ac_init_help=recursive ;;
996  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
997    ac_init_help=short ;;
998
999  -host | --host | --hos | --ho)
1000    ac_prev=host_alias ;;
1001  -host=* | --host=* | --hos=* | --ho=*)
1002    host_alias=$ac_optarg ;;
1003
1004  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1005    ac_prev=htmldir ;;
1006  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1007  | --ht=*)
1008    htmldir=$ac_optarg ;;
1009
1010  -includedir | --includedir | --includedi | --included | --include \
1011  | --includ | --inclu | --incl | --inc)
1012    ac_prev=includedir ;;
1013  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1014  | --includ=* | --inclu=* | --incl=* | --inc=*)
1015    includedir=$ac_optarg ;;
1016
1017  -infodir | --infodir | --infodi | --infod | --info | --inf)
1018    ac_prev=infodir ;;
1019  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1020    infodir=$ac_optarg ;;
1021
1022  -libdir | --libdir | --libdi | --libd)
1023    ac_prev=libdir ;;
1024  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1025    libdir=$ac_optarg ;;
1026
1027  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1028  | --libexe | --libex | --libe)
1029    ac_prev=libexecdir ;;
1030  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1031  | --libexe=* | --libex=* | --libe=*)
1032    libexecdir=$ac_optarg ;;
1033
1034  -localedir | --localedir | --localedi | --localed | --locale)
1035    ac_prev=localedir ;;
1036  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1037    localedir=$ac_optarg ;;
1038
1039  -localstatedir | --localstatedir | --localstatedi | --localstated \
1040  | --localstate | --localstat | --localsta | --localst | --locals)
1041    ac_prev=localstatedir ;;
1042  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1043  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1044    localstatedir=$ac_optarg ;;
1045
1046  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1047    ac_prev=mandir ;;
1048  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1049    mandir=$ac_optarg ;;
1050
1051  -nfp | --nfp | --nf)
1052    # Obsolete; use --without-fp.
1053    with_fp=no ;;
1054
1055  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1056  | --no-cr | --no-c | -n)
1057    no_create=yes ;;
1058
1059  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1060  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1061    no_recursion=yes ;;
1062
1063  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1064  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1065  | --oldin | --oldi | --old | --ol | --o)
1066    ac_prev=oldincludedir ;;
1067  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1068  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1069  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1070    oldincludedir=$ac_optarg ;;
1071
1072  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1073    ac_prev=prefix ;;
1074  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1075    prefix=$ac_optarg ;;
1076
1077  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1078  | --program-pre | --program-pr | --program-p)
1079    ac_prev=program_prefix ;;
1080  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1081  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1082    program_prefix=$ac_optarg ;;
1083
1084  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1085  | --program-suf | --program-su | --program-s)
1086    ac_prev=program_suffix ;;
1087  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1088  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1089    program_suffix=$ac_optarg ;;
1090
1091  -program-transform-name | --program-transform-name \
1092  | --program-transform-nam | --program-transform-na \
1093  | --program-transform-n | --program-transform- \
1094  | --program-transform | --program-transfor \
1095  | --program-transfo | --program-transf \
1096  | --program-trans | --program-tran \
1097  | --progr-tra | --program-tr | --program-t)
1098    ac_prev=program_transform_name ;;
1099  -program-transform-name=* | --program-transform-name=* \
1100  | --program-transform-nam=* | --program-transform-na=* \
1101  | --program-transform-n=* | --program-transform-=* \
1102  | --program-transform=* | --program-transfor=* \
1103  | --program-transfo=* | --program-transf=* \
1104  | --program-trans=* | --program-tran=* \
1105  | --progr-tra=* | --program-tr=* | --program-t=*)
1106    program_transform_name=$ac_optarg ;;
1107
1108  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1109    ac_prev=pdfdir ;;
1110  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1111    pdfdir=$ac_optarg ;;
1112
1113  -psdir | --psdir | --psdi | --psd | --ps)
1114    ac_prev=psdir ;;
1115  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1116    psdir=$ac_optarg ;;
1117
1118  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119  | -silent | --silent | --silen | --sile | --sil)
1120    silent=yes ;;
1121
1122  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1123    ac_prev=sbindir ;;
1124  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1125  | --sbi=* | --sb=*)
1126    sbindir=$ac_optarg ;;
1127
1128  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1129  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1130  | --sharedst | --shareds | --shared | --share | --shar \
1131  | --sha | --sh)
1132    ac_prev=sharedstatedir ;;
1133  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1134  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1135  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1136  | --sha=* | --sh=*)
1137    sharedstatedir=$ac_optarg ;;
1138
1139  -site | --site | --sit)
1140    ac_prev=site ;;
1141  -site=* | --site=* | --sit=*)
1142    site=$ac_optarg ;;
1143
1144  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1145    ac_prev=srcdir ;;
1146  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1147    srcdir=$ac_optarg ;;
1148
1149  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1150  | --syscon | --sysco | --sysc | --sys | --sy)
1151    ac_prev=sysconfdir ;;
1152  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1153  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1154    sysconfdir=$ac_optarg ;;
1155
1156  -target | --target | --targe | --targ | --tar | --ta | --t)
1157    ac_prev=target_alias ;;
1158  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1159    target_alias=$ac_optarg ;;
1160
1161  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1162    verbose=yes ;;
1163
1164  -version | --version | --versio | --versi | --vers | -V)
1165    ac_init_version=: ;;
1166
1167  -with-* | --with-*)
1168    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1169    # Reject names that are not valid shell variable names.
1170    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171      as_fn_error $? "invalid package name: $ac_useropt"
1172    ac_useropt_orig=$ac_useropt
1173    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174    case $ac_user_opts in
1175      *"
1176"with_$ac_useropt"
1177"*) ;;
1178      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1179	 ac_unrecognized_sep=', ';;
1180    esac
1181    eval with_$ac_useropt=\$ac_optarg ;;
1182
1183  -without-* | --without-*)
1184    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1185    # Reject names that are not valid shell variable names.
1186    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187      as_fn_error $? "invalid package name: $ac_useropt"
1188    ac_useropt_orig=$ac_useropt
1189    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190    case $ac_user_opts in
1191      *"
1192"with_$ac_useropt"
1193"*) ;;
1194      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1195	 ac_unrecognized_sep=', ';;
1196    esac
1197    eval with_$ac_useropt=no ;;
1198
1199  --x)
1200    # Obsolete; use --with-x.
1201    with_x=yes ;;
1202
1203  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1204  | --x-incl | --x-inc | --x-in | --x-i)
1205    ac_prev=x_includes ;;
1206  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1207  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1208    x_includes=$ac_optarg ;;
1209
1210  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1211  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1212    ac_prev=x_libraries ;;
1213  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1214  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1215    x_libraries=$ac_optarg ;;
1216
1217  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1218Try \`$0 --help' for more information"
1219    ;;
1220
1221  *=*)
1222    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1223    # Reject names that are not valid shell variable names.
1224    case $ac_envvar in #(
1225      '' | [0-9]* | *[!_$as_cr_alnum]* )
1226      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1227    esac
1228    eval $ac_envvar=\$ac_optarg
1229    export $ac_envvar ;;
1230
1231  *)
1232    # FIXME: should be removed in autoconf 3.0.
1233    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1234    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1236    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1237    ;;
1238
1239  esac
1240done
1241
1242if test -n "$ac_prev"; then
1243  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1244  as_fn_error $? "missing argument to $ac_option"
1245fi
1246
1247if test -n "$ac_unrecognized_opts"; then
1248  case $enable_option_checking in
1249    no) ;;
1250    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1251    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1252  esac
1253fi
1254
1255# Check all directory arguments for consistency.
1256for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257		datadir sysconfdir sharedstatedir localstatedir includedir \
1258		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259		libdir localedir mandir
1260do
1261  eval ac_val=\$$ac_var
1262  # Remove trailing slashes.
1263  case $ac_val in
1264    */ )
1265      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1266      eval $ac_var=\$ac_val;;
1267  esac
1268  # Be sure to have absolute directory names.
1269  case $ac_val in
1270    [\\/$]* | ?:[\\/]* )  continue;;
1271    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272  esac
1273  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1274done
1275
1276# There might be people who depend on the old broken behavior: `$host'
1277# used to hold the argument of --host etc.
1278# FIXME: To remove some day.
1279build=$build_alias
1280host=$host_alias
1281target=$target_alias
1282
1283# FIXME: To remove some day.
1284if test "x$host_alias" != x; then
1285  if test "x$build_alias" = x; then
1286    cross_compiling=maybe
1287    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1288    If a cross compiler is detected then cross compile mode will be used" >&2
1289  elif test "x$build_alias" != "x$host_alias"; then
1290    cross_compiling=yes
1291  fi
1292fi
1293
1294ac_tool_prefix=
1295test -n "$host_alias" && ac_tool_prefix=$host_alias-
1296
1297test "$silent" = yes && exec 6>/dev/null
1298
1299
1300ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301ac_ls_di=`ls -di .` &&
1302ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303  as_fn_error $? "working directory cannot be determined"
1304test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1305  as_fn_error $? "pwd does not report name of working directory"
1306
1307
1308# Find the source files, if location was not specified.
1309if test -z "$srcdir"; then
1310  ac_srcdir_defaulted=yes
1311  # Try the directory containing this script, then the parent directory.
1312  ac_confdir=`$as_dirname -- "$as_myself" ||
1313$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1314	 X"$as_myself" : 'X\(//\)[^/]' \| \
1315	 X"$as_myself" : 'X\(//\)$' \| \
1316	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1317$as_echo X"$as_myself" |
1318    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1319	    s//\1/
1320	    q
1321	  }
1322	  /^X\(\/\/\)[^/].*/{
1323	    s//\1/
1324	    q
1325	  }
1326	  /^X\(\/\/\)$/{
1327	    s//\1/
1328	    q
1329	  }
1330	  /^X\(\/\).*/{
1331	    s//\1/
1332	    q
1333	  }
1334	  s/.*/./; q'`
1335  srcdir=$ac_confdir
1336  if test ! -r "$srcdir/$ac_unique_file"; then
1337    srcdir=..
1338  fi
1339else
1340  ac_srcdir_defaulted=no
1341fi
1342if test ! -r "$srcdir/$ac_unique_file"; then
1343  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1344  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1345fi
1346ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1347ac_abs_confdir=`(
1348	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1349	pwd)`
1350# When building in place, set srcdir=.
1351if test "$ac_abs_confdir" = "$ac_pwd"; then
1352  srcdir=.
1353fi
1354# Remove unnecessary trailing slashes from srcdir.
1355# Double slashes in file names in object file debugging info
1356# mess up M-x gdb in Emacs.
1357case $srcdir in
1358*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1359esac
1360for ac_var in $ac_precious_vars; do
1361  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1362  eval ac_env_${ac_var}_value=\$${ac_var}
1363  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1364  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1365done
1366
1367#
1368# Report the --help message.
1369#
1370if test "$ac_init_help" = "long"; then
1371  # Omit some internal or obsolete options to make the list less imposing.
1372  # This message is too long to be a string in the A/UX 3.1 sh.
1373  cat <<_ACEOF
1374\`configure' configures xorg-docs 1.7 to adapt to many kinds of systems.
1375
1376Usage: $0 [OPTION]... [VAR=VALUE]...
1377
1378To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379VAR=VALUE.  See below for descriptions of some of the useful variables.
1380
1381Defaults for the options are specified in brackets.
1382
1383Configuration:
1384  -h, --help              display this help and exit
1385      --help=short        display options specific to this package
1386      --help=recursive    display the short help of all the included packages
1387  -V, --version           display version information and exit
1388  -q, --quiet, --silent   do not print \`checking ...' messages
1389      --cache-file=FILE   cache test results in FILE [disabled]
1390  -C, --config-cache      alias for \`--cache-file=config.cache'
1391  -n, --no-create         do not create output files
1392      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1393
1394Installation directories:
1395  --prefix=PREFIX         install architecture-independent files in PREFIX
1396                          [$ac_default_prefix]
1397  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1398                          [PREFIX]
1399
1400By default, \`make install' will install all the files in
1401\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1402an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403for instance \`--prefix=\$HOME'.
1404
1405For better control, use the options below.
1406
1407Fine tuning of the installation directories:
1408  --bindir=DIR            user executables [EPREFIX/bin]
1409  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1410  --libexecdir=DIR        program executables [EPREFIX/libexec]
1411  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1412  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1413  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1414  --libdir=DIR            object code libraries [EPREFIX/lib]
1415  --includedir=DIR        C header files [PREFIX/include]
1416  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1417  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1418  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1419  --infodir=DIR           info documentation [DATAROOTDIR/info]
1420  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1421  --mandir=DIR            man documentation [DATAROOTDIR/man]
1422  --docdir=DIR            documentation root [DATAROOTDIR/doc/xorg-docs]
1423  --htmldir=DIR           html documentation [DOCDIR]
1424  --dvidir=DIR            dvi documentation [DOCDIR]
1425  --pdfdir=DIR            pdf documentation [DOCDIR]
1426  --psdir=DIR             ps documentation [DOCDIR]
1427_ACEOF
1428
1429  cat <<\_ACEOF
1430
1431Program names:
1432  --program-prefix=PREFIX            prepend PREFIX to installed program names
1433  --program-suffix=SUFFIX            append SUFFIX to installed program names
1434  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1435
1436System types:
1437  --build=BUILD     configure for building on BUILD [guessed]
1438  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1439_ACEOF
1440fi
1441
1442if test -n "$ac_init_help"; then
1443  case $ac_init_help in
1444     short | recursive ) echo "Configuration of xorg-docs 1.7:";;
1445   esac
1446  cat <<\_ACEOF
1447
1448Optional Features:
1449  --disable-option-checking  ignore unrecognized --enable/--with options
1450  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1451  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1452  --enable-maintainer-mode  enable make rules and dependencies not useful
1453			  (and sometimes confusing) to the casual installer
1454  --disable-dependency-tracking  speeds up one-time build
1455  --enable-dependency-tracking   do not reject slow dependency extractors
1456  --disable-selective-werror
1457                          Turn off selective compiler errors. (default:
1458                          enabled)
1459  --enable-strict-compilation
1460                          Enable all warnings from compiler and make them
1461                          errors (default: disabled)
1462  --enable-silent-rules          less verbose build output (undo: `make V=1')
1463  --disable-silent-rules         verbose build output (undo: `make V=0')
1464  --enable-docs           Enable building the documentation (default: yes)
1465  --enable-specs          Enable building the specs (default: yes)
1466
1467Optional Packages:
1468  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1469  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1470  --with-xmlto            Use xmlto to regenerate documentation (default:
1471                          auto)
1472  --with-xsltproc         Use xsltproc for the transformation of XML documents
1473                          (default: auto)
1474  --with-fop              Use fop to regenerate documentation (default: auto)
1475
1476Some influential environment variables:
1477  CC          C compiler command
1478  CFLAGS      C compiler flags
1479  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1480              nonstandard directory <lib dir>
1481  LIBS        libraries to pass to the linker, e.g. -l<library>
1482  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1483              you have headers in a nonstandard directory <include dir>
1484  CPP         C preprocessor
1485  PKG_CONFIG  path to pkg-config utility
1486  XMLTO       Path to xmlto command
1487  XSLTPROC    Path to xsltproc command
1488  FOP         Path to fop command
1489
1490Use these variables to override the choices made by `configure' or to help
1491it to find libraries and programs with nonstandard names/locations.
1492
1493Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1494_ACEOF
1495ac_status=$?
1496fi
1497
1498if test "$ac_init_help" = "recursive"; then
1499  # If there are subdirs, report their specific --help.
1500  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1501    test -d "$ac_dir" ||
1502      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1503      continue
1504    ac_builddir=.
1505
1506case "$ac_dir" in
1507.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508*)
1509  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1510  # A ".." for each directory in $ac_dir_suffix.
1511  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1512  case $ac_top_builddir_sub in
1513  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515  esac ;;
1516esac
1517ac_abs_top_builddir=$ac_pwd
1518ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519# for backward compatibility:
1520ac_top_builddir=$ac_top_build_prefix
1521
1522case $srcdir in
1523  .)  # We are building in place.
1524    ac_srcdir=.
1525    ac_top_srcdir=$ac_top_builddir_sub
1526    ac_abs_top_srcdir=$ac_pwd ;;
1527  [\\/]* | ?:[\\/]* )  # Absolute name.
1528    ac_srcdir=$srcdir$ac_dir_suffix;
1529    ac_top_srcdir=$srcdir
1530    ac_abs_top_srcdir=$srcdir ;;
1531  *) # Relative name.
1532    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533    ac_top_srcdir=$ac_top_build_prefix$srcdir
1534    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535esac
1536ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537
1538    cd "$ac_dir" || { ac_status=$?; continue; }
1539    # Check for guested configure.
1540    if test -f "$ac_srcdir/configure.gnu"; then
1541      echo &&
1542      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543    elif test -f "$ac_srcdir/configure"; then
1544      echo &&
1545      $SHELL "$ac_srcdir/configure" --help=recursive
1546    else
1547      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548    fi || ac_status=$?
1549    cd "$ac_pwd" || { ac_status=$?; break; }
1550  done
1551fi
1552
1553test -n "$ac_init_help" && exit $ac_status
1554if $ac_init_version; then
1555  cat <<\_ACEOF
1556xorg-docs configure 1.7
1557generated by GNU Autoconf 2.68
1558
1559Copyright (C) 2010 Free Software Foundation, Inc.
1560This configure script is free software; the Free Software Foundation
1561gives unlimited permission to copy, distribute and modify it.
1562_ACEOF
1563  exit
1564fi
1565
1566## ------------------------ ##
1567## Autoconf initialization. ##
1568## ------------------------ ##
1569
1570# ac_fn_c_try_compile LINENO
1571# --------------------------
1572# Try to compile conftest.$ac_ext, and return whether this succeeded.
1573ac_fn_c_try_compile ()
1574{
1575  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576  rm -f conftest.$ac_objext
1577  if { { ac_try="$ac_compile"
1578case "(($ac_try" in
1579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580  *) ac_try_echo=$ac_try;;
1581esac
1582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583$as_echo "$ac_try_echo"; } >&5
1584  (eval "$ac_compile") 2>conftest.err
1585  ac_status=$?
1586  if test -s conftest.err; then
1587    grep -v '^ *+' conftest.err >conftest.er1
1588    cat conftest.er1 >&5
1589    mv -f conftest.er1 conftest.err
1590  fi
1591  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592  test $ac_status = 0; } && {
1593	 test -z "$ac_c_werror_flag" ||
1594	 test ! -s conftest.err
1595       } && test -s conftest.$ac_objext; then :
1596  ac_retval=0
1597else
1598  $as_echo "$as_me: failed program was:" >&5
1599sed 's/^/| /' conftest.$ac_ext >&5
1600
1601	ac_retval=1
1602fi
1603  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604  as_fn_set_status $ac_retval
1605
1606} # ac_fn_c_try_compile
1607
1608# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1609# ---------------------------------------------
1610# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1611# accordingly.
1612ac_fn_c_check_decl ()
1613{
1614  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615  as_decl_name=`echo $2|sed 's/ *(.*//'`
1616  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1617  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1618$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1619if eval \${$3+:} false; then :
1620  $as_echo_n "(cached) " >&6
1621else
1622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1623/* end confdefs.h.  */
1624$4
1625int
1626main ()
1627{
1628#ifndef $as_decl_name
1629#ifdef __cplusplus
1630  (void) $as_decl_use;
1631#else
1632  (void) $as_decl_name;
1633#endif
1634#endif
1635
1636  ;
1637  return 0;
1638}
1639_ACEOF
1640if ac_fn_c_try_compile "$LINENO"; then :
1641  eval "$3=yes"
1642else
1643  eval "$3=no"
1644fi
1645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1646fi
1647eval ac_res=\$$3
1648	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649$as_echo "$ac_res" >&6; }
1650  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651
1652} # ac_fn_c_check_decl
1653
1654# ac_fn_c_try_cpp LINENO
1655# ----------------------
1656# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1657ac_fn_c_try_cpp ()
1658{
1659  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660  if { { ac_try="$ac_cpp conftest.$ac_ext"
1661case "(($ac_try" in
1662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663  *) ac_try_echo=$ac_try;;
1664esac
1665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666$as_echo "$ac_try_echo"; } >&5
1667  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1668  ac_status=$?
1669  if test -s conftest.err; then
1670    grep -v '^ *+' conftest.err >conftest.er1
1671    cat conftest.er1 >&5
1672    mv -f conftest.er1 conftest.err
1673  fi
1674  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675  test $ac_status = 0; } > conftest.i && {
1676	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1677	 test ! -s conftest.err
1678       }; then :
1679  ac_retval=0
1680else
1681  $as_echo "$as_me: failed program was:" >&5
1682sed 's/^/| /' conftest.$ac_ext >&5
1683
1684    ac_retval=1
1685fi
1686  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687  as_fn_set_status $ac_retval
1688
1689} # ac_fn_c_try_cpp
1690
1691# ac_fn_c_try_run LINENO
1692# ----------------------
1693# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1694# that executables *can* be run.
1695ac_fn_c_try_run ()
1696{
1697  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698  if { { ac_try="$ac_link"
1699case "(($ac_try" in
1700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701  *) ac_try_echo=$ac_try;;
1702esac
1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704$as_echo "$ac_try_echo"; } >&5
1705  (eval "$ac_link") 2>&5
1706  ac_status=$?
1707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1709  { { case "(($ac_try" in
1710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711  *) ac_try_echo=$ac_try;;
1712esac
1713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714$as_echo "$ac_try_echo"; } >&5
1715  (eval "$ac_try") 2>&5
1716  ac_status=$?
1717  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718  test $ac_status = 0; }; }; then :
1719  ac_retval=0
1720else
1721  $as_echo "$as_me: program exited with status $ac_status" >&5
1722       $as_echo "$as_me: failed program was:" >&5
1723sed 's/^/| /' conftest.$ac_ext >&5
1724
1725       ac_retval=$ac_status
1726fi
1727  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1728  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729  as_fn_set_status $ac_retval
1730
1731} # ac_fn_c_try_run
1732
1733# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1734# -------------------------------------------------------
1735# Tests whether HEADER exists and can be compiled using the include files in
1736# INCLUDES, setting the cache variable VAR accordingly.
1737ac_fn_c_check_header_compile ()
1738{
1739  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741$as_echo_n "checking for $2... " >&6; }
1742if eval \${$3+:} false; then :
1743  $as_echo_n "(cached) " >&6
1744else
1745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746/* end confdefs.h.  */
1747$4
1748#include <$2>
1749_ACEOF
1750if ac_fn_c_try_compile "$LINENO"; then :
1751  eval "$3=yes"
1752else
1753  eval "$3=no"
1754fi
1755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1756fi
1757eval ac_res=\$$3
1758	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759$as_echo "$ac_res" >&6; }
1760  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761
1762} # ac_fn_c_check_header_compile
1763
1764# ac_fn_c_try_link LINENO
1765# -----------------------
1766# Try to link conftest.$ac_ext, and return whether this succeeded.
1767ac_fn_c_try_link ()
1768{
1769  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770  rm -f conftest.$ac_objext conftest$ac_exeext
1771  if { { ac_try="$ac_link"
1772case "(($ac_try" in
1773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774  *) ac_try_echo=$ac_try;;
1775esac
1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777$as_echo "$ac_try_echo"; } >&5
1778  (eval "$ac_link") 2>conftest.err
1779  ac_status=$?
1780  if test -s conftest.err; then
1781    grep -v '^ *+' conftest.err >conftest.er1
1782    cat conftest.er1 >&5
1783    mv -f conftest.er1 conftest.err
1784  fi
1785  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786  test $ac_status = 0; } && {
1787	 test -z "$ac_c_werror_flag" ||
1788	 test ! -s conftest.err
1789       } && test -s conftest$ac_exeext && {
1790	 test "$cross_compiling" = yes ||
1791	 $as_test_x conftest$ac_exeext
1792       }; then :
1793  ac_retval=0
1794else
1795  $as_echo "$as_me: failed program was:" >&5
1796sed 's/^/| /' conftest.$ac_ext >&5
1797
1798	ac_retval=1
1799fi
1800  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1801  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1802  # interfere with the next link command; also delete a directory that is
1803  # left behind by Apple's compiler.  We do this before executing the actions.
1804  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1805  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806  as_fn_set_status $ac_retval
1807
1808} # ac_fn_c_try_link
1809cat >config.log <<_ACEOF
1810This file contains any messages produced by compilers while
1811running configure, to aid debugging if configure makes a mistake.
1812
1813It was created by xorg-docs $as_me 1.7, which was
1814generated by GNU Autoconf 2.68.  Invocation command line was
1815
1816  $ $0 $@
1817
1818_ACEOF
1819exec 5>>config.log
1820{
1821cat <<_ASUNAME
1822## --------- ##
1823## Platform. ##
1824## --------- ##
1825
1826hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1827uname -m = `(uname -m) 2>/dev/null || echo unknown`
1828uname -r = `(uname -r) 2>/dev/null || echo unknown`
1829uname -s = `(uname -s) 2>/dev/null || echo unknown`
1830uname -v = `(uname -v) 2>/dev/null || echo unknown`
1831
1832/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1833/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1834
1835/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1836/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1837/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1838/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1839/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1840/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1841/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1842
1843_ASUNAME
1844
1845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846for as_dir in $PATH
1847do
1848  IFS=$as_save_IFS
1849  test -z "$as_dir" && as_dir=.
1850    $as_echo "PATH: $as_dir"
1851  done
1852IFS=$as_save_IFS
1853
1854} >&5
1855
1856cat >&5 <<_ACEOF
1857
1858
1859## ----------- ##
1860## Core tests. ##
1861## ----------- ##
1862
1863_ACEOF
1864
1865
1866# Keep a trace of the command line.
1867# Strip out --no-create and --no-recursion so they do not pile up.
1868# Strip out --silent because we don't want to record it for future runs.
1869# Also quote any args containing shell meta-characters.
1870# Make two passes to allow for proper duplicate-argument suppression.
1871ac_configure_args=
1872ac_configure_args0=
1873ac_configure_args1=
1874ac_must_keep_next=false
1875for ac_pass in 1 2
1876do
1877  for ac_arg
1878  do
1879    case $ac_arg in
1880    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1881    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1882    | -silent | --silent | --silen | --sile | --sil)
1883      continue ;;
1884    *\'*)
1885      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1886    esac
1887    case $ac_pass in
1888    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1889    2)
1890      as_fn_append ac_configure_args1 " '$ac_arg'"
1891      if test $ac_must_keep_next = true; then
1892	ac_must_keep_next=false # Got value, back to normal.
1893      else
1894	case $ac_arg in
1895	  *=* | --config-cache | -C | -disable-* | --disable-* \
1896	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1897	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1898	  | -with-* | --with-* | -without-* | --without-* | --x)
1899	    case "$ac_configure_args0 " in
1900	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1901	    esac
1902	    ;;
1903	  -* ) ac_must_keep_next=true ;;
1904	esac
1905      fi
1906      as_fn_append ac_configure_args " '$ac_arg'"
1907      ;;
1908    esac
1909  done
1910done
1911{ ac_configure_args0=; unset ac_configure_args0;}
1912{ ac_configure_args1=; unset ac_configure_args1;}
1913
1914# When interrupted or exit'd, cleanup temporary files, and complete
1915# config.log.  We remove comments because anyway the quotes in there
1916# would cause problems or look ugly.
1917# WARNING: Use '\'' to represent an apostrophe within the trap.
1918# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1919trap 'exit_status=$?
1920  # Save into config.log some information that might help in debugging.
1921  {
1922    echo
1923
1924    $as_echo "## ---------------- ##
1925## Cache variables. ##
1926## ---------------- ##"
1927    echo
1928    # The following way of writing the cache mishandles newlines in values,
1929(
1930  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1931    eval ac_val=\$$ac_var
1932    case $ac_val in #(
1933    *${as_nl}*)
1934      case $ac_var in #(
1935      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1936$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1937      esac
1938      case $ac_var in #(
1939      _ | IFS | as_nl) ;; #(
1940      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1941      *) { eval $ac_var=; unset $ac_var;} ;;
1942      esac ;;
1943    esac
1944  done
1945  (set) 2>&1 |
1946    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1947    *${as_nl}ac_space=\ *)
1948      sed -n \
1949	"s/'\''/'\''\\\\'\'''\''/g;
1950	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1951      ;; #(
1952    *)
1953      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1954      ;;
1955    esac |
1956    sort
1957)
1958    echo
1959
1960    $as_echo "## ----------------- ##
1961## Output variables. ##
1962## ----------------- ##"
1963    echo
1964    for ac_var in $ac_subst_vars
1965    do
1966      eval ac_val=\$$ac_var
1967      case $ac_val in
1968      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1969      esac
1970      $as_echo "$ac_var='\''$ac_val'\''"
1971    done | sort
1972    echo
1973
1974    if test -n "$ac_subst_files"; then
1975      $as_echo "## ------------------- ##
1976## File substitutions. ##
1977## ------------------- ##"
1978      echo
1979      for ac_var in $ac_subst_files
1980      do
1981	eval ac_val=\$$ac_var
1982	case $ac_val in
1983	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1984	esac
1985	$as_echo "$ac_var='\''$ac_val'\''"
1986      done | sort
1987      echo
1988    fi
1989
1990    if test -s confdefs.h; then
1991      $as_echo "## ----------- ##
1992## confdefs.h. ##
1993## ----------- ##"
1994      echo
1995      cat confdefs.h
1996      echo
1997    fi
1998    test "$ac_signal" != 0 &&
1999      $as_echo "$as_me: caught signal $ac_signal"
2000    $as_echo "$as_me: exit $exit_status"
2001  } >&5
2002  rm -f core *.core core.conftest.* &&
2003    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2004    exit $exit_status
2005' 0
2006for ac_signal in 1 2 13 15; do
2007  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2008done
2009ac_signal=0
2010
2011# confdefs.h avoids OS command line length limits that DEFS can exceed.
2012rm -f -r conftest* confdefs.h
2013
2014$as_echo "/* confdefs.h */" > confdefs.h
2015
2016# Predefined preprocessor variables.
2017
2018cat >>confdefs.h <<_ACEOF
2019#define PACKAGE_NAME "$PACKAGE_NAME"
2020_ACEOF
2021
2022cat >>confdefs.h <<_ACEOF
2023#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2024_ACEOF
2025
2026cat >>confdefs.h <<_ACEOF
2027#define PACKAGE_VERSION "$PACKAGE_VERSION"
2028_ACEOF
2029
2030cat >>confdefs.h <<_ACEOF
2031#define PACKAGE_STRING "$PACKAGE_STRING"
2032_ACEOF
2033
2034cat >>confdefs.h <<_ACEOF
2035#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2036_ACEOF
2037
2038cat >>confdefs.h <<_ACEOF
2039#define PACKAGE_URL "$PACKAGE_URL"
2040_ACEOF
2041
2042
2043# Let the site file select an alternate cache file if it wants to.
2044# Prefer an explicitly selected file to automatically selected ones.
2045ac_site_file1=NONE
2046ac_site_file2=NONE
2047if test -n "$CONFIG_SITE"; then
2048  # We do not want a PATH search for config.site.
2049  case $CONFIG_SITE in #((
2050    -*)  ac_site_file1=./$CONFIG_SITE;;
2051    */*) ac_site_file1=$CONFIG_SITE;;
2052    *)   ac_site_file1=./$CONFIG_SITE;;
2053  esac
2054elif test "x$prefix" != xNONE; then
2055  ac_site_file1=$prefix/share/config.site
2056  ac_site_file2=$prefix/etc/config.site
2057else
2058  ac_site_file1=$ac_default_prefix/share/config.site
2059  ac_site_file2=$ac_default_prefix/etc/config.site
2060fi
2061for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2062do
2063  test "x$ac_site_file" = xNONE && continue
2064  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2065    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2066$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2067    sed 's/^/| /' "$ac_site_file" >&5
2068    . "$ac_site_file" \
2069      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2070$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2071as_fn_error $? "failed to load site script $ac_site_file
2072See \`config.log' for more details" "$LINENO" 5; }
2073  fi
2074done
2075
2076if test -r "$cache_file"; then
2077  # Some versions of bash will fail to source /dev/null (special files
2078  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2079  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2080    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2081$as_echo "$as_me: loading cache $cache_file" >&6;}
2082    case $cache_file in
2083      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2084      *)                      . "./$cache_file";;
2085    esac
2086  fi
2087else
2088  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2089$as_echo "$as_me: creating cache $cache_file" >&6;}
2090  >$cache_file
2091fi
2092
2093# Check that the precious variables saved in the cache have kept the same
2094# value.
2095ac_cache_corrupted=false
2096for ac_var in $ac_precious_vars; do
2097  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2098  eval ac_new_set=\$ac_env_${ac_var}_set
2099  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2100  eval ac_new_val=\$ac_env_${ac_var}_value
2101  case $ac_old_set,$ac_new_set in
2102    set,)
2103      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2104$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2105      ac_cache_corrupted=: ;;
2106    ,set)
2107      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2108$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2109      ac_cache_corrupted=: ;;
2110    ,);;
2111    *)
2112      if test "x$ac_old_val" != "x$ac_new_val"; then
2113	# differences in whitespace do not lead to failure.
2114	ac_old_val_w=`echo x $ac_old_val`
2115	ac_new_val_w=`echo x $ac_new_val`
2116	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2117	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2118$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2119	  ac_cache_corrupted=:
2120	else
2121	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2122$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2123	  eval $ac_var=\$ac_old_val
2124	fi
2125	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2126$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2127	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2128$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2129      fi;;
2130  esac
2131  # Pass precious variables to config.status.
2132  if test "$ac_new_set" = set; then
2133    case $ac_new_val in
2134    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2135    *) ac_arg=$ac_var=$ac_new_val ;;
2136    esac
2137    case " $ac_configure_args " in
2138      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2139      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2140    esac
2141  fi
2142done
2143if $ac_cache_corrupted; then
2144  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2146  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2147$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2148  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2149fi
2150## -------------------- ##
2151## Main body of script. ##
2152## -------------------- ##
2153
2154ac_ext=c
2155ac_cpp='$CPP $CPPFLAGS'
2156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2158ac_compiler_gnu=$ac_cv_c_compiler_gnu
2159
2160
2161
2162
2163# Initialize Automake
2164am__api_version='1.11'
2165
2166ac_aux_dir=
2167for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2168  if test -f "$ac_dir/install-sh"; then
2169    ac_aux_dir=$ac_dir
2170    ac_install_sh="$ac_aux_dir/install-sh -c"
2171    break
2172  elif test -f "$ac_dir/install.sh"; then
2173    ac_aux_dir=$ac_dir
2174    ac_install_sh="$ac_aux_dir/install.sh -c"
2175    break
2176  elif test -f "$ac_dir/shtool"; then
2177    ac_aux_dir=$ac_dir
2178    ac_install_sh="$ac_aux_dir/shtool install -c"
2179    break
2180  fi
2181done
2182if test -z "$ac_aux_dir"; then
2183  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2184fi
2185
2186# These three variables are undocumented and unsupported,
2187# and are intended to be withdrawn in a future Autoconf release.
2188# They can cause serious problems if a builder's source tree is in a directory
2189# whose full name contains unusual characters.
2190ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2191ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2192ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2193
2194
2195# Find a good install program.  We prefer a C program (faster),
2196# so one script is as good as another.  But avoid the broken or
2197# incompatible versions:
2198# SysV /etc/install, /usr/sbin/install
2199# SunOS /usr/etc/install
2200# IRIX /sbin/install
2201# AIX /bin/install
2202# AmigaOS /C/install, which installs bootblocks on floppy discs
2203# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2204# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2205# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2206# OS/2's system install, which has a completely different semantic
2207# ./install, which can be erroneously created by make from ./install.sh.
2208# Reject install programs that cannot install multiple files.
2209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2210$as_echo_n "checking for a BSD-compatible install... " >&6; }
2211if test -z "$INSTALL"; then
2212if ${ac_cv_path_install+:} false; then :
2213  $as_echo_n "(cached) " >&6
2214else
2215  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216for as_dir in $PATH
2217do
2218  IFS=$as_save_IFS
2219  test -z "$as_dir" && as_dir=.
2220    # Account for people who put trailing slashes in PATH elements.
2221case $as_dir/ in #((
2222  ./ | .// | /[cC]/* | \
2223  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2224  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2225  /usr/ucb/* ) ;;
2226  *)
2227    # OSF1 and SCO ODT 3.0 have their own names for install.
2228    # Don't use installbsd from OSF since it installs stuff as root
2229    # by default.
2230    for ac_prog in ginstall scoinst install; do
2231      for ac_exec_ext in '' $ac_executable_extensions; do
2232	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2233	  if test $ac_prog = install &&
2234	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2235	    # AIX install.  It has an incompatible calling convention.
2236	    :
2237	  elif test $ac_prog = install &&
2238	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2239	    # program-specific install script used by HP pwplus--don't use.
2240	    :
2241	  else
2242	    rm -rf conftest.one conftest.two conftest.dir
2243	    echo one > conftest.one
2244	    echo two > conftest.two
2245	    mkdir conftest.dir
2246	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2247	      test -s conftest.one && test -s conftest.two &&
2248	      test -s conftest.dir/conftest.one &&
2249	      test -s conftest.dir/conftest.two
2250	    then
2251	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2252	      break 3
2253	    fi
2254	  fi
2255	fi
2256      done
2257    done
2258    ;;
2259esac
2260
2261  done
2262IFS=$as_save_IFS
2263
2264rm -rf conftest.one conftest.two conftest.dir
2265
2266fi
2267  if test "${ac_cv_path_install+set}" = set; then
2268    INSTALL=$ac_cv_path_install
2269  else
2270    # As a last resort, use the slow shell script.  Don't cache a
2271    # value for INSTALL within a source directory, because that will
2272    # break other packages using the cache if that directory is
2273    # removed, or if the value is a relative name.
2274    INSTALL=$ac_install_sh
2275  fi
2276fi
2277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2278$as_echo "$INSTALL" >&6; }
2279
2280# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2281# It thinks the first close brace ends the variable substitution.
2282test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2283
2284test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2285
2286test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2287
2288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2289$as_echo_n "checking whether build environment is sane... " >&6; }
2290# Just in case
2291sleep 1
2292echo timestamp > conftest.file
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   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2313   if test "$*" = "X"; then
2314      # -L didn't work.
2315      set X `ls -t "$srcdir/configure" conftest.file`
2316   fi
2317   rm -f conftest.file
2318   if test "$*" != "X $srcdir/configure conftest.file" \
2319      && test "$*" != "X conftest.file $srcdir/configure"; then
2320
2321      # If neither matched, then we have a broken ls.  This can happen
2322      # if, for instance, CONFIG_SHELL is bash and it inherits a
2323      # broken ls alias from the environment.  This has actually
2324      # happened.  Such a system could not be considered "sane".
2325      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2326alias in your environment" "$LINENO" 5
2327   fi
2328
2329   test "$2" = conftest.file
2330   )
2331then
2332   # Ok.
2333   :
2334else
2335   as_fn_error $? "newly created file is older than distributed files!
2336Check your system clock" "$LINENO" 5
2337fi
2338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2339$as_echo "yes" >&6; }
2340test "$program_prefix" != NONE &&
2341  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2342# Use a double $ so make ignores it.
2343test "$program_suffix" != NONE &&
2344  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2345# Double any \ or $.
2346# By default was `s,x,x', remove it if useless.
2347ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2348program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2349
2350# expand $ac_aux_dir to an absolute path
2351am_aux_dir=`cd $ac_aux_dir && pwd`
2352
2353if test x"${MISSING+set}" != xset; then
2354  case $am_aux_dir in
2355  *\ * | *\	*)
2356    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2357  *)
2358    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2359  esac
2360fi
2361# Use eval to expand $SHELL
2362if eval "$MISSING --run true"; then
2363  am_missing_run="$MISSING --run "
2364else
2365  am_missing_run=
2366  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2367$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2368fi
2369
2370if test x"${install_sh}" != xset; then
2371  case $am_aux_dir in
2372  *\ * | *\	*)
2373    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2374  *)
2375    install_sh="\${SHELL} $am_aux_dir/install-sh"
2376  esac
2377fi
2378
2379# Installed binaries are usually stripped using `strip' when the user
2380# run `make install-strip'.  However `strip' might not be the right
2381# tool to use in cross-compilation environments, therefore Automake
2382# will honor the `STRIP' environment variable to overrule this program.
2383if test "$cross_compiling" != no; then
2384  if test -n "$ac_tool_prefix"; then
2385  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2386set dummy ${ac_tool_prefix}strip; ac_word=$2
2387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2388$as_echo_n "checking for $ac_word... " >&6; }
2389if ${ac_cv_prog_STRIP+:} false; then :
2390  $as_echo_n "(cached) " >&6
2391else
2392  if test -n "$STRIP"; then
2393  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2394else
2395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396for as_dir in $PATH
2397do
2398  IFS=$as_save_IFS
2399  test -z "$as_dir" && as_dir=.
2400    for ac_exec_ext in '' $ac_executable_extensions; do
2401  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2402    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2403    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2404    break 2
2405  fi
2406done
2407  done
2408IFS=$as_save_IFS
2409
2410fi
2411fi
2412STRIP=$ac_cv_prog_STRIP
2413if test -n "$STRIP"; then
2414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2415$as_echo "$STRIP" >&6; }
2416else
2417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2418$as_echo "no" >&6; }
2419fi
2420
2421
2422fi
2423if test -z "$ac_cv_prog_STRIP"; then
2424  ac_ct_STRIP=$STRIP
2425  # Extract the first word of "strip", so it can be a program name with args.
2426set dummy strip; ac_word=$2
2427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2428$as_echo_n "checking for $ac_word... " >&6; }
2429if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2430  $as_echo_n "(cached) " >&6
2431else
2432  if test -n "$ac_ct_STRIP"; then
2433  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2434else
2435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436for as_dir in $PATH
2437do
2438  IFS=$as_save_IFS
2439  test -z "$as_dir" && as_dir=.
2440    for ac_exec_ext in '' $ac_executable_extensions; do
2441  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2442    ac_cv_prog_ac_ct_STRIP="strip"
2443    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2444    break 2
2445  fi
2446done
2447  done
2448IFS=$as_save_IFS
2449
2450fi
2451fi
2452ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2453if test -n "$ac_ct_STRIP"; then
2454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2455$as_echo "$ac_ct_STRIP" >&6; }
2456else
2457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2458$as_echo "no" >&6; }
2459fi
2460
2461  if test "x$ac_ct_STRIP" = x; then
2462    STRIP=":"
2463  else
2464    case $cross_compiling:$ac_tool_warned in
2465yes:)
2466{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2467$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2468ac_tool_warned=yes ;;
2469esac
2470    STRIP=$ac_ct_STRIP
2471  fi
2472else
2473  STRIP="$ac_cv_prog_STRIP"
2474fi
2475
2476fi
2477INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2478
2479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2480$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2481if test -z "$MKDIR_P"; then
2482  if ${ac_cv_path_mkdir+:} false; then :
2483  $as_echo_n "(cached) " >&6
2484else
2485  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2487do
2488  IFS=$as_save_IFS
2489  test -z "$as_dir" && as_dir=.
2490    for ac_prog in mkdir gmkdir; do
2491	 for ac_exec_ext in '' $ac_executable_extensions; do
2492	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2493	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2494	     'mkdir (GNU coreutils) '* | \
2495	     'mkdir (coreutils) '* | \
2496	     'mkdir (fileutils) '4.1*)
2497	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2498	       break 3;;
2499	   esac
2500	 done
2501       done
2502  done
2503IFS=$as_save_IFS
2504
2505fi
2506
2507  test -d ./--version && rmdir ./--version
2508  if test "${ac_cv_path_mkdir+set}" = set; then
2509    MKDIR_P="$ac_cv_path_mkdir -p"
2510  else
2511    # As a last resort, use the slow shell script.  Don't cache a
2512    # value for MKDIR_P within a source directory, because that will
2513    # break other packages using the cache if that directory is
2514    # removed, or if the value is a relative name.
2515    MKDIR_P="$ac_install_sh -d"
2516  fi
2517fi
2518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2519$as_echo "$MKDIR_P" >&6; }
2520
2521mkdir_p="$MKDIR_P"
2522case $mkdir_p in
2523  [\\/$]* | ?:[\\/]*) ;;
2524  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2525esac
2526
2527for ac_prog in gawk mawk nawk awk
2528do
2529  # Extract the first word of "$ac_prog", so it can be a program name with args.
2530set dummy $ac_prog; ac_word=$2
2531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2532$as_echo_n "checking for $ac_word... " >&6; }
2533if ${ac_cv_prog_AWK+:} false; then :
2534  $as_echo_n "(cached) " >&6
2535else
2536  if test -n "$AWK"; then
2537  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2538else
2539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540for as_dir in $PATH
2541do
2542  IFS=$as_save_IFS
2543  test -z "$as_dir" && as_dir=.
2544    for ac_exec_ext in '' $ac_executable_extensions; do
2545  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2546    ac_cv_prog_AWK="$ac_prog"
2547    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2548    break 2
2549  fi
2550done
2551  done
2552IFS=$as_save_IFS
2553
2554fi
2555fi
2556AWK=$ac_cv_prog_AWK
2557if test -n "$AWK"; then
2558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2559$as_echo "$AWK" >&6; }
2560else
2561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2562$as_echo "no" >&6; }
2563fi
2564
2565
2566  test -n "$AWK" && break
2567done
2568
2569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2570$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2571set x ${MAKE-make}
2572ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2573if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2574  $as_echo_n "(cached) " >&6
2575else
2576  cat >conftest.make <<\_ACEOF
2577SHELL = /bin/sh
2578all:
2579	@echo '@@@%%%=$(MAKE)=@@@%%%'
2580_ACEOF
2581# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2582case `${MAKE-make} -f conftest.make 2>/dev/null` in
2583  *@@@%%%=?*=@@@%%%*)
2584    eval ac_cv_prog_make_${ac_make}_set=yes;;
2585  *)
2586    eval ac_cv_prog_make_${ac_make}_set=no;;
2587esac
2588rm -f conftest.make
2589fi
2590if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2592$as_echo "yes" >&6; }
2593  SET_MAKE=
2594else
2595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2596$as_echo "no" >&6; }
2597  SET_MAKE="MAKE=${MAKE-make}"
2598fi
2599
2600rm -rf .tst 2>/dev/null
2601mkdir .tst 2>/dev/null
2602if test -d .tst; then
2603  am__leading_dot=.
2604else
2605  am__leading_dot=_
2606fi
2607rmdir .tst 2>/dev/null
2608
2609if test "`cd $srcdir && pwd`" != "`pwd`"; then
2610  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2611  # is not polluted with repeated "-I."
2612  am__isrc=' -I$(srcdir)'
2613  # test to see if srcdir already configured
2614  if test -f $srcdir/config.status; then
2615    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2616  fi
2617fi
2618
2619# test whether we have cygpath
2620if test -z "$CYGPATH_W"; then
2621  if (cygpath --version) >/dev/null 2>/dev/null; then
2622    CYGPATH_W='cygpath -w'
2623  else
2624    CYGPATH_W=echo
2625  fi
2626fi
2627
2628
2629# Define the identity of the package.
2630 PACKAGE='xorg-docs'
2631 VERSION='1.7'
2632
2633
2634cat >>confdefs.h <<_ACEOF
2635#define PACKAGE "$PACKAGE"
2636_ACEOF
2637
2638
2639cat >>confdefs.h <<_ACEOF
2640#define VERSION "$VERSION"
2641_ACEOF
2642
2643# Some tools Automake needs.
2644
2645ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2646
2647
2648AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2649
2650
2651AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2652
2653
2654AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2655
2656
2657MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2658
2659# We need awk for the "check" target.  The system "awk" is bad on
2660# some platforms.
2661# Always define AMTAR for backward compatibility.
2662
2663AMTAR=${AMTAR-"${am_missing_run}tar"}
2664
2665am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2666
2667
2668
2669
2670
2671
2672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2673$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2674    # Check whether --enable-maintainer-mode was given.
2675if test "${enable_maintainer_mode+set}" = set; then :
2676  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2677else
2678  USE_MAINTAINER_MODE=no
2679fi
2680
2681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2682$as_echo "$USE_MAINTAINER_MODE" >&6; }
2683   if test $USE_MAINTAINER_MODE = yes; then
2684  MAINTAINER_MODE_TRUE=
2685  MAINTAINER_MODE_FALSE='#'
2686else
2687  MAINTAINER_MODE_TRUE='#'
2688  MAINTAINER_MODE_FALSE=
2689fi
2690
2691  MAINT=$MAINTAINER_MODE_TRUE
2692
2693
2694
2695# Require xorg-macros minimum of 1.12 for XORG_WITH_XSLTPROC
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707DEPDIR="${am__leading_dot}deps"
2708
2709ac_config_commands="$ac_config_commands depfiles"
2710
2711
2712am_make=${MAKE-make}
2713cat > confinc << 'END'
2714am__doit:
2715	@echo this is the am__doit target
2716.PHONY: am__doit
2717END
2718# If we don't find an include directive, just comment out the code.
2719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2720$as_echo_n "checking for style of include used by $am_make... " >&6; }
2721am__include="#"
2722am__quote=
2723_am_result=none
2724# First try GNU make style include.
2725echo "include confinc" > confmf
2726# Ignore all kinds of additional output from `make'.
2727case `$am_make -s -f confmf 2> /dev/null` in #(
2728*the\ am__doit\ target*)
2729  am__include=include
2730  am__quote=
2731  _am_result=GNU
2732  ;;
2733esac
2734# Now try BSD make style include.
2735if test "$am__include" = "#"; then
2736   echo '.include "confinc"' > confmf
2737   case `$am_make -s -f confmf 2> /dev/null` in #(
2738   *the\ am__doit\ target*)
2739     am__include=.include
2740     am__quote="\""
2741     _am_result=BSD
2742     ;;
2743   esac
2744fi
2745
2746
2747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2748$as_echo "$_am_result" >&6; }
2749rm -f confinc confmf
2750
2751# Check whether --enable-dependency-tracking was given.
2752if test "${enable_dependency_tracking+set}" = set; then :
2753  enableval=$enable_dependency_tracking;
2754fi
2755
2756if test "x$enable_dependency_tracking" != xno; then
2757  am_depcomp="$ac_aux_dir/depcomp"
2758  AMDEPBACKSLASH='\'
2759  am__nodep='_no'
2760fi
2761 if test "x$enable_dependency_tracking" != xno; then
2762  AMDEP_TRUE=
2763  AMDEP_FALSE='#'
2764else
2765  AMDEP_TRUE='#'
2766  AMDEP_FALSE=
2767fi
2768
2769
2770ac_ext=c
2771ac_cpp='$CPP $CPPFLAGS'
2772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2774ac_compiler_gnu=$ac_cv_c_compiler_gnu
2775if test -n "$ac_tool_prefix"; then
2776  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2777set dummy ${ac_tool_prefix}gcc; ac_word=$2
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779$as_echo_n "checking for $ac_word... " >&6; }
2780if ${ac_cv_prog_CC+:} false; then :
2781  $as_echo_n "(cached) " >&6
2782else
2783  if test -n "$CC"; then
2784  ac_cv_prog_CC="$CC" # Let the user override the test.
2785else
2786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787for as_dir in $PATH
2788do
2789  IFS=$as_save_IFS
2790  test -z "$as_dir" && as_dir=.
2791    for ac_exec_ext in '' $ac_executable_extensions; do
2792  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2793    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2794    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795    break 2
2796  fi
2797done
2798  done
2799IFS=$as_save_IFS
2800
2801fi
2802fi
2803CC=$ac_cv_prog_CC
2804if test -n "$CC"; then
2805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2806$as_echo "$CC" >&6; }
2807else
2808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809$as_echo "no" >&6; }
2810fi
2811
2812
2813fi
2814if test -z "$ac_cv_prog_CC"; then
2815  ac_ct_CC=$CC
2816  # Extract the first word of "gcc", so it can be a program name with args.
2817set dummy gcc; ac_word=$2
2818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2819$as_echo_n "checking for $ac_word... " >&6; }
2820if ${ac_cv_prog_ac_ct_CC+:} false; then :
2821  $as_echo_n "(cached) " >&6
2822else
2823  if test -n "$ac_ct_CC"; then
2824  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2825else
2826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827for as_dir in $PATH
2828do
2829  IFS=$as_save_IFS
2830  test -z "$as_dir" && as_dir=.
2831    for ac_exec_ext in '' $ac_executable_extensions; do
2832  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2833    ac_cv_prog_ac_ct_CC="gcc"
2834    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2835    break 2
2836  fi
2837done
2838  done
2839IFS=$as_save_IFS
2840
2841fi
2842fi
2843ac_ct_CC=$ac_cv_prog_ac_ct_CC
2844if test -n "$ac_ct_CC"; then
2845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2846$as_echo "$ac_ct_CC" >&6; }
2847else
2848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2849$as_echo "no" >&6; }
2850fi
2851
2852  if test "x$ac_ct_CC" = x; then
2853    CC=""
2854  else
2855    case $cross_compiling:$ac_tool_warned in
2856yes:)
2857{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2858$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2859ac_tool_warned=yes ;;
2860esac
2861    CC=$ac_ct_CC
2862  fi
2863else
2864  CC="$ac_cv_prog_CC"
2865fi
2866
2867if test -z "$CC"; then
2868          if test -n "$ac_tool_prefix"; then
2869    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2870set dummy ${ac_tool_prefix}cc; ac_word=$2
2871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872$as_echo_n "checking for $ac_word... " >&6; }
2873if ${ac_cv_prog_CC+:} false; then :
2874  $as_echo_n "(cached) " >&6
2875else
2876  if test -n "$CC"; then
2877  ac_cv_prog_CC="$CC" # Let the user override the test.
2878else
2879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880for as_dir in $PATH
2881do
2882  IFS=$as_save_IFS
2883  test -z "$as_dir" && as_dir=.
2884    for ac_exec_ext in '' $ac_executable_extensions; do
2885  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2886    ac_cv_prog_CC="${ac_tool_prefix}cc"
2887    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888    break 2
2889  fi
2890done
2891  done
2892IFS=$as_save_IFS
2893
2894fi
2895fi
2896CC=$ac_cv_prog_CC
2897if test -n "$CC"; then
2898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899$as_echo "$CC" >&6; }
2900else
2901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902$as_echo "no" >&6; }
2903fi
2904
2905
2906  fi
2907fi
2908if test -z "$CC"; then
2909  # Extract the first word of "cc", so it can be a program name with args.
2910set dummy cc; ac_word=$2
2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912$as_echo_n "checking for $ac_word... " >&6; }
2913if ${ac_cv_prog_CC+:} false; then :
2914  $as_echo_n "(cached) " >&6
2915else
2916  if test -n "$CC"; then
2917  ac_cv_prog_CC="$CC" # Let the user override the test.
2918else
2919  ac_prog_rejected=no
2920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921for as_dir in $PATH
2922do
2923  IFS=$as_save_IFS
2924  test -z "$as_dir" && as_dir=.
2925    for ac_exec_ext in '' $ac_executable_extensions; do
2926  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2927    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2928       ac_prog_rejected=yes
2929       continue
2930     fi
2931    ac_cv_prog_CC="cc"
2932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2933    break 2
2934  fi
2935done
2936  done
2937IFS=$as_save_IFS
2938
2939if test $ac_prog_rejected = yes; then
2940  # We found a bogon in the path, so make sure we never use it.
2941  set dummy $ac_cv_prog_CC
2942  shift
2943  if test $# != 0; then
2944    # We chose a different compiler from the bogus one.
2945    # However, it has the same basename, so the bogon will be chosen
2946    # first if we set CC to just the basename; use the full file name.
2947    shift
2948    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2949  fi
2950fi
2951fi
2952fi
2953CC=$ac_cv_prog_CC
2954if test -n "$CC"; then
2955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2956$as_echo "$CC" >&6; }
2957else
2958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959$as_echo "no" >&6; }
2960fi
2961
2962
2963fi
2964if test -z "$CC"; then
2965  if test -n "$ac_tool_prefix"; then
2966  for ac_prog in cl.exe
2967  do
2968    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2969set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971$as_echo_n "checking for $ac_word... " >&6; }
2972if ${ac_cv_prog_CC+:} false; then :
2973  $as_echo_n "(cached) " >&6
2974else
2975  if test -n "$CC"; then
2976  ac_cv_prog_CC="$CC" # Let the user override the test.
2977else
2978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979for as_dir in $PATH
2980do
2981  IFS=$as_save_IFS
2982  test -z "$as_dir" && as_dir=.
2983    for ac_exec_ext in '' $ac_executable_extensions; do
2984  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2985    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2986    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987    break 2
2988  fi
2989done
2990  done
2991IFS=$as_save_IFS
2992
2993fi
2994fi
2995CC=$ac_cv_prog_CC
2996if test -n "$CC"; then
2997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2998$as_echo "$CC" >&6; }
2999else
3000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001$as_echo "no" >&6; }
3002fi
3003
3004
3005    test -n "$CC" && break
3006  done
3007fi
3008if test -z "$CC"; then
3009  ac_ct_CC=$CC
3010  for ac_prog in cl.exe
3011do
3012  # Extract the first word of "$ac_prog", so it can be a program name with args.
3013set dummy $ac_prog; 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_ac_ct_CC+:} false; then :
3017  $as_echo_n "(cached) " >&6
3018else
3019  if test -n "$ac_ct_CC"; then
3020  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3021else
3022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023for as_dir in $PATH
3024do
3025  IFS=$as_save_IFS
3026  test -z "$as_dir" && as_dir=.
3027    for ac_exec_ext in '' $ac_executable_extensions; do
3028  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029    ac_cv_prog_ac_ct_CC="$ac_prog"
3030    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031    break 2
3032  fi
3033done
3034  done
3035IFS=$as_save_IFS
3036
3037fi
3038fi
3039ac_ct_CC=$ac_cv_prog_ac_ct_CC
3040if test -n "$ac_ct_CC"; then
3041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3042$as_echo "$ac_ct_CC" >&6; }
3043else
3044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045$as_echo "no" >&6; }
3046fi
3047
3048
3049  test -n "$ac_ct_CC" && break
3050done
3051
3052  if test "x$ac_ct_CC" = x; then
3053    CC=""
3054  else
3055    case $cross_compiling:$ac_tool_warned in
3056yes:)
3057{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3058$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3059ac_tool_warned=yes ;;
3060esac
3061    CC=$ac_ct_CC
3062  fi
3063fi
3064
3065fi
3066
3067
3068test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3069$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3070as_fn_error $? "no acceptable C compiler found in \$PATH
3071See \`config.log' for more details" "$LINENO" 5; }
3072
3073# Provide some information about the compiler.
3074$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3075set X $ac_compile
3076ac_compiler=$2
3077for ac_option in --version -v -V -qversion; do
3078  { { ac_try="$ac_compiler $ac_option >&5"
3079case "(($ac_try" in
3080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081  *) ac_try_echo=$ac_try;;
3082esac
3083eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3084$as_echo "$ac_try_echo"; } >&5
3085  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3086  ac_status=$?
3087  if test -s conftest.err; then
3088    sed '10a\
3089... rest of stderr output deleted ...
3090         10q' conftest.err >conftest.er1
3091    cat conftest.er1 >&5
3092  fi
3093  rm -f conftest.er1 conftest.err
3094  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3095  test $ac_status = 0; }
3096done
3097
3098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3099/* end confdefs.h.  */
3100
3101int
3102main ()
3103{
3104
3105  ;
3106  return 0;
3107}
3108_ACEOF
3109ac_clean_files_save=$ac_clean_files
3110ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3111# Try to create an executable without -o first, disregard a.out.
3112# It will help us diagnose broken compilers, and finding out an intuition
3113# of exeext.
3114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3115$as_echo_n "checking whether the C compiler works... " >&6; }
3116ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3117
3118# The possible output files:
3119ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3120
3121ac_rmfiles=
3122for ac_file in $ac_files
3123do
3124  case $ac_file in
3125    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3126    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3127  esac
3128done
3129rm -f $ac_rmfiles
3130
3131if { { ac_try="$ac_link_default"
3132case "(($ac_try" in
3133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134  *) ac_try_echo=$ac_try;;
3135esac
3136eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3137$as_echo "$ac_try_echo"; } >&5
3138  (eval "$ac_link_default") 2>&5
3139  ac_status=$?
3140  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3141  test $ac_status = 0; }; then :
3142  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3143# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3144# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3145# so that the user can short-circuit this test for compilers unknown to
3146# Autoconf.
3147for ac_file in $ac_files ''
3148do
3149  test -f "$ac_file" || continue
3150  case $ac_file in
3151    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3152	;;
3153    [ab].out )
3154	# We found the default executable, but exeext='' is most
3155	# certainly right.
3156	break;;
3157    *.* )
3158	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3159	then :; else
3160	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3161	fi
3162	# We set ac_cv_exeext here because the later test for it is not
3163	# safe: cross compilers may not add the suffix if given an `-o'
3164	# argument, so we may need to know it at that point already.
3165	# Even if this section looks crufty: it has the advantage of
3166	# actually working.
3167	break;;
3168    * )
3169	break;;
3170  esac
3171done
3172test "$ac_cv_exeext" = no && ac_cv_exeext=
3173
3174else
3175  ac_file=''
3176fi
3177if test -z "$ac_file"; then :
3178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179$as_echo "no" >&6; }
3180$as_echo "$as_me: failed program was:" >&5
3181sed 's/^/| /' conftest.$ac_ext >&5
3182
3183{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3185as_fn_error 77 "C compiler cannot create executables
3186See \`config.log' for more details" "$LINENO" 5; }
3187else
3188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3189$as_echo "yes" >&6; }
3190fi
3191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3192$as_echo_n "checking for C compiler default output file name... " >&6; }
3193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3194$as_echo "$ac_file" >&6; }
3195ac_exeext=$ac_cv_exeext
3196
3197rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3198ac_clean_files=$ac_clean_files_save
3199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3200$as_echo_n "checking for suffix of executables... " >&6; }
3201if { { ac_try="$ac_link"
3202case "(($ac_try" in
3203  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204  *) ac_try_echo=$ac_try;;
3205esac
3206eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3207$as_echo "$ac_try_echo"; } >&5
3208  (eval "$ac_link") 2>&5
3209  ac_status=$?
3210  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3211  test $ac_status = 0; }; then :
3212  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3213# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3214# work properly (i.e., refer to `conftest.exe'), while it won't with
3215# `rm'.
3216for ac_file in conftest.exe conftest conftest.*; do
3217  test -f "$ac_file" || continue
3218  case $ac_file in
3219    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3220    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3221	  break;;
3222    * ) break;;
3223  esac
3224done
3225else
3226  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3227$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3228as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3229See \`config.log' for more details" "$LINENO" 5; }
3230fi
3231rm -f conftest conftest$ac_cv_exeext
3232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3233$as_echo "$ac_cv_exeext" >&6; }
3234
3235rm -f conftest.$ac_ext
3236EXEEXT=$ac_cv_exeext
3237ac_exeext=$EXEEXT
3238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3239/* end confdefs.h.  */
3240#include <stdio.h>
3241int
3242main ()
3243{
3244FILE *f = fopen ("conftest.out", "w");
3245 return ferror (f) || fclose (f) != 0;
3246
3247  ;
3248  return 0;
3249}
3250_ACEOF
3251ac_clean_files="$ac_clean_files conftest.out"
3252# Check that the compiler produces executables we can run.  If not, either
3253# the compiler is broken, or we cross compile.
3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3255$as_echo_n "checking whether we are cross compiling... " >&6; }
3256if test "$cross_compiling" != yes; then
3257  { { ac_try="$ac_link"
3258case "(($ac_try" in
3259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260  *) ac_try_echo=$ac_try;;
3261esac
3262eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3263$as_echo "$ac_try_echo"; } >&5
3264  (eval "$ac_link") 2>&5
3265  ac_status=$?
3266  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3267  test $ac_status = 0; }
3268  if { ac_try='./conftest$ac_cv_exeext'
3269  { { case "(($ac_try" in
3270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271  *) ac_try_echo=$ac_try;;
3272esac
3273eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3274$as_echo "$ac_try_echo"; } >&5
3275  (eval "$ac_try") 2>&5
3276  ac_status=$?
3277  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3278  test $ac_status = 0; }; }; then
3279    cross_compiling=no
3280  else
3281    if test "$cross_compiling" = maybe; then
3282	cross_compiling=yes
3283    else
3284	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3286as_fn_error $? "cannot run C compiled programs.
3287If you meant to cross compile, use \`--host'.
3288See \`config.log' for more details" "$LINENO" 5; }
3289    fi
3290  fi
3291fi
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3293$as_echo "$cross_compiling" >&6; }
3294
3295rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3296ac_clean_files=$ac_clean_files_save
3297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3298$as_echo_n "checking for suffix of object files... " >&6; }
3299if ${ac_cv_objext+:} false; then :
3300  $as_echo_n "(cached) " >&6
3301else
3302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3303/* end confdefs.h.  */
3304
3305int
3306main ()
3307{
3308
3309  ;
3310  return 0;
3311}
3312_ACEOF
3313rm -f conftest.o conftest.obj
3314if { { ac_try="$ac_compile"
3315case "(($ac_try" in
3316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317  *) ac_try_echo=$ac_try;;
3318esac
3319eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3320$as_echo "$ac_try_echo"; } >&5
3321  (eval "$ac_compile") 2>&5
3322  ac_status=$?
3323  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3324  test $ac_status = 0; }; then :
3325  for ac_file in conftest.o conftest.obj conftest.*; do
3326  test -f "$ac_file" || continue;
3327  case $ac_file in
3328    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3329    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3330       break;;
3331  esac
3332done
3333else
3334  $as_echo "$as_me: failed program was:" >&5
3335sed 's/^/| /' conftest.$ac_ext >&5
3336
3337{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3338$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3339as_fn_error $? "cannot compute suffix of object files: cannot compile
3340See \`config.log' for more details" "$LINENO" 5; }
3341fi
3342rm -f conftest.$ac_cv_objext conftest.$ac_ext
3343fi
3344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3345$as_echo "$ac_cv_objext" >&6; }
3346OBJEXT=$ac_cv_objext
3347ac_objext=$OBJEXT
3348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3349$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3350if ${ac_cv_c_compiler_gnu+:} false; then :
3351  $as_echo_n "(cached) " >&6
3352else
3353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354/* end confdefs.h.  */
3355
3356int
3357main ()
3358{
3359#ifndef __GNUC__
3360       choke me
3361#endif
3362
3363  ;
3364  return 0;
3365}
3366_ACEOF
3367if ac_fn_c_try_compile "$LINENO"; then :
3368  ac_compiler_gnu=yes
3369else
3370  ac_compiler_gnu=no
3371fi
3372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3373ac_cv_c_compiler_gnu=$ac_compiler_gnu
3374
3375fi
3376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3377$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3378if test $ac_compiler_gnu = yes; then
3379  GCC=yes
3380else
3381  GCC=
3382fi
3383ac_test_CFLAGS=${CFLAGS+set}
3384ac_save_CFLAGS=$CFLAGS
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3386$as_echo_n "checking whether $CC accepts -g... " >&6; }
3387if ${ac_cv_prog_cc_g+:} false; then :
3388  $as_echo_n "(cached) " >&6
3389else
3390  ac_save_c_werror_flag=$ac_c_werror_flag
3391   ac_c_werror_flag=yes
3392   ac_cv_prog_cc_g=no
3393   CFLAGS="-g"
3394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395/* end confdefs.h.  */
3396
3397int
3398main ()
3399{
3400
3401  ;
3402  return 0;
3403}
3404_ACEOF
3405if ac_fn_c_try_compile "$LINENO"; then :
3406  ac_cv_prog_cc_g=yes
3407else
3408  CFLAGS=""
3409      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410/* end confdefs.h.  */
3411
3412int
3413main ()
3414{
3415
3416  ;
3417  return 0;
3418}
3419_ACEOF
3420if ac_fn_c_try_compile "$LINENO"; then :
3421
3422else
3423  ac_c_werror_flag=$ac_save_c_werror_flag
3424	 CFLAGS="-g"
3425	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426/* end confdefs.h.  */
3427
3428int
3429main ()
3430{
3431
3432  ;
3433  return 0;
3434}
3435_ACEOF
3436if ac_fn_c_try_compile "$LINENO"; then :
3437  ac_cv_prog_cc_g=yes
3438fi
3439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3440fi
3441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3442fi
3443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3444   ac_c_werror_flag=$ac_save_c_werror_flag
3445fi
3446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3447$as_echo "$ac_cv_prog_cc_g" >&6; }
3448if test "$ac_test_CFLAGS" = set; then
3449  CFLAGS=$ac_save_CFLAGS
3450elif test $ac_cv_prog_cc_g = yes; then
3451  if test "$GCC" = yes; then
3452    CFLAGS="-g -O2"
3453  else
3454    CFLAGS="-g"
3455  fi
3456else
3457  if test "$GCC" = yes; then
3458    CFLAGS="-O2"
3459  else
3460    CFLAGS=
3461  fi
3462fi
3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3464$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3465if ${ac_cv_prog_cc_c89+:} false; then :
3466  $as_echo_n "(cached) " >&6
3467else
3468  ac_cv_prog_cc_c89=no
3469ac_save_CC=$CC
3470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471/* end confdefs.h.  */
3472#include <stdarg.h>
3473#include <stdio.h>
3474#include <sys/types.h>
3475#include <sys/stat.h>
3476/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3477struct buf { int x; };
3478FILE * (*rcsopen) (struct buf *, struct stat *, int);
3479static char *e (p, i)
3480     char **p;
3481     int i;
3482{
3483  return p[i];
3484}
3485static char *f (char * (*g) (char **, int), char **p, ...)
3486{
3487  char *s;
3488  va_list v;
3489  va_start (v,p);
3490  s = g (p, va_arg (v,int));
3491  va_end (v);
3492  return s;
3493}
3494
3495/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3496   function prototypes and stuff, but not '\xHH' hex character constants.
3497   These don't provoke an error unfortunately, instead are silently treated
3498   as 'x'.  The following induces an error, until -std is added to get
3499   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3500   array size at least.  It's necessary to write '\x00'==0 to get something
3501   that's true only with -std.  */
3502int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3503
3504/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3505   inside strings and character constants.  */
3506#define FOO(x) 'x'
3507int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3508
3509int test (int i, double x);
3510struct s1 {int (*f) (int a);};
3511struct s2 {int (*f) (double a);};
3512int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3513int argc;
3514char **argv;
3515int
3516main ()
3517{
3518return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3519  ;
3520  return 0;
3521}
3522_ACEOF
3523for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3524	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3525do
3526  CC="$ac_save_CC $ac_arg"
3527  if ac_fn_c_try_compile "$LINENO"; then :
3528  ac_cv_prog_cc_c89=$ac_arg
3529fi
3530rm -f core conftest.err conftest.$ac_objext
3531  test "x$ac_cv_prog_cc_c89" != "xno" && break
3532done
3533rm -f conftest.$ac_ext
3534CC=$ac_save_CC
3535
3536fi
3537# AC_CACHE_VAL
3538case "x$ac_cv_prog_cc_c89" in
3539  x)
3540    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3541$as_echo "none needed" >&6; } ;;
3542  xno)
3543    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3544$as_echo "unsupported" >&6; } ;;
3545  *)
3546    CC="$CC $ac_cv_prog_cc_c89"
3547    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3548$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3549esac
3550if test "x$ac_cv_prog_cc_c89" != xno; then :
3551
3552fi
3553
3554ac_ext=c
3555ac_cpp='$CPP $CPPFLAGS'
3556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3558ac_compiler_gnu=$ac_cv_c_compiler_gnu
3559
3560depcc="$CC"   am_compiler_list=
3561
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3563$as_echo_n "checking dependency style of $depcc... " >&6; }
3564if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3565  $as_echo_n "(cached) " >&6
3566else
3567  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3568  # We make a subdir and do the tests there.  Otherwise we can end up
3569  # making bogus files that we don't know about and never remove.  For
3570  # instance it was reported that on HP-UX the gcc test will end up
3571  # making a dummy file named `D' -- because `-MD' means `put the output
3572  # in D'.
3573  rm -rf conftest.dir
3574  mkdir conftest.dir
3575  # Copy depcomp to subdir because otherwise we won't find it if we're
3576  # using a relative directory.
3577  cp "$am_depcomp" conftest.dir
3578  cd conftest.dir
3579  # We will build objects and dependencies in a subdirectory because
3580  # it helps to detect inapplicable dependency modes.  For instance
3581  # both Tru64's cc and ICC support -MD to output dependencies as a
3582  # side effect of compilation, but ICC will put the dependencies in
3583  # the current directory while Tru64 will put them in the object
3584  # directory.
3585  mkdir sub
3586
3587  am_cv_CC_dependencies_compiler_type=none
3588  if test "$am_compiler_list" = ""; then
3589     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3590  fi
3591  am__universal=false
3592  case " $depcc " in #(
3593     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3594     esac
3595
3596  for depmode in $am_compiler_list; do
3597    # Setup a source with many dependencies, because some compilers
3598    # like to wrap large dependency lists on column 80 (with \), and
3599    # we should not choose a depcomp mode which is confused by this.
3600    #
3601    # We need to recreate these files for each test, as the compiler may
3602    # overwrite some of them when testing with obscure command lines.
3603    # This happens at least with the AIX C compiler.
3604    : > sub/conftest.c
3605    for i in 1 2 3 4 5 6; do
3606      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3607      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3608      # Solaris 8's {/usr,}/bin/sh.
3609      touch sub/conftst$i.h
3610    done
3611    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3612
3613    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3614    # mode.  It turns out that the SunPro C++ compiler does not properly
3615    # handle `-M -o', and we need to detect this.  Also, some Intel
3616    # versions had trouble with output in subdirs
3617    am__obj=sub/conftest.${OBJEXT-o}
3618    am__minus_obj="-o $am__obj"
3619    case $depmode in
3620    gcc)
3621      # This depmode causes a compiler race in universal mode.
3622      test "$am__universal" = false || continue
3623      ;;
3624    nosideeffect)
3625      # after this tag, mechanisms are not by side-effect, so they'll
3626      # only be used when explicitly requested
3627      if test "x$enable_dependency_tracking" = xyes; then
3628	continue
3629      else
3630	break
3631      fi
3632      ;;
3633    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3634      # This compiler won't grok `-c -o', but also, the minuso test has
3635      # not run yet.  These depmodes are late enough in the game, and
3636      # so weak that their functioning should not be impacted.
3637      am__obj=conftest.${OBJEXT-o}
3638      am__minus_obj=
3639      ;;
3640    none) break ;;
3641    esac
3642    if depmode=$depmode \
3643       source=sub/conftest.c object=$am__obj \
3644       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3645       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3646         >/dev/null 2>conftest.err &&
3647       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3648       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3649       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3650       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3651      # icc doesn't choke on unknown options, it will just issue warnings
3652      # or remarks (even with -Werror).  So we grep stderr for any message
3653      # that says an option was ignored or not supported.
3654      # When given -MP, icc 7.0 and 7.1 complain thusly:
3655      #   icc: Command line warning: ignoring option '-M'; no argument required
3656      # The diagnosis changed in icc 8.0:
3657      #   icc: Command line remark: option '-MP' not supported
3658      if (grep 'ignoring option' conftest.err ||
3659          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3660        am_cv_CC_dependencies_compiler_type=$depmode
3661        break
3662      fi
3663    fi
3664  done
3665
3666  cd ..
3667  rm -rf conftest.dir
3668else
3669  am_cv_CC_dependencies_compiler_type=none
3670fi
3671
3672fi
3673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3674$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3675CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3676
3677 if
3678  test "x$enable_dependency_tracking" != xno \
3679  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3680  am__fastdepCC_TRUE=
3681  am__fastdepCC_FALSE='#'
3682else
3683  am__fastdepCC_TRUE='#'
3684  am__fastdepCC_FALSE=
3685fi
3686
3687
3688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3689$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3690if ${ac_cv_prog_cc_c99+:} false; then :
3691  $as_echo_n "(cached) " >&6
3692else
3693  ac_cv_prog_cc_c99=no
3694ac_save_CC=$CC
3695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696/* end confdefs.h.  */
3697#include <stdarg.h>
3698#include <stdbool.h>
3699#include <stdlib.h>
3700#include <wchar.h>
3701#include <stdio.h>
3702
3703// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3704#define debug(...) fprintf (stderr, __VA_ARGS__)
3705#define showlist(...) puts (#__VA_ARGS__)
3706#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3707static void
3708test_varargs_macros (void)
3709{
3710  int x = 1234;
3711  int y = 5678;
3712  debug ("Flag");
3713  debug ("X = %d\n", x);
3714  showlist (The first, second, and third items.);
3715  report (x>y, "x is %d but y is %d", x, y);
3716}
3717
3718// Check long long types.
3719#define BIG64 18446744073709551615ull
3720#define BIG32 4294967295ul
3721#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3722#if !BIG_OK
3723  your preprocessor is broken;
3724#endif
3725#if BIG_OK
3726#else
3727  your preprocessor is broken;
3728#endif
3729static long long int bignum = -9223372036854775807LL;
3730static unsigned long long int ubignum = BIG64;
3731
3732struct incomplete_array
3733{
3734  int datasize;
3735  double data[];
3736};
3737
3738struct named_init {
3739  int number;
3740  const wchar_t *name;
3741  double average;
3742};
3743
3744typedef const char *ccp;
3745
3746static inline int
3747test_restrict (ccp restrict text)
3748{
3749  // See if C++-style comments work.
3750  // Iterate through items via the restricted pointer.
3751  // Also check for declarations in for loops.
3752  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3753    continue;
3754  return 0;
3755}
3756
3757// Check varargs and va_copy.
3758static void
3759test_varargs (const char *format, ...)
3760{
3761  va_list args;
3762  va_start (args, format);
3763  va_list args_copy;
3764  va_copy (args_copy, args);
3765
3766  const char *str;
3767  int number;
3768  float fnumber;
3769
3770  while (*format)
3771    {
3772      switch (*format++)
3773	{
3774	case 's': // string
3775	  str = va_arg (args_copy, const char *);
3776	  break;
3777	case 'd': // int
3778	  number = va_arg (args_copy, int);
3779	  break;
3780	case 'f': // float
3781	  fnumber = va_arg (args_copy, double);
3782	  break;
3783	default:
3784	  break;
3785	}
3786    }
3787  va_end (args_copy);
3788  va_end (args);
3789}
3790
3791int
3792main ()
3793{
3794
3795  // Check bool.
3796  _Bool success = false;
3797
3798  // Check restrict.
3799  if (test_restrict ("String literal") == 0)
3800    success = true;
3801  char *restrict newvar = "Another string";
3802
3803  // Check varargs.
3804  test_varargs ("s, d' f .", "string", 65, 34.234);
3805  test_varargs_macros ();
3806
3807  // Check flexible array members.
3808  struct incomplete_array *ia =
3809    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3810  ia->datasize = 10;
3811  for (int i = 0; i < ia->datasize; ++i)
3812    ia->data[i] = i * 1.234;
3813
3814  // Check named initializers.
3815  struct named_init ni = {
3816    .number = 34,
3817    .name = L"Test wide string",
3818    .average = 543.34343,
3819  };
3820
3821  ni.number = 58;
3822
3823  int dynamic_array[ni.number];
3824  dynamic_array[ni.number - 1] = 543;
3825
3826  // work around unused variable warnings
3827  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3828	  || dynamic_array[ni.number - 1] != 543);
3829
3830  ;
3831  return 0;
3832}
3833_ACEOF
3834for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3835do
3836  CC="$ac_save_CC $ac_arg"
3837  if ac_fn_c_try_compile "$LINENO"; then :
3838  ac_cv_prog_cc_c99=$ac_arg
3839fi
3840rm -f core conftest.err conftest.$ac_objext
3841  test "x$ac_cv_prog_cc_c99" != "xno" && break
3842done
3843rm -f conftest.$ac_ext
3844CC=$ac_save_CC
3845
3846fi
3847# AC_CACHE_VAL
3848case "x$ac_cv_prog_cc_c99" in
3849  x)
3850    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3851$as_echo "none needed" >&6; } ;;
3852  xno)
3853    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3854$as_echo "unsupported" >&6; } ;;
3855  *)
3856    CC="$CC $ac_cv_prog_cc_c99"
3857    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3858$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3859esac
3860if test "x$ac_cv_prog_cc_c99" != xno; then :
3861
3862fi
3863
3864
3865
3866ac_ext=c
3867ac_cpp='$CPP $CPPFLAGS'
3868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3870ac_compiler_gnu=$ac_cv_c_compiler_gnu
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3872$as_echo_n "checking how to run the C preprocessor... " >&6; }
3873# On Suns, sometimes $CPP names a directory.
3874if test -n "$CPP" && test -d "$CPP"; then
3875  CPP=
3876fi
3877if test -z "$CPP"; then
3878  if ${ac_cv_prog_CPP+:} false; then :
3879  $as_echo_n "(cached) " >&6
3880else
3881      # Double quotes because CPP needs to be expanded
3882    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3883    do
3884      ac_preproc_ok=false
3885for ac_c_preproc_warn_flag in '' yes
3886do
3887  # Use a header file that comes with gcc, so configuring glibc
3888  # with a fresh cross-compiler works.
3889  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3890  # <limits.h> exists even on freestanding compilers.
3891  # On the NeXT, cc -E runs the code through the compiler's parser,
3892  # not just through cpp. "Syntax error" is here to catch this case.
3893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894/* end confdefs.h.  */
3895#ifdef __STDC__
3896# include <limits.h>
3897#else
3898# include <assert.h>
3899#endif
3900		     Syntax error
3901_ACEOF
3902if ac_fn_c_try_cpp "$LINENO"; then :
3903
3904else
3905  # Broken: fails on valid input.
3906continue
3907fi
3908rm -f conftest.err conftest.i conftest.$ac_ext
3909
3910  # OK, works on sane cases.  Now check whether nonexistent headers
3911  # can be detected and how.
3912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913/* end confdefs.h.  */
3914#include <ac_nonexistent.h>
3915_ACEOF
3916if ac_fn_c_try_cpp "$LINENO"; then :
3917  # Broken: success on invalid input.
3918continue
3919else
3920  # Passes both tests.
3921ac_preproc_ok=:
3922break
3923fi
3924rm -f conftest.err conftest.i conftest.$ac_ext
3925
3926done
3927# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3928rm -f conftest.i conftest.err conftest.$ac_ext
3929if $ac_preproc_ok; then :
3930  break
3931fi
3932
3933    done
3934    ac_cv_prog_CPP=$CPP
3935
3936fi
3937  CPP=$ac_cv_prog_CPP
3938else
3939  ac_cv_prog_CPP=$CPP
3940fi
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3942$as_echo "$CPP" >&6; }
3943ac_preproc_ok=false
3944for ac_c_preproc_warn_flag in '' yes
3945do
3946  # Use a header file that comes with gcc, so configuring glibc
3947  # with a fresh cross-compiler works.
3948  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3949  # <limits.h> exists even on freestanding compilers.
3950  # On the NeXT, cc -E runs the code through the compiler's parser,
3951  # not just through cpp. "Syntax error" is here to catch this case.
3952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953/* end confdefs.h.  */
3954#ifdef __STDC__
3955# include <limits.h>
3956#else
3957# include <assert.h>
3958#endif
3959		     Syntax error
3960_ACEOF
3961if ac_fn_c_try_cpp "$LINENO"; then :
3962
3963else
3964  # Broken: fails on valid input.
3965continue
3966fi
3967rm -f conftest.err conftest.i conftest.$ac_ext
3968
3969  # OK, works on sane cases.  Now check whether nonexistent headers
3970  # can be detected and how.
3971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972/* end confdefs.h.  */
3973#include <ac_nonexistent.h>
3974_ACEOF
3975if ac_fn_c_try_cpp "$LINENO"; then :
3976  # Broken: success on invalid input.
3977continue
3978else
3979  # Passes both tests.
3980ac_preproc_ok=:
3981break
3982fi
3983rm -f conftest.err conftest.i conftest.$ac_ext
3984
3985done
3986# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3987rm -f conftest.i conftest.err conftest.$ac_ext
3988if $ac_preproc_ok; then :
3989
3990else
3991  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3992$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3993as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3994See \`config.log' for more details" "$LINENO" 5; }
3995fi
3996
3997ac_ext=c
3998ac_cpp='$CPP $CPPFLAGS'
3999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4001ac_compiler_gnu=$ac_cv_c_compiler_gnu
4002
4003
4004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4005$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4006if ${ac_cv_path_GREP+:} false; then :
4007  $as_echo_n "(cached) " >&6
4008else
4009  if test -z "$GREP"; then
4010  ac_path_GREP_found=false
4011  # Loop through the user's path and test for each of PROGNAME-LIST
4012  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4014do
4015  IFS=$as_save_IFS
4016  test -z "$as_dir" && as_dir=.
4017    for ac_prog in grep ggrep; do
4018    for ac_exec_ext in '' $ac_executable_extensions; do
4019      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4020      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4021# Check for GNU ac_path_GREP and select it if it is found.
4022  # Check for GNU $ac_path_GREP
4023case `"$ac_path_GREP" --version 2>&1` in
4024*GNU*)
4025  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4026*)
4027  ac_count=0
4028  $as_echo_n 0123456789 >"conftest.in"
4029  while :
4030  do
4031    cat "conftest.in" "conftest.in" >"conftest.tmp"
4032    mv "conftest.tmp" "conftest.in"
4033    cp "conftest.in" "conftest.nl"
4034    $as_echo 'GREP' >> "conftest.nl"
4035    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4036    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4037    as_fn_arith $ac_count + 1 && ac_count=$as_val
4038    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4039      # Best one so far, save it but keep looking for a better one
4040      ac_cv_path_GREP="$ac_path_GREP"
4041      ac_path_GREP_max=$ac_count
4042    fi
4043    # 10*(2^10) chars as input seems more than enough
4044    test $ac_count -gt 10 && break
4045  done
4046  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4047esac
4048
4049      $ac_path_GREP_found && break 3
4050    done
4051  done
4052  done
4053IFS=$as_save_IFS
4054  if test -z "$ac_cv_path_GREP"; then
4055    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4056  fi
4057else
4058  ac_cv_path_GREP=$GREP
4059fi
4060
4061fi
4062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4063$as_echo "$ac_cv_path_GREP" >&6; }
4064 GREP="$ac_cv_path_GREP"
4065
4066
4067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4068$as_echo_n "checking for egrep... " >&6; }
4069if ${ac_cv_path_EGREP+:} false; then :
4070  $as_echo_n "(cached) " >&6
4071else
4072  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4073   then ac_cv_path_EGREP="$GREP -E"
4074   else
4075     if test -z "$EGREP"; then
4076  ac_path_EGREP_found=false
4077  # Loop through the user's path and test for each of PROGNAME-LIST
4078  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4080do
4081  IFS=$as_save_IFS
4082  test -z "$as_dir" && as_dir=.
4083    for ac_prog in egrep; do
4084    for ac_exec_ext in '' $ac_executable_extensions; do
4085      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4086      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4087# Check for GNU ac_path_EGREP and select it if it is found.
4088  # Check for GNU $ac_path_EGREP
4089case `"$ac_path_EGREP" --version 2>&1` in
4090*GNU*)
4091  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4092*)
4093  ac_count=0
4094  $as_echo_n 0123456789 >"conftest.in"
4095  while :
4096  do
4097    cat "conftest.in" "conftest.in" >"conftest.tmp"
4098    mv "conftest.tmp" "conftest.in"
4099    cp "conftest.in" "conftest.nl"
4100    $as_echo 'EGREP' >> "conftest.nl"
4101    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4102    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4103    as_fn_arith $ac_count + 1 && ac_count=$as_val
4104    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4105      # Best one so far, save it but keep looking for a better one
4106      ac_cv_path_EGREP="$ac_path_EGREP"
4107      ac_path_EGREP_max=$ac_count
4108    fi
4109    # 10*(2^10) chars as input seems more than enough
4110    test $ac_count -gt 10 && break
4111  done
4112  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4113esac
4114
4115      $ac_path_EGREP_found && break 3
4116    done
4117  done
4118  done
4119IFS=$as_save_IFS
4120  if test -z "$ac_cv_path_EGREP"; then
4121    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4122  fi
4123else
4124  ac_cv_path_EGREP=$EGREP
4125fi
4126
4127   fi
4128fi
4129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4130$as_echo "$ac_cv_path_EGREP" >&6; }
4131 EGREP="$ac_cv_path_EGREP"
4132
4133
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4135$as_echo_n "checking for ANSI C header files... " >&6; }
4136if ${ac_cv_header_stdc+:} false; then :
4137  $as_echo_n "(cached) " >&6
4138else
4139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140/* end confdefs.h.  */
4141#include <stdlib.h>
4142#include <stdarg.h>
4143#include <string.h>
4144#include <float.h>
4145
4146int
4147main ()
4148{
4149
4150  ;
4151  return 0;
4152}
4153_ACEOF
4154if ac_fn_c_try_compile "$LINENO"; then :
4155  ac_cv_header_stdc=yes
4156else
4157  ac_cv_header_stdc=no
4158fi
4159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160
4161if test $ac_cv_header_stdc = yes; then
4162  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164/* end confdefs.h.  */
4165#include <string.h>
4166
4167_ACEOF
4168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4169  $EGREP "memchr" >/dev/null 2>&1; then :
4170
4171else
4172  ac_cv_header_stdc=no
4173fi
4174rm -f conftest*
4175
4176fi
4177
4178if test $ac_cv_header_stdc = yes; then
4179  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181/* end confdefs.h.  */
4182#include <stdlib.h>
4183
4184_ACEOF
4185if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4186  $EGREP "free" >/dev/null 2>&1; then :
4187
4188else
4189  ac_cv_header_stdc=no
4190fi
4191rm -f conftest*
4192
4193fi
4194
4195if test $ac_cv_header_stdc = yes; then
4196  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4197  if test "$cross_compiling" = yes; then :
4198  :
4199else
4200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201/* end confdefs.h.  */
4202#include <ctype.h>
4203#include <stdlib.h>
4204#if ((' ' & 0x0FF) == 0x020)
4205# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4206# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4207#else
4208# define ISLOWER(c) \
4209		   (('a' <= (c) && (c) <= 'i') \
4210		     || ('j' <= (c) && (c) <= 'r') \
4211		     || ('s' <= (c) && (c) <= 'z'))
4212# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4213#endif
4214
4215#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4216int
4217main ()
4218{
4219  int i;
4220  for (i = 0; i < 256; i++)
4221    if (XOR (islower (i), ISLOWER (i))
4222	|| toupper (i) != TOUPPER (i))
4223      return 2;
4224  return 0;
4225}
4226_ACEOF
4227if ac_fn_c_try_run "$LINENO"; then :
4228
4229else
4230  ac_cv_header_stdc=no
4231fi
4232rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4233  conftest.$ac_objext conftest.beam conftest.$ac_ext
4234fi
4235
4236fi
4237fi
4238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4239$as_echo "$ac_cv_header_stdc" >&6; }
4240if test $ac_cv_header_stdc = yes; then
4241
4242$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4243
4244fi
4245
4246# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4247for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4248		  inttypes.h stdint.h unistd.h
4249do :
4250  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4251ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4252"
4253if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4254  cat >>confdefs.h <<_ACEOF
4255#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4256_ACEOF
4257
4258fi
4259
4260done
4261
4262
4263
4264
4265
4266
4267ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4268if test "x$ac_cv_have_decl___clang__" = xyes; then :
4269  CLANGCC="yes"
4270else
4271  CLANGCC="no"
4272fi
4273
4274ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4275if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4276  INTELCC="yes"
4277else
4278  INTELCC="no"
4279fi
4280
4281ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4282if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4283  SUNCC="yes"
4284else
4285  SUNCC="no"
4286fi
4287
4288
4289
4290
4291if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4292	if test -n "$ac_tool_prefix"; then
4293  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4294set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4296$as_echo_n "checking for $ac_word... " >&6; }
4297if ${ac_cv_path_PKG_CONFIG+:} false; then :
4298  $as_echo_n "(cached) " >&6
4299else
4300  case $PKG_CONFIG in
4301  [\\/]* | ?:[\\/]*)
4302  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4303  ;;
4304  *)
4305  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306for as_dir in $PATH
4307do
4308  IFS=$as_save_IFS
4309  test -z "$as_dir" && as_dir=.
4310    for ac_exec_ext in '' $ac_executable_extensions; do
4311  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4312    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4313    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4314    break 2
4315  fi
4316done
4317  done
4318IFS=$as_save_IFS
4319
4320  ;;
4321esac
4322fi
4323PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4324if test -n "$PKG_CONFIG"; then
4325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4326$as_echo "$PKG_CONFIG" >&6; }
4327else
4328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4329$as_echo "no" >&6; }
4330fi
4331
4332
4333fi
4334if test -z "$ac_cv_path_PKG_CONFIG"; then
4335  ac_pt_PKG_CONFIG=$PKG_CONFIG
4336  # Extract the first word of "pkg-config", so it can be a program name with args.
4337set dummy pkg-config; ac_word=$2
4338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4339$as_echo_n "checking for $ac_word... " >&6; }
4340if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4341  $as_echo_n "(cached) " >&6
4342else
4343  case $ac_pt_PKG_CONFIG in
4344  [\\/]* | ?:[\\/]*)
4345  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4346  ;;
4347  *)
4348  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349for as_dir in $PATH
4350do
4351  IFS=$as_save_IFS
4352  test -z "$as_dir" && as_dir=.
4353    for ac_exec_ext in '' $ac_executable_extensions; do
4354  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4355    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4356    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4357    break 2
4358  fi
4359done
4360  done
4361IFS=$as_save_IFS
4362
4363  ;;
4364esac
4365fi
4366ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4367if test -n "$ac_pt_PKG_CONFIG"; then
4368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4369$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4370else
4371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372$as_echo "no" >&6; }
4373fi
4374
4375  if test "x$ac_pt_PKG_CONFIG" = x; then
4376    PKG_CONFIG=""
4377  else
4378    case $cross_compiling:$ac_tool_warned in
4379yes:)
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4382ac_tool_warned=yes ;;
4383esac
4384    PKG_CONFIG=$ac_pt_PKG_CONFIG
4385  fi
4386else
4387  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4388fi
4389
4390fi
4391if test -n "$PKG_CONFIG"; then
4392	_pkg_min_version=0.9.0
4393	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4394$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4395	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4396		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4397$as_echo "yes" >&6; }
4398	else
4399		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4400$as_echo "no" >&6; }
4401		PKG_CONFIG=""
4402	fi
4403
4404fi
4405# Make sure we can run config.sub.
4406$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4407  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4408
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4410$as_echo_n "checking build system type... " >&6; }
4411if ${ac_cv_build+:} false; then :
4412  $as_echo_n "(cached) " >&6
4413else
4414  ac_build_alias=$build_alias
4415test "x$ac_build_alias" = x &&
4416  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4417test "x$ac_build_alias" = x &&
4418  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4419ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4420  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4421
4422fi
4423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4424$as_echo "$ac_cv_build" >&6; }
4425case $ac_cv_build in
4426*-*-*) ;;
4427*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4428esac
4429build=$ac_cv_build
4430ac_save_IFS=$IFS; IFS='-'
4431set x $ac_cv_build
4432shift
4433build_cpu=$1
4434build_vendor=$2
4435shift; shift
4436# Remember, the first character of IFS is used to create $*,
4437# except with old shells:
4438build_os=$*
4439IFS=$ac_save_IFS
4440case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4441
4442
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4444$as_echo_n "checking host system type... " >&6; }
4445if ${ac_cv_host+:} false; then :
4446  $as_echo_n "(cached) " >&6
4447else
4448  if test "x$host_alias" = x; then
4449  ac_cv_host=$ac_cv_build
4450else
4451  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4452    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4453fi
4454
4455fi
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4457$as_echo "$ac_cv_host" >&6; }
4458case $ac_cv_host in
4459*-*-*) ;;
4460*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4461esac
4462host=$ac_cv_host
4463ac_save_IFS=$IFS; IFS='-'
4464set x $ac_cv_host
4465shift
4466host_cpu=$1
4467host_vendor=$2
4468shift; shift
4469# Remember, the first character of IFS is used to create $*,
4470# except with old shells:
4471host_os=$*
4472IFS=$ac_save_IFS
4473case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4474
4475
4476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4477$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4478if ${ac_cv_path_SED+:} false; then :
4479  $as_echo_n "(cached) " >&6
4480else
4481            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4482     for ac_i in 1 2 3 4 5 6 7; do
4483       ac_script="$ac_script$as_nl$ac_script"
4484     done
4485     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4486     { ac_script=; unset ac_script;}
4487     if test -z "$SED"; then
4488  ac_path_SED_found=false
4489  # Loop through the user's path and test for each of PROGNAME-LIST
4490  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491for as_dir in $PATH
4492do
4493  IFS=$as_save_IFS
4494  test -z "$as_dir" && as_dir=.
4495    for ac_prog in sed gsed; do
4496    for ac_exec_ext in '' $ac_executable_extensions; do
4497      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4498      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4499# Check for GNU ac_path_SED and select it if it is found.
4500  # Check for GNU $ac_path_SED
4501case `"$ac_path_SED" --version 2>&1` in
4502*GNU*)
4503  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4504*)
4505  ac_count=0
4506  $as_echo_n 0123456789 >"conftest.in"
4507  while :
4508  do
4509    cat "conftest.in" "conftest.in" >"conftest.tmp"
4510    mv "conftest.tmp" "conftest.in"
4511    cp "conftest.in" "conftest.nl"
4512    $as_echo '' >> "conftest.nl"
4513    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4514    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4515    as_fn_arith $ac_count + 1 && ac_count=$as_val
4516    if test $ac_count -gt ${ac_path_SED_max-0}; then
4517      # Best one so far, save it but keep looking for a better one
4518      ac_cv_path_SED="$ac_path_SED"
4519      ac_path_SED_max=$ac_count
4520    fi
4521    # 10*(2^10) chars as input seems more than enough
4522    test $ac_count -gt 10 && break
4523  done
4524  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4525esac
4526
4527      $ac_path_SED_found && break 3
4528    done
4529  done
4530  done
4531IFS=$as_save_IFS
4532  if test -z "$ac_cv_path_SED"; then
4533    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4534  fi
4535else
4536  ac_cv_path_SED=$SED
4537fi
4538
4539fi
4540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4541$as_echo "$ac_cv_path_SED" >&6; }
4542 SED="$ac_cv_path_SED"
4543  rm -f conftest.sed
4544
4545
4546
4547
4548
4549
4550# Check whether --enable-selective-werror was given.
4551if test "${enable_selective_werror+set}" = set; then :
4552  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4553else
4554  SELECTIVE_WERROR=yes
4555fi
4556
4557
4558
4559
4560
4561# -v is too short to test reliably with XORG_TESTSET_CFLAG
4562if test "x$SUNCC" = "xyes"; then
4563    BASE_CFLAGS="-v"
4564else
4565    BASE_CFLAGS=""
4566fi
4567
4568# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582xorg_testset_save_CFLAGS="$CFLAGS"
4583
4584if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4585	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4586	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4587$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4588if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4589  $as_echo_n "(cached) " >&6
4590else
4591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592/* end confdefs.h.  */
4593int i;
4594_ACEOF
4595if ac_fn_c_try_compile "$LINENO"; then :
4596  xorg_cv_cc_flag_unknown_warning_option=yes
4597else
4598  xorg_cv_cc_flag_unknown_warning_option=no
4599fi
4600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4601fi
4602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4603$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4604	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4605	CFLAGS="$xorg_testset_save_CFLAGS"
4606fi
4607
4608if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4609	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4610		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4611	fi
4612	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4613	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4614$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4615if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4616  $as_echo_n "(cached) " >&6
4617else
4618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619/* end confdefs.h.  */
4620int i;
4621_ACEOF
4622if ac_fn_c_try_compile "$LINENO"; then :
4623  xorg_cv_cc_flag_unused_command_line_argument=yes
4624else
4625  xorg_cv_cc_flag_unused_command_line_argument=no
4626fi
4627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4628fi
4629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4630$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4631	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4632	CFLAGS="$xorg_testset_save_CFLAGS"
4633fi
4634
4635found="no"
4636
4637	if test $found = "no" ; then
4638		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4639			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4640		fi
4641
4642		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4643			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4644		fi
4645
4646		CFLAGS="$CFLAGS -Wall"
4647
4648		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4649$as_echo_n "checking if $CC supports -Wall... " >&6; }
4650		cacheid=xorg_cv_cc_flag__Wall
4651		if eval \${$cacheid+:} false; then :
4652  $as_echo_n "(cached) " >&6
4653else
4654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655/* end confdefs.h.  */
4656int i;
4657int
4658main ()
4659{
4660
4661  ;
4662  return 0;
4663}
4664_ACEOF
4665if ac_fn_c_try_link "$LINENO"; then :
4666  eval $cacheid=yes
4667else
4668  eval $cacheid=no
4669fi
4670rm -f core conftest.err conftest.$ac_objext \
4671    conftest$ac_exeext conftest.$ac_ext
4672fi
4673
4674
4675		CFLAGS="$xorg_testset_save_CFLAGS"
4676
4677		eval supported=\$$cacheid
4678		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4679$as_echo "$supported" >&6; }
4680		if test "$supported" = "yes" ; then
4681			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4682			found="yes"
4683		fi
4684	fi
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700xorg_testset_save_CFLAGS="$CFLAGS"
4701
4702if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4703	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4704	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4705$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4706if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4707  $as_echo_n "(cached) " >&6
4708else
4709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710/* end confdefs.h.  */
4711int i;
4712_ACEOF
4713if ac_fn_c_try_compile "$LINENO"; then :
4714  xorg_cv_cc_flag_unknown_warning_option=yes
4715else
4716  xorg_cv_cc_flag_unknown_warning_option=no
4717fi
4718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4719fi
4720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4721$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4722	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4723	CFLAGS="$xorg_testset_save_CFLAGS"
4724fi
4725
4726if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4727	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4728		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4729	fi
4730	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4731	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4732$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4733if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4734  $as_echo_n "(cached) " >&6
4735else
4736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737/* end confdefs.h.  */
4738int i;
4739_ACEOF
4740if ac_fn_c_try_compile "$LINENO"; then :
4741  xorg_cv_cc_flag_unused_command_line_argument=yes
4742else
4743  xorg_cv_cc_flag_unused_command_line_argument=no
4744fi
4745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746fi
4747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4748$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4749	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4750	CFLAGS="$xorg_testset_save_CFLAGS"
4751fi
4752
4753found="no"
4754
4755	if test $found = "no" ; then
4756		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4757			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4758		fi
4759
4760		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4761			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4762		fi
4763
4764		CFLAGS="$CFLAGS -Wpointer-arith"
4765
4766		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4767$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4768		cacheid=xorg_cv_cc_flag__Wpointer_arith
4769		if eval \${$cacheid+:} false; then :
4770  $as_echo_n "(cached) " >&6
4771else
4772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773/* end confdefs.h.  */
4774int i;
4775int
4776main ()
4777{
4778
4779  ;
4780  return 0;
4781}
4782_ACEOF
4783if ac_fn_c_try_link "$LINENO"; then :
4784  eval $cacheid=yes
4785else
4786  eval $cacheid=no
4787fi
4788rm -f core conftest.err conftest.$ac_objext \
4789    conftest$ac_exeext conftest.$ac_ext
4790fi
4791
4792
4793		CFLAGS="$xorg_testset_save_CFLAGS"
4794
4795		eval supported=\$$cacheid
4796		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4797$as_echo "$supported" >&6; }
4798		if test "$supported" = "yes" ; then
4799			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4800			found="yes"
4801		fi
4802	fi
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818xorg_testset_save_CFLAGS="$CFLAGS"
4819
4820if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4821	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4822	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4823$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4824if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4825  $as_echo_n "(cached) " >&6
4826else
4827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828/* end confdefs.h.  */
4829int i;
4830_ACEOF
4831if ac_fn_c_try_compile "$LINENO"; then :
4832  xorg_cv_cc_flag_unknown_warning_option=yes
4833else
4834  xorg_cv_cc_flag_unknown_warning_option=no
4835fi
4836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4837fi
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4839$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4840	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4841	CFLAGS="$xorg_testset_save_CFLAGS"
4842fi
4843
4844if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4845	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4846		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4847	fi
4848	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4849	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4850$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4851if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4852  $as_echo_n "(cached) " >&6
4853else
4854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855/* end confdefs.h.  */
4856int i;
4857_ACEOF
4858if ac_fn_c_try_compile "$LINENO"; then :
4859  xorg_cv_cc_flag_unused_command_line_argument=yes
4860else
4861  xorg_cv_cc_flag_unused_command_line_argument=no
4862fi
4863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4864fi
4865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4866$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4867	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4868	CFLAGS="$xorg_testset_save_CFLAGS"
4869fi
4870
4871found="no"
4872
4873	if test $found = "no" ; then
4874		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4875			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4876		fi
4877
4878		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4879			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4880		fi
4881
4882		CFLAGS="$CFLAGS -Wmissing-declarations"
4883
4884		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4885$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4886		cacheid=xorg_cv_cc_flag__Wmissing_declarations
4887		if eval \${$cacheid+:} false; then :
4888  $as_echo_n "(cached) " >&6
4889else
4890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891/* end confdefs.h.  */
4892int i;
4893int
4894main ()
4895{
4896
4897  ;
4898  return 0;
4899}
4900_ACEOF
4901if ac_fn_c_try_link "$LINENO"; then :
4902  eval $cacheid=yes
4903else
4904  eval $cacheid=no
4905fi
4906rm -f core conftest.err conftest.$ac_objext \
4907    conftest$ac_exeext conftest.$ac_ext
4908fi
4909
4910
4911		CFLAGS="$xorg_testset_save_CFLAGS"
4912
4913		eval supported=\$$cacheid
4914		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4915$as_echo "$supported" >&6; }
4916		if test "$supported" = "yes" ; then
4917			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4918			found="yes"
4919		fi
4920	fi
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936xorg_testset_save_CFLAGS="$CFLAGS"
4937
4938if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4939	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4940	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4941$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4942if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4943  $as_echo_n "(cached) " >&6
4944else
4945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4946/* end confdefs.h.  */
4947int i;
4948_ACEOF
4949if ac_fn_c_try_compile "$LINENO"; then :
4950  xorg_cv_cc_flag_unknown_warning_option=yes
4951else
4952  xorg_cv_cc_flag_unknown_warning_option=no
4953fi
4954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4955fi
4956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4957$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4958	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4959	CFLAGS="$xorg_testset_save_CFLAGS"
4960fi
4961
4962if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4963	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4964		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4965	fi
4966	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4967	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4968$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4969if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4970  $as_echo_n "(cached) " >&6
4971else
4972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4973/* end confdefs.h.  */
4974int i;
4975_ACEOF
4976if ac_fn_c_try_compile "$LINENO"; then :
4977  xorg_cv_cc_flag_unused_command_line_argument=yes
4978else
4979  xorg_cv_cc_flag_unused_command_line_argument=no
4980fi
4981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4982fi
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4984$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4985	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4986	CFLAGS="$xorg_testset_save_CFLAGS"
4987fi
4988
4989found="no"
4990
4991	if test $found = "no" ; then
4992		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4993			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4994		fi
4995
4996		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4997			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4998		fi
4999
5000		CFLAGS="$CFLAGS -Wformat=2"
5001
5002		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5003$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5004		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5005		if eval \${$cacheid+:} false; then :
5006  $as_echo_n "(cached) " >&6
5007else
5008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009/* end confdefs.h.  */
5010int i;
5011int
5012main ()
5013{
5014
5015  ;
5016  return 0;
5017}
5018_ACEOF
5019if ac_fn_c_try_link "$LINENO"; then :
5020  eval $cacheid=yes
5021else
5022  eval $cacheid=no
5023fi
5024rm -f core conftest.err conftest.$ac_objext \
5025    conftest$ac_exeext conftest.$ac_ext
5026fi
5027
5028
5029		CFLAGS="$xorg_testset_save_CFLAGS"
5030
5031		eval supported=\$$cacheid
5032		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5033$as_echo "$supported" >&6; }
5034		if test "$supported" = "yes" ; then
5035			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5036			found="yes"
5037		fi
5038	fi
5039
5040	if test $found = "no" ; then
5041		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5042			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5043		fi
5044
5045		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5046			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5047		fi
5048
5049		CFLAGS="$CFLAGS -Wformat"
5050
5051		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5052$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5053		cacheid=xorg_cv_cc_flag__Wformat
5054		if eval \${$cacheid+:} false; then :
5055  $as_echo_n "(cached) " >&6
5056else
5057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5058/* end confdefs.h.  */
5059int i;
5060int
5061main ()
5062{
5063
5064  ;
5065  return 0;
5066}
5067_ACEOF
5068if ac_fn_c_try_link "$LINENO"; then :
5069  eval $cacheid=yes
5070else
5071  eval $cacheid=no
5072fi
5073rm -f core conftest.err conftest.$ac_objext \
5074    conftest$ac_exeext conftest.$ac_ext
5075fi
5076
5077
5078		CFLAGS="$xorg_testset_save_CFLAGS"
5079
5080		eval supported=\$$cacheid
5081		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5082$as_echo "$supported" >&6; }
5083		if test "$supported" = "yes" ; then
5084			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5085			found="yes"
5086		fi
5087	fi
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105xorg_testset_save_CFLAGS="$CFLAGS"
5106
5107if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5108	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5109	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5110$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5111if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5112  $as_echo_n "(cached) " >&6
5113else
5114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115/* end confdefs.h.  */
5116int i;
5117_ACEOF
5118if ac_fn_c_try_compile "$LINENO"; then :
5119  xorg_cv_cc_flag_unknown_warning_option=yes
5120else
5121  xorg_cv_cc_flag_unknown_warning_option=no
5122fi
5123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5124fi
5125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5126$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5127	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5128	CFLAGS="$xorg_testset_save_CFLAGS"
5129fi
5130
5131if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5132	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5133		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5134	fi
5135	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5136	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5137$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5138if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5139  $as_echo_n "(cached) " >&6
5140else
5141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142/* end confdefs.h.  */
5143int i;
5144_ACEOF
5145if ac_fn_c_try_compile "$LINENO"; then :
5146  xorg_cv_cc_flag_unused_command_line_argument=yes
5147else
5148  xorg_cv_cc_flag_unused_command_line_argument=no
5149fi
5150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5151fi
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5153$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5154	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5155	CFLAGS="$xorg_testset_save_CFLAGS"
5156fi
5157
5158found="no"
5159
5160	if test $found = "no" ; then
5161		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5162			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5163		fi
5164
5165		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5166			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5167		fi
5168
5169		CFLAGS="$CFLAGS -Wstrict-prototypes"
5170
5171		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5172$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5173		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5174		if eval \${$cacheid+:} false; then :
5175  $as_echo_n "(cached) " >&6
5176else
5177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178/* end confdefs.h.  */
5179int i;
5180int
5181main ()
5182{
5183
5184  ;
5185  return 0;
5186}
5187_ACEOF
5188if ac_fn_c_try_link "$LINENO"; then :
5189  eval $cacheid=yes
5190else
5191  eval $cacheid=no
5192fi
5193rm -f core conftest.err conftest.$ac_objext \
5194    conftest$ac_exeext conftest.$ac_ext
5195fi
5196
5197
5198		CFLAGS="$xorg_testset_save_CFLAGS"
5199
5200		eval supported=\$$cacheid
5201		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5202$as_echo "$supported" >&6; }
5203		if test "$supported" = "yes" ; then
5204			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5205			found="yes"
5206		fi
5207	fi
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223xorg_testset_save_CFLAGS="$CFLAGS"
5224
5225if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5226	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5227	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5228$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5229if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5230  $as_echo_n "(cached) " >&6
5231else
5232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5233/* end confdefs.h.  */
5234int i;
5235_ACEOF
5236if ac_fn_c_try_compile "$LINENO"; then :
5237  xorg_cv_cc_flag_unknown_warning_option=yes
5238else
5239  xorg_cv_cc_flag_unknown_warning_option=no
5240fi
5241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5242fi
5243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5244$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5245	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5246	CFLAGS="$xorg_testset_save_CFLAGS"
5247fi
5248
5249if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5250	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5251		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5252	fi
5253	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5254	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5255$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5256if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5257  $as_echo_n "(cached) " >&6
5258else
5259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260/* end confdefs.h.  */
5261int i;
5262_ACEOF
5263if ac_fn_c_try_compile "$LINENO"; then :
5264  xorg_cv_cc_flag_unused_command_line_argument=yes
5265else
5266  xorg_cv_cc_flag_unused_command_line_argument=no
5267fi
5268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5269fi
5270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5271$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5272	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5273	CFLAGS="$xorg_testset_save_CFLAGS"
5274fi
5275
5276found="no"
5277
5278	if test $found = "no" ; then
5279		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5280			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5281		fi
5282
5283		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5284			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5285		fi
5286
5287		CFLAGS="$CFLAGS -Wmissing-prototypes"
5288
5289		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5290$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5291		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5292		if eval \${$cacheid+:} false; then :
5293  $as_echo_n "(cached) " >&6
5294else
5295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296/* end confdefs.h.  */
5297int i;
5298int
5299main ()
5300{
5301
5302  ;
5303  return 0;
5304}
5305_ACEOF
5306if ac_fn_c_try_link "$LINENO"; then :
5307  eval $cacheid=yes
5308else
5309  eval $cacheid=no
5310fi
5311rm -f core conftest.err conftest.$ac_objext \
5312    conftest$ac_exeext conftest.$ac_ext
5313fi
5314
5315
5316		CFLAGS="$xorg_testset_save_CFLAGS"
5317
5318		eval supported=\$$cacheid
5319		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5320$as_echo "$supported" >&6; }
5321		if test "$supported" = "yes" ; then
5322			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5323			found="yes"
5324		fi
5325	fi
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341xorg_testset_save_CFLAGS="$CFLAGS"
5342
5343if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5344	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5345	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5346$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5347if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5348  $as_echo_n "(cached) " >&6
5349else
5350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351/* end confdefs.h.  */
5352int i;
5353_ACEOF
5354if ac_fn_c_try_compile "$LINENO"; then :
5355  xorg_cv_cc_flag_unknown_warning_option=yes
5356else
5357  xorg_cv_cc_flag_unknown_warning_option=no
5358fi
5359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5360fi
5361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5362$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5363	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5364	CFLAGS="$xorg_testset_save_CFLAGS"
5365fi
5366
5367if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5368	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5369		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5370	fi
5371	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5372	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5373$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5374if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5375  $as_echo_n "(cached) " >&6
5376else
5377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378/* end confdefs.h.  */
5379int i;
5380_ACEOF
5381if ac_fn_c_try_compile "$LINENO"; then :
5382  xorg_cv_cc_flag_unused_command_line_argument=yes
5383else
5384  xorg_cv_cc_flag_unused_command_line_argument=no
5385fi
5386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5387fi
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5389$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5390	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5391	CFLAGS="$xorg_testset_save_CFLAGS"
5392fi
5393
5394found="no"
5395
5396	if test $found = "no" ; then
5397		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5398			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5399		fi
5400
5401		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5402			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5403		fi
5404
5405		CFLAGS="$CFLAGS -Wnested-externs"
5406
5407		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5408$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5409		cacheid=xorg_cv_cc_flag__Wnested_externs
5410		if eval \${$cacheid+:} false; then :
5411  $as_echo_n "(cached) " >&6
5412else
5413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414/* end confdefs.h.  */
5415int i;
5416int
5417main ()
5418{
5419
5420  ;
5421  return 0;
5422}
5423_ACEOF
5424if ac_fn_c_try_link "$LINENO"; then :
5425  eval $cacheid=yes
5426else
5427  eval $cacheid=no
5428fi
5429rm -f core conftest.err conftest.$ac_objext \
5430    conftest$ac_exeext conftest.$ac_ext
5431fi
5432
5433
5434		CFLAGS="$xorg_testset_save_CFLAGS"
5435
5436		eval supported=\$$cacheid
5437		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5438$as_echo "$supported" >&6; }
5439		if test "$supported" = "yes" ; then
5440			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5441			found="yes"
5442		fi
5443	fi
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459xorg_testset_save_CFLAGS="$CFLAGS"
5460
5461if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5462	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5463	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5464$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5465if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5466  $as_echo_n "(cached) " >&6
5467else
5468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469/* end confdefs.h.  */
5470int i;
5471_ACEOF
5472if ac_fn_c_try_compile "$LINENO"; then :
5473  xorg_cv_cc_flag_unknown_warning_option=yes
5474else
5475  xorg_cv_cc_flag_unknown_warning_option=no
5476fi
5477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5478fi
5479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5480$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5481	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5482	CFLAGS="$xorg_testset_save_CFLAGS"
5483fi
5484
5485if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5486	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5487		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5488	fi
5489	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5490	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5491$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5492if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5493  $as_echo_n "(cached) " >&6
5494else
5495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496/* end confdefs.h.  */
5497int i;
5498_ACEOF
5499if ac_fn_c_try_compile "$LINENO"; then :
5500  xorg_cv_cc_flag_unused_command_line_argument=yes
5501else
5502  xorg_cv_cc_flag_unused_command_line_argument=no
5503fi
5504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5505fi
5506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5507$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5508	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5509	CFLAGS="$xorg_testset_save_CFLAGS"
5510fi
5511
5512found="no"
5513
5514	if test $found = "no" ; then
5515		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5516			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5517		fi
5518
5519		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5520			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5521		fi
5522
5523		CFLAGS="$CFLAGS -Wbad-function-cast"
5524
5525		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5526$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5527		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5528		if eval \${$cacheid+:} false; then :
5529  $as_echo_n "(cached) " >&6
5530else
5531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532/* end confdefs.h.  */
5533int i;
5534int
5535main ()
5536{
5537
5538  ;
5539  return 0;
5540}
5541_ACEOF
5542if ac_fn_c_try_link "$LINENO"; then :
5543  eval $cacheid=yes
5544else
5545  eval $cacheid=no
5546fi
5547rm -f core conftest.err conftest.$ac_objext \
5548    conftest$ac_exeext conftest.$ac_ext
5549fi
5550
5551
5552		CFLAGS="$xorg_testset_save_CFLAGS"
5553
5554		eval supported=\$$cacheid
5555		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5556$as_echo "$supported" >&6; }
5557		if test "$supported" = "yes" ; then
5558			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5559			found="yes"
5560		fi
5561	fi
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577xorg_testset_save_CFLAGS="$CFLAGS"
5578
5579if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5580	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5581	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5582$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5583if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5584  $as_echo_n "(cached) " >&6
5585else
5586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587/* end confdefs.h.  */
5588int i;
5589_ACEOF
5590if ac_fn_c_try_compile "$LINENO"; then :
5591  xorg_cv_cc_flag_unknown_warning_option=yes
5592else
5593  xorg_cv_cc_flag_unknown_warning_option=no
5594fi
5595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5596fi
5597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5598$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5599	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5600	CFLAGS="$xorg_testset_save_CFLAGS"
5601fi
5602
5603if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5604	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5605		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5606	fi
5607	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5608	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5609$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5610if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5611  $as_echo_n "(cached) " >&6
5612else
5613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614/* end confdefs.h.  */
5615int i;
5616_ACEOF
5617if ac_fn_c_try_compile "$LINENO"; then :
5618  xorg_cv_cc_flag_unused_command_line_argument=yes
5619else
5620  xorg_cv_cc_flag_unused_command_line_argument=no
5621fi
5622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623fi
5624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5625$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5626	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5627	CFLAGS="$xorg_testset_save_CFLAGS"
5628fi
5629
5630found="no"
5631
5632	if test $found = "no" ; then
5633		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5634			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5635		fi
5636
5637		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5638			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5639		fi
5640
5641		CFLAGS="$CFLAGS -Wold-style-definition"
5642
5643		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5644$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5645		cacheid=xorg_cv_cc_flag__Wold_style_definition
5646		if eval \${$cacheid+:} false; then :
5647  $as_echo_n "(cached) " >&6
5648else
5649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5650/* end confdefs.h.  */
5651int i;
5652int
5653main ()
5654{
5655
5656  ;
5657  return 0;
5658}
5659_ACEOF
5660if ac_fn_c_try_link "$LINENO"; then :
5661  eval $cacheid=yes
5662else
5663  eval $cacheid=no
5664fi
5665rm -f core conftest.err conftest.$ac_objext \
5666    conftest$ac_exeext conftest.$ac_ext
5667fi
5668
5669
5670		CFLAGS="$xorg_testset_save_CFLAGS"
5671
5672		eval supported=\$$cacheid
5673		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5674$as_echo "$supported" >&6; }
5675		if test "$supported" = "yes" ; then
5676			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5677			found="yes"
5678		fi
5679	fi
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695xorg_testset_save_CFLAGS="$CFLAGS"
5696
5697if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5698	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5699	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5700$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5701if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5702  $as_echo_n "(cached) " >&6
5703else
5704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705/* end confdefs.h.  */
5706int i;
5707_ACEOF
5708if ac_fn_c_try_compile "$LINENO"; then :
5709  xorg_cv_cc_flag_unknown_warning_option=yes
5710else
5711  xorg_cv_cc_flag_unknown_warning_option=no
5712fi
5713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714fi
5715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5716$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5717	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5718	CFLAGS="$xorg_testset_save_CFLAGS"
5719fi
5720
5721if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5722	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5723		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5724	fi
5725	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5726	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5727$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5728if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5729  $as_echo_n "(cached) " >&6
5730else
5731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5732/* end confdefs.h.  */
5733int i;
5734_ACEOF
5735if ac_fn_c_try_compile "$LINENO"; then :
5736  xorg_cv_cc_flag_unused_command_line_argument=yes
5737else
5738  xorg_cv_cc_flag_unused_command_line_argument=no
5739fi
5740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5741fi
5742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5743$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5744	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5745	CFLAGS="$xorg_testset_save_CFLAGS"
5746fi
5747
5748found="no"
5749
5750	if test $found = "no" ; then
5751		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5752			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5753		fi
5754
5755		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5756			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5757		fi
5758
5759		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5760
5761		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5762$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5763		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5764		if eval \${$cacheid+:} false; then :
5765  $as_echo_n "(cached) " >&6
5766else
5767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5768/* end confdefs.h.  */
5769int i;
5770int
5771main ()
5772{
5773
5774  ;
5775  return 0;
5776}
5777_ACEOF
5778if ac_fn_c_try_link "$LINENO"; then :
5779  eval $cacheid=yes
5780else
5781  eval $cacheid=no
5782fi
5783rm -f core conftest.err conftest.$ac_objext \
5784    conftest$ac_exeext conftest.$ac_ext
5785fi
5786
5787
5788		CFLAGS="$xorg_testset_save_CFLAGS"
5789
5790		eval supported=\$$cacheid
5791		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5792$as_echo "$supported" >&6; }
5793		if test "$supported" = "yes" ; then
5794			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5795			found="yes"
5796		fi
5797	fi
5798
5799
5800
5801
5802
5803# This chunk adds additional warnings that could catch undesired effects.
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817xorg_testset_save_CFLAGS="$CFLAGS"
5818
5819if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5820	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5821	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5822$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5823if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5824  $as_echo_n "(cached) " >&6
5825else
5826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827/* end confdefs.h.  */
5828int i;
5829_ACEOF
5830if ac_fn_c_try_compile "$LINENO"; then :
5831  xorg_cv_cc_flag_unknown_warning_option=yes
5832else
5833  xorg_cv_cc_flag_unknown_warning_option=no
5834fi
5835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5836fi
5837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5838$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5839	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5840	CFLAGS="$xorg_testset_save_CFLAGS"
5841fi
5842
5843if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5844	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5845		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5846	fi
5847	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5848	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5849$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5850if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5851  $as_echo_n "(cached) " >&6
5852else
5853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854/* end confdefs.h.  */
5855int i;
5856_ACEOF
5857if ac_fn_c_try_compile "$LINENO"; then :
5858  xorg_cv_cc_flag_unused_command_line_argument=yes
5859else
5860  xorg_cv_cc_flag_unused_command_line_argument=no
5861fi
5862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5863fi
5864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5865$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5866	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5867	CFLAGS="$xorg_testset_save_CFLAGS"
5868fi
5869
5870found="no"
5871
5872	if test $found = "no" ; then
5873		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5874			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5875		fi
5876
5877		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5878			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5879		fi
5880
5881		CFLAGS="$CFLAGS -Wunused"
5882
5883		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5884$as_echo_n "checking if $CC supports -Wunused... " >&6; }
5885		cacheid=xorg_cv_cc_flag__Wunused
5886		if eval \${$cacheid+:} false; then :
5887  $as_echo_n "(cached) " >&6
5888else
5889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890/* end confdefs.h.  */
5891int i;
5892int
5893main ()
5894{
5895
5896  ;
5897  return 0;
5898}
5899_ACEOF
5900if ac_fn_c_try_link "$LINENO"; then :
5901  eval $cacheid=yes
5902else
5903  eval $cacheid=no
5904fi
5905rm -f core conftest.err conftest.$ac_objext \
5906    conftest$ac_exeext conftest.$ac_ext
5907fi
5908
5909
5910		CFLAGS="$xorg_testset_save_CFLAGS"
5911
5912		eval supported=\$$cacheid
5913		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5914$as_echo "$supported" >&6; }
5915		if test "$supported" = "yes" ; then
5916			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5917			found="yes"
5918		fi
5919	fi
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935xorg_testset_save_CFLAGS="$CFLAGS"
5936
5937if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5938	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5939	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5940$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5941if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5942  $as_echo_n "(cached) " >&6
5943else
5944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5945/* end confdefs.h.  */
5946int i;
5947_ACEOF
5948if ac_fn_c_try_compile "$LINENO"; then :
5949  xorg_cv_cc_flag_unknown_warning_option=yes
5950else
5951  xorg_cv_cc_flag_unknown_warning_option=no
5952fi
5953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5954fi
5955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5956$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5957	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5958	CFLAGS="$xorg_testset_save_CFLAGS"
5959fi
5960
5961if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5962	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5963		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5964	fi
5965	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5966	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5967$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5968if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5969  $as_echo_n "(cached) " >&6
5970else
5971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972/* end confdefs.h.  */
5973int i;
5974_ACEOF
5975if ac_fn_c_try_compile "$LINENO"; then :
5976  xorg_cv_cc_flag_unused_command_line_argument=yes
5977else
5978  xorg_cv_cc_flag_unused_command_line_argument=no
5979fi
5980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5981fi
5982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5983$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5984	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5985	CFLAGS="$xorg_testset_save_CFLAGS"
5986fi
5987
5988found="no"
5989
5990	if test $found = "no" ; then
5991		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5992			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5993		fi
5994
5995		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5996			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5997		fi
5998
5999		CFLAGS="$CFLAGS -Wuninitialized"
6000
6001		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6002$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6003		cacheid=xorg_cv_cc_flag__Wuninitialized
6004		if eval \${$cacheid+:} false; then :
6005  $as_echo_n "(cached) " >&6
6006else
6007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008/* end confdefs.h.  */
6009int i;
6010int
6011main ()
6012{
6013
6014  ;
6015  return 0;
6016}
6017_ACEOF
6018if ac_fn_c_try_link "$LINENO"; then :
6019  eval $cacheid=yes
6020else
6021  eval $cacheid=no
6022fi
6023rm -f core conftest.err conftest.$ac_objext \
6024    conftest$ac_exeext conftest.$ac_ext
6025fi
6026
6027
6028		CFLAGS="$xorg_testset_save_CFLAGS"
6029
6030		eval supported=\$$cacheid
6031		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6032$as_echo "$supported" >&6; }
6033		if test "$supported" = "yes" ; then
6034			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6035			found="yes"
6036		fi
6037	fi
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053xorg_testset_save_CFLAGS="$CFLAGS"
6054
6055if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6056	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6057	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6058$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6059if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6060  $as_echo_n "(cached) " >&6
6061else
6062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6063/* end confdefs.h.  */
6064int i;
6065_ACEOF
6066if ac_fn_c_try_compile "$LINENO"; then :
6067  xorg_cv_cc_flag_unknown_warning_option=yes
6068else
6069  xorg_cv_cc_flag_unknown_warning_option=no
6070fi
6071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6072fi
6073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6074$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6075	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6076	CFLAGS="$xorg_testset_save_CFLAGS"
6077fi
6078
6079if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6080	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6081		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6082	fi
6083	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6084	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6085$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6086if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6087  $as_echo_n "(cached) " >&6
6088else
6089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090/* end confdefs.h.  */
6091int i;
6092_ACEOF
6093if ac_fn_c_try_compile "$LINENO"; then :
6094  xorg_cv_cc_flag_unused_command_line_argument=yes
6095else
6096  xorg_cv_cc_flag_unused_command_line_argument=no
6097fi
6098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6099fi
6100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6101$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6102	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6103	CFLAGS="$xorg_testset_save_CFLAGS"
6104fi
6105
6106found="no"
6107
6108	if test $found = "no" ; then
6109		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6110			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6111		fi
6112
6113		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6114			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6115		fi
6116
6117		CFLAGS="$CFLAGS -Wshadow"
6118
6119		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6120$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6121		cacheid=xorg_cv_cc_flag__Wshadow
6122		if eval \${$cacheid+:} false; then :
6123  $as_echo_n "(cached) " >&6
6124else
6125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126/* end confdefs.h.  */
6127int i;
6128int
6129main ()
6130{
6131
6132  ;
6133  return 0;
6134}
6135_ACEOF
6136if ac_fn_c_try_link "$LINENO"; then :
6137  eval $cacheid=yes
6138else
6139  eval $cacheid=no
6140fi
6141rm -f core conftest.err conftest.$ac_objext \
6142    conftest$ac_exeext conftest.$ac_ext
6143fi
6144
6145
6146		CFLAGS="$xorg_testset_save_CFLAGS"
6147
6148		eval supported=\$$cacheid
6149		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6150$as_echo "$supported" >&6; }
6151		if test "$supported" = "yes" ; then
6152			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6153			found="yes"
6154		fi
6155	fi
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171xorg_testset_save_CFLAGS="$CFLAGS"
6172
6173if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6174	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6175	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6176$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6177if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6178  $as_echo_n "(cached) " >&6
6179else
6180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6181/* end confdefs.h.  */
6182int i;
6183_ACEOF
6184if ac_fn_c_try_compile "$LINENO"; then :
6185  xorg_cv_cc_flag_unknown_warning_option=yes
6186else
6187  xorg_cv_cc_flag_unknown_warning_option=no
6188fi
6189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6190fi
6191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6192$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6193	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6194	CFLAGS="$xorg_testset_save_CFLAGS"
6195fi
6196
6197if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6198	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6199		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6200	fi
6201	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6202	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6203$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6204if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6205  $as_echo_n "(cached) " >&6
6206else
6207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208/* end confdefs.h.  */
6209int i;
6210_ACEOF
6211if ac_fn_c_try_compile "$LINENO"; then :
6212  xorg_cv_cc_flag_unused_command_line_argument=yes
6213else
6214  xorg_cv_cc_flag_unused_command_line_argument=no
6215fi
6216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6217fi
6218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6219$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6220	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6221	CFLAGS="$xorg_testset_save_CFLAGS"
6222fi
6223
6224found="no"
6225
6226	if test $found = "no" ; then
6227		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6228			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6229		fi
6230
6231		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6232			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6233		fi
6234
6235		CFLAGS="$CFLAGS -Wcast-qual"
6236
6237		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6238$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6239		cacheid=xorg_cv_cc_flag__Wcast_qual
6240		if eval \${$cacheid+:} false; then :
6241  $as_echo_n "(cached) " >&6
6242else
6243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6244/* end confdefs.h.  */
6245int i;
6246int
6247main ()
6248{
6249
6250  ;
6251  return 0;
6252}
6253_ACEOF
6254if ac_fn_c_try_link "$LINENO"; then :
6255  eval $cacheid=yes
6256else
6257  eval $cacheid=no
6258fi
6259rm -f core conftest.err conftest.$ac_objext \
6260    conftest$ac_exeext conftest.$ac_ext
6261fi
6262
6263
6264		CFLAGS="$xorg_testset_save_CFLAGS"
6265
6266		eval supported=\$$cacheid
6267		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6268$as_echo "$supported" >&6; }
6269		if test "$supported" = "yes" ; then
6270			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6271			found="yes"
6272		fi
6273	fi
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289xorg_testset_save_CFLAGS="$CFLAGS"
6290
6291if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6292	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6293	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6294$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6295if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6296  $as_echo_n "(cached) " >&6
6297else
6298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6299/* end confdefs.h.  */
6300int i;
6301_ACEOF
6302if ac_fn_c_try_compile "$LINENO"; then :
6303  xorg_cv_cc_flag_unknown_warning_option=yes
6304else
6305  xorg_cv_cc_flag_unknown_warning_option=no
6306fi
6307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308fi
6309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6310$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6311	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6312	CFLAGS="$xorg_testset_save_CFLAGS"
6313fi
6314
6315if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6316	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6317		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6318	fi
6319	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6320	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6321$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6322if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6323  $as_echo_n "(cached) " >&6
6324else
6325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326/* end confdefs.h.  */
6327int i;
6328_ACEOF
6329if ac_fn_c_try_compile "$LINENO"; then :
6330  xorg_cv_cc_flag_unused_command_line_argument=yes
6331else
6332  xorg_cv_cc_flag_unused_command_line_argument=no
6333fi
6334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6335fi
6336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6337$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6338	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6339	CFLAGS="$xorg_testset_save_CFLAGS"
6340fi
6341
6342found="no"
6343
6344	if test $found = "no" ; then
6345		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6346			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6347		fi
6348
6349		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6350			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6351		fi
6352
6353		CFLAGS="$CFLAGS -Wmissing-noreturn"
6354
6355		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6356$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6357		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6358		if eval \${$cacheid+:} false; then :
6359  $as_echo_n "(cached) " >&6
6360else
6361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362/* end confdefs.h.  */
6363int i;
6364int
6365main ()
6366{
6367
6368  ;
6369  return 0;
6370}
6371_ACEOF
6372if ac_fn_c_try_link "$LINENO"; then :
6373  eval $cacheid=yes
6374else
6375  eval $cacheid=no
6376fi
6377rm -f core conftest.err conftest.$ac_objext \
6378    conftest$ac_exeext conftest.$ac_ext
6379fi
6380
6381
6382		CFLAGS="$xorg_testset_save_CFLAGS"
6383
6384		eval supported=\$$cacheid
6385		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6386$as_echo "$supported" >&6; }
6387		if test "$supported" = "yes" ; then
6388			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6389			found="yes"
6390		fi
6391	fi
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407xorg_testset_save_CFLAGS="$CFLAGS"
6408
6409if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6410	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6411	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6412$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6413if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6414  $as_echo_n "(cached) " >&6
6415else
6416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6417/* end confdefs.h.  */
6418int i;
6419_ACEOF
6420if ac_fn_c_try_compile "$LINENO"; then :
6421  xorg_cv_cc_flag_unknown_warning_option=yes
6422else
6423  xorg_cv_cc_flag_unknown_warning_option=no
6424fi
6425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6426fi
6427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6428$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6429	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6430	CFLAGS="$xorg_testset_save_CFLAGS"
6431fi
6432
6433if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6434	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6435		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6436	fi
6437	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6438	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6439$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6440if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6441  $as_echo_n "(cached) " >&6
6442else
6443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6444/* end confdefs.h.  */
6445int i;
6446_ACEOF
6447if ac_fn_c_try_compile "$LINENO"; then :
6448  xorg_cv_cc_flag_unused_command_line_argument=yes
6449else
6450  xorg_cv_cc_flag_unused_command_line_argument=no
6451fi
6452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6453fi
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6455$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6456	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6457	CFLAGS="$xorg_testset_save_CFLAGS"
6458fi
6459
6460found="no"
6461
6462	if test $found = "no" ; then
6463		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6464			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6465		fi
6466
6467		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6468			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6469		fi
6470
6471		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6472
6473		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6474$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6475		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6476		if eval \${$cacheid+:} false; then :
6477  $as_echo_n "(cached) " >&6
6478else
6479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6480/* end confdefs.h.  */
6481int i;
6482int
6483main ()
6484{
6485
6486  ;
6487  return 0;
6488}
6489_ACEOF
6490if ac_fn_c_try_link "$LINENO"; then :
6491  eval $cacheid=yes
6492else
6493  eval $cacheid=no
6494fi
6495rm -f core conftest.err conftest.$ac_objext \
6496    conftest$ac_exeext conftest.$ac_ext
6497fi
6498
6499
6500		CFLAGS="$xorg_testset_save_CFLAGS"
6501
6502		eval supported=\$$cacheid
6503		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6504$as_echo "$supported" >&6; }
6505		if test "$supported" = "yes" ; then
6506			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6507			found="yes"
6508		fi
6509	fi
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525xorg_testset_save_CFLAGS="$CFLAGS"
6526
6527if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6528	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6529	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6530$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6531if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6532  $as_echo_n "(cached) " >&6
6533else
6534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535/* end confdefs.h.  */
6536int i;
6537_ACEOF
6538if ac_fn_c_try_compile "$LINENO"; then :
6539  xorg_cv_cc_flag_unknown_warning_option=yes
6540else
6541  xorg_cv_cc_flag_unknown_warning_option=no
6542fi
6543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6544fi
6545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6546$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6547	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6548	CFLAGS="$xorg_testset_save_CFLAGS"
6549fi
6550
6551if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6552	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6553		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6554	fi
6555	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6556	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6557$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6558if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6559  $as_echo_n "(cached) " >&6
6560else
6561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6562/* end confdefs.h.  */
6563int i;
6564_ACEOF
6565if ac_fn_c_try_compile "$LINENO"; then :
6566  xorg_cv_cc_flag_unused_command_line_argument=yes
6567else
6568  xorg_cv_cc_flag_unused_command_line_argument=no
6569fi
6570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6571fi
6572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6573$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6574	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6575	CFLAGS="$xorg_testset_save_CFLAGS"
6576fi
6577
6578found="no"
6579
6580	if test $found = "no" ; then
6581		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6582			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6583		fi
6584
6585		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6586			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6587		fi
6588
6589		CFLAGS="$CFLAGS -Wredundant-decls"
6590
6591		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6592$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6593		cacheid=xorg_cv_cc_flag__Wredundant_decls
6594		if eval \${$cacheid+:} false; then :
6595  $as_echo_n "(cached) " >&6
6596else
6597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598/* end confdefs.h.  */
6599int i;
6600int
6601main ()
6602{
6603
6604  ;
6605  return 0;
6606}
6607_ACEOF
6608if ac_fn_c_try_link "$LINENO"; then :
6609  eval $cacheid=yes
6610else
6611  eval $cacheid=no
6612fi
6613rm -f core conftest.err conftest.$ac_objext \
6614    conftest$ac_exeext conftest.$ac_ext
6615fi
6616
6617
6618		CFLAGS="$xorg_testset_save_CFLAGS"
6619
6620		eval supported=\$$cacheid
6621		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6622$as_echo "$supported" >&6; }
6623		if test "$supported" = "yes" ; then
6624			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6625			found="yes"
6626		fi
6627	fi
6628
6629
6630
6631# These are currently disabled because they are noisy.  They will be enabled
6632# in the future once the codebase is sufficiently modernized to silence
6633# them.  For now, I don't want them to drown out the other warnings.
6634# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6635# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6636# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6637
6638# Turn some warnings into errors, so we don't accidently get successful builds
6639# when there are problems that should be fixed.
6640
6641if test "x$SELECTIVE_WERROR" = "xyes" ; then
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655xorg_testset_save_CFLAGS="$CFLAGS"
6656
6657if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6658	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6659	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6660$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6661if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6662  $as_echo_n "(cached) " >&6
6663else
6664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665/* end confdefs.h.  */
6666int i;
6667_ACEOF
6668if ac_fn_c_try_compile "$LINENO"; then :
6669  xorg_cv_cc_flag_unknown_warning_option=yes
6670else
6671  xorg_cv_cc_flag_unknown_warning_option=no
6672fi
6673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6674fi
6675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6676$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6677	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6678	CFLAGS="$xorg_testset_save_CFLAGS"
6679fi
6680
6681if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6682	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6683		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6684	fi
6685	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6686	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6687$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6688if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6689  $as_echo_n "(cached) " >&6
6690else
6691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6692/* end confdefs.h.  */
6693int i;
6694_ACEOF
6695if ac_fn_c_try_compile "$LINENO"; then :
6696  xorg_cv_cc_flag_unused_command_line_argument=yes
6697else
6698  xorg_cv_cc_flag_unused_command_line_argument=no
6699fi
6700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6701fi
6702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6703$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6704	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6705	CFLAGS="$xorg_testset_save_CFLAGS"
6706fi
6707
6708found="no"
6709
6710	if test $found = "no" ; then
6711		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6712			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6713		fi
6714
6715		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6716			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6717		fi
6718
6719		CFLAGS="$CFLAGS -Werror=implicit"
6720
6721		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6722$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6723		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6724		if eval \${$cacheid+:} false; then :
6725  $as_echo_n "(cached) " >&6
6726else
6727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728/* end confdefs.h.  */
6729int i;
6730int
6731main ()
6732{
6733
6734  ;
6735  return 0;
6736}
6737_ACEOF
6738if ac_fn_c_try_link "$LINENO"; then :
6739  eval $cacheid=yes
6740else
6741  eval $cacheid=no
6742fi
6743rm -f core conftest.err conftest.$ac_objext \
6744    conftest$ac_exeext conftest.$ac_ext
6745fi
6746
6747
6748		CFLAGS="$xorg_testset_save_CFLAGS"
6749
6750		eval supported=\$$cacheid
6751		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6752$as_echo "$supported" >&6; }
6753		if test "$supported" = "yes" ; then
6754			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6755			found="yes"
6756		fi
6757	fi
6758
6759	if test $found = "no" ; then
6760		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6761			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6762		fi
6763
6764		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6765			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6766		fi
6767
6768		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6769
6770		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6771$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6772		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6773		if eval \${$cacheid+:} false; then :
6774  $as_echo_n "(cached) " >&6
6775else
6776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777/* end confdefs.h.  */
6778int i;
6779int
6780main ()
6781{
6782
6783  ;
6784  return 0;
6785}
6786_ACEOF
6787if ac_fn_c_try_link "$LINENO"; then :
6788  eval $cacheid=yes
6789else
6790  eval $cacheid=no
6791fi
6792rm -f core conftest.err conftest.$ac_objext \
6793    conftest$ac_exeext conftest.$ac_ext
6794fi
6795
6796
6797		CFLAGS="$xorg_testset_save_CFLAGS"
6798
6799		eval supported=\$$cacheid
6800		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6801$as_echo "$supported" >&6; }
6802		if test "$supported" = "yes" ; then
6803			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6804			found="yes"
6805		fi
6806	fi
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822xorg_testset_save_CFLAGS="$CFLAGS"
6823
6824if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6825	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6826	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6827$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6828if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6829  $as_echo_n "(cached) " >&6
6830else
6831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832/* end confdefs.h.  */
6833int i;
6834_ACEOF
6835if ac_fn_c_try_compile "$LINENO"; then :
6836  xorg_cv_cc_flag_unknown_warning_option=yes
6837else
6838  xorg_cv_cc_flag_unknown_warning_option=no
6839fi
6840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6841fi
6842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6843$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6844	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6845	CFLAGS="$xorg_testset_save_CFLAGS"
6846fi
6847
6848if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6849	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6850		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6851	fi
6852	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6853	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6854$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6855if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6856  $as_echo_n "(cached) " >&6
6857else
6858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859/* end confdefs.h.  */
6860int i;
6861_ACEOF
6862if ac_fn_c_try_compile "$LINENO"; then :
6863  xorg_cv_cc_flag_unused_command_line_argument=yes
6864else
6865  xorg_cv_cc_flag_unused_command_line_argument=no
6866fi
6867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6868fi
6869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6870$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6871	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6872	CFLAGS="$xorg_testset_save_CFLAGS"
6873fi
6874
6875found="no"
6876
6877	if test $found = "no" ; then
6878		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6879			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6880		fi
6881
6882		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6883			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6884		fi
6885
6886		CFLAGS="$CFLAGS -Werror=nonnull"
6887
6888		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6889$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6890		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6891		if eval \${$cacheid+:} false; then :
6892  $as_echo_n "(cached) " >&6
6893else
6894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895/* end confdefs.h.  */
6896int i;
6897int
6898main ()
6899{
6900
6901  ;
6902  return 0;
6903}
6904_ACEOF
6905if ac_fn_c_try_link "$LINENO"; then :
6906  eval $cacheid=yes
6907else
6908  eval $cacheid=no
6909fi
6910rm -f core conftest.err conftest.$ac_objext \
6911    conftest$ac_exeext conftest.$ac_ext
6912fi
6913
6914
6915		CFLAGS="$xorg_testset_save_CFLAGS"
6916
6917		eval supported=\$$cacheid
6918		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6919$as_echo "$supported" >&6; }
6920		if test "$supported" = "yes" ; then
6921			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6922			found="yes"
6923		fi
6924	fi
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940xorg_testset_save_CFLAGS="$CFLAGS"
6941
6942if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6943	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6944	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6945$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6946if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6947  $as_echo_n "(cached) " >&6
6948else
6949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950/* end confdefs.h.  */
6951int i;
6952_ACEOF
6953if ac_fn_c_try_compile "$LINENO"; then :
6954  xorg_cv_cc_flag_unknown_warning_option=yes
6955else
6956  xorg_cv_cc_flag_unknown_warning_option=no
6957fi
6958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6959fi
6960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6961$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6962	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6963	CFLAGS="$xorg_testset_save_CFLAGS"
6964fi
6965
6966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6967	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6968		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6969	fi
6970	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6971	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6972$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6973if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6974  $as_echo_n "(cached) " >&6
6975else
6976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6977/* end confdefs.h.  */
6978int i;
6979_ACEOF
6980if ac_fn_c_try_compile "$LINENO"; then :
6981  xorg_cv_cc_flag_unused_command_line_argument=yes
6982else
6983  xorg_cv_cc_flag_unused_command_line_argument=no
6984fi
6985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6986fi
6987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6988$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6989	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6990	CFLAGS="$xorg_testset_save_CFLAGS"
6991fi
6992
6993found="no"
6994
6995	if test $found = "no" ; then
6996		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6997			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6998		fi
6999
7000		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7001			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7002		fi
7003
7004		CFLAGS="$CFLAGS -Werror=init-self"
7005
7006		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7007$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7008		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7009		if eval \${$cacheid+:} false; then :
7010  $as_echo_n "(cached) " >&6
7011else
7012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013/* end confdefs.h.  */
7014int i;
7015int
7016main ()
7017{
7018
7019  ;
7020  return 0;
7021}
7022_ACEOF
7023if ac_fn_c_try_link "$LINENO"; then :
7024  eval $cacheid=yes
7025else
7026  eval $cacheid=no
7027fi
7028rm -f core conftest.err conftest.$ac_objext \
7029    conftest$ac_exeext conftest.$ac_ext
7030fi
7031
7032
7033		CFLAGS="$xorg_testset_save_CFLAGS"
7034
7035		eval supported=\$$cacheid
7036		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7037$as_echo "$supported" >&6; }
7038		if test "$supported" = "yes" ; then
7039			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7040			found="yes"
7041		fi
7042	fi
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058xorg_testset_save_CFLAGS="$CFLAGS"
7059
7060if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7061	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7062	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7063$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7064if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7065  $as_echo_n "(cached) " >&6
7066else
7067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068/* end confdefs.h.  */
7069int i;
7070_ACEOF
7071if ac_fn_c_try_compile "$LINENO"; then :
7072  xorg_cv_cc_flag_unknown_warning_option=yes
7073else
7074  xorg_cv_cc_flag_unknown_warning_option=no
7075fi
7076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7077fi
7078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7079$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7080	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7081	CFLAGS="$xorg_testset_save_CFLAGS"
7082fi
7083
7084if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7085	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7086		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7087	fi
7088	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7089	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7090$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7091if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7092  $as_echo_n "(cached) " >&6
7093else
7094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7095/* end confdefs.h.  */
7096int i;
7097_ACEOF
7098if ac_fn_c_try_compile "$LINENO"; then :
7099  xorg_cv_cc_flag_unused_command_line_argument=yes
7100else
7101  xorg_cv_cc_flag_unused_command_line_argument=no
7102fi
7103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7104fi
7105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7106$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7107	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7108	CFLAGS="$xorg_testset_save_CFLAGS"
7109fi
7110
7111found="no"
7112
7113	if test $found = "no" ; then
7114		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7115			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7116		fi
7117
7118		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7119			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7120		fi
7121
7122		CFLAGS="$CFLAGS -Werror=main"
7123
7124		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7125$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7126		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7127		if eval \${$cacheid+:} false; then :
7128  $as_echo_n "(cached) " >&6
7129else
7130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7131/* end confdefs.h.  */
7132int i;
7133int
7134main ()
7135{
7136
7137  ;
7138  return 0;
7139}
7140_ACEOF
7141if ac_fn_c_try_link "$LINENO"; then :
7142  eval $cacheid=yes
7143else
7144  eval $cacheid=no
7145fi
7146rm -f core conftest.err conftest.$ac_objext \
7147    conftest$ac_exeext conftest.$ac_ext
7148fi
7149
7150
7151		CFLAGS="$xorg_testset_save_CFLAGS"
7152
7153		eval supported=\$$cacheid
7154		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7155$as_echo "$supported" >&6; }
7156		if test "$supported" = "yes" ; then
7157			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7158			found="yes"
7159		fi
7160	fi
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176xorg_testset_save_CFLAGS="$CFLAGS"
7177
7178if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7179	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7180	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7181$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7182if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7183  $as_echo_n "(cached) " >&6
7184else
7185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186/* end confdefs.h.  */
7187int i;
7188_ACEOF
7189if ac_fn_c_try_compile "$LINENO"; then :
7190  xorg_cv_cc_flag_unknown_warning_option=yes
7191else
7192  xorg_cv_cc_flag_unknown_warning_option=no
7193fi
7194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7195fi
7196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7197$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7198	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7199	CFLAGS="$xorg_testset_save_CFLAGS"
7200fi
7201
7202if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7203	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7204		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7205	fi
7206	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7207	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7208$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7209if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7210  $as_echo_n "(cached) " >&6
7211else
7212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7213/* end confdefs.h.  */
7214int i;
7215_ACEOF
7216if ac_fn_c_try_compile "$LINENO"; then :
7217  xorg_cv_cc_flag_unused_command_line_argument=yes
7218else
7219  xorg_cv_cc_flag_unused_command_line_argument=no
7220fi
7221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7222fi
7223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7224$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7225	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7226	CFLAGS="$xorg_testset_save_CFLAGS"
7227fi
7228
7229found="no"
7230
7231	if test $found = "no" ; then
7232		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7233			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7234		fi
7235
7236		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7237			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7238		fi
7239
7240		CFLAGS="$CFLAGS -Werror=missing-braces"
7241
7242		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7243$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7244		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7245		if eval \${$cacheid+:} false; then :
7246  $as_echo_n "(cached) " >&6
7247else
7248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7249/* end confdefs.h.  */
7250int i;
7251int
7252main ()
7253{
7254
7255  ;
7256  return 0;
7257}
7258_ACEOF
7259if ac_fn_c_try_link "$LINENO"; then :
7260  eval $cacheid=yes
7261else
7262  eval $cacheid=no
7263fi
7264rm -f core conftest.err conftest.$ac_objext \
7265    conftest$ac_exeext conftest.$ac_ext
7266fi
7267
7268
7269		CFLAGS="$xorg_testset_save_CFLAGS"
7270
7271		eval supported=\$$cacheid
7272		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7273$as_echo "$supported" >&6; }
7274		if test "$supported" = "yes" ; then
7275			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7276			found="yes"
7277		fi
7278	fi
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294xorg_testset_save_CFLAGS="$CFLAGS"
7295
7296if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7297	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7298	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7299$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7300if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7301  $as_echo_n "(cached) " >&6
7302else
7303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304/* end confdefs.h.  */
7305int i;
7306_ACEOF
7307if ac_fn_c_try_compile "$LINENO"; then :
7308  xorg_cv_cc_flag_unknown_warning_option=yes
7309else
7310  xorg_cv_cc_flag_unknown_warning_option=no
7311fi
7312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7313fi
7314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7315$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7316	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7317	CFLAGS="$xorg_testset_save_CFLAGS"
7318fi
7319
7320if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7321	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7322		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7323	fi
7324	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7325	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7326$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7327if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7328  $as_echo_n "(cached) " >&6
7329else
7330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7331/* end confdefs.h.  */
7332int i;
7333_ACEOF
7334if ac_fn_c_try_compile "$LINENO"; then :
7335  xorg_cv_cc_flag_unused_command_line_argument=yes
7336else
7337  xorg_cv_cc_flag_unused_command_line_argument=no
7338fi
7339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7340fi
7341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7342$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7343	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7344	CFLAGS="$xorg_testset_save_CFLAGS"
7345fi
7346
7347found="no"
7348
7349	if test $found = "no" ; then
7350		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7351			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7352		fi
7353
7354		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7355			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7356		fi
7357
7358		CFLAGS="$CFLAGS -Werror=sequence-point"
7359
7360		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7361$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7362		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7363		if eval \${$cacheid+:} false; then :
7364  $as_echo_n "(cached) " >&6
7365else
7366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7367/* end confdefs.h.  */
7368int i;
7369int
7370main ()
7371{
7372
7373  ;
7374  return 0;
7375}
7376_ACEOF
7377if ac_fn_c_try_link "$LINENO"; then :
7378  eval $cacheid=yes
7379else
7380  eval $cacheid=no
7381fi
7382rm -f core conftest.err conftest.$ac_objext \
7383    conftest$ac_exeext conftest.$ac_ext
7384fi
7385
7386
7387		CFLAGS="$xorg_testset_save_CFLAGS"
7388
7389		eval supported=\$$cacheid
7390		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7391$as_echo "$supported" >&6; }
7392		if test "$supported" = "yes" ; then
7393			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7394			found="yes"
7395		fi
7396	fi
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412xorg_testset_save_CFLAGS="$CFLAGS"
7413
7414if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7415	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7416	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7417$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7418if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7419  $as_echo_n "(cached) " >&6
7420else
7421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7422/* end confdefs.h.  */
7423int i;
7424_ACEOF
7425if ac_fn_c_try_compile "$LINENO"; then :
7426  xorg_cv_cc_flag_unknown_warning_option=yes
7427else
7428  xorg_cv_cc_flag_unknown_warning_option=no
7429fi
7430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7431fi
7432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7433$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7434	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7435	CFLAGS="$xorg_testset_save_CFLAGS"
7436fi
7437
7438if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7439	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7440		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7441	fi
7442	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7443	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7444$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7445if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7446  $as_echo_n "(cached) " >&6
7447else
7448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449/* end confdefs.h.  */
7450int i;
7451_ACEOF
7452if ac_fn_c_try_compile "$LINENO"; then :
7453  xorg_cv_cc_flag_unused_command_line_argument=yes
7454else
7455  xorg_cv_cc_flag_unused_command_line_argument=no
7456fi
7457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7458fi
7459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7460$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7461	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7462	CFLAGS="$xorg_testset_save_CFLAGS"
7463fi
7464
7465found="no"
7466
7467	if test $found = "no" ; then
7468		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7469			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7470		fi
7471
7472		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7473			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7474		fi
7475
7476		CFLAGS="$CFLAGS -Werror=return-type"
7477
7478		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7479$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7480		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7481		if eval \${$cacheid+:} false; then :
7482  $as_echo_n "(cached) " >&6
7483else
7484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7485/* end confdefs.h.  */
7486int i;
7487int
7488main ()
7489{
7490
7491  ;
7492  return 0;
7493}
7494_ACEOF
7495if ac_fn_c_try_link "$LINENO"; then :
7496  eval $cacheid=yes
7497else
7498  eval $cacheid=no
7499fi
7500rm -f core conftest.err conftest.$ac_objext \
7501    conftest$ac_exeext conftest.$ac_ext
7502fi
7503
7504
7505		CFLAGS="$xorg_testset_save_CFLAGS"
7506
7507		eval supported=\$$cacheid
7508		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7509$as_echo "$supported" >&6; }
7510		if test "$supported" = "yes" ; then
7511			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7512			found="yes"
7513		fi
7514	fi
7515
7516	if test $found = "no" ; then
7517		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7518			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7519		fi
7520
7521		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7522			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7523		fi
7524
7525		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7526
7527		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7528$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7529		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7530		if eval \${$cacheid+:} false; then :
7531  $as_echo_n "(cached) " >&6
7532else
7533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7534/* end confdefs.h.  */
7535int i;
7536int
7537main ()
7538{
7539
7540  ;
7541  return 0;
7542}
7543_ACEOF
7544if ac_fn_c_try_link "$LINENO"; then :
7545  eval $cacheid=yes
7546else
7547  eval $cacheid=no
7548fi
7549rm -f core conftest.err conftest.$ac_objext \
7550    conftest$ac_exeext conftest.$ac_ext
7551fi
7552
7553
7554		CFLAGS="$xorg_testset_save_CFLAGS"
7555
7556		eval supported=\$$cacheid
7557		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7558$as_echo "$supported" >&6; }
7559		if test "$supported" = "yes" ; then
7560			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7561			found="yes"
7562		fi
7563	fi
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579xorg_testset_save_CFLAGS="$CFLAGS"
7580
7581if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7582	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7583	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7584$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7585if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7586  $as_echo_n "(cached) " >&6
7587else
7588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589/* end confdefs.h.  */
7590int i;
7591_ACEOF
7592if ac_fn_c_try_compile "$LINENO"; then :
7593  xorg_cv_cc_flag_unknown_warning_option=yes
7594else
7595  xorg_cv_cc_flag_unknown_warning_option=no
7596fi
7597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7598fi
7599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7600$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7601	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7602	CFLAGS="$xorg_testset_save_CFLAGS"
7603fi
7604
7605if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7606	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7607		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7608	fi
7609	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7610	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7611$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7612if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7613  $as_echo_n "(cached) " >&6
7614else
7615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7616/* end confdefs.h.  */
7617int i;
7618_ACEOF
7619if ac_fn_c_try_compile "$LINENO"; then :
7620  xorg_cv_cc_flag_unused_command_line_argument=yes
7621else
7622  xorg_cv_cc_flag_unused_command_line_argument=no
7623fi
7624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7625fi
7626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7627$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7628	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7629	CFLAGS="$xorg_testset_save_CFLAGS"
7630fi
7631
7632found="no"
7633
7634	if test $found = "no" ; then
7635		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7636			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7637		fi
7638
7639		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7640			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7641		fi
7642
7643		CFLAGS="$CFLAGS -Werror=trigraphs"
7644
7645		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7646$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7647		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7648		if eval \${$cacheid+:} false; then :
7649  $as_echo_n "(cached) " >&6
7650else
7651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7652/* end confdefs.h.  */
7653int i;
7654int
7655main ()
7656{
7657
7658  ;
7659  return 0;
7660}
7661_ACEOF
7662if ac_fn_c_try_link "$LINENO"; then :
7663  eval $cacheid=yes
7664else
7665  eval $cacheid=no
7666fi
7667rm -f core conftest.err conftest.$ac_objext \
7668    conftest$ac_exeext conftest.$ac_ext
7669fi
7670
7671
7672		CFLAGS="$xorg_testset_save_CFLAGS"
7673
7674		eval supported=\$$cacheid
7675		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7676$as_echo "$supported" >&6; }
7677		if test "$supported" = "yes" ; then
7678			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7679			found="yes"
7680		fi
7681	fi
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697xorg_testset_save_CFLAGS="$CFLAGS"
7698
7699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7700	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7701	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7702$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7703if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7704  $as_echo_n "(cached) " >&6
7705else
7706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7707/* end confdefs.h.  */
7708int i;
7709_ACEOF
7710if ac_fn_c_try_compile "$LINENO"; then :
7711  xorg_cv_cc_flag_unknown_warning_option=yes
7712else
7713  xorg_cv_cc_flag_unknown_warning_option=no
7714fi
7715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7716fi
7717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7718$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7719	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7720	CFLAGS="$xorg_testset_save_CFLAGS"
7721fi
7722
7723if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7724	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7725		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7726	fi
7727	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7728	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7729$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7730if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7731  $as_echo_n "(cached) " >&6
7732else
7733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7734/* end confdefs.h.  */
7735int i;
7736_ACEOF
7737if ac_fn_c_try_compile "$LINENO"; then :
7738  xorg_cv_cc_flag_unused_command_line_argument=yes
7739else
7740  xorg_cv_cc_flag_unused_command_line_argument=no
7741fi
7742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7743fi
7744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7745$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7746	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7747	CFLAGS="$xorg_testset_save_CFLAGS"
7748fi
7749
7750found="no"
7751
7752	if test $found = "no" ; then
7753		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7754			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7755		fi
7756
7757		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7758			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7759		fi
7760
7761		CFLAGS="$CFLAGS -Werror=array-bounds"
7762
7763		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7764$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7765		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7766		if eval \${$cacheid+:} false; then :
7767  $as_echo_n "(cached) " >&6
7768else
7769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7770/* end confdefs.h.  */
7771int i;
7772int
7773main ()
7774{
7775
7776  ;
7777  return 0;
7778}
7779_ACEOF
7780if ac_fn_c_try_link "$LINENO"; then :
7781  eval $cacheid=yes
7782else
7783  eval $cacheid=no
7784fi
7785rm -f core conftest.err conftest.$ac_objext \
7786    conftest$ac_exeext conftest.$ac_ext
7787fi
7788
7789
7790		CFLAGS="$xorg_testset_save_CFLAGS"
7791
7792		eval supported=\$$cacheid
7793		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7794$as_echo "$supported" >&6; }
7795		if test "$supported" = "yes" ; then
7796			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7797			found="yes"
7798		fi
7799	fi
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815xorg_testset_save_CFLAGS="$CFLAGS"
7816
7817if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7818	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7819	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7820$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7821if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7822  $as_echo_n "(cached) " >&6
7823else
7824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825/* end confdefs.h.  */
7826int i;
7827_ACEOF
7828if ac_fn_c_try_compile "$LINENO"; then :
7829  xorg_cv_cc_flag_unknown_warning_option=yes
7830else
7831  xorg_cv_cc_flag_unknown_warning_option=no
7832fi
7833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7834fi
7835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7836$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7837	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7838	CFLAGS="$xorg_testset_save_CFLAGS"
7839fi
7840
7841if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7842	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7843		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7844	fi
7845	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7846	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7847$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7848if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7849  $as_echo_n "(cached) " >&6
7850else
7851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852/* end confdefs.h.  */
7853int i;
7854_ACEOF
7855if ac_fn_c_try_compile "$LINENO"; then :
7856  xorg_cv_cc_flag_unused_command_line_argument=yes
7857else
7858  xorg_cv_cc_flag_unused_command_line_argument=no
7859fi
7860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7861fi
7862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7863$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7864	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7865	CFLAGS="$xorg_testset_save_CFLAGS"
7866fi
7867
7868found="no"
7869
7870	if test $found = "no" ; then
7871		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7872			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7873		fi
7874
7875		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7876			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7877		fi
7878
7879		CFLAGS="$CFLAGS -Werror=write-strings"
7880
7881		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7882$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7883		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7884		if eval \${$cacheid+:} false; then :
7885  $as_echo_n "(cached) " >&6
7886else
7887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7888/* end confdefs.h.  */
7889int i;
7890int
7891main ()
7892{
7893
7894  ;
7895  return 0;
7896}
7897_ACEOF
7898if ac_fn_c_try_link "$LINENO"; then :
7899  eval $cacheid=yes
7900else
7901  eval $cacheid=no
7902fi
7903rm -f core conftest.err conftest.$ac_objext \
7904    conftest$ac_exeext conftest.$ac_ext
7905fi
7906
7907
7908		CFLAGS="$xorg_testset_save_CFLAGS"
7909
7910		eval supported=\$$cacheid
7911		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7912$as_echo "$supported" >&6; }
7913		if test "$supported" = "yes" ; then
7914			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7915			found="yes"
7916		fi
7917	fi
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933xorg_testset_save_CFLAGS="$CFLAGS"
7934
7935if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7936	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7937	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7938$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7939if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7940  $as_echo_n "(cached) " >&6
7941else
7942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7943/* end confdefs.h.  */
7944int i;
7945_ACEOF
7946if ac_fn_c_try_compile "$LINENO"; then :
7947  xorg_cv_cc_flag_unknown_warning_option=yes
7948else
7949  xorg_cv_cc_flag_unknown_warning_option=no
7950fi
7951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7952fi
7953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7954$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7955	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7956	CFLAGS="$xorg_testset_save_CFLAGS"
7957fi
7958
7959if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7960	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7961		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7962	fi
7963	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7964	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7965$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7966if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7967  $as_echo_n "(cached) " >&6
7968else
7969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970/* end confdefs.h.  */
7971int i;
7972_ACEOF
7973if ac_fn_c_try_compile "$LINENO"; then :
7974  xorg_cv_cc_flag_unused_command_line_argument=yes
7975else
7976  xorg_cv_cc_flag_unused_command_line_argument=no
7977fi
7978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7979fi
7980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7981$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7982	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7983	CFLAGS="$xorg_testset_save_CFLAGS"
7984fi
7985
7986found="no"
7987
7988	if test $found = "no" ; then
7989		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7990			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7991		fi
7992
7993		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7994			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7995		fi
7996
7997		CFLAGS="$CFLAGS -Werror=address"
7998
7999		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8000$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8001		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8002		if eval \${$cacheid+:} false; then :
8003  $as_echo_n "(cached) " >&6
8004else
8005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8006/* end confdefs.h.  */
8007int i;
8008int
8009main ()
8010{
8011
8012  ;
8013  return 0;
8014}
8015_ACEOF
8016if ac_fn_c_try_link "$LINENO"; then :
8017  eval $cacheid=yes
8018else
8019  eval $cacheid=no
8020fi
8021rm -f core conftest.err conftest.$ac_objext \
8022    conftest$ac_exeext conftest.$ac_ext
8023fi
8024
8025
8026		CFLAGS="$xorg_testset_save_CFLAGS"
8027
8028		eval supported=\$$cacheid
8029		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8030$as_echo "$supported" >&6; }
8031		if test "$supported" = "yes" ; then
8032			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8033			found="yes"
8034		fi
8035	fi
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051xorg_testset_save_CFLAGS="$CFLAGS"
8052
8053if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8054	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8055	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8056$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8057if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8058  $as_echo_n "(cached) " >&6
8059else
8060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061/* end confdefs.h.  */
8062int i;
8063_ACEOF
8064if ac_fn_c_try_compile "$LINENO"; then :
8065  xorg_cv_cc_flag_unknown_warning_option=yes
8066else
8067  xorg_cv_cc_flag_unknown_warning_option=no
8068fi
8069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8070fi
8071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8072$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8073	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8074	CFLAGS="$xorg_testset_save_CFLAGS"
8075fi
8076
8077if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8078	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8079		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8080	fi
8081	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8082	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8083$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8084if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8085  $as_echo_n "(cached) " >&6
8086else
8087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088/* end confdefs.h.  */
8089int i;
8090_ACEOF
8091if ac_fn_c_try_compile "$LINENO"; then :
8092  xorg_cv_cc_flag_unused_command_line_argument=yes
8093else
8094  xorg_cv_cc_flag_unused_command_line_argument=no
8095fi
8096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8097fi
8098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8099$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8100	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8101	CFLAGS="$xorg_testset_save_CFLAGS"
8102fi
8103
8104found="no"
8105
8106	if test $found = "no" ; then
8107		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8108			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8109		fi
8110
8111		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8112			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8113		fi
8114
8115		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8116
8117		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8118$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8119		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8120		if eval \${$cacheid+:} false; then :
8121  $as_echo_n "(cached) " >&6
8122else
8123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8124/* end confdefs.h.  */
8125int i;
8126int
8127main ()
8128{
8129
8130  ;
8131  return 0;
8132}
8133_ACEOF
8134if ac_fn_c_try_link "$LINENO"; then :
8135  eval $cacheid=yes
8136else
8137  eval $cacheid=no
8138fi
8139rm -f core conftest.err conftest.$ac_objext \
8140    conftest$ac_exeext conftest.$ac_ext
8141fi
8142
8143
8144		CFLAGS="$xorg_testset_save_CFLAGS"
8145
8146		eval supported=\$$cacheid
8147		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8148$as_echo "$supported" >&6; }
8149		if test "$supported" = "yes" ; then
8150			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8151			found="yes"
8152		fi
8153	fi
8154
8155	if test $found = "no" ; then
8156		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8157			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8158		fi
8159
8160		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8161			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8162		fi
8163
8164		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8165
8166		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8167$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8168		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8169		if eval \${$cacheid+:} false; then :
8170  $as_echo_n "(cached) " >&6
8171else
8172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8173/* end confdefs.h.  */
8174int i;
8175int
8176main ()
8177{
8178
8179  ;
8180  return 0;
8181}
8182_ACEOF
8183if ac_fn_c_try_link "$LINENO"; then :
8184  eval $cacheid=yes
8185else
8186  eval $cacheid=no
8187fi
8188rm -f core conftest.err conftest.$ac_objext \
8189    conftest$ac_exeext conftest.$ac_ext
8190fi
8191
8192
8193		CFLAGS="$xorg_testset_save_CFLAGS"
8194
8195		eval supported=\$$cacheid
8196		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8197$as_echo "$supported" >&6; }
8198		if test "$supported" = "yes" ; then
8199			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8200			found="yes"
8201		fi
8202	fi
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218xorg_testset_save_CFLAGS="$CFLAGS"
8219
8220if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8221	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8222	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8223$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8224if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8225  $as_echo_n "(cached) " >&6
8226else
8227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228/* end confdefs.h.  */
8229int i;
8230_ACEOF
8231if ac_fn_c_try_compile "$LINENO"; then :
8232  xorg_cv_cc_flag_unknown_warning_option=yes
8233else
8234  xorg_cv_cc_flag_unknown_warning_option=no
8235fi
8236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8237fi
8238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8239$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8240	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8241	CFLAGS="$xorg_testset_save_CFLAGS"
8242fi
8243
8244if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8245	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8246		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8247	fi
8248	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8249	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8250$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8251if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8252  $as_echo_n "(cached) " >&6
8253else
8254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255/* end confdefs.h.  */
8256int i;
8257_ACEOF
8258if ac_fn_c_try_compile "$LINENO"; then :
8259  xorg_cv_cc_flag_unused_command_line_argument=yes
8260else
8261  xorg_cv_cc_flag_unused_command_line_argument=no
8262fi
8263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8264fi
8265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8266$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8267	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8268	CFLAGS="$xorg_testset_save_CFLAGS"
8269fi
8270
8271found="no"
8272
8273	if test $found = "no" ; then
8274		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8275			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8276		fi
8277
8278		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8279			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8280		fi
8281
8282		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8283
8284		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8285$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8286		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8287		if eval \${$cacheid+:} false; then :
8288  $as_echo_n "(cached) " >&6
8289else
8290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8291/* end confdefs.h.  */
8292int i;
8293int
8294main ()
8295{
8296
8297  ;
8298  return 0;
8299}
8300_ACEOF
8301if ac_fn_c_try_link "$LINENO"; then :
8302  eval $cacheid=yes
8303else
8304  eval $cacheid=no
8305fi
8306rm -f core conftest.err conftest.$ac_objext \
8307    conftest$ac_exeext conftest.$ac_ext
8308fi
8309
8310
8311		CFLAGS="$xorg_testset_save_CFLAGS"
8312
8313		eval supported=\$$cacheid
8314		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8315$as_echo "$supported" >&6; }
8316		if test "$supported" = "yes" ; then
8317			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8318			found="yes"
8319		fi
8320	fi
8321
8322 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8323else
8324{ $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
8325$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;}
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339xorg_testset_save_CFLAGS="$CFLAGS"
8340
8341if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8342	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8343	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8344$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8345if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8346  $as_echo_n "(cached) " >&6
8347else
8348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8349/* end confdefs.h.  */
8350int i;
8351_ACEOF
8352if ac_fn_c_try_compile "$LINENO"; then :
8353  xorg_cv_cc_flag_unknown_warning_option=yes
8354else
8355  xorg_cv_cc_flag_unknown_warning_option=no
8356fi
8357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8358fi
8359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8360$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8361	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8362	CFLAGS="$xorg_testset_save_CFLAGS"
8363fi
8364
8365if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8366	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8367		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8368	fi
8369	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8370	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8371$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8372if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8373  $as_echo_n "(cached) " >&6
8374else
8375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8376/* end confdefs.h.  */
8377int i;
8378_ACEOF
8379if ac_fn_c_try_compile "$LINENO"; then :
8380  xorg_cv_cc_flag_unused_command_line_argument=yes
8381else
8382  xorg_cv_cc_flag_unused_command_line_argument=no
8383fi
8384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8385fi
8386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8387$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8388	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8389	CFLAGS="$xorg_testset_save_CFLAGS"
8390fi
8391
8392found="no"
8393
8394	if test $found = "no" ; then
8395		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8396			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8397		fi
8398
8399		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8400			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8401		fi
8402
8403		CFLAGS="$CFLAGS -Wimplicit"
8404
8405		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8406$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8407		cacheid=xorg_cv_cc_flag__Wimplicit
8408		if eval \${$cacheid+:} false; then :
8409  $as_echo_n "(cached) " >&6
8410else
8411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8412/* end confdefs.h.  */
8413int i;
8414int
8415main ()
8416{
8417
8418  ;
8419  return 0;
8420}
8421_ACEOF
8422if ac_fn_c_try_link "$LINENO"; then :
8423  eval $cacheid=yes
8424else
8425  eval $cacheid=no
8426fi
8427rm -f core conftest.err conftest.$ac_objext \
8428    conftest$ac_exeext conftest.$ac_ext
8429fi
8430
8431
8432		CFLAGS="$xorg_testset_save_CFLAGS"
8433
8434		eval supported=\$$cacheid
8435		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8436$as_echo "$supported" >&6; }
8437		if test "$supported" = "yes" ; then
8438			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8439			found="yes"
8440		fi
8441	fi
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457xorg_testset_save_CFLAGS="$CFLAGS"
8458
8459if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8460	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8461	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8462$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8463if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8464  $as_echo_n "(cached) " >&6
8465else
8466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8467/* end confdefs.h.  */
8468int i;
8469_ACEOF
8470if ac_fn_c_try_compile "$LINENO"; then :
8471  xorg_cv_cc_flag_unknown_warning_option=yes
8472else
8473  xorg_cv_cc_flag_unknown_warning_option=no
8474fi
8475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8476fi
8477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8478$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8479	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8480	CFLAGS="$xorg_testset_save_CFLAGS"
8481fi
8482
8483if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8484	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8485		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8486	fi
8487	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8488	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8489$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8490if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8491  $as_echo_n "(cached) " >&6
8492else
8493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8494/* end confdefs.h.  */
8495int i;
8496_ACEOF
8497if ac_fn_c_try_compile "$LINENO"; then :
8498  xorg_cv_cc_flag_unused_command_line_argument=yes
8499else
8500  xorg_cv_cc_flag_unused_command_line_argument=no
8501fi
8502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8503fi
8504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8505$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8506	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8507	CFLAGS="$xorg_testset_save_CFLAGS"
8508fi
8509
8510found="no"
8511
8512	if test $found = "no" ; then
8513		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8514			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8515		fi
8516
8517		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8518			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8519		fi
8520
8521		CFLAGS="$CFLAGS -Wnonnull"
8522
8523		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8524$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8525		cacheid=xorg_cv_cc_flag__Wnonnull
8526		if eval \${$cacheid+:} false; then :
8527  $as_echo_n "(cached) " >&6
8528else
8529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8530/* end confdefs.h.  */
8531int i;
8532int
8533main ()
8534{
8535
8536  ;
8537  return 0;
8538}
8539_ACEOF
8540if ac_fn_c_try_link "$LINENO"; then :
8541  eval $cacheid=yes
8542else
8543  eval $cacheid=no
8544fi
8545rm -f core conftest.err conftest.$ac_objext \
8546    conftest$ac_exeext conftest.$ac_ext
8547fi
8548
8549
8550		CFLAGS="$xorg_testset_save_CFLAGS"
8551
8552		eval supported=\$$cacheid
8553		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8554$as_echo "$supported" >&6; }
8555		if test "$supported" = "yes" ; then
8556			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8557			found="yes"
8558		fi
8559	fi
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575xorg_testset_save_CFLAGS="$CFLAGS"
8576
8577if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8578	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8579	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8580$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8581if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8582  $as_echo_n "(cached) " >&6
8583else
8584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8585/* end confdefs.h.  */
8586int i;
8587_ACEOF
8588if ac_fn_c_try_compile "$LINENO"; then :
8589  xorg_cv_cc_flag_unknown_warning_option=yes
8590else
8591  xorg_cv_cc_flag_unknown_warning_option=no
8592fi
8593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8594fi
8595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8596$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8597	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8598	CFLAGS="$xorg_testset_save_CFLAGS"
8599fi
8600
8601if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8602	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8603		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8604	fi
8605	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8606	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8607$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8608if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8609  $as_echo_n "(cached) " >&6
8610else
8611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612/* end confdefs.h.  */
8613int i;
8614_ACEOF
8615if ac_fn_c_try_compile "$LINENO"; then :
8616  xorg_cv_cc_flag_unused_command_line_argument=yes
8617else
8618  xorg_cv_cc_flag_unused_command_line_argument=no
8619fi
8620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8621fi
8622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8623$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8624	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8625	CFLAGS="$xorg_testset_save_CFLAGS"
8626fi
8627
8628found="no"
8629
8630	if test $found = "no" ; then
8631		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8632			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8633		fi
8634
8635		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8636			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8637		fi
8638
8639		CFLAGS="$CFLAGS -Winit-self"
8640
8641		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8642$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8643		cacheid=xorg_cv_cc_flag__Winit_self
8644		if eval \${$cacheid+:} false; then :
8645  $as_echo_n "(cached) " >&6
8646else
8647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8648/* end confdefs.h.  */
8649int i;
8650int
8651main ()
8652{
8653
8654  ;
8655  return 0;
8656}
8657_ACEOF
8658if ac_fn_c_try_link "$LINENO"; then :
8659  eval $cacheid=yes
8660else
8661  eval $cacheid=no
8662fi
8663rm -f core conftest.err conftest.$ac_objext \
8664    conftest$ac_exeext conftest.$ac_ext
8665fi
8666
8667
8668		CFLAGS="$xorg_testset_save_CFLAGS"
8669
8670		eval supported=\$$cacheid
8671		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8672$as_echo "$supported" >&6; }
8673		if test "$supported" = "yes" ; then
8674			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8675			found="yes"
8676		fi
8677	fi
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693xorg_testset_save_CFLAGS="$CFLAGS"
8694
8695if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8696	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8697	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8698$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8699if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8700  $as_echo_n "(cached) " >&6
8701else
8702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8703/* end confdefs.h.  */
8704int i;
8705_ACEOF
8706if ac_fn_c_try_compile "$LINENO"; then :
8707  xorg_cv_cc_flag_unknown_warning_option=yes
8708else
8709  xorg_cv_cc_flag_unknown_warning_option=no
8710fi
8711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8712fi
8713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8714$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8715	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8716	CFLAGS="$xorg_testset_save_CFLAGS"
8717fi
8718
8719if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8720	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8721		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8722	fi
8723	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8724	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8725$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8726if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8727  $as_echo_n "(cached) " >&6
8728else
8729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8730/* end confdefs.h.  */
8731int i;
8732_ACEOF
8733if ac_fn_c_try_compile "$LINENO"; then :
8734  xorg_cv_cc_flag_unused_command_line_argument=yes
8735else
8736  xorg_cv_cc_flag_unused_command_line_argument=no
8737fi
8738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8739fi
8740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8741$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8742	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8743	CFLAGS="$xorg_testset_save_CFLAGS"
8744fi
8745
8746found="no"
8747
8748	if test $found = "no" ; then
8749		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8750			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8751		fi
8752
8753		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8754			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8755		fi
8756
8757		CFLAGS="$CFLAGS -Wmain"
8758
8759		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8760$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8761		cacheid=xorg_cv_cc_flag__Wmain
8762		if eval \${$cacheid+:} false; then :
8763  $as_echo_n "(cached) " >&6
8764else
8765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8766/* end confdefs.h.  */
8767int i;
8768int
8769main ()
8770{
8771
8772  ;
8773  return 0;
8774}
8775_ACEOF
8776if ac_fn_c_try_link "$LINENO"; then :
8777  eval $cacheid=yes
8778else
8779  eval $cacheid=no
8780fi
8781rm -f core conftest.err conftest.$ac_objext \
8782    conftest$ac_exeext conftest.$ac_ext
8783fi
8784
8785
8786		CFLAGS="$xorg_testset_save_CFLAGS"
8787
8788		eval supported=\$$cacheid
8789		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8790$as_echo "$supported" >&6; }
8791		if test "$supported" = "yes" ; then
8792			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8793			found="yes"
8794		fi
8795	fi
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811xorg_testset_save_CFLAGS="$CFLAGS"
8812
8813if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8814	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8815	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8816$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8817if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8818  $as_echo_n "(cached) " >&6
8819else
8820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8821/* end confdefs.h.  */
8822int i;
8823_ACEOF
8824if ac_fn_c_try_compile "$LINENO"; then :
8825  xorg_cv_cc_flag_unknown_warning_option=yes
8826else
8827  xorg_cv_cc_flag_unknown_warning_option=no
8828fi
8829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8830fi
8831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8832$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8833	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8834	CFLAGS="$xorg_testset_save_CFLAGS"
8835fi
8836
8837if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8838	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8839		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8840	fi
8841	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8842	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8843$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8844if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8845  $as_echo_n "(cached) " >&6
8846else
8847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8848/* end confdefs.h.  */
8849int i;
8850_ACEOF
8851if ac_fn_c_try_compile "$LINENO"; then :
8852  xorg_cv_cc_flag_unused_command_line_argument=yes
8853else
8854  xorg_cv_cc_flag_unused_command_line_argument=no
8855fi
8856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8857fi
8858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8859$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8860	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8861	CFLAGS="$xorg_testset_save_CFLAGS"
8862fi
8863
8864found="no"
8865
8866	if test $found = "no" ; then
8867		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8868			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8869		fi
8870
8871		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8872			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8873		fi
8874
8875		CFLAGS="$CFLAGS -Wmissing-braces"
8876
8877		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8878$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8879		cacheid=xorg_cv_cc_flag__Wmissing_braces
8880		if eval \${$cacheid+:} false; then :
8881  $as_echo_n "(cached) " >&6
8882else
8883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8884/* end confdefs.h.  */
8885int i;
8886int
8887main ()
8888{
8889
8890  ;
8891  return 0;
8892}
8893_ACEOF
8894if ac_fn_c_try_link "$LINENO"; then :
8895  eval $cacheid=yes
8896else
8897  eval $cacheid=no
8898fi
8899rm -f core conftest.err conftest.$ac_objext \
8900    conftest$ac_exeext conftest.$ac_ext
8901fi
8902
8903
8904		CFLAGS="$xorg_testset_save_CFLAGS"
8905
8906		eval supported=\$$cacheid
8907		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8908$as_echo "$supported" >&6; }
8909		if test "$supported" = "yes" ; then
8910			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8911			found="yes"
8912		fi
8913	fi
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929xorg_testset_save_CFLAGS="$CFLAGS"
8930
8931if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8932	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8933	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8934$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8935if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8936  $as_echo_n "(cached) " >&6
8937else
8938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8939/* end confdefs.h.  */
8940int i;
8941_ACEOF
8942if ac_fn_c_try_compile "$LINENO"; then :
8943  xorg_cv_cc_flag_unknown_warning_option=yes
8944else
8945  xorg_cv_cc_flag_unknown_warning_option=no
8946fi
8947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8948fi
8949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8950$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8951	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8952	CFLAGS="$xorg_testset_save_CFLAGS"
8953fi
8954
8955if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8956	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8957		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8958	fi
8959	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8960	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8961$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8962if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8963  $as_echo_n "(cached) " >&6
8964else
8965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8966/* end confdefs.h.  */
8967int i;
8968_ACEOF
8969if ac_fn_c_try_compile "$LINENO"; then :
8970  xorg_cv_cc_flag_unused_command_line_argument=yes
8971else
8972  xorg_cv_cc_flag_unused_command_line_argument=no
8973fi
8974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8975fi
8976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8977$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8978	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8979	CFLAGS="$xorg_testset_save_CFLAGS"
8980fi
8981
8982found="no"
8983
8984	if test $found = "no" ; then
8985		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8986			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8987		fi
8988
8989		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8990			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8991		fi
8992
8993		CFLAGS="$CFLAGS -Wsequence-point"
8994
8995		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8996$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8997		cacheid=xorg_cv_cc_flag__Wsequence_point
8998		if eval \${$cacheid+:} false; then :
8999  $as_echo_n "(cached) " >&6
9000else
9001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9002/* end confdefs.h.  */
9003int i;
9004int
9005main ()
9006{
9007
9008  ;
9009  return 0;
9010}
9011_ACEOF
9012if ac_fn_c_try_link "$LINENO"; then :
9013  eval $cacheid=yes
9014else
9015  eval $cacheid=no
9016fi
9017rm -f core conftest.err conftest.$ac_objext \
9018    conftest$ac_exeext conftest.$ac_ext
9019fi
9020
9021
9022		CFLAGS="$xorg_testset_save_CFLAGS"
9023
9024		eval supported=\$$cacheid
9025		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9026$as_echo "$supported" >&6; }
9027		if test "$supported" = "yes" ; then
9028			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9029			found="yes"
9030		fi
9031	fi
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047xorg_testset_save_CFLAGS="$CFLAGS"
9048
9049if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9050	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9051	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9052$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9053if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9054  $as_echo_n "(cached) " >&6
9055else
9056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9057/* end confdefs.h.  */
9058int i;
9059_ACEOF
9060if ac_fn_c_try_compile "$LINENO"; then :
9061  xorg_cv_cc_flag_unknown_warning_option=yes
9062else
9063  xorg_cv_cc_flag_unknown_warning_option=no
9064fi
9065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9066fi
9067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9068$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9069	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9070	CFLAGS="$xorg_testset_save_CFLAGS"
9071fi
9072
9073if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9074	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9075		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9076	fi
9077	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9078	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9079$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9080if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9081  $as_echo_n "(cached) " >&6
9082else
9083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9084/* end confdefs.h.  */
9085int i;
9086_ACEOF
9087if ac_fn_c_try_compile "$LINENO"; then :
9088  xorg_cv_cc_flag_unused_command_line_argument=yes
9089else
9090  xorg_cv_cc_flag_unused_command_line_argument=no
9091fi
9092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9093fi
9094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9095$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9096	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9097	CFLAGS="$xorg_testset_save_CFLAGS"
9098fi
9099
9100found="no"
9101
9102	if test $found = "no" ; then
9103		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9104			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9105		fi
9106
9107		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9108			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9109		fi
9110
9111		CFLAGS="$CFLAGS -Wreturn-type"
9112
9113		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9114$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9115		cacheid=xorg_cv_cc_flag__Wreturn_type
9116		if eval \${$cacheid+:} false; then :
9117  $as_echo_n "(cached) " >&6
9118else
9119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9120/* end confdefs.h.  */
9121int i;
9122int
9123main ()
9124{
9125
9126  ;
9127  return 0;
9128}
9129_ACEOF
9130if ac_fn_c_try_link "$LINENO"; then :
9131  eval $cacheid=yes
9132else
9133  eval $cacheid=no
9134fi
9135rm -f core conftest.err conftest.$ac_objext \
9136    conftest$ac_exeext conftest.$ac_ext
9137fi
9138
9139
9140		CFLAGS="$xorg_testset_save_CFLAGS"
9141
9142		eval supported=\$$cacheid
9143		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9144$as_echo "$supported" >&6; }
9145		if test "$supported" = "yes" ; then
9146			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9147			found="yes"
9148		fi
9149	fi
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165xorg_testset_save_CFLAGS="$CFLAGS"
9166
9167if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9168	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9169	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9170$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9171if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9172  $as_echo_n "(cached) " >&6
9173else
9174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9175/* end confdefs.h.  */
9176int i;
9177_ACEOF
9178if ac_fn_c_try_compile "$LINENO"; then :
9179  xorg_cv_cc_flag_unknown_warning_option=yes
9180else
9181  xorg_cv_cc_flag_unknown_warning_option=no
9182fi
9183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9184fi
9185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9186$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9187	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9188	CFLAGS="$xorg_testset_save_CFLAGS"
9189fi
9190
9191if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9192	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9193		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9194	fi
9195	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9196	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9197$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9198if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9199  $as_echo_n "(cached) " >&6
9200else
9201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202/* end confdefs.h.  */
9203int i;
9204_ACEOF
9205if ac_fn_c_try_compile "$LINENO"; then :
9206  xorg_cv_cc_flag_unused_command_line_argument=yes
9207else
9208  xorg_cv_cc_flag_unused_command_line_argument=no
9209fi
9210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9211fi
9212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9213$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9214	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9215	CFLAGS="$xorg_testset_save_CFLAGS"
9216fi
9217
9218found="no"
9219
9220	if test $found = "no" ; then
9221		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9222			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9223		fi
9224
9225		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9226			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9227		fi
9228
9229		CFLAGS="$CFLAGS -Wtrigraphs"
9230
9231		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9232$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9233		cacheid=xorg_cv_cc_flag__Wtrigraphs
9234		if eval \${$cacheid+:} false; then :
9235  $as_echo_n "(cached) " >&6
9236else
9237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9238/* end confdefs.h.  */
9239int i;
9240int
9241main ()
9242{
9243
9244  ;
9245  return 0;
9246}
9247_ACEOF
9248if ac_fn_c_try_link "$LINENO"; then :
9249  eval $cacheid=yes
9250else
9251  eval $cacheid=no
9252fi
9253rm -f core conftest.err conftest.$ac_objext \
9254    conftest$ac_exeext conftest.$ac_ext
9255fi
9256
9257
9258		CFLAGS="$xorg_testset_save_CFLAGS"
9259
9260		eval supported=\$$cacheid
9261		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9262$as_echo "$supported" >&6; }
9263		if test "$supported" = "yes" ; then
9264			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9265			found="yes"
9266		fi
9267	fi
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283xorg_testset_save_CFLAGS="$CFLAGS"
9284
9285if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9286	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9287	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9288$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9289if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9290  $as_echo_n "(cached) " >&6
9291else
9292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9293/* end confdefs.h.  */
9294int i;
9295_ACEOF
9296if ac_fn_c_try_compile "$LINENO"; then :
9297  xorg_cv_cc_flag_unknown_warning_option=yes
9298else
9299  xorg_cv_cc_flag_unknown_warning_option=no
9300fi
9301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9302fi
9303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9304$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9305	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9306	CFLAGS="$xorg_testset_save_CFLAGS"
9307fi
9308
9309if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9310	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9311		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9312	fi
9313	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9314	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9315$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9316if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9317  $as_echo_n "(cached) " >&6
9318else
9319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9320/* end confdefs.h.  */
9321int i;
9322_ACEOF
9323if ac_fn_c_try_compile "$LINENO"; then :
9324  xorg_cv_cc_flag_unused_command_line_argument=yes
9325else
9326  xorg_cv_cc_flag_unused_command_line_argument=no
9327fi
9328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9329fi
9330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9331$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9332	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9333	CFLAGS="$xorg_testset_save_CFLAGS"
9334fi
9335
9336found="no"
9337
9338	if test $found = "no" ; then
9339		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9340			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9341		fi
9342
9343		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9344			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9345		fi
9346
9347		CFLAGS="$CFLAGS -Warray-bounds"
9348
9349		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9350$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9351		cacheid=xorg_cv_cc_flag__Warray_bounds
9352		if eval \${$cacheid+:} false; then :
9353  $as_echo_n "(cached) " >&6
9354else
9355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9356/* end confdefs.h.  */
9357int i;
9358int
9359main ()
9360{
9361
9362  ;
9363  return 0;
9364}
9365_ACEOF
9366if ac_fn_c_try_link "$LINENO"; then :
9367  eval $cacheid=yes
9368else
9369  eval $cacheid=no
9370fi
9371rm -f core conftest.err conftest.$ac_objext \
9372    conftest$ac_exeext conftest.$ac_ext
9373fi
9374
9375
9376		CFLAGS="$xorg_testset_save_CFLAGS"
9377
9378		eval supported=\$$cacheid
9379		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9380$as_echo "$supported" >&6; }
9381		if test "$supported" = "yes" ; then
9382			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9383			found="yes"
9384		fi
9385	fi
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401xorg_testset_save_CFLAGS="$CFLAGS"
9402
9403if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9404	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9405	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9406$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9407if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9408  $as_echo_n "(cached) " >&6
9409else
9410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9411/* end confdefs.h.  */
9412int i;
9413_ACEOF
9414if ac_fn_c_try_compile "$LINENO"; then :
9415  xorg_cv_cc_flag_unknown_warning_option=yes
9416else
9417  xorg_cv_cc_flag_unknown_warning_option=no
9418fi
9419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9420fi
9421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9422$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9423	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9424	CFLAGS="$xorg_testset_save_CFLAGS"
9425fi
9426
9427if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9428	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9429		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9430	fi
9431	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9432	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9433$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9434if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9435  $as_echo_n "(cached) " >&6
9436else
9437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438/* end confdefs.h.  */
9439int i;
9440_ACEOF
9441if ac_fn_c_try_compile "$LINENO"; then :
9442  xorg_cv_cc_flag_unused_command_line_argument=yes
9443else
9444  xorg_cv_cc_flag_unused_command_line_argument=no
9445fi
9446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9447fi
9448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9449$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9450	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9451	CFLAGS="$xorg_testset_save_CFLAGS"
9452fi
9453
9454found="no"
9455
9456	if test $found = "no" ; then
9457		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9458			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9459		fi
9460
9461		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9462			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9463		fi
9464
9465		CFLAGS="$CFLAGS -Wwrite-strings"
9466
9467		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9468$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9469		cacheid=xorg_cv_cc_flag__Wwrite_strings
9470		if eval \${$cacheid+:} false; then :
9471  $as_echo_n "(cached) " >&6
9472else
9473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9474/* end confdefs.h.  */
9475int i;
9476int
9477main ()
9478{
9479
9480  ;
9481  return 0;
9482}
9483_ACEOF
9484if ac_fn_c_try_link "$LINENO"; then :
9485  eval $cacheid=yes
9486else
9487  eval $cacheid=no
9488fi
9489rm -f core conftest.err conftest.$ac_objext \
9490    conftest$ac_exeext conftest.$ac_ext
9491fi
9492
9493
9494		CFLAGS="$xorg_testset_save_CFLAGS"
9495
9496		eval supported=\$$cacheid
9497		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9498$as_echo "$supported" >&6; }
9499		if test "$supported" = "yes" ; then
9500			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9501			found="yes"
9502		fi
9503	fi
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519xorg_testset_save_CFLAGS="$CFLAGS"
9520
9521if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9522	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9523	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9524$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9525if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9526  $as_echo_n "(cached) " >&6
9527else
9528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9529/* end confdefs.h.  */
9530int i;
9531_ACEOF
9532if ac_fn_c_try_compile "$LINENO"; then :
9533  xorg_cv_cc_flag_unknown_warning_option=yes
9534else
9535  xorg_cv_cc_flag_unknown_warning_option=no
9536fi
9537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9538fi
9539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9540$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9541	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9542	CFLAGS="$xorg_testset_save_CFLAGS"
9543fi
9544
9545if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9546	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9547		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9548	fi
9549	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9550	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9551$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9552if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9553  $as_echo_n "(cached) " >&6
9554else
9555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9556/* end confdefs.h.  */
9557int i;
9558_ACEOF
9559if ac_fn_c_try_compile "$LINENO"; then :
9560  xorg_cv_cc_flag_unused_command_line_argument=yes
9561else
9562  xorg_cv_cc_flag_unused_command_line_argument=no
9563fi
9564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9565fi
9566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9567$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9568	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9569	CFLAGS="$xorg_testset_save_CFLAGS"
9570fi
9571
9572found="no"
9573
9574	if test $found = "no" ; then
9575		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9576			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9577		fi
9578
9579		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9580			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9581		fi
9582
9583		CFLAGS="$CFLAGS -Waddress"
9584
9585		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9586$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9587		cacheid=xorg_cv_cc_flag__Waddress
9588		if eval \${$cacheid+:} false; then :
9589  $as_echo_n "(cached) " >&6
9590else
9591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9592/* end confdefs.h.  */
9593int i;
9594int
9595main ()
9596{
9597
9598  ;
9599  return 0;
9600}
9601_ACEOF
9602if ac_fn_c_try_link "$LINENO"; then :
9603  eval $cacheid=yes
9604else
9605  eval $cacheid=no
9606fi
9607rm -f core conftest.err conftest.$ac_objext \
9608    conftest$ac_exeext conftest.$ac_ext
9609fi
9610
9611
9612		CFLAGS="$xorg_testset_save_CFLAGS"
9613
9614		eval supported=\$$cacheid
9615		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9616$as_echo "$supported" >&6; }
9617		if test "$supported" = "yes" ; then
9618			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9619			found="yes"
9620		fi
9621	fi
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637xorg_testset_save_CFLAGS="$CFLAGS"
9638
9639if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9640	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9641	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9642$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9643if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9644  $as_echo_n "(cached) " >&6
9645else
9646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647/* end confdefs.h.  */
9648int i;
9649_ACEOF
9650if ac_fn_c_try_compile "$LINENO"; then :
9651  xorg_cv_cc_flag_unknown_warning_option=yes
9652else
9653  xorg_cv_cc_flag_unknown_warning_option=no
9654fi
9655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9656fi
9657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9658$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9659	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9660	CFLAGS="$xorg_testset_save_CFLAGS"
9661fi
9662
9663if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9664	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9665		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9666	fi
9667	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9668	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9669$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9670if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9671  $as_echo_n "(cached) " >&6
9672else
9673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674/* end confdefs.h.  */
9675int i;
9676_ACEOF
9677if ac_fn_c_try_compile "$LINENO"; then :
9678  xorg_cv_cc_flag_unused_command_line_argument=yes
9679else
9680  xorg_cv_cc_flag_unused_command_line_argument=no
9681fi
9682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9683fi
9684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9685$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9686	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9687	CFLAGS="$xorg_testset_save_CFLAGS"
9688fi
9689
9690found="no"
9691
9692	if test $found = "no" ; then
9693		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9694			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9695		fi
9696
9697		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9698			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9699		fi
9700
9701		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9702
9703		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9704$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9705		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9706		if eval \${$cacheid+:} false; then :
9707  $as_echo_n "(cached) " >&6
9708else
9709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9710/* end confdefs.h.  */
9711int i;
9712int
9713main ()
9714{
9715
9716  ;
9717  return 0;
9718}
9719_ACEOF
9720if ac_fn_c_try_link "$LINENO"; then :
9721  eval $cacheid=yes
9722else
9723  eval $cacheid=no
9724fi
9725rm -f core conftest.err conftest.$ac_objext \
9726    conftest$ac_exeext conftest.$ac_ext
9727fi
9728
9729
9730		CFLAGS="$xorg_testset_save_CFLAGS"
9731
9732		eval supported=\$$cacheid
9733		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9734$as_echo "$supported" >&6; }
9735		if test "$supported" = "yes" ; then
9736			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9737			found="yes"
9738		fi
9739	fi
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755xorg_testset_save_CFLAGS="$CFLAGS"
9756
9757if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9758	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9759	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9760$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9761if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9762  $as_echo_n "(cached) " >&6
9763else
9764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9765/* end confdefs.h.  */
9766int i;
9767_ACEOF
9768if ac_fn_c_try_compile "$LINENO"; then :
9769  xorg_cv_cc_flag_unknown_warning_option=yes
9770else
9771  xorg_cv_cc_flag_unknown_warning_option=no
9772fi
9773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9774fi
9775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9776$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9777	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9778	CFLAGS="$xorg_testset_save_CFLAGS"
9779fi
9780
9781if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9782	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9783		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9784	fi
9785	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9786	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9787$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9788if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9789  $as_echo_n "(cached) " >&6
9790else
9791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9792/* end confdefs.h.  */
9793int i;
9794_ACEOF
9795if ac_fn_c_try_compile "$LINENO"; then :
9796  xorg_cv_cc_flag_unused_command_line_argument=yes
9797else
9798  xorg_cv_cc_flag_unused_command_line_argument=no
9799fi
9800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9801fi
9802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9803$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9804	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9805	CFLAGS="$xorg_testset_save_CFLAGS"
9806fi
9807
9808found="no"
9809
9810	if test $found = "no" ; then
9811		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9812			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9813		fi
9814
9815		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9816			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9817		fi
9818
9819		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9820
9821		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9822$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9823		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9824		if eval \${$cacheid+:} false; then :
9825  $as_echo_n "(cached) " >&6
9826else
9827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9828/* end confdefs.h.  */
9829int i;
9830int
9831main ()
9832{
9833
9834  ;
9835  return 0;
9836}
9837_ACEOF
9838if ac_fn_c_try_link "$LINENO"; then :
9839  eval $cacheid=yes
9840else
9841  eval $cacheid=no
9842fi
9843rm -f core conftest.err conftest.$ac_objext \
9844    conftest$ac_exeext conftest.$ac_ext
9845fi
9846
9847
9848		CFLAGS="$xorg_testset_save_CFLAGS"
9849
9850		eval supported=\$$cacheid
9851		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9852$as_echo "$supported" >&6; }
9853		if test "$supported" = "yes" ; then
9854			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9855			found="yes"
9856		fi
9857	fi
9858
9859
9860fi
9861
9862
9863
9864
9865
9866
9867
9868		CWARNFLAGS="$BASE_CFLAGS"
9869		if  test "x$GCC" = xyes ; then
9870		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9871		fi
9872
9873
9874
9875
9876
9877
9878
9879
9880# Check whether --enable-strict-compilation was given.
9881if test "${enable_strict_compilation+set}" = set; then :
9882  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9883else
9884  STRICT_COMPILE=no
9885fi
9886
9887
9888
9889
9890
9891
9892STRICT_CFLAGS=""
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906xorg_testset_save_CFLAGS="$CFLAGS"
9907
9908if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9909	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9910	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9911$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9912if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9913  $as_echo_n "(cached) " >&6
9914else
9915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9916/* end confdefs.h.  */
9917int i;
9918_ACEOF
9919if ac_fn_c_try_compile "$LINENO"; then :
9920  xorg_cv_cc_flag_unknown_warning_option=yes
9921else
9922  xorg_cv_cc_flag_unknown_warning_option=no
9923fi
9924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9925fi
9926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9927$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9928	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9929	CFLAGS="$xorg_testset_save_CFLAGS"
9930fi
9931
9932if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9933	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9934		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9935	fi
9936	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9937	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9938$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9939if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9940  $as_echo_n "(cached) " >&6
9941else
9942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9943/* end confdefs.h.  */
9944int i;
9945_ACEOF
9946if ac_fn_c_try_compile "$LINENO"; then :
9947  xorg_cv_cc_flag_unused_command_line_argument=yes
9948else
9949  xorg_cv_cc_flag_unused_command_line_argument=no
9950fi
9951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9952fi
9953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9954$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9955	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9956	CFLAGS="$xorg_testset_save_CFLAGS"
9957fi
9958
9959found="no"
9960
9961	if test $found = "no" ; then
9962		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9963			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9964		fi
9965
9966		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9967			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9968		fi
9969
9970		CFLAGS="$CFLAGS -pedantic"
9971
9972		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9973$as_echo_n "checking if $CC supports -pedantic... " >&6; }
9974		cacheid=xorg_cv_cc_flag__pedantic
9975		if eval \${$cacheid+:} false; then :
9976  $as_echo_n "(cached) " >&6
9977else
9978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9979/* end confdefs.h.  */
9980int i;
9981int
9982main ()
9983{
9984
9985  ;
9986  return 0;
9987}
9988_ACEOF
9989if ac_fn_c_try_link "$LINENO"; then :
9990  eval $cacheid=yes
9991else
9992  eval $cacheid=no
9993fi
9994rm -f core conftest.err conftest.$ac_objext \
9995    conftest$ac_exeext conftest.$ac_ext
9996fi
9997
9998
9999		CFLAGS="$xorg_testset_save_CFLAGS"
10000
10001		eval supported=\$$cacheid
10002		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10003$as_echo "$supported" >&6; }
10004		if test "$supported" = "yes" ; then
10005			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10006			found="yes"
10007		fi
10008	fi
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024xorg_testset_save_CFLAGS="$CFLAGS"
10025
10026if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10027	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10028	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10029$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10030if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10031  $as_echo_n "(cached) " >&6
10032else
10033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10034/* end confdefs.h.  */
10035int i;
10036_ACEOF
10037if ac_fn_c_try_compile "$LINENO"; then :
10038  xorg_cv_cc_flag_unknown_warning_option=yes
10039else
10040  xorg_cv_cc_flag_unknown_warning_option=no
10041fi
10042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10043fi
10044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10045$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10046	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10047	CFLAGS="$xorg_testset_save_CFLAGS"
10048fi
10049
10050if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10051	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10052		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10053	fi
10054	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10055	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10056$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10057if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10058  $as_echo_n "(cached) " >&6
10059else
10060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10061/* end confdefs.h.  */
10062int i;
10063_ACEOF
10064if ac_fn_c_try_compile "$LINENO"; then :
10065  xorg_cv_cc_flag_unused_command_line_argument=yes
10066else
10067  xorg_cv_cc_flag_unused_command_line_argument=no
10068fi
10069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10070fi
10071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10072$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10073	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10074	CFLAGS="$xorg_testset_save_CFLAGS"
10075fi
10076
10077found="no"
10078
10079	if test $found = "no" ; then
10080		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10081			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10082		fi
10083
10084		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10085			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10086		fi
10087
10088		CFLAGS="$CFLAGS -Werror"
10089
10090		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10091$as_echo_n "checking if $CC supports -Werror... " >&6; }
10092		cacheid=xorg_cv_cc_flag__Werror
10093		if eval \${$cacheid+:} false; then :
10094  $as_echo_n "(cached) " >&6
10095else
10096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10097/* end confdefs.h.  */
10098int i;
10099int
10100main ()
10101{
10102
10103  ;
10104  return 0;
10105}
10106_ACEOF
10107if ac_fn_c_try_link "$LINENO"; then :
10108  eval $cacheid=yes
10109else
10110  eval $cacheid=no
10111fi
10112rm -f core conftest.err conftest.$ac_objext \
10113    conftest$ac_exeext conftest.$ac_ext
10114fi
10115
10116
10117		CFLAGS="$xorg_testset_save_CFLAGS"
10118
10119		eval supported=\$$cacheid
10120		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10121$as_echo "$supported" >&6; }
10122		if test "$supported" = "yes" ; then
10123			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10124			found="yes"
10125		fi
10126	fi
10127
10128	if test $found = "no" ; then
10129		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10130			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10131		fi
10132
10133		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10134			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10135		fi
10136
10137		CFLAGS="$CFLAGS -errwarn"
10138
10139		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10140$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10141		cacheid=xorg_cv_cc_flag__errwarn
10142		if eval \${$cacheid+:} false; then :
10143  $as_echo_n "(cached) " >&6
10144else
10145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10146/* end confdefs.h.  */
10147int i;
10148int
10149main ()
10150{
10151
10152  ;
10153  return 0;
10154}
10155_ACEOF
10156if ac_fn_c_try_link "$LINENO"; then :
10157  eval $cacheid=yes
10158else
10159  eval $cacheid=no
10160fi
10161rm -f core conftest.err conftest.$ac_objext \
10162    conftest$ac_exeext conftest.$ac_ext
10163fi
10164
10165
10166		CFLAGS="$xorg_testset_save_CFLAGS"
10167
10168		eval supported=\$$cacheid
10169		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10170$as_echo "$supported" >&6; }
10171		if test "$supported" = "yes" ; then
10172			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10173			found="yes"
10174		fi
10175	fi
10176
10177
10178
10179# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10180# activate it with -Werror, so we add it here explicitly.
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194xorg_testset_save_CFLAGS="$CFLAGS"
10195
10196if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10197	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10198	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10199$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10200if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10201  $as_echo_n "(cached) " >&6
10202else
10203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204/* end confdefs.h.  */
10205int i;
10206_ACEOF
10207if ac_fn_c_try_compile "$LINENO"; then :
10208  xorg_cv_cc_flag_unknown_warning_option=yes
10209else
10210  xorg_cv_cc_flag_unknown_warning_option=no
10211fi
10212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10213fi
10214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10215$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10216	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10217	CFLAGS="$xorg_testset_save_CFLAGS"
10218fi
10219
10220if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10221	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10222		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10223	fi
10224	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10225	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10226$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10227if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10228  $as_echo_n "(cached) " >&6
10229else
10230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10231/* end confdefs.h.  */
10232int i;
10233_ACEOF
10234if ac_fn_c_try_compile "$LINENO"; then :
10235  xorg_cv_cc_flag_unused_command_line_argument=yes
10236else
10237  xorg_cv_cc_flag_unused_command_line_argument=no
10238fi
10239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10240fi
10241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10242$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10243	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10244	CFLAGS="$xorg_testset_save_CFLAGS"
10245fi
10246
10247found="no"
10248
10249	if test $found = "no" ; then
10250		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10251			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10252		fi
10253
10254		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10255			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10256		fi
10257
10258		CFLAGS="$CFLAGS -Werror=attributes"
10259
10260		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10261$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10262		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10263		if eval \${$cacheid+:} false; then :
10264  $as_echo_n "(cached) " >&6
10265else
10266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10267/* end confdefs.h.  */
10268int i;
10269int
10270main ()
10271{
10272
10273  ;
10274  return 0;
10275}
10276_ACEOF
10277if ac_fn_c_try_link "$LINENO"; then :
10278  eval $cacheid=yes
10279else
10280  eval $cacheid=no
10281fi
10282rm -f core conftest.err conftest.$ac_objext \
10283    conftest$ac_exeext conftest.$ac_ext
10284fi
10285
10286
10287		CFLAGS="$xorg_testset_save_CFLAGS"
10288
10289		eval supported=\$$cacheid
10290		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10291$as_echo "$supported" >&6; }
10292		if test "$supported" = "yes" ; then
10293			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10294			found="yes"
10295		fi
10296	fi
10297
10298
10299
10300if test "x$STRICT_COMPILE" = "xyes"; then
10301    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10302    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10303fi
10304
10305
10306
10307
10308
10309
10310cat >>confdefs.h <<_ACEOF
10311#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10312_ACEOF
10313
10314	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10315	if test "x$PVM" = "x"; then
10316		PVM="0"
10317	fi
10318
10319cat >>confdefs.h <<_ACEOF
10320#define PACKAGE_VERSION_MINOR $PVM
10321_ACEOF
10322
10323	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10324	if test "x$PVP" = "x"; then
10325		PVP="0"
10326	fi
10327
10328cat >>confdefs.h <<_ACEOF
10329#define PACKAGE_VERSION_PATCHLEVEL $PVP
10330_ACEOF
10331
10332
10333
10334CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10335mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10336|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10337echo 'git directory not found: installing possibly empty changelog.' >&2)"
10338
10339
10340
10341
10342macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10343INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10344mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10345|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10346echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10347
10348
10349
10350
10351
10352
10353if test x$APP_MAN_SUFFIX = x    ; then
10354    APP_MAN_SUFFIX=1
10355fi
10356if test x$APP_MAN_DIR = x    ; then
10357    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10358fi
10359
10360if test x$LIB_MAN_SUFFIX = x    ; then
10361    LIB_MAN_SUFFIX=3
10362fi
10363if test x$LIB_MAN_DIR = x    ; then
10364    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10365fi
10366
10367if test x$FILE_MAN_SUFFIX = x    ; then
10368    case $host_os in
10369	solaris*)	FILE_MAN_SUFFIX=4  ;;
10370	*)		FILE_MAN_SUFFIX=5  ;;
10371    esac
10372fi
10373if test x$FILE_MAN_DIR = x    ; then
10374    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10375fi
10376
10377if test x$MISC_MAN_SUFFIX = x    ; then
10378    case $host_os in
10379	solaris*)	MISC_MAN_SUFFIX=5  ;;
10380	*)		MISC_MAN_SUFFIX=7  ;;
10381    esac
10382fi
10383if test x$MISC_MAN_DIR = x    ; then
10384    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10385fi
10386
10387if test x$DRIVER_MAN_SUFFIX = x    ; then
10388    case $host_os in
10389	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10390	*)		DRIVER_MAN_SUFFIX=4  ;;
10391    esac
10392fi
10393if test x$DRIVER_MAN_DIR = x    ; then
10394    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10395fi
10396
10397if test x$ADMIN_MAN_SUFFIX = x    ; then
10398    case $host_os in
10399	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10400	*)		ADMIN_MAN_SUFFIX=8  ;;
10401    esac
10402fi
10403if test x$ADMIN_MAN_DIR = x    ; then
10404    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10405fi
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421XORG_MAN_PAGE="X Version 11"
10422
10423MAN_SUBSTS="\
10424	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10425	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10426	-e 's|__xservername__|Xorg|g' \
10427	-e 's|__xconfigfile__|xorg.conf|g' \
10428	-e 's|__projectroot__|\$(prefix)|g' \
10429	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10430	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10431	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10432	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10433	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10434	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10435	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10436
10437
10438
10439# Check whether --enable-silent-rules was given.
10440if test "${enable_silent_rules+set}" = set; then :
10441  enableval=$enable_silent_rules;
10442fi
10443
10444case $enable_silent_rules in
10445yes) AM_DEFAULT_VERBOSITY=0;;
10446no)  AM_DEFAULT_VERBOSITY=1;;
10447*)   AM_DEFAULT_VERBOSITY=0;;
10448esac
10449AM_BACKSLASH='\'
10450
10451
10452
10453
10454# Check whether --enable-docs was given.
10455if test "${enable_docs+set}" = set; then :
10456  enableval=$enable_docs; build_docs=$enableval
10457else
10458  build_docs=yes
10459fi
10460
10461
10462 if test x$build_docs = xyes; then
10463  ENABLE_DOCS_TRUE=
10464  ENABLE_DOCS_FALSE='#'
10465else
10466  ENABLE_DOCS_TRUE='#'
10467  ENABLE_DOCS_FALSE=
10468fi
10469
10470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
10471$as_echo_n "checking whether to build documentation... " >&6; }
10472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
10473$as_echo "$build_docs" >&6; }
10474
10475
10476
10477# Check whether --enable-specs was given.
10478if test "${enable_specs+set}" = set; then :
10479  enableval=$enable_specs; build_specs=$enableval
10480else
10481  build_specs=yes
10482fi
10483
10484
10485 if test x$build_specs = xyes; then
10486  ENABLE_SPECS_TRUE=
10487  ENABLE_SPECS_FALSE='#'
10488else
10489  ENABLE_SPECS_TRUE='#'
10490  ENABLE_SPECS_FALSE=
10491fi
10492
10493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
10494$as_echo_n "checking whether to build functional specifications... " >&6; }
10495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
10496$as_echo "$build_specs" >&6; }
10497
10498
10499
10500
10501
10502# Check whether --with-xmlto was given.
10503if test "${with_xmlto+set}" = set; then :
10504  withval=$with_xmlto; use_xmlto=$withval
10505else
10506  use_xmlto=auto
10507fi
10508
10509
10510
10511if test "x$use_xmlto" = x"auto"; then
10512   # Extract the first word of "xmlto", so it can be a program name with args.
10513set dummy xmlto; ac_word=$2
10514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10515$as_echo_n "checking for $ac_word... " >&6; }
10516if ${ac_cv_path_XMLTO+:} false; then :
10517  $as_echo_n "(cached) " >&6
10518else
10519  case $XMLTO in
10520  [\\/]* | ?:[\\/]*)
10521  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
10522  ;;
10523  *)
10524  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10525for as_dir in $PATH
10526do
10527  IFS=$as_save_IFS
10528  test -z "$as_dir" && as_dir=.
10529    for ac_exec_ext in '' $ac_executable_extensions; do
10530  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10531    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
10532    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10533    break 2
10534  fi
10535done
10536  done
10537IFS=$as_save_IFS
10538
10539  ;;
10540esac
10541fi
10542XMLTO=$ac_cv_path_XMLTO
10543if test -n "$XMLTO"; then
10544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
10545$as_echo "$XMLTO" >&6; }
10546else
10547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10548$as_echo "no" >&6; }
10549fi
10550
10551
10552   if test "x$XMLTO" = "x"; then
10553        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
10554$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
10555	have_xmlto=no
10556   else
10557        have_xmlto=yes
10558   fi
10559elif test "x$use_xmlto" = x"yes" ; then
10560   # Extract the first word of "xmlto", so it can be a program name with args.
10561set dummy xmlto; ac_word=$2
10562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10563$as_echo_n "checking for $ac_word... " >&6; }
10564if ${ac_cv_path_XMLTO+:} false; then :
10565  $as_echo_n "(cached) " >&6
10566else
10567  case $XMLTO in
10568  [\\/]* | ?:[\\/]*)
10569  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
10570  ;;
10571  *)
10572  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10573for as_dir in $PATH
10574do
10575  IFS=$as_save_IFS
10576  test -z "$as_dir" && as_dir=.
10577    for ac_exec_ext in '' $ac_executable_extensions; do
10578  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10579    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
10580    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10581    break 2
10582  fi
10583done
10584  done
10585IFS=$as_save_IFS
10586
10587  ;;
10588esac
10589fi
10590XMLTO=$ac_cv_path_XMLTO
10591if test -n "$XMLTO"; then
10592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
10593$as_echo "$XMLTO" >&6; }
10594else
10595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10596$as_echo "no" >&6; }
10597fi
10598
10599
10600   if test "x$XMLTO" = "x"; then
10601        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
10602   fi
10603   have_xmlto=yes
10604elif test "x$use_xmlto" = x"no" ; then
10605   if test "x$XMLTO" != "x"; then
10606      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
10607$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
10608   fi
10609   have_xmlto=no
10610else
10611   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
10612fi
10613
10614# Test for a minimum version of xmlto, if provided.
10615if test "$have_xmlto" = yes; then
10616    # scrape the xmlto version
10617    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
10618$as_echo_n "checking the xmlto version... " >&6; }
10619    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
10620    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
10621$as_echo "$xmlto_version" >&6; }
10622    as_arg_v1=$xmlto_version
10623as_arg_v2=0.0.22
10624awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10625case $? in #(
10626  1) :
10627    if test "x$use_xmlto" = xauto; then
10628            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
10629$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
10630            have_xmlto=no
10631        else
10632            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
10633        fi ;; #(
10634  0) :
10635     ;; #(
10636  2) :
10637     ;; #(
10638  *) :
10639     ;;
10640esac
10641fi
10642
10643# Test for the ability of xmlto to generate a text target
10644have_xmlto_text=no
10645cat > conftest.xml << "EOF"
10646EOF
10647if test "$have_xmlto" = yes; then :
10648  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
10649  have_xmlto_text=yes
10650else
10651  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
10652$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
10653fi
10654fi
10655rm -f conftest.xml
10656 if test $have_xmlto_text = yes; then
10657  HAVE_XMLTO_TEXT_TRUE=
10658  HAVE_XMLTO_TEXT_FALSE='#'
10659else
10660  HAVE_XMLTO_TEXT_TRUE='#'
10661  HAVE_XMLTO_TEXT_FALSE=
10662fi
10663
10664 if test "$have_xmlto" = yes; then
10665  HAVE_XMLTO_TRUE=
10666  HAVE_XMLTO_FALSE='#'
10667else
10668  HAVE_XMLTO_TRUE='#'
10669  HAVE_XMLTO_FALSE=
10670fi
10671
10672
10673
10674
10675# Preserves the interface, should it be implemented later
10676
10677
10678
10679# Check whether --with-xsltproc was given.
10680if test "${with_xsltproc+set}" = set; then :
10681  withval=$with_xsltproc; use_xsltproc=$withval
10682else
10683  use_xsltproc=auto
10684fi
10685
10686
10687
10688if test "x$use_xsltproc" = x"auto"; then
10689   # Extract the first word of "xsltproc", so it can be a program name with args.
10690set dummy xsltproc; ac_word=$2
10691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10692$as_echo_n "checking for $ac_word... " >&6; }
10693if ${ac_cv_path_XSLTPROC+:} false; then :
10694  $as_echo_n "(cached) " >&6
10695else
10696  case $XSLTPROC in
10697  [\\/]* | ?:[\\/]*)
10698  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
10699  ;;
10700  *)
10701  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10702for as_dir in $PATH
10703do
10704  IFS=$as_save_IFS
10705  test -z "$as_dir" && as_dir=.
10706    for ac_exec_ext in '' $ac_executable_extensions; do
10707  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10708    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
10709    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10710    break 2
10711  fi
10712done
10713  done
10714IFS=$as_save_IFS
10715
10716  ;;
10717esac
10718fi
10719XSLTPROC=$ac_cv_path_XSLTPROC
10720if test -n "$XSLTPROC"; then
10721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
10722$as_echo "$XSLTPROC" >&6; }
10723else
10724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10725$as_echo "no" >&6; }
10726fi
10727
10728
10729   if test "x$XSLTPROC" = "x"; then
10730        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
10731$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
10732	have_xsltproc=no
10733   else
10734        have_xsltproc=yes
10735   fi
10736elif test "x$use_xsltproc" = x"yes" ; then
10737   # Extract the first word of "xsltproc", so it can be a program name with args.
10738set dummy xsltproc; ac_word=$2
10739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10740$as_echo_n "checking for $ac_word... " >&6; }
10741if ${ac_cv_path_XSLTPROC+:} false; then :
10742  $as_echo_n "(cached) " >&6
10743else
10744  case $XSLTPROC in
10745  [\\/]* | ?:[\\/]*)
10746  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
10747  ;;
10748  *)
10749  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10750for as_dir in $PATH
10751do
10752  IFS=$as_save_IFS
10753  test -z "$as_dir" && as_dir=.
10754    for ac_exec_ext in '' $ac_executable_extensions; do
10755  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10756    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
10757    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10758    break 2
10759  fi
10760done
10761  done
10762IFS=$as_save_IFS
10763
10764  ;;
10765esac
10766fi
10767XSLTPROC=$ac_cv_path_XSLTPROC
10768if test -n "$XSLTPROC"; then
10769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
10770$as_echo "$XSLTPROC" >&6; }
10771else
10772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10773$as_echo "no" >&6; }
10774fi
10775
10776
10777   if test "x$XSLTPROC" = "x"; then
10778        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
10779   fi
10780   have_xsltproc=yes
10781elif test "x$use_xsltproc" = x"no" ; then
10782   if test "x$XSLTPROC" != "x"; then
10783      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
10784$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
10785   fi
10786   have_xsltproc=no
10787else
10788   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
10789fi
10790
10791 if test "$have_xsltproc" = yes; then
10792  HAVE_XSLTPROC_TRUE=
10793  HAVE_XSLTPROC_FALSE='#'
10794else
10795  HAVE_XSLTPROC_TRUE='#'
10796  HAVE_XSLTPROC_FALSE=
10797fi
10798
10799
10800
10801
10802
10803
10804# Check whether --with-fop was given.
10805if test "${with_fop+set}" = set; then :
10806  withval=$with_fop; use_fop=$withval
10807else
10808  use_fop=auto
10809fi
10810
10811
10812
10813if test "x$use_fop" = x"auto"; then
10814   # Extract the first word of "fop", so it can be a program name with args.
10815set dummy fop; ac_word=$2
10816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10817$as_echo_n "checking for $ac_word... " >&6; }
10818if ${ac_cv_path_FOP+:} false; then :
10819  $as_echo_n "(cached) " >&6
10820else
10821  case $FOP in
10822  [\\/]* | ?:[\\/]*)
10823  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
10824  ;;
10825  *)
10826  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10827for as_dir in $PATH
10828do
10829  IFS=$as_save_IFS
10830  test -z "$as_dir" && as_dir=.
10831    for ac_exec_ext in '' $ac_executable_extensions; do
10832  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10833    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
10834    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10835    break 2
10836  fi
10837done
10838  done
10839IFS=$as_save_IFS
10840
10841  ;;
10842esac
10843fi
10844FOP=$ac_cv_path_FOP
10845if test -n "$FOP"; then
10846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
10847$as_echo "$FOP" >&6; }
10848else
10849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10850$as_echo "no" >&6; }
10851fi
10852
10853
10854   if test "x$FOP" = "x"; then
10855        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
10856$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
10857	have_fop=no
10858   else
10859        have_fop=yes
10860   fi
10861elif test "x$use_fop" = x"yes" ; then
10862   # Extract the first word of "fop", so it can be a program name with args.
10863set dummy fop; ac_word=$2
10864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10865$as_echo_n "checking for $ac_word... " >&6; }
10866if ${ac_cv_path_FOP+:} false; then :
10867  $as_echo_n "(cached) " >&6
10868else
10869  case $FOP in
10870  [\\/]* | ?:[\\/]*)
10871  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
10872  ;;
10873  *)
10874  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10875for as_dir in $PATH
10876do
10877  IFS=$as_save_IFS
10878  test -z "$as_dir" && as_dir=.
10879    for ac_exec_ext in '' $ac_executable_extensions; do
10880  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10881    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
10882    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10883    break 2
10884  fi
10885done
10886  done
10887IFS=$as_save_IFS
10888
10889  ;;
10890esac
10891fi
10892FOP=$ac_cv_path_FOP
10893if test -n "$FOP"; then
10894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
10895$as_echo "$FOP" >&6; }
10896else
10897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10898$as_echo "no" >&6; }
10899fi
10900
10901
10902   if test "x$FOP" = "x"; then
10903        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
10904   fi
10905   have_fop=yes
10906elif test "x$use_fop" = x"no" ; then
10907   if test "x$FOP" != "x"; then
10908      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
10909$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
10910   fi
10911   have_fop=no
10912else
10913   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
10914fi
10915
10916# Test for a minimum version of fop, if provided.
10917
10918 if test "$have_fop" = yes; then
10919  HAVE_FOP_TRUE=
10920  HAVE_FOP_FALSE='#'
10921else
10922  HAVE_FOP_TRUE='#'
10923  HAVE_FOP_FALSE=
10924fi
10925
10926
10927
10928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
10929$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
10930XORG_SGML_PATH=
10931if test -n "$PKG_CONFIG" && \
10932    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
10933  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
10934  ac_status=$?
10935  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10936  test $ac_status = 0; }; then
10937  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
10938else
10939  :
10940
10941fi
10942
10943# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
10944# the path and the name of the doc stylesheet
10945if test "x$XORG_SGML_PATH" != "x" ; then
10946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
10947$as_echo "$XORG_SGML_PATH" >&6; }
10948   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
10949   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
10950else
10951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10952$as_echo "no" >&6; }
10953fi
10954
10955
10956
10957
10958 if test "x$XSL_STYLESHEET" != "x"; then
10959  HAVE_STYLESHEETS_TRUE=
10960  HAVE_STYLESHEETS_FALSE='#'
10961else
10962  HAVE_STYLESHEETS_TRUE='#'
10963  HAVE_STYLESHEETS_FALSE=
10964fi
10965
10966
10967
10968ac_config_files="$ac_config_files Makefile general/Makefile general/fonts/Makefile general/input/Makefile general/graphics/Makefile general/platforms/Makefile man/Makefile specs/Makefile specs/CTEXT/Makefile specs/ICCCM/Makefile specs/Xext/Makefile specs/XLFD/Makefile specs/Xserver/Makefile"
10969
10970cat >confcache <<\_ACEOF
10971# This file is a shell script that caches the results of configure
10972# tests run on this system so they can be shared between configure
10973# scripts and configure runs, see configure's option --config-cache.
10974# It is not useful on other systems.  If it contains results you don't
10975# want to keep, you may remove or edit it.
10976#
10977# config.status only pays attention to the cache file if you give it
10978# the --recheck option to rerun configure.
10979#
10980# `ac_cv_env_foo' variables (set or unset) will be overridden when
10981# loading this file, other *unset* `ac_cv_foo' will be assigned the
10982# following values.
10983
10984_ACEOF
10985
10986# The following way of writing the cache mishandles newlines in values,
10987# but we know of no workaround that is simple, portable, and efficient.
10988# So, we kill variables containing newlines.
10989# Ultrix sh set writes to stderr and can't be redirected directly,
10990# and sets the high bit in the cache file unless we assign to the vars.
10991(
10992  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10993    eval ac_val=\$$ac_var
10994    case $ac_val in #(
10995    *${as_nl}*)
10996      case $ac_var in #(
10997      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10998$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10999      esac
11000      case $ac_var in #(
11001      _ | IFS | as_nl) ;; #(
11002      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11003      *) { eval $ac_var=; unset $ac_var;} ;;
11004      esac ;;
11005    esac
11006  done
11007
11008  (set) 2>&1 |
11009    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11010    *${as_nl}ac_space=\ *)
11011      # `set' does not quote correctly, so add quotes: double-quote
11012      # substitution turns \\\\ into \\, and sed turns \\ into \.
11013      sed -n \
11014	"s/'/'\\\\''/g;
11015	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11016      ;; #(
11017    *)
11018      # `set' quotes correctly as required by POSIX, so do not add quotes.
11019      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11020      ;;
11021    esac |
11022    sort
11023) |
11024  sed '
11025     /^ac_cv_env_/b end
11026     t clear
11027     :clear
11028     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11029     t end
11030     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11031     :end' >>confcache
11032if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11033  if test -w "$cache_file"; then
11034    if test "x$cache_file" != "x/dev/null"; then
11035      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11036$as_echo "$as_me: updating cache $cache_file" >&6;}
11037      if test ! -f "$cache_file" || test -h "$cache_file"; then
11038	cat confcache >"$cache_file"
11039      else
11040        case $cache_file in #(
11041        */* | ?:*)
11042	  mv -f confcache "$cache_file"$$ &&
11043	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11044        *)
11045	  mv -f confcache "$cache_file" ;;
11046	esac
11047      fi
11048    fi
11049  else
11050    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11051$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11052  fi
11053fi
11054rm -f confcache
11055
11056test "x$prefix" = xNONE && prefix=$ac_default_prefix
11057# Let make expand exec_prefix.
11058test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11059
11060# Transform confdefs.h into DEFS.
11061# Protect against shell expansion while executing Makefile rules.
11062# Protect against Makefile macro expansion.
11063#
11064# If the first sed substitution is executed (which looks for macros that
11065# take arguments), then branch to the quote section.  Otherwise,
11066# look for a macro that doesn't take arguments.
11067ac_script='
11068:mline
11069/\\$/{
11070 N
11071 s,\\\n,,
11072 b mline
11073}
11074t clear
11075:clear
11076s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
11077t quote
11078s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
11079t quote
11080b any
11081:quote
11082s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11083s/\[/\\&/g
11084s/\]/\\&/g
11085s/\$/$$/g
11086H
11087:any
11088${
11089	g
11090	s/^\n//
11091	s/\n/ /g
11092	p
11093}
11094'
11095DEFS=`sed -n "$ac_script" confdefs.h`
11096
11097
11098ac_libobjs=
11099ac_ltlibobjs=
11100U=
11101for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11102  # 1. Remove the extension, and $U if already installed.
11103  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11104  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11105  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11106  #    will be set to the directory where LIBOBJS objects are built.
11107  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11108  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11109done
11110LIBOBJS=$ac_libobjs
11111
11112LTLIBOBJS=$ac_ltlibobjs
11113
11114
11115 if test -n "$EXEEXT"; then
11116  am__EXEEXT_TRUE=
11117  am__EXEEXT_FALSE='#'
11118else
11119  am__EXEEXT_TRUE='#'
11120  am__EXEEXT_FALSE=
11121fi
11122
11123if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11124  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11125Usually this means the macro was only invoked conditionally." "$LINENO" 5
11126fi
11127if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11128  as_fn_error $? "conditional \"AMDEP\" was never defined.
11129Usually this means the macro was only invoked conditionally." "$LINENO" 5
11130fi
11131if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11132  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11133Usually this means the macro was only invoked conditionally." "$LINENO" 5
11134fi
11135if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
11136  as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
11137Usually this means the macro was only invoked conditionally." "$LINENO" 5
11138fi
11139if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
11140  as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
11141Usually this means the macro was only invoked conditionally." "$LINENO" 5
11142fi
11143if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
11144  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
11145Usually this means the macro was only invoked conditionally." "$LINENO" 5
11146fi
11147if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
11148  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
11149Usually this means the macro was only invoked conditionally." "$LINENO" 5
11150fi
11151if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
11152  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
11153Usually this means the macro was only invoked conditionally." "$LINENO" 5
11154fi
11155if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
11156  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
11157Usually this means the macro was only invoked conditionally." "$LINENO" 5
11158fi
11159if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
11160  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
11161Usually this means the macro was only invoked conditionally." "$LINENO" 5
11162fi
11163
11164: "${CONFIG_STATUS=./config.status}"
11165ac_write_fail=0
11166ac_clean_files_save=$ac_clean_files
11167ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11168{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11169$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11170as_write_fail=0
11171cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11172#! $SHELL
11173# Generated by $as_me.
11174# Run this file to recreate the current configuration.
11175# Compiler output produced by configure, useful for debugging
11176# configure, is in config.log if it exists.
11177
11178debug=false
11179ac_cs_recheck=false
11180ac_cs_silent=false
11181
11182SHELL=\${CONFIG_SHELL-$SHELL}
11183export SHELL
11184_ASEOF
11185cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11186## -------------------- ##
11187## M4sh Initialization. ##
11188## -------------------- ##
11189
11190# Be more Bourne compatible
11191DUALCASE=1; export DUALCASE # for MKS sh
11192if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11193  emulate sh
11194  NULLCMD=:
11195  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11196  # is contrary to our usage.  Disable this feature.
11197  alias -g '${1+"$@"}'='"$@"'
11198  setopt NO_GLOB_SUBST
11199else
11200  case `(set -o) 2>/dev/null` in #(
11201  *posix*) :
11202    set -o posix ;; #(
11203  *) :
11204     ;;
11205esac
11206fi
11207
11208
11209as_nl='
11210'
11211export as_nl
11212# Printing a long string crashes Solaris 7 /usr/bin/printf.
11213as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11214as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11215as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11216# Prefer a ksh shell builtin over an external printf program on Solaris,
11217# but without wasting forks for bash or zsh.
11218if test -z "$BASH_VERSION$ZSH_VERSION" \
11219    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11220  as_echo='print -r --'
11221  as_echo_n='print -rn --'
11222elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11223  as_echo='printf %s\n'
11224  as_echo_n='printf %s'
11225else
11226  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11227    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11228    as_echo_n='/usr/ucb/echo -n'
11229  else
11230    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11231    as_echo_n_body='eval
11232      arg=$1;
11233      case $arg in #(
11234      *"$as_nl"*)
11235	expr "X$arg" : "X\\(.*\\)$as_nl";
11236	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11237      esac;
11238      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11239    '
11240    export as_echo_n_body
11241    as_echo_n='sh -c $as_echo_n_body as_echo'
11242  fi
11243  export as_echo_body
11244  as_echo='sh -c $as_echo_body as_echo'
11245fi
11246
11247# The user is always right.
11248if test "${PATH_SEPARATOR+set}" != set; then
11249  PATH_SEPARATOR=:
11250  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11251    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11252      PATH_SEPARATOR=';'
11253  }
11254fi
11255
11256
11257# IFS
11258# We need space, tab and new line, in precisely that order.  Quoting is
11259# there to prevent editors from complaining about space-tab.
11260# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11261# splitting by setting IFS to empty value.)
11262IFS=" ""	$as_nl"
11263
11264# Find who we are.  Look in the path if we contain no directory separator.
11265as_myself=
11266case $0 in #((
11267  *[\\/]* ) as_myself=$0 ;;
11268  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11269for as_dir in $PATH
11270do
11271  IFS=$as_save_IFS
11272  test -z "$as_dir" && as_dir=.
11273    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11274  done
11275IFS=$as_save_IFS
11276
11277     ;;
11278esac
11279# We did not find ourselves, most probably we were run as `sh COMMAND'
11280# in which case we are not to be found in the path.
11281if test "x$as_myself" = x; then
11282  as_myself=$0
11283fi
11284if test ! -f "$as_myself"; then
11285  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11286  exit 1
11287fi
11288
11289# Unset variables that we do not need and which cause bugs (e.g. in
11290# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11291# suppresses any "Segmentation fault" message there.  '((' could
11292# trigger a bug in pdksh 5.2.14.
11293for as_var in BASH_ENV ENV MAIL MAILPATH
11294do eval test x\${$as_var+set} = xset \
11295  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11296done
11297PS1='$ '
11298PS2='> '
11299PS4='+ '
11300
11301# NLS nuisances.
11302LC_ALL=C
11303export LC_ALL
11304LANGUAGE=C
11305export LANGUAGE
11306
11307# CDPATH.
11308(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11309
11310
11311# as_fn_error STATUS ERROR [LINENO LOG_FD]
11312# ----------------------------------------
11313# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11314# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11315# script with STATUS, using 1 if that was 0.
11316as_fn_error ()
11317{
11318  as_status=$1; test $as_status -eq 0 && as_status=1
11319  if test "$4"; then
11320    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11321    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11322  fi
11323  $as_echo "$as_me: error: $2" >&2
11324  as_fn_exit $as_status
11325} # as_fn_error
11326
11327
11328# as_fn_set_status STATUS
11329# -----------------------
11330# Set $? to STATUS, without forking.
11331as_fn_set_status ()
11332{
11333  return $1
11334} # as_fn_set_status
11335
11336# as_fn_exit STATUS
11337# -----------------
11338# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11339as_fn_exit ()
11340{
11341  set +e
11342  as_fn_set_status $1
11343  exit $1
11344} # as_fn_exit
11345
11346# as_fn_unset VAR
11347# ---------------
11348# Portably unset VAR.
11349as_fn_unset ()
11350{
11351  { eval $1=; unset $1;}
11352}
11353as_unset=as_fn_unset
11354# as_fn_append VAR VALUE
11355# ----------------------
11356# Append the text in VALUE to the end of the definition contained in VAR. Take
11357# advantage of any shell optimizations that allow amortized linear growth over
11358# repeated appends, instead of the typical quadratic growth present in naive
11359# implementations.
11360if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11361  eval 'as_fn_append ()
11362  {
11363    eval $1+=\$2
11364  }'
11365else
11366  as_fn_append ()
11367  {
11368    eval $1=\$$1\$2
11369  }
11370fi # as_fn_append
11371
11372# as_fn_arith ARG...
11373# ------------------
11374# Perform arithmetic evaluation on the ARGs, and store the result in the
11375# global $as_val. Take advantage of shells that can avoid forks. The arguments
11376# must be portable across $(()) and expr.
11377if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11378  eval 'as_fn_arith ()
11379  {
11380    as_val=$(( $* ))
11381  }'
11382else
11383  as_fn_arith ()
11384  {
11385    as_val=`expr "$@" || test $? -eq 1`
11386  }
11387fi # as_fn_arith
11388
11389
11390if expr a : '\(a\)' >/dev/null 2>&1 &&
11391   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11392  as_expr=expr
11393else
11394  as_expr=false
11395fi
11396
11397if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11398  as_basename=basename
11399else
11400  as_basename=false
11401fi
11402
11403if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11404  as_dirname=dirname
11405else
11406  as_dirname=false
11407fi
11408
11409as_me=`$as_basename -- "$0" ||
11410$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11411	 X"$0" : 'X\(//\)$' \| \
11412	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11413$as_echo X/"$0" |
11414    sed '/^.*\/\([^/][^/]*\)\/*$/{
11415	    s//\1/
11416	    q
11417	  }
11418	  /^X\/\(\/\/\)$/{
11419	    s//\1/
11420	    q
11421	  }
11422	  /^X\/\(\/\).*/{
11423	    s//\1/
11424	    q
11425	  }
11426	  s/.*/./; q'`
11427
11428# Avoid depending upon Character Ranges.
11429as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11430as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11431as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11432as_cr_digits='0123456789'
11433as_cr_alnum=$as_cr_Letters$as_cr_digits
11434
11435ECHO_C= ECHO_N= ECHO_T=
11436case `echo -n x` in #(((((
11437-n*)
11438  case `echo 'xy\c'` in
11439  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11440  xy)  ECHO_C='\c';;
11441  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11442       ECHO_T='	';;
11443  esac;;
11444*)
11445  ECHO_N='-n';;
11446esac
11447
11448rm -f conf$$ conf$$.exe conf$$.file
11449if test -d conf$$.dir; then
11450  rm -f conf$$.dir/conf$$.file
11451else
11452  rm -f conf$$.dir
11453  mkdir conf$$.dir 2>/dev/null
11454fi
11455if (echo >conf$$.file) 2>/dev/null; then
11456  if ln -s conf$$.file conf$$ 2>/dev/null; then
11457    as_ln_s='ln -s'
11458    # ... but there are two gotchas:
11459    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11460    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11461    # In both cases, we have to default to `cp -p'.
11462    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11463      as_ln_s='cp -p'
11464  elif ln conf$$.file conf$$ 2>/dev/null; then
11465    as_ln_s=ln
11466  else
11467    as_ln_s='cp -p'
11468  fi
11469else
11470  as_ln_s='cp -p'
11471fi
11472rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11473rmdir conf$$.dir 2>/dev/null
11474
11475
11476# as_fn_mkdir_p
11477# -------------
11478# Create "$as_dir" as a directory, including parents if necessary.
11479as_fn_mkdir_p ()
11480{
11481
11482  case $as_dir in #(
11483  -*) as_dir=./$as_dir;;
11484  esac
11485  test -d "$as_dir" || eval $as_mkdir_p || {
11486    as_dirs=
11487    while :; do
11488      case $as_dir in #(
11489      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11490      *) as_qdir=$as_dir;;
11491      esac
11492      as_dirs="'$as_qdir' $as_dirs"
11493      as_dir=`$as_dirname -- "$as_dir" ||
11494$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11495	 X"$as_dir" : 'X\(//\)[^/]' \| \
11496	 X"$as_dir" : 'X\(//\)$' \| \
11497	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11498$as_echo X"$as_dir" |
11499    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11500	    s//\1/
11501	    q
11502	  }
11503	  /^X\(\/\/\)[^/].*/{
11504	    s//\1/
11505	    q
11506	  }
11507	  /^X\(\/\/\)$/{
11508	    s//\1/
11509	    q
11510	  }
11511	  /^X\(\/\).*/{
11512	    s//\1/
11513	    q
11514	  }
11515	  s/.*/./; q'`
11516      test -d "$as_dir" && break
11517    done
11518    test -z "$as_dirs" || eval "mkdir $as_dirs"
11519  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11520
11521
11522} # as_fn_mkdir_p
11523if mkdir -p . 2>/dev/null; then
11524  as_mkdir_p='mkdir -p "$as_dir"'
11525else
11526  test -d ./-p && rmdir ./-p
11527  as_mkdir_p=false
11528fi
11529
11530if test -x / >/dev/null 2>&1; then
11531  as_test_x='test -x'
11532else
11533  if ls -dL / >/dev/null 2>&1; then
11534    as_ls_L_option=L
11535  else
11536    as_ls_L_option=
11537  fi
11538  as_test_x='
11539    eval sh -c '\''
11540      if test -d "$1"; then
11541	test -d "$1/.";
11542      else
11543	case $1 in #(
11544	-*)set "./$1";;
11545	esac;
11546	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11547	???[sx]*):;;*)false;;esac;fi
11548    '\'' sh
11549  '
11550fi
11551as_executable_p=$as_test_x
11552
11553# Sed expression to map a string onto a valid CPP name.
11554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11555
11556# Sed expression to map a string onto a valid variable name.
11557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11558
11559
11560exec 6>&1
11561## ----------------------------------- ##
11562## Main body of $CONFIG_STATUS script. ##
11563## ----------------------------------- ##
11564_ASEOF
11565test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11566
11567cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11568# Save the log message, to keep $0 and so on meaningful, and to
11569# report actual input values of CONFIG_FILES etc. instead of their
11570# values after options handling.
11571ac_log="
11572This file was extended by xorg-docs $as_me 1.7, which was
11573generated by GNU Autoconf 2.68.  Invocation command line was
11574
11575  CONFIG_FILES    = $CONFIG_FILES
11576  CONFIG_HEADERS  = $CONFIG_HEADERS
11577  CONFIG_LINKS    = $CONFIG_LINKS
11578  CONFIG_COMMANDS = $CONFIG_COMMANDS
11579  $ $0 $@
11580
11581on `(hostname || uname -n) 2>/dev/null | sed 1q`
11582"
11583
11584_ACEOF
11585
11586case $ac_config_files in *"
11587"*) set x $ac_config_files; shift; ac_config_files=$*;;
11588esac
11589
11590
11591
11592cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11593# Files that config.status was made for.
11594config_files="$ac_config_files"
11595config_commands="$ac_config_commands"
11596
11597_ACEOF
11598
11599cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11600ac_cs_usage="\
11601\`$as_me' instantiates files and other configuration actions
11602from templates according to the current configuration.  Unless the files
11603and actions are specified as TAGs, all are instantiated by default.
11604
11605Usage: $0 [OPTION]... [TAG]...
11606
11607  -h, --help       print this help, then exit
11608  -V, --version    print version number and configuration settings, then exit
11609      --config     print configuration, then exit
11610  -q, --quiet, --silent
11611                   do not print progress messages
11612  -d, --debug      don't remove temporary files
11613      --recheck    update $as_me by reconfiguring in the same conditions
11614      --file=FILE[:TEMPLATE]
11615                   instantiate the configuration file FILE
11616
11617Configuration files:
11618$config_files
11619
11620Configuration commands:
11621$config_commands
11622
11623Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11624
11625_ACEOF
11626cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11627ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11628ac_cs_version="\\
11629xorg-docs config.status 1.7
11630configured by $0, generated by GNU Autoconf 2.68,
11631  with options \\"\$ac_cs_config\\"
11632
11633Copyright (C) 2010 Free Software Foundation, Inc.
11634This config.status script is free software; the Free Software Foundation
11635gives unlimited permission to copy, distribute and modify it."
11636
11637ac_pwd='$ac_pwd'
11638srcdir='$srcdir'
11639INSTALL='$INSTALL'
11640MKDIR_P='$MKDIR_P'
11641AWK='$AWK'
11642test -n "\$AWK" || AWK=awk
11643_ACEOF
11644
11645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11646# The default lists apply if the user does not specify any file.
11647ac_need_defaults=:
11648while test $# != 0
11649do
11650  case $1 in
11651  --*=?*)
11652    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11653    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11654    ac_shift=:
11655    ;;
11656  --*=)
11657    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11658    ac_optarg=
11659    ac_shift=:
11660    ;;
11661  *)
11662    ac_option=$1
11663    ac_optarg=$2
11664    ac_shift=shift
11665    ;;
11666  esac
11667
11668  case $ac_option in
11669  # Handling of the options.
11670  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11671    ac_cs_recheck=: ;;
11672  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11673    $as_echo "$ac_cs_version"; exit ;;
11674  --config | --confi | --conf | --con | --co | --c )
11675    $as_echo "$ac_cs_config"; exit ;;
11676  --debug | --debu | --deb | --de | --d | -d )
11677    debug=: ;;
11678  --file | --fil | --fi | --f )
11679    $ac_shift
11680    case $ac_optarg in
11681    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11682    '') as_fn_error $? "missing file argument" ;;
11683    esac
11684    as_fn_append CONFIG_FILES " '$ac_optarg'"
11685    ac_need_defaults=false;;
11686  --he | --h |  --help | --hel | -h )
11687    $as_echo "$ac_cs_usage"; exit ;;
11688  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11689  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11690    ac_cs_silent=: ;;
11691
11692  # This is an error.
11693  -*) as_fn_error $? "unrecognized option: \`$1'
11694Try \`$0 --help' for more information." ;;
11695
11696  *) as_fn_append ac_config_targets " $1"
11697     ac_need_defaults=false ;;
11698
11699  esac
11700  shift
11701done
11702
11703ac_configure_extra_args=
11704
11705if $ac_cs_silent; then
11706  exec 6>/dev/null
11707  ac_configure_extra_args="$ac_configure_extra_args --silent"
11708fi
11709
11710_ACEOF
11711cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11712if \$ac_cs_recheck; then
11713  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11714  shift
11715  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11716  CONFIG_SHELL='$SHELL'
11717  export CONFIG_SHELL
11718  exec "\$@"
11719fi
11720
11721_ACEOF
11722cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11723exec 5>>config.log
11724{
11725  echo
11726  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11727## Running $as_me. ##
11728_ASBOX
11729  $as_echo "$ac_log"
11730} >&5
11731
11732_ACEOF
11733cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11734#
11735# INIT-COMMANDS
11736#
11737AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11738
11739_ACEOF
11740
11741cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11742
11743# Handling of arguments.
11744for ac_config_target in $ac_config_targets
11745do
11746  case $ac_config_target in
11747    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11748    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11749    "general/Makefile") CONFIG_FILES="$CONFIG_FILES general/Makefile" ;;
11750    "general/fonts/Makefile") CONFIG_FILES="$CONFIG_FILES general/fonts/Makefile" ;;
11751    "general/input/Makefile") CONFIG_FILES="$CONFIG_FILES general/input/Makefile" ;;
11752    "general/graphics/Makefile") CONFIG_FILES="$CONFIG_FILES general/graphics/Makefile" ;;
11753    "general/platforms/Makefile") CONFIG_FILES="$CONFIG_FILES general/platforms/Makefile" ;;
11754    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11755    "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
11756    "specs/CTEXT/Makefile") CONFIG_FILES="$CONFIG_FILES specs/CTEXT/Makefile" ;;
11757    "specs/ICCCM/Makefile") CONFIG_FILES="$CONFIG_FILES specs/ICCCM/Makefile" ;;
11758    "specs/Xext/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Xext/Makefile" ;;
11759    "specs/XLFD/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XLFD/Makefile" ;;
11760    "specs/Xserver/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Xserver/Makefile" ;;
11761
11762  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11763  esac
11764done
11765
11766
11767# If the user did not use the arguments to specify the items to instantiate,
11768# then the envvar interface is used.  Set only those that are not.
11769# We use the long form for the default assignment because of an extremely
11770# bizarre bug on SunOS 4.1.3.
11771if $ac_need_defaults; then
11772  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11773  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11774fi
11775
11776# Have a temporary directory for convenience.  Make it in the build tree
11777# simply because there is no reason against having it here, and in addition,
11778# creating and moving files from /tmp can sometimes cause problems.
11779# Hook for its removal unless debugging.
11780# Note that there is a small window in which the directory will not be cleaned:
11781# after its creation but before its name has been assigned to `$tmp'.
11782$debug ||
11783{
11784  tmp= ac_tmp=
11785  trap 'exit_status=$?
11786  : "${ac_tmp:=$tmp}"
11787  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11788' 0
11789  trap 'as_fn_exit 1' 1 2 13 15
11790}
11791# Create a (secure) tmp directory for tmp files.
11792
11793{
11794  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11795  test -d "$tmp"
11796}  ||
11797{
11798  tmp=./conf$$-$RANDOM
11799  (umask 077 && mkdir "$tmp")
11800} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11801ac_tmp=$tmp
11802
11803# Set up the scripts for CONFIG_FILES section.
11804# No need to generate them if there are no CONFIG_FILES.
11805# This happens for instance with `./config.status config.h'.
11806if test -n "$CONFIG_FILES"; then
11807
11808
11809ac_cr=`echo X | tr X '\015'`
11810# On cygwin, bash can eat \r inside `` if the user requested igncr.
11811# But we know of no other shell where ac_cr would be empty at this
11812# point, so we can use a bashism as a fallback.
11813if test "x$ac_cr" = x; then
11814  eval ac_cr=\$\'\\r\'
11815fi
11816ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11817if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11818  ac_cs_awk_cr='\\r'
11819else
11820  ac_cs_awk_cr=$ac_cr
11821fi
11822
11823echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11824_ACEOF
11825
11826
11827{
11828  echo "cat >conf$$subs.awk <<_ACEOF" &&
11829  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11830  echo "_ACEOF"
11831} >conf$$subs.sh ||
11832  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11833ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11834ac_delim='%!_!# '
11835for ac_last_try in false false false false false :; do
11836  . ./conf$$subs.sh ||
11837    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11838
11839  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11840  if test $ac_delim_n = $ac_delim_num; then
11841    break
11842  elif $ac_last_try; then
11843    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11844  else
11845    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11846  fi
11847done
11848rm -f conf$$subs.sh
11849
11850cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11851cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11852_ACEOF
11853sed -n '
11854h
11855s/^/S["/; s/!.*/"]=/
11856p
11857g
11858s/^[^!]*!//
11859:repl
11860t repl
11861s/'"$ac_delim"'$//
11862t delim
11863:nl
11864h
11865s/\(.\{148\}\)..*/\1/
11866t more1
11867s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11868p
11869n
11870b repl
11871:more1
11872s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11873p
11874g
11875s/.\{148\}//
11876t nl
11877:delim
11878h
11879s/\(.\{148\}\)..*/\1/
11880t more2
11881s/["\\]/\\&/g; s/^/"/; s/$/"/
11882p
11883b
11884:more2
11885s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11886p
11887g
11888s/.\{148\}//
11889t delim
11890' <conf$$subs.awk | sed '
11891/^[^""]/{
11892  N
11893  s/\n//
11894}
11895' >>$CONFIG_STATUS || ac_write_fail=1
11896rm -f conf$$subs.awk
11897cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11898_ACAWK
11899cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11900  for (key in S) S_is_set[key] = 1
11901  FS = ""
11902
11903}
11904{
11905  line = $ 0
11906  nfields = split(line, field, "@")
11907  substed = 0
11908  len = length(field[1])
11909  for (i = 2; i < nfields; i++) {
11910    key = field[i]
11911    keylen = length(key)
11912    if (S_is_set[key]) {
11913      value = S[key]
11914      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11915      len += length(value) + length(field[++i])
11916      substed = 1
11917    } else
11918      len += 1 + keylen
11919  }
11920
11921  print line
11922}
11923
11924_ACAWK
11925_ACEOF
11926cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11927if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11928  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11929else
11930  cat
11931fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11932  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11933_ACEOF
11934
11935# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11936# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11937# trailing colons and then remove the whole line if VPATH becomes empty
11938# (actually we leave an empty line to preserve line numbers).
11939if test "x$srcdir" = x.; then
11940  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11941h
11942s///
11943s/^/:/
11944s/[	 ]*$/:/
11945s/:\$(srcdir):/:/g
11946s/:\${srcdir}:/:/g
11947s/:@srcdir@:/:/g
11948s/^:*//
11949s/:*$//
11950x
11951s/\(=[	 ]*\).*/\1/
11952G
11953s/\n//
11954s/^[^=]*=[	 ]*$//
11955}'
11956fi
11957
11958cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11959fi # test -n "$CONFIG_FILES"
11960
11961
11962eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
11963shift
11964for ac_tag
11965do
11966  case $ac_tag in
11967  :[FHLC]) ac_mode=$ac_tag; continue;;
11968  esac
11969  case $ac_mode$ac_tag in
11970  :[FHL]*:*);;
11971  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11972  :[FH]-) ac_tag=-:-;;
11973  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11974  esac
11975  ac_save_IFS=$IFS
11976  IFS=:
11977  set x $ac_tag
11978  IFS=$ac_save_IFS
11979  shift
11980  ac_file=$1
11981  shift
11982
11983  case $ac_mode in
11984  :L) ac_source=$1;;
11985  :[FH])
11986    ac_file_inputs=
11987    for ac_f
11988    do
11989      case $ac_f in
11990      -) ac_f="$ac_tmp/stdin";;
11991      *) # Look for the file first in the build tree, then in the source tree
11992	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11993	 # because $ac_f cannot contain `:'.
11994	 test -f "$ac_f" ||
11995	   case $ac_f in
11996	   [\\/$]*) false;;
11997	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11998	   esac ||
11999	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12000      esac
12001      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12002      as_fn_append ac_file_inputs " '$ac_f'"
12003    done
12004
12005    # Let's still pretend it is `configure' which instantiates (i.e., don't
12006    # use $as_me), people would be surprised to read:
12007    #    /* config.h.  Generated by config.status.  */
12008    configure_input='Generated from '`
12009	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12010	`' by configure.'
12011    if test x"$ac_file" != x-; then
12012      configure_input="$ac_file.  $configure_input"
12013      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12014$as_echo "$as_me: creating $ac_file" >&6;}
12015    fi
12016    # Neutralize special characters interpreted by sed in replacement strings.
12017    case $configure_input in #(
12018    *\&* | *\|* | *\\* )
12019       ac_sed_conf_input=`$as_echo "$configure_input" |
12020       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12021    *) ac_sed_conf_input=$configure_input;;
12022    esac
12023
12024    case $ac_tag in
12025    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12026      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12027    esac
12028    ;;
12029  esac
12030
12031  ac_dir=`$as_dirname -- "$ac_file" ||
12032$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12033	 X"$ac_file" : 'X\(//\)[^/]' \| \
12034	 X"$ac_file" : 'X\(//\)$' \| \
12035	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12036$as_echo X"$ac_file" |
12037    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12038	    s//\1/
12039	    q
12040	  }
12041	  /^X\(\/\/\)[^/].*/{
12042	    s//\1/
12043	    q
12044	  }
12045	  /^X\(\/\/\)$/{
12046	    s//\1/
12047	    q
12048	  }
12049	  /^X\(\/\).*/{
12050	    s//\1/
12051	    q
12052	  }
12053	  s/.*/./; q'`
12054  as_dir="$ac_dir"; as_fn_mkdir_p
12055  ac_builddir=.
12056
12057case "$ac_dir" in
12058.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12059*)
12060  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12061  # A ".." for each directory in $ac_dir_suffix.
12062  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12063  case $ac_top_builddir_sub in
12064  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12065  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12066  esac ;;
12067esac
12068ac_abs_top_builddir=$ac_pwd
12069ac_abs_builddir=$ac_pwd$ac_dir_suffix
12070# for backward compatibility:
12071ac_top_builddir=$ac_top_build_prefix
12072
12073case $srcdir in
12074  .)  # We are building in place.
12075    ac_srcdir=.
12076    ac_top_srcdir=$ac_top_builddir_sub
12077    ac_abs_top_srcdir=$ac_pwd ;;
12078  [\\/]* | ?:[\\/]* )  # Absolute name.
12079    ac_srcdir=$srcdir$ac_dir_suffix;
12080    ac_top_srcdir=$srcdir
12081    ac_abs_top_srcdir=$srcdir ;;
12082  *) # Relative name.
12083    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12084    ac_top_srcdir=$ac_top_build_prefix$srcdir
12085    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12086esac
12087ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12088
12089
12090  case $ac_mode in
12091  :F)
12092  #
12093  # CONFIG_FILE
12094  #
12095
12096  case $INSTALL in
12097  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12098  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12099  esac
12100  ac_MKDIR_P=$MKDIR_P
12101  case $MKDIR_P in
12102  [\\/$]* | ?:[\\/]* ) ;;
12103  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12104  esac
12105_ACEOF
12106
12107cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12108# If the template does not know about datarootdir, expand it.
12109# FIXME: This hack should be removed a few years after 2.60.
12110ac_datarootdir_hack=; ac_datarootdir_seen=
12111ac_sed_dataroot='
12112/datarootdir/ {
12113  p
12114  q
12115}
12116/@datadir@/p
12117/@docdir@/p
12118/@infodir@/p
12119/@localedir@/p
12120/@mandir@/p'
12121case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12122*datarootdir*) ac_datarootdir_seen=yes;;
12123*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12124  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12125$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12126_ACEOF
12127cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12128  ac_datarootdir_hack='
12129  s&@datadir@&$datadir&g
12130  s&@docdir@&$docdir&g
12131  s&@infodir@&$infodir&g
12132  s&@localedir@&$localedir&g
12133  s&@mandir@&$mandir&g
12134  s&\\\${datarootdir}&$datarootdir&g' ;;
12135esac
12136_ACEOF
12137
12138# Neutralize VPATH when `$srcdir' = `.'.
12139# Shell code in configure.ac might set extrasub.
12140# FIXME: do we really want to maintain this feature?
12141cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12142ac_sed_extra="$ac_vpsub
12143$extrasub
12144_ACEOF
12145cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12146:t
12147/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12148s|@configure_input@|$ac_sed_conf_input|;t t
12149s&@top_builddir@&$ac_top_builddir_sub&;t t
12150s&@top_build_prefix@&$ac_top_build_prefix&;t t
12151s&@srcdir@&$ac_srcdir&;t t
12152s&@abs_srcdir@&$ac_abs_srcdir&;t t
12153s&@top_srcdir@&$ac_top_srcdir&;t t
12154s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12155s&@builddir@&$ac_builddir&;t t
12156s&@abs_builddir@&$ac_abs_builddir&;t t
12157s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12158s&@INSTALL@&$ac_INSTALL&;t t
12159s&@MKDIR_P@&$ac_MKDIR_P&;t t
12160$ac_datarootdir_hack
12161"
12162eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12163  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12164
12165test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12166  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12167  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12168      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12169  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12170which seems to be undefined.  Please make sure it is defined" >&5
12171$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12172which seems to be undefined.  Please make sure it is defined" >&2;}
12173
12174  rm -f "$ac_tmp/stdin"
12175  case $ac_file in
12176  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12177  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12178  esac \
12179  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12180 ;;
12181
12182
12183  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12184$as_echo "$as_me: executing $ac_file commands" >&6;}
12185 ;;
12186  esac
12187
12188
12189  case $ac_file$ac_mode in
12190    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12191  # Autoconf 2.62 quotes --file arguments for eval, but not when files
12192  # are listed without --file.  Let's play safe and only enable the eval
12193  # if we detect the quoting.
12194  case $CONFIG_FILES in
12195  *\'*) eval set x "$CONFIG_FILES" ;;
12196  *)   set x $CONFIG_FILES ;;
12197  esac
12198  shift
12199  for mf
12200  do
12201    # Strip MF so we end up with the name of the file.
12202    mf=`echo "$mf" | sed -e 's/:.*$//'`
12203    # Check whether this is an Automake generated Makefile or not.
12204    # We used to match only the files named `Makefile.in', but
12205    # some people rename them; so instead we look at the file content.
12206    # Grep'ing the first line is not enough: some people post-process
12207    # each Makefile.in and add a new line on top of each file to say so.
12208    # Grep'ing the whole file is not good either: AIX grep has a line
12209    # limit of 2048, but all sed's we know have understand at least 4000.
12210    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12211      dirpart=`$as_dirname -- "$mf" ||
12212$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12213	 X"$mf" : 'X\(//\)[^/]' \| \
12214	 X"$mf" : 'X\(//\)$' \| \
12215	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12216$as_echo X"$mf" |
12217    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12218	    s//\1/
12219	    q
12220	  }
12221	  /^X\(\/\/\)[^/].*/{
12222	    s//\1/
12223	    q
12224	  }
12225	  /^X\(\/\/\)$/{
12226	    s//\1/
12227	    q
12228	  }
12229	  /^X\(\/\).*/{
12230	    s//\1/
12231	    q
12232	  }
12233	  s/.*/./; q'`
12234    else
12235      continue
12236    fi
12237    # Extract the definition of DEPDIR, am__include, and am__quote
12238    # from the Makefile without running `make'.
12239    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12240    test -z "$DEPDIR" && continue
12241    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12242    test -z "am__include" && continue
12243    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12244    # When using ansi2knr, U may be empty or an underscore; expand it
12245    U=`sed -n 's/^U = //p' < "$mf"`
12246    # Find all dependency output files, they are included files with
12247    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12248    # simplest approach to changing $(DEPDIR) to its actual value in the
12249    # expansion.
12250    for file in `sed -n "
12251      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12252	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12253      # Make sure the directory exists.
12254      test -f "$dirpart/$file" && continue
12255      fdir=`$as_dirname -- "$file" ||
12256$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12257	 X"$file" : 'X\(//\)[^/]' \| \
12258	 X"$file" : 'X\(//\)$' \| \
12259	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12260$as_echo X"$file" |
12261    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12262	    s//\1/
12263	    q
12264	  }
12265	  /^X\(\/\/\)[^/].*/{
12266	    s//\1/
12267	    q
12268	  }
12269	  /^X\(\/\/\)$/{
12270	    s//\1/
12271	    q
12272	  }
12273	  /^X\(\/\).*/{
12274	    s//\1/
12275	    q
12276	  }
12277	  s/.*/./; q'`
12278      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12279      # echo "creating $dirpart/$file"
12280      echo '# dummy' > "$dirpart/$file"
12281    done
12282  done
12283}
12284 ;;
12285
12286  esac
12287done # for ac_tag
12288
12289
12290as_fn_exit 0
12291_ACEOF
12292ac_clean_files=$ac_clean_files_save
12293
12294test $ac_write_fail = 0 ||
12295  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12296
12297
12298# configure is writing to config.log, and then calls config.status.
12299# config.status does its own redirection, appending to config.log.
12300# Unfortunately, on DOS this fails, as config.log is still kept open
12301# by configure, so config.status won't be able to write to it; its
12302# output is simply discarded.  So we exec the FD to /dev/null,
12303# effectively closing config.log, so it can be properly (re)opened and
12304# appended to by config.status.  When coming back to configure, we
12305# need to make the FD available again.
12306if test "$no_create" != yes; then
12307  ac_cs_success=:
12308  ac_config_status_args=
12309  test "$silent" = yes &&
12310    ac_config_status_args="$ac_config_status_args --quiet"
12311  exec 5>/dev/null
12312  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12313  exec 5>>config.log
12314  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12315  # would make configure fail if this is the last instruction.
12316  $ac_cs_success || as_fn_exit 1
12317fi
12318if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12319  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12320$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12321fi
12322
12323