configure revision f2ea6e01
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xorgproto 2021.5.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues
271$0: about your system, including any error possibly output
272$0: before this message. Then install a modern shell, or
273$0: manually run the script under such a shell if you do
274$0: have one."
275  fi
276  exit 1
277fi
278fi
279fi
280SHELL=${CONFIG_SHELL-/bin/sh}
281export SHELL
282# Unset more variables known to interfere with behavior of common tools.
283CLICOLOR_FORCE= GREP_OPTIONS=
284unset CLICOLOR_FORCE GREP_OPTIONS
285
286## --------------------- ##
287## M4sh Shell Functions. ##
288## --------------------- ##
289# as_fn_unset VAR
290# ---------------
291# Portably unset VAR.
292as_fn_unset ()
293{
294  { eval $1=; unset $1;}
295}
296as_unset=as_fn_unset
297
298# as_fn_set_status STATUS
299# -----------------------
300# Set $? to STATUS, without forking.
301as_fn_set_status ()
302{
303  return $1
304} # as_fn_set_status
305
306# as_fn_exit STATUS
307# -----------------
308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309as_fn_exit ()
310{
311  set +e
312  as_fn_set_status $1
313  exit $1
314} # as_fn_exit
315
316# as_fn_mkdir_p
317# -------------
318# Create "$as_dir" as a directory, including parents if necessary.
319as_fn_mkdir_p ()
320{
321
322  case $as_dir in #(
323  -*) as_dir=./$as_dir;;
324  esac
325  test -d "$as_dir" || eval $as_mkdir_p || {
326    as_dirs=
327    while :; do
328      case $as_dir in #(
329      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330      *) as_qdir=$as_dir;;
331      esac
332      as_dirs="'$as_qdir' $as_dirs"
333      as_dir=`$as_dirname -- "$as_dir" ||
334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335	 X"$as_dir" : 'X\(//\)[^/]' \| \
336	 X"$as_dir" : 'X\(//\)$' \| \
337	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338$as_echo X"$as_dir" |
339    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)[^/].*/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\).*/{
352	    s//\1/
353	    q
354	  }
355	  s/.*/./; q'`
356      test -d "$as_dir" && break
357    done
358    test -z "$as_dirs" || eval "mkdir $as_dirs"
359  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362} # as_fn_mkdir_p
363
364# as_fn_executable_p FILE
365# -----------------------
366# Test if FILE is an executable regular file.
367as_fn_executable_p ()
368{
369  test -f "$1" && test -x "$1"
370} # as_fn_executable_p
371# as_fn_append VAR VALUE
372# ----------------------
373# Append the text in VALUE to the end of the definition contained in VAR. Take
374# advantage of any shell optimizations that allow amortized linear growth over
375# repeated appends, instead of the typical quadratic growth present in naive
376# implementations.
377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378  eval 'as_fn_append ()
379  {
380    eval $1+=\$2
381  }'
382else
383  as_fn_append ()
384  {
385    eval $1=\$$1\$2
386  }
387fi # as_fn_append
388
389# as_fn_arith ARG...
390# ------------------
391# Perform arithmetic evaluation on the ARGs, and store the result in the
392# global $as_val. Take advantage of shells that can avoid forks. The arguments
393# must be portable across $(()) and expr.
394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395  eval 'as_fn_arith ()
396  {
397    as_val=$(( $* ))
398  }'
399else
400  as_fn_arith ()
401  {
402    as_val=`expr "$@" || test $? -eq 1`
403  }
404fi # as_fn_arith
405
406
407# as_fn_error STATUS ERROR [LINENO LOG_FD]
408# ----------------------------------------
409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411# script with STATUS, using 1 if that was 0.
412as_fn_error ()
413{
414  as_status=$1; test $as_status -eq 0 && as_status=1
415  if test "$4"; then
416    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418  fi
419  $as_echo "$as_me: error: $2" >&2
420  as_fn_exit $as_status
421} # as_fn_error
422
423if expr a : '\(a\)' >/dev/null 2>&1 &&
424   test "X`expr 00001 : '.*\(...\)'`" = X001; then
425  as_expr=expr
426else
427  as_expr=false
428fi
429
430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431  as_basename=basename
432else
433  as_basename=false
434fi
435
436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437  as_dirname=dirname
438else
439  as_dirname=false
440fi
441
442as_me=`$as_basename -- "$0" ||
443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444	 X"$0" : 'X\(//\)$' \| \
445	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446$as_echo X/"$0" |
447    sed '/^.*\/\([^/][^/]*\)\/*$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\/\)$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\).*/{
456	    s//\1/
457	    q
458	  }
459	  s/.*/./; q'`
460
461# Avoid depending upon Character Ranges.
462as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465as_cr_digits='0123456789'
466as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469  as_lineno_1=$LINENO as_lineno_1a=$LINENO
470  as_lineno_2=$LINENO as_lineno_2a=$LINENO
471  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
474  sed -n '
475    p
476    /[$]LINENO/=
477  ' <$as_myself |
478    sed '
479      s/[$]LINENO.*/&-/
480      t lineno
481      b
482      :lineno
483      N
484      :loop
485      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486      t loop
487      s/-\n.*//
488    ' >$as_me.lineno &&
489  chmod +x "$as_me.lineno" ||
490    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493  # already done that, so ensure we don't try to do so again and fall
494  # in an infinite loop.  This has already happened in practice.
495  _as_can_reexec=no; export _as_can_reexec
496  # Don't try to exec as it changes $[0], causing all sort of problems
497  # (the dirname of $[0] is not the place where we might find the
498  # original and so on.  Autoconf is especially sensitive to this).
499  . "./$as_me.lineno"
500  # Exit status is that of the last command.
501  exit
502}
503
504ECHO_C= ECHO_N= ECHO_T=
505case `echo -n x` in #(((((
506-n*)
507  case `echo 'xy\c'` in
508  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
509  xy)  ECHO_C='\c';;
510  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
511       ECHO_T='	';;
512  esac;;
513*)
514  ECHO_N='-n';;
515esac
516
517rm -f conf$$ conf$$.exe conf$$.file
518if test -d conf$$.dir; then
519  rm -f conf$$.dir/conf$$.file
520else
521  rm -f conf$$.dir
522  mkdir conf$$.dir 2>/dev/null
523fi
524if (echo >conf$$.file) 2>/dev/null; then
525  if ln -s conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s='ln -s'
527    # ... but there are two gotchas:
528    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530    # In both cases, we have to default to `cp -pR'.
531    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532      as_ln_s='cp -pR'
533  elif ln conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s=ln
535  else
536    as_ln_s='cp -pR'
537  fi
538else
539  as_ln_s='cp -pR'
540fi
541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542rmdir conf$$.dir 2>/dev/null
543
544if mkdir -p . 2>/dev/null; then
545  as_mkdir_p='mkdir -p "$as_dir"'
546else
547  test -d ./-p && rmdir ./-p
548  as_mkdir_p=false
549fi
550
551as_test_x='test -x'
552as_executable_p=as_fn_executable_p
553
554# Sed expression to map a string onto a valid CPP name.
555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557# Sed expression to map a string onto a valid variable name.
558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560as_awk_strverscmp='
561  # Use only awk features that work with 7th edition Unix awk (1978).
562  # My, what an old awk you have, Mr. Solaris!
563  END {
564    while (length(v1) && length(v2)) {
565      # Set d1 to be the next thing to compare from v1, and likewise for d2.
566      # Normally this is a single character, but if v1 and v2 contain digits,
567      # compare them as integers and fractions as strverscmp does.
568      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
569	# Split v1 and v2 into their leading digit string components d1 and d2,
570	# and advance v1 and v2 past the leading digit strings.
571	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
572	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
573	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
574	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
575	if (d1 ~ /^0/) {
576	  if (d2 ~ /^0/) {
577	    # Compare two fractions.
578	    while (d1 ~ /^0/ && d2 ~ /^0/) {
579	      d1 = substr(d1, 2); len1--
580	      d2 = substr(d2, 2); len2--
581	    }
582	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
583	      # The two components differ in length, and the common prefix
584	      # contains only leading zeros.  Consider the longer to be less.
585	      d1 = -len1
586	      d2 = -len2
587	    } else {
588	      # Otherwise, compare as strings.
589	      d1 = "x" d1
590	      d2 = "x" d2
591	    }
592	  } else {
593	    # A fraction is less than an integer.
594	    exit 1
595	  }
596	} else {
597	  if (d2 ~ /^0/) {
598	    # An integer is greater than a fraction.
599	    exit 2
600	  } else {
601	    # Compare two integers.
602	    d1 += 0
603	    d2 += 0
604	  }
605	}
606      } else {
607	# The normal case, without worrying about digits.
608	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
609	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
610      }
611      if (d1 < d2) exit 1
612      if (d1 > d2) exit 2
613    }
614    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
615    # which mishandles some comparisons of empty strings to integers.
616    if (length(v2)) exit 1
617    if (length(v1)) exit 2
618  }
619'
620
621test -n "$DJDIR" || exec 7<&0 </dev/null
622exec 6>&1
623
624# Name of the host.
625# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
626# so uname gets run too.
627ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
628
629#
630# Initializations.
631#
632ac_default_prefix=/usr/local
633ac_clean_files=
634ac_config_libobj_dir=.
635LIBOBJS=
636cross_compiling=no
637subdirs=
638MFLAGS=
639MAKEFLAGS=
640
641# Identity of this package.
642PACKAGE_NAME='xorgproto'
643PACKAGE_TARNAME='xorgproto'
644PACKAGE_VERSION='2021.5'
645PACKAGE_STRING='xorgproto 2021.5'
646PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues'
647PACKAGE_URL=''
648
649# Factoring default headers for most tests.
650ac_includes_default="\
651#include <stdio.h>
652#ifdef HAVE_SYS_TYPES_H
653# include <sys/types.h>
654#endif
655#ifdef HAVE_SYS_STAT_H
656# include <sys/stat.h>
657#endif
658#ifdef STDC_HEADERS
659# include <stdlib.h>
660# include <stddef.h>
661#else
662# ifdef HAVE_STDLIB_H
663#  include <stdlib.h>
664# endif
665#endif
666#ifdef HAVE_STRING_H
667# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
668#  include <memory.h>
669# endif
670# include <string.h>
671#endif
672#ifdef HAVE_STRINGS_H
673# include <strings.h>
674#endif
675#ifdef HAVE_INTTYPES_H
676# include <inttypes.h>
677#endif
678#ifdef HAVE_STDINT_H
679# include <stdint.h>
680#endif
681#ifdef HAVE_UNISTD_H
682# include <unistd.h>
683#endif"
684
685ac_subst_vars='am__EXEEXT_FALSE
686am__EXEEXT_TRUE
687LTLIBOBJS
688LIBOBJS
689USE_FDS_BITS
690LEGACY_FALSE
691LEGACY_TRUE
692HAVE_PYTHON_FALSE
693HAVE_PYTHON_TRUE
694pkgpyexecdir
695pyexecdir
696pkgpythondir
697pythondir
698PYTHON_PLATFORM
699PYTHON_EXEC_PREFIX
700PYTHON_PREFIX
701PYTHON_VERSION
702PYTHON
703HAVE_STYLESHEETS_FALSE
704HAVE_STYLESHEETS_TRUE
705XSL_STYLESHEET
706STYLESHEET_SRCDIR
707XORG_SGML_PATH
708HAVE_XSLTPROC_FALSE
709HAVE_XSLTPROC_TRUE
710XSLTPROC
711HAVE_FOP_FALSE
712HAVE_FOP_TRUE
713FOP
714HAVE_XMLTO_FALSE
715HAVE_XMLTO_TRUE
716HAVE_XMLTO_TEXT_FALSE
717HAVE_XMLTO_TEXT_TRUE
718XMLTO
719ENABLE_SPECS_FALSE
720ENABLE_SPECS_TRUE
721MAN_SUBSTS
722XORG_MAN_PAGE
723ADMIN_MAN_DIR
724DRIVER_MAN_DIR
725MISC_MAN_DIR
726FILE_MAN_DIR
727LIB_MAN_DIR
728APP_MAN_DIR
729ADMIN_MAN_SUFFIX
730DRIVER_MAN_SUFFIX
731MISC_MAN_SUFFIX
732FILE_MAN_SUFFIX
733LIB_MAN_SUFFIX
734APP_MAN_SUFFIX
735SED
736host_os
737host_vendor
738host_cpu
739host
740build_os
741build_vendor
742build_cpu
743build
744INSTALL_CMD
745PKG_CONFIG_LIBDIR
746PKG_CONFIG_PATH
747PKG_CONFIG
748CHANGELOG_CMD
749STRICT_CFLAGS
750CWARNFLAGS
751BASE_CFLAGS
752EGREP
753GREP
754CPP
755am__fastdepCC_FALSE
756am__fastdepCC_TRUE
757CCDEPMODE
758am__nodep
759AMDEPBACKSLASH
760AMDEP_FALSE
761AMDEP_TRUE
762am__include
763DEPDIR
764OBJEXT
765EXEEXT
766ac_ct_CC
767CPPFLAGS
768LDFLAGS
769CFLAGS
770CC
771AM_BACKSLASH
772AM_DEFAULT_VERBOSITY
773AM_DEFAULT_V
774AM_V
775am__untar
776am__tar
777AMTAR
778am__leading_dot
779SET_MAKE
780AWK
781mkdir_p
782MKDIR_P
783INSTALL_STRIP_PROGRAM
784STRIP
785install_sh
786MAKEINFO
787AUTOHEADER
788AUTOMAKE
789AUTOCONF
790ACLOCAL
791VERSION
792PACKAGE
793CYGPATH_W
794am__isrc
795INSTALL_DATA
796INSTALL_SCRIPT
797INSTALL_PROGRAM
798target_alias
799host_alias
800build_alias
801LIBS
802ECHO_T
803ECHO_N
804ECHO_C
805DEFS
806mandir
807localedir
808libdir
809psdir
810pdfdir
811dvidir
812htmldir
813infodir
814docdir
815oldincludedir
816includedir
817runstatedir
818localstatedir
819sharedstatedir
820sysconfdir
821datadir
822datarootdir
823libexecdir
824sbindir
825bindir
826program_transform_name
827prefix
828exec_prefix
829PACKAGE_URL
830PACKAGE_BUGREPORT
831PACKAGE_STRING
832PACKAGE_VERSION
833PACKAGE_TARNAME
834PACKAGE_NAME
835PATH_SEPARATOR
836SHELL
837am__quote'
838ac_subst_files=''
839ac_user_opts='
840enable_option_checking
841enable_silent_rules
842enable_dependency_tracking
843enable_selective_werror
844enable_strict_compilation
845enable_specs
846with_xmlto
847with_fop
848with_xsltproc
849enable_legacy
850'
851      ac_precious_vars='build_alias
852host_alias
853target_alias
854CC
855CFLAGS
856LDFLAGS
857LIBS
858CPPFLAGS
859CPP
860PKG_CONFIG
861PKG_CONFIG_PATH
862PKG_CONFIG_LIBDIR
863XMLTO
864FOP
865XSLTPROC
866PYTHON'
867
868
869# Initialize some variables set by options.
870ac_init_help=
871ac_init_version=false
872ac_unrecognized_opts=
873ac_unrecognized_sep=
874# The variables have the same names as the options, with
875# dashes changed to underlines.
876cache_file=/dev/null
877exec_prefix=NONE
878no_create=
879no_recursion=
880prefix=NONE
881program_prefix=NONE
882program_suffix=NONE
883program_transform_name=s,x,x,
884silent=
885site=
886srcdir=
887verbose=
888x_includes=NONE
889x_libraries=NONE
890
891# Installation directory options.
892# These are left unexpanded so users can "make install exec_prefix=/foo"
893# and all the variables that are supposed to be based on exec_prefix
894# by default will actually change.
895# Use braces instead of parens because sh, perl, etc. also accept them.
896# (The list follows the same order as the GNU Coding Standards.)
897bindir='${exec_prefix}/bin'
898sbindir='${exec_prefix}/sbin'
899libexecdir='${exec_prefix}/libexec'
900datarootdir='${prefix}/share'
901datadir='${datarootdir}'
902sysconfdir='${prefix}/etc'
903sharedstatedir='${prefix}/com'
904localstatedir='${prefix}/var'
905runstatedir='${localstatedir}/run'
906includedir='${prefix}/include'
907oldincludedir='/usr/include'
908docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
909infodir='${datarootdir}/info'
910htmldir='${docdir}'
911dvidir='${docdir}'
912pdfdir='${docdir}'
913psdir='${docdir}'
914libdir='${exec_prefix}/lib'
915localedir='${datarootdir}/locale'
916mandir='${datarootdir}/man'
917
918ac_prev=
919ac_dashdash=
920for ac_option
921do
922  # If the previous option needs an argument, assign it.
923  if test -n "$ac_prev"; then
924    eval $ac_prev=\$ac_option
925    ac_prev=
926    continue
927  fi
928
929  case $ac_option in
930  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
931  *=)   ac_optarg= ;;
932  *)    ac_optarg=yes ;;
933  esac
934
935  # Accept the important Cygnus configure options, so we can diagnose typos.
936
937  case $ac_dashdash$ac_option in
938  --)
939    ac_dashdash=yes ;;
940
941  -bindir | --bindir | --bindi | --bind | --bin | --bi)
942    ac_prev=bindir ;;
943  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
944    bindir=$ac_optarg ;;
945
946  -build | --build | --buil | --bui | --bu)
947    ac_prev=build_alias ;;
948  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
949    build_alias=$ac_optarg ;;
950
951  -cache-file | --cache-file | --cache-fil | --cache-fi \
952  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
953    ac_prev=cache_file ;;
954  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
955  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
956    cache_file=$ac_optarg ;;
957
958  --config-cache | -C)
959    cache_file=config.cache ;;
960
961  -datadir | --datadir | --datadi | --datad)
962    ac_prev=datadir ;;
963  -datadir=* | --datadir=* | --datadi=* | --datad=*)
964    datadir=$ac_optarg ;;
965
966  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
967  | --dataroo | --dataro | --datar)
968    ac_prev=datarootdir ;;
969  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
970  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
971    datarootdir=$ac_optarg ;;
972
973  -disable-* | --disable-*)
974    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
975    # Reject names that are not valid shell variable names.
976    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977      as_fn_error $? "invalid feature name: $ac_useropt"
978    ac_useropt_orig=$ac_useropt
979    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980    case $ac_user_opts in
981      *"
982"enable_$ac_useropt"
983"*) ;;
984      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
985	 ac_unrecognized_sep=', ';;
986    esac
987    eval enable_$ac_useropt=no ;;
988
989  -docdir | --docdir | --docdi | --doc | --do)
990    ac_prev=docdir ;;
991  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
992    docdir=$ac_optarg ;;
993
994  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
995    ac_prev=dvidir ;;
996  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
997    dvidir=$ac_optarg ;;
998
999  -enable-* | --enable-*)
1000    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1001    # Reject names that are not valid shell variable names.
1002    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003      as_fn_error $? "invalid feature name: $ac_useropt"
1004    ac_useropt_orig=$ac_useropt
1005    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006    case $ac_user_opts in
1007      *"
1008"enable_$ac_useropt"
1009"*) ;;
1010      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1011	 ac_unrecognized_sep=', ';;
1012    esac
1013    eval enable_$ac_useropt=\$ac_optarg ;;
1014
1015  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1016  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1017  | --exec | --exe | --ex)
1018    ac_prev=exec_prefix ;;
1019  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1020  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1021  | --exec=* | --exe=* | --ex=*)
1022    exec_prefix=$ac_optarg ;;
1023
1024  -gas | --gas | --ga | --g)
1025    # Obsolete; use --with-gas.
1026    with_gas=yes ;;
1027
1028  -help | --help | --hel | --he | -h)
1029    ac_init_help=long ;;
1030  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1031    ac_init_help=recursive ;;
1032  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1033    ac_init_help=short ;;
1034
1035  -host | --host | --hos | --ho)
1036    ac_prev=host_alias ;;
1037  -host=* | --host=* | --hos=* | --ho=*)
1038    host_alias=$ac_optarg ;;
1039
1040  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1041    ac_prev=htmldir ;;
1042  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1043  | --ht=*)
1044    htmldir=$ac_optarg ;;
1045
1046  -includedir | --includedir | --includedi | --included | --include \
1047  | --includ | --inclu | --incl | --inc)
1048    ac_prev=includedir ;;
1049  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1050  | --includ=* | --inclu=* | --incl=* | --inc=*)
1051    includedir=$ac_optarg ;;
1052
1053  -infodir | --infodir | --infodi | --infod | --info | --inf)
1054    ac_prev=infodir ;;
1055  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1056    infodir=$ac_optarg ;;
1057
1058  -libdir | --libdir | --libdi | --libd)
1059    ac_prev=libdir ;;
1060  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1061    libdir=$ac_optarg ;;
1062
1063  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1064  | --libexe | --libex | --libe)
1065    ac_prev=libexecdir ;;
1066  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1067  | --libexe=* | --libex=* | --libe=*)
1068    libexecdir=$ac_optarg ;;
1069
1070  -localedir | --localedir | --localedi | --localed | --locale)
1071    ac_prev=localedir ;;
1072  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1073    localedir=$ac_optarg ;;
1074
1075  -localstatedir | --localstatedir | --localstatedi | --localstated \
1076  | --localstate | --localstat | --localsta | --localst | --locals)
1077    ac_prev=localstatedir ;;
1078  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1079  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1080    localstatedir=$ac_optarg ;;
1081
1082  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1083    ac_prev=mandir ;;
1084  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1085    mandir=$ac_optarg ;;
1086
1087  -nfp | --nfp | --nf)
1088    # Obsolete; use --without-fp.
1089    with_fp=no ;;
1090
1091  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1092  | --no-cr | --no-c | -n)
1093    no_create=yes ;;
1094
1095  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1096  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1097    no_recursion=yes ;;
1098
1099  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1100  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1101  | --oldin | --oldi | --old | --ol | --o)
1102    ac_prev=oldincludedir ;;
1103  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1104  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1105  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1106    oldincludedir=$ac_optarg ;;
1107
1108  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1109    ac_prev=prefix ;;
1110  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1111    prefix=$ac_optarg ;;
1112
1113  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1114  | --program-pre | --program-pr | --program-p)
1115    ac_prev=program_prefix ;;
1116  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1117  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1118    program_prefix=$ac_optarg ;;
1119
1120  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1121  | --program-suf | --program-su | --program-s)
1122    ac_prev=program_suffix ;;
1123  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1124  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1125    program_suffix=$ac_optarg ;;
1126
1127  -program-transform-name | --program-transform-name \
1128  | --program-transform-nam | --program-transform-na \
1129  | --program-transform-n | --program-transform- \
1130  | --program-transform | --program-transfor \
1131  | --program-transfo | --program-transf \
1132  | --program-trans | --program-tran \
1133  | --progr-tra | --program-tr | --program-t)
1134    ac_prev=program_transform_name ;;
1135  -program-transform-name=* | --program-transform-name=* \
1136  | --program-transform-nam=* | --program-transform-na=* \
1137  | --program-transform-n=* | --program-transform-=* \
1138  | --program-transform=* | --program-transfor=* \
1139  | --program-transfo=* | --program-transf=* \
1140  | --program-trans=* | --program-tran=* \
1141  | --progr-tra=* | --program-tr=* | --program-t=*)
1142    program_transform_name=$ac_optarg ;;
1143
1144  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1145    ac_prev=pdfdir ;;
1146  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1147    pdfdir=$ac_optarg ;;
1148
1149  -psdir | --psdir | --psdi | --psd | --ps)
1150    ac_prev=psdir ;;
1151  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1152    psdir=$ac_optarg ;;
1153
1154  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1155  | -silent | --silent | --silen | --sile | --sil)
1156    silent=yes ;;
1157
1158  -runstatedir | --runstatedir | --runstatedi | --runstated \
1159  | --runstate | --runstat | --runsta | --runst | --runs \
1160  | --run | --ru | --r)
1161    ac_prev=runstatedir ;;
1162  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1163  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1164  | --run=* | --ru=* | --r=*)
1165    runstatedir=$ac_optarg ;;
1166
1167  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168    ac_prev=sbindir ;;
1169  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170  | --sbi=* | --sb=*)
1171    sbindir=$ac_optarg ;;
1172
1173  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175  | --sharedst | --shareds | --shared | --share | --shar \
1176  | --sha | --sh)
1177    ac_prev=sharedstatedir ;;
1178  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181  | --sha=* | --sh=*)
1182    sharedstatedir=$ac_optarg ;;
1183
1184  -site | --site | --sit)
1185    ac_prev=site ;;
1186  -site=* | --site=* | --sit=*)
1187    site=$ac_optarg ;;
1188
1189  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190    ac_prev=srcdir ;;
1191  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192    srcdir=$ac_optarg ;;
1193
1194  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195  | --syscon | --sysco | --sysc | --sys | --sy)
1196    ac_prev=sysconfdir ;;
1197  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199    sysconfdir=$ac_optarg ;;
1200
1201  -target | --target | --targe | --targ | --tar | --ta | --t)
1202    ac_prev=target_alias ;;
1203  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204    target_alias=$ac_optarg ;;
1205
1206  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207    verbose=yes ;;
1208
1209  -version | --version | --versio | --versi | --vers | -V)
1210    ac_init_version=: ;;
1211
1212  -with-* | --with-*)
1213    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214    # Reject names that are not valid shell variable names.
1215    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216      as_fn_error $? "invalid package name: $ac_useropt"
1217    ac_useropt_orig=$ac_useropt
1218    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219    case $ac_user_opts in
1220      *"
1221"with_$ac_useropt"
1222"*) ;;
1223      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1224	 ac_unrecognized_sep=', ';;
1225    esac
1226    eval with_$ac_useropt=\$ac_optarg ;;
1227
1228  -without-* | --without-*)
1229    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230    # Reject names that are not valid shell variable names.
1231    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232      as_fn_error $? "invalid package name: $ac_useropt"
1233    ac_useropt_orig=$ac_useropt
1234    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235    case $ac_user_opts in
1236      *"
1237"with_$ac_useropt"
1238"*) ;;
1239      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1240	 ac_unrecognized_sep=', ';;
1241    esac
1242    eval with_$ac_useropt=no ;;
1243
1244  --x)
1245    # Obsolete; use --with-x.
1246    with_x=yes ;;
1247
1248  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249  | --x-incl | --x-inc | --x-in | --x-i)
1250    ac_prev=x_includes ;;
1251  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1253    x_includes=$ac_optarg ;;
1254
1255  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257    ac_prev=x_libraries ;;
1258  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1260    x_libraries=$ac_optarg ;;
1261
1262  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1263Try \`$0 --help' for more information"
1264    ;;
1265
1266  *=*)
1267    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1268    # Reject names that are not valid shell variable names.
1269    case $ac_envvar in #(
1270      '' | [0-9]* | *[!_$as_cr_alnum]* )
1271      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1272    esac
1273    eval $ac_envvar=\$ac_optarg
1274    export $ac_envvar ;;
1275
1276  *)
1277    # FIXME: should be removed in autoconf 3.0.
1278    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1282    ;;
1283
1284  esac
1285done
1286
1287if test -n "$ac_prev"; then
1288  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1289  as_fn_error $? "missing argument to $ac_option"
1290fi
1291
1292if test -n "$ac_unrecognized_opts"; then
1293  case $enable_option_checking in
1294    no) ;;
1295    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1296    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1297  esac
1298fi
1299
1300# Check all directory arguments for consistency.
1301for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302		datadir sysconfdir sharedstatedir localstatedir includedir \
1303		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304		libdir localedir mandir runstatedir
1305do
1306  eval ac_val=\$$ac_var
1307  # Remove trailing slashes.
1308  case $ac_val in
1309    */ )
1310      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1311      eval $ac_var=\$ac_val;;
1312  esac
1313  # Be sure to have absolute directory names.
1314  case $ac_val in
1315    [\\/$]* | ?:[\\/]* )  continue;;
1316    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1317  esac
1318  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1319done
1320
1321# There might be people who depend on the old broken behavior: `$host'
1322# used to hold the argument of --host etc.
1323# FIXME: To remove some day.
1324build=$build_alias
1325host=$host_alias
1326target=$target_alias
1327
1328# FIXME: To remove some day.
1329if test "x$host_alias" != x; then
1330  if test "x$build_alias" = x; then
1331    cross_compiling=maybe
1332  elif test "x$build_alias" != "x$host_alias"; then
1333    cross_compiling=yes
1334  fi
1335fi
1336
1337ac_tool_prefix=
1338test -n "$host_alias" && ac_tool_prefix=$host_alias-
1339
1340test "$silent" = yes && exec 6>/dev/null
1341
1342
1343ac_pwd=`pwd` && test -n "$ac_pwd" &&
1344ac_ls_di=`ls -di .` &&
1345ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1346  as_fn_error $? "working directory cannot be determined"
1347test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1348  as_fn_error $? "pwd does not report name of working directory"
1349
1350
1351# Find the source files, if location was not specified.
1352if test -z "$srcdir"; then
1353  ac_srcdir_defaulted=yes
1354  # Try the directory containing this script, then the parent directory.
1355  ac_confdir=`$as_dirname -- "$as_myself" ||
1356$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1357	 X"$as_myself" : 'X\(//\)[^/]' \| \
1358	 X"$as_myself" : 'X\(//\)$' \| \
1359	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1360$as_echo X"$as_myself" |
1361    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1362	    s//\1/
1363	    q
1364	  }
1365	  /^X\(\/\/\)[^/].*/{
1366	    s//\1/
1367	    q
1368	  }
1369	  /^X\(\/\/\)$/{
1370	    s//\1/
1371	    q
1372	  }
1373	  /^X\(\/\).*/{
1374	    s//\1/
1375	    q
1376	  }
1377	  s/.*/./; q'`
1378  srcdir=$ac_confdir
1379  if test ! -r "$srcdir/$ac_unique_file"; then
1380    srcdir=..
1381  fi
1382else
1383  ac_srcdir_defaulted=no
1384fi
1385if test ! -r "$srcdir/$ac_unique_file"; then
1386  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1387  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1388fi
1389ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390ac_abs_confdir=`(
1391	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1392	pwd)`
1393# When building in place, set srcdir=.
1394if test "$ac_abs_confdir" = "$ac_pwd"; then
1395  srcdir=.
1396fi
1397# Remove unnecessary trailing slashes from srcdir.
1398# Double slashes in file names in object file debugging info
1399# mess up M-x gdb in Emacs.
1400case $srcdir in
1401*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402esac
1403for ac_var in $ac_precious_vars; do
1404  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1405  eval ac_env_${ac_var}_value=\$${ac_var}
1406  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1407  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1408done
1409
1410#
1411# Report the --help message.
1412#
1413if test "$ac_init_help" = "long"; then
1414  # Omit some internal or obsolete options to make the list less imposing.
1415  # This message is too long to be a string in the A/UX 3.1 sh.
1416  cat <<_ACEOF
1417\`configure' configures xorgproto 2021.5 to adapt to many kinds of systems.
1418
1419Usage: $0 [OPTION]... [VAR=VALUE]...
1420
1421To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422VAR=VALUE.  See below for descriptions of some of the useful variables.
1423
1424Defaults for the options are specified in brackets.
1425
1426Configuration:
1427  -h, --help              display this help and exit
1428      --help=short        display options specific to this package
1429      --help=recursive    display the short help of all the included packages
1430  -V, --version           display version information and exit
1431  -q, --quiet, --silent   do not print \`checking ...' messages
1432      --cache-file=FILE   cache test results in FILE [disabled]
1433  -C, --config-cache      alias for \`--cache-file=config.cache'
1434  -n, --no-create         do not create output files
1435      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1436
1437Installation directories:
1438  --prefix=PREFIX         install architecture-independent files in PREFIX
1439                          [$ac_default_prefix]
1440  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1441                          [PREFIX]
1442
1443By default, \`make install' will install all the files in
1444\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1445an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446for instance \`--prefix=\$HOME'.
1447
1448For better control, use the options below.
1449
1450Fine tuning of the installation directories:
1451  --bindir=DIR            user executables [EPREFIX/bin]
1452  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1453  --libexecdir=DIR        program executables [EPREFIX/libexec]
1454  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1455  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1456  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1457  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1458  --libdir=DIR            object code libraries [EPREFIX/lib]
1459  --includedir=DIR        C header files [PREFIX/include]
1460  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1461  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1462  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1463  --infodir=DIR           info documentation [DATAROOTDIR/info]
1464  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1465  --mandir=DIR            man documentation [DATAROOTDIR/man]
1466  --docdir=DIR            documentation root [DATAROOTDIR/doc/xorgproto]
1467  --htmldir=DIR           html documentation [DOCDIR]
1468  --dvidir=DIR            dvi documentation [DOCDIR]
1469  --pdfdir=DIR            pdf documentation [DOCDIR]
1470  --psdir=DIR             ps documentation [DOCDIR]
1471_ACEOF
1472
1473  cat <<\_ACEOF
1474
1475Program names:
1476  --program-prefix=PREFIX            prepend PREFIX to installed program names
1477  --program-suffix=SUFFIX            append SUFFIX to installed program names
1478  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1479
1480System types:
1481  --build=BUILD     configure for building on BUILD [guessed]
1482  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1483_ACEOF
1484fi
1485
1486if test -n "$ac_init_help"; then
1487  case $ac_init_help in
1488     short | recursive ) echo "Configuration of xorgproto 2021.5:";;
1489   esac
1490  cat <<\_ACEOF
1491
1492Optional Features:
1493  --disable-option-checking  ignore unrecognized --enable/--with options
1494  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1495  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1496  --enable-silent-rules   less verbose build output (undo: "make V=1")
1497  --disable-silent-rules  verbose build output (undo: "make V=0")
1498  --enable-dependency-tracking
1499                          do not reject slow dependency extractors
1500  --disable-dependency-tracking
1501                          speeds up one-time build
1502  --disable-selective-werror
1503                          Turn off selective compiler errors. (default:
1504                          enabled)
1505  --enable-strict-compilation
1506                          Enable all warnings from compiler and make them
1507                          errors (default: disabled)
1508  --enable-specs          Enable building the specs (default: yes)
1509  --enable-legacy         Install legacy protocol headers (default: false)
1510
1511Optional Packages:
1512  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1513  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1514  --with-xmlto            Use xmlto to regenerate documentation (default:
1515                          auto)
1516  --with-fop              Use fop to regenerate documentation (default: auto)
1517  --with-xsltproc         Use xsltproc for the transformation of XML documents
1518                          (default: auto)
1519
1520Some influential environment variables:
1521  CC          C compiler command
1522  CFLAGS      C compiler flags
1523  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1524              nonstandard directory <lib dir>
1525  LIBS        libraries to pass to the linker, e.g. -l<library>
1526  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1527              you have headers in a nonstandard directory <include dir>
1528  CPP         C preprocessor
1529  PKG_CONFIG  path to pkg-config utility
1530  PKG_CONFIG_PATH
1531              directories to add to pkg-config's search path
1532  PKG_CONFIG_LIBDIR
1533              path overriding pkg-config's built-in search path
1534  XMLTO       Path to xmlto command
1535  FOP         Path to fop command
1536  XSLTPROC    Path to xsltproc command
1537  PYTHON      the Python interpreter
1538
1539Use these variables to override the choices made by `configure' or to help
1540it to find libraries and programs with nonstandard names/locations.
1541
1542Report bugs to <https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues>.
1543_ACEOF
1544ac_status=$?
1545fi
1546
1547if test "$ac_init_help" = "recursive"; then
1548  # If there are subdirs, report their specific --help.
1549  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1550    test -d "$ac_dir" ||
1551      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1552      continue
1553    ac_builddir=.
1554
1555case "$ac_dir" in
1556.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557*)
1558  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1559  # A ".." for each directory in $ac_dir_suffix.
1560  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1561  case $ac_top_builddir_sub in
1562  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1564  esac ;;
1565esac
1566ac_abs_top_builddir=$ac_pwd
1567ac_abs_builddir=$ac_pwd$ac_dir_suffix
1568# for backward compatibility:
1569ac_top_builddir=$ac_top_build_prefix
1570
1571case $srcdir in
1572  .)  # We are building in place.
1573    ac_srcdir=.
1574    ac_top_srcdir=$ac_top_builddir_sub
1575    ac_abs_top_srcdir=$ac_pwd ;;
1576  [\\/]* | ?:[\\/]* )  # Absolute name.
1577    ac_srcdir=$srcdir$ac_dir_suffix;
1578    ac_top_srcdir=$srcdir
1579    ac_abs_top_srcdir=$srcdir ;;
1580  *) # Relative name.
1581    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1582    ac_top_srcdir=$ac_top_build_prefix$srcdir
1583    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1584esac
1585ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1586
1587    cd "$ac_dir" || { ac_status=$?; continue; }
1588    # Check for guested configure.
1589    if test -f "$ac_srcdir/configure.gnu"; then
1590      echo &&
1591      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1592    elif test -f "$ac_srcdir/configure"; then
1593      echo &&
1594      $SHELL "$ac_srcdir/configure" --help=recursive
1595    else
1596      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1597    fi || ac_status=$?
1598    cd "$ac_pwd" || { ac_status=$?; break; }
1599  done
1600fi
1601
1602test -n "$ac_init_help" && exit $ac_status
1603if $ac_init_version; then
1604  cat <<\_ACEOF
1605xorgproto configure 2021.5
1606generated by GNU Autoconf 2.69
1607
1608Copyright (C) 2012 Free Software Foundation, Inc.
1609This configure script is free software; the Free Software Foundation
1610gives unlimited permission to copy, distribute and modify it.
1611_ACEOF
1612  exit
1613fi
1614
1615## ------------------------ ##
1616## Autoconf initialization. ##
1617## ------------------------ ##
1618
1619# ac_fn_c_try_compile LINENO
1620# --------------------------
1621# Try to compile conftest.$ac_ext, and return whether this succeeded.
1622ac_fn_c_try_compile ()
1623{
1624  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625  rm -f conftest.$ac_objext
1626  if { { ac_try="$ac_compile"
1627case "(($ac_try" in
1628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629  *) ac_try_echo=$ac_try;;
1630esac
1631eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632$as_echo "$ac_try_echo"; } >&5
1633  (eval "$ac_compile") 2>conftest.err
1634  ac_status=$?
1635  if test -s conftest.err; then
1636    grep -v '^ *+' conftest.err >conftest.er1
1637    cat conftest.er1 >&5
1638    mv -f conftest.er1 conftest.err
1639  fi
1640  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641  test $ac_status = 0; } && {
1642	 test -z "$ac_c_werror_flag" ||
1643	 test ! -s conftest.err
1644       } && test -s conftest.$ac_objext; then :
1645  ac_retval=0
1646else
1647  $as_echo "$as_me: failed program was:" >&5
1648sed 's/^/| /' conftest.$ac_ext >&5
1649
1650	ac_retval=1
1651fi
1652  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653  as_fn_set_status $ac_retval
1654
1655} # ac_fn_c_try_compile
1656
1657# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1658# ---------------------------------------------
1659# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1660# accordingly.
1661ac_fn_c_check_decl ()
1662{
1663  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664  as_decl_name=`echo $2|sed 's/ *(.*//'`
1665  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1666  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1667$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1668if eval \${$3+:} false; then :
1669  $as_echo_n "(cached) " >&6
1670else
1671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672/* end confdefs.h.  */
1673$4
1674int
1675main ()
1676{
1677#ifndef $as_decl_name
1678#ifdef __cplusplus
1679  (void) $as_decl_use;
1680#else
1681  (void) $as_decl_name;
1682#endif
1683#endif
1684
1685  ;
1686  return 0;
1687}
1688_ACEOF
1689if ac_fn_c_try_compile "$LINENO"; then :
1690  eval "$3=yes"
1691else
1692  eval "$3=no"
1693fi
1694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1695fi
1696eval ac_res=\$$3
1697	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1698$as_echo "$ac_res" >&6; }
1699  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700
1701} # ac_fn_c_check_decl
1702
1703# ac_fn_c_try_cpp LINENO
1704# ----------------------
1705# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1706ac_fn_c_try_cpp ()
1707{
1708  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709  if { { ac_try="$ac_cpp conftest.$ac_ext"
1710case "(($ac_try" in
1711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712  *) ac_try_echo=$ac_try;;
1713esac
1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715$as_echo "$ac_try_echo"; } >&5
1716  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1717  ac_status=$?
1718  if test -s conftest.err; then
1719    grep -v '^ *+' conftest.err >conftest.er1
1720    cat conftest.er1 >&5
1721    mv -f conftest.er1 conftest.err
1722  fi
1723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724  test $ac_status = 0; } > conftest.i && {
1725	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1726	 test ! -s conftest.err
1727       }; then :
1728  ac_retval=0
1729else
1730  $as_echo "$as_me: failed program was:" >&5
1731sed 's/^/| /' conftest.$ac_ext >&5
1732
1733    ac_retval=1
1734fi
1735  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736  as_fn_set_status $ac_retval
1737
1738} # ac_fn_c_try_cpp
1739
1740# ac_fn_c_try_run LINENO
1741# ----------------------
1742# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1743# that executables *can* be run.
1744ac_fn_c_try_run ()
1745{
1746  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747  if { { ac_try="$ac_link"
1748case "(($ac_try" in
1749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750  *) ac_try_echo=$ac_try;;
1751esac
1752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753$as_echo "$ac_try_echo"; } >&5
1754  (eval "$ac_link") 2>&5
1755  ac_status=$?
1756  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1758  { { case "(($ac_try" in
1759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760  *) ac_try_echo=$ac_try;;
1761esac
1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763$as_echo "$ac_try_echo"; } >&5
1764  (eval "$ac_try") 2>&5
1765  ac_status=$?
1766  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767  test $ac_status = 0; }; }; then :
1768  ac_retval=0
1769else
1770  $as_echo "$as_me: program exited with status $ac_status" >&5
1771       $as_echo "$as_me: failed program was:" >&5
1772sed 's/^/| /' conftest.$ac_ext >&5
1773
1774       ac_retval=$ac_status
1775fi
1776  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1777  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778  as_fn_set_status $ac_retval
1779
1780} # ac_fn_c_try_run
1781
1782# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1783# -------------------------------------------------------
1784# Tests whether HEADER exists and can be compiled using the include files in
1785# INCLUDES, setting the cache variable VAR accordingly.
1786ac_fn_c_check_header_compile ()
1787{
1788  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1790$as_echo_n "checking for $2... " >&6; }
1791if eval \${$3+:} false; then :
1792  $as_echo_n "(cached) " >&6
1793else
1794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795/* end confdefs.h.  */
1796$4
1797#include <$2>
1798_ACEOF
1799if ac_fn_c_try_compile "$LINENO"; then :
1800  eval "$3=yes"
1801else
1802  eval "$3=no"
1803fi
1804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805fi
1806eval ac_res=\$$3
1807	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808$as_echo "$ac_res" >&6; }
1809  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810
1811} # ac_fn_c_check_header_compile
1812
1813# ac_fn_c_try_link LINENO
1814# -----------------------
1815# Try to link conftest.$ac_ext, and return whether this succeeded.
1816ac_fn_c_try_link ()
1817{
1818  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819  rm -f conftest.$ac_objext conftest$ac_exeext
1820  if { { ac_try="$ac_link"
1821case "(($ac_try" in
1822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823  *) ac_try_echo=$ac_try;;
1824esac
1825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826$as_echo "$ac_try_echo"; } >&5
1827  (eval "$ac_link") 2>conftest.err
1828  ac_status=$?
1829  if test -s conftest.err; then
1830    grep -v '^ *+' conftest.err >conftest.er1
1831    cat conftest.er1 >&5
1832    mv -f conftest.er1 conftest.err
1833  fi
1834  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835  test $ac_status = 0; } && {
1836	 test -z "$ac_c_werror_flag" ||
1837	 test ! -s conftest.err
1838       } && test -s conftest$ac_exeext && {
1839	 test "$cross_compiling" = yes ||
1840	 test -x conftest$ac_exeext
1841       }; then :
1842  ac_retval=0
1843else
1844  $as_echo "$as_me: failed program was:" >&5
1845sed 's/^/| /' conftest.$ac_ext >&5
1846
1847	ac_retval=1
1848fi
1849  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1850  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1851  # interfere with the next link command; also delete a directory that is
1852  # left behind by Apple's compiler.  We do this before executing the actions.
1853  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1854  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855  as_fn_set_status $ac_retval
1856
1857} # ac_fn_c_try_link
1858
1859# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1860# -------------------------------------------------------
1861# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1862# the include files in INCLUDES and setting the cache variable VAR
1863# accordingly.
1864ac_fn_c_check_header_mongrel ()
1865{
1866  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867  if eval \${$3+:} false; then :
1868  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869$as_echo_n "checking for $2... " >&6; }
1870if eval \${$3+:} false; then :
1871  $as_echo_n "(cached) " >&6
1872fi
1873eval ac_res=\$$3
1874	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875$as_echo "$ac_res" >&6; }
1876else
1877  # Is the header compilable?
1878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1879$as_echo_n "checking $2 usability... " >&6; }
1880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881/* end confdefs.h.  */
1882$4
1883#include <$2>
1884_ACEOF
1885if ac_fn_c_try_compile "$LINENO"; then :
1886  ac_header_compiler=yes
1887else
1888  ac_header_compiler=no
1889fi
1890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1892$as_echo "$ac_header_compiler" >&6; }
1893
1894# Is the header present?
1895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1896$as_echo_n "checking $2 presence... " >&6; }
1897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898/* end confdefs.h.  */
1899#include <$2>
1900_ACEOF
1901if ac_fn_c_try_cpp "$LINENO"; then :
1902  ac_header_preproc=yes
1903else
1904  ac_header_preproc=no
1905fi
1906rm -f conftest.err conftest.i conftest.$ac_ext
1907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1908$as_echo "$ac_header_preproc" >&6; }
1909
1910# So?  What about this header?
1911case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1912  yes:no: )
1913    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1914$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1915    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1916$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1917    ;;
1918  no:yes:* )
1919    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1920$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1921    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1922$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1923    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1924$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1925    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1926$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1927    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1928$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1929( $as_echo "## ------------------------------------------------------------------------- ##
1930## Report this to https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues ##
1931## ------------------------------------------------------------------------- ##"
1932     ) | sed "s/^/$as_me: WARNING:     /" >&2
1933    ;;
1934esac
1935  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936$as_echo_n "checking for $2... " >&6; }
1937if eval \${$3+:} false; then :
1938  $as_echo_n "(cached) " >&6
1939else
1940  eval "$3=\$ac_header_compiler"
1941fi
1942eval ac_res=\$$3
1943	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944$as_echo "$ac_res" >&6; }
1945fi
1946  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947
1948} # ac_fn_c_check_header_mongrel
1949
1950# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1951# ----------------------------------------------------
1952# Tries to find if the field MEMBER exists in type AGGR, after including
1953# INCLUDES, setting cache variable VAR accordingly.
1954ac_fn_c_check_member ()
1955{
1956  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1958$as_echo_n "checking for $2.$3... " >&6; }
1959if eval \${$4+:} false; then :
1960  $as_echo_n "(cached) " >&6
1961else
1962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963/* end confdefs.h.  */
1964$5
1965int
1966main ()
1967{
1968static $2 ac_aggr;
1969if (ac_aggr.$3)
1970return 0;
1971  ;
1972  return 0;
1973}
1974_ACEOF
1975if ac_fn_c_try_compile "$LINENO"; then :
1976  eval "$4=yes"
1977else
1978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979/* end confdefs.h.  */
1980$5
1981int
1982main ()
1983{
1984static $2 ac_aggr;
1985if (sizeof ac_aggr.$3)
1986return 0;
1987  ;
1988  return 0;
1989}
1990_ACEOF
1991if ac_fn_c_try_compile "$LINENO"; then :
1992  eval "$4=yes"
1993else
1994  eval "$4=no"
1995fi
1996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997fi
1998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999fi
2000eval ac_res=\$$4
2001	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002$as_echo "$ac_res" >&6; }
2003  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004
2005} # ac_fn_c_check_member
2006cat >config.log <<_ACEOF
2007This file contains any messages produced by compilers while
2008running configure, to aid debugging if configure makes a mistake.
2009
2010It was created by xorgproto $as_me 2021.5, which was
2011generated by GNU Autoconf 2.69.  Invocation command line was
2012
2013  $ $0 $@
2014
2015_ACEOF
2016exec 5>>config.log
2017{
2018cat <<_ASUNAME
2019## --------- ##
2020## Platform. ##
2021## --------- ##
2022
2023hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2024uname -m = `(uname -m) 2>/dev/null || echo unknown`
2025uname -r = `(uname -r) 2>/dev/null || echo unknown`
2026uname -s = `(uname -s) 2>/dev/null || echo unknown`
2027uname -v = `(uname -v) 2>/dev/null || echo unknown`
2028
2029/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2030/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2031
2032/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2033/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2034/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2035/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2036/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2037/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2038/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2039
2040_ASUNAME
2041
2042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043for as_dir in $PATH
2044do
2045  IFS=$as_save_IFS
2046  test -z "$as_dir" && as_dir=.
2047    $as_echo "PATH: $as_dir"
2048  done
2049IFS=$as_save_IFS
2050
2051} >&5
2052
2053cat >&5 <<_ACEOF
2054
2055
2056## ----------- ##
2057## Core tests. ##
2058## ----------- ##
2059
2060_ACEOF
2061
2062
2063# Keep a trace of the command line.
2064# Strip out --no-create and --no-recursion so they do not pile up.
2065# Strip out --silent because we don't want to record it for future runs.
2066# Also quote any args containing shell meta-characters.
2067# Make two passes to allow for proper duplicate-argument suppression.
2068ac_configure_args=
2069ac_configure_args0=
2070ac_configure_args1=
2071ac_must_keep_next=false
2072for ac_pass in 1 2
2073do
2074  for ac_arg
2075  do
2076    case $ac_arg in
2077    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2078    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2079    | -silent | --silent | --silen | --sile | --sil)
2080      continue ;;
2081    *\'*)
2082      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2083    esac
2084    case $ac_pass in
2085    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2086    2)
2087      as_fn_append ac_configure_args1 " '$ac_arg'"
2088      if test $ac_must_keep_next = true; then
2089	ac_must_keep_next=false # Got value, back to normal.
2090      else
2091	case $ac_arg in
2092	  *=* | --config-cache | -C | -disable-* | --disable-* \
2093	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2094	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2095	  | -with-* | --with-* | -without-* | --without-* | --x)
2096	    case "$ac_configure_args0 " in
2097	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2098	    esac
2099	    ;;
2100	  -* ) ac_must_keep_next=true ;;
2101	esac
2102      fi
2103      as_fn_append ac_configure_args " '$ac_arg'"
2104      ;;
2105    esac
2106  done
2107done
2108{ ac_configure_args0=; unset ac_configure_args0;}
2109{ ac_configure_args1=; unset ac_configure_args1;}
2110
2111# When interrupted or exit'd, cleanup temporary files, and complete
2112# config.log.  We remove comments because anyway the quotes in there
2113# would cause problems or look ugly.
2114# WARNING: Use '\'' to represent an apostrophe within the trap.
2115# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2116trap 'exit_status=$?
2117  # Save into config.log some information that might help in debugging.
2118  {
2119    echo
2120
2121    $as_echo "## ---------------- ##
2122## Cache variables. ##
2123## ---------------- ##"
2124    echo
2125    # The following way of writing the cache mishandles newlines in values,
2126(
2127  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2128    eval ac_val=\$$ac_var
2129    case $ac_val in #(
2130    *${as_nl}*)
2131      case $ac_var in #(
2132      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2133$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2134      esac
2135      case $ac_var in #(
2136      _ | IFS | as_nl) ;; #(
2137      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2138      *) { eval $ac_var=; unset $ac_var;} ;;
2139      esac ;;
2140    esac
2141  done
2142  (set) 2>&1 |
2143    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2144    *${as_nl}ac_space=\ *)
2145      sed -n \
2146	"s/'\''/'\''\\\\'\'''\''/g;
2147	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2148      ;; #(
2149    *)
2150      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2151      ;;
2152    esac |
2153    sort
2154)
2155    echo
2156
2157    $as_echo "## ----------------- ##
2158## Output variables. ##
2159## ----------------- ##"
2160    echo
2161    for ac_var in $ac_subst_vars
2162    do
2163      eval ac_val=\$$ac_var
2164      case $ac_val in
2165      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2166      esac
2167      $as_echo "$ac_var='\''$ac_val'\''"
2168    done | sort
2169    echo
2170
2171    if test -n "$ac_subst_files"; then
2172      $as_echo "## ------------------- ##
2173## File substitutions. ##
2174## ------------------- ##"
2175      echo
2176      for ac_var in $ac_subst_files
2177      do
2178	eval ac_val=\$$ac_var
2179	case $ac_val in
2180	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2181	esac
2182	$as_echo "$ac_var='\''$ac_val'\''"
2183      done | sort
2184      echo
2185    fi
2186
2187    if test -s confdefs.h; then
2188      $as_echo "## ----------- ##
2189## confdefs.h. ##
2190## ----------- ##"
2191      echo
2192      cat confdefs.h
2193      echo
2194    fi
2195    test "$ac_signal" != 0 &&
2196      $as_echo "$as_me: caught signal $ac_signal"
2197    $as_echo "$as_me: exit $exit_status"
2198  } >&5
2199  rm -f core *.core core.conftest.* &&
2200    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2201    exit $exit_status
2202' 0
2203for ac_signal in 1 2 13 15; do
2204  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2205done
2206ac_signal=0
2207
2208# confdefs.h avoids OS command line length limits that DEFS can exceed.
2209rm -f -r conftest* confdefs.h
2210
2211$as_echo "/* confdefs.h */" > confdefs.h
2212
2213# Predefined preprocessor variables.
2214
2215cat >>confdefs.h <<_ACEOF
2216#define PACKAGE_NAME "$PACKAGE_NAME"
2217_ACEOF
2218
2219cat >>confdefs.h <<_ACEOF
2220#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2221_ACEOF
2222
2223cat >>confdefs.h <<_ACEOF
2224#define PACKAGE_VERSION "$PACKAGE_VERSION"
2225_ACEOF
2226
2227cat >>confdefs.h <<_ACEOF
2228#define PACKAGE_STRING "$PACKAGE_STRING"
2229_ACEOF
2230
2231cat >>confdefs.h <<_ACEOF
2232#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2233_ACEOF
2234
2235cat >>confdefs.h <<_ACEOF
2236#define PACKAGE_URL "$PACKAGE_URL"
2237_ACEOF
2238
2239
2240# Let the site file select an alternate cache file if it wants to.
2241# Prefer an explicitly selected file to automatically selected ones.
2242ac_site_file1=NONE
2243ac_site_file2=NONE
2244if test -n "$CONFIG_SITE"; then
2245  # We do not want a PATH search for config.site.
2246  case $CONFIG_SITE in #((
2247    -*)  ac_site_file1=./$CONFIG_SITE;;
2248    */*) ac_site_file1=$CONFIG_SITE;;
2249    *)   ac_site_file1=./$CONFIG_SITE;;
2250  esac
2251elif test "x$prefix" != xNONE; then
2252  ac_site_file1=$prefix/share/config.site
2253  ac_site_file2=$prefix/etc/config.site
2254else
2255  ac_site_file1=$ac_default_prefix/share/config.site
2256  ac_site_file2=$ac_default_prefix/etc/config.site
2257fi
2258for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2259do
2260  test "x$ac_site_file" = xNONE && continue
2261  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2262    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2263$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2264    sed 's/^/| /' "$ac_site_file" >&5
2265    . "$ac_site_file" \
2266      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2268as_fn_error $? "failed to load site script $ac_site_file
2269See \`config.log' for more details" "$LINENO" 5; }
2270  fi
2271done
2272
2273if test -r "$cache_file"; then
2274  # Some versions of bash will fail to source /dev/null (special files
2275  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2276  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2277    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2278$as_echo "$as_me: loading cache $cache_file" >&6;}
2279    case $cache_file in
2280      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2281      *)                      . "./$cache_file";;
2282    esac
2283  fi
2284else
2285  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2286$as_echo "$as_me: creating cache $cache_file" >&6;}
2287  >$cache_file
2288fi
2289
2290# Check that the precious variables saved in the cache have kept the same
2291# value.
2292ac_cache_corrupted=false
2293for ac_var in $ac_precious_vars; do
2294  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2295  eval ac_new_set=\$ac_env_${ac_var}_set
2296  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2297  eval ac_new_val=\$ac_env_${ac_var}_value
2298  case $ac_old_set,$ac_new_set in
2299    set,)
2300      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2301$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2302      ac_cache_corrupted=: ;;
2303    ,set)
2304      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2305$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2306      ac_cache_corrupted=: ;;
2307    ,);;
2308    *)
2309      if test "x$ac_old_val" != "x$ac_new_val"; then
2310	# differences in whitespace do not lead to failure.
2311	ac_old_val_w=`echo x $ac_old_val`
2312	ac_new_val_w=`echo x $ac_new_val`
2313	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2314	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2315$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2316	  ac_cache_corrupted=:
2317	else
2318	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2319$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2320	  eval $ac_var=\$ac_old_val
2321	fi
2322	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2323$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2324	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2325$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2326      fi;;
2327  esac
2328  # Pass precious variables to config.status.
2329  if test "$ac_new_set" = set; then
2330    case $ac_new_val in
2331    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2332    *) ac_arg=$ac_var=$ac_new_val ;;
2333    esac
2334    case " $ac_configure_args " in
2335      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2336      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2337    esac
2338  fi
2339done
2340if $ac_cache_corrupted; then
2341  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2343  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2344$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2345  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2346fi
2347## -------------------- ##
2348## Main body of script. ##
2349## -------------------- ##
2350
2351ac_ext=c
2352ac_cpp='$CPP $CPPFLAGS'
2353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2355ac_compiler_gnu=$ac_cv_c_compiler_gnu
2356
2357
2358am__api_version='1.16'
2359
2360ac_aux_dir=
2361for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2362  if test -f "$ac_dir/install-sh"; then
2363    ac_aux_dir=$ac_dir
2364    ac_install_sh="$ac_aux_dir/install-sh -c"
2365    break
2366  elif test -f "$ac_dir/install.sh"; then
2367    ac_aux_dir=$ac_dir
2368    ac_install_sh="$ac_aux_dir/install.sh -c"
2369    break
2370  elif test -f "$ac_dir/shtool"; then
2371    ac_aux_dir=$ac_dir
2372    ac_install_sh="$ac_aux_dir/shtool install -c"
2373    break
2374  fi
2375done
2376if test -z "$ac_aux_dir"; then
2377  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2378fi
2379
2380# These three variables are undocumented and unsupported,
2381# and are intended to be withdrawn in a future Autoconf release.
2382# They can cause serious problems if a builder's source tree is in a directory
2383# whose full name contains unusual characters.
2384ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2385ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2386ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2387
2388
2389# Find a good install program.  We prefer a C program (faster),
2390# so one script is as good as another.  But avoid the broken or
2391# incompatible versions:
2392# SysV /etc/install, /usr/sbin/install
2393# SunOS /usr/etc/install
2394# IRIX /sbin/install
2395# AIX /bin/install
2396# AmigaOS /C/install, which installs bootblocks on floppy discs
2397# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2398# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2399# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2400# OS/2's system install, which has a completely different semantic
2401# ./install, which can be erroneously created by make from ./install.sh.
2402# Reject install programs that cannot install multiple files.
2403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2404$as_echo_n "checking for a BSD-compatible install... " >&6; }
2405if test -z "$INSTALL"; then
2406if ${ac_cv_path_install+:} false; then :
2407  $as_echo_n "(cached) " >&6
2408else
2409  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410for as_dir in $PATH
2411do
2412  IFS=$as_save_IFS
2413  test -z "$as_dir" && as_dir=.
2414    # Account for people who put trailing slashes in PATH elements.
2415case $as_dir/ in #((
2416  ./ | .// | /[cC]/* | \
2417  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2418  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2419  /usr/ucb/* ) ;;
2420  *)
2421    # OSF1 and SCO ODT 3.0 have their own names for install.
2422    # Don't use installbsd from OSF since it installs stuff as root
2423    # by default.
2424    for ac_prog in ginstall scoinst install; do
2425      for ac_exec_ext in '' $ac_executable_extensions; do
2426	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2427	  if test $ac_prog = install &&
2428	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2429	    # AIX install.  It has an incompatible calling convention.
2430	    :
2431	  elif test $ac_prog = install &&
2432	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2433	    # program-specific install script used by HP pwplus--don't use.
2434	    :
2435	  else
2436	    rm -rf conftest.one conftest.two conftest.dir
2437	    echo one > conftest.one
2438	    echo two > conftest.two
2439	    mkdir conftest.dir
2440	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2441	      test -s conftest.one && test -s conftest.two &&
2442	      test -s conftest.dir/conftest.one &&
2443	      test -s conftest.dir/conftest.two
2444	    then
2445	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2446	      break 3
2447	    fi
2448	  fi
2449	fi
2450      done
2451    done
2452    ;;
2453esac
2454
2455  done
2456IFS=$as_save_IFS
2457
2458rm -rf conftest.one conftest.two conftest.dir
2459
2460fi
2461  if test "${ac_cv_path_install+set}" = set; then
2462    INSTALL=$ac_cv_path_install
2463  else
2464    # As a last resort, use the slow shell script.  Don't cache a
2465    # value for INSTALL within a source directory, because that will
2466    # break other packages using the cache if that directory is
2467    # removed, or if the value is a relative name.
2468    INSTALL=$ac_install_sh
2469  fi
2470fi
2471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2472$as_echo "$INSTALL" >&6; }
2473
2474# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2475# It thinks the first close brace ends the variable substitution.
2476test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2477
2478test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2479
2480test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2481
2482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2483$as_echo_n "checking whether build environment is sane... " >&6; }
2484# Reject unsafe characters in $srcdir or the absolute working directory
2485# name.  Accept space and tab only in the latter.
2486am_lf='
2487'
2488case `pwd` in
2489  *[\\\"\#\$\&\'\`$am_lf]*)
2490    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2491esac
2492case $srcdir in
2493  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2494    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2495esac
2496
2497# Do 'set' in a subshell so we don't clobber the current shell's
2498# arguments.  Must try -L first in case configure is actually a
2499# symlink; some systems play weird games with the mod time of symlinks
2500# (eg FreeBSD returns the mod time of the symlink's containing
2501# directory).
2502if (
2503   am_has_slept=no
2504   for am_try in 1 2; do
2505     echo "timestamp, slept: $am_has_slept" > conftest.file
2506     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2507     if test "$*" = "X"; then
2508	# -L didn't work.
2509	set X `ls -t "$srcdir/configure" conftest.file`
2510     fi
2511     if test "$*" != "X $srcdir/configure conftest.file" \
2512	&& test "$*" != "X conftest.file $srcdir/configure"; then
2513
2514	# If neither matched, then we have a broken ls.  This can happen
2515	# if, for instance, CONFIG_SHELL is bash and it inherits a
2516	# broken ls alias from the environment.  This has actually
2517	# happened.  Such a system could not be considered "sane".
2518	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2519  alias in your environment" "$LINENO" 5
2520     fi
2521     if test "$2" = conftest.file || test $am_try -eq 2; then
2522       break
2523     fi
2524     # Just in case.
2525     sleep 1
2526     am_has_slept=yes
2527   done
2528   test "$2" = conftest.file
2529   )
2530then
2531   # Ok.
2532   :
2533else
2534   as_fn_error $? "newly created file is older than distributed files!
2535Check your system clock" "$LINENO" 5
2536fi
2537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2538$as_echo "yes" >&6; }
2539# If we didn't sleep, we still need to ensure time stamps of config.status and
2540# generated files are strictly newer.
2541am_sleep_pid=
2542if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2543  ( sleep 1 ) &
2544  am_sleep_pid=$!
2545fi
2546
2547rm -f conftest.file
2548
2549test "$program_prefix" != NONE &&
2550  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2551# Use a double $ so make ignores it.
2552test "$program_suffix" != NONE &&
2553  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2554# Double any \ or $.
2555# By default was `s,x,x', remove it if useless.
2556ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2557program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2558
2559# Expand $ac_aux_dir to an absolute path.
2560am_aux_dir=`cd "$ac_aux_dir" && pwd`
2561
2562if test x"${MISSING+set}" != xset; then
2563  case $am_aux_dir in
2564  *\ * | *\	*)
2565    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2566  *)
2567    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2568  esac
2569fi
2570# Use eval to expand $SHELL
2571if eval "$MISSING --is-lightweight"; then
2572  am_missing_run="$MISSING "
2573else
2574  am_missing_run=
2575  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2576$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2577fi
2578
2579if test x"${install_sh+set}" != xset; then
2580  case $am_aux_dir in
2581  *\ * | *\	*)
2582    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2583  *)
2584    install_sh="\${SHELL} $am_aux_dir/install-sh"
2585  esac
2586fi
2587
2588# Installed binaries are usually stripped using 'strip' when the user
2589# run "make install-strip".  However 'strip' might not be the right
2590# tool to use in cross-compilation environments, therefore Automake
2591# will honor the 'STRIP' environment variable to overrule this program.
2592if test "$cross_compiling" != no; then
2593  if test -n "$ac_tool_prefix"; then
2594  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2595set dummy ${ac_tool_prefix}strip; ac_word=$2
2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2597$as_echo_n "checking for $ac_word... " >&6; }
2598if ${ac_cv_prog_STRIP+:} false; then :
2599  $as_echo_n "(cached) " >&6
2600else
2601  if test -n "$STRIP"; then
2602  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2603else
2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605for as_dir in $PATH
2606do
2607  IFS=$as_save_IFS
2608  test -z "$as_dir" && as_dir=.
2609    for ac_exec_ext in '' $ac_executable_extensions; do
2610  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2611    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2612    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613    break 2
2614  fi
2615done
2616  done
2617IFS=$as_save_IFS
2618
2619fi
2620fi
2621STRIP=$ac_cv_prog_STRIP
2622if test -n "$STRIP"; then
2623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2624$as_echo "$STRIP" >&6; }
2625else
2626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627$as_echo "no" >&6; }
2628fi
2629
2630
2631fi
2632if test -z "$ac_cv_prog_STRIP"; then
2633  ac_ct_STRIP=$STRIP
2634  # Extract the first word of "strip", so it can be a program name with args.
2635set dummy strip; ac_word=$2
2636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2637$as_echo_n "checking for $ac_word... " >&6; }
2638if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2639  $as_echo_n "(cached) " >&6
2640else
2641  if test -n "$ac_ct_STRIP"; then
2642  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2643else
2644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645for as_dir in $PATH
2646do
2647  IFS=$as_save_IFS
2648  test -z "$as_dir" && as_dir=.
2649    for ac_exec_ext in '' $ac_executable_extensions; do
2650  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2651    ac_cv_prog_ac_ct_STRIP="strip"
2652    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2653    break 2
2654  fi
2655done
2656  done
2657IFS=$as_save_IFS
2658
2659fi
2660fi
2661ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2662if test -n "$ac_ct_STRIP"; then
2663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2664$as_echo "$ac_ct_STRIP" >&6; }
2665else
2666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667$as_echo "no" >&6; }
2668fi
2669
2670  if test "x$ac_ct_STRIP" = x; then
2671    STRIP=":"
2672  else
2673    case $cross_compiling:$ac_tool_warned in
2674yes:)
2675{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2677ac_tool_warned=yes ;;
2678esac
2679    STRIP=$ac_ct_STRIP
2680  fi
2681else
2682  STRIP="$ac_cv_prog_STRIP"
2683fi
2684
2685fi
2686INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2687
2688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2689$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2690if test -z "$MKDIR_P"; then
2691  if ${ac_cv_path_mkdir+:} false; then :
2692  $as_echo_n "(cached) " >&6
2693else
2694  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2696do
2697  IFS=$as_save_IFS
2698  test -z "$as_dir" && as_dir=.
2699    for ac_prog in mkdir gmkdir; do
2700	 for ac_exec_ext in '' $ac_executable_extensions; do
2701	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2702	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2703	     'mkdir (GNU coreutils) '* | \
2704	     'mkdir (coreutils) '* | \
2705	     'mkdir (fileutils) '4.1*)
2706	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2707	       break 3;;
2708	   esac
2709	 done
2710       done
2711  done
2712IFS=$as_save_IFS
2713
2714fi
2715
2716  test -d ./--version && rmdir ./--version
2717  if test "${ac_cv_path_mkdir+set}" = set; then
2718    MKDIR_P="$ac_cv_path_mkdir -p"
2719  else
2720    # As a last resort, use the slow shell script.  Don't cache a
2721    # value for MKDIR_P within a source directory, because that will
2722    # break other packages using the cache if that directory is
2723    # removed, or if the value is a relative name.
2724    MKDIR_P="$ac_install_sh -d"
2725  fi
2726fi
2727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2728$as_echo "$MKDIR_P" >&6; }
2729
2730for ac_prog in gawk mawk nawk awk
2731do
2732  # Extract the first word of "$ac_prog", so it can be a program name with args.
2733set dummy $ac_prog; ac_word=$2
2734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735$as_echo_n "checking for $ac_word... " >&6; }
2736if ${ac_cv_prog_AWK+:} false; then :
2737  $as_echo_n "(cached) " >&6
2738else
2739  if test -n "$AWK"; then
2740  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2741else
2742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743for as_dir in $PATH
2744do
2745  IFS=$as_save_IFS
2746  test -z "$as_dir" && as_dir=.
2747    for ac_exec_ext in '' $ac_executable_extensions; do
2748  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749    ac_cv_prog_AWK="$ac_prog"
2750    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751    break 2
2752  fi
2753done
2754  done
2755IFS=$as_save_IFS
2756
2757fi
2758fi
2759AWK=$ac_cv_prog_AWK
2760if test -n "$AWK"; then
2761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2762$as_echo "$AWK" >&6; }
2763else
2764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765$as_echo "no" >&6; }
2766fi
2767
2768
2769  test -n "$AWK" && break
2770done
2771
2772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2773$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2774set x ${MAKE-make}
2775ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2776if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2777  $as_echo_n "(cached) " >&6
2778else
2779  cat >conftest.make <<\_ACEOF
2780SHELL = /bin/sh
2781all:
2782	@echo '@@@%%%=$(MAKE)=@@@%%%'
2783_ACEOF
2784# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2785case `${MAKE-make} -f conftest.make 2>/dev/null` in
2786  *@@@%%%=?*=@@@%%%*)
2787    eval ac_cv_prog_make_${ac_make}_set=yes;;
2788  *)
2789    eval ac_cv_prog_make_${ac_make}_set=no;;
2790esac
2791rm -f conftest.make
2792fi
2793if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2795$as_echo "yes" >&6; }
2796  SET_MAKE=
2797else
2798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799$as_echo "no" >&6; }
2800  SET_MAKE="MAKE=${MAKE-make}"
2801fi
2802
2803rm -rf .tst 2>/dev/null
2804mkdir .tst 2>/dev/null
2805if test -d .tst; then
2806  am__leading_dot=.
2807else
2808  am__leading_dot=_
2809fi
2810rmdir .tst 2>/dev/null
2811
2812# Check whether --enable-silent-rules was given.
2813if test "${enable_silent_rules+set}" = set; then :
2814  enableval=$enable_silent_rules;
2815fi
2816
2817case $enable_silent_rules in # (((
2818  yes) AM_DEFAULT_VERBOSITY=0;;
2819   no) AM_DEFAULT_VERBOSITY=1;;
2820    *) AM_DEFAULT_VERBOSITY=1;;
2821esac
2822am_make=${MAKE-make}
2823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2824$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2825if ${am_cv_make_support_nested_variables+:} false; then :
2826  $as_echo_n "(cached) " >&6
2827else
2828  if $as_echo 'TRUE=$(BAR$(V))
2829BAR0=false
2830BAR1=true
2831V=1
2832am__doit:
2833	@$(TRUE)
2834.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2835  am_cv_make_support_nested_variables=yes
2836else
2837  am_cv_make_support_nested_variables=no
2838fi
2839fi
2840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2841$as_echo "$am_cv_make_support_nested_variables" >&6; }
2842if test $am_cv_make_support_nested_variables = yes; then
2843    AM_V='$(V)'
2844  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2845else
2846  AM_V=$AM_DEFAULT_VERBOSITY
2847  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2848fi
2849AM_BACKSLASH='\'
2850
2851if test "`cd $srcdir && pwd`" != "`pwd`"; then
2852  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2853  # is not polluted with repeated "-I."
2854  am__isrc=' -I$(srcdir)'
2855  # test to see if srcdir already configured
2856  if test -f $srcdir/config.status; then
2857    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2858  fi
2859fi
2860
2861# test whether we have cygpath
2862if test -z "$CYGPATH_W"; then
2863  if (cygpath --version) >/dev/null 2>/dev/null; then
2864    CYGPATH_W='cygpath -w'
2865  else
2866    CYGPATH_W=echo
2867  fi
2868fi
2869
2870
2871# Define the identity of the package.
2872 PACKAGE='xorgproto'
2873 VERSION='2021.5'
2874
2875
2876cat >>confdefs.h <<_ACEOF
2877#define PACKAGE "$PACKAGE"
2878_ACEOF
2879
2880
2881cat >>confdefs.h <<_ACEOF
2882#define VERSION "$VERSION"
2883_ACEOF
2884
2885# Some tools Automake needs.
2886
2887ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2888
2889
2890AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2891
2892
2893AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2894
2895
2896AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2897
2898
2899MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2900
2901# For better backward compatibility.  To be removed once Automake 1.9.x
2902# dies out for good.  For more background, see:
2903# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2904# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2905mkdir_p='$(MKDIR_P)'
2906
2907# We need awk for the "check" target (and possibly the TAP driver).  The
2908# system "awk" is bad on some platforms.
2909# Always define AMTAR for backward compatibility.  Yes, it's still used
2910# in the wild :-(  We should find a proper way to deprecate it ...
2911AMTAR='$${TAR-tar}'
2912
2913
2914# We'll loop over all known methods to create a tar archive until one works.
2915_am_tools='gnutar  pax cpio none'
2916
2917am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2918
2919
2920
2921
2922
2923
2924# POSIX will say in a future version that running "rm -f" with no argument
2925# is OK; and we want to be able to make that assumption in our Makefile
2926# recipes.  So use an aggressive probe to check that the usage we want is
2927# actually supported "in the wild" to an acceptable degree.
2928# See automake bug#10828.
2929# To make any issue more visible, cause the running configure to be aborted
2930# by default if the 'rm' program in use doesn't match our expectations; the
2931# user can still override this though.
2932if rm -f && rm -fr && rm -rf; then : OK; else
2933  cat >&2 <<'END'
2934Oops!
2935
2936Your 'rm' program seems unable to run without file operands specified
2937on the command line, even when the '-f' option is present.  This is contrary
2938to the behaviour of most rm programs out there, and not conforming with
2939the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2940
2941Please tell bug-automake@gnu.org about your system, including the value
2942of your $PATH and any error possibly output before this message.  This
2943can help us improve future automake versions.
2944
2945END
2946  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2947    echo 'Configuration will proceed anyway, since you have set the' >&2
2948    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2949    echo >&2
2950  else
2951    cat >&2 <<'END'
2952Aborting the configuration process, to ensure you take notice of the issue.
2953
2954You can download and install GNU coreutils to get an 'rm' implementation
2955that behaves properly: <https://www.gnu.org/software/coreutils/>.
2956
2957If you want to complete the configuration process using your problematic
2958'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2959to "yes", and re-run configure.
2960
2961END
2962    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2963  fi
2964fi
2965
2966
2967# Require xorg-macros: XORG_DEFAULT_OPTIONS
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979DEPDIR="${am__leading_dot}deps"
2980
2981ac_config_commands="$ac_config_commands depfiles"
2982
2983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
2984$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
2985cat > confinc.mk << 'END'
2986am__doit:
2987	@echo this is the am__doit target >confinc.out
2988.PHONY: am__doit
2989END
2990am__include="#"
2991am__quote=
2992# BSD make does it like this.
2993echo '.include "confinc.mk" # ignored' > confmf.BSD
2994# Other make implementations (GNU, Solaris 10, AIX) do it like this.
2995echo 'include confinc.mk # ignored' > confmf.GNU
2996_am_result=no
2997for s in GNU BSD; do
2998  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
2999   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3000   ac_status=$?
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); }
3003  case $?:`cat confinc.out 2>/dev/null` in #(
3004  '0:this is the am__doit target') :
3005    case $s in #(
3006  BSD) :
3007    am__include='.include' am__quote='"' ;; #(
3008  *) :
3009    am__include='include' am__quote='' ;;
3010esac ;; #(
3011  *) :
3012     ;;
3013esac
3014  if test "$am__include" != "#"; then
3015    _am_result="yes ($s style)"
3016    break
3017  fi
3018done
3019rm -f confinc.* confmf.*
3020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3021$as_echo "${_am_result}" >&6; }
3022
3023# Check whether --enable-dependency-tracking was given.
3024if test "${enable_dependency_tracking+set}" = set; then :
3025  enableval=$enable_dependency_tracking;
3026fi
3027
3028if test "x$enable_dependency_tracking" != xno; then
3029  am_depcomp="$ac_aux_dir/depcomp"
3030  AMDEPBACKSLASH='\'
3031  am__nodep='_no'
3032fi
3033 if test "x$enable_dependency_tracking" != xno; then
3034  AMDEP_TRUE=
3035  AMDEP_FALSE='#'
3036else
3037  AMDEP_TRUE='#'
3038  AMDEP_FALSE=
3039fi
3040
3041
3042ac_ext=c
3043ac_cpp='$CPP $CPPFLAGS'
3044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046ac_compiler_gnu=$ac_cv_c_compiler_gnu
3047if test -n "$ac_tool_prefix"; then
3048  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3049set dummy ${ac_tool_prefix}gcc; ac_word=$2
3050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051$as_echo_n "checking for $ac_word... " >&6; }
3052if ${ac_cv_prog_CC+:} false; then :
3053  $as_echo_n "(cached) " >&6
3054else
3055  if test -n "$CC"; then
3056  ac_cv_prog_CC="$CC" # Let the user override the test.
3057else
3058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059for as_dir in $PATH
3060do
3061  IFS=$as_save_IFS
3062  test -z "$as_dir" && as_dir=.
3063    for ac_exec_ext in '' $ac_executable_extensions; do
3064  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3065    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3066    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067    break 2
3068  fi
3069done
3070  done
3071IFS=$as_save_IFS
3072
3073fi
3074fi
3075CC=$ac_cv_prog_CC
3076if test -n "$CC"; then
3077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3078$as_echo "$CC" >&6; }
3079else
3080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081$as_echo "no" >&6; }
3082fi
3083
3084
3085fi
3086if test -z "$ac_cv_prog_CC"; then
3087  ac_ct_CC=$CC
3088  # Extract the first word of "gcc", so it can be a program name with args.
3089set dummy gcc; ac_word=$2
3090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091$as_echo_n "checking for $ac_word... " >&6; }
3092if ${ac_cv_prog_ac_ct_CC+:} false; then :
3093  $as_echo_n "(cached) " >&6
3094else
3095  if test -n "$ac_ct_CC"; then
3096  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3097else
3098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099for as_dir in $PATH
3100do
3101  IFS=$as_save_IFS
3102  test -z "$as_dir" && as_dir=.
3103    for ac_exec_ext in '' $ac_executable_extensions; do
3104  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3105    ac_cv_prog_ac_ct_CC="gcc"
3106    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107    break 2
3108  fi
3109done
3110  done
3111IFS=$as_save_IFS
3112
3113fi
3114fi
3115ac_ct_CC=$ac_cv_prog_ac_ct_CC
3116if test -n "$ac_ct_CC"; then
3117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3118$as_echo "$ac_ct_CC" >&6; }
3119else
3120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121$as_echo "no" >&6; }
3122fi
3123
3124  if test "x$ac_ct_CC" = x; then
3125    CC=""
3126  else
3127    case $cross_compiling:$ac_tool_warned in
3128yes:)
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3131ac_tool_warned=yes ;;
3132esac
3133    CC=$ac_ct_CC
3134  fi
3135else
3136  CC="$ac_cv_prog_CC"
3137fi
3138
3139if test -z "$CC"; then
3140          if test -n "$ac_tool_prefix"; then
3141    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3142set dummy ${ac_tool_prefix}cc; ac_word=$2
3143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144$as_echo_n "checking for $ac_word... " >&6; }
3145if ${ac_cv_prog_CC+:} false; then :
3146  $as_echo_n "(cached) " >&6
3147else
3148  if test -n "$CC"; then
3149  ac_cv_prog_CC="$CC" # Let the user override the test.
3150else
3151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152for as_dir in $PATH
3153do
3154  IFS=$as_save_IFS
3155  test -z "$as_dir" && as_dir=.
3156    for ac_exec_ext in '' $ac_executable_extensions; do
3157  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3158    ac_cv_prog_CC="${ac_tool_prefix}cc"
3159    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160    break 2
3161  fi
3162done
3163  done
3164IFS=$as_save_IFS
3165
3166fi
3167fi
3168CC=$ac_cv_prog_CC
3169if test -n "$CC"; then
3170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3171$as_echo "$CC" >&6; }
3172else
3173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174$as_echo "no" >&6; }
3175fi
3176
3177
3178  fi
3179fi
3180if test -z "$CC"; then
3181  # Extract the first word of "cc", so it can be a program name with args.
3182set dummy cc; ac_word=$2
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184$as_echo_n "checking for $ac_word... " >&6; }
3185if ${ac_cv_prog_CC+:} false; then :
3186  $as_echo_n "(cached) " >&6
3187else
3188  if test -n "$CC"; then
3189  ac_cv_prog_CC="$CC" # Let the user override the test.
3190else
3191  ac_prog_rejected=no
3192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193for as_dir in $PATH
3194do
3195  IFS=$as_save_IFS
3196  test -z "$as_dir" && as_dir=.
3197    for ac_exec_ext in '' $ac_executable_extensions; do
3198  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3199    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3200       ac_prog_rejected=yes
3201       continue
3202     fi
3203    ac_cv_prog_CC="cc"
3204    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205    break 2
3206  fi
3207done
3208  done
3209IFS=$as_save_IFS
3210
3211if test $ac_prog_rejected = yes; then
3212  # We found a bogon in the path, so make sure we never use it.
3213  set dummy $ac_cv_prog_CC
3214  shift
3215  if test $# != 0; then
3216    # We chose a different compiler from the bogus one.
3217    # However, it has the same basename, so the bogon will be chosen
3218    # first if we set CC to just the basename; use the full file name.
3219    shift
3220    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3221  fi
3222fi
3223fi
3224fi
3225CC=$ac_cv_prog_CC
3226if test -n "$CC"; then
3227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3228$as_echo "$CC" >&6; }
3229else
3230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231$as_echo "no" >&6; }
3232fi
3233
3234
3235fi
3236if test -z "$CC"; then
3237  if test -n "$ac_tool_prefix"; then
3238  for ac_prog in cl.exe
3239  do
3240    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3241set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243$as_echo_n "checking for $ac_word... " >&6; }
3244if ${ac_cv_prog_CC+:} false; then :
3245  $as_echo_n "(cached) " >&6
3246else
3247  if test -n "$CC"; then
3248  ac_cv_prog_CC="$CC" # Let the user override the test.
3249else
3250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251for as_dir in $PATH
3252do
3253  IFS=$as_save_IFS
3254  test -z "$as_dir" && as_dir=.
3255    for ac_exec_ext in '' $ac_executable_extensions; do
3256  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3257    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3258    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3259    break 2
3260  fi
3261done
3262  done
3263IFS=$as_save_IFS
3264
3265fi
3266fi
3267CC=$ac_cv_prog_CC
3268if test -n "$CC"; then
3269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3270$as_echo "$CC" >&6; }
3271else
3272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273$as_echo "no" >&6; }
3274fi
3275
3276
3277    test -n "$CC" && break
3278  done
3279fi
3280if test -z "$CC"; then
3281  ac_ct_CC=$CC
3282  for ac_prog in cl.exe
3283do
3284  # Extract the first word of "$ac_prog", so it can be a program name with args.
3285set dummy $ac_prog; ac_word=$2
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3287$as_echo_n "checking for $ac_word... " >&6; }
3288if ${ac_cv_prog_ac_ct_CC+:} false; then :
3289  $as_echo_n "(cached) " >&6
3290else
3291  if test -n "$ac_ct_CC"; then
3292  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3293else
3294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295for as_dir in $PATH
3296do
3297  IFS=$as_save_IFS
3298  test -z "$as_dir" && as_dir=.
3299    for ac_exec_ext in '' $ac_executable_extensions; do
3300  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3301    ac_cv_prog_ac_ct_CC="$ac_prog"
3302    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3303    break 2
3304  fi
3305done
3306  done
3307IFS=$as_save_IFS
3308
3309fi
3310fi
3311ac_ct_CC=$ac_cv_prog_ac_ct_CC
3312if test -n "$ac_ct_CC"; then
3313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3314$as_echo "$ac_ct_CC" >&6; }
3315else
3316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3317$as_echo "no" >&6; }
3318fi
3319
3320
3321  test -n "$ac_ct_CC" && break
3322done
3323
3324  if test "x$ac_ct_CC" = x; then
3325    CC=""
3326  else
3327    case $cross_compiling:$ac_tool_warned in
3328yes:)
3329{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3330$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3331ac_tool_warned=yes ;;
3332esac
3333    CC=$ac_ct_CC
3334  fi
3335fi
3336
3337fi
3338
3339
3340test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3342as_fn_error $? "no acceptable C compiler found in \$PATH
3343See \`config.log' for more details" "$LINENO" 5; }
3344
3345# Provide some information about the compiler.
3346$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3347set X $ac_compile
3348ac_compiler=$2
3349for ac_option in --version -v -V -qversion; do
3350  { { ac_try="$ac_compiler $ac_option >&5"
3351case "(($ac_try" in
3352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353  *) ac_try_echo=$ac_try;;
3354esac
3355eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3356$as_echo "$ac_try_echo"; } >&5
3357  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3358  ac_status=$?
3359  if test -s conftest.err; then
3360    sed '10a\
3361... rest of stderr output deleted ...
3362         10q' conftest.err >conftest.er1
3363    cat conftest.er1 >&5
3364  fi
3365  rm -f conftest.er1 conftest.err
3366  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3367  test $ac_status = 0; }
3368done
3369
3370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371/* end confdefs.h.  */
3372
3373int
3374main ()
3375{
3376
3377  ;
3378  return 0;
3379}
3380_ACEOF
3381ac_clean_files_save=$ac_clean_files
3382ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3383# Try to create an executable without -o first, disregard a.out.
3384# It will help us diagnose broken compilers, and finding out an intuition
3385# of exeext.
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3387$as_echo_n "checking whether the C compiler works... " >&6; }
3388ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3389
3390# The possible output files:
3391ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3392
3393ac_rmfiles=
3394for ac_file in $ac_files
3395do
3396  case $ac_file in
3397    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3398    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3399  esac
3400done
3401rm -f $ac_rmfiles
3402
3403if { { ac_try="$ac_link_default"
3404case "(($ac_try" in
3405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406  *) ac_try_echo=$ac_try;;
3407esac
3408eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3409$as_echo "$ac_try_echo"; } >&5
3410  (eval "$ac_link_default") 2>&5
3411  ac_status=$?
3412  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3413  test $ac_status = 0; }; then :
3414  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3415# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3416# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3417# so that the user can short-circuit this test for compilers unknown to
3418# Autoconf.
3419for ac_file in $ac_files ''
3420do
3421  test -f "$ac_file" || continue
3422  case $ac_file in
3423    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3424	;;
3425    [ab].out )
3426	# We found the default executable, but exeext='' is most
3427	# certainly right.
3428	break;;
3429    *.* )
3430	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3431	then :; else
3432	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3433	fi
3434	# We set ac_cv_exeext here because the later test for it is not
3435	# safe: cross compilers may not add the suffix if given an `-o'
3436	# argument, so we may need to know it at that point already.
3437	# Even if this section looks crufty: it has the advantage of
3438	# actually working.
3439	break;;
3440    * )
3441	break;;
3442  esac
3443done
3444test "$ac_cv_exeext" = no && ac_cv_exeext=
3445
3446else
3447  ac_file=''
3448fi
3449if test -z "$ac_file"; then :
3450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451$as_echo "no" >&6; }
3452$as_echo "$as_me: failed program was:" >&5
3453sed 's/^/| /' conftest.$ac_ext >&5
3454
3455{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457as_fn_error 77 "C compiler cannot create executables
3458See \`config.log' for more details" "$LINENO" 5; }
3459else
3460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3461$as_echo "yes" >&6; }
3462fi
3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3464$as_echo_n "checking for C compiler default output file name... " >&6; }
3465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3466$as_echo "$ac_file" >&6; }
3467ac_exeext=$ac_cv_exeext
3468
3469rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3470ac_clean_files=$ac_clean_files_save
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3472$as_echo_n "checking for suffix of executables... " >&6; }
3473if { { ac_try="$ac_link"
3474case "(($ac_try" in
3475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476  *) ac_try_echo=$ac_try;;
3477esac
3478eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3479$as_echo "$ac_try_echo"; } >&5
3480  (eval "$ac_link") 2>&5
3481  ac_status=$?
3482  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3483  test $ac_status = 0; }; then :
3484  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3485# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3486# work properly (i.e., refer to `conftest.exe'), while it won't with
3487# `rm'.
3488for ac_file in conftest.exe conftest conftest.*; do
3489  test -f "$ac_file" || continue
3490  case $ac_file in
3491    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3492    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3493	  break;;
3494    * ) break;;
3495  esac
3496done
3497else
3498  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3499$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3501See \`config.log' for more details" "$LINENO" 5; }
3502fi
3503rm -f conftest conftest$ac_cv_exeext
3504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3505$as_echo "$ac_cv_exeext" >&6; }
3506
3507rm -f conftest.$ac_ext
3508EXEEXT=$ac_cv_exeext
3509ac_exeext=$EXEEXT
3510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511/* end confdefs.h.  */
3512#include <stdio.h>
3513int
3514main ()
3515{
3516FILE *f = fopen ("conftest.out", "w");
3517 return ferror (f) || fclose (f) != 0;
3518
3519  ;
3520  return 0;
3521}
3522_ACEOF
3523ac_clean_files="$ac_clean_files conftest.out"
3524# Check that the compiler produces executables we can run.  If not, either
3525# the compiler is broken, or we cross compile.
3526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3527$as_echo_n "checking whether we are cross compiling... " >&6; }
3528if test "$cross_compiling" != yes; then
3529  { { ac_try="$ac_link"
3530case "(($ac_try" in
3531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532  *) ac_try_echo=$ac_try;;
3533esac
3534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3535$as_echo "$ac_try_echo"; } >&5
3536  (eval "$ac_link") 2>&5
3537  ac_status=$?
3538  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3539  test $ac_status = 0; }
3540  if { ac_try='./conftest$ac_cv_exeext'
3541  { { case "(($ac_try" in
3542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543  *) ac_try_echo=$ac_try;;
3544esac
3545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3546$as_echo "$ac_try_echo"; } >&5
3547  (eval "$ac_try") 2>&5
3548  ac_status=$?
3549  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3550  test $ac_status = 0; }; }; then
3551    cross_compiling=no
3552  else
3553    if test "$cross_compiling" = maybe; then
3554	cross_compiling=yes
3555    else
3556	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558as_fn_error $? "cannot run C compiled programs.
3559If you meant to cross compile, use \`--host'.
3560See \`config.log' for more details" "$LINENO" 5; }
3561    fi
3562  fi
3563fi
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3565$as_echo "$cross_compiling" >&6; }
3566
3567rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3568ac_clean_files=$ac_clean_files_save
3569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3570$as_echo_n "checking for suffix of object files... " >&6; }
3571if ${ac_cv_objext+:} false; then :
3572  $as_echo_n "(cached) " >&6
3573else
3574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575/* end confdefs.h.  */
3576
3577int
3578main ()
3579{
3580
3581  ;
3582  return 0;
3583}
3584_ACEOF
3585rm -f conftest.o conftest.obj
3586if { { ac_try="$ac_compile"
3587case "(($ac_try" in
3588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589  *) ac_try_echo=$ac_try;;
3590esac
3591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3592$as_echo "$ac_try_echo"; } >&5
3593  (eval "$ac_compile") 2>&5
3594  ac_status=$?
3595  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3596  test $ac_status = 0; }; then :
3597  for ac_file in conftest.o conftest.obj conftest.*; do
3598  test -f "$ac_file" || continue;
3599  case $ac_file in
3600    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3601    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3602       break;;
3603  esac
3604done
3605else
3606  $as_echo "$as_me: failed program was:" >&5
3607sed 's/^/| /' conftest.$ac_ext >&5
3608
3609{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3610$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3611as_fn_error $? "cannot compute suffix of object files: cannot compile
3612See \`config.log' for more details" "$LINENO" 5; }
3613fi
3614rm -f conftest.$ac_cv_objext conftest.$ac_ext
3615fi
3616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3617$as_echo "$ac_cv_objext" >&6; }
3618OBJEXT=$ac_cv_objext
3619ac_objext=$OBJEXT
3620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3621$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3622if ${ac_cv_c_compiler_gnu+:} false; then :
3623  $as_echo_n "(cached) " >&6
3624else
3625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626/* end confdefs.h.  */
3627
3628int
3629main ()
3630{
3631#ifndef __GNUC__
3632       choke me
3633#endif
3634
3635  ;
3636  return 0;
3637}
3638_ACEOF
3639if ac_fn_c_try_compile "$LINENO"; then :
3640  ac_compiler_gnu=yes
3641else
3642  ac_compiler_gnu=no
3643fi
3644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3645ac_cv_c_compiler_gnu=$ac_compiler_gnu
3646
3647fi
3648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3649$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3650if test $ac_compiler_gnu = yes; then
3651  GCC=yes
3652else
3653  GCC=
3654fi
3655ac_test_CFLAGS=${CFLAGS+set}
3656ac_save_CFLAGS=$CFLAGS
3657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3658$as_echo_n "checking whether $CC accepts -g... " >&6; }
3659if ${ac_cv_prog_cc_g+:} false; then :
3660  $as_echo_n "(cached) " >&6
3661else
3662  ac_save_c_werror_flag=$ac_c_werror_flag
3663   ac_c_werror_flag=yes
3664   ac_cv_prog_cc_g=no
3665   CFLAGS="-g"
3666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667/* end confdefs.h.  */
3668
3669int
3670main ()
3671{
3672
3673  ;
3674  return 0;
3675}
3676_ACEOF
3677if ac_fn_c_try_compile "$LINENO"; then :
3678  ac_cv_prog_cc_g=yes
3679else
3680  CFLAGS=""
3681      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682/* end confdefs.h.  */
3683
3684int
3685main ()
3686{
3687
3688  ;
3689  return 0;
3690}
3691_ACEOF
3692if ac_fn_c_try_compile "$LINENO"; then :
3693
3694else
3695  ac_c_werror_flag=$ac_save_c_werror_flag
3696	 CFLAGS="-g"
3697	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698/* end confdefs.h.  */
3699
3700int
3701main ()
3702{
3703
3704  ;
3705  return 0;
3706}
3707_ACEOF
3708if ac_fn_c_try_compile "$LINENO"; then :
3709  ac_cv_prog_cc_g=yes
3710fi
3711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712fi
3713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3714fi
3715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3716   ac_c_werror_flag=$ac_save_c_werror_flag
3717fi
3718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3719$as_echo "$ac_cv_prog_cc_g" >&6; }
3720if test "$ac_test_CFLAGS" = set; then
3721  CFLAGS=$ac_save_CFLAGS
3722elif test $ac_cv_prog_cc_g = yes; then
3723  if test "$GCC" = yes; then
3724    CFLAGS="-g -O2"
3725  else
3726    CFLAGS="-g"
3727  fi
3728else
3729  if test "$GCC" = yes; then
3730    CFLAGS="-O2"
3731  else
3732    CFLAGS=
3733  fi
3734fi
3735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3736$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3737if ${ac_cv_prog_cc_c89+:} false; then :
3738  $as_echo_n "(cached) " >&6
3739else
3740  ac_cv_prog_cc_c89=no
3741ac_save_CC=$CC
3742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743/* end confdefs.h.  */
3744#include <stdarg.h>
3745#include <stdio.h>
3746struct stat;
3747/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3748struct buf { int x; };
3749FILE * (*rcsopen) (struct buf *, struct stat *, int);
3750static char *e (p, i)
3751     char **p;
3752     int i;
3753{
3754  return p[i];
3755}
3756static char *f (char * (*g) (char **, int), char **p, ...)
3757{
3758  char *s;
3759  va_list v;
3760  va_start (v,p);
3761  s = g (p, va_arg (v,int));
3762  va_end (v);
3763  return s;
3764}
3765
3766/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3767   function prototypes and stuff, but not '\xHH' hex character constants.
3768   These don't provoke an error unfortunately, instead are silently treated
3769   as 'x'.  The following induces an error, until -std is added to get
3770   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3771   array size at least.  It's necessary to write '\x00'==0 to get something
3772   that's true only with -std.  */
3773int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3774
3775/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3776   inside strings and character constants.  */
3777#define FOO(x) 'x'
3778int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3779
3780int test (int i, double x);
3781struct s1 {int (*f) (int a);};
3782struct s2 {int (*f) (double a);};
3783int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3784int argc;
3785char **argv;
3786int
3787main ()
3788{
3789return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3790  ;
3791  return 0;
3792}
3793_ACEOF
3794for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3795	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3796do
3797  CC="$ac_save_CC $ac_arg"
3798  if ac_fn_c_try_compile "$LINENO"; then :
3799  ac_cv_prog_cc_c89=$ac_arg
3800fi
3801rm -f core conftest.err conftest.$ac_objext
3802  test "x$ac_cv_prog_cc_c89" != "xno" && break
3803done
3804rm -f conftest.$ac_ext
3805CC=$ac_save_CC
3806
3807fi
3808# AC_CACHE_VAL
3809case "x$ac_cv_prog_cc_c89" in
3810  x)
3811    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3812$as_echo "none needed" >&6; } ;;
3813  xno)
3814    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3815$as_echo "unsupported" >&6; } ;;
3816  *)
3817    CC="$CC $ac_cv_prog_cc_c89"
3818    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3819$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3820esac
3821if test "x$ac_cv_prog_cc_c89" != xno; then :
3822
3823fi
3824
3825ac_ext=c
3826ac_cpp='$CPP $CPPFLAGS'
3827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3829ac_compiler_gnu=$ac_cv_c_compiler_gnu
3830
3831ac_ext=c
3832ac_cpp='$CPP $CPPFLAGS'
3833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3835ac_compiler_gnu=$ac_cv_c_compiler_gnu
3836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3837$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3838if ${am_cv_prog_cc_c_o+:} false; then :
3839  $as_echo_n "(cached) " >&6
3840else
3841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842/* end confdefs.h.  */
3843
3844int
3845main ()
3846{
3847
3848  ;
3849  return 0;
3850}
3851_ACEOF
3852  # Make sure it works both with $CC and with simple cc.
3853  # Following AC_PROG_CC_C_O, we do the test twice because some
3854  # compilers refuse to overwrite an existing .o file with -o,
3855  # though they will create one.
3856  am_cv_prog_cc_c_o=yes
3857  for am_i in 1 2; do
3858    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3859   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3860   ac_status=$?
3861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862   (exit $ac_status); } \
3863         && test -f conftest2.$ac_objext; then
3864      : OK
3865    else
3866      am_cv_prog_cc_c_o=no
3867      break
3868    fi
3869  done
3870  rm -f core conftest*
3871  unset am_i
3872fi
3873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3874$as_echo "$am_cv_prog_cc_c_o" >&6; }
3875if test "$am_cv_prog_cc_c_o" != yes; then
3876   # Losing compiler, so override with the script.
3877   # FIXME: It is wrong to rewrite CC.
3878   # But if we don't then we get into trouble of one sort or another.
3879   # A longer-term fix would be to have automake use am__CC in this case,
3880   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3881   CC="$am_aux_dir/compile $CC"
3882fi
3883ac_ext=c
3884ac_cpp='$CPP $CPPFLAGS'
3885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887ac_compiler_gnu=$ac_cv_c_compiler_gnu
3888
3889
3890depcc="$CC"   am_compiler_list=
3891
3892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3893$as_echo_n "checking dependency style of $depcc... " >&6; }
3894if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3895  $as_echo_n "(cached) " >&6
3896else
3897  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3898  # We make a subdir and do the tests there.  Otherwise we can end up
3899  # making bogus files that we don't know about and never remove.  For
3900  # instance it was reported that on HP-UX the gcc test will end up
3901  # making a dummy file named 'D' -- because '-MD' means "put the output
3902  # in D".
3903  rm -rf conftest.dir
3904  mkdir conftest.dir
3905  # Copy depcomp to subdir because otherwise we won't find it if we're
3906  # using a relative directory.
3907  cp "$am_depcomp" conftest.dir
3908  cd conftest.dir
3909  # We will build objects and dependencies in a subdirectory because
3910  # it helps to detect inapplicable dependency modes.  For instance
3911  # both Tru64's cc and ICC support -MD to output dependencies as a
3912  # side effect of compilation, but ICC will put the dependencies in
3913  # the current directory while Tru64 will put them in the object
3914  # directory.
3915  mkdir sub
3916
3917  am_cv_CC_dependencies_compiler_type=none
3918  if test "$am_compiler_list" = ""; then
3919     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3920  fi
3921  am__universal=false
3922  case " $depcc " in #(
3923     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3924     esac
3925
3926  for depmode in $am_compiler_list; do
3927    # Setup a source with many dependencies, because some compilers
3928    # like to wrap large dependency lists on column 80 (with \), and
3929    # we should not choose a depcomp mode which is confused by this.
3930    #
3931    # We need to recreate these files for each test, as the compiler may
3932    # overwrite some of them when testing with obscure command lines.
3933    # This happens at least with the AIX C compiler.
3934    : > sub/conftest.c
3935    for i in 1 2 3 4 5 6; do
3936      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3937      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3938      # Solaris 10 /bin/sh.
3939      echo '/* dummy */' > sub/conftst$i.h
3940    done
3941    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3942
3943    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3944    # mode.  It turns out that the SunPro C++ compiler does not properly
3945    # handle '-M -o', and we need to detect this.  Also, some Intel
3946    # versions had trouble with output in subdirs.
3947    am__obj=sub/conftest.${OBJEXT-o}
3948    am__minus_obj="-o $am__obj"
3949    case $depmode in
3950    gcc)
3951      # This depmode causes a compiler race in universal mode.
3952      test "$am__universal" = false || continue
3953      ;;
3954    nosideeffect)
3955      # After this tag, mechanisms are not by side-effect, so they'll
3956      # only be used when explicitly requested.
3957      if test "x$enable_dependency_tracking" = xyes; then
3958	continue
3959      else
3960	break
3961      fi
3962      ;;
3963    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3964      # This compiler won't grok '-c -o', but also, the minuso test has
3965      # not run yet.  These depmodes are late enough in the game, and
3966      # so weak that their functioning should not be impacted.
3967      am__obj=conftest.${OBJEXT-o}
3968      am__minus_obj=
3969      ;;
3970    none) break ;;
3971    esac
3972    if depmode=$depmode \
3973       source=sub/conftest.c object=$am__obj \
3974       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3975       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3976         >/dev/null 2>conftest.err &&
3977       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3978       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3979       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3980       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3981      # icc doesn't choke on unknown options, it will just issue warnings
3982      # or remarks (even with -Werror).  So we grep stderr for any message
3983      # that says an option was ignored or not supported.
3984      # When given -MP, icc 7.0 and 7.1 complain thusly:
3985      #   icc: Command line warning: ignoring option '-M'; no argument required
3986      # The diagnosis changed in icc 8.0:
3987      #   icc: Command line remark: option '-MP' not supported
3988      if (grep 'ignoring option' conftest.err ||
3989          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3990        am_cv_CC_dependencies_compiler_type=$depmode
3991        break
3992      fi
3993    fi
3994  done
3995
3996  cd ..
3997  rm -rf conftest.dir
3998else
3999  am_cv_CC_dependencies_compiler_type=none
4000fi
4001
4002fi
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4004$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4005CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4006
4007 if
4008  test "x$enable_dependency_tracking" != xno \
4009  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4010  am__fastdepCC_TRUE=
4011  am__fastdepCC_FALSE='#'
4012else
4013  am__fastdepCC_TRUE='#'
4014  am__fastdepCC_FALSE=
4015fi
4016
4017
4018   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4019$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4020if ${ac_cv_prog_cc_c99+:} false; then :
4021  $as_echo_n "(cached) " >&6
4022else
4023  ac_cv_prog_cc_c99=no
4024ac_save_CC=$CC
4025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026/* end confdefs.h.  */
4027#include <stdarg.h>
4028#include <stdbool.h>
4029#include <stdlib.h>
4030#include <wchar.h>
4031#include <stdio.h>
4032
4033// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4034#define debug(...) fprintf (stderr, __VA_ARGS__)
4035#define showlist(...) puts (#__VA_ARGS__)
4036#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4037static void
4038test_varargs_macros (void)
4039{
4040  int x = 1234;
4041  int y = 5678;
4042  debug ("Flag");
4043  debug ("X = %d\n", x);
4044  showlist (The first, second, and third items.);
4045  report (x>y, "x is %d but y is %d", x, y);
4046}
4047
4048// Check long long types.
4049#define BIG64 18446744073709551615ull
4050#define BIG32 4294967295ul
4051#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4052#if !BIG_OK
4053  your preprocessor is broken;
4054#endif
4055#if BIG_OK
4056#else
4057  your preprocessor is broken;
4058#endif
4059static long long int bignum = -9223372036854775807LL;
4060static unsigned long long int ubignum = BIG64;
4061
4062struct incomplete_array
4063{
4064  int datasize;
4065  double data[];
4066};
4067
4068struct named_init {
4069  int number;
4070  const wchar_t *name;
4071  double average;
4072};
4073
4074typedef const char *ccp;
4075
4076static inline int
4077test_restrict (ccp restrict text)
4078{
4079  // See if C++-style comments work.
4080  // Iterate through items via the restricted pointer.
4081  // Also check for declarations in for loops.
4082  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4083    continue;
4084  return 0;
4085}
4086
4087// Check varargs and va_copy.
4088static void
4089test_varargs (const char *format, ...)
4090{
4091  va_list args;
4092  va_start (args, format);
4093  va_list args_copy;
4094  va_copy (args_copy, args);
4095
4096  const char *str;
4097  int number;
4098  float fnumber;
4099
4100  while (*format)
4101    {
4102      switch (*format++)
4103	{
4104	case 's': // string
4105	  str = va_arg (args_copy, const char *);
4106	  break;
4107	case 'd': // int
4108	  number = va_arg (args_copy, int);
4109	  break;
4110	case 'f': // float
4111	  fnumber = va_arg (args_copy, double);
4112	  break;
4113	default:
4114	  break;
4115	}
4116    }
4117  va_end (args_copy);
4118  va_end (args);
4119}
4120
4121int
4122main ()
4123{
4124
4125  // Check bool.
4126  _Bool success = false;
4127
4128  // Check restrict.
4129  if (test_restrict ("String literal") == 0)
4130    success = true;
4131  char *restrict newvar = "Another string";
4132
4133  // Check varargs.
4134  test_varargs ("s, d' f .", "string", 65, 34.234);
4135  test_varargs_macros ();
4136
4137  // Check flexible array members.
4138  struct incomplete_array *ia =
4139    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4140  ia->datasize = 10;
4141  for (int i = 0; i < ia->datasize; ++i)
4142    ia->data[i] = i * 1.234;
4143
4144  // Check named initializers.
4145  struct named_init ni = {
4146    .number = 34,
4147    .name = L"Test wide string",
4148    .average = 543.34343,
4149  };
4150
4151  ni.number = 58;
4152
4153  int dynamic_array[ni.number];
4154  dynamic_array[ni.number - 1] = 543;
4155
4156  // work around unused variable warnings
4157  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4158	  || dynamic_array[ni.number - 1] != 543);
4159
4160  ;
4161  return 0;
4162}
4163_ACEOF
4164for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4165do
4166  CC="$ac_save_CC $ac_arg"
4167  if ac_fn_c_try_compile "$LINENO"; then :
4168  ac_cv_prog_cc_c99=$ac_arg
4169fi
4170rm -f core conftest.err conftest.$ac_objext
4171  test "x$ac_cv_prog_cc_c99" != "xno" && break
4172done
4173rm -f conftest.$ac_ext
4174CC=$ac_save_CC
4175
4176fi
4177# AC_CACHE_VAL
4178case "x$ac_cv_prog_cc_c99" in
4179  x)
4180    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4181$as_echo "none needed" >&6; } ;;
4182  xno)
4183    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4184$as_echo "unsupported" >&6; } ;;
4185  *)
4186    CC="$CC $ac_cv_prog_cc_c99"
4187    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4188$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4189esac
4190if test "x$ac_cv_prog_cc_c99" != xno; then :
4191
4192fi
4193
4194
4195
4196ac_ext=c
4197ac_cpp='$CPP $CPPFLAGS'
4198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200ac_compiler_gnu=$ac_cv_c_compiler_gnu
4201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4202$as_echo_n "checking how to run the C preprocessor... " >&6; }
4203# On Suns, sometimes $CPP names a directory.
4204if test -n "$CPP" && test -d "$CPP"; then
4205  CPP=
4206fi
4207if test -z "$CPP"; then
4208  if ${ac_cv_prog_CPP+:} false; then :
4209  $as_echo_n "(cached) " >&6
4210else
4211      # Double quotes because CPP needs to be expanded
4212    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4213    do
4214      ac_preproc_ok=false
4215for ac_c_preproc_warn_flag in '' yes
4216do
4217  # Use a header file that comes with gcc, so configuring glibc
4218  # with a fresh cross-compiler works.
4219  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4220  # <limits.h> exists even on freestanding compilers.
4221  # On the NeXT, cc -E runs the code through the compiler's parser,
4222  # not just through cpp. "Syntax error" is here to catch this case.
4223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224/* end confdefs.h.  */
4225#ifdef __STDC__
4226# include <limits.h>
4227#else
4228# include <assert.h>
4229#endif
4230		     Syntax error
4231_ACEOF
4232if ac_fn_c_try_cpp "$LINENO"; then :
4233
4234else
4235  # Broken: fails on valid input.
4236continue
4237fi
4238rm -f conftest.err conftest.i conftest.$ac_ext
4239
4240  # OK, works on sane cases.  Now check whether nonexistent headers
4241  # can be detected and how.
4242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243/* end confdefs.h.  */
4244#include <ac_nonexistent.h>
4245_ACEOF
4246if ac_fn_c_try_cpp "$LINENO"; then :
4247  # Broken: success on invalid input.
4248continue
4249else
4250  # Passes both tests.
4251ac_preproc_ok=:
4252break
4253fi
4254rm -f conftest.err conftest.i conftest.$ac_ext
4255
4256done
4257# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4258rm -f conftest.i conftest.err conftest.$ac_ext
4259if $ac_preproc_ok; then :
4260  break
4261fi
4262
4263    done
4264    ac_cv_prog_CPP=$CPP
4265
4266fi
4267  CPP=$ac_cv_prog_CPP
4268else
4269  ac_cv_prog_CPP=$CPP
4270fi
4271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4272$as_echo "$CPP" >&6; }
4273ac_preproc_ok=false
4274for ac_c_preproc_warn_flag in '' yes
4275do
4276  # Use a header file that comes with gcc, so configuring glibc
4277  # with a fresh cross-compiler works.
4278  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4279  # <limits.h> exists even on freestanding compilers.
4280  # On the NeXT, cc -E runs the code through the compiler's parser,
4281  # not just through cpp. "Syntax error" is here to catch this case.
4282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283/* end confdefs.h.  */
4284#ifdef __STDC__
4285# include <limits.h>
4286#else
4287# include <assert.h>
4288#endif
4289		     Syntax error
4290_ACEOF
4291if ac_fn_c_try_cpp "$LINENO"; then :
4292
4293else
4294  # Broken: fails on valid input.
4295continue
4296fi
4297rm -f conftest.err conftest.i conftest.$ac_ext
4298
4299  # OK, works on sane cases.  Now check whether nonexistent headers
4300  # can be detected and how.
4301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302/* end confdefs.h.  */
4303#include <ac_nonexistent.h>
4304_ACEOF
4305if ac_fn_c_try_cpp "$LINENO"; then :
4306  # Broken: success on invalid input.
4307continue
4308else
4309  # Passes both tests.
4310ac_preproc_ok=:
4311break
4312fi
4313rm -f conftest.err conftest.i conftest.$ac_ext
4314
4315done
4316# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4317rm -f conftest.i conftest.err conftest.$ac_ext
4318if $ac_preproc_ok; then :
4319
4320else
4321  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4322$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4323as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4324See \`config.log' for more details" "$LINENO" 5; }
4325fi
4326
4327ac_ext=c
4328ac_cpp='$CPP $CPPFLAGS'
4329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4331ac_compiler_gnu=$ac_cv_c_compiler_gnu
4332
4333
4334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4335$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4336if ${ac_cv_path_GREP+:} false; then :
4337  $as_echo_n "(cached) " >&6
4338else
4339  if test -z "$GREP"; then
4340  ac_path_GREP_found=false
4341  # Loop through the user's path and test for each of PROGNAME-LIST
4342  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4344do
4345  IFS=$as_save_IFS
4346  test -z "$as_dir" && as_dir=.
4347    for ac_prog in grep ggrep; do
4348    for ac_exec_ext in '' $ac_executable_extensions; do
4349      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4350      as_fn_executable_p "$ac_path_GREP" || continue
4351# Check for GNU ac_path_GREP and select it if it is found.
4352  # Check for GNU $ac_path_GREP
4353case `"$ac_path_GREP" --version 2>&1` in
4354*GNU*)
4355  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4356*)
4357  ac_count=0
4358  $as_echo_n 0123456789 >"conftest.in"
4359  while :
4360  do
4361    cat "conftest.in" "conftest.in" >"conftest.tmp"
4362    mv "conftest.tmp" "conftest.in"
4363    cp "conftest.in" "conftest.nl"
4364    $as_echo 'GREP' >> "conftest.nl"
4365    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4366    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4367    as_fn_arith $ac_count + 1 && ac_count=$as_val
4368    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4369      # Best one so far, save it but keep looking for a better one
4370      ac_cv_path_GREP="$ac_path_GREP"
4371      ac_path_GREP_max=$ac_count
4372    fi
4373    # 10*(2^10) chars as input seems more than enough
4374    test $ac_count -gt 10 && break
4375  done
4376  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4377esac
4378
4379      $ac_path_GREP_found && break 3
4380    done
4381  done
4382  done
4383IFS=$as_save_IFS
4384  if test -z "$ac_cv_path_GREP"; then
4385    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4386  fi
4387else
4388  ac_cv_path_GREP=$GREP
4389fi
4390
4391fi
4392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4393$as_echo "$ac_cv_path_GREP" >&6; }
4394 GREP="$ac_cv_path_GREP"
4395
4396
4397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4398$as_echo_n "checking for egrep... " >&6; }
4399if ${ac_cv_path_EGREP+:} false; then :
4400  $as_echo_n "(cached) " >&6
4401else
4402  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4403   then ac_cv_path_EGREP="$GREP -E"
4404   else
4405     if test -z "$EGREP"; then
4406  ac_path_EGREP_found=false
4407  # Loop through the user's path and test for each of PROGNAME-LIST
4408  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4410do
4411  IFS=$as_save_IFS
4412  test -z "$as_dir" && as_dir=.
4413    for ac_prog in egrep; do
4414    for ac_exec_ext in '' $ac_executable_extensions; do
4415      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4416      as_fn_executable_p "$ac_path_EGREP" || continue
4417# Check for GNU ac_path_EGREP and select it if it is found.
4418  # Check for GNU $ac_path_EGREP
4419case `"$ac_path_EGREP" --version 2>&1` in
4420*GNU*)
4421  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4422*)
4423  ac_count=0
4424  $as_echo_n 0123456789 >"conftest.in"
4425  while :
4426  do
4427    cat "conftest.in" "conftest.in" >"conftest.tmp"
4428    mv "conftest.tmp" "conftest.in"
4429    cp "conftest.in" "conftest.nl"
4430    $as_echo 'EGREP' >> "conftest.nl"
4431    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4432    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4433    as_fn_arith $ac_count + 1 && ac_count=$as_val
4434    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4435      # Best one so far, save it but keep looking for a better one
4436      ac_cv_path_EGREP="$ac_path_EGREP"
4437      ac_path_EGREP_max=$ac_count
4438    fi
4439    # 10*(2^10) chars as input seems more than enough
4440    test $ac_count -gt 10 && break
4441  done
4442  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4443esac
4444
4445      $ac_path_EGREP_found && break 3
4446    done
4447  done
4448  done
4449IFS=$as_save_IFS
4450  if test -z "$ac_cv_path_EGREP"; then
4451    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4452  fi
4453else
4454  ac_cv_path_EGREP=$EGREP
4455fi
4456
4457   fi
4458fi
4459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4460$as_echo "$ac_cv_path_EGREP" >&6; }
4461 EGREP="$ac_cv_path_EGREP"
4462
4463
4464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4465$as_echo_n "checking for ANSI C header files... " >&6; }
4466if ${ac_cv_header_stdc+:} false; then :
4467  $as_echo_n "(cached) " >&6
4468else
4469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470/* end confdefs.h.  */
4471#include <stdlib.h>
4472#include <stdarg.h>
4473#include <string.h>
4474#include <float.h>
4475
4476int
4477main ()
4478{
4479
4480  ;
4481  return 0;
4482}
4483_ACEOF
4484if ac_fn_c_try_compile "$LINENO"; then :
4485  ac_cv_header_stdc=yes
4486else
4487  ac_cv_header_stdc=no
4488fi
4489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490
4491if test $ac_cv_header_stdc = yes; then
4492  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494/* end confdefs.h.  */
4495#include <string.h>
4496
4497_ACEOF
4498if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4499  $EGREP "memchr" >/dev/null 2>&1; then :
4500
4501else
4502  ac_cv_header_stdc=no
4503fi
4504rm -f conftest*
4505
4506fi
4507
4508if test $ac_cv_header_stdc = yes; then
4509  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511/* end confdefs.h.  */
4512#include <stdlib.h>
4513
4514_ACEOF
4515if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4516  $EGREP "free" >/dev/null 2>&1; then :
4517
4518else
4519  ac_cv_header_stdc=no
4520fi
4521rm -f conftest*
4522
4523fi
4524
4525if test $ac_cv_header_stdc = yes; then
4526  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4527  if test "$cross_compiling" = yes; then :
4528  :
4529else
4530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531/* end confdefs.h.  */
4532#include <ctype.h>
4533#include <stdlib.h>
4534#if ((' ' & 0x0FF) == 0x020)
4535# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4536# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4537#else
4538# define ISLOWER(c) \
4539		   (('a' <= (c) && (c) <= 'i') \
4540		     || ('j' <= (c) && (c) <= 'r') \
4541		     || ('s' <= (c) && (c) <= 'z'))
4542# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4543#endif
4544
4545#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4546int
4547main ()
4548{
4549  int i;
4550  for (i = 0; i < 256; i++)
4551    if (XOR (islower (i), ISLOWER (i))
4552	|| toupper (i) != TOUPPER (i))
4553      return 2;
4554  return 0;
4555}
4556_ACEOF
4557if ac_fn_c_try_run "$LINENO"; then :
4558
4559else
4560  ac_cv_header_stdc=no
4561fi
4562rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4563  conftest.$ac_objext conftest.beam conftest.$ac_ext
4564fi
4565
4566fi
4567fi
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4569$as_echo "$ac_cv_header_stdc" >&6; }
4570if test $ac_cv_header_stdc = yes; then
4571
4572$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4573
4574fi
4575
4576# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4577for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4578		  inttypes.h stdint.h unistd.h
4579do :
4580  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4581ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4582"
4583if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4584  cat >>confdefs.h <<_ACEOF
4585#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4586_ACEOF
4587
4588fi
4589
4590done
4591
4592
4593
4594
4595
4596
4597ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4598if test "x$ac_cv_have_decl___clang__" = xyes; then :
4599  CLANGCC="yes"
4600else
4601  CLANGCC="no"
4602fi
4603
4604ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4605if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4606  INTELCC="yes"
4607else
4608  INTELCC="no"
4609fi
4610
4611ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4612if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4613  SUNCC="yes"
4614else
4615  SUNCC="no"
4616fi
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4627	if test -n "$ac_tool_prefix"; then
4628  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4629set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4631$as_echo_n "checking for $ac_word... " >&6; }
4632if ${ac_cv_path_PKG_CONFIG+:} false; then :
4633  $as_echo_n "(cached) " >&6
4634else
4635  case $PKG_CONFIG in
4636  [\\/]* | ?:[\\/]*)
4637  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4638  ;;
4639  *)
4640  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641for as_dir in $PATH
4642do
4643  IFS=$as_save_IFS
4644  test -z "$as_dir" && as_dir=.
4645    for ac_exec_ext in '' $ac_executable_extensions; do
4646  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4647    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4648    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4649    break 2
4650  fi
4651done
4652  done
4653IFS=$as_save_IFS
4654
4655  ;;
4656esac
4657fi
4658PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4659if test -n "$PKG_CONFIG"; then
4660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4661$as_echo "$PKG_CONFIG" >&6; }
4662else
4663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664$as_echo "no" >&6; }
4665fi
4666
4667
4668fi
4669if test -z "$ac_cv_path_PKG_CONFIG"; then
4670  ac_pt_PKG_CONFIG=$PKG_CONFIG
4671  # Extract the first word of "pkg-config", so it can be a program name with args.
4672set dummy pkg-config; ac_word=$2
4673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4674$as_echo_n "checking for $ac_word... " >&6; }
4675if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4676  $as_echo_n "(cached) " >&6
4677else
4678  case $ac_pt_PKG_CONFIG in
4679  [\\/]* | ?:[\\/]*)
4680  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4681  ;;
4682  *)
4683  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684for as_dir in $PATH
4685do
4686  IFS=$as_save_IFS
4687  test -z "$as_dir" && as_dir=.
4688    for ac_exec_ext in '' $ac_executable_extensions; do
4689  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4690    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4691    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4692    break 2
4693  fi
4694done
4695  done
4696IFS=$as_save_IFS
4697
4698  ;;
4699esac
4700fi
4701ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4702if test -n "$ac_pt_PKG_CONFIG"; then
4703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4704$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4705else
4706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4707$as_echo "no" >&6; }
4708fi
4709
4710  if test "x$ac_pt_PKG_CONFIG" = x; then
4711    PKG_CONFIG=""
4712  else
4713    case $cross_compiling:$ac_tool_warned in
4714yes:)
4715{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4716$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4717ac_tool_warned=yes ;;
4718esac
4719    PKG_CONFIG=$ac_pt_PKG_CONFIG
4720  fi
4721else
4722  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4723fi
4724
4725fi
4726if test -n "$PKG_CONFIG"; then
4727	_pkg_min_version=0.9.0
4728	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4729$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4730	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4731		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4732$as_echo "yes" >&6; }
4733	else
4734		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4735$as_echo "no" >&6; }
4736		PKG_CONFIG=""
4737	fi
4738fi
4739# Make sure we can run config.sub.
4740$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4741  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4742
4743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4744$as_echo_n "checking build system type... " >&6; }
4745if ${ac_cv_build+:} false; then :
4746  $as_echo_n "(cached) " >&6
4747else
4748  ac_build_alias=$build_alias
4749test "x$ac_build_alias" = x &&
4750  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4751test "x$ac_build_alias" = x &&
4752  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4753ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4754  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4755
4756fi
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4758$as_echo "$ac_cv_build" >&6; }
4759case $ac_cv_build in
4760*-*-*) ;;
4761*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4762esac
4763build=$ac_cv_build
4764ac_save_IFS=$IFS; IFS='-'
4765set x $ac_cv_build
4766shift
4767build_cpu=$1
4768build_vendor=$2
4769shift; shift
4770# Remember, the first character of IFS is used to create $*,
4771# except with old shells:
4772build_os=$*
4773IFS=$ac_save_IFS
4774case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4775
4776
4777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4778$as_echo_n "checking host system type... " >&6; }
4779if ${ac_cv_host+:} false; then :
4780  $as_echo_n "(cached) " >&6
4781else
4782  if test "x$host_alias" = x; then
4783  ac_cv_host=$ac_cv_build
4784else
4785  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4786    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4787fi
4788
4789fi
4790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4791$as_echo "$ac_cv_host" >&6; }
4792case $ac_cv_host in
4793*-*-*) ;;
4794*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4795esac
4796host=$ac_cv_host
4797ac_save_IFS=$IFS; IFS='-'
4798set x $ac_cv_host
4799shift
4800host_cpu=$1
4801host_vendor=$2
4802shift; shift
4803# Remember, the first character of IFS is used to create $*,
4804# except with old shells:
4805host_os=$*
4806IFS=$ac_save_IFS
4807case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4808
4809
4810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4811$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4812if ${ac_cv_path_SED+:} false; then :
4813  $as_echo_n "(cached) " >&6
4814else
4815            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4816     for ac_i in 1 2 3 4 5 6 7; do
4817       ac_script="$ac_script$as_nl$ac_script"
4818     done
4819     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4820     { ac_script=; unset ac_script;}
4821     if test -z "$SED"; then
4822  ac_path_SED_found=false
4823  # Loop through the user's path and test for each of PROGNAME-LIST
4824  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825for as_dir in $PATH
4826do
4827  IFS=$as_save_IFS
4828  test -z "$as_dir" && as_dir=.
4829    for ac_prog in sed gsed; do
4830    for ac_exec_ext in '' $ac_executable_extensions; do
4831      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4832      as_fn_executable_p "$ac_path_SED" || continue
4833# Check for GNU ac_path_SED and select it if it is found.
4834  # Check for GNU $ac_path_SED
4835case `"$ac_path_SED" --version 2>&1` in
4836*GNU*)
4837  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4838*)
4839  ac_count=0
4840  $as_echo_n 0123456789 >"conftest.in"
4841  while :
4842  do
4843    cat "conftest.in" "conftest.in" >"conftest.tmp"
4844    mv "conftest.tmp" "conftest.in"
4845    cp "conftest.in" "conftest.nl"
4846    $as_echo '' >> "conftest.nl"
4847    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4848    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4849    as_fn_arith $ac_count + 1 && ac_count=$as_val
4850    if test $ac_count -gt ${ac_path_SED_max-0}; then
4851      # Best one so far, save it but keep looking for a better one
4852      ac_cv_path_SED="$ac_path_SED"
4853      ac_path_SED_max=$ac_count
4854    fi
4855    # 10*(2^10) chars as input seems more than enough
4856    test $ac_count -gt 10 && break
4857  done
4858  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4859esac
4860
4861      $ac_path_SED_found && break 3
4862    done
4863  done
4864  done
4865IFS=$as_save_IFS
4866  if test -z "$ac_cv_path_SED"; then
4867    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4868  fi
4869else
4870  ac_cv_path_SED=$SED
4871fi
4872
4873fi
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4875$as_echo "$ac_cv_path_SED" >&6; }
4876 SED="$ac_cv_path_SED"
4877  rm -f conftest.sed
4878
4879
4880
4881
4882
4883
4884# Check whether --enable-selective-werror was given.
4885if test "${enable_selective_werror+set}" = set; then :
4886  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4887else
4888  SELECTIVE_WERROR=yes
4889fi
4890
4891
4892
4893
4894
4895# -v is too short to test reliably with XORG_TESTSET_CFLAG
4896if test "x$SUNCC" = "xyes"; then
4897    BASE_CFLAGS="-v"
4898else
4899    BASE_CFLAGS=""
4900fi
4901
4902# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916xorg_testset_save_CFLAGS="$CFLAGS"
4917
4918if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4919	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4920	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4921$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4922if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4923  $as_echo_n "(cached) " >&6
4924else
4925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926/* end confdefs.h.  */
4927int i;
4928_ACEOF
4929if ac_fn_c_try_compile "$LINENO"; then :
4930  xorg_cv_cc_flag_unknown_warning_option=yes
4931else
4932  xorg_cv_cc_flag_unknown_warning_option=no
4933fi
4934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4935fi
4936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4937$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4938	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4939	CFLAGS="$xorg_testset_save_CFLAGS"
4940fi
4941
4942if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4943	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4944		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4945	fi
4946	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4947	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4948$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4949if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4950  $as_echo_n "(cached) " >&6
4951else
4952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953/* end confdefs.h.  */
4954int i;
4955_ACEOF
4956if ac_fn_c_try_compile "$LINENO"; then :
4957  xorg_cv_cc_flag_unused_command_line_argument=yes
4958else
4959  xorg_cv_cc_flag_unused_command_line_argument=no
4960fi
4961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962fi
4963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4964$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4965	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4966	CFLAGS="$xorg_testset_save_CFLAGS"
4967fi
4968
4969found="no"
4970
4971	if test $found = "no" ; then
4972		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4973			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4974		fi
4975
4976		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4977			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4978		fi
4979
4980		CFLAGS="$CFLAGS -Wall"
4981
4982		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4983$as_echo_n "checking if $CC supports -Wall... " >&6; }
4984		cacheid=xorg_cv_cc_flag__Wall
4985		if eval \${$cacheid+:} false; then :
4986  $as_echo_n "(cached) " >&6
4987else
4988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989/* end confdefs.h.  */
4990int i;
4991int
4992main ()
4993{
4994
4995  ;
4996  return 0;
4997}
4998_ACEOF
4999if ac_fn_c_try_link "$LINENO"; then :
5000  eval $cacheid=yes
5001else
5002  eval $cacheid=no
5003fi
5004rm -f core conftest.err conftest.$ac_objext \
5005    conftest$ac_exeext conftest.$ac_ext
5006fi
5007
5008
5009		CFLAGS="$xorg_testset_save_CFLAGS"
5010
5011		eval supported=\$$cacheid
5012		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5013$as_echo "$supported" >&6; }
5014		if test "$supported" = "yes" ; then
5015			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5016			found="yes"
5017		fi
5018	fi
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034xorg_testset_save_CFLAGS="$CFLAGS"
5035
5036if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5037	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5038	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5039$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5040if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5041  $as_echo_n "(cached) " >&6
5042else
5043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044/* end confdefs.h.  */
5045int i;
5046_ACEOF
5047if ac_fn_c_try_compile "$LINENO"; then :
5048  xorg_cv_cc_flag_unknown_warning_option=yes
5049else
5050  xorg_cv_cc_flag_unknown_warning_option=no
5051fi
5052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5053fi
5054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5055$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5056	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5057	CFLAGS="$xorg_testset_save_CFLAGS"
5058fi
5059
5060if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5061	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5062		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5063	fi
5064	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5065	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5066$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5067if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5068  $as_echo_n "(cached) " >&6
5069else
5070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071/* end confdefs.h.  */
5072int i;
5073_ACEOF
5074if ac_fn_c_try_compile "$LINENO"; then :
5075  xorg_cv_cc_flag_unused_command_line_argument=yes
5076else
5077  xorg_cv_cc_flag_unused_command_line_argument=no
5078fi
5079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5080fi
5081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5082$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5083	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5084	CFLAGS="$xorg_testset_save_CFLAGS"
5085fi
5086
5087found="no"
5088
5089	if test $found = "no" ; then
5090		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5091			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5092		fi
5093
5094		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5095			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5096		fi
5097
5098		CFLAGS="$CFLAGS -Wpointer-arith"
5099
5100		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5101$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5102		cacheid=xorg_cv_cc_flag__Wpointer_arith
5103		if eval \${$cacheid+:} false; then :
5104  $as_echo_n "(cached) " >&6
5105else
5106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107/* end confdefs.h.  */
5108int i;
5109int
5110main ()
5111{
5112
5113  ;
5114  return 0;
5115}
5116_ACEOF
5117if ac_fn_c_try_link "$LINENO"; then :
5118  eval $cacheid=yes
5119else
5120  eval $cacheid=no
5121fi
5122rm -f core conftest.err conftest.$ac_objext \
5123    conftest$ac_exeext conftest.$ac_ext
5124fi
5125
5126
5127		CFLAGS="$xorg_testset_save_CFLAGS"
5128
5129		eval supported=\$$cacheid
5130		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5131$as_echo "$supported" >&6; }
5132		if test "$supported" = "yes" ; then
5133			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5134			found="yes"
5135		fi
5136	fi
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152xorg_testset_save_CFLAGS="$CFLAGS"
5153
5154if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5155	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5156	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5157$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5158if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5159  $as_echo_n "(cached) " >&6
5160else
5161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162/* end confdefs.h.  */
5163int i;
5164_ACEOF
5165if ac_fn_c_try_compile "$LINENO"; then :
5166  xorg_cv_cc_flag_unknown_warning_option=yes
5167else
5168  xorg_cv_cc_flag_unknown_warning_option=no
5169fi
5170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5171fi
5172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5173$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5174	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5175	CFLAGS="$xorg_testset_save_CFLAGS"
5176fi
5177
5178if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5179	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5180		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5181	fi
5182	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5183	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5184$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5185if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5186  $as_echo_n "(cached) " >&6
5187else
5188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5189/* end confdefs.h.  */
5190int i;
5191_ACEOF
5192if ac_fn_c_try_compile "$LINENO"; then :
5193  xorg_cv_cc_flag_unused_command_line_argument=yes
5194else
5195  xorg_cv_cc_flag_unused_command_line_argument=no
5196fi
5197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5198fi
5199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5200$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5201	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5202	CFLAGS="$xorg_testset_save_CFLAGS"
5203fi
5204
5205found="no"
5206
5207	if test $found = "no" ; then
5208		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5209			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5210		fi
5211
5212		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5213			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5214		fi
5215
5216		CFLAGS="$CFLAGS -Wmissing-declarations"
5217
5218		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5219$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5220		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5221		if eval \${$cacheid+:} false; then :
5222  $as_echo_n "(cached) " >&6
5223else
5224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5225/* end confdefs.h.  */
5226int i;
5227int
5228main ()
5229{
5230
5231  ;
5232  return 0;
5233}
5234_ACEOF
5235if ac_fn_c_try_link "$LINENO"; then :
5236  eval $cacheid=yes
5237else
5238  eval $cacheid=no
5239fi
5240rm -f core conftest.err conftest.$ac_objext \
5241    conftest$ac_exeext conftest.$ac_ext
5242fi
5243
5244
5245		CFLAGS="$xorg_testset_save_CFLAGS"
5246
5247		eval supported=\$$cacheid
5248		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5249$as_echo "$supported" >&6; }
5250		if test "$supported" = "yes" ; then
5251			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5252			found="yes"
5253		fi
5254	fi
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270xorg_testset_save_CFLAGS="$CFLAGS"
5271
5272if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5273	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5274	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5275$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5276if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5277  $as_echo_n "(cached) " >&6
5278else
5279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280/* end confdefs.h.  */
5281int i;
5282_ACEOF
5283if ac_fn_c_try_compile "$LINENO"; then :
5284  xorg_cv_cc_flag_unknown_warning_option=yes
5285else
5286  xorg_cv_cc_flag_unknown_warning_option=no
5287fi
5288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289fi
5290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5291$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5292	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5293	CFLAGS="$xorg_testset_save_CFLAGS"
5294fi
5295
5296if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5297	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5298		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5299	fi
5300	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5301	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5302$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5303if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5304  $as_echo_n "(cached) " >&6
5305else
5306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307/* end confdefs.h.  */
5308int i;
5309_ACEOF
5310if ac_fn_c_try_compile "$LINENO"; then :
5311  xorg_cv_cc_flag_unused_command_line_argument=yes
5312else
5313  xorg_cv_cc_flag_unused_command_line_argument=no
5314fi
5315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5316fi
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5318$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5319	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5320	CFLAGS="$xorg_testset_save_CFLAGS"
5321fi
5322
5323found="no"
5324
5325	if test $found = "no" ; then
5326		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5327			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5328		fi
5329
5330		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5331			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5332		fi
5333
5334		CFLAGS="$CFLAGS -Wformat=2"
5335
5336		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5337$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5338		cacheid=xorg_cv_cc_flag__Wformat_2
5339		if eval \${$cacheid+:} false; then :
5340  $as_echo_n "(cached) " >&6
5341else
5342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343/* end confdefs.h.  */
5344int i;
5345int
5346main ()
5347{
5348
5349  ;
5350  return 0;
5351}
5352_ACEOF
5353if ac_fn_c_try_link "$LINENO"; then :
5354  eval $cacheid=yes
5355else
5356  eval $cacheid=no
5357fi
5358rm -f core conftest.err conftest.$ac_objext \
5359    conftest$ac_exeext conftest.$ac_ext
5360fi
5361
5362
5363		CFLAGS="$xorg_testset_save_CFLAGS"
5364
5365		eval supported=\$$cacheid
5366		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5367$as_echo "$supported" >&6; }
5368		if test "$supported" = "yes" ; then
5369			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5370			found="yes"
5371		fi
5372	fi
5373
5374	if test $found = "no" ; then
5375		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5376			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5377		fi
5378
5379		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5380			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5381		fi
5382
5383		CFLAGS="$CFLAGS -Wformat"
5384
5385		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5386$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5387		cacheid=xorg_cv_cc_flag__Wformat
5388		if eval \${$cacheid+:} false; then :
5389  $as_echo_n "(cached) " >&6
5390else
5391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392/* end confdefs.h.  */
5393int i;
5394int
5395main ()
5396{
5397
5398  ;
5399  return 0;
5400}
5401_ACEOF
5402if ac_fn_c_try_link "$LINENO"; then :
5403  eval $cacheid=yes
5404else
5405  eval $cacheid=no
5406fi
5407rm -f core conftest.err conftest.$ac_objext \
5408    conftest$ac_exeext conftest.$ac_ext
5409fi
5410
5411
5412		CFLAGS="$xorg_testset_save_CFLAGS"
5413
5414		eval supported=\$$cacheid
5415		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5416$as_echo "$supported" >&6; }
5417		if test "$supported" = "yes" ; then
5418			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5419			found="yes"
5420		fi
5421	fi
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439xorg_testset_save_CFLAGS="$CFLAGS"
5440
5441if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5442	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5443	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5444$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5445if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5446  $as_echo_n "(cached) " >&6
5447else
5448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449/* end confdefs.h.  */
5450int i;
5451_ACEOF
5452if ac_fn_c_try_compile "$LINENO"; then :
5453  xorg_cv_cc_flag_unknown_warning_option=yes
5454else
5455  xorg_cv_cc_flag_unknown_warning_option=no
5456fi
5457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5458fi
5459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5460$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5461	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5462	CFLAGS="$xorg_testset_save_CFLAGS"
5463fi
5464
5465if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5466	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5467		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5468	fi
5469	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5470	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5471$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5472if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5473  $as_echo_n "(cached) " >&6
5474else
5475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476/* end confdefs.h.  */
5477int i;
5478_ACEOF
5479if ac_fn_c_try_compile "$LINENO"; then :
5480  xorg_cv_cc_flag_unused_command_line_argument=yes
5481else
5482  xorg_cv_cc_flag_unused_command_line_argument=no
5483fi
5484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5485fi
5486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5487$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5488	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5489	CFLAGS="$xorg_testset_save_CFLAGS"
5490fi
5491
5492found="no"
5493
5494	if test $found = "no" ; then
5495		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5496			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5497		fi
5498
5499		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5500			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5501		fi
5502
5503		CFLAGS="$CFLAGS -Wstrict-prototypes"
5504
5505		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5506$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5507		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5508		if eval \${$cacheid+:} false; then :
5509  $as_echo_n "(cached) " >&6
5510else
5511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512/* end confdefs.h.  */
5513int i;
5514int
5515main ()
5516{
5517
5518  ;
5519  return 0;
5520}
5521_ACEOF
5522if ac_fn_c_try_link "$LINENO"; then :
5523  eval $cacheid=yes
5524else
5525  eval $cacheid=no
5526fi
5527rm -f core conftest.err conftest.$ac_objext \
5528    conftest$ac_exeext conftest.$ac_ext
5529fi
5530
5531
5532		CFLAGS="$xorg_testset_save_CFLAGS"
5533
5534		eval supported=\$$cacheid
5535		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5536$as_echo "$supported" >&6; }
5537		if test "$supported" = "yes" ; then
5538			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5539			found="yes"
5540		fi
5541	fi
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557xorg_testset_save_CFLAGS="$CFLAGS"
5558
5559if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5560	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5561	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5562$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5563if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5564  $as_echo_n "(cached) " >&6
5565else
5566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567/* end confdefs.h.  */
5568int i;
5569_ACEOF
5570if ac_fn_c_try_compile "$LINENO"; then :
5571  xorg_cv_cc_flag_unknown_warning_option=yes
5572else
5573  xorg_cv_cc_flag_unknown_warning_option=no
5574fi
5575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576fi
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5578$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5579	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5580	CFLAGS="$xorg_testset_save_CFLAGS"
5581fi
5582
5583if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5584	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5585		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5586	fi
5587	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5588	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5589$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5590if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5591  $as_echo_n "(cached) " >&6
5592else
5593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594/* end confdefs.h.  */
5595int i;
5596_ACEOF
5597if ac_fn_c_try_compile "$LINENO"; then :
5598  xorg_cv_cc_flag_unused_command_line_argument=yes
5599else
5600  xorg_cv_cc_flag_unused_command_line_argument=no
5601fi
5602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5603fi
5604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5605$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5606	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5607	CFLAGS="$xorg_testset_save_CFLAGS"
5608fi
5609
5610found="no"
5611
5612	if test $found = "no" ; then
5613		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5614			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5615		fi
5616
5617		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5618			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5619		fi
5620
5621		CFLAGS="$CFLAGS -Wmissing-prototypes"
5622
5623		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5624$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5625		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5626		if eval \${$cacheid+:} false; then :
5627  $as_echo_n "(cached) " >&6
5628else
5629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630/* end confdefs.h.  */
5631int i;
5632int
5633main ()
5634{
5635
5636  ;
5637  return 0;
5638}
5639_ACEOF
5640if ac_fn_c_try_link "$LINENO"; then :
5641  eval $cacheid=yes
5642else
5643  eval $cacheid=no
5644fi
5645rm -f core conftest.err conftest.$ac_objext \
5646    conftest$ac_exeext conftest.$ac_ext
5647fi
5648
5649
5650		CFLAGS="$xorg_testset_save_CFLAGS"
5651
5652		eval supported=\$$cacheid
5653		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5654$as_echo "$supported" >&6; }
5655		if test "$supported" = "yes" ; then
5656			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5657			found="yes"
5658		fi
5659	fi
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675xorg_testset_save_CFLAGS="$CFLAGS"
5676
5677if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5678	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5679	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5680$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5681if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5682  $as_echo_n "(cached) " >&6
5683else
5684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685/* end confdefs.h.  */
5686int i;
5687_ACEOF
5688if ac_fn_c_try_compile "$LINENO"; then :
5689  xorg_cv_cc_flag_unknown_warning_option=yes
5690else
5691  xorg_cv_cc_flag_unknown_warning_option=no
5692fi
5693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5694fi
5695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5696$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5697	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5698	CFLAGS="$xorg_testset_save_CFLAGS"
5699fi
5700
5701if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5702	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5703		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5704	fi
5705	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5706	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5707$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5708if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5709  $as_echo_n "(cached) " >&6
5710else
5711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5712/* end confdefs.h.  */
5713int i;
5714_ACEOF
5715if ac_fn_c_try_compile "$LINENO"; then :
5716  xorg_cv_cc_flag_unused_command_line_argument=yes
5717else
5718  xorg_cv_cc_flag_unused_command_line_argument=no
5719fi
5720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5721fi
5722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5723$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5724	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5725	CFLAGS="$xorg_testset_save_CFLAGS"
5726fi
5727
5728found="no"
5729
5730	if test $found = "no" ; then
5731		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5732			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5733		fi
5734
5735		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5736			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5737		fi
5738
5739		CFLAGS="$CFLAGS -Wnested-externs"
5740
5741		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5742$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5743		cacheid=xorg_cv_cc_flag__Wnested_externs
5744		if eval \${$cacheid+:} false; then :
5745  $as_echo_n "(cached) " >&6
5746else
5747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5748/* end confdefs.h.  */
5749int i;
5750int
5751main ()
5752{
5753
5754  ;
5755  return 0;
5756}
5757_ACEOF
5758if ac_fn_c_try_link "$LINENO"; then :
5759  eval $cacheid=yes
5760else
5761  eval $cacheid=no
5762fi
5763rm -f core conftest.err conftest.$ac_objext \
5764    conftest$ac_exeext conftest.$ac_ext
5765fi
5766
5767
5768		CFLAGS="$xorg_testset_save_CFLAGS"
5769
5770		eval supported=\$$cacheid
5771		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5772$as_echo "$supported" >&6; }
5773		if test "$supported" = "yes" ; then
5774			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5775			found="yes"
5776		fi
5777	fi
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793xorg_testset_save_CFLAGS="$CFLAGS"
5794
5795if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5796	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5797	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5798$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5799if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5800  $as_echo_n "(cached) " >&6
5801else
5802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803/* end confdefs.h.  */
5804int i;
5805_ACEOF
5806if ac_fn_c_try_compile "$LINENO"; then :
5807  xorg_cv_cc_flag_unknown_warning_option=yes
5808else
5809  xorg_cv_cc_flag_unknown_warning_option=no
5810fi
5811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812fi
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5814$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5815	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5816	CFLAGS="$xorg_testset_save_CFLAGS"
5817fi
5818
5819if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5820	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5821		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5822	fi
5823	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5824	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5825$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5826if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5827  $as_echo_n "(cached) " >&6
5828else
5829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5830/* end confdefs.h.  */
5831int i;
5832_ACEOF
5833if ac_fn_c_try_compile "$LINENO"; then :
5834  xorg_cv_cc_flag_unused_command_line_argument=yes
5835else
5836  xorg_cv_cc_flag_unused_command_line_argument=no
5837fi
5838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5839fi
5840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5841$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5842	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5843	CFLAGS="$xorg_testset_save_CFLAGS"
5844fi
5845
5846found="no"
5847
5848	if test $found = "no" ; then
5849		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5850			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5851		fi
5852
5853		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5854			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5855		fi
5856
5857		CFLAGS="$CFLAGS -Wbad-function-cast"
5858
5859		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5860$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5861		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5862		if eval \${$cacheid+:} false; then :
5863  $as_echo_n "(cached) " >&6
5864else
5865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866/* end confdefs.h.  */
5867int i;
5868int
5869main ()
5870{
5871
5872  ;
5873  return 0;
5874}
5875_ACEOF
5876if ac_fn_c_try_link "$LINENO"; then :
5877  eval $cacheid=yes
5878else
5879  eval $cacheid=no
5880fi
5881rm -f core conftest.err conftest.$ac_objext \
5882    conftest$ac_exeext conftest.$ac_ext
5883fi
5884
5885
5886		CFLAGS="$xorg_testset_save_CFLAGS"
5887
5888		eval supported=\$$cacheid
5889		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5890$as_echo "$supported" >&6; }
5891		if test "$supported" = "yes" ; then
5892			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5893			found="yes"
5894		fi
5895	fi
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911xorg_testset_save_CFLAGS="$CFLAGS"
5912
5913if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5914	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5915	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5916$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5917if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5918  $as_echo_n "(cached) " >&6
5919else
5920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921/* end confdefs.h.  */
5922int i;
5923_ACEOF
5924if ac_fn_c_try_compile "$LINENO"; then :
5925  xorg_cv_cc_flag_unknown_warning_option=yes
5926else
5927  xorg_cv_cc_flag_unknown_warning_option=no
5928fi
5929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5930fi
5931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5932$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5933	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5934	CFLAGS="$xorg_testset_save_CFLAGS"
5935fi
5936
5937if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5938	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5939		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5940	fi
5941	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5942	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5943$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5944if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5945  $as_echo_n "(cached) " >&6
5946else
5947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948/* end confdefs.h.  */
5949int i;
5950_ACEOF
5951if ac_fn_c_try_compile "$LINENO"; then :
5952  xorg_cv_cc_flag_unused_command_line_argument=yes
5953else
5954  xorg_cv_cc_flag_unused_command_line_argument=no
5955fi
5956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5957fi
5958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5959$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5960	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5961	CFLAGS="$xorg_testset_save_CFLAGS"
5962fi
5963
5964found="no"
5965
5966	if test $found = "no" ; then
5967		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5968			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5969		fi
5970
5971		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5972			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5973		fi
5974
5975		CFLAGS="$CFLAGS -Wold-style-definition"
5976
5977		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5978$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5979		cacheid=xorg_cv_cc_flag__Wold_style_definition
5980		if eval \${$cacheid+:} false; then :
5981  $as_echo_n "(cached) " >&6
5982else
5983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984/* end confdefs.h.  */
5985int i;
5986int
5987main ()
5988{
5989
5990  ;
5991  return 0;
5992}
5993_ACEOF
5994if ac_fn_c_try_link "$LINENO"; then :
5995  eval $cacheid=yes
5996else
5997  eval $cacheid=no
5998fi
5999rm -f core conftest.err conftest.$ac_objext \
6000    conftest$ac_exeext conftest.$ac_ext
6001fi
6002
6003
6004		CFLAGS="$xorg_testset_save_CFLAGS"
6005
6006		eval supported=\$$cacheid
6007		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6008$as_echo "$supported" >&6; }
6009		if test "$supported" = "yes" ; then
6010			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6011			found="yes"
6012		fi
6013	fi
6014
6015	if test $found = "no" ; then
6016		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6017			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6018		fi
6019
6020		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6021			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6022		fi
6023
6024		CFLAGS="$CFLAGS -fd"
6025
6026		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6027$as_echo_n "checking if $CC supports -fd... " >&6; }
6028		cacheid=xorg_cv_cc_flag__fd
6029		if eval \${$cacheid+:} false; then :
6030  $as_echo_n "(cached) " >&6
6031else
6032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6033/* end confdefs.h.  */
6034int i;
6035int
6036main ()
6037{
6038
6039  ;
6040  return 0;
6041}
6042_ACEOF
6043if ac_fn_c_try_link "$LINENO"; then :
6044  eval $cacheid=yes
6045else
6046  eval $cacheid=no
6047fi
6048rm -f core conftest.err conftest.$ac_objext \
6049    conftest$ac_exeext conftest.$ac_ext
6050fi
6051
6052
6053		CFLAGS="$xorg_testset_save_CFLAGS"
6054
6055		eval supported=\$$cacheid
6056		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6057$as_echo "$supported" >&6; }
6058		if test "$supported" = "yes" ; then
6059			BASE_CFLAGS="$BASE_CFLAGS -fd"
6060			found="yes"
6061		fi
6062	fi
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078xorg_testset_save_CFLAGS="$CFLAGS"
6079
6080if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6081	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6082	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6083$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6084if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6085  $as_echo_n "(cached) " >&6
6086else
6087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088/* end confdefs.h.  */
6089int i;
6090_ACEOF
6091if ac_fn_c_try_compile "$LINENO"; then :
6092  xorg_cv_cc_flag_unknown_warning_option=yes
6093else
6094  xorg_cv_cc_flag_unknown_warning_option=no
6095fi
6096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6097fi
6098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6099$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6100	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6101	CFLAGS="$xorg_testset_save_CFLAGS"
6102fi
6103
6104if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6105	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6106		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6107	fi
6108	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6109	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6110$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6111if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6112  $as_echo_n "(cached) " >&6
6113else
6114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6115/* end confdefs.h.  */
6116int i;
6117_ACEOF
6118if ac_fn_c_try_compile "$LINENO"; then :
6119  xorg_cv_cc_flag_unused_command_line_argument=yes
6120else
6121  xorg_cv_cc_flag_unused_command_line_argument=no
6122fi
6123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6124fi
6125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6126$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6127	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6128	CFLAGS="$xorg_testset_save_CFLAGS"
6129fi
6130
6131found="no"
6132
6133	if test $found = "no" ; then
6134		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6135			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6136		fi
6137
6138		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6139			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6140		fi
6141
6142		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6143
6144		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6145$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6146		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6147		if eval \${$cacheid+:} false; then :
6148  $as_echo_n "(cached) " >&6
6149else
6150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151/* end confdefs.h.  */
6152int i;
6153int
6154main ()
6155{
6156
6157  ;
6158  return 0;
6159}
6160_ACEOF
6161if ac_fn_c_try_link "$LINENO"; then :
6162  eval $cacheid=yes
6163else
6164  eval $cacheid=no
6165fi
6166rm -f core conftest.err conftest.$ac_objext \
6167    conftest$ac_exeext conftest.$ac_ext
6168fi
6169
6170
6171		CFLAGS="$xorg_testset_save_CFLAGS"
6172
6173		eval supported=\$$cacheid
6174		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6175$as_echo "$supported" >&6; }
6176		if test "$supported" = "yes" ; then
6177			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6178			found="yes"
6179		fi
6180	fi
6181
6182
6183
6184
6185
6186# This chunk adds additional warnings that could catch undesired effects.
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200xorg_testset_save_CFLAGS="$CFLAGS"
6201
6202if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6203	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6204	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6205$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6206if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6207  $as_echo_n "(cached) " >&6
6208else
6209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210/* end confdefs.h.  */
6211int i;
6212_ACEOF
6213if ac_fn_c_try_compile "$LINENO"; then :
6214  xorg_cv_cc_flag_unknown_warning_option=yes
6215else
6216  xorg_cv_cc_flag_unknown_warning_option=no
6217fi
6218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219fi
6220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6221$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6222	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6223	CFLAGS="$xorg_testset_save_CFLAGS"
6224fi
6225
6226if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6227	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6228		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6229	fi
6230	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6231	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6232$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6233if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6234  $as_echo_n "(cached) " >&6
6235else
6236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237/* end confdefs.h.  */
6238int i;
6239_ACEOF
6240if ac_fn_c_try_compile "$LINENO"; then :
6241  xorg_cv_cc_flag_unused_command_line_argument=yes
6242else
6243  xorg_cv_cc_flag_unused_command_line_argument=no
6244fi
6245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6246fi
6247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6248$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6249	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6250	CFLAGS="$xorg_testset_save_CFLAGS"
6251fi
6252
6253found="no"
6254
6255	if test $found = "no" ; then
6256		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6257			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6258		fi
6259
6260		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6261			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6262		fi
6263
6264		CFLAGS="$CFLAGS -Wunused"
6265
6266		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6267$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6268		cacheid=xorg_cv_cc_flag__Wunused
6269		if eval \${$cacheid+:} false; then :
6270  $as_echo_n "(cached) " >&6
6271else
6272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273/* end confdefs.h.  */
6274int i;
6275int
6276main ()
6277{
6278
6279  ;
6280  return 0;
6281}
6282_ACEOF
6283if ac_fn_c_try_link "$LINENO"; then :
6284  eval $cacheid=yes
6285else
6286  eval $cacheid=no
6287fi
6288rm -f core conftest.err conftest.$ac_objext \
6289    conftest$ac_exeext conftest.$ac_ext
6290fi
6291
6292
6293		CFLAGS="$xorg_testset_save_CFLAGS"
6294
6295		eval supported=\$$cacheid
6296		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6297$as_echo "$supported" >&6; }
6298		if test "$supported" = "yes" ; then
6299			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6300			found="yes"
6301		fi
6302	fi
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318xorg_testset_save_CFLAGS="$CFLAGS"
6319
6320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6321	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6322	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6323$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6324if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6325  $as_echo_n "(cached) " >&6
6326else
6327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328/* end confdefs.h.  */
6329int i;
6330_ACEOF
6331if ac_fn_c_try_compile "$LINENO"; then :
6332  xorg_cv_cc_flag_unknown_warning_option=yes
6333else
6334  xorg_cv_cc_flag_unknown_warning_option=no
6335fi
6336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6337fi
6338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6339$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6340	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6341	CFLAGS="$xorg_testset_save_CFLAGS"
6342fi
6343
6344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6345	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6346		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6347	fi
6348	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6349	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6350$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6351if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6352  $as_echo_n "(cached) " >&6
6353else
6354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355/* end confdefs.h.  */
6356int i;
6357_ACEOF
6358if ac_fn_c_try_compile "$LINENO"; then :
6359  xorg_cv_cc_flag_unused_command_line_argument=yes
6360else
6361  xorg_cv_cc_flag_unused_command_line_argument=no
6362fi
6363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364fi
6365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6366$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6367	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6368	CFLAGS="$xorg_testset_save_CFLAGS"
6369fi
6370
6371found="no"
6372
6373	if test $found = "no" ; then
6374		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6375			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6376		fi
6377
6378		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6379			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6380		fi
6381
6382		CFLAGS="$CFLAGS -Wuninitialized"
6383
6384		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6385$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6386		cacheid=xorg_cv_cc_flag__Wuninitialized
6387		if eval \${$cacheid+:} false; then :
6388  $as_echo_n "(cached) " >&6
6389else
6390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391/* end confdefs.h.  */
6392int i;
6393int
6394main ()
6395{
6396
6397  ;
6398  return 0;
6399}
6400_ACEOF
6401if ac_fn_c_try_link "$LINENO"; then :
6402  eval $cacheid=yes
6403else
6404  eval $cacheid=no
6405fi
6406rm -f core conftest.err conftest.$ac_objext \
6407    conftest$ac_exeext conftest.$ac_ext
6408fi
6409
6410
6411		CFLAGS="$xorg_testset_save_CFLAGS"
6412
6413		eval supported=\$$cacheid
6414		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6415$as_echo "$supported" >&6; }
6416		if test "$supported" = "yes" ; then
6417			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6418			found="yes"
6419		fi
6420	fi
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436xorg_testset_save_CFLAGS="$CFLAGS"
6437
6438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6439	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6440	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6441$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6442if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6443  $as_echo_n "(cached) " >&6
6444else
6445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6446/* end confdefs.h.  */
6447int i;
6448_ACEOF
6449if ac_fn_c_try_compile "$LINENO"; then :
6450  xorg_cv_cc_flag_unknown_warning_option=yes
6451else
6452  xorg_cv_cc_flag_unknown_warning_option=no
6453fi
6454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6455fi
6456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6457$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6458	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6459	CFLAGS="$xorg_testset_save_CFLAGS"
6460fi
6461
6462if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6463	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6464		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6465	fi
6466	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6467	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6468$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6469if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6470  $as_echo_n "(cached) " >&6
6471else
6472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473/* end confdefs.h.  */
6474int i;
6475_ACEOF
6476if ac_fn_c_try_compile "$LINENO"; then :
6477  xorg_cv_cc_flag_unused_command_line_argument=yes
6478else
6479  xorg_cv_cc_flag_unused_command_line_argument=no
6480fi
6481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6482fi
6483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6484$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6485	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6486	CFLAGS="$xorg_testset_save_CFLAGS"
6487fi
6488
6489found="no"
6490
6491	if test $found = "no" ; then
6492		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6493			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6494		fi
6495
6496		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6497			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6498		fi
6499
6500		CFLAGS="$CFLAGS -Wshadow"
6501
6502		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6503$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6504		cacheid=xorg_cv_cc_flag__Wshadow
6505		if eval \${$cacheid+:} false; then :
6506  $as_echo_n "(cached) " >&6
6507else
6508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509/* end confdefs.h.  */
6510int i;
6511int
6512main ()
6513{
6514
6515  ;
6516  return 0;
6517}
6518_ACEOF
6519if ac_fn_c_try_link "$LINENO"; then :
6520  eval $cacheid=yes
6521else
6522  eval $cacheid=no
6523fi
6524rm -f core conftest.err conftest.$ac_objext \
6525    conftest$ac_exeext conftest.$ac_ext
6526fi
6527
6528
6529		CFLAGS="$xorg_testset_save_CFLAGS"
6530
6531		eval supported=\$$cacheid
6532		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6533$as_echo "$supported" >&6; }
6534		if test "$supported" = "yes" ; then
6535			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6536			found="yes"
6537		fi
6538	fi
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554xorg_testset_save_CFLAGS="$CFLAGS"
6555
6556if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6557	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6558	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6559$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6560if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6561  $as_echo_n "(cached) " >&6
6562else
6563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564/* end confdefs.h.  */
6565int i;
6566_ACEOF
6567if ac_fn_c_try_compile "$LINENO"; then :
6568  xorg_cv_cc_flag_unknown_warning_option=yes
6569else
6570  xorg_cv_cc_flag_unknown_warning_option=no
6571fi
6572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6573fi
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6575$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6576	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6577	CFLAGS="$xorg_testset_save_CFLAGS"
6578fi
6579
6580if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6581	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6582		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6583	fi
6584	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6585	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6586$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6587if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6588  $as_echo_n "(cached) " >&6
6589else
6590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591/* end confdefs.h.  */
6592int i;
6593_ACEOF
6594if ac_fn_c_try_compile "$LINENO"; then :
6595  xorg_cv_cc_flag_unused_command_line_argument=yes
6596else
6597  xorg_cv_cc_flag_unused_command_line_argument=no
6598fi
6599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600fi
6601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6602$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6603	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6604	CFLAGS="$xorg_testset_save_CFLAGS"
6605fi
6606
6607found="no"
6608
6609	if test $found = "no" ; then
6610		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6611			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6612		fi
6613
6614		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6615			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6616		fi
6617
6618		CFLAGS="$CFLAGS -Wmissing-noreturn"
6619
6620		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6621$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6622		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6623		if eval \${$cacheid+:} false; then :
6624  $as_echo_n "(cached) " >&6
6625else
6626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6627/* end confdefs.h.  */
6628int i;
6629int
6630main ()
6631{
6632
6633  ;
6634  return 0;
6635}
6636_ACEOF
6637if ac_fn_c_try_link "$LINENO"; then :
6638  eval $cacheid=yes
6639else
6640  eval $cacheid=no
6641fi
6642rm -f core conftest.err conftest.$ac_objext \
6643    conftest$ac_exeext conftest.$ac_ext
6644fi
6645
6646
6647		CFLAGS="$xorg_testset_save_CFLAGS"
6648
6649		eval supported=\$$cacheid
6650		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6651$as_echo "$supported" >&6; }
6652		if test "$supported" = "yes" ; then
6653			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6654			found="yes"
6655		fi
6656	fi
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672xorg_testset_save_CFLAGS="$CFLAGS"
6673
6674if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6675	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6676	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6677$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6678if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6679  $as_echo_n "(cached) " >&6
6680else
6681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682/* end confdefs.h.  */
6683int i;
6684_ACEOF
6685if ac_fn_c_try_compile "$LINENO"; then :
6686  xorg_cv_cc_flag_unknown_warning_option=yes
6687else
6688  xorg_cv_cc_flag_unknown_warning_option=no
6689fi
6690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6691fi
6692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6693$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6694	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6695	CFLAGS="$xorg_testset_save_CFLAGS"
6696fi
6697
6698if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6699	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6700		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6701	fi
6702	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6703	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6704$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6705if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6706  $as_echo_n "(cached) " >&6
6707else
6708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709/* end confdefs.h.  */
6710int i;
6711_ACEOF
6712if ac_fn_c_try_compile "$LINENO"; then :
6713  xorg_cv_cc_flag_unused_command_line_argument=yes
6714else
6715  xorg_cv_cc_flag_unused_command_line_argument=no
6716fi
6717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6718fi
6719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6720$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6721	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6722	CFLAGS="$xorg_testset_save_CFLAGS"
6723fi
6724
6725found="no"
6726
6727	if test $found = "no" ; then
6728		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6729			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6730		fi
6731
6732		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6733			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6734		fi
6735
6736		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6737
6738		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6739$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6740		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6741		if eval \${$cacheid+:} false; then :
6742  $as_echo_n "(cached) " >&6
6743else
6744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745/* end confdefs.h.  */
6746int i;
6747int
6748main ()
6749{
6750
6751  ;
6752  return 0;
6753}
6754_ACEOF
6755if ac_fn_c_try_link "$LINENO"; then :
6756  eval $cacheid=yes
6757else
6758  eval $cacheid=no
6759fi
6760rm -f core conftest.err conftest.$ac_objext \
6761    conftest$ac_exeext conftest.$ac_ext
6762fi
6763
6764
6765		CFLAGS="$xorg_testset_save_CFLAGS"
6766
6767		eval supported=\$$cacheid
6768		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6769$as_echo "$supported" >&6; }
6770		if test "$supported" = "yes" ; then
6771			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6772			found="yes"
6773		fi
6774	fi
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790xorg_testset_save_CFLAGS="$CFLAGS"
6791
6792if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6793	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6794	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6795$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6796if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6797  $as_echo_n "(cached) " >&6
6798else
6799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800/* end confdefs.h.  */
6801int i;
6802_ACEOF
6803if ac_fn_c_try_compile "$LINENO"; then :
6804  xorg_cv_cc_flag_unknown_warning_option=yes
6805else
6806  xorg_cv_cc_flag_unknown_warning_option=no
6807fi
6808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6809fi
6810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6811$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6812	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6813	CFLAGS="$xorg_testset_save_CFLAGS"
6814fi
6815
6816if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6817	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6818		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6819	fi
6820	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6821	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6822$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6823if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6824  $as_echo_n "(cached) " >&6
6825else
6826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827/* end confdefs.h.  */
6828int i;
6829_ACEOF
6830if ac_fn_c_try_compile "$LINENO"; then :
6831  xorg_cv_cc_flag_unused_command_line_argument=yes
6832else
6833  xorg_cv_cc_flag_unused_command_line_argument=no
6834fi
6835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6836fi
6837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6838$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6839	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6840	CFLAGS="$xorg_testset_save_CFLAGS"
6841fi
6842
6843found="no"
6844
6845	if test $found = "no" ; then
6846		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6847			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6848		fi
6849
6850		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6851			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6852		fi
6853
6854		CFLAGS="$CFLAGS -Wredundant-decls"
6855
6856		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6857$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6858		cacheid=xorg_cv_cc_flag__Wredundant_decls
6859		if eval \${$cacheid+:} false; then :
6860  $as_echo_n "(cached) " >&6
6861else
6862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863/* end confdefs.h.  */
6864int i;
6865int
6866main ()
6867{
6868
6869  ;
6870  return 0;
6871}
6872_ACEOF
6873if ac_fn_c_try_link "$LINENO"; then :
6874  eval $cacheid=yes
6875else
6876  eval $cacheid=no
6877fi
6878rm -f core conftest.err conftest.$ac_objext \
6879    conftest$ac_exeext conftest.$ac_ext
6880fi
6881
6882
6883		CFLAGS="$xorg_testset_save_CFLAGS"
6884
6885		eval supported=\$$cacheid
6886		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6887$as_echo "$supported" >&6; }
6888		if test "$supported" = "yes" ; then
6889			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6890			found="yes"
6891		fi
6892	fi
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908xorg_testset_save_CFLAGS="$CFLAGS"
6909
6910if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6911	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6912	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6913$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6914if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6915  $as_echo_n "(cached) " >&6
6916else
6917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6918/* end confdefs.h.  */
6919int i;
6920_ACEOF
6921if ac_fn_c_try_compile "$LINENO"; then :
6922  xorg_cv_cc_flag_unknown_warning_option=yes
6923else
6924  xorg_cv_cc_flag_unknown_warning_option=no
6925fi
6926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6927fi
6928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6929$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6930	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6931	CFLAGS="$xorg_testset_save_CFLAGS"
6932fi
6933
6934if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6935	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6936		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6937	fi
6938	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6939	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6940$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6941if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6942  $as_echo_n "(cached) " >&6
6943else
6944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6945/* end confdefs.h.  */
6946int i;
6947_ACEOF
6948if ac_fn_c_try_compile "$LINENO"; then :
6949  xorg_cv_cc_flag_unused_command_line_argument=yes
6950else
6951  xorg_cv_cc_flag_unused_command_line_argument=no
6952fi
6953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6954fi
6955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6956$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6957	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6958	CFLAGS="$xorg_testset_save_CFLAGS"
6959fi
6960
6961found="no"
6962
6963	if test $found = "no" ; then
6964		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6965			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6966		fi
6967
6968		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6969			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6970		fi
6971
6972		CFLAGS="$CFLAGS -Wlogical-op"
6973
6974		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6975$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6976		cacheid=xorg_cv_cc_flag__Wlogical_op
6977		if eval \${$cacheid+:} false; then :
6978  $as_echo_n "(cached) " >&6
6979else
6980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6981/* end confdefs.h.  */
6982int i;
6983int
6984main ()
6985{
6986
6987  ;
6988  return 0;
6989}
6990_ACEOF
6991if ac_fn_c_try_link "$LINENO"; then :
6992  eval $cacheid=yes
6993else
6994  eval $cacheid=no
6995fi
6996rm -f core conftest.err conftest.$ac_objext \
6997    conftest$ac_exeext conftest.$ac_ext
6998fi
6999
7000
7001		CFLAGS="$xorg_testset_save_CFLAGS"
7002
7003		eval supported=\$$cacheid
7004		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7005$as_echo "$supported" >&6; }
7006		if test "$supported" = "yes" ; then
7007			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7008			found="yes"
7009		fi
7010	fi
7011
7012
7013
7014# These are currently disabled because they are noisy.  They will be enabled
7015# in the future once the codebase is sufficiently modernized to silence
7016# them.  For now, I don't want them to drown out the other warnings.
7017# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7018# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7019# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7020
7021# Turn some warnings into errors, so we don't accidently get successful builds
7022# when there are problems that should be fixed.
7023
7024if test "x$SELECTIVE_WERROR" = "xyes" ; then
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038xorg_testset_save_CFLAGS="$CFLAGS"
7039
7040if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7041	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7042	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7043$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7044if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7045  $as_echo_n "(cached) " >&6
7046else
7047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7048/* end confdefs.h.  */
7049int i;
7050_ACEOF
7051if ac_fn_c_try_compile "$LINENO"; then :
7052  xorg_cv_cc_flag_unknown_warning_option=yes
7053else
7054  xorg_cv_cc_flag_unknown_warning_option=no
7055fi
7056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7057fi
7058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7059$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7060	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7061	CFLAGS="$xorg_testset_save_CFLAGS"
7062fi
7063
7064if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7065	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7066		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7067	fi
7068	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7069	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7070$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7071if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7072  $as_echo_n "(cached) " >&6
7073else
7074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075/* end confdefs.h.  */
7076int i;
7077_ACEOF
7078if ac_fn_c_try_compile "$LINENO"; then :
7079  xorg_cv_cc_flag_unused_command_line_argument=yes
7080else
7081  xorg_cv_cc_flag_unused_command_line_argument=no
7082fi
7083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7084fi
7085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7086$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7087	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7088	CFLAGS="$xorg_testset_save_CFLAGS"
7089fi
7090
7091found="no"
7092
7093	if test $found = "no" ; then
7094		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7095			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7096		fi
7097
7098		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7099			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7100		fi
7101
7102		CFLAGS="$CFLAGS -Werror=implicit"
7103
7104		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7105$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7106		cacheid=xorg_cv_cc_flag__Werror_implicit
7107		if eval \${$cacheid+:} false; then :
7108  $as_echo_n "(cached) " >&6
7109else
7110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7111/* end confdefs.h.  */
7112int i;
7113int
7114main ()
7115{
7116
7117  ;
7118  return 0;
7119}
7120_ACEOF
7121if ac_fn_c_try_link "$LINENO"; then :
7122  eval $cacheid=yes
7123else
7124  eval $cacheid=no
7125fi
7126rm -f core conftest.err conftest.$ac_objext \
7127    conftest$ac_exeext conftest.$ac_ext
7128fi
7129
7130
7131		CFLAGS="$xorg_testset_save_CFLAGS"
7132
7133		eval supported=\$$cacheid
7134		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7135$as_echo "$supported" >&6; }
7136		if test "$supported" = "yes" ; then
7137			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7138			found="yes"
7139		fi
7140	fi
7141
7142	if test $found = "no" ; then
7143		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7144			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7145		fi
7146
7147		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7148			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7149		fi
7150
7151		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7152
7153		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7154$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7155		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7156		if eval \${$cacheid+:} false; then :
7157  $as_echo_n "(cached) " >&6
7158else
7159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160/* end confdefs.h.  */
7161int i;
7162int
7163main ()
7164{
7165
7166  ;
7167  return 0;
7168}
7169_ACEOF
7170if ac_fn_c_try_link "$LINENO"; then :
7171  eval $cacheid=yes
7172else
7173  eval $cacheid=no
7174fi
7175rm -f core conftest.err conftest.$ac_objext \
7176    conftest$ac_exeext conftest.$ac_ext
7177fi
7178
7179
7180		CFLAGS="$xorg_testset_save_CFLAGS"
7181
7182		eval supported=\$$cacheid
7183		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7184$as_echo "$supported" >&6; }
7185		if test "$supported" = "yes" ; then
7186			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7187			found="yes"
7188		fi
7189	fi
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205xorg_testset_save_CFLAGS="$CFLAGS"
7206
7207if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7208	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7209	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7210$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7211if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7212  $as_echo_n "(cached) " >&6
7213else
7214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215/* end confdefs.h.  */
7216int i;
7217_ACEOF
7218if ac_fn_c_try_compile "$LINENO"; then :
7219  xorg_cv_cc_flag_unknown_warning_option=yes
7220else
7221  xorg_cv_cc_flag_unknown_warning_option=no
7222fi
7223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7224fi
7225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7226$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7227	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7228	CFLAGS="$xorg_testset_save_CFLAGS"
7229fi
7230
7231if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7232	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7233		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7234	fi
7235	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7236	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7237$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7238if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7239  $as_echo_n "(cached) " >&6
7240else
7241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242/* end confdefs.h.  */
7243int i;
7244_ACEOF
7245if ac_fn_c_try_compile "$LINENO"; then :
7246  xorg_cv_cc_flag_unused_command_line_argument=yes
7247else
7248  xorg_cv_cc_flag_unused_command_line_argument=no
7249fi
7250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7251fi
7252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7253$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7254	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7255	CFLAGS="$xorg_testset_save_CFLAGS"
7256fi
7257
7258found="no"
7259
7260	if test $found = "no" ; then
7261		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7262			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7263		fi
7264
7265		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7266			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7267		fi
7268
7269		CFLAGS="$CFLAGS -Werror=nonnull"
7270
7271		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7272$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7273		cacheid=xorg_cv_cc_flag__Werror_nonnull
7274		if eval \${$cacheid+:} false; then :
7275  $as_echo_n "(cached) " >&6
7276else
7277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278/* end confdefs.h.  */
7279int i;
7280int
7281main ()
7282{
7283
7284  ;
7285  return 0;
7286}
7287_ACEOF
7288if ac_fn_c_try_link "$LINENO"; then :
7289  eval $cacheid=yes
7290else
7291  eval $cacheid=no
7292fi
7293rm -f core conftest.err conftest.$ac_objext \
7294    conftest$ac_exeext conftest.$ac_ext
7295fi
7296
7297
7298		CFLAGS="$xorg_testset_save_CFLAGS"
7299
7300		eval supported=\$$cacheid
7301		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7302$as_echo "$supported" >&6; }
7303		if test "$supported" = "yes" ; then
7304			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7305			found="yes"
7306		fi
7307	fi
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323xorg_testset_save_CFLAGS="$CFLAGS"
7324
7325if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7326	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7327	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7328$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7329if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7330  $as_echo_n "(cached) " >&6
7331else
7332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7333/* end confdefs.h.  */
7334int i;
7335_ACEOF
7336if ac_fn_c_try_compile "$LINENO"; then :
7337  xorg_cv_cc_flag_unknown_warning_option=yes
7338else
7339  xorg_cv_cc_flag_unknown_warning_option=no
7340fi
7341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342fi
7343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7344$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7345	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7346	CFLAGS="$xorg_testset_save_CFLAGS"
7347fi
7348
7349if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7350	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7351		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7352	fi
7353	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7354	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7355$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7356if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7357  $as_echo_n "(cached) " >&6
7358else
7359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360/* end confdefs.h.  */
7361int i;
7362_ACEOF
7363if ac_fn_c_try_compile "$LINENO"; then :
7364  xorg_cv_cc_flag_unused_command_line_argument=yes
7365else
7366  xorg_cv_cc_flag_unused_command_line_argument=no
7367fi
7368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7369fi
7370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7371$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7372	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7373	CFLAGS="$xorg_testset_save_CFLAGS"
7374fi
7375
7376found="no"
7377
7378	if test $found = "no" ; then
7379		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7380			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7381		fi
7382
7383		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7384			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7385		fi
7386
7387		CFLAGS="$CFLAGS -Werror=init-self"
7388
7389		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7390$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7391		cacheid=xorg_cv_cc_flag__Werror_init_self
7392		if eval \${$cacheid+:} false; then :
7393  $as_echo_n "(cached) " >&6
7394else
7395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7396/* end confdefs.h.  */
7397int i;
7398int
7399main ()
7400{
7401
7402  ;
7403  return 0;
7404}
7405_ACEOF
7406if ac_fn_c_try_link "$LINENO"; then :
7407  eval $cacheid=yes
7408else
7409  eval $cacheid=no
7410fi
7411rm -f core conftest.err conftest.$ac_objext \
7412    conftest$ac_exeext conftest.$ac_ext
7413fi
7414
7415
7416		CFLAGS="$xorg_testset_save_CFLAGS"
7417
7418		eval supported=\$$cacheid
7419		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7420$as_echo "$supported" >&6; }
7421		if test "$supported" = "yes" ; then
7422			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7423			found="yes"
7424		fi
7425	fi
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441xorg_testset_save_CFLAGS="$CFLAGS"
7442
7443if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7444	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7445	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7446$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7447if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7448  $as_echo_n "(cached) " >&6
7449else
7450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451/* end confdefs.h.  */
7452int i;
7453_ACEOF
7454if ac_fn_c_try_compile "$LINENO"; then :
7455  xorg_cv_cc_flag_unknown_warning_option=yes
7456else
7457  xorg_cv_cc_flag_unknown_warning_option=no
7458fi
7459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7460fi
7461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7462$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7463	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7464	CFLAGS="$xorg_testset_save_CFLAGS"
7465fi
7466
7467if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7468	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7469		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7470	fi
7471	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7472	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7473$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7474if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7475  $as_echo_n "(cached) " >&6
7476else
7477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478/* end confdefs.h.  */
7479int i;
7480_ACEOF
7481if ac_fn_c_try_compile "$LINENO"; then :
7482  xorg_cv_cc_flag_unused_command_line_argument=yes
7483else
7484  xorg_cv_cc_flag_unused_command_line_argument=no
7485fi
7486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7487fi
7488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7489$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7490	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7491	CFLAGS="$xorg_testset_save_CFLAGS"
7492fi
7493
7494found="no"
7495
7496	if test $found = "no" ; then
7497		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7498			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7499		fi
7500
7501		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7502			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7503		fi
7504
7505		CFLAGS="$CFLAGS -Werror=main"
7506
7507		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7508$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7509		cacheid=xorg_cv_cc_flag__Werror_main
7510		if eval \${$cacheid+:} false; then :
7511  $as_echo_n "(cached) " >&6
7512else
7513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7514/* end confdefs.h.  */
7515int i;
7516int
7517main ()
7518{
7519
7520  ;
7521  return 0;
7522}
7523_ACEOF
7524if ac_fn_c_try_link "$LINENO"; then :
7525  eval $cacheid=yes
7526else
7527  eval $cacheid=no
7528fi
7529rm -f core conftest.err conftest.$ac_objext \
7530    conftest$ac_exeext conftest.$ac_ext
7531fi
7532
7533
7534		CFLAGS="$xorg_testset_save_CFLAGS"
7535
7536		eval supported=\$$cacheid
7537		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7538$as_echo "$supported" >&6; }
7539		if test "$supported" = "yes" ; then
7540			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7541			found="yes"
7542		fi
7543	fi
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559xorg_testset_save_CFLAGS="$CFLAGS"
7560
7561if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7562	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7563	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7564$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7565if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7566  $as_echo_n "(cached) " >&6
7567else
7568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7569/* end confdefs.h.  */
7570int i;
7571_ACEOF
7572if ac_fn_c_try_compile "$LINENO"; then :
7573  xorg_cv_cc_flag_unknown_warning_option=yes
7574else
7575  xorg_cv_cc_flag_unknown_warning_option=no
7576fi
7577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7578fi
7579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7580$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7581	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7582	CFLAGS="$xorg_testset_save_CFLAGS"
7583fi
7584
7585if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7586	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7587		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7588	fi
7589	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7590	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7591$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7592if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7593  $as_echo_n "(cached) " >&6
7594else
7595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596/* end confdefs.h.  */
7597int i;
7598_ACEOF
7599if ac_fn_c_try_compile "$LINENO"; then :
7600  xorg_cv_cc_flag_unused_command_line_argument=yes
7601else
7602  xorg_cv_cc_flag_unused_command_line_argument=no
7603fi
7604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7605fi
7606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7607$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7608	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7609	CFLAGS="$xorg_testset_save_CFLAGS"
7610fi
7611
7612found="no"
7613
7614	if test $found = "no" ; then
7615		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7616			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7617		fi
7618
7619		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7620			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7621		fi
7622
7623		CFLAGS="$CFLAGS -Werror=missing-braces"
7624
7625		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7626$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7627		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7628		if eval \${$cacheid+:} false; then :
7629  $as_echo_n "(cached) " >&6
7630else
7631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632/* end confdefs.h.  */
7633int i;
7634int
7635main ()
7636{
7637
7638  ;
7639  return 0;
7640}
7641_ACEOF
7642if ac_fn_c_try_link "$LINENO"; then :
7643  eval $cacheid=yes
7644else
7645  eval $cacheid=no
7646fi
7647rm -f core conftest.err conftest.$ac_objext \
7648    conftest$ac_exeext conftest.$ac_ext
7649fi
7650
7651
7652		CFLAGS="$xorg_testset_save_CFLAGS"
7653
7654		eval supported=\$$cacheid
7655		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7656$as_echo "$supported" >&6; }
7657		if test "$supported" = "yes" ; then
7658			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7659			found="yes"
7660		fi
7661	fi
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677xorg_testset_save_CFLAGS="$CFLAGS"
7678
7679if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7680	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7681	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7682$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7683if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7684  $as_echo_n "(cached) " >&6
7685else
7686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687/* end confdefs.h.  */
7688int i;
7689_ACEOF
7690if ac_fn_c_try_compile "$LINENO"; then :
7691  xorg_cv_cc_flag_unknown_warning_option=yes
7692else
7693  xorg_cv_cc_flag_unknown_warning_option=no
7694fi
7695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7696fi
7697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7698$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7699	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7700	CFLAGS="$xorg_testset_save_CFLAGS"
7701fi
7702
7703if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7704	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7705		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7706	fi
7707	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7708	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7709$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7710if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7711  $as_echo_n "(cached) " >&6
7712else
7713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714/* end confdefs.h.  */
7715int i;
7716_ACEOF
7717if ac_fn_c_try_compile "$LINENO"; then :
7718  xorg_cv_cc_flag_unused_command_line_argument=yes
7719else
7720  xorg_cv_cc_flag_unused_command_line_argument=no
7721fi
7722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7723fi
7724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7725$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7726	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7727	CFLAGS="$xorg_testset_save_CFLAGS"
7728fi
7729
7730found="no"
7731
7732	if test $found = "no" ; then
7733		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7734			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7735		fi
7736
7737		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7738			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7739		fi
7740
7741		CFLAGS="$CFLAGS -Werror=sequence-point"
7742
7743		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7744$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7745		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7746		if eval \${$cacheid+:} false; then :
7747  $as_echo_n "(cached) " >&6
7748else
7749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7750/* end confdefs.h.  */
7751int i;
7752int
7753main ()
7754{
7755
7756  ;
7757  return 0;
7758}
7759_ACEOF
7760if ac_fn_c_try_link "$LINENO"; then :
7761  eval $cacheid=yes
7762else
7763  eval $cacheid=no
7764fi
7765rm -f core conftest.err conftest.$ac_objext \
7766    conftest$ac_exeext conftest.$ac_ext
7767fi
7768
7769
7770		CFLAGS="$xorg_testset_save_CFLAGS"
7771
7772		eval supported=\$$cacheid
7773		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7774$as_echo "$supported" >&6; }
7775		if test "$supported" = "yes" ; then
7776			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7777			found="yes"
7778		fi
7779	fi
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795xorg_testset_save_CFLAGS="$CFLAGS"
7796
7797if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7798	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7799	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7800$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7801if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7802  $as_echo_n "(cached) " >&6
7803else
7804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7805/* end confdefs.h.  */
7806int i;
7807_ACEOF
7808if ac_fn_c_try_compile "$LINENO"; then :
7809  xorg_cv_cc_flag_unknown_warning_option=yes
7810else
7811  xorg_cv_cc_flag_unknown_warning_option=no
7812fi
7813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7814fi
7815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7816$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7817	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7818	CFLAGS="$xorg_testset_save_CFLAGS"
7819fi
7820
7821if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7822	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7823		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7824	fi
7825	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7826	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7827$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7828if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7829  $as_echo_n "(cached) " >&6
7830else
7831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832/* end confdefs.h.  */
7833int i;
7834_ACEOF
7835if ac_fn_c_try_compile "$LINENO"; then :
7836  xorg_cv_cc_flag_unused_command_line_argument=yes
7837else
7838  xorg_cv_cc_flag_unused_command_line_argument=no
7839fi
7840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7841fi
7842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7843$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7844	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7845	CFLAGS="$xorg_testset_save_CFLAGS"
7846fi
7847
7848found="no"
7849
7850	if test $found = "no" ; then
7851		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7852			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7853		fi
7854
7855		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7856			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7857		fi
7858
7859		CFLAGS="$CFLAGS -Werror=return-type"
7860
7861		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7862$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7863		cacheid=xorg_cv_cc_flag__Werror_return_type
7864		if eval \${$cacheid+:} false; then :
7865  $as_echo_n "(cached) " >&6
7866else
7867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868/* end confdefs.h.  */
7869int i;
7870int
7871main ()
7872{
7873
7874  ;
7875  return 0;
7876}
7877_ACEOF
7878if ac_fn_c_try_link "$LINENO"; then :
7879  eval $cacheid=yes
7880else
7881  eval $cacheid=no
7882fi
7883rm -f core conftest.err conftest.$ac_objext \
7884    conftest$ac_exeext conftest.$ac_ext
7885fi
7886
7887
7888		CFLAGS="$xorg_testset_save_CFLAGS"
7889
7890		eval supported=\$$cacheid
7891		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7892$as_echo "$supported" >&6; }
7893		if test "$supported" = "yes" ; then
7894			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7895			found="yes"
7896		fi
7897	fi
7898
7899	if test $found = "no" ; then
7900		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7901			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7902		fi
7903
7904		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7905			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7906		fi
7907
7908		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7909
7910		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7911$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7912		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7913		if eval \${$cacheid+:} false; then :
7914  $as_echo_n "(cached) " >&6
7915else
7916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917/* end confdefs.h.  */
7918int i;
7919int
7920main ()
7921{
7922
7923  ;
7924  return 0;
7925}
7926_ACEOF
7927if ac_fn_c_try_link "$LINENO"; then :
7928  eval $cacheid=yes
7929else
7930  eval $cacheid=no
7931fi
7932rm -f core conftest.err conftest.$ac_objext \
7933    conftest$ac_exeext conftest.$ac_ext
7934fi
7935
7936
7937		CFLAGS="$xorg_testset_save_CFLAGS"
7938
7939		eval supported=\$$cacheid
7940		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7941$as_echo "$supported" >&6; }
7942		if test "$supported" = "yes" ; then
7943			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7944			found="yes"
7945		fi
7946	fi
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962xorg_testset_save_CFLAGS="$CFLAGS"
7963
7964if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7965	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7966	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7967$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7968if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7969  $as_echo_n "(cached) " >&6
7970else
7971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972/* end confdefs.h.  */
7973int i;
7974_ACEOF
7975if ac_fn_c_try_compile "$LINENO"; then :
7976  xorg_cv_cc_flag_unknown_warning_option=yes
7977else
7978  xorg_cv_cc_flag_unknown_warning_option=no
7979fi
7980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7981fi
7982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7983$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7984	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7985	CFLAGS="$xorg_testset_save_CFLAGS"
7986fi
7987
7988if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7989	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7990		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7991	fi
7992	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7993	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7994$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7995if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7996  $as_echo_n "(cached) " >&6
7997else
7998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7999/* end confdefs.h.  */
8000int i;
8001_ACEOF
8002if ac_fn_c_try_compile "$LINENO"; then :
8003  xorg_cv_cc_flag_unused_command_line_argument=yes
8004else
8005  xorg_cv_cc_flag_unused_command_line_argument=no
8006fi
8007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8008fi
8009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8010$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8011	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8012	CFLAGS="$xorg_testset_save_CFLAGS"
8013fi
8014
8015found="no"
8016
8017	if test $found = "no" ; then
8018		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8019			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8020		fi
8021
8022		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8023			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8024		fi
8025
8026		CFLAGS="$CFLAGS -Werror=trigraphs"
8027
8028		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8029$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8030		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8031		if eval \${$cacheid+:} false; then :
8032  $as_echo_n "(cached) " >&6
8033else
8034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035/* end confdefs.h.  */
8036int i;
8037int
8038main ()
8039{
8040
8041  ;
8042  return 0;
8043}
8044_ACEOF
8045if ac_fn_c_try_link "$LINENO"; then :
8046  eval $cacheid=yes
8047else
8048  eval $cacheid=no
8049fi
8050rm -f core conftest.err conftest.$ac_objext \
8051    conftest$ac_exeext conftest.$ac_ext
8052fi
8053
8054
8055		CFLAGS="$xorg_testset_save_CFLAGS"
8056
8057		eval supported=\$$cacheid
8058		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8059$as_echo "$supported" >&6; }
8060		if test "$supported" = "yes" ; then
8061			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8062			found="yes"
8063		fi
8064	fi
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080xorg_testset_save_CFLAGS="$CFLAGS"
8081
8082if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8083	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8084	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8085$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8086if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8087  $as_echo_n "(cached) " >&6
8088else
8089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090/* end confdefs.h.  */
8091int i;
8092_ACEOF
8093if ac_fn_c_try_compile "$LINENO"; then :
8094  xorg_cv_cc_flag_unknown_warning_option=yes
8095else
8096  xorg_cv_cc_flag_unknown_warning_option=no
8097fi
8098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8099fi
8100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8101$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8102	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8103	CFLAGS="$xorg_testset_save_CFLAGS"
8104fi
8105
8106if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8107	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8108		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8109	fi
8110	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8111	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8112$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8113if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8114  $as_echo_n "(cached) " >&6
8115else
8116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117/* end confdefs.h.  */
8118int i;
8119_ACEOF
8120if ac_fn_c_try_compile "$LINENO"; then :
8121  xorg_cv_cc_flag_unused_command_line_argument=yes
8122else
8123  xorg_cv_cc_flag_unused_command_line_argument=no
8124fi
8125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8126fi
8127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8128$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8129	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8130	CFLAGS="$xorg_testset_save_CFLAGS"
8131fi
8132
8133found="no"
8134
8135	if test $found = "no" ; then
8136		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8137			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8138		fi
8139
8140		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8141			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8142		fi
8143
8144		CFLAGS="$CFLAGS -Werror=array-bounds"
8145
8146		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8147$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8148		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8149		if eval \${$cacheid+:} false; then :
8150  $as_echo_n "(cached) " >&6
8151else
8152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153/* end confdefs.h.  */
8154int i;
8155int
8156main ()
8157{
8158
8159  ;
8160  return 0;
8161}
8162_ACEOF
8163if ac_fn_c_try_link "$LINENO"; then :
8164  eval $cacheid=yes
8165else
8166  eval $cacheid=no
8167fi
8168rm -f core conftest.err conftest.$ac_objext \
8169    conftest$ac_exeext conftest.$ac_ext
8170fi
8171
8172
8173		CFLAGS="$xorg_testset_save_CFLAGS"
8174
8175		eval supported=\$$cacheid
8176		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8177$as_echo "$supported" >&6; }
8178		if test "$supported" = "yes" ; then
8179			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8180			found="yes"
8181		fi
8182	fi
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198xorg_testset_save_CFLAGS="$CFLAGS"
8199
8200if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8201	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8202	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8203$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8204if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8205  $as_echo_n "(cached) " >&6
8206else
8207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208/* end confdefs.h.  */
8209int i;
8210_ACEOF
8211if ac_fn_c_try_compile "$LINENO"; then :
8212  xorg_cv_cc_flag_unknown_warning_option=yes
8213else
8214  xorg_cv_cc_flag_unknown_warning_option=no
8215fi
8216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8217fi
8218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8219$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8220	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8221	CFLAGS="$xorg_testset_save_CFLAGS"
8222fi
8223
8224if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8225	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8226		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8227	fi
8228	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8229	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8230$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8231if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8232  $as_echo_n "(cached) " >&6
8233else
8234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235/* end confdefs.h.  */
8236int i;
8237_ACEOF
8238if ac_fn_c_try_compile "$LINENO"; then :
8239  xorg_cv_cc_flag_unused_command_line_argument=yes
8240else
8241  xorg_cv_cc_flag_unused_command_line_argument=no
8242fi
8243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8244fi
8245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8246$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8247	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8248	CFLAGS="$xorg_testset_save_CFLAGS"
8249fi
8250
8251found="no"
8252
8253	if test $found = "no" ; then
8254		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8255			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8256		fi
8257
8258		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8259			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8260		fi
8261
8262		CFLAGS="$CFLAGS -Werror=write-strings"
8263
8264		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8265$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8266		cacheid=xorg_cv_cc_flag__Werror_write_strings
8267		if eval \${$cacheid+:} false; then :
8268  $as_echo_n "(cached) " >&6
8269else
8270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271/* end confdefs.h.  */
8272int i;
8273int
8274main ()
8275{
8276
8277  ;
8278  return 0;
8279}
8280_ACEOF
8281if ac_fn_c_try_link "$LINENO"; then :
8282  eval $cacheid=yes
8283else
8284  eval $cacheid=no
8285fi
8286rm -f core conftest.err conftest.$ac_objext \
8287    conftest$ac_exeext conftest.$ac_ext
8288fi
8289
8290
8291		CFLAGS="$xorg_testset_save_CFLAGS"
8292
8293		eval supported=\$$cacheid
8294		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8295$as_echo "$supported" >&6; }
8296		if test "$supported" = "yes" ; then
8297			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8298			found="yes"
8299		fi
8300	fi
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316xorg_testset_save_CFLAGS="$CFLAGS"
8317
8318if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8319	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8320	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8321$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8322if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8323  $as_echo_n "(cached) " >&6
8324else
8325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8326/* end confdefs.h.  */
8327int i;
8328_ACEOF
8329if ac_fn_c_try_compile "$LINENO"; then :
8330  xorg_cv_cc_flag_unknown_warning_option=yes
8331else
8332  xorg_cv_cc_flag_unknown_warning_option=no
8333fi
8334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8335fi
8336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8337$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8338	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8339	CFLAGS="$xorg_testset_save_CFLAGS"
8340fi
8341
8342if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8343	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8344		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8345	fi
8346	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8347	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8348$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8349if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8350  $as_echo_n "(cached) " >&6
8351else
8352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8353/* end confdefs.h.  */
8354int i;
8355_ACEOF
8356if ac_fn_c_try_compile "$LINENO"; then :
8357  xorg_cv_cc_flag_unused_command_line_argument=yes
8358else
8359  xorg_cv_cc_flag_unused_command_line_argument=no
8360fi
8361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8362fi
8363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8364$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8365	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8366	CFLAGS="$xorg_testset_save_CFLAGS"
8367fi
8368
8369found="no"
8370
8371	if test $found = "no" ; then
8372		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8373			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8374		fi
8375
8376		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8377			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8378		fi
8379
8380		CFLAGS="$CFLAGS -Werror=address"
8381
8382		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8383$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8384		cacheid=xorg_cv_cc_flag__Werror_address
8385		if eval \${$cacheid+:} false; then :
8386  $as_echo_n "(cached) " >&6
8387else
8388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389/* end confdefs.h.  */
8390int i;
8391int
8392main ()
8393{
8394
8395  ;
8396  return 0;
8397}
8398_ACEOF
8399if ac_fn_c_try_link "$LINENO"; then :
8400  eval $cacheid=yes
8401else
8402  eval $cacheid=no
8403fi
8404rm -f core conftest.err conftest.$ac_objext \
8405    conftest$ac_exeext conftest.$ac_ext
8406fi
8407
8408
8409		CFLAGS="$xorg_testset_save_CFLAGS"
8410
8411		eval supported=\$$cacheid
8412		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8413$as_echo "$supported" >&6; }
8414		if test "$supported" = "yes" ; then
8415			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8416			found="yes"
8417		fi
8418	fi
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434xorg_testset_save_CFLAGS="$CFLAGS"
8435
8436if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8437	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8438	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8439$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8440if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8441  $as_echo_n "(cached) " >&6
8442else
8443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8444/* end confdefs.h.  */
8445int i;
8446_ACEOF
8447if ac_fn_c_try_compile "$LINENO"; then :
8448  xorg_cv_cc_flag_unknown_warning_option=yes
8449else
8450  xorg_cv_cc_flag_unknown_warning_option=no
8451fi
8452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8453fi
8454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8455$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8456	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8457	CFLAGS="$xorg_testset_save_CFLAGS"
8458fi
8459
8460if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8461	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8462		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8463	fi
8464	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8465	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8466$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8467if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8468  $as_echo_n "(cached) " >&6
8469else
8470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471/* end confdefs.h.  */
8472int i;
8473_ACEOF
8474if ac_fn_c_try_compile "$LINENO"; then :
8475  xorg_cv_cc_flag_unused_command_line_argument=yes
8476else
8477  xorg_cv_cc_flag_unused_command_line_argument=no
8478fi
8479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8480fi
8481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8482$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8483	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8484	CFLAGS="$xorg_testset_save_CFLAGS"
8485fi
8486
8487found="no"
8488
8489	if test $found = "no" ; then
8490		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8491			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8492		fi
8493
8494		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8495			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8496		fi
8497
8498		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8499
8500		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8501$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8502		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8503		if eval \${$cacheid+:} false; then :
8504  $as_echo_n "(cached) " >&6
8505else
8506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8507/* end confdefs.h.  */
8508int i;
8509int
8510main ()
8511{
8512
8513  ;
8514  return 0;
8515}
8516_ACEOF
8517if ac_fn_c_try_link "$LINENO"; then :
8518  eval $cacheid=yes
8519else
8520  eval $cacheid=no
8521fi
8522rm -f core conftest.err conftest.$ac_objext \
8523    conftest$ac_exeext conftest.$ac_ext
8524fi
8525
8526
8527		CFLAGS="$xorg_testset_save_CFLAGS"
8528
8529		eval supported=\$$cacheid
8530		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8531$as_echo "$supported" >&6; }
8532		if test "$supported" = "yes" ; then
8533			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8534			found="yes"
8535		fi
8536	fi
8537
8538	if test $found = "no" ; then
8539		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8540			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8541		fi
8542
8543		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8544			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8545		fi
8546
8547		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8548
8549		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8550$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8551		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8552		if eval \${$cacheid+:} false; then :
8553  $as_echo_n "(cached) " >&6
8554else
8555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556/* end confdefs.h.  */
8557int i;
8558int
8559main ()
8560{
8561
8562  ;
8563  return 0;
8564}
8565_ACEOF
8566if ac_fn_c_try_link "$LINENO"; then :
8567  eval $cacheid=yes
8568else
8569  eval $cacheid=no
8570fi
8571rm -f core conftest.err conftest.$ac_objext \
8572    conftest$ac_exeext conftest.$ac_ext
8573fi
8574
8575
8576		CFLAGS="$xorg_testset_save_CFLAGS"
8577
8578		eval supported=\$$cacheid
8579		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8580$as_echo "$supported" >&6; }
8581		if test "$supported" = "yes" ; then
8582			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8583			found="yes"
8584		fi
8585	fi
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601xorg_testset_save_CFLAGS="$CFLAGS"
8602
8603if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8604	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8605	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8606$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8607if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8608  $as_echo_n "(cached) " >&6
8609else
8610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611/* end confdefs.h.  */
8612int i;
8613_ACEOF
8614if ac_fn_c_try_compile "$LINENO"; then :
8615  xorg_cv_cc_flag_unknown_warning_option=yes
8616else
8617  xorg_cv_cc_flag_unknown_warning_option=no
8618fi
8619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620fi
8621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8622$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8623	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8624	CFLAGS="$xorg_testset_save_CFLAGS"
8625fi
8626
8627if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8628	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8629		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8630	fi
8631	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8632	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8633$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8634if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8635  $as_echo_n "(cached) " >&6
8636else
8637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638/* end confdefs.h.  */
8639int i;
8640_ACEOF
8641if ac_fn_c_try_compile "$LINENO"; then :
8642  xorg_cv_cc_flag_unused_command_line_argument=yes
8643else
8644  xorg_cv_cc_flag_unused_command_line_argument=no
8645fi
8646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8647fi
8648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8649$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8650	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8651	CFLAGS="$xorg_testset_save_CFLAGS"
8652fi
8653
8654found="no"
8655
8656	if test $found = "no" ; then
8657		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8658			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8659		fi
8660
8661		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8662			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8663		fi
8664
8665		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8666
8667		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8668$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8669		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8670		if eval \${$cacheid+:} false; then :
8671  $as_echo_n "(cached) " >&6
8672else
8673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8674/* end confdefs.h.  */
8675int i;
8676int
8677main ()
8678{
8679
8680  ;
8681  return 0;
8682}
8683_ACEOF
8684if ac_fn_c_try_link "$LINENO"; then :
8685  eval $cacheid=yes
8686else
8687  eval $cacheid=no
8688fi
8689rm -f core conftest.err conftest.$ac_objext \
8690    conftest$ac_exeext conftest.$ac_ext
8691fi
8692
8693
8694		CFLAGS="$xorg_testset_save_CFLAGS"
8695
8696		eval supported=\$$cacheid
8697		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8698$as_echo "$supported" >&6; }
8699		if test "$supported" = "yes" ; then
8700			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8701			found="yes"
8702		fi
8703	fi
8704
8705 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8706else
8707{ $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
8708$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;}
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722xorg_testset_save_CFLAGS="$CFLAGS"
8723
8724if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8725	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8726	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8727$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8728if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8729  $as_echo_n "(cached) " >&6
8730else
8731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732/* end confdefs.h.  */
8733int i;
8734_ACEOF
8735if ac_fn_c_try_compile "$LINENO"; then :
8736  xorg_cv_cc_flag_unknown_warning_option=yes
8737else
8738  xorg_cv_cc_flag_unknown_warning_option=no
8739fi
8740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8741fi
8742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8743$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8744	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8745	CFLAGS="$xorg_testset_save_CFLAGS"
8746fi
8747
8748if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8749	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8750		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8751	fi
8752	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8753	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8754$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8755if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8756  $as_echo_n "(cached) " >&6
8757else
8758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8759/* end confdefs.h.  */
8760int i;
8761_ACEOF
8762if ac_fn_c_try_compile "$LINENO"; then :
8763  xorg_cv_cc_flag_unused_command_line_argument=yes
8764else
8765  xorg_cv_cc_flag_unused_command_line_argument=no
8766fi
8767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8768fi
8769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8770$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8771	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8772	CFLAGS="$xorg_testset_save_CFLAGS"
8773fi
8774
8775found="no"
8776
8777	if test $found = "no" ; then
8778		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8779			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8780		fi
8781
8782		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8783			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8784		fi
8785
8786		CFLAGS="$CFLAGS -Wimplicit"
8787
8788		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8789$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8790		cacheid=xorg_cv_cc_flag__Wimplicit
8791		if eval \${$cacheid+:} false; then :
8792  $as_echo_n "(cached) " >&6
8793else
8794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795/* end confdefs.h.  */
8796int i;
8797int
8798main ()
8799{
8800
8801  ;
8802  return 0;
8803}
8804_ACEOF
8805if ac_fn_c_try_link "$LINENO"; then :
8806  eval $cacheid=yes
8807else
8808  eval $cacheid=no
8809fi
8810rm -f core conftest.err conftest.$ac_objext \
8811    conftest$ac_exeext conftest.$ac_ext
8812fi
8813
8814
8815		CFLAGS="$xorg_testset_save_CFLAGS"
8816
8817		eval supported=\$$cacheid
8818		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8819$as_echo "$supported" >&6; }
8820		if test "$supported" = "yes" ; then
8821			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8822			found="yes"
8823		fi
8824	fi
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840xorg_testset_save_CFLAGS="$CFLAGS"
8841
8842if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8843	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8844	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8845$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8846if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8847  $as_echo_n "(cached) " >&6
8848else
8849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8850/* end confdefs.h.  */
8851int i;
8852_ACEOF
8853if ac_fn_c_try_compile "$LINENO"; then :
8854  xorg_cv_cc_flag_unknown_warning_option=yes
8855else
8856  xorg_cv_cc_flag_unknown_warning_option=no
8857fi
8858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8859fi
8860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8861$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8862	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8863	CFLAGS="$xorg_testset_save_CFLAGS"
8864fi
8865
8866if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8867	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8868		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8869	fi
8870	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8871	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8872$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8873if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8874  $as_echo_n "(cached) " >&6
8875else
8876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8877/* end confdefs.h.  */
8878int i;
8879_ACEOF
8880if ac_fn_c_try_compile "$LINENO"; then :
8881  xorg_cv_cc_flag_unused_command_line_argument=yes
8882else
8883  xorg_cv_cc_flag_unused_command_line_argument=no
8884fi
8885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8886fi
8887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8888$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8889	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8890	CFLAGS="$xorg_testset_save_CFLAGS"
8891fi
8892
8893found="no"
8894
8895	if test $found = "no" ; then
8896		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8897			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8898		fi
8899
8900		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8901			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8902		fi
8903
8904		CFLAGS="$CFLAGS -Wnonnull"
8905
8906		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8907$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8908		cacheid=xorg_cv_cc_flag__Wnonnull
8909		if eval \${$cacheid+:} false; then :
8910  $as_echo_n "(cached) " >&6
8911else
8912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913/* end confdefs.h.  */
8914int i;
8915int
8916main ()
8917{
8918
8919  ;
8920  return 0;
8921}
8922_ACEOF
8923if ac_fn_c_try_link "$LINENO"; then :
8924  eval $cacheid=yes
8925else
8926  eval $cacheid=no
8927fi
8928rm -f core conftest.err conftest.$ac_objext \
8929    conftest$ac_exeext conftest.$ac_ext
8930fi
8931
8932
8933		CFLAGS="$xorg_testset_save_CFLAGS"
8934
8935		eval supported=\$$cacheid
8936		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8937$as_echo "$supported" >&6; }
8938		if test "$supported" = "yes" ; then
8939			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8940			found="yes"
8941		fi
8942	fi
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958xorg_testset_save_CFLAGS="$CFLAGS"
8959
8960if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8961	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8962	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8963$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8964if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8965  $as_echo_n "(cached) " >&6
8966else
8967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8968/* end confdefs.h.  */
8969int i;
8970_ACEOF
8971if ac_fn_c_try_compile "$LINENO"; then :
8972  xorg_cv_cc_flag_unknown_warning_option=yes
8973else
8974  xorg_cv_cc_flag_unknown_warning_option=no
8975fi
8976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8977fi
8978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8979$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8980	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8981	CFLAGS="$xorg_testset_save_CFLAGS"
8982fi
8983
8984if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8985	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8986		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8987	fi
8988	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8989	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8990$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8991if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8992  $as_echo_n "(cached) " >&6
8993else
8994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995/* end confdefs.h.  */
8996int i;
8997_ACEOF
8998if ac_fn_c_try_compile "$LINENO"; then :
8999  xorg_cv_cc_flag_unused_command_line_argument=yes
9000else
9001  xorg_cv_cc_flag_unused_command_line_argument=no
9002fi
9003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9004fi
9005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9006$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9007	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9008	CFLAGS="$xorg_testset_save_CFLAGS"
9009fi
9010
9011found="no"
9012
9013	if test $found = "no" ; then
9014		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9015			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9016		fi
9017
9018		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9019			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9020		fi
9021
9022		CFLAGS="$CFLAGS -Winit-self"
9023
9024		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9025$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9026		cacheid=xorg_cv_cc_flag__Winit_self
9027		if eval \${$cacheid+:} false; then :
9028  $as_echo_n "(cached) " >&6
9029else
9030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031/* end confdefs.h.  */
9032int i;
9033int
9034main ()
9035{
9036
9037  ;
9038  return 0;
9039}
9040_ACEOF
9041if ac_fn_c_try_link "$LINENO"; then :
9042  eval $cacheid=yes
9043else
9044  eval $cacheid=no
9045fi
9046rm -f core conftest.err conftest.$ac_objext \
9047    conftest$ac_exeext conftest.$ac_ext
9048fi
9049
9050
9051		CFLAGS="$xorg_testset_save_CFLAGS"
9052
9053		eval supported=\$$cacheid
9054		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9055$as_echo "$supported" >&6; }
9056		if test "$supported" = "yes" ; then
9057			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9058			found="yes"
9059		fi
9060	fi
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076xorg_testset_save_CFLAGS="$CFLAGS"
9077
9078if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9079	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9080	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9081$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9082if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9083  $as_echo_n "(cached) " >&6
9084else
9085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086/* end confdefs.h.  */
9087int i;
9088_ACEOF
9089if ac_fn_c_try_compile "$LINENO"; then :
9090  xorg_cv_cc_flag_unknown_warning_option=yes
9091else
9092  xorg_cv_cc_flag_unknown_warning_option=no
9093fi
9094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9095fi
9096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9097$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9098	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9099	CFLAGS="$xorg_testset_save_CFLAGS"
9100fi
9101
9102if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9103	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9104		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9105	fi
9106	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9107	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9108$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9109if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9110  $as_echo_n "(cached) " >&6
9111else
9112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9113/* end confdefs.h.  */
9114int i;
9115_ACEOF
9116if ac_fn_c_try_compile "$LINENO"; then :
9117  xorg_cv_cc_flag_unused_command_line_argument=yes
9118else
9119  xorg_cv_cc_flag_unused_command_line_argument=no
9120fi
9121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9122fi
9123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9124$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9125	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9126	CFLAGS="$xorg_testset_save_CFLAGS"
9127fi
9128
9129found="no"
9130
9131	if test $found = "no" ; then
9132		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9133			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9134		fi
9135
9136		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9137			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9138		fi
9139
9140		CFLAGS="$CFLAGS -Wmain"
9141
9142		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9143$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9144		cacheid=xorg_cv_cc_flag__Wmain
9145		if eval \${$cacheid+:} false; then :
9146  $as_echo_n "(cached) " >&6
9147else
9148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9149/* end confdefs.h.  */
9150int i;
9151int
9152main ()
9153{
9154
9155  ;
9156  return 0;
9157}
9158_ACEOF
9159if ac_fn_c_try_link "$LINENO"; then :
9160  eval $cacheid=yes
9161else
9162  eval $cacheid=no
9163fi
9164rm -f core conftest.err conftest.$ac_objext \
9165    conftest$ac_exeext conftest.$ac_ext
9166fi
9167
9168
9169		CFLAGS="$xorg_testset_save_CFLAGS"
9170
9171		eval supported=\$$cacheid
9172		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9173$as_echo "$supported" >&6; }
9174		if test "$supported" = "yes" ; then
9175			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9176			found="yes"
9177		fi
9178	fi
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194xorg_testset_save_CFLAGS="$CFLAGS"
9195
9196if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9197	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9198	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9199$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9200if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9201  $as_echo_n "(cached) " >&6
9202else
9203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204/* end confdefs.h.  */
9205int i;
9206_ACEOF
9207if ac_fn_c_try_compile "$LINENO"; then :
9208  xorg_cv_cc_flag_unknown_warning_option=yes
9209else
9210  xorg_cv_cc_flag_unknown_warning_option=no
9211fi
9212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9213fi
9214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9215$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9216	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9217	CFLAGS="$xorg_testset_save_CFLAGS"
9218fi
9219
9220if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9221	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9222		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9223	fi
9224	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9225	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9226$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9227if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9228  $as_echo_n "(cached) " >&6
9229else
9230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231/* end confdefs.h.  */
9232int i;
9233_ACEOF
9234if ac_fn_c_try_compile "$LINENO"; then :
9235  xorg_cv_cc_flag_unused_command_line_argument=yes
9236else
9237  xorg_cv_cc_flag_unused_command_line_argument=no
9238fi
9239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9240fi
9241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9242$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9243	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9244	CFLAGS="$xorg_testset_save_CFLAGS"
9245fi
9246
9247found="no"
9248
9249	if test $found = "no" ; then
9250		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9251			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9252		fi
9253
9254		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9255			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9256		fi
9257
9258		CFLAGS="$CFLAGS -Wmissing-braces"
9259
9260		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9261$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9262		cacheid=xorg_cv_cc_flag__Wmissing_braces
9263		if eval \${$cacheid+:} false; then :
9264  $as_echo_n "(cached) " >&6
9265else
9266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9267/* end confdefs.h.  */
9268int i;
9269int
9270main ()
9271{
9272
9273  ;
9274  return 0;
9275}
9276_ACEOF
9277if ac_fn_c_try_link "$LINENO"; then :
9278  eval $cacheid=yes
9279else
9280  eval $cacheid=no
9281fi
9282rm -f core conftest.err conftest.$ac_objext \
9283    conftest$ac_exeext conftest.$ac_ext
9284fi
9285
9286
9287		CFLAGS="$xorg_testset_save_CFLAGS"
9288
9289		eval supported=\$$cacheid
9290		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9291$as_echo "$supported" >&6; }
9292		if test "$supported" = "yes" ; then
9293			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9294			found="yes"
9295		fi
9296	fi
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312xorg_testset_save_CFLAGS="$CFLAGS"
9313
9314if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9315	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9316	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9317$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9318if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9319  $as_echo_n "(cached) " >&6
9320else
9321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9322/* end confdefs.h.  */
9323int i;
9324_ACEOF
9325if ac_fn_c_try_compile "$LINENO"; then :
9326  xorg_cv_cc_flag_unknown_warning_option=yes
9327else
9328  xorg_cv_cc_flag_unknown_warning_option=no
9329fi
9330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9331fi
9332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9333$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9334	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9335	CFLAGS="$xorg_testset_save_CFLAGS"
9336fi
9337
9338if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9339	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9340		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9341	fi
9342	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9343	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9344$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9345if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9346  $as_echo_n "(cached) " >&6
9347else
9348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9349/* end confdefs.h.  */
9350int i;
9351_ACEOF
9352if ac_fn_c_try_compile "$LINENO"; then :
9353  xorg_cv_cc_flag_unused_command_line_argument=yes
9354else
9355  xorg_cv_cc_flag_unused_command_line_argument=no
9356fi
9357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9358fi
9359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9360$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9361	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9362	CFLAGS="$xorg_testset_save_CFLAGS"
9363fi
9364
9365found="no"
9366
9367	if test $found = "no" ; then
9368		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9369			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9370		fi
9371
9372		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9373			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9374		fi
9375
9376		CFLAGS="$CFLAGS -Wsequence-point"
9377
9378		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9379$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9380		cacheid=xorg_cv_cc_flag__Wsequence_point
9381		if eval \${$cacheid+:} false; then :
9382  $as_echo_n "(cached) " >&6
9383else
9384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9385/* end confdefs.h.  */
9386int i;
9387int
9388main ()
9389{
9390
9391  ;
9392  return 0;
9393}
9394_ACEOF
9395if ac_fn_c_try_link "$LINENO"; then :
9396  eval $cacheid=yes
9397else
9398  eval $cacheid=no
9399fi
9400rm -f core conftest.err conftest.$ac_objext \
9401    conftest$ac_exeext conftest.$ac_ext
9402fi
9403
9404
9405		CFLAGS="$xorg_testset_save_CFLAGS"
9406
9407		eval supported=\$$cacheid
9408		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9409$as_echo "$supported" >&6; }
9410		if test "$supported" = "yes" ; then
9411			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9412			found="yes"
9413		fi
9414	fi
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430xorg_testset_save_CFLAGS="$CFLAGS"
9431
9432if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9433	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9434	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9435$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9436if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9437  $as_echo_n "(cached) " >&6
9438else
9439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440/* end confdefs.h.  */
9441int i;
9442_ACEOF
9443if ac_fn_c_try_compile "$LINENO"; then :
9444  xorg_cv_cc_flag_unknown_warning_option=yes
9445else
9446  xorg_cv_cc_flag_unknown_warning_option=no
9447fi
9448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9449fi
9450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9451$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9452	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9453	CFLAGS="$xorg_testset_save_CFLAGS"
9454fi
9455
9456if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9457	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9458		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9459	fi
9460	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9461	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9462$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9463if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9464  $as_echo_n "(cached) " >&6
9465else
9466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9467/* end confdefs.h.  */
9468int i;
9469_ACEOF
9470if ac_fn_c_try_compile "$LINENO"; then :
9471  xorg_cv_cc_flag_unused_command_line_argument=yes
9472else
9473  xorg_cv_cc_flag_unused_command_line_argument=no
9474fi
9475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9476fi
9477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9478$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9479	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9480	CFLAGS="$xorg_testset_save_CFLAGS"
9481fi
9482
9483found="no"
9484
9485	if test $found = "no" ; then
9486		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9487			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9488		fi
9489
9490		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9491			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9492		fi
9493
9494		CFLAGS="$CFLAGS -Wreturn-type"
9495
9496		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9497$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9498		cacheid=xorg_cv_cc_flag__Wreturn_type
9499		if eval \${$cacheid+:} false; then :
9500  $as_echo_n "(cached) " >&6
9501else
9502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503/* end confdefs.h.  */
9504int i;
9505int
9506main ()
9507{
9508
9509  ;
9510  return 0;
9511}
9512_ACEOF
9513if ac_fn_c_try_link "$LINENO"; then :
9514  eval $cacheid=yes
9515else
9516  eval $cacheid=no
9517fi
9518rm -f core conftest.err conftest.$ac_objext \
9519    conftest$ac_exeext conftest.$ac_ext
9520fi
9521
9522
9523		CFLAGS="$xorg_testset_save_CFLAGS"
9524
9525		eval supported=\$$cacheid
9526		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9527$as_echo "$supported" >&6; }
9528		if test "$supported" = "yes" ; then
9529			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9530			found="yes"
9531		fi
9532	fi
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548xorg_testset_save_CFLAGS="$CFLAGS"
9549
9550if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9551	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9552	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9553$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9554if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9555  $as_echo_n "(cached) " >&6
9556else
9557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558/* end confdefs.h.  */
9559int i;
9560_ACEOF
9561if ac_fn_c_try_compile "$LINENO"; then :
9562  xorg_cv_cc_flag_unknown_warning_option=yes
9563else
9564  xorg_cv_cc_flag_unknown_warning_option=no
9565fi
9566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9567fi
9568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9569$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9570	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9571	CFLAGS="$xorg_testset_save_CFLAGS"
9572fi
9573
9574if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9575	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9576		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9577	fi
9578	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9579	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9580$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9581if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9582  $as_echo_n "(cached) " >&6
9583else
9584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585/* end confdefs.h.  */
9586int i;
9587_ACEOF
9588if ac_fn_c_try_compile "$LINENO"; then :
9589  xorg_cv_cc_flag_unused_command_line_argument=yes
9590else
9591  xorg_cv_cc_flag_unused_command_line_argument=no
9592fi
9593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9594fi
9595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9596$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9597	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9598	CFLAGS="$xorg_testset_save_CFLAGS"
9599fi
9600
9601found="no"
9602
9603	if test $found = "no" ; then
9604		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9605			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9606		fi
9607
9608		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9609			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9610		fi
9611
9612		CFLAGS="$CFLAGS -Wtrigraphs"
9613
9614		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9615$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9616		cacheid=xorg_cv_cc_flag__Wtrigraphs
9617		if eval \${$cacheid+:} false; then :
9618  $as_echo_n "(cached) " >&6
9619else
9620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621/* end confdefs.h.  */
9622int i;
9623int
9624main ()
9625{
9626
9627  ;
9628  return 0;
9629}
9630_ACEOF
9631if ac_fn_c_try_link "$LINENO"; then :
9632  eval $cacheid=yes
9633else
9634  eval $cacheid=no
9635fi
9636rm -f core conftest.err conftest.$ac_objext \
9637    conftest$ac_exeext conftest.$ac_ext
9638fi
9639
9640
9641		CFLAGS="$xorg_testset_save_CFLAGS"
9642
9643		eval supported=\$$cacheid
9644		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9645$as_echo "$supported" >&6; }
9646		if test "$supported" = "yes" ; then
9647			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9648			found="yes"
9649		fi
9650	fi
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666xorg_testset_save_CFLAGS="$CFLAGS"
9667
9668if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9669	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9670	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9671$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9672if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9673  $as_echo_n "(cached) " >&6
9674else
9675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9676/* end confdefs.h.  */
9677int i;
9678_ACEOF
9679if ac_fn_c_try_compile "$LINENO"; then :
9680  xorg_cv_cc_flag_unknown_warning_option=yes
9681else
9682  xorg_cv_cc_flag_unknown_warning_option=no
9683fi
9684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9685fi
9686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9687$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9688	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9689	CFLAGS="$xorg_testset_save_CFLAGS"
9690fi
9691
9692if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9693	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9694		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9695	fi
9696	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9697	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9698$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9699if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9700  $as_echo_n "(cached) " >&6
9701else
9702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9703/* end confdefs.h.  */
9704int i;
9705_ACEOF
9706if ac_fn_c_try_compile "$LINENO"; then :
9707  xorg_cv_cc_flag_unused_command_line_argument=yes
9708else
9709  xorg_cv_cc_flag_unused_command_line_argument=no
9710fi
9711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9712fi
9713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9714$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9715	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9716	CFLAGS="$xorg_testset_save_CFLAGS"
9717fi
9718
9719found="no"
9720
9721	if test $found = "no" ; then
9722		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9723			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9724		fi
9725
9726		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9727			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9728		fi
9729
9730		CFLAGS="$CFLAGS -Warray-bounds"
9731
9732		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9733$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9734		cacheid=xorg_cv_cc_flag__Warray_bounds
9735		if eval \${$cacheid+:} false; then :
9736  $as_echo_n "(cached) " >&6
9737else
9738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9739/* end confdefs.h.  */
9740int i;
9741int
9742main ()
9743{
9744
9745  ;
9746  return 0;
9747}
9748_ACEOF
9749if ac_fn_c_try_link "$LINENO"; then :
9750  eval $cacheid=yes
9751else
9752  eval $cacheid=no
9753fi
9754rm -f core conftest.err conftest.$ac_objext \
9755    conftest$ac_exeext conftest.$ac_ext
9756fi
9757
9758
9759		CFLAGS="$xorg_testset_save_CFLAGS"
9760
9761		eval supported=\$$cacheid
9762		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9763$as_echo "$supported" >&6; }
9764		if test "$supported" = "yes" ; then
9765			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9766			found="yes"
9767		fi
9768	fi
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784xorg_testset_save_CFLAGS="$CFLAGS"
9785
9786if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9787	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9788	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9789$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9790if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9791  $as_echo_n "(cached) " >&6
9792else
9793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9794/* end confdefs.h.  */
9795int i;
9796_ACEOF
9797if ac_fn_c_try_compile "$LINENO"; then :
9798  xorg_cv_cc_flag_unknown_warning_option=yes
9799else
9800  xorg_cv_cc_flag_unknown_warning_option=no
9801fi
9802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9803fi
9804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9805$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9806	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9807	CFLAGS="$xorg_testset_save_CFLAGS"
9808fi
9809
9810if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9811	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9812		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9813	fi
9814	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9815	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9816$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9817if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9818  $as_echo_n "(cached) " >&6
9819else
9820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821/* end confdefs.h.  */
9822int i;
9823_ACEOF
9824if ac_fn_c_try_compile "$LINENO"; then :
9825  xorg_cv_cc_flag_unused_command_line_argument=yes
9826else
9827  xorg_cv_cc_flag_unused_command_line_argument=no
9828fi
9829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9830fi
9831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9832$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9833	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9834	CFLAGS="$xorg_testset_save_CFLAGS"
9835fi
9836
9837found="no"
9838
9839	if test $found = "no" ; then
9840		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9841			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9842		fi
9843
9844		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9845			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9846		fi
9847
9848		CFLAGS="$CFLAGS -Wwrite-strings"
9849
9850		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9851$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9852		cacheid=xorg_cv_cc_flag__Wwrite_strings
9853		if eval \${$cacheid+:} false; then :
9854  $as_echo_n "(cached) " >&6
9855else
9856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9857/* end confdefs.h.  */
9858int i;
9859int
9860main ()
9861{
9862
9863  ;
9864  return 0;
9865}
9866_ACEOF
9867if ac_fn_c_try_link "$LINENO"; then :
9868  eval $cacheid=yes
9869else
9870  eval $cacheid=no
9871fi
9872rm -f core conftest.err conftest.$ac_objext \
9873    conftest$ac_exeext conftest.$ac_ext
9874fi
9875
9876
9877		CFLAGS="$xorg_testset_save_CFLAGS"
9878
9879		eval supported=\$$cacheid
9880		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9881$as_echo "$supported" >&6; }
9882		if test "$supported" = "yes" ; then
9883			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9884			found="yes"
9885		fi
9886	fi
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902xorg_testset_save_CFLAGS="$CFLAGS"
9903
9904if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9905	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9906	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9907$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9908if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9909  $as_echo_n "(cached) " >&6
9910else
9911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9912/* end confdefs.h.  */
9913int i;
9914_ACEOF
9915if ac_fn_c_try_compile "$LINENO"; then :
9916  xorg_cv_cc_flag_unknown_warning_option=yes
9917else
9918  xorg_cv_cc_flag_unknown_warning_option=no
9919fi
9920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9921fi
9922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9923$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9924	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9925	CFLAGS="$xorg_testset_save_CFLAGS"
9926fi
9927
9928if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9929	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9930		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9931	fi
9932	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9933	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9934$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9935if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9936  $as_echo_n "(cached) " >&6
9937else
9938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9939/* end confdefs.h.  */
9940int i;
9941_ACEOF
9942if ac_fn_c_try_compile "$LINENO"; then :
9943  xorg_cv_cc_flag_unused_command_line_argument=yes
9944else
9945  xorg_cv_cc_flag_unused_command_line_argument=no
9946fi
9947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9948fi
9949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9950$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9951	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9952	CFLAGS="$xorg_testset_save_CFLAGS"
9953fi
9954
9955found="no"
9956
9957	if test $found = "no" ; then
9958		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9959			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9960		fi
9961
9962		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9963			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9964		fi
9965
9966		CFLAGS="$CFLAGS -Waddress"
9967
9968		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9969$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9970		cacheid=xorg_cv_cc_flag__Waddress
9971		if eval \${$cacheid+:} false; then :
9972  $as_echo_n "(cached) " >&6
9973else
9974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9975/* end confdefs.h.  */
9976int i;
9977int
9978main ()
9979{
9980
9981  ;
9982  return 0;
9983}
9984_ACEOF
9985if ac_fn_c_try_link "$LINENO"; then :
9986  eval $cacheid=yes
9987else
9988  eval $cacheid=no
9989fi
9990rm -f core conftest.err conftest.$ac_objext \
9991    conftest$ac_exeext conftest.$ac_ext
9992fi
9993
9994
9995		CFLAGS="$xorg_testset_save_CFLAGS"
9996
9997		eval supported=\$$cacheid
9998		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9999$as_echo "$supported" >&6; }
10000		if test "$supported" = "yes" ; then
10001			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10002			found="yes"
10003		fi
10004	fi
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020xorg_testset_save_CFLAGS="$CFLAGS"
10021
10022if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10023	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10024	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10025$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10026if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10027  $as_echo_n "(cached) " >&6
10028else
10029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10030/* end confdefs.h.  */
10031int i;
10032_ACEOF
10033if ac_fn_c_try_compile "$LINENO"; then :
10034  xorg_cv_cc_flag_unknown_warning_option=yes
10035else
10036  xorg_cv_cc_flag_unknown_warning_option=no
10037fi
10038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10039fi
10040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10041$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10042	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10043	CFLAGS="$xorg_testset_save_CFLAGS"
10044fi
10045
10046if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10047	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10048		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10049	fi
10050	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10051	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10052$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10053if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10054  $as_echo_n "(cached) " >&6
10055else
10056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10057/* end confdefs.h.  */
10058int i;
10059_ACEOF
10060if ac_fn_c_try_compile "$LINENO"; then :
10061  xorg_cv_cc_flag_unused_command_line_argument=yes
10062else
10063  xorg_cv_cc_flag_unused_command_line_argument=no
10064fi
10065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10066fi
10067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10068$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10069	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10070	CFLAGS="$xorg_testset_save_CFLAGS"
10071fi
10072
10073found="no"
10074
10075	if test $found = "no" ; then
10076		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10077			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10078		fi
10079
10080		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10081			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10082		fi
10083
10084		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10085
10086		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10087$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10088		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10089		if eval \${$cacheid+:} false; then :
10090  $as_echo_n "(cached) " >&6
10091else
10092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10093/* end confdefs.h.  */
10094int i;
10095int
10096main ()
10097{
10098
10099  ;
10100  return 0;
10101}
10102_ACEOF
10103if ac_fn_c_try_link "$LINENO"; then :
10104  eval $cacheid=yes
10105else
10106  eval $cacheid=no
10107fi
10108rm -f core conftest.err conftest.$ac_objext \
10109    conftest$ac_exeext conftest.$ac_ext
10110fi
10111
10112
10113		CFLAGS="$xorg_testset_save_CFLAGS"
10114
10115		eval supported=\$$cacheid
10116		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10117$as_echo "$supported" >&6; }
10118		if test "$supported" = "yes" ; then
10119			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10120			found="yes"
10121		fi
10122	fi
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138xorg_testset_save_CFLAGS="$CFLAGS"
10139
10140if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10141	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10142	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10143$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10144if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10145  $as_echo_n "(cached) " >&6
10146else
10147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10148/* end confdefs.h.  */
10149int i;
10150_ACEOF
10151if ac_fn_c_try_compile "$LINENO"; then :
10152  xorg_cv_cc_flag_unknown_warning_option=yes
10153else
10154  xorg_cv_cc_flag_unknown_warning_option=no
10155fi
10156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10157fi
10158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10159$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10160	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10161	CFLAGS="$xorg_testset_save_CFLAGS"
10162fi
10163
10164if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10165	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10166		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10167	fi
10168	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10169	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10170$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10171if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10172  $as_echo_n "(cached) " >&6
10173else
10174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10175/* end confdefs.h.  */
10176int i;
10177_ACEOF
10178if ac_fn_c_try_compile "$LINENO"; then :
10179  xorg_cv_cc_flag_unused_command_line_argument=yes
10180else
10181  xorg_cv_cc_flag_unused_command_line_argument=no
10182fi
10183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10184fi
10185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10186$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10187	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10188	CFLAGS="$xorg_testset_save_CFLAGS"
10189fi
10190
10191found="no"
10192
10193	if test $found = "no" ; then
10194		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10195			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10196		fi
10197
10198		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10199			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10200		fi
10201
10202		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10203
10204		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10205$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10206		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10207		if eval \${$cacheid+:} false; then :
10208  $as_echo_n "(cached) " >&6
10209else
10210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10211/* end confdefs.h.  */
10212int i;
10213int
10214main ()
10215{
10216
10217  ;
10218  return 0;
10219}
10220_ACEOF
10221if ac_fn_c_try_link "$LINENO"; then :
10222  eval $cacheid=yes
10223else
10224  eval $cacheid=no
10225fi
10226rm -f core conftest.err conftest.$ac_objext \
10227    conftest$ac_exeext conftest.$ac_ext
10228fi
10229
10230
10231		CFLAGS="$xorg_testset_save_CFLAGS"
10232
10233		eval supported=\$$cacheid
10234		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10235$as_echo "$supported" >&6; }
10236		if test "$supported" = "yes" ; then
10237			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10238			found="yes"
10239		fi
10240	fi
10241
10242
10243fi
10244
10245
10246
10247
10248
10249
10250
10251		CWARNFLAGS="$BASE_CFLAGS"
10252		if  test "x$GCC" = xyes ; then
10253		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10254		fi
10255
10256
10257
10258
10259
10260
10261
10262
10263# Check whether --enable-strict-compilation was given.
10264if test "${enable_strict_compilation+set}" = set; then :
10265  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10266else
10267  STRICT_COMPILE=no
10268fi
10269
10270
10271
10272
10273
10274
10275STRICT_CFLAGS=""
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289xorg_testset_save_CFLAGS="$CFLAGS"
10290
10291if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10292	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10293	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10294$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10295if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10296  $as_echo_n "(cached) " >&6
10297else
10298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10299/* end confdefs.h.  */
10300int i;
10301_ACEOF
10302if ac_fn_c_try_compile "$LINENO"; then :
10303  xorg_cv_cc_flag_unknown_warning_option=yes
10304else
10305  xorg_cv_cc_flag_unknown_warning_option=no
10306fi
10307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10308fi
10309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10310$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10311	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10312	CFLAGS="$xorg_testset_save_CFLAGS"
10313fi
10314
10315if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10316	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10317		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10318	fi
10319	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10320	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10321$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10322if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10323  $as_echo_n "(cached) " >&6
10324else
10325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10326/* end confdefs.h.  */
10327int i;
10328_ACEOF
10329if ac_fn_c_try_compile "$LINENO"; then :
10330  xorg_cv_cc_flag_unused_command_line_argument=yes
10331else
10332  xorg_cv_cc_flag_unused_command_line_argument=no
10333fi
10334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10335fi
10336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10337$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10338	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10339	CFLAGS="$xorg_testset_save_CFLAGS"
10340fi
10341
10342found="no"
10343
10344	if test $found = "no" ; then
10345		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10346			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10347		fi
10348
10349		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10350			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10351		fi
10352
10353		CFLAGS="$CFLAGS -pedantic"
10354
10355		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10356$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10357		cacheid=xorg_cv_cc_flag__pedantic
10358		if eval \${$cacheid+:} false; then :
10359  $as_echo_n "(cached) " >&6
10360else
10361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10362/* end confdefs.h.  */
10363int i;
10364int
10365main ()
10366{
10367
10368  ;
10369  return 0;
10370}
10371_ACEOF
10372if ac_fn_c_try_link "$LINENO"; then :
10373  eval $cacheid=yes
10374else
10375  eval $cacheid=no
10376fi
10377rm -f core conftest.err conftest.$ac_objext \
10378    conftest$ac_exeext conftest.$ac_ext
10379fi
10380
10381
10382		CFLAGS="$xorg_testset_save_CFLAGS"
10383
10384		eval supported=\$$cacheid
10385		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10386$as_echo "$supported" >&6; }
10387		if test "$supported" = "yes" ; then
10388			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10389			found="yes"
10390		fi
10391	fi
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407xorg_testset_save_CFLAGS="$CFLAGS"
10408
10409if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10410	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10411	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10412$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10413if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10414  $as_echo_n "(cached) " >&6
10415else
10416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417/* end confdefs.h.  */
10418int i;
10419_ACEOF
10420if ac_fn_c_try_compile "$LINENO"; then :
10421  xorg_cv_cc_flag_unknown_warning_option=yes
10422else
10423  xorg_cv_cc_flag_unknown_warning_option=no
10424fi
10425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10426fi
10427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10428$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10429	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10430	CFLAGS="$xorg_testset_save_CFLAGS"
10431fi
10432
10433if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10434	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10435		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10436	fi
10437	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10438	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10439$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10440if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10441  $as_echo_n "(cached) " >&6
10442else
10443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10444/* end confdefs.h.  */
10445int i;
10446_ACEOF
10447if ac_fn_c_try_compile "$LINENO"; then :
10448  xorg_cv_cc_flag_unused_command_line_argument=yes
10449else
10450  xorg_cv_cc_flag_unused_command_line_argument=no
10451fi
10452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10453fi
10454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10455$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10456	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10457	CFLAGS="$xorg_testset_save_CFLAGS"
10458fi
10459
10460found="no"
10461
10462	if test $found = "no" ; then
10463		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10464			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10465		fi
10466
10467		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10468			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10469		fi
10470
10471		CFLAGS="$CFLAGS -Werror"
10472
10473		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10474$as_echo_n "checking if $CC supports -Werror... " >&6; }
10475		cacheid=xorg_cv_cc_flag__Werror
10476		if eval \${$cacheid+:} false; then :
10477  $as_echo_n "(cached) " >&6
10478else
10479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10480/* end confdefs.h.  */
10481int i;
10482int
10483main ()
10484{
10485
10486  ;
10487  return 0;
10488}
10489_ACEOF
10490if ac_fn_c_try_link "$LINENO"; then :
10491  eval $cacheid=yes
10492else
10493  eval $cacheid=no
10494fi
10495rm -f core conftest.err conftest.$ac_objext \
10496    conftest$ac_exeext conftest.$ac_ext
10497fi
10498
10499
10500		CFLAGS="$xorg_testset_save_CFLAGS"
10501
10502		eval supported=\$$cacheid
10503		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10504$as_echo "$supported" >&6; }
10505		if test "$supported" = "yes" ; then
10506			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10507			found="yes"
10508		fi
10509	fi
10510
10511	if test $found = "no" ; then
10512		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10513			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10514		fi
10515
10516		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10517			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10518		fi
10519
10520		CFLAGS="$CFLAGS -errwarn"
10521
10522		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10523$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10524		cacheid=xorg_cv_cc_flag__errwarn
10525		if eval \${$cacheid+:} false; then :
10526  $as_echo_n "(cached) " >&6
10527else
10528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10529/* end confdefs.h.  */
10530int i;
10531int
10532main ()
10533{
10534
10535  ;
10536  return 0;
10537}
10538_ACEOF
10539if ac_fn_c_try_link "$LINENO"; then :
10540  eval $cacheid=yes
10541else
10542  eval $cacheid=no
10543fi
10544rm -f core conftest.err conftest.$ac_objext \
10545    conftest$ac_exeext conftest.$ac_ext
10546fi
10547
10548
10549		CFLAGS="$xorg_testset_save_CFLAGS"
10550
10551		eval supported=\$$cacheid
10552		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10553$as_echo "$supported" >&6; }
10554		if test "$supported" = "yes" ; then
10555			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10556			found="yes"
10557		fi
10558	fi
10559
10560
10561
10562# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10563# activate it with -Werror, so we add it here explicitly.
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577xorg_testset_save_CFLAGS="$CFLAGS"
10578
10579if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10580	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10581	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10582$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10583if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10584  $as_echo_n "(cached) " >&6
10585else
10586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10587/* end confdefs.h.  */
10588int i;
10589_ACEOF
10590if ac_fn_c_try_compile "$LINENO"; then :
10591  xorg_cv_cc_flag_unknown_warning_option=yes
10592else
10593  xorg_cv_cc_flag_unknown_warning_option=no
10594fi
10595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10596fi
10597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10598$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10599	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10600	CFLAGS="$xorg_testset_save_CFLAGS"
10601fi
10602
10603if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10604	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10605		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10606	fi
10607	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10608	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10609$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10610if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10611  $as_echo_n "(cached) " >&6
10612else
10613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10614/* end confdefs.h.  */
10615int i;
10616_ACEOF
10617if ac_fn_c_try_compile "$LINENO"; then :
10618  xorg_cv_cc_flag_unused_command_line_argument=yes
10619else
10620  xorg_cv_cc_flag_unused_command_line_argument=no
10621fi
10622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10623fi
10624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10625$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10626	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10627	CFLAGS="$xorg_testset_save_CFLAGS"
10628fi
10629
10630found="no"
10631
10632	if test $found = "no" ; then
10633		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10634			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10635		fi
10636
10637		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10638			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10639		fi
10640
10641		CFLAGS="$CFLAGS -Werror=attributes"
10642
10643		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10644$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10645		cacheid=xorg_cv_cc_flag__Werror_attributes
10646		if eval \${$cacheid+:} false; then :
10647  $as_echo_n "(cached) " >&6
10648else
10649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10650/* end confdefs.h.  */
10651int i;
10652int
10653main ()
10654{
10655
10656  ;
10657  return 0;
10658}
10659_ACEOF
10660if ac_fn_c_try_link "$LINENO"; then :
10661  eval $cacheid=yes
10662else
10663  eval $cacheid=no
10664fi
10665rm -f core conftest.err conftest.$ac_objext \
10666    conftest$ac_exeext conftest.$ac_ext
10667fi
10668
10669
10670		CFLAGS="$xorg_testset_save_CFLAGS"
10671
10672		eval supported=\$$cacheid
10673		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10674$as_echo "$supported" >&6; }
10675		if test "$supported" = "yes" ; then
10676			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10677			found="yes"
10678		fi
10679	fi
10680
10681
10682
10683if test "x$STRICT_COMPILE" = "xyes"; then
10684    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10685    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10686fi
10687
10688
10689
10690
10691
10692
10693cat >>confdefs.h <<_ACEOF
10694#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10695_ACEOF
10696
10697	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10698	if test "x$PVM" = "x"; then
10699		PVM="0"
10700	fi
10701
10702cat >>confdefs.h <<_ACEOF
10703#define PACKAGE_VERSION_MINOR $PVM
10704_ACEOF
10705
10706	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10707	if test "x$PVP" = "x"; then
10708		PVP="0"
10709	fi
10710
10711cat >>confdefs.h <<_ACEOF
10712#define PACKAGE_VERSION_PATCHLEVEL $PVP
10713_ACEOF
10714
10715
10716
10717CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10718mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10719|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10720echo 'git directory not found: installing possibly empty changelog.' >&2)"
10721
10722
10723
10724
10725macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10726INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10727mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10728|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10729echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10730
10731
10732
10733
10734
10735
10736if test x$APP_MAN_SUFFIX = x    ; then
10737    APP_MAN_SUFFIX=1
10738fi
10739if test x$APP_MAN_DIR = x    ; then
10740    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10741fi
10742
10743if test x$LIB_MAN_SUFFIX = x    ; then
10744    LIB_MAN_SUFFIX=3
10745fi
10746if test x$LIB_MAN_DIR = x    ; then
10747    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10748fi
10749
10750if test x$FILE_MAN_SUFFIX = x    ; then
10751    case $host_os in
10752	solaris*)	FILE_MAN_SUFFIX=4  ;;
10753	*)		FILE_MAN_SUFFIX=5  ;;
10754    esac
10755fi
10756if test x$FILE_MAN_DIR = x    ; then
10757    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10758fi
10759
10760if test x$MISC_MAN_SUFFIX = x    ; then
10761    case $host_os in
10762	solaris*)	MISC_MAN_SUFFIX=5  ;;
10763	*)		MISC_MAN_SUFFIX=7  ;;
10764    esac
10765fi
10766if test x$MISC_MAN_DIR = x    ; then
10767    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10768fi
10769
10770if test x$DRIVER_MAN_SUFFIX = x    ; then
10771    case $host_os in
10772	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10773	*)		DRIVER_MAN_SUFFIX=4  ;;
10774    esac
10775fi
10776if test x$DRIVER_MAN_DIR = x    ; then
10777    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10778fi
10779
10780if test x$ADMIN_MAN_SUFFIX = x    ; then
10781    case $host_os in
10782	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10783	*)		ADMIN_MAN_SUFFIX=8  ;;
10784    esac
10785fi
10786if test x$ADMIN_MAN_DIR = x    ; then
10787    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10788fi
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804XORG_MAN_PAGE="X Version 11"
10805
10806MAN_SUBSTS="\
10807	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10808	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10809	-e 's|__xservername__|Xorg|g' \
10810	-e 's|__xconfigfile__|xorg.conf|g' \
10811	-e 's|__projectroot__|\$(prefix)|g' \
10812	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10813	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10814	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10815	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10816	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10817	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10818	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10819
10820
10821
10822# Check whether --enable-silent-rules was given.
10823if test "${enable_silent_rules+set}" = set; then :
10824  enableval=$enable_silent_rules;
10825fi
10826
10827case $enable_silent_rules in # (((
10828  yes) AM_DEFAULT_VERBOSITY=0;;
10829   no) AM_DEFAULT_VERBOSITY=1;;
10830    *) AM_DEFAULT_VERBOSITY=0;;
10831esac
10832am_make=${MAKE-make}
10833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10834$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10835if ${am_cv_make_support_nested_variables+:} false; then :
10836  $as_echo_n "(cached) " >&6
10837else
10838  if $as_echo 'TRUE=$(BAR$(V))
10839BAR0=false
10840BAR1=true
10841V=1
10842am__doit:
10843	@$(TRUE)
10844.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10845  am_cv_make_support_nested_variables=yes
10846else
10847  am_cv_make_support_nested_variables=no
10848fi
10849fi
10850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10851$as_echo "$am_cv_make_support_nested_variables" >&6; }
10852if test $am_cv_make_support_nested_variables = yes; then
10853    AM_V='$(V)'
10854  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10855else
10856  AM_V=$AM_DEFAULT_VERBOSITY
10857  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10858fi
10859AM_BACKSLASH='\'
10860
10861
10862
10863
10864# Check whether --enable-specs was given.
10865if test "${enable_specs+set}" = set; then :
10866  enableval=$enable_specs; build_specs=$enableval
10867else
10868  build_specs=yes
10869fi
10870
10871
10872 if test x$build_specs = xyes; then
10873  ENABLE_SPECS_TRUE=
10874  ENABLE_SPECS_FALSE='#'
10875else
10876  ENABLE_SPECS_TRUE='#'
10877  ENABLE_SPECS_FALSE=
10878fi
10879
10880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
10881$as_echo_n "checking whether to build functional specifications... " >&6; }
10882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
10883$as_echo "$build_specs" >&6; }
10884
10885
10886
10887
10888
10889# Check whether --with-xmlto was given.
10890if test "${with_xmlto+set}" = set; then :
10891  withval=$with_xmlto; use_xmlto=$withval
10892else
10893  use_xmlto=auto
10894fi
10895
10896
10897
10898if test "x$use_xmlto" = x"auto"; then
10899   # Extract the first word of "xmlto", so it can be a program name with args.
10900set dummy xmlto; ac_word=$2
10901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10902$as_echo_n "checking for $ac_word... " >&6; }
10903if ${ac_cv_path_XMLTO+:} false; then :
10904  $as_echo_n "(cached) " >&6
10905else
10906  case $XMLTO in
10907  [\\/]* | ?:[\\/]*)
10908  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
10909  ;;
10910  *)
10911  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10912for as_dir in $PATH
10913do
10914  IFS=$as_save_IFS
10915  test -z "$as_dir" && as_dir=.
10916    for ac_exec_ext in '' $ac_executable_extensions; do
10917  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10918    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
10919    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10920    break 2
10921  fi
10922done
10923  done
10924IFS=$as_save_IFS
10925
10926  ;;
10927esac
10928fi
10929XMLTO=$ac_cv_path_XMLTO
10930if test -n "$XMLTO"; then
10931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
10932$as_echo "$XMLTO" >&6; }
10933else
10934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10935$as_echo "no" >&6; }
10936fi
10937
10938
10939   if test "x$XMLTO" = "x"; then
10940        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
10941$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
10942	have_xmlto=no
10943   else
10944        have_xmlto=yes
10945   fi
10946elif test "x$use_xmlto" = x"yes" ; then
10947   # Extract the first word of "xmlto", so it can be a program name with args.
10948set dummy xmlto; ac_word=$2
10949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10950$as_echo_n "checking for $ac_word... " >&6; }
10951if ${ac_cv_path_XMLTO+:} false; then :
10952  $as_echo_n "(cached) " >&6
10953else
10954  case $XMLTO in
10955  [\\/]* | ?:[\\/]*)
10956  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
10957  ;;
10958  *)
10959  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10960for as_dir in $PATH
10961do
10962  IFS=$as_save_IFS
10963  test -z "$as_dir" && as_dir=.
10964    for ac_exec_ext in '' $ac_executable_extensions; do
10965  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10966    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
10967    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10968    break 2
10969  fi
10970done
10971  done
10972IFS=$as_save_IFS
10973
10974  ;;
10975esac
10976fi
10977XMLTO=$ac_cv_path_XMLTO
10978if test -n "$XMLTO"; then
10979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
10980$as_echo "$XMLTO" >&6; }
10981else
10982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10983$as_echo "no" >&6; }
10984fi
10985
10986
10987   if test "x$XMLTO" = "x"; then
10988        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
10989   fi
10990   have_xmlto=yes
10991elif test "x$use_xmlto" = x"no" ; then
10992   if test "x$XMLTO" != "x"; then
10993      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
10994$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
10995   fi
10996   have_xmlto=no
10997else
10998   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
10999fi
11000
11001# Test for a minimum version of xmlto, if provided.
11002if test "$have_xmlto" = yes; then
11003    # scrape the xmlto version
11004    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
11005$as_echo_n "checking the xmlto version... " >&6; }
11006    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
11007    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
11008$as_echo "$xmlto_version" >&6; }
11009    as_arg_v1=$xmlto_version
11010as_arg_v2=0.0.22
11011awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
11012case $? in #(
11013  1) :
11014    if test "x$use_xmlto" = xauto; then
11015            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
11016$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
11017            have_xmlto=no
11018        else
11019            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
11020        fi ;; #(
11021  0) :
11022     ;; #(
11023  2) :
11024     ;; #(
11025  *) :
11026     ;;
11027esac
11028fi
11029
11030# Test for the ability of xmlto to generate a text target
11031#
11032# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
11033# following test for empty XML docbook files.
11034# For compatibility reasons use the following empty XML docbook file and if
11035# it fails try it again with a non-empty XML file.
11036have_xmlto_text=no
11037cat > conftest.xml << "EOF"
11038EOF
11039if test "$have_xmlto" = yes; then :
11040  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
11041  have_xmlto_text=yes
11042else
11043  # Try it again with a non-empty XML file.
11044              cat > conftest.xml << "EOF"
11045<x></x>
11046EOF
11047              if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
11048  have_xmlto_text=yes
11049else
11050  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
11051$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
11052fi
11053fi
11054fi
11055rm -f conftest.xml
11056 if test $have_xmlto_text = yes; then
11057  HAVE_XMLTO_TEXT_TRUE=
11058  HAVE_XMLTO_TEXT_FALSE='#'
11059else
11060  HAVE_XMLTO_TEXT_TRUE='#'
11061  HAVE_XMLTO_TEXT_FALSE=
11062fi
11063
11064 if test "$have_xmlto" = yes; then
11065  HAVE_XMLTO_TRUE=
11066  HAVE_XMLTO_FALSE='#'
11067else
11068  HAVE_XMLTO_TRUE='#'
11069  HAVE_XMLTO_FALSE=
11070fi
11071
11072
11073
11074
11075
11076
11077# Check whether --with-fop was given.
11078if test "${with_fop+set}" = set; then :
11079  withval=$with_fop; use_fop=$withval
11080else
11081  use_fop=auto
11082fi
11083
11084
11085
11086if test "x$use_fop" = x"auto"; then
11087   # Extract the first word of "fop", so it can be a program name with args.
11088set dummy fop; ac_word=$2
11089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11090$as_echo_n "checking for $ac_word... " >&6; }
11091if ${ac_cv_path_FOP+:} false; then :
11092  $as_echo_n "(cached) " >&6
11093else
11094  case $FOP in
11095  [\\/]* | ?:[\\/]*)
11096  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
11097  ;;
11098  *)
11099  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11100for as_dir in $PATH
11101do
11102  IFS=$as_save_IFS
11103  test -z "$as_dir" && as_dir=.
11104    for ac_exec_ext in '' $ac_executable_extensions; do
11105  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11106    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
11107    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11108    break 2
11109  fi
11110done
11111  done
11112IFS=$as_save_IFS
11113
11114  ;;
11115esac
11116fi
11117FOP=$ac_cv_path_FOP
11118if test -n "$FOP"; then
11119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
11120$as_echo "$FOP" >&6; }
11121else
11122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11123$as_echo "no" >&6; }
11124fi
11125
11126
11127   if test "x$FOP" = "x"; then
11128        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
11129$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
11130	have_fop=no
11131   else
11132        have_fop=yes
11133   fi
11134elif test "x$use_fop" = x"yes" ; then
11135   # Extract the first word of "fop", so it can be a program name with args.
11136set dummy fop; ac_word=$2
11137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11138$as_echo_n "checking for $ac_word... " >&6; }
11139if ${ac_cv_path_FOP+:} false; then :
11140  $as_echo_n "(cached) " >&6
11141else
11142  case $FOP in
11143  [\\/]* | ?:[\\/]*)
11144  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
11145  ;;
11146  *)
11147  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11148for as_dir in $PATH
11149do
11150  IFS=$as_save_IFS
11151  test -z "$as_dir" && as_dir=.
11152    for ac_exec_ext in '' $ac_executable_extensions; do
11153  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11154    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
11155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11156    break 2
11157  fi
11158done
11159  done
11160IFS=$as_save_IFS
11161
11162  ;;
11163esac
11164fi
11165FOP=$ac_cv_path_FOP
11166if test -n "$FOP"; then
11167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
11168$as_echo "$FOP" >&6; }
11169else
11170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11171$as_echo "no" >&6; }
11172fi
11173
11174
11175   if test "x$FOP" = "x"; then
11176        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
11177   fi
11178   have_fop=yes
11179elif test "x$use_fop" = x"no" ; then
11180   if test "x$FOP" != "x"; then
11181      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
11182$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
11183   fi
11184   have_fop=no
11185else
11186   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
11187fi
11188
11189# Test for a minimum version of fop, if provided.
11190
11191 if test "$have_fop" = yes; then
11192  HAVE_FOP_TRUE=
11193  HAVE_FOP_FALSE='#'
11194else
11195  HAVE_FOP_TRUE='#'
11196  HAVE_FOP_FALSE=
11197fi
11198
11199
11200
11201
11202# Preserves the interface, should it be implemented later
11203
11204
11205
11206# Check whether --with-xsltproc was given.
11207if test "${with_xsltproc+set}" = set; then :
11208  withval=$with_xsltproc; use_xsltproc=$withval
11209else
11210  use_xsltproc=auto
11211fi
11212
11213
11214
11215if test "x$use_xsltproc" = x"auto"; then
11216   # Extract the first word of "xsltproc", so it can be a program name with args.
11217set dummy xsltproc; ac_word=$2
11218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11219$as_echo_n "checking for $ac_word... " >&6; }
11220if ${ac_cv_path_XSLTPROC+:} false; then :
11221  $as_echo_n "(cached) " >&6
11222else
11223  case $XSLTPROC in
11224  [\\/]* | ?:[\\/]*)
11225  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
11226  ;;
11227  *)
11228  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11229for as_dir in $PATH
11230do
11231  IFS=$as_save_IFS
11232  test -z "$as_dir" && as_dir=.
11233    for ac_exec_ext in '' $ac_executable_extensions; do
11234  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11235    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
11236    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11237    break 2
11238  fi
11239done
11240  done
11241IFS=$as_save_IFS
11242
11243  ;;
11244esac
11245fi
11246XSLTPROC=$ac_cv_path_XSLTPROC
11247if test -n "$XSLTPROC"; then
11248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
11249$as_echo "$XSLTPROC" >&6; }
11250else
11251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11252$as_echo "no" >&6; }
11253fi
11254
11255
11256   if test "x$XSLTPROC" = "x"; then
11257        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
11258$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
11259	have_xsltproc=no
11260   else
11261        have_xsltproc=yes
11262   fi
11263elif test "x$use_xsltproc" = x"yes" ; then
11264   # Extract the first word of "xsltproc", so it can be a program name with args.
11265set dummy xsltproc; ac_word=$2
11266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11267$as_echo_n "checking for $ac_word... " >&6; }
11268if ${ac_cv_path_XSLTPROC+:} false; then :
11269  $as_echo_n "(cached) " >&6
11270else
11271  case $XSLTPROC in
11272  [\\/]* | ?:[\\/]*)
11273  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
11274  ;;
11275  *)
11276  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11277for as_dir in $PATH
11278do
11279  IFS=$as_save_IFS
11280  test -z "$as_dir" && as_dir=.
11281    for ac_exec_ext in '' $ac_executable_extensions; do
11282  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11283    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
11284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11285    break 2
11286  fi
11287done
11288  done
11289IFS=$as_save_IFS
11290
11291  ;;
11292esac
11293fi
11294XSLTPROC=$ac_cv_path_XSLTPROC
11295if test -n "$XSLTPROC"; then
11296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
11297$as_echo "$XSLTPROC" >&6; }
11298else
11299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11300$as_echo "no" >&6; }
11301fi
11302
11303
11304   if test "x$XSLTPROC" = "x"; then
11305        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
11306   fi
11307   have_xsltproc=yes
11308elif test "x$use_xsltproc" = x"no" ; then
11309   if test "x$XSLTPROC" != "x"; then
11310      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
11311$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
11312   fi
11313   have_xsltproc=no
11314else
11315   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
11316fi
11317
11318 if test "$have_xsltproc" = yes; then
11319  HAVE_XSLTPROC_TRUE=
11320  HAVE_XSLTPROC_FALSE='#'
11321else
11322  HAVE_XSLTPROC_TRUE='#'
11323  HAVE_XSLTPROC_FALSE=
11324fi
11325
11326
11327
11328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
11329$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
11330XORG_SGML_PATH=
11331if test -n "$PKG_CONFIG" && \
11332    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
11333  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
11334  ac_status=$?
11335  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11336  test $ac_status = 0; }; then
11337  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
11338else
11339  :
11340
11341fi
11342
11343# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
11344# the path and the name of the doc stylesheet
11345if test "x$XORG_SGML_PATH" != "x" ; then
11346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
11347$as_echo "$XORG_SGML_PATH" >&6; }
11348   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
11349   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
11350else
11351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11352$as_echo "no" >&6; }
11353fi
11354
11355
11356
11357
11358 if test "x$XSL_STYLESHEET" != "x"; then
11359  HAVE_STYLESHEETS_TRUE=
11360  HAVE_STYLESHEETS_FALSE='#'
11361else
11362  HAVE_STYLESHEETS_TRUE='#'
11363  HAVE_STYLESHEETS_FALSE=
11364fi
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374        if test -n "$PYTHON"; then
11375      # If the user set $PYTHON, use it and don't search something else.
11376      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.6" >&5
11377$as_echo_n "checking whether $PYTHON version is >= 3.6... " >&6; }
11378      prog="import sys
11379# split strings by '.' and convert to numeric.  Append some zeros
11380# because we need at least 4 digits for the hex conversion.
11381# map returns an iterator in Python 3.0 and a list in 2.x
11382minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
11383minverhex = 0
11384# xrange is not present in Python 3.0 and range returns an iterator
11385for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
11386sys.exit(sys.hexversion < minverhex)"
11387  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
11388   ($PYTHON -c "$prog") >&5 2>&5
11389   ac_status=$?
11390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391   (exit $ac_status); }; then :
11392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11393$as_echo "yes" >&6; }
11394else
11395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11396$as_echo "no" >&6; }
11397			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
11398fi
11399      am_display_PYTHON=$PYTHON
11400    else
11401      # Otherwise, try each interpreter until we find one that satisfies
11402      # VERSION.
11403      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.6" >&5
11404$as_echo_n "checking for a Python interpreter with version >= 3.6... " >&6; }
11405if ${am_cv_pathless_PYTHON+:} false; then :
11406  $as_echo_n "(cached) " >&6
11407else
11408
11409	for am_cv_pathless_PYTHON in python python2 python3  python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3  python3.2 python3.1 python3.0  python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1  python2.0 none; do
11410	  test "$am_cv_pathless_PYTHON" = none && break
11411	  prog="import sys
11412# split strings by '.' and convert to numeric.  Append some zeros
11413# because we need at least 4 digits for the hex conversion.
11414# map returns an iterator in Python 3.0 and a list in 2.x
11415minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
11416minverhex = 0
11417# xrange is not present in Python 3.0 and range returns an iterator
11418for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
11419sys.exit(sys.hexversion < minverhex)"
11420  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
11421   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
11422   ac_status=$?
11423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424   (exit $ac_status); }; then :
11425  break
11426fi
11427	done
11428fi
11429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
11430$as_echo "$am_cv_pathless_PYTHON" >&6; }
11431      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
11432      if test "$am_cv_pathless_PYTHON" = none; then
11433	PYTHON=:
11434      else
11435        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
11436set dummy $am_cv_pathless_PYTHON; ac_word=$2
11437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11438$as_echo_n "checking for $ac_word... " >&6; }
11439if ${ac_cv_path_PYTHON+:} false; then :
11440  $as_echo_n "(cached) " >&6
11441else
11442  case $PYTHON in
11443  [\\/]* | ?:[\\/]*)
11444  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11445  ;;
11446  *)
11447  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11448for as_dir in $PATH
11449do
11450  IFS=$as_save_IFS
11451  test -z "$as_dir" && as_dir=.
11452    for ac_exec_ext in '' $ac_executable_extensions; do
11453  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11454    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11455    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11456    break 2
11457  fi
11458done
11459  done
11460IFS=$as_save_IFS
11461
11462  ;;
11463esac
11464fi
11465PYTHON=$ac_cv_path_PYTHON
11466if test -n "$PYTHON"; then
11467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
11468$as_echo "$PYTHON" >&6; }
11469else
11470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11471$as_echo "no" >&6; }
11472fi
11473
11474
11475      fi
11476      am_display_PYTHON=$am_cv_pathless_PYTHON
11477    fi
11478
11479
11480  if test "$PYTHON" = :; then
11481      :
11482  else
11483
11484
11485  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
11486$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
11487if ${am_cv_python_version+:} false; then :
11488  $as_echo_n "(cached) " >&6
11489else
11490  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
11491fi
11492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
11493$as_echo "$am_cv_python_version" >&6; }
11494  PYTHON_VERSION=$am_cv_python_version
11495
11496
11497
11498  PYTHON_PREFIX='${prefix}'
11499
11500  PYTHON_EXEC_PREFIX='${exec_prefix}'
11501
11502
11503
11504  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
11505$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
11506if ${am_cv_python_platform+:} false; then :
11507  $as_echo_n "(cached) " >&6
11508else
11509  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
11510fi
11511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
11512$as_echo "$am_cv_python_platform" >&6; }
11513  PYTHON_PLATFORM=$am_cv_python_platform
11514
11515
11516  # Just factor out some code duplication.
11517  am_python_setup_sysconfig="\
11518import sys
11519# Prefer sysconfig over distutils.sysconfig, for better compatibility
11520# with python 3.x.  See automake bug#10227.
11521try:
11522    import sysconfig
11523except ImportError:
11524    can_use_sysconfig = 0
11525else:
11526    can_use_sysconfig = 1
11527# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
11528# <https://github.com/pypa/virtualenv/issues/118>
11529try:
11530    from platform import python_implementation
11531    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
11532        can_use_sysconfig = 0
11533except ImportError:
11534    pass"
11535
11536
11537            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
11538$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
11539if ${am_cv_python_pythondir+:} false; then :
11540  $as_echo_n "(cached) " >&6
11541else
11542  if test "x$prefix" = xNONE
11543     then
11544       am_py_prefix=$ac_default_prefix
11545     else
11546       am_py_prefix=$prefix
11547     fi
11548     am_cv_python_pythondir=`$PYTHON -c "
11549$am_python_setup_sysconfig
11550if can_use_sysconfig:
11551    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
11552else:
11553    from distutils import sysconfig
11554    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
11555sys.stdout.write(sitedir)"`
11556     case $am_cv_python_pythondir in
11557     $am_py_prefix*)
11558       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
11559       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
11560       ;;
11561     *)
11562       case $am_py_prefix in
11563         /usr|/System*) ;;
11564         *)
11565	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
11566	  ;;
11567       esac
11568       ;;
11569     esac
11570
11571fi
11572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
11573$as_echo "$am_cv_python_pythondir" >&6; }
11574  pythondir=$am_cv_python_pythondir
11575
11576
11577
11578  pkgpythondir=\${pythondir}/$PACKAGE
11579
11580
11581        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
11582$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
11583if ${am_cv_python_pyexecdir+:} false; then :
11584  $as_echo_n "(cached) " >&6
11585else
11586  if test "x$exec_prefix" = xNONE
11587     then
11588       am_py_exec_prefix=$am_py_prefix
11589     else
11590       am_py_exec_prefix=$exec_prefix
11591     fi
11592     am_cv_python_pyexecdir=`$PYTHON -c "
11593$am_python_setup_sysconfig
11594if can_use_sysconfig:
11595    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
11596else:
11597    from distutils import sysconfig
11598    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
11599sys.stdout.write(sitedir)"`
11600     case $am_cv_python_pyexecdir in
11601     $am_py_exec_prefix*)
11602       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
11603       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
11604       ;;
11605     *)
11606       case $am_py_exec_prefix in
11607         /usr|/System*) ;;
11608         *)
11609	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
11610	   ;;
11611       esac
11612       ;;
11613     esac
11614
11615fi
11616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
11617$as_echo "$am_cv_python_pyexecdir" >&6; }
11618  pyexecdir=$am_cv_python_pyexecdir
11619
11620
11621
11622  pkgpyexecdir=\${pyexecdir}/$PACKAGE
11623
11624
11625
11626  fi
11627
11628
11629 if test "$PYTHON" != :; then
11630  HAVE_PYTHON_TRUE=
11631  HAVE_PYTHON_FALSE='#'
11632else
11633  HAVE_PYTHON_TRUE='#'
11634  HAVE_PYTHON_FALSE=
11635fi
11636
11637
11638
11639
11640# Check whether --enable-legacy was given.
11641if test "${enable_legacy+set}" = set; then :
11642  enableval=$enable_legacy; LEGACY=$enableval
11643else
11644  LEGACY=no
11645fi
11646
11647 if test "x$LEGACY" = "xyes"; then
11648  LEGACY_TRUE=
11649  LEGACY_FALSE='#'
11650else
11651  LEGACY_TRUE='#'
11652  LEGACY_FALSE=
11653fi
11654
11655
11656for ac_header in sys/select.h sys/param.h sys/types.h sys/time.h
11657do :
11658  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11659ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11660if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11661  cat >>confdefs.h <<_ACEOF
11662#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11663_ACEOF
11664
11665fi
11666
11667done
11668
11669
11670# Handle Xpoll.h.in
11671# Avoid determining fds_bits on WIN32 hosts (not including cygwin)
11672case $host_os in
11673	mingw*)		fds_bits_found=true;;
11674	*)		fds_bits_found=false;;
11675esac
11676
11677if test "x$fds_bits_found" = xfalse ; then
11678   ac_fn_c_check_member "$LINENO" "fd_set" "fds_bits" "ac_cv_member_fd_set_fds_bits" "
11679                               #ifdef HAVE_SYS_PARAM_H
11680                               #include <sys/param.h>
11681                               #endif
11682                               #ifdef HAVE_SYS_TYPES_H
11683                               #include <sys/types.h>
11684                               #endif
11685                               #ifdef HAVE_SYS_TIME_H
11686                               #include <sys/time.h>
11687                               #endif
11688                               #ifdef HAVE_SYS_SELECT_H
11689			       #include <sys/select.h>
11690                               #endif
11691
11692"
11693if test "x$ac_cv_member_fd_set_fds_bits" = xyes; then :
11694
11695			       fds_bits_found=plain
11696			       USE_FDS_BITS="fds_bits"
11697
11698fi
11699
11700fi
11701
11702if test "x$fds_bits_found" = xfalse ; then
11703   ac_fn_c_check_member "$LINENO" "fd_set" "__fds_bits" "ac_cv_member_fd_set___fds_bits" "
11704                               #ifdef HAVE_SYS_PARAM_H
11705                               #include <sys/param.h>
11706                               #endif
11707                               #ifdef HAVE_SYS_TYPES_H
11708                               #include <sys/types.h>
11709                               #endif
11710                               #ifdef HAVE_SYS_TIME_H
11711                               #include <sys/time.h>
11712                               #endif
11713                               #ifdef HAVE_SYS_SELECT_H
11714			       #include <sys/select.h>
11715                               #endif
11716
11717"
11718if test "x$ac_cv_member_fd_set___fds_bits" = xyes; then :
11719
11720			    fds_bits_found=underscores
11721			    USE_FDS_BITS="__fds_bits"
11722
11723fi
11724
11725fi
11726
11727if test "x$fds_bits_found" = xfalse ; then
11728    as_fn_error $? "Could not determine how to access the fds_bits or equivalent
11729                  structure in fd_set on your platform." "$LINENO" 5
11730fi
11731
11732
11733
11734ac_config_files="$ac_config_files applewmproto.pc bigreqsproto.pc compositeproto.pc damageproto.pc dmxproto.pc dpmsproto.pc dri2proto.pc dri3proto.pc evieproto.pc fixesproto.pc fontcacheproto.pc fontsproto.pc glproto.pc include/X11/Xpoll.h inputproto.pc kbproto.pc lg3dproto.pc Makefile presentproto.pc printproto.pc randrproto.pc recordproto.pc renderproto.pc resourceproto.pc scrnsaverproto.pc specs/Makefile specs/bigreqsproto/Makefile specs/fontsproto/Makefile specs/kbproto/Makefile specs/recordproto/Makefile specs/scrnsaverproto/Makefile specs/xcmiscproto/Makefile specs/xextproto/Makefile specs/xproto/Makefile trapproto.pc videoproto.pc windowswmproto.pc xcalibrateproto.pc xcmiscproto.pc xextproto.pc xf86bigfontproto.pc xf86dgaproto.pc xf86driproto.pc xf86miscproto.pc xf86rushproto.pc xf86vidmodeproto.pc xineramaproto.pc xproto.pc xproxymngproto.pc"
11735
11736
11737cat >confcache <<\_ACEOF
11738# This file is a shell script that caches the results of configure
11739# tests run on this system so they can be shared between configure
11740# scripts and configure runs, see configure's option --config-cache.
11741# It is not useful on other systems.  If it contains results you don't
11742# want to keep, you may remove or edit it.
11743#
11744# config.status only pays attention to the cache file if you give it
11745# the --recheck option to rerun configure.
11746#
11747# `ac_cv_env_foo' variables (set or unset) will be overridden when
11748# loading this file, other *unset* `ac_cv_foo' will be assigned the
11749# following values.
11750
11751_ACEOF
11752
11753# The following way of writing the cache mishandles newlines in values,
11754# but we know of no workaround that is simple, portable, and efficient.
11755# So, we kill variables containing newlines.
11756# Ultrix sh set writes to stderr and can't be redirected directly,
11757# and sets the high bit in the cache file unless we assign to the vars.
11758(
11759  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11760    eval ac_val=\$$ac_var
11761    case $ac_val in #(
11762    *${as_nl}*)
11763      case $ac_var in #(
11764      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11765$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11766      esac
11767      case $ac_var in #(
11768      _ | IFS | as_nl) ;; #(
11769      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11770      *) { eval $ac_var=; unset $ac_var;} ;;
11771      esac ;;
11772    esac
11773  done
11774
11775  (set) 2>&1 |
11776    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11777    *${as_nl}ac_space=\ *)
11778      # `set' does not quote correctly, so add quotes: double-quote
11779      # substitution turns \\\\ into \\, and sed turns \\ into \.
11780      sed -n \
11781	"s/'/'\\\\''/g;
11782	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11783      ;; #(
11784    *)
11785      # `set' quotes correctly as required by POSIX, so do not add quotes.
11786      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11787      ;;
11788    esac |
11789    sort
11790) |
11791  sed '
11792     /^ac_cv_env_/b end
11793     t clear
11794     :clear
11795     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11796     t end
11797     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11798     :end' >>confcache
11799if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11800  if test -w "$cache_file"; then
11801    if test "x$cache_file" != "x/dev/null"; then
11802      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11803$as_echo "$as_me: updating cache $cache_file" >&6;}
11804      if test ! -f "$cache_file" || test -h "$cache_file"; then
11805	cat confcache >"$cache_file"
11806      else
11807        case $cache_file in #(
11808        */* | ?:*)
11809	  mv -f confcache "$cache_file"$$ &&
11810	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11811        *)
11812	  mv -f confcache "$cache_file" ;;
11813	esac
11814      fi
11815    fi
11816  else
11817    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11818$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11819  fi
11820fi
11821rm -f confcache
11822
11823test "x$prefix" = xNONE && prefix=$ac_default_prefix
11824# Let make expand exec_prefix.
11825test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11826
11827# Transform confdefs.h into DEFS.
11828# Protect against shell expansion while executing Makefile rules.
11829# Protect against Makefile macro expansion.
11830#
11831# If the first sed substitution is executed (which looks for macros that
11832# take arguments), then branch to the quote section.  Otherwise,
11833# look for a macro that doesn't take arguments.
11834ac_script='
11835:mline
11836/\\$/{
11837 N
11838 s,\\\n,,
11839 b mline
11840}
11841t clear
11842:clear
11843s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
11844t quote
11845s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
11846t quote
11847b any
11848:quote
11849s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11850s/\[/\\&/g
11851s/\]/\\&/g
11852s/\$/$$/g
11853H
11854:any
11855${
11856	g
11857	s/^\n//
11858	s/\n/ /g
11859	p
11860}
11861'
11862DEFS=`sed -n "$ac_script" confdefs.h`
11863
11864
11865ac_libobjs=
11866ac_ltlibobjs=
11867U=
11868for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11869  # 1. Remove the extension, and $U if already installed.
11870  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11871  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11872  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11873  #    will be set to the directory where LIBOBJS objects are built.
11874  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11875  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11876done
11877LIBOBJS=$ac_libobjs
11878
11879LTLIBOBJS=$ac_ltlibobjs
11880
11881
11882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11883$as_echo_n "checking that generated files are newer than configure... " >&6; }
11884   if test -n "$am_sleep_pid"; then
11885     # Hide warnings about reused PIDs.
11886     wait $am_sleep_pid 2>/dev/null
11887   fi
11888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11889$as_echo "done" >&6; }
11890 if test -n "$EXEEXT"; then
11891  am__EXEEXT_TRUE=
11892  am__EXEEXT_FALSE='#'
11893else
11894  am__EXEEXT_TRUE='#'
11895  am__EXEEXT_FALSE=
11896fi
11897
11898if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11899  as_fn_error $? "conditional \"AMDEP\" was never defined.
11900Usually this means the macro was only invoked conditionally." "$LINENO" 5
11901fi
11902if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11903  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11904Usually this means the macro was only invoked conditionally." "$LINENO" 5
11905fi
11906if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
11907  as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
11908Usually this means the macro was only invoked conditionally." "$LINENO" 5
11909fi
11910if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
11911  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
11912Usually this means the macro was only invoked conditionally." "$LINENO" 5
11913fi
11914if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
11915  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
11916Usually this means the macro was only invoked conditionally." "$LINENO" 5
11917fi
11918if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
11919  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
11920Usually this means the macro was only invoked conditionally." "$LINENO" 5
11921fi
11922if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
11923  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
11924Usually this means the macro was only invoked conditionally." "$LINENO" 5
11925fi
11926if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
11927  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
11928Usually this means the macro was only invoked conditionally." "$LINENO" 5
11929fi
11930if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
11931  as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
11932Usually this means the macro was only invoked conditionally." "$LINENO" 5
11933fi
11934if test -z "${LEGACY_TRUE}" && test -z "${LEGACY_FALSE}"; then
11935  as_fn_error $? "conditional \"LEGACY\" was never defined.
11936Usually this means the macro was only invoked conditionally." "$LINENO" 5
11937fi
11938
11939: "${CONFIG_STATUS=./config.status}"
11940ac_write_fail=0
11941ac_clean_files_save=$ac_clean_files
11942ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11943{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11944$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11945as_write_fail=0
11946cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11947#! $SHELL
11948# Generated by $as_me.
11949# Run this file to recreate the current configuration.
11950# Compiler output produced by configure, useful for debugging
11951# configure, is in config.log if it exists.
11952
11953debug=false
11954ac_cs_recheck=false
11955ac_cs_silent=false
11956
11957SHELL=\${CONFIG_SHELL-$SHELL}
11958export SHELL
11959_ASEOF
11960cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11961## -------------------- ##
11962## M4sh Initialization. ##
11963## -------------------- ##
11964
11965# Be more Bourne compatible
11966DUALCASE=1; export DUALCASE # for MKS sh
11967if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11968  emulate sh
11969  NULLCMD=:
11970  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11971  # is contrary to our usage.  Disable this feature.
11972  alias -g '${1+"$@"}'='"$@"'
11973  setopt NO_GLOB_SUBST
11974else
11975  case `(set -o) 2>/dev/null` in #(
11976  *posix*) :
11977    set -o posix ;; #(
11978  *) :
11979     ;;
11980esac
11981fi
11982
11983
11984as_nl='
11985'
11986export as_nl
11987# Printing a long string crashes Solaris 7 /usr/bin/printf.
11988as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11989as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11990as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11991# Prefer a ksh shell builtin over an external printf program on Solaris,
11992# but without wasting forks for bash or zsh.
11993if test -z "$BASH_VERSION$ZSH_VERSION" \
11994    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11995  as_echo='print -r --'
11996  as_echo_n='print -rn --'
11997elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11998  as_echo='printf %s\n'
11999  as_echo_n='printf %s'
12000else
12001  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12002    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12003    as_echo_n='/usr/ucb/echo -n'
12004  else
12005    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12006    as_echo_n_body='eval
12007      arg=$1;
12008      case $arg in #(
12009      *"$as_nl"*)
12010	expr "X$arg" : "X\\(.*\\)$as_nl";
12011	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12012      esac;
12013      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12014    '
12015    export as_echo_n_body
12016    as_echo_n='sh -c $as_echo_n_body as_echo'
12017  fi
12018  export as_echo_body
12019  as_echo='sh -c $as_echo_body as_echo'
12020fi
12021
12022# The user is always right.
12023if test "${PATH_SEPARATOR+set}" != set; then
12024  PATH_SEPARATOR=:
12025  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12026    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12027      PATH_SEPARATOR=';'
12028  }
12029fi
12030
12031
12032# IFS
12033# We need space, tab and new line, in precisely that order.  Quoting is
12034# there to prevent editors from complaining about space-tab.
12035# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12036# splitting by setting IFS to empty value.)
12037IFS=" ""	$as_nl"
12038
12039# Find who we are.  Look in the path if we contain no directory separator.
12040as_myself=
12041case $0 in #((
12042  *[\\/]* ) as_myself=$0 ;;
12043  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12044for as_dir in $PATH
12045do
12046  IFS=$as_save_IFS
12047  test -z "$as_dir" && as_dir=.
12048    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12049  done
12050IFS=$as_save_IFS
12051
12052     ;;
12053esac
12054# We did not find ourselves, most probably we were run as `sh COMMAND'
12055# in which case we are not to be found in the path.
12056if test "x$as_myself" = x; then
12057  as_myself=$0
12058fi
12059if test ! -f "$as_myself"; then
12060  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12061  exit 1
12062fi
12063
12064# Unset variables that we do not need and which cause bugs (e.g. in
12065# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12066# suppresses any "Segmentation fault" message there.  '((' could
12067# trigger a bug in pdksh 5.2.14.
12068for as_var in BASH_ENV ENV MAIL MAILPATH
12069do eval test x\${$as_var+set} = xset \
12070  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12071done
12072PS1='$ '
12073PS2='> '
12074PS4='+ '
12075
12076# NLS nuisances.
12077LC_ALL=C
12078export LC_ALL
12079LANGUAGE=C
12080export LANGUAGE
12081
12082# CDPATH.
12083(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12084
12085
12086# as_fn_error STATUS ERROR [LINENO LOG_FD]
12087# ----------------------------------------
12088# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12089# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12090# script with STATUS, using 1 if that was 0.
12091as_fn_error ()
12092{
12093  as_status=$1; test $as_status -eq 0 && as_status=1
12094  if test "$4"; then
12095    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12096    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12097  fi
12098  $as_echo "$as_me: error: $2" >&2
12099  as_fn_exit $as_status
12100} # as_fn_error
12101
12102
12103# as_fn_set_status STATUS
12104# -----------------------
12105# Set $? to STATUS, without forking.
12106as_fn_set_status ()
12107{
12108  return $1
12109} # as_fn_set_status
12110
12111# as_fn_exit STATUS
12112# -----------------
12113# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12114as_fn_exit ()
12115{
12116  set +e
12117  as_fn_set_status $1
12118  exit $1
12119} # as_fn_exit
12120
12121# as_fn_unset VAR
12122# ---------------
12123# Portably unset VAR.
12124as_fn_unset ()
12125{
12126  { eval $1=; unset $1;}
12127}
12128as_unset=as_fn_unset
12129# as_fn_append VAR VALUE
12130# ----------------------
12131# Append the text in VALUE to the end of the definition contained in VAR. Take
12132# advantage of any shell optimizations that allow amortized linear growth over
12133# repeated appends, instead of the typical quadratic growth present in naive
12134# implementations.
12135if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12136  eval 'as_fn_append ()
12137  {
12138    eval $1+=\$2
12139  }'
12140else
12141  as_fn_append ()
12142  {
12143    eval $1=\$$1\$2
12144  }
12145fi # as_fn_append
12146
12147# as_fn_arith ARG...
12148# ------------------
12149# Perform arithmetic evaluation on the ARGs, and store the result in the
12150# global $as_val. Take advantage of shells that can avoid forks. The arguments
12151# must be portable across $(()) and expr.
12152if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12153  eval 'as_fn_arith ()
12154  {
12155    as_val=$(( $* ))
12156  }'
12157else
12158  as_fn_arith ()
12159  {
12160    as_val=`expr "$@" || test $? -eq 1`
12161  }
12162fi # as_fn_arith
12163
12164
12165if expr a : '\(a\)' >/dev/null 2>&1 &&
12166   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12167  as_expr=expr
12168else
12169  as_expr=false
12170fi
12171
12172if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12173  as_basename=basename
12174else
12175  as_basename=false
12176fi
12177
12178if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12179  as_dirname=dirname
12180else
12181  as_dirname=false
12182fi
12183
12184as_me=`$as_basename -- "$0" ||
12185$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12186	 X"$0" : 'X\(//\)$' \| \
12187	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12188$as_echo X/"$0" |
12189    sed '/^.*\/\([^/][^/]*\)\/*$/{
12190	    s//\1/
12191	    q
12192	  }
12193	  /^X\/\(\/\/\)$/{
12194	    s//\1/
12195	    q
12196	  }
12197	  /^X\/\(\/\).*/{
12198	    s//\1/
12199	    q
12200	  }
12201	  s/.*/./; q'`
12202
12203# Avoid depending upon Character Ranges.
12204as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12205as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12206as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12207as_cr_digits='0123456789'
12208as_cr_alnum=$as_cr_Letters$as_cr_digits
12209
12210ECHO_C= ECHO_N= ECHO_T=
12211case `echo -n x` in #(((((
12212-n*)
12213  case `echo 'xy\c'` in
12214  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12215  xy)  ECHO_C='\c';;
12216  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12217       ECHO_T='	';;
12218  esac;;
12219*)
12220  ECHO_N='-n';;
12221esac
12222
12223rm -f conf$$ conf$$.exe conf$$.file
12224if test -d conf$$.dir; then
12225  rm -f conf$$.dir/conf$$.file
12226else
12227  rm -f conf$$.dir
12228  mkdir conf$$.dir 2>/dev/null
12229fi
12230if (echo >conf$$.file) 2>/dev/null; then
12231  if ln -s conf$$.file conf$$ 2>/dev/null; then
12232    as_ln_s='ln -s'
12233    # ... but there are two gotchas:
12234    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12235    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12236    # In both cases, we have to default to `cp -pR'.
12237    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12238      as_ln_s='cp -pR'
12239  elif ln conf$$.file conf$$ 2>/dev/null; then
12240    as_ln_s=ln
12241  else
12242    as_ln_s='cp -pR'
12243  fi
12244else
12245  as_ln_s='cp -pR'
12246fi
12247rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12248rmdir conf$$.dir 2>/dev/null
12249
12250
12251# as_fn_mkdir_p
12252# -------------
12253# Create "$as_dir" as a directory, including parents if necessary.
12254as_fn_mkdir_p ()
12255{
12256
12257  case $as_dir in #(
12258  -*) as_dir=./$as_dir;;
12259  esac
12260  test -d "$as_dir" || eval $as_mkdir_p || {
12261    as_dirs=
12262    while :; do
12263      case $as_dir in #(
12264      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12265      *) as_qdir=$as_dir;;
12266      esac
12267      as_dirs="'$as_qdir' $as_dirs"
12268      as_dir=`$as_dirname -- "$as_dir" ||
12269$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12270	 X"$as_dir" : 'X\(//\)[^/]' \| \
12271	 X"$as_dir" : 'X\(//\)$' \| \
12272	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12273$as_echo X"$as_dir" |
12274    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12275	    s//\1/
12276	    q
12277	  }
12278	  /^X\(\/\/\)[^/].*/{
12279	    s//\1/
12280	    q
12281	  }
12282	  /^X\(\/\/\)$/{
12283	    s//\1/
12284	    q
12285	  }
12286	  /^X\(\/\).*/{
12287	    s//\1/
12288	    q
12289	  }
12290	  s/.*/./; q'`
12291      test -d "$as_dir" && break
12292    done
12293    test -z "$as_dirs" || eval "mkdir $as_dirs"
12294  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12295
12296
12297} # as_fn_mkdir_p
12298if mkdir -p . 2>/dev/null; then
12299  as_mkdir_p='mkdir -p "$as_dir"'
12300else
12301  test -d ./-p && rmdir ./-p
12302  as_mkdir_p=false
12303fi
12304
12305
12306# as_fn_executable_p FILE
12307# -----------------------
12308# Test if FILE is an executable regular file.
12309as_fn_executable_p ()
12310{
12311  test -f "$1" && test -x "$1"
12312} # as_fn_executable_p
12313as_test_x='test -x'
12314as_executable_p=as_fn_executable_p
12315
12316# Sed expression to map a string onto a valid CPP name.
12317as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12318
12319# Sed expression to map a string onto a valid variable name.
12320as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12321
12322
12323exec 6>&1
12324## ----------------------------------- ##
12325## Main body of $CONFIG_STATUS script. ##
12326## ----------------------------------- ##
12327_ASEOF
12328test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12329
12330cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12331# Save the log message, to keep $0 and so on meaningful, and to
12332# report actual input values of CONFIG_FILES etc. instead of their
12333# values after options handling.
12334ac_log="
12335This file was extended by xorgproto $as_me 2021.5, which was
12336generated by GNU Autoconf 2.69.  Invocation command line was
12337
12338  CONFIG_FILES    = $CONFIG_FILES
12339  CONFIG_HEADERS  = $CONFIG_HEADERS
12340  CONFIG_LINKS    = $CONFIG_LINKS
12341  CONFIG_COMMANDS = $CONFIG_COMMANDS
12342  $ $0 $@
12343
12344on `(hostname || uname -n) 2>/dev/null | sed 1q`
12345"
12346
12347_ACEOF
12348
12349case $ac_config_files in *"
12350"*) set x $ac_config_files; shift; ac_config_files=$*;;
12351esac
12352
12353
12354
12355cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12356# Files that config.status was made for.
12357config_files="$ac_config_files"
12358config_commands="$ac_config_commands"
12359
12360_ACEOF
12361
12362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12363ac_cs_usage="\
12364\`$as_me' instantiates files and other configuration actions
12365from templates according to the current configuration.  Unless the files
12366and actions are specified as TAGs, all are instantiated by default.
12367
12368Usage: $0 [OPTION]... [TAG]...
12369
12370  -h, --help       print this help, then exit
12371  -V, --version    print version number and configuration settings, then exit
12372      --config     print configuration, then exit
12373  -q, --quiet, --silent
12374                   do not print progress messages
12375  -d, --debug      don't remove temporary files
12376      --recheck    update $as_me by reconfiguring in the same conditions
12377      --file=FILE[:TEMPLATE]
12378                   instantiate the configuration file FILE
12379
12380Configuration files:
12381$config_files
12382
12383Configuration commands:
12384$config_commands
12385
12386Report bugs to <https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues>."
12387
12388_ACEOF
12389cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12390ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12391ac_cs_version="\\
12392xorgproto config.status 2021.5
12393configured by $0, generated by GNU Autoconf 2.69,
12394  with options \\"\$ac_cs_config\\"
12395
12396Copyright (C) 2012 Free Software Foundation, Inc.
12397This config.status script is free software; the Free Software Foundation
12398gives unlimited permission to copy, distribute and modify it."
12399
12400ac_pwd='$ac_pwd'
12401srcdir='$srcdir'
12402INSTALL='$INSTALL'
12403MKDIR_P='$MKDIR_P'
12404AWK='$AWK'
12405test -n "\$AWK" || AWK=awk
12406_ACEOF
12407
12408cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12409# The default lists apply if the user does not specify any file.
12410ac_need_defaults=:
12411while test $# != 0
12412do
12413  case $1 in
12414  --*=?*)
12415    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12416    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12417    ac_shift=:
12418    ;;
12419  --*=)
12420    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12421    ac_optarg=
12422    ac_shift=:
12423    ;;
12424  *)
12425    ac_option=$1
12426    ac_optarg=$2
12427    ac_shift=shift
12428    ;;
12429  esac
12430
12431  case $ac_option in
12432  # Handling of the options.
12433  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12434    ac_cs_recheck=: ;;
12435  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12436    $as_echo "$ac_cs_version"; exit ;;
12437  --config | --confi | --conf | --con | --co | --c )
12438    $as_echo "$ac_cs_config"; exit ;;
12439  --debug | --debu | --deb | --de | --d | -d )
12440    debug=: ;;
12441  --file | --fil | --fi | --f )
12442    $ac_shift
12443    case $ac_optarg in
12444    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12445    '') as_fn_error $? "missing file argument" ;;
12446    esac
12447    as_fn_append CONFIG_FILES " '$ac_optarg'"
12448    ac_need_defaults=false;;
12449  --he | --h |  --help | --hel | -h )
12450    $as_echo "$ac_cs_usage"; exit ;;
12451  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12452  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12453    ac_cs_silent=: ;;
12454
12455  # This is an error.
12456  -*) as_fn_error $? "unrecognized option: \`$1'
12457Try \`$0 --help' for more information." ;;
12458
12459  *) as_fn_append ac_config_targets " $1"
12460     ac_need_defaults=false ;;
12461
12462  esac
12463  shift
12464done
12465
12466ac_configure_extra_args=
12467
12468if $ac_cs_silent; then
12469  exec 6>/dev/null
12470  ac_configure_extra_args="$ac_configure_extra_args --silent"
12471fi
12472
12473_ACEOF
12474cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12475if \$ac_cs_recheck; then
12476  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12477  shift
12478  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12479  CONFIG_SHELL='$SHELL'
12480  export CONFIG_SHELL
12481  exec "\$@"
12482fi
12483
12484_ACEOF
12485cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12486exec 5>>config.log
12487{
12488  echo
12489  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12490## Running $as_me. ##
12491_ASBOX
12492  $as_echo "$ac_log"
12493} >&5
12494
12495_ACEOF
12496cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12497#
12498# INIT-COMMANDS
12499#
12500AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12501
12502_ACEOF
12503
12504cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12505
12506# Handling of arguments.
12507for ac_config_target in $ac_config_targets
12508do
12509  case $ac_config_target in
12510    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12511    "applewmproto.pc") CONFIG_FILES="$CONFIG_FILES applewmproto.pc" ;;
12512    "bigreqsproto.pc") CONFIG_FILES="$CONFIG_FILES bigreqsproto.pc" ;;
12513    "compositeproto.pc") CONFIG_FILES="$CONFIG_FILES compositeproto.pc" ;;
12514    "damageproto.pc") CONFIG_FILES="$CONFIG_FILES damageproto.pc" ;;
12515    "dmxproto.pc") CONFIG_FILES="$CONFIG_FILES dmxproto.pc" ;;
12516    "dpmsproto.pc") CONFIG_FILES="$CONFIG_FILES dpmsproto.pc" ;;
12517    "dri2proto.pc") CONFIG_FILES="$CONFIG_FILES dri2proto.pc" ;;
12518    "dri3proto.pc") CONFIG_FILES="$CONFIG_FILES dri3proto.pc" ;;
12519    "evieproto.pc") CONFIG_FILES="$CONFIG_FILES evieproto.pc" ;;
12520    "fixesproto.pc") CONFIG_FILES="$CONFIG_FILES fixesproto.pc" ;;
12521    "fontcacheproto.pc") CONFIG_FILES="$CONFIG_FILES fontcacheproto.pc" ;;
12522    "fontsproto.pc") CONFIG_FILES="$CONFIG_FILES fontsproto.pc" ;;
12523    "glproto.pc") CONFIG_FILES="$CONFIG_FILES glproto.pc" ;;
12524    "include/X11/Xpoll.h") CONFIG_FILES="$CONFIG_FILES include/X11/Xpoll.h" ;;
12525    "inputproto.pc") CONFIG_FILES="$CONFIG_FILES inputproto.pc" ;;
12526    "kbproto.pc") CONFIG_FILES="$CONFIG_FILES kbproto.pc" ;;
12527    "lg3dproto.pc") CONFIG_FILES="$CONFIG_FILES lg3dproto.pc" ;;
12528    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12529    "presentproto.pc") CONFIG_FILES="$CONFIG_FILES presentproto.pc" ;;
12530    "printproto.pc") CONFIG_FILES="$CONFIG_FILES printproto.pc" ;;
12531    "randrproto.pc") CONFIG_FILES="$CONFIG_FILES randrproto.pc" ;;
12532    "recordproto.pc") CONFIG_FILES="$CONFIG_FILES recordproto.pc" ;;
12533    "renderproto.pc") CONFIG_FILES="$CONFIG_FILES renderproto.pc" ;;
12534    "resourceproto.pc") CONFIG_FILES="$CONFIG_FILES resourceproto.pc" ;;
12535    "scrnsaverproto.pc") CONFIG_FILES="$CONFIG_FILES scrnsaverproto.pc" ;;
12536    "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
12537    "specs/bigreqsproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/bigreqsproto/Makefile" ;;
12538    "specs/fontsproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/fontsproto/Makefile" ;;
12539    "specs/kbproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/kbproto/Makefile" ;;
12540    "specs/recordproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/recordproto/Makefile" ;;
12541    "specs/scrnsaverproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/scrnsaverproto/Makefile" ;;
12542    "specs/xcmiscproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/xcmiscproto/Makefile" ;;
12543    "specs/xextproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/xextproto/Makefile" ;;
12544    "specs/xproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/xproto/Makefile" ;;
12545    "trapproto.pc") CONFIG_FILES="$CONFIG_FILES trapproto.pc" ;;
12546    "videoproto.pc") CONFIG_FILES="$CONFIG_FILES videoproto.pc" ;;
12547    "windowswmproto.pc") CONFIG_FILES="$CONFIG_FILES windowswmproto.pc" ;;
12548    "xcalibrateproto.pc") CONFIG_FILES="$CONFIG_FILES xcalibrateproto.pc" ;;
12549    "xcmiscproto.pc") CONFIG_FILES="$CONFIG_FILES xcmiscproto.pc" ;;
12550    "xextproto.pc") CONFIG_FILES="$CONFIG_FILES xextproto.pc" ;;
12551    "xf86bigfontproto.pc") CONFIG_FILES="$CONFIG_FILES xf86bigfontproto.pc" ;;
12552    "xf86dgaproto.pc") CONFIG_FILES="$CONFIG_FILES xf86dgaproto.pc" ;;
12553    "xf86driproto.pc") CONFIG_FILES="$CONFIG_FILES xf86driproto.pc" ;;
12554    "xf86miscproto.pc") CONFIG_FILES="$CONFIG_FILES xf86miscproto.pc" ;;
12555    "xf86rushproto.pc") CONFIG_FILES="$CONFIG_FILES xf86rushproto.pc" ;;
12556    "xf86vidmodeproto.pc") CONFIG_FILES="$CONFIG_FILES xf86vidmodeproto.pc" ;;
12557    "xineramaproto.pc") CONFIG_FILES="$CONFIG_FILES xineramaproto.pc" ;;
12558    "xproto.pc") CONFIG_FILES="$CONFIG_FILES xproto.pc" ;;
12559    "xproxymngproto.pc") CONFIG_FILES="$CONFIG_FILES xproxymngproto.pc" ;;
12560
12561  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12562  esac
12563done
12564
12565
12566# If the user did not use the arguments to specify the items to instantiate,
12567# then the envvar interface is used.  Set only those that are not.
12568# We use the long form for the default assignment because of an extremely
12569# bizarre bug on SunOS 4.1.3.
12570if $ac_need_defaults; then
12571  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12572  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12573fi
12574
12575# Have a temporary directory for convenience.  Make it in the build tree
12576# simply because there is no reason against having it here, and in addition,
12577# creating and moving files from /tmp can sometimes cause problems.
12578# Hook for its removal unless debugging.
12579# Note that there is a small window in which the directory will not be cleaned:
12580# after its creation but before its name has been assigned to `$tmp'.
12581$debug ||
12582{
12583  tmp= ac_tmp=
12584  trap 'exit_status=$?
12585  : "${ac_tmp:=$tmp}"
12586  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12587' 0
12588  trap 'as_fn_exit 1' 1 2 13 15
12589}
12590# Create a (secure) tmp directory for tmp files.
12591
12592{
12593  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12594  test -d "$tmp"
12595}  ||
12596{
12597  tmp=./conf$$-$RANDOM
12598  (umask 077 && mkdir "$tmp")
12599} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12600ac_tmp=$tmp
12601
12602# Set up the scripts for CONFIG_FILES section.
12603# No need to generate them if there are no CONFIG_FILES.
12604# This happens for instance with `./config.status config.h'.
12605if test -n "$CONFIG_FILES"; then
12606
12607
12608ac_cr=`echo X | tr X '\015'`
12609# On cygwin, bash can eat \r inside `` if the user requested igncr.
12610# But we know of no other shell where ac_cr would be empty at this
12611# point, so we can use a bashism as a fallback.
12612if test "x$ac_cr" = x; then
12613  eval ac_cr=\$\'\\r\'
12614fi
12615ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12616if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12617  ac_cs_awk_cr='\\r'
12618else
12619  ac_cs_awk_cr=$ac_cr
12620fi
12621
12622echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12623_ACEOF
12624
12625
12626{
12627  echo "cat >conf$$subs.awk <<_ACEOF" &&
12628  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12629  echo "_ACEOF"
12630} >conf$$subs.sh ||
12631  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12632ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12633ac_delim='%!_!# '
12634for ac_last_try in false false false false false :; do
12635  . ./conf$$subs.sh ||
12636    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12637
12638  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12639  if test $ac_delim_n = $ac_delim_num; then
12640    break
12641  elif $ac_last_try; then
12642    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12643  else
12644    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12645  fi
12646done
12647rm -f conf$$subs.sh
12648
12649cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12650cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12651_ACEOF
12652sed -n '
12653h
12654s/^/S["/; s/!.*/"]=/
12655p
12656g
12657s/^[^!]*!//
12658:repl
12659t repl
12660s/'"$ac_delim"'$//
12661t delim
12662:nl
12663h
12664s/\(.\{148\}\)..*/\1/
12665t more1
12666s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12667p
12668n
12669b repl
12670:more1
12671s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12672p
12673g
12674s/.\{148\}//
12675t nl
12676:delim
12677h
12678s/\(.\{148\}\)..*/\1/
12679t more2
12680s/["\\]/\\&/g; s/^/"/; s/$/"/
12681p
12682b
12683:more2
12684s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12685p
12686g
12687s/.\{148\}//
12688t delim
12689' <conf$$subs.awk | sed '
12690/^[^""]/{
12691  N
12692  s/\n//
12693}
12694' >>$CONFIG_STATUS || ac_write_fail=1
12695rm -f conf$$subs.awk
12696cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12697_ACAWK
12698cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12699  for (key in S) S_is_set[key] = 1
12700  FS = ""
12701
12702}
12703{
12704  line = $ 0
12705  nfields = split(line, field, "@")
12706  substed = 0
12707  len = length(field[1])
12708  for (i = 2; i < nfields; i++) {
12709    key = field[i]
12710    keylen = length(key)
12711    if (S_is_set[key]) {
12712      value = S[key]
12713      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12714      len += length(value) + length(field[++i])
12715      substed = 1
12716    } else
12717      len += 1 + keylen
12718  }
12719
12720  print line
12721}
12722
12723_ACAWK
12724_ACEOF
12725cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12726if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12727  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12728else
12729  cat
12730fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12731  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12732_ACEOF
12733
12734# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12735# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12736# trailing colons and then remove the whole line if VPATH becomes empty
12737# (actually we leave an empty line to preserve line numbers).
12738if test "x$srcdir" = x.; then
12739  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12740h
12741s///
12742s/^/:/
12743s/[	 ]*$/:/
12744s/:\$(srcdir):/:/g
12745s/:\${srcdir}:/:/g
12746s/:@srcdir@:/:/g
12747s/^:*//
12748s/:*$//
12749x
12750s/\(=[	 ]*\).*/\1/
12751G
12752s/\n//
12753s/^[^=]*=[	 ]*$//
12754}'
12755fi
12756
12757cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12758fi # test -n "$CONFIG_FILES"
12759
12760
12761eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
12762shift
12763for ac_tag
12764do
12765  case $ac_tag in
12766  :[FHLC]) ac_mode=$ac_tag; continue;;
12767  esac
12768  case $ac_mode$ac_tag in
12769  :[FHL]*:*);;
12770  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12771  :[FH]-) ac_tag=-:-;;
12772  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12773  esac
12774  ac_save_IFS=$IFS
12775  IFS=:
12776  set x $ac_tag
12777  IFS=$ac_save_IFS
12778  shift
12779  ac_file=$1
12780  shift
12781
12782  case $ac_mode in
12783  :L) ac_source=$1;;
12784  :[FH])
12785    ac_file_inputs=
12786    for ac_f
12787    do
12788      case $ac_f in
12789      -) ac_f="$ac_tmp/stdin";;
12790      *) # Look for the file first in the build tree, then in the source tree
12791	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12792	 # because $ac_f cannot contain `:'.
12793	 test -f "$ac_f" ||
12794	   case $ac_f in
12795	   [\\/$]*) false;;
12796	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12797	   esac ||
12798	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12799      esac
12800      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12801      as_fn_append ac_file_inputs " '$ac_f'"
12802    done
12803
12804    # Let's still pretend it is `configure' which instantiates (i.e., don't
12805    # use $as_me), people would be surprised to read:
12806    #    /* config.h.  Generated by config.status.  */
12807    configure_input='Generated from '`
12808	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12809	`' by configure.'
12810    if test x"$ac_file" != x-; then
12811      configure_input="$ac_file.  $configure_input"
12812      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12813$as_echo "$as_me: creating $ac_file" >&6;}
12814    fi
12815    # Neutralize special characters interpreted by sed in replacement strings.
12816    case $configure_input in #(
12817    *\&* | *\|* | *\\* )
12818       ac_sed_conf_input=`$as_echo "$configure_input" |
12819       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12820    *) ac_sed_conf_input=$configure_input;;
12821    esac
12822
12823    case $ac_tag in
12824    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12825      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12826    esac
12827    ;;
12828  esac
12829
12830  ac_dir=`$as_dirname -- "$ac_file" ||
12831$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12832	 X"$ac_file" : 'X\(//\)[^/]' \| \
12833	 X"$ac_file" : 'X\(//\)$' \| \
12834	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12835$as_echo X"$ac_file" |
12836    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12837	    s//\1/
12838	    q
12839	  }
12840	  /^X\(\/\/\)[^/].*/{
12841	    s//\1/
12842	    q
12843	  }
12844	  /^X\(\/\/\)$/{
12845	    s//\1/
12846	    q
12847	  }
12848	  /^X\(\/\).*/{
12849	    s//\1/
12850	    q
12851	  }
12852	  s/.*/./; q'`
12853  as_dir="$ac_dir"; as_fn_mkdir_p
12854  ac_builddir=.
12855
12856case "$ac_dir" in
12857.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12858*)
12859  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12860  # A ".." for each directory in $ac_dir_suffix.
12861  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12862  case $ac_top_builddir_sub in
12863  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12864  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12865  esac ;;
12866esac
12867ac_abs_top_builddir=$ac_pwd
12868ac_abs_builddir=$ac_pwd$ac_dir_suffix
12869# for backward compatibility:
12870ac_top_builddir=$ac_top_build_prefix
12871
12872case $srcdir in
12873  .)  # We are building in place.
12874    ac_srcdir=.
12875    ac_top_srcdir=$ac_top_builddir_sub
12876    ac_abs_top_srcdir=$ac_pwd ;;
12877  [\\/]* | ?:[\\/]* )  # Absolute name.
12878    ac_srcdir=$srcdir$ac_dir_suffix;
12879    ac_top_srcdir=$srcdir
12880    ac_abs_top_srcdir=$srcdir ;;
12881  *) # Relative name.
12882    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12883    ac_top_srcdir=$ac_top_build_prefix$srcdir
12884    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12885esac
12886ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12887
12888
12889  case $ac_mode in
12890  :F)
12891  #
12892  # CONFIG_FILE
12893  #
12894
12895  case $INSTALL in
12896  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12897  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12898  esac
12899  ac_MKDIR_P=$MKDIR_P
12900  case $MKDIR_P in
12901  [\\/$]* | ?:[\\/]* ) ;;
12902  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12903  esac
12904_ACEOF
12905
12906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12907# If the template does not know about datarootdir, expand it.
12908# FIXME: This hack should be removed a few years after 2.60.
12909ac_datarootdir_hack=; ac_datarootdir_seen=
12910ac_sed_dataroot='
12911/datarootdir/ {
12912  p
12913  q
12914}
12915/@datadir@/p
12916/@docdir@/p
12917/@infodir@/p
12918/@localedir@/p
12919/@mandir@/p'
12920case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12921*datarootdir*) ac_datarootdir_seen=yes;;
12922*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12923  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12924$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12925_ACEOF
12926cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12927  ac_datarootdir_hack='
12928  s&@datadir@&$datadir&g
12929  s&@docdir@&$docdir&g
12930  s&@infodir@&$infodir&g
12931  s&@localedir@&$localedir&g
12932  s&@mandir@&$mandir&g
12933  s&\\\${datarootdir}&$datarootdir&g' ;;
12934esac
12935_ACEOF
12936
12937# Neutralize VPATH when `$srcdir' = `.'.
12938# Shell code in configure.ac might set extrasub.
12939# FIXME: do we really want to maintain this feature?
12940cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12941ac_sed_extra="$ac_vpsub
12942$extrasub
12943_ACEOF
12944cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12945:t
12946/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12947s|@configure_input@|$ac_sed_conf_input|;t t
12948s&@top_builddir@&$ac_top_builddir_sub&;t t
12949s&@top_build_prefix@&$ac_top_build_prefix&;t t
12950s&@srcdir@&$ac_srcdir&;t t
12951s&@abs_srcdir@&$ac_abs_srcdir&;t t
12952s&@top_srcdir@&$ac_top_srcdir&;t t
12953s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12954s&@builddir@&$ac_builddir&;t t
12955s&@abs_builddir@&$ac_abs_builddir&;t t
12956s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12957s&@INSTALL@&$ac_INSTALL&;t t
12958s&@MKDIR_P@&$ac_MKDIR_P&;t t
12959$ac_datarootdir_hack
12960"
12961eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12962  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12963
12964test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12965  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12966  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12967      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12968  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12969which seems to be undefined.  Please make sure it is defined" >&5
12970$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12971which seems to be undefined.  Please make sure it is defined" >&2;}
12972
12973  rm -f "$ac_tmp/stdin"
12974  case $ac_file in
12975  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12976  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12977  esac \
12978  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12979 ;;
12980
12981
12982  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12983$as_echo "$as_me: executing $ac_file commands" >&6;}
12984 ;;
12985  esac
12986
12987
12988  case $ac_file$ac_mode in
12989    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12990  # Older Autoconf quotes --file arguments for eval, but not when files
12991  # are listed without --file.  Let's play safe and only enable the eval
12992  # if we detect the quoting.
12993  # TODO: see whether this extra hack can be removed once we start
12994  # requiring Autoconf 2.70 or later.
12995  case $CONFIG_FILES in #(
12996  *\'*) :
12997    eval set x "$CONFIG_FILES" ;; #(
12998  *) :
12999    set x $CONFIG_FILES ;; #(
13000  *) :
13001     ;;
13002esac
13003  shift
13004  # Used to flag and report bootstrapping failures.
13005  am_rc=0
13006  for am_mf
13007  do
13008    # Strip MF so we end up with the name of the file.
13009    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
13010    # Check whether this is an Automake generated Makefile which includes
13011    # dependency-tracking related rules and includes.
13012    # Grep'ing the whole file directly is not great: AIX grep has a line
13013    # limit of 2048, but all sed's we know have understand at least 4000.
13014    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13015      || continue
13016    am_dirpart=`$as_dirname -- "$am_mf" ||
13017$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13018	 X"$am_mf" : 'X\(//\)[^/]' \| \
13019	 X"$am_mf" : 'X\(//\)$' \| \
13020	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13021$as_echo X"$am_mf" |
13022    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13023	    s//\1/
13024	    q
13025	  }
13026	  /^X\(\/\/\)[^/].*/{
13027	    s//\1/
13028	    q
13029	  }
13030	  /^X\(\/\/\)$/{
13031	    s//\1/
13032	    q
13033	  }
13034	  /^X\(\/\).*/{
13035	    s//\1/
13036	    q
13037	  }
13038	  s/.*/./; q'`
13039    am_filepart=`$as_basename -- "$am_mf" ||
13040$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13041	 X"$am_mf" : 'X\(//\)$' \| \
13042	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13043$as_echo X/"$am_mf" |
13044    sed '/^.*\/\([^/][^/]*\)\/*$/{
13045	    s//\1/
13046	    q
13047	  }
13048	  /^X\/\(\/\/\)$/{
13049	    s//\1/
13050	    q
13051	  }
13052	  /^X\/\(\/\).*/{
13053	    s//\1/
13054	    q
13055	  }
13056	  s/.*/./; q'`
13057    { echo "$as_me:$LINENO: cd "$am_dirpart" \
13058      && sed -e '/# am--include-marker/d' "$am_filepart" \
13059        | $MAKE -f - am--depfiles" >&5
13060   (cd "$am_dirpart" \
13061      && sed -e '/# am--include-marker/d' "$am_filepart" \
13062        | $MAKE -f - am--depfiles) >&5 2>&5
13063   ac_status=$?
13064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065   (exit $ac_status); } || am_rc=$?
13066  done
13067  if test $am_rc -ne 0; then
13068    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13069$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13070as_fn_error $? "Something went wrong bootstrapping makefile fragments
13071    for automatic dependency tracking.  Try re-running configure with the
13072    '--disable-dependency-tracking' option to at least be able to build
13073    the package (albeit without support for automatic dependency tracking).
13074See \`config.log' for more details" "$LINENO" 5; }
13075  fi
13076  { am_dirpart=; unset am_dirpart;}
13077  { am_filepart=; unset am_filepart;}
13078  { am_mf=; unset am_mf;}
13079  { am_rc=; unset am_rc;}
13080  rm -f conftest-deps.mk
13081}
13082 ;;
13083
13084  esac
13085done # for ac_tag
13086
13087
13088as_fn_exit 0
13089_ACEOF
13090ac_clean_files=$ac_clean_files_save
13091
13092test $ac_write_fail = 0 ||
13093  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13094
13095
13096# configure is writing to config.log, and then calls config.status.
13097# config.status does its own redirection, appending to config.log.
13098# Unfortunately, on DOS this fails, as config.log is still kept open
13099# by configure, so config.status won't be able to write to it; its
13100# output is simply discarded.  So we exec the FD to /dev/null,
13101# effectively closing config.log, so it can be properly (re)opened and
13102# appended to by config.status.  When coming back to configure, we
13103# need to make the FD available again.
13104if test "$no_create" != yes; then
13105  ac_cs_success=:
13106  ac_config_status_args=
13107  test "$silent" = yes &&
13108    ac_config_status_args="$ac_config_status_args --quiet"
13109  exec 5>/dev/null
13110  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13111  exec 5>>config.log
13112  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13113  # would make configure fail if this is the last instruction.
13114  $ac_cs_success || as_fn_exit 1
13115fi
13116if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13117  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13118$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13119fi
13120
13121