configure revision 68872e7f
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xorgproto 2023.2.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
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  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186test \$(( 1 + 1 )) = 2 || exit 1"
187  if (eval "$as_required") 2>/dev/null
188then :
189  as_have_required=yes
190else $as_nop
191  as_have_required=no
192fi
193  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194then :
195
196else $as_nop
197  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198as_found=false
199for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200do
201  IFS=$as_save_IFS
202  case $as_dir in #(((
203    '') as_dir=./ ;;
204    */) ;;
205    *) as_dir=$as_dir/ ;;
206  esac
207  as_found=:
208  case $as_dir in #(
209	 /*)
210	   for as_base in sh bash ksh sh5; do
211	     # Try only shells that exist, to save several forks.
212	     as_shell=$as_dir$as_base
213	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215then :
216  CONFIG_SHELL=$as_shell as_have_required=yes
217		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218then :
219  break 2
220fi
221fi
222	   done;;
223       esac
224  as_found=false
225done
226IFS=$as_save_IFS
227if $as_found
228then :
229
230else $as_nop
231  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233then :
234  CONFIG_SHELL=$SHELL as_have_required=yes
235fi
236fi
237
238
239      if test "x$CONFIG_SHELL" != x
240then :
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'.
258printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno
263then :
264  printf "%s\n" "$0: This script requires a shell more modern than all"
265  printf "%s\n" "$0: the shells that I found on your system."
266  if test ${ZSH_VERSION+y} ; then
267    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269  else
270    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
271$0: https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues
272$0: about your system, including any error possibly output
273$0: before this message. Then install a modern shell, or
274$0: manually run the script under such a shell if you do
275$0: have one."
276  fi
277  exit 1
278fi
279fi
280fi
281SHELL=${CONFIG_SHELL-/bin/sh}
282export SHELL
283# Unset more variables known to interfere with behavior of common tools.
284CLICOLOR_FORCE= GREP_OPTIONS=
285unset CLICOLOR_FORCE GREP_OPTIONS
286
287## --------------------- ##
288## M4sh Shell Functions. ##
289## --------------------- ##
290# as_fn_unset VAR
291# ---------------
292# Portably unset VAR.
293as_fn_unset ()
294{
295  { eval $1=; unset $1;}
296}
297as_unset=as_fn_unset
298
299
300# as_fn_set_status STATUS
301# -----------------------
302# Set $? to STATUS, without forking.
303as_fn_set_status ()
304{
305  return $1
306} # as_fn_set_status
307
308# as_fn_exit STATUS
309# -----------------
310# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311as_fn_exit ()
312{
313  set +e
314  as_fn_set_status $1
315  exit $1
316} # as_fn_exit
317# as_fn_nop
318# ---------
319# Do nothing but, unlike ":", preserve the value of $?.
320as_fn_nop ()
321{
322  return $?
323}
324as_nop=as_fn_nop
325
326# as_fn_mkdir_p
327# -------------
328# Create "$as_dir" as a directory, including parents if necessary.
329as_fn_mkdir_p ()
330{
331
332  case $as_dir in #(
333  -*) as_dir=./$as_dir;;
334  esac
335  test -d "$as_dir" || eval $as_mkdir_p || {
336    as_dirs=
337    while :; do
338      case $as_dir in #(
339      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340      *) as_qdir=$as_dir;;
341      esac
342      as_dirs="'$as_qdir' $as_dirs"
343      as_dir=`$as_dirname -- "$as_dir" ||
344$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345	 X"$as_dir" : 'X\(//\)[^/]' \| \
346	 X"$as_dir" : 'X\(//\)$' \| \
347	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348printf "%s\n" X"$as_dir" |
349    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350	    s//\1/
351	    q
352	  }
353	  /^X\(\/\/\)[^/].*/{
354	    s//\1/
355	    q
356	  }
357	  /^X\(\/\/\)$/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\).*/{
362	    s//\1/
363	    q
364	  }
365	  s/.*/./; q'`
366      test -d "$as_dir" && break
367    done
368    test -z "$as_dirs" || eval "mkdir $as_dirs"
369  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372} # as_fn_mkdir_p
373
374# as_fn_executable_p FILE
375# -----------------------
376# Test if FILE is an executable regular file.
377as_fn_executable_p ()
378{
379  test -f "$1" && test -x "$1"
380} # as_fn_executable_p
381# as_fn_append VAR VALUE
382# ----------------------
383# Append the text in VALUE to the end of the definition contained in VAR. Take
384# advantage of any shell optimizations that allow amortized linear growth over
385# repeated appends, instead of the typical quadratic growth present in naive
386# implementations.
387if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388then :
389  eval 'as_fn_append ()
390  {
391    eval $1+=\$2
392  }'
393else $as_nop
394  as_fn_append ()
395  {
396    eval $1=\$$1\$2
397  }
398fi # as_fn_append
399
400# as_fn_arith ARG...
401# ------------------
402# Perform arithmetic evaluation on the ARGs, and store the result in the
403# global $as_val. Take advantage of shells that can avoid forks. The arguments
404# must be portable across $(()) and expr.
405if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
406then :
407  eval 'as_fn_arith ()
408  {
409    as_val=$(( $* ))
410  }'
411else $as_nop
412  as_fn_arith ()
413  {
414    as_val=`expr "$@" || test $? -eq 1`
415  }
416fi # as_fn_arith
417
418# as_fn_nop
419# ---------
420# Do nothing but, unlike ":", preserve the value of $?.
421as_fn_nop ()
422{
423  return $?
424}
425as_nop=as_fn_nop
426
427# as_fn_error STATUS ERROR [LINENO LOG_FD]
428# ----------------------------------------
429# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
430# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
431# script with STATUS, using 1 if that was 0.
432as_fn_error ()
433{
434  as_status=$1; test $as_status -eq 0 && as_status=1
435  if test "$4"; then
436    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
437    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438  fi
439  printf "%s\n" "$as_me: error: $2" >&2
440  as_fn_exit $as_status
441} # as_fn_error
442
443if expr a : '\(a\)' >/dev/null 2>&1 &&
444   test "X`expr 00001 : '.*\(...\)'`" = X001; then
445  as_expr=expr
446else
447  as_expr=false
448fi
449
450if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
451  as_basename=basename
452else
453  as_basename=false
454fi
455
456if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
457  as_dirname=dirname
458else
459  as_dirname=false
460fi
461
462as_me=`$as_basename -- "$0" ||
463$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
464	 X"$0" : 'X\(//\)$' \| \
465	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
466printf "%s\n" X/"$0" |
467    sed '/^.*\/\([^/][^/]*\)\/*$/{
468	    s//\1/
469	    q
470	  }
471	  /^X\/\(\/\/\)$/{
472	    s//\1/
473	    q
474	  }
475	  /^X\/\(\/\).*/{
476	    s//\1/
477	    q
478	  }
479	  s/.*/./; q'`
480
481# Avoid depending upon Character Ranges.
482as_cr_letters='abcdefghijklmnopqrstuvwxyz'
483as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
484as_cr_Letters=$as_cr_letters$as_cr_LETTERS
485as_cr_digits='0123456789'
486as_cr_alnum=$as_cr_Letters$as_cr_digits
487
488
489  as_lineno_1=$LINENO as_lineno_1a=$LINENO
490  as_lineno_2=$LINENO as_lineno_2a=$LINENO
491  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
492  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
493  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
494  sed -n '
495    p
496    /[$]LINENO/=
497  ' <$as_myself |
498    sed '
499      s/[$]LINENO.*/&-/
500      t lineno
501      b
502      :lineno
503      N
504      :loop
505      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506      t loop
507      s/-\n.*//
508    ' >$as_me.lineno &&
509  chmod +x "$as_me.lineno" ||
510    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513  # already done that, so ensure we don't try to do so again and fall
514  # in an infinite loop.  This has already happened in practice.
515  _as_can_reexec=no; export _as_can_reexec
516  # Don't try to exec as it changes $[0], causing all sort of problems
517  # (the dirname of $[0] is not the place where we might find the
518  # original and so on.  Autoconf is especially sensitive to this).
519  . "./$as_me.lineno"
520  # Exit status is that of the last command.
521  exit
522}
523
524
525# Determine whether it's possible to make 'echo' print without a newline.
526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527# for compatibility with existing Makefiles.
528ECHO_C= ECHO_N= ECHO_T=
529case `echo -n x` in #(((((
530-n*)
531  case `echo 'xy\c'` in
532  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
533  xy)  ECHO_C='\c';;
534  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
535       ECHO_T='	';;
536  esac;;
537*)
538  ECHO_N='-n';;
539esac
540
541# For backward compatibility with old third-party macros, we provide
542# the shell variables $as_echo and $as_echo_n.  New code should use
543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544as_echo='printf %s\n'
545as_echo_n='printf %s'
546
547
548rm -f conf$$ conf$$.exe conf$$.file
549if test -d conf$$.dir; then
550  rm -f conf$$.dir/conf$$.file
551else
552  rm -f conf$$.dir
553  mkdir conf$$.dir 2>/dev/null
554fi
555if (echo >conf$$.file) 2>/dev/null; then
556  if ln -s conf$$.file conf$$ 2>/dev/null; then
557    as_ln_s='ln -s'
558    # ... but there are two gotchas:
559    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
560    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
561    # In both cases, we have to default to `cp -pR'.
562    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563      as_ln_s='cp -pR'
564  elif ln conf$$.file conf$$ 2>/dev/null; then
565    as_ln_s=ln
566  else
567    as_ln_s='cp -pR'
568  fi
569else
570  as_ln_s='cp -pR'
571fi
572rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
573rmdir conf$$.dir 2>/dev/null
574
575if mkdir -p . 2>/dev/null; then
576  as_mkdir_p='mkdir -p "$as_dir"'
577else
578  test -d ./-p && rmdir ./-p
579  as_mkdir_p=false
580fi
581
582as_test_x='test -x'
583as_executable_p=as_fn_executable_p
584
585# Sed expression to map a string onto a valid CPP name.
586as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587
588# Sed expression to map a string onto a valid variable name.
589as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590
591as_awk_strverscmp='
592  # Use only awk features that work with 7th edition Unix awk (1978).
593  # My, what an old awk you have, Mr. Solaris!
594  END {
595    while (length(v1) && length(v2)) {
596      # Set d1 to be the next thing to compare from v1, and likewise for d2.
597      # Normally this is a single character, but if v1 and v2 contain digits,
598      # compare them as integers and fractions as strverscmp does.
599      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
600	# Split v1 and v2 into their leading digit string components d1 and d2,
601	# and advance v1 and v2 past the leading digit strings.
602	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
603	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
604	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
605	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
606	if (d1 ~ /^0/) {
607	  if (d2 ~ /^0/) {
608	    # Compare two fractions.
609	    while (d1 ~ /^0/ && d2 ~ /^0/) {
610	      d1 = substr(d1, 2); len1--
611	      d2 = substr(d2, 2); len2--
612	    }
613	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
614	      # The two components differ in length, and the common prefix
615	      # contains only leading zeros.  Consider the longer to be less.
616	      d1 = -len1
617	      d2 = -len2
618	    } else {
619	      # Otherwise, compare as strings.
620	      d1 = "x" d1
621	      d2 = "x" d2
622	    }
623	  } else {
624	    # A fraction is less than an integer.
625	    exit 1
626	  }
627	} else {
628	  if (d2 ~ /^0/) {
629	    # An integer is greater than a fraction.
630	    exit 2
631	  } else {
632	    # Compare two integers.
633	    d1 += 0
634	    d2 += 0
635	  }
636	}
637      } else {
638	# The normal case, without worrying about digits.
639	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
640	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
641      }
642      if (d1 < d2) exit 1
643      if (d1 > d2) exit 2
644    }
645    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
646    # which mishandles some comparisons of empty strings to integers.
647    if (length(v2)) exit 1
648    if (length(v1)) exit 2
649  }
650'
651
652test -n "$DJDIR" || exec 7<&0 </dev/null
653exec 6>&1
654
655# Name of the host.
656# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
657# so uname gets run too.
658ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
659
660#
661# Initializations.
662#
663ac_default_prefix=/usr/local
664ac_clean_files=
665ac_config_libobj_dir=.
666LIBOBJS=
667cross_compiling=no
668subdirs=
669MFLAGS=
670MAKEFLAGS=
671
672# Identity of this package.
673PACKAGE_NAME='xorgproto'
674PACKAGE_TARNAME='xorgproto'
675PACKAGE_VERSION='2023.2'
676PACKAGE_STRING='xorgproto 2023.2'
677PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues'
678PACKAGE_URL=''
679
680# Factoring default headers for most tests.
681ac_includes_default="\
682#include <stddef.h>
683#ifdef HAVE_STDIO_H
684# include <stdio.h>
685#endif
686#ifdef HAVE_STDLIB_H
687# include <stdlib.h>
688#endif
689#ifdef HAVE_STRING_H
690# include <string.h>
691#endif
692#ifdef HAVE_INTTYPES_H
693# include <inttypes.h>
694#endif
695#ifdef HAVE_STDINT_H
696# include <stdint.h>
697#endif
698#ifdef HAVE_STRINGS_H
699# include <strings.h>
700#endif
701#ifdef HAVE_SYS_TYPES_H
702# include <sys/types.h>
703#endif
704#ifdef HAVE_SYS_STAT_H
705# include <sys/stat.h>
706#endif
707#ifdef HAVE_UNISTD_H
708# include <unistd.h>
709#endif"
710
711ac_header_c_list=
712ac_subst_vars='am__EXEEXT_FALSE
713am__EXEEXT_TRUE
714LTLIBOBJS
715LIBOBJS
716USE_FDS_BITS
717LEGACY_FALSE
718LEGACY_TRUE
719HAVE_PYTHON_FALSE
720HAVE_PYTHON_TRUE
721pkgpyexecdir
722pyexecdir
723pkgpythondir
724pythondir
725PYTHON_EXEC_PREFIX
726PYTHON_PREFIX
727PYTHON_PLATFORM
728PYTHON_VERSION
729PYTHON
730HAVE_STYLESHEETS_FALSE
731HAVE_STYLESHEETS_TRUE
732XSL_STYLESHEET
733STYLESHEET_SRCDIR
734XORG_SGML_PATH
735HAVE_XSLTPROC_FALSE
736HAVE_XSLTPROC_TRUE
737XSLTPROC
738HAVE_FOP_FALSE
739HAVE_FOP_TRUE
740FOP
741HAVE_XMLTO_FALSE
742HAVE_XMLTO_TRUE
743HAVE_XMLTO_TEXT_FALSE
744HAVE_XMLTO_TEXT_TRUE
745XMLTO
746ENABLE_SPECS_FALSE
747ENABLE_SPECS_TRUE
748MAN_SUBSTS
749XORG_MAN_PAGE
750ADMIN_MAN_DIR
751DRIVER_MAN_DIR
752MISC_MAN_DIR
753FILE_MAN_DIR
754LIB_MAN_DIR
755APP_MAN_DIR
756ADMIN_MAN_SUFFIX
757DRIVER_MAN_SUFFIX
758MISC_MAN_SUFFIX
759FILE_MAN_SUFFIX
760LIB_MAN_SUFFIX
761APP_MAN_SUFFIX
762SED
763host_os
764host_vendor
765host_cpu
766host
767build_os
768build_vendor
769build_cpu
770build
771INSTALL_CMD
772PKG_CONFIG_LIBDIR
773PKG_CONFIG_PATH
774PKG_CONFIG
775CHANGELOG_CMD
776STRICT_CFLAGS
777CWARNFLAGS
778BASE_CFLAGS
779am__fastdepCC_FALSE
780am__fastdepCC_TRUE
781CCDEPMODE
782am__nodep
783AMDEPBACKSLASH
784AMDEP_FALSE
785AMDEP_TRUE
786am__include
787DEPDIR
788OBJEXT
789EXEEXT
790ac_ct_CC
791CPPFLAGS
792LDFLAGS
793CFLAGS
794CC
795AM_BACKSLASH
796AM_DEFAULT_VERBOSITY
797AM_DEFAULT_V
798AM_V
799CSCOPE
800ETAGS
801CTAGS
802am__untar
803am__tar
804AMTAR
805am__leading_dot
806SET_MAKE
807AWK
808mkdir_p
809MKDIR_P
810INSTALL_STRIP_PROGRAM
811STRIP
812install_sh
813MAKEINFO
814AUTOHEADER
815AUTOMAKE
816AUTOCONF
817ACLOCAL
818VERSION
819PACKAGE
820CYGPATH_W
821am__isrc
822INSTALL_DATA
823INSTALL_SCRIPT
824INSTALL_PROGRAM
825target_alias
826host_alias
827build_alias
828LIBS
829ECHO_T
830ECHO_N
831ECHO_C
832DEFS
833mandir
834localedir
835libdir
836psdir
837pdfdir
838dvidir
839htmldir
840infodir
841docdir
842oldincludedir
843includedir
844runstatedir
845localstatedir
846sharedstatedir
847sysconfdir
848datadir
849datarootdir
850libexecdir
851sbindir
852bindir
853program_transform_name
854prefix
855exec_prefix
856PACKAGE_URL
857PACKAGE_BUGREPORT
858PACKAGE_STRING
859PACKAGE_VERSION
860PACKAGE_TARNAME
861PACKAGE_NAME
862PATH_SEPARATOR
863SHELL
864am__quote'
865ac_subst_files=''
866ac_user_opts='
867enable_option_checking
868enable_silent_rules
869enable_dependency_tracking
870enable_selective_werror
871enable_strict_compilation
872enable_specs
873with_xmlto
874with_fop
875with_xsltproc
876with_python_sys_prefix
877with_python_prefix
878with_python_exec_prefix
879enable_legacy
880'
881      ac_precious_vars='build_alias
882host_alias
883target_alias
884CC
885CFLAGS
886LDFLAGS
887LIBS
888CPPFLAGS
889PKG_CONFIG
890PKG_CONFIG_PATH
891PKG_CONFIG_LIBDIR
892XMLTO
893FOP
894XSLTPROC
895PYTHON'
896
897
898# Initialize some variables set by options.
899ac_init_help=
900ac_init_version=false
901ac_unrecognized_opts=
902ac_unrecognized_sep=
903# The variables have the same names as the options, with
904# dashes changed to underlines.
905cache_file=/dev/null
906exec_prefix=NONE
907no_create=
908no_recursion=
909prefix=NONE
910program_prefix=NONE
911program_suffix=NONE
912program_transform_name=s,x,x,
913silent=
914site=
915srcdir=
916verbose=
917x_includes=NONE
918x_libraries=NONE
919
920# Installation directory options.
921# These are left unexpanded so users can "make install exec_prefix=/foo"
922# and all the variables that are supposed to be based on exec_prefix
923# by default will actually change.
924# Use braces instead of parens because sh, perl, etc. also accept them.
925# (The list follows the same order as the GNU Coding Standards.)
926bindir='${exec_prefix}/bin'
927sbindir='${exec_prefix}/sbin'
928libexecdir='${exec_prefix}/libexec'
929datarootdir='${prefix}/share'
930datadir='${datarootdir}'
931sysconfdir='${prefix}/etc'
932sharedstatedir='${prefix}/com'
933localstatedir='${prefix}/var'
934runstatedir='${localstatedir}/run'
935includedir='${prefix}/include'
936oldincludedir='/usr/include'
937docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
938infodir='${datarootdir}/info'
939htmldir='${docdir}'
940dvidir='${docdir}'
941pdfdir='${docdir}'
942psdir='${docdir}'
943libdir='${exec_prefix}/lib'
944localedir='${datarootdir}/locale'
945mandir='${datarootdir}/man'
946
947ac_prev=
948ac_dashdash=
949for ac_option
950do
951  # If the previous option needs an argument, assign it.
952  if test -n "$ac_prev"; then
953    eval $ac_prev=\$ac_option
954    ac_prev=
955    continue
956  fi
957
958  case $ac_option in
959  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960  *=)   ac_optarg= ;;
961  *)    ac_optarg=yes ;;
962  esac
963
964  case $ac_dashdash$ac_option in
965  --)
966    ac_dashdash=yes ;;
967
968  -bindir | --bindir | --bindi | --bind | --bin | --bi)
969    ac_prev=bindir ;;
970  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
971    bindir=$ac_optarg ;;
972
973  -build | --build | --buil | --bui | --bu)
974    ac_prev=build_alias ;;
975  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
976    build_alias=$ac_optarg ;;
977
978  -cache-file | --cache-file | --cache-fil | --cache-fi \
979  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
980    ac_prev=cache_file ;;
981  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
982  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
983    cache_file=$ac_optarg ;;
984
985  --config-cache | -C)
986    cache_file=config.cache ;;
987
988  -datadir | --datadir | --datadi | --datad)
989    ac_prev=datadir ;;
990  -datadir=* | --datadir=* | --datadi=* | --datad=*)
991    datadir=$ac_optarg ;;
992
993  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
994  | --dataroo | --dataro | --datar)
995    ac_prev=datarootdir ;;
996  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
997  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
998    datarootdir=$ac_optarg ;;
999
1000  -disable-* | --disable-*)
1001    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1002    # Reject names that are not valid shell variable names.
1003    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1004      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1005    ac_useropt_orig=$ac_useropt
1006    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1007    case $ac_user_opts in
1008      *"
1009"enable_$ac_useropt"
1010"*) ;;
1011      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1012	 ac_unrecognized_sep=', ';;
1013    esac
1014    eval enable_$ac_useropt=no ;;
1015
1016  -docdir | --docdir | --docdi | --doc | --do)
1017    ac_prev=docdir ;;
1018  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1019    docdir=$ac_optarg ;;
1020
1021  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1022    ac_prev=dvidir ;;
1023  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1024    dvidir=$ac_optarg ;;
1025
1026  -enable-* | --enable-*)
1027    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1028    # Reject names that are not valid shell variable names.
1029    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1030      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1031    ac_useropt_orig=$ac_useropt
1032    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1033    case $ac_user_opts in
1034      *"
1035"enable_$ac_useropt"
1036"*) ;;
1037      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1038	 ac_unrecognized_sep=', ';;
1039    esac
1040    eval enable_$ac_useropt=\$ac_optarg ;;
1041
1042  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1043  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1044  | --exec | --exe | --ex)
1045    ac_prev=exec_prefix ;;
1046  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1047  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1048  | --exec=* | --exe=* | --ex=*)
1049    exec_prefix=$ac_optarg ;;
1050
1051  -gas | --gas | --ga | --g)
1052    # Obsolete; use --with-gas.
1053    with_gas=yes ;;
1054
1055  -help | --help | --hel | --he | -h)
1056    ac_init_help=long ;;
1057  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1058    ac_init_help=recursive ;;
1059  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1060    ac_init_help=short ;;
1061
1062  -host | --host | --hos | --ho)
1063    ac_prev=host_alias ;;
1064  -host=* | --host=* | --hos=* | --ho=*)
1065    host_alias=$ac_optarg ;;
1066
1067  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1068    ac_prev=htmldir ;;
1069  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1070  | --ht=*)
1071    htmldir=$ac_optarg ;;
1072
1073  -includedir | --includedir | --includedi | --included | --include \
1074  | --includ | --inclu | --incl | --inc)
1075    ac_prev=includedir ;;
1076  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1077  | --includ=* | --inclu=* | --incl=* | --inc=*)
1078    includedir=$ac_optarg ;;
1079
1080  -infodir | --infodir | --infodi | --infod | --info | --inf)
1081    ac_prev=infodir ;;
1082  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1083    infodir=$ac_optarg ;;
1084
1085  -libdir | --libdir | --libdi | --libd)
1086    ac_prev=libdir ;;
1087  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1088    libdir=$ac_optarg ;;
1089
1090  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1091  | --libexe | --libex | --libe)
1092    ac_prev=libexecdir ;;
1093  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1094  | --libexe=* | --libex=* | --libe=*)
1095    libexecdir=$ac_optarg ;;
1096
1097  -localedir | --localedir | --localedi | --localed | --locale)
1098    ac_prev=localedir ;;
1099  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1100    localedir=$ac_optarg ;;
1101
1102  -localstatedir | --localstatedir | --localstatedi | --localstated \
1103  | --localstate | --localstat | --localsta | --localst | --locals)
1104    ac_prev=localstatedir ;;
1105  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1106  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1107    localstatedir=$ac_optarg ;;
1108
1109  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1110    ac_prev=mandir ;;
1111  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1112    mandir=$ac_optarg ;;
1113
1114  -nfp | --nfp | --nf)
1115    # Obsolete; use --without-fp.
1116    with_fp=no ;;
1117
1118  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1119  | --no-cr | --no-c | -n)
1120    no_create=yes ;;
1121
1122  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1123  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1124    no_recursion=yes ;;
1125
1126  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1127  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1128  | --oldin | --oldi | --old | --ol | --o)
1129    ac_prev=oldincludedir ;;
1130  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1131  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1132  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1133    oldincludedir=$ac_optarg ;;
1134
1135  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1136    ac_prev=prefix ;;
1137  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1138    prefix=$ac_optarg ;;
1139
1140  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1141  | --program-pre | --program-pr | --program-p)
1142    ac_prev=program_prefix ;;
1143  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1144  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1145    program_prefix=$ac_optarg ;;
1146
1147  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1148  | --program-suf | --program-su | --program-s)
1149    ac_prev=program_suffix ;;
1150  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1151  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1152    program_suffix=$ac_optarg ;;
1153
1154  -program-transform-name | --program-transform-name \
1155  | --program-transform-nam | --program-transform-na \
1156  | --program-transform-n | --program-transform- \
1157  | --program-transform | --program-transfor \
1158  | --program-transfo | --program-transf \
1159  | --program-trans | --program-tran \
1160  | --progr-tra | --program-tr | --program-t)
1161    ac_prev=program_transform_name ;;
1162  -program-transform-name=* | --program-transform-name=* \
1163  | --program-transform-nam=* | --program-transform-na=* \
1164  | --program-transform-n=* | --program-transform-=* \
1165  | --program-transform=* | --program-transfor=* \
1166  | --program-transfo=* | --program-transf=* \
1167  | --program-trans=* | --program-tran=* \
1168  | --progr-tra=* | --program-tr=* | --program-t=*)
1169    program_transform_name=$ac_optarg ;;
1170
1171  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1172    ac_prev=pdfdir ;;
1173  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1174    pdfdir=$ac_optarg ;;
1175
1176  -psdir | --psdir | --psdi | --psd | --ps)
1177    ac_prev=psdir ;;
1178  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1179    psdir=$ac_optarg ;;
1180
1181  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1182  | -silent | --silent | --silen | --sile | --sil)
1183    silent=yes ;;
1184
1185  -runstatedir | --runstatedir | --runstatedi | --runstated \
1186  | --runstate | --runstat | --runsta | --runst | --runs \
1187  | --run | --ru | --r)
1188    ac_prev=runstatedir ;;
1189  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1190  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1191  | --run=* | --ru=* | --r=*)
1192    runstatedir=$ac_optarg ;;
1193
1194  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1195    ac_prev=sbindir ;;
1196  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1197  | --sbi=* | --sb=*)
1198    sbindir=$ac_optarg ;;
1199
1200  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1201  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1202  | --sharedst | --shareds | --shared | --share | --shar \
1203  | --sha | --sh)
1204    ac_prev=sharedstatedir ;;
1205  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1206  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1207  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1208  | --sha=* | --sh=*)
1209    sharedstatedir=$ac_optarg ;;
1210
1211  -site | --site | --sit)
1212    ac_prev=site ;;
1213  -site=* | --site=* | --sit=*)
1214    site=$ac_optarg ;;
1215
1216  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1217    ac_prev=srcdir ;;
1218  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1219    srcdir=$ac_optarg ;;
1220
1221  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1222  | --syscon | --sysco | --sysc | --sys | --sy)
1223    ac_prev=sysconfdir ;;
1224  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1225  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1226    sysconfdir=$ac_optarg ;;
1227
1228  -target | --target | --targe | --targ | --tar | --ta | --t)
1229    ac_prev=target_alias ;;
1230  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1231    target_alias=$ac_optarg ;;
1232
1233  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1234    verbose=yes ;;
1235
1236  -version | --version | --versio | --versi | --vers | -V)
1237    ac_init_version=: ;;
1238
1239  -with-* | --with-*)
1240    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1241    # Reject names that are not valid shell variable names.
1242    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243      as_fn_error $? "invalid package name: \`$ac_useropt'"
1244    ac_useropt_orig=$ac_useropt
1245    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1246    case $ac_user_opts in
1247      *"
1248"with_$ac_useropt"
1249"*) ;;
1250      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1251	 ac_unrecognized_sep=', ';;
1252    esac
1253    eval with_$ac_useropt=\$ac_optarg ;;
1254
1255  -without-* | --without-*)
1256    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1257    # Reject names that are not valid shell variable names.
1258    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1259      as_fn_error $? "invalid package name: \`$ac_useropt'"
1260    ac_useropt_orig=$ac_useropt
1261    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1262    case $ac_user_opts in
1263      *"
1264"with_$ac_useropt"
1265"*) ;;
1266      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1267	 ac_unrecognized_sep=', ';;
1268    esac
1269    eval with_$ac_useropt=no ;;
1270
1271  --x)
1272    # Obsolete; use --with-x.
1273    with_x=yes ;;
1274
1275  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1276  | --x-incl | --x-inc | --x-in | --x-i)
1277    ac_prev=x_includes ;;
1278  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1279  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1280    x_includes=$ac_optarg ;;
1281
1282  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1283  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1284    ac_prev=x_libraries ;;
1285  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1286  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1287    x_libraries=$ac_optarg ;;
1288
1289  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1290Try \`$0 --help' for more information"
1291    ;;
1292
1293  *=*)
1294    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1295    # Reject names that are not valid shell variable names.
1296    case $ac_envvar in #(
1297      '' | [0-9]* | *[!_$as_cr_alnum]* )
1298      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1299    esac
1300    eval $ac_envvar=\$ac_optarg
1301    export $ac_envvar ;;
1302
1303  *)
1304    # FIXME: should be removed in autoconf 3.0.
1305    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1306    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1307      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1308    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1309    ;;
1310
1311  esac
1312done
1313
1314if test -n "$ac_prev"; then
1315  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1316  as_fn_error $? "missing argument to $ac_option"
1317fi
1318
1319if test -n "$ac_unrecognized_opts"; then
1320  case $enable_option_checking in
1321    no) ;;
1322    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1323    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1324  esac
1325fi
1326
1327# Check all directory arguments for consistency.
1328for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1329		datadir sysconfdir sharedstatedir localstatedir includedir \
1330		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1331		libdir localedir mandir runstatedir
1332do
1333  eval ac_val=\$$ac_var
1334  # Remove trailing slashes.
1335  case $ac_val in
1336    */ )
1337      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1338      eval $ac_var=\$ac_val;;
1339  esac
1340  # Be sure to have absolute directory names.
1341  case $ac_val in
1342    [\\/$]* | ?:[\\/]* )  continue;;
1343    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1344  esac
1345  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1346done
1347
1348# There might be people who depend on the old broken behavior: `$host'
1349# used to hold the argument of --host etc.
1350# FIXME: To remove some day.
1351build=$build_alias
1352host=$host_alias
1353target=$target_alias
1354
1355# FIXME: To remove some day.
1356if test "x$host_alias" != x; then
1357  if test "x$build_alias" = x; then
1358    cross_compiling=maybe
1359  elif test "x$build_alias" != "x$host_alias"; then
1360    cross_compiling=yes
1361  fi
1362fi
1363
1364ac_tool_prefix=
1365test -n "$host_alias" && ac_tool_prefix=$host_alias-
1366
1367test "$silent" = yes && exec 6>/dev/null
1368
1369
1370ac_pwd=`pwd` && test -n "$ac_pwd" &&
1371ac_ls_di=`ls -di .` &&
1372ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1373  as_fn_error $? "working directory cannot be determined"
1374test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1375  as_fn_error $? "pwd does not report name of working directory"
1376
1377
1378# Find the source files, if location was not specified.
1379if test -z "$srcdir"; then
1380  ac_srcdir_defaulted=yes
1381  # Try the directory containing this script, then the parent directory.
1382  ac_confdir=`$as_dirname -- "$as_myself" ||
1383$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1384	 X"$as_myself" : 'X\(//\)[^/]' \| \
1385	 X"$as_myself" : 'X\(//\)$' \| \
1386	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1387printf "%s\n" X"$as_myself" |
1388    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1389	    s//\1/
1390	    q
1391	  }
1392	  /^X\(\/\/\)[^/].*/{
1393	    s//\1/
1394	    q
1395	  }
1396	  /^X\(\/\/\)$/{
1397	    s//\1/
1398	    q
1399	  }
1400	  /^X\(\/\).*/{
1401	    s//\1/
1402	    q
1403	  }
1404	  s/.*/./; q'`
1405  srcdir=$ac_confdir
1406  if test ! -r "$srcdir/$ac_unique_file"; then
1407    srcdir=..
1408  fi
1409else
1410  ac_srcdir_defaulted=no
1411fi
1412if test ! -r "$srcdir/$ac_unique_file"; then
1413  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1414  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1415fi
1416ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1417ac_abs_confdir=`(
1418	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1419	pwd)`
1420# When building in place, set srcdir=.
1421if test "$ac_abs_confdir" = "$ac_pwd"; then
1422  srcdir=.
1423fi
1424# Remove unnecessary trailing slashes from srcdir.
1425# Double slashes in file names in object file debugging info
1426# mess up M-x gdb in Emacs.
1427case $srcdir in
1428*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1429esac
1430for ac_var in $ac_precious_vars; do
1431  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1432  eval ac_env_${ac_var}_value=\$${ac_var}
1433  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1434  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1435done
1436
1437#
1438# Report the --help message.
1439#
1440if test "$ac_init_help" = "long"; then
1441  # Omit some internal or obsolete options to make the list less imposing.
1442  # This message is too long to be a string in the A/UX 3.1 sh.
1443  cat <<_ACEOF
1444\`configure' configures xorgproto 2023.2 to adapt to many kinds of systems.
1445
1446Usage: $0 [OPTION]... [VAR=VALUE]...
1447
1448To assign environment variables (e.g., CC, CFLAGS...), specify them as
1449VAR=VALUE.  See below for descriptions of some of the useful variables.
1450
1451Defaults for the options are specified in brackets.
1452
1453Configuration:
1454  -h, --help              display this help and exit
1455      --help=short        display options specific to this package
1456      --help=recursive    display the short help of all the included packages
1457  -V, --version           display version information and exit
1458  -q, --quiet, --silent   do not print \`checking ...' messages
1459      --cache-file=FILE   cache test results in FILE [disabled]
1460  -C, --config-cache      alias for \`--cache-file=config.cache'
1461  -n, --no-create         do not create output files
1462      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1463
1464Installation directories:
1465  --prefix=PREFIX         install architecture-independent files in PREFIX
1466                          [$ac_default_prefix]
1467  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1468                          [PREFIX]
1469
1470By default, \`make install' will install all the files in
1471\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1472an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1473for instance \`--prefix=\$HOME'.
1474
1475For better control, use the options below.
1476
1477Fine tuning of the installation directories:
1478  --bindir=DIR            user executables [EPREFIX/bin]
1479  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1480  --libexecdir=DIR        program executables [EPREFIX/libexec]
1481  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1482  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1483  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1484  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1485  --libdir=DIR            object code libraries [EPREFIX/lib]
1486  --includedir=DIR        C header files [PREFIX/include]
1487  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1488  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1489  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1490  --infodir=DIR           info documentation [DATAROOTDIR/info]
1491  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1492  --mandir=DIR            man documentation [DATAROOTDIR/man]
1493  --docdir=DIR            documentation root [DATAROOTDIR/doc/xorgproto]
1494  --htmldir=DIR           html documentation [DOCDIR]
1495  --dvidir=DIR            dvi documentation [DOCDIR]
1496  --pdfdir=DIR            pdf documentation [DOCDIR]
1497  --psdir=DIR             ps documentation [DOCDIR]
1498_ACEOF
1499
1500  cat <<\_ACEOF
1501
1502Program names:
1503  --program-prefix=PREFIX            prepend PREFIX to installed program names
1504  --program-suffix=SUFFIX            append SUFFIX to installed program names
1505  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1506
1507System types:
1508  --build=BUILD     configure for building on BUILD [guessed]
1509  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1510_ACEOF
1511fi
1512
1513if test -n "$ac_init_help"; then
1514  case $ac_init_help in
1515     short | recursive ) echo "Configuration of xorgproto 2023.2:";;
1516   esac
1517  cat <<\_ACEOF
1518
1519Optional Features:
1520  --disable-option-checking  ignore unrecognized --enable/--with options
1521  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1522  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1523  --enable-silent-rules   less verbose build output (undo: "make V=1")
1524  --disable-silent-rules  verbose build output (undo: "make V=0")
1525  --enable-dependency-tracking
1526                          do not reject slow dependency extractors
1527  --disable-dependency-tracking
1528                          speeds up one-time build
1529  --disable-selective-werror
1530                          Turn off selective compiler errors. (default:
1531                          enabled)
1532  --enable-strict-compilation
1533                          Enable all warnings from compiler and make them
1534                          errors (default: disabled)
1535  --enable-specs          Enable building the specs (default: yes)
1536  --enable-legacy         Install legacy protocol headers (default: false)
1537
1538Optional Packages:
1539  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1540  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1541  --with-xmlto            Use xmlto to regenerate documentation (default:
1542                          auto)
1543  --with-fop              Use fop to regenerate documentation (default: auto)
1544  --with-xsltproc         Use xsltproc for the transformation of XML documents
1545                          (default: auto)
1546  --with-python-sys-prefix
1547                          use Python's sys.prefix and sys.exec_prefix values
1548  --with-python_prefix    override the default PYTHON_PREFIX
1549  --with-python_exec_prefix
1550                          override the default PYTHON_EXEC_PREFIX
1551
1552Some influential environment variables:
1553  CC          C compiler command
1554  CFLAGS      C compiler flags
1555  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1556              nonstandard directory <lib dir>
1557  LIBS        libraries to pass to the linker, e.g. -l<library>
1558  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1559              you have headers in a nonstandard directory <include dir>
1560  PKG_CONFIG  path to pkg-config utility
1561  PKG_CONFIG_PATH
1562              directories to add to pkg-config's search path
1563  PKG_CONFIG_LIBDIR
1564              path overriding pkg-config's built-in search path
1565  XMLTO       Path to xmlto command
1566  FOP         Path to fop command
1567  XSLTPROC    Path to xsltproc command
1568  PYTHON      the Python interpreter
1569
1570Use these variables to override the choices made by `configure' or to help
1571it to find libraries and programs with nonstandard names/locations.
1572
1573Report bugs to <https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues>.
1574_ACEOF
1575ac_status=$?
1576fi
1577
1578if test "$ac_init_help" = "recursive"; then
1579  # If there are subdirs, report their specific --help.
1580  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1581    test -d "$ac_dir" ||
1582      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1583      continue
1584    ac_builddir=.
1585
1586case "$ac_dir" in
1587.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588*)
1589  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1590  # A ".." for each directory in $ac_dir_suffix.
1591  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1592  case $ac_top_builddir_sub in
1593  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1595  esac ;;
1596esac
1597ac_abs_top_builddir=$ac_pwd
1598ac_abs_builddir=$ac_pwd$ac_dir_suffix
1599# for backward compatibility:
1600ac_top_builddir=$ac_top_build_prefix
1601
1602case $srcdir in
1603  .)  # We are building in place.
1604    ac_srcdir=.
1605    ac_top_srcdir=$ac_top_builddir_sub
1606    ac_abs_top_srcdir=$ac_pwd ;;
1607  [\\/]* | ?:[\\/]* )  # Absolute name.
1608    ac_srcdir=$srcdir$ac_dir_suffix;
1609    ac_top_srcdir=$srcdir
1610    ac_abs_top_srcdir=$srcdir ;;
1611  *) # Relative name.
1612    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613    ac_top_srcdir=$ac_top_build_prefix$srcdir
1614    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1615esac
1616ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1617
1618    cd "$ac_dir" || { ac_status=$?; continue; }
1619    # Check for configure.gnu first; this name is used for a wrapper for
1620    # Metaconfig's "Configure" on case-insensitive file systems.
1621    if test -f "$ac_srcdir/configure.gnu"; then
1622      echo &&
1623      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1624    elif test -f "$ac_srcdir/configure"; then
1625      echo &&
1626      $SHELL "$ac_srcdir/configure" --help=recursive
1627    else
1628      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1629    fi || ac_status=$?
1630    cd "$ac_pwd" || { ac_status=$?; break; }
1631  done
1632fi
1633
1634test -n "$ac_init_help" && exit $ac_status
1635if $ac_init_version; then
1636  cat <<\_ACEOF
1637xorgproto configure 2023.2
1638generated by GNU Autoconf 2.71
1639
1640Copyright (C) 2021 Free Software Foundation, Inc.
1641This configure script is free software; the Free Software Foundation
1642gives unlimited permission to copy, distribute and modify it.
1643_ACEOF
1644  exit
1645fi
1646
1647## ------------------------ ##
1648## Autoconf initialization. ##
1649## ------------------------ ##
1650
1651# ac_fn_c_try_compile LINENO
1652# --------------------------
1653# Try to compile conftest.$ac_ext, and return whether this succeeded.
1654ac_fn_c_try_compile ()
1655{
1656  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657  rm -f conftest.$ac_objext conftest.beam
1658  if { { ac_try="$ac_compile"
1659case "(($ac_try" in
1660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661  *) ac_try_echo=$ac_try;;
1662esac
1663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664printf "%s\n" "$ac_try_echo"; } >&5
1665  (eval "$ac_compile") 2>conftest.err
1666  ac_status=$?
1667  if test -s conftest.err; then
1668    grep -v '^ *+' conftest.err >conftest.er1
1669    cat conftest.er1 >&5
1670    mv -f conftest.er1 conftest.err
1671  fi
1672  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673  test $ac_status = 0; } && {
1674	 test -z "$ac_c_werror_flag" ||
1675	 test ! -s conftest.err
1676       } && test -s conftest.$ac_objext
1677then :
1678  ac_retval=0
1679else $as_nop
1680  printf "%s\n" "$as_me: failed program was:" >&5
1681sed 's/^/| /' conftest.$ac_ext >&5
1682
1683	ac_retval=1
1684fi
1685  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686  as_fn_set_status $ac_retval
1687
1688} # ac_fn_c_try_compile
1689
1690# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1691# ------------------------------------------------------------------
1692# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1693# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1694ac_fn_check_decl ()
1695{
1696  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697  as_decl_name=`echo $2|sed 's/ *(.*//'`
1698  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1699printf %s "checking whether $as_decl_name is declared... " >&6; }
1700if eval test \${$3+y}
1701then :
1702  printf %s "(cached) " >&6
1703else $as_nop
1704  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1705  eval ac_save_FLAGS=\$$6
1706  as_fn_append $6 " $5"
1707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708/* end confdefs.h.  */
1709$4
1710int
1711main (void)
1712{
1713#ifndef $as_decl_name
1714#ifdef __cplusplus
1715  (void) $as_decl_use;
1716#else
1717  (void) $as_decl_name;
1718#endif
1719#endif
1720
1721  ;
1722  return 0;
1723}
1724_ACEOF
1725if ac_fn_c_try_compile "$LINENO"
1726then :
1727  eval "$3=yes"
1728else $as_nop
1729  eval "$3=no"
1730fi
1731rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1732  eval $6=\$ac_save_FLAGS
1733
1734fi
1735eval ac_res=\$$3
1736	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737printf "%s\n" "$ac_res" >&6; }
1738  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739
1740} # ac_fn_check_decl
1741
1742# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1743# -------------------------------------------------------
1744# Tests whether HEADER exists and can be compiled using the include files in
1745# INCLUDES, setting the cache variable VAR accordingly.
1746ac_fn_c_check_header_compile ()
1747{
1748  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750printf %s "checking for $2... " >&6; }
1751if eval test \${$3+y}
1752then :
1753  printf %s "(cached) " >&6
1754else $as_nop
1755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756/* end confdefs.h.  */
1757$4
1758#include <$2>
1759_ACEOF
1760if ac_fn_c_try_compile "$LINENO"
1761then :
1762  eval "$3=yes"
1763else $as_nop
1764  eval "$3=no"
1765fi
1766rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1767fi
1768eval ac_res=\$$3
1769	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770printf "%s\n" "$ac_res" >&6; }
1771  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772
1773} # ac_fn_c_check_header_compile
1774
1775# ac_fn_c_try_link LINENO
1776# -----------------------
1777# Try to link conftest.$ac_ext, and return whether this succeeded.
1778ac_fn_c_try_link ()
1779{
1780  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1782  if { { ac_try="$ac_link"
1783case "(($ac_try" in
1784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785  *) ac_try_echo=$ac_try;;
1786esac
1787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788printf "%s\n" "$ac_try_echo"; } >&5
1789  (eval "$ac_link") 2>conftest.err
1790  ac_status=$?
1791  if test -s conftest.err; then
1792    grep -v '^ *+' conftest.err >conftest.er1
1793    cat conftest.er1 >&5
1794    mv -f conftest.er1 conftest.err
1795  fi
1796  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797  test $ac_status = 0; } && {
1798	 test -z "$ac_c_werror_flag" ||
1799	 test ! -s conftest.err
1800       } && test -s conftest$ac_exeext && {
1801	 test "$cross_compiling" = yes ||
1802	 test -x conftest$ac_exeext
1803       }
1804then :
1805  ac_retval=0
1806else $as_nop
1807  printf "%s\n" "$as_me: failed program was:" >&5
1808sed 's/^/| /' conftest.$ac_ext >&5
1809
1810	ac_retval=1
1811fi
1812  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1813  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1814  # interfere with the next link command; also delete a directory that is
1815  # left behind by Apple's compiler.  We do this before executing the actions.
1816  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1817  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818  as_fn_set_status $ac_retval
1819
1820} # ac_fn_c_try_link
1821
1822# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1823# ----------------------------------------------------
1824# Tries to find if the field MEMBER exists in type AGGR, after including
1825# INCLUDES, setting cache variable VAR accordingly.
1826ac_fn_c_check_member ()
1827{
1828  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1830printf %s "checking for $2.$3... " >&6; }
1831if eval test \${$4+y}
1832then :
1833  printf %s "(cached) " >&6
1834else $as_nop
1835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836/* end confdefs.h.  */
1837$5
1838int
1839main (void)
1840{
1841static $2 ac_aggr;
1842if (ac_aggr.$3)
1843return 0;
1844  ;
1845  return 0;
1846}
1847_ACEOF
1848if ac_fn_c_try_compile "$LINENO"
1849then :
1850  eval "$4=yes"
1851else $as_nop
1852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853/* end confdefs.h.  */
1854$5
1855int
1856main (void)
1857{
1858static $2 ac_aggr;
1859if (sizeof ac_aggr.$3)
1860return 0;
1861  ;
1862  return 0;
1863}
1864_ACEOF
1865if ac_fn_c_try_compile "$LINENO"
1866then :
1867  eval "$4=yes"
1868else $as_nop
1869  eval "$4=no"
1870fi
1871rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1872fi
1873rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1874fi
1875eval ac_res=\$$4
1876	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877printf "%s\n" "$ac_res" >&6; }
1878  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879
1880} # ac_fn_c_check_member
1881ac_configure_args_raw=
1882for ac_arg
1883do
1884  case $ac_arg in
1885  *\'*)
1886    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1887  esac
1888  as_fn_append ac_configure_args_raw " '$ac_arg'"
1889done
1890
1891case $ac_configure_args_raw in
1892  *$as_nl*)
1893    ac_safe_unquote= ;;
1894  *)
1895    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1896    ac_unsafe_a="$ac_unsafe_z#~"
1897    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1898    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1899esac
1900
1901cat >config.log <<_ACEOF
1902This file contains any messages produced by compilers while
1903running configure, to aid debugging if configure makes a mistake.
1904
1905It was created by xorgproto $as_me 2023.2, which was
1906generated by GNU Autoconf 2.71.  Invocation command line was
1907
1908  $ $0$ac_configure_args_raw
1909
1910_ACEOF
1911exec 5>>config.log
1912{
1913cat <<_ASUNAME
1914## --------- ##
1915## Platform. ##
1916## --------- ##
1917
1918hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1919uname -m = `(uname -m) 2>/dev/null || echo unknown`
1920uname -r = `(uname -r) 2>/dev/null || echo unknown`
1921uname -s = `(uname -s) 2>/dev/null || echo unknown`
1922uname -v = `(uname -v) 2>/dev/null || echo unknown`
1923
1924/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1925/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1926
1927/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1928/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1929/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1930/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1931/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1932/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1933/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1934
1935_ASUNAME
1936
1937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938for as_dir in $PATH
1939do
1940  IFS=$as_save_IFS
1941  case $as_dir in #(((
1942    '') as_dir=./ ;;
1943    */) ;;
1944    *) as_dir=$as_dir/ ;;
1945  esac
1946    printf "%s\n" "PATH: $as_dir"
1947  done
1948IFS=$as_save_IFS
1949
1950} >&5
1951
1952cat >&5 <<_ACEOF
1953
1954
1955## ----------- ##
1956## Core tests. ##
1957## ----------- ##
1958
1959_ACEOF
1960
1961
1962# Keep a trace of the command line.
1963# Strip out --no-create and --no-recursion so they do not pile up.
1964# Strip out --silent because we don't want to record it for future runs.
1965# Also quote any args containing shell meta-characters.
1966# Make two passes to allow for proper duplicate-argument suppression.
1967ac_configure_args=
1968ac_configure_args0=
1969ac_configure_args1=
1970ac_must_keep_next=false
1971for ac_pass in 1 2
1972do
1973  for ac_arg
1974  do
1975    case $ac_arg in
1976    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1977    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1978    | -silent | --silent | --silen | --sile | --sil)
1979      continue ;;
1980    *\'*)
1981      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1982    esac
1983    case $ac_pass in
1984    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1985    2)
1986      as_fn_append ac_configure_args1 " '$ac_arg'"
1987      if test $ac_must_keep_next = true; then
1988	ac_must_keep_next=false # Got value, back to normal.
1989      else
1990	case $ac_arg in
1991	  *=* | --config-cache | -C | -disable-* | --disable-* \
1992	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1993	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1994	  | -with-* | --with-* | -without-* | --without-* | --x)
1995	    case "$ac_configure_args0 " in
1996	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1997	    esac
1998	    ;;
1999	  -* ) ac_must_keep_next=true ;;
2000	esac
2001      fi
2002      as_fn_append ac_configure_args " '$ac_arg'"
2003      ;;
2004    esac
2005  done
2006done
2007{ ac_configure_args0=; unset ac_configure_args0;}
2008{ ac_configure_args1=; unset ac_configure_args1;}
2009
2010# When interrupted or exit'd, cleanup temporary files, and complete
2011# config.log.  We remove comments because anyway the quotes in there
2012# would cause problems or look ugly.
2013# WARNING: Use '\'' to represent an apostrophe within the trap.
2014# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2015trap 'exit_status=$?
2016  # Sanitize IFS.
2017  IFS=" ""	$as_nl"
2018  # Save into config.log some information that might help in debugging.
2019  {
2020    echo
2021
2022    printf "%s\n" "## ---------------- ##
2023## Cache variables. ##
2024## ---------------- ##"
2025    echo
2026    # The following way of writing the cache mishandles newlines in values,
2027(
2028  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2029    eval ac_val=\$$ac_var
2030    case $ac_val in #(
2031    *${as_nl}*)
2032      case $ac_var in #(
2033      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2034printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2035      esac
2036      case $ac_var in #(
2037      _ | IFS | as_nl) ;; #(
2038      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2039      *) { eval $ac_var=; unset $ac_var;} ;;
2040      esac ;;
2041    esac
2042  done
2043  (set) 2>&1 |
2044    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2045    *${as_nl}ac_space=\ *)
2046      sed -n \
2047	"s/'\''/'\''\\\\'\'''\''/g;
2048	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2049      ;; #(
2050    *)
2051      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2052      ;;
2053    esac |
2054    sort
2055)
2056    echo
2057
2058    printf "%s\n" "## ----------------- ##
2059## Output variables. ##
2060## ----------------- ##"
2061    echo
2062    for ac_var in $ac_subst_vars
2063    do
2064      eval ac_val=\$$ac_var
2065      case $ac_val in
2066      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2067      esac
2068      printf "%s\n" "$ac_var='\''$ac_val'\''"
2069    done | sort
2070    echo
2071
2072    if test -n "$ac_subst_files"; then
2073      printf "%s\n" "## ------------------- ##
2074## File substitutions. ##
2075## ------------------- ##"
2076      echo
2077      for ac_var in $ac_subst_files
2078      do
2079	eval ac_val=\$$ac_var
2080	case $ac_val in
2081	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2082	esac
2083	printf "%s\n" "$ac_var='\''$ac_val'\''"
2084      done | sort
2085      echo
2086    fi
2087
2088    if test -s confdefs.h; then
2089      printf "%s\n" "## ----------- ##
2090## confdefs.h. ##
2091## ----------- ##"
2092      echo
2093      cat confdefs.h
2094      echo
2095    fi
2096    test "$ac_signal" != 0 &&
2097      printf "%s\n" "$as_me: caught signal $ac_signal"
2098    printf "%s\n" "$as_me: exit $exit_status"
2099  } >&5
2100  rm -f core *.core core.conftest.* &&
2101    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2102    exit $exit_status
2103' 0
2104for ac_signal in 1 2 13 15; do
2105  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2106done
2107ac_signal=0
2108
2109# confdefs.h avoids OS command line length limits that DEFS can exceed.
2110rm -f -r conftest* confdefs.h
2111
2112printf "%s\n" "/* confdefs.h */" > confdefs.h
2113
2114# Predefined preprocessor variables.
2115
2116printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2117
2118printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2119
2120printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2121
2122printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2123
2124printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2125
2126printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2127
2128
2129# Let the site file select an alternate cache file if it wants to.
2130# Prefer an explicitly selected file to automatically selected ones.
2131if test -n "$CONFIG_SITE"; then
2132  ac_site_files="$CONFIG_SITE"
2133elif test "x$prefix" != xNONE; then
2134  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2135else
2136  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2137fi
2138
2139for ac_site_file in $ac_site_files
2140do
2141  case $ac_site_file in #(
2142  */*) :
2143     ;; #(
2144  *) :
2145    ac_site_file=./$ac_site_file ;;
2146esac
2147  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2148    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2149printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2150    sed 's/^/| /' "$ac_site_file" >&5
2151    . "$ac_site_file" \
2152      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2153printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2154as_fn_error $? "failed to load site script $ac_site_file
2155See \`config.log' for more details" "$LINENO" 5; }
2156  fi
2157done
2158
2159if test -r "$cache_file"; then
2160  # Some versions of bash will fail to source /dev/null (special files
2161  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2162  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2163    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2164printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2165    case $cache_file in
2166      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2167      *)                      . "./$cache_file";;
2168    esac
2169  fi
2170else
2171  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2172printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2173  >$cache_file
2174fi
2175
2176# Test code for whether the C compiler supports C89 (global declarations)
2177ac_c_conftest_c89_globals='
2178/* Does the compiler advertise C89 conformance?
2179   Do not test the value of __STDC__, because some compilers set it to 0
2180   while being otherwise adequately conformant. */
2181#if !defined __STDC__
2182# error "Compiler does not advertise C89 conformance"
2183#endif
2184
2185#include <stddef.h>
2186#include <stdarg.h>
2187struct stat;
2188/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2189struct buf { int x; };
2190struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2191static char *e (p, i)
2192     char **p;
2193     int i;
2194{
2195  return p[i];
2196}
2197static char *f (char * (*g) (char **, int), char **p, ...)
2198{
2199  char *s;
2200  va_list v;
2201  va_start (v,p);
2202  s = g (p, va_arg (v,int));
2203  va_end (v);
2204  return s;
2205}
2206
2207/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2208   function prototypes and stuff, but not \xHH hex character constants.
2209   These do not provoke an error unfortunately, instead are silently treated
2210   as an "x".  The following induces an error, until -std is added to get
2211   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2212   array size at least.  It is necessary to write \x00 == 0 to get something
2213   that is true only with -std.  */
2214int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2215
2216/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2217   inside strings and character constants.  */
2218#define FOO(x) '\''x'\''
2219int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2220
2221int test (int i, double x);
2222struct s1 {int (*f) (int a);};
2223struct s2 {int (*f) (double a);};
2224int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2225               int, int);'
2226
2227# Test code for whether the C compiler supports C89 (body of main).
2228ac_c_conftest_c89_main='
2229ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2230'
2231
2232# Test code for whether the C compiler supports C99 (global declarations)
2233ac_c_conftest_c99_globals='
2234// Does the compiler advertise C99 conformance?
2235#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2236# error "Compiler does not advertise C99 conformance"
2237#endif
2238
2239#include <stdbool.h>
2240extern int puts (const char *);
2241extern int printf (const char *, ...);
2242extern int dprintf (int, const char *, ...);
2243extern void *malloc (size_t);
2244
2245// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2246// dprintf is used instead of fprintf to avoid needing to declare
2247// FILE and stderr.
2248#define debug(...) dprintf (2, __VA_ARGS__)
2249#define showlist(...) puts (#__VA_ARGS__)
2250#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2251static void
2252test_varargs_macros (void)
2253{
2254  int x = 1234;
2255  int y = 5678;
2256  debug ("Flag");
2257  debug ("X = %d\n", x);
2258  showlist (The first, second, and third items.);
2259  report (x>y, "x is %d but y is %d", x, y);
2260}
2261
2262// Check long long types.
2263#define BIG64 18446744073709551615ull
2264#define BIG32 4294967295ul
2265#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2266#if !BIG_OK
2267  #error "your preprocessor is broken"
2268#endif
2269#if BIG_OK
2270#else
2271  #error "your preprocessor is broken"
2272#endif
2273static long long int bignum = -9223372036854775807LL;
2274static unsigned long long int ubignum = BIG64;
2275
2276struct incomplete_array
2277{
2278  int datasize;
2279  double data[];
2280};
2281
2282struct named_init {
2283  int number;
2284  const wchar_t *name;
2285  double average;
2286};
2287
2288typedef const char *ccp;
2289
2290static inline int
2291test_restrict (ccp restrict text)
2292{
2293  // See if C++-style comments work.
2294  // Iterate through items via the restricted pointer.
2295  // Also check for declarations in for loops.
2296  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2297    continue;
2298  return 0;
2299}
2300
2301// Check varargs and va_copy.
2302static bool
2303test_varargs (const char *format, ...)
2304{
2305  va_list args;
2306  va_start (args, format);
2307  va_list args_copy;
2308  va_copy (args_copy, args);
2309
2310  const char *str = "";
2311  int number = 0;
2312  float fnumber = 0;
2313
2314  while (*format)
2315    {
2316      switch (*format++)
2317	{
2318	case '\''s'\'': // string
2319	  str = va_arg (args_copy, const char *);
2320	  break;
2321	case '\''d'\'': // int
2322	  number = va_arg (args_copy, int);
2323	  break;
2324	case '\''f'\'': // float
2325	  fnumber = va_arg (args_copy, double);
2326	  break;
2327	default:
2328	  break;
2329	}
2330    }
2331  va_end (args_copy);
2332  va_end (args);
2333
2334  return *str && number && fnumber;
2335}
2336'
2337
2338# Test code for whether the C compiler supports C99 (body of main).
2339ac_c_conftest_c99_main='
2340  // Check bool.
2341  _Bool success = false;
2342  success |= (argc != 0);
2343
2344  // Check restrict.
2345  if (test_restrict ("String literal") == 0)
2346    success = true;
2347  char *restrict newvar = "Another string";
2348
2349  // Check varargs.
2350  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2351  test_varargs_macros ();
2352
2353  // Check flexible array members.
2354  struct incomplete_array *ia =
2355    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2356  ia->datasize = 10;
2357  for (int i = 0; i < ia->datasize; ++i)
2358    ia->data[i] = i * 1.234;
2359
2360  // Check named initializers.
2361  struct named_init ni = {
2362    .number = 34,
2363    .name = L"Test wide string",
2364    .average = 543.34343,
2365  };
2366
2367  ni.number = 58;
2368
2369  int dynamic_array[ni.number];
2370  dynamic_array[0] = argv[0][0];
2371  dynamic_array[ni.number - 1] = 543;
2372
2373  // work around unused variable warnings
2374  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2375	 || dynamic_array[ni.number - 1] != 543);
2376'
2377
2378# Test code for whether the C compiler supports C11 (global declarations)
2379ac_c_conftest_c11_globals='
2380// Does the compiler advertise C11 conformance?
2381#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2382# error "Compiler does not advertise C11 conformance"
2383#endif
2384
2385// Check _Alignas.
2386char _Alignas (double) aligned_as_double;
2387char _Alignas (0) no_special_alignment;
2388extern char aligned_as_int;
2389char _Alignas (0) _Alignas (int) aligned_as_int;
2390
2391// Check _Alignof.
2392enum
2393{
2394  int_alignment = _Alignof (int),
2395  int_array_alignment = _Alignof (int[100]),
2396  char_alignment = _Alignof (char)
2397};
2398_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2399
2400// Check _Noreturn.
2401int _Noreturn does_not_return (void) { for (;;) continue; }
2402
2403// Check _Static_assert.
2404struct test_static_assert
2405{
2406  int x;
2407  _Static_assert (sizeof (int) <= sizeof (long int),
2408                  "_Static_assert does not work in struct");
2409  long int y;
2410};
2411
2412// Check UTF-8 literals.
2413#define u8 syntax error!
2414char const utf8_literal[] = u8"happens to be ASCII" "another string";
2415
2416// Check duplicate typedefs.
2417typedef long *long_ptr;
2418typedef long int *long_ptr;
2419typedef long_ptr long_ptr;
2420
2421// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2422struct anonymous
2423{
2424  union {
2425    struct { int i; int j; };
2426    struct { int k; long int l; } w;
2427  };
2428  int m;
2429} v1;
2430'
2431
2432# Test code for whether the C compiler supports C11 (body of main).
2433ac_c_conftest_c11_main='
2434  _Static_assert ((offsetof (struct anonymous, i)
2435		   == offsetof (struct anonymous, w.k)),
2436		  "Anonymous union alignment botch");
2437  v1.i = 2;
2438  v1.w.k = 5;
2439  ok |= v1.i != 5;
2440'
2441
2442# Test code for whether the C compiler supports C11 (complete).
2443ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2444${ac_c_conftest_c99_globals}
2445${ac_c_conftest_c11_globals}
2446
2447int
2448main (int argc, char **argv)
2449{
2450  int ok = 0;
2451  ${ac_c_conftest_c89_main}
2452  ${ac_c_conftest_c99_main}
2453  ${ac_c_conftest_c11_main}
2454  return ok;
2455}
2456"
2457
2458# Test code for whether the C compiler supports C99 (complete).
2459ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2460${ac_c_conftest_c99_globals}
2461
2462int
2463main (int argc, char **argv)
2464{
2465  int ok = 0;
2466  ${ac_c_conftest_c89_main}
2467  ${ac_c_conftest_c99_main}
2468  return ok;
2469}
2470"
2471
2472# Test code for whether the C compiler supports C89 (complete).
2473ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2474
2475int
2476main (int argc, char **argv)
2477{
2478  int ok = 0;
2479  ${ac_c_conftest_c89_main}
2480  return ok;
2481}
2482"
2483
2484as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2485as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2486as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2487as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2488as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2489as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2490as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2491as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2492as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2493
2494# Auxiliary files required by this configure script.
2495ac_aux_files="config.guess config.sub compile missing install-sh"
2496
2497# Locations in which to look for auxiliary files.
2498ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2499
2500# Search for a directory containing all of the required auxiliary files,
2501# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2502# If we don't find one directory that contains all the files we need,
2503# we report the set of missing files from the *first* directory in
2504# $ac_aux_dir_candidates and give up.
2505ac_missing_aux_files=""
2506ac_first_candidate=:
2507printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509as_found=false
2510for as_dir in $ac_aux_dir_candidates
2511do
2512  IFS=$as_save_IFS
2513  case $as_dir in #(((
2514    '') as_dir=./ ;;
2515    */) ;;
2516    *) as_dir=$as_dir/ ;;
2517  esac
2518  as_found=:
2519
2520  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2521  ac_aux_dir_found=yes
2522  ac_install_sh=
2523  for ac_aux in $ac_aux_files
2524  do
2525    # As a special case, if "install-sh" is required, that requirement
2526    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2527    # and $ac_install_sh is set appropriately for whichever one is found.
2528    if test x"$ac_aux" = x"install-sh"
2529    then
2530      if test -f "${as_dir}install-sh"; then
2531        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2532        ac_install_sh="${as_dir}install-sh -c"
2533      elif test -f "${as_dir}install.sh"; then
2534        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2535        ac_install_sh="${as_dir}install.sh -c"
2536      elif test -f "${as_dir}shtool"; then
2537        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2538        ac_install_sh="${as_dir}shtool install -c"
2539      else
2540        ac_aux_dir_found=no
2541        if $ac_first_candidate; then
2542          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2543        else
2544          break
2545        fi
2546      fi
2547    else
2548      if test -f "${as_dir}${ac_aux}"; then
2549        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2550      else
2551        ac_aux_dir_found=no
2552        if $ac_first_candidate; then
2553          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2554        else
2555          break
2556        fi
2557      fi
2558    fi
2559  done
2560  if test "$ac_aux_dir_found" = yes; then
2561    ac_aux_dir="$as_dir"
2562    break
2563  fi
2564  ac_first_candidate=false
2565
2566  as_found=false
2567done
2568IFS=$as_save_IFS
2569if $as_found
2570then :
2571
2572else $as_nop
2573  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2574fi
2575
2576
2577# These three variables are undocumented and unsupported,
2578# and are intended to be withdrawn in a future Autoconf release.
2579# They can cause serious problems if a builder's source tree is in a directory
2580# whose full name contains unusual characters.
2581if test -f "${ac_aux_dir}config.guess"; then
2582  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2583fi
2584if test -f "${ac_aux_dir}config.sub"; then
2585  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2586fi
2587if test -f "$ac_aux_dir/configure"; then
2588  ac_configure="$SHELL ${ac_aux_dir}configure"
2589fi
2590
2591# Check that the precious variables saved in the cache have kept the same
2592# value.
2593ac_cache_corrupted=false
2594for ac_var in $ac_precious_vars; do
2595  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2596  eval ac_new_set=\$ac_env_${ac_var}_set
2597  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2598  eval ac_new_val=\$ac_env_${ac_var}_value
2599  case $ac_old_set,$ac_new_set in
2600    set,)
2601      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2602printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2603      ac_cache_corrupted=: ;;
2604    ,set)
2605      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2606printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2607      ac_cache_corrupted=: ;;
2608    ,);;
2609    *)
2610      if test "x$ac_old_val" != "x$ac_new_val"; then
2611	# differences in whitespace do not lead to failure.
2612	ac_old_val_w=`echo x $ac_old_val`
2613	ac_new_val_w=`echo x $ac_new_val`
2614	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2615	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2616printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2617	  ac_cache_corrupted=:
2618	else
2619	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2620printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2621	  eval $ac_var=\$ac_old_val
2622	fi
2623	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2624printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2625	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2626printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2627      fi;;
2628  esac
2629  # Pass precious variables to config.status.
2630  if test "$ac_new_set" = set; then
2631    case $ac_new_val in
2632    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2633    *) ac_arg=$ac_var=$ac_new_val ;;
2634    esac
2635    case " $ac_configure_args " in
2636      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2637      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2638    esac
2639  fi
2640done
2641if $ac_cache_corrupted; then
2642  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2643printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2644  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2645printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2646  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2647	    and start over" "$LINENO" 5
2648fi
2649## -------------------- ##
2650## Main body of script. ##
2651## -------------------- ##
2652
2653ac_ext=c
2654ac_cpp='$CPP $CPPFLAGS'
2655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2657ac_compiler_gnu=$ac_cv_c_compiler_gnu
2658
2659
2660am__api_version='1.16'
2661
2662
2663
2664  # Find a good install program.  We prefer a C program (faster),
2665# so one script is as good as another.  But avoid the broken or
2666# incompatible versions:
2667# SysV /etc/install, /usr/sbin/install
2668# SunOS /usr/etc/install
2669# IRIX /sbin/install
2670# AIX /bin/install
2671# AmigaOS /C/install, which installs bootblocks on floppy discs
2672# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2673# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2674# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2675# OS/2's system install, which has a completely different semantic
2676# ./install, which can be erroneously created by make from ./install.sh.
2677# Reject install programs that cannot install multiple files.
2678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2679printf %s "checking for a BSD-compatible install... " >&6; }
2680if test -z "$INSTALL"; then
2681if test ${ac_cv_path_install+y}
2682then :
2683  printf %s "(cached) " >&6
2684else $as_nop
2685  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686for as_dir in $PATH
2687do
2688  IFS=$as_save_IFS
2689  case $as_dir in #(((
2690    '') as_dir=./ ;;
2691    */) ;;
2692    *) as_dir=$as_dir/ ;;
2693  esac
2694    # Account for fact that we put trailing slashes in our PATH walk.
2695case $as_dir in #((
2696  ./ | /[cC]/* | \
2697  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2698  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2699  /usr/ucb/* ) ;;
2700  *)
2701    # OSF1 and SCO ODT 3.0 have their own names for install.
2702    # Don't use installbsd from OSF since it installs stuff as root
2703    # by default.
2704    for ac_prog in ginstall scoinst install; do
2705      for ac_exec_ext in '' $ac_executable_extensions; do
2706	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2707	  if test $ac_prog = install &&
2708	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2709	    # AIX install.  It has an incompatible calling convention.
2710	    :
2711	  elif test $ac_prog = install &&
2712	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2713	    # program-specific install script used by HP pwplus--don't use.
2714	    :
2715	  else
2716	    rm -rf conftest.one conftest.two conftest.dir
2717	    echo one > conftest.one
2718	    echo two > conftest.two
2719	    mkdir conftest.dir
2720	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2721	      test -s conftest.one && test -s conftest.two &&
2722	      test -s conftest.dir/conftest.one &&
2723	      test -s conftest.dir/conftest.two
2724	    then
2725	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2726	      break 3
2727	    fi
2728	  fi
2729	fi
2730      done
2731    done
2732    ;;
2733esac
2734
2735  done
2736IFS=$as_save_IFS
2737
2738rm -rf conftest.one conftest.two conftest.dir
2739
2740fi
2741  if test ${ac_cv_path_install+y}; then
2742    INSTALL=$ac_cv_path_install
2743  else
2744    # As a last resort, use the slow shell script.  Don't cache a
2745    # value for INSTALL within a source directory, because that will
2746    # break other packages using the cache if that directory is
2747    # removed, or if the value is a relative name.
2748    INSTALL=$ac_install_sh
2749  fi
2750fi
2751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2752printf "%s\n" "$INSTALL" >&6; }
2753
2754# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2755# It thinks the first close brace ends the variable substitution.
2756test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2757
2758test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2759
2760test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2761
2762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2763printf %s "checking whether build environment is sane... " >&6; }
2764# Reject unsafe characters in $srcdir or the absolute working directory
2765# name.  Accept space and tab only in the latter.
2766am_lf='
2767'
2768case `pwd` in
2769  *[\\\"\#\$\&\'\`$am_lf]*)
2770    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2771esac
2772case $srcdir in
2773  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2774    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2775esac
2776
2777# Do 'set' in a subshell so we don't clobber the current shell's
2778# arguments.  Must try -L first in case configure is actually a
2779# symlink; some systems play weird games with the mod time of symlinks
2780# (eg FreeBSD returns the mod time of the symlink's containing
2781# directory).
2782if (
2783   am_has_slept=no
2784   for am_try in 1 2; do
2785     echo "timestamp, slept: $am_has_slept" > conftest.file
2786     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2787     if test "$*" = "X"; then
2788	# -L didn't work.
2789	set X `ls -t "$srcdir/configure" conftest.file`
2790     fi
2791     if test "$*" != "X $srcdir/configure conftest.file" \
2792	&& test "$*" != "X conftest.file $srcdir/configure"; then
2793
2794	# If neither matched, then we have a broken ls.  This can happen
2795	# if, for instance, CONFIG_SHELL is bash and it inherits a
2796	# broken ls alias from the environment.  This has actually
2797	# happened.  Such a system could not be considered "sane".
2798	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2799  alias in your environment" "$LINENO" 5
2800     fi
2801     if test "$2" = conftest.file || test $am_try -eq 2; then
2802       break
2803     fi
2804     # Just in case.
2805     sleep 1
2806     am_has_slept=yes
2807   done
2808   test "$2" = conftest.file
2809   )
2810then
2811   # Ok.
2812   :
2813else
2814   as_fn_error $? "newly created file is older than distributed files!
2815Check your system clock" "$LINENO" 5
2816fi
2817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2818printf "%s\n" "yes" >&6; }
2819# If we didn't sleep, we still need to ensure time stamps of config.status and
2820# generated files are strictly newer.
2821am_sleep_pid=
2822if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2823  ( sleep 1 ) &
2824  am_sleep_pid=$!
2825fi
2826
2827rm -f conftest.file
2828
2829test "$program_prefix" != NONE &&
2830  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2831# Use a double $ so make ignores it.
2832test "$program_suffix" != NONE &&
2833  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2834# Double any \ or $.
2835# By default was `s,x,x', remove it if useless.
2836ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2837program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2838
2839
2840# Expand $ac_aux_dir to an absolute path.
2841am_aux_dir=`cd "$ac_aux_dir" && pwd`
2842
2843
2844  if test x"${MISSING+set}" != xset; then
2845  MISSING="\${SHELL} '$am_aux_dir/missing'"
2846fi
2847# Use eval to expand $SHELL
2848if eval "$MISSING --is-lightweight"; then
2849  am_missing_run="$MISSING "
2850else
2851  am_missing_run=
2852  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2853printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2854fi
2855
2856if test x"${install_sh+set}" != xset; then
2857  case $am_aux_dir in
2858  *\ * | *\	*)
2859    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2860  *)
2861    install_sh="\${SHELL} $am_aux_dir/install-sh"
2862  esac
2863fi
2864
2865# Installed binaries are usually stripped using 'strip' when the user
2866# run "make install-strip".  However 'strip' might not be the right
2867# tool to use in cross-compilation environments, therefore Automake
2868# will honor the 'STRIP' environment variable to overrule this program.
2869if test "$cross_compiling" != no; then
2870  if test -n "$ac_tool_prefix"; then
2871  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2872set dummy ${ac_tool_prefix}strip; ac_word=$2
2873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874printf %s "checking for $ac_word... " >&6; }
2875if test ${ac_cv_prog_STRIP+y}
2876then :
2877  printf %s "(cached) " >&6
2878else $as_nop
2879  if test -n "$STRIP"; then
2880  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2881else
2882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883for as_dir in $PATH
2884do
2885  IFS=$as_save_IFS
2886  case $as_dir in #(((
2887    '') as_dir=./ ;;
2888    */) ;;
2889    *) as_dir=$as_dir/ ;;
2890  esac
2891    for ac_exec_ext in '' $ac_executable_extensions; do
2892  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2893    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2894    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2895    break 2
2896  fi
2897done
2898  done
2899IFS=$as_save_IFS
2900
2901fi
2902fi
2903STRIP=$ac_cv_prog_STRIP
2904if test -n "$STRIP"; then
2905  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2906printf "%s\n" "$STRIP" >&6; }
2907else
2908  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909printf "%s\n" "no" >&6; }
2910fi
2911
2912
2913fi
2914if test -z "$ac_cv_prog_STRIP"; then
2915  ac_ct_STRIP=$STRIP
2916  # Extract the first word of "strip", so it can be a program name with args.
2917set dummy strip; ac_word=$2
2918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919printf %s "checking for $ac_word... " >&6; }
2920if test ${ac_cv_prog_ac_ct_STRIP+y}
2921then :
2922  printf %s "(cached) " >&6
2923else $as_nop
2924  if test -n "$ac_ct_STRIP"; then
2925  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2926else
2927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928for as_dir in $PATH
2929do
2930  IFS=$as_save_IFS
2931  case $as_dir in #(((
2932    '') as_dir=./ ;;
2933    */) ;;
2934    *) as_dir=$as_dir/ ;;
2935  esac
2936    for ac_exec_ext in '' $ac_executable_extensions; do
2937  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2938    ac_cv_prog_ac_ct_STRIP="strip"
2939    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2940    break 2
2941  fi
2942done
2943  done
2944IFS=$as_save_IFS
2945
2946fi
2947fi
2948ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2949if test -n "$ac_ct_STRIP"; then
2950  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2951printf "%s\n" "$ac_ct_STRIP" >&6; }
2952else
2953  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954printf "%s\n" "no" >&6; }
2955fi
2956
2957  if test "x$ac_ct_STRIP" = x; then
2958    STRIP=":"
2959  else
2960    case $cross_compiling:$ac_tool_warned in
2961yes:)
2962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2963printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2964ac_tool_warned=yes ;;
2965esac
2966    STRIP=$ac_ct_STRIP
2967  fi
2968else
2969  STRIP="$ac_cv_prog_STRIP"
2970fi
2971
2972fi
2973INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2974
2975
2976  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2977printf %s "checking for a race-free mkdir -p... " >&6; }
2978if test -z "$MKDIR_P"; then
2979  if test ${ac_cv_path_mkdir+y}
2980then :
2981  printf %s "(cached) " >&6
2982else $as_nop
2983  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2985do
2986  IFS=$as_save_IFS
2987  case $as_dir in #(((
2988    '') as_dir=./ ;;
2989    */) ;;
2990    *) as_dir=$as_dir/ ;;
2991  esac
2992    for ac_prog in mkdir gmkdir; do
2993	 for ac_exec_ext in '' $ac_executable_extensions; do
2994	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2995	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2996	     'mkdir ('*'coreutils) '* | \
2997	     'BusyBox '* | \
2998	     'mkdir (fileutils) '4.1*)
2999	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3000	       break 3;;
3001	   esac
3002	 done
3003       done
3004  done
3005IFS=$as_save_IFS
3006
3007fi
3008
3009  test -d ./--version && rmdir ./--version
3010  if test ${ac_cv_path_mkdir+y}; then
3011    MKDIR_P="$ac_cv_path_mkdir -p"
3012  else
3013    # As a last resort, use the slow shell script.  Don't cache a
3014    # value for MKDIR_P within a source directory, because that will
3015    # break other packages using the cache if that directory is
3016    # removed, or if the value is a relative name.
3017    MKDIR_P="$ac_install_sh -d"
3018  fi
3019fi
3020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3021printf "%s\n" "$MKDIR_P" >&6; }
3022
3023for ac_prog in gawk mawk nawk awk
3024do
3025  # Extract the first word of "$ac_prog", so it can be a program name with args.
3026set dummy $ac_prog; ac_word=$2
3027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028printf %s "checking for $ac_word... " >&6; }
3029if test ${ac_cv_prog_AWK+y}
3030then :
3031  printf %s "(cached) " >&6
3032else $as_nop
3033  if test -n "$AWK"; then
3034  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3035else
3036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037for as_dir in $PATH
3038do
3039  IFS=$as_save_IFS
3040  case $as_dir in #(((
3041    '') as_dir=./ ;;
3042    */) ;;
3043    *) as_dir=$as_dir/ ;;
3044  esac
3045    for ac_exec_ext in '' $ac_executable_extensions; do
3046  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3047    ac_cv_prog_AWK="$ac_prog"
3048    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3049    break 2
3050  fi
3051done
3052  done
3053IFS=$as_save_IFS
3054
3055fi
3056fi
3057AWK=$ac_cv_prog_AWK
3058if test -n "$AWK"; then
3059  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3060printf "%s\n" "$AWK" >&6; }
3061else
3062  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063printf "%s\n" "no" >&6; }
3064fi
3065
3066
3067  test -n "$AWK" && break
3068done
3069
3070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3071printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3072set x ${MAKE-make}
3073ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3074if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3075then :
3076  printf %s "(cached) " >&6
3077else $as_nop
3078  cat >conftest.make <<\_ACEOF
3079SHELL = /bin/sh
3080all:
3081	@echo '@@@%%%=$(MAKE)=@@@%%%'
3082_ACEOF
3083# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3084case `${MAKE-make} -f conftest.make 2>/dev/null` in
3085  *@@@%%%=?*=@@@%%%*)
3086    eval ac_cv_prog_make_${ac_make}_set=yes;;
3087  *)
3088    eval ac_cv_prog_make_${ac_make}_set=no;;
3089esac
3090rm -f conftest.make
3091fi
3092if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3093  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3094printf "%s\n" "yes" >&6; }
3095  SET_MAKE=
3096else
3097  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098printf "%s\n" "no" >&6; }
3099  SET_MAKE="MAKE=${MAKE-make}"
3100fi
3101
3102rm -rf .tst 2>/dev/null
3103mkdir .tst 2>/dev/null
3104if test -d .tst; then
3105  am__leading_dot=.
3106else
3107  am__leading_dot=_
3108fi
3109rmdir .tst 2>/dev/null
3110
3111# Check whether --enable-silent-rules was given.
3112if test ${enable_silent_rules+y}
3113then :
3114  enableval=$enable_silent_rules;
3115fi
3116
3117case $enable_silent_rules in # (((
3118  yes) AM_DEFAULT_VERBOSITY=0;;
3119   no) AM_DEFAULT_VERBOSITY=1;;
3120    *) AM_DEFAULT_VERBOSITY=1;;
3121esac
3122am_make=${MAKE-make}
3123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3124printf %s "checking whether $am_make supports nested variables... " >&6; }
3125if test ${am_cv_make_support_nested_variables+y}
3126then :
3127  printf %s "(cached) " >&6
3128else $as_nop
3129  if printf "%s\n" 'TRUE=$(BAR$(V))
3130BAR0=false
3131BAR1=true
3132V=1
3133am__doit:
3134	@$(TRUE)
3135.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3136  am_cv_make_support_nested_variables=yes
3137else
3138  am_cv_make_support_nested_variables=no
3139fi
3140fi
3141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3142printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3143if test $am_cv_make_support_nested_variables = yes; then
3144    AM_V='$(V)'
3145  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3146else
3147  AM_V=$AM_DEFAULT_VERBOSITY
3148  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3149fi
3150AM_BACKSLASH='\'
3151
3152if test "`cd $srcdir && pwd`" != "`pwd`"; then
3153  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3154  # is not polluted with repeated "-I."
3155  am__isrc=' -I$(srcdir)'
3156  # test to see if srcdir already configured
3157  if test -f $srcdir/config.status; then
3158    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3159  fi
3160fi
3161
3162# test whether we have cygpath
3163if test -z "$CYGPATH_W"; then
3164  if (cygpath --version) >/dev/null 2>/dev/null; then
3165    CYGPATH_W='cygpath -w'
3166  else
3167    CYGPATH_W=echo
3168  fi
3169fi
3170
3171
3172# Define the identity of the package.
3173 PACKAGE='xorgproto'
3174 VERSION='2023.2'
3175
3176
3177printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3178
3179
3180printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3181
3182# Some tools Automake needs.
3183
3184ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3185
3186
3187AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3188
3189
3190AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3191
3192
3193AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3194
3195
3196MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3197
3198# For better backward compatibility.  To be removed once Automake 1.9.x
3199# dies out for good.  For more background, see:
3200# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3201# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3202mkdir_p='$(MKDIR_P)'
3203
3204# We need awk for the "check" target (and possibly the TAP driver).  The
3205# system "awk" is bad on some platforms.
3206# Always define AMTAR for backward compatibility.  Yes, it's still used
3207# in the wild :-(  We should find a proper way to deprecate it ...
3208AMTAR='$${TAR-tar}'
3209
3210
3211# We'll loop over all known methods to create a tar archive until one works.
3212_am_tools='gnutar  pax cpio none'
3213
3214am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3215
3216
3217
3218
3219
3220# Variables for tags utilities; see am/tags.am
3221if test -z "$CTAGS"; then
3222  CTAGS=ctags
3223fi
3224
3225if test -z "$ETAGS"; then
3226  ETAGS=etags
3227fi
3228
3229if test -z "$CSCOPE"; then
3230  CSCOPE=cscope
3231fi
3232
3233
3234
3235# POSIX will say in a future version that running "rm -f" with no argument
3236# is OK; and we want to be able to make that assumption in our Makefile
3237# recipes.  So use an aggressive probe to check that the usage we want is
3238# actually supported "in the wild" to an acceptable degree.
3239# See automake bug#10828.
3240# To make any issue more visible, cause the running configure to be aborted
3241# by default if the 'rm' program in use doesn't match our expectations; the
3242# user can still override this though.
3243if rm -f && rm -fr && rm -rf; then : OK; else
3244  cat >&2 <<'END'
3245Oops!
3246
3247Your 'rm' program seems unable to run without file operands specified
3248on the command line, even when the '-f' option is present.  This is contrary
3249to the behaviour of most rm programs out there, and not conforming with
3250the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3251
3252Please tell bug-automake@gnu.org about your system, including the value
3253of your $PATH and any error possibly output before this message.  This
3254can help us improve future automake versions.
3255
3256END
3257  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3258    echo 'Configuration will proceed anyway, since you have set the' >&2
3259    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3260    echo >&2
3261  else
3262    cat >&2 <<'END'
3263Aborting the configuration process, to ensure you take notice of the issue.
3264
3265You can download and install GNU coreutils to get an 'rm' implementation
3266that behaves properly: <https://www.gnu.org/software/coreutils/>.
3267
3268If you want to complete the configuration process using your problematic
3269'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3270to "yes", and re-run configure.
3271
3272END
3273    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3274  fi
3275fi
3276
3277
3278# Require xorg-macros: XORG_DEFAULT_OPTIONS
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299DEPDIR="${am__leading_dot}deps"
3300
3301ac_config_commands="$ac_config_commands depfiles"
3302
3303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3304printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3305cat > confinc.mk << 'END'
3306am__doit:
3307	@echo this is the am__doit target >confinc.out
3308.PHONY: am__doit
3309END
3310am__include="#"
3311am__quote=
3312# BSD make does it like this.
3313echo '.include "confinc.mk" # ignored' > confmf.BSD
3314# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3315echo 'include confinc.mk # ignored' > confmf.GNU
3316_am_result=no
3317for s in GNU BSD; do
3318  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3319   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3320   ac_status=$?
3321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322   (exit $ac_status); }
3323  case $?:`cat confinc.out 2>/dev/null` in #(
3324  '0:this is the am__doit target') :
3325    case $s in #(
3326  BSD) :
3327    am__include='.include' am__quote='"' ;; #(
3328  *) :
3329    am__include='include' am__quote='' ;;
3330esac ;; #(
3331  *) :
3332     ;;
3333esac
3334  if test "$am__include" != "#"; then
3335    _am_result="yes ($s style)"
3336    break
3337  fi
3338done
3339rm -f confinc.* confmf.*
3340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3341printf "%s\n" "${_am_result}" >&6; }
3342
3343# Check whether --enable-dependency-tracking was given.
3344if test ${enable_dependency_tracking+y}
3345then :
3346  enableval=$enable_dependency_tracking;
3347fi
3348
3349if test "x$enable_dependency_tracking" != xno; then
3350  am_depcomp="$ac_aux_dir/depcomp"
3351  AMDEPBACKSLASH='\'
3352  am__nodep='_no'
3353fi
3354 if test "x$enable_dependency_tracking" != xno; then
3355  AMDEP_TRUE=
3356  AMDEP_FALSE='#'
3357else
3358  AMDEP_TRUE='#'
3359  AMDEP_FALSE=
3360fi
3361
3362
3363ac_ext=c
3364ac_cpp='$CPP $CPPFLAGS'
3365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3367ac_compiler_gnu=$ac_cv_c_compiler_gnu
3368if test -n "$ac_tool_prefix"; then
3369  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3370set dummy ${ac_tool_prefix}gcc; ac_word=$2
3371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3372printf %s "checking for $ac_word... " >&6; }
3373if test ${ac_cv_prog_CC+y}
3374then :
3375  printf %s "(cached) " >&6
3376else $as_nop
3377  if test -n "$CC"; then
3378  ac_cv_prog_CC="$CC" # Let the user override the test.
3379else
3380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381for as_dir in $PATH
3382do
3383  IFS=$as_save_IFS
3384  case $as_dir in #(((
3385    '') as_dir=./ ;;
3386    */) ;;
3387    *) as_dir=$as_dir/ ;;
3388  esac
3389    for ac_exec_ext in '' $ac_executable_extensions; do
3390  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3391    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3392    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3393    break 2
3394  fi
3395done
3396  done
3397IFS=$as_save_IFS
3398
3399fi
3400fi
3401CC=$ac_cv_prog_CC
3402if test -n "$CC"; then
3403  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3404printf "%s\n" "$CC" >&6; }
3405else
3406  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407printf "%s\n" "no" >&6; }
3408fi
3409
3410
3411fi
3412if test -z "$ac_cv_prog_CC"; then
3413  ac_ct_CC=$CC
3414  # Extract the first word of "gcc", so it can be a program name with args.
3415set dummy gcc; ac_word=$2
3416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417printf %s "checking for $ac_word... " >&6; }
3418if test ${ac_cv_prog_ac_ct_CC+y}
3419then :
3420  printf %s "(cached) " >&6
3421else $as_nop
3422  if test -n "$ac_ct_CC"; then
3423  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3424else
3425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426for as_dir in $PATH
3427do
3428  IFS=$as_save_IFS
3429  case $as_dir in #(((
3430    '') as_dir=./ ;;
3431    */) ;;
3432    *) as_dir=$as_dir/ ;;
3433  esac
3434    for ac_exec_ext in '' $ac_executable_extensions; do
3435  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3436    ac_cv_prog_ac_ct_CC="gcc"
3437    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3438    break 2
3439  fi
3440done
3441  done
3442IFS=$as_save_IFS
3443
3444fi
3445fi
3446ac_ct_CC=$ac_cv_prog_ac_ct_CC
3447if test -n "$ac_ct_CC"; then
3448  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3449printf "%s\n" "$ac_ct_CC" >&6; }
3450else
3451  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452printf "%s\n" "no" >&6; }
3453fi
3454
3455  if test "x$ac_ct_CC" = x; then
3456    CC=""
3457  else
3458    case $cross_compiling:$ac_tool_warned in
3459yes:)
3460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3461printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3462ac_tool_warned=yes ;;
3463esac
3464    CC=$ac_ct_CC
3465  fi
3466else
3467  CC="$ac_cv_prog_CC"
3468fi
3469
3470if test -z "$CC"; then
3471          if test -n "$ac_tool_prefix"; then
3472    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3473set dummy ${ac_tool_prefix}cc; ac_word=$2
3474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475printf %s "checking for $ac_word... " >&6; }
3476if test ${ac_cv_prog_CC+y}
3477then :
3478  printf %s "(cached) " >&6
3479else $as_nop
3480  if test -n "$CC"; then
3481  ac_cv_prog_CC="$CC" # Let the user override the test.
3482else
3483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484for as_dir in $PATH
3485do
3486  IFS=$as_save_IFS
3487  case $as_dir in #(((
3488    '') as_dir=./ ;;
3489    */) ;;
3490    *) as_dir=$as_dir/ ;;
3491  esac
3492    for ac_exec_ext in '' $ac_executable_extensions; do
3493  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3494    ac_cv_prog_CC="${ac_tool_prefix}cc"
3495    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3496    break 2
3497  fi
3498done
3499  done
3500IFS=$as_save_IFS
3501
3502fi
3503fi
3504CC=$ac_cv_prog_CC
3505if test -n "$CC"; then
3506  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3507printf "%s\n" "$CC" >&6; }
3508else
3509  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510printf "%s\n" "no" >&6; }
3511fi
3512
3513
3514  fi
3515fi
3516if test -z "$CC"; then
3517  # Extract the first word of "cc", so it can be a program name with args.
3518set dummy cc; ac_word=$2
3519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3520printf %s "checking for $ac_word... " >&6; }
3521if test ${ac_cv_prog_CC+y}
3522then :
3523  printf %s "(cached) " >&6
3524else $as_nop
3525  if test -n "$CC"; then
3526  ac_cv_prog_CC="$CC" # Let the user override the test.
3527else
3528  ac_prog_rejected=no
3529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530for as_dir in $PATH
3531do
3532  IFS=$as_save_IFS
3533  case $as_dir in #(((
3534    '') as_dir=./ ;;
3535    */) ;;
3536    *) as_dir=$as_dir/ ;;
3537  esac
3538    for ac_exec_ext in '' $ac_executable_extensions; do
3539  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3540    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3541       ac_prog_rejected=yes
3542       continue
3543     fi
3544    ac_cv_prog_CC="cc"
3545    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3546    break 2
3547  fi
3548done
3549  done
3550IFS=$as_save_IFS
3551
3552if test $ac_prog_rejected = yes; then
3553  # We found a bogon in the path, so make sure we never use it.
3554  set dummy $ac_cv_prog_CC
3555  shift
3556  if test $# != 0; then
3557    # We chose a different compiler from the bogus one.
3558    # However, it has the same basename, so the bogon will be chosen
3559    # first if we set CC to just the basename; use the full file name.
3560    shift
3561    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3562  fi
3563fi
3564fi
3565fi
3566CC=$ac_cv_prog_CC
3567if test -n "$CC"; then
3568  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3569printf "%s\n" "$CC" >&6; }
3570else
3571  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572printf "%s\n" "no" >&6; }
3573fi
3574
3575
3576fi
3577if test -z "$CC"; then
3578  if test -n "$ac_tool_prefix"; then
3579  for ac_prog in cl.exe
3580  do
3581    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3582set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584printf %s "checking for $ac_word... " >&6; }
3585if test ${ac_cv_prog_CC+y}
3586then :
3587  printf %s "(cached) " >&6
3588else $as_nop
3589  if test -n "$CC"; then
3590  ac_cv_prog_CC="$CC" # Let the user override the test.
3591else
3592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593for as_dir in $PATH
3594do
3595  IFS=$as_save_IFS
3596  case $as_dir in #(((
3597    '') as_dir=./ ;;
3598    */) ;;
3599    *) as_dir=$as_dir/ ;;
3600  esac
3601    for ac_exec_ext in '' $ac_executable_extensions; do
3602  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3603    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3604    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3605    break 2
3606  fi
3607done
3608  done
3609IFS=$as_save_IFS
3610
3611fi
3612fi
3613CC=$ac_cv_prog_CC
3614if test -n "$CC"; then
3615  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3616printf "%s\n" "$CC" >&6; }
3617else
3618  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619printf "%s\n" "no" >&6; }
3620fi
3621
3622
3623    test -n "$CC" && break
3624  done
3625fi
3626if test -z "$CC"; then
3627  ac_ct_CC=$CC
3628  for ac_prog in cl.exe
3629do
3630  # Extract the first word of "$ac_prog", so it can be a program name with args.
3631set dummy $ac_prog; ac_word=$2
3632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3633printf %s "checking for $ac_word... " >&6; }
3634if test ${ac_cv_prog_ac_ct_CC+y}
3635then :
3636  printf %s "(cached) " >&6
3637else $as_nop
3638  if test -n "$ac_ct_CC"; then
3639  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3640else
3641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642for as_dir in $PATH
3643do
3644  IFS=$as_save_IFS
3645  case $as_dir in #(((
3646    '') as_dir=./ ;;
3647    */) ;;
3648    *) as_dir=$as_dir/ ;;
3649  esac
3650    for ac_exec_ext in '' $ac_executable_extensions; do
3651  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3652    ac_cv_prog_ac_ct_CC="$ac_prog"
3653    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3654    break 2
3655  fi
3656done
3657  done
3658IFS=$as_save_IFS
3659
3660fi
3661fi
3662ac_ct_CC=$ac_cv_prog_ac_ct_CC
3663if test -n "$ac_ct_CC"; then
3664  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3665printf "%s\n" "$ac_ct_CC" >&6; }
3666else
3667  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668printf "%s\n" "no" >&6; }
3669fi
3670
3671
3672  test -n "$ac_ct_CC" && break
3673done
3674
3675  if test "x$ac_ct_CC" = x; then
3676    CC=""
3677  else
3678    case $cross_compiling:$ac_tool_warned in
3679yes:)
3680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3681printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3682ac_tool_warned=yes ;;
3683esac
3684    CC=$ac_ct_CC
3685  fi
3686fi
3687
3688fi
3689if test -z "$CC"; then
3690  if test -n "$ac_tool_prefix"; then
3691  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3692set dummy ${ac_tool_prefix}clang; ac_word=$2
3693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3694printf %s "checking for $ac_word... " >&6; }
3695if test ${ac_cv_prog_CC+y}
3696then :
3697  printf %s "(cached) " >&6
3698else $as_nop
3699  if test -n "$CC"; then
3700  ac_cv_prog_CC="$CC" # Let the user override the test.
3701else
3702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703for as_dir in $PATH
3704do
3705  IFS=$as_save_IFS
3706  case $as_dir in #(((
3707    '') as_dir=./ ;;
3708    */) ;;
3709    *) as_dir=$as_dir/ ;;
3710  esac
3711    for ac_exec_ext in '' $ac_executable_extensions; do
3712  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3713    ac_cv_prog_CC="${ac_tool_prefix}clang"
3714    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3715    break 2
3716  fi
3717done
3718  done
3719IFS=$as_save_IFS
3720
3721fi
3722fi
3723CC=$ac_cv_prog_CC
3724if test -n "$CC"; then
3725  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3726printf "%s\n" "$CC" >&6; }
3727else
3728  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3729printf "%s\n" "no" >&6; }
3730fi
3731
3732
3733fi
3734if test -z "$ac_cv_prog_CC"; then
3735  ac_ct_CC=$CC
3736  # Extract the first word of "clang", so it can be a program name with args.
3737set dummy clang; ac_word=$2
3738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3739printf %s "checking for $ac_word... " >&6; }
3740if test ${ac_cv_prog_ac_ct_CC+y}
3741then :
3742  printf %s "(cached) " >&6
3743else $as_nop
3744  if test -n "$ac_ct_CC"; then
3745  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3746else
3747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748for as_dir in $PATH
3749do
3750  IFS=$as_save_IFS
3751  case $as_dir in #(((
3752    '') as_dir=./ ;;
3753    */) ;;
3754    *) as_dir=$as_dir/ ;;
3755  esac
3756    for ac_exec_ext in '' $ac_executable_extensions; do
3757  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3758    ac_cv_prog_ac_ct_CC="clang"
3759    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3760    break 2
3761  fi
3762done
3763  done
3764IFS=$as_save_IFS
3765
3766fi
3767fi
3768ac_ct_CC=$ac_cv_prog_ac_ct_CC
3769if test -n "$ac_ct_CC"; then
3770  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3771printf "%s\n" "$ac_ct_CC" >&6; }
3772else
3773  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774printf "%s\n" "no" >&6; }
3775fi
3776
3777  if test "x$ac_ct_CC" = x; then
3778    CC=""
3779  else
3780    case $cross_compiling:$ac_tool_warned in
3781yes:)
3782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3783printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3784ac_tool_warned=yes ;;
3785esac
3786    CC=$ac_ct_CC
3787  fi
3788else
3789  CC="$ac_cv_prog_CC"
3790fi
3791
3792fi
3793
3794
3795test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3796printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3797as_fn_error $? "no acceptable C compiler found in \$PATH
3798See \`config.log' for more details" "$LINENO" 5; }
3799
3800# Provide some information about the compiler.
3801printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3802set X $ac_compile
3803ac_compiler=$2
3804for ac_option in --version -v -V -qversion -version; do
3805  { { ac_try="$ac_compiler $ac_option >&5"
3806case "(($ac_try" in
3807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808  *) ac_try_echo=$ac_try;;
3809esac
3810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3811printf "%s\n" "$ac_try_echo"; } >&5
3812  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3813  ac_status=$?
3814  if test -s conftest.err; then
3815    sed '10a\
3816... rest of stderr output deleted ...
3817         10q' conftest.err >conftest.er1
3818    cat conftest.er1 >&5
3819  fi
3820  rm -f conftest.er1 conftest.err
3821  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3822  test $ac_status = 0; }
3823done
3824
3825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826/* end confdefs.h.  */
3827
3828int
3829main (void)
3830{
3831
3832  ;
3833  return 0;
3834}
3835_ACEOF
3836ac_clean_files_save=$ac_clean_files
3837ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3838# Try to create an executable without -o first, disregard a.out.
3839# It will help us diagnose broken compilers, and finding out an intuition
3840# of exeext.
3841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3842printf %s "checking whether the C compiler works... " >&6; }
3843ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3844
3845# The possible output files:
3846ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3847
3848ac_rmfiles=
3849for ac_file in $ac_files
3850do
3851  case $ac_file in
3852    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3853    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3854  esac
3855done
3856rm -f $ac_rmfiles
3857
3858if { { ac_try="$ac_link_default"
3859case "(($ac_try" in
3860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861  *) ac_try_echo=$ac_try;;
3862esac
3863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3864printf "%s\n" "$ac_try_echo"; } >&5
3865  (eval "$ac_link_default") 2>&5
3866  ac_status=$?
3867  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3868  test $ac_status = 0; }
3869then :
3870  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3871# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3872# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3873# so that the user can short-circuit this test for compilers unknown to
3874# Autoconf.
3875for ac_file in $ac_files ''
3876do
3877  test -f "$ac_file" || continue
3878  case $ac_file in
3879    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3880	;;
3881    [ab].out )
3882	# We found the default executable, but exeext='' is most
3883	# certainly right.
3884	break;;
3885    *.* )
3886	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3887	then :; else
3888	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3889	fi
3890	# We set ac_cv_exeext here because the later test for it is not
3891	# safe: cross compilers may not add the suffix if given an `-o'
3892	# argument, so we may need to know it at that point already.
3893	# Even if this section looks crufty: it has the advantage of
3894	# actually working.
3895	break;;
3896    * )
3897	break;;
3898  esac
3899done
3900test "$ac_cv_exeext" = no && ac_cv_exeext=
3901
3902else $as_nop
3903  ac_file=''
3904fi
3905if test -z "$ac_file"
3906then :
3907  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3908printf "%s\n" "no" >&6; }
3909printf "%s\n" "$as_me: failed program was:" >&5
3910sed 's/^/| /' conftest.$ac_ext >&5
3911
3912{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3913printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3914as_fn_error 77 "C compiler cannot create executables
3915See \`config.log' for more details" "$LINENO" 5; }
3916else $as_nop
3917  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3918printf "%s\n" "yes" >&6; }
3919fi
3920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3921printf %s "checking for C compiler default output file name... " >&6; }
3922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3923printf "%s\n" "$ac_file" >&6; }
3924ac_exeext=$ac_cv_exeext
3925
3926rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3927ac_clean_files=$ac_clean_files_save
3928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3929printf %s "checking for suffix of executables... " >&6; }
3930if { { ac_try="$ac_link"
3931case "(($ac_try" in
3932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933  *) ac_try_echo=$ac_try;;
3934esac
3935eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3936printf "%s\n" "$ac_try_echo"; } >&5
3937  (eval "$ac_link") 2>&5
3938  ac_status=$?
3939  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3940  test $ac_status = 0; }
3941then :
3942  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3943# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3944# work properly (i.e., refer to `conftest.exe'), while it won't with
3945# `rm'.
3946for ac_file in conftest.exe conftest conftest.*; do
3947  test -f "$ac_file" || continue
3948  case $ac_file in
3949    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3950    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3951	  break;;
3952    * ) break;;
3953  esac
3954done
3955else $as_nop
3956  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3957printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3958as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3959See \`config.log' for more details" "$LINENO" 5; }
3960fi
3961rm -f conftest conftest$ac_cv_exeext
3962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3963printf "%s\n" "$ac_cv_exeext" >&6; }
3964
3965rm -f conftest.$ac_ext
3966EXEEXT=$ac_cv_exeext
3967ac_exeext=$EXEEXT
3968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969/* end confdefs.h.  */
3970#include <stdio.h>
3971int
3972main (void)
3973{
3974FILE *f = fopen ("conftest.out", "w");
3975 return ferror (f) || fclose (f) != 0;
3976
3977  ;
3978  return 0;
3979}
3980_ACEOF
3981ac_clean_files="$ac_clean_files conftest.out"
3982# Check that the compiler produces executables we can run.  If not, either
3983# the compiler is broken, or we cross compile.
3984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3985printf %s "checking whether we are cross compiling... " >&6; }
3986if test "$cross_compiling" != yes; then
3987  { { ac_try="$ac_link"
3988case "(($ac_try" in
3989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990  *) ac_try_echo=$ac_try;;
3991esac
3992eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3993printf "%s\n" "$ac_try_echo"; } >&5
3994  (eval "$ac_link") 2>&5
3995  ac_status=$?
3996  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3997  test $ac_status = 0; }
3998  if { ac_try='./conftest$ac_cv_exeext'
3999  { { case "(($ac_try" in
4000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001  *) ac_try_echo=$ac_try;;
4002esac
4003eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4004printf "%s\n" "$ac_try_echo"; } >&5
4005  (eval "$ac_try") 2>&5
4006  ac_status=$?
4007  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4008  test $ac_status = 0; }; }; then
4009    cross_compiling=no
4010  else
4011    if test "$cross_compiling" = maybe; then
4012	cross_compiling=yes
4013    else
4014	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4015printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4016as_fn_error 77 "cannot run C compiled programs.
4017If you meant to cross compile, use \`--host'.
4018See \`config.log' for more details" "$LINENO" 5; }
4019    fi
4020  fi
4021fi
4022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4023printf "%s\n" "$cross_compiling" >&6; }
4024
4025rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4026ac_clean_files=$ac_clean_files_save
4027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4028printf %s "checking for suffix of object files... " >&6; }
4029if test ${ac_cv_objext+y}
4030then :
4031  printf %s "(cached) " >&6
4032else $as_nop
4033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034/* end confdefs.h.  */
4035
4036int
4037main (void)
4038{
4039
4040  ;
4041  return 0;
4042}
4043_ACEOF
4044rm -f conftest.o conftest.obj
4045if { { ac_try="$ac_compile"
4046case "(($ac_try" in
4047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048  *) ac_try_echo=$ac_try;;
4049esac
4050eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4051printf "%s\n" "$ac_try_echo"; } >&5
4052  (eval "$ac_compile") 2>&5
4053  ac_status=$?
4054  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4055  test $ac_status = 0; }
4056then :
4057  for ac_file in conftest.o conftest.obj conftest.*; do
4058  test -f "$ac_file" || continue;
4059  case $ac_file in
4060    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4061    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4062       break;;
4063  esac
4064done
4065else $as_nop
4066  printf "%s\n" "$as_me: failed program was:" >&5
4067sed 's/^/| /' conftest.$ac_ext >&5
4068
4069{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4070printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4071as_fn_error $? "cannot compute suffix of object files: cannot compile
4072See \`config.log' for more details" "$LINENO" 5; }
4073fi
4074rm -f conftest.$ac_cv_objext conftest.$ac_ext
4075fi
4076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4077printf "%s\n" "$ac_cv_objext" >&6; }
4078OBJEXT=$ac_cv_objext
4079ac_objext=$OBJEXT
4080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4081printf %s "checking whether the compiler supports GNU C... " >&6; }
4082if test ${ac_cv_c_compiler_gnu+y}
4083then :
4084  printf %s "(cached) " >&6
4085else $as_nop
4086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087/* end confdefs.h.  */
4088
4089int
4090main (void)
4091{
4092#ifndef __GNUC__
4093       choke me
4094#endif
4095
4096  ;
4097  return 0;
4098}
4099_ACEOF
4100if ac_fn_c_try_compile "$LINENO"
4101then :
4102  ac_compiler_gnu=yes
4103else $as_nop
4104  ac_compiler_gnu=no
4105fi
4106rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4107ac_cv_c_compiler_gnu=$ac_compiler_gnu
4108
4109fi
4110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4111printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4112ac_compiler_gnu=$ac_cv_c_compiler_gnu
4113
4114if test $ac_compiler_gnu = yes; then
4115  GCC=yes
4116else
4117  GCC=
4118fi
4119ac_test_CFLAGS=${CFLAGS+y}
4120ac_save_CFLAGS=$CFLAGS
4121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4122printf %s "checking whether $CC accepts -g... " >&6; }
4123if test ${ac_cv_prog_cc_g+y}
4124then :
4125  printf %s "(cached) " >&6
4126else $as_nop
4127  ac_save_c_werror_flag=$ac_c_werror_flag
4128   ac_c_werror_flag=yes
4129   ac_cv_prog_cc_g=no
4130   CFLAGS="-g"
4131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132/* end confdefs.h.  */
4133
4134int
4135main (void)
4136{
4137
4138  ;
4139  return 0;
4140}
4141_ACEOF
4142if ac_fn_c_try_compile "$LINENO"
4143then :
4144  ac_cv_prog_cc_g=yes
4145else $as_nop
4146  CFLAGS=""
4147      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148/* end confdefs.h.  */
4149
4150int
4151main (void)
4152{
4153
4154  ;
4155  return 0;
4156}
4157_ACEOF
4158if ac_fn_c_try_compile "$LINENO"
4159then :
4160
4161else $as_nop
4162  ac_c_werror_flag=$ac_save_c_werror_flag
4163	 CFLAGS="-g"
4164	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165/* end confdefs.h.  */
4166
4167int
4168main (void)
4169{
4170
4171  ;
4172  return 0;
4173}
4174_ACEOF
4175if ac_fn_c_try_compile "$LINENO"
4176then :
4177  ac_cv_prog_cc_g=yes
4178fi
4179rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4180fi
4181rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4182fi
4183rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4184   ac_c_werror_flag=$ac_save_c_werror_flag
4185fi
4186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4187printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4188if test $ac_test_CFLAGS; then
4189  CFLAGS=$ac_save_CFLAGS
4190elif test $ac_cv_prog_cc_g = yes; then
4191  if test "$GCC" = yes; then
4192    CFLAGS="-g -O2"
4193  else
4194    CFLAGS="-g"
4195  fi
4196else
4197  if test "$GCC" = yes; then
4198    CFLAGS="-O2"
4199  else
4200    CFLAGS=
4201  fi
4202fi
4203ac_prog_cc_stdc=no
4204if test x$ac_prog_cc_stdc = xno
4205then :
4206  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4207printf %s "checking for $CC option to enable C11 features... " >&6; }
4208if test ${ac_cv_prog_cc_c11+y}
4209then :
4210  printf %s "(cached) " >&6
4211else $as_nop
4212  ac_cv_prog_cc_c11=no
4213ac_save_CC=$CC
4214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215/* end confdefs.h.  */
4216$ac_c_conftest_c11_program
4217_ACEOF
4218for ac_arg in '' -std=gnu11
4219do
4220  CC="$ac_save_CC $ac_arg"
4221  if ac_fn_c_try_compile "$LINENO"
4222then :
4223  ac_cv_prog_cc_c11=$ac_arg
4224fi
4225rm -f core conftest.err conftest.$ac_objext conftest.beam
4226  test "x$ac_cv_prog_cc_c11" != "xno" && break
4227done
4228rm -f conftest.$ac_ext
4229CC=$ac_save_CC
4230fi
4231
4232if test "x$ac_cv_prog_cc_c11" = xno
4233then :
4234  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4235printf "%s\n" "unsupported" >&6; }
4236else $as_nop
4237  if test "x$ac_cv_prog_cc_c11" = x
4238then :
4239  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4240printf "%s\n" "none needed" >&6; }
4241else $as_nop
4242  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4243printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4244     CC="$CC $ac_cv_prog_cc_c11"
4245fi
4246  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4247  ac_prog_cc_stdc=c11
4248fi
4249fi
4250if test x$ac_prog_cc_stdc = xno
4251then :
4252  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4253printf %s "checking for $CC option to enable C99 features... " >&6; }
4254if test ${ac_cv_prog_cc_c99+y}
4255then :
4256  printf %s "(cached) " >&6
4257else $as_nop
4258  ac_cv_prog_cc_c99=no
4259ac_save_CC=$CC
4260cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261/* end confdefs.h.  */
4262$ac_c_conftest_c99_program
4263_ACEOF
4264for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4265do
4266  CC="$ac_save_CC $ac_arg"
4267  if ac_fn_c_try_compile "$LINENO"
4268then :
4269  ac_cv_prog_cc_c99=$ac_arg
4270fi
4271rm -f core conftest.err conftest.$ac_objext conftest.beam
4272  test "x$ac_cv_prog_cc_c99" != "xno" && break
4273done
4274rm -f conftest.$ac_ext
4275CC=$ac_save_CC
4276fi
4277
4278if test "x$ac_cv_prog_cc_c99" = xno
4279then :
4280  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4281printf "%s\n" "unsupported" >&6; }
4282else $as_nop
4283  if test "x$ac_cv_prog_cc_c99" = x
4284then :
4285  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4286printf "%s\n" "none needed" >&6; }
4287else $as_nop
4288  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4289printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4290     CC="$CC $ac_cv_prog_cc_c99"
4291fi
4292  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4293  ac_prog_cc_stdc=c99
4294fi
4295fi
4296if test x$ac_prog_cc_stdc = xno
4297then :
4298  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4299printf %s "checking for $CC option to enable C89 features... " >&6; }
4300if test ${ac_cv_prog_cc_c89+y}
4301then :
4302  printf %s "(cached) " >&6
4303else $as_nop
4304  ac_cv_prog_cc_c89=no
4305ac_save_CC=$CC
4306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307/* end confdefs.h.  */
4308$ac_c_conftest_c89_program
4309_ACEOF
4310for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4311do
4312  CC="$ac_save_CC $ac_arg"
4313  if ac_fn_c_try_compile "$LINENO"
4314then :
4315  ac_cv_prog_cc_c89=$ac_arg
4316fi
4317rm -f core conftest.err conftest.$ac_objext conftest.beam
4318  test "x$ac_cv_prog_cc_c89" != "xno" && break
4319done
4320rm -f conftest.$ac_ext
4321CC=$ac_save_CC
4322fi
4323
4324if test "x$ac_cv_prog_cc_c89" = xno
4325then :
4326  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4327printf "%s\n" "unsupported" >&6; }
4328else $as_nop
4329  if test "x$ac_cv_prog_cc_c89" = x
4330then :
4331  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4332printf "%s\n" "none needed" >&6; }
4333else $as_nop
4334  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4335printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4336     CC="$CC $ac_cv_prog_cc_c89"
4337fi
4338  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4339  ac_prog_cc_stdc=c89
4340fi
4341fi
4342
4343ac_ext=c
4344ac_cpp='$CPP $CPPFLAGS'
4345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347ac_compiler_gnu=$ac_cv_c_compiler_gnu
4348
4349
4350  ac_ext=c
4351ac_cpp='$CPP $CPPFLAGS'
4352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4354ac_compiler_gnu=$ac_cv_c_compiler_gnu
4355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4356printf %s "checking whether $CC understands -c and -o together... " >&6; }
4357if test ${am_cv_prog_cc_c_o+y}
4358then :
4359  printf %s "(cached) " >&6
4360else $as_nop
4361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362/* end confdefs.h.  */
4363
4364int
4365main (void)
4366{
4367
4368  ;
4369  return 0;
4370}
4371_ACEOF
4372  # Make sure it works both with $CC and with simple cc.
4373  # Following AC_PROG_CC_C_O, we do the test twice because some
4374  # compilers refuse to overwrite an existing .o file with -o,
4375  # though they will create one.
4376  am_cv_prog_cc_c_o=yes
4377  for am_i in 1 2; do
4378    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4379   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4380   ac_status=$?
4381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382   (exit $ac_status); } \
4383         && test -f conftest2.$ac_objext; then
4384      : OK
4385    else
4386      am_cv_prog_cc_c_o=no
4387      break
4388    fi
4389  done
4390  rm -f core conftest*
4391  unset am_i
4392fi
4393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4394printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4395if test "$am_cv_prog_cc_c_o" != yes; then
4396   # Losing compiler, so override with the script.
4397   # FIXME: It is wrong to rewrite CC.
4398   # But if we don't then we get into trouble of one sort or another.
4399   # A longer-term fix would be to have automake use am__CC in this case,
4400   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4401   CC="$am_aux_dir/compile $CC"
4402fi
4403ac_ext=c
4404ac_cpp='$CPP $CPPFLAGS'
4405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4407ac_compiler_gnu=$ac_cv_c_compiler_gnu
4408
4409
4410depcc="$CC"   am_compiler_list=
4411
4412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4413printf %s "checking dependency style of $depcc... " >&6; }
4414if test ${am_cv_CC_dependencies_compiler_type+y}
4415then :
4416  printf %s "(cached) " >&6
4417else $as_nop
4418  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4419  # We make a subdir and do the tests there.  Otherwise we can end up
4420  # making bogus files that we don't know about and never remove.  For
4421  # instance it was reported that on HP-UX the gcc test will end up
4422  # making a dummy file named 'D' -- because '-MD' means "put the output
4423  # in D".
4424  rm -rf conftest.dir
4425  mkdir conftest.dir
4426  # Copy depcomp to subdir because otherwise we won't find it if we're
4427  # using a relative directory.
4428  cp "$am_depcomp" conftest.dir
4429  cd conftest.dir
4430  # We will build objects and dependencies in a subdirectory because
4431  # it helps to detect inapplicable dependency modes.  For instance
4432  # both Tru64's cc and ICC support -MD to output dependencies as a
4433  # side effect of compilation, but ICC will put the dependencies in
4434  # the current directory while Tru64 will put them in the object
4435  # directory.
4436  mkdir sub
4437
4438  am_cv_CC_dependencies_compiler_type=none
4439  if test "$am_compiler_list" = ""; then
4440     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4441  fi
4442  am__universal=false
4443  case " $depcc " in #(
4444     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4445     esac
4446
4447  for depmode in $am_compiler_list; do
4448    # Setup a source with many dependencies, because some compilers
4449    # like to wrap large dependency lists on column 80 (with \), and
4450    # we should not choose a depcomp mode which is confused by this.
4451    #
4452    # We need to recreate these files for each test, as the compiler may
4453    # overwrite some of them when testing with obscure command lines.
4454    # This happens at least with the AIX C compiler.
4455    : > sub/conftest.c
4456    for i in 1 2 3 4 5 6; do
4457      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4458      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4459      # Solaris 10 /bin/sh.
4460      echo '/* dummy */' > sub/conftst$i.h
4461    done
4462    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4463
4464    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4465    # mode.  It turns out that the SunPro C++ compiler does not properly
4466    # handle '-M -o', and we need to detect this.  Also, some Intel
4467    # versions had trouble with output in subdirs.
4468    am__obj=sub/conftest.${OBJEXT-o}
4469    am__minus_obj="-o $am__obj"
4470    case $depmode in
4471    gcc)
4472      # This depmode causes a compiler race in universal mode.
4473      test "$am__universal" = false || continue
4474      ;;
4475    nosideeffect)
4476      # After this tag, mechanisms are not by side-effect, so they'll
4477      # only be used when explicitly requested.
4478      if test "x$enable_dependency_tracking" = xyes; then
4479	continue
4480      else
4481	break
4482      fi
4483      ;;
4484    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4485      # This compiler won't grok '-c -o', but also, the minuso test has
4486      # not run yet.  These depmodes are late enough in the game, and
4487      # so weak that their functioning should not be impacted.
4488      am__obj=conftest.${OBJEXT-o}
4489      am__minus_obj=
4490      ;;
4491    none) break ;;
4492    esac
4493    if depmode=$depmode \
4494       source=sub/conftest.c object=$am__obj \
4495       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4496       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4497         >/dev/null 2>conftest.err &&
4498       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4499       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4500       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4501       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4502      # icc doesn't choke on unknown options, it will just issue warnings
4503      # or remarks (even with -Werror).  So we grep stderr for any message
4504      # that says an option was ignored or not supported.
4505      # When given -MP, icc 7.0 and 7.1 complain thusly:
4506      #   icc: Command line warning: ignoring option '-M'; no argument required
4507      # The diagnosis changed in icc 8.0:
4508      #   icc: Command line remark: option '-MP' not supported
4509      if (grep 'ignoring option' conftest.err ||
4510          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4511        am_cv_CC_dependencies_compiler_type=$depmode
4512        break
4513      fi
4514    fi
4515  done
4516
4517  cd ..
4518  rm -rf conftest.dir
4519else
4520  am_cv_CC_dependencies_compiler_type=none
4521fi
4522
4523fi
4524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4525printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4526CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4527
4528 if
4529  test "x$enable_dependency_tracking" != xno \
4530  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4531  am__fastdepCC_TRUE=
4532  am__fastdepCC_FALSE='#'
4533else
4534  am__fastdepCC_TRUE='#'
4535  am__fastdepCC_FALSE=
4536fi
4537
4538
4539
4540
4541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4542printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4543if test ${ac_cv_c_undeclared_builtin_options+y}
4544then :
4545  printf %s "(cached) " >&6
4546else $as_nop
4547  ac_save_CFLAGS=$CFLAGS
4548   ac_cv_c_undeclared_builtin_options='cannot detect'
4549   for ac_arg in '' -fno-builtin; do
4550     CFLAGS="$ac_save_CFLAGS $ac_arg"
4551     # This test program should *not* compile successfully.
4552     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553/* end confdefs.h.  */
4554
4555int
4556main (void)
4557{
4558(void) strchr;
4559  ;
4560  return 0;
4561}
4562_ACEOF
4563if ac_fn_c_try_compile "$LINENO"
4564then :
4565
4566else $as_nop
4567  # This test program should compile successfully.
4568        # No library function is consistently available on
4569        # freestanding implementations, so test against a dummy
4570        # declaration.  Include always-available headers on the
4571        # off chance that they somehow elicit warnings.
4572        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573/* end confdefs.h.  */
4574#include <float.h>
4575#include <limits.h>
4576#include <stdarg.h>
4577#include <stddef.h>
4578extern void ac_decl (int, char *);
4579
4580int
4581main (void)
4582{
4583(void) ac_decl (0, (char *) 0);
4584  (void) ac_decl;
4585
4586  ;
4587  return 0;
4588}
4589_ACEOF
4590if ac_fn_c_try_compile "$LINENO"
4591then :
4592  if test x"$ac_arg" = x
4593then :
4594  ac_cv_c_undeclared_builtin_options='none needed'
4595else $as_nop
4596  ac_cv_c_undeclared_builtin_options=$ac_arg
4597fi
4598          break
4599fi
4600rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4601fi
4602rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4603    done
4604    CFLAGS=$ac_save_CFLAGS
4605
4606fi
4607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4608printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4609  case $ac_cv_c_undeclared_builtin_options in #(
4610  'cannot detect') :
4611    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4612printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4613as_fn_error $? "cannot make $CC report undeclared builtins
4614See \`config.log' for more details" "$LINENO" 5; } ;; #(
4615  'none needed') :
4616    ac_c_undeclared_builtin_options='' ;; #(
4617  *) :
4618    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4619esac
4620
4621ac_header= ac_cache=
4622for ac_item in $ac_header_c_list
4623do
4624  if test $ac_cache; then
4625    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4626    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4627      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4628    fi
4629    ac_header= ac_cache=
4630  elif test $ac_header; then
4631    ac_cache=$ac_item
4632  else
4633    ac_header=$ac_item
4634  fi
4635done
4636
4637
4638
4639
4640
4641
4642
4643
4644if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4645then :
4646
4647printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4648
4649fi
4650
4651
4652
4653
4654ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4655if test "x$ac_cv_have_decl___clang__" = xyes
4656then :
4657  CLANGCC="yes"
4658else $as_nop
4659  CLANGCC="no"
4660fi
4661ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4662if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4663then :
4664  INTELCC="yes"
4665else $as_nop
4666  INTELCC="no"
4667fi
4668ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4669if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4670then :
4671  SUNCC="yes"
4672else $as_nop
4673  SUNCC="no"
4674fi
4675
4676
4677
4678
4679
4680
4681
4682
4683if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4684	if test -n "$ac_tool_prefix"; then
4685  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4686set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4688printf %s "checking for $ac_word... " >&6; }
4689if test ${ac_cv_path_PKG_CONFIG+y}
4690then :
4691  printf %s "(cached) " >&6
4692else $as_nop
4693  case $PKG_CONFIG in
4694  [\\/]* | ?:[\\/]*)
4695  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4696  ;;
4697  *)
4698  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699for as_dir in $PATH
4700do
4701  IFS=$as_save_IFS
4702  case $as_dir in #(((
4703    '') as_dir=./ ;;
4704    */) ;;
4705    *) as_dir=$as_dir/ ;;
4706  esac
4707    for ac_exec_ext in '' $ac_executable_extensions; do
4708  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4709    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4710    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4711    break 2
4712  fi
4713done
4714  done
4715IFS=$as_save_IFS
4716
4717  ;;
4718esac
4719fi
4720PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4721if test -n "$PKG_CONFIG"; then
4722  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4723printf "%s\n" "$PKG_CONFIG" >&6; }
4724else
4725  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4726printf "%s\n" "no" >&6; }
4727fi
4728
4729
4730fi
4731if test -z "$ac_cv_path_PKG_CONFIG"; then
4732  ac_pt_PKG_CONFIG=$PKG_CONFIG
4733  # Extract the first word of "pkg-config", so it can be a program name with args.
4734set dummy pkg-config; ac_word=$2
4735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4736printf %s "checking for $ac_word... " >&6; }
4737if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4738then :
4739  printf %s "(cached) " >&6
4740else $as_nop
4741  case $ac_pt_PKG_CONFIG in
4742  [\\/]* | ?:[\\/]*)
4743  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4744  ;;
4745  *)
4746  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747for as_dir in $PATH
4748do
4749  IFS=$as_save_IFS
4750  case $as_dir in #(((
4751    '') as_dir=./ ;;
4752    */) ;;
4753    *) as_dir=$as_dir/ ;;
4754  esac
4755    for ac_exec_ext in '' $ac_executable_extensions; do
4756  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4757    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4758    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4759    break 2
4760  fi
4761done
4762  done
4763IFS=$as_save_IFS
4764
4765  ;;
4766esac
4767fi
4768ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4769if test -n "$ac_pt_PKG_CONFIG"; then
4770  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4771printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4772else
4773  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774printf "%s\n" "no" >&6; }
4775fi
4776
4777  if test "x$ac_pt_PKG_CONFIG" = x; then
4778    PKG_CONFIG=""
4779  else
4780    case $cross_compiling:$ac_tool_warned in
4781yes:)
4782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4783printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4784ac_tool_warned=yes ;;
4785esac
4786    PKG_CONFIG=$ac_pt_PKG_CONFIG
4787  fi
4788else
4789  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4790fi
4791
4792fi
4793if test -n "$PKG_CONFIG"; then
4794	_pkg_min_version=0.9.0
4795	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4796printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4797	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4798		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4799printf "%s\n" "yes" >&6; }
4800	else
4801		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802printf "%s\n" "no" >&6; }
4803		PKG_CONFIG=""
4804	fi
4805fi
4806
4807
4808  # Make sure we can run config.sub.
4809$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4810  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4811
4812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4813printf %s "checking build system type... " >&6; }
4814if test ${ac_cv_build+y}
4815then :
4816  printf %s "(cached) " >&6
4817else $as_nop
4818  ac_build_alias=$build_alias
4819test "x$ac_build_alias" = x &&
4820  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4821test "x$ac_build_alias" = x &&
4822  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4823ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4824  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4825
4826fi
4827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4828printf "%s\n" "$ac_cv_build" >&6; }
4829case $ac_cv_build in
4830*-*-*) ;;
4831*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4832esac
4833build=$ac_cv_build
4834ac_save_IFS=$IFS; IFS='-'
4835set x $ac_cv_build
4836shift
4837build_cpu=$1
4838build_vendor=$2
4839shift; shift
4840# Remember, the first character of IFS is used to create $*,
4841# except with old shells:
4842build_os=$*
4843IFS=$ac_save_IFS
4844case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4845
4846
4847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4848printf %s "checking host system type... " >&6; }
4849if test ${ac_cv_host+y}
4850then :
4851  printf %s "(cached) " >&6
4852else $as_nop
4853  if test "x$host_alias" = x; then
4854  ac_cv_host=$ac_cv_build
4855else
4856  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4857    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4858fi
4859
4860fi
4861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4862printf "%s\n" "$ac_cv_host" >&6; }
4863case $ac_cv_host in
4864*-*-*) ;;
4865*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4866esac
4867host=$ac_cv_host
4868ac_save_IFS=$IFS; IFS='-'
4869set x $ac_cv_host
4870shift
4871host_cpu=$1
4872host_vendor=$2
4873shift; shift
4874# Remember, the first character of IFS is used to create $*,
4875# except with old shells:
4876host_os=$*
4877IFS=$ac_save_IFS
4878case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4879
4880
4881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4882printf %s "checking for a sed that does not truncate output... " >&6; }
4883if test ${ac_cv_path_SED+y}
4884then :
4885  printf %s "(cached) " >&6
4886else $as_nop
4887            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4888     for ac_i in 1 2 3 4 5 6 7; do
4889       ac_script="$ac_script$as_nl$ac_script"
4890     done
4891     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4892     { ac_script=; unset ac_script;}
4893     if test -z "$SED"; then
4894  ac_path_SED_found=false
4895  # Loop through the user's path and test for each of PROGNAME-LIST
4896  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897for as_dir in $PATH
4898do
4899  IFS=$as_save_IFS
4900  case $as_dir in #(((
4901    '') as_dir=./ ;;
4902    */) ;;
4903    *) as_dir=$as_dir/ ;;
4904  esac
4905    for ac_prog in sed gsed
4906   do
4907    for ac_exec_ext in '' $ac_executable_extensions; do
4908      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4909      as_fn_executable_p "$ac_path_SED" || continue
4910# Check for GNU ac_path_SED and select it if it is found.
4911  # Check for GNU $ac_path_SED
4912case `"$ac_path_SED" --version 2>&1` in
4913*GNU*)
4914  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4915*)
4916  ac_count=0
4917  printf %s 0123456789 >"conftest.in"
4918  while :
4919  do
4920    cat "conftest.in" "conftest.in" >"conftest.tmp"
4921    mv "conftest.tmp" "conftest.in"
4922    cp "conftest.in" "conftest.nl"
4923    printf "%s\n" '' >> "conftest.nl"
4924    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4925    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4926    as_fn_arith $ac_count + 1 && ac_count=$as_val
4927    if test $ac_count -gt ${ac_path_SED_max-0}; then
4928      # Best one so far, save it but keep looking for a better one
4929      ac_cv_path_SED="$ac_path_SED"
4930      ac_path_SED_max=$ac_count
4931    fi
4932    # 10*(2^10) chars as input seems more than enough
4933    test $ac_count -gt 10 && break
4934  done
4935  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4936esac
4937
4938      $ac_path_SED_found && break 3
4939    done
4940  done
4941  done
4942IFS=$as_save_IFS
4943  if test -z "$ac_cv_path_SED"; then
4944    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4945  fi
4946else
4947  ac_cv_path_SED=$SED
4948fi
4949
4950fi
4951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4952printf "%s\n" "$ac_cv_path_SED" >&6; }
4953 SED="$ac_cv_path_SED"
4954  rm -f conftest.sed
4955
4956
4957
4958
4959
4960
4961# Check whether --enable-selective-werror was given.
4962if test ${enable_selective_werror+y}
4963then :
4964  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4965else $as_nop
4966  SELECTIVE_WERROR=yes
4967fi
4968
4969
4970
4971
4972
4973# -v is too short to test reliably with XORG_TESTSET_CFLAG
4974if test "x$SUNCC" = "xyes"; then
4975    BASE_CFLAGS="-v"
4976else
4977    BASE_CFLAGS=""
4978fi
4979
4980# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994xorg_testset_save_CFLAGS="$CFLAGS"
4995
4996if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4997	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4998	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4999printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5000if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5001then :
5002  printf %s "(cached) " >&6
5003else $as_nop
5004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005/* end confdefs.h.  */
5006int i;
5007_ACEOF
5008if ac_fn_c_try_compile "$LINENO"
5009then :
5010  xorg_cv_cc_flag_unknown_warning_option=yes
5011else $as_nop
5012  xorg_cv_cc_flag_unknown_warning_option=no
5013fi
5014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5015fi
5016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5017printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5018	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5019	CFLAGS="$xorg_testset_save_CFLAGS"
5020fi
5021
5022if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5023	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5024		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5025	fi
5026	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5027	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5028printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5029if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5030then :
5031  printf %s "(cached) " >&6
5032else $as_nop
5033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034/* end confdefs.h.  */
5035int i;
5036_ACEOF
5037if ac_fn_c_try_compile "$LINENO"
5038then :
5039  xorg_cv_cc_flag_unused_command_line_argument=yes
5040else $as_nop
5041  xorg_cv_cc_flag_unused_command_line_argument=no
5042fi
5043rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5044fi
5045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5046printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5047	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5048	CFLAGS="$xorg_testset_save_CFLAGS"
5049fi
5050
5051found="no"
5052
5053	if test $found = "no" ; then
5054		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5055			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5056		fi
5057
5058		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5059			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5060		fi
5061
5062		CFLAGS="$CFLAGS -Wall"
5063
5064		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5065printf %s "checking if $CC supports -Wall... " >&6; }
5066		cacheid=xorg_cv_cc_flag__Wall
5067		if eval test \${$cacheid+y}
5068then :
5069  printf %s "(cached) " >&6
5070else $as_nop
5071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5072/* end confdefs.h.  */
5073int i;
5074int
5075main (void)
5076{
5077
5078  ;
5079  return 0;
5080}
5081_ACEOF
5082if ac_fn_c_try_link "$LINENO"
5083then :
5084  eval $cacheid=yes
5085else $as_nop
5086  eval $cacheid=no
5087fi
5088rm -f core conftest.err conftest.$ac_objext conftest.beam \
5089    conftest$ac_exeext conftest.$ac_ext
5090fi
5091
5092
5093		CFLAGS="$xorg_testset_save_CFLAGS"
5094
5095		eval supported=\$$cacheid
5096		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5097printf "%s\n" "$supported" >&6; }
5098		if test "$supported" = "yes" ; then
5099			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5100			found="yes"
5101		fi
5102	fi
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118xorg_testset_save_CFLAGS="$CFLAGS"
5119
5120if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5121	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5122	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5123printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5124if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5125then :
5126  printf %s "(cached) " >&6
5127else $as_nop
5128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129/* end confdefs.h.  */
5130int i;
5131_ACEOF
5132if ac_fn_c_try_compile "$LINENO"
5133then :
5134  xorg_cv_cc_flag_unknown_warning_option=yes
5135else $as_nop
5136  xorg_cv_cc_flag_unknown_warning_option=no
5137fi
5138rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5139fi
5140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5141printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5142	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5143	CFLAGS="$xorg_testset_save_CFLAGS"
5144fi
5145
5146if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5147	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5148		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5149	fi
5150	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5151	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5152printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5153if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5154then :
5155  printf %s "(cached) " >&6
5156else $as_nop
5157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158/* end confdefs.h.  */
5159int i;
5160_ACEOF
5161if ac_fn_c_try_compile "$LINENO"
5162then :
5163  xorg_cv_cc_flag_unused_command_line_argument=yes
5164else $as_nop
5165  xorg_cv_cc_flag_unused_command_line_argument=no
5166fi
5167rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5168fi
5169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5170printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5171	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5172	CFLAGS="$xorg_testset_save_CFLAGS"
5173fi
5174
5175found="no"
5176
5177	if test $found = "no" ; then
5178		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5179			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5180		fi
5181
5182		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5183			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5184		fi
5185
5186		CFLAGS="$CFLAGS -Wpointer-arith"
5187
5188		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5189printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5190		cacheid=xorg_cv_cc_flag__Wpointer_arith
5191		if eval test \${$cacheid+y}
5192then :
5193  printf %s "(cached) " >&6
5194else $as_nop
5195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196/* end confdefs.h.  */
5197int i;
5198int
5199main (void)
5200{
5201
5202  ;
5203  return 0;
5204}
5205_ACEOF
5206if ac_fn_c_try_link "$LINENO"
5207then :
5208  eval $cacheid=yes
5209else $as_nop
5210  eval $cacheid=no
5211fi
5212rm -f core conftest.err conftest.$ac_objext conftest.beam \
5213    conftest$ac_exeext conftest.$ac_ext
5214fi
5215
5216
5217		CFLAGS="$xorg_testset_save_CFLAGS"
5218
5219		eval supported=\$$cacheid
5220		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5221printf "%s\n" "$supported" >&6; }
5222		if test "$supported" = "yes" ; then
5223			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5224			found="yes"
5225		fi
5226	fi
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242xorg_testset_save_CFLAGS="$CFLAGS"
5243
5244if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5245	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5246	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5247printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5248if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5249then :
5250  printf %s "(cached) " >&6
5251else $as_nop
5252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253/* end confdefs.h.  */
5254int i;
5255_ACEOF
5256if ac_fn_c_try_compile "$LINENO"
5257then :
5258  xorg_cv_cc_flag_unknown_warning_option=yes
5259else $as_nop
5260  xorg_cv_cc_flag_unknown_warning_option=no
5261fi
5262rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5263fi
5264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5265printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5266	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5267	CFLAGS="$xorg_testset_save_CFLAGS"
5268fi
5269
5270if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5271	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5272		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5273	fi
5274	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5275	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5276printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5277if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5278then :
5279  printf %s "(cached) " >&6
5280else $as_nop
5281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5282/* end confdefs.h.  */
5283int i;
5284_ACEOF
5285if ac_fn_c_try_compile "$LINENO"
5286then :
5287  xorg_cv_cc_flag_unused_command_line_argument=yes
5288else $as_nop
5289  xorg_cv_cc_flag_unused_command_line_argument=no
5290fi
5291rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5292fi
5293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5294printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5295	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5296	CFLAGS="$xorg_testset_save_CFLAGS"
5297fi
5298
5299found="no"
5300
5301	if test $found = "no" ; then
5302		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5303			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5304		fi
5305
5306		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5307			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5308		fi
5309
5310		CFLAGS="$CFLAGS -Wmissing-declarations"
5311
5312		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5313printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5314		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5315		if eval test \${$cacheid+y}
5316then :
5317  printf %s "(cached) " >&6
5318else $as_nop
5319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320/* end confdefs.h.  */
5321int i;
5322int
5323main (void)
5324{
5325
5326  ;
5327  return 0;
5328}
5329_ACEOF
5330if ac_fn_c_try_link "$LINENO"
5331then :
5332  eval $cacheid=yes
5333else $as_nop
5334  eval $cacheid=no
5335fi
5336rm -f core conftest.err conftest.$ac_objext conftest.beam \
5337    conftest$ac_exeext conftest.$ac_ext
5338fi
5339
5340
5341		CFLAGS="$xorg_testset_save_CFLAGS"
5342
5343		eval supported=\$$cacheid
5344		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5345printf "%s\n" "$supported" >&6; }
5346		if test "$supported" = "yes" ; then
5347			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5348			found="yes"
5349		fi
5350	fi
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366xorg_testset_save_CFLAGS="$CFLAGS"
5367
5368if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5369	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5370	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5371printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5372if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5373then :
5374  printf %s "(cached) " >&6
5375else $as_nop
5376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377/* end confdefs.h.  */
5378int i;
5379_ACEOF
5380if ac_fn_c_try_compile "$LINENO"
5381then :
5382  xorg_cv_cc_flag_unknown_warning_option=yes
5383else $as_nop
5384  xorg_cv_cc_flag_unknown_warning_option=no
5385fi
5386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5387fi
5388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5389printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5390	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5391	CFLAGS="$xorg_testset_save_CFLAGS"
5392fi
5393
5394if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5395	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5396		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5397	fi
5398	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5399	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5400printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5401if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5402then :
5403  printf %s "(cached) " >&6
5404else $as_nop
5405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406/* end confdefs.h.  */
5407int i;
5408_ACEOF
5409if ac_fn_c_try_compile "$LINENO"
5410then :
5411  xorg_cv_cc_flag_unused_command_line_argument=yes
5412else $as_nop
5413  xorg_cv_cc_flag_unused_command_line_argument=no
5414fi
5415rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5416fi
5417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5418printf "%s\n" "$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 -Wformat=2"
5435
5436		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5437printf %s "checking if $CC supports -Wformat=2... " >&6; }
5438		cacheid=xorg_cv_cc_flag__Wformat_2
5439		if eval test \${$cacheid+y}
5440then :
5441  printf %s "(cached) " >&6
5442else $as_nop
5443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444/* end confdefs.h.  */
5445int i;
5446int
5447main (void)
5448{
5449
5450  ;
5451  return 0;
5452}
5453_ACEOF
5454if ac_fn_c_try_link "$LINENO"
5455then :
5456  eval $cacheid=yes
5457else $as_nop
5458  eval $cacheid=no
5459fi
5460rm -f core conftest.err conftest.$ac_objext conftest.beam \
5461    conftest$ac_exeext conftest.$ac_ext
5462fi
5463
5464
5465		CFLAGS="$xorg_testset_save_CFLAGS"
5466
5467		eval supported=\$$cacheid
5468		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5469printf "%s\n" "$supported" >&6; }
5470		if test "$supported" = "yes" ; then
5471			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5472			found="yes"
5473		fi
5474	fi
5475
5476	if test $found = "no" ; then
5477		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5478			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5479		fi
5480
5481		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5482			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5483		fi
5484
5485		CFLAGS="$CFLAGS -Wformat"
5486
5487		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5488printf %s "checking if $CC supports -Wformat... " >&6; }
5489		cacheid=xorg_cv_cc_flag__Wformat
5490		if eval test \${$cacheid+y}
5491then :
5492  printf %s "(cached) " >&6
5493else $as_nop
5494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495/* end confdefs.h.  */
5496int i;
5497int
5498main (void)
5499{
5500
5501  ;
5502  return 0;
5503}
5504_ACEOF
5505if ac_fn_c_try_link "$LINENO"
5506then :
5507  eval $cacheid=yes
5508else $as_nop
5509  eval $cacheid=no
5510fi
5511rm -f core conftest.err conftest.$ac_objext conftest.beam \
5512    conftest$ac_exeext conftest.$ac_ext
5513fi
5514
5515
5516		CFLAGS="$xorg_testset_save_CFLAGS"
5517
5518		eval supported=\$$cacheid
5519		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5520printf "%s\n" "$supported" >&6; }
5521		if test "$supported" = "yes" ; then
5522			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5523			found="yes"
5524		fi
5525	fi
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543xorg_testset_save_CFLAGS="$CFLAGS"
5544
5545if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5546	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5547	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5548printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5549if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5550then :
5551  printf %s "(cached) " >&6
5552else $as_nop
5553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554/* end confdefs.h.  */
5555int i;
5556_ACEOF
5557if ac_fn_c_try_compile "$LINENO"
5558then :
5559  xorg_cv_cc_flag_unknown_warning_option=yes
5560else $as_nop
5561  xorg_cv_cc_flag_unknown_warning_option=no
5562fi
5563rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5564fi
5565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5566printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5567	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5568	CFLAGS="$xorg_testset_save_CFLAGS"
5569fi
5570
5571if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5572	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5573		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5574	fi
5575	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5576	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5577printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5578if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5579then :
5580  printf %s "(cached) " >&6
5581else $as_nop
5582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583/* end confdefs.h.  */
5584int i;
5585_ACEOF
5586if ac_fn_c_try_compile "$LINENO"
5587then :
5588  xorg_cv_cc_flag_unused_command_line_argument=yes
5589else $as_nop
5590  xorg_cv_cc_flag_unused_command_line_argument=no
5591fi
5592rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5593fi
5594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5595printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5596	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5597	CFLAGS="$xorg_testset_save_CFLAGS"
5598fi
5599
5600found="no"
5601
5602	if test $found = "no" ; then
5603		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5604			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5605		fi
5606
5607		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5608			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5609		fi
5610
5611		CFLAGS="$CFLAGS -Wstrict-prototypes"
5612
5613		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5614printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5615		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5616		if eval test \${$cacheid+y}
5617then :
5618  printf %s "(cached) " >&6
5619else $as_nop
5620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621/* end confdefs.h.  */
5622int i;
5623int
5624main (void)
5625{
5626
5627  ;
5628  return 0;
5629}
5630_ACEOF
5631if ac_fn_c_try_link "$LINENO"
5632then :
5633  eval $cacheid=yes
5634else $as_nop
5635  eval $cacheid=no
5636fi
5637rm -f core conftest.err conftest.$ac_objext conftest.beam \
5638    conftest$ac_exeext conftest.$ac_ext
5639fi
5640
5641
5642		CFLAGS="$xorg_testset_save_CFLAGS"
5643
5644		eval supported=\$$cacheid
5645		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5646printf "%s\n" "$supported" >&6; }
5647		if test "$supported" = "yes" ; then
5648			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5649			found="yes"
5650		fi
5651	fi
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667xorg_testset_save_CFLAGS="$CFLAGS"
5668
5669if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5670	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5671	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5672printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5673if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5674then :
5675  printf %s "(cached) " >&6
5676else $as_nop
5677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678/* end confdefs.h.  */
5679int i;
5680_ACEOF
5681if ac_fn_c_try_compile "$LINENO"
5682then :
5683  xorg_cv_cc_flag_unknown_warning_option=yes
5684else $as_nop
5685  xorg_cv_cc_flag_unknown_warning_option=no
5686fi
5687rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5688fi
5689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5690printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5691	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5692	CFLAGS="$xorg_testset_save_CFLAGS"
5693fi
5694
5695if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5696	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5697		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5698	fi
5699	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5700	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5701printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5702if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5703then :
5704  printf %s "(cached) " >&6
5705else $as_nop
5706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707/* end confdefs.h.  */
5708int i;
5709_ACEOF
5710if ac_fn_c_try_compile "$LINENO"
5711then :
5712  xorg_cv_cc_flag_unused_command_line_argument=yes
5713else $as_nop
5714  xorg_cv_cc_flag_unused_command_line_argument=no
5715fi
5716rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5717fi
5718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5719printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5720	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5721	CFLAGS="$xorg_testset_save_CFLAGS"
5722fi
5723
5724found="no"
5725
5726	if test $found = "no" ; then
5727		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5728			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5729		fi
5730
5731		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5732			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5733		fi
5734
5735		CFLAGS="$CFLAGS -Wmissing-prototypes"
5736
5737		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5738printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5739		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5740		if eval test \${$cacheid+y}
5741then :
5742  printf %s "(cached) " >&6
5743else $as_nop
5744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745/* end confdefs.h.  */
5746int i;
5747int
5748main (void)
5749{
5750
5751  ;
5752  return 0;
5753}
5754_ACEOF
5755if ac_fn_c_try_link "$LINENO"
5756then :
5757  eval $cacheid=yes
5758else $as_nop
5759  eval $cacheid=no
5760fi
5761rm -f core conftest.err conftest.$ac_objext conftest.beam \
5762    conftest$ac_exeext conftest.$ac_ext
5763fi
5764
5765
5766		CFLAGS="$xorg_testset_save_CFLAGS"
5767
5768		eval supported=\$$cacheid
5769		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5770printf "%s\n" "$supported" >&6; }
5771		if test "$supported" = "yes" ; then
5772			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5773			found="yes"
5774		fi
5775	fi
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791xorg_testset_save_CFLAGS="$CFLAGS"
5792
5793if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5794	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5795	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5796printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5797if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5798then :
5799  printf %s "(cached) " >&6
5800else $as_nop
5801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802/* end confdefs.h.  */
5803int i;
5804_ACEOF
5805if ac_fn_c_try_compile "$LINENO"
5806then :
5807  xorg_cv_cc_flag_unknown_warning_option=yes
5808else $as_nop
5809  xorg_cv_cc_flag_unknown_warning_option=no
5810fi
5811rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5812fi
5813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5814printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5815	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5816	CFLAGS="$xorg_testset_save_CFLAGS"
5817fi
5818
5819if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5820	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5821		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5822	fi
5823	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5824	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5825printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5826if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5827then :
5828  printf %s "(cached) " >&6
5829else $as_nop
5830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831/* end confdefs.h.  */
5832int i;
5833_ACEOF
5834if ac_fn_c_try_compile "$LINENO"
5835then :
5836  xorg_cv_cc_flag_unused_command_line_argument=yes
5837else $as_nop
5838  xorg_cv_cc_flag_unused_command_line_argument=no
5839fi
5840rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5841fi
5842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5843printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5844	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5845	CFLAGS="$xorg_testset_save_CFLAGS"
5846fi
5847
5848found="no"
5849
5850	if test $found = "no" ; then
5851		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5852			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5853		fi
5854
5855		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5856			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5857		fi
5858
5859		CFLAGS="$CFLAGS -Wnested-externs"
5860
5861		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5862printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5863		cacheid=xorg_cv_cc_flag__Wnested_externs
5864		if eval test \${$cacheid+y}
5865then :
5866  printf %s "(cached) " >&6
5867else $as_nop
5868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869/* end confdefs.h.  */
5870int i;
5871int
5872main (void)
5873{
5874
5875  ;
5876  return 0;
5877}
5878_ACEOF
5879if ac_fn_c_try_link "$LINENO"
5880then :
5881  eval $cacheid=yes
5882else $as_nop
5883  eval $cacheid=no
5884fi
5885rm -f core conftest.err conftest.$ac_objext conftest.beam \
5886    conftest$ac_exeext conftest.$ac_ext
5887fi
5888
5889
5890		CFLAGS="$xorg_testset_save_CFLAGS"
5891
5892		eval supported=\$$cacheid
5893		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5894printf "%s\n" "$supported" >&6; }
5895		if test "$supported" = "yes" ; then
5896			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5897			found="yes"
5898		fi
5899	fi
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915xorg_testset_save_CFLAGS="$CFLAGS"
5916
5917if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5918	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5919	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5920printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5921if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5922then :
5923  printf %s "(cached) " >&6
5924else $as_nop
5925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926/* end confdefs.h.  */
5927int i;
5928_ACEOF
5929if ac_fn_c_try_compile "$LINENO"
5930then :
5931  xorg_cv_cc_flag_unknown_warning_option=yes
5932else $as_nop
5933  xorg_cv_cc_flag_unknown_warning_option=no
5934fi
5935rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5936fi
5937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5938printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5939	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5940	CFLAGS="$xorg_testset_save_CFLAGS"
5941fi
5942
5943if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5944	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5945		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5946	fi
5947	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5948	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5949printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5950if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5951then :
5952  printf %s "(cached) " >&6
5953else $as_nop
5954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955/* end confdefs.h.  */
5956int i;
5957_ACEOF
5958if ac_fn_c_try_compile "$LINENO"
5959then :
5960  xorg_cv_cc_flag_unused_command_line_argument=yes
5961else $as_nop
5962  xorg_cv_cc_flag_unused_command_line_argument=no
5963fi
5964rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5965fi
5966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5967printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5968	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5969	CFLAGS="$xorg_testset_save_CFLAGS"
5970fi
5971
5972found="no"
5973
5974	if test $found = "no" ; then
5975		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5976			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5977		fi
5978
5979		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5980			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5981		fi
5982
5983		CFLAGS="$CFLAGS -Wbad-function-cast"
5984
5985		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5986printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5987		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5988		if eval test \${$cacheid+y}
5989then :
5990  printf %s "(cached) " >&6
5991else $as_nop
5992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993/* end confdefs.h.  */
5994int i;
5995int
5996main (void)
5997{
5998
5999  ;
6000  return 0;
6001}
6002_ACEOF
6003if ac_fn_c_try_link "$LINENO"
6004then :
6005  eval $cacheid=yes
6006else $as_nop
6007  eval $cacheid=no
6008fi
6009rm -f core conftest.err conftest.$ac_objext conftest.beam \
6010    conftest$ac_exeext conftest.$ac_ext
6011fi
6012
6013
6014		CFLAGS="$xorg_testset_save_CFLAGS"
6015
6016		eval supported=\$$cacheid
6017		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6018printf "%s\n" "$supported" >&6; }
6019		if test "$supported" = "yes" ; then
6020			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6021			found="yes"
6022		fi
6023	fi
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039xorg_testset_save_CFLAGS="$CFLAGS"
6040
6041if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6042	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6043	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6044printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6045if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6046then :
6047  printf %s "(cached) " >&6
6048else $as_nop
6049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050/* end confdefs.h.  */
6051int i;
6052_ACEOF
6053if ac_fn_c_try_compile "$LINENO"
6054then :
6055  xorg_cv_cc_flag_unknown_warning_option=yes
6056else $as_nop
6057  xorg_cv_cc_flag_unknown_warning_option=no
6058fi
6059rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6060fi
6061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6062printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6063	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6064	CFLAGS="$xorg_testset_save_CFLAGS"
6065fi
6066
6067if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6068	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6069		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6070	fi
6071	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6072	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6073printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6074if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6075then :
6076  printf %s "(cached) " >&6
6077else $as_nop
6078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079/* end confdefs.h.  */
6080int i;
6081_ACEOF
6082if ac_fn_c_try_compile "$LINENO"
6083then :
6084  xorg_cv_cc_flag_unused_command_line_argument=yes
6085else $as_nop
6086  xorg_cv_cc_flag_unused_command_line_argument=no
6087fi
6088rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6089fi
6090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6091printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6092	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6093	CFLAGS="$xorg_testset_save_CFLAGS"
6094fi
6095
6096found="no"
6097
6098	if test $found = "no" ; then
6099		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6100			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6101		fi
6102
6103		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6104			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6105		fi
6106
6107		CFLAGS="$CFLAGS -Wold-style-definition"
6108
6109		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6110printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6111		cacheid=xorg_cv_cc_flag__Wold_style_definition
6112		if eval test \${$cacheid+y}
6113then :
6114  printf %s "(cached) " >&6
6115else $as_nop
6116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117/* end confdefs.h.  */
6118int i;
6119int
6120main (void)
6121{
6122
6123  ;
6124  return 0;
6125}
6126_ACEOF
6127if ac_fn_c_try_link "$LINENO"
6128then :
6129  eval $cacheid=yes
6130else $as_nop
6131  eval $cacheid=no
6132fi
6133rm -f core conftest.err conftest.$ac_objext conftest.beam \
6134    conftest$ac_exeext conftest.$ac_ext
6135fi
6136
6137
6138		CFLAGS="$xorg_testset_save_CFLAGS"
6139
6140		eval supported=\$$cacheid
6141		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6142printf "%s\n" "$supported" >&6; }
6143		if test "$supported" = "yes" ; then
6144			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6145			found="yes"
6146		fi
6147	fi
6148
6149	if test $found = "no" ; then
6150		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6151			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6152		fi
6153
6154		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6155			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6156		fi
6157
6158		CFLAGS="$CFLAGS -fd"
6159
6160		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6161printf %s "checking if $CC supports -fd... " >&6; }
6162		cacheid=xorg_cv_cc_flag__fd
6163		if eval test \${$cacheid+y}
6164then :
6165  printf %s "(cached) " >&6
6166else $as_nop
6167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168/* end confdefs.h.  */
6169int i;
6170int
6171main (void)
6172{
6173
6174  ;
6175  return 0;
6176}
6177_ACEOF
6178if ac_fn_c_try_link "$LINENO"
6179then :
6180  eval $cacheid=yes
6181else $as_nop
6182  eval $cacheid=no
6183fi
6184rm -f core conftest.err conftest.$ac_objext conftest.beam \
6185    conftest$ac_exeext conftest.$ac_ext
6186fi
6187
6188
6189		CFLAGS="$xorg_testset_save_CFLAGS"
6190
6191		eval supported=\$$cacheid
6192		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6193printf "%s\n" "$supported" >&6; }
6194		if test "$supported" = "yes" ; then
6195			BASE_CFLAGS="$BASE_CFLAGS -fd"
6196			found="yes"
6197		fi
6198	fi
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214xorg_testset_save_CFLAGS="$CFLAGS"
6215
6216if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6217	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6218	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6219printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6220if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6221then :
6222  printf %s "(cached) " >&6
6223else $as_nop
6224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225/* end confdefs.h.  */
6226int i;
6227_ACEOF
6228if ac_fn_c_try_compile "$LINENO"
6229then :
6230  xorg_cv_cc_flag_unknown_warning_option=yes
6231else $as_nop
6232  xorg_cv_cc_flag_unknown_warning_option=no
6233fi
6234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6235fi
6236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6237printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6238	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6239	CFLAGS="$xorg_testset_save_CFLAGS"
6240fi
6241
6242if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6243	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6244		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6245	fi
6246	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6247	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6248printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6249if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6250then :
6251  printf %s "(cached) " >&6
6252else $as_nop
6253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6254/* end confdefs.h.  */
6255int i;
6256_ACEOF
6257if ac_fn_c_try_compile "$LINENO"
6258then :
6259  xorg_cv_cc_flag_unused_command_line_argument=yes
6260else $as_nop
6261  xorg_cv_cc_flag_unused_command_line_argument=no
6262fi
6263rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6264fi
6265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6266printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6267	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6268	CFLAGS="$xorg_testset_save_CFLAGS"
6269fi
6270
6271found="no"
6272
6273	if test $found = "no" ; then
6274		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6275			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6276		fi
6277
6278		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6279			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6280		fi
6281
6282		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6283
6284		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6285printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6286		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6287		if eval test \${$cacheid+y}
6288then :
6289  printf %s "(cached) " >&6
6290else $as_nop
6291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292/* end confdefs.h.  */
6293int i;
6294int
6295main (void)
6296{
6297
6298  ;
6299  return 0;
6300}
6301_ACEOF
6302if ac_fn_c_try_link "$LINENO"
6303then :
6304  eval $cacheid=yes
6305else $as_nop
6306  eval $cacheid=no
6307fi
6308rm -f core conftest.err conftest.$ac_objext conftest.beam \
6309    conftest$ac_exeext conftest.$ac_ext
6310fi
6311
6312
6313		CFLAGS="$xorg_testset_save_CFLAGS"
6314
6315		eval supported=\$$cacheid
6316		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6317printf "%s\n" "$supported" >&6; }
6318		if test "$supported" = "yes" ; then
6319			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6320			found="yes"
6321		fi
6322	fi
6323
6324
6325
6326
6327
6328# This chunk adds additional warnings that could catch undesired effects.
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342xorg_testset_save_CFLAGS="$CFLAGS"
6343
6344if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6345	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6346	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6347printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6348if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6349then :
6350  printf %s "(cached) " >&6
6351else $as_nop
6352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6353/* end confdefs.h.  */
6354int i;
6355_ACEOF
6356if ac_fn_c_try_compile "$LINENO"
6357then :
6358  xorg_cv_cc_flag_unknown_warning_option=yes
6359else $as_nop
6360  xorg_cv_cc_flag_unknown_warning_option=no
6361fi
6362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6363fi
6364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6365printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6366	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6367	CFLAGS="$xorg_testset_save_CFLAGS"
6368fi
6369
6370if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6371	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6372		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6373	fi
6374	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6375	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6376printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6377if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6378then :
6379  printf %s "(cached) " >&6
6380else $as_nop
6381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382/* end confdefs.h.  */
6383int i;
6384_ACEOF
6385if ac_fn_c_try_compile "$LINENO"
6386then :
6387  xorg_cv_cc_flag_unused_command_line_argument=yes
6388else $as_nop
6389  xorg_cv_cc_flag_unused_command_line_argument=no
6390fi
6391rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6392fi
6393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6394printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6395	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6396	CFLAGS="$xorg_testset_save_CFLAGS"
6397fi
6398
6399found="no"
6400
6401	if test $found = "no" ; then
6402		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6403			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6404		fi
6405
6406		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6407			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6408		fi
6409
6410		CFLAGS="$CFLAGS -Wunused"
6411
6412		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6413printf %s "checking if $CC supports -Wunused... " >&6; }
6414		cacheid=xorg_cv_cc_flag__Wunused
6415		if eval test \${$cacheid+y}
6416then :
6417  printf %s "(cached) " >&6
6418else $as_nop
6419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6420/* end confdefs.h.  */
6421int i;
6422int
6423main (void)
6424{
6425
6426  ;
6427  return 0;
6428}
6429_ACEOF
6430if ac_fn_c_try_link "$LINENO"
6431then :
6432  eval $cacheid=yes
6433else $as_nop
6434  eval $cacheid=no
6435fi
6436rm -f core conftest.err conftest.$ac_objext conftest.beam \
6437    conftest$ac_exeext conftest.$ac_ext
6438fi
6439
6440
6441		CFLAGS="$xorg_testset_save_CFLAGS"
6442
6443		eval supported=\$$cacheid
6444		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6445printf "%s\n" "$supported" >&6; }
6446		if test "$supported" = "yes" ; then
6447			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6448			found="yes"
6449		fi
6450	fi
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466xorg_testset_save_CFLAGS="$CFLAGS"
6467
6468if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6469	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6470	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6471printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6472if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6473then :
6474  printf %s "(cached) " >&6
6475else $as_nop
6476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477/* end confdefs.h.  */
6478int i;
6479_ACEOF
6480if ac_fn_c_try_compile "$LINENO"
6481then :
6482  xorg_cv_cc_flag_unknown_warning_option=yes
6483else $as_nop
6484  xorg_cv_cc_flag_unknown_warning_option=no
6485fi
6486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6487fi
6488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6489printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6490	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6491	CFLAGS="$xorg_testset_save_CFLAGS"
6492fi
6493
6494if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6495	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6496		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6497	fi
6498	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6499	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6500printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6501if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6502then :
6503  printf %s "(cached) " >&6
6504else $as_nop
6505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506/* end confdefs.h.  */
6507int i;
6508_ACEOF
6509if ac_fn_c_try_compile "$LINENO"
6510then :
6511  xorg_cv_cc_flag_unused_command_line_argument=yes
6512else $as_nop
6513  xorg_cv_cc_flag_unused_command_line_argument=no
6514fi
6515rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6516fi
6517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6518printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6519	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6520	CFLAGS="$xorg_testset_save_CFLAGS"
6521fi
6522
6523found="no"
6524
6525	if test $found = "no" ; then
6526		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6527			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6528		fi
6529
6530		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6531			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6532		fi
6533
6534		CFLAGS="$CFLAGS -Wuninitialized"
6535
6536		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6537printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6538		cacheid=xorg_cv_cc_flag__Wuninitialized
6539		if eval test \${$cacheid+y}
6540then :
6541  printf %s "(cached) " >&6
6542else $as_nop
6543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544/* end confdefs.h.  */
6545int i;
6546int
6547main (void)
6548{
6549
6550  ;
6551  return 0;
6552}
6553_ACEOF
6554if ac_fn_c_try_link "$LINENO"
6555then :
6556  eval $cacheid=yes
6557else $as_nop
6558  eval $cacheid=no
6559fi
6560rm -f core conftest.err conftest.$ac_objext conftest.beam \
6561    conftest$ac_exeext conftest.$ac_ext
6562fi
6563
6564
6565		CFLAGS="$xorg_testset_save_CFLAGS"
6566
6567		eval supported=\$$cacheid
6568		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6569printf "%s\n" "$supported" >&6; }
6570		if test "$supported" = "yes" ; then
6571			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6572			found="yes"
6573		fi
6574	fi
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590xorg_testset_save_CFLAGS="$CFLAGS"
6591
6592if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6593	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6594	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6595printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6596if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6597then :
6598  printf %s "(cached) " >&6
6599else $as_nop
6600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6601/* end confdefs.h.  */
6602int i;
6603_ACEOF
6604if ac_fn_c_try_compile "$LINENO"
6605then :
6606  xorg_cv_cc_flag_unknown_warning_option=yes
6607else $as_nop
6608  xorg_cv_cc_flag_unknown_warning_option=no
6609fi
6610rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6611fi
6612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6613printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6614	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6615	CFLAGS="$xorg_testset_save_CFLAGS"
6616fi
6617
6618if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6619	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6620		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6621	fi
6622	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6623	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6624printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6625if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6626then :
6627  printf %s "(cached) " >&6
6628else $as_nop
6629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630/* end confdefs.h.  */
6631int i;
6632_ACEOF
6633if ac_fn_c_try_compile "$LINENO"
6634then :
6635  xorg_cv_cc_flag_unused_command_line_argument=yes
6636else $as_nop
6637  xorg_cv_cc_flag_unused_command_line_argument=no
6638fi
6639rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6640fi
6641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6642printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6643	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6644	CFLAGS="$xorg_testset_save_CFLAGS"
6645fi
6646
6647found="no"
6648
6649	if test $found = "no" ; then
6650		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6651			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6652		fi
6653
6654		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6655			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6656		fi
6657
6658		CFLAGS="$CFLAGS -Wshadow"
6659
6660		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6661printf %s "checking if $CC supports -Wshadow... " >&6; }
6662		cacheid=xorg_cv_cc_flag__Wshadow
6663		if eval test \${$cacheid+y}
6664then :
6665  printf %s "(cached) " >&6
6666else $as_nop
6667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668/* end confdefs.h.  */
6669int i;
6670int
6671main (void)
6672{
6673
6674  ;
6675  return 0;
6676}
6677_ACEOF
6678if ac_fn_c_try_link "$LINENO"
6679then :
6680  eval $cacheid=yes
6681else $as_nop
6682  eval $cacheid=no
6683fi
6684rm -f core conftest.err conftest.$ac_objext conftest.beam \
6685    conftest$ac_exeext conftest.$ac_ext
6686fi
6687
6688
6689		CFLAGS="$xorg_testset_save_CFLAGS"
6690
6691		eval supported=\$$cacheid
6692		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6693printf "%s\n" "$supported" >&6; }
6694		if test "$supported" = "yes" ; then
6695			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6696			found="yes"
6697		fi
6698	fi
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714xorg_testset_save_CFLAGS="$CFLAGS"
6715
6716if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6717	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6718	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6719printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6720if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6721then :
6722  printf %s "(cached) " >&6
6723else $as_nop
6724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725/* end confdefs.h.  */
6726int i;
6727_ACEOF
6728if ac_fn_c_try_compile "$LINENO"
6729then :
6730  xorg_cv_cc_flag_unknown_warning_option=yes
6731else $as_nop
6732  xorg_cv_cc_flag_unknown_warning_option=no
6733fi
6734rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6735fi
6736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6737printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6738	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6739	CFLAGS="$xorg_testset_save_CFLAGS"
6740fi
6741
6742if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6743	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6744		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6745	fi
6746	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6747	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6748printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6749if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6750then :
6751  printf %s "(cached) " >&6
6752else $as_nop
6753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754/* end confdefs.h.  */
6755int i;
6756_ACEOF
6757if ac_fn_c_try_compile "$LINENO"
6758then :
6759  xorg_cv_cc_flag_unused_command_line_argument=yes
6760else $as_nop
6761  xorg_cv_cc_flag_unused_command_line_argument=no
6762fi
6763rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6764fi
6765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6766printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6767	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6768	CFLAGS="$xorg_testset_save_CFLAGS"
6769fi
6770
6771found="no"
6772
6773	if test $found = "no" ; then
6774		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6775			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6776		fi
6777
6778		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6779			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6780		fi
6781
6782		CFLAGS="$CFLAGS -Wmissing-noreturn"
6783
6784		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6785printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6786		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6787		if eval test \${$cacheid+y}
6788then :
6789  printf %s "(cached) " >&6
6790else $as_nop
6791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6792/* end confdefs.h.  */
6793int i;
6794int
6795main (void)
6796{
6797
6798  ;
6799  return 0;
6800}
6801_ACEOF
6802if ac_fn_c_try_link "$LINENO"
6803then :
6804  eval $cacheid=yes
6805else $as_nop
6806  eval $cacheid=no
6807fi
6808rm -f core conftest.err conftest.$ac_objext conftest.beam \
6809    conftest$ac_exeext conftest.$ac_ext
6810fi
6811
6812
6813		CFLAGS="$xorg_testset_save_CFLAGS"
6814
6815		eval supported=\$$cacheid
6816		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6817printf "%s\n" "$supported" >&6; }
6818		if test "$supported" = "yes" ; then
6819			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6820			found="yes"
6821		fi
6822	fi
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838xorg_testset_save_CFLAGS="$CFLAGS"
6839
6840if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6841	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6842	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6843printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6844if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6845then :
6846  printf %s "(cached) " >&6
6847else $as_nop
6848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849/* end confdefs.h.  */
6850int i;
6851_ACEOF
6852if ac_fn_c_try_compile "$LINENO"
6853then :
6854  xorg_cv_cc_flag_unknown_warning_option=yes
6855else $as_nop
6856  xorg_cv_cc_flag_unknown_warning_option=no
6857fi
6858rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6859fi
6860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6861printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6862	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6863	CFLAGS="$xorg_testset_save_CFLAGS"
6864fi
6865
6866if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6867	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6868		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6869	fi
6870	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6871	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6872printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6873if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6874then :
6875  printf %s "(cached) " >&6
6876else $as_nop
6877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878/* end confdefs.h.  */
6879int i;
6880_ACEOF
6881if ac_fn_c_try_compile "$LINENO"
6882then :
6883  xorg_cv_cc_flag_unused_command_line_argument=yes
6884else $as_nop
6885  xorg_cv_cc_flag_unused_command_line_argument=no
6886fi
6887rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6888fi
6889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6890printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6891	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6892	CFLAGS="$xorg_testset_save_CFLAGS"
6893fi
6894
6895found="no"
6896
6897	if test $found = "no" ; then
6898		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6899			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6900		fi
6901
6902		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6903			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6904		fi
6905
6906		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6907
6908		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6909printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6910		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6911		if eval test \${$cacheid+y}
6912then :
6913  printf %s "(cached) " >&6
6914else $as_nop
6915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916/* end confdefs.h.  */
6917int i;
6918int
6919main (void)
6920{
6921
6922  ;
6923  return 0;
6924}
6925_ACEOF
6926if ac_fn_c_try_link "$LINENO"
6927then :
6928  eval $cacheid=yes
6929else $as_nop
6930  eval $cacheid=no
6931fi
6932rm -f core conftest.err conftest.$ac_objext conftest.beam \
6933    conftest$ac_exeext conftest.$ac_ext
6934fi
6935
6936
6937		CFLAGS="$xorg_testset_save_CFLAGS"
6938
6939		eval supported=\$$cacheid
6940		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6941printf "%s\n" "$supported" >&6; }
6942		if test "$supported" = "yes" ; then
6943			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6944			found="yes"
6945		fi
6946	fi
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962xorg_testset_save_CFLAGS="$CFLAGS"
6963
6964if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6965	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6966	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6967printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6968if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6969then :
6970  printf %s "(cached) " >&6
6971else $as_nop
6972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973/* end confdefs.h.  */
6974int i;
6975_ACEOF
6976if ac_fn_c_try_compile "$LINENO"
6977then :
6978  xorg_cv_cc_flag_unknown_warning_option=yes
6979else $as_nop
6980  xorg_cv_cc_flag_unknown_warning_option=no
6981fi
6982rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6983fi
6984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6985printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6986	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6987	CFLAGS="$xorg_testset_save_CFLAGS"
6988fi
6989
6990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6991	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6992		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6993	fi
6994	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6995	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6996printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6997if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6998then :
6999  printf %s "(cached) " >&6
7000else $as_nop
7001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002/* end confdefs.h.  */
7003int i;
7004_ACEOF
7005if ac_fn_c_try_compile "$LINENO"
7006then :
7007  xorg_cv_cc_flag_unused_command_line_argument=yes
7008else $as_nop
7009  xorg_cv_cc_flag_unused_command_line_argument=no
7010fi
7011rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7012fi
7013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7014printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7015	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7016	CFLAGS="$xorg_testset_save_CFLAGS"
7017fi
7018
7019found="no"
7020
7021	if test $found = "no" ; then
7022		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7023			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7024		fi
7025
7026		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7027			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7028		fi
7029
7030		CFLAGS="$CFLAGS -Wredundant-decls"
7031
7032		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7033printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7034		cacheid=xorg_cv_cc_flag__Wredundant_decls
7035		if eval test \${$cacheid+y}
7036then :
7037  printf %s "(cached) " >&6
7038else $as_nop
7039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040/* end confdefs.h.  */
7041int i;
7042int
7043main (void)
7044{
7045
7046  ;
7047  return 0;
7048}
7049_ACEOF
7050if ac_fn_c_try_link "$LINENO"
7051then :
7052  eval $cacheid=yes
7053else $as_nop
7054  eval $cacheid=no
7055fi
7056rm -f core conftest.err conftest.$ac_objext conftest.beam \
7057    conftest$ac_exeext conftest.$ac_ext
7058fi
7059
7060
7061		CFLAGS="$xorg_testset_save_CFLAGS"
7062
7063		eval supported=\$$cacheid
7064		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7065printf "%s\n" "$supported" >&6; }
7066		if test "$supported" = "yes" ; then
7067			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7068			found="yes"
7069		fi
7070	fi
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086xorg_testset_save_CFLAGS="$CFLAGS"
7087
7088if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7089	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7090	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7091printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7092if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7093then :
7094  printf %s "(cached) " >&6
7095else $as_nop
7096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097/* end confdefs.h.  */
7098int i;
7099_ACEOF
7100if ac_fn_c_try_compile "$LINENO"
7101then :
7102  xorg_cv_cc_flag_unknown_warning_option=yes
7103else $as_nop
7104  xorg_cv_cc_flag_unknown_warning_option=no
7105fi
7106rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7107fi
7108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7109printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7110	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7111	CFLAGS="$xorg_testset_save_CFLAGS"
7112fi
7113
7114if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7115	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7116		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7117	fi
7118	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7119	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7120printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7121if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7122then :
7123  printf %s "(cached) " >&6
7124else $as_nop
7125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126/* end confdefs.h.  */
7127int i;
7128_ACEOF
7129if ac_fn_c_try_compile "$LINENO"
7130then :
7131  xorg_cv_cc_flag_unused_command_line_argument=yes
7132else $as_nop
7133  xorg_cv_cc_flag_unused_command_line_argument=no
7134fi
7135rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7136fi
7137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7138printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7139	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7140	CFLAGS="$xorg_testset_save_CFLAGS"
7141fi
7142
7143found="no"
7144
7145	if test $found = "no" ; then
7146		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7147			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7148		fi
7149
7150		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7151			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7152		fi
7153
7154		CFLAGS="$CFLAGS -Wlogical-op"
7155
7156		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7157printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7158		cacheid=xorg_cv_cc_flag__Wlogical_op
7159		if eval test \${$cacheid+y}
7160then :
7161  printf %s "(cached) " >&6
7162else $as_nop
7163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164/* end confdefs.h.  */
7165int i;
7166int
7167main (void)
7168{
7169
7170  ;
7171  return 0;
7172}
7173_ACEOF
7174if ac_fn_c_try_link "$LINENO"
7175then :
7176  eval $cacheid=yes
7177else $as_nop
7178  eval $cacheid=no
7179fi
7180rm -f core conftest.err conftest.$ac_objext conftest.beam \
7181    conftest$ac_exeext conftest.$ac_ext
7182fi
7183
7184
7185		CFLAGS="$xorg_testset_save_CFLAGS"
7186
7187		eval supported=\$$cacheid
7188		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7189printf "%s\n" "$supported" >&6; }
7190		if test "$supported" = "yes" ; then
7191			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7192			found="yes"
7193		fi
7194	fi
7195
7196
7197
7198# These are currently disabled because they are noisy.  They will be enabled
7199# in the future once the codebase is sufficiently modernized to silence
7200# them.  For now, I don't want them to drown out the other warnings.
7201# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7202# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7203# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7204
7205# Turn some warnings into errors, so we don't accidently get successful builds
7206# when there are problems that should be fixed.
7207
7208if test "x$SELECTIVE_WERROR" = "xyes" ; then
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222xorg_testset_save_CFLAGS="$CFLAGS"
7223
7224if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7225	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7226	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7227printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7228if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7229then :
7230  printf %s "(cached) " >&6
7231else $as_nop
7232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7233/* end confdefs.h.  */
7234int i;
7235_ACEOF
7236if ac_fn_c_try_compile "$LINENO"
7237then :
7238  xorg_cv_cc_flag_unknown_warning_option=yes
7239else $as_nop
7240  xorg_cv_cc_flag_unknown_warning_option=no
7241fi
7242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7243fi
7244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7245printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7246	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7247	CFLAGS="$xorg_testset_save_CFLAGS"
7248fi
7249
7250if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7251	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7252		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7253	fi
7254	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7255	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7256printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7257if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7258then :
7259  printf %s "(cached) " >&6
7260else $as_nop
7261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7262/* end confdefs.h.  */
7263int i;
7264_ACEOF
7265if ac_fn_c_try_compile "$LINENO"
7266then :
7267  xorg_cv_cc_flag_unused_command_line_argument=yes
7268else $as_nop
7269  xorg_cv_cc_flag_unused_command_line_argument=no
7270fi
7271rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7272fi
7273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7274printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7275	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7276	CFLAGS="$xorg_testset_save_CFLAGS"
7277fi
7278
7279found="no"
7280
7281	if test $found = "no" ; then
7282		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7283			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7284		fi
7285
7286		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7287			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7288		fi
7289
7290		CFLAGS="$CFLAGS -Werror=implicit"
7291
7292		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7293printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7294		cacheid=xorg_cv_cc_flag__Werror_implicit
7295		if eval test \${$cacheid+y}
7296then :
7297  printf %s "(cached) " >&6
7298else $as_nop
7299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300/* end confdefs.h.  */
7301int i;
7302int
7303main (void)
7304{
7305
7306  ;
7307  return 0;
7308}
7309_ACEOF
7310if ac_fn_c_try_link "$LINENO"
7311then :
7312  eval $cacheid=yes
7313else $as_nop
7314  eval $cacheid=no
7315fi
7316rm -f core conftest.err conftest.$ac_objext conftest.beam \
7317    conftest$ac_exeext conftest.$ac_ext
7318fi
7319
7320
7321		CFLAGS="$xorg_testset_save_CFLAGS"
7322
7323		eval supported=\$$cacheid
7324		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7325printf "%s\n" "$supported" >&6; }
7326		if test "$supported" = "yes" ; then
7327			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7328			found="yes"
7329		fi
7330	fi
7331
7332	if test $found = "no" ; then
7333		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7334			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7335		fi
7336
7337		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7338			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7339		fi
7340
7341		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7342
7343		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7344printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7345		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7346		if eval test \${$cacheid+y}
7347then :
7348  printf %s "(cached) " >&6
7349else $as_nop
7350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7351/* end confdefs.h.  */
7352int i;
7353int
7354main (void)
7355{
7356
7357  ;
7358  return 0;
7359}
7360_ACEOF
7361if ac_fn_c_try_link "$LINENO"
7362then :
7363  eval $cacheid=yes
7364else $as_nop
7365  eval $cacheid=no
7366fi
7367rm -f core conftest.err conftest.$ac_objext conftest.beam \
7368    conftest$ac_exeext conftest.$ac_ext
7369fi
7370
7371
7372		CFLAGS="$xorg_testset_save_CFLAGS"
7373
7374		eval supported=\$$cacheid
7375		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7376printf "%s\n" "$supported" >&6; }
7377		if test "$supported" = "yes" ; then
7378			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7379			found="yes"
7380		fi
7381	fi
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397xorg_testset_save_CFLAGS="$CFLAGS"
7398
7399if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7400	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7401	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7402printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7403if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7404then :
7405  printf %s "(cached) " >&6
7406else $as_nop
7407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408/* end confdefs.h.  */
7409int i;
7410_ACEOF
7411if ac_fn_c_try_compile "$LINENO"
7412then :
7413  xorg_cv_cc_flag_unknown_warning_option=yes
7414else $as_nop
7415  xorg_cv_cc_flag_unknown_warning_option=no
7416fi
7417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7418fi
7419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7420printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7421	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7422	CFLAGS="$xorg_testset_save_CFLAGS"
7423fi
7424
7425if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7426	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7427		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7428	fi
7429	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7430	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7431printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7432if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7433then :
7434  printf %s "(cached) " >&6
7435else $as_nop
7436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437/* end confdefs.h.  */
7438int i;
7439_ACEOF
7440if ac_fn_c_try_compile "$LINENO"
7441then :
7442  xorg_cv_cc_flag_unused_command_line_argument=yes
7443else $as_nop
7444  xorg_cv_cc_flag_unused_command_line_argument=no
7445fi
7446rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7447fi
7448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7449printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7450	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7451	CFLAGS="$xorg_testset_save_CFLAGS"
7452fi
7453
7454found="no"
7455
7456	if test $found = "no" ; then
7457		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7458			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7459		fi
7460
7461		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7462			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7463		fi
7464
7465		CFLAGS="$CFLAGS -Werror=nonnull"
7466
7467		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7468printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7469		cacheid=xorg_cv_cc_flag__Werror_nonnull
7470		if eval test \${$cacheid+y}
7471then :
7472  printf %s "(cached) " >&6
7473else $as_nop
7474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475/* end confdefs.h.  */
7476int i;
7477int
7478main (void)
7479{
7480
7481  ;
7482  return 0;
7483}
7484_ACEOF
7485if ac_fn_c_try_link "$LINENO"
7486then :
7487  eval $cacheid=yes
7488else $as_nop
7489  eval $cacheid=no
7490fi
7491rm -f core conftest.err conftest.$ac_objext conftest.beam \
7492    conftest$ac_exeext conftest.$ac_ext
7493fi
7494
7495
7496		CFLAGS="$xorg_testset_save_CFLAGS"
7497
7498		eval supported=\$$cacheid
7499		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7500printf "%s\n" "$supported" >&6; }
7501		if test "$supported" = "yes" ; then
7502			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7503			found="yes"
7504		fi
7505	fi
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521xorg_testset_save_CFLAGS="$CFLAGS"
7522
7523if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7524	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7525	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7526printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7527if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7528then :
7529  printf %s "(cached) " >&6
7530else $as_nop
7531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532/* end confdefs.h.  */
7533int i;
7534_ACEOF
7535if ac_fn_c_try_compile "$LINENO"
7536then :
7537  xorg_cv_cc_flag_unknown_warning_option=yes
7538else $as_nop
7539  xorg_cv_cc_flag_unknown_warning_option=no
7540fi
7541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7542fi
7543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7544printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7545	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7546	CFLAGS="$xorg_testset_save_CFLAGS"
7547fi
7548
7549if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7550	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7551		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7552	fi
7553	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7554	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7555printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7556if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7557then :
7558  printf %s "(cached) " >&6
7559else $as_nop
7560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561/* end confdefs.h.  */
7562int i;
7563_ACEOF
7564if ac_fn_c_try_compile "$LINENO"
7565then :
7566  xorg_cv_cc_flag_unused_command_line_argument=yes
7567else $as_nop
7568  xorg_cv_cc_flag_unused_command_line_argument=no
7569fi
7570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7571fi
7572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7573printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7574	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7575	CFLAGS="$xorg_testset_save_CFLAGS"
7576fi
7577
7578found="no"
7579
7580	if test $found = "no" ; then
7581		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7582			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7583		fi
7584
7585		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7586			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7587		fi
7588
7589		CFLAGS="$CFLAGS -Werror=init-self"
7590
7591		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7592printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7593		cacheid=xorg_cv_cc_flag__Werror_init_self
7594		if eval test \${$cacheid+y}
7595then :
7596  printf %s "(cached) " >&6
7597else $as_nop
7598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599/* end confdefs.h.  */
7600int i;
7601int
7602main (void)
7603{
7604
7605  ;
7606  return 0;
7607}
7608_ACEOF
7609if ac_fn_c_try_link "$LINENO"
7610then :
7611  eval $cacheid=yes
7612else $as_nop
7613  eval $cacheid=no
7614fi
7615rm -f core conftest.err conftest.$ac_objext conftest.beam \
7616    conftest$ac_exeext conftest.$ac_ext
7617fi
7618
7619
7620		CFLAGS="$xorg_testset_save_CFLAGS"
7621
7622		eval supported=\$$cacheid
7623		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7624printf "%s\n" "$supported" >&6; }
7625		if test "$supported" = "yes" ; then
7626			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7627			found="yes"
7628		fi
7629	fi
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645xorg_testset_save_CFLAGS="$CFLAGS"
7646
7647if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7648	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7649	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7650printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7651if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7652then :
7653  printf %s "(cached) " >&6
7654else $as_nop
7655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656/* end confdefs.h.  */
7657int i;
7658_ACEOF
7659if ac_fn_c_try_compile "$LINENO"
7660then :
7661  xorg_cv_cc_flag_unknown_warning_option=yes
7662else $as_nop
7663  xorg_cv_cc_flag_unknown_warning_option=no
7664fi
7665rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7666fi
7667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7668printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7669	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7670	CFLAGS="$xorg_testset_save_CFLAGS"
7671fi
7672
7673if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7674	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7675		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7676	fi
7677	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7678	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7679printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7680if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7681then :
7682  printf %s "(cached) " >&6
7683else $as_nop
7684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7685/* end confdefs.h.  */
7686int i;
7687_ACEOF
7688if ac_fn_c_try_compile "$LINENO"
7689then :
7690  xorg_cv_cc_flag_unused_command_line_argument=yes
7691else $as_nop
7692  xorg_cv_cc_flag_unused_command_line_argument=no
7693fi
7694rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7695fi
7696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7697printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7698	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7699	CFLAGS="$xorg_testset_save_CFLAGS"
7700fi
7701
7702found="no"
7703
7704	if test $found = "no" ; then
7705		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7706			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7707		fi
7708
7709		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7710			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7711		fi
7712
7713		CFLAGS="$CFLAGS -Werror=main"
7714
7715		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7716printf %s "checking if $CC supports -Werror=main... " >&6; }
7717		cacheid=xorg_cv_cc_flag__Werror_main
7718		if eval test \${$cacheid+y}
7719then :
7720  printf %s "(cached) " >&6
7721else $as_nop
7722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723/* end confdefs.h.  */
7724int i;
7725int
7726main (void)
7727{
7728
7729  ;
7730  return 0;
7731}
7732_ACEOF
7733if ac_fn_c_try_link "$LINENO"
7734then :
7735  eval $cacheid=yes
7736else $as_nop
7737  eval $cacheid=no
7738fi
7739rm -f core conftest.err conftest.$ac_objext conftest.beam \
7740    conftest$ac_exeext conftest.$ac_ext
7741fi
7742
7743
7744		CFLAGS="$xorg_testset_save_CFLAGS"
7745
7746		eval supported=\$$cacheid
7747		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7748printf "%s\n" "$supported" >&6; }
7749		if test "$supported" = "yes" ; then
7750			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7751			found="yes"
7752		fi
7753	fi
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769xorg_testset_save_CFLAGS="$CFLAGS"
7770
7771if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7772	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7773	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7774printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7775if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7776then :
7777  printf %s "(cached) " >&6
7778else $as_nop
7779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780/* end confdefs.h.  */
7781int i;
7782_ACEOF
7783if ac_fn_c_try_compile "$LINENO"
7784then :
7785  xorg_cv_cc_flag_unknown_warning_option=yes
7786else $as_nop
7787  xorg_cv_cc_flag_unknown_warning_option=no
7788fi
7789rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7790fi
7791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7792printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7793	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7794	CFLAGS="$xorg_testset_save_CFLAGS"
7795fi
7796
7797if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7798	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7799		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7800	fi
7801	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7802	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7803printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7804if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7805then :
7806  printf %s "(cached) " >&6
7807else $as_nop
7808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809/* end confdefs.h.  */
7810int i;
7811_ACEOF
7812if ac_fn_c_try_compile "$LINENO"
7813then :
7814  xorg_cv_cc_flag_unused_command_line_argument=yes
7815else $as_nop
7816  xorg_cv_cc_flag_unused_command_line_argument=no
7817fi
7818rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7819fi
7820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7821printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7822	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7823	CFLAGS="$xorg_testset_save_CFLAGS"
7824fi
7825
7826found="no"
7827
7828	if test $found = "no" ; then
7829		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7830			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7831		fi
7832
7833		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7834			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7835		fi
7836
7837		CFLAGS="$CFLAGS -Werror=missing-braces"
7838
7839		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7840printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7841		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7842		if eval test \${$cacheid+y}
7843then :
7844  printf %s "(cached) " >&6
7845else $as_nop
7846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847/* end confdefs.h.  */
7848int i;
7849int
7850main (void)
7851{
7852
7853  ;
7854  return 0;
7855}
7856_ACEOF
7857if ac_fn_c_try_link "$LINENO"
7858then :
7859  eval $cacheid=yes
7860else $as_nop
7861  eval $cacheid=no
7862fi
7863rm -f core conftest.err conftest.$ac_objext conftest.beam \
7864    conftest$ac_exeext conftest.$ac_ext
7865fi
7866
7867
7868		CFLAGS="$xorg_testset_save_CFLAGS"
7869
7870		eval supported=\$$cacheid
7871		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7872printf "%s\n" "$supported" >&6; }
7873		if test "$supported" = "yes" ; then
7874			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7875			found="yes"
7876		fi
7877	fi
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893xorg_testset_save_CFLAGS="$CFLAGS"
7894
7895if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7896	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7897	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7898printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7899if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7900then :
7901  printf %s "(cached) " >&6
7902else $as_nop
7903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904/* end confdefs.h.  */
7905int i;
7906_ACEOF
7907if ac_fn_c_try_compile "$LINENO"
7908then :
7909  xorg_cv_cc_flag_unknown_warning_option=yes
7910else $as_nop
7911  xorg_cv_cc_flag_unknown_warning_option=no
7912fi
7913rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7914fi
7915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7916printf "%s\n" "$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	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7927printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7928if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7929then :
7930  printf %s "(cached) " >&6
7931else $as_nop
7932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933/* end confdefs.h.  */
7934int i;
7935_ACEOF
7936if ac_fn_c_try_compile "$LINENO"
7937then :
7938  xorg_cv_cc_flag_unused_command_line_argument=yes
7939else $as_nop
7940  xorg_cv_cc_flag_unused_command_line_argument=no
7941fi
7942rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7943fi
7944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7945printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7946	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7947	CFLAGS="$xorg_testset_save_CFLAGS"
7948fi
7949
7950found="no"
7951
7952	if test $found = "no" ; then
7953		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7954			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7955		fi
7956
7957		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7958			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7959		fi
7960
7961		CFLAGS="$CFLAGS -Werror=sequence-point"
7962
7963		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7964printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7965		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7966		if eval test \${$cacheid+y}
7967then :
7968  printf %s "(cached) " >&6
7969else $as_nop
7970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7971/* end confdefs.h.  */
7972int i;
7973int
7974main (void)
7975{
7976
7977  ;
7978  return 0;
7979}
7980_ACEOF
7981if ac_fn_c_try_link "$LINENO"
7982then :
7983  eval $cacheid=yes
7984else $as_nop
7985  eval $cacheid=no
7986fi
7987rm -f core conftest.err conftest.$ac_objext conftest.beam \
7988    conftest$ac_exeext conftest.$ac_ext
7989fi
7990
7991
7992		CFLAGS="$xorg_testset_save_CFLAGS"
7993
7994		eval supported=\$$cacheid
7995		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7996printf "%s\n" "$supported" >&6; }
7997		if test "$supported" = "yes" ; then
7998			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7999			found="yes"
8000		fi
8001	fi
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017xorg_testset_save_CFLAGS="$CFLAGS"
8018
8019if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8020	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8021	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8022printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8023if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8024then :
8025  printf %s "(cached) " >&6
8026else $as_nop
8027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8028/* end confdefs.h.  */
8029int i;
8030_ACEOF
8031if ac_fn_c_try_compile "$LINENO"
8032then :
8033  xorg_cv_cc_flag_unknown_warning_option=yes
8034else $as_nop
8035  xorg_cv_cc_flag_unknown_warning_option=no
8036fi
8037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8038fi
8039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8040printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8041	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8042	CFLAGS="$xorg_testset_save_CFLAGS"
8043fi
8044
8045if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8046	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8047		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8048	fi
8049	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8050	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8051printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8052if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8053then :
8054  printf %s "(cached) " >&6
8055else $as_nop
8056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057/* end confdefs.h.  */
8058int i;
8059_ACEOF
8060if ac_fn_c_try_compile "$LINENO"
8061then :
8062  xorg_cv_cc_flag_unused_command_line_argument=yes
8063else $as_nop
8064  xorg_cv_cc_flag_unused_command_line_argument=no
8065fi
8066rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8067fi
8068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8069printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8070	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8071	CFLAGS="$xorg_testset_save_CFLAGS"
8072fi
8073
8074found="no"
8075
8076	if test $found = "no" ; then
8077		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8078			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8079		fi
8080
8081		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8082			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8083		fi
8084
8085		CFLAGS="$CFLAGS -Werror=return-type"
8086
8087		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8088printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8089		cacheid=xorg_cv_cc_flag__Werror_return_type
8090		if eval test \${$cacheid+y}
8091then :
8092  printf %s "(cached) " >&6
8093else $as_nop
8094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8095/* end confdefs.h.  */
8096int i;
8097int
8098main (void)
8099{
8100
8101  ;
8102  return 0;
8103}
8104_ACEOF
8105if ac_fn_c_try_link "$LINENO"
8106then :
8107  eval $cacheid=yes
8108else $as_nop
8109  eval $cacheid=no
8110fi
8111rm -f core conftest.err conftest.$ac_objext conftest.beam \
8112    conftest$ac_exeext conftest.$ac_ext
8113fi
8114
8115
8116		CFLAGS="$xorg_testset_save_CFLAGS"
8117
8118		eval supported=\$$cacheid
8119		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8120printf "%s\n" "$supported" >&6; }
8121		if test "$supported" = "yes" ; then
8122			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8123			found="yes"
8124		fi
8125	fi
8126
8127	if test $found = "no" ; then
8128		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8129			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8130		fi
8131
8132		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8133			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8134		fi
8135
8136		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8137
8138		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8139printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8140		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8141		if eval test \${$cacheid+y}
8142then :
8143  printf %s "(cached) " >&6
8144else $as_nop
8145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146/* end confdefs.h.  */
8147int i;
8148int
8149main (void)
8150{
8151
8152  ;
8153  return 0;
8154}
8155_ACEOF
8156if ac_fn_c_try_link "$LINENO"
8157then :
8158  eval $cacheid=yes
8159else $as_nop
8160  eval $cacheid=no
8161fi
8162rm -f core conftest.err conftest.$ac_objext conftest.beam \
8163    conftest$ac_exeext conftest.$ac_ext
8164fi
8165
8166
8167		CFLAGS="$xorg_testset_save_CFLAGS"
8168
8169		eval supported=\$$cacheid
8170		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8171printf "%s\n" "$supported" >&6; }
8172		if test "$supported" = "yes" ; then
8173			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8174			found="yes"
8175		fi
8176	fi
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192xorg_testset_save_CFLAGS="$CFLAGS"
8193
8194if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8195	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8196	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8197printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8198if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8199then :
8200  printf %s "(cached) " >&6
8201else $as_nop
8202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8203/* end confdefs.h.  */
8204int i;
8205_ACEOF
8206if ac_fn_c_try_compile "$LINENO"
8207then :
8208  xorg_cv_cc_flag_unknown_warning_option=yes
8209else $as_nop
8210  xorg_cv_cc_flag_unknown_warning_option=no
8211fi
8212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8213fi
8214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8215printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8216	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8217	CFLAGS="$xorg_testset_save_CFLAGS"
8218fi
8219
8220if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8221	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8222		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8223	fi
8224	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8225	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8226printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8227if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8228then :
8229  printf %s "(cached) " >&6
8230else $as_nop
8231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8232/* end confdefs.h.  */
8233int i;
8234_ACEOF
8235if ac_fn_c_try_compile "$LINENO"
8236then :
8237  xorg_cv_cc_flag_unused_command_line_argument=yes
8238else $as_nop
8239  xorg_cv_cc_flag_unused_command_line_argument=no
8240fi
8241rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8242fi
8243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8244printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8245	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8246	CFLAGS="$xorg_testset_save_CFLAGS"
8247fi
8248
8249found="no"
8250
8251	if test $found = "no" ; then
8252		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8253			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8254		fi
8255
8256		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8257			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8258		fi
8259
8260		CFLAGS="$CFLAGS -Werror=trigraphs"
8261
8262		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8263printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8264		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8265		if eval test \${$cacheid+y}
8266then :
8267  printf %s "(cached) " >&6
8268else $as_nop
8269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8270/* end confdefs.h.  */
8271int i;
8272int
8273main (void)
8274{
8275
8276  ;
8277  return 0;
8278}
8279_ACEOF
8280if ac_fn_c_try_link "$LINENO"
8281then :
8282  eval $cacheid=yes
8283else $as_nop
8284  eval $cacheid=no
8285fi
8286rm -f core conftest.err conftest.$ac_objext conftest.beam \
8287    conftest$ac_exeext conftest.$ac_ext
8288fi
8289
8290
8291		CFLAGS="$xorg_testset_save_CFLAGS"
8292
8293		eval supported=\$$cacheid
8294		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8295printf "%s\n" "$supported" >&6; }
8296		if test "$supported" = "yes" ; then
8297			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8298			found="yes"
8299		fi
8300	fi
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316xorg_testset_save_CFLAGS="$CFLAGS"
8317
8318if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8319	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8320	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8321printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8322if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8323then :
8324  printf %s "(cached) " >&6
8325else $as_nop
8326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327/* end confdefs.h.  */
8328int i;
8329_ACEOF
8330if ac_fn_c_try_compile "$LINENO"
8331then :
8332  xorg_cv_cc_flag_unknown_warning_option=yes
8333else $as_nop
8334  xorg_cv_cc_flag_unknown_warning_option=no
8335fi
8336rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8337fi
8338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8339printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8340	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8341	CFLAGS="$xorg_testset_save_CFLAGS"
8342fi
8343
8344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8345	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8346		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8347	fi
8348	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8349	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8350printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8351if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8352then :
8353  printf %s "(cached) " >&6
8354else $as_nop
8355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8356/* end confdefs.h.  */
8357int i;
8358_ACEOF
8359if ac_fn_c_try_compile "$LINENO"
8360then :
8361  xorg_cv_cc_flag_unused_command_line_argument=yes
8362else $as_nop
8363  xorg_cv_cc_flag_unused_command_line_argument=no
8364fi
8365rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8366fi
8367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8368printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8369	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8370	CFLAGS="$xorg_testset_save_CFLAGS"
8371fi
8372
8373found="no"
8374
8375	if test $found = "no" ; then
8376		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8377			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8378		fi
8379
8380		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8381			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8382		fi
8383
8384		CFLAGS="$CFLAGS -Werror=array-bounds"
8385
8386		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8387printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8388		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8389		if eval test \${$cacheid+y}
8390then :
8391  printf %s "(cached) " >&6
8392else $as_nop
8393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394/* end confdefs.h.  */
8395int i;
8396int
8397main (void)
8398{
8399
8400  ;
8401  return 0;
8402}
8403_ACEOF
8404if ac_fn_c_try_link "$LINENO"
8405then :
8406  eval $cacheid=yes
8407else $as_nop
8408  eval $cacheid=no
8409fi
8410rm -f core conftest.err conftest.$ac_objext conftest.beam \
8411    conftest$ac_exeext conftest.$ac_ext
8412fi
8413
8414
8415		CFLAGS="$xorg_testset_save_CFLAGS"
8416
8417		eval supported=\$$cacheid
8418		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8419printf "%s\n" "$supported" >&6; }
8420		if test "$supported" = "yes" ; then
8421			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8422			found="yes"
8423		fi
8424	fi
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440xorg_testset_save_CFLAGS="$CFLAGS"
8441
8442if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8443	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8444	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8445printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8446if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8447then :
8448  printf %s "(cached) " >&6
8449else $as_nop
8450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8451/* end confdefs.h.  */
8452int i;
8453_ACEOF
8454if ac_fn_c_try_compile "$LINENO"
8455then :
8456  xorg_cv_cc_flag_unknown_warning_option=yes
8457else $as_nop
8458  xorg_cv_cc_flag_unknown_warning_option=no
8459fi
8460rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8461fi
8462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8463printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8464	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8465	CFLAGS="$xorg_testset_save_CFLAGS"
8466fi
8467
8468if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8469	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8470		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8471	fi
8472	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8473	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8474printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8475if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8476then :
8477  printf %s "(cached) " >&6
8478else $as_nop
8479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480/* end confdefs.h.  */
8481int i;
8482_ACEOF
8483if ac_fn_c_try_compile "$LINENO"
8484then :
8485  xorg_cv_cc_flag_unused_command_line_argument=yes
8486else $as_nop
8487  xorg_cv_cc_flag_unused_command_line_argument=no
8488fi
8489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8490fi
8491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8492printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8493	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8494	CFLAGS="$xorg_testset_save_CFLAGS"
8495fi
8496
8497found="no"
8498
8499	if test $found = "no" ; then
8500		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8501			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8502		fi
8503
8504		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8505			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8506		fi
8507
8508		CFLAGS="$CFLAGS -Werror=write-strings"
8509
8510		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8511printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8512		cacheid=xorg_cv_cc_flag__Werror_write_strings
8513		if eval test \${$cacheid+y}
8514then :
8515  printf %s "(cached) " >&6
8516else $as_nop
8517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518/* end confdefs.h.  */
8519int i;
8520int
8521main (void)
8522{
8523
8524  ;
8525  return 0;
8526}
8527_ACEOF
8528if ac_fn_c_try_link "$LINENO"
8529then :
8530  eval $cacheid=yes
8531else $as_nop
8532  eval $cacheid=no
8533fi
8534rm -f core conftest.err conftest.$ac_objext conftest.beam \
8535    conftest$ac_exeext conftest.$ac_ext
8536fi
8537
8538
8539		CFLAGS="$xorg_testset_save_CFLAGS"
8540
8541		eval supported=\$$cacheid
8542		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8543printf "%s\n" "$supported" >&6; }
8544		if test "$supported" = "yes" ; then
8545			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8546			found="yes"
8547		fi
8548	fi
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564xorg_testset_save_CFLAGS="$CFLAGS"
8565
8566if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8567	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8568	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8569printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8570if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8571then :
8572  printf %s "(cached) " >&6
8573else $as_nop
8574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575/* end confdefs.h.  */
8576int i;
8577_ACEOF
8578if ac_fn_c_try_compile "$LINENO"
8579then :
8580  xorg_cv_cc_flag_unknown_warning_option=yes
8581else $as_nop
8582  xorg_cv_cc_flag_unknown_warning_option=no
8583fi
8584rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8585fi
8586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8587printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8588	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8589	CFLAGS="$xorg_testset_save_CFLAGS"
8590fi
8591
8592if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8593	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8594		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8595	fi
8596	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8597	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8598printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8599if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8600then :
8601  printf %s "(cached) " >&6
8602else $as_nop
8603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8604/* end confdefs.h.  */
8605int i;
8606_ACEOF
8607if ac_fn_c_try_compile "$LINENO"
8608then :
8609  xorg_cv_cc_flag_unused_command_line_argument=yes
8610else $as_nop
8611  xorg_cv_cc_flag_unused_command_line_argument=no
8612fi
8613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8614fi
8615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8616printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8617	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8618	CFLAGS="$xorg_testset_save_CFLAGS"
8619fi
8620
8621found="no"
8622
8623	if test $found = "no" ; then
8624		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8625			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8626		fi
8627
8628		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8629			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8630		fi
8631
8632		CFLAGS="$CFLAGS -Werror=address"
8633
8634		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8635printf %s "checking if $CC supports -Werror=address... " >&6; }
8636		cacheid=xorg_cv_cc_flag__Werror_address
8637		if eval test \${$cacheid+y}
8638then :
8639  printf %s "(cached) " >&6
8640else $as_nop
8641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642/* end confdefs.h.  */
8643int i;
8644int
8645main (void)
8646{
8647
8648  ;
8649  return 0;
8650}
8651_ACEOF
8652if ac_fn_c_try_link "$LINENO"
8653then :
8654  eval $cacheid=yes
8655else $as_nop
8656  eval $cacheid=no
8657fi
8658rm -f core conftest.err conftest.$ac_objext conftest.beam \
8659    conftest$ac_exeext conftest.$ac_ext
8660fi
8661
8662
8663		CFLAGS="$xorg_testset_save_CFLAGS"
8664
8665		eval supported=\$$cacheid
8666		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8667printf "%s\n" "$supported" >&6; }
8668		if test "$supported" = "yes" ; then
8669			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8670			found="yes"
8671		fi
8672	fi
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688xorg_testset_save_CFLAGS="$CFLAGS"
8689
8690if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8691	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8692	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8693printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8694if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8695then :
8696  printf %s "(cached) " >&6
8697else $as_nop
8698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8699/* end confdefs.h.  */
8700int i;
8701_ACEOF
8702if ac_fn_c_try_compile "$LINENO"
8703then :
8704  xorg_cv_cc_flag_unknown_warning_option=yes
8705else $as_nop
8706  xorg_cv_cc_flag_unknown_warning_option=no
8707fi
8708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8709fi
8710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8711printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8712	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8713	CFLAGS="$xorg_testset_save_CFLAGS"
8714fi
8715
8716if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8717	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8718		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8719	fi
8720	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8721	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8722printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8723if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8724then :
8725  printf %s "(cached) " >&6
8726else $as_nop
8727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728/* end confdefs.h.  */
8729int i;
8730_ACEOF
8731if ac_fn_c_try_compile "$LINENO"
8732then :
8733  xorg_cv_cc_flag_unused_command_line_argument=yes
8734else $as_nop
8735  xorg_cv_cc_flag_unused_command_line_argument=no
8736fi
8737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8738fi
8739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8740printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8741	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8742	CFLAGS="$xorg_testset_save_CFLAGS"
8743fi
8744
8745found="no"
8746
8747	if test $found = "no" ; then
8748		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8749			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8750		fi
8751
8752		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8753			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8754		fi
8755
8756		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8757
8758		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8759printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8760		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8761		if eval test \${$cacheid+y}
8762then :
8763  printf %s "(cached) " >&6
8764else $as_nop
8765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8766/* end confdefs.h.  */
8767int i;
8768int
8769main (void)
8770{
8771
8772  ;
8773  return 0;
8774}
8775_ACEOF
8776if ac_fn_c_try_link "$LINENO"
8777then :
8778  eval $cacheid=yes
8779else $as_nop
8780  eval $cacheid=no
8781fi
8782rm -f core conftest.err conftest.$ac_objext conftest.beam \
8783    conftest$ac_exeext conftest.$ac_ext
8784fi
8785
8786
8787		CFLAGS="$xorg_testset_save_CFLAGS"
8788
8789		eval supported=\$$cacheid
8790		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8791printf "%s\n" "$supported" >&6; }
8792		if test "$supported" = "yes" ; then
8793			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8794			found="yes"
8795		fi
8796	fi
8797
8798	if test $found = "no" ; then
8799		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8800			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8801		fi
8802
8803		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8804			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8805		fi
8806
8807		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8808
8809		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8810printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8811		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8812		if eval test \${$cacheid+y}
8813then :
8814  printf %s "(cached) " >&6
8815else $as_nop
8816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817/* end confdefs.h.  */
8818int i;
8819int
8820main (void)
8821{
8822
8823  ;
8824  return 0;
8825}
8826_ACEOF
8827if ac_fn_c_try_link "$LINENO"
8828then :
8829  eval $cacheid=yes
8830else $as_nop
8831  eval $cacheid=no
8832fi
8833rm -f core conftest.err conftest.$ac_objext conftest.beam \
8834    conftest$ac_exeext conftest.$ac_ext
8835fi
8836
8837
8838		CFLAGS="$xorg_testset_save_CFLAGS"
8839
8840		eval supported=\$$cacheid
8841		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8842printf "%s\n" "$supported" >&6; }
8843		if test "$supported" = "yes" ; then
8844			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8845			found="yes"
8846		fi
8847	fi
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863xorg_testset_save_CFLAGS="$CFLAGS"
8864
8865if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8866	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8867	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8868printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8869if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8870then :
8871  printf %s "(cached) " >&6
8872else $as_nop
8873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8874/* end confdefs.h.  */
8875int i;
8876_ACEOF
8877if ac_fn_c_try_compile "$LINENO"
8878then :
8879  xorg_cv_cc_flag_unknown_warning_option=yes
8880else $as_nop
8881  xorg_cv_cc_flag_unknown_warning_option=no
8882fi
8883rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8884fi
8885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8886printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8887	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8888	CFLAGS="$xorg_testset_save_CFLAGS"
8889fi
8890
8891if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8892	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8893		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8894	fi
8895	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8896	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8897printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8898if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8899then :
8900  printf %s "(cached) " >&6
8901else $as_nop
8902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8903/* end confdefs.h.  */
8904int i;
8905_ACEOF
8906if ac_fn_c_try_compile "$LINENO"
8907then :
8908  xorg_cv_cc_flag_unused_command_line_argument=yes
8909else $as_nop
8910  xorg_cv_cc_flag_unused_command_line_argument=no
8911fi
8912rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8913fi
8914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8915printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8916	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8917	CFLAGS="$xorg_testset_save_CFLAGS"
8918fi
8919
8920found="no"
8921
8922	if test $found = "no" ; then
8923		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8924			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8925		fi
8926
8927		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8928			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8929		fi
8930
8931		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8932
8933		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8934printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8935		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8936		if eval test \${$cacheid+y}
8937then :
8938  printf %s "(cached) " >&6
8939else $as_nop
8940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941/* end confdefs.h.  */
8942int i;
8943int
8944main (void)
8945{
8946
8947  ;
8948  return 0;
8949}
8950_ACEOF
8951if ac_fn_c_try_link "$LINENO"
8952then :
8953  eval $cacheid=yes
8954else $as_nop
8955  eval $cacheid=no
8956fi
8957rm -f core conftest.err conftest.$ac_objext conftest.beam \
8958    conftest$ac_exeext conftest.$ac_ext
8959fi
8960
8961
8962		CFLAGS="$xorg_testset_save_CFLAGS"
8963
8964		eval supported=\$$cacheid
8965		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8966printf "%s\n" "$supported" >&6; }
8967		if test "$supported" = "yes" ; then
8968			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8969			found="yes"
8970		fi
8971	fi
8972
8973 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8974else
8975{ printf "%s\n" "$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
8976printf "%s\n" "$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;}
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990xorg_testset_save_CFLAGS="$CFLAGS"
8991
8992if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8993	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8994	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8995printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8996if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8997then :
8998  printf %s "(cached) " >&6
8999else $as_nop
9000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001/* end confdefs.h.  */
9002int i;
9003_ACEOF
9004if ac_fn_c_try_compile "$LINENO"
9005then :
9006  xorg_cv_cc_flag_unknown_warning_option=yes
9007else $as_nop
9008  xorg_cv_cc_flag_unknown_warning_option=no
9009fi
9010rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9011fi
9012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9013printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9014	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9015	CFLAGS="$xorg_testset_save_CFLAGS"
9016fi
9017
9018if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9019	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9020		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9021	fi
9022	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9023	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9024printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9025if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9026then :
9027  printf %s "(cached) " >&6
9028else $as_nop
9029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9030/* end confdefs.h.  */
9031int i;
9032_ACEOF
9033if ac_fn_c_try_compile "$LINENO"
9034then :
9035  xorg_cv_cc_flag_unused_command_line_argument=yes
9036else $as_nop
9037  xorg_cv_cc_flag_unused_command_line_argument=no
9038fi
9039rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9040fi
9041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9042printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9043	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9044	CFLAGS="$xorg_testset_save_CFLAGS"
9045fi
9046
9047found="no"
9048
9049	if test $found = "no" ; then
9050		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9051			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9052		fi
9053
9054		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9055			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9056		fi
9057
9058		CFLAGS="$CFLAGS -Wimplicit"
9059
9060		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9061printf %s "checking if $CC supports -Wimplicit... " >&6; }
9062		cacheid=xorg_cv_cc_flag__Wimplicit
9063		if eval test \${$cacheid+y}
9064then :
9065  printf %s "(cached) " >&6
9066else $as_nop
9067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068/* end confdefs.h.  */
9069int i;
9070int
9071main (void)
9072{
9073
9074  ;
9075  return 0;
9076}
9077_ACEOF
9078if ac_fn_c_try_link "$LINENO"
9079then :
9080  eval $cacheid=yes
9081else $as_nop
9082  eval $cacheid=no
9083fi
9084rm -f core conftest.err conftest.$ac_objext conftest.beam \
9085    conftest$ac_exeext conftest.$ac_ext
9086fi
9087
9088
9089		CFLAGS="$xorg_testset_save_CFLAGS"
9090
9091		eval supported=\$$cacheid
9092		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9093printf "%s\n" "$supported" >&6; }
9094		if test "$supported" = "yes" ; then
9095			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9096			found="yes"
9097		fi
9098	fi
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114xorg_testset_save_CFLAGS="$CFLAGS"
9115
9116if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9117	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9118	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9119printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9120if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9121then :
9122  printf %s "(cached) " >&6
9123else $as_nop
9124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125/* end confdefs.h.  */
9126int i;
9127_ACEOF
9128if ac_fn_c_try_compile "$LINENO"
9129then :
9130  xorg_cv_cc_flag_unknown_warning_option=yes
9131else $as_nop
9132  xorg_cv_cc_flag_unknown_warning_option=no
9133fi
9134rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9135fi
9136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9137printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9138	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9139	CFLAGS="$xorg_testset_save_CFLAGS"
9140fi
9141
9142if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9143	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9144		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9145	fi
9146	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9147	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9148printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9149if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9150then :
9151  printf %s "(cached) " >&6
9152else $as_nop
9153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154/* end confdefs.h.  */
9155int i;
9156_ACEOF
9157if ac_fn_c_try_compile "$LINENO"
9158then :
9159  xorg_cv_cc_flag_unused_command_line_argument=yes
9160else $as_nop
9161  xorg_cv_cc_flag_unused_command_line_argument=no
9162fi
9163rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9164fi
9165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9166printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9167	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9168	CFLAGS="$xorg_testset_save_CFLAGS"
9169fi
9170
9171found="no"
9172
9173	if test $found = "no" ; then
9174		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9175			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9176		fi
9177
9178		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9179			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9180		fi
9181
9182		CFLAGS="$CFLAGS -Wnonnull"
9183
9184		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9185printf %s "checking if $CC supports -Wnonnull... " >&6; }
9186		cacheid=xorg_cv_cc_flag__Wnonnull
9187		if eval test \${$cacheid+y}
9188then :
9189  printf %s "(cached) " >&6
9190else $as_nop
9191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192/* end confdefs.h.  */
9193int i;
9194int
9195main (void)
9196{
9197
9198  ;
9199  return 0;
9200}
9201_ACEOF
9202if ac_fn_c_try_link "$LINENO"
9203then :
9204  eval $cacheid=yes
9205else $as_nop
9206  eval $cacheid=no
9207fi
9208rm -f core conftest.err conftest.$ac_objext conftest.beam \
9209    conftest$ac_exeext conftest.$ac_ext
9210fi
9211
9212
9213		CFLAGS="$xorg_testset_save_CFLAGS"
9214
9215		eval supported=\$$cacheid
9216		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9217printf "%s\n" "$supported" >&6; }
9218		if test "$supported" = "yes" ; then
9219			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9220			found="yes"
9221		fi
9222	fi
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238xorg_testset_save_CFLAGS="$CFLAGS"
9239
9240if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9241	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9242	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9243printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9244if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9245then :
9246  printf %s "(cached) " >&6
9247else $as_nop
9248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249/* end confdefs.h.  */
9250int i;
9251_ACEOF
9252if ac_fn_c_try_compile "$LINENO"
9253then :
9254  xorg_cv_cc_flag_unknown_warning_option=yes
9255else $as_nop
9256  xorg_cv_cc_flag_unknown_warning_option=no
9257fi
9258rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9259fi
9260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9261printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9262	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9263	CFLAGS="$xorg_testset_save_CFLAGS"
9264fi
9265
9266if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9267	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9268		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9269	fi
9270	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9271	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9272printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9273if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9274then :
9275  printf %s "(cached) " >&6
9276else $as_nop
9277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9278/* end confdefs.h.  */
9279int i;
9280_ACEOF
9281if ac_fn_c_try_compile "$LINENO"
9282then :
9283  xorg_cv_cc_flag_unused_command_line_argument=yes
9284else $as_nop
9285  xorg_cv_cc_flag_unused_command_line_argument=no
9286fi
9287rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9288fi
9289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9290printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9291	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9292	CFLAGS="$xorg_testset_save_CFLAGS"
9293fi
9294
9295found="no"
9296
9297	if test $found = "no" ; then
9298		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9299			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9300		fi
9301
9302		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9303			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9304		fi
9305
9306		CFLAGS="$CFLAGS -Winit-self"
9307
9308		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9309printf %s "checking if $CC supports -Winit-self... " >&6; }
9310		cacheid=xorg_cv_cc_flag__Winit_self
9311		if eval test \${$cacheid+y}
9312then :
9313  printf %s "(cached) " >&6
9314else $as_nop
9315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9316/* end confdefs.h.  */
9317int i;
9318int
9319main (void)
9320{
9321
9322  ;
9323  return 0;
9324}
9325_ACEOF
9326if ac_fn_c_try_link "$LINENO"
9327then :
9328  eval $cacheid=yes
9329else $as_nop
9330  eval $cacheid=no
9331fi
9332rm -f core conftest.err conftest.$ac_objext conftest.beam \
9333    conftest$ac_exeext conftest.$ac_ext
9334fi
9335
9336
9337		CFLAGS="$xorg_testset_save_CFLAGS"
9338
9339		eval supported=\$$cacheid
9340		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9341printf "%s\n" "$supported" >&6; }
9342		if test "$supported" = "yes" ; then
9343			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9344			found="yes"
9345		fi
9346	fi
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362xorg_testset_save_CFLAGS="$CFLAGS"
9363
9364if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9365	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9366	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9367printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9368if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9369then :
9370  printf %s "(cached) " >&6
9371else $as_nop
9372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373/* end confdefs.h.  */
9374int i;
9375_ACEOF
9376if ac_fn_c_try_compile "$LINENO"
9377then :
9378  xorg_cv_cc_flag_unknown_warning_option=yes
9379else $as_nop
9380  xorg_cv_cc_flag_unknown_warning_option=no
9381fi
9382rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9383fi
9384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9385printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9386	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9387	CFLAGS="$xorg_testset_save_CFLAGS"
9388fi
9389
9390if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9391	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9392		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9393	fi
9394	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9395	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9396printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9397if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9398then :
9399  printf %s "(cached) " >&6
9400else $as_nop
9401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9402/* end confdefs.h.  */
9403int i;
9404_ACEOF
9405if ac_fn_c_try_compile "$LINENO"
9406then :
9407  xorg_cv_cc_flag_unused_command_line_argument=yes
9408else $as_nop
9409  xorg_cv_cc_flag_unused_command_line_argument=no
9410fi
9411rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9412fi
9413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9414printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9415	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9416	CFLAGS="$xorg_testset_save_CFLAGS"
9417fi
9418
9419found="no"
9420
9421	if test $found = "no" ; then
9422		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9423			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9424		fi
9425
9426		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9427			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9428		fi
9429
9430		CFLAGS="$CFLAGS -Wmain"
9431
9432		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9433printf %s "checking if $CC supports -Wmain... " >&6; }
9434		cacheid=xorg_cv_cc_flag__Wmain
9435		if eval test \${$cacheid+y}
9436then :
9437  printf %s "(cached) " >&6
9438else $as_nop
9439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440/* end confdefs.h.  */
9441int i;
9442int
9443main (void)
9444{
9445
9446  ;
9447  return 0;
9448}
9449_ACEOF
9450if ac_fn_c_try_link "$LINENO"
9451then :
9452  eval $cacheid=yes
9453else $as_nop
9454  eval $cacheid=no
9455fi
9456rm -f core conftest.err conftest.$ac_objext conftest.beam \
9457    conftest$ac_exeext conftest.$ac_ext
9458fi
9459
9460
9461		CFLAGS="$xorg_testset_save_CFLAGS"
9462
9463		eval supported=\$$cacheid
9464		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9465printf "%s\n" "$supported" >&6; }
9466		if test "$supported" = "yes" ; then
9467			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9468			found="yes"
9469		fi
9470	fi
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486xorg_testset_save_CFLAGS="$CFLAGS"
9487
9488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9489	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9490	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9491printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9492if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9493then :
9494  printf %s "(cached) " >&6
9495else $as_nop
9496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497/* end confdefs.h.  */
9498int i;
9499_ACEOF
9500if ac_fn_c_try_compile "$LINENO"
9501then :
9502  xorg_cv_cc_flag_unknown_warning_option=yes
9503else $as_nop
9504  xorg_cv_cc_flag_unknown_warning_option=no
9505fi
9506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9507fi
9508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9509printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9510	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9511	CFLAGS="$xorg_testset_save_CFLAGS"
9512fi
9513
9514if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9515	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9516		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9517	fi
9518	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9519	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9520printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9521if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9522then :
9523  printf %s "(cached) " >&6
9524else $as_nop
9525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9526/* end confdefs.h.  */
9527int i;
9528_ACEOF
9529if ac_fn_c_try_compile "$LINENO"
9530then :
9531  xorg_cv_cc_flag_unused_command_line_argument=yes
9532else $as_nop
9533  xorg_cv_cc_flag_unused_command_line_argument=no
9534fi
9535rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9536fi
9537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9538printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9539	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9540	CFLAGS="$xorg_testset_save_CFLAGS"
9541fi
9542
9543found="no"
9544
9545	if test $found = "no" ; then
9546		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9547			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9548		fi
9549
9550		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9551			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9552		fi
9553
9554		CFLAGS="$CFLAGS -Wmissing-braces"
9555
9556		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9557printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9558		cacheid=xorg_cv_cc_flag__Wmissing_braces
9559		if eval test \${$cacheid+y}
9560then :
9561  printf %s "(cached) " >&6
9562else $as_nop
9563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9564/* end confdefs.h.  */
9565int i;
9566int
9567main (void)
9568{
9569
9570  ;
9571  return 0;
9572}
9573_ACEOF
9574if ac_fn_c_try_link "$LINENO"
9575then :
9576  eval $cacheid=yes
9577else $as_nop
9578  eval $cacheid=no
9579fi
9580rm -f core conftest.err conftest.$ac_objext conftest.beam \
9581    conftest$ac_exeext conftest.$ac_ext
9582fi
9583
9584
9585		CFLAGS="$xorg_testset_save_CFLAGS"
9586
9587		eval supported=\$$cacheid
9588		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9589printf "%s\n" "$supported" >&6; }
9590		if test "$supported" = "yes" ; then
9591			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9592			found="yes"
9593		fi
9594	fi
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610xorg_testset_save_CFLAGS="$CFLAGS"
9611
9612if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9613	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9614	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9615printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9616if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9617then :
9618  printf %s "(cached) " >&6
9619else $as_nop
9620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621/* end confdefs.h.  */
9622int i;
9623_ACEOF
9624if ac_fn_c_try_compile "$LINENO"
9625then :
9626  xorg_cv_cc_flag_unknown_warning_option=yes
9627else $as_nop
9628  xorg_cv_cc_flag_unknown_warning_option=no
9629fi
9630rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9631fi
9632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9633printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9634	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9635	CFLAGS="$xorg_testset_save_CFLAGS"
9636fi
9637
9638if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9639	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9640		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9641	fi
9642	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9643	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9644printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9645if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9646then :
9647  printf %s "(cached) " >&6
9648else $as_nop
9649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9650/* end confdefs.h.  */
9651int i;
9652_ACEOF
9653if ac_fn_c_try_compile "$LINENO"
9654then :
9655  xorg_cv_cc_flag_unused_command_line_argument=yes
9656else $as_nop
9657  xorg_cv_cc_flag_unused_command_line_argument=no
9658fi
9659rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9660fi
9661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9662printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9663	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9664	CFLAGS="$xorg_testset_save_CFLAGS"
9665fi
9666
9667found="no"
9668
9669	if test $found = "no" ; then
9670		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9671			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9672		fi
9673
9674		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9675			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9676		fi
9677
9678		CFLAGS="$CFLAGS -Wsequence-point"
9679
9680		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9681printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9682		cacheid=xorg_cv_cc_flag__Wsequence_point
9683		if eval test \${$cacheid+y}
9684then :
9685  printf %s "(cached) " >&6
9686else $as_nop
9687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688/* end confdefs.h.  */
9689int i;
9690int
9691main (void)
9692{
9693
9694  ;
9695  return 0;
9696}
9697_ACEOF
9698if ac_fn_c_try_link "$LINENO"
9699then :
9700  eval $cacheid=yes
9701else $as_nop
9702  eval $cacheid=no
9703fi
9704rm -f core conftest.err conftest.$ac_objext conftest.beam \
9705    conftest$ac_exeext conftest.$ac_ext
9706fi
9707
9708
9709		CFLAGS="$xorg_testset_save_CFLAGS"
9710
9711		eval supported=\$$cacheid
9712		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9713printf "%s\n" "$supported" >&6; }
9714		if test "$supported" = "yes" ; then
9715			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9716			found="yes"
9717		fi
9718	fi
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734xorg_testset_save_CFLAGS="$CFLAGS"
9735
9736if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9737	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9738	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9739printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9740if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9741then :
9742  printf %s "(cached) " >&6
9743else $as_nop
9744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745/* end confdefs.h.  */
9746int i;
9747_ACEOF
9748if ac_fn_c_try_compile "$LINENO"
9749then :
9750  xorg_cv_cc_flag_unknown_warning_option=yes
9751else $as_nop
9752  xorg_cv_cc_flag_unknown_warning_option=no
9753fi
9754rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9755fi
9756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9757printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9758	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9759	CFLAGS="$xorg_testset_save_CFLAGS"
9760fi
9761
9762if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9763	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9764		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9765	fi
9766	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9767	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9768printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9769if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9770then :
9771  printf %s "(cached) " >&6
9772else $as_nop
9773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774/* end confdefs.h.  */
9775int i;
9776_ACEOF
9777if ac_fn_c_try_compile "$LINENO"
9778then :
9779  xorg_cv_cc_flag_unused_command_line_argument=yes
9780else $as_nop
9781  xorg_cv_cc_flag_unused_command_line_argument=no
9782fi
9783rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9784fi
9785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9786printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9787	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9788	CFLAGS="$xorg_testset_save_CFLAGS"
9789fi
9790
9791found="no"
9792
9793	if test $found = "no" ; then
9794		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9795			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9796		fi
9797
9798		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9799			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9800		fi
9801
9802		CFLAGS="$CFLAGS -Wreturn-type"
9803
9804		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9805printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9806		cacheid=xorg_cv_cc_flag__Wreturn_type
9807		if eval test \${$cacheid+y}
9808then :
9809  printf %s "(cached) " >&6
9810else $as_nop
9811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9812/* end confdefs.h.  */
9813int i;
9814int
9815main (void)
9816{
9817
9818  ;
9819  return 0;
9820}
9821_ACEOF
9822if ac_fn_c_try_link "$LINENO"
9823then :
9824  eval $cacheid=yes
9825else $as_nop
9826  eval $cacheid=no
9827fi
9828rm -f core conftest.err conftest.$ac_objext conftest.beam \
9829    conftest$ac_exeext conftest.$ac_ext
9830fi
9831
9832
9833		CFLAGS="$xorg_testset_save_CFLAGS"
9834
9835		eval supported=\$$cacheid
9836		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9837printf "%s\n" "$supported" >&6; }
9838		if test "$supported" = "yes" ; then
9839			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9840			found="yes"
9841		fi
9842	fi
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858xorg_testset_save_CFLAGS="$CFLAGS"
9859
9860if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9861	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9862	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9863printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9864if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9865then :
9866  printf %s "(cached) " >&6
9867else $as_nop
9868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869/* end confdefs.h.  */
9870int i;
9871_ACEOF
9872if ac_fn_c_try_compile "$LINENO"
9873then :
9874  xorg_cv_cc_flag_unknown_warning_option=yes
9875else $as_nop
9876  xorg_cv_cc_flag_unknown_warning_option=no
9877fi
9878rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9879fi
9880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9881printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9882	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9883	CFLAGS="$xorg_testset_save_CFLAGS"
9884fi
9885
9886if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9887	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9888		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9889	fi
9890	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9891	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9892printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9893if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9894then :
9895  printf %s "(cached) " >&6
9896else $as_nop
9897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898/* end confdefs.h.  */
9899int i;
9900_ACEOF
9901if ac_fn_c_try_compile "$LINENO"
9902then :
9903  xorg_cv_cc_flag_unused_command_line_argument=yes
9904else $as_nop
9905  xorg_cv_cc_flag_unused_command_line_argument=no
9906fi
9907rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9908fi
9909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9910printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9911	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9912	CFLAGS="$xorg_testset_save_CFLAGS"
9913fi
9914
9915found="no"
9916
9917	if test $found = "no" ; then
9918		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9919			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9920		fi
9921
9922		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9923			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9924		fi
9925
9926		CFLAGS="$CFLAGS -Wtrigraphs"
9927
9928		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9929printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9930		cacheid=xorg_cv_cc_flag__Wtrigraphs
9931		if eval test \${$cacheid+y}
9932then :
9933  printf %s "(cached) " >&6
9934else $as_nop
9935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936/* end confdefs.h.  */
9937int i;
9938int
9939main (void)
9940{
9941
9942  ;
9943  return 0;
9944}
9945_ACEOF
9946if ac_fn_c_try_link "$LINENO"
9947then :
9948  eval $cacheid=yes
9949else $as_nop
9950  eval $cacheid=no
9951fi
9952rm -f core conftest.err conftest.$ac_objext conftest.beam \
9953    conftest$ac_exeext conftest.$ac_ext
9954fi
9955
9956
9957		CFLAGS="$xorg_testset_save_CFLAGS"
9958
9959		eval supported=\$$cacheid
9960		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9961printf "%s\n" "$supported" >&6; }
9962		if test "$supported" = "yes" ; then
9963			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9964			found="yes"
9965		fi
9966	fi
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982xorg_testset_save_CFLAGS="$CFLAGS"
9983
9984if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9985	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9986	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9987printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9988if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9989then :
9990  printf %s "(cached) " >&6
9991else $as_nop
9992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993/* end confdefs.h.  */
9994int i;
9995_ACEOF
9996if ac_fn_c_try_compile "$LINENO"
9997then :
9998  xorg_cv_cc_flag_unknown_warning_option=yes
9999else $as_nop
10000  xorg_cv_cc_flag_unknown_warning_option=no
10001fi
10002rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10003fi
10004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10005printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10006	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10007	CFLAGS="$xorg_testset_save_CFLAGS"
10008fi
10009
10010if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10011	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10012		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10013	fi
10014	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10015	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10016printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10017if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10018then :
10019  printf %s "(cached) " >&6
10020else $as_nop
10021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10022/* end confdefs.h.  */
10023int i;
10024_ACEOF
10025if ac_fn_c_try_compile "$LINENO"
10026then :
10027  xorg_cv_cc_flag_unused_command_line_argument=yes
10028else $as_nop
10029  xorg_cv_cc_flag_unused_command_line_argument=no
10030fi
10031rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10032fi
10033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10034printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10035	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10036	CFLAGS="$xorg_testset_save_CFLAGS"
10037fi
10038
10039found="no"
10040
10041	if test $found = "no" ; then
10042		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10043			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10044		fi
10045
10046		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10047			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10048		fi
10049
10050		CFLAGS="$CFLAGS -Warray-bounds"
10051
10052		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10053printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10054		cacheid=xorg_cv_cc_flag__Warray_bounds
10055		if eval test \${$cacheid+y}
10056then :
10057  printf %s "(cached) " >&6
10058else $as_nop
10059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10060/* end confdefs.h.  */
10061int i;
10062int
10063main (void)
10064{
10065
10066  ;
10067  return 0;
10068}
10069_ACEOF
10070if ac_fn_c_try_link "$LINENO"
10071then :
10072  eval $cacheid=yes
10073else $as_nop
10074  eval $cacheid=no
10075fi
10076rm -f core conftest.err conftest.$ac_objext conftest.beam \
10077    conftest$ac_exeext conftest.$ac_ext
10078fi
10079
10080
10081		CFLAGS="$xorg_testset_save_CFLAGS"
10082
10083		eval supported=\$$cacheid
10084		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10085printf "%s\n" "$supported" >&6; }
10086		if test "$supported" = "yes" ; then
10087			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10088			found="yes"
10089		fi
10090	fi
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106xorg_testset_save_CFLAGS="$CFLAGS"
10107
10108if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10109	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10110	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10111printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10112if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10113then :
10114  printf %s "(cached) " >&6
10115else $as_nop
10116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117/* end confdefs.h.  */
10118int i;
10119_ACEOF
10120if ac_fn_c_try_compile "$LINENO"
10121then :
10122  xorg_cv_cc_flag_unknown_warning_option=yes
10123else $as_nop
10124  xorg_cv_cc_flag_unknown_warning_option=no
10125fi
10126rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10127fi
10128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10129printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10130	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10131	CFLAGS="$xorg_testset_save_CFLAGS"
10132fi
10133
10134if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10135	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10136		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10137	fi
10138	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10139	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10140printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10141if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10142then :
10143  printf %s "(cached) " >&6
10144else $as_nop
10145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10146/* end confdefs.h.  */
10147int i;
10148_ACEOF
10149if ac_fn_c_try_compile "$LINENO"
10150then :
10151  xorg_cv_cc_flag_unused_command_line_argument=yes
10152else $as_nop
10153  xorg_cv_cc_flag_unused_command_line_argument=no
10154fi
10155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10156fi
10157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10158printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10159	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10160	CFLAGS="$xorg_testset_save_CFLAGS"
10161fi
10162
10163found="no"
10164
10165	if test $found = "no" ; then
10166		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10167			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10168		fi
10169
10170		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10171			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10172		fi
10173
10174		CFLAGS="$CFLAGS -Wwrite-strings"
10175
10176		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10177printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10178		cacheid=xorg_cv_cc_flag__Wwrite_strings
10179		if eval test \${$cacheid+y}
10180then :
10181  printf %s "(cached) " >&6
10182else $as_nop
10183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184/* end confdefs.h.  */
10185int i;
10186int
10187main (void)
10188{
10189
10190  ;
10191  return 0;
10192}
10193_ACEOF
10194if ac_fn_c_try_link "$LINENO"
10195then :
10196  eval $cacheid=yes
10197else $as_nop
10198  eval $cacheid=no
10199fi
10200rm -f core conftest.err conftest.$ac_objext conftest.beam \
10201    conftest$ac_exeext conftest.$ac_ext
10202fi
10203
10204
10205		CFLAGS="$xorg_testset_save_CFLAGS"
10206
10207		eval supported=\$$cacheid
10208		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10209printf "%s\n" "$supported" >&6; }
10210		if test "$supported" = "yes" ; then
10211			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10212			found="yes"
10213		fi
10214	fi
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230xorg_testset_save_CFLAGS="$CFLAGS"
10231
10232if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10233	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10234	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10235printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10236if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10237then :
10238  printf %s "(cached) " >&6
10239else $as_nop
10240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10241/* end confdefs.h.  */
10242int i;
10243_ACEOF
10244if ac_fn_c_try_compile "$LINENO"
10245then :
10246  xorg_cv_cc_flag_unknown_warning_option=yes
10247else $as_nop
10248  xorg_cv_cc_flag_unknown_warning_option=no
10249fi
10250rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10251fi
10252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10253printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10254	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10255	CFLAGS="$xorg_testset_save_CFLAGS"
10256fi
10257
10258if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10259	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10260		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10261	fi
10262	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10263	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10264printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10265if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10266then :
10267  printf %s "(cached) " >&6
10268else $as_nop
10269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10270/* end confdefs.h.  */
10271int i;
10272_ACEOF
10273if ac_fn_c_try_compile "$LINENO"
10274then :
10275  xorg_cv_cc_flag_unused_command_line_argument=yes
10276else $as_nop
10277  xorg_cv_cc_flag_unused_command_line_argument=no
10278fi
10279rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10280fi
10281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10282printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10283	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10284	CFLAGS="$xorg_testset_save_CFLAGS"
10285fi
10286
10287found="no"
10288
10289	if test $found = "no" ; then
10290		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10291			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10292		fi
10293
10294		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10295			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10296		fi
10297
10298		CFLAGS="$CFLAGS -Waddress"
10299
10300		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10301printf %s "checking if $CC supports -Waddress... " >&6; }
10302		cacheid=xorg_cv_cc_flag__Waddress
10303		if eval test \${$cacheid+y}
10304then :
10305  printf %s "(cached) " >&6
10306else $as_nop
10307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308/* end confdefs.h.  */
10309int i;
10310int
10311main (void)
10312{
10313
10314  ;
10315  return 0;
10316}
10317_ACEOF
10318if ac_fn_c_try_link "$LINENO"
10319then :
10320  eval $cacheid=yes
10321else $as_nop
10322  eval $cacheid=no
10323fi
10324rm -f core conftest.err conftest.$ac_objext conftest.beam \
10325    conftest$ac_exeext conftest.$ac_ext
10326fi
10327
10328
10329		CFLAGS="$xorg_testset_save_CFLAGS"
10330
10331		eval supported=\$$cacheid
10332		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10333printf "%s\n" "$supported" >&6; }
10334		if test "$supported" = "yes" ; then
10335			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10336			found="yes"
10337		fi
10338	fi
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354xorg_testset_save_CFLAGS="$CFLAGS"
10355
10356if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10357	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10358	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10359printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10360if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10361then :
10362  printf %s "(cached) " >&6
10363else $as_nop
10364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365/* end confdefs.h.  */
10366int i;
10367_ACEOF
10368if ac_fn_c_try_compile "$LINENO"
10369then :
10370  xorg_cv_cc_flag_unknown_warning_option=yes
10371else $as_nop
10372  xorg_cv_cc_flag_unknown_warning_option=no
10373fi
10374rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10375fi
10376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10377printf "%s\n" "$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	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10388printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10389if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10390then :
10391  printf %s "(cached) " >&6
10392else $as_nop
10393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394/* end confdefs.h.  */
10395int i;
10396_ACEOF
10397if ac_fn_c_try_compile "$LINENO"
10398then :
10399  xorg_cv_cc_flag_unused_command_line_argument=yes
10400else $as_nop
10401  xorg_cv_cc_flag_unused_command_line_argument=no
10402fi
10403rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10404fi
10405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10406printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10407	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10408	CFLAGS="$xorg_testset_save_CFLAGS"
10409fi
10410
10411found="no"
10412
10413	if test $found = "no" ; then
10414		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10415			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10416		fi
10417
10418		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10419			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10420		fi
10421
10422		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10423
10424		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10425printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10426		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10427		if eval test \${$cacheid+y}
10428then :
10429  printf %s "(cached) " >&6
10430else $as_nop
10431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10432/* end confdefs.h.  */
10433int i;
10434int
10435main (void)
10436{
10437
10438  ;
10439  return 0;
10440}
10441_ACEOF
10442if ac_fn_c_try_link "$LINENO"
10443then :
10444  eval $cacheid=yes
10445else $as_nop
10446  eval $cacheid=no
10447fi
10448rm -f core conftest.err conftest.$ac_objext conftest.beam \
10449    conftest$ac_exeext conftest.$ac_ext
10450fi
10451
10452
10453		CFLAGS="$xorg_testset_save_CFLAGS"
10454
10455		eval supported=\$$cacheid
10456		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10457printf "%s\n" "$supported" >&6; }
10458		if test "$supported" = "yes" ; then
10459			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10460			found="yes"
10461		fi
10462	fi
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478xorg_testset_save_CFLAGS="$CFLAGS"
10479
10480if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10481	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10482	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10483printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10484if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10485then :
10486  printf %s "(cached) " >&6
10487else $as_nop
10488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10489/* end confdefs.h.  */
10490int i;
10491_ACEOF
10492if ac_fn_c_try_compile "$LINENO"
10493then :
10494  xorg_cv_cc_flag_unknown_warning_option=yes
10495else $as_nop
10496  xorg_cv_cc_flag_unknown_warning_option=no
10497fi
10498rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10499fi
10500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10501printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10502	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10503	CFLAGS="$xorg_testset_save_CFLAGS"
10504fi
10505
10506if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10507	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10508		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10509	fi
10510	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10511	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10512printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10513if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10514then :
10515  printf %s "(cached) " >&6
10516else $as_nop
10517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10518/* end confdefs.h.  */
10519int i;
10520_ACEOF
10521if ac_fn_c_try_compile "$LINENO"
10522then :
10523  xorg_cv_cc_flag_unused_command_line_argument=yes
10524else $as_nop
10525  xorg_cv_cc_flag_unused_command_line_argument=no
10526fi
10527rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10528fi
10529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10530printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10531	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10532	CFLAGS="$xorg_testset_save_CFLAGS"
10533fi
10534
10535found="no"
10536
10537	if test $found = "no" ; then
10538		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10539			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10540		fi
10541
10542		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10543			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10544		fi
10545
10546		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10547
10548		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10549printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10550		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10551		if eval test \${$cacheid+y}
10552then :
10553  printf %s "(cached) " >&6
10554else $as_nop
10555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10556/* end confdefs.h.  */
10557int i;
10558int
10559main (void)
10560{
10561
10562  ;
10563  return 0;
10564}
10565_ACEOF
10566if ac_fn_c_try_link "$LINENO"
10567then :
10568  eval $cacheid=yes
10569else $as_nop
10570  eval $cacheid=no
10571fi
10572rm -f core conftest.err conftest.$ac_objext conftest.beam \
10573    conftest$ac_exeext conftest.$ac_ext
10574fi
10575
10576
10577		CFLAGS="$xorg_testset_save_CFLAGS"
10578
10579		eval supported=\$$cacheid
10580		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10581printf "%s\n" "$supported" >&6; }
10582		if test "$supported" = "yes" ; then
10583			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10584			found="yes"
10585		fi
10586	fi
10587
10588
10589fi
10590
10591
10592
10593
10594
10595
10596
10597		CWARNFLAGS="$BASE_CFLAGS"
10598		if  test "x$GCC" = xyes ; then
10599		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10600		fi
10601
10602
10603
10604
10605
10606
10607
10608
10609# Check whether --enable-strict-compilation was given.
10610if test ${enable_strict_compilation+y}
10611then :
10612  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10613else $as_nop
10614  STRICT_COMPILE=no
10615fi
10616
10617
10618
10619
10620
10621
10622STRICT_CFLAGS=""
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636xorg_testset_save_CFLAGS="$CFLAGS"
10637
10638if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10639	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10640	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10641printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10642if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10643then :
10644  printf %s "(cached) " >&6
10645else $as_nop
10646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10647/* end confdefs.h.  */
10648int i;
10649_ACEOF
10650if ac_fn_c_try_compile "$LINENO"
10651then :
10652  xorg_cv_cc_flag_unknown_warning_option=yes
10653else $as_nop
10654  xorg_cv_cc_flag_unknown_warning_option=no
10655fi
10656rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10657fi
10658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10659printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10660	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10661	CFLAGS="$xorg_testset_save_CFLAGS"
10662fi
10663
10664if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10665	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10666		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10667	fi
10668	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10669	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10670printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10671if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10672then :
10673  printf %s "(cached) " >&6
10674else $as_nop
10675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676/* end confdefs.h.  */
10677int i;
10678_ACEOF
10679if ac_fn_c_try_compile "$LINENO"
10680then :
10681  xorg_cv_cc_flag_unused_command_line_argument=yes
10682else $as_nop
10683  xorg_cv_cc_flag_unused_command_line_argument=no
10684fi
10685rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10686fi
10687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10688printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10689	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10690	CFLAGS="$xorg_testset_save_CFLAGS"
10691fi
10692
10693found="no"
10694
10695	if test $found = "no" ; then
10696		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10697			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10698		fi
10699
10700		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10701			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10702		fi
10703
10704		CFLAGS="$CFLAGS -pedantic"
10705
10706		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10707printf %s "checking if $CC supports -pedantic... " >&6; }
10708		cacheid=xorg_cv_cc_flag__pedantic
10709		if eval test \${$cacheid+y}
10710then :
10711  printf %s "(cached) " >&6
10712else $as_nop
10713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10714/* end confdefs.h.  */
10715int i;
10716int
10717main (void)
10718{
10719
10720  ;
10721  return 0;
10722}
10723_ACEOF
10724if ac_fn_c_try_link "$LINENO"
10725then :
10726  eval $cacheid=yes
10727else $as_nop
10728  eval $cacheid=no
10729fi
10730rm -f core conftest.err conftest.$ac_objext conftest.beam \
10731    conftest$ac_exeext conftest.$ac_ext
10732fi
10733
10734
10735		CFLAGS="$xorg_testset_save_CFLAGS"
10736
10737		eval supported=\$$cacheid
10738		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10739printf "%s\n" "$supported" >&6; }
10740		if test "$supported" = "yes" ; then
10741			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10742			found="yes"
10743		fi
10744	fi
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760xorg_testset_save_CFLAGS="$CFLAGS"
10761
10762if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10763	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10764	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10765printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10766if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10767then :
10768  printf %s "(cached) " >&6
10769else $as_nop
10770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771/* end confdefs.h.  */
10772int i;
10773_ACEOF
10774if ac_fn_c_try_compile "$LINENO"
10775then :
10776  xorg_cv_cc_flag_unknown_warning_option=yes
10777else $as_nop
10778  xorg_cv_cc_flag_unknown_warning_option=no
10779fi
10780rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10781fi
10782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10783printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10784	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10785	CFLAGS="$xorg_testset_save_CFLAGS"
10786fi
10787
10788if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10789	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10790		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10791	fi
10792	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10793	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10794printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10795if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10796then :
10797  printf %s "(cached) " >&6
10798else $as_nop
10799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10800/* end confdefs.h.  */
10801int i;
10802_ACEOF
10803if ac_fn_c_try_compile "$LINENO"
10804then :
10805  xorg_cv_cc_flag_unused_command_line_argument=yes
10806else $as_nop
10807  xorg_cv_cc_flag_unused_command_line_argument=no
10808fi
10809rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10810fi
10811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10812printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10813	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10814	CFLAGS="$xorg_testset_save_CFLAGS"
10815fi
10816
10817found="no"
10818
10819	if test $found = "no" ; then
10820		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10821			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10822		fi
10823
10824		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10825			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10826		fi
10827
10828		CFLAGS="$CFLAGS -Werror"
10829
10830		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10831printf %s "checking if $CC supports -Werror... " >&6; }
10832		cacheid=xorg_cv_cc_flag__Werror
10833		if eval test \${$cacheid+y}
10834then :
10835  printf %s "(cached) " >&6
10836else $as_nop
10837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10838/* end confdefs.h.  */
10839int i;
10840int
10841main (void)
10842{
10843
10844  ;
10845  return 0;
10846}
10847_ACEOF
10848if ac_fn_c_try_link "$LINENO"
10849then :
10850  eval $cacheid=yes
10851else $as_nop
10852  eval $cacheid=no
10853fi
10854rm -f core conftest.err conftest.$ac_objext conftest.beam \
10855    conftest$ac_exeext conftest.$ac_ext
10856fi
10857
10858
10859		CFLAGS="$xorg_testset_save_CFLAGS"
10860
10861		eval supported=\$$cacheid
10862		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10863printf "%s\n" "$supported" >&6; }
10864		if test "$supported" = "yes" ; then
10865			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10866			found="yes"
10867		fi
10868	fi
10869
10870	if test $found = "no" ; then
10871		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10872			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10873		fi
10874
10875		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10876			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10877		fi
10878
10879		CFLAGS="$CFLAGS -errwarn"
10880
10881		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10882printf %s "checking if $CC supports -errwarn... " >&6; }
10883		cacheid=xorg_cv_cc_flag__errwarn
10884		if eval test \${$cacheid+y}
10885then :
10886  printf %s "(cached) " >&6
10887else $as_nop
10888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10889/* end confdefs.h.  */
10890int i;
10891int
10892main (void)
10893{
10894
10895  ;
10896  return 0;
10897}
10898_ACEOF
10899if ac_fn_c_try_link "$LINENO"
10900then :
10901  eval $cacheid=yes
10902else $as_nop
10903  eval $cacheid=no
10904fi
10905rm -f core conftest.err conftest.$ac_objext conftest.beam \
10906    conftest$ac_exeext conftest.$ac_ext
10907fi
10908
10909
10910		CFLAGS="$xorg_testset_save_CFLAGS"
10911
10912		eval supported=\$$cacheid
10913		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10914printf "%s\n" "$supported" >&6; }
10915		if test "$supported" = "yes" ; then
10916			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10917			found="yes"
10918		fi
10919	fi
10920
10921
10922
10923# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10924# activate it with -Werror, so we add it here explicitly.
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938xorg_testset_save_CFLAGS="$CFLAGS"
10939
10940if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10941	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10942	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10943printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10944if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10945then :
10946  printf %s "(cached) " >&6
10947else $as_nop
10948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10949/* end confdefs.h.  */
10950int i;
10951_ACEOF
10952if ac_fn_c_try_compile "$LINENO"
10953then :
10954  xorg_cv_cc_flag_unknown_warning_option=yes
10955else $as_nop
10956  xorg_cv_cc_flag_unknown_warning_option=no
10957fi
10958rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10959fi
10960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10961printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10962	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10963	CFLAGS="$xorg_testset_save_CFLAGS"
10964fi
10965
10966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10967	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10968		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10969	fi
10970	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10971	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10972printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10973if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10974then :
10975  printf %s "(cached) " >&6
10976else $as_nop
10977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10978/* end confdefs.h.  */
10979int i;
10980_ACEOF
10981if ac_fn_c_try_compile "$LINENO"
10982then :
10983  xorg_cv_cc_flag_unused_command_line_argument=yes
10984else $as_nop
10985  xorg_cv_cc_flag_unused_command_line_argument=no
10986fi
10987rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10988fi
10989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10990printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10991	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10992	CFLAGS="$xorg_testset_save_CFLAGS"
10993fi
10994
10995found="no"
10996
10997	if test $found = "no" ; then
10998		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10999			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11000		fi
11001
11002		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11003			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11004		fi
11005
11006		CFLAGS="$CFLAGS -Werror=attributes"
11007
11008		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11009printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11010		cacheid=xorg_cv_cc_flag__Werror_attributes
11011		if eval test \${$cacheid+y}
11012then :
11013  printf %s "(cached) " >&6
11014else $as_nop
11015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11016/* end confdefs.h.  */
11017int i;
11018int
11019main (void)
11020{
11021
11022  ;
11023  return 0;
11024}
11025_ACEOF
11026if ac_fn_c_try_link "$LINENO"
11027then :
11028  eval $cacheid=yes
11029else $as_nop
11030  eval $cacheid=no
11031fi
11032rm -f core conftest.err conftest.$ac_objext conftest.beam \
11033    conftest$ac_exeext conftest.$ac_ext
11034fi
11035
11036
11037		CFLAGS="$xorg_testset_save_CFLAGS"
11038
11039		eval supported=\$$cacheid
11040		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11041printf "%s\n" "$supported" >&6; }
11042		if test "$supported" = "yes" ; then
11043			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11044			found="yes"
11045		fi
11046	fi
11047
11048
11049
11050if test "x$STRICT_COMPILE" = "xyes"; then
11051    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11052    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11053fi
11054
11055
11056
11057
11058
11059
11060cat >>confdefs.h <<_ACEOF
11061#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11062_ACEOF
11063
11064	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11065	if test "x$PVM" = "x"; then
11066		PVM="0"
11067	fi
11068
11069printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11070
11071	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11072	if test "x$PVP" = "x"; then
11073		PVP="0"
11074	fi
11075
11076printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11077
11078
11079
11080CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11081mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11082|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11083touch \$(top_srcdir)/ChangeLog; \
11084echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11085
11086
11087
11088
11089macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11090INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11091mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11092|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11093touch \$(top_srcdir)/INSTALL; \
11094echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11095
11096
11097
11098
11099
11100
11101case $host_os in
11102    solaris*)
11103        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11104        # check for a man page file found in later versions that use
11105        # traditional section numbers instead
11106        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11107printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11108if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11109then :
11110  printf %s "(cached) " >&6
11111else $as_nop
11112  test "$cross_compiling" = yes &&
11113  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11114if test -r "/usr/share/man/man7/attributes.7"; then
11115  ac_cv_file__usr_share_man_man7_attributes_7=yes
11116else
11117  ac_cv_file__usr_share_man_man7_attributes_7=no
11118fi
11119fi
11120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11121printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11122if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11123then :
11124  SYSV_MAN_SECTIONS=false
11125else $as_nop
11126  SYSV_MAN_SECTIONS=true
11127fi
11128
11129        ;;
11130    *) SYSV_MAN_SECTIONS=false ;;
11131esac
11132
11133if test x$APP_MAN_SUFFIX = x    ; then
11134    APP_MAN_SUFFIX=1
11135fi
11136if test x$APP_MAN_DIR = x    ; then
11137    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11138fi
11139
11140if test x$LIB_MAN_SUFFIX = x    ; then
11141    LIB_MAN_SUFFIX=3
11142fi
11143if test x$LIB_MAN_DIR = x    ; then
11144    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11145fi
11146
11147if test x$FILE_MAN_SUFFIX = x    ; then
11148    case $SYSV_MAN_SECTIONS in
11149	true)				FILE_MAN_SUFFIX=4  ;;
11150	*)				FILE_MAN_SUFFIX=5  ;;
11151    esac
11152fi
11153if test x$FILE_MAN_DIR = x    ; then
11154    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11155fi
11156
11157if test x$MISC_MAN_SUFFIX = x    ; then
11158    case $SYSV_MAN_SECTIONS in
11159	true)				MISC_MAN_SUFFIX=5  ;;
11160	*)				MISC_MAN_SUFFIX=7  ;;
11161    esac
11162fi
11163if test x$MISC_MAN_DIR = x    ; then
11164    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11165fi
11166
11167if test x$DRIVER_MAN_SUFFIX = x    ; then
11168    case $SYSV_MAN_SECTIONS in
11169	true)				DRIVER_MAN_SUFFIX=7  ;;
11170	*)				DRIVER_MAN_SUFFIX=4  ;;
11171    esac
11172fi
11173if test x$DRIVER_MAN_DIR = x    ; then
11174    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11175fi
11176
11177if test x$ADMIN_MAN_SUFFIX = x    ; then
11178    case $SYSV_MAN_SECTIONS in
11179	true)				ADMIN_MAN_SUFFIX=1m ;;
11180	*)				ADMIN_MAN_SUFFIX=8  ;;
11181    esac
11182fi
11183if test x$ADMIN_MAN_DIR = x    ; then
11184    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11185fi
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201XORG_MAN_PAGE="X Version 11"
11202
11203MAN_SUBSTS="\
11204	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11205	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11206	-e 's|__xservername__|Xorg|g' \
11207	-e 's|__xconfigfile__|xorg.conf|g' \
11208	-e 's|__projectroot__|\$(prefix)|g' \
11209	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11210	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11211	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11212	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11213	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11214	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11215	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11216
11217
11218
11219# Check whether --enable-silent-rules was given.
11220if test ${enable_silent_rules+y}
11221then :
11222  enableval=$enable_silent_rules;
11223fi
11224
11225case $enable_silent_rules in # (((
11226  yes) AM_DEFAULT_VERBOSITY=0;;
11227   no) AM_DEFAULT_VERBOSITY=1;;
11228    *) AM_DEFAULT_VERBOSITY=0;;
11229esac
11230am_make=${MAKE-make}
11231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11232printf %s "checking whether $am_make supports nested variables... " >&6; }
11233if test ${am_cv_make_support_nested_variables+y}
11234then :
11235  printf %s "(cached) " >&6
11236else $as_nop
11237  if printf "%s\n" 'TRUE=$(BAR$(V))
11238BAR0=false
11239BAR1=true
11240V=1
11241am__doit:
11242	@$(TRUE)
11243.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11244  am_cv_make_support_nested_variables=yes
11245else
11246  am_cv_make_support_nested_variables=no
11247fi
11248fi
11249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11250printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11251if test $am_cv_make_support_nested_variables = yes; then
11252    AM_V='$(V)'
11253  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11254else
11255  AM_V=$AM_DEFAULT_VERBOSITY
11256  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11257fi
11258AM_BACKSLASH='\'
11259
11260
11261
11262
11263# Check whether --enable-specs was given.
11264if test ${enable_specs+y}
11265then :
11266  enableval=$enable_specs; build_specs=$enableval
11267else $as_nop
11268  build_specs=yes
11269fi
11270
11271
11272 if test x$build_specs = xyes; then
11273  ENABLE_SPECS_TRUE=
11274  ENABLE_SPECS_FALSE='#'
11275else
11276  ENABLE_SPECS_TRUE='#'
11277  ENABLE_SPECS_FALSE=
11278fi
11279
11280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
11281printf %s "checking whether to build functional specifications... " >&6; }
11282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
11283printf "%s\n" "$build_specs" >&6; }
11284
11285
11286
11287
11288
11289# Check whether --with-xmlto was given.
11290if test ${with_xmlto+y}
11291then :
11292  withval=$with_xmlto; use_xmlto=$withval
11293else $as_nop
11294  use_xmlto=auto
11295fi
11296
11297
11298
11299if test "x$use_xmlto" = x"auto"; then
11300   # Extract the first word of "xmlto", so it can be a program name with args.
11301set dummy xmlto; ac_word=$2
11302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11303printf %s "checking for $ac_word... " >&6; }
11304if test ${ac_cv_path_XMLTO+y}
11305then :
11306  printf %s "(cached) " >&6
11307else $as_nop
11308  case $XMLTO in
11309  [\\/]* | ?:[\\/]*)
11310  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
11311  ;;
11312  *)
11313  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11314for as_dir in $PATH
11315do
11316  IFS=$as_save_IFS
11317  case $as_dir in #(((
11318    '') as_dir=./ ;;
11319    */) ;;
11320    *) as_dir=$as_dir/ ;;
11321  esac
11322    for ac_exec_ext in '' $ac_executable_extensions; do
11323  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11324    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
11325    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11326    break 2
11327  fi
11328done
11329  done
11330IFS=$as_save_IFS
11331
11332  ;;
11333esac
11334fi
11335XMLTO=$ac_cv_path_XMLTO
11336if test -n "$XMLTO"; then
11337  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
11338printf "%s\n" "$XMLTO" >&6; }
11339else
11340  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11341printf "%s\n" "no" >&6; }
11342fi
11343
11344
11345   if test "x$XMLTO" = "x"; then
11346        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
11347printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
11348	have_xmlto=no
11349   else
11350        have_xmlto=yes
11351   fi
11352elif test "x$use_xmlto" = x"yes" ; then
11353   # Extract the first word of "xmlto", so it can be a program name with args.
11354set dummy xmlto; ac_word=$2
11355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11356printf %s "checking for $ac_word... " >&6; }
11357if test ${ac_cv_path_XMLTO+y}
11358then :
11359  printf %s "(cached) " >&6
11360else $as_nop
11361  case $XMLTO in
11362  [\\/]* | ?:[\\/]*)
11363  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
11364  ;;
11365  *)
11366  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11367for as_dir in $PATH
11368do
11369  IFS=$as_save_IFS
11370  case $as_dir in #(((
11371    '') as_dir=./ ;;
11372    */) ;;
11373    *) as_dir=$as_dir/ ;;
11374  esac
11375    for ac_exec_ext in '' $ac_executable_extensions; do
11376  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11377    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
11378    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11379    break 2
11380  fi
11381done
11382  done
11383IFS=$as_save_IFS
11384
11385  ;;
11386esac
11387fi
11388XMLTO=$ac_cv_path_XMLTO
11389if test -n "$XMLTO"; then
11390  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
11391printf "%s\n" "$XMLTO" >&6; }
11392else
11393  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11394printf "%s\n" "no" >&6; }
11395fi
11396
11397
11398   if test "x$XMLTO" = "x"; then
11399        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
11400   fi
11401   have_xmlto=yes
11402elif test "x$use_xmlto" = x"no" ; then
11403   if test "x$XMLTO" != "x"; then
11404      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
11405printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
11406   fi
11407   have_xmlto=no
11408else
11409   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
11410fi
11411
11412# Test for a minimum version of xmlto, if provided.
11413if test "$have_xmlto" = yes; then
11414    # scrape the xmlto version
11415    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
11416printf %s "checking the xmlto version... " >&6; }
11417    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
11418    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
11419printf "%s\n" "$xmlto_version" >&6; }
11420    as_arg_v1=$xmlto_version
11421as_arg_v2=0.0.22
11422awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
11423case $? in #(
11424  1) :
11425    if test "x$use_xmlto" = xauto; then
11426            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
11427printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
11428            have_xmlto=no
11429        else
11430            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
11431        fi ;; #(
11432  0) :
11433     ;; #(
11434  2) :
11435     ;; #(
11436  *) :
11437     ;;
11438esac
11439fi
11440
11441# Test for the ability of xmlto to generate a text target
11442#
11443# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
11444# following test for empty XML docbook files.
11445# For compatibility reasons use the following empty XML docbook file and if
11446# it fails try it again with a non-empty XML file.
11447have_xmlto_text=no
11448cat > conftest.xml << "EOF"
11449EOF
11450if test "$have_xmlto" = yes
11451then :
11452  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
11453then :
11454  have_xmlto_text=yes
11455else $as_nop
11456  # Try it again with a non-empty XML file.
11457              cat > conftest.xml << "EOF"
11458<x></x>
11459EOF
11460              if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
11461then :
11462  have_xmlto_text=yes
11463else $as_nop
11464  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
11465printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
11466fi
11467fi
11468fi
11469rm -f conftest.xml
11470 if test $have_xmlto_text = yes; then
11471  HAVE_XMLTO_TEXT_TRUE=
11472  HAVE_XMLTO_TEXT_FALSE='#'
11473else
11474  HAVE_XMLTO_TEXT_TRUE='#'
11475  HAVE_XMLTO_TEXT_FALSE=
11476fi
11477
11478 if test "$have_xmlto" = yes; then
11479  HAVE_XMLTO_TRUE=
11480  HAVE_XMLTO_FALSE='#'
11481else
11482  HAVE_XMLTO_TRUE='#'
11483  HAVE_XMLTO_FALSE=
11484fi
11485
11486
11487
11488
11489
11490
11491# Check whether --with-fop was given.
11492if test ${with_fop+y}
11493then :
11494  withval=$with_fop; use_fop=$withval
11495else $as_nop
11496  use_fop=auto
11497fi
11498
11499
11500
11501if test "x$use_fop" = x"auto"; then
11502   # Extract the first word of "fop", so it can be a program name with args.
11503set dummy fop; ac_word=$2
11504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11505printf %s "checking for $ac_word... " >&6; }
11506if test ${ac_cv_path_FOP+y}
11507then :
11508  printf %s "(cached) " >&6
11509else $as_nop
11510  case $FOP in
11511  [\\/]* | ?:[\\/]*)
11512  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
11513  ;;
11514  *)
11515  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11516for as_dir in $PATH
11517do
11518  IFS=$as_save_IFS
11519  case $as_dir in #(((
11520    '') as_dir=./ ;;
11521    */) ;;
11522    *) as_dir=$as_dir/ ;;
11523  esac
11524    for ac_exec_ext in '' $ac_executable_extensions; do
11525  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11526    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
11527    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11528    break 2
11529  fi
11530done
11531  done
11532IFS=$as_save_IFS
11533
11534  ;;
11535esac
11536fi
11537FOP=$ac_cv_path_FOP
11538if test -n "$FOP"; then
11539  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
11540printf "%s\n" "$FOP" >&6; }
11541else
11542  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11543printf "%s\n" "no" >&6; }
11544fi
11545
11546
11547   if test "x$FOP" = "x"; then
11548        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
11549printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
11550	have_fop=no
11551   else
11552        have_fop=yes
11553   fi
11554elif test "x$use_fop" = x"yes" ; then
11555   # Extract the first word of "fop", so it can be a program name with args.
11556set dummy fop; ac_word=$2
11557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11558printf %s "checking for $ac_word... " >&6; }
11559if test ${ac_cv_path_FOP+y}
11560then :
11561  printf %s "(cached) " >&6
11562else $as_nop
11563  case $FOP in
11564  [\\/]* | ?:[\\/]*)
11565  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
11566  ;;
11567  *)
11568  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11569for as_dir in $PATH
11570do
11571  IFS=$as_save_IFS
11572  case $as_dir in #(((
11573    '') as_dir=./ ;;
11574    */) ;;
11575    *) as_dir=$as_dir/ ;;
11576  esac
11577    for ac_exec_ext in '' $ac_executable_extensions; do
11578  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11579    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
11580    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11581    break 2
11582  fi
11583done
11584  done
11585IFS=$as_save_IFS
11586
11587  ;;
11588esac
11589fi
11590FOP=$ac_cv_path_FOP
11591if test -n "$FOP"; then
11592  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
11593printf "%s\n" "$FOP" >&6; }
11594else
11595  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11596printf "%s\n" "no" >&6; }
11597fi
11598
11599
11600   if test "x$FOP" = "x"; then
11601        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
11602   fi
11603   have_fop=yes
11604elif test "x$use_fop" = x"no" ; then
11605   if test "x$FOP" != "x"; then
11606      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
11607printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
11608   fi
11609   have_fop=no
11610else
11611   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
11612fi
11613
11614# Test for a minimum version of fop, if provided.
11615
11616 if test "$have_fop" = yes; then
11617  HAVE_FOP_TRUE=
11618  HAVE_FOP_FALSE='#'
11619else
11620  HAVE_FOP_TRUE='#'
11621  HAVE_FOP_FALSE=
11622fi
11623
11624
11625
11626
11627# Preserves the interface, should it be implemented later
11628
11629
11630
11631# Check whether --with-xsltproc was given.
11632if test ${with_xsltproc+y}
11633then :
11634  withval=$with_xsltproc; use_xsltproc=$withval
11635else $as_nop
11636  use_xsltproc=auto
11637fi
11638
11639
11640
11641if test "x$use_xsltproc" = x"auto"; then
11642   # Extract the first word of "xsltproc", so it can be a program name with args.
11643set dummy xsltproc; ac_word=$2
11644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11645printf %s "checking for $ac_word... " >&6; }
11646if test ${ac_cv_path_XSLTPROC+y}
11647then :
11648  printf %s "(cached) " >&6
11649else $as_nop
11650  case $XSLTPROC in
11651  [\\/]* | ?:[\\/]*)
11652  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
11653  ;;
11654  *)
11655  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11656for as_dir in $PATH
11657do
11658  IFS=$as_save_IFS
11659  case $as_dir in #(((
11660    '') as_dir=./ ;;
11661    */) ;;
11662    *) as_dir=$as_dir/ ;;
11663  esac
11664    for ac_exec_ext in '' $ac_executable_extensions; do
11665  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11666    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
11667    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11668    break 2
11669  fi
11670done
11671  done
11672IFS=$as_save_IFS
11673
11674  ;;
11675esac
11676fi
11677XSLTPROC=$ac_cv_path_XSLTPROC
11678if test -n "$XSLTPROC"; then
11679  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
11680printf "%s\n" "$XSLTPROC" >&6; }
11681else
11682  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11683printf "%s\n" "no" >&6; }
11684fi
11685
11686
11687   if test "x$XSLTPROC" = "x"; then
11688        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
11689printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
11690	have_xsltproc=no
11691   else
11692        have_xsltproc=yes
11693   fi
11694elif test "x$use_xsltproc" = x"yes" ; then
11695   # Extract the first word of "xsltproc", so it can be a program name with args.
11696set dummy xsltproc; ac_word=$2
11697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11698printf %s "checking for $ac_word... " >&6; }
11699if test ${ac_cv_path_XSLTPROC+y}
11700then :
11701  printf %s "(cached) " >&6
11702else $as_nop
11703  case $XSLTPROC in
11704  [\\/]* | ?:[\\/]*)
11705  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
11706  ;;
11707  *)
11708  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11709for as_dir in $PATH
11710do
11711  IFS=$as_save_IFS
11712  case $as_dir in #(((
11713    '') as_dir=./ ;;
11714    */) ;;
11715    *) as_dir=$as_dir/ ;;
11716  esac
11717    for ac_exec_ext in '' $ac_executable_extensions; do
11718  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11719    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
11720    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11721    break 2
11722  fi
11723done
11724  done
11725IFS=$as_save_IFS
11726
11727  ;;
11728esac
11729fi
11730XSLTPROC=$ac_cv_path_XSLTPROC
11731if test -n "$XSLTPROC"; then
11732  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
11733printf "%s\n" "$XSLTPROC" >&6; }
11734else
11735  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11736printf "%s\n" "no" >&6; }
11737fi
11738
11739
11740   if test "x$XSLTPROC" = "x"; then
11741        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
11742   fi
11743   have_xsltproc=yes
11744elif test "x$use_xsltproc" = x"no" ; then
11745   if test "x$XSLTPROC" != "x"; then
11746      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
11747printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
11748   fi
11749   have_xsltproc=no
11750else
11751   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
11752fi
11753
11754 if test "$have_xsltproc" = yes; then
11755  HAVE_XSLTPROC_TRUE=
11756  HAVE_XSLTPROC_FALSE='#'
11757else
11758  HAVE_XSLTPROC_TRUE='#'
11759  HAVE_XSLTPROC_FALSE=
11760fi
11761
11762
11763
11764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
11765printf %s "checking for X.Org SGML entities >= 1.8... " >&6; }
11766XORG_SGML_PATH=
11767if test -n "$PKG_CONFIG" && \
11768    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
11769  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
11770  ac_status=$?
11771  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11772  test $ac_status = 0; }; then
11773  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
11774else
11775  :
11776
11777fi
11778
11779# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
11780# the path and the name of the doc stylesheet
11781if test "x$XORG_SGML_PATH" != "x" ; then
11782   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
11783printf "%s\n" "$XORG_SGML_PATH" >&6; }
11784   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
11785   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
11786else
11787   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11788printf "%s\n" "no" >&6; }
11789fi
11790
11791
11792
11793
11794 if test "x$XSL_STYLESHEET" != "x"; then
11795  HAVE_STYLESHEETS_TRUE=
11796  HAVE_STYLESHEETS_FALSE='#'
11797else
11798  HAVE_STYLESHEETS_TRUE='#'
11799  HAVE_STYLESHEETS_FALSE=
11800fi
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810        if test -n "$PYTHON"; then
11811      # If the user set $PYTHON, use it and don't search something else.
11812      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.6" >&5
11813printf %s "checking whether $PYTHON version is >= 3.6... " >&6; }
11814      prog="import sys
11815# split strings by '.' and convert to numeric.  Append some zeros
11816# because we need at least 4 digits for the hex conversion.
11817# map returns an iterator in Python 3.0 and a list in 2.x
11818minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
11819minverhex = 0
11820# xrange is not present in Python 3.0 and range returns an iterator
11821for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
11822sys.exit(sys.hexversion < minverhex)"
11823  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
11824   ($PYTHON -c "$prog") >&5 2>&5
11825   ac_status=$?
11826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827   (exit $ac_status); }
11828then :
11829  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11830printf "%s\n" "yes" >&6; }
11831else $as_nop
11832  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11833printf "%s\n" "no" >&6; }
11834			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
11835fi
11836      am_display_PYTHON=$PYTHON
11837    else
11838      # Otherwise, try each interpreter until we find one that satisfies
11839      # VERSION.
11840      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.6" >&5
11841printf %s "checking for a Python interpreter with version >= 3.6... " >&6; }
11842if test ${am_cv_pathless_PYTHON+y}
11843then :
11844  printf %s "(cached) " >&6
11845else $as_nop
11846
11847	for am_cv_pathless_PYTHON in python python2 python3  python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3  python3.2 python3.1 python3.0  python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1  python2.0 none; do
11848	  test "$am_cv_pathless_PYTHON" = none && break
11849	  prog="import sys
11850# split strings by '.' and convert to numeric.  Append some zeros
11851# because we need at least 4 digits for the hex conversion.
11852# map returns an iterator in Python 3.0 and a list in 2.x
11853minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
11854minverhex = 0
11855# xrange is not present in Python 3.0 and range returns an iterator
11856for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
11857sys.exit(sys.hexversion < minverhex)"
11858  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
11859   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
11860   ac_status=$?
11861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862   (exit $ac_status); }
11863then :
11864  break
11865fi
11866	done
11867fi
11868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
11869printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
11870      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
11871      if test "$am_cv_pathless_PYTHON" = none; then
11872	PYTHON=:
11873      else
11874        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
11875set dummy $am_cv_pathless_PYTHON; ac_word=$2
11876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11877printf %s "checking for $ac_word... " >&6; }
11878if test ${ac_cv_path_PYTHON+y}
11879then :
11880  printf %s "(cached) " >&6
11881else $as_nop
11882  case $PYTHON in
11883  [\\/]* | ?:[\\/]*)
11884  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11885  ;;
11886  *)
11887  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11888for as_dir in $PATH
11889do
11890  IFS=$as_save_IFS
11891  case $as_dir in #(((
11892    '') as_dir=./ ;;
11893    */) ;;
11894    *) as_dir=$as_dir/ ;;
11895  esac
11896    for ac_exec_ext in '' $ac_executable_extensions; do
11897  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11898    ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
11899    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11900    break 2
11901  fi
11902done
11903  done
11904IFS=$as_save_IFS
11905
11906  ;;
11907esac
11908fi
11909PYTHON=$ac_cv_path_PYTHON
11910if test -n "$PYTHON"; then
11911  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
11912printf "%s\n" "$PYTHON" >&6; }
11913else
11914  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915printf "%s\n" "no" >&6; }
11916fi
11917
11918
11919      fi
11920      am_display_PYTHON=$am_cv_pathless_PYTHON
11921    fi
11922
11923
11924  if test "$PYTHON" = :; then
11925        :
11926  else
11927
11928              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
11929printf %s "checking for $am_display_PYTHON version... " >&6; }
11930if test ${am_cv_python_version+y}
11931then :
11932  printf %s "(cached) " >&6
11933else $as_nop
11934  am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"`
11935fi
11936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
11937printf "%s\n" "$am_cv_python_version" >&6; }
11938  PYTHON_VERSION=$am_cv_python_version
11939
11940
11941        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
11942printf %s "checking for $am_display_PYTHON platform... " >&6; }
11943if test ${am_cv_python_platform+y}
11944then :
11945  printf %s "(cached) " >&6
11946else $as_nop
11947  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
11948fi
11949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
11950printf "%s\n" "$am_cv_python_platform" >&6; }
11951  PYTHON_PLATFORM=$am_cv_python_platform
11952
11953
11954                            if test "x$prefix" = xNONE; then
11955    am__usable_prefix=$ac_default_prefix
11956  else
11957    am__usable_prefix=$prefix
11958  fi
11959
11960  # Allow user to request using sys.* values from Python,
11961  # instead of the GNU $prefix values.
11962
11963# Check whether --with-python-sys-prefix was given.
11964if test ${with_python_sys_prefix+y}
11965then :
11966  withval=$with_python_sys_prefix; am_use_python_sys=:
11967else $as_nop
11968  am_use_python_sys=false
11969fi
11970
11971
11972  # Allow user to override whatever the default Python prefix is.
11973
11974# Check whether --with-python_prefix was given.
11975if test ${with_python_prefix+y}
11976then :
11977  withval=$with_python_prefix; am_python_prefix_subst=$withval
11978   am_cv_python_prefix=$withval
11979   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
11980printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
11981   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
11982printf "%s\n" "$am_cv_python_prefix" >&6; }
11983else $as_nop
11984
11985   if $am_use_python_sys; then
11986     # using python sys.prefix value, not GNU
11987     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
11988printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
11989if test ${am_cv_python_prefix+y}
11990then :
11991  printf %s "(cached) " >&6
11992else $as_nop
11993  am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
11994fi
11995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
11996printf "%s\n" "$am_cv_python_prefix" >&6; }
11997
11998               case $am_cv_python_prefix in
11999     $am__usable_prefix*)
12000       am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
12001       am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
12002       ;;
12003     *)
12004       am_python_prefix_subst=$am_cv_python_prefix
12005       ;;
12006     esac
12007   else # using GNU prefix value, not python sys.prefix
12008     am_python_prefix_subst='${prefix}'
12009     am_python_prefix=$am_python_prefix_subst
12010     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
12011printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
12012     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
12013printf "%s\n" "$am_python_prefix" >&6; }
12014   fi
12015fi
12016
12017  # Substituting python_prefix_subst value.
12018  PYTHON_PREFIX=$am_python_prefix_subst
12019
12020
12021  # emacs-page Now do it all over again for Python exec_prefix, but with yet
12022  # another conditional: fall back to regular prefix if that was specified.
12023
12024# Check whether --with-python_exec_prefix was given.
12025if test ${with_python_exec_prefix+y}
12026then :
12027  withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
12028   am_cv_python_exec_prefix=$withval
12029   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
12030printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
12031   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
12032printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
12033else $as_nop
12034
12035   # no explicit --with-python_exec_prefix, but if
12036   # --with-python_prefix was given, use its value for python_exec_prefix too.
12037   if test -n "$with_python_prefix"
12038then :
12039  am_python_exec_prefix_subst=$with_python_prefix
12040    am_cv_python_exec_prefix=$with_python_prefix
12041    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
12042printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
12043    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
12044printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
12045else $as_nop
12046
12047    # Set am__usable_exec_prefix whether using GNU or Python values,
12048    # since we use that variable for pyexecdir.
12049    if test "x$exec_prefix" = xNONE; then
12050      am__usable_exec_prefix=$am__usable_prefix
12051    else
12052      am__usable_exec_prefix=$exec_prefix
12053    fi
12054    #
12055    if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
12056      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
12057printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
12058if test ${am_cv_python_exec_prefix+y}
12059then :
12060  printf %s "(cached) " >&6
12061else $as_nop
12062  am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
12063fi
12064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
12065printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
12066                        case $am_cv_python_exec_prefix in
12067      $am__usable_exec_prefix*)
12068        am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
12069        am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
12070        ;;
12071      *)
12072        am_python_exec_prefix_subst=$am_cv_python_exec_prefix
12073        ;;
12074     esac
12075   else # using GNU $exec_prefix, not python sys.exec_prefix
12076     am_python_exec_prefix_subst='${exec_prefix}'
12077     am_python_exec_prefix=$am_python_exec_prefix_subst
12078     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
12079printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
12080     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
12081printf "%s\n" "$am_python_exec_prefix" >&6; }
12082   fi
12083fi
12084fi
12085
12086  # Substituting python_exec_prefix_subst.
12087  PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
12088
12089
12090  # Factor out some code duplication into this shell variable.
12091  am_python_setup_sysconfig="\
12092import sys
12093# Prefer sysconfig over distutils.sysconfig, for better compatibility
12094# with python 3.x.  See automake bug#10227.
12095try:
12096    import sysconfig
12097except ImportError:
12098    can_use_sysconfig = 0
12099else:
12100    can_use_sysconfig = 1
12101# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
12102# <https://github.com/pypa/virtualenv/issues/118>
12103try:
12104    from platform import python_implementation
12105    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
12106        can_use_sysconfig = 0
12107except ImportError:
12108    pass"
12109
12110
12111              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
12112printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
12113if test ${am_cv_python_pythondir+y}
12114then :
12115  printf %s "(cached) " >&6
12116else $as_nop
12117  if test "x$am_cv_python_prefix" = x; then
12118     am_py_prefix=$am__usable_prefix
12119   else
12120     am_py_prefix=$am_cv_python_prefix
12121   fi
12122   am_cv_python_pythondir=`$PYTHON -c "
12123$am_python_setup_sysconfig
12124if can_use_sysconfig:
12125  sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
12126else:
12127  from distutils import sysconfig
12128  sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
12129sys.stdout.write(sitedir)"`
12130   #
12131   case $am_cv_python_pythondir in
12132   $am_py_prefix*)
12133     am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
12134     am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
12135     ;;
12136   *)
12137     case $am_py_prefix in
12138       /usr|/System*) ;;
12139       *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
12140          ;;
12141     esac
12142     ;;
12143   esac
12144
12145fi
12146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
12147printf "%s\n" "$am_cv_python_pythondir" >&6; }
12148  pythondir=$am_cv_python_pythondir
12149
12150
12151          pkgpythondir=\${pythondir}/$PACKAGE
12152
12153
12154          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
12155printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
12156if test ${am_cv_python_pyexecdir+y}
12157then :
12158  printf %s "(cached) " >&6
12159else $as_nop
12160  if test "x$am_cv_python_exec_prefix" = x; then
12161     am_py_exec_prefix=$am__usable_exec_prefix
12162   else
12163     am_py_exec_prefix=$am_cv_python_exec_prefix
12164   fi
12165   am_cv_python_pyexecdir=`$PYTHON -c "
12166$am_python_setup_sysconfig
12167if can_use_sysconfig:
12168  sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'})
12169else:
12170  from distutils import sysconfig
12171  sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
12172sys.stdout.write(sitedir)"`
12173   #
12174   case $am_cv_python_pyexecdir in
12175   $am_py_exec_prefix*)
12176     am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
12177     am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
12178     ;;
12179   *)
12180     case $am_py_exec_prefix in
12181       /usr|/System*) ;;
12182       *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
12183          ;;
12184     esac
12185     ;;
12186   esac
12187
12188fi
12189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
12190printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
12191  pyexecdir=$am_cv_python_pyexecdir
12192
12193
12194      pkgpyexecdir=\${pyexecdir}/$PACKAGE
12195
12196
12197
12198  fi
12199
12200 if test "$PYTHON" != :; then
12201  HAVE_PYTHON_TRUE=
12202  HAVE_PYTHON_FALSE='#'
12203else
12204  HAVE_PYTHON_TRUE='#'
12205  HAVE_PYTHON_FALSE=
12206fi
12207
12208
12209
12210
12211# Check whether --enable-legacy was given.
12212if test ${enable_legacy+y}
12213then :
12214  enableval=$enable_legacy; LEGACY=$enableval
12215else $as_nop
12216  LEGACY=no
12217fi
12218
12219 if test "x$LEGACY" = "xyes"; then
12220  LEGACY_TRUE=
12221  LEGACY_FALSE='#'
12222else
12223  LEGACY_TRUE='#'
12224  LEGACY_FALSE=
12225fi
12226
12227
12228ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
12229if test "x$ac_cv_header_sys_select_h" = xyes
12230then :
12231  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
12232
12233fi
12234ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
12235if test "x$ac_cv_header_sys_param_h" = xyes
12236then :
12237  printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
12238
12239fi
12240ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12241if test "x$ac_cv_header_sys_types_h" = xyes
12242then :
12243  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12244
12245fi
12246ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
12247if test "x$ac_cv_header_sys_time_h" = xyes
12248then :
12249  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
12250
12251fi
12252
12253
12254# Handle Xpoll.h.in
12255# Avoid determining fds_bits on WIN32 hosts (not including cygwin)
12256case $host_os in
12257	mingw*)		fds_bits_found=true;;
12258	*)		fds_bits_found=false;;
12259esac
12260
12261if test "x$fds_bits_found" = xfalse ; then
12262   ac_fn_c_check_member "$LINENO" "fd_set" "fds_bits" "ac_cv_member_fd_set_fds_bits" "
12263                               #ifdef HAVE_SYS_PARAM_H
12264                               #include <sys/param.h>
12265                               #endif
12266                               #ifdef HAVE_SYS_TYPES_H
12267                               #include <sys/types.h>
12268                               #endif
12269                               #ifdef HAVE_SYS_TIME_H
12270                               #include <sys/time.h>
12271                               #endif
12272                               #ifdef HAVE_SYS_SELECT_H
12273			       #include <sys/select.h>
12274                               #endif
12275
12276"
12277if test "x$ac_cv_member_fd_set_fds_bits" = xyes
12278then :
12279
12280			       fds_bits_found=plain
12281			       USE_FDS_BITS="fds_bits"
12282
12283fi
12284
12285fi
12286
12287if test "x$fds_bits_found" = xfalse ; then
12288   ac_fn_c_check_member "$LINENO" "fd_set" "__fds_bits" "ac_cv_member_fd_set___fds_bits" "
12289                               #ifdef HAVE_SYS_PARAM_H
12290                               #include <sys/param.h>
12291                               #endif
12292                               #ifdef HAVE_SYS_TYPES_H
12293                               #include <sys/types.h>
12294                               #endif
12295                               #ifdef HAVE_SYS_TIME_H
12296                               #include <sys/time.h>
12297                               #endif
12298                               #ifdef HAVE_SYS_SELECT_H
12299			       #include <sys/select.h>
12300                               #endif
12301
12302"
12303if test "x$ac_cv_member_fd_set___fds_bits" = xyes
12304then :
12305
12306			    fds_bits_found=underscores
12307			    USE_FDS_BITS="__fds_bits"
12308
12309fi
12310
12311fi
12312
12313if test "x$fds_bits_found" = xfalse ; then
12314    as_fn_error $? "Could not determine how to access the fds_bits or equivalent
12315                  structure in fd_set on your platform." "$LINENO" 5
12316fi
12317
12318
12319
12320ac_config_files="$ac_config_files applewmproto.pc bigreqsproto.pc compositeproto.pc damageproto.pc dmxproto.pc dpmsproto.pc dri2proto.pc dri3proto.pc evieproto.pc fixesproto.pc fontcacheproto.pc fontsproto.pc glproto.pc include/X11/Xpoll.h inputproto.pc kbproto.pc lg3dproto.pc Makefile presentproto.pc printproto.pc randrproto.pc recordproto.pc renderproto.pc resourceproto.pc scrnsaverproto.pc specs/Makefile specs/bigreqsproto/Makefile specs/fontsproto/Makefile specs/kbproto/Makefile specs/recordproto/Makefile specs/scrnsaverproto/Makefile specs/xcmiscproto/Makefile specs/xextproto/Makefile specs/xproto/Makefile trapproto.pc videoproto.pc windowswmproto.pc xcalibrateproto.pc xcmiscproto.pc xextproto.pc xf86bigfontproto.pc xf86dgaproto.pc xf86driproto.pc xf86miscproto.pc xf86rushproto.pc xf86vidmodeproto.pc xineramaproto.pc xproto.pc xproxymngproto.pc xwaylandproto.pc"
12321
12322
12323cat >confcache <<\_ACEOF
12324# This file is a shell script that caches the results of configure
12325# tests run on this system so they can be shared between configure
12326# scripts and configure runs, see configure's option --config-cache.
12327# It is not useful on other systems.  If it contains results you don't
12328# want to keep, you may remove or edit it.
12329#
12330# config.status only pays attention to the cache file if you give it
12331# the --recheck option to rerun configure.
12332#
12333# `ac_cv_env_foo' variables (set or unset) will be overridden when
12334# loading this file, other *unset* `ac_cv_foo' will be assigned the
12335# following values.
12336
12337_ACEOF
12338
12339# The following way of writing the cache mishandles newlines in values,
12340# but we know of no workaround that is simple, portable, and efficient.
12341# So, we kill variables containing newlines.
12342# Ultrix sh set writes to stderr and can't be redirected directly,
12343# and sets the high bit in the cache file unless we assign to the vars.
12344(
12345  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12346    eval ac_val=\$$ac_var
12347    case $ac_val in #(
12348    *${as_nl}*)
12349      case $ac_var in #(
12350      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12351printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12352      esac
12353      case $ac_var in #(
12354      _ | IFS | as_nl) ;; #(
12355      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12356      *) { eval $ac_var=; unset $ac_var;} ;;
12357      esac ;;
12358    esac
12359  done
12360
12361  (set) 2>&1 |
12362    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12363    *${as_nl}ac_space=\ *)
12364      # `set' does not quote correctly, so add quotes: double-quote
12365      # substitution turns \\\\ into \\, and sed turns \\ into \.
12366      sed -n \
12367	"s/'/'\\\\''/g;
12368	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12369      ;; #(
12370    *)
12371      # `set' quotes correctly as required by POSIX, so do not add quotes.
12372      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12373      ;;
12374    esac |
12375    sort
12376) |
12377  sed '
12378     /^ac_cv_env_/b end
12379     t clear
12380     :clear
12381     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12382     t end
12383     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12384     :end' >>confcache
12385if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12386  if test -w "$cache_file"; then
12387    if test "x$cache_file" != "x/dev/null"; then
12388      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12389printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12390      if test ! -f "$cache_file" || test -h "$cache_file"; then
12391	cat confcache >"$cache_file"
12392      else
12393        case $cache_file in #(
12394        */* | ?:*)
12395	  mv -f confcache "$cache_file"$$ &&
12396	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12397        *)
12398	  mv -f confcache "$cache_file" ;;
12399	esac
12400      fi
12401    fi
12402  else
12403    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12404printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12405  fi
12406fi
12407rm -f confcache
12408
12409test "x$prefix" = xNONE && prefix=$ac_default_prefix
12410# Let make expand exec_prefix.
12411test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12412
12413# Transform confdefs.h into DEFS.
12414# Protect against shell expansion while executing Makefile rules.
12415# Protect against Makefile macro expansion.
12416#
12417# If the first sed substitution is executed (which looks for macros that
12418# take arguments), then branch to the quote section.  Otherwise,
12419# look for a macro that doesn't take arguments.
12420ac_script='
12421:mline
12422/\\$/{
12423 N
12424 s,\\\n,,
12425 b mline
12426}
12427t clear
12428:clear
12429s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
12430t quote
12431s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
12432t quote
12433b any
12434:quote
12435s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12436s/\[/\\&/g
12437s/\]/\\&/g
12438s/\$/$$/g
12439H
12440:any
12441${
12442	g
12443	s/^\n//
12444	s/\n/ /g
12445	p
12446}
12447'
12448DEFS=`sed -n "$ac_script" confdefs.h`
12449
12450
12451ac_libobjs=
12452ac_ltlibobjs=
12453U=
12454for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12455  # 1. Remove the extension, and $U if already installed.
12456  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12457  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12458  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12459  #    will be set to the directory where LIBOBJS objects are built.
12460  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12461  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12462done
12463LIBOBJS=$ac_libobjs
12464
12465LTLIBOBJS=$ac_ltlibobjs
12466
12467
12468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12469printf %s "checking that generated files are newer than configure... " >&6; }
12470   if test -n "$am_sleep_pid"; then
12471     # Hide warnings about reused PIDs.
12472     wait $am_sleep_pid 2>/dev/null
12473   fi
12474   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12475printf "%s\n" "done" >&6; }
12476 if test -n "$EXEEXT"; then
12477  am__EXEEXT_TRUE=
12478  am__EXEEXT_FALSE='#'
12479else
12480  am__EXEEXT_TRUE='#'
12481  am__EXEEXT_FALSE=
12482fi
12483
12484if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12485  as_fn_error $? "conditional \"AMDEP\" was never defined.
12486Usually this means the macro was only invoked conditionally." "$LINENO" 5
12487fi
12488if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12489  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12490Usually this means the macro was only invoked conditionally." "$LINENO" 5
12491fi
12492if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
12493  as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
12494Usually this means the macro was only invoked conditionally." "$LINENO" 5
12495fi
12496if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
12497  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
12498Usually this means the macro was only invoked conditionally." "$LINENO" 5
12499fi
12500if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
12501  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
12502Usually this means the macro was only invoked conditionally." "$LINENO" 5
12503fi
12504if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
12505  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
12506Usually this means the macro was only invoked conditionally." "$LINENO" 5
12507fi
12508if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
12509  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
12510Usually this means the macro was only invoked conditionally." "$LINENO" 5
12511fi
12512if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
12513  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
12514Usually this means the macro was only invoked conditionally." "$LINENO" 5
12515fi
12516if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
12517  as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
12518Usually this means the macro was only invoked conditionally." "$LINENO" 5
12519fi
12520if test -z "${LEGACY_TRUE}" && test -z "${LEGACY_FALSE}"; then
12521  as_fn_error $? "conditional \"LEGACY\" was never defined.
12522Usually this means the macro was only invoked conditionally." "$LINENO" 5
12523fi
12524
12525: "${CONFIG_STATUS=./config.status}"
12526ac_write_fail=0
12527ac_clean_files_save=$ac_clean_files
12528ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12530printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12531as_write_fail=0
12532cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12533#! $SHELL
12534# Generated by $as_me.
12535# Run this file to recreate the current configuration.
12536# Compiler output produced by configure, useful for debugging
12537# configure, is in config.log if it exists.
12538
12539debug=false
12540ac_cs_recheck=false
12541ac_cs_silent=false
12542
12543SHELL=\${CONFIG_SHELL-$SHELL}
12544export SHELL
12545_ASEOF
12546cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12547## -------------------- ##
12548## M4sh Initialization. ##
12549## -------------------- ##
12550
12551# Be more Bourne compatible
12552DUALCASE=1; export DUALCASE # for MKS sh
12553as_nop=:
12554if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12555then :
12556  emulate sh
12557  NULLCMD=:
12558  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12559  # is contrary to our usage.  Disable this feature.
12560  alias -g '${1+"$@"}'='"$@"'
12561  setopt NO_GLOB_SUBST
12562else $as_nop
12563  case `(set -o) 2>/dev/null` in #(
12564  *posix*) :
12565    set -o posix ;; #(
12566  *) :
12567     ;;
12568esac
12569fi
12570
12571
12572
12573# Reset variables that may have inherited troublesome values from
12574# the environment.
12575
12576# IFS needs to be set, to space, tab, and newline, in precisely that order.
12577# (If _AS_PATH_WALK were called with IFS unset, it would have the
12578# side effect of setting IFS to empty, thus disabling word splitting.)
12579# Quoting is to prevent editors from complaining about space-tab.
12580as_nl='
12581'
12582export as_nl
12583IFS=" ""	$as_nl"
12584
12585PS1='$ '
12586PS2='> '
12587PS4='+ '
12588
12589# Ensure predictable behavior from utilities with locale-dependent output.
12590LC_ALL=C
12591export LC_ALL
12592LANGUAGE=C
12593export LANGUAGE
12594
12595# We cannot yet rely on "unset" to work, but we need these variables
12596# to be unset--not just set to an empty or harmless value--now, to
12597# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
12598# also avoids known problems related to "unset" and subshell syntax
12599# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12600for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12601do eval test \${$as_var+y} \
12602  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12603done
12604
12605# Ensure that fds 0, 1, and 2 are open.
12606if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12607if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12608if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
12609
12610# The user is always right.
12611if ${PATH_SEPARATOR+false} :; then
12612  PATH_SEPARATOR=:
12613  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12614    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12615      PATH_SEPARATOR=';'
12616  }
12617fi
12618
12619
12620# Find who we are.  Look in the path if we contain no directory separator.
12621as_myself=
12622case $0 in #((
12623  *[\\/]* ) as_myself=$0 ;;
12624  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12625for as_dir in $PATH
12626do
12627  IFS=$as_save_IFS
12628  case $as_dir in #(((
12629    '') as_dir=./ ;;
12630    */) ;;
12631    *) as_dir=$as_dir/ ;;
12632  esac
12633    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12634  done
12635IFS=$as_save_IFS
12636
12637     ;;
12638esac
12639# We did not find ourselves, most probably we were run as `sh COMMAND'
12640# in which case we are not to be found in the path.
12641if test "x$as_myself" = x; then
12642  as_myself=$0
12643fi
12644if test ! -f "$as_myself"; then
12645  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12646  exit 1
12647fi
12648
12649
12650
12651# as_fn_error STATUS ERROR [LINENO LOG_FD]
12652# ----------------------------------------
12653# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12654# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12655# script with STATUS, using 1 if that was 0.
12656as_fn_error ()
12657{
12658  as_status=$1; test $as_status -eq 0 && as_status=1
12659  if test "$4"; then
12660    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12661    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12662  fi
12663  printf "%s\n" "$as_me: error: $2" >&2
12664  as_fn_exit $as_status
12665} # as_fn_error
12666
12667
12668
12669# as_fn_set_status STATUS
12670# -----------------------
12671# Set $? to STATUS, without forking.
12672as_fn_set_status ()
12673{
12674  return $1
12675} # as_fn_set_status
12676
12677# as_fn_exit STATUS
12678# -----------------
12679# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12680as_fn_exit ()
12681{
12682  set +e
12683  as_fn_set_status $1
12684  exit $1
12685} # as_fn_exit
12686
12687# as_fn_unset VAR
12688# ---------------
12689# Portably unset VAR.
12690as_fn_unset ()
12691{
12692  { eval $1=; unset $1;}
12693}
12694as_unset=as_fn_unset
12695
12696# as_fn_append VAR VALUE
12697# ----------------------
12698# Append the text in VALUE to the end of the definition contained in VAR. Take
12699# advantage of any shell optimizations that allow amortized linear growth over
12700# repeated appends, instead of the typical quadratic growth present in naive
12701# implementations.
12702if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12703then :
12704  eval 'as_fn_append ()
12705  {
12706    eval $1+=\$2
12707  }'
12708else $as_nop
12709  as_fn_append ()
12710  {
12711    eval $1=\$$1\$2
12712  }
12713fi # as_fn_append
12714
12715# as_fn_arith ARG...
12716# ------------------
12717# Perform arithmetic evaluation on the ARGs, and store the result in the
12718# global $as_val. Take advantage of shells that can avoid forks. The arguments
12719# must be portable across $(()) and expr.
12720if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12721then :
12722  eval 'as_fn_arith ()
12723  {
12724    as_val=$(( $* ))
12725  }'
12726else $as_nop
12727  as_fn_arith ()
12728  {
12729    as_val=`expr "$@" || test $? -eq 1`
12730  }
12731fi # as_fn_arith
12732
12733
12734if expr a : '\(a\)' >/dev/null 2>&1 &&
12735   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12736  as_expr=expr
12737else
12738  as_expr=false
12739fi
12740
12741if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12742  as_basename=basename
12743else
12744  as_basename=false
12745fi
12746
12747if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12748  as_dirname=dirname
12749else
12750  as_dirname=false
12751fi
12752
12753as_me=`$as_basename -- "$0" ||
12754$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12755	 X"$0" : 'X\(//\)$' \| \
12756	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12757printf "%s\n" X/"$0" |
12758    sed '/^.*\/\([^/][^/]*\)\/*$/{
12759	    s//\1/
12760	    q
12761	  }
12762	  /^X\/\(\/\/\)$/{
12763	    s//\1/
12764	    q
12765	  }
12766	  /^X\/\(\/\).*/{
12767	    s//\1/
12768	    q
12769	  }
12770	  s/.*/./; q'`
12771
12772# Avoid depending upon Character Ranges.
12773as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12774as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12775as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12776as_cr_digits='0123456789'
12777as_cr_alnum=$as_cr_Letters$as_cr_digits
12778
12779
12780# Determine whether it's possible to make 'echo' print without a newline.
12781# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12782# for compatibility with existing Makefiles.
12783ECHO_C= ECHO_N= ECHO_T=
12784case `echo -n x` in #(((((
12785-n*)
12786  case `echo 'xy\c'` in
12787  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12788  xy)  ECHO_C='\c';;
12789  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12790       ECHO_T='	';;
12791  esac;;
12792*)
12793  ECHO_N='-n';;
12794esac
12795
12796# For backward compatibility with old third-party macros, we provide
12797# the shell variables $as_echo and $as_echo_n.  New code should use
12798# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12799as_echo='printf %s\n'
12800as_echo_n='printf %s'
12801
12802rm -f conf$$ conf$$.exe conf$$.file
12803if test -d conf$$.dir; then
12804  rm -f conf$$.dir/conf$$.file
12805else
12806  rm -f conf$$.dir
12807  mkdir conf$$.dir 2>/dev/null
12808fi
12809if (echo >conf$$.file) 2>/dev/null; then
12810  if ln -s conf$$.file conf$$ 2>/dev/null; then
12811    as_ln_s='ln -s'
12812    # ... but there are two gotchas:
12813    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12814    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12815    # In both cases, we have to default to `cp -pR'.
12816    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12817      as_ln_s='cp -pR'
12818  elif ln conf$$.file conf$$ 2>/dev/null; then
12819    as_ln_s=ln
12820  else
12821    as_ln_s='cp -pR'
12822  fi
12823else
12824  as_ln_s='cp -pR'
12825fi
12826rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12827rmdir conf$$.dir 2>/dev/null
12828
12829
12830# as_fn_mkdir_p
12831# -------------
12832# Create "$as_dir" as a directory, including parents if necessary.
12833as_fn_mkdir_p ()
12834{
12835
12836  case $as_dir in #(
12837  -*) as_dir=./$as_dir;;
12838  esac
12839  test -d "$as_dir" || eval $as_mkdir_p || {
12840    as_dirs=
12841    while :; do
12842      case $as_dir in #(
12843      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12844      *) as_qdir=$as_dir;;
12845      esac
12846      as_dirs="'$as_qdir' $as_dirs"
12847      as_dir=`$as_dirname -- "$as_dir" ||
12848$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12849	 X"$as_dir" : 'X\(//\)[^/]' \| \
12850	 X"$as_dir" : 'X\(//\)$' \| \
12851	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12852printf "%s\n" X"$as_dir" |
12853    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12854	    s//\1/
12855	    q
12856	  }
12857	  /^X\(\/\/\)[^/].*/{
12858	    s//\1/
12859	    q
12860	  }
12861	  /^X\(\/\/\)$/{
12862	    s//\1/
12863	    q
12864	  }
12865	  /^X\(\/\).*/{
12866	    s//\1/
12867	    q
12868	  }
12869	  s/.*/./; q'`
12870      test -d "$as_dir" && break
12871    done
12872    test -z "$as_dirs" || eval "mkdir $as_dirs"
12873  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12874
12875
12876} # as_fn_mkdir_p
12877if mkdir -p . 2>/dev/null; then
12878  as_mkdir_p='mkdir -p "$as_dir"'
12879else
12880  test -d ./-p && rmdir ./-p
12881  as_mkdir_p=false
12882fi
12883
12884
12885# as_fn_executable_p FILE
12886# -----------------------
12887# Test if FILE is an executable regular file.
12888as_fn_executable_p ()
12889{
12890  test -f "$1" && test -x "$1"
12891} # as_fn_executable_p
12892as_test_x='test -x'
12893as_executable_p=as_fn_executable_p
12894
12895# Sed expression to map a string onto a valid CPP name.
12896as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12897
12898# Sed expression to map a string onto a valid variable name.
12899as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12900
12901
12902exec 6>&1
12903## ----------------------------------- ##
12904## Main body of $CONFIG_STATUS script. ##
12905## ----------------------------------- ##
12906_ASEOF
12907test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12908
12909cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12910# Save the log message, to keep $0 and so on meaningful, and to
12911# report actual input values of CONFIG_FILES etc. instead of their
12912# values after options handling.
12913ac_log="
12914This file was extended by xorgproto $as_me 2023.2, which was
12915generated by GNU Autoconf 2.71.  Invocation command line was
12916
12917  CONFIG_FILES    = $CONFIG_FILES
12918  CONFIG_HEADERS  = $CONFIG_HEADERS
12919  CONFIG_LINKS    = $CONFIG_LINKS
12920  CONFIG_COMMANDS = $CONFIG_COMMANDS
12921  $ $0 $@
12922
12923on `(hostname || uname -n) 2>/dev/null | sed 1q`
12924"
12925
12926_ACEOF
12927
12928case $ac_config_files in *"
12929"*) set x $ac_config_files; shift; ac_config_files=$*;;
12930esac
12931
12932
12933
12934cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12935# Files that config.status was made for.
12936config_files="$ac_config_files"
12937config_commands="$ac_config_commands"
12938
12939_ACEOF
12940
12941cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12942ac_cs_usage="\
12943\`$as_me' instantiates files and other configuration actions
12944from templates according to the current configuration.  Unless the files
12945and actions are specified as TAGs, all are instantiated by default.
12946
12947Usage: $0 [OPTION]... [TAG]...
12948
12949  -h, --help       print this help, then exit
12950  -V, --version    print version number and configuration settings, then exit
12951      --config     print configuration, then exit
12952  -q, --quiet, --silent
12953                   do not print progress messages
12954  -d, --debug      don't remove temporary files
12955      --recheck    update $as_me by reconfiguring in the same conditions
12956      --file=FILE[:TEMPLATE]
12957                   instantiate the configuration file FILE
12958
12959Configuration files:
12960$config_files
12961
12962Configuration commands:
12963$config_commands
12964
12965Report bugs to <https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues>."
12966
12967_ACEOF
12968ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12969ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12970cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12971ac_cs_config='$ac_cs_config_escaped'
12972ac_cs_version="\\
12973xorgproto config.status 2023.2
12974configured by $0, generated by GNU Autoconf 2.71,
12975  with options \\"\$ac_cs_config\\"
12976
12977Copyright (C) 2021 Free Software Foundation, Inc.
12978This config.status script is free software; the Free Software Foundation
12979gives unlimited permission to copy, distribute and modify it."
12980
12981ac_pwd='$ac_pwd'
12982srcdir='$srcdir'
12983INSTALL='$INSTALL'
12984MKDIR_P='$MKDIR_P'
12985AWK='$AWK'
12986test -n "\$AWK" || AWK=awk
12987_ACEOF
12988
12989cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12990# The default lists apply if the user does not specify any file.
12991ac_need_defaults=:
12992while test $# != 0
12993do
12994  case $1 in
12995  --*=?*)
12996    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12997    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12998    ac_shift=:
12999    ;;
13000  --*=)
13001    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13002    ac_optarg=
13003    ac_shift=:
13004    ;;
13005  *)
13006    ac_option=$1
13007    ac_optarg=$2
13008    ac_shift=shift
13009    ;;
13010  esac
13011
13012  case $ac_option in
13013  # Handling of the options.
13014  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13015    ac_cs_recheck=: ;;
13016  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13017    printf "%s\n" "$ac_cs_version"; exit ;;
13018  --config | --confi | --conf | --con | --co | --c )
13019    printf "%s\n" "$ac_cs_config"; exit ;;
13020  --debug | --debu | --deb | --de | --d | -d )
13021    debug=: ;;
13022  --file | --fil | --fi | --f )
13023    $ac_shift
13024    case $ac_optarg in
13025    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13026    '') as_fn_error $? "missing file argument" ;;
13027    esac
13028    as_fn_append CONFIG_FILES " '$ac_optarg'"
13029    ac_need_defaults=false;;
13030  --he | --h |  --help | --hel | -h )
13031    printf "%s\n" "$ac_cs_usage"; exit ;;
13032  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13033  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13034    ac_cs_silent=: ;;
13035
13036  # This is an error.
13037  -*) as_fn_error $? "unrecognized option: \`$1'
13038Try \`$0 --help' for more information." ;;
13039
13040  *) as_fn_append ac_config_targets " $1"
13041     ac_need_defaults=false ;;
13042
13043  esac
13044  shift
13045done
13046
13047ac_configure_extra_args=
13048
13049if $ac_cs_silent; then
13050  exec 6>/dev/null
13051  ac_configure_extra_args="$ac_configure_extra_args --silent"
13052fi
13053
13054_ACEOF
13055cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13056if \$ac_cs_recheck; then
13057  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13058  shift
13059  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
13060  CONFIG_SHELL='$SHELL'
13061  export CONFIG_SHELL
13062  exec "\$@"
13063fi
13064
13065_ACEOF
13066cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13067exec 5>>config.log
13068{
13069  echo
13070  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13071## Running $as_me. ##
13072_ASBOX
13073  printf "%s\n" "$ac_log"
13074} >&5
13075
13076_ACEOF
13077cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13078#
13079# INIT-COMMANDS
13080#
13081AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13082
13083_ACEOF
13084
13085cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13086
13087# Handling of arguments.
13088for ac_config_target in $ac_config_targets
13089do
13090  case $ac_config_target in
13091    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13092    "applewmproto.pc") CONFIG_FILES="$CONFIG_FILES applewmproto.pc" ;;
13093    "bigreqsproto.pc") CONFIG_FILES="$CONFIG_FILES bigreqsproto.pc" ;;
13094    "compositeproto.pc") CONFIG_FILES="$CONFIG_FILES compositeproto.pc" ;;
13095    "damageproto.pc") CONFIG_FILES="$CONFIG_FILES damageproto.pc" ;;
13096    "dmxproto.pc") CONFIG_FILES="$CONFIG_FILES dmxproto.pc" ;;
13097    "dpmsproto.pc") CONFIG_FILES="$CONFIG_FILES dpmsproto.pc" ;;
13098    "dri2proto.pc") CONFIG_FILES="$CONFIG_FILES dri2proto.pc" ;;
13099    "dri3proto.pc") CONFIG_FILES="$CONFIG_FILES dri3proto.pc" ;;
13100    "evieproto.pc") CONFIG_FILES="$CONFIG_FILES evieproto.pc" ;;
13101    "fixesproto.pc") CONFIG_FILES="$CONFIG_FILES fixesproto.pc" ;;
13102    "fontcacheproto.pc") CONFIG_FILES="$CONFIG_FILES fontcacheproto.pc" ;;
13103    "fontsproto.pc") CONFIG_FILES="$CONFIG_FILES fontsproto.pc" ;;
13104    "glproto.pc") CONFIG_FILES="$CONFIG_FILES glproto.pc" ;;
13105    "include/X11/Xpoll.h") CONFIG_FILES="$CONFIG_FILES include/X11/Xpoll.h" ;;
13106    "inputproto.pc") CONFIG_FILES="$CONFIG_FILES inputproto.pc" ;;
13107    "kbproto.pc") CONFIG_FILES="$CONFIG_FILES kbproto.pc" ;;
13108    "lg3dproto.pc") CONFIG_FILES="$CONFIG_FILES lg3dproto.pc" ;;
13109    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13110    "presentproto.pc") CONFIG_FILES="$CONFIG_FILES presentproto.pc" ;;
13111    "printproto.pc") CONFIG_FILES="$CONFIG_FILES printproto.pc" ;;
13112    "randrproto.pc") CONFIG_FILES="$CONFIG_FILES randrproto.pc" ;;
13113    "recordproto.pc") CONFIG_FILES="$CONFIG_FILES recordproto.pc" ;;
13114    "renderproto.pc") CONFIG_FILES="$CONFIG_FILES renderproto.pc" ;;
13115    "resourceproto.pc") CONFIG_FILES="$CONFIG_FILES resourceproto.pc" ;;
13116    "scrnsaverproto.pc") CONFIG_FILES="$CONFIG_FILES scrnsaverproto.pc" ;;
13117    "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
13118    "specs/bigreqsproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/bigreqsproto/Makefile" ;;
13119    "specs/fontsproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/fontsproto/Makefile" ;;
13120    "specs/kbproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/kbproto/Makefile" ;;
13121    "specs/recordproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/recordproto/Makefile" ;;
13122    "specs/scrnsaverproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/scrnsaverproto/Makefile" ;;
13123    "specs/xcmiscproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/xcmiscproto/Makefile" ;;
13124    "specs/xextproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/xextproto/Makefile" ;;
13125    "specs/xproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/xproto/Makefile" ;;
13126    "trapproto.pc") CONFIG_FILES="$CONFIG_FILES trapproto.pc" ;;
13127    "videoproto.pc") CONFIG_FILES="$CONFIG_FILES videoproto.pc" ;;
13128    "windowswmproto.pc") CONFIG_FILES="$CONFIG_FILES windowswmproto.pc" ;;
13129    "xcalibrateproto.pc") CONFIG_FILES="$CONFIG_FILES xcalibrateproto.pc" ;;
13130    "xcmiscproto.pc") CONFIG_FILES="$CONFIG_FILES xcmiscproto.pc" ;;
13131    "xextproto.pc") CONFIG_FILES="$CONFIG_FILES xextproto.pc" ;;
13132    "xf86bigfontproto.pc") CONFIG_FILES="$CONFIG_FILES xf86bigfontproto.pc" ;;
13133    "xf86dgaproto.pc") CONFIG_FILES="$CONFIG_FILES xf86dgaproto.pc" ;;
13134    "xf86driproto.pc") CONFIG_FILES="$CONFIG_FILES xf86driproto.pc" ;;
13135    "xf86miscproto.pc") CONFIG_FILES="$CONFIG_FILES xf86miscproto.pc" ;;
13136    "xf86rushproto.pc") CONFIG_FILES="$CONFIG_FILES xf86rushproto.pc" ;;
13137    "xf86vidmodeproto.pc") CONFIG_FILES="$CONFIG_FILES xf86vidmodeproto.pc" ;;
13138    "xineramaproto.pc") CONFIG_FILES="$CONFIG_FILES xineramaproto.pc" ;;
13139    "xproto.pc") CONFIG_FILES="$CONFIG_FILES xproto.pc" ;;
13140    "xproxymngproto.pc") CONFIG_FILES="$CONFIG_FILES xproxymngproto.pc" ;;
13141    "xwaylandproto.pc") CONFIG_FILES="$CONFIG_FILES xwaylandproto.pc" ;;
13142
13143  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13144  esac
13145done
13146
13147
13148# If the user did not use the arguments to specify the items to instantiate,
13149# then the envvar interface is used.  Set only those that are not.
13150# We use the long form for the default assignment because of an extremely
13151# bizarre bug on SunOS 4.1.3.
13152if $ac_need_defaults; then
13153  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
13154  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
13155fi
13156
13157# Have a temporary directory for convenience.  Make it in the build tree
13158# simply because there is no reason against having it here, and in addition,
13159# creating and moving files from /tmp can sometimes cause problems.
13160# Hook for its removal unless debugging.
13161# Note that there is a small window in which the directory will not be cleaned:
13162# after its creation but before its name has been assigned to `$tmp'.
13163$debug ||
13164{
13165  tmp= ac_tmp=
13166  trap 'exit_status=$?
13167  : "${ac_tmp:=$tmp}"
13168  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13169' 0
13170  trap 'as_fn_exit 1' 1 2 13 15
13171}
13172# Create a (secure) tmp directory for tmp files.
13173
13174{
13175  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13176  test -d "$tmp"
13177}  ||
13178{
13179  tmp=./conf$$-$RANDOM
13180  (umask 077 && mkdir "$tmp")
13181} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13182ac_tmp=$tmp
13183
13184# Set up the scripts for CONFIG_FILES section.
13185# No need to generate them if there are no CONFIG_FILES.
13186# This happens for instance with `./config.status config.h'.
13187if test -n "$CONFIG_FILES"; then
13188
13189
13190ac_cr=`echo X | tr X '\015'`
13191# On cygwin, bash can eat \r inside `` if the user requested igncr.
13192# But we know of no other shell where ac_cr would be empty at this
13193# point, so we can use a bashism as a fallback.
13194if test "x$ac_cr" = x; then
13195  eval ac_cr=\$\'\\r\'
13196fi
13197ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13198if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13199  ac_cs_awk_cr='\\r'
13200else
13201  ac_cs_awk_cr=$ac_cr
13202fi
13203
13204echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13205_ACEOF
13206
13207
13208{
13209  echo "cat >conf$$subs.awk <<_ACEOF" &&
13210  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13211  echo "_ACEOF"
13212} >conf$$subs.sh ||
13213  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13214ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13215ac_delim='%!_!# '
13216for ac_last_try in false false false false false :; do
13217  . ./conf$$subs.sh ||
13218    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13219
13220  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13221  if test $ac_delim_n = $ac_delim_num; then
13222    break
13223  elif $ac_last_try; then
13224    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13225  else
13226    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13227  fi
13228done
13229rm -f conf$$subs.sh
13230
13231cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13232cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13233_ACEOF
13234sed -n '
13235h
13236s/^/S["/; s/!.*/"]=/
13237p
13238g
13239s/^[^!]*!//
13240:repl
13241t repl
13242s/'"$ac_delim"'$//
13243t delim
13244:nl
13245h
13246s/\(.\{148\}\)..*/\1/
13247t more1
13248s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13249p
13250n
13251b repl
13252:more1
13253s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13254p
13255g
13256s/.\{148\}//
13257t nl
13258:delim
13259h
13260s/\(.\{148\}\)..*/\1/
13261t more2
13262s/["\\]/\\&/g; s/^/"/; s/$/"/
13263p
13264b
13265:more2
13266s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13267p
13268g
13269s/.\{148\}//
13270t delim
13271' <conf$$subs.awk | sed '
13272/^[^""]/{
13273  N
13274  s/\n//
13275}
13276' >>$CONFIG_STATUS || ac_write_fail=1
13277rm -f conf$$subs.awk
13278cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13279_ACAWK
13280cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13281  for (key in S) S_is_set[key] = 1
13282  FS = ""
13283
13284}
13285{
13286  line = $ 0
13287  nfields = split(line, field, "@")
13288  substed = 0
13289  len = length(field[1])
13290  for (i = 2; i < nfields; i++) {
13291    key = field[i]
13292    keylen = length(key)
13293    if (S_is_set[key]) {
13294      value = S[key]
13295      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13296      len += length(value) + length(field[++i])
13297      substed = 1
13298    } else
13299      len += 1 + keylen
13300  }
13301
13302  print line
13303}
13304
13305_ACAWK
13306_ACEOF
13307cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13308if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13309  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13310else
13311  cat
13312fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13313  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13314_ACEOF
13315
13316# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13317# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13318# trailing colons and then remove the whole line if VPATH becomes empty
13319# (actually we leave an empty line to preserve line numbers).
13320if test "x$srcdir" = x.; then
13321  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13322h
13323s///
13324s/^/:/
13325s/[	 ]*$/:/
13326s/:\$(srcdir):/:/g
13327s/:\${srcdir}:/:/g
13328s/:@srcdir@:/:/g
13329s/^:*//
13330s/:*$//
13331x
13332s/\(=[	 ]*\).*/\1/
13333G
13334s/\n//
13335s/^[^=]*=[	 ]*$//
13336}'
13337fi
13338
13339cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13340fi # test -n "$CONFIG_FILES"
13341
13342
13343eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
13344shift
13345for ac_tag
13346do
13347  case $ac_tag in
13348  :[FHLC]) ac_mode=$ac_tag; continue;;
13349  esac
13350  case $ac_mode$ac_tag in
13351  :[FHL]*:*);;
13352  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13353  :[FH]-) ac_tag=-:-;;
13354  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13355  esac
13356  ac_save_IFS=$IFS
13357  IFS=:
13358  set x $ac_tag
13359  IFS=$ac_save_IFS
13360  shift
13361  ac_file=$1
13362  shift
13363
13364  case $ac_mode in
13365  :L) ac_source=$1;;
13366  :[FH])
13367    ac_file_inputs=
13368    for ac_f
13369    do
13370      case $ac_f in
13371      -) ac_f="$ac_tmp/stdin";;
13372      *) # Look for the file first in the build tree, then in the source tree
13373	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13374	 # because $ac_f cannot contain `:'.
13375	 test -f "$ac_f" ||
13376	   case $ac_f in
13377	   [\\/$]*) false;;
13378	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13379	   esac ||
13380	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13381      esac
13382      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13383      as_fn_append ac_file_inputs " '$ac_f'"
13384    done
13385
13386    # Let's still pretend it is `configure' which instantiates (i.e., don't
13387    # use $as_me), people would be surprised to read:
13388    #    /* config.h.  Generated by config.status.  */
13389    configure_input='Generated from '`
13390	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13391	`' by configure.'
13392    if test x"$ac_file" != x-; then
13393      configure_input="$ac_file.  $configure_input"
13394      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13395printf "%s\n" "$as_me: creating $ac_file" >&6;}
13396    fi
13397    # Neutralize special characters interpreted by sed in replacement strings.
13398    case $configure_input in #(
13399    *\&* | *\|* | *\\* )
13400       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13401       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13402    *) ac_sed_conf_input=$configure_input;;
13403    esac
13404
13405    case $ac_tag in
13406    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13407      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13408    esac
13409    ;;
13410  esac
13411
13412  ac_dir=`$as_dirname -- "$ac_file" ||
13413$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13414	 X"$ac_file" : 'X\(//\)[^/]' \| \
13415	 X"$ac_file" : 'X\(//\)$' \| \
13416	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13417printf "%s\n" X"$ac_file" |
13418    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13419	    s//\1/
13420	    q
13421	  }
13422	  /^X\(\/\/\)[^/].*/{
13423	    s//\1/
13424	    q
13425	  }
13426	  /^X\(\/\/\)$/{
13427	    s//\1/
13428	    q
13429	  }
13430	  /^X\(\/\).*/{
13431	    s//\1/
13432	    q
13433	  }
13434	  s/.*/./; q'`
13435  as_dir="$ac_dir"; as_fn_mkdir_p
13436  ac_builddir=.
13437
13438case "$ac_dir" in
13439.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13440*)
13441  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13442  # A ".." for each directory in $ac_dir_suffix.
13443  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13444  case $ac_top_builddir_sub in
13445  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13446  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13447  esac ;;
13448esac
13449ac_abs_top_builddir=$ac_pwd
13450ac_abs_builddir=$ac_pwd$ac_dir_suffix
13451# for backward compatibility:
13452ac_top_builddir=$ac_top_build_prefix
13453
13454case $srcdir in
13455  .)  # We are building in place.
13456    ac_srcdir=.
13457    ac_top_srcdir=$ac_top_builddir_sub
13458    ac_abs_top_srcdir=$ac_pwd ;;
13459  [\\/]* | ?:[\\/]* )  # Absolute name.
13460    ac_srcdir=$srcdir$ac_dir_suffix;
13461    ac_top_srcdir=$srcdir
13462    ac_abs_top_srcdir=$srcdir ;;
13463  *) # Relative name.
13464    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13465    ac_top_srcdir=$ac_top_build_prefix$srcdir
13466    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13467esac
13468ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13469
13470
13471  case $ac_mode in
13472  :F)
13473  #
13474  # CONFIG_FILE
13475  #
13476
13477  case $INSTALL in
13478  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13479  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13480  esac
13481  ac_MKDIR_P=$MKDIR_P
13482  case $MKDIR_P in
13483  [\\/$]* | ?:[\\/]* ) ;;
13484  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13485  esac
13486_ACEOF
13487
13488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13489# If the template does not know about datarootdir, expand it.
13490# FIXME: This hack should be removed a few years after 2.60.
13491ac_datarootdir_hack=; ac_datarootdir_seen=
13492ac_sed_dataroot='
13493/datarootdir/ {
13494  p
13495  q
13496}
13497/@datadir@/p
13498/@docdir@/p
13499/@infodir@/p
13500/@localedir@/p
13501/@mandir@/p'
13502case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13503*datarootdir*) ac_datarootdir_seen=yes;;
13504*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13505  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13506printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13507_ACEOF
13508cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13509  ac_datarootdir_hack='
13510  s&@datadir@&$datadir&g
13511  s&@docdir@&$docdir&g
13512  s&@infodir@&$infodir&g
13513  s&@localedir@&$localedir&g
13514  s&@mandir@&$mandir&g
13515  s&\\\${datarootdir}&$datarootdir&g' ;;
13516esac
13517_ACEOF
13518
13519# Neutralize VPATH when `$srcdir' = `.'.
13520# Shell code in configure.ac might set extrasub.
13521# FIXME: do we really want to maintain this feature?
13522cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13523ac_sed_extra="$ac_vpsub
13524$extrasub
13525_ACEOF
13526cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13527:t
13528/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13529s|@configure_input@|$ac_sed_conf_input|;t t
13530s&@top_builddir@&$ac_top_builddir_sub&;t t
13531s&@top_build_prefix@&$ac_top_build_prefix&;t t
13532s&@srcdir@&$ac_srcdir&;t t
13533s&@abs_srcdir@&$ac_abs_srcdir&;t t
13534s&@top_srcdir@&$ac_top_srcdir&;t t
13535s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13536s&@builddir@&$ac_builddir&;t t
13537s&@abs_builddir@&$ac_abs_builddir&;t t
13538s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13539s&@INSTALL@&$ac_INSTALL&;t t
13540s&@MKDIR_P@&$ac_MKDIR_P&;t t
13541$ac_datarootdir_hack
13542"
13543eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13544  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13545
13546test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13547  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13548  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13549      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13550  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13551which seems to be undefined.  Please make sure it is defined" >&5
13552printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13553which seems to be undefined.  Please make sure it is defined" >&2;}
13554
13555  rm -f "$ac_tmp/stdin"
13556  case $ac_file in
13557  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13558  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13559  esac \
13560  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13561 ;;
13562
13563
13564  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13565printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13566 ;;
13567  esac
13568
13569
13570  case $ac_file$ac_mode in
13571    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13572  # Older Autoconf quotes --file arguments for eval, but not when files
13573  # are listed without --file.  Let's play safe and only enable the eval
13574  # if we detect the quoting.
13575  # TODO: see whether this extra hack can be removed once we start
13576  # requiring Autoconf 2.70 or later.
13577  case $CONFIG_FILES in #(
13578  *\'*) :
13579    eval set x "$CONFIG_FILES" ;; #(
13580  *) :
13581    set x $CONFIG_FILES ;; #(
13582  *) :
13583     ;;
13584esac
13585  shift
13586  # Used to flag and report bootstrapping failures.
13587  am_rc=0
13588  for am_mf
13589  do
13590    # Strip MF so we end up with the name of the file.
13591    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13592    # Check whether this is an Automake generated Makefile which includes
13593    # dependency-tracking related rules and includes.
13594    # Grep'ing the whole file directly is not great: AIX grep has a line
13595    # limit of 2048, but all sed's we know have understand at least 4000.
13596    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13597      || continue
13598    am_dirpart=`$as_dirname -- "$am_mf" ||
13599$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13600	 X"$am_mf" : 'X\(//\)[^/]' \| \
13601	 X"$am_mf" : 'X\(//\)$' \| \
13602	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13603printf "%s\n" X"$am_mf" |
13604    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13605	    s//\1/
13606	    q
13607	  }
13608	  /^X\(\/\/\)[^/].*/{
13609	    s//\1/
13610	    q
13611	  }
13612	  /^X\(\/\/\)$/{
13613	    s//\1/
13614	    q
13615	  }
13616	  /^X\(\/\).*/{
13617	    s//\1/
13618	    q
13619	  }
13620	  s/.*/./; q'`
13621    am_filepart=`$as_basename -- "$am_mf" ||
13622$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13623	 X"$am_mf" : 'X\(//\)$' \| \
13624	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13625printf "%s\n" X/"$am_mf" |
13626    sed '/^.*\/\([^/][^/]*\)\/*$/{
13627	    s//\1/
13628	    q
13629	  }
13630	  /^X\/\(\/\/\)$/{
13631	    s//\1/
13632	    q
13633	  }
13634	  /^X\/\(\/\).*/{
13635	    s//\1/
13636	    q
13637	  }
13638	  s/.*/./; q'`
13639    { echo "$as_me:$LINENO: cd "$am_dirpart" \
13640      && sed -e '/# am--include-marker/d' "$am_filepart" \
13641        | $MAKE -f - am--depfiles" >&5
13642   (cd "$am_dirpart" \
13643      && sed -e '/# am--include-marker/d' "$am_filepart" \
13644        | $MAKE -f - am--depfiles) >&5 2>&5
13645   ac_status=$?
13646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647   (exit $ac_status); } || am_rc=$?
13648  done
13649  if test $am_rc -ne 0; then
13650    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13651printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13652as_fn_error $? "Something went wrong bootstrapping makefile fragments
13653    for automatic dependency tracking.  If GNU make was not used, consider
13654    re-running the configure script with MAKE=\"gmake\" (or whatever is
13655    necessary).  You can also try re-running configure with the
13656    '--disable-dependency-tracking' option to at least be able to build
13657    the package (albeit without support for automatic dependency tracking).
13658See \`config.log' for more details" "$LINENO" 5; }
13659  fi
13660  { am_dirpart=; unset am_dirpart;}
13661  { am_filepart=; unset am_filepart;}
13662  { am_mf=; unset am_mf;}
13663  { am_rc=; unset am_rc;}
13664  rm -f conftest-deps.mk
13665}
13666 ;;
13667
13668  esac
13669done # for ac_tag
13670
13671
13672as_fn_exit 0
13673_ACEOF
13674ac_clean_files=$ac_clean_files_save
13675
13676test $ac_write_fail = 0 ||
13677  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13678
13679
13680# configure is writing to config.log, and then calls config.status.
13681# config.status does its own redirection, appending to config.log.
13682# Unfortunately, on DOS this fails, as config.log is still kept open
13683# by configure, so config.status won't be able to write to it; its
13684# output is simply discarded.  So we exec the FD to /dev/null,
13685# effectively closing config.log, so it can be properly (re)opened and
13686# appended to by config.status.  When coming back to configure, we
13687# need to make the FD available again.
13688if test "$no_create" != yes; then
13689  ac_cs_success=:
13690  ac_config_status_args=
13691  test "$silent" = yes &&
13692    ac_config_status_args="$ac_config_status_args --quiet"
13693  exec 5>/dev/null
13694  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13695  exec 5>>config.log
13696  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13697  # would make configure fail if this is the last instruction.
13698  $ac_cs_success || as_fn_exit 1
13699fi
13700if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13701  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13702printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13703fi
13704
13705
13706