configure revision 635a5eb8
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xorgproto 2024.1.
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='2024.1'
676PACKAGE_STRING='xorgproto 2024.1'
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 2024.1 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 2024.1:";;
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 2024.1
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 2024.1, 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='2024.1'
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{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4541printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4542if test ${ac_cv_c_undeclared_builtin_options+y}
4543then :
4544  printf %s "(cached) " >&6
4545else $as_nop
4546  ac_save_CFLAGS=$CFLAGS
4547   ac_cv_c_undeclared_builtin_options='cannot detect'
4548   for ac_arg in '' -fno-builtin; do
4549     CFLAGS="$ac_save_CFLAGS $ac_arg"
4550     # This test program should *not* compile successfully.
4551     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552/* end confdefs.h.  */
4553
4554int
4555main (void)
4556{
4557(void) strchr;
4558  ;
4559  return 0;
4560}
4561_ACEOF
4562if ac_fn_c_try_compile "$LINENO"
4563then :
4564
4565else $as_nop
4566  # This test program should compile successfully.
4567        # No library function is consistently available on
4568        # freestanding implementations, so test against a dummy
4569        # declaration.  Include always-available headers on the
4570        # off chance that they somehow elicit warnings.
4571        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572/* end confdefs.h.  */
4573#include <float.h>
4574#include <limits.h>
4575#include <stdarg.h>
4576#include <stddef.h>
4577extern void ac_decl (int, char *);
4578
4579int
4580main (void)
4581{
4582(void) ac_decl (0, (char *) 0);
4583  (void) ac_decl;
4584
4585  ;
4586  return 0;
4587}
4588_ACEOF
4589if ac_fn_c_try_compile "$LINENO"
4590then :
4591  if test x"$ac_arg" = x
4592then :
4593  ac_cv_c_undeclared_builtin_options='none needed'
4594else $as_nop
4595  ac_cv_c_undeclared_builtin_options=$ac_arg
4596fi
4597          break
4598fi
4599rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4600fi
4601rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4602    done
4603    CFLAGS=$ac_save_CFLAGS
4604
4605fi
4606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4607printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4608  case $ac_cv_c_undeclared_builtin_options in #(
4609  'cannot detect') :
4610    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4611printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4612as_fn_error $? "cannot make $CC report undeclared builtins
4613See \`config.log' for more details" "$LINENO" 5; } ;; #(
4614  'none needed') :
4615    ac_c_undeclared_builtin_options='' ;; #(
4616  *) :
4617    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4618esac
4619
4620ac_header= ac_cache=
4621for ac_item in $ac_header_c_list
4622do
4623  if test $ac_cache; then
4624    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4625    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4626      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4627    fi
4628    ac_header= ac_cache=
4629  elif test $ac_header; then
4630    ac_cache=$ac_item
4631  else
4632    ac_header=$ac_item
4633  fi
4634done
4635
4636
4637
4638
4639
4640
4641
4642
4643if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4644then :
4645
4646printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4647
4648fi
4649
4650
4651
4652
4653ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4654if test "x$ac_cv_have_decl___clang__" = xyes
4655then :
4656  CLANGCC="yes"
4657else $as_nop
4658  CLANGCC="no"
4659fi
4660ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4661if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4662then :
4663  INTELCC="yes"
4664else $as_nop
4665  INTELCC="no"
4666fi
4667ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4668if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4669then :
4670  SUNCC="yes"
4671else $as_nop
4672  SUNCC="no"
4673fi
4674
4675
4676
4677
4678
4679
4680
4681
4682if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4683	if test -n "$ac_tool_prefix"; then
4684  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4685set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687printf %s "checking for $ac_word... " >&6; }
4688if test ${ac_cv_path_PKG_CONFIG+y}
4689then :
4690  printf %s "(cached) " >&6
4691else $as_nop
4692  case $PKG_CONFIG in
4693  [\\/]* | ?:[\\/]*)
4694  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4695  ;;
4696  *)
4697  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698for as_dir in $PATH
4699do
4700  IFS=$as_save_IFS
4701  case $as_dir in #(((
4702    '') as_dir=./ ;;
4703    */) ;;
4704    *) as_dir=$as_dir/ ;;
4705  esac
4706    for ac_exec_ext in '' $ac_executable_extensions; do
4707  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4708    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4709    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4710    break 2
4711  fi
4712done
4713  done
4714IFS=$as_save_IFS
4715
4716  ;;
4717esac
4718fi
4719PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4720if test -n "$PKG_CONFIG"; then
4721  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4722printf "%s\n" "$PKG_CONFIG" >&6; }
4723else
4724  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725printf "%s\n" "no" >&6; }
4726fi
4727
4728
4729fi
4730if test -z "$ac_cv_path_PKG_CONFIG"; then
4731  ac_pt_PKG_CONFIG=$PKG_CONFIG
4732  # Extract the first word of "pkg-config", so it can be a program name with args.
4733set dummy pkg-config; ac_word=$2
4734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4735printf %s "checking for $ac_word... " >&6; }
4736if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4737then :
4738  printf %s "(cached) " >&6
4739else $as_nop
4740  case $ac_pt_PKG_CONFIG in
4741  [\\/]* | ?:[\\/]*)
4742  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4743  ;;
4744  *)
4745  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746for as_dir in $PATH
4747do
4748  IFS=$as_save_IFS
4749  case $as_dir in #(((
4750    '') as_dir=./ ;;
4751    */) ;;
4752    *) as_dir=$as_dir/ ;;
4753  esac
4754    for ac_exec_ext in '' $ac_executable_extensions; do
4755  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4756    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4757    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4758    break 2
4759  fi
4760done
4761  done
4762IFS=$as_save_IFS
4763
4764  ;;
4765esac
4766fi
4767ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4768if test -n "$ac_pt_PKG_CONFIG"; then
4769  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4770printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4771else
4772  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773printf "%s\n" "no" >&6; }
4774fi
4775
4776  if test "x$ac_pt_PKG_CONFIG" = x; then
4777    PKG_CONFIG=""
4778  else
4779    case $cross_compiling:$ac_tool_warned in
4780yes:)
4781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4782printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4783ac_tool_warned=yes ;;
4784esac
4785    PKG_CONFIG=$ac_pt_PKG_CONFIG
4786  fi
4787else
4788  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4789fi
4790
4791fi
4792if test -n "$PKG_CONFIG"; then
4793	_pkg_min_version=0.9.0
4794	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4795printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4796	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4797		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4798printf "%s\n" "yes" >&6; }
4799	else
4800		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801printf "%s\n" "no" >&6; }
4802		PKG_CONFIG=""
4803	fi
4804fi
4805
4806
4807  # Make sure we can run config.sub.
4808$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4809  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4810
4811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4812printf %s "checking build system type... " >&6; }
4813if test ${ac_cv_build+y}
4814then :
4815  printf %s "(cached) " >&6
4816else $as_nop
4817  ac_build_alias=$build_alias
4818test "x$ac_build_alias" = x &&
4819  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4820test "x$ac_build_alias" = x &&
4821  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4822ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4823  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4824
4825fi
4826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4827printf "%s\n" "$ac_cv_build" >&6; }
4828case $ac_cv_build in
4829*-*-*) ;;
4830*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4831esac
4832build=$ac_cv_build
4833ac_save_IFS=$IFS; IFS='-'
4834set x $ac_cv_build
4835shift
4836build_cpu=$1
4837build_vendor=$2
4838shift; shift
4839# Remember, the first character of IFS is used to create $*,
4840# except with old shells:
4841build_os=$*
4842IFS=$ac_save_IFS
4843case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4844
4845
4846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4847printf %s "checking host system type... " >&6; }
4848if test ${ac_cv_host+y}
4849then :
4850  printf %s "(cached) " >&6
4851else $as_nop
4852  if test "x$host_alias" = x; then
4853  ac_cv_host=$ac_cv_build
4854else
4855  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4856    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4857fi
4858
4859fi
4860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4861printf "%s\n" "$ac_cv_host" >&6; }
4862case $ac_cv_host in
4863*-*-*) ;;
4864*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4865esac
4866host=$ac_cv_host
4867ac_save_IFS=$IFS; IFS='-'
4868set x $ac_cv_host
4869shift
4870host_cpu=$1
4871host_vendor=$2
4872shift; shift
4873# Remember, the first character of IFS is used to create $*,
4874# except with old shells:
4875host_os=$*
4876IFS=$ac_save_IFS
4877case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4878
4879
4880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4881printf %s "checking for a sed that does not truncate output... " >&6; }
4882if test ${ac_cv_path_SED+y}
4883then :
4884  printf %s "(cached) " >&6
4885else $as_nop
4886            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4887     for ac_i in 1 2 3 4 5 6 7; do
4888       ac_script="$ac_script$as_nl$ac_script"
4889     done
4890     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4891     { ac_script=; unset ac_script;}
4892     if test -z "$SED"; then
4893  ac_path_SED_found=false
4894  # Loop through the user's path and test for each of PROGNAME-LIST
4895  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896for as_dir in $PATH
4897do
4898  IFS=$as_save_IFS
4899  case $as_dir in #(((
4900    '') as_dir=./ ;;
4901    */) ;;
4902    *) as_dir=$as_dir/ ;;
4903  esac
4904    for ac_prog in sed gsed
4905   do
4906    for ac_exec_ext in '' $ac_executable_extensions; do
4907      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4908      as_fn_executable_p "$ac_path_SED" || continue
4909# Check for GNU ac_path_SED and select it if it is found.
4910  # Check for GNU $ac_path_SED
4911case `"$ac_path_SED" --version 2>&1` in
4912*GNU*)
4913  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4914*)
4915  ac_count=0
4916  printf %s 0123456789 >"conftest.in"
4917  while :
4918  do
4919    cat "conftest.in" "conftest.in" >"conftest.tmp"
4920    mv "conftest.tmp" "conftest.in"
4921    cp "conftest.in" "conftest.nl"
4922    printf "%s\n" '' >> "conftest.nl"
4923    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4924    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4925    as_fn_arith $ac_count + 1 && ac_count=$as_val
4926    if test $ac_count -gt ${ac_path_SED_max-0}; then
4927      # Best one so far, save it but keep looking for a better one
4928      ac_cv_path_SED="$ac_path_SED"
4929      ac_path_SED_max=$ac_count
4930    fi
4931    # 10*(2^10) chars as input seems more than enough
4932    test $ac_count -gt 10 && break
4933  done
4934  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4935esac
4936
4937      $ac_path_SED_found && break 3
4938    done
4939  done
4940  done
4941IFS=$as_save_IFS
4942  if test -z "$ac_cv_path_SED"; then
4943    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4944  fi
4945else
4946  ac_cv_path_SED=$SED
4947fi
4948
4949fi
4950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4951printf "%s\n" "$ac_cv_path_SED" >&6; }
4952 SED="$ac_cv_path_SED"
4953  rm -f conftest.sed
4954
4955
4956
4957
4958
4959
4960# Check whether --enable-selective-werror was given.
4961if test ${enable_selective_werror+y}
4962then :
4963  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4964else $as_nop
4965  SELECTIVE_WERROR=yes
4966fi
4967
4968
4969
4970
4971
4972# -v is too short to test reliably with XORG_TESTSET_CFLAG
4973if test "x$SUNCC" = "xyes"; then
4974    BASE_CFLAGS="-v"
4975else
4976    BASE_CFLAGS=""
4977fi
4978
4979# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993xorg_testset_save_CFLAGS="$CFLAGS"
4994
4995if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4996	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4997	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4998printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4999if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5000then :
5001  printf %s "(cached) " >&6
5002else $as_nop
5003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004/* end confdefs.h.  */
5005int i;
5006_ACEOF
5007if ac_fn_c_try_compile "$LINENO"
5008then :
5009  xorg_cv_cc_flag_unknown_warning_option=yes
5010else $as_nop
5011  xorg_cv_cc_flag_unknown_warning_option=no
5012fi
5013rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5014fi
5015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5016printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5017	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5018	CFLAGS="$xorg_testset_save_CFLAGS"
5019fi
5020
5021if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5022	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5023		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5024	fi
5025	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5026	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5027printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5028if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5029then :
5030  printf %s "(cached) " >&6
5031else $as_nop
5032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5033/* end confdefs.h.  */
5034int i;
5035_ACEOF
5036if ac_fn_c_try_compile "$LINENO"
5037then :
5038  xorg_cv_cc_flag_unused_command_line_argument=yes
5039else $as_nop
5040  xorg_cv_cc_flag_unused_command_line_argument=no
5041fi
5042rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5043fi
5044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5045printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5046	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5047	CFLAGS="$xorg_testset_save_CFLAGS"
5048fi
5049
5050found="no"
5051
5052	if test $found = "no" ; then
5053		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5054			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5055		fi
5056
5057		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5058			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5059		fi
5060
5061		CFLAGS="$CFLAGS -Wall"
5062
5063		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5064printf %s "checking if $CC supports -Wall... " >&6; }
5065		cacheid=xorg_cv_cc_flag__Wall
5066		if eval test \${$cacheid+y}
5067then :
5068  printf %s "(cached) " >&6
5069else $as_nop
5070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071/* end confdefs.h.  */
5072int i;
5073int
5074main (void)
5075{
5076
5077  ;
5078  return 0;
5079}
5080_ACEOF
5081if ac_fn_c_try_link "$LINENO"
5082then :
5083  eval $cacheid=yes
5084else $as_nop
5085  eval $cacheid=no
5086fi
5087rm -f core conftest.err conftest.$ac_objext conftest.beam \
5088    conftest$ac_exeext conftest.$ac_ext
5089fi
5090
5091
5092		CFLAGS="$xorg_testset_save_CFLAGS"
5093
5094		eval supported=\$$cacheid
5095		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5096printf "%s\n" "$supported" >&6; }
5097		if test "$supported" = "yes" ; then
5098			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5099			found="yes"
5100		fi
5101	fi
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117xorg_testset_save_CFLAGS="$CFLAGS"
5118
5119if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5120	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5121	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5122printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5123if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5124then :
5125  printf %s "(cached) " >&6
5126else $as_nop
5127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128/* end confdefs.h.  */
5129int i;
5130_ACEOF
5131if ac_fn_c_try_compile "$LINENO"
5132then :
5133  xorg_cv_cc_flag_unknown_warning_option=yes
5134else $as_nop
5135  xorg_cv_cc_flag_unknown_warning_option=no
5136fi
5137rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5138fi
5139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5140printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5141	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5142	CFLAGS="$xorg_testset_save_CFLAGS"
5143fi
5144
5145if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5146	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5147		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5148	fi
5149	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5150	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5151printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5152if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5153then :
5154  printf %s "(cached) " >&6
5155else $as_nop
5156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5157/* end confdefs.h.  */
5158int i;
5159_ACEOF
5160if ac_fn_c_try_compile "$LINENO"
5161then :
5162  xorg_cv_cc_flag_unused_command_line_argument=yes
5163else $as_nop
5164  xorg_cv_cc_flag_unused_command_line_argument=no
5165fi
5166rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5167fi
5168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5169printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5170	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5171	CFLAGS="$xorg_testset_save_CFLAGS"
5172fi
5173
5174found="no"
5175
5176	if test $found = "no" ; then
5177		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5178			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5179		fi
5180
5181		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5182			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5183		fi
5184
5185		CFLAGS="$CFLAGS -Wpointer-arith"
5186
5187		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5188printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5189		cacheid=xorg_cv_cc_flag__Wpointer_arith
5190		if eval test \${$cacheid+y}
5191then :
5192  printf %s "(cached) " >&6
5193else $as_nop
5194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195/* end confdefs.h.  */
5196int i;
5197int
5198main (void)
5199{
5200
5201  ;
5202  return 0;
5203}
5204_ACEOF
5205if ac_fn_c_try_link "$LINENO"
5206then :
5207  eval $cacheid=yes
5208else $as_nop
5209  eval $cacheid=no
5210fi
5211rm -f core conftest.err conftest.$ac_objext conftest.beam \
5212    conftest$ac_exeext conftest.$ac_ext
5213fi
5214
5215
5216		CFLAGS="$xorg_testset_save_CFLAGS"
5217
5218		eval supported=\$$cacheid
5219		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5220printf "%s\n" "$supported" >&6; }
5221		if test "$supported" = "yes" ; then
5222			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5223			found="yes"
5224		fi
5225	fi
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241xorg_testset_save_CFLAGS="$CFLAGS"
5242
5243if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5244	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5245	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5246printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5247if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5248then :
5249  printf %s "(cached) " >&6
5250else $as_nop
5251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252/* end confdefs.h.  */
5253int i;
5254_ACEOF
5255if ac_fn_c_try_compile "$LINENO"
5256then :
5257  xorg_cv_cc_flag_unknown_warning_option=yes
5258else $as_nop
5259  xorg_cv_cc_flag_unknown_warning_option=no
5260fi
5261rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5262fi
5263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5264printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5265	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5266	CFLAGS="$xorg_testset_save_CFLAGS"
5267fi
5268
5269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5270	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5271		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5272	fi
5273	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5274	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5275printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5276if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5277then :
5278  printf %s "(cached) " >&6
5279else $as_nop
5280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281/* end confdefs.h.  */
5282int i;
5283_ACEOF
5284if ac_fn_c_try_compile "$LINENO"
5285then :
5286  xorg_cv_cc_flag_unused_command_line_argument=yes
5287else $as_nop
5288  xorg_cv_cc_flag_unused_command_line_argument=no
5289fi
5290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5291fi
5292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5293printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5294	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5295	CFLAGS="$xorg_testset_save_CFLAGS"
5296fi
5297
5298found="no"
5299
5300	if test $found = "no" ; then
5301		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5302			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5303		fi
5304
5305		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5306			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5307		fi
5308
5309		CFLAGS="$CFLAGS -Wmissing-declarations"
5310
5311		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5312printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5313		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5314		if eval test \${$cacheid+y}
5315then :
5316  printf %s "(cached) " >&6
5317else $as_nop
5318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319/* end confdefs.h.  */
5320int i;
5321int
5322main (void)
5323{
5324
5325  ;
5326  return 0;
5327}
5328_ACEOF
5329if ac_fn_c_try_link "$LINENO"
5330then :
5331  eval $cacheid=yes
5332else $as_nop
5333  eval $cacheid=no
5334fi
5335rm -f core conftest.err conftest.$ac_objext conftest.beam \
5336    conftest$ac_exeext conftest.$ac_ext
5337fi
5338
5339
5340		CFLAGS="$xorg_testset_save_CFLAGS"
5341
5342		eval supported=\$$cacheid
5343		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5344printf "%s\n" "$supported" >&6; }
5345		if test "$supported" = "yes" ; then
5346			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5347			found="yes"
5348		fi
5349	fi
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365xorg_testset_save_CFLAGS="$CFLAGS"
5366
5367if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5368	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5369	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5370printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5371if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5372then :
5373  printf %s "(cached) " >&6
5374else $as_nop
5375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376/* end confdefs.h.  */
5377int i;
5378_ACEOF
5379if ac_fn_c_try_compile "$LINENO"
5380then :
5381  xorg_cv_cc_flag_unknown_warning_option=yes
5382else $as_nop
5383  xorg_cv_cc_flag_unknown_warning_option=no
5384fi
5385rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5386fi
5387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5388printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5389	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5390	CFLAGS="$xorg_testset_save_CFLAGS"
5391fi
5392
5393if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5394	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5395		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5396	fi
5397	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5398	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5399printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5400if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5401then :
5402  printf %s "(cached) " >&6
5403else $as_nop
5404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405/* end confdefs.h.  */
5406int i;
5407_ACEOF
5408if ac_fn_c_try_compile "$LINENO"
5409then :
5410  xorg_cv_cc_flag_unused_command_line_argument=yes
5411else $as_nop
5412  xorg_cv_cc_flag_unused_command_line_argument=no
5413fi
5414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5415fi
5416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5417printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5418	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5419	CFLAGS="$xorg_testset_save_CFLAGS"
5420fi
5421
5422found="no"
5423
5424	if test $found = "no" ; then
5425		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5426			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5427		fi
5428
5429		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5430			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5431		fi
5432
5433		CFLAGS="$CFLAGS -Wformat=2"
5434
5435		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5436printf %s "checking if $CC supports -Wformat=2... " >&6; }
5437		cacheid=xorg_cv_cc_flag__Wformat_2
5438		if eval test \${$cacheid+y}
5439then :
5440  printf %s "(cached) " >&6
5441else $as_nop
5442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443/* end confdefs.h.  */
5444int i;
5445int
5446main (void)
5447{
5448
5449  ;
5450  return 0;
5451}
5452_ACEOF
5453if ac_fn_c_try_link "$LINENO"
5454then :
5455  eval $cacheid=yes
5456else $as_nop
5457  eval $cacheid=no
5458fi
5459rm -f core conftest.err conftest.$ac_objext conftest.beam \
5460    conftest$ac_exeext conftest.$ac_ext
5461fi
5462
5463
5464		CFLAGS="$xorg_testset_save_CFLAGS"
5465
5466		eval supported=\$$cacheid
5467		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5468printf "%s\n" "$supported" >&6; }
5469		if test "$supported" = "yes" ; then
5470			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5471			found="yes"
5472		fi
5473	fi
5474
5475	if test $found = "no" ; then
5476		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5477			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5478		fi
5479
5480		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5481			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5482		fi
5483
5484		CFLAGS="$CFLAGS -Wformat"
5485
5486		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5487printf %s "checking if $CC supports -Wformat... " >&6; }
5488		cacheid=xorg_cv_cc_flag__Wformat
5489		if eval test \${$cacheid+y}
5490then :
5491  printf %s "(cached) " >&6
5492else $as_nop
5493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494/* end confdefs.h.  */
5495int i;
5496int
5497main (void)
5498{
5499
5500  ;
5501  return 0;
5502}
5503_ACEOF
5504if ac_fn_c_try_link "$LINENO"
5505then :
5506  eval $cacheid=yes
5507else $as_nop
5508  eval $cacheid=no
5509fi
5510rm -f core conftest.err conftest.$ac_objext conftest.beam \
5511    conftest$ac_exeext conftest.$ac_ext
5512fi
5513
5514
5515		CFLAGS="$xorg_testset_save_CFLAGS"
5516
5517		eval supported=\$$cacheid
5518		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5519printf "%s\n" "$supported" >&6; }
5520		if test "$supported" = "yes" ; then
5521			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5522			found="yes"
5523		fi
5524	fi
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542xorg_testset_save_CFLAGS="$CFLAGS"
5543
5544if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5545	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5546	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5547printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5548if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5549then :
5550  printf %s "(cached) " >&6
5551else $as_nop
5552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553/* end confdefs.h.  */
5554int i;
5555_ACEOF
5556if ac_fn_c_try_compile "$LINENO"
5557then :
5558  xorg_cv_cc_flag_unknown_warning_option=yes
5559else $as_nop
5560  xorg_cv_cc_flag_unknown_warning_option=no
5561fi
5562rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5563fi
5564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5565printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5566	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5567	CFLAGS="$xorg_testset_save_CFLAGS"
5568fi
5569
5570if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5571	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5572		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5573	fi
5574	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5575	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5576printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5577if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5578then :
5579  printf %s "(cached) " >&6
5580else $as_nop
5581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5582/* end confdefs.h.  */
5583int i;
5584_ACEOF
5585if ac_fn_c_try_compile "$LINENO"
5586then :
5587  xorg_cv_cc_flag_unused_command_line_argument=yes
5588else $as_nop
5589  xorg_cv_cc_flag_unused_command_line_argument=no
5590fi
5591rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5592fi
5593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5594printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5595	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5596	CFLAGS="$xorg_testset_save_CFLAGS"
5597fi
5598
5599found="no"
5600
5601	if test $found = "no" ; then
5602		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5603			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5604		fi
5605
5606		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5607			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5608		fi
5609
5610		CFLAGS="$CFLAGS -Wstrict-prototypes"
5611
5612		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5613printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5614		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5615		if eval test \${$cacheid+y}
5616then :
5617  printf %s "(cached) " >&6
5618else $as_nop
5619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5620/* end confdefs.h.  */
5621int i;
5622int
5623main (void)
5624{
5625
5626  ;
5627  return 0;
5628}
5629_ACEOF
5630if ac_fn_c_try_link "$LINENO"
5631then :
5632  eval $cacheid=yes
5633else $as_nop
5634  eval $cacheid=no
5635fi
5636rm -f core conftest.err conftest.$ac_objext conftest.beam \
5637    conftest$ac_exeext conftest.$ac_ext
5638fi
5639
5640
5641		CFLAGS="$xorg_testset_save_CFLAGS"
5642
5643		eval supported=\$$cacheid
5644		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5645printf "%s\n" "$supported" >&6; }
5646		if test "$supported" = "yes" ; then
5647			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5648			found="yes"
5649		fi
5650	fi
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666xorg_testset_save_CFLAGS="$CFLAGS"
5667
5668if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5669	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5670	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5671printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5672if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5673then :
5674  printf %s "(cached) " >&6
5675else $as_nop
5676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677/* end confdefs.h.  */
5678int i;
5679_ACEOF
5680if ac_fn_c_try_compile "$LINENO"
5681then :
5682  xorg_cv_cc_flag_unknown_warning_option=yes
5683else $as_nop
5684  xorg_cv_cc_flag_unknown_warning_option=no
5685fi
5686rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5687fi
5688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5689printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5690	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5691	CFLAGS="$xorg_testset_save_CFLAGS"
5692fi
5693
5694if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5695	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5696		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5697	fi
5698	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5699	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5700printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5701if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5702then :
5703  printf %s "(cached) " >&6
5704else $as_nop
5705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706/* end confdefs.h.  */
5707int i;
5708_ACEOF
5709if ac_fn_c_try_compile "$LINENO"
5710then :
5711  xorg_cv_cc_flag_unused_command_line_argument=yes
5712else $as_nop
5713  xorg_cv_cc_flag_unused_command_line_argument=no
5714fi
5715rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5716fi
5717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5718printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5719	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5720	CFLAGS="$xorg_testset_save_CFLAGS"
5721fi
5722
5723found="no"
5724
5725	if test $found = "no" ; then
5726		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5727			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5728		fi
5729
5730		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5731			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5732		fi
5733
5734		CFLAGS="$CFLAGS -Wmissing-prototypes"
5735
5736		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5737printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5738		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5739		if eval test \${$cacheid+y}
5740then :
5741  printf %s "(cached) " >&6
5742else $as_nop
5743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5744/* end confdefs.h.  */
5745int i;
5746int
5747main (void)
5748{
5749
5750  ;
5751  return 0;
5752}
5753_ACEOF
5754if ac_fn_c_try_link "$LINENO"
5755then :
5756  eval $cacheid=yes
5757else $as_nop
5758  eval $cacheid=no
5759fi
5760rm -f core conftest.err conftest.$ac_objext conftest.beam \
5761    conftest$ac_exeext conftest.$ac_ext
5762fi
5763
5764
5765		CFLAGS="$xorg_testset_save_CFLAGS"
5766
5767		eval supported=\$$cacheid
5768		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5769printf "%s\n" "$supported" >&6; }
5770		if test "$supported" = "yes" ; then
5771			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5772			found="yes"
5773		fi
5774	fi
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790xorg_testset_save_CFLAGS="$CFLAGS"
5791
5792if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5793	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5794	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5795printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5796if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5797then :
5798  printf %s "(cached) " >&6
5799else $as_nop
5800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5801/* end confdefs.h.  */
5802int i;
5803_ACEOF
5804if ac_fn_c_try_compile "$LINENO"
5805then :
5806  xorg_cv_cc_flag_unknown_warning_option=yes
5807else $as_nop
5808  xorg_cv_cc_flag_unknown_warning_option=no
5809fi
5810rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5811fi
5812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5813printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5814	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5815	CFLAGS="$xorg_testset_save_CFLAGS"
5816fi
5817
5818if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5819	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5820		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5821	fi
5822	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5823	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5824printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5825if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5826then :
5827  printf %s "(cached) " >&6
5828else $as_nop
5829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5830/* end confdefs.h.  */
5831int i;
5832_ACEOF
5833if ac_fn_c_try_compile "$LINENO"
5834then :
5835  xorg_cv_cc_flag_unused_command_line_argument=yes
5836else $as_nop
5837  xorg_cv_cc_flag_unused_command_line_argument=no
5838fi
5839rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5840fi
5841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5842printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5843	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5844	CFLAGS="$xorg_testset_save_CFLAGS"
5845fi
5846
5847found="no"
5848
5849	if test $found = "no" ; then
5850		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5851			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5852		fi
5853
5854		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5855			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5856		fi
5857
5858		CFLAGS="$CFLAGS -Wnested-externs"
5859
5860		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5861printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5862		cacheid=xorg_cv_cc_flag__Wnested_externs
5863		if eval test \${$cacheid+y}
5864then :
5865  printf %s "(cached) " >&6
5866else $as_nop
5867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868/* end confdefs.h.  */
5869int i;
5870int
5871main (void)
5872{
5873
5874  ;
5875  return 0;
5876}
5877_ACEOF
5878if ac_fn_c_try_link "$LINENO"
5879then :
5880  eval $cacheid=yes
5881else $as_nop
5882  eval $cacheid=no
5883fi
5884rm -f core conftest.err conftest.$ac_objext conftest.beam \
5885    conftest$ac_exeext conftest.$ac_ext
5886fi
5887
5888
5889		CFLAGS="$xorg_testset_save_CFLAGS"
5890
5891		eval supported=\$$cacheid
5892		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5893printf "%s\n" "$supported" >&6; }
5894		if test "$supported" = "yes" ; then
5895			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5896			found="yes"
5897		fi
5898	fi
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914xorg_testset_save_CFLAGS="$CFLAGS"
5915
5916if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5917	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5918	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5919printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5920if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5921then :
5922  printf %s "(cached) " >&6
5923else $as_nop
5924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925/* end confdefs.h.  */
5926int i;
5927_ACEOF
5928if ac_fn_c_try_compile "$LINENO"
5929then :
5930  xorg_cv_cc_flag_unknown_warning_option=yes
5931else $as_nop
5932  xorg_cv_cc_flag_unknown_warning_option=no
5933fi
5934rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5935fi
5936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5937printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5938	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5939	CFLAGS="$xorg_testset_save_CFLAGS"
5940fi
5941
5942if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5943	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5944		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5945	fi
5946	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5947	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5948printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5949if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5950then :
5951  printf %s "(cached) " >&6
5952else $as_nop
5953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954/* end confdefs.h.  */
5955int i;
5956_ACEOF
5957if ac_fn_c_try_compile "$LINENO"
5958then :
5959  xorg_cv_cc_flag_unused_command_line_argument=yes
5960else $as_nop
5961  xorg_cv_cc_flag_unused_command_line_argument=no
5962fi
5963rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5964fi
5965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5966printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5967	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5968	CFLAGS="$xorg_testset_save_CFLAGS"
5969fi
5970
5971found="no"
5972
5973	if test $found = "no" ; then
5974		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5975			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5976		fi
5977
5978		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5979			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5980		fi
5981
5982		CFLAGS="$CFLAGS -Wbad-function-cast"
5983
5984		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5985printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5986		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5987		if eval test \${$cacheid+y}
5988then :
5989  printf %s "(cached) " >&6
5990else $as_nop
5991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992/* end confdefs.h.  */
5993int i;
5994int
5995main (void)
5996{
5997
5998  ;
5999  return 0;
6000}
6001_ACEOF
6002if ac_fn_c_try_link "$LINENO"
6003then :
6004  eval $cacheid=yes
6005else $as_nop
6006  eval $cacheid=no
6007fi
6008rm -f core conftest.err conftest.$ac_objext conftest.beam \
6009    conftest$ac_exeext conftest.$ac_ext
6010fi
6011
6012
6013		CFLAGS="$xorg_testset_save_CFLAGS"
6014
6015		eval supported=\$$cacheid
6016		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6017printf "%s\n" "$supported" >&6; }
6018		if test "$supported" = "yes" ; then
6019			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6020			found="yes"
6021		fi
6022	fi
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038xorg_testset_save_CFLAGS="$CFLAGS"
6039
6040if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6041	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6042	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6043printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6044if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6045then :
6046  printf %s "(cached) " >&6
6047else $as_nop
6048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049/* end confdefs.h.  */
6050int i;
6051_ACEOF
6052if ac_fn_c_try_compile "$LINENO"
6053then :
6054  xorg_cv_cc_flag_unknown_warning_option=yes
6055else $as_nop
6056  xorg_cv_cc_flag_unknown_warning_option=no
6057fi
6058rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6059fi
6060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6061printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6062	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6063	CFLAGS="$xorg_testset_save_CFLAGS"
6064fi
6065
6066if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6067	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6068		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6069	fi
6070	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6071	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6072printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6073if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6074then :
6075  printf %s "(cached) " >&6
6076else $as_nop
6077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6078/* end confdefs.h.  */
6079int i;
6080_ACEOF
6081if ac_fn_c_try_compile "$LINENO"
6082then :
6083  xorg_cv_cc_flag_unused_command_line_argument=yes
6084else $as_nop
6085  xorg_cv_cc_flag_unused_command_line_argument=no
6086fi
6087rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6088fi
6089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6090printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6091	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6092	CFLAGS="$xorg_testset_save_CFLAGS"
6093fi
6094
6095found="no"
6096
6097	if test $found = "no" ; then
6098		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6099			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6100		fi
6101
6102		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6103			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6104		fi
6105
6106		CFLAGS="$CFLAGS -Wold-style-definition"
6107
6108		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6109printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6110		cacheid=xorg_cv_cc_flag__Wold_style_definition
6111		if eval test \${$cacheid+y}
6112then :
6113  printf %s "(cached) " >&6
6114else $as_nop
6115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116/* end confdefs.h.  */
6117int i;
6118int
6119main (void)
6120{
6121
6122  ;
6123  return 0;
6124}
6125_ACEOF
6126if ac_fn_c_try_link "$LINENO"
6127then :
6128  eval $cacheid=yes
6129else $as_nop
6130  eval $cacheid=no
6131fi
6132rm -f core conftest.err conftest.$ac_objext conftest.beam \
6133    conftest$ac_exeext conftest.$ac_ext
6134fi
6135
6136
6137		CFLAGS="$xorg_testset_save_CFLAGS"
6138
6139		eval supported=\$$cacheid
6140		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6141printf "%s\n" "$supported" >&6; }
6142		if test "$supported" = "yes" ; then
6143			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6144			found="yes"
6145		fi
6146	fi
6147
6148	if test $found = "no" ; then
6149		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6150			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6151		fi
6152
6153		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6154			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6155		fi
6156
6157		CFLAGS="$CFLAGS -fd"
6158
6159		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6160printf %s "checking if $CC supports -fd... " >&6; }
6161		cacheid=xorg_cv_cc_flag__fd
6162		if eval test \${$cacheid+y}
6163then :
6164  printf %s "(cached) " >&6
6165else $as_nop
6166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6167/* end confdefs.h.  */
6168int i;
6169int
6170main (void)
6171{
6172
6173  ;
6174  return 0;
6175}
6176_ACEOF
6177if ac_fn_c_try_link "$LINENO"
6178then :
6179  eval $cacheid=yes
6180else $as_nop
6181  eval $cacheid=no
6182fi
6183rm -f core conftest.err conftest.$ac_objext conftest.beam \
6184    conftest$ac_exeext conftest.$ac_ext
6185fi
6186
6187
6188		CFLAGS="$xorg_testset_save_CFLAGS"
6189
6190		eval supported=\$$cacheid
6191		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6192printf "%s\n" "$supported" >&6; }
6193		if test "$supported" = "yes" ; then
6194			BASE_CFLAGS="$BASE_CFLAGS -fd"
6195			found="yes"
6196		fi
6197	fi
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213xorg_testset_save_CFLAGS="$CFLAGS"
6214
6215if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6216	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6217	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6218printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6219if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6220then :
6221  printf %s "(cached) " >&6
6222else $as_nop
6223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6224/* end confdefs.h.  */
6225int i;
6226_ACEOF
6227if ac_fn_c_try_compile "$LINENO"
6228then :
6229  xorg_cv_cc_flag_unknown_warning_option=yes
6230else $as_nop
6231  xorg_cv_cc_flag_unknown_warning_option=no
6232fi
6233rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6234fi
6235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6236printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6237	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6238	CFLAGS="$xorg_testset_save_CFLAGS"
6239fi
6240
6241if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6242	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6243		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6244	fi
6245	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6246	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6247printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6248if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6249then :
6250  printf %s "(cached) " >&6
6251else $as_nop
6252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253/* end confdefs.h.  */
6254int i;
6255_ACEOF
6256if ac_fn_c_try_compile "$LINENO"
6257then :
6258  xorg_cv_cc_flag_unused_command_line_argument=yes
6259else $as_nop
6260  xorg_cv_cc_flag_unused_command_line_argument=no
6261fi
6262rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6263fi
6264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6265printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6266	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6267	CFLAGS="$xorg_testset_save_CFLAGS"
6268fi
6269
6270found="no"
6271
6272	if test $found = "no" ; then
6273		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6274			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6275		fi
6276
6277		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6278			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6279		fi
6280
6281		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6282
6283		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6284printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6285		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6286		if eval test \${$cacheid+y}
6287then :
6288  printf %s "(cached) " >&6
6289else $as_nop
6290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291/* end confdefs.h.  */
6292int i;
6293int
6294main (void)
6295{
6296
6297  ;
6298  return 0;
6299}
6300_ACEOF
6301if ac_fn_c_try_link "$LINENO"
6302then :
6303  eval $cacheid=yes
6304else $as_nop
6305  eval $cacheid=no
6306fi
6307rm -f core conftest.err conftest.$ac_objext conftest.beam \
6308    conftest$ac_exeext conftest.$ac_ext
6309fi
6310
6311
6312		CFLAGS="$xorg_testset_save_CFLAGS"
6313
6314		eval supported=\$$cacheid
6315		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6316printf "%s\n" "$supported" >&6; }
6317		if test "$supported" = "yes" ; then
6318			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6319			found="yes"
6320		fi
6321	fi
6322
6323
6324
6325
6326
6327# This chunk adds additional warnings that could catch undesired effects.
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341xorg_testset_save_CFLAGS="$CFLAGS"
6342
6343if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6344	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6345	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6346printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6347if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6348then :
6349  printf %s "(cached) " >&6
6350else $as_nop
6351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6352/* end confdefs.h.  */
6353int i;
6354_ACEOF
6355if ac_fn_c_try_compile "$LINENO"
6356then :
6357  xorg_cv_cc_flag_unknown_warning_option=yes
6358else $as_nop
6359  xorg_cv_cc_flag_unknown_warning_option=no
6360fi
6361rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6362fi
6363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6364printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6365	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6366	CFLAGS="$xorg_testset_save_CFLAGS"
6367fi
6368
6369if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6370	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6371		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6372	fi
6373	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6374	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6375printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6376if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6377then :
6378  printf %s "(cached) " >&6
6379else $as_nop
6380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6381/* end confdefs.h.  */
6382int i;
6383_ACEOF
6384if ac_fn_c_try_compile "$LINENO"
6385then :
6386  xorg_cv_cc_flag_unused_command_line_argument=yes
6387else $as_nop
6388  xorg_cv_cc_flag_unused_command_line_argument=no
6389fi
6390rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6391fi
6392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6393printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6394	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6395	CFLAGS="$xorg_testset_save_CFLAGS"
6396fi
6397
6398found="no"
6399
6400	if test $found = "no" ; then
6401		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6402			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6403		fi
6404
6405		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6406			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6407		fi
6408
6409		CFLAGS="$CFLAGS -Wunused"
6410
6411		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6412printf %s "checking if $CC supports -Wunused... " >&6; }
6413		cacheid=xorg_cv_cc_flag__Wunused
6414		if eval test \${$cacheid+y}
6415then :
6416  printf %s "(cached) " >&6
6417else $as_nop
6418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419/* end confdefs.h.  */
6420int i;
6421int
6422main (void)
6423{
6424
6425  ;
6426  return 0;
6427}
6428_ACEOF
6429if ac_fn_c_try_link "$LINENO"
6430then :
6431  eval $cacheid=yes
6432else $as_nop
6433  eval $cacheid=no
6434fi
6435rm -f core conftest.err conftest.$ac_objext conftest.beam \
6436    conftest$ac_exeext conftest.$ac_ext
6437fi
6438
6439
6440		CFLAGS="$xorg_testset_save_CFLAGS"
6441
6442		eval supported=\$$cacheid
6443		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6444printf "%s\n" "$supported" >&6; }
6445		if test "$supported" = "yes" ; then
6446			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6447			found="yes"
6448		fi
6449	fi
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465xorg_testset_save_CFLAGS="$CFLAGS"
6466
6467if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6468	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6469	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6470printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6471if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6472then :
6473  printf %s "(cached) " >&6
6474else $as_nop
6475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476/* end confdefs.h.  */
6477int i;
6478_ACEOF
6479if ac_fn_c_try_compile "$LINENO"
6480then :
6481  xorg_cv_cc_flag_unknown_warning_option=yes
6482else $as_nop
6483  xorg_cv_cc_flag_unknown_warning_option=no
6484fi
6485rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6486fi
6487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6488printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6489	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6490	CFLAGS="$xorg_testset_save_CFLAGS"
6491fi
6492
6493if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6494	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6495		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6496	fi
6497	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6498	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6499printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6500if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6501then :
6502  printf %s "(cached) " >&6
6503else $as_nop
6504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505/* end confdefs.h.  */
6506int i;
6507_ACEOF
6508if ac_fn_c_try_compile "$LINENO"
6509then :
6510  xorg_cv_cc_flag_unused_command_line_argument=yes
6511else $as_nop
6512  xorg_cv_cc_flag_unused_command_line_argument=no
6513fi
6514rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6515fi
6516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6517printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6518	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6519	CFLAGS="$xorg_testset_save_CFLAGS"
6520fi
6521
6522found="no"
6523
6524	if test $found = "no" ; then
6525		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6526			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6527		fi
6528
6529		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6530			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6531		fi
6532
6533		CFLAGS="$CFLAGS -Wuninitialized"
6534
6535		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6536printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6537		cacheid=xorg_cv_cc_flag__Wuninitialized
6538		if eval test \${$cacheid+y}
6539then :
6540  printf %s "(cached) " >&6
6541else $as_nop
6542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6543/* end confdefs.h.  */
6544int i;
6545int
6546main (void)
6547{
6548
6549  ;
6550  return 0;
6551}
6552_ACEOF
6553if ac_fn_c_try_link "$LINENO"
6554then :
6555  eval $cacheid=yes
6556else $as_nop
6557  eval $cacheid=no
6558fi
6559rm -f core conftest.err conftest.$ac_objext conftest.beam \
6560    conftest$ac_exeext conftest.$ac_ext
6561fi
6562
6563
6564		CFLAGS="$xorg_testset_save_CFLAGS"
6565
6566		eval supported=\$$cacheid
6567		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6568printf "%s\n" "$supported" >&6; }
6569		if test "$supported" = "yes" ; then
6570			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6571			found="yes"
6572		fi
6573	fi
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589xorg_testset_save_CFLAGS="$CFLAGS"
6590
6591if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6592	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6593	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6594printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6595if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6596then :
6597  printf %s "(cached) " >&6
6598else $as_nop
6599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600/* end confdefs.h.  */
6601int i;
6602_ACEOF
6603if ac_fn_c_try_compile "$LINENO"
6604then :
6605  xorg_cv_cc_flag_unknown_warning_option=yes
6606else $as_nop
6607  xorg_cv_cc_flag_unknown_warning_option=no
6608fi
6609rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6610fi
6611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6612printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6613	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6614	CFLAGS="$xorg_testset_save_CFLAGS"
6615fi
6616
6617if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6618	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6619		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6620	fi
6621	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6622	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6623printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6624if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6625then :
6626  printf %s "(cached) " >&6
6627else $as_nop
6628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629/* end confdefs.h.  */
6630int i;
6631_ACEOF
6632if ac_fn_c_try_compile "$LINENO"
6633then :
6634  xorg_cv_cc_flag_unused_command_line_argument=yes
6635else $as_nop
6636  xorg_cv_cc_flag_unused_command_line_argument=no
6637fi
6638rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6639fi
6640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6641printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6642	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6643	CFLAGS="$xorg_testset_save_CFLAGS"
6644fi
6645
6646found="no"
6647
6648	if test $found = "no" ; then
6649		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6650			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6651		fi
6652
6653		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6654			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6655		fi
6656
6657		CFLAGS="$CFLAGS -Wshadow"
6658
6659		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6660printf %s "checking if $CC supports -Wshadow... " >&6; }
6661		cacheid=xorg_cv_cc_flag__Wshadow
6662		if eval test \${$cacheid+y}
6663then :
6664  printf %s "(cached) " >&6
6665else $as_nop
6666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667/* end confdefs.h.  */
6668int i;
6669int
6670main (void)
6671{
6672
6673  ;
6674  return 0;
6675}
6676_ACEOF
6677if ac_fn_c_try_link "$LINENO"
6678then :
6679  eval $cacheid=yes
6680else $as_nop
6681  eval $cacheid=no
6682fi
6683rm -f core conftest.err conftest.$ac_objext conftest.beam \
6684    conftest$ac_exeext conftest.$ac_ext
6685fi
6686
6687
6688		CFLAGS="$xorg_testset_save_CFLAGS"
6689
6690		eval supported=\$$cacheid
6691		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6692printf "%s\n" "$supported" >&6; }
6693		if test "$supported" = "yes" ; then
6694			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6695			found="yes"
6696		fi
6697	fi
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713xorg_testset_save_CFLAGS="$CFLAGS"
6714
6715if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6716	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6717	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6718printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6719if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6720then :
6721  printf %s "(cached) " >&6
6722else $as_nop
6723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724/* end confdefs.h.  */
6725int i;
6726_ACEOF
6727if ac_fn_c_try_compile "$LINENO"
6728then :
6729  xorg_cv_cc_flag_unknown_warning_option=yes
6730else $as_nop
6731  xorg_cv_cc_flag_unknown_warning_option=no
6732fi
6733rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6734fi
6735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6736printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6737	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6738	CFLAGS="$xorg_testset_save_CFLAGS"
6739fi
6740
6741if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6742	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6743		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6744	fi
6745	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6746	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6747printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6748if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6749then :
6750  printf %s "(cached) " >&6
6751else $as_nop
6752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6753/* end confdefs.h.  */
6754int i;
6755_ACEOF
6756if ac_fn_c_try_compile "$LINENO"
6757then :
6758  xorg_cv_cc_flag_unused_command_line_argument=yes
6759else $as_nop
6760  xorg_cv_cc_flag_unused_command_line_argument=no
6761fi
6762rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6763fi
6764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6765printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6766	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6767	CFLAGS="$xorg_testset_save_CFLAGS"
6768fi
6769
6770found="no"
6771
6772	if test $found = "no" ; then
6773		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6774			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6775		fi
6776
6777		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6778			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6779		fi
6780
6781		CFLAGS="$CFLAGS -Wmissing-noreturn"
6782
6783		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6784printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6785		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6786		if eval test \${$cacheid+y}
6787then :
6788  printf %s "(cached) " >&6
6789else $as_nop
6790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6791/* end confdefs.h.  */
6792int i;
6793int
6794main (void)
6795{
6796
6797  ;
6798  return 0;
6799}
6800_ACEOF
6801if ac_fn_c_try_link "$LINENO"
6802then :
6803  eval $cacheid=yes
6804else $as_nop
6805  eval $cacheid=no
6806fi
6807rm -f core conftest.err conftest.$ac_objext conftest.beam \
6808    conftest$ac_exeext conftest.$ac_ext
6809fi
6810
6811
6812		CFLAGS="$xorg_testset_save_CFLAGS"
6813
6814		eval supported=\$$cacheid
6815		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6816printf "%s\n" "$supported" >&6; }
6817		if test "$supported" = "yes" ; then
6818			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6819			found="yes"
6820		fi
6821	fi
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837xorg_testset_save_CFLAGS="$CFLAGS"
6838
6839if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6840	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6841	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6842printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6843if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6844then :
6845  printf %s "(cached) " >&6
6846else $as_nop
6847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848/* end confdefs.h.  */
6849int i;
6850_ACEOF
6851if ac_fn_c_try_compile "$LINENO"
6852then :
6853  xorg_cv_cc_flag_unknown_warning_option=yes
6854else $as_nop
6855  xorg_cv_cc_flag_unknown_warning_option=no
6856fi
6857rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6858fi
6859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6860printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6861	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6862	CFLAGS="$xorg_testset_save_CFLAGS"
6863fi
6864
6865if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6866	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6867		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6868	fi
6869	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6870	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6871printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6872if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6873then :
6874  printf %s "(cached) " >&6
6875else $as_nop
6876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877/* end confdefs.h.  */
6878int i;
6879_ACEOF
6880if ac_fn_c_try_compile "$LINENO"
6881then :
6882  xorg_cv_cc_flag_unused_command_line_argument=yes
6883else $as_nop
6884  xorg_cv_cc_flag_unused_command_line_argument=no
6885fi
6886rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6887fi
6888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6889printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6890	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6891	CFLAGS="$xorg_testset_save_CFLAGS"
6892fi
6893
6894found="no"
6895
6896	if test $found = "no" ; then
6897		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6898			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6899		fi
6900
6901		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6902			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6903		fi
6904
6905		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6906
6907		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6908printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6909		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6910		if eval test \${$cacheid+y}
6911then :
6912  printf %s "(cached) " >&6
6913else $as_nop
6914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6915/* end confdefs.h.  */
6916int i;
6917int
6918main (void)
6919{
6920
6921  ;
6922  return 0;
6923}
6924_ACEOF
6925if ac_fn_c_try_link "$LINENO"
6926then :
6927  eval $cacheid=yes
6928else $as_nop
6929  eval $cacheid=no
6930fi
6931rm -f core conftest.err conftest.$ac_objext conftest.beam \
6932    conftest$ac_exeext conftest.$ac_ext
6933fi
6934
6935
6936		CFLAGS="$xorg_testset_save_CFLAGS"
6937
6938		eval supported=\$$cacheid
6939		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6940printf "%s\n" "$supported" >&6; }
6941		if test "$supported" = "yes" ; then
6942			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6943			found="yes"
6944		fi
6945	fi
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961xorg_testset_save_CFLAGS="$CFLAGS"
6962
6963if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6964	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6965	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6966printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6967if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6968then :
6969  printf %s "(cached) " >&6
6970else $as_nop
6971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6972/* end confdefs.h.  */
6973int i;
6974_ACEOF
6975if ac_fn_c_try_compile "$LINENO"
6976then :
6977  xorg_cv_cc_flag_unknown_warning_option=yes
6978else $as_nop
6979  xorg_cv_cc_flag_unknown_warning_option=no
6980fi
6981rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6982fi
6983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6984printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6985	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6986	CFLAGS="$xorg_testset_save_CFLAGS"
6987fi
6988
6989if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6990	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6991		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6992	fi
6993	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6994	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6995printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6996if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6997then :
6998  printf %s "(cached) " >&6
6999else $as_nop
7000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001/* end confdefs.h.  */
7002int i;
7003_ACEOF
7004if ac_fn_c_try_compile "$LINENO"
7005then :
7006  xorg_cv_cc_flag_unused_command_line_argument=yes
7007else $as_nop
7008  xorg_cv_cc_flag_unused_command_line_argument=no
7009fi
7010rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7011fi
7012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7013printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7014	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7015	CFLAGS="$xorg_testset_save_CFLAGS"
7016fi
7017
7018found="no"
7019
7020	if test $found = "no" ; then
7021		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7022			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7023		fi
7024
7025		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7026			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7027		fi
7028
7029		CFLAGS="$CFLAGS -Wredundant-decls"
7030
7031		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7032printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7033		cacheid=xorg_cv_cc_flag__Wredundant_decls
7034		if eval test \${$cacheid+y}
7035then :
7036  printf %s "(cached) " >&6
7037else $as_nop
7038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039/* end confdefs.h.  */
7040int i;
7041int
7042main (void)
7043{
7044
7045  ;
7046  return 0;
7047}
7048_ACEOF
7049if ac_fn_c_try_link "$LINENO"
7050then :
7051  eval $cacheid=yes
7052else $as_nop
7053  eval $cacheid=no
7054fi
7055rm -f core conftest.err conftest.$ac_objext conftest.beam \
7056    conftest$ac_exeext conftest.$ac_ext
7057fi
7058
7059
7060		CFLAGS="$xorg_testset_save_CFLAGS"
7061
7062		eval supported=\$$cacheid
7063		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7064printf "%s\n" "$supported" >&6; }
7065		if test "$supported" = "yes" ; then
7066			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7067			found="yes"
7068		fi
7069	fi
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085xorg_testset_save_CFLAGS="$CFLAGS"
7086
7087if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7088	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7089	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7090printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7091if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7092then :
7093  printf %s "(cached) " >&6
7094else $as_nop
7095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096/* end confdefs.h.  */
7097int i;
7098_ACEOF
7099if ac_fn_c_try_compile "$LINENO"
7100then :
7101  xorg_cv_cc_flag_unknown_warning_option=yes
7102else $as_nop
7103  xorg_cv_cc_flag_unknown_warning_option=no
7104fi
7105rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7106fi
7107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7108printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7109	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7110	CFLAGS="$xorg_testset_save_CFLAGS"
7111fi
7112
7113if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7114	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7115		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7116	fi
7117	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7118	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7119printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7120if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7121then :
7122  printf %s "(cached) " >&6
7123else $as_nop
7124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7125/* end confdefs.h.  */
7126int i;
7127_ACEOF
7128if ac_fn_c_try_compile "$LINENO"
7129then :
7130  xorg_cv_cc_flag_unused_command_line_argument=yes
7131else $as_nop
7132  xorg_cv_cc_flag_unused_command_line_argument=no
7133fi
7134rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7135fi
7136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7137printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7138	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7139	CFLAGS="$xorg_testset_save_CFLAGS"
7140fi
7141
7142found="no"
7143
7144	if test $found = "no" ; then
7145		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7146			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7147		fi
7148
7149		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7150			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7151		fi
7152
7153		CFLAGS="$CFLAGS -Wlogical-op"
7154
7155		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7156printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7157		cacheid=xorg_cv_cc_flag__Wlogical_op
7158		if eval test \${$cacheid+y}
7159then :
7160  printf %s "(cached) " >&6
7161else $as_nop
7162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163/* end confdefs.h.  */
7164int i;
7165int
7166main (void)
7167{
7168
7169  ;
7170  return 0;
7171}
7172_ACEOF
7173if ac_fn_c_try_link "$LINENO"
7174then :
7175  eval $cacheid=yes
7176else $as_nop
7177  eval $cacheid=no
7178fi
7179rm -f core conftest.err conftest.$ac_objext conftest.beam \
7180    conftest$ac_exeext conftest.$ac_ext
7181fi
7182
7183
7184		CFLAGS="$xorg_testset_save_CFLAGS"
7185
7186		eval supported=\$$cacheid
7187		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7188printf "%s\n" "$supported" >&6; }
7189		if test "$supported" = "yes" ; then
7190			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7191			found="yes"
7192		fi
7193	fi
7194
7195
7196
7197# These are currently disabled because they are noisy.  They will be enabled
7198# in the future once the codebase is sufficiently modernized to silence
7199# them.  For now, I don't want them to drown out the other warnings.
7200# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7201# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7202# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7203
7204# Turn some warnings into errors, so we don't accidentally get successful builds
7205# when there are problems that should be fixed.
7206
7207if test "x$SELECTIVE_WERROR" = "xyes" ; then
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221xorg_testset_save_CFLAGS="$CFLAGS"
7222
7223if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7224	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7225	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7226printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7227if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7228then :
7229  printf %s "(cached) " >&6
7230else $as_nop
7231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232/* end confdefs.h.  */
7233int i;
7234_ACEOF
7235if ac_fn_c_try_compile "$LINENO"
7236then :
7237  xorg_cv_cc_flag_unknown_warning_option=yes
7238else $as_nop
7239  xorg_cv_cc_flag_unknown_warning_option=no
7240fi
7241rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7242fi
7243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7244printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7245	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7246	CFLAGS="$xorg_testset_save_CFLAGS"
7247fi
7248
7249if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7250	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7251		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7252	fi
7253	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7254	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7255printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7256if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7257then :
7258  printf %s "(cached) " >&6
7259else $as_nop
7260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261/* end confdefs.h.  */
7262int i;
7263_ACEOF
7264if ac_fn_c_try_compile "$LINENO"
7265then :
7266  xorg_cv_cc_flag_unused_command_line_argument=yes
7267else $as_nop
7268  xorg_cv_cc_flag_unused_command_line_argument=no
7269fi
7270rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7271fi
7272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7273printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7274	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7275	CFLAGS="$xorg_testset_save_CFLAGS"
7276fi
7277
7278found="no"
7279
7280	if test $found = "no" ; then
7281		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7282			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7283		fi
7284
7285		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7286			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7287		fi
7288
7289		CFLAGS="$CFLAGS -Werror=implicit"
7290
7291		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7292printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7293		cacheid=xorg_cv_cc_flag__Werror_implicit
7294		if eval test \${$cacheid+y}
7295then :
7296  printf %s "(cached) " >&6
7297else $as_nop
7298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299/* end confdefs.h.  */
7300int i;
7301int
7302main (void)
7303{
7304
7305  ;
7306  return 0;
7307}
7308_ACEOF
7309if ac_fn_c_try_link "$LINENO"
7310then :
7311  eval $cacheid=yes
7312else $as_nop
7313  eval $cacheid=no
7314fi
7315rm -f core conftest.err conftest.$ac_objext conftest.beam \
7316    conftest$ac_exeext conftest.$ac_ext
7317fi
7318
7319
7320		CFLAGS="$xorg_testset_save_CFLAGS"
7321
7322		eval supported=\$$cacheid
7323		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7324printf "%s\n" "$supported" >&6; }
7325		if test "$supported" = "yes" ; then
7326			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7327			found="yes"
7328		fi
7329	fi
7330
7331	if test $found = "no" ; then
7332		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7333			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7334		fi
7335
7336		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7337			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7338		fi
7339
7340		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7341
7342		{ 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
7343printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7344		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7345		if eval test \${$cacheid+y}
7346then :
7347  printf %s "(cached) " >&6
7348else $as_nop
7349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350/* end confdefs.h.  */
7351int i;
7352int
7353main (void)
7354{
7355
7356  ;
7357  return 0;
7358}
7359_ACEOF
7360if ac_fn_c_try_link "$LINENO"
7361then :
7362  eval $cacheid=yes
7363else $as_nop
7364  eval $cacheid=no
7365fi
7366rm -f core conftest.err conftest.$ac_objext conftest.beam \
7367    conftest$ac_exeext conftest.$ac_ext
7368fi
7369
7370
7371		CFLAGS="$xorg_testset_save_CFLAGS"
7372
7373		eval supported=\$$cacheid
7374		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7375printf "%s\n" "$supported" >&6; }
7376		if test "$supported" = "yes" ; then
7377			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7378			found="yes"
7379		fi
7380	fi
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396xorg_testset_save_CFLAGS="$CFLAGS"
7397
7398if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7399	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7400	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7401printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7402if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7403then :
7404  printf %s "(cached) " >&6
7405else $as_nop
7406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407/* end confdefs.h.  */
7408int i;
7409_ACEOF
7410if ac_fn_c_try_compile "$LINENO"
7411then :
7412  xorg_cv_cc_flag_unknown_warning_option=yes
7413else $as_nop
7414  xorg_cv_cc_flag_unknown_warning_option=no
7415fi
7416rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7417fi
7418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7419printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7420	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7421	CFLAGS="$xorg_testset_save_CFLAGS"
7422fi
7423
7424if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7425	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7426		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7427	fi
7428	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7429	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7430printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7431if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7432then :
7433  printf %s "(cached) " >&6
7434else $as_nop
7435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436/* end confdefs.h.  */
7437int i;
7438_ACEOF
7439if ac_fn_c_try_compile "$LINENO"
7440then :
7441  xorg_cv_cc_flag_unused_command_line_argument=yes
7442else $as_nop
7443  xorg_cv_cc_flag_unused_command_line_argument=no
7444fi
7445rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7446fi
7447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7448printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7449	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7450	CFLAGS="$xorg_testset_save_CFLAGS"
7451fi
7452
7453found="no"
7454
7455	if test $found = "no" ; then
7456		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7457			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7458		fi
7459
7460		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7461			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7462		fi
7463
7464		CFLAGS="$CFLAGS -Werror=nonnull"
7465
7466		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7467printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7468		cacheid=xorg_cv_cc_flag__Werror_nonnull
7469		if eval test \${$cacheid+y}
7470then :
7471  printf %s "(cached) " >&6
7472else $as_nop
7473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474/* end confdefs.h.  */
7475int i;
7476int
7477main (void)
7478{
7479
7480  ;
7481  return 0;
7482}
7483_ACEOF
7484if ac_fn_c_try_link "$LINENO"
7485then :
7486  eval $cacheid=yes
7487else $as_nop
7488  eval $cacheid=no
7489fi
7490rm -f core conftest.err conftest.$ac_objext conftest.beam \
7491    conftest$ac_exeext conftest.$ac_ext
7492fi
7493
7494
7495		CFLAGS="$xorg_testset_save_CFLAGS"
7496
7497		eval supported=\$$cacheid
7498		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7499printf "%s\n" "$supported" >&6; }
7500		if test "$supported" = "yes" ; then
7501			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7502			found="yes"
7503		fi
7504	fi
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520xorg_testset_save_CFLAGS="$CFLAGS"
7521
7522if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7523	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7524	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7525printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7526if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7527then :
7528  printf %s "(cached) " >&6
7529else $as_nop
7530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7531/* end confdefs.h.  */
7532int i;
7533_ACEOF
7534if ac_fn_c_try_compile "$LINENO"
7535then :
7536  xorg_cv_cc_flag_unknown_warning_option=yes
7537else $as_nop
7538  xorg_cv_cc_flag_unknown_warning_option=no
7539fi
7540rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7541fi
7542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7543printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7544	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7545	CFLAGS="$xorg_testset_save_CFLAGS"
7546fi
7547
7548if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7549	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7550		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7551	fi
7552	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7553	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7554printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7555if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7556then :
7557  printf %s "(cached) " >&6
7558else $as_nop
7559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560/* end confdefs.h.  */
7561int i;
7562_ACEOF
7563if ac_fn_c_try_compile "$LINENO"
7564then :
7565  xorg_cv_cc_flag_unused_command_line_argument=yes
7566else $as_nop
7567  xorg_cv_cc_flag_unused_command_line_argument=no
7568fi
7569rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7570fi
7571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7572printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7573	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7574	CFLAGS="$xorg_testset_save_CFLAGS"
7575fi
7576
7577found="no"
7578
7579	if test $found = "no" ; then
7580		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7581			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7582		fi
7583
7584		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7585			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7586		fi
7587
7588		CFLAGS="$CFLAGS -Werror=init-self"
7589
7590		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7591printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7592		cacheid=xorg_cv_cc_flag__Werror_init_self
7593		if eval test \${$cacheid+y}
7594then :
7595  printf %s "(cached) " >&6
7596else $as_nop
7597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7598/* end confdefs.h.  */
7599int i;
7600int
7601main (void)
7602{
7603
7604  ;
7605  return 0;
7606}
7607_ACEOF
7608if ac_fn_c_try_link "$LINENO"
7609then :
7610  eval $cacheid=yes
7611else $as_nop
7612  eval $cacheid=no
7613fi
7614rm -f core conftest.err conftest.$ac_objext conftest.beam \
7615    conftest$ac_exeext conftest.$ac_ext
7616fi
7617
7618
7619		CFLAGS="$xorg_testset_save_CFLAGS"
7620
7621		eval supported=\$$cacheid
7622		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7623printf "%s\n" "$supported" >&6; }
7624		if test "$supported" = "yes" ; then
7625			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7626			found="yes"
7627		fi
7628	fi
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644xorg_testset_save_CFLAGS="$CFLAGS"
7645
7646if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7647	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7648	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7649printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7650if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7651then :
7652  printf %s "(cached) " >&6
7653else $as_nop
7654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7655/* end confdefs.h.  */
7656int i;
7657_ACEOF
7658if ac_fn_c_try_compile "$LINENO"
7659then :
7660  xorg_cv_cc_flag_unknown_warning_option=yes
7661else $as_nop
7662  xorg_cv_cc_flag_unknown_warning_option=no
7663fi
7664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7665fi
7666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7667printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7668	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7669	CFLAGS="$xorg_testset_save_CFLAGS"
7670fi
7671
7672if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7673	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7674		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7675	fi
7676	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7677	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7678printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7679if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7680then :
7681  printf %s "(cached) " >&6
7682else $as_nop
7683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684/* end confdefs.h.  */
7685int i;
7686_ACEOF
7687if ac_fn_c_try_compile "$LINENO"
7688then :
7689  xorg_cv_cc_flag_unused_command_line_argument=yes
7690else $as_nop
7691  xorg_cv_cc_flag_unused_command_line_argument=no
7692fi
7693rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7694fi
7695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7696printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7697	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7698	CFLAGS="$xorg_testset_save_CFLAGS"
7699fi
7700
7701found="no"
7702
7703	if test $found = "no" ; then
7704		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7705			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7706		fi
7707
7708		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7709			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7710		fi
7711
7712		CFLAGS="$CFLAGS -Werror=main"
7713
7714		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7715printf %s "checking if $CC supports -Werror=main... " >&6; }
7716		cacheid=xorg_cv_cc_flag__Werror_main
7717		if eval test \${$cacheid+y}
7718then :
7719  printf %s "(cached) " >&6
7720else $as_nop
7721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7722/* end confdefs.h.  */
7723int i;
7724int
7725main (void)
7726{
7727
7728  ;
7729  return 0;
7730}
7731_ACEOF
7732if ac_fn_c_try_link "$LINENO"
7733then :
7734  eval $cacheid=yes
7735else $as_nop
7736  eval $cacheid=no
7737fi
7738rm -f core conftest.err conftest.$ac_objext conftest.beam \
7739    conftest$ac_exeext conftest.$ac_ext
7740fi
7741
7742
7743		CFLAGS="$xorg_testset_save_CFLAGS"
7744
7745		eval supported=\$$cacheid
7746		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7747printf "%s\n" "$supported" >&6; }
7748		if test "$supported" = "yes" ; then
7749			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7750			found="yes"
7751		fi
7752	fi
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768xorg_testset_save_CFLAGS="$CFLAGS"
7769
7770if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7771	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7772	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7773printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7774if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7775then :
7776  printf %s "(cached) " >&6
7777else $as_nop
7778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779/* end confdefs.h.  */
7780int i;
7781_ACEOF
7782if ac_fn_c_try_compile "$LINENO"
7783then :
7784  xorg_cv_cc_flag_unknown_warning_option=yes
7785else $as_nop
7786  xorg_cv_cc_flag_unknown_warning_option=no
7787fi
7788rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7789fi
7790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7791printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7792	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7793	CFLAGS="$xorg_testset_save_CFLAGS"
7794fi
7795
7796if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7797	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7798		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7799	fi
7800	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7801	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7802printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7803if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7804then :
7805  printf %s "(cached) " >&6
7806else $as_nop
7807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808/* end confdefs.h.  */
7809int i;
7810_ACEOF
7811if ac_fn_c_try_compile "$LINENO"
7812then :
7813  xorg_cv_cc_flag_unused_command_line_argument=yes
7814else $as_nop
7815  xorg_cv_cc_flag_unused_command_line_argument=no
7816fi
7817rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7818fi
7819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7820printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7821	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7822	CFLAGS="$xorg_testset_save_CFLAGS"
7823fi
7824
7825found="no"
7826
7827	if test $found = "no" ; then
7828		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7829			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7830		fi
7831
7832		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7833			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7834		fi
7835
7836		CFLAGS="$CFLAGS -Werror=missing-braces"
7837
7838		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7839printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7840		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7841		if eval test \${$cacheid+y}
7842then :
7843  printf %s "(cached) " >&6
7844else $as_nop
7845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7846/* end confdefs.h.  */
7847int i;
7848int
7849main (void)
7850{
7851
7852  ;
7853  return 0;
7854}
7855_ACEOF
7856if ac_fn_c_try_link "$LINENO"
7857then :
7858  eval $cacheid=yes
7859else $as_nop
7860  eval $cacheid=no
7861fi
7862rm -f core conftest.err conftest.$ac_objext conftest.beam \
7863    conftest$ac_exeext conftest.$ac_ext
7864fi
7865
7866
7867		CFLAGS="$xorg_testset_save_CFLAGS"
7868
7869		eval supported=\$$cacheid
7870		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7871printf "%s\n" "$supported" >&6; }
7872		if test "$supported" = "yes" ; then
7873			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7874			found="yes"
7875		fi
7876	fi
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892xorg_testset_save_CFLAGS="$CFLAGS"
7893
7894if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7895	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7896	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7897printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7898if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7899then :
7900  printf %s "(cached) " >&6
7901else $as_nop
7902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903/* end confdefs.h.  */
7904int i;
7905_ACEOF
7906if ac_fn_c_try_compile "$LINENO"
7907then :
7908  xorg_cv_cc_flag_unknown_warning_option=yes
7909else $as_nop
7910  xorg_cv_cc_flag_unknown_warning_option=no
7911fi
7912rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7913fi
7914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7915printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7916	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7917	CFLAGS="$xorg_testset_save_CFLAGS"
7918fi
7919
7920if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7921	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7922		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7923	fi
7924	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7925	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7926printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7927if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7928then :
7929  printf %s "(cached) " >&6
7930else $as_nop
7931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932/* end confdefs.h.  */
7933int i;
7934_ACEOF
7935if ac_fn_c_try_compile "$LINENO"
7936then :
7937  xorg_cv_cc_flag_unused_command_line_argument=yes
7938else $as_nop
7939  xorg_cv_cc_flag_unused_command_line_argument=no
7940fi
7941rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7942fi
7943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7944printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7945	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7946	CFLAGS="$xorg_testset_save_CFLAGS"
7947fi
7948
7949found="no"
7950
7951	if test $found = "no" ; then
7952		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7953			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7954		fi
7955
7956		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7957			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7958		fi
7959
7960		CFLAGS="$CFLAGS -Werror=sequence-point"
7961
7962		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7963printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7964		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7965		if eval test \${$cacheid+y}
7966then :
7967  printf %s "(cached) " >&6
7968else $as_nop
7969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970/* end confdefs.h.  */
7971int i;
7972int
7973main (void)
7974{
7975
7976  ;
7977  return 0;
7978}
7979_ACEOF
7980if ac_fn_c_try_link "$LINENO"
7981then :
7982  eval $cacheid=yes
7983else $as_nop
7984  eval $cacheid=no
7985fi
7986rm -f core conftest.err conftest.$ac_objext conftest.beam \
7987    conftest$ac_exeext conftest.$ac_ext
7988fi
7989
7990
7991		CFLAGS="$xorg_testset_save_CFLAGS"
7992
7993		eval supported=\$$cacheid
7994		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7995printf "%s\n" "$supported" >&6; }
7996		if test "$supported" = "yes" ; then
7997			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7998			found="yes"
7999		fi
8000	fi
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016xorg_testset_save_CFLAGS="$CFLAGS"
8017
8018if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8019	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8020	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8021printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8022if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8023then :
8024  printf %s "(cached) " >&6
8025else $as_nop
8026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8027/* end confdefs.h.  */
8028int i;
8029_ACEOF
8030if ac_fn_c_try_compile "$LINENO"
8031then :
8032  xorg_cv_cc_flag_unknown_warning_option=yes
8033else $as_nop
8034  xorg_cv_cc_flag_unknown_warning_option=no
8035fi
8036rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8037fi
8038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8039printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8040	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8041	CFLAGS="$xorg_testset_save_CFLAGS"
8042fi
8043
8044if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8045	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8046		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8047	fi
8048	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8049	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8050printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8051if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8052then :
8053  printf %s "(cached) " >&6
8054else $as_nop
8055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056/* end confdefs.h.  */
8057int i;
8058_ACEOF
8059if ac_fn_c_try_compile "$LINENO"
8060then :
8061  xorg_cv_cc_flag_unused_command_line_argument=yes
8062else $as_nop
8063  xorg_cv_cc_flag_unused_command_line_argument=no
8064fi
8065rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8066fi
8067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8068printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8069	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8070	CFLAGS="$xorg_testset_save_CFLAGS"
8071fi
8072
8073found="no"
8074
8075	if test $found = "no" ; then
8076		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8077			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8078		fi
8079
8080		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8081			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8082		fi
8083
8084		CFLAGS="$CFLAGS -Werror=return-type"
8085
8086		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8087printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8088		cacheid=xorg_cv_cc_flag__Werror_return_type
8089		if eval test \${$cacheid+y}
8090then :
8091  printf %s "(cached) " >&6
8092else $as_nop
8093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094/* end confdefs.h.  */
8095int i;
8096int
8097main (void)
8098{
8099
8100  ;
8101  return 0;
8102}
8103_ACEOF
8104if ac_fn_c_try_link "$LINENO"
8105then :
8106  eval $cacheid=yes
8107else $as_nop
8108  eval $cacheid=no
8109fi
8110rm -f core conftest.err conftest.$ac_objext conftest.beam \
8111    conftest$ac_exeext conftest.$ac_ext
8112fi
8113
8114
8115		CFLAGS="$xorg_testset_save_CFLAGS"
8116
8117		eval supported=\$$cacheid
8118		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8119printf "%s\n" "$supported" >&6; }
8120		if test "$supported" = "yes" ; then
8121			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8122			found="yes"
8123		fi
8124	fi
8125
8126	if test $found = "no" ; then
8127		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8128			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8129		fi
8130
8131		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8132			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8133		fi
8134
8135		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8136
8137		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8138printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8139		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8140		if eval test \${$cacheid+y}
8141then :
8142  printf %s "(cached) " >&6
8143else $as_nop
8144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145/* end confdefs.h.  */
8146int i;
8147int
8148main (void)
8149{
8150
8151  ;
8152  return 0;
8153}
8154_ACEOF
8155if ac_fn_c_try_link "$LINENO"
8156then :
8157  eval $cacheid=yes
8158else $as_nop
8159  eval $cacheid=no
8160fi
8161rm -f core conftest.err conftest.$ac_objext conftest.beam \
8162    conftest$ac_exeext conftest.$ac_ext
8163fi
8164
8165
8166		CFLAGS="$xorg_testset_save_CFLAGS"
8167
8168		eval supported=\$$cacheid
8169		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8170printf "%s\n" "$supported" >&6; }
8171		if test "$supported" = "yes" ; then
8172			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8173			found="yes"
8174		fi
8175	fi
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191xorg_testset_save_CFLAGS="$CFLAGS"
8192
8193if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8194	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8195	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8196printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8197if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8198then :
8199  printf %s "(cached) " >&6
8200else $as_nop
8201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8202/* end confdefs.h.  */
8203int i;
8204_ACEOF
8205if ac_fn_c_try_compile "$LINENO"
8206then :
8207  xorg_cv_cc_flag_unknown_warning_option=yes
8208else $as_nop
8209  xorg_cv_cc_flag_unknown_warning_option=no
8210fi
8211rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8212fi
8213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8214printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8215	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8216	CFLAGS="$xorg_testset_save_CFLAGS"
8217fi
8218
8219if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8220	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8221		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8222	fi
8223	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8224	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8225printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8226if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8227then :
8228  printf %s "(cached) " >&6
8229else $as_nop
8230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8231/* end confdefs.h.  */
8232int i;
8233_ACEOF
8234if ac_fn_c_try_compile "$LINENO"
8235then :
8236  xorg_cv_cc_flag_unused_command_line_argument=yes
8237else $as_nop
8238  xorg_cv_cc_flag_unused_command_line_argument=no
8239fi
8240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8241fi
8242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8243printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8244	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8245	CFLAGS="$xorg_testset_save_CFLAGS"
8246fi
8247
8248found="no"
8249
8250	if test $found = "no" ; then
8251		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8252			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8253		fi
8254
8255		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8256			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8257		fi
8258
8259		CFLAGS="$CFLAGS -Werror=trigraphs"
8260
8261		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8262printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8263		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8264		if eval test \${$cacheid+y}
8265then :
8266  printf %s "(cached) " >&6
8267else $as_nop
8268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8269/* end confdefs.h.  */
8270int i;
8271int
8272main (void)
8273{
8274
8275  ;
8276  return 0;
8277}
8278_ACEOF
8279if ac_fn_c_try_link "$LINENO"
8280then :
8281  eval $cacheid=yes
8282else $as_nop
8283  eval $cacheid=no
8284fi
8285rm -f core conftest.err conftest.$ac_objext conftest.beam \
8286    conftest$ac_exeext conftest.$ac_ext
8287fi
8288
8289
8290		CFLAGS="$xorg_testset_save_CFLAGS"
8291
8292		eval supported=\$$cacheid
8293		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8294printf "%s\n" "$supported" >&6; }
8295		if test "$supported" = "yes" ; then
8296			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8297			found="yes"
8298		fi
8299	fi
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315xorg_testset_save_CFLAGS="$CFLAGS"
8316
8317if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8318	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8319	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8320printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8321if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8322then :
8323  printf %s "(cached) " >&6
8324else $as_nop
8325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8326/* end confdefs.h.  */
8327int i;
8328_ACEOF
8329if ac_fn_c_try_compile "$LINENO"
8330then :
8331  xorg_cv_cc_flag_unknown_warning_option=yes
8332else $as_nop
8333  xorg_cv_cc_flag_unknown_warning_option=no
8334fi
8335rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8336fi
8337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8338printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8339	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8340	CFLAGS="$xorg_testset_save_CFLAGS"
8341fi
8342
8343if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8344	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8345		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8346	fi
8347	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8348	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8349printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8350if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8351then :
8352  printf %s "(cached) " >&6
8353else $as_nop
8354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8355/* end confdefs.h.  */
8356int i;
8357_ACEOF
8358if ac_fn_c_try_compile "$LINENO"
8359then :
8360  xorg_cv_cc_flag_unused_command_line_argument=yes
8361else $as_nop
8362  xorg_cv_cc_flag_unused_command_line_argument=no
8363fi
8364rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8365fi
8366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8367printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8368	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8369	CFLAGS="$xorg_testset_save_CFLAGS"
8370fi
8371
8372found="no"
8373
8374	if test $found = "no" ; then
8375		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8376			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8377		fi
8378
8379		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8380			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8381		fi
8382
8383		CFLAGS="$CFLAGS -Werror=array-bounds"
8384
8385		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8386printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8387		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8388		if eval test \${$cacheid+y}
8389then :
8390  printf %s "(cached) " >&6
8391else $as_nop
8392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8393/* end confdefs.h.  */
8394int i;
8395int
8396main (void)
8397{
8398
8399  ;
8400  return 0;
8401}
8402_ACEOF
8403if ac_fn_c_try_link "$LINENO"
8404then :
8405  eval $cacheid=yes
8406else $as_nop
8407  eval $cacheid=no
8408fi
8409rm -f core conftest.err conftest.$ac_objext conftest.beam \
8410    conftest$ac_exeext conftest.$ac_ext
8411fi
8412
8413
8414		CFLAGS="$xorg_testset_save_CFLAGS"
8415
8416		eval supported=\$$cacheid
8417		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8418printf "%s\n" "$supported" >&6; }
8419		if test "$supported" = "yes" ; then
8420			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8421			found="yes"
8422		fi
8423	fi
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439xorg_testset_save_CFLAGS="$CFLAGS"
8440
8441if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8442	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8443	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8444printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8445if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8446then :
8447  printf %s "(cached) " >&6
8448else $as_nop
8449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8450/* end confdefs.h.  */
8451int i;
8452_ACEOF
8453if ac_fn_c_try_compile "$LINENO"
8454then :
8455  xorg_cv_cc_flag_unknown_warning_option=yes
8456else $as_nop
8457  xorg_cv_cc_flag_unknown_warning_option=no
8458fi
8459rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8460fi
8461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8462printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8463	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8464	CFLAGS="$xorg_testset_save_CFLAGS"
8465fi
8466
8467if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8468	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8469		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8470	fi
8471	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8472	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8473printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8474if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8475then :
8476  printf %s "(cached) " >&6
8477else $as_nop
8478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479/* end confdefs.h.  */
8480int i;
8481_ACEOF
8482if ac_fn_c_try_compile "$LINENO"
8483then :
8484  xorg_cv_cc_flag_unused_command_line_argument=yes
8485else $as_nop
8486  xorg_cv_cc_flag_unused_command_line_argument=no
8487fi
8488rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8489fi
8490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8491printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8492	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8493	CFLAGS="$xorg_testset_save_CFLAGS"
8494fi
8495
8496found="no"
8497
8498	if test $found = "no" ; then
8499		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8500			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8501		fi
8502
8503		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8504			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8505		fi
8506
8507		CFLAGS="$CFLAGS -Werror=write-strings"
8508
8509		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8510printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8511		cacheid=xorg_cv_cc_flag__Werror_write_strings
8512		if eval test \${$cacheid+y}
8513then :
8514  printf %s "(cached) " >&6
8515else $as_nop
8516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8517/* end confdefs.h.  */
8518int i;
8519int
8520main (void)
8521{
8522
8523  ;
8524  return 0;
8525}
8526_ACEOF
8527if ac_fn_c_try_link "$LINENO"
8528then :
8529  eval $cacheid=yes
8530else $as_nop
8531  eval $cacheid=no
8532fi
8533rm -f core conftest.err conftest.$ac_objext conftest.beam \
8534    conftest$ac_exeext conftest.$ac_ext
8535fi
8536
8537
8538		CFLAGS="$xorg_testset_save_CFLAGS"
8539
8540		eval supported=\$$cacheid
8541		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8542printf "%s\n" "$supported" >&6; }
8543		if test "$supported" = "yes" ; then
8544			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8545			found="yes"
8546		fi
8547	fi
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563xorg_testset_save_CFLAGS="$CFLAGS"
8564
8565if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8566	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8567	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8568printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8569if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8570then :
8571  printf %s "(cached) " >&6
8572else $as_nop
8573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8574/* end confdefs.h.  */
8575int i;
8576_ACEOF
8577if ac_fn_c_try_compile "$LINENO"
8578then :
8579  xorg_cv_cc_flag_unknown_warning_option=yes
8580else $as_nop
8581  xorg_cv_cc_flag_unknown_warning_option=no
8582fi
8583rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8584fi
8585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8586printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8587	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8588	CFLAGS="$xorg_testset_save_CFLAGS"
8589fi
8590
8591if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8592	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8593		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8594	fi
8595	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8596	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8597printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8598if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8599then :
8600  printf %s "(cached) " >&6
8601else $as_nop
8602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8603/* end confdefs.h.  */
8604int i;
8605_ACEOF
8606if ac_fn_c_try_compile "$LINENO"
8607then :
8608  xorg_cv_cc_flag_unused_command_line_argument=yes
8609else $as_nop
8610  xorg_cv_cc_flag_unused_command_line_argument=no
8611fi
8612rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8613fi
8614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8615printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8616	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8617	CFLAGS="$xorg_testset_save_CFLAGS"
8618fi
8619
8620found="no"
8621
8622	if test $found = "no" ; then
8623		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8624			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8625		fi
8626
8627		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8628			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8629		fi
8630
8631		CFLAGS="$CFLAGS -Werror=address"
8632
8633		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8634printf %s "checking if $CC supports -Werror=address... " >&6; }
8635		cacheid=xorg_cv_cc_flag__Werror_address
8636		if eval test \${$cacheid+y}
8637then :
8638  printf %s "(cached) " >&6
8639else $as_nop
8640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641/* end confdefs.h.  */
8642int i;
8643int
8644main (void)
8645{
8646
8647  ;
8648  return 0;
8649}
8650_ACEOF
8651if ac_fn_c_try_link "$LINENO"
8652then :
8653  eval $cacheid=yes
8654else $as_nop
8655  eval $cacheid=no
8656fi
8657rm -f core conftest.err conftest.$ac_objext conftest.beam \
8658    conftest$ac_exeext conftest.$ac_ext
8659fi
8660
8661
8662		CFLAGS="$xorg_testset_save_CFLAGS"
8663
8664		eval supported=\$$cacheid
8665		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8666printf "%s\n" "$supported" >&6; }
8667		if test "$supported" = "yes" ; then
8668			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8669			found="yes"
8670		fi
8671	fi
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687xorg_testset_save_CFLAGS="$CFLAGS"
8688
8689if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8690	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8691	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8692printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8693if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8694then :
8695  printf %s "(cached) " >&6
8696else $as_nop
8697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8698/* end confdefs.h.  */
8699int i;
8700_ACEOF
8701if ac_fn_c_try_compile "$LINENO"
8702then :
8703  xorg_cv_cc_flag_unknown_warning_option=yes
8704else $as_nop
8705  xorg_cv_cc_flag_unknown_warning_option=no
8706fi
8707rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8708fi
8709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8710printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8711	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8712	CFLAGS="$xorg_testset_save_CFLAGS"
8713fi
8714
8715if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8716	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8717		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8718	fi
8719	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8720	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8721printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8722if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8723then :
8724  printf %s "(cached) " >&6
8725else $as_nop
8726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727/* end confdefs.h.  */
8728int i;
8729_ACEOF
8730if ac_fn_c_try_compile "$LINENO"
8731then :
8732  xorg_cv_cc_flag_unused_command_line_argument=yes
8733else $as_nop
8734  xorg_cv_cc_flag_unused_command_line_argument=no
8735fi
8736rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8737fi
8738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8739printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8740	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8741	CFLAGS="$xorg_testset_save_CFLAGS"
8742fi
8743
8744found="no"
8745
8746	if test $found = "no" ; then
8747		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8748			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8749		fi
8750
8751		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8752			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8753		fi
8754
8755		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8756
8757		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8758printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8759		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8760		if eval test \${$cacheid+y}
8761then :
8762  printf %s "(cached) " >&6
8763else $as_nop
8764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8765/* end confdefs.h.  */
8766int i;
8767int
8768main (void)
8769{
8770
8771  ;
8772  return 0;
8773}
8774_ACEOF
8775if ac_fn_c_try_link "$LINENO"
8776then :
8777  eval $cacheid=yes
8778else $as_nop
8779  eval $cacheid=no
8780fi
8781rm -f core conftest.err conftest.$ac_objext conftest.beam \
8782    conftest$ac_exeext conftest.$ac_ext
8783fi
8784
8785
8786		CFLAGS="$xorg_testset_save_CFLAGS"
8787
8788		eval supported=\$$cacheid
8789		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8790printf "%s\n" "$supported" >&6; }
8791		if test "$supported" = "yes" ; then
8792			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8793			found="yes"
8794		fi
8795	fi
8796
8797	if test $found = "no" ; then
8798		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8799			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8800		fi
8801
8802		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8803			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8804		fi
8805
8806		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8807
8808		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8809printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8810		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8811		if eval test \${$cacheid+y}
8812then :
8813  printf %s "(cached) " >&6
8814else $as_nop
8815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8816/* end confdefs.h.  */
8817int i;
8818int
8819main (void)
8820{
8821
8822  ;
8823  return 0;
8824}
8825_ACEOF
8826if ac_fn_c_try_link "$LINENO"
8827then :
8828  eval $cacheid=yes
8829else $as_nop
8830  eval $cacheid=no
8831fi
8832rm -f core conftest.err conftest.$ac_objext conftest.beam \
8833    conftest$ac_exeext conftest.$ac_ext
8834fi
8835
8836
8837		CFLAGS="$xorg_testset_save_CFLAGS"
8838
8839		eval supported=\$$cacheid
8840		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8841printf "%s\n" "$supported" >&6; }
8842		if test "$supported" = "yes" ; then
8843			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8844			found="yes"
8845		fi
8846	fi
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862xorg_testset_save_CFLAGS="$CFLAGS"
8863
8864if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8865	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8866	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8867printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8868if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8869then :
8870  printf %s "(cached) " >&6
8871else $as_nop
8872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873/* end confdefs.h.  */
8874int i;
8875_ACEOF
8876if ac_fn_c_try_compile "$LINENO"
8877then :
8878  xorg_cv_cc_flag_unknown_warning_option=yes
8879else $as_nop
8880  xorg_cv_cc_flag_unknown_warning_option=no
8881fi
8882rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8883fi
8884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8885printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8886	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8887	CFLAGS="$xorg_testset_save_CFLAGS"
8888fi
8889
8890if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8891	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8892		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8893	fi
8894	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8895	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8896printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8897if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8898then :
8899  printf %s "(cached) " >&6
8900else $as_nop
8901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8902/* end confdefs.h.  */
8903int i;
8904_ACEOF
8905if ac_fn_c_try_compile "$LINENO"
8906then :
8907  xorg_cv_cc_flag_unused_command_line_argument=yes
8908else $as_nop
8909  xorg_cv_cc_flag_unused_command_line_argument=no
8910fi
8911rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8912fi
8913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8914printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8915	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8916	CFLAGS="$xorg_testset_save_CFLAGS"
8917fi
8918
8919found="no"
8920
8921	if test $found = "no" ; then
8922		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8923			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8924		fi
8925
8926		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8927			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8928		fi
8929
8930		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8931
8932		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8933printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8934		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8935		if eval test \${$cacheid+y}
8936then :
8937  printf %s "(cached) " >&6
8938else $as_nop
8939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8940/* end confdefs.h.  */
8941int i;
8942int
8943main (void)
8944{
8945
8946  ;
8947  return 0;
8948}
8949_ACEOF
8950if ac_fn_c_try_link "$LINENO"
8951then :
8952  eval $cacheid=yes
8953else $as_nop
8954  eval $cacheid=no
8955fi
8956rm -f core conftest.err conftest.$ac_objext conftest.beam \
8957    conftest$ac_exeext conftest.$ac_ext
8958fi
8959
8960
8961		CFLAGS="$xorg_testset_save_CFLAGS"
8962
8963		eval supported=\$$cacheid
8964		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8965printf "%s\n" "$supported" >&6; }
8966		if test "$supported" = "yes" ; then
8967			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8968			found="yes"
8969		fi
8970	fi
8971
8972 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8973else
8974{ 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
8975printf "%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;}
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989xorg_testset_save_CFLAGS="$CFLAGS"
8990
8991if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8992	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8993	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8994printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8995if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8996then :
8997  printf %s "(cached) " >&6
8998else $as_nop
8999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9000/* end confdefs.h.  */
9001int i;
9002_ACEOF
9003if ac_fn_c_try_compile "$LINENO"
9004then :
9005  xorg_cv_cc_flag_unknown_warning_option=yes
9006else $as_nop
9007  xorg_cv_cc_flag_unknown_warning_option=no
9008fi
9009rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9010fi
9011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9012printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9013	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9014	CFLAGS="$xorg_testset_save_CFLAGS"
9015fi
9016
9017if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9018	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9019		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9020	fi
9021	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9022	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9023printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9024if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9025then :
9026  printf %s "(cached) " >&6
9027else $as_nop
9028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029/* end confdefs.h.  */
9030int i;
9031_ACEOF
9032if ac_fn_c_try_compile "$LINENO"
9033then :
9034  xorg_cv_cc_flag_unused_command_line_argument=yes
9035else $as_nop
9036  xorg_cv_cc_flag_unused_command_line_argument=no
9037fi
9038rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9039fi
9040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9041printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9042	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9043	CFLAGS="$xorg_testset_save_CFLAGS"
9044fi
9045
9046found="no"
9047
9048	if test $found = "no" ; then
9049		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9050			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9051		fi
9052
9053		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9054			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9055		fi
9056
9057		CFLAGS="$CFLAGS -Wimplicit"
9058
9059		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9060printf %s "checking if $CC supports -Wimplicit... " >&6; }
9061		cacheid=xorg_cv_cc_flag__Wimplicit
9062		if eval test \${$cacheid+y}
9063then :
9064  printf %s "(cached) " >&6
9065else $as_nop
9066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067/* end confdefs.h.  */
9068int i;
9069int
9070main (void)
9071{
9072
9073  ;
9074  return 0;
9075}
9076_ACEOF
9077if ac_fn_c_try_link "$LINENO"
9078then :
9079  eval $cacheid=yes
9080else $as_nop
9081  eval $cacheid=no
9082fi
9083rm -f core conftest.err conftest.$ac_objext conftest.beam \
9084    conftest$ac_exeext conftest.$ac_ext
9085fi
9086
9087
9088		CFLAGS="$xorg_testset_save_CFLAGS"
9089
9090		eval supported=\$$cacheid
9091		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9092printf "%s\n" "$supported" >&6; }
9093		if test "$supported" = "yes" ; then
9094			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9095			found="yes"
9096		fi
9097	fi
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113xorg_testset_save_CFLAGS="$CFLAGS"
9114
9115if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9116	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9117	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9118printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9119if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9120then :
9121  printf %s "(cached) " >&6
9122else $as_nop
9123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9124/* end confdefs.h.  */
9125int i;
9126_ACEOF
9127if ac_fn_c_try_compile "$LINENO"
9128then :
9129  xorg_cv_cc_flag_unknown_warning_option=yes
9130else $as_nop
9131  xorg_cv_cc_flag_unknown_warning_option=no
9132fi
9133rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9134fi
9135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9136printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9137	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9138	CFLAGS="$xorg_testset_save_CFLAGS"
9139fi
9140
9141if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9142	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9143		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9144	fi
9145	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9146	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9147printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9148if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9149then :
9150  printf %s "(cached) " >&6
9151else $as_nop
9152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153/* end confdefs.h.  */
9154int i;
9155_ACEOF
9156if ac_fn_c_try_compile "$LINENO"
9157then :
9158  xorg_cv_cc_flag_unused_command_line_argument=yes
9159else $as_nop
9160  xorg_cv_cc_flag_unused_command_line_argument=no
9161fi
9162rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9163fi
9164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9165printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9166	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9167	CFLAGS="$xorg_testset_save_CFLAGS"
9168fi
9169
9170found="no"
9171
9172	if test $found = "no" ; then
9173		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9174			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9175		fi
9176
9177		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9178			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9179		fi
9180
9181		CFLAGS="$CFLAGS -Wnonnull"
9182
9183		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9184printf %s "checking if $CC supports -Wnonnull... " >&6; }
9185		cacheid=xorg_cv_cc_flag__Wnonnull
9186		if eval test \${$cacheid+y}
9187then :
9188  printf %s "(cached) " >&6
9189else $as_nop
9190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191/* end confdefs.h.  */
9192int i;
9193int
9194main (void)
9195{
9196
9197  ;
9198  return 0;
9199}
9200_ACEOF
9201if ac_fn_c_try_link "$LINENO"
9202then :
9203  eval $cacheid=yes
9204else $as_nop
9205  eval $cacheid=no
9206fi
9207rm -f core conftest.err conftest.$ac_objext conftest.beam \
9208    conftest$ac_exeext conftest.$ac_ext
9209fi
9210
9211
9212		CFLAGS="$xorg_testset_save_CFLAGS"
9213
9214		eval supported=\$$cacheid
9215		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9216printf "%s\n" "$supported" >&6; }
9217		if test "$supported" = "yes" ; then
9218			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9219			found="yes"
9220		fi
9221	fi
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237xorg_testset_save_CFLAGS="$CFLAGS"
9238
9239if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9240	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9241	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9242printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9243if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9244then :
9245  printf %s "(cached) " >&6
9246else $as_nop
9247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9248/* end confdefs.h.  */
9249int i;
9250_ACEOF
9251if ac_fn_c_try_compile "$LINENO"
9252then :
9253  xorg_cv_cc_flag_unknown_warning_option=yes
9254else $as_nop
9255  xorg_cv_cc_flag_unknown_warning_option=no
9256fi
9257rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9258fi
9259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9260printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9261	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9262	CFLAGS="$xorg_testset_save_CFLAGS"
9263fi
9264
9265if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9266	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9267		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9268	fi
9269	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9270	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9271printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9272if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9273then :
9274  printf %s "(cached) " >&6
9275else $as_nop
9276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9277/* end confdefs.h.  */
9278int i;
9279_ACEOF
9280if ac_fn_c_try_compile "$LINENO"
9281then :
9282  xorg_cv_cc_flag_unused_command_line_argument=yes
9283else $as_nop
9284  xorg_cv_cc_flag_unused_command_line_argument=no
9285fi
9286rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9287fi
9288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9289printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9290	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9291	CFLAGS="$xorg_testset_save_CFLAGS"
9292fi
9293
9294found="no"
9295
9296	if test $found = "no" ; then
9297		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9298			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9299		fi
9300
9301		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9302			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9303		fi
9304
9305		CFLAGS="$CFLAGS -Winit-self"
9306
9307		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9308printf %s "checking if $CC supports -Winit-self... " >&6; }
9309		cacheid=xorg_cv_cc_flag__Winit_self
9310		if eval test \${$cacheid+y}
9311then :
9312  printf %s "(cached) " >&6
9313else $as_nop
9314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9315/* end confdefs.h.  */
9316int i;
9317int
9318main (void)
9319{
9320
9321  ;
9322  return 0;
9323}
9324_ACEOF
9325if ac_fn_c_try_link "$LINENO"
9326then :
9327  eval $cacheid=yes
9328else $as_nop
9329  eval $cacheid=no
9330fi
9331rm -f core conftest.err conftest.$ac_objext conftest.beam \
9332    conftest$ac_exeext conftest.$ac_ext
9333fi
9334
9335
9336		CFLAGS="$xorg_testset_save_CFLAGS"
9337
9338		eval supported=\$$cacheid
9339		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9340printf "%s\n" "$supported" >&6; }
9341		if test "$supported" = "yes" ; then
9342			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9343			found="yes"
9344		fi
9345	fi
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361xorg_testset_save_CFLAGS="$CFLAGS"
9362
9363if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9364	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9365	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9366printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9367if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9368then :
9369  printf %s "(cached) " >&6
9370else $as_nop
9371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9372/* end confdefs.h.  */
9373int i;
9374_ACEOF
9375if ac_fn_c_try_compile "$LINENO"
9376then :
9377  xorg_cv_cc_flag_unknown_warning_option=yes
9378else $as_nop
9379  xorg_cv_cc_flag_unknown_warning_option=no
9380fi
9381rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9382fi
9383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9384printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9385	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9386	CFLAGS="$xorg_testset_save_CFLAGS"
9387fi
9388
9389if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9390	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9391		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9392	fi
9393	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9394	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9395printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9396if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9397then :
9398  printf %s "(cached) " >&6
9399else $as_nop
9400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9401/* end confdefs.h.  */
9402int i;
9403_ACEOF
9404if ac_fn_c_try_compile "$LINENO"
9405then :
9406  xorg_cv_cc_flag_unused_command_line_argument=yes
9407else $as_nop
9408  xorg_cv_cc_flag_unused_command_line_argument=no
9409fi
9410rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9411fi
9412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9413printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9414	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9415	CFLAGS="$xorg_testset_save_CFLAGS"
9416fi
9417
9418found="no"
9419
9420	if test $found = "no" ; then
9421		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9422			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9423		fi
9424
9425		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9426			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9427		fi
9428
9429		CFLAGS="$CFLAGS -Wmain"
9430
9431		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9432printf %s "checking if $CC supports -Wmain... " >&6; }
9433		cacheid=xorg_cv_cc_flag__Wmain
9434		if eval test \${$cacheid+y}
9435then :
9436  printf %s "(cached) " >&6
9437else $as_nop
9438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9439/* end confdefs.h.  */
9440int i;
9441int
9442main (void)
9443{
9444
9445  ;
9446  return 0;
9447}
9448_ACEOF
9449if ac_fn_c_try_link "$LINENO"
9450then :
9451  eval $cacheid=yes
9452else $as_nop
9453  eval $cacheid=no
9454fi
9455rm -f core conftest.err conftest.$ac_objext conftest.beam \
9456    conftest$ac_exeext conftest.$ac_ext
9457fi
9458
9459
9460		CFLAGS="$xorg_testset_save_CFLAGS"
9461
9462		eval supported=\$$cacheid
9463		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9464printf "%s\n" "$supported" >&6; }
9465		if test "$supported" = "yes" ; then
9466			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9467			found="yes"
9468		fi
9469	fi
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485xorg_testset_save_CFLAGS="$CFLAGS"
9486
9487if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9488	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9489	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9490printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9491if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9492then :
9493  printf %s "(cached) " >&6
9494else $as_nop
9495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9496/* end confdefs.h.  */
9497int i;
9498_ACEOF
9499if ac_fn_c_try_compile "$LINENO"
9500then :
9501  xorg_cv_cc_flag_unknown_warning_option=yes
9502else $as_nop
9503  xorg_cv_cc_flag_unknown_warning_option=no
9504fi
9505rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9506fi
9507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9508printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9509	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9510	CFLAGS="$xorg_testset_save_CFLAGS"
9511fi
9512
9513if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9514	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9515		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9516	fi
9517	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9518	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9519printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9520if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9521then :
9522  printf %s "(cached) " >&6
9523else $as_nop
9524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9525/* end confdefs.h.  */
9526int i;
9527_ACEOF
9528if ac_fn_c_try_compile "$LINENO"
9529then :
9530  xorg_cv_cc_flag_unused_command_line_argument=yes
9531else $as_nop
9532  xorg_cv_cc_flag_unused_command_line_argument=no
9533fi
9534rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9535fi
9536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9537printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9538	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9539	CFLAGS="$xorg_testset_save_CFLAGS"
9540fi
9541
9542found="no"
9543
9544	if test $found = "no" ; then
9545		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9546			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9547		fi
9548
9549		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9550			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9551		fi
9552
9553		CFLAGS="$CFLAGS -Wmissing-braces"
9554
9555		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9556printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9557		cacheid=xorg_cv_cc_flag__Wmissing_braces
9558		if eval test \${$cacheid+y}
9559then :
9560  printf %s "(cached) " >&6
9561else $as_nop
9562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9563/* end confdefs.h.  */
9564int i;
9565int
9566main (void)
9567{
9568
9569  ;
9570  return 0;
9571}
9572_ACEOF
9573if ac_fn_c_try_link "$LINENO"
9574then :
9575  eval $cacheid=yes
9576else $as_nop
9577  eval $cacheid=no
9578fi
9579rm -f core conftest.err conftest.$ac_objext conftest.beam \
9580    conftest$ac_exeext conftest.$ac_ext
9581fi
9582
9583
9584		CFLAGS="$xorg_testset_save_CFLAGS"
9585
9586		eval supported=\$$cacheid
9587		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9588printf "%s\n" "$supported" >&6; }
9589		if test "$supported" = "yes" ; then
9590			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9591			found="yes"
9592		fi
9593	fi
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609xorg_testset_save_CFLAGS="$CFLAGS"
9610
9611if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9612	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9613	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9614printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9615if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9616then :
9617  printf %s "(cached) " >&6
9618else $as_nop
9619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9620/* end confdefs.h.  */
9621int i;
9622_ACEOF
9623if ac_fn_c_try_compile "$LINENO"
9624then :
9625  xorg_cv_cc_flag_unknown_warning_option=yes
9626else $as_nop
9627  xorg_cv_cc_flag_unknown_warning_option=no
9628fi
9629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9630fi
9631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9632printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9633	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9634	CFLAGS="$xorg_testset_save_CFLAGS"
9635fi
9636
9637if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9638	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9639		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9640	fi
9641	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9642	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9643printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9644if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9645then :
9646  printf %s "(cached) " >&6
9647else $as_nop
9648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649/* end confdefs.h.  */
9650int i;
9651_ACEOF
9652if ac_fn_c_try_compile "$LINENO"
9653then :
9654  xorg_cv_cc_flag_unused_command_line_argument=yes
9655else $as_nop
9656  xorg_cv_cc_flag_unused_command_line_argument=no
9657fi
9658rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9659fi
9660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9661printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9662	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9663	CFLAGS="$xorg_testset_save_CFLAGS"
9664fi
9665
9666found="no"
9667
9668	if test $found = "no" ; then
9669		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9670			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9671		fi
9672
9673		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9674			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9675		fi
9676
9677		CFLAGS="$CFLAGS -Wsequence-point"
9678
9679		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9680printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9681		cacheid=xorg_cv_cc_flag__Wsequence_point
9682		if eval test \${$cacheid+y}
9683then :
9684  printf %s "(cached) " >&6
9685else $as_nop
9686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9687/* end confdefs.h.  */
9688int i;
9689int
9690main (void)
9691{
9692
9693  ;
9694  return 0;
9695}
9696_ACEOF
9697if ac_fn_c_try_link "$LINENO"
9698then :
9699  eval $cacheid=yes
9700else $as_nop
9701  eval $cacheid=no
9702fi
9703rm -f core conftest.err conftest.$ac_objext conftest.beam \
9704    conftest$ac_exeext conftest.$ac_ext
9705fi
9706
9707
9708		CFLAGS="$xorg_testset_save_CFLAGS"
9709
9710		eval supported=\$$cacheid
9711		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9712printf "%s\n" "$supported" >&6; }
9713		if test "$supported" = "yes" ; then
9714			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9715			found="yes"
9716		fi
9717	fi
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733xorg_testset_save_CFLAGS="$CFLAGS"
9734
9735if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9736	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9737	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9738printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9739if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9740then :
9741  printf %s "(cached) " >&6
9742else $as_nop
9743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9744/* end confdefs.h.  */
9745int i;
9746_ACEOF
9747if ac_fn_c_try_compile "$LINENO"
9748then :
9749  xorg_cv_cc_flag_unknown_warning_option=yes
9750else $as_nop
9751  xorg_cv_cc_flag_unknown_warning_option=no
9752fi
9753rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9754fi
9755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9756printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9757	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9758	CFLAGS="$xorg_testset_save_CFLAGS"
9759fi
9760
9761if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9762	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9763		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9764	fi
9765	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9766	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9767printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9768if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9769then :
9770  printf %s "(cached) " >&6
9771else $as_nop
9772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9773/* end confdefs.h.  */
9774int i;
9775_ACEOF
9776if ac_fn_c_try_compile "$LINENO"
9777then :
9778  xorg_cv_cc_flag_unused_command_line_argument=yes
9779else $as_nop
9780  xorg_cv_cc_flag_unused_command_line_argument=no
9781fi
9782rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9783fi
9784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9785printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9786	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9787	CFLAGS="$xorg_testset_save_CFLAGS"
9788fi
9789
9790found="no"
9791
9792	if test $found = "no" ; then
9793		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9794			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9795		fi
9796
9797		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9798			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9799		fi
9800
9801		CFLAGS="$CFLAGS -Wreturn-type"
9802
9803		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9804printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9805		cacheid=xorg_cv_cc_flag__Wreturn_type
9806		if eval test \${$cacheid+y}
9807then :
9808  printf %s "(cached) " >&6
9809else $as_nop
9810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811/* end confdefs.h.  */
9812int i;
9813int
9814main (void)
9815{
9816
9817  ;
9818  return 0;
9819}
9820_ACEOF
9821if ac_fn_c_try_link "$LINENO"
9822then :
9823  eval $cacheid=yes
9824else $as_nop
9825  eval $cacheid=no
9826fi
9827rm -f core conftest.err conftest.$ac_objext conftest.beam \
9828    conftest$ac_exeext conftest.$ac_ext
9829fi
9830
9831
9832		CFLAGS="$xorg_testset_save_CFLAGS"
9833
9834		eval supported=\$$cacheid
9835		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9836printf "%s\n" "$supported" >&6; }
9837		if test "$supported" = "yes" ; then
9838			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9839			found="yes"
9840		fi
9841	fi
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857xorg_testset_save_CFLAGS="$CFLAGS"
9858
9859if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9860	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9861	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9862printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9863if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9864then :
9865  printf %s "(cached) " >&6
9866else $as_nop
9867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9868/* end confdefs.h.  */
9869int i;
9870_ACEOF
9871if ac_fn_c_try_compile "$LINENO"
9872then :
9873  xorg_cv_cc_flag_unknown_warning_option=yes
9874else $as_nop
9875  xorg_cv_cc_flag_unknown_warning_option=no
9876fi
9877rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9878fi
9879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9880printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9881	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9882	CFLAGS="$xorg_testset_save_CFLAGS"
9883fi
9884
9885if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9886	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9887		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9888	fi
9889	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9890	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9891printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9892if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9893then :
9894  printf %s "(cached) " >&6
9895else $as_nop
9896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897/* end confdefs.h.  */
9898int i;
9899_ACEOF
9900if ac_fn_c_try_compile "$LINENO"
9901then :
9902  xorg_cv_cc_flag_unused_command_line_argument=yes
9903else $as_nop
9904  xorg_cv_cc_flag_unused_command_line_argument=no
9905fi
9906rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9907fi
9908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9909printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9910	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9911	CFLAGS="$xorg_testset_save_CFLAGS"
9912fi
9913
9914found="no"
9915
9916	if test $found = "no" ; then
9917		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9918			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9919		fi
9920
9921		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9922			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9923		fi
9924
9925		CFLAGS="$CFLAGS -Wtrigraphs"
9926
9927		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9928printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9929		cacheid=xorg_cv_cc_flag__Wtrigraphs
9930		if eval test \${$cacheid+y}
9931then :
9932  printf %s "(cached) " >&6
9933else $as_nop
9934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9935/* end confdefs.h.  */
9936int i;
9937int
9938main (void)
9939{
9940
9941  ;
9942  return 0;
9943}
9944_ACEOF
9945if ac_fn_c_try_link "$LINENO"
9946then :
9947  eval $cacheid=yes
9948else $as_nop
9949  eval $cacheid=no
9950fi
9951rm -f core conftest.err conftest.$ac_objext conftest.beam \
9952    conftest$ac_exeext conftest.$ac_ext
9953fi
9954
9955
9956		CFLAGS="$xorg_testset_save_CFLAGS"
9957
9958		eval supported=\$$cacheid
9959		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9960printf "%s\n" "$supported" >&6; }
9961		if test "$supported" = "yes" ; then
9962			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9963			found="yes"
9964		fi
9965	fi
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981xorg_testset_save_CFLAGS="$CFLAGS"
9982
9983if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9984	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9985	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9986printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9987if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9988then :
9989  printf %s "(cached) " >&6
9990else $as_nop
9991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9992/* end confdefs.h.  */
9993int i;
9994_ACEOF
9995if ac_fn_c_try_compile "$LINENO"
9996then :
9997  xorg_cv_cc_flag_unknown_warning_option=yes
9998else $as_nop
9999  xorg_cv_cc_flag_unknown_warning_option=no
10000fi
10001rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10002fi
10003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10004printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10005	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10006	CFLAGS="$xorg_testset_save_CFLAGS"
10007fi
10008
10009if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10010	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10011		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10012	fi
10013	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10014	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10015printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10016if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10017then :
10018  printf %s "(cached) " >&6
10019else $as_nop
10020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10021/* end confdefs.h.  */
10022int i;
10023_ACEOF
10024if ac_fn_c_try_compile "$LINENO"
10025then :
10026  xorg_cv_cc_flag_unused_command_line_argument=yes
10027else $as_nop
10028  xorg_cv_cc_flag_unused_command_line_argument=no
10029fi
10030rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10031fi
10032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10033printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10034	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10035	CFLAGS="$xorg_testset_save_CFLAGS"
10036fi
10037
10038found="no"
10039
10040	if test $found = "no" ; then
10041		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10042			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10043		fi
10044
10045		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10046			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10047		fi
10048
10049		CFLAGS="$CFLAGS -Warray-bounds"
10050
10051		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10052printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10053		cacheid=xorg_cv_cc_flag__Warray_bounds
10054		if eval test \${$cacheid+y}
10055then :
10056  printf %s "(cached) " >&6
10057else $as_nop
10058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10059/* end confdefs.h.  */
10060int i;
10061int
10062main (void)
10063{
10064
10065  ;
10066  return 0;
10067}
10068_ACEOF
10069if ac_fn_c_try_link "$LINENO"
10070then :
10071  eval $cacheid=yes
10072else $as_nop
10073  eval $cacheid=no
10074fi
10075rm -f core conftest.err conftest.$ac_objext conftest.beam \
10076    conftest$ac_exeext conftest.$ac_ext
10077fi
10078
10079
10080		CFLAGS="$xorg_testset_save_CFLAGS"
10081
10082		eval supported=\$$cacheid
10083		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10084printf "%s\n" "$supported" >&6; }
10085		if test "$supported" = "yes" ; then
10086			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10087			found="yes"
10088		fi
10089	fi
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105xorg_testset_save_CFLAGS="$CFLAGS"
10106
10107if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10108	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10109	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10110printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10111if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10112then :
10113  printf %s "(cached) " >&6
10114else $as_nop
10115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10116/* end confdefs.h.  */
10117int i;
10118_ACEOF
10119if ac_fn_c_try_compile "$LINENO"
10120then :
10121  xorg_cv_cc_flag_unknown_warning_option=yes
10122else $as_nop
10123  xorg_cv_cc_flag_unknown_warning_option=no
10124fi
10125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10126fi
10127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10128printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10129	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10130	CFLAGS="$xorg_testset_save_CFLAGS"
10131fi
10132
10133if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10134	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10135		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10136	fi
10137	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10138	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10139printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10140if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10141then :
10142  printf %s "(cached) " >&6
10143else $as_nop
10144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10145/* end confdefs.h.  */
10146int i;
10147_ACEOF
10148if ac_fn_c_try_compile "$LINENO"
10149then :
10150  xorg_cv_cc_flag_unused_command_line_argument=yes
10151else $as_nop
10152  xorg_cv_cc_flag_unused_command_line_argument=no
10153fi
10154rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10155fi
10156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10157printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10158	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10159	CFLAGS="$xorg_testset_save_CFLAGS"
10160fi
10161
10162found="no"
10163
10164	if test $found = "no" ; then
10165		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10166			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10167		fi
10168
10169		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10170			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10171		fi
10172
10173		CFLAGS="$CFLAGS -Wwrite-strings"
10174
10175		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10176printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10177		cacheid=xorg_cv_cc_flag__Wwrite_strings
10178		if eval test \${$cacheid+y}
10179then :
10180  printf %s "(cached) " >&6
10181else $as_nop
10182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10183/* end confdefs.h.  */
10184int i;
10185int
10186main (void)
10187{
10188
10189  ;
10190  return 0;
10191}
10192_ACEOF
10193if ac_fn_c_try_link "$LINENO"
10194then :
10195  eval $cacheid=yes
10196else $as_nop
10197  eval $cacheid=no
10198fi
10199rm -f core conftest.err conftest.$ac_objext conftest.beam \
10200    conftest$ac_exeext conftest.$ac_ext
10201fi
10202
10203
10204		CFLAGS="$xorg_testset_save_CFLAGS"
10205
10206		eval supported=\$$cacheid
10207		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10208printf "%s\n" "$supported" >&6; }
10209		if test "$supported" = "yes" ; then
10210			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10211			found="yes"
10212		fi
10213	fi
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229xorg_testset_save_CFLAGS="$CFLAGS"
10230
10231if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10232	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10233	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10234printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10235if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10236then :
10237  printf %s "(cached) " >&6
10238else $as_nop
10239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10240/* end confdefs.h.  */
10241int i;
10242_ACEOF
10243if ac_fn_c_try_compile "$LINENO"
10244then :
10245  xorg_cv_cc_flag_unknown_warning_option=yes
10246else $as_nop
10247  xorg_cv_cc_flag_unknown_warning_option=no
10248fi
10249rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10250fi
10251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10252printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10253	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10254	CFLAGS="$xorg_testset_save_CFLAGS"
10255fi
10256
10257if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10258	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10259		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10260	fi
10261	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10262	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10263printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10264if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10265then :
10266  printf %s "(cached) " >&6
10267else $as_nop
10268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10269/* end confdefs.h.  */
10270int i;
10271_ACEOF
10272if ac_fn_c_try_compile "$LINENO"
10273then :
10274  xorg_cv_cc_flag_unused_command_line_argument=yes
10275else $as_nop
10276  xorg_cv_cc_flag_unused_command_line_argument=no
10277fi
10278rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10279fi
10280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10281printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10282	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10283	CFLAGS="$xorg_testset_save_CFLAGS"
10284fi
10285
10286found="no"
10287
10288	if test $found = "no" ; then
10289		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10290			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10291		fi
10292
10293		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10294			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10295		fi
10296
10297		CFLAGS="$CFLAGS -Waddress"
10298
10299		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10300printf %s "checking if $CC supports -Waddress... " >&6; }
10301		cacheid=xorg_cv_cc_flag__Waddress
10302		if eval test \${$cacheid+y}
10303then :
10304  printf %s "(cached) " >&6
10305else $as_nop
10306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10307/* end confdefs.h.  */
10308int i;
10309int
10310main (void)
10311{
10312
10313  ;
10314  return 0;
10315}
10316_ACEOF
10317if ac_fn_c_try_link "$LINENO"
10318then :
10319  eval $cacheid=yes
10320else $as_nop
10321  eval $cacheid=no
10322fi
10323rm -f core conftest.err conftest.$ac_objext conftest.beam \
10324    conftest$ac_exeext conftest.$ac_ext
10325fi
10326
10327
10328		CFLAGS="$xorg_testset_save_CFLAGS"
10329
10330		eval supported=\$$cacheid
10331		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10332printf "%s\n" "$supported" >&6; }
10333		if test "$supported" = "yes" ; then
10334			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10335			found="yes"
10336		fi
10337	fi
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353xorg_testset_save_CFLAGS="$CFLAGS"
10354
10355if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10356	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10357	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10358printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10359if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10360then :
10361  printf %s "(cached) " >&6
10362else $as_nop
10363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10364/* end confdefs.h.  */
10365int i;
10366_ACEOF
10367if ac_fn_c_try_compile "$LINENO"
10368then :
10369  xorg_cv_cc_flag_unknown_warning_option=yes
10370else $as_nop
10371  xorg_cv_cc_flag_unknown_warning_option=no
10372fi
10373rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10374fi
10375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10376printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10377	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10378	CFLAGS="$xorg_testset_save_CFLAGS"
10379fi
10380
10381if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10382	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10383		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10384	fi
10385	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10386	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10387printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10388if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10389then :
10390  printf %s "(cached) " >&6
10391else $as_nop
10392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10393/* end confdefs.h.  */
10394int i;
10395_ACEOF
10396if ac_fn_c_try_compile "$LINENO"
10397then :
10398  xorg_cv_cc_flag_unused_command_line_argument=yes
10399else $as_nop
10400  xorg_cv_cc_flag_unused_command_line_argument=no
10401fi
10402rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10403fi
10404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10405printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10406	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10407	CFLAGS="$xorg_testset_save_CFLAGS"
10408fi
10409
10410found="no"
10411
10412	if test $found = "no" ; then
10413		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10414			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10415		fi
10416
10417		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10418			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10419		fi
10420
10421		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10422
10423		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10424printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10425		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10426		if eval test \${$cacheid+y}
10427then :
10428  printf %s "(cached) " >&6
10429else $as_nop
10430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10431/* end confdefs.h.  */
10432int i;
10433int
10434main (void)
10435{
10436
10437  ;
10438  return 0;
10439}
10440_ACEOF
10441if ac_fn_c_try_link "$LINENO"
10442then :
10443  eval $cacheid=yes
10444else $as_nop
10445  eval $cacheid=no
10446fi
10447rm -f core conftest.err conftest.$ac_objext conftest.beam \
10448    conftest$ac_exeext conftest.$ac_ext
10449fi
10450
10451
10452		CFLAGS="$xorg_testset_save_CFLAGS"
10453
10454		eval supported=\$$cacheid
10455		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10456printf "%s\n" "$supported" >&6; }
10457		if test "$supported" = "yes" ; then
10458			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10459			found="yes"
10460		fi
10461	fi
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477xorg_testset_save_CFLAGS="$CFLAGS"
10478
10479if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10480	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10481	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10482printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10483if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10484then :
10485  printf %s "(cached) " >&6
10486else $as_nop
10487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10488/* end confdefs.h.  */
10489int i;
10490_ACEOF
10491if ac_fn_c_try_compile "$LINENO"
10492then :
10493  xorg_cv_cc_flag_unknown_warning_option=yes
10494else $as_nop
10495  xorg_cv_cc_flag_unknown_warning_option=no
10496fi
10497rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10498fi
10499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10500printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10501	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10502	CFLAGS="$xorg_testset_save_CFLAGS"
10503fi
10504
10505if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10506	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10507		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10508	fi
10509	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10510	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10511printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10512if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10513then :
10514  printf %s "(cached) " >&6
10515else $as_nop
10516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10517/* end confdefs.h.  */
10518int i;
10519_ACEOF
10520if ac_fn_c_try_compile "$LINENO"
10521then :
10522  xorg_cv_cc_flag_unused_command_line_argument=yes
10523else $as_nop
10524  xorg_cv_cc_flag_unused_command_line_argument=no
10525fi
10526rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10527fi
10528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10529printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10530	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10531	CFLAGS="$xorg_testset_save_CFLAGS"
10532fi
10533
10534found="no"
10535
10536	if test $found = "no" ; then
10537		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10538			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10539		fi
10540
10541		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10542			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10543		fi
10544
10545		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10546
10547		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10548printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10549		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10550		if eval test \${$cacheid+y}
10551then :
10552  printf %s "(cached) " >&6
10553else $as_nop
10554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10555/* end confdefs.h.  */
10556int i;
10557int
10558main (void)
10559{
10560
10561  ;
10562  return 0;
10563}
10564_ACEOF
10565if ac_fn_c_try_link "$LINENO"
10566then :
10567  eval $cacheid=yes
10568else $as_nop
10569  eval $cacheid=no
10570fi
10571rm -f core conftest.err conftest.$ac_objext conftest.beam \
10572    conftest$ac_exeext conftest.$ac_ext
10573fi
10574
10575
10576		CFLAGS="$xorg_testset_save_CFLAGS"
10577
10578		eval supported=\$$cacheid
10579		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10580printf "%s\n" "$supported" >&6; }
10581		if test "$supported" = "yes" ; then
10582			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10583			found="yes"
10584		fi
10585	fi
10586
10587
10588fi
10589
10590
10591
10592
10593
10594
10595
10596		CWARNFLAGS="$BASE_CFLAGS"
10597		if  test "x$GCC" = xyes ; then
10598		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10599		fi
10600
10601
10602
10603
10604
10605
10606
10607
10608# Check whether --enable-strict-compilation was given.
10609if test ${enable_strict_compilation+y}
10610then :
10611  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10612else $as_nop
10613  STRICT_COMPILE=no
10614fi
10615
10616
10617
10618
10619
10620
10621STRICT_CFLAGS=""
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635xorg_testset_save_CFLAGS="$CFLAGS"
10636
10637if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10638	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10639	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10640printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10641if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10642then :
10643  printf %s "(cached) " >&6
10644else $as_nop
10645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10646/* end confdefs.h.  */
10647int i;
10648_ACEOF
10649if ac_fn_c_try_compile "$LINENO"
10650then :
10651  xorg_cv_cc_flag_unknown_warning_option=yes
10652else $as_nop
10653  xorg_cv_cc_flag_unknown_warning_option=no
10654fi
10655rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10656fi
10657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10658printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10659	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10660	CFLAGS="$xorg_testset_save_CFLAGS"
10661fi
10662
10663if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10664	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10665		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10666	fi
10667	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10668	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10669printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10670if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10671then :
10672  printf %s "(cached) " >&6
10673else $as_nop
10674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675/* end confdefs.h.  */
10676int i;
10677_ACEOF
10678if ac_fn_c_try_compile "$LINENO"
10679then :
10680  xorg_cv_cc_flag_unused_command_line_argument=yes
10681else $as_nop
10682  xorg_cv_cc_flag_unused_command_line_argument=no
10683fi
10684rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10685fi
10686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10687printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10688	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10689	CFLAGS="$xorg_testset_save_CFLAGS"
10690fi
10691
10692found="no"
10693
10694	if test $found = "no" ; then
10695		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10696			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10697		fi
10698
10699		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10700			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10701		fi
10702
10703		CFLAGS="$CFLAGS -pedantic"
10704
10705		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10706printf %s "checking if $CC supports -pedantic... " >&6; }
10707		cacheid=xorg_cv_cc_flag__pedantic
10708		if eval test \${$cacheid+y}
10709then :
10710  printf %s "(cached) " >&6
10711else $as_nop
10712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10713/* end confdefs.h.  */
10714int i;
10715int
10716main (void)
10717{
10718
10719  ;
10720  return 0;
10721}
10722_ACEOF
10723if ac_fn_c_try_link "$LINENO"
10724then :
10725  eval $cacheid=yes
10726else $as_nop
10727  eval $cacheid=no
10728fi
10729rm -f core conftest.err conftest.$ac_objext conftest.beam \
10730    conftest$ac_exeext conftest.$ac_ext
10731fi
10732
10733
10734		CFLAGS="$xorg_testset_save_CFLAGS"
10735
10736		eval supported=\$$cacheid
10737		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10738printf "%s\n" "$supported" >&6; }
10739		if test "$supported" = "yes" ; then
10740			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10741			found="yes"
10742		fi
10743	fi
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759xorg_testset_save_CFLAGS="$CFLAGS"
10760
10761if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10762	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10763	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10764printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10765if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10766then :
10767  printf %s "(cached) " >&6
10768else $as_nop
10769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770/* end confdefs.h.  */
10771int i;
10772_ACEOF
10773if ac_fn_c_try_compile "$LINENO"
10774then :
10775  xorg_cv_cc_flag_unknown_warning_option=yes
10776else $as_nop
10777  xorg_cv_cc_flag_unknown_warning_option=no
10778fi
10779rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10780fi
10781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10782printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10783	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10784	CFLAGS="$xorg_testset_save_CFLAGS"
10785fi
10786
10787if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10788	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10789		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10790	fi
10791	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10792	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10793printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10794if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10795then :
10796  printf %s "(cached) " >&6
10797else $as_nop
10798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10799/* end confdefs.h.  */
10800int i;
10801_ACEOF
10802if ac_fn_c_try_compile "$LINENO"
10803then :
10804  xorg_cv_cc_flag_unused_command_line_argument=yes
10805else $as_nop
10806  xorg_cv_cc_flag_unused_command_line_argument=no
10807fi
10808rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10809fi
10810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10811printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10812	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10813	CFLAGS="$xorg_testset_save_CFLAGS"
10814fi
10815
10816found="no"
10817
10818	if test $found = "no" ; then
10819		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10820			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10821		fi
10822
10823		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10824			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10825		fi
10826
10827		CFLAGS="$CFLAGS -Werror"
10828
10829		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10830printf %s "checking if $CC supports -Werror... " >&6; }
10831		cacheid=xorg_cv_cc_flag__Werror
10832		if eval test \${$cacheid+y}
10833then :
10834  printf %s "(cached) " >&6
10835else $as_nop
10836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10837/* end confdefs.h.  */
10838int i;
10839int
10840main (void)
10841{
10842
10843  ;
10844  return 0;
10845}
10846_ACEOF
10847if ac_fn_c_try_link "$LINENO"
10848then :
10849  eval $cacheid=yes
10850else $as_nop
10851  eval $cacheid=no
10852fi
10853rm -f core conftest.err conftest.$ac_objext conftest.beam \
10854    conftest$ac_exeext conftest.$ac_ext
10855fi
10856
10857
10858		CFLAGS="$xorg_testset_save_CFLAGS"
10859
10860		eval supported=\$$cacheid
10861		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10862printf "%s\n" "$supported" >&6; }
10863		if test "$supported" = "yes" ; then
10864			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10865			found="yes"
10866		fi
10867	fi
10868
10869	if test $found = "no" ; then
10870		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10871			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10872		fi
10873
10874		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10875			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10876		fi
10877
10878		CFLAGS="$CFLAGS -errwarn"
10879
10880		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10881printf %s "checking if $CC supports -errwarn... " >&6; }
10882		cacheid=xorg_cv_cc_flag__errwarn
10883		if eval test \${$cacheid+y}
10884then :
10885  printf %s "(cached) " >&6
10886else $as_nop
10887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10888/* end confdefs.h.  */
10889int i;
10890int
10891main (void)
10892{
10893
10894  ;
10895  return 0;
10896}
10897_ACEOF
10898if ac_fn_c_try_link "$LINENO"
10899then :
10900  eval $cacheid=yes
10901else $as_nop
10902  eval $cacheid=no
10903fi
10904rm -f core conftest.err conftest.$ac_objext conftest.beam \
10905    conftest$ac_exeext conftest.$ac_ext
10906fi
10907
10908
10909		CFLAGS="$xorg_testset_save_CFLAGS"
10910
10911		eval supported=\$$cacheid
10912		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10913printf "%s\n" "$supported" >&6; }
10914		if test "$supported" = "yes" ; then
10915			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10916			found="yes"
10917		fi
10918	fi
10919
10920
10921
10922# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10923# activate it with -Werror, so we add it here explicitly.
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937xorg_testset_save_CFLAGS="$CFLAGS"
10938
10939if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10940	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10941	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10942printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10943if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10944then :
10945  printf %s "(cached) " >&6
10946else $as_nop
10947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10948/* end confdefs.h.  */
10949int i;
10950_ACEOF
10951if ac_fn_c_try_compile "$LINENO"
10952then :
10953  xorg_cv_cc_flag_unknown_warning_option=yes
10954else $as_nop
10955  xorg_cv_cc_flag_unknown_warning_option=no
10956fi
10957rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10958fi
10959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10960printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10961	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10962	CFLAGS="$xorg_testset_save_CFLAGS"
10963fi
10964
10965if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10966	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10967		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10968	fi
10969	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10970	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10971printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10972if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10973then :
10974  printf %s "(cached) " >&6
10975else $as_nop
10976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10977/* end confdefs.h.  */
10978int i;
10979_ACEOF
10980if ac_fn_c_try_compile "$LINENO"
10981then :
10982  xorg_cv_cc_flag_unused_command_line_argument=yes
10983else $as_nop
10984  xorg_cv_cc_flag_unused_command_line_argument=no
10985fi
10986rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10987fi
10988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10989printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10990	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10991	CFLAGS="$xorg_testset_save_CFLAGS"
10992fi
10993
10994found="no"
10995
10996	if test $found = "no" ; then
10997		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10998			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10999		fi
11000
11001		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11002			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11003		fi
11004
11005		CFLAGS="$CFLAGS -Werror=attributes"
11006
11007		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11008printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11009		cacheid=xorg_cv_cc_flag__Werror_attributes
11010		if eval test \${$cacheid+y}
11011then :
11012  printf %s "(cached) " >&6
11013else $as_nop
11014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11015/* end confdefs.h.  */
11016int i;
11017int
11018main (void)
11019{
11020
11021  ;
11022  return 0;
11023}
11024_ACEOF
11025if ac_fn_c_try_link "$LINENO"
11026then :
11027  eval $cacheid=yes
11028else $as_nop
11029  eval $cacheid=no
11030fi
11031rm -f core conftest.err conftest.$ac_objext conftest.beam \
11032    conftest$ac_exeext conftest.$ac_ext
11033fi
11034
11035
11036		CFLAGS="$xorg_testset_save_CFLAGS"
11037
11038		eval supported=\$$cacheid
11039		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11040printf "%s\n" "$supported" >&6; }
11041		if test "$supported" = "yes" ; then
11042			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11043			found="yes"
11044		fi
11045	fi
11046
11047
11048
11049if test "x$STRICT_COMPILE" = "xyes"; then
11050    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11051    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11052fi
11053
11054
11055
11056
11057
11058
11059
11060
11061cat >>confdefs.h <<_ACEOF
11062#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11063_ACEOF
11064
11065	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11066	if test "x$PVM" = "x"; then
11067		PVM="0"
11068	fi
11069
11070printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11071
11072	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11073	if test "x$PVP" = "x"; then
11074		PVP="0"
11075	fi
11076
11077printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11078
11079
11080
11081CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11082mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11083|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11084touch \$(top_srcdir)/ChangeLog; \
11085echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11086
11087
11088
11089
11090macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11091INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11092mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11093|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11094touch \$(top_srcdir)/INSTALL; \
11095echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11096
11097
11098
11099
11100
11101
11102case $host_os in
11103    solaris*)
11104        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11105        # check for a man page file found in later versions that use
11106        # traditional section numbers instead
11107        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11108printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11109if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11110then :
11111  printf %s "(cached) " >&6
11112else $as_nop
11113  test "$cross_compiling" = yes &&
11114  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11115if test -r "/usr/share/man/man7/attributes.7"; then
11116  ac_cv_file__usr_share_man_man7_attributes_7=yes
11117else
11118  ac_cv_file__usr_share_man_man7_attributes_7=no
11119fi
11120fi
11121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11122printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11123if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11124then :
11125  SYSV_MAN_SECTIONS=false
11126else $as_nop
11127  SYSV_MAN_SECTIONS=true
11128fi
11129
11130        ;;
11131    *) SYSV_MAN_SECTIONS=false ;;
11132esac
11133
11134if test x$APP_MAN_SUFFIX = x    ; then
11135    APP_MAN_SUFFIX=1
11136fi
11137if test x$APP_MAN_DIR = x    ; then
11138    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11139fi
11140
11141if test x$LIB_MAN_SUFFIX = x    ; then
11142    LIB_MAN_SUFFIX=3
11143fi
11144if test x$LIB_MAN_DIR = x    ; then
11145    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11146fi
11147
11148if test x$FILE_MAN_SUFFIX = x    ; then
11149    case $SYSV_MAN_SECTIONS in
11150	true)				FILE_MAN_SUFFIX=4  ;;
11151	*)				FILE_MAN_SUFFIX=5  ;;
11152    esac
11153fi
11154if test x$FILE_MAN_DIR = x    ; then
11155    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11156fi
11157
11158if test x$MISC_MAN_SUFFIX = x    ; then
11159    case $SYSV_MAN_SECTIONS in
11160	true)				MISC_MAN_SUFFIX=5  ;;
11161	*)				MISC_MAN_SUFFIX=7  ;;
11162    esac
11163fi
11164if test x$MISC_MAN_DIR = x    ; then
11165    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11166fi
11167
11168if test x$DRIVER_MAN_SUFFIX = x    ; then
11169    case $SYSV_MAN_SECTIONS in
11170	true)				DRIVER_MAN_SUFFIX=7  ;;
11171	*)				DRIVER_MAN_SUFFIX=4  ;;
11172    esac
11173fi
11174if test x$DRIVER_MAN_DIR = x    ; then
11175    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11176fi
11177
11178if test x$ADMIN_MAN_SUFFIX = x    ; then
11179    case $SYSV_MAN_SECTIONS in
11180	true)				ADMIN_MAN_SUFFIX=1m ;;
11181	*)				ADMIN_MAN_SUFFIX=8  ;;
11182    esac
11183fi
11184if test x$ADMIN_MAN_DIR = x    ; then
11185    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11186fi
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202XORG_MAN_PAGE="X Version 11"
11203
11204MAN_SUBSTS="\
11205	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11206	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11207	-e 's|__xservername__|Xorg|g' \
11208	-e 's|__xconfigfile__|xorg.conf|g' \
11209	-e 's|__projectroot__|\$(prefix)|g' \
11210	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11211	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11212	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11213	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11214	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11215	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11216	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11217
11218
11219
11220# Check whether --enable-silent-rules was given.
11221if test ${enable_silent_rules+y}
11222then :
11223  enableval=$enable_silent_rules;
11224fi
11225
11226case $enable_silent_rules in # (((
11227  yes) AM_DEFAULT_VERBOSITY=0;;
11228   no) AM_DEFAULT_VERBOSITY=1;;
11229    *) AM_DEFAULT_VERBOSITY=0;;
11230esac
11231am_make=${MAKE-make}
11232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11233printf %s "checking whether $am_make supports nested variables... " >&6; }
11234if test ${am_cv_make_support_nested_variables+y}
11235then :
11236  printf %s "(cached) " >&6
11237else $as_nop
11238  if printf "%s\n" 'TRUE=$(BAR$(V))
11239BAR0=false
11240BAR1=true
11241V=1
11242am__doit:
11243	@$(TRUE)
11244.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11245  am_cv_make_support_nested_variables=yes
11246else
11247  am_cv_make_support_nested_variables=no
11248fi
11249fi
11250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11251printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11252if test $am_cv_make_support_nested_variables = yes; then
11253    AM_V='$(V)'
11254  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11255else
11256  AM_V=$AM_DEFAULT_VERBOSITY
11257  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11258fi
11259AM_BACKSLASH='\'
11260
11261
11262
11263
11264
11265# Check whether --enable-specs was given.
11266if test ${enable_specs+y}
11267then :
11268  enableval=$enable_specs; build_specs=$enableval
11269else $as_nop
11270  build_specs=yes
11271fi
11272
11273
11274 if test x$build_specs = xyes; then
11275  ENABLE_SPECS_TRUE=
11276  ENABLE_SPECS_FALSE='#'
11277else
11278  ENABLE_SPECS_TRUE='#'
11279  ENABLE_SPECS_FALSE=
11280fi
11281
11282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
11283printf %s "checking whether to build functional specifications... " >&6; }
11284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
11285printf "%s\n" "$build_specs" >&6; }
11286
11287
11288
11289
11290
11291# Check whether --with-xmlto was given.
11292if test ${with_xmlto+y}
11293then :
11294  withval=$with_xmlto; use_xmlto=$withval
11295else $as_nop
11296  use_xmlto=auto
11297fi
11298
11299
11300
11301if test "x$use_xmlto" = x"auto"; then
11302   # Extract the first word of "xmlto", so it can be a program name with args.
11303set dummy xmlto; ac_word=$2
11304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11305printf %s "checking for $ac_word... " >&6; }
11306if test ${ac_cv_path_XMLTO+y}
11307then :
11308  printf %s "(cached) " >&6
11309else $as_nop
11310  case $XMLTO in
11311  [\\/]* | ?:[\\/]*)
11312  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
11313  ;;
11314  *)
11315  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11316for as_dir in $PATH
11317do
11318  IFS=$as_save_IFS
11319  case $as_dir in #(((
11320    '') as_dir=./ ;;
11321    */) ;;
11322    *) as_dir=$as_dir/ ;;
11323  esac
11324    for ac_exec_ext in '' $ac_executable_extensions; do
11325  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11326    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
11327    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11328    break 2
11329  fi
11330done
11331  done
11332IFS=$as_save_IFS
11333
11334  ;;
11335esac
11336fi
11337XMLTO=$ac_cv_path_XMLTO
11338if test -n "$XMLTO"; then
11339  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
11340printf "%s\n" "$XMLTO" >&6; }
11341else
11342  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11343printf "%s\n" "no" >&6; }
11344fi
11345
11346
11347   if test "x$XMLTO" = "x"; then
11348        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
11349printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
11350	have_xmlto=no
11351   else
11352        have_xmlto=yes
11353   fi
11354elif test "x$use_xmlto" = x"yes" ; then
11355   # Extract the first word of "xmlto", so it can be a program name with args.
11356set dummy xmlto; ac_word=$2
11357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11358printf %s "checking for $ac_word... " >&6; }
11359if test ${ac_cv_path_XMLTO+y}
11360then :
11361  printf %s "(cached) " >&6
11362else $as_nop
11363  case $XMLTO in
11364  [\\/]* | ?:[\\/]*)
11365  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
11366  ;;
11367  *)
11368  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11369for as_dir in $PATH
11370do
11371  IFS=$as_save_IFS
11372  case $as_dir in #(((
11373    '') as_dir=./ ;;
11374    */) ;;
11375    *) as_dir=$as_dir/ ;;
11376  esac
11377    for ac_exec_ext in '' $ac_executable_extensions; do
11378  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11379    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
11380    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11381    break 2
11382  fi
11383done
11384  done
11385IFS=$as_save_IFS
11386
11387  ;;
11388esac
11389fi
11390XMLTO=$ac_cv_path_XMLTO
11391if test -n "$XMLTO"; then
11392  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
11393printf "%s\n" "$XMLTO" >&6; }
11394else
11395  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11396printf "%s\n" "no" >&6; }
11397fi
11398
11399
11400   if test "x$XMLTO" = "x"; then
11401        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
11402   fi
11403   have_xmlto=yes
11404elif test "x$use_xmlto" = x"no" ; then
11405   if test "x$XMLTO" != "x"; then
11406      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
11407printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
11408   fi
11409   have_xmlto=no
11410else
11411   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
11412fi
11413
11414# Test for a minimum version of xmlto, if provided.
11415if test "$have_xmlto" = yes; then
11416    # scrape the xmlto version
11417    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
11418printf %s "checking the xmlto version... " >&6; }
11419    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
11420    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
11421printf "%s\n" "$xmlto_version" >&6; }
11422    as_arg_v1=$xmlto_version
11423as_arg_v2=0.0.22
11424awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
11425case $? in #(
11426  1) :
11427    if test "x$use_xmlto" = xauto; then
11428            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
11429printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
11430            have_xmlto=no
11431        else
11432            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
11433        fi ;; #(
11434  0) :
11435     ;; #(
11436  2) :
11437     ;; #(
11438  *) :
11439     ;;
11440esac
11441fi
11442
11443# Test for the ability of xmlto to generate a text target
11444#
11445# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
11446# following test for empty XML docbook files.
11447# For compatibility reasons use the following empty XML docbook file and if
11448# it fails try it again with a non-empty XML file.
11449have_xmlto_text=no
11450cat > conftest.xml << "EOF"
11451EOF
11452if test "$have_xmlto" = yes
11453then :
11454  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
11455then :
11456  have_xmlto_text=yes
11457else $as_nop
11458  # Try it again with a non-empty XML file.
11459              cat > conftest.xml << "EOF"
11460<x></x>
11461EOF
11462              if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
11463then :
11464  have_xmlto_text=yes
11465else $as_nop
11466  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
11467printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
11468fi
11469fi
11470fi
11471rm -f conftest.xml
11472 if test $have_xmlto_text = yes; then
11473  HAVE_XMLTO_TEXT_TRUE=
11474  HAVE_XMLTO_TEXT_FALSE='#'
11475else
11476  HAVE_XMLTO_TEXT_TRUE='#'
11477  HAVE_XMLTO_TEXT_FALSE=
11478fi
11479
11480 if test "$have_xmlto" = yes; then
11481  HAVE_XMLTO_TRUE=
11482  HAVE_XMLTO_FALSE='#'
11483else
11484  HAVE_XMLTO_TRUE='#'
11485  HAVE_XMLTO_FALSE=
11486fi
11487
11488
11489
11490
11491
11492
11493# Check whether --with-fop was given.
11494if test ${with_fop+y}
11495then :
11496  withval=$with_fop; use_fop=$withval
11497else $as_nop
11498  use_fop=auto
11499fi
11500
11501
11502
11503if test "x$use_fop" = x"auto"; then
11504   # Extract the first word of "fop", so it can be a program name with args.
11505set dummy fop; ac_word=$2
11506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11507printf %s "checking for $ac_word... " >&6; }
11508if test ${ac_cv_path_FOP+y}
11509then :
11510  printf %s "(cached) " >&6
11511else $as_nop
11512  case $FOP in
11513  [\\/]* | ?:[\\/]*)
11514  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
11515  ;;
11516  *)
11517  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11518for as_dir in $PATH
11519do
11520  IFS=$as_save_IFS
11521  case $as_dir in #(((
11522    '') as_dir=./ ;;
11523    */) ;;
11524    *) as_dir=$as_dir/ ;;
11525  esac
11526    for ac_exec_ext in '' $ac_executable_extensions; do
11527  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11528    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
11529    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11530    break 2
11531  fi
11532done
11533  done
11534IFS=$as_save_IFS
11535
11536  ;;
11537esac
11538fi
11539FOP=$ac_cv_path_FOP
11540if test -n "$FOP"; then
11541  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
11542printf "%s\n" "$FOP" >&6; }
11543else
11544  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11545printf "%s\n" "no" >&6; }
11546fi
11547
11548
11549   if test "x$FOP" = "x"; then
11550        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
11551printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
11552	have_fop=no
11553   else
11554        have_fop=yes
11555   fi
11556elif test "x$use_fop" = x"yes" ; then
11557   # Extract the first word of "fop", so it can be a program name with args.
11558set dummy fop; ac_word=$2
11559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11560printf %s "checking for $ac_word... " >&6; }
11561if test ${ac_cv_path_FOP+y}
11562then :
11563  printf %s "(cached) " >&6
11564else $as_nop
11565  case $FOP in
11566  [\\/]* | ?:[\\/]*)
11567  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
11568  ;;
11569  *)
11570  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11571for as_dir in $PATH
11572do
11573  IFS=$as_save_IFS
11574  case $as_dir in #(((
11575    '') as_dir=./ ;;
11576    */) ;;
11577    *) as_dir=$as_dir/ ;;
11578  esac
11579    for ac_exec_ext in '' $ac_executable_extensions; do
11580  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11581    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
11582    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11583    break 2
11584  fi
11585done
11586  done
11587IFS=$as_save_IFS
11588
11589  ;;
11590esac
11591fi
11592FOP=$ac_cv_path_FOP
11593if test -n "$FOP"; then
11594  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
11595printf "%s\n" "$FOP" >&6; }
11596else
11597  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11598printf "%s\n" "no" >&6; }
11599fi
11600
11601
11602   if test "x$FOP" = "x"; then
11603        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
11604   fi
11605   have_fop=yes
11606elif test "x$use_fop" = x"no" ; then
11607   if test "x$FOP" != "x"; then
11608      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
11609printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
11610   fi
11611   have_fop=no
11612else
11613   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
11614fi
11615
11616# Test for a minimum version of fop, if provided.
11617
11618 if test "$have_fop" = yes; then
11619  HAVE_FOP_TRUE=
11620  HAVE_FOP_FALSE='#'
11621else
11622  HAVE_FOP_TRUE='#'
11623  HAVE_FOP_FALSE=
11624fi
11625
11626
11627
11628
11629# Preserves the interface, should it be implemented later
11630
11631
11632
11633# Check whether --with-xsltproc was given.
11634if test ${with_xsltproc+y}
11635then :
11636  withval=$with_xsltproc; use_xsltproc=$withval
11637else $as_nop
11638  use_xsltproc=auto
11639fi
11640
11641
11642
11643if test "x$use_xsltproc" = x"auto"; then
11644   # Extract the first word of "xsltproc", so it can be a program name with args.
11645set dummy xsltproc; ac_word=$2
11646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11647printf %s "checking for $ac_word... " >&6; }
11648if test ${ac_cv_path_XSLTPROC+y}
11649then :
11650  printf %s "(cached) " >&6
11651else $as_nop
11652  case $XSLTPROC in
11653  [\\/]* | ?:[\\/]*)
11654  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
11655  ;;
11656  *)
11657  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11658for as_dir in $PATH
11659do
11660  IFS=$as_save_IFS
11661  case $as_dir in #(((
11662    '') as_dir=./ ;;
11663    */) ;;
11664    *) as_dir=$as_dir/ ;;
11665  esac
11666    for ac_exec_ext in '' $ac_executable_extensions; do
11667  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11668    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
11669    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11670    break 2
11671  fi
11672done
11673  done
11674IFS=$as_save_IFS
11675
11676  ;;
11677esac
11678fi
11679XSLTPROC=$ac_cv_path_XSLTPROC
11680if test -n "$XSLTPROC"; then
11681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
11682printf "%s\n" "$XSLTPROC" >&6; }
11683else
11684  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685printf "%s\n" "no" >&6; }
11686fi
11687
11688
11689   if test "x$XSLTPROC" = "x"; then
11690        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
11691printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
11692	have_xsltproc=no
11693   else
11694        have_xsltproc=yes
11695   fi
11696elif test "x$use_xsltproc" = x"yes" ; then
11697   # Extract the first word of "xsltproc", so it can be a program name with args.
11698set dummy xsltproc; ac_word=$2
11699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11700printf %s "checking for $ac_word... " >&6; }
11701if test ${ac_cv_path_XSLTPROC+y}
11702then :
11703  printf %s "(cached) " >&6
11704else $as_nop
11705  case $XSLTPROC in
11706  [\\/]* | ?:[\\/]*)
11707  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
11708  ;;
11709  *)
11710  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11711for as_dir in $PATH
11712do
11713  IFS=$as_save_IFS
11714  case $as_dir in #(((
11715    '') as_dir=./ ;;
11716    */) ;;
11717    *) as_dir=$as_dir/ ;;
11718  esac
11719    for ac_exec_ext in '' $ac_executable_extensions; do
11720  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11721    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
11722    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11723    break 2
11724  fi
11725done
11726  done
11727IFS=$as_save_IFS
11728
11729  ;;
11730esac
11731fi
11732XSLTPROC=$ac_cv_path_XSLTPROC
11733if test -n "$XSLTPROC"; then
11734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
11735printf "%s\n" "$XSLTPROC" >&6; }
11736else
11737  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11738printf "%s\n" "no" >&6; }
11739fi
11740
11741
11742   if test "x$XSLTPROC" = "x"; then
11743        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
11744   fi
11745   have_xsltproc=yes
11746elif test "x$use_xsltproc" = x"no" ; then
11747   if test "x$XSLTPROC" != "x"; then
11748      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
11749printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
11750   fi
11751   have_xsltproc=no
11752else
11753   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
11754fi
11755
11756 if test "$have_xsltproc" = yes; then
11757  HAVE_XSLTPROC_TRUE=
11758  HAVE_XSLTPROC_FALSE='#'
11759else
11760  HAVE_XSLTPROC_TRUE='#'
11761  HAVE_XSLTPROC_FALSE=
11762fi
11763
11764
11765
11766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
11767printf %s "checking for X.Org SGML entities >= 1.8... " >&6; }
11768XORG_SGML_PATH=
11769if test -n "$PKG_CONFIG" && \
11770    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
11771  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
11772  ac_status=$?
11773  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11774  test $ac_status = 0; }; then
11775  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
11776else
11777  :
11778
11779fi
11780
11781# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
11782# the path and the name of the doc stylesheet
11783if test "x$XORG_SGML_PATH" != "x" ; then
11784   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
11785printf "%s\n" "$XORG_SGML_PATH" >&6; }
11786   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
11787   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
11788else
11789   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11790printf "%s\n" "no" >&6; }
11791fi
11792
11793
11794
11795
11796 if test "x$XSL_STYLESHEET" != "x"; then
11797  HAVE_STYLESHEETS_TRUE=
11798  HAVE_STYLESHEETS_FALSE='#'
11799else
11800  HAVE_STYLESHEETS_TRUE='#'
11801  HAVE_STYLESHEETS_FALSE=
11802fi
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812        if test -n "$PYTHON"; then
11813      # If the user set $PYTHON, use it and don't search something else.
11814      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.6" >&5
11815printf %s "checking whether $PYTHON version is >= 3.6... " >&6; }
11816      prog="import sys
11817# split strings by '.' and convert to numeric.  Append some zeros
11818# because we need at least 4 digits for the hex conversion.
11819# map returns an iterator in Python 3.0 and a list in 2.x
11820minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
11821minverhex = 0
11822# xrange is not present in Python 3.0 and range returns an iterator
11823for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
11824sys.exit(sys.hexversion < minverhex)"
11825  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
11826   ($PYTHON -c "$prog") >&5 2>&5
11827   ac_status=$?
11828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829   (exit $ac_status); }
11830then :
11831  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11832printf "%s\n" "yes" >&6; }
11833else $as_nop
11834  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11835printf "%s\n" "no" >&6; }
11836			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
11837fi
11838      am_display_PYTHON=$PYTHON
11839    else
11840      # Otherwise, try each interpreter until we find one that satisfies
11841      # VERSION.
11842      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.6" >&5
11843printf %s "checking for a Python interpreter with version >= 3.6... " >&6; }
11844if test ${am_cv_pathless_PYTHON+y}
11845then :
11846  printf %s "(cached) " >&6
11847else $as_nop
11848
11849	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
11850	  test "$am_cv_pathless_PYTHON" = none && break
11851	  prog="import sys
11852# split strings by '.' and convert to numeric.  Append some zeros
11853# because we need at least 4 digits for the hex conversion.
11854# map returns an iterator in Python 3.0 and a list in 2.x
11855minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
11856minverhex = 0
11857# xrange is not present in Python 3.0 and range returns an iterator
11858for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
11859sys.exit(sys.hexversion < minverhex)"
11860  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
11861   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
11862   ac_status=$?
11863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864   (exit $ac_status); }
11865then :
11866  break
11867fi
11868	done
11869fi
11870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
11871printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
11872      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
11873      if test "$am_cv_pathless_PYTHON" = none; then
11874	PYTHON=:
11875      else
11876        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
11877set dummy $am_cv_pathless_PYTHON; ac_word=$2
11878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11879printf %s "checking for $ac_word... " >&6; }
11880if test ${ac_cv_path_PYTHON+y}
11881then :
11882  printf %s "(cached) " >&6
11883else $as_nop
11884  case $PYTHON in
11885  [\\/]* | ?:[\\/]*)
11886  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11887  ;;
11888  *)
11889  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11890for as_dir in $PATH
11891do
11892  IFS=$as_save_IFS
11893  case $as_dir in #(((
11894    '') as_dir=./ ;;
11895    */) ;;
11896    *) as_dir=$as_dir/ ;;
11897  esac
11898    for ac_exec_ext in '' $ac_executable_extensions; do
11899  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11900    ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
11901    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11902    break 2
11903  fi
11904done
11905  done
11906IFS=$as_save_IFS
11907
11908  ;;
11909esac
11910fi
11911PYTHON=$ac_cv_path_PYTHON
11912if test -n "$PYTHON"; then
11913  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
11914printf "%s\n" "$PYTHON" >&6; }
11915else
11916  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11917printf "%s\n" "no" >&6; }
11918fi
11919
11920
11921      fi
11922      am_display_PYTHON=$am_cv_pathless_PYTHON
11923    fi
11924
11925
11926  if test "$PYTHON" = :; then
11927        :
11928  else
11929
11930              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
11931printf %s "checking for $am_display_PYTHON version... " >&6; }
11932if test ${am_cv_python_version+y}
11933then :
11934  printf %s "(cached) " >&6
11935else $as_nop
11936  am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"`
11937fi
11938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
11939printf "%s\n" "$am_cv_python_version" >&6; }
11940  PYTHON_VERSION=$am_cv_python_version
11941
11942
11943        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
11944printf %s "checking for $am_display_PYTHON platform... " >&6; }
11945if test ${am_cv_python_platform+y}
11946then :
11947  printf %s "(cached) " >&6
11948else $as_nop
11949  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
11950fi
11951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
11952printf "%s\n" "$am_cv_python_platform" >&6; }
11953  PYTHON_PLATFORM=$am_cv_python_platform
11954
11955
11956                            if test "x$prefix" = xNONE; then
11957    am__usable_prefix=$ac_default_prefix
11958  else
11959    am__usable_prefix=$prefix
11960  fi
11961
11962  # Allow user to request using sys.* values from Python,
11963  # instead of the GNU $prefix values.
11964
11965# Check whether --with-python-sys-prefix was given.
11966if test ${with_python_sys_prefix+y}
11967then :
11968  withval=$with_python_sys_prefix; am_use_python_sys=:
11969else $as_nop
11970  am_use_python_sys=false
11971fi
11972
11973
11974  # Allow user to override whatever the default Python prefix is.
11975
11976# Check whether --with-python_prefix was given.
11977if test ${with_python_prefix+y}
11978then :
11979  withval=$with_python_prefix; am_python_prefix_subst=$withval
11980   am_cv_python_prefix=$withval
11981   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
11982printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
11983   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
11984printf "%s\n" "$am_cv_python_prefix" >&6; }
11985else $as_nop
11986
11987   if $am_use_python_sys; then
11988     # using python sys.prefix value, not GNU
11989     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
11990printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
11991if test ${am_cv_python_prefix+y}
11992then :
11993  printf %s "(cached) " >&6
11994else $as_nop
11995  am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
11996fi
11997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
11998printf "%s\n" "$am_cv_python_prefix" >&6; }
11999
12000               case $am_cv_python_prefix in
12001     $am__usable_prefix*)
12002       am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
12003       am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
12004       ;;
12005     *)
12006       am_python_prefix_subst=$am_cv_python_prefix
12007       ;;
12008     esac
12009   else # using GNU prefix value, not python sys.prefix
12010     am_python_prefix_subst='${prefix}'
12011     am_python_prefix=$am_python_prefix_subst
12012     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
12013printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
12014     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
12015printf "%s\n" "$am_python_prefix" >&6; }
12016   fi
12017fi
12018
12019  # Substituting python_prefix_subst value.
12020  PYTHON_PREFIX=$am_python_prefix_subst
12021
12022
12023  # emacs-page Now do it all over again for Python exec_prefix, but with yet
12024  # another conditional: fall back to regular prefix if that was specified.
12025
12026# Check whether --with-python_exec_prefix was given.
12027if test ${with_python_exec_prefix+y}
12028then :
12029  withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
12030   am_cv_python_exec_prefix=$withval
12031   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
12032printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
12033   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
12034printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
12035else $as_nop
12036
12037   # no explicit --with-python_exec_prefix, but if
12038   # --with-python_prefix was given, use its value for python_exec_prefix too.
12039   if test -n "$with_python_prefix"
12040then :
12041  am_python_exec_prefix_subst=$with_python_prefix
12042    am_cv_python_exec_prefix=$with_python_prefix
12043    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
12044printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
12045    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
12046printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
12047else $as_nop
12048
12049    # Set am__usable_exec_prefix whether using GNU or Python values,
12050    # since we use that variable for pyexecdir.
12051    if test "x$exec_prefix" = xNONE; then
12052      am__usable_exec_prefix=$am__usable_prefix
12053    else
12054      am__usable_exec_prefix=$exec_prefix
12055    fi
12056    #
12057    if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
12058      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
12059printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
12060if test ${am_cv_python_exec_prefix+y}
12061then :
12062  printf %s "(cached) " >&6
12063else $as_nop
12064  am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
12065fi
12066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
12067printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
12068                        case $am_cv_python_exec_prefix in
12069      $am__usable_exec_prefix*)
12070        am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
12071        am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
12072        ;;
12073      *)
12074        am_python_exec_prefix_subst=$am_cv_python_exec_prefix
12075        ;;
12076     esac
12077   else # using GNU $exec_prefix, not python sys.exec_prefix
12078     am_python_exec_prefix_subst='${exec_prefix}'
12079     am_python_exec_prefix=$am_python_exec_prefix_subst
12080     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
12081printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
12082     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
12083printf "%s\n" "$am_python_exec_prefix" >&6; }
12084   fi
12085fi
12086fi
12087
12088  # Substituting python_exec_prefix_subst.
12089  PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
12090
12091
12092  # Factor out some code duplication into this shell variable.
12093  am_python_setup_sysconfig="\
12094import sys
12095# Prefer sysconfig over distutils.sysconfig, for better compatibility
12096# with python 3.x.  See automake bug#10227.
12097try:
12098    import sysconfig
12099except ImportError:
12100    can_use_sysconfig = 0
12101else:
12102    can_use_sysconfig = 1
12103# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
12104# <https://github.com/pypa/virtualenv/issues/118>
12105try:
12106    from platform import python_implementation
12107    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
12108        can_use_sysconfig = 0
12109except ImportError:
12110    pass"
12111
12112
12113              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
12114printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
12115if test ${am_cv_python_pythondir+y}
12116then :
12117  printf %s "(cached) " >&6
12118else $as_nop
12119  if test "x$am_cv_python_prefix" = x; then
12120     am_py_prefix=$am__usable_prefix
12121   else
12122     am_py_prefix=$am_cv_python_prefix
12123   fi
12124   am_cv_python_pythondir=`$PYTHON -c "
12125$am_python_setup_sysconfig
12126if can_use_sysconfig:
12127  sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
12128else:
12129  from distutils import sysconfig
12130  sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
12131sys.stdout.write(sitedir)"`
12132   #
12133   case $am_cv_python_pythondir in
12134   $am_py_prefix*)
12135     am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
12136     am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
12137     ;;
12138   *)
12139     case $am_py_prefix in
12140       /usr|/System*) ;;
12141       *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
12142          ;;
12143     esac
12144     ;;
12145   esac
12146
12147fi
12148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
12149printf "%s\n" "$am_cv_python_pythondir" >&6; }
12150  pythondir=$am_cv_python_pythondir
12151
12152
12153          pkgpythondir=\${pythondir}/$PACKAGE
12154
12155
12156          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
12157printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
12158if test ${am_cv_python_pyexecdir+y}
12159then :
12160  printf %s "(cached) " >&6
12161else $as_nop
12162  if test "x$am_cv_python_exec_prefix" = x; then
12163     am_py_exec_prefix=$am__usable_exec_prefix
12164   else
12165     am_py_exec_prefix=$am_cv_python_exec_prefix
12166   fi
12167   am_cv_python_pyexecdir=`$PYTHON -c "
12168$am_python_setup_sysconfig
12169if can_use_sysconfig:
12170  sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'})
12171else:
12172  from distutils import sysconfig
12173  sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
12174sys.stdout.write(sitedir)"`
12175   #
12176   case $am_cv_python_pyexecdir in
12177   $am_py_exec_prefix*)
12178     am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
12179     am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
12180     ;;
12181   *)
12182     case $am_py_exec_prefix in
12183       /usr|/System*) ;;
12184       *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
12185          ;;
12186     esac
12187     ;;
12188   esac
12189
12190fi
12191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
12192printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
12193  pyexecdir=$am_cv_python_pyexecdir
12194
12195
12196      pkgpyexecdir=\${pyexecdir}/$PACKAGE
12197
12198
12199
12200  fi
12201
12202 if test "$PYTHON" != :; then
12203  HAVE_PYTHON_TRUE=
12204  HAVE_PYTHON_FALSE='#'
12205else
12206  HAVE_PYTHON_TRUE='#'
12207  HAVE_PYTHON_FALSE=
12208fi
12209
12210
12211
12212
12213# Check whether --enable-legacy was given.
12214if test ${enable_legacy+y}
12215then :
12216  enableval=$enable_legacy; LEGACY=$enableval
12217else $as_nop
12218  LEGACY=no
12219fi
12220
12221 if test "x$LEGACY" = "xyes"; then
12222  LEGACY_TRUE=
12223  LEGACY_FALSE='#'
12224else
12225  LEGACY_TRUE='#'
12226  LEGACY_FALSE=
12227fi
12228
12229
12230ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
12231if test "x$ac_cv_header_sys_select_h" = xyes
12232then :
12233  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
12234
12235fi
12236ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
12237if test "x$ac_cv_header_sys_param_h" = xyes
12238then :
12239  printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
12240
12241fi
12242ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12243if test "x$ac_cv_header_sys_types_h" = xyes
12244then :
12245  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12246
12247fi
12248ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
12249if test "x$ac_cv_header_sys_time_h" = xyes
12250then :
12251  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
12252
12253fi
12254
12255
12256# Handle Xpoll.h.in
12257# Avoid determining fds_bits on WIN32 hosts (not including cygwin)
12258case $host_os in
12259	mingw*)		fds_bits_found=true;;
12260	*)		fds_bits_found=false;;
12261esac
12262
12263if test "x$fds_bits_found" = xfalse ; then
12264   ac_fn_c_check_member "$LINENO" "fd_set" "fds_bits" "ac_cv_member_fd_set_fds_bits" "
12265                               #ifdef HAVE_SYS_PARAM_H
12266                               #include <sys/param.h>
12267                               #endif
12268                               #ifdef HAVE_SYS_TYPES_H
12269                               #include <sys/types.h>
12270                               #endif
12271                               #ifdef HAVE_SYS_TIME_H
12272                               #include <sys/time.h>
12273                               #endif
12274                               #ifdef HAVE_SYS_SELECT_H
12275			       #include <sys/select.h>
12276                               #endif
12277
12278"
12279if test "x$ac_cv_member_fd_set_fds_bits" = xyes
12280then :
12281
12282			       fds_bits_found=plain
12283			       USE_FDS_BITS="fds_bits"
12284
12285fi
12286
12287fi
12288
12289if test "x$fds_bits_found" = xfalse ; then
12290   ac_fn_c_check_member "$LINENO" "fd_set" "__fds_bits" "ac_cv_member_fd_set___fds_bits" "
12291                               #ifdef HAVE_SYS_PARAM_H
12292                               #include <sys/param.h>
12293                               #endif
12294                               #ifdef HAVE_SYS_TYPES_H
12295                               #include <sys/types.h>
12296                               #endif
12297                               #ifdef HAVE_SYS_TIME_H
12298                               #include <sys/time.h>
12299                               #endif
12300                               #ifdef HAVE_SYS_SELECT_H
12301			       #include <sys/select.h>
12302                               #endif
12303
12304"
12305if test "x$ac_cv_member_fd_set___fds_bits" = xyes
12306then :
12307
12308			    fds_bits_found=underscores
12309			    USE_FDS_BITS="__fds_bits"
12310
12311fi
12312
12313fi
12314
12315if test "x$fds_bits_found" = xfalse ; then
12316    as_fn_error $? "Could not determine how to access the fds_bits or equivalent
12317                  structure in fd_set on your platform." "$LINENO" 5
12318fi
12319
12320
12321
12322ac_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"
12323
12324
12325cat >confcache <<\_ACEOF
12326# This file is a shell script that caches the results of configure
12327# tests run on this system so they can be shared between configure
12328# scripts and configure runs, see configure's option --config-cache.
12329# It is not useful on other systems.  If it contains results you don't
12330# want to keep, you may remove or edit it.
12331#
12332# config.status only pays attention to the cache file if you give it
12333# the --recheck option to rerun configure.
12334#
12335# `ac_cv_env_foo' variables (set or unset) will be overridden when
12336# loading this file, other *unset* `ac_cv_foo' will be assigned the
12337# following values.
12338
12339_ACEOF
12340
12341# The following way of writing the cache mishandles newlines in values,
12342# but we know of no workaround that is simple, portable, and efficient.
12343# So, we kill variables containing newlines.
12344# Ultrix sh set writes to stderr and can't be redirected directly,
12345# and sets the high bit in the cache file unless we assign to the vars.
12346(
12347  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12348    eval ac_val=\$$ac_var
12349    case $ac_val in #(
12350    *${as_nl}*)
12351      case $ac_var in #(
12352      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12353printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12354      esac
12355      case $ac_var in #(
12356      _ | IFS | as_nl) ;; #(
12357      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12358      *) { eval $ac_var=; unset $ac_var;} ;;
12359      esac ;;
12360    esac
12361  done
12362
12363  (set) 2>&1 |
12364    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12365    *${as_nl}ac_space=\ *)
12366      # `set' does not quote correctly, so add quotes: double-quote
12367      # substitution turns \\\\ into \\, and sed turns \\ into \.
12368      sed -n \
12369	"s/'/'\\\\''/g;
12370	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12371      ;; #(
12372    *)
12373      # `set' quotes correctly as required by POSIX, so do not add quotes.
12374      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12375      ;;
12376    esac |
12377    sort
12378) |
12379  sed '
12380     /^ac_cv_env_/b end
12381     t clear
12382     :clear
12383     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12384     t end
12385     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12386     :end' >>confcache
12387if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12388  if test -w "$cache_file"; then
12389    if test "x$cache_file" != "x/dev/null"; then
12390      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12391printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12392      if test ! -f "$cache_file" || test -h "$cache_file"; then
12393	cat confcache >"$cache_file"
12394      else
12395        case $cache_file in #(
12396        */* | ?:*)
12397	  mv -f confcache "$cache_file"$$ &&
12398	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12399        *)
12400	  mv -f confcache "$cache_file" ;;
12401	esac
12402      fi
12403    fi
12404  else
12405    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12406printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12407  fi
12408fi
12409rm -f confcache
12410
12411test "x$prefix" = xNONE && prefix=$ac_default_prefix
12412# Let make expand exec_prefix.
12413test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12414
12415# Transform confdefs.h into DEFS.
12416# Protect against shell expansion while executing Makefile rules.
12417# Protect against Makefile macro expansion.
12418#
12419# If the first sed substitution is executed (which looks for macros that
12420# take arguments), then branch to the quote section.  Otherwise,
12421# look for a macro that doesn't take arguments.
12422ac_script='
12423:mline
12424/\\$/{
12425 N
12426 s,\\\n,,
12427 b mline
12428}
12429t clear
12430:clear
12431s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
12432t quote
12433s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
12434t quote
12435b any
12436:quote
12437s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12438s/\[/\\&/g
12439s/\]/\\&/g
12440s/\$/$$/g
12441H
12442:any
12443${
12444	g
12445	s/^\n//
12446	s/\n/ /g
12447	p
12448}
12449'
12450DEFS=`sed -n "$ac_script" confdefs.h`
12451
12452
12453ac_libobjs=
12454ac_ltlibobjs=
12455U=
12456for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12457  # 1. Remove the extension, and $U if already installed.
12458  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12459  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12460  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12461  #    will be set to the directory where LIBOBJS objects are built.
12462  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12463  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12464done
12465LIBOBJS=$ac_libobjs
12466
12467LTLIBOBJS=$ac_ltlibobjs
12468
12469
12470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12471printf %s "checking that generated files are newer than configure... " >&6; }
12472   if test -n "$am_sleep_pid"; then
12473     # Hide warnings about reused PIDs.
12474     wait $am_sleep_pid 2>/dev/null
12475   fi
12476   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12477printf "%s\n" "done" >&6; }
12478 if test -n "$EXEEXT"; then
12479  am__EXEEXT_TRUE=
12480  am__EXEEXT_FALSE='#'
12481else
12482  am__EXEEXT_TRUE='#'
12483  am__EXEEXT_FALSE=
12484fi
12485
12486if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12487  as_fn_error $? "conditional \"AMDEP\" was never defined.
12488Usually this means the macro was only invoked conditionally." "$LINENO" 5
12489fi
12490if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12491  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12492Usually this means the macro was only invoked conditionally." "$LINENO" 5
12493fi
12494if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
12495  as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
12496Usually this means the macro was only invoked conditionally." "$LINENO" 5
12497fi
12498if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
12499  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
12500Usually this means the macro was only invoked conditionally." "$LINENO" 5
12501fi
12502if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
12503  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
12504Usually this means the macro was only invoked conditionally." "$LINENO" 5
12505fi
12506if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
12507  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
12508Usually this means the macro was only invoked conditionally." "$LINENO" 5
12509fi
12510if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
12511  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
12512Usually this means the macro was only invoked conditionally." "$LINENO" 5
12513fi
12514if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
12515  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
12516Usually this means the macro was only invoked conditionally." "$LINENO" 5
12517fi
12518if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
12519  as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
12520Usually this means the macro was only invoked conditionally." "$LINENO" 5
12521fi
12522if test -z "${LEGACY_TRUE}" && test -z "${LEGACY_FALSE}"; then
12523  as_fn_error $? "conditional \"LEGACY\" was never defined.
12524Usually this means the macro was only invoked conditionally." "$LINENO" 5
12525fi
12526
12527: "${CONFIG_STATUS=./config.status}"
12528ac_write_fail=0
12529ac_clean_files_save=$ac_clean_files
12530ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12532printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12533as_write_fail=0
12534cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12535#! $SHELL
12536# Generated by $as_me.
12537# Run this file to recreate the current configuration.
12538# Compiler output produced by configure, useful for debugging
12539# configure, is in config.log if it exists.
12540
12541debug=false
12542ac_cs_recheck=false
12543ac_cs_silent=false
12544
12545SHELL=\${CONFIG_SHELL-$SHELL}
12546export SHELL
12547_ASEOF
12548cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12549## -------------------- ##
12550## M4sh Initialization. ##
12551## -------------------- ##
12552
12553# Be more Bourne compatible
12554DUALCASE=1; export DUALCASE # for MKS sh
12555as_nop=:
12556if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12557then :
12558  emulate sh
12559  NULLCMD=:
12560  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12561  # is contrary to our usage.  Disable this feature.
12562  alias -g '${1+"$@"}'='"$@"'
12563  setopt NO_GLOB_SUBST
12564else $as_nop
12565  case `(set -o) 2>/dev/null` in #(
12566  *posix*) :
12567    set -o posix ;; #(
12568  *) :
12569     ;;
12570esac
12571fi
12572
12573
12574
12575# Reset variables that may have inherited troublesome values from
12576# the environment.
12577
12578# IFS needs to be set, to space, tab, and newline, in precisely that order.
12579# (If _AS_PATH_WALK were called with IFS unset, it would have the
12580# side effect of setting IFS to empty, thus disabling word splitting.)
12581# Quoting is to prevent editors from complaining about space-tab.
12582as_nl='
12583'
12584export as_nl
12585IFS=" ""	$as_nl"
12586
12587PS1='$ '
12588PS2='> '
12589PS4='+ '
12590
12591# Ensure predictable behavior from utilities with locale-dependent output.
12592LC_ALL=C
12593export LC_ALL
12594LANGUAGE=C
12595export LANGUAGE
12596
12597# We cannot yet rely on "unset" to work, but we need these variables
12598# to be unset--not just set to an empty or harmless value--now, to
12599# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
12600# also avoids known problems related to "unset" and subshell syntax
12601# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12602for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12603do eval test \${$as_var+y} \
12604  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12605done
12606
12607# Ensure that fds 0, 1, and 2 are open.
12608if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12609if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12610if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
12611
12612# The user is always right.
12613if ${PATH_SEPARATOR+false} :; then
12614  PATH_SEPARATOR=:
12615  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12616    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12617      PATH_SEPARATOR=';'
12618  }
12619fi
12620
12621
12622# Find who we are.  Look in the path if we contain no directory separator.
12623as_myself=
12624case $0 in #((
12625  *[\\/]* ) as_myself=$0 ;;
12626  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12627for as_dir in $PATH
12628do
12629  IFS=$as_save_IFS
12630  case $as_dir in #(((
12631    '') as_dir=./ ;;
12632    */) ;;
12633    *) as_dir=$as_dir/ ;;
12634  esac
12635    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12636  done
12637IFS=$as_save_IFS
12638
12639     ;;
12640esac
12641# We did not find ourselves, most probably we were run as `sh COMMAND'
12642# in which case we are not to be found in the path.
12643if test "x$as_myself" = x; then
12644  as_myself=$0
12645fi
12646if test ! -f "$as_myself"; then
12647  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12648  exit 1
12649fi
12650
12651
12652
12653# as_fn_error STATUS ERROR [LINENO LOG_FD]
12654# ----------------------------------------
12655# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12656# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12657# script with STATUS, using 1 if that was 0.
12658as_fn_error ()
12659{
12660  as_status=$1; test $as_status -eq 0 && as_status=1
12661  if test "$4"; then
12662    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12663    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12664  fi
12665  printf "%s\n" "$as_me: error: $2" >&2
12666  as_fn_exit $as_status
12667} # as_fn_error
12668
12669
12670
12671# as_fn_set_status STATUS
12672# -----------------------
12673# Set $? to STATUS, without forking.
12674as_fn_set_status ()
12675{
12676  return $1
12677} # as_fn_set_status
12678
12679# as_fn_exit STATUS
12680# -----------------
12681# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12682as_fn_exit ()
12683{
12684  set +e
12685  as_fn_set_status $1
12686  exit $1
12687} # as_fn_exit
12688
12689# as_fn_unset VAR
12690# ---------------
12691# Portably unset VAR.
12692as_fn_unset ()
12693{
12694  { eval $1=; unset $1;}
12695}
12696as_unset=as_fn_unset
12697
12698# as_fn_append VAR VALUE
12699# ----------------------
12700# Append the text in VALUE to the end of the definition contained in VAR. Take
12701# advantage of any shell optimizations that allow amortized linear growth over
12702# repeated appends, instead of the typical quadratic growth present in naive
12703# implementations.
12704if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12705then :
12706  eval 'as_fn_append ()
12707  {
12708    eval $1+=\$2
12709  }'
12710else $as_nop
12711  as_fn_append ()
12712  {
12713    eval $1=\$$1\$2
12714  }
12715fi # as_fn_append
12716
12717# as_fn_arith ARG...
12718# ------------------
12719# Perform arithmetic evaluation on the ARGs, and store the result in the
12720# global $as_val. Take advantage of shells that can avoid forks. The arguments
12721# must be portable across $(()) and expr.
12722if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12723then :
12724  eval 'as_fn_arith ()
12725  {
12726    as_val=$(( $* ))
12727  }'
12728else $as_nop
12729  as_fn_arith ()
12730  {
12731    as_val=`expr "$@" || test $? -eq 1`
12732  }
12733fi # as_fn_arith
12734
12735
12736if expr a : '\(a\)' >/dev/null 2>&1 &&
12737   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12738  as_expr=expr
12739else
12740  as_expr=false
12741fi
12742
12743if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12744  as_basename=basename
12745else
12746  as_basename=false
12747fi
12748
12749if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12750  as_dirname=dirname
12751else
12752  as_dirname=false
12753fi
12754
12755as_me=`$as_basename -- "$0" ||
12756$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12757	 X"$0" : 'X\(//\)$' \| \
12758	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12759printf "%s\n" X/"$0" |
12760    sed '/^.*\/\([^/][^/]*\)\/*$/{
12761	    s//\1/
12762	    q
12763	  }
12764	  /^X\/\(\/\/\)$/{
12765	    s//\1/
12766	    q
12767	  }
12768	  /^X\/\(\/\).*/{
12769	    s//\1/
12770	    q
12771	  }
12772	  s/.*/./; q'`
12773
12774# Avoid depending upon Character Ranges.
12775as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12776as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12777as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12778as_cr_digits='0123456789'
12779as_cr_alnum=$as_cr_Letters$as_cr_digits
12780
12781
12782# Determine whether it's possible to make 'echo' print without a newline.
12783# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12784# for compatibility with existing Makefiles.
12785ECHO_C= ECHO_N= ECHO_T=
12786case `echo -n x` in #(((((
12787-n*)
12788  case `echo 'xy\c'` in
12789  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12790  xy)  ECHO_C='\c';;
12791  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12792       ECHO_T='	';;
12793  esac;;
12794*)
12795  ECHO_N='-n';;
12796esac
12797
12798# For backward compatibility with old third-party macros, we provide
12799# the shell variables $as_echo and $as_echo_n.  New code should use
12800# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12801as_echo='printf %s\n'
12802as_echo_n='printf %s'
12803
12804rm -f conf$$ conf$$.exe conf$$.file
12805if test -d conf$$.dir; then
12806  rm -f conf$$.dir/conf$$.file
12807else
12808  rm -f conf$$.dir
12809  mkdir conf$$.dir 2>/dev/null
12810fi
12811if (echo >conf$$.file) 2>/dev/null; then
12812  if ln -s conf$$.file conf$$ 2>/dev/null; then
12813    as_ln_s='ln -s'
12814    # ... but there are two gotchas:
12815    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12816    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12817    # In both cases, we have to default to `cp -pR'.
12818    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12819      as_ln_s='cp -pR'
12820  elif ln conf$$.file conf$$ 2>/dev/null; then
12821    as_ln_s=ln
12822  else
12823    as_ln_s='cp -pR'
12824  fi
12825else
12826  as_ln_s='cp -pR'
12827fi
12828rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12829rmdir conf$$.dir 2>/dev/null
12830
12831
12832# as_fn_mkdir_p
12833# -------------
12834# Create "$as_dir" as a directory, including parents if necessary.
12835as_fn_mkdir_p ()
12836{
12837
12838  case $as_dir in #(
12839  -*) as_dir=./$as_dir;;
12840  esac
12841  test -d "$as_dir" || eval $as_mkdir_p || {
12842    as_dirs=
12843    while :; do
12844      case $as_dir in #(
12845      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12846      *) as_qdir=$as_dir;;
12847      esac
12848      as_dirs="'$as_qdir' $as_dirs"
12849      as_dir=`$as_dirname -- "$as_dir" ||
12850$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12851	 X"$as_dir" : 'X\(//\)[^/]' \| \
12852	 X"$as_dir" : 'X\(//\)$' \| \
12853	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12854printf "%s\n" X"$as_dir" |
12855    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12856	    s//\1/
12857	    q
12858	  }
12859	  /^X\(\/\/\)[^/].*/{
12860	    s//\1/
12861	    q
12862	  }
12863	  /^X\(\/\/\)$/{
12864	    s//\1/
12865	    q
12866	  }
12867	  /^X\(\/\).*/{
12868	    s//\1/
12869	    q
12870	  }
12871	  s/.*/./; q'`
12872      test -d "$as_dir" && break
12873    done
12874    test -z "$as_dirs" || eval "mkdir $as_dirs"
12875  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12876
12877
12878} # as_fn_mkdir_p
12879if mkdir -p . 2>/dev/null; then
12880  as_mkdir_p='mkdir -p "$as_dir"'
12881else
12882  test -d ./-p && rmdir ./-p
12883  as_mkdir_p=false
12884fi
12885
12886
12887# as_fn_executable_p FILE
12888# -----------------------
12889# Test if FILE is an executable regular file.
12890as_fn_executable_p ()
12891{
12892  test -f "$1" && test -x "$1"
12893} # as_fn_executable_p
12894as_test_x='test -x'
12895as_executable_p=as_fn_executable_p
12896
12897# Sed expression to map a string onto a valid CPP name.
12898as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12899
12900# Sed expression to map a string onto a valid variable name.
12901as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12902
12903
12904exec 6>&1
12905## ----------------------------------- ##
12906## Main body of $CONFIG_STATUS script. ##
12907## ----------------------------------- ##
12908_ASEOF
12909test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12910
12911cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12912# Save the log message, to keep $0 and so on meaningful, and to
12913# report actual input values of CONFIG_FILES etc. instead of their
12914# values after options handling.
12915ac_log="
12916This file was extended by xorgproto $as_me 2024.1, which was
12917generated by GNU Autoconf 2.71.  Invocation command line was
12918
12919  CONFIG_FILES    = $CONFIG_FILES
12920  CONFIG_HEADERS  = $CONFIG_HEADERS
12921  CONFIG_LINKS    = $CONFIG_LINKS
12922  CONFIG_COMMANDS = $CONFIG_COMMANDS
12923  $ $0 $@
12924
12925on `(hostname || uname -n) 2>/dev/null | sed 1q`
12926"
12927
12928_ACEOF
12929
12930case $ac_config_files in *"
12931"*) set x $ac_config_files; shift; ac_config_files=$*;;
12932esac
12933
12934
12935
12936cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12937# Files that config.status was made for.
12938config_files="$ac_config_files"
12939config_commands="$ac_config_commands"
12940
12941_ACEOF
12942
12943cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12944ac_cs_usage="\
12945\`$as_me' instantiates files and other configuration actions
12946from templates according to the current configuration.  Unless the files
12947and actions are specified as TAGs, all are instantiated by default.
12948
12949Usage: $0 [OPTION]... [TAG]...
12950
12951  -h, --help       print this help, then exit
12952  -V, --version    print version number and configuration settings, then exit
12953      --config     print configuration, then exit
12954  -q, --quiet, --silent
12955                   do not print progress messages
12956  -d, --debug      don't remove temporary files
12957      --recheck    update $as_me by reconfiguring in the same conditions
12958      --file=FILE[:TEMPLATE]
12959                   instantiate the configuration file FILE
12960
12961Configuration files:
12962$config_files
12963
12964Configuration commands:
12965$config_commands
12966
12967Report bugs to <https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues>."
12968
12969_ACEOF
12970ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12971ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12973ac_cs_config='$ac_cs_config_escaped'
12974ac_cs_version="\\
12975xorgproto config.status 2024.1
12976configured by $0, generated by GNU Autoconf 2.71,
12977  with options \\"\$ac_cs_config\\"
12978
12979Copyright (C) 2021 Free Software Foundation, Inc.
12980This config.status script is free software; the Free Software Foundation
12981gives unlimited permission to copy, distribute and modify it."
12982
12983ac_pwd='$ac_pwd'
12984srcdir='$srcdir'
12985INSTALL='$INSTALL'
12986MKDIR_P='$MKDIR_P'
12987AWK='$AWK'
12988test -n "\$AWK" || AWK=awk
12989_ACEOF
12990
12991cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12992# The default lists apply if the user does not specify any file.
12993ac_need_defaults=:
12994while test $# != 0
12995do
12996  case $1 in
12997  --*=?*)
12998    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12999    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13000    ac_shift=:
13001    ;;
13002  --*=)
13003    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13004    ac_optarg=
13005    ac_shift=:
13006    ;;
13007  *)
13008    ac_option=$1
13009    ac_optarg=$2
13010    ac_shift=shift
13011    ;;
13012  esac
13013
13014  case $ac_option in
13015  # Handling of the options.
13016  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13017    ac_cs_recheck=: ;;
13018  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13019    printf "%s\n" "$ac_cs_version"; exit ;;
13020  --config | --confi | --conf | --con | --co | --c )
13021    printf "%s\n" "$ac_cs_config"; exit ;;
13022  --debug | --debu | --deb | --de | --d | -d )
13023    debug=: ;;
13024  --file | --fil | --fi | --f )
13025    $ac_shift
13026    case $ac_optarg in
13027    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13028    '') as_fn_error $? "missing file argument" ;;
13029    esac
13030    as_fn_append CONFIG_FILES " '$ac_optarg'"
13031    ac_need_defaults=false;;
13032  --he | --h |  --help | --hel | -h )
13033    printf "%s\n" "$ac_cs_usage"; exit ;;
13034  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13035  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13036    ac_cs_silent=: ;;
13037
13038  # This is an error.
13039  -*) as_fn_error $? "unrecognized option: \`$1'
13040Try \`$0 --help' for more information." ;;
13041
13042  *) as_fn_append ac_config_targets " $1"
13043     ac_need_defaults=false ;;
13044
13045  esac
13046  shift
13047done
13048
13049ac_configure_extra_args=
13050
13051if $ac_cs_silent; then
13052  exec 6>/dev/null
13053  ac_configure_extra_args="$ac_configure_extra_args --silent"
13054fi
13055
13056_ACEOF
13057cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13058if \$ac_cs_recheck; then
13059  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13060  shift
13061  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
13062  CONFIG_SHELL='$SHELL'
13063  export CONFIG_SHELL
13064  exec "\$@"
13065fi
13066
13067_ACEOF
13068cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13069exec 5>>config.log
13070{
13071  echo
13072  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13073## Running $as_me. ##
13074_ASBOX
13075  printf "%s\n" "$ac_log"
13076} >&5
13077
13078_ACEOF
13079cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13080#
13081# INIT-COMMANDS
13082#
13083AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13084
13085_ACEOF
13086
13087cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13088
13089# Handling of arguments.
13090for ac_config_target in $ac_config_targets
13091do
13092  case $ac_config_target in
13093    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13094    "applewmproto.pc") CONFIG_FILES="$CONFIG_FILES applewmproto.pc" ;;
13095    "bigreqsproto.pc") CONFIG_FILES="$CONFIG_FILES bigreqsproto.pc" ;;
13096    "compositeproto.pc") CONFIG_FILES="$CONFIG_FILES compositeproto.pc" ;;
13097    "damageproto.pc") CONFIG_FILES="$CONFIG_FILES damageproto.pc" ;;
13098    "dmxproto.pc") CONFIG_FILES="$CONFIG_FILES dmxproto.pc" ;;
13099    "dpmsproto.pc") CONFIG_FILES="$CONFIG_FILES dpmsproto.pc" ;;
13100    "dri2proto.pc") CONFIG_FILES="$CONFIG_FILES dri2proto.pc" ;;
13101    "dri3proto.pc") CONFIG_FILES="$CONFIG_FILES dri3proto.pc" ;;
13102    "evieproto.pc") CONFIG_FILES="$CONFIG_FILES evieproto.pc" ;;
13103    "fixesproto.pc") CONFIG_FILES="$CONFIG_FILES fixesproto.pc" ;;
13104    "fontcacheproto.pc") CONFIG_FILES="$CONFIG_FILES fontcacheproto.pc" ;;
13105    "fontsproto.pc") CONFIG_FILES="$CONFIG_FILES fontsproto.pc" ;;
13106    "glproto.pc") CONFIG_FILES="$CONFIG_FILES glproto.pc" ;;
13107    "include/X11/Xpoll.h") CONFIG_FILES="$CONFIG_FILES include/X11/Xpoll.h" ;;
13108    "inputproto.pc") CONFIG_FILES="$CONFIG_FILES inputproto.pc" ;;
13109    "kbproto.pc") CONFIG_FILES="$CONFIG_FILES kbproto.pc" ;;
13110    "lg3dproto.pc") CONFIG_FILES="$CONFIG_FILES lg3dproto.pc" ;;
13111    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13112    "presentproto.pc") CONFIG_FILES="$CONFIG_FILES presentproto.pc" ;;
13113    "printproto.pc") CONFIG_FILES="$CONFIG_FILES printproto.pc" ;;
13114    "randrproto.pc") CONFIG_FILES="$CONFIG_FILES randrproto.pc" ;;
13115    "recordproto.pc") CONFIG_FILES="$CONFIG_FILES recordproto.pc" ;;
13116    "renderproto.pc") CONFIG_FILES="$CONFIG_FILES renderproto.pc" ;;
13117    "resourceproto.pc") CONFIG_FILES="$CONFIG_FILES resourceproto.pc" ;;
13118    "scrnsaverproto.pc") CONFIG_FILES="$CONFIG_FILES scrnsaverproto.pc" ;;
13119    "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
13120    "specs/bigreqsproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/bigreqsproto/Makefile" ;;
13121    "specs/fontsproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/fontsproto/Makefile" ;;
13122    "specs/kbproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/kbproto/Makefile" ;;
13123    "specs/recordproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/recordproto/Makefile" ;;
13124    "specs/scrnsaverproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/scrnsaverproto/Makefile" ;;
13125    "specs/xcmiscproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/xcmiscproto/Makefile" ;;
13126    "specs/xextproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/xextproto/Makefile" ;;
13127    "specs/xproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/xproto/Makefile" ;;
13128    "trapproto.pc") CONFIG_FILES="$CONFIG_FILES trapproto.pc" ;;
13129    "videoproto.pc") CONFIG_FILES="$CONFIG_FILES videoproto.pc" ;;
13130    "windowswmproto.pc") CONFIG_FILES="$CONFIG_FILES windowswmproto.pc" ;;
13131    "xcalibrateproto.pc") CONFIG_FILES="$CONFIG_FILES xcalibrateproto.pc" ;;
13132    "xcmiscproto.pc") CONFIG_FILES="$CONFIG_FILES xcmiscproto.pc" ;;
13133    "xextproto.pc") CONFIG_FILES="$CONFIG_FILES xextproto.pc" ;;
13134    "xf86bigfontproto.pc") CONFIG_FILES="$CONFIG_FILES xf86bigfontproto.pc" ;;
13135    "xf86dgaproto.pc") CONFIG_FILES="$CONFIG_FILES xf86dgaproto.pc" ;;
13136    "xf86driproto.pc") CONFIG_FILES="$CONFIG_FILES xf86driproto.pc" ;;
13137    "xf86miscproto.pc") CONFIG_FILES="$CONFIG_FILES xf86miscproto.pc" ;;
13138    "xf86rushproto.pc") CONFIG_FILES="$CONFIG_FILES xf86rushproto.pc" ;;
13139    "xf86vidmodeproto.pc") CONFIG_FILES="$CONFIG_FILES xf86vidmodeproto.pc" ;;
13140    "xineramaproto.pc") CONFIG_FILES="$CONFIG_FILES xineramaproto.pc" ;;
13141    "xproto.pc") CONFIG_FILES="$CONFIG_FILES xproto.pc" ;;
13142    "xproxymngproto.pc") CONFIG_FILES="$CONFIG_FILES xproxymngproto.pc" ;;
13143    "xwaylandproto.pc") CONFIG_FILES="$CONFIG_FILES xwaylandproto.pc" ;;
13144
13145  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13146  esac
13147done
13148
13149
13150# If the user did not use the arguments to specify the items to instantiate,
13151# then the envvar interface is used.  Set only those that are not.
13152# We use the long form for the default assignment because of an extremely
13153# bizarre bug on SunOS 4.1.3.
13154if $ac_need_defaults; then
13155  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
13156  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
13157fi
13158
13159# Have a temporary directory for convenience.  Make it in the build tree
13160# simply because there is no reason against having it here, and in addition,
13161# creating and moving files from /tmp can sometimes cause problems.
13162# Hook for its removal unless debugging.
13163# Note that there is a small window in which the directory will not be cleaned:
13164# after its creation but before its name has been assigned to `$tmp'.
13165$debug ||
13166{
13167  tmp= ac_tmp=
13168  trap 'exit_status=$?
13169  : "${ac_tmp:=$tmp}"
13170  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13171' 0
13172  trap 'as_fn_exit 1' 1 2 13 15
13173}
13174# Create a (secure) tmp directory for tmp files.
13175
13176{
13177  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13178  test -d "$tmp"
13179}  ||
13180{
13181  tmp=./conf$$-$RANDOM
13182  (umask 077 && mkdir "$tmp")
13183} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13184ac_tmp=$tmp
13185
13186# Set up the scripts for CONFIG_FILES section.
13187# No need to generate them if there are no CONFIG_FILES.
13188# This happens for instance with `./config.status config.h'.
13189if test -n "$CONFIG_FILES"; then
13190
13191
13192ac_cr=`echo X | tr X '\015'`
13193# On cygwin, bash can eat \r inside `` if the user requested igncr.
13194# But we know of no other shell where ac_cr would be empty at this
13195# point, so we can use a bashism as a fallback.
13196if test "x$ac_cr" = x; then
13197  eval ac_cr=\$\'\\r\'
13198fi
13199ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13200if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13201  ac_cs_awk_cr='\\r'
13202else
13203  ac_cs_awk_cr=$ac_cr
13204fi
13205
13206echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13207_ACEOF
13208
13209
13210{
13211  echo "cat >conf$$subs.awk <<_ACEOF" &&
13212  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13213  echo "_ACEOF"
13214} >conf$$subs.sh ||
13215  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13216ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13217ac_delim='%!_!# '
13218for ac_last_try in false false false false false :; do
13219  . ./conf$$subs.sh ||
13220    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13221
13222  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13223  if test $ac_delim_n = $ac_delim_num; then
13224    break
13225  elif $ac_last_try; then
13226    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13227  else
13228    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13229  fi
13230done
13231rm -f conf$$subs.sh
13232
13233cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13234cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13235_ACEOF
13236sed -n '
13237h
13238s/^/S["/; s/!.*/"]=/
13239p
13240g
13241s/^[^!]*!//
13242:repl
13243t repl
13244s/'"$ac_delim"'$//
13245t delim
13246:nl
13247h
13248s/\(.\{148\}\)..*/\1/
13249t more1
13250s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13251p
13252n
13253b repl
13254:more1
13255s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13256p
13257g
13258s/.\{148\}//
13259t nl
13260:delim
13261h
13262s/\(.\{148\}\)..*/\1/
13263t more2
13264s/["\\]/\\&/g; s/^/"/; s/$/"/
13265p
13266b
13267:more2
13268s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13269p
13270g
13271s/.\{148\}//
13272t delim
13273' <conf$$subs.awk | sed '
13274/^[^""]/{
13275  N
13276  s/\n//
13277}
13278' >>$CONFIG_STATUS || ac_write_fail=1
13279rm -f conf$$subs.awk
13280cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13281_ACAWK
13282cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13283  for (key in S) S_is_set[key] = 1
13284  FS = ""
13285
13286}
13287{
13288  line = $ 0
13289  nfields = split(line, field, "@")
13290  substed = 0
13291  len = length(field[1])
13292  for (i = 2; i < nfields; i++) {
13293    key = field[i]
13294    keylen = length(key)
13295    if (S_is_set[key]) {
13296      value = S[key]
13297      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13298      len += length(value) + length(field[++i])
13299      substed = 1
13300    } else
13301      len += 1 + keylen
13302  }
13303
13304  print line
13305}
13306
13307_ACAWK
13308_ACEOF
13309cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13310if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13311  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13312else
13313  cat
13314fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13315  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13316_ACEOF
13317
13318# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13319# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13320# trailing colons and then remove the whole line if VPATH becomes empty
13321# (actually we leave an empty line to preserve line numbers).
13322if test "x$srcdir" = x.; then
13323  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13324h
13325s///
13326s/^/:/
13327s/[	 ]*$/:/
13328s/:\$(srcdir):/:/g
13329s/:\${srcdir}:/:/g
13330s/:@srcdir@:/:/g
13331s/^:*//
13332s/:*$//
13333x
13334s/\(=[	 ]*\).*/\1/
13335G
13336s/\n//
13337s/^[^=]*=[	 ]*$//
13338}'
13339fi
13340
13341cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13342fi # test -n "$CONFIG_FILES"
13343
13344
13345eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
13346shift
13347for ac_tag
13348do
13349  case $ac_tag in
13350  :[FHLC]) ac_mode=$ac_tag; continue;;
13351  esac
13352  case $ac_mode$ac_tag in
13353  :[FHL]*:*);;
13354  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13355  :[FH]-) ac_tag=-:-;;
13356  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13357  esac
13358  ac_save_IFS=$IFS
13359  IFS=:
13360  set x $ac_tag
13361  IFS=$ac_save_IFS
13362  shift
13363  ac_file=$1
13364  shift
13365
13366  case $ac_mode in
13367  :L) ac_source=$1;;
13368  :[FH])
13369    ac_file_inputs=
13370    for ac_f
13371    do
13372      case $ac_f in
13373      -) ac_f="$ac_tmp/stdin";;
13374      *) # Look for the file first in the build tree, then in the source tree
13375	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13376	 # because $ac_f cannot contain `:'.
13377	 test -f "$ac_f" ||
13378	   case $ac_f in
13379	   [\\/$]*) false;;
13380	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13381	   esac ||
13382	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13383      esac
13384      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13385      as_fn_append ac_file_inputs " '$ac_f'"
13386    done
13387
13388    # Let's still pretend it is `configure' which instantiates (i.e., don't
13389    # use $as_me), people would be surprised to read:
13390    #    /* config.h.  Generated by config.status.  */
13391    configure_input='Generated from '`
13392	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13393	`' by configure.'
13394    if test x"$ac_file" != x-; then
13395      configure_input="$ac_file.  $configure_input"
13396      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13397printf "%s\n" "$as_me: creating $ac_file" >&6;}
13398    fi
13399    # Neutralize special characters interpreted by sed in replacement strings.
13400    case $configure_input in #(
13401    *\&* | *\|* | *\\* )
13402       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13403       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13404    *) ac_sed_conf_input=$configure_input;;
13405    esac
13406
13407    case $ac_tag in
13408    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13409      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13410    esac
13411    ;;
13412  esac
13413
13414  ac_dir=`$as_dirname -- "$ac_file" ||
13415$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13416	 X"$ac_file" : 'X\(//\)[^/]' \| \
13417	 X"$ac_file" : 'X\(//\)$' \| \
13418	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13419printf "%s\n" X"$ac_file" |
13420    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13421	    s//\1/
13422	    q
13423	  }
13424	  /^X\(\/\/\)[^/].*/{
13425	    s//\1/
13426	    q
13427	  }
13428	  /^X\(\/\/\)$/{
13429	    s//\1/
13430	    q
13431	  }
13432	  /^X\(\/\).*/{
13433	    s//\1/
13434	    q
13435	  }
13436	  s/.*/./; q'`
13437  as_dir="$ac_dir"; as_fn_mkdir_p
13438  ac_builddir=.
13439
13440case "$ac_dir" in
13441.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13442*)
13443  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13444  # A ".." for each directory in $ac_dir_suffix.
13445  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13446  case $ac_top_builddir_sub in
13447  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13448  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13449  esac ;;
13450esac
13451ac_abs_top_builddir=$ac_pwd
13452ac_abs_builddir=$ac_pwd$ac_dir_suffix
13453# for backward compatibility:
13454ac_top_builddir=$ac_top_build_prefix
13455
13456case $srcdir in
13457  .)  # We are building in place.
13458    ac_srcdir=.
13459    ac_top_srcdir=$ac_top_builddir_sub
13460    ac_abs_top_srcdir=$ac_pwd ;;
13461  [\\/]* | ?:[\\/]* )  # Absolute name.
13462    ac_srcdir=$srcdir$ac_dir_suffix;
13463    ac_top_srcdir=$srcdir
13464    ac_abs_top_srcdir=$srcdir ;;
13465  *) # Relative name.
13466    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13467    ac_top_srcdir=$ac_top_build_prefix$srcdir
13468    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13469esac
13470ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13471
13472
13473  case $ac_mode in
13474  :F)
13475  #
13476  # CONFIG_FILE
13477  #
13478
13479  case $INSTALL in
13480  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13481  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13482  esac
13483  ac_MKDIR_P=$MKDIR_P
13484  case $MKDIR_P in
13485  [\\/$]* | ?:[\\/]* ) ;;
13486  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13487  esac
13488_ACEOF
13489
13490cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13491# If the template does not know about datarootdir, expand it.
13492# FIXME: This hack should be removed a few years after 2.60.
13493ac_datarootdir_hack=; ac_datarootdir_seen=
13494ac_sed_dataroot='
13495/datarootdir/ {
13496  p
13497  q
13498}
13499/@datadir@/p
13500/@docdir@/p
13501/@infodir@/p
13502/@localedir@/p
13503/@mandir@/p'
13504case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13505*datarootdir*) ac_datarootdir_seen=yes;;
13506*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13507  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13508printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13509_ACEOF
13510cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13511  ac_datarootdir_hack='
13512  s&@datadir@&$datadir&g
13513  s&@docdir@&$docdir&g
13514  s&@infodir@&$infodir&g
13515  s&@localedir@&$localedir&g
13516  s&@mandir@&$mandir&g
13517  s&\\\${datarootdir}&$datarootdir&g' ;;
13518esac
13519_ACEOF
13520
13521# Neutralize VPATH when `$srcdir' = `.'.
13522# Shell code in configure.ac might set extrasub.
13523# FIXME: do we really want to maintain this feature?
13524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13525ac_sed_extra="$ac_vpsub
13526$extrasub
13527_ACEOF
13528cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13529:t
13530/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13531s|@configure_input@|$ac_sed_conf_input|;t t
13532s&@top_builddir@&$ac_top_builddir_sub&;t t
13533s&@top_build_prefix@&$ac_top_build_prefix&;t t
13534s&@srcdir@&$ac_srcdir&;t t
13535s&@abs_srcdir@&$ac_abs_srcdir&;t t
13536s&@top_srcdir@&$ac_top_srcdir&;t t
13537s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13538s&@builddir@&$ac_builddir&;t t
13539s&@abs_builddir@&$ac_abs_builddir&;t t
13540s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13541s&@INSTALL@&$ac_INSTALL&;t t
13542s&@MKDIR_P@&$ac_MKDIR_P&;t t
13543$ac_datarootdir_hack
13544"
13545eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13546  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13547
13548test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13549  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13550  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13551      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13552  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13553which seems to be undefined.  Please make sure it is defined" >&5
13554printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13555which seems to be undefined.  Please make sure it is defined" >&2;}
13556
13557  rm -f "$ac_tmp/stdin"
13558  case $ac_file in
13559  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13560  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13561  esac \
13562  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13563 ;;
13564
13565
13566  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13567printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13568 ;;
13569  esac
13570
13571
13572  case $ac_file$ac_mode in
13573    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13574  # Older Autoconf quotes --file arguments for eval, but not when files
13575  # are listed without --file.  Let's play safe and only enable the eval
13576  # if we detect the quoting.
13577  # TODO: see whether this extra hack can be removed once we start
13578  # requiring Autoconf 2.70 or later.
13579  case $CONFIG_FILES in #(
13580  *\'*) :
13581    eval set x "$CONFIG_FILES" ;; #(
13582  *) :
13583    set x $CONFIG_FILES ;; #(
13584  *) :
13585     ;;
13586esac
13587  shift
13588  # Used to flag and report bootstrapping failures.
13589  am_rc=0
13590  for am_mf
13591  do
13592    # Strip MF so we end up with the name of the file.
13593    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13594    # Check whether this is an Automake generated Makefile which includes
13595    # dependency-tracking related rules and includes.
13596    # Grep'ing the whole file directly is not great: AIX grep has a line
13597    # limit of 2048, but all sed's we know have understand at least 4000.
13598    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13599      || continue
13600    am_dirpart=`$as_dirname -- "$am_mf" ||
13601$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13602	 X"$am_mf" : 'X\(//\)[^/]' \| \
13603	 X"$am_mf" : 'X\(//\)$' \| \
13604	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13605printf "%s\n" X"$am_mf" |
13606    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13607	    s//\1/
13608	    q
13609	  }
13610	  /^X\(\/\/\)[^/].*/{
13611	    s//\1/
13612	    q
13613	  }
13614	  /^X\(\/\/\)$/{
13615	    s//\1/
13616	    q
13617	  }
13618	  /^X\(\/\).*/{
13619	    s//\1/
13620	    q
13621	  }
13622	  s/.*/./; q'`
13623    am_filepart=`$as_basename -- "$am_mf" ||
13624$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13625	 X"$am_mf" : 'X\(//\)$' \| \
13626	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13627printf "%s\n" X/"$am_mf" |
13628    sed '/^.*\/\([^/][^/]*\)\/*$/{
13629	    s//\1/
13630	    q
13631	  }
13632	  /^X\/\(\/\/\)$/{
13633	    s//\1/
13634	    q
13635	  }
13636	  /^X\/\(\/\).*/{
13637	    s//\1/
13638	    q
13639	  }
13640	  s/.*/./; q'`
13641    { echo "$as_me:$LINENO: cd "$am_dirpart" \
13642      && sed -e '/# am--include-marker/d' "$am_filepart" \
13643        | $MAKE -f - am--depfiles" >&5
13644   (cd "$am_dirpart" \
13645      && sed -e '/# am--include-marker/d' "$am_filepart" \
13646        | $MAKE -f - am--depfiles) >&5 2>&5
13647   ac_status=$?
13648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649   (exit $ac_status); } || am_rc=$?
13650  done
13651  if test $am_rc -ne 0; then
13652    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13653printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13654as_fn_error $? "Something went wrong bootstrapping makefile fragments
13655    for automatic dependency tracking.  If GNU make was not used, consider
13656    re-running the configure script with MAKE=\"gmake\" (or whatever is
13657    necessary).  You can also try re-running configure with the
13658    '--disable-dependency-tracking' option to at least be able to build
13659    the package (albeit without support for automatic dependency tracking).
13660See \`config.log' for more details" "$LINENO" 5; }
13661  fi
13662  { am_dirpart=; unset am_dirpart;}
13663  { am_filepart=; unset am_filepart;}
13664  { am_mf=; unset am_mf;}
13665  { am_rc=; unset am_rc;}
13666  rm -f conftest-deps.mk
13667}
13668 ;;
13669
13670  esac
13671done # for ac_tag
13672
13673
13674as_fn_exit 0
13675_ACEOF
13676ac_clean_files=$ac_clean_files_save
13677
13678test $ac_write_fail = 0 ||
13679  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13680
13681
13682# configure is writing to config.log, and then calls config.status.
13683# config.status does its own redirection, appending to config.log.
13684# Unfortunately, on DOS this fails, as config.log is still kept open
13685# by configure, so config.status won't be able to write to it; its
13686# output is simply discarded.  So we exec the FD to /dev/null,
13687# effectively closing config.log, so it can be properly (re)opened and
13688# appended to by config.status.  When coming back to configure, we
13689# need to make the FD available again.
13690if test "$no_create" != yes; then
13691  ac_cs_success=:
13692  ac_config_status_args=
13693  test "$silent" = yes &&
13694    ac_config_status_args="$ac_config_status_args --quiet"
13695  exec 5>/dev/null
13696  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13697  exec 5>>config.log
13698  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13699  # would make configure fail if this is the last instruction.
13700  $ac_cs_success || as_fn_exit 1
13701fi
13702if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13703  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13704printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13705fi
13706
13707
13708