1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xfs 1.2.0.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
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://bugs.freedesktop.org/enter_bug.cgi?product=xorg
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='xfs'
643PACKAGE_TARNAME='xfs'
644PACKAGE_VERSION='1.2.0'
645PACKAGE_STRING='xfs 1.2.0'
646PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
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
689XFS_LIBS
690XFS_CFLAGS
691FONTPATH
692FONT100DPIDIR
693FONT75DPIDIR
694FONTTYPE1DIR
695FONTTTFDIR
696FONTOTFDIR
697FONTMISCDIR
698FONTROOTDIR
699CONFIG_FILE_PATH
700CONFIG_FILE_DESC
701DEFAULT_CONFIG_FILE
702LINT_FALSE
703LINT_TRUE
704LINT_FLAGS
705LINT
706HAVE_STYLESHEETS_FALSE
707HAVE_STYLESHEETS_TRUE
708XSL_STYLESHEET
709STYLESHEET_SRCDIR
710XORG_SGML_PATH
711HAVE_FOP_FALSE
712HAVE_FOP_TRUE
713FOP
714HAVE_XMLTO_FALSE
715HAVE_XMLTO_TRUE
716HAVE_XMLTO_TEXT_FALSE
717HAVE_XMLTO_TEXT_TRUE
718XMLTO
719ENABLE_DEVEL_DOCS_FALSE
720ENABLE_DEVEL_DOCS_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
752AM_BACKSLASH
753AM_DEFAULT_VERBOSITY
754AM_DEFAULT_V
755AM_V
756am__fastdepCC_FALSE
757am__fastdepCC_TRUE
758CCDEPMODE
759am__nodep
760AMDEPBACKSLASH
761AMDEP_FALSE
762AMDEP_TRUE
763am__quote
764am__include
765DEPDIR
766am__untar
767am__tar
768AMTAR
769am__leading_dot
770SET_MAKE
771AWK
772mkdir_p
773MKDIR_P
774INSTALL_STRIP_PROGRAM
775STRIP
776install_sh
777MAKEINFO
778AUTOHEADER
779AUTOMAKE
780AUTOCONF
781ACLOCAL
782VERSION
783PACKAGE
784CYGPATH_W
785am__isrc
786INSTALL_DATA
787INSTALL_SCRIPT
788INSTALL_PROGRAM
789EGREP
790GREP
791CPP
792OBJEXT
793EXEEXT
794ac_ct_CC
795CPPFLAGS
796LDFLAGS
797CFLAGS
798CC
799target_alias
800host_alias
801build_alias
802LIBS
803ECHO_T
804ECHO_N
805ECHO_C
806DEFS
807mandir
808localedir
809libdir
810psdir
811pdfdir
812dvidir
813htmldir
814infodir
815docdir
816oldincludedir
817includedir
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'
837ac_subst_files=''
838ac_user_opts='
839enable_option_checking
840enable_dependency_tracking
841enable_silent_rules
842enable_selective_werror
843enable_strict_compilation
844enable_devel_docs
845with_xmlto
846with_fop
847with_lint
848with_default_config_file
849with_fontrootdir
850with_fontmiscdir
851with_fontotfdir
852with_fontttfdir
853with_fonttype1dir
854with_font75dpidir
855with_font100dpidir
856with_default_font_path
857enable_inetd
858enable_syslog
859enable_unix_transport
860enable_tcp_transport
861enable_ipv6
862enable_local_transport
863'
864      ac_precious_vars='build_alias
865host_alias
866target_alias
867CC
868CFLAGS
869LDFLAGS
870LIBS
871CPPFLAGS
872CPP
873PKG_CONFIG
874PKG_CONFIG_PATH
875PKG_CONFIG_LIBDIR
876XMLTO
877FOP
878LINT
879LINT_FLAGS
880XFS_CFLAGS
881XFS_LIBS'
882
883
884# Initialize some variables set by options.
885ac_init_help=
886ac_init_version=false
887ac_unrecognized_opts=
888ac_unrecognized_sep=
889# The variables have the same names as the options, with
890# dashes changed to underlines.
891cache_file=/dev/null
892exec_prefix=NONE
893no_create=
894no_recursion=
895prefix=NONE
896program_prefix=NONE
897program_suffix=NONE
898program_transform_name=s,x,x,
899silent=
900site=
901srcdir=
902verbose=
903x_includes=NONE
904x_libraries=NONE
905
906# Installation directory options.
907# These are left unexpanded so users can "make install exec_prefix=/foo"
908# and all the variables that are supposed to be based on exec_prefix
909# by default will actually change.
910# Use braces instead of parens because sh, perl, etc. also accept them.
911# (The list follows the same order as the GNU Coding Standards.)
912bindir='${exec_prefix}/bin'
913sbindir='${exec_prefix}/sbin'
914libexecdir='${exec_prefix}/libexec'
915datarootdir='${prefix}/share'
916datadir='${datarootdir}'
917sysconfdir='${prefix}/etc'
918sharedstatedir='${prefix}/com'
919localstatedir='${prefix}/var'
920includedir='${prefix}/include'
921oldincludedir='/usr/include'
922docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
923infodir='${datarootdir}/info'
924htmldir='${docdir}'
925dvidir='${docdir}'
926pdfdir='${docdir}'
927psdir='${docdir}'
928libdir='${exec_prefix}/lib'
929localedir='${datarootdir}/locale'
930mandir='${datarootdir}/man'
931
932ac_prev=
933ac_dashdash=
934for ac_option
935do
936  # If the previous option needs an argument, assign it.
937  if test -n "$ac_prev"; then
938    eval $ac_prev=\$ac_option
939    ac_prev=
940    continue
941  fi
942
943  case $ac_option in
944  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
945  *=)   ac_optarg= ;;
946  *)    ac_optarg=yes ;;
947  esac
948
949  # Accept the important Cygnus configure options, so we can diagnose typos.
950
951  case $ac_dashdash$ac_option in
952  --)
953    ac_dashdash=yes ;;
954
955  -bindir | --bindir | --bindi | --bind | --bin | --bi)
956    ac_prev=bindir ;;
957  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
958    bindir=$ac_optarg ;;
959
960  -build | --build | --buil | --bui | --bu)
961    ac_prev=build_alias ;;
962  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
963    build_alias=$ac_optarg ;;
964
965  -cache-file | --cache-file | --cache-fil | --cache-fi \
966  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
967    ac_prev=cache_file ;;
968  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
969  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
970    cache_file=$ac_optarg ;;
971
972  --config-cache | -C)
973    cache_file=config.cache ;;
974
975  -datadir | --datadir | --datadi | --datad)
976    ac_prev=datadir ;;
977  -datadir=* | --datadir=* | --datadi=* | --datad=*)
978    datadir=$ac_optarg ;;
979
980  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
981  | --dataroo | --dataro | --datar)
982    ac_prev=datarootdir ;;
983  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
984  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
985    datarootdir=$ac_optarg ;;
986
987  -disable-* | --disable-*)
988    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
989    # Reject names that are not valid shell variable names.
990    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
991      as_fn_error $? "invalid feature name: $ac_useropt"
992    ac_useropt_orig=$ac_useropt
993    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994    case $ac_user_opts in
995      *"
996"enable_$ac_useropt"
997"*) ;;
998      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
999	 ac_unrecognized_sep=', ';;
1000    esac
1001    eval enable_$ac_useropt=no ;;
1002
1003  -docdir | --docdir | --docdi | --doc | --do)
1004    ac_prev=docdir ;;
1005  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1006    docdir=$ac_optarg ;;
1007
1008  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1009    ac_prev=dvidir ;;
1010  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1011    dvidir=$ac_optarg ;;
1012
1013  -enable-* | --enable-*)
1014    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1015    # Reject names that are not valid shell variable names.
1016    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017      as_fn_error $? "invalid feature name: $ac_useropt"
1018    ac_useropt_orig=$ac_useropt
1019    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020    case $ac_user_opts in
1021      *"
1022"enable_$ac_useropt"
1023"*) ;;
1024      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1025	 ac_unrecognized_sep=', ';;
1026    esac
1027    eval enable_$ac_useropt=\$ac_optarg ;;
1028
1029  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1030  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1031  | --exec | --exe | --ex)
1032    ac_prev=exec_prefix ;;
1033  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1034  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1035  | --exec=* | --exe=* | --ex=*)
1036    exec_prefix=$ac_optarg ;;
1037
1038  -gas | --gas | --ga | --g)
1039    # Obsolete; use --with-gas.
1040    with_gas=yes ;;
1041
1042  -help | --help | --hel | --he | -h)
1043    ac_init_help=long ;;
1044  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1045    ac_init_help=recursive ;;
1046  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1047    ac_init_help=short ;;
1048
1049  -host | --host | --hos | --ho)
1050    ac_prev=host_alias ;;
1051  -host=* | --host=* | --hos=* | --ho=*)
1052    host_alias=$ac_optarg ;;
1053
1054  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1055    ac_prev=htmldir ;;
1056  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1057  | --ht=*)
1058    htmldir=$ac_optarg ;;
1059
1060  -includedir | --includedir | --includedi | --included | --include \
1061  | --includ | --inclu | --incl | --inc)
1062    ac_prev=includedir ;;
1063  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1064  | --includ=* | --inclu=* | --incl=* | --inc=*)
1065    includedir=$ac_optarg ;;
1066
1067  -infodir | --infodir | --infodi | --infod | --info | --inf)
1068    ac_prev=infodir ;;
1069  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1070    infodir=$ac_optarg ;;
1071
1072  -libdir | --libdir | --libdi | --libd)
1073    ac_prev=libdir ;;
1074  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1075    libdir=$ac_optarg ;;
1076
1077  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1078  | --libexe | --libex | --libe)
1079    ac_prev=libexecdir ;;
1080  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1081  | --libexe=* | --libex=* | --libe=*)
1082    libexecdir=$ac_optarg ;;
1083
1084  -localedir | --localedir | --localedi | --localed | --locale)
1085    ac_prev=localedir ;;
1086  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1087    localedir=$ac_optarg ;;
1088
1089  -localstatedir | --localstatedir | --localstatedi | --localstated \
1090  | --localstate | --localstat | --localsta | --localst | --locals)
1091    ac_prev=localstatedir ;;
1092  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1093  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1094    localstatedir=$ac_optarg ;;
1095
1096  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1097    ac_prev=mandir ;;
1098  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1099    mandir=$ac_optarg ;;
1100
1101  -nfp | --nfp | --nf)
1102    # Obsolete; use --without-fp.
1103    with_fp=no ;;
1104
1105  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1106  | --no-cr | --no-c | -n)
1107    no_create=yes ;;
1108
1109  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1110  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1111    no_recursion=yes ;;
1112
1113  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1114  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1115  | --oldin | --oldi | --old | --ol | --o)
1116    ac_prev=oldincludedir ;;
1117  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1118  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1119  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1120    oldincludedir=$ac_optarg ;;
1121
1122  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1123    ac_prev=prefix ;;
1124  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1125    prefix=$ac_optarg ;;
1126
1127  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1128  | --program-pre | --program-pr | --program-p)
1129    ac_prev=program_prefix ;;
1130  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1131  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1132    program_prefix=$ac_optarg ;;
1133
1134  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1135  | --program-suf | --program-su | --program-s)
1136    ac_prev=program_suffix ;;
1137  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1138  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1139    program_suffix=$ac_optarg ;;
1140
1141  -program-transform-name | --program-transform-name \
1142  | --program-transform-nam | --program-transform-na \
1143  | --program-transform-n | --program-transform- \
1144  | --program-transform | --program-transfor \
1145  | --program-transfo | --program-transf \
1146  | --program-trans | --program-tran \
1147  | --progr-tra | --program-tr | --program-t)
1148    ac_prev=program_transform_name ;;
1149  -program-transform-name=* | --program-transform-name=* \
1150  | --program-transform-nam=* | --program-transform-na=* \
1151  | --program-transform-n=* | --program-transform-=* \
1152  | --program-transform=* | --program-transfor=* \
1153  | --program-transfo=* | --program-transf=* \
1154  | --program-trans=* | --program-tran=* \
1155  | --progr-tra=* | --program-tr=* | --program-t=*)
1156    program_transform_name=$ac_optarg ;;
1157
1158  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1159    ac_prev=pdfdir ;;
1160  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1161    pdfdir=$ac_optarg ;;
1162
1163  -psdir | --psdir | --psdi | --psd | --ps)
1164    ac_prev=psdir ;;
1165  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1166    psdir=$ac_optarg ;;
1167
1168  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1169  | -silent | --silent | --silen | --sile | --sil)
1170    silent=yes ;;
1171
1172  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1173    ac_prev=sbindir ;;
1174  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1175  | --sbi=* | --sb=*)
1176    sbindir=$ac_optarg ;;
1177
1178  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1179  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1180  | --sharedst | --shareds | --shared | --share | --shar \
1181  | --sha | --sh)
1182    ac_prev=sharedstatedir ;;
1183  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1184  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1185  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1186  | --sha=* | --sh=*)
1187    sharedstatedir=$ac_optarg ;;
1188
1189  -site | --site | --sit)
1190    ac_prev=site ;;
1191  -site=* | --site=* | --sit=*)
1192    site=$ac_optarg ;;
1193
1194  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1195    ac_prev=srcdir ;;
1196  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1197    srcdir=$ac_optarg ;;
1198
1199  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1200  | --syscon | --sysco | --sysc | --sys | --sy)
1201    ac_prev=sysconfdir ;;
1202  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1203  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1204    sysconfdir=$ac_optarg ;;
1205
1206  -target | --target | --targe | --targ | --tar | --ta | --t)
1207    ac_prev=target_alias ;;
1208  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1209    target_alias=$ac_optarg ;;
1210
1211  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1212    verbose=yes ;;
1213
1214  -version | --version | --versio | --versi | --vers | -V)
1215    ac_init_version=: ;;
1216
1217  -with-* | --with-*)
1218    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1219    # Reject names that are not valid shell variable names.
1220    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221      as_fn_error $? "invalid package name: $ac_useropt"
1222    ac_useropt_orig=$ac_useropt
1223    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224    case $ac_user_opts in
1225      *"
1226"with_$ac_useropt"
1227"*) ;;
1228      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1229	 ac_unrecognized_sep=', ';;
1230    esac
1231    eval with_$ac_useropt=\$ac_optarg ;;
1232
1233  -without-* | --without-*)
1234    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1235    # Reject names that are not valid shell variable names.
1236    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1237      as_fn_error $? "invalid package name: $ac_useropt"
1238    ac_useropt_orig=$ac_useropt
1239    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240    case $ac_user_opts in
1241      *"
1242"with_$ac_useropt"
1243"*) ;;
1244      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1245	 ac_unrecognized_sep=', ';;
1246    esac
1247    eval with_$ac_useropt=no ;;
1248
1249  --x)
1250    # Obsolete; use --with-x.
1251    with_x=yes ;;
1252
1253  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1254  | --x-incl | --x-inc | --x-in | --x-i)
1255    ac_prev=x_includes ;;
1256  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1257  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1258    x_includes=$ac_optarg ;;
1259
1260  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1261  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1262    ac_prev=x_libraries ;;
1263  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1264  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1265    x_libraries=$ac_optarg ;;
1266
1267  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1268Try \`$0 --help' for more information"
1269    ;;
1270
1271  *=*)
1272    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1273    # Reject names that are not valid shell variable names.
1274    case $ac_envvar in #(
1275      '' | [0-9]* | *[!_$as_cr_alnum]* )
1276      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1277    esac
1278    eval $ac_envvar=\$ac_optarg
1279    export $ac_envvar ;;
1280
1281  *)
1282    # FIXME: should be removed in autoconf 3.0.
1283    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1284    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1285      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1286    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1287    ;;
1288
1289  esac
1290done
1291
1292if test -n "$ac_prev"; then
1293  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1294  as_fn_error $? "missing argument to $ac_option"
1295fi
1296
1297if test -n "$ac_unrecognized_opts"; then
1298  case $enable_option_checking in
1299    no) ;;
1300    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1301    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1302  esac
1303fi
1304
1305# Check all directory arguments for consistency.
1306for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1307		datadir sysconfdir sharedstatedir localstatedir includedir \
1308		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1309		libdir localedir mandir
1310do
1311  eval ac_val=\$$ac_var
1312  # Remove trailing slashes.
1313  case $ac_val in
1314    */ )
1315      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1316      eval $ac_var=\$ac_val;;
1317  esac
1318  # Be sure to have absolute directory names.
1319  case $ac_val in
1320    [\\/$]* | ?:[\\/]* )  continue;;
1321    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1322  esac
1323  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1324done
1325
1326# There might be people who depend on the old broken behavior: `$host'
1327# used to hold the argument of --host etc.
1328# FIXME: To remove some day.
1329build=$build_alias
1330host=$host_alias
1331target=$target_alias
1332
1333# FIXME: To remove some day.
1334if test "x$host_alias" != x; then
1335  if test "x$build_alias" = x; then
1336    cross_compiling=maybe
1337  elif test "x$build_alias" != "x$host_alias"; then
1338    cross_compiling=yes
1339  fi
1340fi
1341
1342ac_tool_prefix=
1343test -n "$host_alias" && ac_tool_prefix=$host_alias-
1344
1345test "$silent" = yes && exec 6>/dev/null
1346
1347
1348ac_pwd=`pwd` && test -n "$ac_pwd" &&
1349ac_ls_di=`ls -di .` &&
1350ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1351  as_fn_error $? "working directory cannot be determined"
1352test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1353  as_fn_error $? "pwd does not report name of working directory"
1354
1355
1356# Find the source files, if location was not specified.
1357if test -z "$srcdir"; then
1358  ac_srcdir_defaulted=yes
1359  # Try the directory containing this script, then the parent directory.
1360  ac_confdir=`$as_dirname -- "$as_myself" ||
1361$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1362	 X"$as_myself" : 'X\(//\)[^/]' \| \
1363	 X"$as_myself" : 'X\(//\)$' \| \
1364	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1365$as_echo X"$as_myself" |
1366    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1367	    s//\1/
1368	    q
1369	  }
1370	  /^X\(\/\/\)[^/].*/{
1371	    s//\1/
1372	    q
1373	  }
1374	  /^X\(\/\/\)$/{
1375	    s//\1/
1376	    q
1377	  }
1378	  /^X\(\/\).*/{
1379	    s//\1/
1380	    q
1381	  }
1382	  s/.*/./; q'`
1383  srcdir=$ac_confdir
1384  if test ! -r "$srcdir/$ac_unique_file"; then
1385    srcdir=..
1386  fi
1387else
1388  ac_srcdir_defaulted=no
1389fi
1390if test ! -r "$srcdir/$ac_unique_file"; then
1391  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1392  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1393fi
1394ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1395ac_abs_confdir=`(
1396	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1397	pwd)`
1398# When building in place, set srcdir=.
1399if test "$ac_abs_confdir" = "$ac_pwd"; then
1400  srcdir=.
1401fi
1402# Remove unnecessary trailing slashes from srcdir.
1403# Double slashes in file names in object file debugging info
1404# mess up M-x gdb in Emacs.
1405case $srcdir in
1406*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1407esac
1408for ac_var in $ac_precious_vars; do
1409  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1410  eval ac_env_${ac_var}_value=\$${ac_var}
1411  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1412  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1413done
1414
1415#
1416# Report the --help message.
1417#
1418if test "$ac_init_help" = "long"; then
1419  # Omit some internal or obsolete options to make the list less imposing.
1420  # This message is too long to be a string in the A/UX 3.1 sh.
1421  cat <<_ACEOF
1422\`configure' configures xfs 1.2.0 to adapt to many kinds of systems.
1423
1424Usage: $0 [OPTION]... [VAR=VALUE]...
1425
1426To assign environment variables (e.g., CC, CFLAGS...), specify them as
1427VAR=VALUE.  See below for descriptions of some of the useful variables.
1428
1429Defaults for the options are specified in brackets.
1430
1431Configuration:
1432  -h, --help              display this help and exit
1433      --help=short        display options specific to this package
1434      --help=recursive    display the short help of all the included packages
1435  -V, --version           display version information and exit
1436  -q, --quiet, --silent   do not print \`checking ...' messages
1437      --cache-file=FILE   cache test results in FILE [disabled]
1438  -C, --config-cache      alias for \`--cache-file=config.cache'
1439  -n, --no-create         do not create output files
1440      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1441
1442Installation directories:
1443  --prefix=PREFIX         install architecture-independent files in PREFIX
1444                          [$ac_default_prefix]
1445  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1446                          [PREFIX]
1447
1448By default, \`make install' will install all the files in
1449\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1450an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1451for instance \`--prefix=\$HOME'.
1452
1453For better control, use the options below.
1454
1455Fine tuning of the installation directories:
1456  --bindir=DIR            user executables [EPREFIX/bin]
1457  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1458  --libexecdir=DIR        program executables [EPREFIX/libexec]
1459  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1460  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1461  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1462  --libdir=DIR            object code libraries [EPREFIX/lib]
1463  --includedir=DIR        C header files [PREFIX/include]
1464  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1465  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1466  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1467  --infodir=DIR           info documentation [DATAROOTDIR/info]
1468  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1469  --mandir=DIR            man documentation [DATAROOTDIR/man]
1470  --docdir=DIR            documentation root [DATAROOTDIR/doc/xfs]
1471  --htmldir=DIR           html documentation [DOCDIR]
1472  --dvidir=DIR            dvi documentation [DOCDIR]
1473  --pdfdir=DIR            pdf documentation [DOCDIR]
1474  --psdir=DIR             ps documentation [DOCDIR]
1475_ACEOF
1476
1477  cat <<\_ACEOF
1478
1479Program names:
1480  --program-prefix=PREFIX            prepend PREFIX to installed program names
1481  --program-suffix=SUFFIX            append SUFFIX to installed program names
1482  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1483
1484System types:
1485  --build=BUILD     configure for building on BUILD [guessed]
1486  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1487_ACEOF
1488fi
1489
1490if test -n "$ac_init_help"; then
1491  case $ac_init_help in
1492     short | recursive ) echo "Configuration of xfs 1.2.0:";;
1493   esac
1494  cat <<\_ACEOF
1495
1496Optional Features:
1497  --disable-option-checking  ignore unrecognized --enable/--with options
1498  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1499  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1500  --enable-dependency-tracking
1501                          do not reject slow dependency extractors
1502  --disable-dependency-tracking
1503                          speeds up one-time build
1504  --enable-silent-rules   less verbose build output (undo: "make V=1")
1505  --disable-silent-rules  verbose build output (undo: "make V=0")
1506  --disable-selective-werror
1507                          Turn off selective compiler errors. (default:
1508                          enabled)
1509  --enable-strict-compilation
1510                          Enable all warnings from compiler and make them
1511                          errors (default: disabled)
1512  --enable-devel-docs     Enable building the developer documentation
1513                          (default: yes)
1514  --enable-inetd          Support -inetd flag for starting from inetd
1515                          (default: enabled)
1516  --enable-syslog         Support option for logging via syslog (default:
1517                          enabled)
1518  --enable-unix-transport Enable UNIX domain socket transport
1519  --enable-tcp-transport  Enable TCP socket transport
1520  --enable-ipv6           Enable IPv6 support
1521  --enable-local-transport
1522                          Enable os-specific local transport
1523
1524Optional Packages:
1525  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1526  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1527  --with-xmlto            Use xmlto to regenerate documentation (default:
1528                          auto)
1529  --with-fop              Use fop to regenerate documentation (default: auto)
1530  --with-lint             Use a lint-style source code checker (default:
1531                          disabled)
1532  --with-default-config-file=PATH
1533                          comma-separated list of paths to look for config
1534                          file when not specified (default:
1535                          ${sysconfdir}/X11/fs/config)
1536  --with-fontrootdir=DIR  Path to root directory for font files
1537  --with-fontmiscdir=DIR  Path to misc files [FONTROOTDIR/misc]
1538  --with-fontotfdir=DIR   Path to OTF files [FONTROOTDIR/OTF]
1539  --with-fontttfdir=DIR   Path to TTF files [FONTROOTDIR/TTF]
1540  --with-fonttype1dir=DIR Path to Type1 files [FONTROOTDIR/Type1]
1541  --with-font75dpidir=DIR Path to 75dpi files [FONTROOTDIR/75dpi]
1542  --with-font100dpidir=DIR
1543                          Path to 100dpi files [FONTROOTDIR/100dpi]
1544  --with-default-font-path=PATH
1545                          Comma separated list of font dirs
1546
1547Some influential environment variables:
1548  CC          C compiler command
1549  CFLAGS      C compiler flags
1550  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1551              nonstandard directory <lib dir>
1552  LIBS        libraries to pass to the linker, e.g. -l<library>
1553  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1554              you have headers in a nonstandard directory <include dir>
1555  CPP         C preprocessor
1556  PKG_CONFIG  path to pkg-config utility
1557  PKG_CONFIG_PATH
1558              directories to add to pkg-config's search path
1559  PKG_CONFIG_LIBDIR
1560              path overriding pkg-config's built-in search path
1561  XMLTO       Path to xmlto command
1562  FOP         Path to fop command
1563  LINT        Path to a lint-style command
1564  LINT_FLAGS  Flags for the lint-style command
1565  XFS_CFLAGS  C compiler flags for XFS, overriding pkg-config
1566  XFS_LIBS    linker flags for XFS, overriding pkg-config
1567
1568Use these variables to override the choices made by `configure' or to help
1569it to find libraries and programs with nonstandard names/locations.
1570
1571Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1572_ACEOF
1573ac_status=$?
1574fi
1575
1576if test "$ac_init_help" = "recursive"; then
1577  # If there are subdirs, report their specific --help.
1578  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1579    test -d "$ac_dir" ||
1580      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1581      continue
1582    ac_builddir=.
1583
1584case "$ac_dir" in
1585.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1586*)
1587  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1588  # A ".." for each directory in $ac_dir_suffix.
1589  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1590  case $ac_top_builddir_sub in
1591  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1593  esac ;;
1594esac
1595ac_abs_top_builddir=$ac_pwd
1596ac_abs_builddir=$ac_pwd$ac_dir_suffix
1597# for backward compatibility:
1598ac_top_builddir=$ac_top_build_prefix
1599
1600case $srcdir in
1601  .)  # We are building in place.
1602    ac_srcdir=.
1603    ac_top_srcdir=$ac_top_builddir_sub
1604    ac_abs_top_srcdir=$ac_pwd ;;
1605  [\\/]* | ?:[\\/]* )  # Absolute name.
1606    ac_srcdir=$srcdir$ac_dir_suffix;
1607    ac_top_srcdir=$srcdir
1608    ac_abs_top_srcdir=$srcdir ;;
1609  *) # Relative name.
1610    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1611    ac_top_srcdir=$ac_top_build_prefix$srcdir
1612    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1613esac
1614ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1615
1616    cd "$ac_dir" || { ac_status=$?; continue; }
1617    # Check for guested configure.
1618    if test -f "$ac_srcdir/configure.gnu"; then
1619      echo &&
1620      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1621    elif test -f "$ac_srcdir/configure"; then
1622      echo &&
1623      $SHELL "$ac_srcdir/configure" --help=recursive
1624    else
1625      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1626    fi || ac_status=$?
1627    cd "$ac_pwd" || { ac_status=$?; break; }
1628  done
1629fi
1630
1631test -n "$ac_init_help" && exit $ac_status
1632if $ac_init_version; then
1633  cat <<\_ACEOF
1634xfs configure 1.2.0
1635generated by GNU Autoconf 2.69
1636
1637Copyright (C) 2012 Free Software Foundation, Inc.
1638This configure script is free software; the Free Software Foundation
1639gives unlimited permission to copy, distribute and modify it.
1640_ACEOF
1641  exit
1642fi
1643
1644## ------------------------ ##
1645## Autoconf initialization. ##
1646## ------------------------ ##
1647
1648# ac_fn_c_try_compile LINENO
1649# --------------------------
1650# Try to compile conftest.$ac_ext, and return whether this succeeded.
1651ac_fn_c_try_compile ()
1652{
1653  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654  rm -f conftest.$ac_objext
1655  if { { ac_try="$ac_compile"
1656case "(($ac_try" in
1657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658  *) ac_try_echo=$ac_try;;
1659esac
1660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661$as_echo "$ac_try_echo"; } >&5
1662  (eval "$ac_compile") 2>conftest.err
1663  ac_status=$?
1664  if test -s conftest.err; then
1665    grep -v '^ *+' conftest.err >conftest.er1
1666    cat conftest.er1 >&5
1667    mv -f conftest.er1 conftest.err
1668  fi
1669  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670  test $ac_status = 0; } && {
1671	 test -z "$ac_c_werror_flag" ||
1672	 test ! -s conftest.err
1673       } && test -s conftest.$ac_objext; then :
1674  ac_retval=0
1675else
1676  $as_echo "$as_me: failed program was:" >&5
1677sed 's/^/| /' conftest.$ac_ext >&5
1678
1679	ac_retval=1
1680fi
1681  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682  as_fn_set_status $ac_retval
1683
1684} # ac_fn_c_try_compile
1685
1686# ac_fn_c_try_cpp LINENO
1687# ----------------------
1688# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1689ac_fn_c_try_cpp ()
1690{
1691  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692  if { { ac_try="$ac_cpp conftest.$ac_ext"
1693case "(($ac_try" in
1694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695  *) ac_try_echo=$ac_try;;
1696esac
1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698$as_echo "$ac_try_echo"; } >&5
1699  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1700  ac_status=$?
1701  if test -s conftest.err; then
1702    grep -v '^ *+' conftest.err >conftest.er1
1703    cat conftest.er1 >&5
1704    mv -f conftest.er1 conftest.err
1705  fi
1706  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707  test $ac_status = 0; } > conftest.i && {
1708	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1709	 test ! -s conftest.err
1710       }; then :
1711  ac_retval=0
1712else
1713  $as_echo "$as_me: failed program was:" >&5
1714sed 's/^/| /' conftest.$ac_ext >&5
1715
1716    ac_retval=1
1717fi
1718  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719  as_fn_set_status $ac_retval
1720
1721} # ac_fn_c_try_cpp
1722
1723# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1724# -------------------------------------------------------
1725# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1726# the include files in INCLUDES and setting the cache variable VAR
1727# accordingly.
1728ac_fn_c_check_header_mongrel ()
1729{
1730  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731  if eval \${$3+:} false; then :
1732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733$as_echo_n "checking for $2... " >&6; }
1734if eval \${$3+:} false; then :
1735  $as_echo_n "(cached) " >&6
1736fi
1737eval ac_res=\$$3
1738	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1739$as_echo "$ac_res" >&6; }
1740else
1741  # Is the header compilable?
1742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1743$as_echo_n "checking $2 usability... " >&6; }
1744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745/* end confdefs.h.  */
1746$4
1747#include <$2>
1748_ACEOF
1749if ac_fn_c_try_compile "$LINENO"; then :
1750  ac_header_compiler=yes
1751else
1752  ac_header_compiler=no
1753fi
1754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1756$as_echo "$ac_header_compiler" >&6; }
1757
1758# Is the header present?
1759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1760$as_echo_n "checking $2 presence... " >&6; }
1761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762/* end confdefs.h.  */
1763#include <$2>
1764_ACEOF
1765if ac_fn_c_try_cpp "$LINENO"; then :
1766  ac_header_preproc=yes
1767else
1768  ac_header_preproc=no
1769fi
1770rm -f conftest.err conftest.i conftest.$ac_ext
1771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1772$as_echo "$ac_header_preproc" >&6; }
1773
1774# So?  What about this header?
1775case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1776  yes:no: )
1777    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1778$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1779    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1780$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1781    ;;
1782  no:yes:* )
1783    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1784$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1785    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1786$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1787    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1788$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1789    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1790$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1791    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1792$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1793( $as_echo "## ---------------------------------------------------------------------- ##
1794## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1795## ---------------------------------------------------------------------- ##"
1796     ) | sed "s/^/$as_me: WARNING:     /" >&2
1797    ;;
1798esac
1799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800$as_echo_n "checking for $2... " >&6; }
1801if eval \${$3+:} false; then :
1802  $as_echo_n "(cached) " >&6
1803else
1804  eval "$3=\$ac_header_compiler"
1805fi
1806eval ac_res=\$$3
1807	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808$as_echo "$ac_res" >&6; }
1809fi
1810  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811
1812} # ac_fn_c_check_header_mongrel
1813
1814# ac_fn_c_try_run LINENO
1815# ----------------------
1816# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1817# that executables *can* be run.
1818ac_fn_c_try_run ()
1819{
1820  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821  if { { ac_try="$ac_link"
1822case "(($ac_try" in
1823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824  *) ac_try_echo=$ac_try;;
1825esac
1826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827$as_echo "$ac_try_echo"; } >&5
1828  (eval "$ac_link") 2>&5
1829  ac_status=$?
1830  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1832  { { case "(($ac_try" in
1833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834  *) ac_try_echo=$ac_try;;
1835esac
1836eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837$as_echo "$ac_try_echo"; } >&5
1838  (eval "$ac_try") 2>&5
1839  ac_status=$?
1840  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841  test $ac_status = 0; }; }; then :
1842  ac_retval=0
1843else
1844  $as_echo "$as_me: program exited with status $ac_status" >&5
1845       $as_echo "$as_me: failed program was:" >&5
1846sed 's/^/| /' conftest.$ac_ext >&5
1847
1848       ac_retval=$ac_status
1849fi
1850  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1851  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852  as_fn_set_status $ac_retval
1853
1854} # ac_fn_c_try_run
1855
1856# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1857# -------------------------------------------------------
1858# Tests whether HEADER exists and can be compiled using the include files in
1859# INCLUDES, setting the cache variable VAR accordingly.
1860ac_fn_c_check_header_compile ()
1861{
1862  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864$as_echo_n "checking for $2... " >&6; }
1865if eval \${$3+:} false; then :
1866  $as_echo_n "(cached) " >&6
1867else
1868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869/* end confdefs.h.  */
1870$4
1871#include <$2>
1872_ACEOF
1873if ac_fn_c_try_compile "$LINENO"; then :
1874  eval "$3=yes"
1875else
1876  eval "$3=no"
1877fi
1878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1879fi
1880eval ac_res=\$$3
1881	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882$as_echo "$ac_res" >&6; }
1883  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884
1885} # ac_fn_c_check_header_compile
1886
1887# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1888# ---------------------------------------------
1889# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1890# accordingly.
1891ac_fn_c_check_decl ()
1892{
1893  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894  as_decl_name=`echo $2|sed 's/ *(.*//'`
1895  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1896  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1897$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1898if eval \${$3+:} false; then :
1899  $as_echo_n "(cached) " >&6
1900else
1901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902/* end confdefs.h.  */
1903$4
1904int
1905main ()
1906{
1907#ifndef $as_decl_name
1908#ifdef __cplusplus
1909  (void) $as_decl_use;
1910#else
1911  (void) $as_decl_name;
1912#endif
1913#endif
1914
1915  ;
1916  return 0;
1917}
1918_ACEOF
1919if ac_fn_c_try_compile "$LINENO"; then :
1920  eval "$3=yes"
1921else
1922  eval "$3=no"
1923fi
1924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925fi
1926eval ac_res=\$$3
1927	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928$as_echo "$ac_res" >&6; }
1929  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930
1931} # ac_fn_c_check_decl
1932
1933# ac_fn_c_try_link LINENO
1934# -----------------------
1935# Try to link conftest.$ac_ext, and return whether this succeeded.
1936ac_fn_c_try_link ()
1937{
1938  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939  rm -f conftest.$ac_objext conftest$ac_exeext
1940  if { { ac_try="$ac_link"
1941case "(($ac_try" in
1942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1943  *) ac_try_echo=$ac_try;;
1944esac
1945eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946$as_echo "$ac_try_echo"; } >&5
1947  (eval "$ac_link") 2>conftest.err
1948  ac_status=$?
1949  if test -s conftest.err; then
1950    grep -v '^ *+' conftest.err >conftest.er1
1951    cat conftest.er1 >&5
1952    mv -f conftest.er1 conftest.err
1953  fi
1954  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955  test $ac_status = 0; } && {
1956	 test -z "$ac_c_werror_flag" ||
1957	 test ! -s conftest.err
1958       } && test -s conftest$ac_exeext && {
1959	 test "$cross_compiling" = yes ||
1960	 test -x conftest$ac_exeext
1961       }; then :
1962  ac_retval=0
1963else
1964  $as_echo "$as_me: failed program was:" >&5
1965sed 's/^/| /' conftest.$ac_ext >&5
1966
1967	ac_retval=1
1968fi
1969  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1970  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1971  # interfere with the next link command; also delete a directory that is
1972  # left behind by Apple's compiler.  We do this before executing the actions.
1973  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1974  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975  as_fn_set_status $ac_retval
1976
1977} # ac_fn_c_try_link
1978
1979# ac_fn_c_check_func LINENO FUNC VAR
1980# ----------------------------------
1981# Tests whether FUNC exists, setting the cache variable VAR accordingly
1982ac_fn_c_check_func ()
1983{
1984  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986$as_echo_n "checking for $2... " >&6; }
1987if eval \${$3+:} false; then :
1988  $as_echo_n "(cached) " >&6
1989else
1990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991/* end confdefs.h.  */
1992/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1993   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1994#define $2 innocuous_$2
1995
1996/* System header to define __stub macros and hopefully few prototypes,
1997    which can conflict with char $2 (); below.
1998    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1999    <limits.h> exists even on freestanding compilers.  */
2000
2001#ifdef __STDC__
2002# include <limits.h>
2003#else
2004# include <assert.h>
2005#endif
2006
2007#undef $2
2008
2009/* Override any GCC internal prototype to avoid an error.
2010   Use char because int might match the return type of a GCC
2011   builtin and then its argument prototype would still apply.  */
2012#ifdef __cplusplus
2013extern "C"
2014#endif
2015char $2 ();
2016/* The GNU C library defines this for functions which it implements
2017    to always fail with ENOSYS.  Some functions are actually named
2018    something starting with __ and the normal name is an alias.  */
2019#if defined __stub_$2 || defined __stub___$2
2020choke me
2021#endif
2022
2023int
2024main ()
2025{
2026return $2 ();
2027  ;
2028  return 0;
2029}
2030_ACEOF
2031if ac_fn_c_try_link "$LINENO"; then :
2032  eval "$3=yes"
2033else
2034  eval "$3=no"
2035fi
2036rm -f core conftest.err conftest.$ac_objext \
2037    conftest$ac_exeext conftest.$ac_ext
2038fi
2039eval ac_res=\$$3
2040	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041$as_echo "$ac_res" >&6; }
2042  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2043
2044} # ac_fn_c_check_func
2045
2046# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2047# ----------------------------------------------------
2048# Tries to find if the field MEMBER exists in type AGGR, after including
2049# INCLUDES, setting cache variable VAR accordingly.
2050ac_fn_c_check_member ()
2051{
2052  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2054$as_echo_n "checking for $2.$3... " >&6; }
2055if eval \${$4+:} false; then :
2056  $as_echo_n "(cached) " >&6
2057else
2058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059/* end confdefs.h.  */
2060$5
2061int
2062main ()
2063{
2064static $2 ac_aggr;
2065if (ac_aggr.$3)
2066return 0;
2067  ;
2068  return 0;
2069}
2070_ACEOF
2071if ac_fn_c_try_compile "$LINENO"; then :
2072  eval "$4=yes"
2073else
2074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075/* end confdefs.h.  */
2076$5
2077int
2078main ()
2079{
2080static $2 ac_aggr;
2081if (sizeof ac_aggr.$3)
2082return 0;
2083  ;
2084  return 0;
2085}
2086_ACEOF
2087if ac_fn_c_try_compile "$LINENO"; then :
2088  eval "$4=yes"
2089else
2090  eval "$4=no"
2091fi
2092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093fi
2094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095fi
2096eval ac_res=\$$4
2097	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098$as_echo "$ac_res" >&6; }
2099  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100
2101} # ac_fn_c_check_member
2102
2103# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2104# -------------------------------------------
2105# Tests whether TYPE exists after having included INCLUDES, setting cache
2106# variable VAR accordingly.
2107ac_fn_c_check_type ()
2108{
2109  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2111$as_echo_n "checking for $2... " >&6; }
2112if eval \${$3+:} false; then :
2113  $as_echo_n "(cached) " >&6
2114else
2115  eval "$3=no"
2116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117/* end confdefs.h.  */
2118$4
2119int
2120main ()
2121{
2122if (sizeof ($2))
2123	 return 0;
2124  ;
2125  return 0;
2126}
2127_ACEOF
2128if ac_fn_c_try_compile "$LINENO"; then :
2129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130/* end confdefs.h.  */
2131$4
2132int
2133main ()
2134{
2135if (sizeof (($2)))
2136	    return 0;
2137  ;
2138  return 0;
2139}
2140_ACEOF
2141if ac_fn_c_try_compile "$LINENO"; then :
2142
2143else
2144  eval "$3=yes"
2145fi
2146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147fi
2148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149fi
2150eval ac_res=\$$3
2151	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2152$as_echo "$ac_res" >&6; }
2153  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2154
2155} # ac_fn_c_check_type
2156cat >config.log <<_ACEOF
2157This file contains any messages produced by compilers while
2158running configure, to aid debugging if configure makes a mistake.
2159
2160It was created by xfs $as_me 1.2.0, which was
2161generated by GNU Autoconf 2.69.  Invocation command line was
2162
2163  $ $0 $@
2164
2165_ACEOF
2166exec 5>>config.log
2167{
2168cat <<_ASUNAME
2169## --------- ##
2170## Platform. ##
2171## --------- ##
2172
2173hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2174uname -m = `(uname -m) 2>/dev/null || echo unknown`
2175uname -r = `(uname -r) 2>/dev/null || echo unknown`
2176uname -s = `(uname -s) 2>/dev/null || echo unknown`
2177uname -v = `(uname -v) 2>/dev/null || echo unknown`
2178
2179/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2180/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2181
2182/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2183/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2184/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2185/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2186/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2187/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2188/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2189
2190_ASUNAME
2191
2192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193for as_dir in $PATH
2194do
2195  IFS=$as_save_IFS
2196  test -z "$as_dir" && as_dir=.
2197    $as_echo "PATH: $as_dir"
2198  done
2199IFS=$as_save_IFS
2200
2201} >&5
2202
2203cat >&5 <<_ACEOF
2204
2205
2206## ----------- ##
2207## Core tests. ##
2208## ----------- ##
2209
2210_ACEOF
2211
2212
2213# Keep a trace of the command line.
2214# Strip out --no-create and --no-recursion so they do not pile up.
2215# Strip out --silent because we don't want to record it for future runs.
2216# Also quote any args containing shell meta-characters.
2217# Make two passes to allow for proper duplicate-argument suppression.
2218ac_configure_args=
2219ac_configure_args0=
2220ac_configure_args1=
2221ac_must_keep_next=false
2222for ac_pass in 1 2
2223do
2224  for ac_arg
2225  do
2226    case $ac_arg in
2227    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2228    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2229    | -silent | --silent | --silen | --sile | --sil)
2230      continue ;;
2231    *\'*)
2232      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2233    esac
2234    case $ac_pass in
2235    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2236    2)
2237      as_fn_append ac_configure_args1 " '$ac_arg'"
2238      if test $ac_must_keep_next = true; then
2239	ac_must_keep_next=false # Got value, back to normal.
2240      else
2241	case $ac_arg in
2242	  *=* | --config-cache | -C | -disable-* | --disable-* \
2243	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2244	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2245	  | -with-* | --with-* | -without-* | --without-* | --x)
2246	    case "$ac_configure_args0 " in
2247	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2248	    esac
2249	    ;;
2250	  -* ) ac_must_keep_next=true ;;
2251	esac
2252      fi
2253      as_fn_append ac_configure_args " '$ac_arg'"
2254      ;;
2255    esac
2256  done
2257done
2258{ ac_configure_args0=; unset ac_configure_args0;}
2259{ ac_configure_args1=; unset ac_configure_args1;}
2260
2261# When interrupted or exit'd, cleanup temporary files, and complete
2262# config.log.  We remove comments because anyway the quotes in there
2263# would cause problems or look ugly.
2264# WARNING: Use '\'' to represent an apostrophe within the trap.
2265# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2266trap 'exit_status=$?
2267  # Save into config.log some information that might help in debugging.
2268  {
2269    echo
2270
2271    $as_echo "## ---------------- ##
2272## Cache variables. ##
2273## ---------------- ##"
2274    echo
2275    # The following way of writing the cache mishandles newlines in values,
2276(
2277  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2278    eval ac_val=\$$ac_var
2279    case $ac_val in #(
2280    *${as_nl}*)
2281      case $ac_var in #(
2282      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2283$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2284      esac
2285      case $ac_var in #(
2286      _ | IFS | as_nl) ;; #(
2287      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2288      *) { eval $ac_var=; unset $ac_var;} ;;
2289      esac ;;
2290    esac
2291  done
2292  (set) 2>&1 |
2293    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2294    *${as_nl}ac_space=\ *)
2295      sed -n \
2296	"s/'\''/'\''\\\\'\'''\''/g;
2297	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2298      ;; #(
2299    *)
2300      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2301      ;;
2302    esac |
2303    sort
2304)
2305    echo
2306
2307    $as_echo "## ----------------- ##
2308## Output variables. ##
2309## ----------------- ##"
2310    echo
2311    for ac_var in $ac_subst_vars
2312    do
2313      eval ac_val=\$$ac_var
2314      case $ac_val in
2315      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2316      esac
2317      $as_echo "$ac_var='\''$ac_val'\''"
2318    done | sort
2319    echo
2320
2321    if test -n "$ac_subst_files"; then
2322      $as_echo "## ------------------- ##
2323## File substitutions. ##
2324## ------------------- ##"
2325      echo
2326      for ac_var in $ac_subst_files
2327      do
2328	eval ac_val=\$$ac_var
2329	case $ac_val in
2330	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2331	esac
2332	$as_echo "$ac_var='\''$ac_val'\''"
2333      done | sort
2334      echo
2335    fi
2336
2337    if test -s confdefs.h; then
2338      $as_echo "## ----------- ##
2339## confdefs.h. ##
2340## ----------- ##"
2341      echo
2342      cat confdefs.h
2343      echo
2344    fi
2345    test "$ac_signal" != 0 &&
2346      $as_echo "$as_me: caught signal $ac_signal"
2347    $as_echo "$as_me: exit $exit_status"
2348  } >&5
2349  rm -f core *.core core.conftest.* &&
2350    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2351    exit $exit_status
2352' 0
2353for ac_signal in 1 2 13 15; do
2354  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2355done
2356ac_signal=0
2357
2358# confdefs.h avoids OS command line length limits that DEFS can exceed.
2359rm -f -r conftest* confdefs.h
2360
2361$as_echo "/* confdefs.h */" > confdefs.h
2362
2363# Predefined preprocessor variables.
2364
2365cat >>confdefs.h <<_ACEOF
2366#define PACKAGE_NAME "$PACKAGE_NAME"
2367_ACEOF
2368
2369cat >>confdefs.h <<_ACEOF
2370#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2371_ACEOF
2372
2373cat >>confdefs.h <<_ACEOF
2374#define PACKAGE_VERSION "$PACKAGE_VERSION"
2375_ACEOF
2376
2377cat >>confdefs.h <<_ACEOF
2378#define PACKAGE_STRING "$PACKAGE_STRING"
2379_ACEOF
2380
2381cat >>confdefs.h <<_ACEOF
2382#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2383_ACEOF
2384
2385cat >>confdefs.h <<_ACEOF
2386#define PACKAGE_URL "$PACKAGE_URL"
2387_ACEOF
2388
2389
2390# Let the site file select an alternate cache file if it wants to.
2391# Prefer an explicitly selected file to automatically selected ones.
2392ac_site_file1=NONE
2393ac_site_file2=NONE
2394if test -n "$CONFIG_SITE"; then
2395  # We do not want a PATH search for config.site.
2396  case $CONFIG_SITE in #((
2397    -*)  ac_site_file1=./$CONFIG_SITE;;
2398    */*) ac_site_file1=$CONFIG_SITE;;
2399    *)   ac_site_file1=./$CONFIG_SITE;;
2400  esac
2401elif test "x$prefix" != xNONE; then
2402  ac_site_file1=$prefix/share/config.site
2403  ac_site_file2=$prefix/etc/config.site
2404else
2405  ac_site_file1=$ac_default_prefix/share/config.site
2406  ac_site_file2=$ac_default_prefix/etc/config.site
2407fi
2408for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2409do
2410  test "x$ac_site_file" = xNONE && continue
2411  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2412    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2413$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2414    sed 's/^/| /' "$ac_site_file" >&5
2415    . "$ac_site_file" \
2416      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2418as_fn_error $? "failed to load site script $ac_site_file
2419See \`config.log' for more details" "$LINENO" 5; }
2420  fi
2421done
2422
2423if test -r "$cache_file"; then
2424  # Some versions of bash will fail to source /dev/null (special files
2425  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2426  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2427    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2428$as_echo "$as_me: loading cache $cache_file" >&6;}
2429    case $cache_file in
2430      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2431      *)                      . "./$cache_file";;
2432    esac
2433  fi
2434else
2435  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2436$as_echo "$as_me: creating cache $cache_file" >&6;}
2437  >$cache_file
2438fi
2439
2440# Check that the precious variables saved in the cache have kept the same
2441# value.
2442ac_cache_corrupted=false
2443for ac_var in $ac_precious_vars; do
2444  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2445  eval ac_new_set=\$ac_env_${ac_var}_set
2446  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2447  eval ac_new_val=\$ac_env_${ac_var}_value
2448  case $ac_old_set,$ac_new_set in
2449    set,)
2450      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2451$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2452      ac_cache_corrupted=: ;;
2453    ,set)
2454      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2455$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2456      ac_cache_corrupted=: ;;
2457    ,);;
2458    *)
2459      if test "x$ac_old_val" != "x$ac_new_val"; then
2460	# differences in whitespace do not lead to failure.
2461	ac_old_val_w=`echo x $ac_old_val`
2462	ac_new_val_w=`echo x $ac_new_val`
2463	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2464	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2465$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2466	  ac_cache_corrupted=:
2467	else
2468	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2469$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2470	  eval $ac_var=\$ac_old_val
2471	fi
2472	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2473$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2474	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2475$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2476      fi;;
2477  esac
2478  # Pass precious variables to config.status.
2479  if test "$ac_new_set" = set; then
2480    case $ac_new_val in
2481    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2482    *) ac_arg=$ac_var=$ac_new_val ;;
2483    esac
2484    case " $ac_configure_args " in
2485      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2486      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2487    esac
2488  fi
2489done
2490if $ac_cache_corrupted; then
2491  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2493  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2494$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2495  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2496fi
2497## -------------------- ##
2498## Main body of script. ##
2499## -------------------- ##
2500
2501ac_ext=c
2502ac_cpp='$CPP $CPPFLAGS'
2503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2505ac_compiler_gnu=$ac_cv_c_compiler_gnu
2506
2507
2508# Set common system defines for POSIX extensions, such as _GNU_SOURCE
2509# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
2510ac_aux_dir=
2511for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2512  if test -f "$ac_dir/install-sh"; then
2513    ac_aux_dir=$ac_dir
2514    ac_install_sh="$ac_aux_dir/install-sh -c"
2515    break
2516  elif test -f "$ac_dir/install.sh"; then
2517    ac_aux_dir=$ac_dir
2518    ac_install_sh="$ac_aux_dir/install.sh -c"
2519    break
2520  elif test -f "$ac_dir/shtool"; then
2521    ac_aux_dir=$ac_dir
2522    ac_install_sh="$ac_aux_dir/shtool install -c"
2523    break
2524  fi
2525done
2526if test -z "$ac_aux_dir"; then
2527  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2528fi
2529
2530# These three variables are undocumented and unsupported,
2531# and are intended to be withdrawn in a future Autoconf release.
2532# They can cause serious problems if a builder's source tree is in a directory
2533# whose full name contains unusual characters.
2534ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2535ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2536ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2537
2538
2539# Expand $ac_aux_dir to an absolute path.
2540am_aux_dir=`cd "$ac_aux_dir" && pwd`
2541
2542ac_ext=c
2543ac_cpp='$CPP $CPPFLAGS'
2544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2546ac_compiler_gnu=$ac_cv_c_compiler_gnu
2547if test -n "$ac_tool_prefix"; then
2548  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2549set dummy ${ac_tool_prefix}gcc; ac_word=$2
2550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2551$as_echo_n "checking for $ac_word... " >&6; }
2552if ${ac_cv_prog_CC+:} false; then :
2553  $as_echo_n "(cached) " >&6
2554else
2555  if test -n "$CC"; then
2556  ac_cv_prog_CC="$CC" # Let the user override the test.
2557else
2558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559for as_dir in $PATH
2560do
2561  IFS=$as_save_IFS
2562  test -z "$as_dir" && as_dir=.
2563    for ac_exec_ext in '' $ac_executable_extensions; do
2564  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2565    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2566    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2567    break 2
2568  fi
2569done
2570  done
2571IFS=$as_save_IFS
2572
2573fi
2574fi
2575CC=$ac_cv_prog_CC
2576if test -n "$CC"; then
2577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2578$as_echo "$CC" >&6; }
2579else
2580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2581$as_echo "no" >&6; }
2582fi
2583
2584
2585fi
2586if test -z "$ac_cv_prog_CC"; then
2587  ac_ct_CC=$CC
2588  # Extract the first word of "gcc", so it can be a program name with args.
2589set dummy gcc; ac_word=$2
2590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2591$as_echo_n "checking for $ac_word... " >&6; }
2592if ${ac_cv_prog_ac_ct_CC+:} false; then :
2593  $as_echo_n "(cached) " >&6
2594else
2595  if test -n "$ac_ct_CC"; then
2596  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2597else
2598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599for as_dir in $PATH
2600do
2601  IFS=$as_save_IFS
2602  test -z "$as_dir" && as_dir=.
2603    for ac_exec_ext in '' $ac_executable_extensions; do
2604  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2605    ac_cv_prog_ac_ct_CC="gcc"
2606    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2607    break 2
2608  fi
2609done
2610  done
2611IFS=$as_save_IFS
2612
2613fi
2614fi
2615ac_ct_CC=$ac_cv_prog_ac_ct_CC
2616if test -n "$ac_ct_CC"; then
2617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2618$as_echo "$ac_ct_CC" >&6; }
2619else
2620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621$as_echo "no" >&6; }
2622fi
2623
2624  if test "x$ac_ct_CC" = x; then
2625    CC=""
2626  else
2627    case $cross_compiling:$ac_tool_warned in
2628yes:)
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2631ac_tool_warned=yes ;;
2632esac
2633    CC=$ac_ct_CC
2634  fi
2635else
2636  CC="$ac_cv_prog_CC"
2637fi
2638
2639if test -z "$CC"; then
2640          if test -n "$ac_tool_prefix"; then
2641    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2642set dummy ${ac_tool_prefix}cc; ac_word=$2
2643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2644$as_echo_n "checking for $ac_word... " >&6; }
2645if ${ac_cv_prog_CC+:} false; then :
2646  $as_echo_n "(cached) " >&6
2647else
2648  if test -n "$CC"; then
2649  ac_cv_prog_CC="$CC" # Let the user override the test.
2650else
2651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652for as_dir in $PATH
2653do
2654  IFS=$as_save_IFS
2655  test -z "$as_dir" && as_dir=.
2656    for ac_exec_ext in '' $ac_executable_extensions; do
2657  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2658    ac_cv_prog_CC="${ac_tool_prefix}cc"
2659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2660    break 2
2661  fi
2662done
2663  done
2664IFS=$as_save_IFS
2665
2666fi
2667fi
2668CC=$ac_cv_prog_CC
2669if test -n "$CC"; then
2670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2671$as_echo "$CC" >&6; }
2672else
2673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2674$as_echo "no" >&6; }
2675fi
2676
2677
2678  fi
2679fi
2680if test -z "$CC"; then
2681  # Extract the first word of "cc", so it can be a program name with args.
2682set dummy cc; ac_word=$2
2683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2684$as_echo_n "checking for $ac_word... " >&6; }
2685if ${ac_cv_prog_CC+:} false; then :
2686  $as_echo_n "(cached) " >&6
2687else
2688  if test -n "$CC"; then
2689  ac_cv_prog_CC="$CC" # Let the user override the test.
2690else
2691  ac_prog_rejected=no
2692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693for as_dir in $PATH
2694do
2695  IFS=$as_save_IFS
2696  test -z "$as_dir" && as_dir=.
2697    for ac_exec_ext in '' $ac_executable_extensions; do
2698  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2699    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2700       ac_prog_rejected=yes
2701       continue
2702     fi
2703    ac_cv_prog_CC="cc"
2704    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2705    break 2
2706  fi
2707done
2708  done
2709IFS=$as_save_IFS
2710
2711if test $ac_prog_rejected = yes; then
2712  # We found a bogon in the path, so make sure we never use it.
2713  set dummy $ac_cv_prog_CC
2714  shift
2715  if test $# != 0; then
2716    # We chose a different compiler from the bogus one.
2717    # However, it has the same basename, so the bogon will be chosen
2718    # first if we set CC to just the basename; use the full file name.
2719    shift
2720    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2721  fi
2722fi
2723fi
2724fi
2725CC=$ac_cv_prog_CC
2726if test -n "$CC"; then
2727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2728$as_echo "$CC" >&6; }
2729else
2730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2731$as_echo "no" >&6; }
2732fi
2733
2734
2735fi
2736if test -z "$CC"; then
2737  if test -n "$ac_tool_prefix"; then
2738  for ac_prog in cl.exe
2739  do
2740    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2741set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2743$as_echo_n "checking for $ac_word... " >&6; }
2744if ${ac_cv_prog_CC+:} false; then :
2745  $as_echo_n "(cached) " >&6
2746else
2747  if test -n "$CC"; then
2748  ac_cv_prog_CC="$CC" # Let the user override the test.
2749else
2750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751for as_dir in $PATH
2752do
2753  IFS=$as_save_IFS
2754  test -z "$as_dir" && as_dir=.
2755    for ac_exec_ext in '' $ac_executable_extensions; do
2756  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2757    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2758    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2759    break 2
2760  fi
2761done
2762  done
2763IFS=$as_save_IFS
2764
2765fi
2766fi
2767CC=$ac_cv_prog_CC
2768if test -n "$CC"; then
2769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2770$as_echo "$CC" >&6; }
2771else
2772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2773$as_echo "no" >&6; }
2774fi
2775
2776
2777    test -n "$CC" && break
2778  done
2779fi
2780if test -z "$CC"; then
2781  ac_ct_CC=$CC
2782  for ac_prog in cl.exe
2783do
2784  # Extract the first word of "$ac_prog", so it can be a program name with args.
2785set dummy $ac_prog; ac_word=$2
2786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787$as_echo_n "checking for $ac_word... " >&6; }
2788if ${ac_cv_prog_ac_ct_CC+:} false; then :
2789  $as_echo_n "(cached) " >&6
2790else
2791  if test -n "$ac_ct_CC"; then
2792  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2793else
2794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795for as_dir in $PATH
2796do
2797  IFS=$as_save_IFS
2798  test -z "$as_dir" && as_dir=.
2799    for ac_exec_ext in '' $ac_executable_extensions; do
2800  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2801    ac_cv_prog_ac_ct_CC="$ac_prog"
2802    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2803    break 2
2804  fi
2805done
2806  done
2807IFS=$as_save_IFS
2808
2809fi
2810fi
2811ac_ct_CC=$ac_cv_prog_ac_ct_CC
2812if test -n "$ac_ct_CC"; then
2813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2814$as_echo "$ac_ct_CC" >&6; }
2815else
2816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2817$as_echo "no" >&6; }
2818fi
2819
2820
2821  test -n "$ac_ct_CC" && break
2822done
2823
2824  if test "x$ac_ct_CC" = x; then
2825    CC=""
2826  else
2827    case $cross_compiling:$ac_tool_warned in
2828yes:)
2829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2831ac_tool_warned=yes ;;
2832esac
2833    CC=$ac_ct_CC
2834  fi
2835fi
2836
2837fi
2838
2839
2840test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2841$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2842as_fn_error $? "no acceptable C compiler found in \$PATH
2843See \`config.log' for more details" "$LINENO" 5; }
2844
2845# Provide some information about the compiler.
2846$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2847set X $ac_compile
2848ac_compiler=$2
2849for ac_option in --version -v -V -qversion; do
2850  { { ac_try="$ac_compiler $ac_option >&5"
2851case "(($ac_try" in
2852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853  *) ac_try_echo=$ac_try;;
2854esac
2855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2856$as_echo "$ac_try_echo"; } >&5
2857  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2858  ac_status=$?
2859  if test -s conftest.err; then
2860    sed '10a\
2861... rest of stderr output deleted ...
2862         10q' conftest.err >conftest.er1
2863    cat conftest.er1 >&5
2864  fi
2865  rm -f conftest.er1 conftest.err
2866  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2867  test $ac_status = 0; }
2868done
2869
2870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2871/* end confdefs.h.  */
2872
2873int
2874main ()
2875{
2876
2877  ;
2878  return 0;
2879}
2880_ACEOF
2881ac_clean_files_save=$ac_clean_files
2882ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2883# Try to create an executable without -o first, disregard a.out.
2884# It will help us diagnose broken compilers, and finding out an intuition
2885# of exeext.
2886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2887$as_echo_n "checking whether the C compiler works... " >&6; }
2888ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2889
2890# The possible output files:
2891ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2892
2893ac_rmfiles=
2894for ac_file in $ac_files
2895do
2896  case $ac_file in
2897    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2898    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2899  esac
2900done
2901rm -f $ac_rmfiles
2902
2903if { { ac_try="$ac_link_default"
2904case "(($ac_try" in
2905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906  *) ac_try_echo=$ac_try;;
2907esac
2908eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2909$as_echo "$ac_try_echo"; } >&5
2910  (eval "$ac_link_default") 2>&5
2911  ac_status=$?
2912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2913  test $ac_status = 0; }; then :
2914  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2915# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2916# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2917# so that the user can short-circuit this test for compilers unknown to
2918# Autoconf.
2919for ac_file in $ac_files ''
2920do
2921  test -f "$ac_file" || continue
2922  case $ac_file in
2923    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2924	;;
2925    [ab].out )
2926	# We found the default executable, but exeext='' is most
2927	# certainly right.
2928	break;;
2929    *.* )
2930	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2931	then :; else
2932	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2933	fi
2934	# We set ac_cv_exeext here because the later test for it is not
2935	# safe: cross compilers may not add the suffix if given an `-o'
2936	# argument, so we may need to know it at that point already.
2937	# Even if this section looks crufty: it has the advantage of
2938	# actually working.
2939	break;;
2940    * )
2941	break;;
2942  esac
2943done
2944test "$ac_cv_exeext" = no && ac_cv_exeext=
2945
2946else
2947  ac_file=''
2948fi
2949if test -z "$ac_file"; then :
2950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951$as_echo "no" >&6; }
2952$as_echo "$as_me: failed program was:" >&5
2953sed 's/^/| /' conftest.$ac_ext >&5
2954
2955{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2956$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2957as_fn_error 77 "C compiler cannot create executables
2958See \`config.log' for more details" "$LINENO" 5; }
2959else
2960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2961$as_echo "yes" >&6; }
2962fi
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2964$as_echo_n "checking for C compiler default output file name... " >&6; }
2965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2966$as_echo "$ac_file" >&6; }
2967ac_exeext=$ac_cv_exeext
2968
2969rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2970ac_clean_files=$ac_clean_files_save
2971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2972$as_echo_n "checking for suffix of executables... " >&6; }
2973if { { ac_try="$ac_link"
2974case "(($ac_try" in
2975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976  *) ac_try_echo=$ac_try;;
2977esac
2978eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2979$as_echo "$ac_try_echo"; } >&5
2980  (eval "$ac_link") 2>&5
2981  ac_status=$?
2982  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2983  test $ac_status = 0; }; then :
2984  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2985# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2986# work properly (i.e., refer to `conftest.exe'), while it won't with
2987# `rm'.
2988for ac_file in conftest.exe conftest conftest.*; do
2989  test -f "$ac_file" || continue
2990  case $ac_file in
2991    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2992    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2993	  break;;
2994    * ) break;;
2995  esac
2996done
2997else
2998  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3000as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3001See \`config.log' for more details" "$LINENO" 5; }
3002fi
3003rm -f conftest conftest$ac_cv_exeext
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3005$as_echo "$ac_cv_exeext" >&6; }
3006
3007rm -f conftest.$ac_ext
3008EXEEXT=$ac_cv_exeext
3009ac_exeext=$EXEEXT
3010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3011/* end confdefs.h.  */
3012#include <stdio.h>
3013int
3014main ()
3015{
3016FILE *f = fopen ("conftest.out", "w");
3017 return ferror (f) || fclose (f) != 0;
3018
3019  ;
3020  return 0;
3021}
3022_ACEOF
3023ac_clean_files="$ac_clean_files conftest.out"
3024# Check that the compiler produces executables we can run.  If not, either
3025# the compiler is broken, or we cross compile.
3026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3027$as_echo_n "checking whether we are cross compiling... " >&6; }
3028if test "$cross_compiling" != yes; then
3029  { { ac_try="$ac_link"
3030case "(($ac_try" in
3031  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032  *) ac_try_echo=$ac_try;;
3033esac
3034eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3035$as_echo "$ac_try_echo"; } >&5
3036  (eval "$ac_link") 2>&5
3037  ac_status=$?
3038  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3039  test $ac_status = 0; }
3040  if { ac_try='./conftest$ac_cv_exeext'
3041  { { case "(($ac_try" in
3042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043  *) ac_try_echo=$ac_try;;
3044esac
3045eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3046$as_echo "$ac_try_echo"; } >&5
3047  (eval "$ac_try") 2>&5
3048  ac_status=$?
3049  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3050  test $ac_status = 0; }; }; then
3051    cross_compiling=no
3052  else
3053    if test "$cross_compiling" = maybe; then
3054	cross_compiling=yes
3055    else
3056	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3057$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3058as_fn_error $? "cannot run C compiled programs.
3059If you meant to cross compile, use \`--host'.
3060See \`config.log' for more details" "$LINENO" 5; }
3061    fi
3062  fi
3063fi
3064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3065$as_echo "$cross_compiling" >&6; }
3066
3067rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3068ac_clean_files=$ac_clean_files_save
3069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3070$as_echo_n "checking for suffix of object files... " >&6; }
3071if ${ac_cv_objext+:} false; then :
3072  $as_echo_n "(cached) " >&6
3073else
3074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3075/* end confdefs.h.  */
3076
3077int
3078main ()
3079{
3080
3081  ;
3082  return 0;
3083}
3084_ACEOF
3085rm -f conftest.o conftest.obj
3086if { { ac_try="$ac_compile"
3087case "(($ac_try" in
3088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089  *) ac_try_echo=$ac_try;;
3090esac
3091eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3092$as_echo "$ac_try_echo"; } >&5
3093  (eval "$ac_compile") 2>&5
3094  ac_status=$?
3095  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3096  test $ac_status = 0; }; then :
3097  for ac_file in conftest.o conftest.obj conftest.*; do
3098  test -f "$ac_file" || continue;
3099  case $ac_file in
3100    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3101    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3102       break;;
3103  esac
3104done
3105else
3106  $as_echo "$as_me: failed program was:" >&5
3107sed 's/^/| /' conftest.$ac_ext >&5
3108
3109{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3110$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3111as_fn_error $? "cannot compute suffix of object files: cannot compile
3112See \`config.log' for more details" "$LINENO" 5; }
3113fi
3114rm -f conftest.$ac_cv_objext conftest.$ac_ext
3115fi
3116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3117$as_echo "$ac_cv_objext" >&6; }
3118OBJEXT=$ac_cv_objext
3119ac_objext=$OBJEXT
3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3121$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3122if ${ac_cv_c_compiler_gnu+:} false; then :
3123  $as_echo_n "(cached) " >&6
3124else
3125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3126/* end confdefs.h.  */
3127
3128int
3129main ()
3130{
3131#ifndef __GNUC__
3132       choke me
3133#endif
3134
3135  ;
3136  return 0;
3137}
3138_ACEOF
3139if ac_fn_c_try_compile "$LINENO"; then :
3140  ac_compiler_gnu=yes
3141else
3142  ac_compiler_gnu=no
3143fi
3144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3145ac_cv_c_compiler_gnu=$ac_compiler_gnu
3146
3147fi
3148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3149$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3150if test $ac_compiler_gnu = yes; then
3151  GCC=yes
3152else
3153  GCC=
3154fi
3155ac_test_CFLAGS=${CFLAGS+set}
3156ac_save_CFLAGS=$CFLAGS
3157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3158$as_echo_n "checking whether $CC accepts -g... " >&6; }
3159if ${ac_cv_prog_cc_g+:} false; then :
3160  $as_echo_n "(cached) " >&6
3161else
3162  ac_save_c_werror_flag=$ac_c_werror_flag
3163   ac_c_werror_flag=yes
3164   ac_cv_prog_cc_g=no
3165   CFLAGS="-g"
3166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3167/* end confdefs.h.  */
3168
3169int
3170main ()
3171{
3172
3173  ;
3174  return 0;
3175}
3176_ACEOF
3177if ac_fn_c_try_compile "$LINENO"; then :
3178  ac_cv_prog_cc_g=yes
3179else
3180  CFLAGS=""
3181      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3182/* end confdefs.h.  */
3183
3184int
3185main ()
3186{
3187
3188  ;
3189  return 0;
3190}
3191_ACEOF
3192if ac_fn_c_try_compile "$LINENO"; then :
3193
3194else
3195  ac_c_werror_flag=$ac_save_c_werror_flag
3196	 CFLAGS="-g"
3197	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3198/* end confdefs.h.  */
3199
3200int
3201main ()
3202{
3203
3204  ;
3205  return 0;
3206}
3207_ACEOF
3208if ac_fn_c_try_compile "$LINENO"; then :
3209  ac_cv_prog_cc_g=yes
3210fi
3211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3212fi
3213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214fi
3215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216   ac_c_werror_flag=$ac_save_c_werror_flag
3217fi
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3219$as_echo "$ac_cv_prog_cc_g" >&6; }
3220if test "$ac_test_CFLAGS" = set; then
3221  CFLAGS=$ac_save_CFLAGS
3222elif test $ac_cv_prog_cc_g = yes; then
3223  if test "$GCC" = yes; then
3224    CFLAGS="-g -O2"
3225  else
3226    CFLAGS="-g"
3227  fi
3228else
3229  if test "$GCC" = yes; then
3230    CFLAGS="-O2"
3231  else
3232    CFLAGS=
3233  fi
3234fi
3235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3236$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3237if ${ac_cv_prog_cc_c89+:} false; then :
3238  $as_echo_n "(cached) " >&6
3239else
3240  ac_cv_prog_cc_c89=no
3241ac_save_CC=$CC
3242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3243/* end confdefs.h.  */
3244#include <stdarg.h>
3245#include <stdio.h>
3246struct stat;
3247/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3248struct buf { int x; };
3249FILE * (*rcsopen) (struct buf *, struct stat *, int);
3250static char *e (p, i)
3251     char **p;
3252     int i;
3253{
3254  return p[i];
3255}
3256static char *f (char * (*g) (char **, int), char **p, ...)
3257{
3258  char *s;
3259  va_list v;
3260  va_start (v,p);
3261  s = g (p, va_arg (v,int));
3262  va_end (v);
3263  return s;
3264}
3265
3266/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3267   function prototypes and stuff, but not '\xHH' hex character constants.
3268   These don't provoke an error unfortunately, instead are silently treated
3269   as 'x'.  The following induces an error, until -std is added to get
3270   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3271   array size at least.  It's necessary to write '\x00'==0 to get something
3272   that's true only with -std.  */
3273int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3274
3275/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3276   inside strings and character constants.  */
3277#define FOO(x) 'x'
3278int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3279
3280int test (int i, double x);
3281struct s1 {int (*f) (int a);};
3282struct s2 {int (*f) (double a);};
3283int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3284int argc;
3285char **argv;
3286int
3287main ()
3288{
3289return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3290  ;
3291  return 0;
3292}
3293_ACEOF
3294for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3295	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3296do
3297  CC="$ac_save_CC $ac_arg"
3298  if ac_fn_c_try_compile "$LINENO"; then :
3299  ac_cv_prog_cc_c89=$ac_arg
3300fi
3301rm -f core conftest.err conftest.$ac_objext
3302  test "x$ac_cv_prog_cc_c89" != "xno" && break
3303done
3304rm -f conftest.$ac_ext
3305CC=$ac_save_CC
3306
3307fi
3308# AC_CACHE_VAL
3309case "x$ac_cv_prog_cc_c89" in
3310  x)
3311    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3312$as_echo "none needed" >&6; } ;;
3313  xno)
3314    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3315$as_echo "unsupported" >&6; } ;;
3316  *)
3317    CC="$CC $ac_cv_prog_cc_c89"
3318    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3319$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3320esac
3321if test "x$ac_cv_prog_cc_c89" != xno; then :
3322
3323fi
3324
3325ac_ext=c
3326ac_cpp='$CPP $CPPFLAGS'
3327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3329ac_compiler_gnu=$ac_cv_c_compiler_gnu
3330
3331ac_ext=c
3332ac_cpp='$CPP $CPPFLAGS'
3333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3335ac_compiler_gnu=$ac_cv_c_compiler_gnu
3336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3337$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3338if ${am_cv_prog_cc_c_o+:} false; then :
3339  $as_echo_n "(cached) " >&6
3340else
3341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342/* end confdefs.h.  */
3343
3344int
3345main ()
3346{
3347
3348  ;
3349  return 0;
3350}
3351_ACEOF
3352  # Make sure it works both with $CC and with simple cc.
3353  # Following AC_PROG_CC_C_O, we do the test twice because some
3354  # compilers refuse to overwrite an existing .o file with -o,
3355  # though they will create one.
3356  am_cv_prog_cc_c_o=yes
3357  for am_i in 1 2; do
3358    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3359   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3360   ac_status=$?
3361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362   (exit $ac_status); } \
3363         && test -f conftest2.$ac_objext; then
3364      : OK
3365    else
3366      am_cv_prog_cc_c_o=no
3367      break
3368    fi
3369  done
3370  rm -f core conftest*
3371  unset am_i
3372fi
3373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3374$as_echo "$am_cv_prog_cc_c_o" >&6; }
3375if test "$am_cv_prog_cc_c_o" != yes; then
3376   # Losing compiler, so override with the script.
3377   # FIXME: It is wrong to rewrite CC.
3378   # But if we don't then we get into trouble of one sort or another.
3379   # A longer-term fix would be to have automake use am__CC in this case,
3380   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3381   CC="$am_aux_dir/compile $CC"
3382fi
3383ac_ext=c
3384ac_cpp='$CPP $CPPFLAGS'
3385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3387ac_compiler_gnu=$ac_cv_c_compiler_gnu
3388
3389
3390
3391ac_ext=c
3392ac_cpp='$CPP $CPPFLAGS'
3393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3395ac_compiler_gnu=$ac_cv_c_compiler_gnu
3396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3397$as_echo_n "checking how to run the C preprocessor... " >&6; }
3398# On Suns, sometimes $CPP names a directory.
3399if test -n "$CPP" && test -d "$CPP"; then
3400  CPP=
3401fi
3402if test -z "$CPP"; then
3403  if ${ac_cv_prog_CPP+:} false; then :
3404  $as_echo_n "(cached) " >&6
3405else
3406      # Double quotes because CPP needs to be expanded
3407    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3408    do
3409      ac_preproc_ok=false
3410for ac_c_preproc_warn_flag in '' yes
3411do
3412  # Use a header file that comes with gcc, so configuring glibc
3413  # with a fresh cross-compiler works.
3414  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3415  # <limits.h> exists even on freestanding compilers.
3416  # On the NeXT, cc -E runs the code through the compiler's parser,
3417  # not just through cpp. "Syntax error" is here to catch this case.
3418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419/* end confdefs.h.  */
3420#ifdef __STDC__
3421# include <limits.h>
3422#else
3423# include <assert.h>
3424#endif
3425		     Syntax error
3426_ACEOF
3427if ac_fn_c_try_cpp "$LINENO"; then :
3428
3429else
3430  # Broken: fails on valid input.
3431continue
3432fi
3433rm -f conftest.err conftest.i conftest.$ac_ext
3434
3435  # OK, works on sane cases.  Now check whether nonexistent headers
3436  # can be detected and how.
3437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3438/* end confdefs.h.  */
3439#include <ac_nonexistent.h>
3440_ACEOF
3441if ac_fn_c_try_cpp "$LINENO"; then :
3442  # Broken: success on invalid input.
3443continue
3444else
3445  # Passes both tests.
3446ac_preproc_ok=:
3447break
3448fi
3449rm -f conftest.err conftest.i conftest.$ac_ext
3450
3451done
3452# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3453rm -f conftest.i conftest.err conftest.$ac_ext
3454if $ac_preproc_ok; then :
3455  break
3456fi
3457
3458    done
3459    ac_cv_prog_CPP=$CPP
3460
3461fi
3462  CPP=$ac_cv_prog_CPP
3463else
3464  ac_cv_prog_CPP=$CPP
3465fi
3466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3467$as_echo "$CPP" >&6; }
3468ac_preproc_ok=false
3469for ac_c_preproc_warn_flag in '' yes
3470do
3471  # Use a header file that comes with gcc, so configuring glibc
3472  # with a fresh cross-compiler works.
3473  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3474  # <limits.h> exists even on freestanding compilers.
3475  # On the NeXT, cc -E runs the code through the compiler's parser,
3476  # not just through cpp. "Syntax error" is here to catch this case.
3477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478/* end confdefs.h.  */
3479#ifdef __STDC__
3480# include <limits.h>
3481#else
3482# include <assert.h>
3483#endif
3484		     Syntax error
3485_ACEOF
3486if ac_fn_c_try_cpp "$LINENO"; then :
3487
3488else
3489  # Broken: fails on valid input.
3490continue
3491fi
3492rm -f conftest.err conftest.i conftest.$ac_ext
3493
3494  # OK, works on sane cases.  Now check whether nonexistent headers
3495  # can be detected and how.
3496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3497/* end confdefs.h.  */
3498#include <ac_nonexistent.h>
3499_ACEOF
3500if ac_fn_c_try_cpp "$LINENO"; then :
3501  # Broken: success on invalid input.
3502continue
3503else
3504  # Passes both tests.
3505ac_preproc_ok=:
3506break
3507fi
3508rm -f conftest.err conftest.i conftest.$ac_ext
3509
3510done
3511# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3512rm -f conftest.i conftest.err conftest.$ac_ext
3513if $ac_preproc_ok; then :
3514
3515else
3516  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3517$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3519See \`config.log' for more details" "$LINENO" 5; }
3520fi
3521
3522ac_ext=c
3523ac_cpp='$CPP $CPPFLAGS'
3524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3526ac_compiler_gnu=$ac_cv_c_compiler_gnu
3527
3528
3529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3530$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3531if ${ac_cv_path_GREP+:} false; then :
3532  $as_echo_n "(cached) " >&6
3533else
3534  if test -z "$GREP"; then
3535  ac_path_GREP_found=false
3536  # Loop through the user's path and test for each of PROGNAME-LIST
3537  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3539do
3540  IFS=$as_save_IFS
3541  test -z "$as_dir" && as_dir=.
3542    for ac_prog in grep ggrep; do
3543    for ac_exec_ext in '' $ac_executable_extensions; do
3544      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3545      as_fn_executable_p "$ac_path_GREP" || continue
3546# Check for GNU ac_path_GREP and select it if it is found.
3547  # Check for GNU $ac_path_GREP
3548case `"$ac_path_GREP" --version 2>&1` in
3549*GNU*)
3550  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3551*)
3552  ac_count=0
3553  $as_echo_n 0123456789 >"conftest.in"
3554  while :
3555  do
3556    cat "conftest.in" "conftest.in" >"conftest.tmp"
3557    mv "conftest.tmp" "conftest.in"
3558    cp "conftest.in" "conftest.nl"
3559    $as_echo 'GREP' >> "conftest.nl"
3560    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3561    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3562    as_fn_arith $ac_count + 1 && ac_count=$as_val
3563    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3564      # Best one so far, save it but keep looking for a better one
3565      ac_cv_path_GREP="$ac_path_GREP"
3566      ac_path_GREP_max=$ac_count
3567    fi
3568    # 10*(2^10) chars as input seems more than enough
3569    test $ac_count -gt 10 && break
3570  done
3571  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3572esac
3573
3574      $ac_path_GREP_found && break 3
3575    done
3576  done
3577  done
3578IFS=$as_save_IFS
3579  if test -z "$ac_cv_path_GREP"; then
3580    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3581  fi
3582else
3583  ac_cv_path_GREP=$GREP
3584fi
3585
3586fi
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3588$as_echo "$ac_cv_path_GREP" >&6; }
3589 GREP="$ac_cv_path_GREP"
3590
3591
3592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3593$as_echo_n "checking for egrep... " >&6; }
3594if ${ac_cv_path_EGREP+:} false; then :
3595  $as_echo_n "(cached) " >&6
3596else
3597  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3598   then ac_cv_path_EGREP="$GREP -E"
3599   else
3600     if test -z "$EGREP"; then
3601  ac_path_EGREP_found=false
3602  # Loop through the user's path and test for each of PROGNAME-LIST
3603  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3605do
3606  IFS=$as_save_IFS
3607  test -z "$as_dir" && as_dir=.
3608    for ac_prog in egrep; do
3609    for ac_exec_ext in '' $ac_executable_extensions; do
3610      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3611      as_fn_executable_p "$ac_path_EGREP" || continue
3612# Check for GNU ac_path_EGREP and select it if it is found.
3613  # Check for GNU $ac_path_EGREP
3614case `"$ac_path_EGREP" --version 2>&1` in
3615*GNU*)
3616  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3617*)
3618  ac_count=0
3619  $as_echo_n 0123456789 >"conftest.in"
3620  while :
3621  do
3622    cat "conftest.in" "conftest.in" >"conftest.tmp"
3623    mv "conftest.tmp" "conftest.in"
3624    cp "conftest.in" "conftest.nl"
3625    $as_echo 'EGREP' >> "conftest.nl"
3626    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3627    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3628    as_fn_arith $ac_count + 1 && ac_count=$as_val
3629    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3630      # Best one so far, save it but keep looking for a better one
3631      ac_cv_path_EGREP="$ac_path_EGREP"
3632      ac_path_EGREP_max=$ac_count
3633    fi
3634    # 10*(2^10) chars as input seems more than enough
3635    test $ac_count -gt 10 && break
3636  done
3637  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3638esac
3639
3640      $ac_path_EGREP_found && break 3
3641    done
3642  done
3643  done
3644IFS=$as_save_IFS
3645  if test -z "$ac_cv_path_EGREP"; then
3646    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3647  fi
3648else
3649  ac_cv_path_EGREP=$EGREP
3650fi
3651
3652   fi
3653fi
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3655$as_echo "$ac_cv_path_EGREP" >&6; }
3656 EGREP="$ac_cv_path_EGREP"
3657
3658
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3660$as_echo_n "checking for ANSI C header files... " >&6; }
3661if ${ac_cv_header_stdc+:} false; then :
3662  $as_echo_n "(cached) " >&6
3663else
3664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665/* end confdefs.h.  */
3666#include <stdlib.h>
3667#include <stdarg.h>
3668#include <string.h>
3669#include <float.h>
3670
3671int
3672main ()
3673{
3674
3675  ;
3676  return 0;
3677}
3678_ACEOF
3679if ac_fn_c_try_compile "$LINENO"; then :
3680  ac_cv_header_stdc=yes
3681else
3682  ac_cv_header_stdc=no
3683fi
3684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685
3686if test $ac_cv_header_stdc = yes; then
3687  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689/* end confdefs.h.  */
3690#include <string.h>
3691
3692_ACEOF
3693if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3694  $EGREP "memchr" >/dev/null 2>&1; then :
3695
3696else
3697  ac_cv_header_stdc=no
3698fi
3699rm -f conftest*
3700
3701fi
3702
3703if test $ac_cv_header_stdc = yes; then
3704  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706/* end confdefs.h.  */
3707#include <stdlib.h>
3708
3709_ACEOF
3710if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3711  $EGREP "free" >/dev/null 2>&1; then :
3712
3713else
3714  ac_cv_header_stdc=no
3715fi
3716rm -f conftest*
3717
3718fi
3719
3720if test $ac_cv_header_stdc = yes; then
3721  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3722  if test "$cross_compiling" = yes; then :
3723  :
3724else
3725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726/* end confdefs.h.  */
3727#include <ctype.h>
3728#include <stdlib.h>
3729#if ((' ' & 0x0FF) == 0x020)
3730# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3731# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3732#else
3733# define ISLOWER(c) \
3734		   (('a' <= (c) && (c) <= 'i') \
3735		     || ('j' <= (c) && (c) <= 'r') \
3736		     || ('s' <= (c) && (c) <= 'z'))
3737# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3738#endif
3739
3740#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3741int
3742main ()
3743{
3744  int i;
3745  for (i = 0; i < 256; i++)
3746    if (XOR (islower (i), ISLOWER (i))
3747	|| toupper (i) != TOUPPER (i))
3748      return 2;
3749  return 0;
3750}
3751_ACEOF
3752if ac_fn_c_try_run "$LINENO"; then :
3753
3754else
3755  ac_cv_header_stdc=no
3756fi
3757rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3758  conftest.$ac_objext conftest.beam conftest.$ac_ext
3759fi
3760
3761fi
3762fi
3763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3764$as_echo "$ac_cv_header_stdc" >&6; }
3765if test $ac_cv_header_stdc = yes; then
3766
3767$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3768
3769fi
3770
3771# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3772for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3773		  inttypes.h stdint.h unistd.h
3774do :
3775  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3776ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3777"
3778if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3779  cat >>confdefs.h <<_ACEOF
3780#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3781_ACEOF
3782
3783fi
3784
3785done
3786
3787
3788
3789  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3790if test "x$ac_cv_header_minix_config_h" = xyes; then :
3791  MINIX=yes
3792else
3793  MINIX=
3794fi
3795
3796
3797  if test "$MINIX" = yes; then
3798
3799$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3800
3801
3802$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3803
3804
3805$as_echo "#define _MINIX 1" >>confdefs.h
3806
3807  fi
3808
3809
3810  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3811$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3812if ${ac_cv_safe_to_define___extensions__+:} false; then :
3813  $as_echo_n "(cached) " >&6
3814else
3815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816/* end confdefs.h.  */
3817
3818#         define __EXTENSIONS__ 1
3819          $ac_includes_default
3820int
3821main ()
3822{
3823
3824  ;
3825  return 0;
3826}
3827_ACEOF
3828if ac_fn_c_try_compile "$LINENO"; then :
3829  ac_cv_safe_to_define___extensions__=yes
3830else
3831  ac_cv_safe_to_define___extensions__=no
3832fi
3833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834fi
3835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3836$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3837  test $ac_cv_safe_to_define___extensions__ = yes &&
3838    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3839
3840  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3841
3842  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3843
3844  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3845
3846  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3847
3848
3849ac_config_headers="$ac_config_headers config.h"
3850
3851
3852
3853# Initialize Automake
3854am__api_version='1.15'
3855
3856# Find a good install program.  We prefer a C program (faster),
3857# so one script is as good as another.  But avoid the broken or
3858# incompatible versions:
3859# SysV /etc/install, /usr/sbin/install
3860# SunOS /usr/etc/install
3861# IRIX /sbin/install
3862# AIX /bin/install
3863# AmigaOS /C/install, which installs bootblocks on floppy discs
3864# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3865# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3866# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3867# OS/2's system install, which has a completely different semantic
3868# ./install, which can be erroneously created by make from ./install.sh.
3869# Reject install programs that cannot install multiple files.
3870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3871$as_echo_n "checking for a BSD-compatible install... " >&6; }
3872if test -z "$INSTALL"; then
3873if ${ac_cv_path_install+:} false; then :
3874  $as_echo_n "(cached) " >&6
3875else
3876  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877for as_dir in $PATH
3878do
3879  IFS=$as_save_IFS
3880  test -z "$as_dir" && as_dir=.
3881    # Account for people who put trailing slashes in PATH elements.
3882case $as_dir/ in #((
3883  ./ | .// | /[cC]/* | \
3884  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3885  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3886  /usr/ucb/* ) ;;
3887  *)
3888    # OSF1 and SCO ODT 3.0 have their own names for install.
3889    # Don't use installbsd from OSF since it installs stuff as root
3890    # by default.
3891    for ac_prog in ginstall scoinst install; do
3892      for ac_exec_ext in '' $ac_executable_extensions; do
3893	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3894	  if test $ac_prog = install &&
3895	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3896	    # AIX install.  It has an incompatible calling convention.
3897	    :
3898	  elif test $ac_prog = install &&
3899	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3900	    # program-specific install script used by HP pwplus--don't use.
3901	    :
3902	  else
3903	    rm -rf conftest.one conftest.two conftest.dir
3904	    echo one > conftest.one
3905	    echo two > conftest.two
3906	    mkdir conftest.dir
3907	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3908	      test -s conftest.one && test -s conftest.two &&
3909	      test -s conftest.dir/conftest.one &&
3910	      test -s conftest.dir/conftest.two
3911	    then
3912	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3913	      break 3
3914	    fi
3915	  fi
3916	fi
3917      done
3918    done
3919    ;;
3920esac
3921
3922  done
3923IFS=$as_save_IFS
3924
3925rm -rf conftest.one conftest.two conftest.dir
3926
3927fi
3928  if test "${ac_cv_path_install+set}" = set; then
3929    INSTALL=$ac_cv_path_install
3930  else
3931    # As a last resort, use the slow shell script.  Don't cache a
3932    # value for INSTALL within a source directory, because that will
3933    # break other packages using the cache if that directory is
3934    # removed, or if the value is a relative name.
3935    INSTALL=$ac_install_sh
3936  fi
3937fi
3938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3939$as_echo "$INSTALL" >&6; }
3940
3941# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3942# It thinks the first close brace ends the variable substitution.
3943test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3944
3945test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3946
3947test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3948
3949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3950$as_echo_n "checking whether build environment is sane... " >&6; }
3951# Reject unsafe characters in $srcdir or the absolute working directory
3952# name.  Accept space and tab only in the latter.
3953am_lf='
3954'
3955case `pwd` in
3956  *[\\\"\#\$\&\'\`$am_lf]*)
3957    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3958esac
3959case $srcdir in
3960  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3961    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3962esac
3963
3964# Do 'set' in a subshell so we don't clobber the current shell's
3965# arguments.  Must try -L first in case configure is actually a
3966# symlink; some systems play weird games with the mod time of symlinks
3967# (eg FreeBSD returns the mod time of the symlink's containing
3968# directory).
3969if (
3970   am_has_slept=no
3971   for am_try in 1 2; do
3972     echo "timestamp, slept: $am_has_slept" > conftest.file
3973     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3974     if test "$*" = "X"; then
3975	# -L didn't work.
3976	set X `ls -t "$srcdir/configure" conftest.file`
3977     fi
3978     if test "$*" != "X $srcdir/configure conftest.file" \
3979	&& test "$*" != "X conftest.file $srcdir/configure"; then
3980
3981	# If neither matched, then we have a broken ls.  This can happen
3982	# if, for instance, CONFIG_SHELL is bash and it inherits a
3983	# broken ls alias from the environment.  This has actually
3984	# happened.  Such a system could not be considered "sane".
3985	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3986  alias in your environment" "$LINENO" 5
3987     fi
3988     if test "$2" = conftest.file || test $am_try -eq 2; then
3989       break
3990     fi
3991     # Just in case.
3992     sleep 1
3993     am_has_slept=yes
3994   done
3995   test "$2" = conftest.file
3996   )
3997then
3998   # Ok.
3999   :
4000else
4001   as_fn_error $? "newly created file is older than distributed files!
4002Check your system clock" "$LINENO" 5
4003fi
4004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4005$as_echo "yes" >&6; }
4006# If we didn't sleep, we still need to ensure time stamps of config.status and
4007# generated files are strictly newer.
4008am_sleep_pid=
4009if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4010  ( sleep 1 ) &
4011  am_sleep_pid=$!
4012fi
4013
4014rm -f conftest.file
4015
4016test "$program_prefix" != NONE &&
4017  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4018# Use a double $ so make ignores it.
4019test "$program_suffix" != NONE &&
4020  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4021# Double any \ or $.
4022# By default was `s,x,x', remove it if useless.
4023ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4024program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4025
4026if test x"${MISSING+set}" != xset; then
4027  case $am_aux_dir in
4028  *\ * | *\	*)
4029    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4030  *)
4031    MISSING="\${SHELL} $am_aux_dir/missing" ;;
4032  esac
4033fi
4034# Use eval to expand $SHELL
4035if eval "$MISSING --is-lightweight"; then
4036  am_missing_run="$MISSING "
4037else
4038  am_missing_run=
4039  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4040$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4041fi
4042
4043if test x"${install_sh+set}" != xset; then
4044  case $am_aux_dir in
4045  *\ * | *\	*)
4046    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4047  *)
4048    install_sh="\${SHELL} $am_aux_dir/install-sh"
4049  esac
4050fi
4051
4052# Installed binaries are usually stripped using 'strip' when the user
4053# run "make install-strip".  However 'strip' might not be the right
4054# tool to use in cross-compilation environments, therefore Automake
4055# will honor the 'STRIP' environment variable to overrule this program.
4056if test "$cross_compiling" != no; then
4057  if test -n "$ac_tool_prefix"; then
4058  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4059set dummy ${ac_tool_prefix}strip; ac_word=$2
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4061$as_echo_n "checking for $ac_word... " >&6; }
4062if ${ac_cv_prog_STRIP+:} false; then :
4063  $as_echo_n "(cached) " >&6
4064else
4065  if test -n "$STRIP"; then
4066  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4067else
4068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069for as_dir in $PATH
4070do
4071  IFS=$as_save_IFS
4072  test -z "$as_dir" && as_dir=.
4073    for ac_exec_ext in '' $ac_executable_extensions; do
4074  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4075    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4076    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4077    break 2
4078  fi
4079done
4080  done
4081IFS=$as_save_IFS
4082
4083fi
4084fi
4085STRIP=$ac_cv_prog_STRIP
4086if test -n "$STRIP"; then
4087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4088$as_echo "$STRIP" >&6; }
4089else
4090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4091$as_echo "no" >&6; }
4092fi
4093
4094
4095fi
4096if test -z "$ac_cv_prog_STRIP"; then
4097  ac_ct_STRIP=$STRIP
4098  # Extract the first word of "strip", so it can be a program name with args.
4099set dummy strip; ac_word=$2
4100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4101$as_echo_n "checking for $ac_word... " >&6; }
4102if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4103  $as_echo_n "(cached) " >&6
4104else
4105  if test -n "$ac_ct_STRIP"; then
4106  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4107else
4108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109for as_dir in $PATH
4110do
4111  IFS=$as_save_IFS
4112  test -z "$as_dir" && as_dir=.
4113    for ac_exec_ext in '' $ac_executable_extensions; do
4114  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4115    ac_cv_prog_ac_ct_STRIP="strip"
4116    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4117    break 2
4118  fi
4119done
4120  done
4121IFS=$as_save_IFS
4122
4123fi
4124fi
4125ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4126if test -n "$ac_ct_STRIP"; then
4127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4128$as_echo "$ac_ct_STRIP" >&6; }
4129else
4130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4131$as_echo "no" >&6; }
4132fi
4133
4134  if test "x$ac_ct_STRIP" = x; then
4135    STRIP=":"
4136  else
4137    case $cross_compiling:$ac_tool_warned in
4138yes:)
4139{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4140$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4141ac_tool_warned=yes ;;
4142esac
4143    STRIP=$ac_ct_STRIP
4144  fi
4145else
4146  STRIP="$ac_cv_prog_STRIP"
4147fi
4148
4149fi
4150INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4151
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4153$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4154if test -z "$MKDIR_P"; then
4155  if ${ac_cv_path_mkdir+:} false; then :
4156  $as_echo_n "(cached) " >&6
4157else
4158  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4160do
4161  IFS=$as_save_IFS
4162  test -z "$as_dir" && as_dir=.
4163    for ac_prog in mkdir gmkdir; do
4164	 for ac_exec_ext in '' $ac_executable_extensions; do
4165	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4166	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4167	     'mkdir (GNU coreutils) '* | \
4168	     'mkdir (coreutils) '* | \
4169	     'mkdir (fileutils) '4.1*)
4170	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4171	       break 3;;
4172	   esac
4173	 done
4174       done
4175  done
4176IFS=$as_save_IFS
4177
4178fi
4179
4180  test -d ./--version && rmdir ./--version
4181  if test "${ac_cv_path_mkdir+set}" = set; then
4182    MKDIR_P="$ac_cv_path_mkdir -p"
4183  else
4184    # As a last resort, use the slow shell script.  Don't cache a
4185    # value for MKDIR_P within a source directory, because that will
4186    # break other packages using the cache if that directory is
4187    # removed, or if the value is a relative name.
4188    MKDIR_P="$ac_install_sh -d"
4189  fi
4190fi
4191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4192$as_echo "$MKDIR_P" >&6; }
4193
4194for ac_prog in gawk mawk nawk awk
4195do
4196  # Extract the first word of "$ac_prog", so it can be a program name with args.
4197set dummy $ac_prog; ac_word=$2
4198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4199$as_echo_n "checking for $ac_word... " >&6; }
4200if ${ac_cv_prog_AWK+:} false; then :
4201  $as_echo_n "(cached) " >&6
4202else
4203  if test -n "$AWK"; then
4204  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4205else
4206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207for as_dir in $PATH
4208do
4209  IFS=$as_save_IFS
4210  test -z "$as_dir" && as_dir=.
4211    for ac_exec_ext in '' $ac_executable_extensions; do
4212  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4213    ac_cv_prog_AWK="$ac_prog"
4214    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4215    break 2
4216  fi
4217done
4218  done
4219IFS=$as_save_IFS
4220
4221fi
4222fi
4223AWK=$ac_cv_prog_AWK
4224if test -n "$AWK"; then
4225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4226$as_echo "$AWK" >&6; }
4227else
4228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229$as_echo "no" >&6; }
4230fi
4231
4232
4233  test -n "$AWK" && break
4234done
4235
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4237$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4238set x ${MAKE-make}
4239ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4240if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4241  $as_echo_n "(cached) " >&6
4242else
4243  cat >conftest.make <<\_ACEOF
4244SHELL = /bin/sh
4245all:
4246	@echo '@@@%%%=$(MAKE)=@@@%%%'
4247_ACEOF
4248# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4249case `${MAKE-make} -f conftest.make 2>/dev/null` in
4250  *@@@%%%=?*=@@@%%%*)
4251    eval ac_cv_prog_make_${ac_make}_set=yes;;
4252  *)
4253    eval ac_cv_prog_make_${ac_make}_set=no;;
4254esac
4255rm -f conftest.make
4256fi
4257if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4259$as_echo "yes" >&6; }
4260  SET_MAKE=
4261else
4262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4263$as_echo "no" >&6; }
4264  SET_MAKE="MAKE=${MAKE-make}"
4265fi
4266
4267rm -rf .tst 2>/dev/null
4268mkdir .tst 2>/dev/null
4269if test -d .tst; then
4270  am__leading_dot=.
4271else
4272  am__leading_dot=_
4273fi
4274rmdir .tst 2>/dev/null
4275
4276DEPDIR="${am__leading_dot}deps"
4277
4278ac_config_commands="$ac_config_commands depfiles"
4279
4280
4281am_make=${MAKE-make}
4282cat > confinc << 'END'
4283am__doit:
4284	@echo this is the am__doit target
4285.PHONY: am__doit
4286END
4287# If we don't find an include directive, just comment out the code.
4288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4289$as_echo_n "checking for style of include used by $am_make... " >&6; }
4290am__include="#"
4291am__quote=
4292_am_result=none
4293# First try GNU make style include.
4294echo "include confinc" > confmf
4295# Ignore all kinds of additional output from 'make'.
4296case `$am_make -s -f confmf 2> /dev/null` in #(
4297*the\ am__doit\ target*)
4298  am__include=include
4299  am__quote=
4300  _am_result=GNU
4301  ;;
4302esac
4303# Now try BSD make style include.
4304if test "$am__include" = "#"; then
4305   echo '.include "confinc"' > confmf
4306   case `$am_make -s -f confmf 2> /dev/null` in #(
4307   *the\ am__doit\ target*)
4308     am__include=.include
4309     am__quote="\""
4310     _am_result=BSD
4311     ;;
4312   esac
4313fi
4314
4315
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4317$as_echo "$_am_result" >&6; }
4318rm -f confinc confmf
4319
4320# Check whether --enable-dependency-tracking was given.
4321if test "${enable_dependency_tracking+set}" = set; then :
4322  enableval=$enable_dependency_tracking;
4323fi
4324
4325if test "x$enable_dependency_tracking" != xno; then
4326  am_depcomp="$ac_aux_dir/depcomp"
4327  AMDEPBACKSLASH='\'
4328  am__nodep='_no'
4329fi
4330 if test "x$enable_dependency_tracking" != xno; then
4331  AMDEP_TRUE=
4332  AMDEP_FALSE='#'
4333else
4334  AMDEP_TRUE='#'
4335  AMDEP_FALSE=
4336fi
4337
4338
4339# Check whether --enable-silent-rules was given.
4340if test "${enable_silent_rules+set}" = set; then :
4341  enableval=$enable_silent_rules;
4342fi
4343
4344case $enable_silent_rules in # (((
4345  yes) AM_DEFAULT_VERBOSITY=0;;
4346   no) AM_DEFAULT_VERBOSITY=1;;
4347    *) AM_DEFAULT_VERBOSITY=1;;
4348esac
4349am_make=${MAKE-make}
4350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4351$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4352if ${am_cv_make_support_nested_variables+:} false; then :
4353  $as_echo_n "(cached) " >&6
4354else
4355  if $as_echo 'TRUE=$(BAR$(V))
4356BAR0=false
4357BAR1=true
4358V=1
4359am__doit:
4360	@$(TRUE)
4361.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4362  am_cv_make_support_nested_variables=yes
4363else
4364  am_cv_make_support_nested_variables=no
4365fi
4366fi
4367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4368$as_echo "$am_cv_make_support_nested_variables" >&6; }
4369if test $am_cv_make_support_nested_variables = yes; then
4370    AM_V='$(V)'
4371  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4372else
4373  AM_V=$AM_DEFAULT_VERBOSITY
4374  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4375fi
4376AM_BACKSLASH='\'
4377
4378if test "`cd $srcdir && pwd`" != "`pwd`"; then
4379  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4380  # is not polluted with repeated "-I."
4381  am__isrc=' -I$(srcdir)'
4382  # test to see if srcdir already configured
4383  if test -f $srcdir/config.status; then
4384    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4385  fi
4386fi
4387
4388# test whether we have cygpath
4389if test -z "$CYGPATH_W"; then
4390  if (cygpath --version) >/dev/null 2>/dev/null; then
4391    CYGPATH_W='cygpath -w'
4392  else
4393    CYGPATH_W=echo
4394  fi
4395fi
4396
4397
4398# Define the identity of the package.
4399 PACKAGE='xfs'
4400 VERSION='1.2.0'
4401
4402
4403cat >>confdefs.h <<_ACEOF
4404#define PACKAGE "$PACKAGE"
4405_ACEOF
4406
4407
4408cat >>confdefs.h <<_ACEOF
4409#define VERSION "$VERSION"
4410_ACEOF
4411
4412# Some tools Automake needs.
4413
4414ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4415
4416
4417AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4418
4419
4420AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4421
4422
4423AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4424
4425
4426MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4427
4428# For better backward compatibility.  To be removed once Automake 1.9.x
4429# dies out for good.  For more background, see:
4430# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4431# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4432mkdir_p='$(MKDIR_P)'
4433
4434# We need awk for the "check" target (and possibly the TAP driver).  The
4435# system "awk" is bad on some platforms.
4436# Always define AMTAR for backward compatibility.  Yes, it's still used
4437# in the wild :-(  We should find a proper way to deprecate it ...
4438AMTAR='$${TAR-tar}'
4439
4440
4441# We'll loop over all known methods to create a tar archive until one works.
4442_am_tools='gnutar  pax cpio none'
4443
4444am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4445
4446
4447
4448
4449
4450depcc="$CC"   am_compiler_list=
4451
4452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4453$as_echo_n "checking dependency style of $depcc... " >&6; }
4454if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4455  $as_echo_n "(cached) " >&6
4456else
4457  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4458  # We make a subdir and do the tests there.  Otherwise we can end up
4459  # making bogus files that we don't know about and never remove.  For
4460  # instance it was reported that on HP-UX the gcc test will end up
4461  # making a dummy file named 'D' -- because '-MD' means "put the output
4462  # in D".
4463  rm -rf conftest.dir
4464  mkdir conftest.dir
4465  # Copy depcomp to subdir because otherwise we won't find it if we're
4466  # using a relative directory.
4467  cp "$am_depcomp" conftest.dir
4468  cd conftest.dir
4469  # We will build objects and dependencies in a subdirectory because
4470  # it helps to detect inapplicable dependency modes.  For instance
4471  # both Tru64's cc and ICC support -MD to output dependencies as a
4472  # side effect of compilation, but ICC will put the dependencies in
4473  # the current directory while Tru64 will put them in the object
4474  # directory.
4475  mkdir sub
4476
4477  am_cv_CC_dependencies_compiler_type=none
4478  if test "$am_compiler_list" = ""; then
4479     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4480  fi
4481  am__universal=false
4482  case " $depcc " in #(
4483     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4484     esac
4485
4486  for depmode in $am_compiler_list; do
4487    # Setup a source with many dependencies, because some compilers
4488    # like to wrap large dependency lists on column 80 (with \), and
4489    # we should not choose a depcomp mode which is confused by this.
4490    #
4491    # We need to recreate these files for each test, as the compiler may
4492    # overwrite some of them when testing with obscure command lines.
4493    # This happens at least with the AIX C compiler.
4494    : > sub/conftest.c
4495    for i in 1 2 3 4 5 6; do
4496      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4497      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4498      # Solaris 10 /bin/sh.
4499      echo '/* dummy */' > sub/conftst$i.h
4500    done
4501    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4502
4503    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4504    # mode.  It turns out that the SunPro C++ compiler does not properly
4505    # handle '-M -o', and we need to detect this.  Also, some Intel
4506    # versions had trouble with output in subdirs.
4507    am__obj=sub/conftest.${OBJEXT-o}
4508    am__minus_obj="-o $am__obj"
4509    case $depmode in
4510    gcc)
4511      # This depmode causes a compiler race in universal mode.
4512      test "$am__universal" = false || continue
4513      ;;
4514    nosideeffect)
4515      # After this tag, mechanisms are not by side-effect, so they'll
4516      # only be used when explicitly requested.
4517      if test "x$enable_dependency_tracking" = xyes; then
4518	continue
4519      else
4520	break
4521      fi
4522      ;;
4523    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4524      # This compiler won't grok '-c -o', but also, the minuso test has
4525      # not run yet.  These depmodes are late enough in the game, and
4526      # so weak that their functioning should not be impacted.
4527      am__obj=conftest.${OBJEXT-o}
4528      am__minus_obj=
4529      ;;
4530    none) break ;;
4531    esac
4532    if depmode=$depmode \
4533       source=sub/conftest.c object=$am__obj \
4534       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4535       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4536         >/dev/null 2>conftest.err &&
4537       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4538       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4539       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4540       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4541      # icc doesn't choke on unknown options, it will just issue warnings
4542      # or remarks (even with -Werror).  So we grep stderr for any message
4543      # that says an option was ignored or not supported.
4544      # When given -MP, icc 7.0 and 7.1 complain thusly:
4545      #   icc: Command line warning: ignoring option '-M'; no argument required
4546      # The diagnosis changed in icc 8.0:
4547      #   icc: Command line remark: option '-MP' not supported
4548      if (grep 'ignoring option' conftest.err ||
4549          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4550        am_cv_CC_dependencies_compiler_type=$depmode
4551        break
4552      fi
4553    fi
4554  done
4555
4556  cd ..
4557  rm -rf conftest.dir
4558else
4559  am_cv_CC_dependencies_compiler_type=none
4560fi
4561
4562fi
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4564$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4565CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4566
4567 if
4568  test "x$enable_dependency_tracking" != xno \
4569  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4570  am__fastdepCC_TRUE=
4571  am__fastdepCC_FALSE='#'
4572else
4573  am__fastdepCC_TRUE='#'
4574  am__fastdepCC_FALSE=
4575fi
4576
4577
4578
4579# POSIX will say in a future version that running "rm -f" with no argument
4580# is OK; and we want to be able to make that assumption in our Makefile
4581# recipes.  So use an aggressive probe to check that the usage we want is
4582# actually supported "in the wild" to an acceptable degree.
4583# See automake bug#10828.
4584# To make any issue more visible, cause the running configure to be aborted
4585# by default if the 'rm' program in use doesn't match our expectations; the
4586# user can still override this though.
4587if rm -f && rm -fr && rm -rf; then : OK; else
4588  cat >&2 <<'END'
4589Oops!
4590
4591Your 'rm' program seems unable to run without file operands specified
4592on the command line, even when the '-f' option is present.  This is contrary
4593to the behaviour of most rm programs out there, and not conforming with
4594the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4595
4596Please tell bug-automake@gnu.org about your system, including the value
4597of your $PATH and any error possibly output before this message.  This
4598can help us improve future automake versions.
4599
4600END
4601  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4602    echo 'Configuration will proceed anyway, since you have set the' >&2
4603    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4604    echo >&2
4605  else
4606    cat >&2 <<'END'
4607Aborting the configuration process, to ensure you take notice of the issue.
4608
4609You can download and install GNU coreutils to get an 'rm' implementation
4610that behaves properly: <http://www.gnu.org/software/coreutils/>.
4611
4612If you want to complete the configuration process using your problematic
4613'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4614to "yes", and re-run configure.
4615
4616END
4617    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4618  fi
4619fi
4620
4621
4622# Require xorg-macros minimum of 1.10 for HAVE_STYLESHEETS in XORG_CHECK_SGML_DOCTOOLS
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4635$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4636if ${ac_cv_prog_cc_c99+:} false; then :
4637  $as_echo_n "(cached) " >&6
4638else
4639  ac_cv_prog_cc_c99=no
4640ac_save_CC=$CC
4641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642/* end confdefs.h.  */
4643#include <stdarg.h>
4644#include <stdbool.h>
4645#include <stdlib.h>
4646#include <wchar.h>
4647#include <stdio.h>
4648
4649// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4650#define debug(...) fprintf (stderr, __VA_ARGS__)
4651#define showlist(...) puts (#__VA_ARGS__)
4652#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4653static void
4654test_varargs_macros (void)
4655{
4656  int x = 1234;
4657  int y = 5678;
4658  debug ("Flag");
4659  debug ("X = %d\n", x);
4660  showlist (The first, second, and third items.);
4661  report (x>y, "x is %d but y is %d", x, y);
4662}
4663
4664// Check long long types.
4665#define BIG64 18446744073709551615ull
4666#define BIG32 4294967295ul
4667#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4668#if !BIG_OK
4669  your preprocessor is broken;
4670#endif
4671#if BIG_OK
4672#else
4673  your preprocessor is broken;
4674#endif
4675static long long int bignum = -9223372036854775807LL;
4676static unsigned long long int ubignum = BIG64;
4677
4678struct incomplete_array
4679{
4680  int datasize;
4681  double data[];
4682};
4683
4684struct named_init {
4685  int number;
4686  const wchar_t *name;
4687  double average;
4688};
4689
4690typedef const char *ccp;
4691
4692static inline int
4693test_restrict (ccp restrict text)
4694{
4695  // See if C++-style comments work.
4696  // Iterate through items via the restricted pointer.
4697  // Also check for declarations in for loops.
4698  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4699    continue;
4700  return 0;
4701}
4702
4703// Check varargs and va_copy.
4704static void
4705test_varargs (const char *format, ...)
4706{
4707  va_list args;
4708  va_start (args, format);
4709  va_list args_copy;
4710  va_copy (args_copy, args);
4711
4712  const char *str;
4713  int number;
4714  float fnumber;
4715
4716  while (*format)
4717    {
4718      switch (*format++)
4719	{
4720	case 's': // string
4721	  str = va_arg (args_copy, const char *);
4722	  break;
4723	case 'd': // int
4724	  number = va_arg (args_copy, int);
4725	  break;
4726	case 'f': // float
4727	  fnumber = va_arg (args_copy, double);
4728	  break;
4729	default:
4730	  break;
4731	}
4732    }
4733  va_end (args_copy);
4734  va_end (args);
4735}
4736
4737int
4738main ()
4739{
4740
4741  // Check bool.
4742  _Bool success = false;
4743
4744  // Check restrict.
4745  if (test_restrict ("String literal") == 0)
4746    success = true;
4747  char *restrict newvar = "Another string";
4748
4749  // Check varargs.
4750  test_varargs ("s, d' f .", "string", 65, 34.234);
4751  test_varargs_macros ();
4752
4753  // Check flexible array members.
4754  struct incomplete_array *ia =
4755    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4756  ia->datasize = 10;
4757  for (int i = 0; i < ia->datasize; ++i)
4758    ia->data[i] = i * 1.234;
4759
4760  // Check named initializers.
4761  struct named_init ni = {
4762    .number = 34,
4763    .name = L"Test wide string",
4764    .average = 543.34343,
4765  };
4766
4767  ni.number = 58;
4768
4769  int dynamic_array[ni.number];
4770  dynamic_array[ni.number - 1] = 543;
4771
4772  // work around unused variable warnings
4773  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4774	  || dynamic_array[ni.number - 1] != 543);
4775
4776  ;
4777  return 0;
4778}
4779_ACEOF
4780for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4781do
4782  CC="$ac_save_CC $ac_arg"
4783  if ac_fn_c_try_compile "$LINENO"; then :
4784  ac_cv_prog_cc_c99=$ac_arg
4785fi
4786rm -f core conftest.err conftest.$ac_objext
4787  test "x$ac_cv_prog_cc_c99" != "xno" && break
4788done
4789rm -f conftest.$ac_ext
4790CC=$ac_save_CC
4791
4792fi
4793# AC_CACHE_VAL
4794case "x$ac_cv_prog_cc_c99" in
4795  x)
4796    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4797$as_echo "none needed" >&6; } ;;
4798  xno)
4799    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4800$as_echo "unsupported" >&6; } ;;
4801  *)
4802    CC="$CC $ac_cv_prog_cc_c99"
4803    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4804$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4805esac
4806if test "x$ac_cv_prog_cc_c99" != xno; then :
4807
4808fi
4809
4810
4811
4812
4813
4814
4815ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4816if test "x$ac_cv_have_decl___clang__" = xyes; then :
4817  CLANGCC="yes"
4818else
4819  CLANGCC="no"
4820fi
4821
4822ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4823if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4824  INTELCC="yes"
4825else
4826  INTELCC="no"
4827fi
4828
4829ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4830if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4831  SUNCC="yes"
4832else
4833  SUNCC="no"
4834fi
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4845	if test -n "$ac_tool_prefix"; then
4846  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4847set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4849$as_echo_n "checking for $ac_word... " >&6; }
4850if ${ac_cv_path_PKG_CONFIG+:} false; then :
4851  $as_echo_n "(cached) " >&6
4852else
4853  case $PKG_CONFIG in
4854  [\\/]* | ?:[\\/]*)
4855  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4856  ;;
4857  *)
4858  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859for as_dir in $PATH
4860do
4861  IFS=$as_save_IFS
4862  test -z "$as_dir" && as_dir=.
4863    for ac_exec_ext in '' $ac_executable_extensions; do
4864  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4865    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4866    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4867    break 2
4868  fi
4869done
4870  done
4871IFS=$as_save_IFS
4872
4873  ;;
4874esac
4875fi
4876PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4877if test -n "$PKG_CONFIG"; then
4878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4879$as_echo "$PKG_CONFIG" >&6; }
4880else
4881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882$as_echo "no" >&6; }
4883fi
4884
4885
4886fi
4887if test -z "$ac_cv_path_PKG_CONFIG"; then
4888  ac_pt_PKG_CONFIG=$PKG_CONFIG
4889  # Extract the first word of "pkg-config", so it can be a program name with args.
4890set dummy pkg-config; ac_word=$2
4891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4892$as_echo_n "checking for $ac_word... " >&6; }
4893if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4894  $as_echo_n "(cached) " >&6
4895else
4896  case $ac_pt_PKG_CONFIG in
4897  [\\/]* | ?:[\\/]*)
4898  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4899  ;;
4900  *)
4901  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902for as_dir in $PATH
4903do
4904  IFS=$as_save_IFS
4905  test -z "$as_dir" && as_dir=.
4906    for ac_exec_ext in '' $ac_executable_extensions; do
4907  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4908    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4910    break 2
4911  fi
4912done
4913  done
4914IFS=$as_save_IFS
4915
4916  ;;
4917esac
4918fi
4919ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4920if test -n "$ac_pt_PKG_CONFIG"; then
4921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4922$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4923else
4924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925$as_echo "no" >&6; }
4926fi
4927
4928  if test "x$ac_pt_PKG_CONFIG" = x; then
4929    PKG_CONFIG=""
4930  else
4931    case $cross_compiling:$ac_tool_warned in
4932yes:)
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4934$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4935ac_tool_warned=yes ;;
4936esac
4937    PKG_CONFIG=$ac_pt_PKG_CONFIG
4938  fi
4939else
4940  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4941fi
4942
4943fi
4944if test -n "$PKG_CONFIG"; then
4945	_pkg_min_version=0.9.0
4946	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4947$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4948	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4949		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4950$as_echo "yes" >&6; }
4951	else
4952		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4953$as_echo "no" >&6; }
4954		PKG_CONFIG=""
4955	fi
4956fi
4957# Make sure we can run config.sub.
4958$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4959  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4960
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4962$as_echo_n "checking build system type... " >&6; }
4963if ${ac_cv_build+:} false; then :
4964  $as_echo_n "(cached) " >&6
4965else
4966  ac_build_alias=$build_alias
4967test "x$ac_build_alias" = x &&
4968  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4969test "x$ac_build_alias" = x &&
4970  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4971ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4972  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4973
4974fi
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4976$as_echo "$ac_cv_build" >&6; }
4977case $ac_cv_build in
4978*-*-*) ;;
4979*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4980esac
4981build=$ac_cv_build
4982ac_save_IFS=$IFS; IFS='-'
4983set x $ac_cv_build
4984shift
4985build_cpu=$1
4986build_vendor=$2
4987shift; shift
4988# Remember, the first character of IFS is used to create $*,
4989# except with old shells:
4990build_os=$*
4991IFS=$ac_save_IFS
4992case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4993
4994
4995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4996$as_echo_n "checking host system type... " >&6; }
4997if ${ac_cv_host+:} false; then :
4998  $as_echo_n "(cached) " >&6
4999else
5000  if test "x$host_alias" = x; then
5001  ac_cv_host=$ac_cv_build
5002else
5003  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5004    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5005fi
5006
5007fi
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5009$as_echo "$ac_cv_host" >&6; }
5010case $ac_cv_host in
5011*-*-*) ;;
5012*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5013esac
5014host=$ac_cv_host
5015ac_save_IFS=$IFS; IFS='-'
5016set x $ac_cv_host
5017shift
5018host_cpu=$1
5019host_vendor=$2
5020shift; shift
5021# Remember, the first character of IFS is used to create $*,
5022# except with old shells:
5023host_os=$*
5024IFS=$ac_save_IFS
5025case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5026
5027
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5029$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5030if ${ac_cv_path_SED+:} false; then :
5031  $as_echo_n "(cached) " >&6
5032else
5033            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5034     for ac_i in 1 2 3 4 5 6 7; do
5035       ac_script="$ac_script$as_nl$ac_script"
5036     done
5037     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5038     { ac_script=; unset ac_script;}
5039     if test -z "$SED"; then
5040  ac_path_SED_found=false
5041  # Loop through the user's path and test for each of PROGNAME-LIST
5042  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043for as_dir in $PATH
5044do
5045  IFS=$as_save_IFS
5046  test -z "$as_dir" && as_dir=.
5047    for ac_prog in sed gsed; do
5048    for ac_exec_ext in '' $ac_executable_extensions; do
5049      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5050      as_fn_executable_p "$ac_path_SED" || continue
5051# Check for GNU ac_path_SED and select it if it is found.
5052  # Check for GNU $ac_path_SED
5053case `"$ac_path_SED" --version 2>&1` in
5054*GNU*)
5055  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5056*)
5057  ac_count=0
5058  $as_echo_n 0123456789 >"conftest.in"
5059  while :
5060  do
5061    cat "conftest.in" "conftest.in" >"conftest.tmp"
5062    mv "conftest.tmp" "conftest.in"
5063    cp "conftest.in" "conftest.nl"
5064    $as_echo '' >> "conftest.nl"
5065    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5066    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5067    as_fn_arith $ac_count + 1 && ac_count=$as_val
5068    if test $ac_count -gt ${ac_path_SED_max-0}; then
5069      # Best one so far, save it but keep looking for a better one
5070      ac_cv_path_SED="$ac_path_SED"
5071      ac_path_SED_max=$ac_count
5072    fi
5073    # 10*(2^10) chars as input seems more than enough
5074    test $ac_count -gt 10 && break
5075  done
5076  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5077esac
5078
5079      $ac_path_SED_found && break 3
5080    done
5081  done
5082  done
5083IFS=$as_save_IFS
5084  if test -z "$ac_cv_path_SED"; then
5085    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5086  fi
5087else
5088  ac_cv_path_SED=$SED
5089fi
5090
5091fi
5092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5093$as_echo "$ac_cv_path_SED" >&6; }
5094 SED="$ac_cv_path_SED"
5095  rm -f conftest.sed
5096
5097
5098
5099
5100
5101
5102# Check whether --enable-selective-werror was given.
5103if test "${enable_selective_werror+set}" = set; then :
5104  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5105else
5106  SELECTIVE_WERROR=yes
5107fi
5108
5109
5110
5111
5112
5113# -v is too short to test reliably with XORG_TESTSET_CFLAG
5114if test "x$SUNCC" = "xyes"; then
5115    BASE_CFLAGS="-v"
5116else
5117    BASE_CFLAGS=""
5118fi
5119
5120# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134xorg_testset_save_CFLAGS="$CFLAGS"
5135
5136if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5137	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5138	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5139$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5140if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5141  $as_echo_n "(cached) " >&6
5142else
5143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144/* end confdefs.h.  */
5145int i;
5146_ACEOF
5147if ac_fn_c_try_compile "$LINENO"; then :
5148  xorg_cv_cc_flag_unknown_warning_option=yes
5149else
5150  xorg_cv_cc_flag_unknown_warning_option=no
5151fi
5152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5153fi
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5155$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5156	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5157	CFLAGS="$xorg_testset_save_CFLAGS"
5158fi
5159
5160if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5161	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5162		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5163	fi
5164	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5165	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5166$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5167if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5168  $as_echo_n "(cached) " >&6
5169else
5170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171/* end confdefs.h.  */
5172int i;
5173_ACEOF
5174if ac_fn_c_try_compile "$LINENO"; then :
5175  xorg_cv_cc_flag_unused_command_line_argument=yes
5176else
5177  xorg_cv_cc_flag_unused_command_line_argument=no
5178fi
5179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5180fi
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5182$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5183	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5184	CFLAGS="$xorg_testset_save_CFLAGS"
5185fi
5186
5187found="no"
5188
5189	if test $found = "no" ; then
5190		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5191			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5192		fi
5193
5194		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5195			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5196		fi
5197
5198		CFLAGS="$CFLAGS -Wall"
5199
5200		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5201$as_echo_n "checking if $CC supports -Wall... " >&6; }
5202		cacheid=xorg_cv_cc_flag__Wall
5203		if eval \${$cacheid+:} false; then :
5204  $as_echo_n "(cached) " >&6
5205else
5206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207/* end confdefs.h.  */
5208int i;
5209int
5210main ()
5211{
5212
5213  ;
5214  return 0;
5215}
5216_ACEOF
5217if ac_fn_c_try_link "$LINENO"; then :
5218  eval $cacheid=yes
5219else
5220  eval $cacheid=no
5221fi
5222rm -f core conftest.err conftest.$ac_objext \
5223    conftest$ac_exeext conftest.$ac_ext
5224fi
5225
5226
5227		CFLAGS="$xorg_testset_save_CFLAGS"
5228
5229		eval supported=\$$cacheid
5230		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5231$as_echo "$supported" >&6; }
5232		if test "$supported" = "yes" ; then
5233			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5234			found="yes"
5235		fi
5236	fi
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252xorg_testset_save_CFLAGS="$CFLAGS"
5253
5254if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5255	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5256	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5257$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5258if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5259  $as_echo_n "(cached) " >&6
5260else
5261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262/* end confdefs.h.  */
5263int i;
5264_ACEOF
5265if ac_fn_c_try_compile "$LINENO"; then :
5266  xorg_cv_cc_flag_unknown_warning_option=yes
5267else
5268  xorg_cv_cc_flag_unknown_warning_option=no
5269fi
5270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5271fi
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5273$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5274	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5275	CFLAGS="$xorg_testset_save_CFLAGS"
5276fi
5277
5278if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5279	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5280		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5281	fi
5282	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5283	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5284$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5285if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5286  $as_echo_n "(cached) " >&6
5287else
5288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289/* end confdefs.h.  */
5290int i;
5291_ACEOF
5292if ac_fn_c_try_compile "$LINENO"; then :
5293  xorg_cv_cc_flag_unused_command_line_argument=yes
5294else
5295  xorg_cv_cc_flag_unused_command_line_argument=no
5296fi
5297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5298fi
5299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5300$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5301	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5302	CFLAGS="$xorg_testset_save_CFLAGS"
5303fi
5304
5305found="no"
5306
5307	if test $found = "no" ; then
5308		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5309			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5310		fi
5311
5312		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5313			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5314		fi
5315
5316		CFLAGS="$CFLAGS -Wpointer-arith"
5317
5318		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5319$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5320		cacheid=xorg_cv_cc_flag__Wpointer_arith
5321		if eval \${$cacheid+:} false; then :
5322  $as_echo_n "(cached) " >&6
5323else
5324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325/* end confdefs.h.  */
5326int i;
5327int
5328main ()
5329{
5330
5331  ;
5332  return 0;
5333}
5334_ACEOF
5335if ac_fn_c_try_link "$LINENO"; then :
5336  eval $cacheid=yes
5337else
5338  eval $cacheid=no
5339fi
5340rm -f core conftest.err conftest.$ac_objext \
5341    conftest$ac_exeext conftest.$ac_ext
5342fi
5343
5344
5345		CFLAGS="$xorg_testset_save_CFLAGS"
5346
5347		eval supported=\$$cacheid
5348		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5349$as_echo "$supported" >&6; }
5350		if test "$supported" = "yes" ; then
5351			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5352			found="yes"
5353		fi
5354	fi
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370xorg_testset_save_CFLAGS="$CFLAGS"
5371
5372if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5373	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5374	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5375$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5376if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5377  $as_echo_n "(cached) " >&6
5378else
5379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380/* end confdefs.h.  */
5381int i;
5382_ACEOF
5383if ac_fn_c_try_compile "$LINENO"; then :
5384  xorg_cv_cc_flag_unknown_warning_option=yes
5385else
5386  xorg_cv_cc_flag_unknown_warning_option=no
5387fi
5388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389fi
5390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5391$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5392	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5393	CFLAGS="$xorg_testset_save_CFLAGS"
5394fi
5395
5396if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5397	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5398		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5399	fi
5400	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5401	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5402$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5403if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5404  $as_echo_n "(cached) " >&6
5405else
5406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407/* end confdefs.h.  */
5408int i;
5409_ACEOF
5410if ac_fn_c_try_compile "$LINENO"; then :
5411  xorg_cv_cc_flag_unused_command_line_argument=yes
5412else
5413  xorg_cv_cc_flag_unused_command_line_argument=no
5414fi
5415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5416fi
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5418$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5419	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5420	CFLAGS="$xorg_testset_save_CFLAGS"
5421fi
5422
5423found="no"
5424
5425	if test $found = "no" ; then
5426		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5427			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5428		fi
5429
5430		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5431			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5432		fi
5433
5434		CFLAGS="$CFLAGS -Wmissing-declarations"
5435
5436		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5437$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5438		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5439		if eval \${$cacheid+:} false; then :
5440  $as_echo_n "(cached) " >&6
5441else
5442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443/* end confdefs.h.  */
5444int i;
5445int
5446main ()
5447{
5448
5449  ;
5450  return 0;
5451}
5452_ACEOF
5453if ac_fn_c_try_link "$LINENO"; then :
5454  eval $cacheid=yes
5455else
5456  eval $cacheid=no
5457fi
5458rm -f core conftest.err conftest.$ac_objext \
5459    conftest$ac_exeext conftest.$ac_ext
5460fi
5461
5462
5463		CFLAGS="$xorg_testset_save_CFLAGS"
5464
5465		eval supported=\$$cacheid
5466		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5467$as_echo "$supported" >&6; }
5468		if test "$supported" = "yes" ; then
5469			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5470			found="yes"
5471		fi
5472	fi
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488xorg_testset_save_CFLAGS="$CFLAGS"
5489
5490if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5491	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5492	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5493$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5494if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5495  $as_echo_n "(cached) " >&6
5496else
5497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498/* end confdefs.h.  */
5499int i;
5500_ACEOF
5501if ac_fn_c_try_compile "$LINENO"; then :
5502  xorg_cv_cc_flag_unknown_warning_option=yes
5503else
5504  xorg_cv_cc_flag_unknown_warning_option=no
5505fi
5506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5507fi
5508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5509$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5510	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5511	CFLAGS="$xorg_testset_save_CFLAGS"
5512fi
5513
5514if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5515	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5516		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5517	fi
5518	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5519	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5520$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5521if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5522  $as_echo_n "(cached) " >&6
5523else
5524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525/* end confdefs.h.  */
5526int i;
5527_ACEOF
5528if ac_fn_c_try_compile "$LINENO"; then :
5529  xorg_cv_cc_flag_unused_command_line_argument=yes
5530else
5531  xorg_cv_cc_flag_unused_command_line_argument=no
5532fi
5533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534fi
5535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5536$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5537	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5538	CFLAGS="$xorg_testset_save_CFLAGS"
5539fi
5540
5541found="no"
5542
5543	if test $found = "no" ; then
5544		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5545			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5546		fi
5547
5548		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5549			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5550		fi
5551
5552		CFLAGS="$CFLAGS -Wformat=2"
5553
5554		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5555$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5556		cacheid=xorg_cv_cc_flag__Wformat_2
5557		if eval \${$cacheid+:} false; then :
5558  $as_echo_n "(cached) " >&6
5559else
5560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561/* end confdefs.h.  */
5562int i;
5563int
5564main ()
5565{
5566
5567  ;
5568  return 0;
5569}
5570_ACEOF
5571if ac_fn_c_try_link "$LINENO"; then :
5572  eval $cacheid=yes
5573else
5574  eval $cacheid=no
5575fi
5576rm -f core conftest.err conftest.$ac_objext \
5577    conftest$ac_exeext conftest.$ac_ext
5578fi
5579
5580
5581		CFLAGS="$xorg_testset_save_CFLAGS"
5582
5583		eval supported=\$$cacheid
5584		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5585$as_echo "$supported" >&6; }
5586		if test "$supported" = "yes" ; then
5587			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5588			found="yes"
5589		fi
5590	fi
5591
5592	if test $found = "no" ; then
5593		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5594			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5595		fi
5596
5597		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5598			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5599		fi
5600
5601		CFLAGS="$CFLAGS -Wformat"
5602
5603		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5604$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5605		cacheid=xorg_cv_cc_flag__Wformat
5606		if eval \${$cacheid+:} false; then :
5607  $as_echo_n "(cached) " >&6
5608else
5609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610/* end confdefs.h.  */
5611int i;
5612int
5613main ()
5614{
5615
5616  ;
5617  return 0;
5618}
5619_ACEOF
5620if ac_fn_c_try_link "$LINENO"; then :
5621  eval $cacheid=yes
5622else
5623  eval $cacheid=no
5624fi
5625rm -f core conftest.err conftest.$ac_objext \
5626    conftest$ac_exeext conftest.$ac_ext
5627fi
5628
5629
5630		CFLAGS="$xorg_testset_save_CFLAGS"
5631
5632		eval supported=\$$cacheid
5633		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5634$as_echo "$supported" >&6; }
5635		if test "$supported" = "yes" ; then
5636			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5637			found="yes"
5638		fi
5639	fi
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657xorg_testset_save_CFLAGS="$CFLAGS"
5658
5659if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5660	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5661	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5662$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5663if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5664  $as_echo_n "(cached) " >&6
5665else
5666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667/* end confdefs.h.  */
5668int i;
5669_ACEOF
5670if ac_fn_c_try_compile "$LINENO"; then :
5671  xorg_cv_cc_flag_unknown_warning_option=yes
5672else
5673  xorg_cv_cc_flag_unknown_warning_option=no
5674fi
5675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5676fi
5677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5678$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5679	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5680	CFLAGS="$xorg_testset_save_CFLAGS"
5681fi
5682
5683if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5684	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5685		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5686	fi
5687	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5688	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5689$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5690if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5691  $as_echo_n "(cached) " >&6
5692else
5693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694/* end confdefs.h.  */
5695int i;
5696_ACEOF
5697if ac_fn_c_try_compile "$LINENO"; then :
5698  xorg_cv_cc_flag_unused_command_line_argument=yes
5699else
5700  xorg_cv_cc_flag_unused_command_line_argument=no
5701fi
5702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5703fi
5704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5705$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5706	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5707	CFLAGS="$xorg_testset_save_CFLAGS"
5708fi
5709
5710found="no"
5711
5712	if test $found = "no" ; then
5713		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5714			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5715		fi
5716
5717		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5718			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5719		fi
5720
5721		CFLAGS="$CFLAGS -Wstrict-prototypes"
5722
5723		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5724$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5725		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5726		if eval \${$cacheid+:} false; then :
5727  $as_echo_n "(cached) " >&6
5728else
5729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730/* end confdefs.h.  */
5731int i;
5732int
5733main ()
5734{
5735
5736  ;
5737  return 0;
5738}
5739_ACEOF
5740if ac_fn_c_try_link "$LINENO"; then :
5741  eval $cacheid=yes
5742else
5743  eval $cacheid=no
5744fi
5745rm -f core conftest.err conftest.$ac_objext \
5746    conftest$ac_exeext conftest.$ac_ext
5747fi
5748
5749
5750		CFLAGS="$xorg_testset_save_CFLAGS"
5751
5752		eval supported=\$$cacheid
5753		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5754$as_echo "$supported" >&6; }
5755		if test "$supported" = "yes" ; then
5756			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5757			found="yes"
5758		fi
5759	fi
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775xorg_testset_save_CFLAGS="$CFLAGS"
5776
5777if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5778	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5779	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5780$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5781if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5782  $as_echo_n "(cached) " >&6
5783else
5784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5785/* end confdefs.h.  */
5786int i;
5787_ACEOF
5788if ac_fn_c_try_compile "$LINENO"; then :
5789  xorg_cv_cc_flag_unknown_warning_option=yes
5790else
5791  xorg_cv_cc_flag_unknown_warning_option=no
5792fi
5793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5794fi
5795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5796$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5797	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5798	CFLAGS="$xorg_testset_save_CFLAGS"
5799fi
5800
5801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5802	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5803		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5804	fi
5805	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5806	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5807$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5808if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5809  $as_echo_n "(cached) " >&6
5810else
5811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5812/* end confdefs.h.  */
5813int i;
5814_ACEOF
5815if ac_fn_c_try_compile "$LINENO"; then :
5816  xorg_cv_cc_flag_unused_command_line_argument=yes
5817else
5818  xorg_cv_cc_flag_unused_command_line_argument=no
5819fi
5820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5821fi
5822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5823$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5824	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5825	CFLAGS="$xorg_testset_save_CFLAGS"
5826fi
5827
5828found="no"
5829
5830	if test $found = "no" ; then
5831		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5832			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5833		fi
5834
5835		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5836			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5837		fi
5838
5839		CFLAGS="$CFLAGS -Wmissing-prototypes"
5840
5841		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5842$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5843		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5844		if eval \${$cacheid+:} false; then :
5845  $as_echo_n "(cached) " >&6
5846else
5847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5848/* end confdefs.h.  */
5849int i;
5850int
5851main ()
5852{
5853
5854  ;
5855  return 0;
5856}
5857_ACEOF
5858if ac_fn_c_try_link "$LINENO"; then :
5859  eval $cacheid=yes
5860else
5861  eval $cacheid=no
5862fi
5863rm -f core conftest.err conftest.$ac_objext \
5864    conftest$ac_exeext conftest.$ac_ext
5865fi
5866
5867
5868		CFLAGS="$xorg_testset_save_CFLAGS"
5869
5870		eval supported=\$$cacheid
5871		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5872$as_echo "$supported" >&6; }
5873		if test "$supported" = "yes" ; then
5874			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5875			found="yes"
5876		fi
5877	fi
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893xorg_testset_save_CFLAGS="$CFLAGS"
5894
5895if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5896	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5897	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5898$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5899if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5900  $as_echo_n "(cached) " >&6
5901else
5902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903/* end confdefs.h.  */
5904int i;
5905_ACEOF
5906if ac_fn_c_try_compile "$LINENO"; then :
5907  xorg_cv_cc_flag_unknown_warning_option=yes
5908else
5909  xorg_cv_cc_flag_unknown_warning_option=no
5910fi
5911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5912fi
5913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5914$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5915	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5916	CFLAGS="$xorg_testset_save_CFLAGS"
5917fi
5918
5919if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5920	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5921		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5922	fi
5923	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5924	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5925$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5926if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5927  $as_echo_n "(cached) " >&6
5928else
5929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930/* end confdefs.h.  */
5931int i;
5932_ACEOF
5933if ac_fn_c_try_compile "$LINENO"; then :
5934  xorg_cv_cc_flag_unused_command_line_argument=yes
5935else
5936  xorg_cv_cc_flag_unused_command_line_argument=no
5937fi
5938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5939fi
5940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5941$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5942	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5943	CFLAGS="$xorg_testset_save_CFLAGS"
5944fi
5945
5946found="no"
5947
5948	if test $found = "no" ; then
5949		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5950			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5951		fi
5952
5953		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5954			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5955		fi
5956
5957		CFLAGS="$CFLAGS -Wnested-externs"
5958
5959		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5960$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5961		cacheid=xorg_cv_cc_flag__Wnested_externs
5962		if eval \${$cacheid+:} false; then :
5963  $as_echo_n "(cached) " >&6
5964else
5965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966/* end confdefs.h.  */
5967int i;
5968int
5969main ()
5970{
5971
5972  ;
5973  return 0;
5974}
5975_ACEOF
5976if ac_fn_c_try_link "$LINENO"; then :
5977  eval $cacheid=yes
5978else
5979  eval $cacheid=no
5980fi
5981rm -f core conftest.err conftest.$ac_objext \
5982    conftest$ac_exeext conftest.$ac_ext
5983fi
5984
5985
5986		CFLAGS="$xorg_testset_save_CFLAGS"
5987
5988		eval supported=\$$cacheid
5989		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5990$as_echo "$supported" >&6; }
5991		if test "$supported" = "yes" ; then
5992			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5993			found="yes"
5994		fi
5995	fi
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011xorg_testset_save_CFLAGS="$CFLAGS"
6012
6013if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6014	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6015	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6016$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6017if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6018  $as_echo_n "(cached) " >&6
6019else
6020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6021/* end confdefs.h.  */
6022int i;
6023_ACEOF
6024if ac_fn_c_try_compile "$LINENO"; then :
6025  xorg_cv_cc_flag_unknown_warning_option=yes
6026else
6027  xorg_cv_cc_flag_unknown_warning_option=no
6028fi
6029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6030fi
6031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6032$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6033	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6034	CFLAGS="$xorg_testset_save_CFLAGS"
6035fi
6036
6037if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6038	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6039		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6040	fi
6041	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6042	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6043$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6044if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6045  $as_echo_n "(cached) " >&6
6046else
6047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6048/* end confdefs.h.  */
6049int i;
6050_ACEOF
6051if ac_fn_c_try_compile "$LINENO"; then :
6052  xorg_cv_cc_flag_unused_command_line_argument=yes
6053else
6054  xorg_cv_cc_flag_unused_command_line_argument=no
6055fi
6056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057fi
6058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6059$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6060	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6061	CFLAGS="$xorg_testset_save_CFLAGS"
6062fi
6063
6064found="no"
6065
6066	if test $found = "no" ; then
6067		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6068			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6069		fi
6070
6071		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6072			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6073		fi
6074
6075		CFLAGS="$CFLAGS -Wbad-function-cast"
6076
6077		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6078$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
6079		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6080		if eval \${$cacheid+:} false; then :
6081  $as_echo_n "(cached) " >&6
6082else
6083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084/* end confdefs.h.  */
6085int i;
6086int
6087main ()
6088{
6089
6090  ;
6091  return 0;
6092}
6093_ACEOF
6094if ac_fn_c_try_link "$LINENO"; then :
6095  eval $cacheid=yes
6096else
6097  eval $cacheid=no
6098fi
6099rm -f core conftest.err conftest.$ac_objext \
6100    conftest$ac_exeext conftest.$ac_ext
6101fi
6102
6103
6104		CFLAGS="$xorg_testset_save_CFLAGS"
6105
6106		eval supported=\$$cacheid
6107		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6108$as_echo "$supported" >&6; }
6109		if test "$supported" = "yes" ; then
6110			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6111			found="yes"
6112		fi
6113	fi
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129xorg_testset_save_CFLAGS="$CFLAGS"
6130
6131if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6132	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6133	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6134$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6135if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6136  $as_echo_n "(cached) " >&6
6137else
6138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6139/* end confdefs.h.  */
6140int i;
6141_ACEOF
6142if ac_fn_c_try_compile "$LINENO"; then :
6143  xorg_cv_cc_flag_unknown_warning_option=yes
6144else
6145  xorg_cv_cc_flag_unknown_warning_option=no
6146fi
6147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6148fi
6149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6150$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6151	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6152	CFLAGS="$xorg_testset_save_CFLAGS"
6153fi
6154
6155if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6156	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6157		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6158	fi
6159	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6160	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6161$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6162if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6163  $as_echo_n "(cached) " >&6
6164else
6165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6166/* end confdefs.h.  */
6167int i;
6168_ACEOF
6169if ac_fn_c_try_compile "$LINENO"; then :
6170  xorg_cv_cc_flag_unused_command_line_argument=yes
6171else
6172  xorg_cv_cc_flag_unused_command_line_argument=no
6173fi
6174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175fi
6176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6177$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6178	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6179	CFLAGS="$xorg_testset_save_CFLAGS"
6180fi
6181
6182found="no"
6183
6184	if test $found = "no" ; then
6185		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6186			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6187		fi
6188
6189		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6190			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6191		fi
6192
6193		CFLAGS="$CFLAGS -Wold-style-definition"
6194
6195		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6196$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
6197		cacheid=xorg_cv_cc_flag__Wold_style_definition
6198		if eval \${$cacheid+:} false; then :
6199  $as_echo_n "(cached) " >&6
6200else
6201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6202/* end confdefs.h.  */
6203int i;
6204int
6205main ()
6206{
6207
6208  ;
6209  return 0;
6210}
6211_ACEOF
6212if ac_fn_c_try_link "$LINENO"; then :
6213  eval $cacheid=yes
6214else
6215  eval $cacheid=no
6216fi
6217rm -f core conftest.err conftest.$ac_objext \
6218    conftest$ac_exeext conftest.$ac_ext
6219fi
6220
6221
6222		CFLAGS="$xorg_testset_save_CFLAGS"
6223
6224		eval supported=\$$cacheid
6225		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6226$as_echo "$supported" >&6; }
6227		if test "$supported" = "yes" ; then
6228			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6229			found="yes"
6230		fi
6231	fi
6232
6233	if test $found = "no" ; then
6234		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6235			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6236		fi
6237
6238		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6239			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6240		fi
6241
6242		CFLAGS="$CFLAGS -fd"
6243
6244		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6245$as_echo_n "checking if $CC supports -fd... " >&6; }
6246		cacheid=xorg_cv_cc_flag__fd
6247		if eval \${$cacheid+:} false; then :
6248  $as_echo_n "(cached) " >&6
6249else
6250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6251/* end confdefs.h.  */
6252int i;
6253int
6254main ()
6255{
6256
6257  ;
6258  return 0;
6259}
6260_ACEOF
6261if ac_fn_c_try_link "$LINENO"; then :
6262  eval $cacheid=yes
6263else
6264  eval $cacheid=no
6265fi
6266rm -f core conftest.err conftest.$ac_objext \
6267    conftest$ac_exeext conftest.$ac_ext
6268fi
6269
6270
6271		CFLAGS="$xorg_testset_save_CFLAGS"
6272
6273		eval supported=\$$cacheid
6274		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6275$as_echo "$supported" >&6; }
6276		if test "$supported" = "yes" ; then
6277			BASE_CFLAGS="$BASE_CFLAGS -fd"
6278			found="yes"
6279		fi
6280	fi
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296xorg_testset_save_CFLAGS="$CFLAGS"
6297
6298if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6299	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6300	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6301$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6302if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6303  $as_echo_n "(cached) " >&6
6304else
6305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6306/* end confdefs.h.  */
6307int i;
6308_ACEOF
6309if ac_fn_c_try_compile "$LINENO"; then :
6310  xorg_cv_cc_flag_unknown_warning_option=yes
6311else
6312  xorg_cv_cc_flag_unknown_warning_option=no
6313fi
6314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6315fi
6316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6317$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6318	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6319	CFLAGS="$xorg_testset_save_CFLAGS"
6320fi
6321
6322if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6323	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6324		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6325	fi
6326	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6327	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6328$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6329if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6330  $as_echo_n "(cached) " >&6
6331else
6332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333/* end confdefs.h.  */
6334int i;
6335_ACEOF
6336if ac_fn_c_try_compile "$LINENO"; then :
6337  xorg_cv_cc_flag_unused_command_line_argument=yes
6338else
6339  xorg_cv_cc_flag_unused_command_line_argument=no
6340fi
6341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6342fi
6343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6344$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6345	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6346	CFLAGS="$xorg_testset_save_CFLAGS"
6347fi
6348
6349found="no"
6350
6351	if test $found = "no" ; then
6352		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6353			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6354		fi
6355
6356		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6357			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6358		fi
6359
6360		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6361
6362		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6363$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6364		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6365		if eval \${$cacheid+:} false; then :
6366  $as_echo_n "(cached) " >&6
6367else
6368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6369/* end confdefs.h.  */
6370int i;
6371int
6372main ()
6373{
6374
6375  ;
6376  return 0;
6377}
6378_ACEOF
6379if ac_fn_c_try_link "$LINENO"; then :
6380  eval $cacheid=yes
6381else
6382  eval $cacheid=no
6383fi
6384rm -f core conftest.err conftest.$ac_objext \
6385    conftest$ac_exeext conftest.$ac_ext
6386fi
6387
6388
6389		CFLAGS="$xorg_testset_save_CFLAGS"
6390
6391		eval supported=\$$cacheid
6392		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6393$as_echo "$supported" >&6; }
6394		if test "$supported" = "yes" ; then
6395			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6396			found="yes"
6397		fi
6398	fi
6399
6400
6401
6402
6403
6404# This chunk adds additional warnings that could catch undesired effects.
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418xorg_testset_save_CFLAGS="$CFLAGS"
6419
6420if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6421	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6422	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6423$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6424if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6425  $as_echo_n "(cached) " >&6
6426else
6427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6428/* end confdefs.h.  */
6429int i;
6430_ACEOF
6431if ac_fn_c_try_compile "$LINENO"; then :
6432  xorg_cv_cc_flag_unknown_warning_option=yes
6433else
6434  xorg_cv_cc_flag_unknown_warning_option=no
6435fi
6436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6437fi
6438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6439$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6440	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6441	CFLAGS="$xorg_testset_save_CFLAGS"
6442fi
6443
6444if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6445	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6446		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6447	fi
6448	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6449	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6450$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6451if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6452  $as_echo_n "(cached) " >&6
6453else
6454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455/* end confdefs.h.  */
6456int i;
6457_ACEOF
6458if ac_fn_c_try_compile "$LINENO"; then :
6459  xorg_cv_cc_flag_unused_command_line_argument=yes
6460else
6461  xorg_cv_cc_flag_unused_command_line_argument=no
6462fi
6463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6464fi
6465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6466$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6467	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6468	CFLAGS="$xorg_testset_save_CFLAGS"
6469fi
6470
6471found="no"
6472
6473	if test $found = "no" ; then
6474		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6475			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6476		fi
6477
6478		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6479			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6480		fi
6481
6482		CFLAGS="$CFLAGS -Wunused"
6483
6484		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6485$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6486		cacheid=xorg_cv_cc_flag__Wunused
6487		if eval \${$cacheid+:} false; then :
6488  $as_echo_n "(cached) " >&6
6489else
6490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491/* end confdefs.h.  */
6492int i;
6493int
6494main ()
6495{
6496
6497  ;
6498  return 0;
6499}
6500_ACEOF
6501if ac_fn_c_try_link "$LINENO"; then :
6502  eval $cacheid=yes
6503else
6504  eval $cacheid=no
6505fi
6506rm -f core conftest.err conftest.$ac_objext \
6507    conftest$ac_exeext conftest.$ac_ext
6508fi
6509
6510
6511		CFLAGS="$xorg_testset_save_CFLAGS"
6512
6513		eval supported=\$$cacheid
6514		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6515$as_echo "$supported" >&6; }
6516		if test "$supported" = "yes" ; then
6517			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6518			found="yes"
6519		fi
6520	fi
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536xorg_testset_save_CFLAGS="$CFLAGS"
6537
6538if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6539	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6540	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6541$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6542if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6543  $as_echo_n "(cached) " >&6
6544else
6545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546/* end confdefs.h.  */
6547int i;
6548_ACEOF
6549if ac_fn_c_try_compile "$LINENO"; then :
6550  xorg_cv_cc_flag_unknown_warning_option=yes
6551else
6552  xorg_cv_cc_flag_unknown_warning_option=no
6553fi
6554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6555fi
6556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6557$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6558	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6559	CFLAGS="$xorg_testset_save_CFLAGS"
6560fi
6561
6562if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6563	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6564		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6565	fi
6566	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6567	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6568$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6569if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6570  $as_echo_n "(cached) " >&6
6571else
6572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573/* end confdefs.h.  */
6574int i;
6575_ACEOF
6576if ac_fn_c_try_compile "$LINENO"; then :
6577  xorg_cv_cc_flag_unused_command_line_argument=yes
6578else
6579  xorg_cv_cc_flag_unused_command_line_argument=no
6580fi
6581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582fi
6583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6584$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6585	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6586	CFLAGS="$xorg_testset_save_CFLAGS"
6587fi
6588
6589found="no"
6590
6591	if test $found = "no" ; then
6592		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6593			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6594		fi
6595
6596		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6597			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6598		fi
6599
6600		CFLAGS="$CFLAGS -Wuninitialized"
6601
6602		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6603$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6604		cacheid=xorg_cv_cc_flag__Wuninitialized
6605		if eval \${$cacheid+:} false; then :
6606  $as_echo_n "(cached) " >&6
6607else
6608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609/* end confdefs.h.  */
6610int i;
6611int
6612main ()
6613{
6614
6615  ;
6616  return 0;
6617}
6618_ACEOF
6619if ac_fn_c_try_link "$LINENO"; then :
6620  eval $cacheid=yes
6621else
6622  eval $cacheid=no
6623fi
6624rm -f core conftest.err conftest.$ac_objext \
6625    conftest$ac_exeext conftest.$ac_ext
6626fi
6627
6628
6629		CFLAGS="$xorg_testset_save_CFLAGS"
6630
6631		eval supported=\$$cacheid
6632		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6633$as_echo "$supported" >&6; }
6634		if test "$supported" = "yes" ; then
6635			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6636			found="yes"
6637		fi
6638	fi
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654xorg_testset_save_CFLAGS="$CFLAGS"
6655
6656if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6657	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6658	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6659$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6660if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6661  $as_echo_n "(cached) " >&6
6662else
6663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664/* end confdefs.h.  */
6665int i;
6666_ACEOF
6667if ac_fn_c_try_compile "$LINENO"; then :
6668  xorg_cv_cc_flag_unknown_warning_option=yes
6669else
6670  xorg_cv_cc_flag_unknown_warning_option=no
6671fi
6672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673fi
6674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6675$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6676	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6677	CFLAGS="$xorg_testset_save_CFLAGS"
6678fi
6679
6680if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6681	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6682		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6683	fi
6684	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6685	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6686$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6687if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6688  $as_echo_n "(cached) " >&6
6689else
6690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691/* end confdefs.h.  */
6692int i;
6693_ACEOF
6694if ac_fn_c_try_compile "$LINENO"; then :
6695  xorg_cv_cc_flag_unused_command_line_argument=yes
6696else
6697  xorg_cv_cc_flag_unused_command_line_argument=no
6698fi
6699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6700fi
6701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6702$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6703	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6704	CFLAGS="$xorg_testset_save_CFLAGS"
6705fi
6706
6707found="no"
6708
6709	if test $found = "no" ; then
6710		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6711			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6712		fi
6713
6714		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6715			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6716		fi
6717
6718		CFLAGS="$CFLAGS -Wshadow"
6719
6720		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6721$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6722		cacheid=xorg_cv_cc_flag__Wshadow
6723		if eval \${$cacheid+:} false; then :
6724  $as_echo_n "(cached) " >&6
6725else
6726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727/* end confdefs.h.  */
6728int i;
6729int
6730main ()
6731{
6732
6733  ;
6734  return 0;
6735}
6736_ACEOF
6737if ac_fn_c_try_link "$LINENO"; then :
6738  eval $cacheid=yes
6739else
6740  eval $cacheid=no
6741fi
6742rm -f core conftest.err conftest.$ac_objext \
6743    conftest$ac_exeext conftest.$ac_ext
6744fi
6745
6746
6747		CFLAGS="$xorg_testset_save_CFLAGS"
6748
6749		eval supported=\$$cacheid
6750		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6751$as_echo "$supported" >&6; }
6752		if test "$supported" = "yes" ; then
6753			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6754			found="yes"
6755		fi
6756	fi
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772xorg_testset_save_CFLAGS="$CFLAGS"
6773
6774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6775	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6776	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6777$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6778if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6779  $as_echo_n "(cached) " >&6
6780else
6781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6782/* end confdefs.h.  */
6783int i;
6784_ACEOF
6785if ac_fn_c_try_compile "$LINENO"; then :
6786  xorg_cv_cc_flag_unknown_warning_option=yes
6787else
6788  xorg_cv_cc_flag_unknown_warning_option=no
6789fi
6790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6791fi
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6793$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6794	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6795	CFLAGS="$xorg_testset_save_CFLAGS"
6796fi
6797
6798if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6799	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6800		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6801	fi
6802	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6803	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6804$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6805if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6806  $as_echo_n "(cached) " >&6
6807else
6808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809/* end confdefs.h.  */
6810int i;
6811_ACEOF
6812if ac_fn_c_try_compile "$LINENO"; then :
6813  xorg_cv_cc_flag_unused_command_line_argument=yes
6814else
6815  xorg_cv_cc_flag_unused_command_line_argument=no
6816fi
6817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6818fi
6819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6820$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6821	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6822	CFLAGS="$xorg_testset_save_CFLAGS"
6823fi
6824
6825found="no"
6826
6827	if test $found = "no" ; then
6828		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6829			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6830		fi
6831
6832		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6833			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6834		fi
6835
6836		CFLAGS="$CFLAGS -Wmissing-noreturn"
6837
6838		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6839$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6840		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6841		if eval \${$cacheid+:} false; then :
6842  $as_echo_n "(cached) " >&6
6843else
6844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845/* end confdefs.h.  */
6846int i;
6847int
6848main ()
6849{
6850
6851  ;
6852  return 0;
6853}
6854_ACEOF
6855if ac_fn_c_try_link "$LINENO"; then :
6856  eval $cacheid=yes
6857else
6858  eval $cacheid=no
6859fi
6860rm -f core conftest.err conftest.$ac_objext \
6861    conftest$ac_exeext conftest.$ac_ext
6862fi
6863
6864
6865		CFLAGS="$xorg_testset_save_CFLAGS"
6866
6867		eval supported=\$$cacheid
6868		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6869$as_echo "$supported" >&6; }
6870		if test "$supported" = "yes" ; then
6871			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6872			found="yes"
6873		fi
6874	fi
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890xorg_testset_save_CFLAGS="$CFLAGS"
6891
6892if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6893	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6894	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6895$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6896if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6897  $as_echo_n "(cached) " >&6
6898else
6899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900/* end confdefs.h.  */
6901int i;
6902_ACEOF
6903if ac_fn_c_try_compile "$LINENO"; then :
6904  xorg_cv_cc_flag_unknown_warning_option=yes
6905else
6906  xorg_cv_cc_flag_unknown_warning_option=no
6907fi
6908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6909fi
6910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6911$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6912	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6913	CFLAGS="$xorg_testset_save_CFLAGS"
6914fi
6915
6916if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6917	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6918		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6919	fi
6920	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6921	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6922$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6923if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6924  $as_echo_n "(cached) " >&6
6925else
6926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927/* end confdefs.h.  */
6928int i;
6929_ACEOF
6930if ac_fn_c_try_compile "$LINENO"; then :
6931  xorg_cv_cc_flag_unused_command_line_argument=yes
6932else
6933  xorg_cv_cc_flag_unused_command_line_argument=no
6934fi
6935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6936fi
6937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6938$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6939	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6940	CFLAGS="$xorg_testset_save_CFLAGS"
6941fi
6942
6943found="no"
6944
6945	if test $found = "no" ; then
6946		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6947			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6948		fi
6949
6950		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6951			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6952		fi
6953
6954		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6955
6956		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6957$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6958		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6959		if eval \${$cacheid+:} false; then :
6960  $as_echo_n "(cached) " >&6
6961else
6962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963/* end confdefs.h.  */
6964int i;
6965int
6966main ()
6967{
6968
6969  ;
6970  return 0;
6971}
6972_ACEOF
6973if ac_fn_c_try_link "$LINENO"; then :
6974  eval $cacheid=yes
6975else
6976  eval $cacheid=no
6977fi
6978rm -f core conftest.err conftest.$ac_objext \
6979    conftest$ac_exeext conftest.$ac_ext
6980fi
6981
6982
6983		CFLAGS="$xorg_testset_save_CFLAGS"
6984
6985		eval supported=\$$cacheid
6986		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6987$as_echo "$supported" >&6; }
6988		if test "$supported" = "yes" ; then
6989			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6990			found="yes"
6991		fi
6992	fi
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008xorg_testset_save_CFLAGS="$CFLAGS"
7009
7010if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7011	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7012	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7013$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7014if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7015  $as_echo_n "(cached) " >&6
7016else
7017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018/* end confdefs.h.  */
7019int i;
7020_ACEOF
7021if ac_fn_c_try_compile "$LINENO"; then :
7022  xorg_cv_cc_flag_unknown_warning_option=yes
7023else
7024  xorg_cv_cc_flag_unknown_warning_option=no
7025fi
7026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7027fi
7028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7029$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7030	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7031	CFLAGS="$xorg_testset_save_CFLAGS"
7032fi
7033
7034if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7035	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7036		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7037	fi
7038	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7039	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7040$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7041if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7042  $as_echo_n "(cached) " >&6
7043else
7044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045/* end confdefs.h.  */
7046int i;
7047_ACEOF
7048if ac_fn_c_try_compile "$LINENO"; then :
7049  xorg_cv_cc_flag_unused_command_line_argument=yes
7050else
7051  xorg_cv_cc_flag_unused_command_line_argument=no
7052fi
7053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7054fi
7055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7056$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7057	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7058	CFLAGS="$xorg_testset_save_CFLAGS"
7059fi
7060
7061found="no"
7062
7063	if test $found = "no" ; then
7064		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7065			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7066		fi
7067
7068		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7069			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7070		fi
7071
7072		CFLAGS="$CFLAGS -Wredundant-decls"
7073
7074		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7075$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
7076		cacheid=xorg_cv_cc_flag__Wredundant_decls
7077		if eval \${$cacheid+:} false; then :
7078  $as_echo_n "(cached) " >&6
7079else
7080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081/* end confdefs.h.  */
7082int i;
7083int
7084main ()
7085{
7086
7087  ;
7088  return 0;
7089}
7090_ACEOF
7091if ac_fn_c_try_link "$LINENO"; then :
7092  eval $cacheid=yes
7093else
7094  eval $cacheid=no
7095fi
7096rm -f core conftest.err conftest.$ac_objext \
7097    conftest$ac_exeext conftest.$ac_ext
7098fi
7099
7100
7101		CFLAGS="$xorg_testset_save_CFLAGS"
7102
7103		eval supported=\$$cacheid
7104		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7105$as_echo "$supported" >&6; }
7106		if test "$supported" = "yes" ; then
7107			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7108			found="yes"
7109		fi
7110	fi
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126xorg_testset_save_CFLAGS="$CFLAGS"
7127
7128if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7129	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7130	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7131$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7132if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7133  $as_echo_n "(cached) " >&6
7134else
7135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136/* end confdefs.h.  */
7137int i;
7138_ACEOF
7139if ac_fn_c_try_compile "$LINENO"; then :
7140  xorg_cv_cc_flag_unknown_warning_option=yes
7141else
7142  xorg_cv_cc_flag_unknown_warning_option=no
7143fi
7144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7145fi
7146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7147$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7148	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7149	CFLAGS="$xorg_testset_save_CFLAGS"
7150fi
7151
7152if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7153	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7154		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7155	fi
7156	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7157	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7158$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7159if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7160  $as_echo_n "(cached) " >&6
7161else
7162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163/* end confdefs.h.  */
7164int i;
7165_ACEOF
7166if ac_fn_c_try_compile "$LINENO"; then :
7167  xorg_cv_cc_flag_unused_command_line_argument=yes
7168else
7169  xorg_cv_cc_flag_unused_command_line_argument=no
7170fi
7171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7172fi
7173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7174$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7175	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7176	CFLAGS="$xorg_testset_save_CFLAGS"
7177fi
7178
7179found="no"
7180
7181	if test $found = "no" ; then
7182		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7183			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7184		fi
7185
7186		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7187			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7188		fi
7189
7190		CFLAGS="$CFLAGS -Wlogical-op"
7191
7192		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7193$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
7194		cacheid=xorg_cv_cc_flag__Wlogical_op
7195		if eval \${$cacheid+:} false; then :
7196  $as_echo_n "(cached) " >&6
7197else
7198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199/* end confdefs.h.  */
7200int i;
7201int
7202main ()
7203{
7204
7205  ;
7206  return 0;
7207}
7208_ACEOF
7209if ac_fn_c_try_link "$LINENO"; then :
7210  eval $cacheid=yes
7211else
7212  eval $cacheid=no
7213fi
7214rm -f core conftest.err conftest.$ac_objext \
7215    conftest$ac_exeext conftest.$ac_ext
7216fi
7217
7218
7219		CFLAGS="$xorg_testset_save_CFLAGS"
7220
7221		eval supported=\$$cacheid
7222		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7223$as_echo "$supported" >&6; }
7224		if test "$supported" = "yes" ; then
7225			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7226			found="yes"
7227		fi
7228	fi
7229
7230
7231
7232# These are currently disabled because they are noisy.  They will be enabled
7233# in the future once the codebase is sufficiently modernized to silence
7234# them.  For now, I don't want them to drown out the other warnings.
7235# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7236# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7237# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7238
7239# Turn some warnings into errors, so we don't accidently get successful builds
7240# when there are problems that should be fixed.
7241
7242if test "x$SELECTIVE_WERROR" = "xyes" ; then
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256xorg_testset_save_CFLAGS="$CFLAGS"
7257
7258if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7259	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7260	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7261$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7262if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7263  $as_echo_n "(cached) " >&6
7264else
7265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266/* end confdefs.h.  */
7267int i;
7268_ACEOF
7269if ac_fn_c_try_compile "$LINENO"; then :
7270  xorg_cv_cc_flag_unknown_warning_option=yes
7271else
7272  xorg_cv_cc_flag_unknown_warning_option=no
7273fi
7274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7275fi
7276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7277$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7278	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7279	CFLAGS="$xorg_testset_save_CFLAGS"
7280fi
7281
7282if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7283	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7284		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7285	fi
7286	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7287	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7288$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7289if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7290  $as_echo_n "(cached) " >&6
7291else
7292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293/* end confdefs.h.  */
7294int i;
7295_ACEOF
7296if ac_fn_c_try_compile "$LINENO"; then :
7297  xorg_cv_cc_flag_unused_command_line_argument=yes
7298else
7299  xorg_cv_cc_flag_unused_command_line_argument=no
7300fi
7301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7302fi
7303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7304$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7305	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7306	CFLAGS="$xorg_testset_save_CFLAGS"
7307fi
7308
7309found="no"
7310
7311	if test $found = "no" ; then
7312		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7313			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7314		fi
7315
7316		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7317			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7318		fi
7319
7320		CFLAGS="$CFLAGS -Werror=implicit"
7321
7322		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7323$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7324		cacheid=xorg_cv_cc_flag__Werror_implicit
7325		if eval \${$cacheid+:} false; then :
7326  $as_echo_n "(cached) " >&6
7327else
7328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329/* end confdefs.h.  */
7330int i;
7331int
7332main ()
7333{
7334
7335  ;
7336  return 0;
7337}
7338_ACEOF
7339if ac_fn_c_try_link "$LINENO"; then :
7340  eval $cacheid=yes
7341else
7342  eval $cacheid=no
7343fi
7344rm -f core conftest.err conftest.$ac_objext \
7345    conftest$ac_exeext conftest.$ac_ext
7346fi
7347
7348
7349		CFLAGS="$xorg_testset_save_CFLAGS"
7350
7351		eval supported=\$$cacheid
7352		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7353$as_echo "$supported" >&6; }
7354		if test "$supported" = "yes" ; then
7355			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7356			found="yes"
7357		fi
7358	fi
7359
7360	if test $found = "no" ; then
7361		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7362			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7363		fi
7364
7365		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7366			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7367		fi
7368
7369		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7370
7371		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7372$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7373		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7374		if eval \${$cacheid+:} false; then :
7375  $as_echo_n "(cached) " >&6
7376else
7377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378/* end confdefs.h.  */
7379int i;
7380int
7381main ()
7382{
7383
7384  ;
7385  return 0;
7386}
7387_ACEOF
7388if ac_fn_c_try_link "$LINENO"; then :
7389  eval $cacheid=yes
7390else
7391  eval $cacheid=no
7392fi
7393rm -f core conftest.err conftest.$ac_objext \
7394    conftest$ac_exeext conftest.$ac_ext
7395fi
7396
7397
7398		CFLAGS="$xorg_testset_save_CFLAGS"
7399
7400		eval supported=\$$cacheid
7401		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7402$as_echo "$supported" >&6; }
7403		if test "$supported" = "yes" ; then
7404			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7405			found="yes"
7406		fi
7407	fi
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423xorg_testset_save_CFLAGS="$CFLAGS"
7424
7425if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7426	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7427	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7428$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7429if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7430  $as_echo_n "(cached) " >&6
7431else
7432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433/* end confdefs.h.  */
7434int i;
7435_ACEOF
7436if ac_fn_c_try_compile "$LINENO"; then :
7437  xorg_cv_cc_flag_unknown_warning_option=yes
7438else
7439  xorg_cv_cc_flag_unknown_warning_option=no
7440fi
7441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442fi
7443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7444$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7445	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7446	CFLAGS="$xorg_testset_save_CFLAGS"
7447fi
7448
7449if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7450	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7451		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7452	fi
7453	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7454	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7455$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7456if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7457  $as_echo_n "(cached) " >&6
7458else
7459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460/* end confdefs.h.  */
7461int i;
7462_ACEOF
7463if ac_fn_c_try_compile "$LINENO"; then :
7464  xorg_cv_cc_flag_unused_command_line_argument=yes
7465else
7466  xorg_cv_cc_flag_unused_command_line_argument=no
7467fi
7468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7469fi
7470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7471$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7472	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7473	CFLAGS="$xorg_testset_save_CFLAGS"
7474fi
7475
7476found="no"
7477
7478	if test $found = "no" ; then
7479		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7480			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7481		fi
7482
7483		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7484			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7485		fi
7486
7487		CFLAGS="$CFLAGS -Werror=nonnull"
7488
7489		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7490$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7491		cacheid=xorg_cv_cc_flag__Werror_nonnull
7492		if eval \${$cacheid+:} false; then :
7493  $as_echo_n "(cached) " >&6
7494else
7495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496/* end confdefs.h.  */
7497int i;
7498int
7499main ()
7500{
7501
7502  ;
7503  return 0;
7504}
7505_ACEOF
7506if ac_fn_c_try_link "$LINENO"; then :
7507  eval $cacheid=yes
7508else
7509  eval $cacheid=no
7510fi
7511rm -f core conftest.err conftest.$ac_objext \
7512    conftest$ac_exeext conftest.$ac_ext
7513fi
7514
7515
7516		CFLAGS="$xorg_testset_save_CFLAGS"
7517
7518		eval supported=\$$cacheid
7519		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7520$as_echo "$supported" >&6; }
7521		if test "$supported" = "yes" ; then
7522			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7523			found="yes"
7524		fi
7525	fi
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541xorg_testset_save_CFLAGS="$CFLAGS"
7542
7543if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7544	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7545	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7546$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7547if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7548  $as_echo_n "(cached) " >&6
7549else
7550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7551/* end confdefs.h.  */
7552int i;
7553_ACEOF
7554if ac_fn_c_try_compile "$LINENO"; then :
7555  xorg_cv_cc_flag_unknown_warning_option=yes
7556else
7557  xorg_cv_cc_flag_unknown_warning_option=no
7558fi
7559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7560fi
7561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7562$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7563	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7564	CFLAGS="$xorg_testset_save_CFLAGS"
7565fi
7566
7567if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7568	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7569		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7570	fi
7571	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7572	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7573$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7574if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7575  $as_echo_n "(cached) " >&6
7576else
7577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578/* end confdefs.h.  */
7579int i;
7580_ACEOF
7581if ac_fn_c_try_compile "$LINENO"; then :
7582  xorg_cv_cc_flag_unused_command_line_argument=yes
7583else
7584  xorg_cv_cc_flag_unused_command_line_argument=no
7585fi
7586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7587fi
7588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7589$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7590	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7591	CFLAGS="$xorg_testset_save_CFLAGS"
7592fi
7593
7594found="no"
7595
7596	if test $found = "no" ; then
7597		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7598			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7599		fi
7600
7601		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7602			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7603		fi
7604
7605		CFLAGS="$CFLAGS -Werror=init-self"
7606
7607		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7608$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7609		cacheid=xorg_cv_cc_flag__Werror_init_self
7610		if eval \${$cacheid+:} false; then :
7611  $as_echo_n "(cached) " >&6
7612else
7613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7614/* end confdefs.h.  */
7615int i;
7616int
7617main ()
7618{
7619
7620  ;
7621  return 0;
7622}
7623_ACEOF
7624if ac_fn_c_try_link "$LINENO"; then :
7625  eval $cacheid=yes
7626else
7627  eval $cacheid=no
7628fi
7629rm -f core conftest.err conftest.$ac_objext \
7630    conftest$ac_exeext conftest.$ac_ext
7631fi
7632
7633
7634		CFLAGS="$xorg_testset_save_CFLAGS"
7635
7636		eval supported=\$$cacheid
7637		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7638$as_echo "$supported" >&6; }
7639		if test "$supported" = "yes" ; then
7640			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7641			found="yes"
7642		fi
7643	fi
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659xorg_testset_save_CFLAGS="$CFLAGS"
7660
7661if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7662	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7663	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7664$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7665if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7666  $as_echo_n "(cached) " >&6
7667else
7668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7669/* end confdefs.h.  */
7670int i;
7671_ACEOF
7672if ac_fn_c_try_compile "$LINENO"; then :
7673  xorg_cv_cc_flag_unknown_warning_option=yes
7674else
7675  xorg_cv_cc_flag_unknown_warning_option=no
7676fi
7677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7678fi
7679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7680$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7681	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7682	CFLAGS="$xorg_testset_save_CFLAGS"
7683fi
7684
7685if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7686	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7687		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7688	fi
7689	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7690	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7691$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7692if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7693  $as_echo_n "(cached) " >&6
7694else
7695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696/* end confdefs.h.  */
7697int i;
7698_ACEOF
7699if ac_fn_c_try_compile "$LINENO"; then :
7700  xorg_cv_cc_flag_unused_command_line_argument=yes
7701else
7702  xorg_cv_cc_flag_unused_command_line_argument=no
7703fi
7704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7705fi
7706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7707$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7708	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7709	CFLAGS="$xorg_testset_save_CFLAGS"
7710fi
7711
7712found="no"
7713
7714	if test $found = "no" ; then
7715		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7716			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7717		fi
7718
7719		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7720			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7721		fi
7722
7723		CFLAGS="$CFLAGS -Werror=main"
7724
7725		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7726$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7727		cacheid=xorg_cv_cc_flag__Werror_main
7728		if eval \${$cacheid+:} false; then :
7729  $as_echo_n "(cached) " >&6
7730else
7731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732/* end confdefs.h.  */
7733int i;
7734int
7735main ()
7736{
7737
7738  ;
7739  return 0;
7740}
7741_ACEOF
7742if ac_fn_c_try_link "$LINENO"; then :
7743  eval $cacheid=yes
7744else
7745  eval $cacheid=no
7746fi
7747rm -f core conftest.err conftest.$ac_objext \
7748    conftest$ac_exeext conftest.$ac_ext
7749fi
7750
7751
7752		CFLAGS="$xorg_testset_save_CFLAGS"
7753
7754		eval supported=\$$cacheid
7755		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7756$as_echo "$supported" >&6; }
7757		if test "$supported" = "yes" ; then
7758			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7759			found="yes"
7760		fi
7761	fi
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777xorg_testset_save_CFLAGS="$CFLAGS"
7778
7779if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7780	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7781	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7782$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7783if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7784  $as_echo_n "(cached) " >&6
7785else
7786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787/* end confdefs.h.  */
7788int i;
7789_ACEOF
7790if ac_fn_c_try_compile "$LINENO"; then :
7791  xorg_cv_cc_flag_unknown_warning_option=yes
7792else
7793  xorg_cv_cc_flag_unknown_warning_option=no
7794fi
7795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7796fi
7797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7798$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7799	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7800	CFLAGS="$xorg_testset_save_CFLAGS"
7801fi
7802
7803if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7804	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7805		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7806	fi
7807	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7808	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7809$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7810if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7811  $as_echo_n "(cached) " >&6
7812else
7813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814/* end confdefs.h.  */
7815int i;
7816_ACEOF
7817if ac_fn_c_try_compile "$LINENO"; then :
7818  xorg_cv_cc_flag_unused_command_line_argument=yes
7819else
7820  xorg_cv_cc_flag_unused_command_line_argument=no
7821fi
7822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7823fi
7824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7825$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7826	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7827	CFLAGS="$xorg_testset_save_CFLAGS"
7828fi
7829
7830found="no"
7831
7832	if test $found = "no" ; then
7833		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7834			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7835		fi
7836
7837		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7838			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7839		fi
7840
7841		CFLAGS="$CFLAGS -Werror=missing-braces"
7842
7843		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7844$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7845		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7846		if eval \${$cacheid+:} false; then :
7847  $as_echo_n "(cached) " >&6
7848else
7849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850/* end confdefs.h.  */
7851int i;
7852int
7853main ()
7854{
7855
7856  ;
7857  return 0;
7858}
7859_ACEOF
7860if ac_fn_c_try_link "$LINENO"; then :
7861  eval $cacheid=yes
7862else
7863  eval $cacheid=no
7864fi
7865rm -f core conftest.err conftest.$ac_objext \
7866    conftest$ac_exeext conftest.$ac_ext
7867fi
7868
7869
7870		CFLAGS="$xorg_testset_save_CFLAGS"
7871
7872		eval supported=\$$cacheid
7873		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7874$as_echo "$supported" >&6; }
7875		if test "$supported" = "yes" ; then
7876			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7877			found="yes"
7878		fi
7879	fi
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895xorg_testset_save_CFLAGS="$CFLAGS"
7896
7897if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7898	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7899	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7900$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7901if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7902  $as_echo_n "(cached) " >&6
7903else
7904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905/* end confdefs.h.  */
7906int i;
7907_ACEOF
7908if ac_fn_c_try_compile "$LINENO"; then :
7909  xorg_cv_cc_flag_unknown_warning_option=yes
7910else
7911  xorg_cv_cc_flag_unknown_warning_option=no
7912fi
7913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7914fi
7915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7916$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7917	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7918	CFLAGS="$xorg_testset_save_CFLAGS"
7919fi
7920
7921if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7922	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7923		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7924	fi
7925	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7926	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7927$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7928if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7929  $as_echo_n "(cached) " >&6
7930else
7931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932/* end confdefs.h.  */
7933int i;
7934_ACEOF
7935if ac_fn_c_try_compile "$LINENO"; then :
7936  xorg_cv_cc_flag_unused_command_line_argument=yes
7937else
7938  xorg_cv_cc_flag_unused_command_line_argument=no
7939fi
7940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7941fi
7942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7943$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7944	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7945	CFLAGS="$xorg_testset_save_CFLAGS"
7946fi
7947
7948found="no"
7949
7950	if test $found = "no" ; then
7951		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7952			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7953		fi
7954
7955		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7956			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7957		fi
7958
7959		CFLAGS="$CFLAGS -Werror=sequence-point"
7960
7961		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7962$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7963		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7964		if eval \${$cacheid+:} false; then :
7965  $as_echo_n "(cached) " >&6
7966else
7967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968/* end confdefs.h.  */
7969int i;
7970int
7971main ()
7972{
7973
7974  ;
7975  return 0;
7976}
7977_ACEOF
7978if ac_fn_c_try_link "$LINENO"; then :
7979  eval $cacheid=yes
7980else
7981  eval $cacheid=no
7982fi
7983rm -f core conftest.err conftest.$ac_objext \
7984    conftest$ac_exeext conftest.$ac_ext
7985fi
7986
7987
7988		CFLAGS="$xorg_testset_save_CFLAGS"
7989
7990		eval supported=\$$cacheid
7991		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7992$as_echo "$supported" >&6; }
7993		if test "$supported" = "yes" ; then
7994			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7995			found="yes"
7996		fi
7997	fi
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013xorg_testset_save_CFLAGS="$CFLAGS"
8014
8015if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8016	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8017	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8018$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8019if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8020  $as_echo_n "(cached) " >&6
8021else
8022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8023/* end confdefs.h.  */
8024int i;
8025_ACEOF
8026if ac_fn_c_try_compile "$LINENO"; then :
8027  xorg_cv_cc_flag_unknown_warning_option=yes
8028else
8029  xorg_cv_cc_flag_unknown_warning_option=no
8030fi
8031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8032fi
8033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8034$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8035	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8036	CFLAGS="$xorg_testset_save_CFLAGS"
8037fi
8038
8039if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8040	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8041		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8042	fi
8043	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8044	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8045$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8046if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8047  $as_echo_n "(cached) " >&6
8048else
8049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050/* end confdefs.h.  */
8051int i;
8052_ACEOF
8053if ac_fn_c_try_compile "$LINENO"; then :
8054  xorg_cv_cc_flag_unused_command_line_argument=yes
8055else
8056  xorg_cv_cc_flag_unused_command_line_argument=no
8057fi
8058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8059fi
8060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8061$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8062	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8063	CFLAGS="$xorg_testset_save_CFLAGS"
8064fi
8065
8066found="no"
8067
8068	if test $found = "no" ; then
8069		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8070			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8071		fi
8072
8073		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8074			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8075		fi
8076
8077		CFLAGS="$CFLAGS -Werror=return-type"
8078
8079		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8080$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
8081		cacheid=xorg_cv_cc_flag__Werror_return_type
8082		if eval \${$cacheid+:} false; then :
8083  $as_echo_n "(cached) " >&6
8084else
8085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086/* end confdefs.h.  */
8087int i;
8088int
8089main ()
8090{
8091
8092  ;
8093  return 0;
8094}
8095_ACEOF
8096if ac_fn_c_try_link "$LINENO"; then :
8097  eval $cacheid=yes
8098else
8099  eval $cacheid=no
8100fi
8101rm -f core conftest.err conftest.$ac_objext \
8102    conftest$ac_exeext conftest.$ac_ext
8103fi
8104
8105
8106		CFLAGS="$xorg_testset_save_CFLAGS"
8107
8108		eval supported=\$$cacheid
8109		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8110$as_echo "$supported" >&6; }
8111		if test "$supported" = "yes" ; then
8112			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8113			found="yes"
8114		fi
8115	fi
8116
8117	if test $found = "no" ; then
8118		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8119			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8120		fi
8121
8122		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8123			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8124		fi
8125
8126		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8127
8128		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8129$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8130		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8131		if eval \${$cacheid+:} false; then :
8132  $as_echo_n "(cached) " >&6
8133else
8134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135/* end confdefs.h.  */
8136int i;
8137int
8138main ()
8139{
8140
8141  ;
8142  return 0;
8143}
8144_ACEOF
8145if ac_fn_c_try_link "$LINENO"; then :
8146  eval $cacheid=yes
8147else
8148  eval $cacheid=no
8149fi
8150rm -f core conftest.err conftest.$ac_objext \
8151    conftest$ac_exeext conftest.$ac_ext
8152fi
8153
8154
8155		CFLAGS="$xorg_testset_save_CFLAGS"
8156
8157		eval supported=\$$cacheid
8158		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8159$as_echo "$supported" >&6; }
8160		if test "$supported" = "yes" ; then
8161			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8162			found="yes"
8163		fi
8164	fi
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180xorg_testset_save_CFLAGS="$CFLAGS"
8181
8182if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8183	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8184	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8185$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8186if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8187  $as_echo_n "(cached) " >&6
8188else
8189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190/* end confdefs.h.  */
8191int i;
8192_ACEOF
8193if ac_fn_c_try_compile "$LINENO"; then :
8194  xorg_cv_cc_flag_unknown_warning_option=yes
8195else
8196  xorg_cv_cc_flag_unknown_warning_option=no
8197fi
8198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8199fi
8200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8201$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8202	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8203	CFLAGS="$xorg_testset_save_CFLAGS"
8204fi
8205
8206if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8207	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8208		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8209	fi
8210	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8211	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8212$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8213if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8214  $as_echo_n "(cached) " >&6
8215else
8216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217/* end confdefs.h.  */
8218int i;
8219_ACEOF
8220if ac_fn_c_try_compile "$LINENO"; then :
8221  xorg_cv_cc_flag_unused_command_line_argument=yes
8222else
8223  xorg_cv_cc_flag_unused_command_line_argument=no
8224fi
8225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8226fi
8227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8228$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8229	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8230	CFLAGS="$xorg_testset_save_CFLAGS"
8231fi
8232
8233found="no"
8234
8235	if test $found = "no" ; then
8236		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8237			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8238		fi
8239
8240		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8241			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8242		fi
8243
8244		CFLAGS="$CFLAGS -Werror=trigraphs"
8245
8246		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8247$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8248		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8249		if eval \${$cacheid+:} false; then :
8250  $as_echo_n "(cached) " >&6
8251else
8252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8253/* end confdefs.h.  */
8254int i;
8255int
8256main ()
8257{
8258
8259  ;
8260  return 0;
8261}
8262_ACEOF
8263if ac_fn_c_try_link "$LINENO"; then :
8264  eval $cacheid=yes
8265else
8266  eval $cacheid=no
8267fi
8268rm -f core conftest.err conftest.$ac_objext \
8269    conftest$ac_exeext conftest.$ac_ext
8270fi
8271
8272
8273		CFLAGS="$xorg_testset_save_CFLAGS"
8274
8275		eval supported=\$$cacheid
8276		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8277$as_echo "$supported" >&6; }
8278		if test "$supported" = "yes" ; then
8279			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8280			found="yes"
8281		fi
8282	fi
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298xorg_testset_save_CFLAGS="$CFLAGS"
8299
8300if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8301	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8302	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8303$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8304if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8305  $as_echo_n "(cached) " >&6
8306else
8307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308/* end confdefs.h.  */
8309int i;
8310_ACEOF
8311if ac_fn_c_try_compile "$LINENO"; then :
8312  xorg_cv_cc_flag_unknown_warning_option=yes
8313else
8314  xorg_cv_cc_flag_unknown_warning_option=no
8315fi
8316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8317fi
8318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8319$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8320	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8321	CFLAGS="$xorg_testset_save_CFLAGS"
8322fi
8323
8324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8325	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8326		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8327	fi
8328	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8329	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8330$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8331if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8332  $as_echo_n "(cached) " >&6
8333else
8334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335/* end confdefs.h.  */
8336int i;
8337_ACEOF
8338if ac_fn_c_try_compile "$LINENO"; then :
8339  xorg_cv_cc_flag_unused_command_line_argument=yes
8340else
8341  xorg_cv_cc_flag_unused_command_line_argument=no
8342fi
8343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8344fi
8345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8346$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8347	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8348	CFLAGS="$xorg_testset_save_CFLAGS"
8349fi
8350
8351found="no"
8352
8353	if test $found = "no" ; then
8354		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8355			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8356		fi
8357
8358		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8359			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8360		fi
8361
8362		CFLAGS="$CFLAGS -Werror=array-bounds"
8363
8364		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8365$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8366		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8367		if eval \${$cacheid+:} false; then :
8368  $as_echo_n "(cached) " >&6
8369else
8370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371/* end confdefs.h.  */
8372int i;
8373int
8374main ()
8375{
8376
8377  ;
8378  return 0;
8379}
8380_ACEOF
8381if ac_fn_c_try_link "$LINENO"; then :
8382  eval $cacheid=yes
8383else
8384  eval $cacheid=no
8385fi
8386rm -f core conftest.err conftest.$ac_objext \
8387    conftest$ac_exeext conftest.$ac_ext
8388fi
8389
8390
8391		CFLAGS="$xorg_testset_save_CFLAGS"
8392
8393		eval supported=\$$cacheid
8394		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8395$as_echo "$supported" >&6; }
8396		if test "$supported" = "yes" ; then
8397			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8398			found="yes"
8399		fi
8400	fi
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416xorg_testset_save_CFLAGS="$CFLAGS"
8417
8418if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8419	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8420	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8421$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8422if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8423  $as_echo_n "(cached) " >&6
8424else
8425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8426/* end confdefs.h.  */
8427int i;
8428_ACEOF
8429if ac_fn_c_try_compile "$LINENO"; then :
8430  xorg_cv_cc_flag_unknown_warning_option=yes
8431else
8432  xorg_cv_cc_flag_unknown_warning_option=no
8433fi
8434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8435fi
8436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8437$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8438	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8439	CFLAGS="$xorg_testset_save_CFLAGS"
8440fi
8441
8442if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8443	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8444		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8445	fi
8446	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8447	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8448$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8449if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8450  $as_echo_n "(cached) " >&6
8451else
8452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453/* end confdefs.h.  */
8454int i;
8455_ACEOF
8456if ac_fn_c_try_compile "$LINENO"; then :
8457  xorg_cv_cc_flag_unused_command_line_argument=yes
8458else
8459  xorg_cv_cc_flag_unused_command_line_argument=no
8460fi
8461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8462fi
8463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8464$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8465	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8466	CFLAGS="$xorg_testset_save_CFLAGS"
8467fi
8468
8469found="no"
8470
8471	if test $found = "no" ; then
8472		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8473			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8474		fi
8475
8476		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8477			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8478		fi
8479
8480		CFLAGS="$CFLAGS -Werror=write-strings"
8481
8482		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8483$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8484		cacheid=xorg_cv_cc_flag__Werror_write_strings
8485		if eval \${$cacheid+:} false; then :
8486  $as_echo_n "(cached) " >&6
8487else
8488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489/* end confdefs.h.  */
8490int i;
8491int
8492main ()
8493{
8494
8495  ;
8496  return 0;
8497}
8498_ACEOF
8499if ac_fn_c_try_link "$LINENO"; then :
8500  eval $cacheid=yes
8501else
8502  eval $cacheid=no
8503fi
8504rm -f core conftest.err conftest.$ac_objext \
8505    conftest$ac_exeext conftest.$ac_ext
8506fi
8507
8508
8509		CFLAGS="$xorg_testset_save_CFLAGS"
8510
8511		eval supported=\$$cacheid
8512		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8513$as_echo "$supported" >&6; }
8514		if test "$supported" = "yes" ; then
8515			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8516			found="yes"
8517		fi
8518	fi
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534xorg_testset_save_CFLAGS="$CFLAGS"
8535
8536if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8537	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8538	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8539$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8540if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8541  $as_echo_n "(cached) " >&6
8542else
8543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544/* end confdefs.h.  */
8545int i;
8546_ACEOF
8547if ac_fn_c_try_compile "$LINENO"; then :
8548  xorg_cv_cc_flag_unknown_warning_option=yes
8549else
8550  xorg_cv_cc_flag_unknown_warning_option=no
8551fi
8552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8553fi
8554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8555$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8556	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8557	CFLAGS="$xorg_testset_save_CFLAGS"
8558fi
8559
8560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8561	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8562		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8563	fi
8564	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8565	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8566$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8567if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8568  $as_echo_n "(cached) " >&6
8569else
8570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8571/* end confdefs.h.  */
8572int i;
8573_ACEOF
8574if ac_fn_c_try_compile "$LINENO"; then :
8575  xorg_cv_cc_flag_unused_command_line_argument=yes
8576else
8577  xorg_cv_cc_flag_unused_command_line_argument=no
8578fi
8579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8580fi
8581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8582$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8583	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8584	CFLAGS="$xorg_testset_save_CFLAGS"
8585fi
8586
8587found="no"
8588
8589	if test $found = "no" ; then
8590		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8591			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8592		fi
8593
8594		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8595			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8596		fi
8597
8598		CFLAGS="$CFLAGS -Werror=address"
8599
8600		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8601$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8602		cacheid=xorg_cv_cc_flag__Werror_address
8603		if eval \${$cacheid+:} false; then :
8604  $as_echo_n "(cached) " >&6
8605else
8606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8607/* end confdefs.h.  */
8608int i;
8609int
8610main ()
8611{
8612
8613  ;
8614  return 0;
8615}
8616_ACEOF
8617if ac_fn_c_try_link "$LINENO"; then :
8618  eval $cacheid=yes
8619else
8620  eval $cacheid=no
8621fi
8622rm -f core conftest.err conftest.$ac_objext \
8623    conftest$ac_exeext conftest.$ac_ext
8624fi
8625
8626
8627		CFLAGS="$xorg_testset_save_CFLAGS"
8628
8629		eval supported=\$$cacheid
8630		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8631$as_echo "$supported" >&6; }
8632		if test "$supported" = "yes" ; then
8633			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8634			found="yes"
8635		fi
8636	fi
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652xorg_testset_save_CFLAGS="$CFLAGS"
8653
8654if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8655	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8656	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8657$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8658if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8659  $as_echo_n "(cached) " >&6
8660else
8661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8662/* end confdefs.h.  */
8663int i;
8664_ACEOF
8665if ac_fn_c_try_compile "$LINENO"; then :
8666  xorg_cv_cc_flag_unknown_warning_option=yes
8667else
8668  xorg_cv_cc_flag_unknown_warning_option=no
8669fi
8670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8671fi
8672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8673$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8674	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8675	CFLAGS="$xorg_testset_save_CFLAGS"
8676fi
8677
8678if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8679	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8680		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8681	fi
8682	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8683	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8684$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8685if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8686  $as_echo_n "(cached) " >&6
8687else
8688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689/* end confdefs.h.  */
8690int i;
8691_ACEOF
8692if ac_fn_c_try_compile "$LINENO"; then :
8693  xorg_cv_cc_flag_unused_command_line_argument=yes
8694else
8695  xorg_cv_cc_flag_unused_command_line_argument=no
8696fi
8697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8698fi
8699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8700$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8701	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8702	CFLAGS="$xorg_testset_save_CFLAGS"
8703fi
8704
8705found="no"
8706
8707	if test $found = "no" ; then
8708		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8709			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8710		fi
8711
8712		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8713			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8714		fi
8715
8716		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8717
8718		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8719$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8720		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8721		if eval \${$cacheid+:} false; then :
8722  $as_echo_n "(cached) " >&6
8723else
8724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8725/* end confdefs.h.  */
8726int i;
8727int
8728main ()
8729{
8730
8731  ;
8732  return 0;
8733}
8734_ACEOF
8735if ac_fn_c_try_link "$LINENO"; then :
8736  eval $cacheid=yes
8737else
8738  eval $cacheid=no
8739fi
8740rm -f core conftest.err conftest.$ac_objext \
8741    conftest$ac_exeext conftest.$ac_ext
8742fi
8743
8744
8745		CFLAGS="$xorg_testset_save_CFLAGS"
8746
8747		eval supported=\$$cacheid
8748		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8749$as_echo "$supported" >&6; }
8750		if test "$supported" = "yes" ; then
8751			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8752			found="yes"
8753		fi
8754	fi
8755
8756	if test $found = "no" ; then
8757		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8758			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8759		fi
8760
8761		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8762			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8763		fi
8764
8765		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8766
8767		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8768$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8769		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8770		if eval \${$cacheid+:} false; then :
8771  $as_echo_n "(cached) " >&6
8772else
8773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8774/* end confdefs.h.  */
8775int i;
8776int
8777main ()
8778{
8779
8780  ;
8781  return 0;
8782}
8783_ACEOF
8784if ac_fn_c_try_link "$LINENO"; then :
8785  eval $cacheid=yes
8786else
8787  eval $cacheid=no
8788fi
8789rm -f core conftest.err conftest.$ac_objext \
8790    conftest$ac_exeext conftest.$ac_ext
8791fi
8792
8793
8794		CFLAGS="$xorg_testset_save_CFLAGS"
8795
8796		eval supported=\$$cacheid
8797		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8798$as_echo "$supported" >&6; }
8799		if test "$supported" = "yes" ; then
8800			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8801			found="yes"
8802		fi
8803	fi
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819xorg_testset_save_CFLAGS="$CFLAGS"
8820
8821if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8822	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8823	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8824$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8825if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8826  $as_echo_n "(cached) " >&6
8827else
8828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8829/* end confdefs.h.  */
8830int i;
8831_ACEOF
8832if ac_fn_c_try_compile "$LINENO"; then :
8833  xorg_cv_cc_flag_unknown_warning_option=yes
8834else
8835  xorg_cv_cc_flag_unknown_warning_option=no
8836fi
8837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8838fi
8839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8840$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8841	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8842	CFLAGS="$xorg_testset_save_CFLAGS"
8843fi
8844
8845if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8846	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8847		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8848	fi
8849	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8850	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8851$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8852if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8853  $as_echo_n "(cached) " >&6
8854else
8855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8856/* end confdefs.h.  */
8857int i;
8858_ACEOF
8859if ac_fn_c_try_compile "$LINENO"; then :
8860  xorg_cv_cc_flag_unused_command_line_argument=yes
8861else
8862  xorg_cv_cc_flag_unused_command_line_argument=no
8863fi
8864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8865fi
8866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8867$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8868	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8869	CFLAGS="$xorg_testset_save_CFLAGS"
8870fi
8871
8872found="no"
8873
8874	if test $found = "no" ; then
8875		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8876			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8877		fi
8878
8879		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8880			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8881		fi
8882
8883		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8884
8885		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8886$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8887		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8888		if eval \${$cacheid+:} false; then :
8889  $as_echo_n "(cached) " >&6
8890else
8891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8892/* end confdefs.h.  */
8893int i;
8894int
8895main ()
8896{
8897
8898  ;
8899  return 0;
8900}
8901_ACEOF
8902if ac_fn_c_try_link "$LINENO"; then :
8903  eval $cacheid=yes
8904else
8905  eval $cacheid=no
8906fi
8907rm -f core conftest.err conftest.$ac_objext \
8908    conftest$ac_exeext conftest.$ac_ext
8909fi
8910
8911
8912		CFLAGS="$xorg_testset_save_CFLAGS"
8913
8914		eval supported=\$$cacheid
8915		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8916$as_echo "$supported" >&6; }
8917		if test "$supported" = "yes" ; then
8918			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8919			found="yes"
8920		fi
8921	fi
8922
8923 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8924else
8925{ $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
8926$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;}
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940xorg_testset_save_CFLAGS="$CFLAGS"
8941
8942if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8943	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8944	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8945$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8946if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8947  $as_echo_n "(cached) " >&6
8948else
8949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8950/* end confdefs.h.  */
8951int i;
8952_ACEOF
8953if ac_fn_c_try_compile "$LINENO"; then :
8954  xorg_cv_cc_flag_unknown_warning_option=yes
8955else
8956  xorg_cv_cc_flag_unknown_warning_option=no
8957fi
8958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8959fi
8960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8961$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8962	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8963	CFLAGS="$xorg_testset_save_CFLAGS"
8964fi
8965
8966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8967	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8968		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8969	fi
8970	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8971	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8972$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8973if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8974  $as_echo_n "(cached) " >&6
8975else
8976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977/* end confdefs.h.  */
8978int i;
8979_ACEOF
8980if ac_fn_c_try_compile "$LINENO"; then :
8981  xorg_cv_cc_flag_unused_command_line_argument=yes
8982else
8983  xorg_cv_cc_flag_unused_command_line_argument=no
8984fi
8985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8986fi
8987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8988$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8989	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8990	CFLAGS="$xorg_testset_save_CFLAGS"
8991fi
8992
8993found="no"
8994
8995	if test $found = "no" ; then
8996		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8997			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8998		fi
8999
9000		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9001			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9002		fi
9003
9004		CFLAGS="$CFLAGS -Wimplicit"
9005
9006		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9007$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
9008		cacheid=xorg_cv_cc_flag__Wimplicit
9009		if eval \${$cacheid+:} false; then :
9010  $as_echo_n "(cached) " >&6
9011else
9012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9013/* end confdefs.h.  */
9014int i;
9015int
9016main ()
9017{
9018
9019  ;
9020  return 0;
9021}
9022_ACEOF
9023if ac_fn_c_try_link "$LINENO"; then :
9024  eval $cacheid=yes
9025else
9026  eval $cacheid=no
9027fi
9028rm -f core conftest.err conftest.$ac_objext \
9029    conftest$ac_exeext conftest.$ac_ext
9030fi
9031
9032
9033		CFLAGS="$xorg_testset_save_CFLAGS"
9034
9035		eval supported=\$$cacheid
9036		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9037$as_echo "$supported" >&6; }
9038		if test "$supported" = "yes" ; then
9039			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9040			found="yes"
9041		fi
9042	fi
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058xorg_testset_save_CFLAGS="$CFLAGS"
9059
9060if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9061	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9062	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9063$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9064if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9065  $as_echo_n "(cached) " >&6
9066else
9067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068/* end confdefs.h.  */
9069int i;
9070_ACEOF
9071if ac_fn_c_try_compile "$LINENO"; then :
9072  xorg_cv_cc_flag_unknown_warning_option=yes
9073else
9074  xorg_cv_cc_flag_unknown_warning_option=no
9075fi
9076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9077fi
9078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9079$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9080	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9081	CFLAGS="$xorg_testset_save_CFLAGS"
9082fi
9083
9084if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9085	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9086		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9087	fi
9088	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9089	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9090$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9091if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9092  $as_echo_n "(cached) " >&6
9093else
9094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9095/* end confdefs.h.  */
9096int i;
9097_ACEOF
9098if ac_fn_c_try_compile "$LINENO"; then :
9099  xorg_cv_cc_flag_unused_command_line_argument=yes
9100else
9101  xorg_cv_cc_flag_unused_command_line_argument=no
9102fi
9103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9104fi
9105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9106$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9107	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9108	CFLAGS="$xorg_testset_save_CFLAGS"
9109fi
9110
9111found="no"
9112
9113	if test $found = "no" ; then
9114		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9115			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9116		fi
9117
9118		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9119			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9120		fi
9121
9122		CFLAGS="$CFLAGS -Wnonnull"
9123
9124		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9125$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
9126		cacheid=xorg_cv_cc_flag__Wnonnull
9127		if eval \${$cacheid+:} false; then :
9128  $as_echo_n "(cached) " >&6
9129else
9130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9131/* end confdefs.h.  */
9132int i;
9133int
9134main ()
9135{
9136
9137  ;
9138  return 0;
9139}
9140_ACEOF
9141if ac_fn_c_try_link "$LINENO"; then :
9142  eval $cacheid=yes
9143else
9144  eval $cacheid=no
9145fi
9146rm -f core conftest.err conftest.$ac_objext \
9147    conftest$ac_exeext conftest.$ac_ext
9148fi
9149
9150
9151		CFLAGS="$xorg_testset_save_CFLAGS"
9152
9153		eval supported=\$$cacheid
9154		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9155$as_echo "$supported" >&6; }
9156		if test "$supported" = "yes" ; then
9157			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9158			found="yes"
9159		fi
9160	fi
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176xorg_testset_save_CFLAGS="$CFLAGS"
9177
9178if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9179	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9180	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9181$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9182if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9183  $as_echo_n "(cached) " >&6
9184else
9185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9186/* end confdefs.h.  */
9187int i;
9188_ACEOF
9189if ac_fn_c_try_compile "$LINENO"; then :
9190  xorg_cv_cc_flag_unknown_warning_option=yes
9191else
9192  xorg_cv_cc_flag_unknown_warning_option=no
9193fi
9194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9195fi
9196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9197$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9198	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9199	CFLAGS="$xorg_testset_save_CFLAGS"
9200fi
9201
9202if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9203	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9204		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9205	fi
9206	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9207	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9208$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9209if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9210  $as_echo_n "(cached) " >&6
9211else
9212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213/* end confdefs.h.  */
9214int i;
9215_ACEOF
9216if ac_fn_c_try_compile "$LINENO"; then :
9217  xorg_cv_cc_flag_unused_command_line_argument=yes
9218else
9219  xorg_cv_cc_flag_unused_command_line_argument=no
9220fi
9221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9222fi
9223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9224$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9225	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9226	CFLAGS="$xorg_testset_save_CFLAGS"
9227fi
9228
9229found="no"
9230
9231	if test $found = "no" ; then
9232		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9233			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9234		fi
9235
9236		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9237			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9238		fi
9239
9240		CFLAGS="$CFLAGS -Winit-self"
9241
9242		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9243$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9244		cacheid=xorg_cv_cc_flag__Winit_self
9245		if eval \${$cacheid+:} false; then :
9246  $as_echo_n "(cached) " >&6
9247else
9248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249/* end confdefs.h.  */
9250int i;
9251int
9252main ()
9253{
9254
9255  ;
9256  return 0;
9257}
9258_ACEOF
9259if ac_fn_c_try_link "$LINENO"; then :
9260  eval $cacheid=yes
9261else
9262  eval $cacheid=no
9263fi
9264rm -f core conftest.err conftest.$ac_objext \
9265    conftest$ac_exeext conftest.$ac_ext
9266fi
9267
9268
9269		CFLAGS="$xorg_testset_save_CFLAGS"
9270
9271		eval supported=\$$cacheid
9272		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9273$as_echo "$supported" >&6; }
9274		if test "$supported" = "yes" ; then
9275			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9276			found="yes"
9277		fi
9278	fi
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294xorg_testset_save_CFLAGS="$CFLAGS"
9295
9296if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9297	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9298	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9299$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9300if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9301  $as_echo_n "(cached) " >&6
9302else
9303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9304/* end confdefs.h.  */
9305int i;
9306_ACEOF
9307if ac_fn_c_try_compile "$LINENO"; then :
9308  xorg_cv_cc_flag_unknown_warning_option=yes
9309else
9310  xorg_cv_cc_flag_unknown_warning_option=no
9311fi
9312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9313fi
9314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9315$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9316	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9317	CFLAGS="$xorg_testset_save_CFLAGS"
9318fi
9319
9320if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9321	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9322		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9323	fi
9324	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9325	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9326$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9327if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9328  $as_echo_n "(cached) " >&6
9329else
9330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331/* end confdefs.h.  */
9332int i;
9333_ACEOF
9334if ac_fn_c_try_compile "$LINENO"; then :
9335  xorg_cv_cc_flag_unused_command_line_argument=yes
9336else
9337  xorg_cv_cc_flag_unused_command_line_argument=no
9338fi
9339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9340fi
9341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9342$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9343	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9344	CFLAGS="$xorg_testset_save_CFLAGS"
9345fi
9346
9347found="no"
9348
9349	if test $found = "no" ; then
9350		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9351			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9352		fi
9353
9354		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9355			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9356		fi
9357
9358		CFLAGS="$CFLAGS -Wmain"
9359
9360		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9361$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9362		cacheid=xorg_cv_cc_flag__Wmain
9363		if eval \${$cacheid+:} false; then :
9364  $as_echo_n "(cached) " >&6
9365else
9366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367/* end confdefs.h.  */
9368int i;
9369int
9370main ()
9371{
9372
9373  ;
9374  return 0;
9375}
9376_ACEOF
9377if ac_fn_c_try_link "$LINENO"; then :
9378  eval $cacheid=yes
9379else
9380  eval $cacheid=no
9381fi
9382rm -f core conftest.err conftest.$ac_objext \
9383    conftest$ac_exeext conftest.$ac_ext
9384fi
9385
9386
9387		CFLAGS="$xorg_testset_save_CFLAGS"
9388
9389		eval supported=\$$cacheid
9390		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9391$as_echo "$supported" >&6; }
9392		if test "$supported" = "yes" ; then
9393			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9394			found="yes"
9395		fi
9396	fi
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412xorg_testset_save_CFLAGS="$CFLAGS"
9413
9414if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9415	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9416	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9417$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9418if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9419  $as_echo_n "(cached) " >&6
9420else
9421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9422/* end confdefs.h.  */
9423int i;
9424_ACEOF
9425if ac_fn_c_try_compile "$LINENO"; then :
9426  xorg_cv_cc_flag_unknown_warning_option=yes
9427else
9428  xorg_cv_cc_flag_unknown_warning_option=no
9429fi
9430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9431fi
9432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9433$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9434	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9435	CFLAGS="$xorg_testset_save_CFLAGS"
9436fi
9437
9438if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9439	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9440		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9441	fi
9442	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9443	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9444$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9445if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9446  $as_echo_n "(cached) " >&6
9447else
9448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449/* end confdefs.h.  */
9450int i;
9451_ACEOF
9452if ac_fn_c_try_compile "$LINENO"; then :
9453  xorg_cv_cc_flag_unused_command_line_argument=yes
9454else
9455  xorg_cv_cc_flag_unused_command_line_argument=no
9456fi
9457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9458fi
9459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9460$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9461	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9462	CFLAGS="$xorg_testset_save_CFLAGS"
9463fi
9464
9465found="no"
9466
9467	if test $found = "no" ; then
9468		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9469			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9470		fi
9471
9472		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9473			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9474		fi
9475
9476		CFLAGS="$CFLAGS -Wmissing-braces"
9477
9478		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9479$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9480		cacheid=xorg_cv_cc_flag__Wmissing_braces
9481		if eval \${$cacheid+:} false; then :
9482  $as_echo_n "(cached) " >&6
9483else
9484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9485/* end confdefs.h.  */
9486int i;
9487int
9488main ()
9489{
9490
9491  ;
9492  return 0;
9493}
9494_ACEOF
9495if ac_fn_c_try_link "$LINENO"; then :
9496  eval $cacheid=yes
9497else
9498  eval $cacheid=no
9499fi
9500rm -f core conftest.err conftest.$ac_objext \
9501    conftest$ac_exeext conftest.$ac_ext
9502fi
9503
9504
9505		CFLAGS="$xorg_testset_save_CFLAGS"
9506
9507		eval supported=\$$cacheid
9508		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9509$as_echo "$supported" >&6; }
9510		if test "$supported" = "yes" ; then
9511			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9512			found="yes"
9513		fi
9514	fi
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530xorg_testset_save_CFLAGS="$CFLAGS"
9531
9532if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9533	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9534	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9535$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9536if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9537  $as_echo_n "(cached) " >&6
9538else
9539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540/* end confdefs.h.  */
9541int i;
9542_ACEOF
9543if ac_fn_c_try_compile "$LINENO"; then :
9544  xorg_cv_cc_flag_unknown_warning_option=yes
9545else
9546  xorg_cv_cc_flag_unknown_warning_option=no
9547fi
9548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9549fi
9550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9551$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9552	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9553	CFLAGS="$xorg_testset_save_CFLAGS"
9554fi
9555
9556if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9557	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9558		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9559	fi
9560	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9561	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9562$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9563if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9564  $as_echo_n "(cached) " >&6
9565else
9566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567/* end confdefs.h.  */
9568int i;
9569_ACEOF
9570if ac_fn_c_try_compile "$LINENO"; then :
9571  xorg_cv_cc_flag_unused_command_line_argument=yes
9572else
9573  xorg_cv_cc_flag_unused_command_line_argument=no
9574fi
9575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9576fi
9577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9578$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9579	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9580	CFLAGS="$xorg_testset_save_CFLAGS"
9581fi
9582
9583found="no"
9584
9585	if test $found = "no" ; then
9586		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9587			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9588		fi
9589
9590		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9591			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9592		fi
9593
9594		CFLAGS="$CFLAGS -Wsequence-point"
9595
9596		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9597$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9598		cacheid=xorg_cv_cc_flag__Wsequence_point
9599		if eval \${$cacheid+:} false; then :
9600  $as_echo_n "(cached) " >&6
9601else
9602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603/* end confdefs.h.  */
9604int i;
9605int
9606main ()
9607{
9608
9609  ;
9610  return 0;
9611}
9612_ACEOF
9613if ac_fn_c_try_link "$LINENO"; then :
9614  eval $cacheid=yes
9615else
9616  eval $cacheid=no
9617fi
9618rm -f core conftest.err conftest.$ac_objext \
9619    conftest$ac_exeext conftest.$ac_ext
9620fi
9621
9622
9623		CFLAGS="$xorg_testset_save_CFLAGS"
9624
9625		eval supported=\$$cacheid
9626		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9627$as_echo "$supported" >&6; }
9628		if test "$supported" = "yes" ; then
9629			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9630			found="yes"
9631		fi
9632	fi
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648xorg_testset_save_CFLAGS="$CFLAGS"
9649
9650if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9651	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9652	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9653$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9654if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9655  $as_echo_n "(cached) " >&6
9656else
9657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9658/* end confdefs.h.  */
9659int i;
9660_ACEOF
9661if ac_fn_c_try_compile "$LINENO"; then :
9662  xorg_cv_cc_flag_unknown_warning_option=yes
9663else
9664  xorg_cv_cc_flag_unknown_warning_option=no
9665fi
9666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9667fi
9668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9669$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9670	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9671	CFLAGS="$xorg_testset_save_CFLAGS"
9672fi
9673
9674if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9675	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9676		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9677	fi
9678	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9679	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9680$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9681if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9682  $as_echo_n "(cached) " >&6
9683else
9684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9685/* end confdefs.h.  */
9686int i;
9687_ACEOF
9688if ac_fn_c_try_compile "$LINENO"; then :
9689  xorg_cv_cc_flag_unused_command_line_argument=yes
9690else
9691  xorg_cv_cc_flag_unused_command_line_argument=no
9692fi
9693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9694fi
9695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9696$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9697	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9698	CFLAGS="$xorg_testset_save_CFLAGS"
9699fi
9700
9701found="no"
9702
9703	if test $found = "no" ; then
9704		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9705			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9706		fi
9707
9708		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9709			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9710		fi
9711
9712		CFLAGS="$CFLAGS -Wreturn-type"
9713
9714		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9715$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9716		cacheid=xorg_cv_cc_flag__Wreturn_type
9717		if eval \${$cacheid+:} false; then :
9718  $as_echo_n "(cached) " >&6
9719else
9720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9721/* end confdefs.h.  */
9722int i;
9723int
9724main ()
9725{
9726
9727  ;
9728  return 0;
9729}
9730_ACEOF
9731if ac_fn_c_try_link "$LINENO"; then :
9732  eval $cacheid=yes
9733else
9734  eval $cacheid=no
9735fi
9736rm -f core conftest.err conftest.$ac_objext \
9737    conftest$ac_exeext conftest.$ac_ext
9738fi
9739
9740
9741		CFLAGS="$xorg_testset_save_CFLAGS"
9742
9743		eval supported=\$$cacheid
9744		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9745$as_echo "$supported" >&6; }
9746		if test "$supported" = "yes" ; then
9747			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9748			found="yes"
9749		fi
9750	fi
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766xorg_testset_save_CFLAGS="$CFLAGS"
9767
9768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9769	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9770	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9771$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9772if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9773  $as_echo_n "(cached) " >&6
9774else
9775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9776/* end confdefs.h.  */
9777int i;
9778_ACEOF
9779if ac_fn_c_try_compile "$LINENO"; then :
9780  xorg_cv_cc_flag_unknown_warning_option=yes
9781else
9782  xorg_cv_cc_flag_unknown_warning_option=no
9783fi
9784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9785fi
9786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9787$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9788	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9789	CFLAGS="$xorg_testset_save_CFLAGS"
9790fi
9791
9792if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9793	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9794		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9795	fi
9796	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9797	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9798$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9799if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9800  $as_echo_n "(cached) " >&6
9801else
9802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803/* end confdefs.h.  */
9804int i;
9805_ACEOF
9806if ac_fn_c_try_compile "$LINENO"; then :
9807  xorg_cv_cc_flag_unused_command_line_argument=yes
9808else
9809  xorg_cv_cc_flag_unused_command_line_argument=no
9810fi
9811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9812fi
9813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9814$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9815	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9816	CFLAGS="$xorg_testset_save_CFLAGS"
9817fi
9818
9819found="no"
9820
9821	if test $found = "no" ; then
9822		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9823			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9824		fi
9825
9826		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9827			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9828		fi
9829
9830		CFLAGS="$CFLAGS -Wtrigraphs"
9831
9832		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9833$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9834		cacheid=xorg_cv_cc_flag__Wtrigraphs
9835		if eval \${$cacheid+:} false; then :
9836  $as_echo_n "(cached) " >&6
9837else
9838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9839/* end confdefs.h.  */
9840int i;
9841int
9842main ()
9843{
9844
9845  ;
9846  return 0;
9847}
9848_ACEOF
9849if ac_fn_c_try_link "$LINENO"; then :
9850  eval $cacheid=yes
9851else
9852  eval $cacheid=no
9853fi
9854rm -f core conftest.err conftest.$ac_objext \
9855    conftest$ac_exeext conftest.$ac_ext
9856fi
9857
9858
9859		CFLAGS="$xorg_testset_save_CFLAGS"
9860
9861		eval supported=\$$cacheid
9862		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9863$as_echo "$supported" >&6; }
9864		if test "$supported" = "yes" ; then
9865			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9866			found="yes"
9867		fi
9868	fi
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884xorg_testset_save_CFLAGS="$CFLAGS"
9885
9886if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9887	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9888	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9889$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9890if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9891  $as_echo_n "(cached) " >&6
9892else
9893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894/* end confdefs.h.  */
9895int i;
9896_ACEOF
9897if ac_fn_c_try_compile "$LINENO"; then :
9898  xorg_cv_cc_flag_unknown_warning_option=yes
9899else
9900  xorg_cv_cc_flag_unknown_warning_option=no
9901fi
9902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9903fi
9904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9905$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9906	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9907	CFLAGS="$xorg_testset_save_CFLAGS"
9908fi
9909
9910if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9911	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9912		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9913	fi
9914	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9915	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9916$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9917if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9918  $as_echo_n "(cached) " >&6
9919else
9920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921/* end confdefs.h.  */
9922int i;
9923_ACEOF
9924if ac_fn_c_try_compile "$LINENO"; then :
9925  xorg_cv_cc_flag_unused_command_line_argument=yes
9926else
9927  xorg_cv_cc_flag_unused_command_line_argument=no
9928fi
9929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9930fi
9931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9932$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9933	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9934	CFLAGS="$xorg_testset_save_CFLAGS"
9935fi
9936
9937found="no"
9938
9939	if test $found = "no" ; then
9940		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9941			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9942		fi
9943
9944		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9945			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9946		fi
9947
9948		CFLAGS="$CFLAGS -Warray-bounds"
9949
9950		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9951$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9952		cacheid=xorg_cv_cc_flag__Warray_bounds
9953		if eval \${$cacheid+:} false; then :
9954  $as_echo_n "(cached) " >&6
9955else
9956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9957/* end confdefs.h.  */
9958int i;
9959int
9960main ()
9961{
9962
9963  ;
9964  return 0;
9965}
9966_ACEOF
9967if ac_fn_c_try_link "$LINENO"; then :
9968  eval $cacheid=yes
9969else
9970  eval $cacheid=no
9971fi
9972rm -f core conftest.err conftest.$ac_objext \
9973    conftest$ac_exeext conftest.$ac_ext
9974fi
9975
9976
9977		CFLAGS="$xorg_testset_save_CFLAGS"
9978
9979		eval supported=\$$cacheid
9980		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9981$as_echo "$supported" >&6; }
9982		if test "$supported" = "yes" ; then
9983			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9984			found="yes"
9985		fi
9986	fi
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002xorg_testset_save_CFLAGS="$CFLAGS"
10003
10004if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10005	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10006	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10007$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10008if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10009  $as_echo_n "(cached) " >&6
10010else
10011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10012/* end confdefs.h.  */
10013int i;
10014_ACEOF
10015if ac_fn_c_try_compile "$LINENO"; then :
10016  xorg_cv_cc_flag_unknown_warning_option=yes
10017else
10018  xorg_cv_cc_flag_unknown_warning_option=no
10019fi
10020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10021fi
10022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10023$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10024	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10025	CFLAGS="$xorg_testset_save_CFLAGS"
10026fi
10027
10028if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10029	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10030		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10031	fi
10032	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10033	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10034$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10035if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10036  $as_echo_n "(cached) " >&6
10037else
10038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039/* end confdefs.h.  */
10040int i;
10041_ACEOF
10042if ac_fn_c_try_compile "$LINENO"; then :
10043  xorg_cv_cc_flag_unused_command_line_argument=yes
10044else
10045  xorg_cv_cc_flag_unused_command_line_argument=no
10046fi
10047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10048fi
10049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10050$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10051	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10052	CFLAGS="$xorg_testset_save_CFLAGS"
10053fi
10054
10055found="no"
10056
10057	if test $found = "no" ; then
10058		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10059			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10060		fi
10061
10062		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10063			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10064		fi
10065
10066		CFLAGS="$CFLAGS -Wwrite-strings"
10067
10068		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10069$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
10070		cacheid=xorg_cv_cc_flag__Wwrite_strings
10071		if eval \${$cacheid+:} false; then :
10072  $as_echo_n "(cached) " >&6
10073else
10074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10075/* end confdefs.h.  */
10076int i;
10077int
10078main ()
10079{
10080
10081  ;
10082  return 0;
10083}
10084_ACEOF
10085if ac_fn_c_try_link "$LINENO"; then :
10086  eval $cacheid=yes
10087else
10088  eval $cacheid=no
10089fi
10090rm -f core conftest.err conftest.$ac_objext \
10091    conftest$ac_exeext conftest.$ac_ext
10092fi
10093
10094
10095		CFLAGS="$xorg_testset_save_CFLAGS"
10096
10097		eval supported=\$$cacheid
10098		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10099$as_echo "$supported" >&6; }
10100		if test "$supported" = "yes" ; then
10101			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10102			found="yes"
10103		fi
10104	fi
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120xorg_testset_save_CFLAGS="$CFLAGS"
10121
10122if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10123	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10124	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10125$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10126if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10127  $as_echo_n "(cached) " >&6
10128else
10129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10130/* end confdefs.h.  */
10131int i;
10132_ACEOF
10133if ac_fn_c_try_compile "$LINENO"; then :
10134  xorg_cv_cc_flag_unknown_warning_option=yes
10135else
10136  xorg_cv_cc_flag_unknown_warning_option=no
10137fi
10138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10139fi
10140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10141$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10142	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10143	CFLAGS="$xorg_testset_save_CFLAGS"
10144fi
10145
10146if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10147	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10148		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10149	fi
10150	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10151	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10152$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10153if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10154  $as_echo_n "(cached) " >&6
10155else
10156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10157/* end confdefs.h.  */
10158int i;
10159_ACEOF
10160if ac_fn_c_try_compile "$LINENO"; then :
10161  xorg_cv_cc_flag_unused_command_line_argument=yes
10162else
10163  xorg_cv_cc_flag_unused_command_line_argument=no
10164fi
10165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10166fi
10167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10168$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10169	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10170	CFLAGS="$xorg_testset_save_CFLAGS"
10171fi
10172
10173found="no"
10174
10175	if test $found = "no" ; then
10176		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10177			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10178		fi
10179
10180		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10181			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10182		fi
10183
10184		CFLAGS="$CFLAGS -Waddress"
10185
10186		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10187$as_echo_n "checking if $CC supports -Waddress... " >&6; }
10188		cacheid=xorg_cv_cc_flag__Waddress
10189		if eval \${$cacheid+:} false; then :
10190  $as_echo_n "(cached) " >&6
10191else
10192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10193/* end confdefs.h.  */
10194int i;
10195int
10196main ()
10197{
10198
10199  ;
10200  return 0;
10201}
10202_ACEOF
10203if ac_fn_c_try_link "$LINENO"; then :
10204  eval $cacheid=yes
10205else
10206  eval $cacheid=no
10207fi
10208rm -f core conftest.err conftest.$ac_objext \
10209    conftest$ac_exeext conftest.$ac_ext
10210fi
10211
10212
10213		CFLAGS="$xorg_testset_save_CFLAGS"
10214
10215		eval supported=\$$cacheid
10216		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10217$as_echo "$supported" >&6; }
10218		if test "$supported" = "yes" ; then
10219			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10220			found="yes"
10221		fi
10222	fi
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238xorg_testset_save_CFLAGS="$CFLAGS"
10239
10240if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10241	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10242	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10243$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10244if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10245  $as_echo_n "(cached) " >&6
10246else
10247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10248/* end confdefs.h.  */
10249int i;
10250_ACEOF
10251if ac_fn_c_try_compile "$LINENO"; then :
10252  xorg_cv_cc_flag_unknown_warning_option=yes
10253else
10254  xorg_cv_cc_flag_unknown_warning_option=no
10255fi
10256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10257fi
10258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10259$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10260	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10261	CFLAGS="$xorg_testset_save_CFLAGS"
10262fi
10263
10264if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10265	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10266		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10267	fi
10268	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10269	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10270$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10271if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10272  $as_echo_n "(cached) " >&6
10273else
10274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10275/* end confdefs.h.  */
10276int i;
10277_ACEOF
10278if ac_fn_c_try_compile "$LINENO"; then :
10279  xorg_cv_cc_flag_unused_command_line_argument=yes
10280else
10281  xorg_cv_cc_flag_unused_command_line_argument=no
10282fi
10283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10284fi
10285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10286$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10287	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10288	CFLAGS="$xorg_testset_save_CFLAGS"
10289fi
10290
10291found="no"
10292
10293	if test $found = "no" ; then
10294		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10295			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10296		fi
10297
10298		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10299			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10300		fi
10301
10302		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10303
10304		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10305$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10306		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10307		if eval \${$cacheid+:} false; then :
10308  $as_echo_n "(cached) " >&6
10309else
10310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10311/* end confdefs.h.  */
10312int i;
10313int
10314main ()
10315{
10316
10317  ;
10318  return 0;
10319}
10320_ACEOF
10321if ac_fn_c_try_link "$LINENO"; then :
10322  eval $cacheid=yes
10323else
10324  eval $cacheid=no
10325fi
10326rm -f core conftest.err conftest.$ac_objext \
10327    conftest$ac_exeext conftest.$ac_ext
10328fi
10329
10330
10331		CFLAGS="$xorg_testset_save_CFLAGS"
10332
10333		eval supported=\$$cacheid
10334		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10335$as_echo "$supported" >&6; }
10336		if test "$supported" = "yes" ; then
10337			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10338			found="yes"
10339		fi
10340	fi
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356xorg_testset_save_CFLAGS="$CFLAGS"
10357
10358if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10359	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10360	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10361$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10362if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10363  $as_echo_n "(cached) " >&6
10364else
10365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10366/* end confdefs.h.  */
10367int i;
10368_ACEOF
10369if ac_fn_c_try_compile "$LINENO"; then :
10370  xorg_cv_cc_flag_unknown_warning_option=yes
10371else
10372  xorg_cv_cc_flag_unknown_warning_option=no
10373fi
10374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10375fi
10376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10377$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10378	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10379	CFLAGS="$xorg_testset_save_CFLAGS"
10380fi
10381
10382if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10383	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10384		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10385	fi
10386	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10387	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10388$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10389if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10390  $as_echo_n "(cached) " >&6
10391else
10392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10393/* end confdefs.h.  */
10394int i;
10395_ACEOF
10396if ac_fn_c_try_compile "$LINENO"; then :
10397  xorg_cv_cc_flag_unused_command_line_argument=yes
10398else
10399  xorg_cv_cc_flag_unused_command_line_argument=no
10400fi
10401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10402fi
10403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10404$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10405	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10406	CFLAGS="$xorg_testset_save_CFLAGS"
10407fi
10408
10409found="no"
10410
10411	if test $found = "no" ; then
10412		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10413			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10414		fi
10415
10416		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10417			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10418		fi
10419
10420		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10421
10422		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10423$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10424		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10425		if eval \${$cacheid+:} false; then :
10426  $as_echo_n "(cached) " >&6
10427else
10428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10429/* end confdefs.h.  */
10430int i;
10431int
10432main ()
10433{
10434
10435  ;
10436  return 0;
10437}
10438_ACEOF
10439if ac_fn_c_try_link "$LINENO"; then :
10440  eval $cacheid=yes
10441else
10442  eval $cacheid=no
10443fi
10444rm -f core conftest.err conftest.$ac_objext \
10445    conftest$ac_exeext conftest.$ac_ext
10446fi
10447
10448
10449		CFLAGS="$xorg_testset_save_CFLAGS"
10450
10451		eval supported=\$$cacheid
10452		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10453$as_echo "$supported" >&6; }
10454		if test "$supported" = "yes" ; then
10455			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10456			found="yes"
10457		fi
10458	fi
10459
10460
10461fi
10462
10463
10464
10465
10466
10467
10468
10469		CWARNFLAGS="$BASE_CFLAGS"
10470		if  test "x$GCC" = xyes ; then
10471		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10472		fi
10473
10474
10475
10476
10477
10478
10479
10480
10481# Check whether --enable-strict-compilation was given.
10482if test "${enable_strict_compilation+set}" = set; then :
10483  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10484else
10485  STRICT_COMPILE=no
10486fi
10487
10488
10489
10490
10491
10492
10493STRICT_CFLAGS=""
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507xorg_testset_save_CFLAGS="$CFLAGS"
10508
10509if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10510	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10511	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10512$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10513if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10514  $as_echo_n "(cached) " >&6
10515else
10516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10517/* end confdefs.h.  */
10518int i;
10519_ACEOF
10520if ac_fn_c_try_compile "$LINENO"; then :
10521  xorg_cv_cc_flag_unknown_warning_option=yes
10522else
10523  xorg_cv_cc_flag_unknown_warning_option=no
10524fi
10525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10526fi
10527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10528$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10529	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10530	CFLAGS="$xorg_testset_save_CFLAGS"
10531fi
10532
10533if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10534	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10535		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10536	fi
10537	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10538	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10539$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10540if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10541  $as_echo_n "(cached) " >&6
10542else
10543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10544/* end confdefs.h.  */
10545int i;
10546_ACEOF
10547if ac_fn_c_try_compile "$LINENO"; then :
10548  xorg_cv_cc_flag_unused_command_line_argument=yes
10549else
10550  xorg_cv_cc_flag_unused_command_line_argument=no
10551fi
10552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10553fi
10554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10555$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10556	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10557	CFLAGS="$xorg_testset_save_CFLAGS"
10558fi
10559
10560found="no"
10561
10562	if test $found = "no" ; then
10563		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10564			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10565		fi
10566
10567		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10568			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10569		fi
10570
10571		CFLAGS="$CFLAGS -pedantic"
10572
10573		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10574$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10575		cacheid=xorg_cv_cc_flag__pedantic
10576		if eval \${$cacheid+:} false; then :
10577  $as_echo_n "(cached) " >&6
10578else
10579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10580/* end confdefs.h.  */
10581int i;
10582int
10583main ()
10584{
10585
10586  ;
10587  return 0;
10588}
10589_ACEOF
10590if ac_fn_c_try_link "$LINENO"; then :
10591  eval $cacheid=yes
10592else
10593  eval $cacheid=no
10594fi
10595rm -f core conftest.err conftest.$ac_objext \
10596    conftest$ac_exeext conftest.$ac_ext
10597fi
10598
10599
10600		CFLAGS="$xorg_testset_save_CFLAGS"
10601
10602		eval supported=\$$cacheid
10603		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10604$as_echo "$supported" >&6; }
10605		if test "$supported" = "yes" ; then
10606			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10607			found="yes"
10608		fi
10609	fi
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625xorg_testset_save_CFLAGS="$CFLAGS"
10626
10627if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10628	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10629	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10630$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10631if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10632  $as_echo_n "(cached) " >&6
10633else
10634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10635/* end confdefs.h.  */
10636int i;
10637_ACEOF
10638if ac_fn_c_try_compile "$LINENO"; then :
10639  xorg_cv_cc_flag_unknown_warning_option=yes
10640else
10641  xorg_cv_cc_flag_unknown_warning_option=no
10642fi
10643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10644fi
10645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10646$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10647	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10648	CFLAGS="$xorg_testset_save_CFLAGS"
10649fi
10650
10651if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10652	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10653		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10654	fi
10655	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10656	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10657$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10658if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10659  $as_echo_n "(cached) " >&6
10660else
10661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10662/* end confdefs.h.  */
10663int i;
10664_ACEOF
10665if ac_fn_c_try_compile "$LINENO"; then :
10666  xorg_cv_cc_flag_unused_command_line_argument=yes
10667else
10668  xorg_cv_cc_flag_unused_command_line_argument=no
10669fi
10670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10671fi
10672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10673$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10674	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10675	CFLAGS="$xorg_testset_save_CFLAGS"
10676fi
10677
10678found="no"
10679
10680	if test $found = "no" ; then
10681		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10682			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10683		fi
10684
10685		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10686			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10687		fi
10688
10689		CFLAGS="$CFLAGS -Werror"
10690
10691		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10692$as_echo_n "checking if $CC supports -Werror... " >&6; }
10693		cacheid=xorg_cv_cc_flag__Werror
10694		if eval \${$cacheid+:} false; then :
10695  $as_echo_n "(cached) " >&6
10696else
10697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10698/* end confdefs.h.  */
10699int i;
10700int
10701main ()
10702{
10703
10704  ;
10705  return 0;
10706}
10707_ACEOF
10708if ac_fn_c_try_link "$LINENO"; then :
10709  eval $cacheid=yes
10710else
10711  eval $cacheid=no
10712fi
10713rm -f core conftest.err conftest.$ac_objext \
10714    conftest$ac_exeext conftest.$ac_ext
10715fi
10716
10717
10718		CFLAGS="$xorg_testset_save_CFLAGS"
10719
10720		eval supported=\$$cacheid
10721		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10722$as_echo "$supported" >&6; }
10723		if test "$supported" = "yes" ; then
10724			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10725			found="yes"
10726		fi
10727	fi
10728
10729	if test $found = "no" ; then
10730		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10731			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10732		fi
10733
10734		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10735			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10736		fi
10737
10738		CFLAGS="$CFLAGS -errwarn"
10739
10740		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10741$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10742		cacheid=xorg_cv_cc_flag__errwarn
10743		if eval \${$cacheid+:} false; then :
10744  $as_echo_n "(cached) " >&6
10745else
10746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10747/* end confdefs.h.  */
10748int i;
10749int
10750main ()
10751{
10752
10753  ;
10754  return 0;
10755}
10756_ACEOF
10757if ac_fn_c_try_link "$LINENO"; then :
10758  eval $cacheid=yes
10759else
10760  eval $cacheid=no
10761fi
10762rm -f core conftest.err conftest.$ac_objext \
10763    conftest$ac_exeext conftest.$ac_ext
10764fi
10765
10766
10767		CFLAGS="$xorg_testset_save_CFLAGS"
10768
10769		eval supported=\$$cacheid
10770		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10771$as_echo "$supported" >&6; }
10772		if test "$supported" = "yes" ; then
10773			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10774			found="yes"
10775		fi
10776	fi
10777
10778
10779
10780# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10781# activate it with -Werror, so we add it here explicitly.
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795xorg_testset_save_CFLAGS="$CFLAGS"
10796
10797if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10798	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10799	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10800$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10801if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10802  $as_echo_n "(cached) " >&6
10803else
10804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10805/* end confdefs.h.  */
10806int i;
10807_ACEOF
10808if ac_fn_c_try_compile "$LINENO"; then :
10809  xorg_cv_cc_flag_unknown_warning_option=yes
10810else
10811  xorg_cv_cc_flag_unknown_warning_option=no
10812fi
10813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10814fi
10815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10816$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10817	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10818	CFLAGS="$xorg_testset_save_CFLAGS"
10819fi
10820
10821if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10822	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10823		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10824	fi
10825	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10826	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10827$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10828if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10829  $as_echo_n "(cached) " >&6
10830else
10831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10832/* end confdefs.h.  */
10833int i;
10834_ACEOF
10835if ac_fn_c_try_compile "$LINENO"; then :
10836  xorg_cv_cc_flag_unused_command_line_argument=yes
10837else
10838  xorg_cv_cc_flag_unused_command_line_argument=no
10839fi
10840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10841fi
10842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10843$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10844	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10845	CFLAGS="$xorg_testset_save_CFLAGS"
10846fi
10847
10848found="no"
10849
10850	if test $found = "no" ; then
10851		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10852			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10853		fi
10854
10855		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10856			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10857		fi
10858
10859		CFLAGS="$CFLAGS -Werror=attributes"
10860
10861		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10862$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10863		cacheid=xorg_cv_cc_flag__Werror_attributes
10864		if eval \${$cacheid+:} false; then :
10865  $as_echo_n "(cached) " >&6
10866else
10867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10868/* end confdefs.h.  */
10869int i;
10870int
10871main ()
10872{
10873
10874  ;
10875  return 0;
10876}
10877_ACEOF
10878if ac_fn_c_try_link "$LINENO"; then :
10879  eval $cacheid=yes
10880else
10881  eval $cacheid=no
10882fi
10883rm -f core conftest.err conftest.$ac_objext \
10884    conftest$ac_exeext conftest.$ac_ext
10885fi
10886
10887
10888		CFLAGS="$xorg_testset_save_CFLAGS"
10889
10890		eval supported=\$$cacheid
10891		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10892$as_echo "$supported" >&6; }
10893		if test "$supported" = "yes" ; then
10894			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10895			found="yes"
10896		fi
10897	fi
10898
10899
10900
10901if test "x$STRICT_COMPILE" = "xyes"; then
10902    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10903    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10904fi
10905
10906
10907
10908
10909
10910
10911cat >>confdefs.h <<_ACEOF
10912#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10913_ACEOF
10914
10915	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10916	if test "x$PVM" = "x"; then
10917		PVM="0"
10918	fi
10919
10920cat >>confdefs.h <<_ACEOF
10921#define PACKAGE_VERSION_MINOR $PVM
10922_ACEOF
10923
10924	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10925	if test "x$PVP" = "x"; then
10926		PVP="0"
10927	fi
10928
10929cat >>confdefs.h <<_ACEOF
10930#define PACKAGE_VERSION_PATCHLEVEL $PVP
10931_ACEOF
10932
10933
10934
10935CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10936mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10937|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10938echo 'git directory not found: installing possibly empty changelog.' >&2)"
10939
10940
10941
10942
10943macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10944INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10945mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10946|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10947echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10948
10949
10950
10951
10952
10953
10954if test x$APP_MAN_SUFFIX = x    ; then
10955    APP_MAN_SUFFIX=1
10956fi
10957if test x$APP_MAN_DIR = x    ; then
10958    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10959fi
10960
10961if test x$LIB_MAN_SUFFIX = x    ; then
10962    LIB_MAN_SUFFIX=3
10963fi
10964if test x$LIB_MAN_DIR = x    ; then
10965    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10966fi
10967
10968if test x$FILE_MAN_SUFFIX = x    ; then
10969    case $host_os in
10970	solaris*)	FILE_MAN_SUFFIX=4  ;;
10971	*)		FILE_MAN_SUFFIX=5  ;;
10972    esac
10973fi
10974if test x$FILE_MAN_DIR = x    ; then
10975    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10976fi
10977
10978if test x$MISC_MAN_SUFFIX = x    ; then
10979    case $host_os in
10980	solaris*)	MISC_MAN_SUFFIX=5  ;;
10981	*)		MISC_MAN_SUFFIX=7  ;;
10982    esac
10983fi
10984if test x$MISC_MAN_DIR = x    ; then
10985    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10986fi
10987
10988if test x$DRIVER_MAN_SUFFIX = x    ; then
10989    case $host_os in
10990	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10991	*)		DRIVER_MAN_SUFFIX=4  ;;
10992    esac
10993fi
10994if test x$DRIVER_MAN_DIR = x    ; then
10995    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10996fi
10997
10998if test x$ADMIN_MAN_SUFFIX = x    ; then
10999    case $host_os in
11000	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
11001	*)		ADMIN_MAN_SUFFIX=8  ;;
11002    esac
11003fi
11004if test x$ADMIN_MAN_DIR = x    ; then
11005    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11006fi
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022XORG_MAN_PAGE="X Version 11"
11023
11024MAN_SUBSTS="\
11025	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11026	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11027	-e 's|__xservername__|Xorg|g' \
11028	-e 's|__xconfigfile__|xorg.conf|g' \
11029	-e 's|__projectroot__|\$(prefix)|g' \
11030	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11031	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11032	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11033	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11034	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11035	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11036	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11037
11038
11039
11040# Check whether --enable-silent-rules was given.
11041if test "${enable_silent_rules+set}" = set; then :
11042  enableval=$enable_silent_rules;
11043fi
11044
11045case $enable_silent_rules in # (((
11046  yes) AM_DEFAULT_VERBOSITY=0;;
11047   no) AM_DEFAULT_VERBOSITY=1;;
11048    *) AM_DEFAULT_VERBOSITY=0;;
11049esac
11050am_make=${MAKE-make}
11051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11052$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
11053if ${am_cv_make_support_nested_variables+:} false; then :
11054  $as_echo_n "(cached) " >&6
11055else
11056  if $as_echo 'TRUE=$(BAR$(V))
11057BAR0=false
11058BAR1=true
11059V=1
11060am__doit:
11061	@$(TRUE)
11062.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11063  am_cv_make_support_nested_variables=yes
11064else
11065  am_cv_make_support_nested_variables=no
11066fi
11067fi
11068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11069$as_echo "$am_cv_make_support_nested_variables" >&6; }
11070if test $am_cv_make_support_nested_variables = yes; then
11071    AM_V='$(V)'
11072  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11073else
11074  AM_V=$AM_DEFAULT_VERBOSITY
11075  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11076fi
11077AM_BACKSLASH='\'
11078
11079
11080
11081
11082# Check whether --enable-devel-docs was given.
11083if test "${enable_devel_docs+set}" = set; then :
11084  enableval=$enable_devel_docs; build_devel_docs=$enableval
11085else
11086  build_devel_docs=yes
11087fi
11088
11089
11090 if test x$build_devel_docs = xyes; then
11091  ENABLE_DEVEL_DOCS_TRUE=
11092  ENABLE_DEVEL_DOCS_FALSE='#'
11093else
11094  ENABLE_DEVEL_DOCS_TRUE='#'
11095  ENABLE_DEVEL_DOCS_FALSE=
11096fi
11097
11098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
11099$as_echo_n "checking whether to build developer documentation... " >&6; }
11100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
11101$as_echo "$build_devel_docs" >&6; }
11102
11103
11104
11105
11106
11107# Check whether --with-xmlto was given.
11108if test "${with_xmlto+set}" = set; then :
11109  withval=$with_xmlto; use_xmlto=$withval
11110else
11111  use_xmlto=auto
11112fi
11113
11114
11115
11116if test "x$use_xmlto" = x"auto"; then
11117   # Extract the first word of "xmlto", so it can be a program name with args.
11118set dummy xmlto; ac_word=$2
11119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11120$as_echo_n "checking for $ac_word... " >&6; }
11121if ${ac_cv_path_XMLTO+:} false; then :
11122  $as_echo_n "(cached) " >&6
11123else
11124  case $XMLTO in
11125  [\\/]* | ?:[\\/]*)
11126  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
11127  ;;
11128  *)
11129  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11130for as_dir in $PATH
11131do
11132  IFS=$as_save_IFS
11133  test -z "$as_dir" && as_dir=.
11134    for ac_exec_ext in '' $ac_executable_extensions; do
11135  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11136    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
11137    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11138    break 2
11139  fi
11140done
11141  done
11142IFS=$as_save_IFS
11143
11144  ;;
11145esac
11146fi
11147XMLTO=$ac_cv_path_XMLTO
11148if test -n "$XMLTO"; then
11149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
11150$as_echo "$XMLTO" >&6; }
11151else
11152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11153$as_echo "no" >&6; }
11154fi
11155
11156
11157   if test "x$XMLTO" = "x"; then
11158        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
11159$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
11160	have_xmlto=no
11161   else
11162        have_xmlto=yes
11163   fi
11164elif test "x$use_xmlto" = x"yes" ; then
11165   # Extract the first word of "xmlto", so it can be a program name with args.
11166set dummy xmlto; ac_word=$2
11167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11168$as_echo_n "checking for $ac_word... " >&6; }
11169if ${ac_cv_path_XMLTO+:} false; then :
11170  $as_echo_n "(cached) " >&6
11171else
11172  case $XMLTO in
11173  [\\/]* | ?:[\\/]*)
11174  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
11175  ;;
11176  *)
11177  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11178for as_dir in $PATH
11179do
11180  IFS=$as_save_IFS
11181  test -z "$as_dir" && as_dir=.
11182    for ac_exec_ext in '' $ac_executable_extensions; do
11183  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11184    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
11185    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11186    break 2
11187  fi
11188done
11189  done
11190IFS=$as_save_IFS
11191
11192  ;;
11193esac
11194fi
11195XMLTO=$ac_cv_path_XMLTO
11196if test -n "$XMLTO"; then
11197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
11198$as_echo "$XMLTO" >&6; }
11199else
11200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11201$as_echo "no" >&6; }
11202fi
11203
11204
11205   if test "x$XMLTO" = "x"; then
11206        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
11207   fi
11208   have_xmlto=yes
11209elif test "x$use_xmlto" = x"no" ; then
11210   if test "x$XMLTO" != "x"; then
11211      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
11212$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
11213   fi
11214   have_xmlto=no
11215else
11216   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
11217fi
11218
11219# Test for a minimum version of xmlto, if provided.
11220if test "$have_xmlto" = yes; then
11221    # scrape the xmlto version
11222    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
11223$as_echo_n "checking the xmlto version... " >&6; }
11224    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
11225    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
11226$as_echo "$xmlto_version" >&6; }
11227    as_arg_v1=$xmlto_version
11228as_arg_v2=0.0.20
11229awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
11230case $? in #(
11231  1) :
11232    if test "x$use_xmlto" = xauto; then
11233            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5
11234$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;}
11235            have_xmlto=no
11236        else
11237            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5
11238        fi ;; #(
11239  0) :
11240     ;; #(
11241  2) :
11242     ;; #(
11243  *) :
11244     ;;
11245esac
11246fi
11247
11248# Test for the ability of xmlto to generate a text target
11249have_xmlto_text=no
11250cat > conftest.xml << "EOF"
11251EOF
11252if test "$have_xmlto" = yes; then :
11253  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
11254  have_xmlto_text=yes
11255else
11256  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
11257$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
11258fi
11259fi
11260rm -f conftest.xml
11261 if test $have_xmlto_text = yes; then
11262  HAVE_XMLTO_TEXT_TRUE=
11263  HAVE_XMLTO_TEXT_FALSE='#'
11264else
11265  HAVE_XMLTO_TEXT_TRUE='#'
11266  HAVE_XMLTO_TEXT_FALSE=
11267fi
11268
11269 if test "$have_xmlto" = yes; then
11270  HAVE_XMLTO_TRUE=
11271  HAVE_XMLTO_FALSE='#'
11272else
11273  HAVE_XMLTO_TRUE='#'
11274  HAVE_XMLTO_FALSE=
11275fi
11276
11277
11278
11279
11280
11281
11282# Check whether --with-fop was given.
11283if test "${with_fop+set}" = set; then :
11284  withval=$with_fop; use_fop=$withval
11285else
11286  use_fop=auto
11287fi
11288
11289
11290
11291if test "x$use_fop" = x"auto"; then
11292   # Extract the first word of "fop", so it can be a program name with args.
11293set dummy fop; ac_word=$2
11294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11295$as_echo_n "checking for $ac_word... " >&6; }
11296if ${ac_cv_path_FOP+:} false; then :
11297  $as_echo_n "(cached) " >&6
11298else
11299  case $FOP in
11300  [\\/]* | ?:[\\/]*)
11301  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
11302  ;;
11303  *)
11304  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11305for as_dir in $PATH
11306do
11307  IFS=$as_save_IFS
11308  test -z "$as_dir" && as_dir=.
11309    for ac_exec_ext in '' $ac_executable_extensions; do
11310  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11311    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
11312    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11313    break 2
11314  fi
11315done
11316  done
11317IFS=$as_save_IFS
11318
11319  ;;
11320esac
11321fi
11322FOP=$ac_cv_path_FOP
11323if test -n "$FOP"; then
11324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
11325$as_echo "$FOP" >&6; }
11326else
11327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11328$as_echo "no" >&6; }
11329fi
11330
11331
11332   if test "x$FOP" = "x"; then
11333        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
11334$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
11335	have_fop=no
11336   else
11337        have_fop=yes
11338   fi
11339elif test "x$use_fop" = x"yes" ; then
11340   # Extract the first word of "fop", so it can be a program name with args.
11341set dummy fop; ac_word=$2
11342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11343$as_echo_n "checking for $ac_word... " >&6; }
11344if ${ac_cv_path_FOP+:} false; then :
11345  $as_echo_n "(cached) " >&6
11346else
11347  case $FOP in
11348  [\\/]* | ?:[\\/]*)
11349  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
11350  ;;
11351  *)
11352  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353for as_dir in $PATH
11354do
11355  IFS=$as_save_IFS
11356  test -z "$as_dir" && as_dir=.
11357    for ac_exec_ext in '' $ac_executable_extensions; do
11358  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11359    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
11360    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11361    break 2
11362  fi
11363done
11364  done
11365IFS=$as_save_IFS
11366
11367  ;;
11368esac
11369fi
11370FOP=$ac_cv_path_FOP
11371if test -n "$FOP"; then
11372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
11373$as_echo "$FOP" >&6; }
11374else
11375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11376$as_echo "no" >&6; }
11377fi
11378
11379
11380   if test "x$FOP" = "x"; then
11381        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
11382   fi
11383   have_fop=yes
11384elif test "x$use_fop" = x"no" ; then
11385   if test "x$FOP" != "x"; then
11386      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
11387$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
11388   fi
11389   have_fop=no
11390else
11391   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
11392fi
11393
11394# Test for a minimum version of fop, if provided.
11395
11396 if test "$have_fop" = yes; then
11397  HAVE_FOP_TRUE=
11398  HAVE_FOP_FALSE='#'
11399else
11400  HAVE_FOP_TRUE='#'
11401  HAVE_FOP_FALSE=
11402fi
11403
11404
11405
11406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.5" >&5
11407$as_echo_n "checking for X.Org SGML entities >= 1.5... " >&6; }
11408XORG_SGML_PATH=
11409if test -n "$PKG_CONFIG" && \
11410    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.5\""; } >&5
11411  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.5") 2>&5
11412  ac_status=$?
11413  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11414  test $ac_status = 0; }; then
11415  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
11416else
11417  :
11418
11419fi
11420
11421# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
11422# the path and the name of the doc stylesheet
11423if test "x$XORG_SGML_PATH" != "x" ; then
11424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
11425$as_echo "$XORG_SGML_PATH" >&6; }
11426   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
11427   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
11428else
11429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11430$as_echo "no" >&6; }
11431fi
11432
11433
11434
11435
11436 if test "x$XSL_STYLESHEET" != "x"; then
11437  HAVE_STYLESHEETS_TRUE=
11438  HAVE_STYLESHEETS_FALSE='#'
11439else
11440  HAVE_STYLESHEETS_TRUE='#'
11441  HAVE_STYLESHEETS_FALSE=
11442fi
11443
11444
11445
11446
11447
11448
11449
11450# Check whether --with-lint was given.
11451if test "${with_lint+set}" = set; then :
11452  withval=$with_lint; use_lint=$withval
11453else
11454  use_lint=no
11455fi
11456
11457
11458# Obtain platform specific info like program name and options
11459# The lint program on FreeBSD and NetBSD is different from the one on Solaris
11460case $host_os in
11461  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
11462	lint_name=splint
11463	lint_options="-badflag"
11464	;;
11465  *freebsd* | *netbsd*)
11466	lint_name=lint
11467	lint_options="-u -b"
11468	;;
11469  *solaris*)
11470	lint_name=lint
11471	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
11472	;;
11473esac
11474
11475# Test for the presence of the program (either guessed by the code or spelled out by the user)
11476if test "x$use_lint" = x"yes" ; then
11477   # Extract the first word of "$lint_name", so it can be a program name with args.
11478set dummy $lint_name; ac_word=$2
11479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11480$as_echo_n "checking for $ac_word... " >&6; }
11481if ${ac_cv_path_LINT+:} false; then :
11482  $as_echo_n "(cached) " >&6
11483else
11484  case $LINT in
11485  [\\/]* | ?:[\\/]*)
11486  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
11487  ;;
11488  *)
11489  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490for as_dir in $PATH
11491do
11492  IFS=$as_save_IFS
11493  test -z "$as_dir" && as_dir=.
11494    for ac_exec_ext in '' $ac_executable_extensions; do
11495  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11496    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
11497    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11498    break 2
11499  fi
11500done
11501  done
11502IFS=$as_save_IFS
11503
11504  ;;
11505esac
11506fi
11507LINT=$ac_cv_path_LINT
11508if test -n "$LINT"; then
11509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
11510$as_echo "$LINT" >&6; }
11511else
11512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11513$as_echo "no" >&6; }
11514fi
11515
11516
11517   if test "x$LINT" = "x"; then
11518        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
11519   fi
11520elif test "x$use_lint" = x"no" ; then
11521   if test "x$LINT" != "x"; then
11522      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
11523$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
11524   fi
11525else
11526   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
11527fi
11528
11529# User supplied flags override default flags
11530if test "x$LINT_FLAGS" != "x"; then
11531   lint_options=$LINT_FLAGS
11532fi
11533
11534LINT_FLAGS=$lint_options
11535
11536 if test "x$LINT" != x; then
11537  LINT_TRUE=
11538  LINT_FALSE='#'
11539else
11540  LINT_TRUE='#'
11541  LINT_FALSE=
11542fi
11543
11544
11545
11546
11547for ac_header in stdint.h
11548do :
11549  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11550if test "x$ac_cv_header_stdint_h" = xyes; then :
11551  cat >>confdefs.h <<_ACEOF
11552#define HAVE_STDINT_H 1
11553_ACEOF
11554
11555fi
11556
11557done
11558
11559
11560
11561# Check whether --with-default-config-file was given.
11562if test "${with_default_config_file+set}" = set; then :
11563  withval=$with_default_config_file; CONFIG_FILE="$withval"
11564else
11565  CONFIG_FILE="${sysconfdir}/X11/fs/config"
11566fi
11567
11568
11569DEFAULT_CONFIG_FILE=`echo ${CONFIG_FILE} | sed 's/,/\\\\\\\\\\\",\\\\\\\\\\\"/'g`
11570
11571  prefix_NONE=
11572  exec_prefix_NONE=
11573  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
11574  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
11575  eval ax_define_dir="\"$DEFAULT_CONFIG_FILE\""
11576  eval ax_define_dir="\"$ax_define_dir\""
11577  DEFAULT_CONFIG_FILE="$ax_define_dir"
11578
11579
11580cat >>confdefs.h <<_ACEOF
11581#define DEFAULT_CONFIG_FILE "$ax_define_dir"
11582_ACEOF
11583
11584  test "$prefix_NONE" && prefix=NONE
11585  test "$exec_prefix_NONE" && exec_prefix=NONE
11586
11587
11588# generate text for the man page
11589case $CONFIG_FILE in
11590    *,*)
11591	CONFIG_FILE_DESC="the first file found from the list:"
11592	CONFIG_FILE_PATH=`echo ${CONFIG_FILE} | sed 's/,/\\\\\\\\fR, \\\\\\\\fI/g'`
11593	;;
11594    *)
11595	CONFIG_FILE_DESC="the default file,"
11596	CONFIG_FILE_PATH="${CONFIG_FILE}"
11597	;;
11598esac
11599
11600
11601
11602# Require X.Org's font util macros 1.1 or later for XORG_FONTROOTDIR
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
11619$as_echo_n "checking for root directory for font files... " >&6; }
11620
11621# Check whether --with-fontrootdir was given.
11622if test "${with_fontrootdir+set}" = set; then :
11623  withval=$with_fontrootdir; FONTROOTDIR="$withval"
11624fi
11625
11626	# if --with-fontrootdir not specified...
11627	if test "x${FONTROOTDIR}" = "x"; then
11628		FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil`
11629	fi
11630	# ...and if pkg-config didn't find fontdir in fontutil.pc...
11631	if test "x${FONTROOTDIR}" = "x"; then
11632		FONTROOTDIR="${datadir}/fonts/X11"
11633	fi
11634
11635	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5
11636$as_echo "${FONTROOTDIR}" >&6; }
11637
11638
11639
11640
11641	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for misc files" >&5
11642$as_echo_n "checking for directory for misc files... " >&6; }
11643
11644# Check whether --with-fontmiscdir was given.
11645if test "${with_fontmiscdir+set}" = set; then :
11646  withval=$with_fontmiscdir; FONTMISCDIR="${withval}"
11647else
11648  FONTMISCDIR='${FONTROOTDIR}/misc'
11649fi
11650
11651
11652	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTMISCDIR}" >&5
11653$as_echo "${FONTMISCDIR}" >&6; }
11654
11655
11656
11657
11658	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for OTF files" >&5
11659$as_echo_n "checking for directory for OTF files... " >&6; }
11660
11661# Check whether --with-fontotfdir was given.
11662if test "${with_fontotfdir+set}" = set; then :
11663  withval=$with_fontotfdir; FONTOTFDIR="${withval}"
11664else
11665  FONTOTFDIR='${FONTROOTDIR}/OTF'
11666fi
11667
11668
11669	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTOTFDIR}" >&5
11670$as_echo "${FONTOTFDIR}" >&6; }
11671
11672
11673
11674
11675	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for TTF files" >&5
11676$as_echo_n "checking for directory for TTF files... " >&6; }
11677
11678# Check whether --with-fontttfdir was given.
11679if test "${with_fontttfdir+set}" = set; then :
11680  withval=$with_fontttfdir; FONTTTFDIR="${withval}"
11681else
11682  FONTTTFDIR='${FONTROOTDIR}/TTF'
11683fi
11684
11685
11686	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTTTFDIR}" >&5
11687$as_echo "${FONTTTFDIR}" >&6; }
11688
11689
11690
11691
11692	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for Type1 files" >&5
11693$as_echo_n "checking for directory for Type1 files... " >&6; }
11694
11695# Check whether --with-fonttype1dir was given.
11696if test "${with_fonttype1dir+set}" = set; then :
11697  withval=$with_fonttype1dir; FONTTYPE1DIR="${withval}"
11698else
11699  FONTTYPE1DIR='${FONTROOTDIR}/Type1'
11700fi
11701
11702
11703	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTTYPE1DIR}" >&5
11704$as_echo "${FONTTYPE1DIR}" >&6; }
11705
11706
11707
11708
11709	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for 75dpi files" >&5
11710$as_echo_n "checking for directory for 75dpi files... " >&6; }
11711
11712# Check whether --with-font75dpidir was given.
11713if test "${with_font75dpidir+set}" = set; then :
11714  withval=$with_font75dpidir; FONT75DPIDIR="${withval}"
11715else
11716  FONT75DPIDIR='${FONTROOTDIR}/75dpi'
11717fi
11718
11719
11720	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONT75DPIDIR}" >&5
11721$as_echo "${FONT75DPIDIR}" >&6; }
11722
11723
11724
11725
11726	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for 100dpi files" >&5
11727$as_echo_n "checking for directory for 100dpi files... " >&6; }
11728
11729# Check whether --with-font100dpidir was given.
11730if test "${with_font100dpidir+set}" = set; then :
11731  withval=$with_font100dpidir; FONT100DPIDIR="${withval}"
11732else
11733  FONT100DPIDIR='${FONTROOTDIR}/100dpi'
11734fi
11735
11736
11737	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONT100DPIDIR}" >&5
11738$as_echo "${FONT100DPIDIR}" >&6; }
11739
11740
11741# Determine font path to put in config file
11742# Uses --default-font-path if set, otherwise checks for /etc/X11/fontpath.d,
11743# otherwise uses standard subdirectories of FONTROOTDIR. When cross
11744# compiling, assume default font path uses standard FONTROOTDIR directories.
11745DEFAULT_FONT_PATH="${FONTMISCDIR}/,${FONTTTFDIR}/,${FONTOTFDIR}/,${FONTTYPE1DIR}/,${FONT100DPIDIR}/,${FONT75DPIDIR}/"
11746if test "$cross_compiling" != yes; then
11747	as_ac_File=`$as_echo "ac_cv_file_${sysconfdir}/X11/fontpath.d" | $as_tr_sh`
11748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sysconfdir}/X11/fontpath.d" >&5
11749$as_echo_n "checking for ${sysconfdir}/X11/fontpath.d... " >&6; }
11750if eval \${$as_ac_File+:} false; then :
11751  $as_echo_n "(cached) " >&6
11752else
11753  test "$cross_compiling" = yes &&
11754  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11755if test -r "${sysconfdir}/X11/fontpath.d"; then
11756  eval "$as_ac_File=yes"
11757else
11758  eval "$as_ac_File=no"
11759fi
11760fi
11761eval ac_res=\$$as_ac_File
11762	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11763$as_echo "$ac_res" >&6; }
11764if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
11765  DEFAULT_FONT_PATH='catalogue:${sysconfdir}/X11/fontpath.d'
11766else
11767  case $host_os in
11768			darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;;
11769		esac
11770fi
11771
11772fi
11773
11774# Check whether --with-default-font-path was given.
11775if test "${with_default_font_path+set}" = set; then :
11776  withval=$with_default_font_path;  FONTPATH="$withval"
11777else
11778   FONTPATH="${DEFAULT_FONT_PATH}"
11779fi
11780
11781
11782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default font path" >&5
11783$as_echo_n "checking for default font path... " >&6; }
11784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTPATH" >&5
11785$as_echo "$FONTPATH" >&6; }
11786
11787
11788
11789# Option to enable support for starting from inetd
11790# Check whether --enable-inetd was given.
11791if test "${enable_inetd+set}" = set; then :
11792  enableval=$enable_inetd; INETD=$enableval
11793else
11794  INETD=yes
11795fi
11796
11797if test "x$INETD" = xyes; then
11798
11799$as_echo "#define XFS_INETD 1" >>confdefs.h
11800
11801fi
11802
11803# Option to enable support for logging to syslog
11804# Check whether --enable-syslog was given.
11805if test "${enable_syslog+set}" = set; then :
11806  enableval=$enable_syslog; SYSLOG=$enableval
11807else
11808  SYSLOG=yes
11809fi
11810
11811if test "x$SYSLOG" = xyes; then
11812
11813$as_echo "#define USE_SYSLOG 1" >>confdefs.h
11814
11815fi
11816
11817
11818# Checks for system functions / libraries
11819for ac_func in daemon
11820do :
11821  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
11822if test "x$ac_cv_func_daemon" = xyes; then :
11823  cat >>confdefs.h <<_ACEOF
11824#define HAVE_DAEMON 1
11825_ACEOF
11826
11827fi
11828done
11829
11830
11831# Checks for pkg-config packages
11832#  - xproto >= 7.0.17 required for _X_NORETURN in <X11/Xfuncproto.h>
11833#  - xfont >= 2.0.1 for new server API
11834
11835pkg_failed=no
11836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFS" >&5
11837$as_echo_n "checking for XFS... " >&6; }
11838
11839if test -n "$XFS_CFLAGS"; then
11840    pkg_cv_XFS_CFLAGS="$XFS_CFLAGS"
11841 elif test -n "$PKG_CONFIG"; then
11842    if test -n "$PKG_CONFIG" && \
11843    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xfont2 >= 2.0.1 xtrans\""; } >&5
11844  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xfont2 >= 2.0.1 xtrans") 2>&5
11845  ac_status=$?
11846  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11847  test $ac_status = 0; }; then
11848  pkg_cv_XFS_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 xfont2 >= 2.0.1 xtrans" 2>/dev/null`
11849		      test "x$?" != "x0" && pkg_failed=yes
11850else
11851  pkg_failed=yes
11852fi
11853 else
11854    pkg_failed=untried
11855fi
11856if test -n "$XFS_LIBS"; then
11857    pkg_cv_XFS_LIBS="$XFS_LIBS"
11858 elif test -n "$PKG_CONFIG"; then
11859    if test -n "$PKG_CONFIG" && \
11860    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xfont2 >= 2.0.1 xtrans\""; } >&5
11861  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xfont2 >= 2.0.1 xtrans") 2>&5
11862  ac_status=$?
11863  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11864  test $ac_status = 0; }; then
11865  pkg_cv_XFS_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 xfont2 >= 2.0.1 xtrans" 2>/dev/null`
11866		      test "x$?" != "x0" && pkg_failed=yes
11867else
11868  pkg_failed=yes
11869fi
11870 else
11871    pkg_failed=untried
11872fi
11873
11874
11875
11876if test $pkg_failed = yes; then
11877   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11878$as_echo "no" >&6; }
11879
11880if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11881        _pkg_short_errors_supported=yes
11882else
11883        _pkg_short_errors_supported=no
11884fi
11885        if test $_pkg_short_errors_supported = yes; then
11886	        XFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17 xfont2 >= 2.0.1 xtrans" 2>&1`
11887        else
11888	        XFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17 xfont2 >= 2.0.1 xtrans" 2>&1`
11889        fi
11890	# Put the nasty error message in config.log where it belongs
11891	echo "$XFS_PKG_ERRORS" >&5
11892
11893	as_fn_error $? "Package requirements (xproto >= 7.0.17 xfont2 >= 2.0.1 xtrans) were not met:
11894
11895$XFS_PKG_ERRORS
11896
11897Consider adjusting the PKG_CONFIG_PATH environment variable if you
11898installed software in a non-standard prefix.
11899
11900Alternatively, you may set the environment variables XFS_CFLAGS
11901and XFS_LIBS to avoid the need to call pkg-config.
11902See the pkg-config man page for more details." "$LINENO" 5
11903elif test $pkg_failed = untried; then
11904     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905$as_echo "no" >&6; }
11906	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11907$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11908as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11909is in your PATH or set the PKG_CONFIG environment variable to the full
11910path to pkg-config.
11911
11912Alternatively, you may set the environment variables XFS_CFLAGS
11913and XFS_LIBS to avoid the need to call pkg-config.
11914See the pkg-config man page for more details.
11915
11916To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11917See \`config.log' for more details" "$LINENO" 5; }
11918else
11919	XFS_CFLAGS=$pkg_cv_XFS_CFLAGS
11920	XFS_LIBS=$pkg_cv_XFS_LIBS
11921        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11922$as_echo "yes" >&6; }
11923
11924fi
11925
11926case "$host_os" in
11927  cygwin*|mingw*)
11928    CFLAGS="$CFLAGS -DFD_SETSIZE=256"
11929    LDFLAGS="$LDFLAGS -Wl,--export-all" ;;
11930esac
11931
11932# Transport selection macro from xtrans.m4
11933
11934
11935 case $host_os in
11936	mingw*)	unixdef="no"   ;;
11937	*)	unixdef="yes"  ;;
11938 esac
11939 # Check whether --enable-unix-transport was given.
11940if test "${enable_unix_transport+set}" = set; then :
11941  enableval=$enable_unix_transport; UNIXCONN=$enableval
11942else
11943  UNIXCONN=$unixdef
11944fi
11945
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
11947$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
11948 if test "$UNIXCONN" = "yes"; then
11949
11950$as_echo "#define UNIXCONN 1" >>confdefs.h
11951
11952 fi
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
11954$as_echo "$UNIXCONN" >&6; }
11955 # Check whether --enable-tcp-transport was given.
11956if test "${enable_tcp_transport+set}" = set; then :
11957  enableval=$enable_tcp_transport; TCPCONN=$enableval
11958else
11959  TCPCONN=yes
11960fi
11961
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
11963$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
11965$as_echo "$TCPCONN" >&6; }
11966 if test "$TCPCONN" = "yes"; then
11967
11968$as_echo "#define TCPCONN 1" >>confdefs.h
11969
11970
11971 # SVR4 hides these in libraries other than libc
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11973$as_echo_n "checking for library containing socket... " >&6; }
11974if ${ac_cv_search_socket+:} false; then :
11975  $as_echo_n "(cached) " >&6
11976else
11977  ac_func_search_save_LIBS=$LIBS
11978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979/* end confdefs.h.  */
11980
11981/* Override any GCC internal prototype to avoid an error.
11982   Use char because int might match the return type of a GCC
11983   builtin and then its argument prototype would still apply.  */
11984#ifdef __cplusplus
11985extern "C"
11986#endif
11987char socket ();
11988int
11989main ()
11990{
11991return socket ();
11992  ;
11993  return 0;
11994}
11995_ACEOF
11996for ac_lib in '' socket; do
11997  if test -z "$ac_lib"; then
11998    ac_res="none required"
11999  else
12000    ac_res=-l$ac_lib
12001    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12002  fi
12003  if ac_fn_c_try_link "$LINENO"; then :
12004  ac_cv_search_socket=$ac_res
12005fi
12006rm -f core conftest.err conftest.$ac_objext \
12007    conftest$ac_exeext
12008  if ${ac_cv_search_socket+:} false; then :
12009  break
12010fi
12011done
12012if ${ac_cv_search_socket+:} false; then :
12013
12014else
12015  ac_cv_search_socket=no
12016fi
12017rm conftest.$ac_ext
12018LIBS=$ac_func_search_save_LIBS
12019fi
12020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12021$as_echo "$ac_cv_search_socket" >&6; }
12022ac_res=$ac_cv_search_socket
12023if test "$ac_res" != no; then :
12024  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12025
12026fi
12027
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12029$as_echo_n "checking for library containing gethostbyname... " >&6; }
12030if ${ac_cv_search_gethostbyname+:} false; then :
12031  $as_echo_n "(cached) " >&6
12032else
12033  ac_func_search_save_LIBS=$LIBS
12034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12035/* end confdefs.h.  */
12036
12037/* Override any GCC internal prototype to avoid an error.
12038   Use char because int might match the return type of a GCC
12039   builtin and then its argument prototype would still apply.  */
12040#ifdef __cplusplus
12041extern "C"
12042#endif
12043char gethostbyname ();
12044int
12045main ()
12046{
12047return gethostbyname ();
12048  ;
12049  return 0;
12050}
12051_ACEOF
12052for ac_lib in '' nsl; do
12053  if test -z "$ac_lib"; then
12054    ac_res="none required"
12055  else
12056    ac_res=-l$ac_lib
12057    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12058  fi
12059  if ac_fn_c_try_link "$LINENO"; then :
12060  ac_cv_search_gethostbyname=$ac_res
12061fi
12062rm -f core conftest.err conftest.$ac_objext \
12063    conftest$ac_exeext
12064  if ${ac_cv_search_gethostbyname+:} false; then :
12065  break
12066fi
12067done
12068if ${ac_cv_search_gethostbyname+:} false; then :
12069
12070else
12071  ac_cv_search_gethostbyname=no
12072fi
12073rm conftest.$ac_ext
12074LIBS=$ac_func_search_save_LIBS
12075fi
12076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12077$as_echo "$ac_cv_search_gethostbyname" >&6; }
12078ac_res=$ac_cv_search_gethostbyname
12079if test "$ac_res" != no; then :
12080  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12081
12082fi
12083
12084 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
12085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
12086$as_echo_n "checking for main in -lws2_32... " >&6; }
12087if ${ac_cv_lib_ws2_32_main+:} false; then :
12088  $as_echo_n "(cached) " >&6
12089else
12090  ac_check_lib_save_LIBS=$LIBS
12091LIBS="-lws2_32  $LIBS"
12092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12093/* end confdefs.h.  */
12094
12095
12096int
12097main ()
12098{
12099return main ();
12100  ;
12101  return 0;
12102}
12103_ACEOF
12104if ac_fn_c_try_link "$LINENO"; then :
12105  ac_cv_lib_ws2_32_main=yes
12106else
12107  ac_cv_lib_ws2_32_main=no
12108fi
12109rm -f core conftest.err conftest.$ac_objext \
12110    conftest$ac_exeext conftest.$ac_ext
12111LIBS=$ac_check_lib_save_LIBS
12112fi
12113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
12114$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
12115if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
12116  cat >>confdefs.h <<_ACEOF
12117#define HAVE_LIBWS2_32 1
12118_ACEOF
12119
12120  LIBS="-lws2_32 $LIBS"
12121
12122fi
12123
12124 fi
12125
12126 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
12127 # Check whether --enable-ipv6 was given.
12128if test "${enable_ipv6+set}" = set; then :
12129  enableval=$enable_ipv6; IPV6CONN=$enableval
12130else
12131  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12132if test "x$ac_cv_func_getaddrinfo" = xyes; then :
12133  IPV6CONN=yes
12134else
12135  IPV6CONN=no
12136fi
12137
12138fi
12139
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
12141$as_echo_n "checking if IPv6 support should be built... " >&6; }
12142 if test "$IPV6CONN" = "yes"; then
12143
12144$as_echo "#define IPv6 1" >>confdefs.h
12145
12146 fi
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
12148$as_echo "$IPV6CONN" >&6; }
12149
12150 # 4.3BSD-Reno added a new member to struct sockaddr_in
12151 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
12152#include <sys/types.h>
12153#include <sys/socket.h>
12154#include <netinet/in.h>
12155
12156"
12157if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
12158
12159$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
12160
12161fi
12162
12163
12164 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
12165 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
12166$ac_includes_default
12167#include <sys/socket.h>
12168"
12169if test "x$ac_cv_type_socklen_t" = xyes; then :
12170
12171cat >>confdefs.h <<_ACEOF
12172#define HAVE_SOCKLEN_T 1
12173_ACEOF
12174
12175
12176fi
12177
12178
12179 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
12180 # _XOPEN_SOURCE to get it (such as on Solaris)
12181 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
12182$ac_includes_default
12183#include <sys/socket.h>
12184
12185"
12186if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
12187
12188fi
12189
12190 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
12191 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
12192     unset ac_cv_member_struct_msghdr_msg_control
12193     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
12194$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
12195     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
12196#define _XOPEN_SOURCE 600
12197$ac_includes_default
12198#include <sys/socket.h>
12199
12200"
12201if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
12202
12203$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
12204
12205
12206fi
12207
12208 fi
12209 # If that didn't work, fall back to XPG5/UNIX98 with C89
12210 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
12211     unset ac_cv_member_struct_msghdr_msg_control
12212     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
12213$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
12214     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
12215#define _XOPEN_SOURCE 500
12216$ac_includes_default
12217#include <sys/socket.h>
12218
12219"
12220if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
12221
12222$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
12223
12224
12225fi
12226
12227 fi
12228
12229
12230
12231 fi
12232 case $host_os in
12233	solaris*|sco*|sysv4*)	localdef="yes" ;;
12234	*)			localdef="no"  ;;
12235 esac
12236 # Check whether --enable-local-transport was given.
12237if test "${enable_local_transport+set}" = set; then :
12238  enableval=$enable_local_transport; LOCALCONN=$enableval
12239else
12240  LOCALCONN=$localdef
12241fi
12242
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
12244$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
12246$as_echo "$LOCALCONN" >&6; }
12247 if test "$LOCALCONN" = "yes"; then
12248
12249$as_echo "#define LOCALCONN 1" >>confdefs.h
12250
12251 fi
12252
12253
12254
12255ac_config_files="$ac_config_files Makefile config/Makefile doc/Makefile man/Makefile"
12256
12257cat >confcache <<\_ACEOF
12258# This file is a shell script that caches the results of configure
12259# tests run on this system so they can be shared between configure
12260# scripts and configure runs, see configure's option --config-cache.
12261# It is not useful on other systems.  If it contains results you don't
12262# want to keep, you may remove or edit it.
12263#
12264# config.status only pays attention to the cache file if you give it
12265# the --recheck option to rerun configure.
12266#
12267# `ac_cv_env_foo' variables (set or unset) will be overridden when
12268# loading this file, other *unset* `ac_cv_foo' will be assigned the
12269# following values.
12270
12271_ACEOF
12272
12273# The following way of writing the cache mishandles newlines in values,
12274# but we know of no workaround that is simple, portable, and efficient.
12275# So, we kill variables containing newlines.
12276# Ultrix sh set writes to stderr and can't be redirected directly,
12277# and sets the high bit in the cache file unless we assign to the vars.
12278(
12279  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12280    eval ac_val=\$$ac_var
12281    case $ac_val in #(
12282    *${as_nl}*)
12283      case $ac_var in #(
12284      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12285$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12286      esac
12287      case $ac_var in #(
12288      _ | IFS | as_nl) ;; #(
12289      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12290      *) { eval $ac_var=; unset $ac_var;} ;;
12291      esac ;;
12292    esac
12293  done
12294
12295  (set) 2>&1 |
12296    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12297    *${as_nl}ac_space=\ *)
12298      # `set' does not quote correctly, so add quotes: double-quote
12299      # substitution turns \\\\ into \\, and sed turns \\ into \.
12300      sed -n \
12301	"s/'/'\\\\''/g;
12302	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12303      ;; #(
12304    *)
12305      # `set' quotes correctly as required by POSIX, so do not add quotes.
12306      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12307      ;;
12308    esac |
12309    sort
12310) |
12311  sed '
12312     /^ac_cv_env_/b end
12313     t clear
12314     :clear
12315     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12316     t end
12317     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12318     :end' >>confcache
12319if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12320  if test -w "$cache_file"; then
12321    if test "x$cache_file" != "x/dev/null"; then
12322      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12323$as_echo "$as_me: updating cache $cache_file" >&6;}
12324      if test ! -f "$cache_file" || test -h "$cache_file"; then
12325	cat confcache >"$cache_file"
12326      else
12327        case $cache_file in #(
12328        */* | ?:*)
12329	  mv -f confcache "$cache_file"$$ &&
12330	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12331        *)
12332	  mv -f confcache "$cache_file" ;;
12333	esac
12334      fi
12335    fi
12336  else
12337    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12338$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12339  fi
12340fi
12341rm -f confcache
12342
12343test "x$prefix" = xNONE && prefix=$ac_default_prefix
12344# Let make expand exec_prefix.
12345test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12346
12347DEFS=-DHAVE_CONFIG_H
12348
12349ac_libobjs=
12350ac_ltlibobjs=
12351U=
12352for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12353  # 1. Remove the extension, and $U if already installed.
12354  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12355  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12356  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12357  #    will be set to the directory where LIBOBJS objects are built.
12358  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12359  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12360done
12361LIBOBJS=$ac_libobjs
12362
12363LTLIBOBJS=$ac_ltlibobjs
12364
12365
12366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12367$as_echo_n "checking that generated files are newer than configure... " >&6; }
12368   if test -n "$am_sleep_pid"; then
12369     # Hide warnings about reused PIDs.
12370     wait $am_sleep_pid 2>/dev/null
12371   fi
12372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12373$as_echo "done" >&6; }
12374if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12375  as_fn_error $? "conditional \"AMDEP\" was never defined.
12376Usually this means the macro was only invoked conditionally." "$LINENO" 5
12377fi
12378if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12379  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12380Usually this means the macro was only invoked conditionally." "$LINENO" 5
12381fi
12382 if test -n "$EXEEXT"; then
12383  am__EXEEXT_TRUE=
12384  am__EXEEXT_FALSE='#'
12385else
12386  am__EXEEXT_TRUE='#'
12387  am__EXEEXT_FALSE=
12388fi
12389
12390if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
12391  as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
12392Usually this means the macro was only invoked conditionally." "$LINENO" 5
12393fi
12394if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
12395  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
12396Usually this means the macro was only invoked conditionally." "$LINENO" 5
12397fi
12398if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
12399  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
12400Usually this means the macro was only invoked conditionally." "$LINENO" 5
12401fi
12402if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
12403  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
12404Usually this means the macro was only invoked conditionally." "$LINENO" 5
12405fi
12406if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
12407  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
12408Usually this means the macro was only invoked conditionally." "$LINENO" 5
12409fi
12410if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
12411  as_fn_error $? "conditional \"LINT\" was never defined.
12412Usually this means the macro was only invoked conditionally." "$LINENO" 5
12413fi
12414
12415: "${CONFIG_STATUS=./config.status}"
12416ac_write_fail=0
12417ac_clean_files_save=$ac_clean_files
12418ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12419{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12420$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12421as_write_fail=0
12422cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12423#! $SHELL
12424# Generated by $as_me.
12425# Run this file to recreate the current configuration.
12426# Compiler output produced by configure, useful for debugging
12427# configure, is in config.log if it exists.
12428
12429debug=false
12430ac_cs_recheck=false
12431ac_cs_silent=false
12432
12433SHELL=\${CONFIG_SHELL-$SHELL}
12434export SHELL
12435_ASEOF
12436cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12437## -------------------- ##
12438## M4sh Initialization. ##
12439## -------------------- ##
12440
12441# Be more Bourne compatible
12442DUALCASE=1; export DUALCASE # for MKS sh
12443if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12444  emulate sh
12445  NULLCMD=:
12446  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12447  # is contrary to our usage.  Disable this feature.
12448  alias -g '${1+"$@"}'='"$@"'
12449  setopt NO_GLOB_SUBST
12450else
12451  case `(set -o) 2>/dev/null` in #(
12452  *posix*) :
12453    set -o posix ;; #(
12454  *) :
12455     ;;
12456esac
12457fi
12458
12459
12460as_nl='
12461'
12462export as_nl
12463# Printing a long string crashes Solaris 7 /usr/bin/printf.
12464as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12465as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12466as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12467# Prefer a ksh shell builtin over an external printf program on Solaris,
12468# but without wasting forks for bash or zsh.
12469if test -z "$BASH_VERSION$ZSH_VERSION" \
12470    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12471  as_echo='print -r --'
12472  as_echo_n='print -rn --'
12473elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12474  as_echo='printf %s\n'
12475  as_echo_n='printf %s'
12476else
12477  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12478    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12479    as_echo_n='/usr/ucb/echo -n'
12480  else
12481    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12482    as_echo_n_body='eval
12483      arg=$1;
12484      case $arg in #(
12485      *"$as_nl"*)
12486	expr "X$arg" : "X\\(.*\\)$as_nl";
12487	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12488      esac;
12489      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12490    '
12491    export as_echo_n_body
12492    as_echo_n='sh -c $as_echo_n_body as_echo'
12493  fi
12494  export as_echo_body
12495  as_echo='sh -c $as_echo_body as_echo'
12496fi
12497
12498# The user is always right.
12499if test "${PATH_SEPARATOR+set}" != set; then
12500  PATH_SEPARATOR=:
12501  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12502    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12503      PATH_SEPARATOR=';'
12504  }
12505fi
12506
12507
12508# IFS
12509# We need space, tab and new line, in precisely that order.  Quoting is
12510# there to prevent editors from complaining about space-tab.
12511# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12512# splitting by setting IFS to empty value.)
12513IFS=" ""	$as_nl"
12514
12515# Find who we are.  Look in the path if we contain no directory separator.
12516as_myself=
12517case $0 in #((
12518  *[\\/]* ) as_myself=$0 ;;
12519  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12520for as_dir in $PATH
12521do
12522  IFS=$as_save_IFS
12523  test -z "$as_dir" && as_dir=.
12524    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12525  done
12526IFS=$as_save_IFS
12527
12528     ;;
12529esac
12530# We did not find ourselves, most probably we were run as `sh COMMAND'
12531# in which case we are not to be found in the path.
12532if test "x$as_myself" = x; then
12533  as_myself=$0
12534fi
12535if test ! -f "$as_myself"; then
12536  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12537  exit 1
12538fi
12539
12540# Unset variables that we do not need and which cause bugs (e.g. in
12541# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12542# suppresses any "Segmentation fault" message there.  '((' could
12543# trigger a bug in pdksh 5.2.14.
12544for as_var in BASH_ENV ENV MAIL MAILPATH
12545do eval test x\${$as_var+set} = xset \
12546  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12547done
12548PS1='$ '
12549PS2='> '
12550PS4='+ '
12551
12552# NLS nuisances.
12553LC_ALL=C
12554export LC_ALL
12555LANGUAGE=C
12556export LANGUAGE
12557
12558# CDPATH.
12559(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12560
12561
12562# as_fn_error STATUS ERROR [LINENO LOG_FD]
12563# ----------------------------------------
12564# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12565# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12566# script with STATUS, using 1 if that was 0.
12567as_fn_error ()
12568{
12569  as_status=$1; test $as_status -eq 0 && as_status=1
12570  if test "$4"; then
12571    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12572    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12573  fi
12574  $as_echo "$as_me: error: $2" >&2
12575  as_fn_exit $as_status
12576} # as_fn_error
12577
12578
12579# as_fn_set_status STATUS
12580# -----------------------
12581# Set $? to STATUS, without forking.
12582as_fn_set_status ()
12583{
12584  return $1
12585} # as_fn_set_status
12586
12587# as_fn_exit STATUS
12588# -----------------
12589# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12590as_fn_exit ()
12591{
12592  set +e
12593  as_fn_set_status $1
12594  exit $1
12595} # as_fn_exit
12596
12597# as_fn_unset VAR
12598# ---------------
12599# Portably unset VAR.
12600as_fn_unset ()
12601{
12602  { eval $1=; unset $1;}
12603}
12604as_unset=as_fn_unset
12605# as_fn_append VAR VALUE
12606# ----------------------
12607# Append the text in VALUE to the end of the definition contained in VAR. Take
12608# advantage of any shell optimizations that allow amortized linear growth over
12609# repeated appends, instead of the typical quadratic growth present in naive
12610# implementations.
12611if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12612  eval 'as_fn_append ()
12613  {
12614    eval $1+=\$2
12615  }'
12616else
12617  as_fn_append ()
12618  {
12619    eval $1=\$$1\$2
12620  }
12621fi # as_fn_append
12622
12623# as_fn_arith ARG...
12624# ------------------
12625# Perform arithmetic evaluation on the ARGs, and store the result in the
12626# global $as_val. Take advantage of shells that can avoid forks. The arguments
12627# must be portable across $(()) and expr.
12628if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12629  eval 'as_fn_arith ()
12630  {
12631    as_val=$(( $* ))
12632  }'
12633else
12634  as_fn_arith ()
12635  {
12636    as_val=`expr "$@" || test $? -eq 1`
12637  }
12638fi # as_fn_arith
12639
12640
12641if expr a : '\(a\)' >/dev/null 2>&1 &&
12642   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12643  as_expr=expr
12644else
12645  as_expr=false
12646fi
12647
12648if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12649  as_basename=basename
12650else
12651  as_basename=false
12652fi
12653
12654if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12655  as_dirname=dirname
12656else
12657  as_dirname=false
12658fi
12659
12660as_me=`$as_basename -- "$0" ||
12661$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12662	 X"$0" : 'X\(//\)$' \| \
12663	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12664$as_echo X/"$0" |
12665    sed '/^.*\/\([^/][^/]*\)\/*$/{
12666	    s//\1/
12667	    q
12668	  }
12669	  /^X\/\(\/\/\)$/{
12670	    s//\1/
12671	    q
12672	  }
12673	  /^X\/\(\/\).*/{
12674	    s//\1/
12675	    q
12676	  }
12677	  s/.*/./; q'`
12678
12679# Avoid depending upon Character Ranges.
12680as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12681as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12682as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12683as_cr_digits='0123456789'
12684as_cr_alnum=$as_cr_Letters$as_cr_digits
12685
12686ECHO_C= ECHO_N= ECHO_T=
12687case `echo -n x` in #(((((
12688-n*)
12689  case `echo 'xy\c'` in
12690  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12691  xy)  ECHO_C='\c';;
12692  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12693       ECHO_T='	';;
12694  esac;;
12695*)
12696  ECHO_N='-n';;
12697esac
12698
12699rm -f conf$$ conf$$.exe conf$$.file
12700if test -d conf$$.dir; then
12701  rm -f conf$$.dir/conf$$.file
12702else
12703  rm -f conf$$.dir
12704  mkdir conf$$.dir 2>/dev/null
12705fi
12706if (echo >conf$$.file) 2>/dev/null; then
12707  if ln -s conf$$.file conf$$ 2>/dev/null; then
12708    as_ln_s='ln -s'
12709    # ... but there are two gotchas:
12710    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12711    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12712    # In both cases, we have to default to `cp -pR'.
12713    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12714      as_ln_s='cp -pR'
12715  elif ln conf$$.file conf$$ 2>/dev/null; then
12716    as_ln_s=ln
12717  else
12718    as_ln_s='cp -pR'
12719  fi
12720else
12721  as_ln_s='cp -pR'
12722fi
12723rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12724rmdir conf$$.dir 2>/dev/null
12725
12726
12727# as_fn_mkdir_p
12728# -------------
12729# Create "$as_dir" as a directory, including parents if necessary.
12730as_fn_mkdir_p ()
12731{
12732
12733  case $as_dir in #(
12734  -*) as_dir=./$as_dir;;
12735  esac
12736  test -d "$as_dir" || eval $as_mkdir_p || {
12737    as_dirs=
12738    while :; do
12739      case $as_dir in #(
12740      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12741      *) as_qdir=$as_dir;;
12742      esac
12743      as_dirs="'$as_qdir' $as_dirs"
12744      as_dir=`$as_dirname -- "$as_dir" ||
12745$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12746	 X"$as_dir" : 'X\(//\)[^/]' \| \
12747	 X"$as_dir" : 'X\(//\)$' \| \
12748	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12749$as_echo X"$as_dir" |
12750    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12751	    s//\1/
12752	    q
12753	  }
12754	  /^X\(\/\/\)[^/].*/{
12755	    s//\1/
12756	    q
12757	  }
12758	  /^X\(\/\/\)$/{
12759	    s//\1/
12760	    q
12761	  }
12762	  /^X\(\/\).*/{
12763	    s//\1/
12764	    q
12765	  }
12766	  s/.*/./; q'`
12767      test -d "$as_dir" && break
12768    done
12769    test -z "$as_dirs" || eval "mkdir $as_dirs"
12770  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12771
12772
12773} # as_fn_mkdir_p
12774if mkdir -p . 2>/dev/null; then
12775  as_mkdir_p='mkdir -p "$as_dir"'
12776else
12777  test -d ./-p && rmdir ./-p
12778  as_mkdir_p=false
12779fi
12780
12781
12782# as_fn_executable_p FILE
12783# -----------------------
12784# Test if FILE is an executable regular file.
12785as_fn_executable_p ()
12786{
12787  test -f "$1" && test -x "$1"
12788} # as_fn_executable_p
12789as_test_x='test -x'
12790as_executable_p=as_fn_executable_p
12791
12792# Sed expression to map a string onto a valid CPP name.
12793as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12794
12795# Sed expression to map a string onto a valid variable name.
12796as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12797
12798
12799exec 6>&1
12800## ----------------------------------- ##
12801## Main body of $CONFIG_STATUS script. ##
12802## ----------------------------------- ##
12803_ASEOF
12804test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12805
12806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12807# Save the log message, to keep $0 and so on meaningful, and to
12808# report actual input values of CONFIG_FILES etc. instead of their
12809# values after options handling.
12810ac_log="
12811This file was extended by xfs $as_me 1.2.0, which was
12812generated by GNU Autoconf 2.69.  Invocation command line was
12813
12814  CONFIG_FILES    = $CONFIG_FILES
12815  CONFIG_HEADERS  = $CONFIG_HEADERS
12816  CONFIG_LINKS    = $CONFIG_LINKS
12817  CONFIG_COMMANDS = $CONFIG_COMMANDS
12818  $ $0 $@
12819
12820on `(hostname || uname -n) 2>/dev/null | sed 1q`
12821"
12822
12823_ACEOF
12824
12825case $ac_config_files in *"
12826"*) set x $ac_config_files; shift; ac_config_files=$*;;
12827esac
12828
12829case $ac_config_headers in *"
12830"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12831esac
12832
12833
12834cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12835# Files that config.status was made for.
12836config_files="$ac_config_files"
12837config_headers="$ac_config_headers"
12838config_commands="$ac_config_commands"
12839
12840_ACEOF
12841
12842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12843ac_cs_usage="\
12844\`$as_me' instantiates files and other configuration actions
12845from templates according to the current configuration.  Unless the files
12846and actions are specified as TAGs, all are instantiated by default.
12847
12848Usage: $0 [OPTION]... [TAG]...
12849
12850  -h, --help       print this help, then exit
12851  -V, --version    print version number and configuration settings, then exit
12852      --config     print configuration, then exit
12853  -q, --quiet, --silent
12854                   do not print progress messages
12855  -d, --debug      don't remove temporary files
12856      --recheck    update $as_me by reconfiguring in the same conditions
12857      --file=FILE[:TEMPLATE]
12858                   instantiate the configuration file FILE
12859      --header=FILE[:TEMPLATE]
12860                   instantiate the configuration header FILE
12861
12862Configuration files:
12863$config_files
12864
12865Configuration headers:
12866$config_headers
12867
12868Configuration commands:
12869$config_commands
12870
12871Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12872
12873_ACEOF
12874cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12875ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12876ac_cs_version="\\
12877xfs config.status 1.2.0
12878configured by $0, generated by GNU Autoconf 2.69,
12879  with options \\"\$ac_cs_config\\"
12880
12881Copyright (C) 2012 Free Software Foundation, Inc.
12882This config.status script is free software; the Free Software Foundation
12883gives unlimited permission to copy, distribute and modify it."
12884
12885ac_pwd='$ac_pwd'
12886srcdir='$srcdir'
12887INSTALL='$INSTALL'
12888MKDIR_P='$MKDIR_P'
12889AWK='$AWK'
12890test -n "\$AWK" || AWK=awk
12891_ACEOF
12892
12893cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12894# The default lists apply if the user does not specify any file.
12895ac_need_defaults=:
12896while test $# != 0
12897do
12898  case $1 in
12899  --*=?*)
12900    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12901    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12902    ac_shift=:
12903    ;;
12904  --*=)
12905    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12906    ac_optarg=
12907    ac_shift=:
12908    ;;
12909  *)
12910    ac_option=$1
12911    ac_optarg=$2
12912    ac_shift=shift
12913    ;;
12914  esac
12915
12916  case $ac_option in
12917  # Handling of the options.
12918  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12919    ac_cs_recheck=: ;;
12920  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12921    $as_echo "$ac_cs_version"; exit ;;
12922  --config | --confi | --conf | --con | --co | --c )
12923    $as_echo "$ac_cs_config"; exit ;;
12924  --debug | --debu | --deb | --de | --d | -d )
12925    debug=: ;;
12926  --file | --fil | --fi | --f )
12927    $ac_shift
12928    case $ac_optarg in
12929    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12930    '') as_fn_error $? "missing file argument" ;;
12931    esac
12932    as_fn_append CONFIG_FILES " '$ac_optarg'"
12933    ac_need_defaults=false;;
12934  --header | --heade | --head | --hea )
12935    $ac_shift
12936    case $ac_optarg in
12937    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12938    esac
12939    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12940    ac_need_defaults=false;;
12941  --he | --h)
12942    # Conflict between --help and --header
12943    as_fn_error $? "ambiguous option: \`$1'
12944Try \`$0 --help' for more information.";;
12945  --help | --hel | -h )
12946    $as_echo "$ac_cs_usage"; exit ;;
12947  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12948  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12949    ac_cs_silent=: ;;
12950
12951  # This is an error.
12952  -*) as_fn_error $? "unrecognized option: \`$1'
12953Try \`$0 --help' for more information." ;;
12954
12955  *) as_fn_append ac_config_targets " $1"
12956     ac_need_defaults=false ;;
12957
12958  esac
12959  shift
12960done
12961
12962ac_configure_extra_args=
12963
12964if $ac_cs_silent; then
12965  exec 6>/dev/null
12966  ac_configure_extra_args="$ac_configure_extra_args --silent"
12967fi
12968
12969_ACEOF
12970cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12971if \$ac_cs_recheck; then
12972  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12973  shift
12974  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12975  CONFIG_SHELL='$SHELL'
12976  export CONFIG_SHELL
12977  exec "\$@"
12978fi
12979
12980_ACEOF
12981cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12982exec 5>>config.log
12983{
12984  echo
12985  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12986## Running $as_me. ##
12987_ASBOX
12988  $as_echo "$ac_log"
12989} >&5
12990
12991_ACEOF
12992cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12993#
12994# INIT-COMMANDS
12995#
12996AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12997
12998_ACEOF
12999
13000cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13001
13002# Handling of arguments.
13003for ac_config_target in $ac_config_targets
13004do
13005  case $ac_config_target in
13006    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13007    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13008    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13009    "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
13010    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13011    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13012
13013  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13014  esac
13015done
13016
13017
13018# If the user did not use the arguments to specify the items to instantiate,
13019# then the envvar interface is used.  Set only those that are not.
13020# We use the long form for the default assignment because of an extremely
13021# bizarre bug on SunOS 4.1.3.
13022if $ac_need_defaults; then
13023  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13024  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13025  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13026fi
13027
13028# Have a temporary directory for convenience.  Make it in the build tree
13029# simply because there is no reason against having it here, and in addition,
13030# creating and moving files from /tmp can sometimes cause problems.
13031# Hook for its removal unless debugging.
13032# Note that there is a small window in which the directory will not be cleaned:
13033# after its creation but before its name has been assigned to `$tmp'.
13034$debug ||
13035{
13036  tmp= ac_tmp=
13037  trap 'exit_status=$?
13038  : "${ac_tmp:=$tmp}"
13039  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13040' 0
13041  trap 'as_fn_exit 1' 1 2 13 15
13042}
13043# Create a (secure) tmp directory for tmp files.
13044
13045{
13046  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13047  test -d "$tmp"
13048}  ||
13049{
13050  tmp=./conf$$-$RANDOM
13051  (umask 077 && mkdir "$tmp")
13052} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13053ac_tmp=$tmp
13054
13055# Set up the scripts for CONFIG_FILES section.
13056# No need to generate them if there are no CONFIG_FILES.
13057# This happens for instance with `./config.status config.h'.
13058if test -n "$CONFIG_FILES"; then
13059
13060
13061ac_cr=`echo X | tr X '\015'`
13062# On cygwin, bash can eat \r inside `` if the user requested igncr.
13063# But we know of no other shell where ac_cr would be empty at this
13064# point, so we can use a bashism as a fallback.
13065if test "x$ac_cr" = x; then
13066  eval ac_cr=\$\'\\r\'
13067fi
13068ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13069if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13070  ac_cs_awk_cr='\\r'
13071else
13072  ac_cs_awk_cr=$ac_cr
13073fi
13074
13075echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13076_ACEOF
13077
13078
13079{
13080  echo "cat >conf$$subs.awk <<_ACEOF" &&
13081  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13082  echo "_ACEOF"
13083} >conf$$subs.sh ||
13084  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13085ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13086ac_delim='%!_!# '
13087for ac_last_try in false false false false false :; do
13088  . ./conf$$subs.sh ||
13089    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13090
13091  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13092  if test $ac_delim_n = $ac_delim_num; then
13093    break
13094  elif $ac_last_try; then
13095    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13096  else
13097    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13098  fi
13099done
13100rm -f conf$$subs.sh
13101
13102cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13103cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13104_ACEOF
13105sed -n '
13106h
13107s/^/S["/; s/!.*/"]=/
13108p
13109g
13110s/^[^!]*!//
13111:repl
13112t repl
13113s/'"$ac_delim"'$//
13114t delim
13115:nl
13116h
13117s/\(.\{148\}\)..*/\1/
13118t more1
13119s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13120p
13121n
13122b repl
13123:more1
13124s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13125p
13126g
13127s/.\{148\}//
13128t nl
13129:delim
13130h
13131s/\(.\{148\}\)..*/\1/
13132t more2
13133s/["\\]/\\&/g; s/^/"/; s/$/"/
13134p
13135b
13136:more2
13137s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13138p
13139g
13140s/.\{148\}//
13141t delim
13142' <conf$$subs.awk | sed '
13143/^[^""]/{
13144  N
13145  s/\n//
13146}
13147' >>$CONFIG_STATUS || ac_write_fail=1
13148rm -f conf$$subs.awk
13149cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13150_ACAWK
13151cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13152  for (key in S) S_is_set[key] = 1
13153  FS = ""
13154
13155}
13156{
13157  line = $ 0
13158  nfields = split(line, field, "@")
13159  substed = 0
13160  len = length(field[1])
13161  for (i = 2; i < nfields; i++) {
13162    key = field[i]
13163    keylen = length(key)
13164    if (S_is_set[key]) {
13165      value = S[key]
13166      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13167      len += length(value) + length(field[++i])
13168      substed = 1
13169    } else
13170      len += 1 + keylen
13171  }
13172
13173  print line
13174}
13175
13176_ACAWK
13177_ACEOF
13178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13179if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13180  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13181else
13182  cat
13183fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13184  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13185_ACEOF
13186
13187# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13188# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13189# trailing colons and then remove the whole line if VPATH becomes empty
13190# (actually we leave an empty line to preserve line numbers).
13191if test "x$srcdir" = x.; then
13192  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13193h
13194s///
13195s/^/:/
13196s/[	 ]*$/:/
13197s/:\$(srcdir):/:/g
13198s/:\${srcdir}:/:/g
13199s/:@srcdir@:/:/g
13200s/^:*//
13201s/:*$//
13202x
13203s/\(=[	 ]*\).*/\1/
13204G
13205s/\n//
13206s/^[^=]*=[	 ]*$//
13207}'
13208fi
13209
13210cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13211fi # test -n "$CONFIG_FILES"
13212
13213# Set up the scripts for CONFIG_HEADERS section.
13214# No need to generate them if there are no CONFIG_HEADERS.
13215# This happens for instance with `./config.status Makefile'.
13216if test -n "$CONFIG_HEADERS"; then
13217cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13218BEGIN {
13219_ACEOF
13220
13221# Transform confdefs.h into an awk script `defines.awk', embedded as
13222# here-document in config.status, that substitutes the proper values into
13223# config.h.in to produce config.h.
13224
13225# Create a delimiter string that does not exist in confdefs.h, to ease
13226# handling of long lines.
13227ac_delim='%!_!# '
13228for ac_last_try in false false :; do
13229  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13230  if test -z "$ac_tt"; then
13231    break
13232  elif $ac_last_try; then
13233    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13234  else
13235    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13236  fi
13237done
13238
13239# For the awk script, D is an array of macro values keyed by name,
13240# likewise P contains macro parameters if any.  Preserve backslash
13241# newline sequences.
13242
13243ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13244sed -n '
13245s/.\{148\}/&'"$ac_delim"'/g
13246t rset
13247:rset
13248s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13249t def
13250d
13251:def
13252s/\\$//
13253t bsnl
13254s/["\\]/\\&/g
13255s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13256D["\1"]=" \3"/p
13257s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13258d
13259:bsnl
13260s/["\\]/\\&/g
13261s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13262D["\1"]=" \3\\\\\\n"\\/p
13263t cont
13264s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13265t cont
13266d
13267:cont
13268n
13269s/.\{148\}/&'"$ac_delim"'/g
13270t clear
13271:clear
13272s/\\$//
13273t bsnlc
13274s/["\\]/\\&/g; s/^/"/; s/$/"/p
13275d
13276:bsnlc
13277s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13278b cont
13279' <confdefs.h | sed '
13280s/'"$ac_delim"'/"\\\
13281"/g' >>$CONFIG_STATUS || ac_write_fail=1
13282
13283cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13284  for (key in D) D_is_set[key] = 1
13285  FS = ""
13286}
13287/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13288  line = \$ 0
13289  split(line, arg, " ")
13290  if (arg[1] == "#") {
13291    defundef = arg[2]
13292    mac1 = arg[3]
13293  } else {
13294    defundef = substr(arg[1], 2)
13295    mac1 = arg[2]
13296  }
13297  split(mac1, mac2, "(") #)
13298  macro = mac2[1]
13299  prefix = substr(line, 1, index(line, defundef) - 1)
13300  if (D_is_set[macro]) {
13301    # Preserve the white space surrounding the "#".
13302    print prefix "define", macro P[macro] D[macro]
13303    next
13304  } else {
13305    # Replace #undef with comments.  This is necessary, for example,
13306    # in the case of _POSIX_SOURCE, which is predefined and required
13307    # on some systems where configure will not decide to define it.
13308    if (defundef == "undef") {
13309      print "/*", prefix defundef, macro, "*/"
13310      next
13311    }
13312  }
13313}
13314{ print }
13315_ACAWK
13316_ACEOF
13317cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13318  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13319fi # test -n "$CONFIG_HEADERS"
13320
13321
13322eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13323shift
13324for ac_tag
13325do
13326  case $ac_tag in
13327  :[FHLC]) ac_mode=$ac_tag; continue;;
13328  esac
13329  case $ac_mode$ac_tag in
13330  :[FHL]*:*);;
13331  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13332  :[FH]-) ac_tag=-:-;;
13333  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13334  esac
13335  ac_save_IFS=$IFS
13336  IFS=:
13337  set x $ac_tag
13338  IFS=$ac_save_IFS
13339  shift
13340  ac_file=$1
13341  shift
13342
13343  case $ac_mode in
13344  :L) ac_source=$1;;
13345  :[FH])
13346    ac_file_inputs=
13347    for ac_f
13348    do
13349      case $ac_f in
13350      -) ac_f="$ac_tmp/stdin";;
13351      *) # Look for the file first in the build tree, then in the source tree
13352	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13353	 # because $ac_f cannot contain `:'.
13354	 test -f "$ac_f" ||
13355	   case $ac_f in
13356	   [\\/$]*) false;;
13357	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13358	   esac ||
13359	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13360      esac
13361      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13362      as_fn_append ac_file_inputs " '$ac_f'"
13363    done
13364
13365    # Let's still pretend it is `configure' which instantiates (i.e., don't
13366    # use $as_me), people would be surprised to read:
13367    #    /* config.h.  Generated by config.status.  */
13368    configure_input='Generated from '`
13369	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13370	`' by configure.'
13371    if test x"$ac_file" != x-; then
13372      configure_input="$ac_file.  $configure_input"
13373      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13374$as_echo "$as_me: creating $ac_file" >&6;}
13375    fi
13376    # Neutralize special characters interpreted by sed in replacement strings.
13377    case $configure_input in #(
13378    *\&* | *\|* | *\\* )
13379       ac_sed_conf_input=`$as_echo "$configure_input" |
13380       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13381    *) ac_sed_conf_input=$configure_input;;
13382    esac
13383
13384    case $ac_tag in
13385    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13386      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13387    esac
13388    ;;
13389  esac
13390
13391  ac_dir=`$as_dirname -- "$ac_file" ||
13392$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13393	 X"$ac_file" : 'X\(//\)[^/]' \| \
13394	 X"$ac_file" : 'X\(//\)$' \| \
13395	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13396$as_echo X"$ac_file" |
13397    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13398	    s//\1/
13399	    q
13400	  }
13401	  /^X\(\/\/\)[^/].*/{
13402	    s//\1/
13403	    q
13404	  }
13405	  /^X\(\/\/\)$/{
13406	    s//\1/
13407	    q
13408	  }
13409	  /^X\(\/\).*/{
13410	    s//\1/
13411	    q
13412	  }
13413	  s/.*/./; q'`
13414  as_dir="$ac_dir"; as_fn_mkdir_p
13415  ac_builddir=.
13416
13417case "$ac_dir" in
13418.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13419*)
13420  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13421  # A ".." for each directory in $ac_dir_suffix.
13422  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13423  case $ac_top_builddir_sub in
13424  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13425  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13426  esac ;;
13427esac
13428ac_abs_top_builddir=$ac_pwd
13429ac_abs_builddir=$ac_pwd$ac_dir_suffix
13430# for backward compatibility:
13431ac_top_builddir=$ac_top_build_prefix
13432
13433case $srcdir in
13434  .)  # We are building in place.
13435    ac_srcdir=.
13436    ac_top_srcdir=$ac_top_builddir_sub
13437    ac_abs_top_srcdir=$ac_pwd ;;
13438  [\\/]* | ?:[\\/]* )  # Absolute name.
13439    ac_srcdir=$srcdir$ac_dir_suffix;
13440    ac_top_srcdir=$srcdir
13441    ac_abs_top_srcdir=$srcdir ;;
13442  *) # Relative name.
13443    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13444    ac_top_srcdir=$ac_top_build_prefix$srcdir
13445    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13446esac
13447ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13448
13449
13450  case $ac_mode in
13451  :F)
13452  #
13453  # CONFIG_FILE
13454  #
13455
13456  case $INSTALL in
13457  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13458  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13459  esac
13460  ac_MKDIR_P=$MKDIR_P
13461  case $MKDIR_P in
13462  [\\/$]* | ?:[\\/]* ) ;;
13463  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13464  esac
13465_ACEOF
13466
13467cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13468# If the template does not know about datarootdir, expand it.
13469# FIXME: This hack should be removed a few years after 2.60.
13470ac_datarootdir_hack=; ac_datarootdir_seen=
13471ac_sed_dataroot='
13472/datarootdir/ {
13473  p
13474  q
13475}
13476/@datadir@/p
13477/@docdir@/p
13478/@infodir@/p
13479/@localedir@/p
13480/@mandir@/p'
13481case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13482*datarootdir*) ac_datarootdir_seen=yes;;
13483*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13484  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13485$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13486_ACEOF
13487cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13488  ac_datarootdir_hack='
13489  s&@datadir@&$datadir&g
13490  s&@docdir@&$docdir&g
13491  s&@infodir@&$infodir&g
13492  s&@localedir@&$localedir&g
13493  s&@mandir@&$mandir&g
13494  s&\\\${datarootdir}&$datarootdir&g' ;;
13495esac
13496_ACEOF
13497
13498# Neutralize VPATH when `$srcdir' = `.'.
13499# Shell code in configure.ac might set extrasub.
13500# FIXME: do we really want to maintain this feature?
13501cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13502ac_sed_extra="$ac_vpsub
13503$extrasub
13504_ACEOF
13505cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13506:t
13507/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13508s|@configure_input@|$ac_sed_conf_input|;t t
13509s&@top_builddir@&$ac_top_builddir_sub&;t t
13510s&@top_build_prefix@&$ac_top_build_prefix&;t t
13511s&@srcdir@&$ac_srcdir&;t t
13512s&@abs_srcdir@&$ac_abs_srcdir&;t t
13513s&@top_srcdir@&$ac_top_srcdir&;t t
13514s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13515s&@builddir@&$ac_builddir&;t t
13516s&@abs_builddir@&$ac_abs_builddir&;t t
13517s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13518s&@INSTALL@&$ac_INSTALL&;t t
13519s&@MKDIR_P@&$ac_MKDIR_P&;t t
13520$ac_datarootdir_hack
13521"
13522eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13523  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13524
13525test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13526  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13527  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13528      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13529  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13530which seems to be undefined.  Please make sure it is defined" >&5
13531$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13532which seems to be undefined.  Please make sure it is defined" >&2;}
13533
13534  rm -f "$ac_tmp/stdin"
13535  case $ac_file in
13536  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13537  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13538  esac \
13539  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13540 ;;
13541  :H)
13542  #
13543  # CONFIG_HEADER
13544  #
13545  if test x"$ac_file" != x-; then
13546    {
13547      $as_echo "/* $configure_input  */" \
13548      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13549    } >"$ac_tmp/config.h" \
13550      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13551    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13552      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13553$as_echo "$as_me: $ac_file is unchanged" >&6;}
13554    else
13555      rm -f "$ac_file"
13556      mv "$ac_tmp/config.h" "$ac_file" \
13557	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13558    fi
13559  else
13560    $as_echo "/* $configure_input  */" \
13561      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13562      || as_fn_error $? "could not create -" "$LINENO" 5
13563  fi
13564# Compute "$ac_file"'s index in $config_headers.
13565_am_arg="$ac_file"
13566_am_stamp_count=1
13567for _am_header in $config_headers :; do
13568  case $_am_header in
13569    $_am_arg | $_am_arg:* )
13570      break ;;
13571    * )
13572      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13573  esac
13574done
13575echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13576$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13577	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13578	 X"$_am_arg" : 'X\(//\)$' \| \
13579	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13580$as_echo X"$_am_arg" |
13581    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13582	    s//\1/
13583	    q
13584	  }
13585	  /^X\(\/\/\)[^/].*/{
13586	    s//\1/
13587	    q
13588	  }
13589	  /^X\(\/\/\)$/{
13590	    s//\1/
13591	    q
13592	  }
13593	  /^X\(\/\).*/{
13594	    s//\1/
13595	    q
13596	  }
13597	  s/.*/./; q'`/stamp-h$_am_stamp_count
13598 ;;
13599
13600  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13601$as_echo "$as_me: executing $ac_file commands" >&6;}
13602 ;;
13603  esac
13604
13605
13606  case $ac_file$ac_mode in
13607    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13608  # Older Autoconf quotes --file arguments for eval, but not when files
13609  # are listed without --file.  Let's play safe and only enable the eval
13610  # if we detect the quoting.
13611  case $CONFIG_FILES in
13612  *\'*) eval set x "$CONFIG_FILES" ;;
13613  *)   set x $CONFIG_FILES ;;
13614  esac
13615  shift
13616  for mf
13617  do
13618    # Strip MF so we end up with the name of the file.
13619    mf=`echo "$mf" | sed -e 's/:.*$//'`
13620    # Check whether this is an Automake generated Makefile or not.
13621    # We used to match only the files named 'Makefile.in', but
13622    # some people rename them; so instead we look at the file content.
13623    # Grep'ing the first line is not enough: some people post-process
13624    # each Makefile.in and add a new line on top of each file to say so.
13625    # Grep'ing the whole file is not good either: AIX grep has a line
13626    # limit of 2048, but all sed's we know have understand at least 4000.
13627    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13628      dirpart=`$as_dirname -- "$mf" ||
13629$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13630	 X"$mf" : 'X\(//\)[^/]' \| \
13631	 X"$mf" : 'X\(//\)$' \| \
13632	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13633$as_echo X"$mf" |
13634    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13635	    s//\1/
13636	    q
13637	  }
13638	  /^X\(\/\/\)[^/].*/{
13639	    s//\1/
13640	    q
13641	  }
13642	  /^X\(\/\/\)$/{
13643	    s//\1/
13644	    q
13645	  }
13646	  /^X\(\/\).*/{
13647	    s//\1/
13648	    q
13649	  }
13650	  s/.*/./; q'`
13651    else
13652      continue
13653    fi
13654    # Extract the definition of DEPDIR, am__include, and am__quote
13655    # from the Makefile without running 'make'.
13656    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13657    test -z "$DEPDIR" && continue
13658    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13659    test -z "$am__include" && continue
13660    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13661    # Find all dependency output files, they are included files with
13662    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13663    # simplest approach to changing $(DEPDIR) to its actual value in the
13664    # expansion.
13665    for file in `sed -n "
13666      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13667	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13668      # Make sure the directory exists.
13669      test -f "$dirpart/$file" && continue
13670      fdir=`$as_dirname -- "$file" ||
13671$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13672	 X"$file" : 'X\(//\)[^/]' \| \
13673	 X"$file" : 'X\(//\)$' \| \
13674	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13675$as_echo X"$file" |
13676    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13677	    s//\1/
13678	    q
13679	  }
13680	  /^X\(\/\/\)[^/].*/{
13681	    s//\1/
13682	    q
13683	  }
13684	  /^X\(\/\/\)$/{
13685	    s//\1/
13686	    q
13687	  }
13688	  /^X\(\/\).*/{
13689	    s//\1/
13690	    q
13691	  }
13692	  s/.*/./; q'`
13693      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13694      # echo "creating $dirpart/$file"
13695      echo '# dummy' > "$dirpart/$file"
13696    done
13697  done
13698}
13699 ;;
13700
13701  esac
13702done # for ac_tag
13703
13704
13705as_fn_exit 0
13706_ACEOF
13707ac_clean_files=$ac_clean_files_save
13708
13709test $ac_write_fail = 0 ||
13710  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13711
13712
13713# configure is writing to config.log, and then calls config.status.
13714# config.status does its own redirection, appending to config.log.
13715# Unfortunately, on DOS this fails, as config.log is still kept open
13716# by configure, so config.status won't be able to write to it; its
13717# output is simply discarded.  So we exec the FD to /dev/null,
13718# effectively closing config.log, so it can be properly (re)opened and
13719# appended to by config.status.  When coming back to configure, we
13720# need to make the FD available again.
13721if test "$no_create" != yes; then
13722  ac_cs_success=:
13723  ac_config_status_args=
13724  test "$silent" = yes &&
13725    ac_config_status_args="$ac_config_status_args --quiet"
13726  exec 5>/dev/null
13727  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13728  exec 5>>config.log
13729  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13730  # would make configure fail if this is the last instruction.
13731  $ac_cs_success || as_fn_exit 1
13732fi
13733if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13734  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13735$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13736fi
13737
13738