configure revision e5db2183
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for imake 1.0.9.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/util/imake/-/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/util/imake/-/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
591
592test -n "$DJDIR" || exec 7<&0 </dev/null
593exec 6>&1
594
595# Name of the host.
596# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
597# so uname gets run too.
598ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
599
600#
601# Initializations.
602#
603ac_default_prefix=/usr/local
604ac_clean_files=
605ac_config_libobj_dir=.
606LIBOBJS=
607cross_compiling=no
608subdirs=
609MFLAGS=
610MAKEFLAGS=
611
612# Identity of this package.
613PACKAGE_NAME='imake'
614PACKAGE_TARNAME='imake'
615PACKAGE_VERSION='1.0.9'
616PACKAGE_STRING='imake 1.0.9'
617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/util/imake/-/issues'
618PACKAGE_URL=''
619
620ac_unique_file="Makefile.am"
621# Factoring default headers for most tests.
622ac_includes_default="\
623#include <stddef.h>
624#ifdef HAVE_STDIO_H
625# include <stdio.h>
626#endif
627#ifdef HAVE_STDLIB_H
628# include <stdlib.h>
629#endif
630#ifdef HAVE_STRING_H
631# include <string.h>
632#endif
633#ifdef HAVE_INTTYPES_H
634# include <inttypes.h>
635#endif
636#ifdef HAVE_STDINT_H
637# include <stdint.h>
638#endif
639#ifdef HAVE_STRINGS_H
640# include <strings.h>
641#endif
642#ifdef HAVE_SYS_TYPES_H
643# include <sys/types.h>
644#endif
645#ifdef HAVE_SYS_STAT_H
646# include <sys/stat.h>
647#endif
648#ifdef HAVE_UNISTD_H
649# include <unistd.h>
650#endif"
651
652ac_header_c_list=
653ac_subst_vars='am__EXEEXT_FALSE
654am__EXEEXT_TRUE
655LTLIBOBJS
656LIBOBJS
657XPROTO_LIBS
658XPROTO_CFLAGS
659BUILD_MKHTMLINDEX_FALSE
660BUILD_MKHTMLINDEX_TRUE
661BUILD_CLEANLINKS_FALSE
662BUILD_CLEANLINKS_TRUE
663BUILD_MKDIRHIER_FALSE
664BUILD_MKDIRHIER_TRUE
665BUILD_MERGELIB_FALSE
666BUILD_MERGELIB_TRUE
667BUILD_CCMAKEDEP_FALSE
668BUILD_CCMAKEDEP_TRUE
669BUILD_XMKMF_FALSE
670BUILD_XMKMF_TRUE
671BUILD_MAKEG_FALSE
672BUILD_MAKEG_TRUE
673BUILD_REVPATH_FALSE
674BUILD_REVPATH_TRUE
675RANLIB
676ARCMD
677PREPROCESSCMD_MKDEPEND
678XCONFDIR
679HAS_PERL_FALSE
680HAS_PERL_TRUE
681HAS_PERL
682CPP_PROGRAM
683TRADITIONALCPPFLAGS
684RAWCPPFLAGS
685RAWCPP
686CPP
687MAN_SUBSTS
688XORG_MAN_PAGE
689ADMIN_MAN_DIR
690DRIVER_MAN_DIR
691MISC_MAN_DIR
692FILE_MAN_DIR
693LIB_MAN_DIR
694APP_MAN_DIR
695ADMIN_MAN_SUFFIX
696DRIVER_MAN_SUFFIX
697MISC_MAN_SUFFIX
698FILE_MAN_SUFFIX
699LIB_MAN_SUFFIX
700APP_MAN_SUFFIX
701SED
702host_os
703host_vendor
704host_cpu
705host
706build_os
707build_vendor
708build_cpu
709build
710INSTALL_CMD
711PKG_CONFIG_LIBDIR
712PKG_CONFIG_PATH
713PKG_CONFIG
714CHANGELOG_CMD
715STRICT_CFLAGS
716CWARNFLAGS
717BASE_CFLAGS
718am__fastdepCC_FALSE
719am__fastdepCC_TRUE
720CCDEPMODE
721am__nodep
722AMDEPBACKSLASH
723AMDEP_FALSE
724AMDEP_TRUE
725am__include
726DEPDIR
727OBJEXT
728EXEEXT
729ac_ct_CC
730CPPFLAGS
731LDFLAGS
732CFLAGS
733CC
734AM_BACKSLASH
735AM_DEFAULT_VERBOSITY
736AM_DEFAULT_V
737AM_V
738CSCOPE
739ETAGS
740CTAGS
741am__untar
742am__tar
743AMTAR
744am__leading_dot
745SET_MAKE
746AWK
747mkdir_p
748MKDIR_P
749INSTALL_STRIP_PROGRAM
750STRIP
751install_sh
752MAKEINFO
753AUTOHEADER
754AUTOMAKE
755AUTOCONF
756ACLOCAL
757VERSION
758PACKAGE
759CYGPATH_W
760am__isrc
761INSTALL_DATA
762INSTALL_SCRIPT
763INSTALL_PROGRAM
764target_alias
765host_alias
766build_alias
767LIBS
768ECHO_T
769ECHO_N
770ECHO_C
771DEFS
772mandir
773localedir
774libdir
775psdir
776pdfdir
777dvidir
778htmldir
779infodir
780docdir
781oldincludedir
782includedir
783runstatedir
784localstatedir
785sharedstatedir
786sysconfdir
787datadir
788datarootdir
789libexecdir
790sbindir
791bindir
792program_transform_name
793prefix
794exec_prefix
795PACKAGE_URL
796PACKAGE_BUGREPORT
797PACKAGE_STRING
798PACKAGE_VERSION
799PACKAGE_TARNAME
800PACKAGE_NAME
801PATH_SEPARATOR
802SHELL
803am__quote'
804ac_subst_files=''
805ac_user_opts='
806enable_option_checking
807enable_silent_rules
808enable_dependency_tracking
809enable_selective_werror
810enable_strict_compilation
811with_config_dir
812with_script_preproc_cmd
813with_create_lib_cmd
814with_clean_lib_cmd
815enable_revpath
816enable_makeg
817enable_xmkmf
818enable_ccmakedep
819enable_mergelib
820enable_mkdirhier
821enable_cleanlinks
822enable_mkhtmlindex
823'
824      ac_precious_vars='build_alias
825host_alias
826target_alias
827CC
828CFLAGS
829LDFLAGS
830LIBS
831CPPFLAGS
832PKG_CONFIG
833PKG_CONFIG_PATH
834PKG_CONFIG_LIBDIR
835CPP
836XPROTO_CFLAGS
837XPROTO_LIBS'
838
839
840# Initialize some variables set by options.
841ac_init_help=
842ac_init_version=false
843ac_unrecognized_opts=
844ac_unrecognized_sep=
845# The variables have the same names as the options, with
846# dashes changed to underlines.
847cache_file=/dev/null
848exec_prefix=NONE
849no_create=
850no_recursion=
851prefix=NONE
852program_prefix=NONE
853program_suffix=NONE
854program_transform_name=s,x,x,
855silent=
856site=
857srcdir=
858verbose=
859x_includes=NONE
860x_libraries=NONE
861
862# Installation directory options.
863# These are left unexpanded so users can "make install exec_prefix=/foo"
864# and all the variables that are supposed to be based on exec_prefix
865# by default will actually change.
866# Use braces instead of parens because sh, perl, etc. also accept them.
867# (The list follows the same order as the GNU Coding Standards.)
868bindir='${exec_prefix}/bin'
869sbindir='${exec_prefix}/sbin'
870libexecdir='${exec_prefix}/libexec'
871datarootdir='${prefix}/share'
872datadir='${datarootdir}'
873sysconfdir='${prefix}/etc'
874sharedstatedir='${prefix}/com'
875localstatedir='${prefix}/var'
876runstatedir='${localstatedir}/run'
877includedir='${prefix}/include'
878oldincludedir='/usr/include'
879docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
880infodir='${datarootdir}/info'
881htmldir='${docdir}'
882dvidir='${docdir}'
883pdfdir='${docdir}'
884psdir='${docdir}'
885libdir='${exec_prefix}/lib'
886localedir='${datarootdir}/locale'
887mandir='${datarootdir}/man'
888
889ac_prev=
890ac_dashdash=
891for ac_option
892do
893  # If the previous option needs an argument, assign it.
894  if test -n "$ac_prev"; then
895    eval $ac_prev=\$ac_option
896    ac_prev=
897    continue
898  fi
899
900  case $ac_option in
901  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902  *=)   ac_optarg= ;;
903  *)    ac_optarg=yes ;;
904  esac
905
906  case $ac_dashdash$ac_option in
907  --)
908    ac_dashdash=yes ;;
909
910  -bindir | --bindir | --bindi | --bind | --bin | --bi)
911    ac_prev=bindir ;;
912  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
913    bindir=$ac_optarg ;;
914
915  -build | --build | --buil | --bui | --bu)
916    ac_prev=build_alias ;;
917  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
918    build_alias=$ac_optarg ;;
919
920  -cache-file | --cache-file | --cache-fil | --cache-fi \
921  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922    ac_prev=cache_file ;;
923  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
925    cache_file=$ac_optarg ;;
926
927  --config-cache | -C)
928    cache_file=config.cache ;;
929
930  -datadir | --datadir | --datadi | --datad)
931    ac_prev=datadir ;;
932  -datadir=* | --datadir=* | --datadi=* | --datad=*)
933    datadir=$ac_optarg ;;
934
935  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936  | --dataroo | --dataro | --datar)
937    ac_prev=datarootdir ;;
938  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940    datarootdir=$ac_optarg ;;
941
942  -disable-* | --disable-*)
943    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
944    # Reject names that are not valid shell variable names.
945    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946      as_fn_error $? "invalid feature name: \`$ac_useropt'"
947    ac_useropt_orig=$ac_useropt
948    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
949    case $ac_user_opts in
950      *"
951"enable_$ac_useropt"
952"*) ;;
953      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954	 ac_unrecognized_sep=', ';;
955    esac
956    eval enable_$ac_useropt=no ;;
957
958  -docdir | --docdir | --docdi | --doc | --do)
959    ac_prev=docdir ;;
960  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961    docdir=$ac_optarg ;;
962
963  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964    ac_prev=dvidir ;;
965  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966    dvidir=$ac_optarg ;;
967
968  -enable-* | --enable-*)
969    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970    # Reject names that are not valid shell variable names.
971    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972      as_fn_error $? "invalid feature name: \`$ac_useropt'"
973    ac_useropt_orig=$ac_useropt
974    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
975    case $ac_user_opts in
976      *"
977"enable_$ac_useropt"
978"*) ;;
979      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980	 ac_unrecognized_sep=', ';;
981    esac
982    eval enable_$ac_useropt=\$ac_optarg ;;
983
984  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986  | --exec | --exe | --ex)
987    ac_prev=exec_prefix ;;
988  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990  | --exec=* | --exe=* | --ex=*)
991    exec_prefix=$ac_optarg ;;
992
993  -gas | --gas | --ga | --g)
994    # Obsolete; use --with-gas.
995    with_gas=yes ;;
996
997  -help | --help | --hel | --he | -h)
998    ac_init_help=long ;;
999  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000    ac_init_help=recursive ;;
1001  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002    ac_init_help=short ;;
1003
1004  -host | --host | --hos | --ho)
1005    ac_prev=host_alias ;;
1006  -host=* | --host=* | --hos=* | --ho=*)
1007    host_alias=$ac_optarg ;;
1008
1009  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010    ac_prev=htmldir ;;
1011  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012  | --ht=*)
1013    htmldir=$ac_optarg ;;
1014
1015  -includedir | --includedir | --includedi | --included | --include \
1016  | --includ | --inclu | --incl | --inc)
1017    ac_prev=includedir ;;
1018  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019  | --includ=* | --inclu=* | --incl=* | --inc=*)
1020    includedir=$ac_optarg ;;
1021
1022  -infodir | --infodir | --infodi | --infod | --info | --inf)
1023    ac_prev=infodir ;;
1024  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1025    infodir=$ac_optarg ;;
1026
1027  -libdir | --libdir | --libdi | --libd)
1028    ac_prev=libdir ;;
1029  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1030    libdir=$ac_optarg ;;
1031
1032  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033  | --libexe | --libex | --libe)
1034    ac_prev=libexecdir ;;
1035  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036  | --libexe=* | --libex=* | --libe=*)
1037    libexecdir=$ac_optarg ;;
1038
1039  -localedir | --localedir | --localedi | --localed | --locale)
1040    ac_prev=localedir ;;
1041  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042    localedir=$ac_optarg ;;
1043
1044  -localstatedir | --localstatedir | --localstatedi | --localstated \
1045  | --localstate | --localstat | --localsta | --localst | --locals)
1046    ac_prev=localstatedir ;;
1047  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1048  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1049    localstatedir=$ac_optarg ;;
1050
1051  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052    ac_prev=mandir ;;
1053  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1054    mandir=$ac_optarg ;;
1055
1056  -nfp | --nfp | --nf)
1057    # Obsolete; use --without-fp.
1058    with_fp=no ;;
1059
1060  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1061  | --no-cr | --no-c | -n)
1062    no_create=yes ;;
1063
1064  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066    no_recursion=yes ;;
1067
1068  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070  | --oldin | --oldi | --old | --ol | --o)
1071    ac_prev=oldincludedir ;;
1072  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1075    oldincludedir=$ac_optarg ;;
1076
1077  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078    ac_prev=prefix ;;
1079  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1080    prefix=$ac_optarg ;;
1081
1082  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083  | --program-pre | --program-pr | --program-p)
1084    ac_prev=program_prefix ;;
1085  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1087    program_prefix=$ac_optarg ;;
1088
1089  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090  | --program-suf | --program-su | --program-s)
1091    ac_prev=program_suffix ;;
1092  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1094    program_suffix=$ac_optarg ;;
1095
1096  -program-transform-name | --program-transform-name \
1097  | --program-transform-nam | --program-transform-na \
1098  | --program-transform-n | --program-transform- \
1099  | --program-transform | --program-transfor \
1100  | --program-transfo | --program-transf \
1101  | --program-trans | --program-tran \
1102  | --progr-tra | --program-tr | --program-t)
1103    ac_prev=program_transform_name ;;
1104  -program-transform-name=* | --program-transform-name=* \
1105  | --program-transform-nam=* | --program-transform-na=* \
1106  | --program-transform-n=* | --program-transform-=* \
1107  | --program-transform=* | --program-transfor=* \
1108  | --program-transfo=* | --program-transf=* \
1109  | --program-trans=* | --program-tran=* \
1110  | --progr-tra=* | --program-tr=* | --program-t=*)
1111    program_transform_name=$ac_optarg ;;
1112
1113  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114    ac_prev=pdfdir ;;
1115  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116    pdfdir=$ac_optarg ;;
1117
1118  -psdir | --psdir | --psdi | --psd | --ps)
1119    ac_prev=psdir ;;
1120  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121    psdir=$ac_optarg ;;
1122
1123  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124  | -silent | --silent | --silen | --sile | --sil)
1125    silent=yes ;;
1126
1127  -runstatedir | --runstatedir | --runstatedi | --runstated \
1128  | --runstate | --runstat | --runsta | --runst | --runs \
1129  | --run | --ru | --r)
1130    ac_prev=runstatedir ;;
1131  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1132  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1133  | --run=* | --ru=* | --r=*)
1134    runstatedir=$ac_optarg ;;
1135
1136  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1137    ac_prev=sbindir ;;
1138  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1139  | --sbi=* | --sb=*)
1140    sbindir=$ac_optarg ;;
1141
1142  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1143  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1144  | --sharedst | --shareds | --shared | --share | --shar \
1145  | --sha | --sh)
1146    ac_prev=sharedstatedir ;;
1147  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1148  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1149  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1150  | --sha=* | --sh=*)
1151    sharedstatedir=$ac_optarg ;;
1152
1153  -site | --site | --sit)
1154    ac_prev=site ;;
1155  -site=* | --site=* | --sit=*)
1156    site=$ac_optarg ;;
1157
1158  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1159    ac_prev=srcdir ;;
1160  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1161    srcdir=$ac_optarg ;;
1162
1163  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1164  | --syscon | --sysco | --sysc | --sys | --sy)
1165    ac_prev=sysconfdir ;;
1166  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1167  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1168    sysconfdir=$ac_optarg ;;
1169
1170  -target | --target | --targe | --targ | --tar | --ta | --t)
1171    ac_prev=target_alias ;;
1172  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1173    target_alias=$ac_optarg ;;
1174
1175  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1176    verbose=yes ;;
1177
1178  -version | --version | --versio | --versi | --vers | -V)
1179    ac_init_version=: ;;
1180
1181  -with-* | --with-*)
1182    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1183    # Reject names that are not valid shell variable names.
1184    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185      as_fn_error $? "invalid package name: \`$ac_useropt'"
1186    ac_useropt_orig=$ac_useropt
1187    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1188    case $ac_user_opts in
1189      *"
1190"with_$ac_useropt"
1191"*) ;;
1192      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1193	 ac_unrecognized_sep=', ';;
1194    esac
1195    eval with_$ac_useropt=\$ac_optarg ;;
1196
1197  -without-* | --without-*)
1198    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1199    # Reject names that are not valid shell variable names.
1200    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201      as_fn_error $? "invalid package name: \`$ac_useropt'"
1202    ac_useropt_orig=$ac_useropt
1203    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1204    case $ac_user_opts in
1205      *"
1206"with_$ac_useropt"
1207"*) ;;
1208      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1209	 ac_unrecognized_sep=', ';;
1210    esac
1211    eval with_$ac_useropt=no ;;
1212
1213  --x)
1214    # Obsolete; use --with-x.
1215    with_x=yes ;;
1216
1217  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1218  | --x-incl | --x-inc | --x-in | --x-i)
1219    ac_prev=x_includes ;;
1220  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1221  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1222    x_includes=$ac_optarg ;;
1223
1224  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1225  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1226    ac_prev=x_libraries ;;
1227  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1228  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1229    x_libraries=$ac_optarg ;;
1230
1231  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1232Try \`$0 --help' for more information"
1233    ;;
1234
1235  *=*)
1236    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237    # Reject names that are not valid shell variable names.
1238    case $ac_envvar in #(
1239      '' | [0-9]* | *[!_$as_cr_alnum]* )
1240      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1241    esac
1242    eval $ac_envvar=\$ac_optarg
1243    export $ac_envvar ;;
1244
1245  *)
1246    # FIXME: should be removed in autoconf 3.0.
1247    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1248    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1250    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1251    ;;
1252
1253  esac
1254done
1255
1256if test -n "$ac_prev"; then
1257  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1258  as_fn_error $? "missing argument to $ac_option"
1259fi
1260
1261if test -n "$ac_unrecognized_opts"; then
1262  case $enable_option_checking in
1263    no) ;;
1264    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1265    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1266  esac
1267fi
1268
1269# Check all directory arguments for consistency.
1270for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1271		datadir sysconfdir sharedstatedir localstatedir includedir \
1272		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1273		libdir localedir mandir runstatedir
1274do
1275  eval ac_val=\$$ac_var
1276  # Remove trailing slashes.
1277  case $ac_val in
1278    */ )
1279      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1280      eval $ac_var=\$ac_val;;
1281  esac
1282  # Be sure to have absolute directory names.
1283  case $ac_val in
1284    [\\/$]* | ?:[\\/]* )  continue;;
1285    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1286  esac
1287  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1288done
1289
1290# There might be people who depend on the old broken behavior: `$host'
1291# used to hold the argument of --host etc.
1292# FIXME: To remove some day.
1293build=$build_alias
1294host=$host_alias
1295target=$target_alias
1296
1297# FIXME: To remove some day.
1298if test "x$host_alias" != x; then
1299  if test "x$build_alias" = x; then
1300    cross_compiling=maybe
1301  elif test "x$build_alias" != "x$host_alias"; then
1302    cross_compiling=yes
1303  fi
1304fi
1305
1306ac_tool_prefix=
1307test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308
1309test "$silent" = yes && exec 6>/dev/null
1310
1311
1312ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313ac_ls_di=`ls -di .` &&
1314ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315  as_fn_error $? "working directory cannot be determined"
1316test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317  as_fn_error $? "pwd does not report name of working directory"
1318
1319
1320# Find the source files, if location was not specified.
1321if test -z "$srcdir"; then
1322  ac_srcdir_defaulted=yes
1323  # Try the directory containing this script, then the parent directory.
1324  ac_confdir=`$as_dirname -- "$as_myself" ||
1325$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326	 X"$as_myself" : 'X\(//\)[^/]' \| \
1327	 X"$as_myself" : 'X\(//\)$' \| \
1328	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329printf "%s\n" X"$as_myself" |
1330    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331	    s//\1/
1332	    q
1333	  }
1334	  /^X\(\/\/\)[^/].*/{
1335	    s//\1/
1336	    q
1337	  }
1338	  /^X\(\/\/\)$/{
1339	    s//\1/
1340	    q
1341	  }
1342	  /^X\(\/\).*/{
1343	    s//\1/
1344	    q
1345	  }
1346	  s/.*/./; q'`
1347  srcdir=$ac_confdir
1348  if test ! -r "$srcdir/$ac_unique_file"; then
1349    srcdir=..
1350  fi
1351else
1352  ac_srcdir_defaulted=no
1353fi
1354if test ! -r "$srcdir/$ac_unique_file"; then
1355  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1357fi
1358ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359ac_abs_confdir=`(
1360	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1361	pwd)`
1362# When building in place, set srcdir=.
1363if test "$ac_abs_confdir" = "$ac_pwd"; then
1364  srcdir=.
1365fi
1366# Remove unnecessary trailing slashes from srcdir.
1367# Double slashes in file names in object file debugging info
1368# mess up M-x gdb in Emacs.
1369case $srcdir in
1370*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371esac
1372for ac_var in $ac_precious_vars; do
1373  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374  eval ac_env_${ac_var}_value=\$${ac_var}
1375  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377done
1378
1379#
1380# Report the --help message.
1381#
1382if test "$ac_init_help" = "long"; then
1383  # Omit some internal or obsolete options to make the list less imposing.
1384  # This message is too long to be a string in the A/UX 3.1 sh.
1385  cat <<_ACEOF
1386\`configure' configures imake 1.0.9 to adapt to many kinds of systems.
1387
1388Usage: $0 [OPTION]... [VAR=VALUE]...
1389
1390To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391VAR=VALUE.  See below for descriptions of some of the useful variables.
1392
1393Defaults for the options are specified in brackets.
1394
1395Configuration:
1396  -h, --help              display this help and exit
1397      --help=short        display options specific to this package
1398      --help=recursive    display the short help of all the included packages
1399  -V, --version           display version information and exit
1400  -q, --quiet, --silent   do not print \`checking ...' messages
1401      --cache-file=FILE   cache test results in FILE [disabled]
1402  -C, --config-cache      alias for \`--cache-file=config.cache'
1403  -n, --no-create         do not create output files
1404      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1405
1406Installation directories:
1407  --prefix=PREFIX         install architecture-independent files in PREFIX
1408                          [$ac_default_prefix]
1409  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1410                          [PREFIX]
1411
1412By default, \`make install' will install all the files in
1413\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1414an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415for instance \`--prefix=\$HOME'.
1416
1417For better control, use the options below.
1418
1419Fine tuning of the installation directories:
1420  --bindir=DIR            user executables [EPREFIX/bin]
1421  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1422  --libexecdir=DIR        program executables [EPREFIX/libexec]
1423  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1424  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1425  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1426  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1427  --libdir=DIR            object code libraries [EPREFIX/lib]
1428  --includedir=DIR        C header files [PREFIX/include]
1429  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1430  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1431  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1432  --infodir=DIR           info documentation [DATAROOTDIR/info]
1433  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1434  --mandir=DIR            man documentation [DATAROOTDIR/man]
1435  --docdir=DIR            documentation root [DATAROOTDIR/doc/imake]
1436  --htmldir=DIR           html documentation [DOCDIR]
1437  --dvidir=DIR            dvi documentation [DOCDIR]
1438  --pdfdir=DIR            pdf documentation [DOCDIR]
1439  --psdir=DIR             ps documentation [DOCDIR]
1440_ACEOF
1441
1442  cat <<\_ACEOF
1443
1444Program names:
1445  --program-prefix=PREFIX            prepend PREFIX to installed program names
1446  --program-suffix=SUFFIX            append SUFFIX to installed program names
1447  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1448
1449System types:
1450  --build=BUILD     configure for building on BUILD [guessed]
1451  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1452_ACEOF
1453fi
1454
1455if test -n "$ac_init_help"; then
1456  case $ac_init_help in
1457     short | recursive ) echo "Configuration of imake 1.0.9:";;
1458   esac
1459  cat <<\_ACEOF
1460
1461Optional Features:
1462  --disable-option-checking  ignore unrecognized --enable/--with options
1463  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1464  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1465  --enable-silent-rules   less verbose build output (undo: "make V=1")
1466  --disable-silent-rules  verbose build output (undo: "make V=0")
1467  --enable-dependency-tracking
1468                          do not reject slow dependency extractors
1469  --disable-dependency-tracking
1470                          speeds up one-time build
1471  --disable-selective-werror
1472                          Turn off selective compiler errors. (default:
1473                          enabled)
1474  --enable-strict-compilation
1475                          Enable all warnings from compiler and make them
1476                          errors (default: disabled)
1477  --disable-revpath       Build revpath (default: enabled)
1478  --disable-makeg         Build makeg (default: enabled)
1479  --disable-xmkmf         Build xmkmf (default: enabled)
1480  --disable-ccmakedep     Build ccmakedep (default: enabled)
1481  --disable-mergelib      Build mergelib (default: enabled)
1482  --disable-mkdirhier     Build mkdirhier (default: enabled)
1483  --disable-cleanlinks    Build cleanlinks (default: enabled)
1484  --disable-mkhtmlindex   Build mkhtmlindex (default: enabled)
1485
1486Optional Packages:
1487  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1488  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1489  --with-config-dir=<path>
1490                          Path to config dir (default: ${libdir}/X11/config)
1491  --with-script-preproc-cmd=CMD
1492                          Preprocessor command to run on scripts (default:
1493                          "gcc -E")
1494  --with-create-lib-cmd=CMD
1495                          Command to create libraries (default: "ar clq")
1496  --with-clean-lib-cmd=CMD
1497                          Command to clean up libraries (default: "ranlib")
1498
1499Some influential environment variables:
1500  CC          C compiler command
1501  CFLAGS      C compiler flags
1502  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1503              nonstandard directory <lib dir>
1504  LIBS        libraries to pass to the linker, e.g. -l<library>
1505  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1506              you have headers in a nonstandard directory <include dir>
1507  PKG_CONFIG  path to pkg-config utility
1508  PKG_CONFIG_PATH
1509              directories to add to pkg-config's search path
1510  PKG_CONFIG_LIBDIR
1511              path overriding pkg-config's built-in search path
1512  CPP         C preprocessor
1513  XPROTO_CFLAGS
1514              C compiler flags for XPROTO, overriding pkg-config
1515  XPROTO_LIBS linker flags for XPROTO, overriding pkg-config
1516
1517Use these variables to override the choices made by `configure' or to help
1518it to find libraries and programs with nonstandard names/locations.
1519
1520Report bugs to <https://gitlab.freedesktop.org/xorg/util/imake/-/issues>.
1521_ACEOF
1522ac_status=$?
1523fi
1524
1525if test "$ac_init_help" = "recursive"; then
1526  # If there are subdirs, report their specific --help.
1527  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1528    test -d "$ac_dir" ||
1529      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1530      continue
1531    ac_builddir=.
1532
1533case "$ac_dir" in
1534.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535*)
1536  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1537  # A ".." for each directory in $ac_dir_suffix.
1538  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1539  case $ac_top_builddir_sub in
1540  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542  esac ;;
1543esac
1544ac_abs_top_builddir=$ac_pwd
1545ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546# for backward compatibility:
1547ac_top_builddir=$ac_top_build_prefix
1548
1549case $srcdir in
1550  .)  # We are building in place.
1551    ac_srcdir=.
1552    ac_top_srcdir=$ac_top_builddir_sub
1553    ac_abs_top_srcdir=$ac_pwd ;;
1554  [\\/]* | ?:[\\/]* )  # Absolute name.
1555    ac_srcdir=$srcdir$ac_dir_suffix;
1556    ac_top_srcdir=$srcdir
1557    ac_abs_top_srcdir=$srcdir ;;
1558  *) # Relative name.
1559    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560    ac_top_srcdir=$ac_top_build_prefix$srcdir
1561    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562esac
1563ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1564
1565    cd "$ac_dir" || { ac_status=$?; continue; }
1566    # Check for configure.gnu first; this name is used for a wrapper for
1567    # Metaconfig's "Configure" on case-insensitive file systems.
1568    if test -f "$ac_srcdir/configure.gnu"; then
1569      echo &&
1570      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1571    elif test -f "$ac_srcdir/configure"; then
1572      echo &&
1573      $SHELL "$ac_srcdir/configure" --help=recursive
1574    else
1575      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1576    fi || ac_status=$?
1577    cd "$ac_pwd" || { ac_status=$?; break; }
1578  done
1579fi
1580
1581test -n "$ac_init_help" && exit $ac_status
1582if $ac_init_version; then
1583  cat <<\_ACEOF
1584imake configure 1.0.9
1585generated by GNU Autoconf 2.71
1586
1587Copyright (C) 2021 Free Software Foundation, Inc.
1588This configure script is free software; the Free Software Foundation
1589gives unlimited permission to copy, distribute and modify it.
1590_ACEOF
1591  exit
1592fi
1593
1594## ------------------------ ##
1595## Autoconf initialization. ##
1596## ------------------------ ##
1597
1598# ac_fn_c_try_compile LINENO
1599# --------------------------
1600# Try to compile conftest.$ac_ext, and return whether this succeeded.
1601ac_fn_c_try_compile ()
1602{
1603  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604  rm -f conftest.$ac_objext conftest.beam
1605  if { { ac_try="$ac_compile"
1606case "(($ac_try" in
1607  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608  *) ac_try_echo=$ac_try;;
1609esac
1610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611printf "%s\n" "$ac_try_echo"; } >&5
1612  (eval "$ac_compile") 2>conftest.err
1613  ac_status=$?
1614  if test -s conftest.err; then
1615    grep -v '^ *+' conftest.err >conftest.er1
1616    cat conftest.er1 >&5
1617    mv -f conftest.er1 conftest.err
1618  fi
1619  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620  test $ac_status = 0; } && {
1621	 test -z "$ac_c_werror_flag" ||
1622	 test ! -s conftest.err
1623       } && test -s conftest.$ac_objext
1624then :
1625  ac_retval=0
1626else $as_nop
1627  printf "%s\n" "$as_me: failed program was:" >&5
1628sed 's/^/| /' conftest.$ac_ext >&5
1629
1630	ac_retval=1
1631fi
1632  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633  as_fn_set_status $ac_retval
1634
1635} # ac_fn_c_try_compile
1636
1637# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1638# ------------------------------------------------------------------
1639# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1640# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1641ac_fn_check_decl ()
1642{
1643  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644  as_decl_name=`echo $2|sed 's/ *(.*//'`
1645  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1646printf %s "checking whether $as_decl_name is declared... " >&6; }
1647if eval test \${$3+y}
1648then :
1649  printf %s "(cached) " >&6
1650else $as_nop
1651  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1652  eval ac_save_FLAGS=\$$6
1653  as_fn_append $6 " $5"
1654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655/* end confdefs.h.  */
1656$4
1657int
1658main (void)
1659{
1660#ifndef $as_decl_name
1661#ifdef __cplusplus
1662  (void) $as_decl_use;
1663#else
1664  (void) $as_decl_name;
1665#endif
1666#endif
1667
1668  ;
1669  return 0;
1670}
1671_ACEOF
1672if ac_fn_c_try_compile "$LINENO"
1673then :
1674  eval "$3=yes"
1675else $as_nop
1676  eval "$3=no"
1677fi
1678rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1679  eval $6=\$ac_save_FLAGS
1680
1681fi
1682eval ac_res=\$$3
1683	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684printf "%s\n" "$ac_res" >&6; }
1685  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686
1687} # ac_fn_check_decl
1688
1689# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1690# -------------------------------------------------------
1691# Tests whether HEADER exists and can be compiled using the include files in
1692# INCLUDES, setting the cache variable VAR accordingly.
1693ac_fn_c_check_header_compile ()
1694{
1695  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1697printf %s "checking for $2... " >&6; }
1698if eval test \${$3+y}
1699then :
1700  printf %s "(cached) " >&6
1701else $as_nop
1702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703/* end confdefs.h.  */
1704$4
1705#include <$2>
1706_ACEOF
1707if ac_fn_c_try_compile "$LINENO"
1708then :
1709  eval "$3=yes"
1710else $as_nop
1711  eval "$3=no"
1712fi
1713rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1714fi
1715eval ac_res=\$$3
1716	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717printf "%s\n" "$ac_res" >&6; }
1718  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719
1720} # ac_fn_c_check_header_compile
1721
1722# ac_fn_c_try_link LINENO
1723# -----------------------
1724# Try to link conftest.$ac_ext, and return whether this succeeded.
1725ac_fn_c_try_link ()
1726{
1727  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1729  if { { ac_try="$ac_link"
1730case "(($ac_try" in
1731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732  *) ac_try_echo=$ac_try;;
1733esac
1734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735printf "%s\n" "$ac_try_echo"; } >&5
1736  (eval "$ac_link") 2>conftest.err
1737  ac_status=$?
1738  if test -s conftest.err; then
1739    grep -v '^ *+' conftest.err >conftest.er1
1740    cat conftest.er1 >&5
1741    mv -f conftest.er1 conftest.err
1742  fi
1743  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744  test $ac_status = 0; } && {
1745	 test -z "$ac_c_werror_flag" ||
1746	 test ! -s conftest.err
1747       } && test -s conftest$ac_exeext && {
1748	 test "$cross_compiling" = yes ||
1749	 test -x conftest$ac_exeext
1750       }
1751then :
1752  ac_retval=0
1753else $as_nop
1754  printf "%s\n" "$as_me: failed program was:" >&5
1755sed 's/^/| /' conftest.$ac_ext >&5
1756
1757	ac_retval=1
1758fi
1759  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1760  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1761  # interfere with the next link command; also delete a directory that is
1762  # left behind by Apple's compiler.  We do this before executing the actions.
1763  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1764  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765  as_fn_set_status $ac_retval
1766
1767} # ac_fn_c_try_link
1768
1769# ac_fn_c_try_cpp LINENO
1770# ----------------------
1771# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1772ac_fn_c_try_cpp ()
1773{
1774  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775  if { { ac_try="$ac_cpp conftest.$ac_ext"
1776case "(($ac_try" in
1777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778  *) ac_try_echo=$ac_try;;
1779esac
1780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781printf "%s\n" "$ac_try_echo"; } >&5
1782  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1783  ac_status=$?
1784  if test -s conftest.err; then
1785    grep -v '^ *+' conftest.err >conftest.er1
1786    cat conftest.er1 >&5
1787    mv -f conftest.er1 conftest.err
1788  fi
1789  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790  test $ac_status = 0; } > conftest.i && {
1791	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1792	 test ! -s conftest.err
1793       }
1794then :
1795  ac_retval=0
1796else $as_nop
1797  printf "%s\n" "$as_me: failed program was:" >&5
1798sed 's/^/| /' conftest.$ac_ext >&5
1799
1800    ac_retval=1
1801fi
1802  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803  as_fn_set_status $ac_retval
1804
1805} # ac_fn_c_try_cpp
1806
1807# ac_fn_c_check_func LINENO FUNC VAR
1808# ----------------------------------
1809# Tests whether FUNC exists, setting the cache variable VAR accordingly
1810ac_fn_c_check_func ()
1811{
1812  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814printf %s "checking for $2... " >&6; }
1815if eval test \${$3+y}
1816then :
1817  printf %s "(cached) " >&6
1818else $as_nop
1819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820/* end confdefs.h.  */
1821/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1822   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1823#define $2 innocuous_$2
1824
1825/* System header to define __stub macros and hopefully few prototypes,
1826   which can conflict with char $2 (); below.  */
1827
1828#include <limits.h>
1829#undef $2
1830
1831/* Override any GCC internal prototype to avoid an error.
1832   Use char because int might match the return type of a GCC
1833   builtin and then its argument prototype would still apply.  */
1834#ifdef __cplusplus
1835extern "C"
1836#endif
1837char $2 ();
1838/* The GNU C library defines this for functions which it implements
1839    to always fail with ENOSYS.  Some functions are actually named
1840    something starting with __ and the normal name is an alias.  */
1841#if defined __stub_$2 || defined __stub___$2
1842choke me
1843#endif
1844
1845int
1846main (void)
1847{
1848return $2 ();
1849  ;
1850  return 0;
1851}
1852_ACEOF
1853if ac_fn_c_try_link "$LINENO"
1854then :
1855  eval "$3=yes"
1856else $as_nop
1857  eval "$3=no"
1858fi
1859rm -f core conftest.err conftest.$ac_objext conftest.beam \
1860    conftest$ac_exeext conftest.$ac_ext
1861fi
1862eval ac_res=\$$3
1863	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864printf "%s\n" "$ac_res" >&6; }
1865  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866
1867} # ac_fn_c_check_func
1868ac_configure_args_raw=
1869for ac_arg
1870do
1871  case $ac_arg in
1872  *\'*)
1873    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1874  esac
1875  as_fn_append ac_configure_args_raw " '$ac_arg'"
1876done
1877
1878case $ac_configure_args_raw in
1879  *$as_nl*)
1880    ac_safe_unquote= ;;
1881  *)
1882    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1883    ac_unsafe_a="$ac_unsafe_z#~"
1884    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1885    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1886esac
1887
1888cat >config.log <<_ACEOF
1889This file contains any messages produced by compilers while
1890running configure, to aid debugging if configure makes a mistake.
1891
1892It was created by imake $as_me 1.0.9, which was
1893generated by GNU Autoconf 2.71.  Invocation command line was
1894
1895  $ $0$ac_configure_args_raw
1896
1897_ACEOF
1898exec 5>>config.log
1899{
1900cat <<_ASUNAME
1901## --------- ##
1902## Platform. ##
1903## --------- ##
1904
1905hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1906uname -m = `(uname -m) 2>/dev/null || echo unknown`
1907uname -r = `(uname -r) 2>/dev/null || echo unknown`
1908uname -s = `(uname -s) 2>/dev/null || echo unknown`
1909uname -v = `(uname -v) 2>/dev/null || echo unknown`
1910
1911/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1912/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1913
1914/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1915/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1916/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1917/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1918/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1919/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1920/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1921
1922_ASUNAME
1923
1924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925for as_dir in $PATH
1926do
1927  IFS=$as_save_IFS
1928  case $as_dir in #(((
1929    '') as_dir=./ ;;
1930    */) ;;
1931    *) as_dir=$as_dir/ ;;
1932  esac
1933    printf "%s\n" "PATH: $as_dir"
1934  done
1935IFS=$as_save_IFS
1936
1937} >&5
1938
1939cat >&5 <<_ACEOF
1940
1941
1942## ----------- ##
1943## Core tests. ##
1944## ----------- ##
1945
1946_ACEOF
1947
1948
1949# Keep a trace of the command line.
1950# Strip out --no-create and --no-recursion so they do not pile up.
1951# Strip out --silent because we don't want to record it for future runs.
1952# Also quote any args containing shell meta-characters.
1953# Make two passes to allow for proper duplicate-argument suppression.
1954ac_configure_args=
1955ac_configure_args0=
1956ac_configure_args1=
1957ac_must_keep_next=false
1958for ac_pass in 1 2
1959do
1960  for ac_arg
1961  do
1962    case $ac_arg in
1963    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1964    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1965    | -silent | --silent | --silen | --sile | --sil)
1966      continue ;;
1967    *\'*)
1968      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1969    esac
1970    case $ac_pass in
1971    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1972    2)
1973      as_fn_append ac_configure_args1 " '$ac_arg'"
1974      if test $ac_must_keep_next = true; then
1975	ac_must_keep_next=false # Got value, back to normal.
1976      else
1977	case $ac_arg in
1978	  *=* | --config-cache | -C | -disable-* | --disable-* \
1979	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1980	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1981	  | -with-* | --with-* | -without-* | --without-* | --x)
1982	    case "$ac_configure_args0 " in
1983	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1984	    esac
1985	    ;;
1986	  -* ) ac_must_keep_next=true ;;
1987	esac
1988      fi
1989      as_fn_append ac_configure_args " '$ac_arg'"
1990      ;;
1991    esac
1992  done
1993done
1994{ ac_configure_args0=; unset ac_configure_args0;}
1995{ ac_configure_args1=; unset ac_configure_args1;}
1996
1997# When interrupted or exit'd, cleanup temporary files, and complete
1998# config.log.  We remove comments because anyway the quotes in there
1999# would cause problems or look ugly.
2000# WARNING: Use '\'' to represent an apostrophe within the trap.
2001# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2002trap 'exit_status=$?
2003  # Sanitize IFS.
2004  IFS=" ""	$as_nl"
2005  # Save into config.log some information that might help in debugging.
2006  {
2007    echo
2008
2009    printf "%s\n" "## ---------------- ##
2010## Cache variables. ##
2011## ---------------- ##"
2012    echo
2013    # The following way of writing the cache mishandles newlines in values,
2014(
2015  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2016    eval ac_val=\$$ac_var
2017    case $ac_val in #(
2018    *${as_nl}*)
2019      case $ac_var in #(
2020      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2021printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2022      esac
2023      case $ac_var in #(
2024      _ | IFS | as_nl) ;; #(
2025      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2026      *) { eval $ac_var=; unset $ac_var;} ;;
2027      esac ;;
2028    esac
2029  done
2030  (set) 2>&1 |
2031    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2032    *${as_nl}ac_space=\ *)
2033      sed -n \
2034	"s/'\''/'\''\\\\'\'''\''/g;
2035	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2036      ;; #(
2037    *)
2038      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2039      ;;
2040    esac |
2041    sort
2042)
2043    echo
2044
2045    printf "%s\n" "## ----------------- ##
2046## Output variables. ##
2047## ----------------- ##"
2048    echo
2049    for ac_var in $ac_subst_vars
2050    do
2051      eval ac_val=\$$ac_var
2052      case $ac_val in
2053      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2054      esac
2055      printf "%s\n" "$ac_var='\''$ac_val'\''"
2056    done | sort
2057    echo
2058
2059    if test -n "$ac_subst_files"; then
2060      printf "%s\n" "## ------------------- ##
2061## File substitutions. ##
2062## ------------------- ##"
2063      echo
2064      for ac_var in $ac_subst_files
2065      do
2066	eval ac_val=\$$ac_var
2067	case $ac_val in
2068	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2069	esac
2070	printf "%s\n" "$ac_var='\''$ac_val'\''"
2071      done | sort
2072      echo
2073    fi
2074
2075    if test -s confdefs.h; then
2076      printf "%s\n" "## ----------- ##
2077## confdefs.h. ##
2078## ----------- ##"
2079      echo
2080      cat confdefs.h
2081      echo
2082    fi
2083    test "$ac_signal" != 0 &&
2084      printf "%s\n" "$as_me: caught signal $ac_signal"
2085    printf "%s\n" "$as_me: exit $exit_status"
2086  } >&5
2087  rm -f core *.core core.conftest.* &&
2088    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2089    exit $exit_status
2090' 0
2091for ac_signal in 1 2 13 15; do
2092  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2093done
2094ac_signal=0
2095
2096# confdefs.h avoids OS command line length limits that DEFS can exceed.
2097rm -f -r conftest* confdefs.h
2098
2099printf "%s\n" "/* confdefs.h */" > confdefs.h
2100
2101# Predefined preprocessor variables.
2102
2103printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2104
2105printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2106
2107printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2108
2109printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2110
2111printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2112
2113printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2114
2115
2116# Let the site file select an alternate cache file if it wants to.
2117# Prefer an explicitly selected file to automatically selected ones.
2118if test -n "$CONFIG_SITE"; then
2119  ac_site_files="$CONFIG_SITE"
2120elif test "x$prefix" != xNONE; then
2121  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2122else
2123  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2124fi
2125
2126for ac_site_file in $ac_site_files
2127do
2128  case $ac_site_file in #(
2129  */*) :
2130     ;; #(
2131  *) :
2132    ac_site_file=./$ac_site_file ;;
2133esac
2134  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2135    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2136printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2137    sed 's/^/| /' "$ac_site_file" >&5
2138    . "$ac_site_file" \
2139      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2140printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2141as_fn_error $? "failed to load site script $ac_site_file
2142See \`config.log' for more details" "$LINENO" 5; }
2143  fi
2144done
2145
2146if test -r "$cache_file"; then
2147  # Some versions of bash will fail to source /dev/null (special files
2148  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2149  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2150    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2151printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2152    case $cache_file in
2153      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2154      *)                      . "./$cache_file";;
2155    esac
2156  fi
2157else
2158  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2159printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2160  >$cache_file
2161fi
2162
2163# Test code for whether the C compiler supports C89 (global declarations)
2164ac_c_conftest_c89_globals='
2165/* Does the compiler advertise C89 conformance?
2166   Do not test the value of __STDC__, because some compilers set it to 0
2167   while being otherwise adequately conformant. */
2168#if !defined __STDC__
2169# error "Compiler does not advertise C89 conformance"
2170#endif
2171
2172#include <stddef.h>
2173#include <stdarg.h>
2174struct stat;
2175/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2176struct buf { int x; };
2177struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2178static char *e (p, i)
2179     char **p;
2180     int i;
2181{
2182  return p[i];
2183}
2184static char *f (char * (*g) (char **, int), char **p, ...)
2185{
2186  char *s;
2187  va_list v;
2188  va_start (v,p);
2189  s = g (p, va_arg (v,int));
2190  va_end (v);
2191  return s;
2192}
2193
2194/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2195   function prototypes and stuff, but not \xHH hex character constants.
2196   These do not provoke an error unfortunately, instead are silently treated
2197   as an "x".  The following induces an error, until -std is added to get
2198   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2199   array size at least.  It is necessary to write \x00 == 0 to get something
2200   that is true only with -std.  */
2201int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2202
2203/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2204   inside strings and character constants.  */
2205#define FOO(x) '\''x'\''
2206int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2207
2208int test (int i, double x);
2209struct s1 {int (*f) (int a);};
2210struct s2 {int (*f) (double a);};
2211int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2212               int, int);'
2213
2214# Test code for whether the C compiler supports C89 (body of main).
2215ac_c_conftest_c89_main='
2216ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2217'
2218
2219# Test code for whether the C compiler supports C99 (global declarations)
2220ac_c_conftest_c99_globals='
2221// Does the compiler advertise C99 conformance?
2222#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2223# error "Compiler does not advertise C99 conformance"
2224#endif
2225
2226#include <stdbool.h>
2227extern int puts (const char *);
2228extern int printf (const char *, ...);
2229extern int dprintf (int, const char *, ...);
2230extern void *malloc (size_t);
2231
2232// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2233// dprintf is used instead of fprintf to avoid needing to declare
2234// FILE and stderr.
2235#define debug(...) dprintf (2, __VA_ARGS__)
2236#define showlist(...) puts (#__VA_ARGS__)
2237#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2238static void
2239test_varargs_macros (void)
2240{
2241  int x = 1234;
2242  int y = 5678;
2243  debug ("Flag");
2244  debug ("X = %d\n", x);
2245  showlist (The first, second, and third items.);
2246  report (x>y, "x is %d but y is %d", x, y);
2247}
2248
2249// Check long long types.
2250#define BIG64 18446744073709551615ull
2251#define BIG32 4294967295ul
2252#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2253#if !BIG_OK
2254  #error "your preprocessor is broken"
2255#endif
2256#if BIG_OK
2257#else
2258  #error "your preprocessor is broken"
2259#endif
2260static long long int bignum = -9223372036854775807LL;
2261static unsigned long long int ubignum = BIG64;
2262
2263struct incomplete_array
2264{
2265  int datasize;
2266  double data[];
2267};
2268
2269struct named_init {
2270  int number;
2271  const wchar_t *name;
2272  double average;
2273};
2274
2275typedef const char *ccp;
2276
2277static inline int
2278test_restrict (ccp restrict text)
2279{
2280  // See if C++-style comments work.
2281  // Iterate through items via the restricted pointer.
2282  // Also check for declarations in for loops.
2283  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2284    continue;
2285  return 0;
2286}
2287
2288// Check varargs and va_copy.
2289static bool
2290test_varargs (const char *format, ...)
2291{
2292  va_list args;
2293  va_start (args, format);
2294  va_list args_copy;
2295  va_copy (args_copy, args);
2296
2297  const char *str = "";
2298  int number = 0;
2299  float fnumber = 0;
2300
2301  while (*format)
2302    {
2303      switch (*format++)
2304	{
2305	case '\''s'\'': // string
2306	  str = va_arg (args_copy, const char *);
2307	  break;
2308	case '\''d'\'': // int
2309	  number = va_arg (args_copy, int);
2310	  break;
2311	case '\''f'\'': // float
2312	  fnumber = va_arg (args_copy, double);
2313	  break;
2314	default:
2315	  break;
2316	}
2317    }
2318  va_end (args_copy);
2319  va_end (args);
2320
2321  return *str && number && fnumber;
2322}
2323'
2324
2325# Test code for whether the C compiler supports C99 (body of main).
2326ac_c_conftest_c99_main='
2327  // Check bool.
2328  _Bool success = false;
2329  success |= (argc != 0);
2330
2331  // Check restrict.
2332  if (test_restrict ("String literal") == 0)
2333    success = true;
2334  char *restrict newvar = "Another string";
2335
2336  // Check varargs.
2337  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2338  test_varargs_macros ();
2339
2340  // Check flexible array members.
2341  struct incomplete_array *ia =
2342    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2343  ia->datasize = 10;
2344  for (int i = 0; i < ia->datasize; ++i)
2345    ia->data[i] = i * 1.234;
2346
2347  // Check named initializers.
2348  struct named_init ni = {
2349    .number = 34,
2350    .name = L"Test wide string",
2351    .average = 543.34343,
2352  };
2353
2354  ni.number = 58;
2355
2356  int dynamic_array[ni.number];
2357  dynamic_array[0] = argv[0][0];
2358  dynamic_array[ni.number - 1] = 543;
2359
2360  // work around unused variable warnings
2361  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2362	 || dynamic_array[ni.number - 1] != 543);
2363'
2364
2365# Test code for whether the C compiler supports C11 (global declarations)
2366ac_c_conftest_c11_globals='
2367// Does the compiler advertise C11 conformance?
2368#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2369# error "Compiler does not advertise C11 conformance"
2370#endif
2371
2372// Check _Alignas.
2373char _Alignas (double) aligned_as_double;
2374char _Alignas (0) no_special_alignment;
2375extern char aligned_as_int;
2376char _Alignas (0) _Alignas (int) aligned_as_int;
2377
2378// Check _Alignof.
2379enum
2380{
2381  int_alignment = _Alignof (int),
2382  int_array_alignment = _Alignof (int[100]),
2383  char_alignment = _Alignof (char)
2384};
2385_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2386
2387// Check _Noreturn.
2388int _Noreturn does_not_return (void) { for (;;) continue; }
2389
2390// Check _Static_assert.
2391struct test_static_assert
2392{
2393  int x;
2394  _Static_assert (sizeof (int) <= sizeof (long int),
2395                  "_Static_assert does not work in struct");
2396  long int y;
2397};
2398
2399// Check UTF-8 literals.
2400#define u8 syntax error!
2401char const utf8_literal[] = u8"happens to be ASCII" "another string";
2402
2403// Check duplicate typedefs.
2404typedef long *long_ptr;
2405typedef long int *long_ptr;
2406typedef long_ptr long_ptr;
2407
2408// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2409struct anonymous
2410{
2411  union {
2412    struct { int i; int j; };
2413    struct { int k; long int l; } w;
2414  };
2415  int m;
2416} v1;
2417'
2418
2419# Test code for whether the C compiler supports C11 (body of main).
2420ac_c_conftest_c11_main='
2421  _Static_assert ((offsetof (struct anonymous, i)
2422		   == offsetof (struct anonymous, w.k)),
2423		  "Anonymous union alignment botch");
2424  v1.i = 2;
2425  v1.w.k = 5;
2426  ok |= v1.i != 5;
2427'
2428
2429# Test code for whether the C compiler supports C11 (complete).
2430ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2431${ac_c_conftest_c99_globals}
2432${ac_c_conftest_c11_globals}
2433
2434int
2435main (int argc, char **argv)
2436{
2437  int ok = 0;
2438  ${ac_c_conftest_c89_main}
2439  ${ac_c_conftest_c99_main}
2440  ${ac_c_conftest_c11_main}
2441  return ok;
2442}
2443"
2444
2445# Test code for whether the C compiler supports C99 (complete).
2446ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2447${ac_c_conftest_c99_globals}
2448
2449int
2450main (int argc, char **argv)
2451{
2452  int ok = 0;
2453  ${ac_c_conftest_c89_main}
2454  ${ac_c_conftest_c99_main}
2455  return ok;
2456}
2457"
2458
2459# Test code for whether the C compiler supports C89 (complete).
2460ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2461
2462int
2463main (int argc, char **argv)
2464{
2465  int ok = 0;
2466  ${ac_c_conftest_c89_main}
2467  return ok;
2468}
2469"
2470
2471as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2472as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2473as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2474as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2475as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2476as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2477as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2478as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2479as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2480
2481# Auxiliary files required by this configure script.
2482ac_aux_files="config.guess config.sub compile missing install-sh"
2483
2484# Locations in which to look for auxiliary files.
2485ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2486
2487# Search for a directory containing all of the required auxiliary files,
2488# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2489# If we don't find one directory that contains all the files we need,
2490# we report the set of missing files from the *first* directory in
2491# $ac_aux_dir_candidates and give up.
2492ac_missing_aux_files=""
2493ac_first_candidate=:
2494printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496as_found=false
2497for as_dir in $ac_aux_dir_candidates
2498do
2499  IFS=$as_save_IFS
2500  case $as_dir in #(((
2501    '') as_dir=./ ;;
2502    */) ;;
2503    *) as_dir=$as_dir/ ;;
2504  esac
2505  as_found=:
2506
2507  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2508  ac_aux_dir_found=yes
2509  ac_install_sh=
2510  for ac_aux in $ac_aux_files
2511  do
2512    # As a special case, if "install-sh" is required, that requirement
2513    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2514    # and $ac_install_sh is set appropriately for whichever one is found.
2515    if test x"$ac_aux" = x"install-sh"
2516    then
2517      if test -f "${as_dir}install-sh"; then
2518        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2519        ac_install_sh="${as_dir}install-sh -c"
2520      elif test -f "${as_dir}install.sh"; then
2521        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2522        ac_install_sh="${as_dir}install.sh -c"
2523      elif test -f "${as_dir}shtool"; then
2524        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2525        ac_install_sh="${as_dir}shtool install -c"
2526      else
2527        ac_aux_dir_found=no
2528        if $ac_first_candidate; then
2529          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2530        else
2531          break
2532        fi
2533      fi
2534    else
2535      if test -f "${as_dir}${ac_aux}"; then
2536        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2537      else
2538        ac_aux_dir_found=no
2539        if $ac_first_candidate; then
2540          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2541        else
2542          break
2543        fi
2544      fi
2545    fi
2546  done
2547  if test "$ac_aux_dir_found" = yes; then
2548    ac_aux_dir="$as_dir"
2549    break
2550  fi
2551  ac_first_candidate=false
2552
2553  as_found=false
2554done
2555IFS=$as_save_IFS
2556if $as_found
2557then :
2558
2559else $as_nop
2560  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2561fi
2562
2563
2564# These three variables are undocumented and unsupported,
2565# and are intended to be withdrawn in a future Autoconf release.
2566# They can cause serious problems if a builder's source tree is in a directory
2567# whose full name contains unusual characters.
2568if test -f "${ac_aux_dir}config.guess"; then
2569  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2570fi
2571if test -f "${ac_aux_dir}config.sub"; then
2572  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2573fi
2574if test -f "$ac_aux_dir/configure"; then
2575  ac_configure="$SHELL ${ac_aux_dir}configure"
2576fi
2577
2578# Check that the precious variables saved in the cache have kept the same
2579# value.
2580ac_cache_corrupted=false
2581for ac_var in $ac_precious_vars; do
2582  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2583  eval ac_new_set=\$ac_env_${ac_var}_set
2584  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2585  eval ac_new_val=\$ac_env_${ac_var}_value
2586  case $ac_old_set,$ac_new_set in
2587    set,)
2588      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2589printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2590      ac_cache_corrupted=: ;;
2591    ,set)
2592      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2593printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2594      ac_cache_corrupted=: ;;
2595    ,);;
2596    *)
2597      if test "x$ac_old_val" != "x$ac_new_val"; then
2598	# differences in whitespace do not lead to failure.
2599	ac_old_val_w=`echo x $ac_old_val`
2600	ac_new_val_w=`echo x $ac_new_val`
2601	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2602	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2603printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2604	  ac_cache_corrupted=:
2605	else
2606	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2607printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2608	  eval $ac_var=\$ac_old_val
2609	fi
2610	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2611printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2612	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2613printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2614      fi;;
2615  esac
2616  # Pass precious variables to config.status.
2617  if test "$ac_new_set" = set; then
2618    case $ac_new_val in
2619    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2620    *) ac_arg=$ac_var=$ac_new_val ;;
2621    esac
2622    case " $ac_configure_args " in
2623      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2624      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2625    esac
2626  fi
2627done
2628if $ac_cache_corrupted; then
2629  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2630printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2631  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2632printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2633  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2634	    and start over" "$LINENO" 5
2635fi
2636## -------------------- ##
2637## Main body of script. ##
2638## -------------------- ##
2639
2640ac_ext=c
2641ac_cpp='$CPP $CPPFLAGS'
2642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2644ac_compiler_gnu=$ac_cv_c_compiler_gnu
2645
2646
2647
2648ac_config_headers="$ac_config_headers config.h"
2649
2650
2651# Initialize Automake
2652am__api_version='1.16'
2653
2654
2655
2656  # Find a good install program.  We prefer a C program (faster),
2657# so one script is as good as another.  But avoid the broken or
2658# incompatible versions:
2659# SysV /etc/install, /usr/sbin/install
2660# SunOS /usr/etc/install
2661# IRIX /sbin/install
2662# AIX /bin/install
2663# AmigaOS /C/install, which installs bootblocks on floppy discs
2664# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2665# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2666# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2667# OS/2's system install, which has a completely different semantic
2668# ./install, which can be erroneously created by make from ./install.sh.
2669# Reject install programs that cannot install multiple files.
2670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2671printf %s "checking for a BSD-compatible install... " >&6; }
2672if test -z "$INSTALL"; then
2673if test ${ac_cv_path_install+y}
2674then :
2675  printf %s "(cached) " >&6
2676else $as_nop
2677  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678for as_dir in $PATH
2679do
2680  IFS=$as_save_IFS
2681  case $as_dir in #(((
2682    '') as_dir=./ ;;
2683    */) ;;
2684    *) as_dir=$as_dir/ ;;
2685  esac
2686    # Account for fact that we put trailing slashes in our PATH walk.
2687case $as_dir in #((
2688  ./ | /[cC]/* | \
2689  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2690  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2691  /usr/ucb/* ) ;;
2692  *)
2693    # OSF1 and SCO ODT 3.0 have their own names for install.
2694    # Don't use installbsd from OSF since it installs stuff as root
2695    # by default.
2696    for ac_prog in ginstall scoinst install; do
2697      for ac_exec_ext in '' $ac_executable_extensions; do
2698	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2699	  if test $ac_prog = install &&
2700	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2701	    # AIX install.  It has an incompatible calling convention.
2702	    :
2703	  elif test $ac_prog = install &&
2704	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2705	    # program-specific install script used by HP pwplus--don't use.
2706	    :
2707	  else
2708	    rm -rf conftest.one conftest.two conftest.dir
2709	    echo one > conftest.one
2710	    echo two > conftest.two
2711	    mkdir conftest.dir
2712	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2713	      test -s conftest.one && test -s conftest.two &&
2714	      test -s conftest.dir/conftest.one &&
2715	      test -s conftest.dir/conftest.two
2716	    then
2717	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2718	      break 3
2719	    fi
2720	  fi
2721	fi
2722      done
2723    done
2724    ;;
2725esac
2726
2727  done
2728IFS=$as_save_IFS
2729
2730rm -rf conftest.one conftest.two conftest.dir
2731
2732fi
2733  if test ${ac_cv_path_install+y}; then
2734    INSTALL=$ac_cv_path_install
2735  else
2736    # As a last resort, use the slow shell script.  Don't cache a
2737    # value for INSTALL within a source directory, because that will
2738    # break other packages using the cache if that directory is
2739    # removed, or if the value is a relative name.
2740    INSTALL=$ac_install_sh
2741  fi
2742fi
2743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2744printf "%s\n" "$INSTALL" >&6; }
2745
2746# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2747# It thinks the first close brace ends the variable substitution.
2748test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2749
2750test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2751
2752test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2753
2754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2755printf %s "checking whether build environment is sane... " >&6; }
2756# Reject unsafe characters in $srcdir or the absolute working directory
2757# name.  Accept space and tab only in the latter.
2758am_lf='
2759'
2760case `pwd` in
2761  *[\\\"\#\$\&\'\`$am_lf]*)
2762    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2763esac
2764case $srcdir in
2765  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2766    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2767esac
2768
2769# Do 'set' in a subshell so we don't clobber the current shell's
2770# arguments.  Must try -L first in case configure is actually a
2771# symlink; some systems play weird games with the mod time of symlinks
2772# (eg FreeBSD returns the mod time of the symlink's containing
2773# directory).
2774if (
2775   am_has_slept=no
2776   for am_try in 1 2; do
2777     echo "timestamp, slept: $am_has_slept" > conftest.file
2778     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2779     if test "$*" = "X"; then
2780	# -L didn't work.
2781	set X `ls -t "$srcdir/configure" conftest.file`
2782     fi
2783     if test "$*" != "X $srcdir/configure conftest.file" \
2784	&& test "$*" != "X conftest.file $srcdir/configure"; then
2785
2786	# If neither matched, then we have a broken ls.  This can happen
2787	# if, for instance, CONFIG_SHELL is bash and it inherits a
2788	# broken ls alias from the environment.  This has actually
2789	# happened.  Such a system could not be considered "sane".
2790	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2791  alias in your environment" "$LINENO" 5
2792     fi
2793     if test "$2" = conftest.file || test $am_try -eq 2; then
2794       break
2795     fi
2796     # Just in case.
2797     sleep 1
2798     am_has_slept=yes
2799   done
2800   test "$2" = conftest.file
2801   )
2802then
2803   # Ok.
2804   :
2805else
2806   as_fn_error $? "newly created file is older than distributed files!
2807Check your system clock" "$LINENO" 5
2808fi
2809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2810printf "%s\n" "yes" >&6; }
2811# If we didn't sleep, we still need to ensure time stamps of config.status and
2812# generated files are strictly newer.
2813am_sleep_pid=
2814if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2815  ( sleep 1 ) &
2816  am_sleep_pid=$!
2817fi
2818
2819rm -f conftest.file
2820
2821test "$program_prefix" != NONE &&
2822  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2823# Use a double $ so make ignores it.
2824test "$program_suffix" != NONE &&
2825  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2826# Double any \ or $.
2827# By default was `s,x,x', remove it if useless.
2828ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2829program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2830
2831
2832# Expand $ac_aux_dir to an absolute path.
2833am_aux_dir=`cd "$ac_aux_dir" && pwd`
2834
2835
2836  if test x"${MISSING+set}" != xset; then
2837  MISSING="\${SHELL} '$am_aux_dir/missing'"
2838fi
2839# Use eval to expand $SHELL
2840if eval "$MISSING --is-lightweight"; then
2841  am_missing_run="$MISSING "
2842else
2843  am_missing_run=
2844  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2845printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2846fi
2847
2848if test x"${install_sh+set}" != xset; then
2849  case $am_aux_dir in
2850  *\ * | *\	*)
2851    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2852  *)
2853    install_sh="\${SHELL} $am_aux_dir/install-sh"
2854  esac
2855fi
2856
2857# Installed binaries are usually stripped using 'strip' when the user
2858# run "make install-strip".  However 'strip' might not be the right
2859# tool to use in cross-compilation environments, therefore Automake
2860# will honor the 'STRIP' environment variable to overrule this program.
2861if test "$cross_compiling" != no; then
2862  if test -n "$ac_tool_prefix"; then
2863  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2864set dummy ${ac_tool_prefix}strip; ac_word=$2
2865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2866printf %s "checking for $ac_word... " >&6; }
2867if test ${ac_cv_prog_STRIP+y}
2868then :
2869  printf %s "(cached) " >&6
2870else $as_nop
2871  if test -n "$STRIP"; then
2872  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2873else
2874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875for as_dir in $PATH
2876do
2877  IFS=$as_save_IFS
2878  case $as_dir in #(((
2879    '') as_dir=./ ;;
2880    */) ;;
2881    *) as_dir=$as_dir/ ;;
2882  esac
2883    for ac_exec_ext in '' $ac_executable_extensions; do
2884  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2885    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2886    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2887    break 2
2888  fi
2889done
2890  done
2891IFS=$as_save_IFS
2892
2893fi
2894fi
2895STRIP=$ac_cv_prog_STRIP
2896if test -n "$STRIP"; then
2897  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2898printf "%s\n" "$STRIP" >&6; }
2899else
2900  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901printf "%s\n" "no" >&6; }
2902fi
2903
2904
2905fi
2906if test -z "$ac_cv_prog_STRIP"; then
2907  ac_ct_STRIP=$STRIP
2908  # Extract the first word of "strip", so it can be a program name with args.
2909set dummy strip; ac_word=$2
2910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911printf %s "checking for $ac_word... " >&6; }
2912if test ${ac_cv_prog_ac_ct_STRIP+y}
2913then :
2914  printf %s "(cached) " >&6
2915else $as_nop
2916  if test -n "$ac_ct_STRIP"; then
2917  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2918else
2919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920for as_dir in $PATH
2921do
2922  IFS=$as_save_IFS
2923  case $as_dir in #(((
2924    '') as_dir=./ ;;
2925    */) ;;
2926    *) as_dir=$as_dir/ ;;
2927  esac
2928    for ac_exec_ext in '' $ac_executable_extensions; do
2929  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2930    ac_cv_prog_ac_ct_STRIP="strip"
2931    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2932    break 2
2933  fi
2934done
2935  done
2936IFS=$as_save_IFS
2937
2938fi
2939fi
2940ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2941if test -n "$ac_ct_STRIP"; then
2942  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2943printf "%s\n" "$ac_ct_STRIP" >&6; }
2944else
2945  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946printf "%s\n" "no" >&6; }
2947fi
2948
2949  if test "x$ac_ct_STRIP" = x; then
2950    STRIP=":"
2951  else
2952    case $cross_compiling:$ac_tool_warned in
2953yes:)
2954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2955printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2956ac_tool_warned=yes ;;
2957esac
2958    STRIP=$ac_ct_STRIP
2959  fi
2960else
2961  STRIP="$ac_cv_prog_STRIP"
2962fi
2963
2964fi
2965INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2966
2967
2968  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2969printf %s "checking for a race-free mkdir -p... " >&6; }
2970if test -z "$MKDIR_P"; then
2971  if test ${ac_cv_path_mkdir+y}
2972then :
2973  printf %s "(cached) " >&6
2974else $as_nop
2975  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2977do
2978  IFS=$as_save_IFS
2979  case $as_dir in #(((
2980    '') as_dir=./ ;;
2981    */) ;;
2982    *) as_dir=$as_dir/ ;;
2983  esac
2984    for ac_prog in mkdir gmkdir; do
2985	 for ac_exec_ext in '' $ac_executable_extensions; do
2986	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2987	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2988	     'mkdir ('*'coreutils) '* | \
2989	     'BusyBox '* | \
2990	     'mkdir (fileutils) '4.1*)
2991	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2992	       break 3;;
2993	   esac
2994	 done
2995       done
2996  done
2997IFS=$as_save_IFS
2998
2999fi
3000
3001  test -d ./--version && rmdir ./--version
3002  if test ${ac_cv_path_mkdir+y}; then
3003    MKDIR_P="$ac_cv_path_mkdir -p"
3004  else
3005    # As a last resort, use the slow shell script.  Don't cache a
3006    # value for MKDIR_P within a source directory, because that will
3007    # break other packages using the cache if that directory is
3008    # removed, or if the value is a relative name.
3009    MKDIR_P="$ac_install_sh -d"
3010  fi
3011fi
3012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3013printf "%s\n" "$MKDIR_P" >&6; }
3014
3015for ac_prog in gawk mawk nawk awk
3016do
3017  # Extract the first word of "$ac_prog", so it can be a program name with args.
3018set dummy $ac_prog; ac_word=$2
3019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020printf %s "checking for $ac_word... " >&6; }
3021if test ${ac_cv_prog_AWK+y}
3022then :
3023  printf %s "(cached) " >&6
3024else $as_nop
3025  if test -n "$AWK"; then
3026  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3027else
3028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029for as_dir in $PATH
3030do
3031  IFS=$as_save_IFS
3032  case $as_dir in #(((
3033    '') as_dir=./ ;;
3034    */) ;;
3035    *) as_dir=$as_dir/ ;;
3036  esac
3037    for ac_exec_ext in '' $ac_executable_extensions; do
3038  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3039    ac_cv_prog_AWK="$ac_prog"
3040    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3041    break 2
3042  fi
3043done
3044  done
3045IFS=$as_save_IFS
3046
3047fi
3048fi
3049AWK=$ac_cv_prog_AWK
3050if test -n "$AWK"; then
3051  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3052printf "%s\n" "$AWK" >&6; }
3053else
3054  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055printf "%s\n" "no" >&6; }
3056fi
3057
3058
3059  test -n "$AWK" && break
3060done
3061
3062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3063printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3064set x ${MAKE-make}
3065ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3066if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3067then :
3068  printf %s "(cached) " >&6
3069else $as_nop
3070  cat >conftest.make <<\_ACEOF
3071SHELL = /bin/sh
3072all:
3073	@echo '@@@%%%=$(MAKE)=@@@%%%'
3074_ACEOF
3075# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3076case `${MAKE-make} -f conftest.make 2>/dev/null` in
3077  *@@@%%%=?*=@@@%%%*)
3078    eval ac_cv_prog_make_${ac_make}_set=yes;;
3079  *)
3080    eval ac_cv_prog_make_${ac_make}_set=no;;
3081esac
3082rm -f conftest.make
3083fi
3084if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3085  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3086printf "%s\n" "yes" >&6; }
3087  SET_MAKE=
3088else
3089  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090printf "%s\n" "no" >&6; }
3091  SET_MAKE="MAKE=${MAKE-make}"
3092fi
3093
3094rm -rf .tst 2>/dev/null
3095mkdir .tst 2>/dev/null
3096if test -d .tst; then
3097  am__leading_dot=.
3098else
3099  am__leading_dot=_
3100fi
3101rmdir .tst 2>/dev/null
3102
3103# Check whether --enable-silent-rules was given.
3104if test ${enable_silent_rules+y}
3105then :
3106  enableval=$enable_silent_rules;
3107fi
3108
3109case $enable_silent_rules in # (((
3110  yes) AM_DEFAULT_VERBOSITY=0;;
3111   no) AM_DEFAULT_VERBOSITY=1;;
3112    *) AM_DEFAULT_VERBOSITY=1;;
3113esac
3114am_make=${MAKE-make}
3115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3116printf %s "checking whether $am_make supports nested variables... " >&6; }
3117if test ${am_cv_make_support_nested_variables+y}
3118then :
3119  printf %s "(cached) " >&6
3120else $as_nop
3121  if printf "%s\n" 'TRUE=$(BAR$(V))
3122BAR0=false
3123BAR1=true
3124V=1
3125am__doit:
3126	@$(TRUE)
3127.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3128  am_cv_make_support_nested_variables=yes
3129else
3130  am_cv_make_support_nested_variables=no
3131fi
3132fi
3133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3134printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3135if test $am_cv_make_support_nested_variables = yes; then
3136    AM_V='$(V)'
3137  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3138else
3139  AM_V=$AM_DEFAULT_VERBOSITY
3140  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3141fi
3142AM_BACKSLASH='\'
3143
3144if test "`cd $srcdir && pwd`" != "`pwd`"; then
3145  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3146  # is not polluted with repeated "-I."
3147  am__isrc=' -I$(srcdir)'
3148  # test to see if srcdir already configured
3149  if test -f $srcdir/config.status; then
3150    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3151  fi
3152fi
3153
3154# test whether we have cygpath
3155if test -z "$CYGPATH_W"; then
3156  if (cygpath --version) >/dev/null 2>/dev/null; then
3157    CYGPATH_W='cygpath -w'
3158  else
3159    CYGPATH_W=echo
3160  fi
3161fi
3162
3163
3164# Define the identity of the package.
3165 PACKAGE='imake'
3166 VERSION='1.0.9'
3167
3168
3169printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3170
3171
3172printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3173
3174# Some tools Automake needs.
3175
3176ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3177
3178
3179AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3180
3181
3182AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3183
3184
3185AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3186
3187
3188MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3189
3190# For better backward compatibility.  To be removed once Automake 1.9.x
3191# dies out for good.  For more background, see:
3192# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3193# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3194mkdir_p='$(MKDIR_P)'
3195
3196# We need awk for the "check" target (and possibly the TAP driver).  The
3197# system "awk" is bad on some platforms.
3198# Always define AMTAR for backward compatibility.  Yes, it's still used
3199# in the wild :-(  We should find a proper way to deprecate it ...
3200AMTAR='$${TAR-tar}'
3201
3202
3203# We'll loop over all known methods to create a tar archive until one works.
3204_am_tools='gnutar  pax cpio none'
3205
3206am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3207
3208
3209
3210
3211
3212# Variables for tags utilities; see am/tags.am
3213if test -z "$CTAGS"; then
3214  CTAGS=ctags
3215fi
3216
3217if test -z "$ETAGS"; then
3218  ETAGS=etags
3219fi
3220
3221if test -z "$CSCOPE"; then
3222  CSCOPE=cscope
3223fi
3224
3225
3226
3227# POSIX will say in a future version that running "rm -f" with no argument
3228# is OK; and we want to be able to make that assumption in our Makefile
3229# recipes.  So use an aggressive probe to check that the usage we want is
3230# actually supported "in the wild" to an acceptable degree.
3231# See automake bug#10828.
3232# To make any issue more visible, cause the running configure to be aborted
3233# by default if the 'rm' program in use doesn't match our expectations; the
3234# user can still override this though.
3235if rm -f && rm -fr && rm -rf; then : OK; else
3236  cat >&2 <<'END'
3237Oops!
3238
3239Your 'rm' program seems unable to run without file operands specified
3240on the command line, even when the '-f' option is present.  This is contrary
3241to the behaviour of most rm programs out there, and not conforming with
3242the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3243
3244Please tell bug-automake@gnu.org about your system, including the value
3245of your $PATH and any error possibly output before this message.  This
3246can help us improve future automake versions.
3247
3248END
3249  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3250    echo 'Configuration will proceed anyway, since you have set the' >&2
3251    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3252    echo >&2
3253  else
3254    cat >&2 <<'END'
3255Aborting the configuration process, to ensure you take notice of the issue.
3256
3257You can download and install GNU coreutils to get an 'rm' implementation
3258that behaves properly: <https://www.gnu.org/software/coreutils/>.
3259
3260If you want to complete the configuration process using your problematic
3261'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3262to "yes", and re-run configure.
3263
3264END
3265    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3266  fi
3267fi
3268
3269
3270# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291DEPDIR="${am__leading_dot}deps"
3292
3293ac_config_commands="$ac_config_commands depfiles"
3294
3295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3296printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3297cat > confinc.mk << 'END'
3298am__doit:
3299	@echo this is the am__doit target >confinc.out
3300.PHONY: am__doit
3301END
3302am__include="#"
3303am__quote=
3304# BSD make does it like this.
3305echo '.include "confinc.mk" # ignored' > confmf.BSD
3306# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3307echo 'include confinc.mk # ignored' > confmf.GNU
3308_am_result=no
3309for s in GNU BSD; do
3310  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3311   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3312   ac_status=$?
3313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314   (exit $ac_status); }
3315  case $?:`cat confinc.out 2>/dev/null` in #(
3316  '0:this is the am__doit target') :
3317    case $s in #(
3318  BSD) :
3319    am__include='.include' am__quote='"' ;; #(
3320  *) :
3321    am__include='include' am__quote='' ;;
3322esac ;; #(
3323  *) :
3324     ;;
3325esac
3326  if test "$am__include" != "#"; then
3327    _am_result="yes ($s style)"
3328    break
3329  fi
3330done
3331rm -f confinc.* confmf.*
3332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3333printf "%s\n" "${_am_result}" >&6; }
3334
3335# Check whether --enable-dependency-tracking was given.
3336if test ${enable_dependency_tracking+y}
3337then :
3338  enableval=$enable_dependency_tracking;
3339fi
3340
3341if test "x$enable_dependency_tracking" != xno; then
3342  am_depcomp="$ac_aux_dir/depcomp"
3343  AMDEPBACKSLASH='\'
3344  am__nodep='_no'
3345fi
3346 if test "x$enable_dependency_tracking" != xno; then
3347  AMDEP_TRUE=
3348  AMDEP_FALSE='#'
3349else
3350  AMDEP_TRUE='#'
3351  AMDEP_FALSE=
3352fi
3353
3354
3355ac_ext=c
3356ac_cpp='$CPP $CPPFLAGS'
3357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3359ac_compiler_gnu=$ac_cv_c_compiler_gnu
3360if test -n "$ac_tool_prefix"; then
3361  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3362set dummy ${ac_tool_prefix}gcc; ac_word=$2
3363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3364printf %s "checking for $ac_word... " >&6; }
3365if test ${ac_cv_prog_CC+y}
3366then :
3367  printf %s "(cached) " >&6
3368else $as_nop
3369  if test -n "$CC"; then
3370  ac_cv_prog_CC="$CC" # Let the user override the test.
3371else
3372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373for as_dir in $PATH
3374do
3375  IFS=$as_save_IFS
3376  case $as_dir in #(((
3377    '') as_dir=./ ;;
3378    */) ;;
3379    *) as_dir=$as_dir/ ;;
3380  esac
3381    for ac_exec_ext in '' $ac_executable_extensions; do
3382  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3383    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3384    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3385    break 2
3386  fi
3387done
3388  done
3389IFS=$as_save_IFS
3390
3391fi
3392fi
3393CC=$ac_cv_prog_CC
3394if test -n "$CC"; then
3395  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3396printf "%s\n" "$CC" >&6; }
3397else
3398  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399printf "%s\n" "no" >&6; }
3400fi
3401
3402
3403fi
3404if test -z "$ac_cv_prog_CC"; then
3405  ac_ct_CC=$CC
3406  # Extract the first word of "gcc", so it can be a program name with args.
3407set dummy gcc; ac_word=$2
3408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3409printf %s "checking for $ac_word... " >&6; }
3410if test ${ac_cv_prog_ac_ct_CC+y}
3411then :
3412  printf %s "(cached) " >&6
3413else $as_nop
3414  if test -n "$ac_ct_CC"; then
3415  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3416else
3417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418for as_dir in $PATH
3419do
3420  IFS=$as_save_IFS
3421  case $as_dir in #(((
3422    '') as_dir=./ ;;
3423    */) ;;
3424    *) as_dir=$as_dir/ ;;
3425  esac
3426    for ac_exec_ext in '' $ac_executable_extensions; do
3427  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3428    ac_cv_prog_ac_ct_CC="gcc"
3429    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3430    break 2
3431  fi
3432done
3433  done
3434IFS=$as_save_IFS
3435
3436fi
3437fi
3438ac_ct_CC=$ac_cv_prog_ac_ct_CC
3439if test -n "$ac_ct_CC"; then
3440  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3441printf "%s\n" "$ac_ct_CC" >&6; }
3442else
3443  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444printf "%s\n" "no" >&6; }
3445fi
3446
3447  if test "x$ac_ct_CC" = x; then
3448    CC=""
3449  else
3450    case $cross_compiling:$ac_tool_warned in
3451yes:)
3452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3453printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3454ac_tool_warned=yes ;;
3455esac
3456    CC=$ac_ct_CC
3457  fi
3458else
3459  CC="$ac_cv_prog_CC"
3460fi
3461
3462if test -z "$CC"; then
3463          if test -n "$ac_tool_prefix"; then
3464    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3465set dummy ${ac_tool_prefix}cc; ac_word=$2
3466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3467printf %s "checking for $ac_word... " >&6; }
3468if test ${ac_cv_prog_CC+y}
3469then :
3470  printf %s "(cached) " >&6
3471else $as_nop
3472  if test -n "$CC"; then
3473  ac_cv_prog_CC="$CC" # Let the user override the test.
3474else
3475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476for as_dir in $PATH
3477do
3478  IFS=$as_save_IFS
3479  case $as_dir in #(((
3480    '') as_dir=./ ;;
3481    */) ;;
3482    *) as_dir=$as_dir/ ;;
3483  esac
3484    for ac_exec_ext in '' $ac_executable_extensions; do
3485  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3486    ac_cv_prog_CC="${ac_tool_prefix}cc"
3487    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3488    break 2
3489  fi
3490done
3491  done
3492IFS=$as_save_IFS
3493
3494fi
3495fi
3496CC=$ac_cv_prog_CC
3497if test -n "$CC"; then
3498  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3499printf "%s\n" "$CC" >&6; }
3500else
3501  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502printf "%s\n" "no" >&6; }
3503fi
3504
3505
3506  fi
3507fi
3508if test -z "$CC"; then
3509  # Extract the first word of "cc", so it can be a program name with args.
3510set dummy cc; ac_word=$2
3511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3512printf %s "checking for $ac_word... " >&6; }
3513if test ${ac_cv_prog_CC+y}
3514then :
3515  printf %s "(cached) " >&6
3516else $as_nop
3517  if test -n "$CC"; then
3518  ac_cv_prog_CC="$CC" # Let the user override the test.
3519else
3520  ac_prog_rejected=no
3521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522for as_dir in $PATH
3523do
3524  IFS=$as_save_IFS
3525  case $as_dir in #(((
3526    '') as_dir=./ ;;
3527    */) ;;
3528    *) as_dir=$as_dir/ ;;
3529  esac
3530    for ac_exec_ext in '' $ac_executable_extensions; do
3531  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3532    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3533       ac_prog_rejected=yes
3534       continue
3535     fi
3536    ac_cv_prog_CC="cc"
3537    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3538    break 2
3539  fi
3540done
3541  done
3542IFS=$as_save_IFS
3543
3544if test $ac_prog_rejected = yes; then
3545  # We found a bogon in the path, so make sure we never use it.
3546  set dummy $ac_cv_prog_CC
3547  shift
3548  if test $# != 0; then
3549    # We chose a different compiler from the bogus one.
3550    # However, it has the same basename, so the bogon will be chosen
3551    # first if we set CC to just the basename; use the full file name.
3552    shift
3553    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3554  fi
3555fi
3556fi
3557fi
3558CC=$ac_cv_prog_CC
3559if test -n "$CC"; then
3560  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3561printf "%s\n" "$CC" >&6; }
3562else
3563  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564printf "%s\n" "no" >&6; }
3565fi
3566
3567
3568fi
3569if test -z "$CC"; then
3570  if test -n "$ac_tool_prefix"; then
3571  for ac_prog in cl.exe
3572  do
3573    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3574set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3576printf %s "checking for $ac_word... " >&6; }
3577if test ${ac_cv_prog_CC+y}
3578then :
3579  printf %s "(cached) " >&6
3580else $as_nop
3581  if test -n "$CC"; then
3582  ac_cv_prog_CC="$CC" # Let the user override the test.
3583else
3584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585for as_dir in $PATH
3586do
3587  IFS=$as_save_IFS
3588  case $as_dir in #(((
3589    '') as_dir=./ ;;
3590    */) ;;
3591    *) as_dir=$as_dir/ ;;
3592  esac
3593    for ac_exec_ext in '' $ac_executable_extensions; do
3594  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3595    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3596    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3597    break 2
3598  fi
3599done
3600  done
3601IFS=$as_save_IFS
3602
3603fi
3604fi
3605CC=$ac_cv_prog_CC
3606if test -n "$CC"; then
3607  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3608printf "%s\n" "$CC" >&6; }
3609else
3610  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3611printf "%s\n" "no" >&6; }
3612fi
3613
3614
3615    test -n "$CC" && break
3616  done
3617fi
3618if test -z "$CC"; then
3619  ac_ct_CC=$CC
3620  for ac_prog in cl.exe
3621do
3622  # Extract the first word of "$ac_prog", so it can be a program name with args.
3623set dummy $ac_prog; ac_word=$2
3624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3625printf %s "checking for $ac_word... " >&6; }
3626if test ${ac_cv_prog_ac_ct_CC+y}
3627then :
3628  printf %s "(cached) " >&6
3629else $as_nop
3630  if test -n "$ac_ct_CC"; then
3631  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3632else
3633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634for as_dir in $PATH
3635do
3636  IFS=$as_save_IFS
3637  case $as_dir in #(((
3638    '') as_dir=./ ;;
3639    */) ;;
3640    *) as_dir=$as_dir/ ;;
3641  esac
3642    for ac_exec_ext in '' $ac_executable_extensions; do
3643  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3644    ac_cv_prog_ac_ct_CC="$ac_prog"
3645    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3646    break 2
3647  fi
3648done
3649  done
3650IFS=$as_save_IFS
3651
3652fi
3653fi
3654ac_ct_CC=$ac_cv_prog_ac_ct_CC
3655if test -n "$ac_ct_CC"; then
3656  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3657printf "%s\n" "$ac_ct_CC" >&6; }
3658else
3659  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660printf "%s\n" "no" >&6; }
3661fi
3662
3663
3664  test -n "$ac_ct_CC" && break
3665done
3666
3667  if test "x$ac_ct_CC" = x; then
3668    CC=""
3669  else
3670    case $cross_compiling:$ac_tool_warned in
3671yes:)
3672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3673printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3674ac_tool_warned=yes ;;
3675esac
3676    CC=$ac_ct_CC
3677  fi
3678fi
3679
3680fi
3681if test -z "$CC"; then
3682  if test -n "$ac_tool_prefix"; then
3683  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3684set dummy ${ac_tool_prefix}clang; ac_word=$2
3685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3686printf %s "checking for $ac_word... " >&6; }
3687if test ${ac_cv_prog_CC+y}
3688then :
3689  printf %s "(cached) " >&6
3690else $as_nop
3691  if test -n "$CC"; then
3692  ac_cv_prog_CC="$CC" # Let the user override the test.
3693else
3694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695for as_dir in $PATH
3696do
3697  IFS=$as_save_IFS
3698  case $as_dir in #(((
3699    '') as_dir=./ ;;
3700    */) ;;
3701    *) as_dir=$as_dir/ ;;
3702  esac
3703    for ac_exec_ext in '' $ac_executable_extensions; do
3704  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3705    ac_cv_prog_CC="${ac_tool_prefix}clang"
3706    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3707    break 2
3708  fi
3709done
3710  done
3711IFS=$as_save_IFS
3712
3713fi
3714fi
3715CC=$ac_cv_prog_CC
3716if test -n "$CC"; then
3717  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3718printf "%s\n" "$CC" >&6; }
3719else
3720  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721printf "%s\n" "no" >&6; }
3722fi
3723
3724
3725fi
3726if test -z "$ac_cv_prog_CC"; then
3727  ac_ct_CC=$CC
3728  # Extract the first word of "clang", so it can be a program name with args.
3729set dummy clang; ac_word=$2
3730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3731printf %s "checking for $ac_word... " >&6; }
3732if test ${ac_cv_prog_ac_ct_CC+y}
3733then :
3734  printf %s "(cached) " >&6
3735else $as_nop
3736  if test -n "$ac_ct_CC"; then
3737  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3738else
3739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740for as_dir in $PATH
3741do
3742  IFS=$as_save_IFS
3743  case $as_dir in #(((
3744    '') as_dir=./ ;;
3745    */) ;;
3746    *) as_dir=$as_dir/ ;;
3747  esac
3748    for ac_exec_ext in '' $ac_executable_extensions; do
3749  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3750    ac_cv_prog_ac_ct_CC="clang"
3751    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3752    break 2
3753  fi
3754done
3755  done
3756IFS=$as_save_IFS
3757
3758fi
3759fi
3760ac_ct_CC=$ac_cv_prog_ac_ct_CC
3761if test -n "$ac_ct_CC"; then
3762  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3763printf "%s\n" "$ac_ct_CC" >&6; }
3764else
3765  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3766printf "%s\n" "no" >&6; }
3767fi
3768
3769  if test "x$ac_ct_CC" = x; then
3770    CC=""
3771  else
3772    case $cross_compiling:$ac_tool_warned in
3773yes:)
3774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3775printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3776ac_tool_warned=yes ;;
3777esac
3778    CC=$ac_ct_CC
3779  fi
3780else
3781  CC="$ac_cv_prog_CC"
3782fi
3783
3784fi
3785
3786
3787test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3789as_fn_error $? "no acceptable C compiler found in \$PATH
3790See \`config.log' for more details" "$LINENO" 5; }
3791
3792# Provide some information about the compiler.
3793printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3794set X $ac_compile
3795ac_compiler=$2
3796for ac_option in --version -v -V -qversion -version; do
3797  { { ac_try="$ac_compiler $ac_option >&5"
3798case "(($ac_try" in
3799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800  *) ac_try_echo=$ac_try;;
3801esac
3802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803printf "%s\n" "$ac_try_echo"; } >&5
3804  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3805  ac_status=$?
3806  if test -s conftest.err; then
3807    sed '10a\
3808... rest of stderr output deleted ...
3809         10q' conftest.err >conftest.er1
3810    cat conftest.er1 >&5
3811  fi
3812  rm -f conftest.er1 conftest.err
3813  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3814  test $ac_status = 0; }
3815done
3816
3817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818/* end confdefs.h.  */
3819
3820int
3821main (void)
3822{
3823
3824  ;
3825  return 0;
3826}
3827_ACEOF
3828ac_clean_files_save=$ac_clean_files
3829ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3830# Try to create an executable without -o first, disregard a.out.
3831# It will help us diagnose broken compilers, and finding out an intuition
3832# of exeext.
3833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3834printf %s "checking whether the C compiler works... " >&6; }
3835ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3836
3837# The possible output files:
3838ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3839
3840ac_rmfiles=
3841for ac_file in $ac_files
3842do
3843  case $ac_file in
3844    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3845    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3846  esac
3847done
3848rm -f $ac_rmfiles
3849
3850if { { ac_try="$ac_link_default"
3851case "(($ac_try" in
3852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853  *) ac_try_echo=$ac_try;;
3854esac
3855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856printf "%s\n" "$ac_try_echo"; } >&5
3857  (eval "$ac_link_default") 2>&5
3858  ac_status=$?
3859  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860  test $ac_status = 0; }
3861then :
3862  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3863# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3864# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3865# so that the user can short-circuit this test for compilers unknown to
3866# Autoconf.
3867for ac_file in $ac_files ''
3868do
3869  test -f "$ac_file" || continue
3870  case $ac_file in
3871    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3872	;;
3873    [ab].out )
3874	# We found the default executable, but exeext='' is most
3875	# certainly right.
3876	break;;
3877    *.* )
3878	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3879	then :; else
3880	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3881	fi
3882	# We set ac_cv_exeext here because the later test for it is not
3883	# safe: cross compilers may not add the suffix if given an `-o'
3884	# argument, so we may need to know it at that point already.
3885	# Even if this section looks crufty: it has the advantage of
3886	# actually working.
3887	break;;
3888    * )
3889	break;;
3890  esac
3891done
3892test "$ac_cv_exeext" = no && ac_cv_exeext=
3893
3894else $as_nop
3895  ac_file=''
3896fi
3897if test -z "$ac_file"
3898then :
3899  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900printf "%s\n" "no" >&6; }
3901printf "%s\n" "$as_me: failed program was:" >&5
3902sed 's/^/| /' conftest.$ac_ext >&5
3903
3904{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3905printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3906as_fn_error 77 "C compiler cannot create executables
3907See \`config.log' for more details" "$LINENO" 5; }
3908else $as_nop
3909  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3910printf "%s\n" "yes" >&6; }
3911fi
3912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3913printf %s "checking for C compiler default output file name... " >&6; }
3914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3915printf "%s\n" "$ac_file" >&6; }
3916ac_exeext=$ac_cv_exeext
3917
3918rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3919ac_clean_files=$ac_clean_files_save
3920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3921printf %s "checking for suffix of executables... " >&6; }
3922if { { ac_try="$ac_link"
3923case "(($ac_try" in
3924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925  *) ac_try_echo=$ac_try;;
3926esac
3927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3928printf "%s\n" "$ac_try_echo"; } >&5
3929  (eval "$ac_link") 2>&5
3930  ac_status=$?
3931  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3932  test $ac_status = 0; }
3933then :
3934  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3935# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3936# work properly (i.e., refer to `conftest.exe'), while it won't with
3937# `rm'.
3938for ac_file in conftest.exe conftest conftest.*; do
3939  test -f "$ac_file" || continue
3940  case $ac_file in
3941    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3942    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3943	  break;;
3944    * ) break;;
3945  esac
3946done
3947else $as_nop
3948  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3949printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3950as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3951See \`config.log' for more details" "$LINENO" 5; }
3952fi
3953rm -f conftest conftest$ac_cv_exeext
3954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3955printf "%s\n" "$ac_cv_exeext" >&6; }
3956
3957rm -f conftest.$ac_ext
3958EXEEXT=$ac_cv_exeext
3959ac_exeext=$EXEEXT
3960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961/* end confdefs.h.  */
3962#include <stdio.h>
3963int
3964main (void)
3965{
3966FILE *f = fopen ("conftest.out", "w");
3967 return ferror (f) || fclose (f) != 0;
3968
3969  ;
3970  return 0;
3971}
3972_ACEOF
3973ac_clean_files="$ac_clean_files conftest.out"
3974# Check that the compiler produces executables we can run.  If not, either
3975# the compiler is broken, or we cross compile.
3976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3977printf %s "checking whether we are cross compiling... " >&6; }
3978if test "$cross_compiling" != yes; then
3979  { { ac_try="$ac_link"
3980case "(($ac_try" in
3981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3982  *) ac_try_echo=$ac_try;;
3983esac
3984eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3985printf "%s\n" "$ac_try_echo"; } >&5
3986  (eval "$ac_link") 2>&5
3987  ac_status=$?
3988  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3989  test $ac_status = 0; }
3990  if { ac_try='./conftest$ac_cv_exeext'
3991  { { case "(($ac_try" in
3992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3993  *) ac_try_echo=$ac_try;;
3994esac
3995eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3996printf "%s\n" "$ac_try_echo"; } >&5
3997  (eval "$ac_try") 2>&5
3998  ac_status=$?
3999  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4000  test $ac_status = 0; }; }; then
4001    cross_compiling=no
4002  else
4003    if test "$cross_compiling" = maybe; then
4004	cross_compiling=yes
4005    else
4006	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4007printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4008as_fn_error 77 "cannot run C compiled programs.
4009If you meant to cross compile, use \`--host'.
4010See \`config.log' for more details" "$LINENO" 5; }
4011    fi
4012  fi
4013fi
4014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4015printf "%s\n" "$cross_compiling" >&6; }
4016
4017rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4018ac_clean_files=$ac_clean_files_save
4019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4020printf %s "checking for suffix of object files... " >&6; }
4021if test ${ac_cv_objext+y}
4022then :
4023  printf %s "(cached) " >&6
4024else $as_nop
4025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026/* end confdefs.h.  */
4027
4028int
4029main (void)
4030{
4031
4032  ;
4033  return 0;
4034}
4035_ACEOF
4036rm -f conftest.o conftest.obj
4037if { { ac_try="$ac_compile"
4038case "(($ac_try" in
4039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040  *) ac_try_echo=$ac_try;;
4041esac
4042eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4043printf "%s\n" "$ac_try_echo"; } >&5
4044  (eval "$ac_compile") 2>&5
4045  ac_status=$?
4046  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4047  test $ac_status = 0; }
4048then :
4049  for ac_file in conftest.o conftest.obj conftest.*; do
4050  test -f "$ac_file" || continue;
4051  case $ac_file in
4052    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4053    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4054       break;;
4055  esac
4056done
4057else $as_nop
4058  printf "%s\n" "$as_me: failed program was:" >&5
4059sed 's/^/| /' conftest.$ac_ext >&5
4060
4061{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4062printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4063as_fn_error $? "cannot compute suffix of object files: cannot compile
4064See \`config.log' for more details" "$LINENO" 5; }
4065fi
4066rm -f conftest.$ac_cv_objext conftest.$ac_ext
4067fi
4068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4069printf "%s\n" "$ac_cv_objext" >&6; }
4070OBJEXT=$ac_cv_objext
4071ac_objext=$OBJEXT
4072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4073printf %s "checking whether the compiler supports GNU C... " >&6; }
4074if test ${ac_cv_c_compiler_gnu+y}
4075then :
4076  printf %s "(cached) " >&6
4077else $as_nop
4078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079/* end confdefs.h.  */
4080
4081int
4082main (void)
4083{
4084#ifndef __GNUC__
4085       choke me
4086#endif
4087
4088  ;
4089  return 0;
4090}
4091_ACEOF
4092if ac_fn_c_try_compile "$LINENO"
4093then :
4094  ac_compiler_gnu=yes
4095else $as_nop
4096  ac_compiler_gnu=no
4097fi
4098rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4099ac_cv_c_compiler_gnu=$ac_compiler_gnu
4100
4101fi
4102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4103printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4104ac_compiler_gnu=$ac_cv_c_compiler_gnu
4105
4106if test $ac_compiler_gnu = yes; then
4107  GCC=yes
4108else
4109  GCC=
4110fi
4111ac_test_CFLAGS=${CFLAGS+y}
4112ac_save_CFLAGS=$CFLAGS
4113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4114printf %s "checking whether $CC accepts -g... " >&6; }
4115if test ${ac_cv_prog_cc_g+y}
4116then :
4117  printf %s "(cached) " >&6
4118else $as_nop
4119  ac_save_c_werror_flag=$ac_c_werror_flag
4120   ac_c_werror_flag=yes
4121   ac_cv_prog_cc_g=no
4122   CFLAGS="-g"
4123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124/* end confdefs.h.  */
4125
4126int
4127main (void)
4128{
4129
4130  ;
4131  return 0;
4132}
4133_ACEOF
4134if ac_fn_c_try_compile "$LINENO"
4135then :
4136  ac_cv_prog_cc_g=yes
4137else $as_nop
4138  CFLAGS=""
4139      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140/* end confdefs.h.  */
4141
4142int
4143main (void)
4144{
4145
4146  ;
4147  return 0;
4148}
4149_ACEOF
4150if ac_fn_c_try_compile "$LINENO"
4151then :
4152
4153else $as_nop
4154  ac_c_werror_flag=$ac_save_c_werror_flag
4155	 CFLAGS="-g"
4156	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157/* end confdefs.h.  */
4158
4159int
4160main (void)
4161{
4162
4163  ;
4164  return 0;
4165}
4166_ACEOF
4167if ac_fn_c_try_compile "$LINENO"
4168then :
4169  ac_cv_prog_cc_g=yes
4170fi
4171rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4172fi
4173rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4174fi
4175rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4176   ac_c_werror_flag=$ac_save_c_werror_flag
4177fi
4178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4179printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4180if test $ac_test_CFLAGS; then
4181  CFLAGS=$ac_save_CFLAGS
4182elif test $ac_cv_prog_cc_g = yes; then
4183  if test "$GCC" = yes; then
4184    CFLAGS="-g -O2"
4185  else
4186    CFLAGS="-g"
4187  fi
4188else
4189  if test "$GCC" = yes; then
4190    CFLAGS="-O2"
4191  else
4192    CFLAGS=
4193  fi
4194fi
4195ac_prog_cc_stdc=no
4196if test x$ac_prog_cc_stdc = xno
4197then :
4198  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4199printf %s "checking for $CC option to enable C11 features... " >&6; }
4200if test ${ac_cv_prog_cc_c11+y}
4201then :
4202  printf %s "(cached) " >&6
4203else $as_nop
4204  ac_cv_prog_cc_c11=no
4205ac_save_CC=$CC
4206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207/* end confdefs.h.  */
4208$ac_c_conftest_c11_program
4209_ACEOF
4210for ac_arg in '' -std=gnu11
4211do
4212  CC="$ac_save_CC $ac_arg"
4213  if ac_fn_c_try_compile "$LINENO"
4214then :
4215  ac_cv_prog_cc_c11=$ac_arg
4216fi
4217rm -f core conftest.err conftest.$ac_objext conftest.beam
4218  test "x$ac_cv_prog_cc_c11" != "xno" && break
4219done
4220rm -f conftest.$ac_ext
4221CC=$ac_save_CC
4222fi
4223
4224if test "x$ac_cv_prog_cc_c11" = xno
4225then :
4226  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4227printf "%s\n" "unsupported" >&6; }
4228else $as_nop
4229  if test "x$ac_cv_prog_cc_c11" = x
4230then :
4231  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4232printf "%s\n" "none needed" >&6; }
4233else $as_nop
4234  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4235printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4236     CC="$CC $ac_cv_prog_cc_c11"
4237fi
4238  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4239  ac_prog_cc_stdc=c11
4240fi
4241fi
4242if test x$ac_prog_cc_stdc = xno
4243then :
4244  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4245printf %s "checking for $CC option to enable C99 features... " >&6; }
4246if test ${ac_cv_prog_cc_c99+y}
4247then :
4248  printf %s "(cached) " >&6
4249else $as_nop
4250  ac_cv_prog_cc_c99=no
4251ac_save_CC=$CC
4252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253/* end confdefs.h.  */
4254$ac_c_conftest_c99_program
4255_ACEOF
4256for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4257do
4258  CC="$ac_save_CC $ac_arg"
4259  if ac_fn_c_try_compile "$LINENO"
4260then :
4261  ac_cv_prog_cc_c99=$ac_arg
4262fi
4263rm -f core conftest.err conftest.$ac_objext conftest.beam
4264  test "x$ac_cv_prog_cc_c99" != "xno" && break
4265done
4266rm -f conftest.$ac_ext
4267CC=$ac_save_CC
4268fi
4269
4270if test "x$ac_cv_prog_cc_c99" = xno
4271then :
4272  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4273printf "%s\n" "unsupported" >&6; }
4274else $as_nop
4275  if test "x$ac_cv_prog_cc_c99" = x
4276then :
4277  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4278printf "%s\n" "none needed" >&6; }
4279else $as_nop
4280  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4281printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4282     CC="$CC $ac_cv_prog_cc_c99"
4283fi
4284  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4285  ac_prog_cc_stdc=c99
4286fi
4287fi
4288if test x$ac_prog_cc_stdc = xno
4289then :
4290  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4291printf %s "checking for $CC option to enable C89 features... " >&6; }
4292if test ${ac_cv_prog_cc_c89+y}
4293then :
4294  printf %s "(cached) " >&6
4295else $as_nop
4296  ac_cv_prog_cc_c89=no
4297ac_save_CC=$CC
4298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299/* end confdefs.h.  */
4300$ac_c_conftest_c89_program
4301_ACEOF
4302for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4303do
4304  CC="$ac_save_CC $ac_arg"
4305  if ac_fn_c_try_compile "$LINENO"
4306then :
4307  ac_cv_prog_cc_c89=$ac_arg
4308fi
4309rm -f core conftest.err conftest.$ac_objext conftest.beam
4310  test "x$ac_cv_prog_cc_c89" != "xno" && break
4311done
4312rm -f conftest.$ac_ext
4313CC=$ac_save_CC
4314fi
4315
4316if test "x$ac_cv_prog_cc_c89" = xno
4317then :
4318  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4319printf "%s\n" "unsupported" >&6; }
4320else $as_nop
4321  if test "x$ac_cv_prog_cc_c89" = x
4322then :
4323  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4324printf "%s\n" "none needed" >&6; }
4325else $as_nop
4326  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4327printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4328     CC="$CC $ac_cv_prog_cc_c89"
4329fi
4330  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4331  ac_prog_cc_stdc=c89
4332fi
4333fi
4334
4335ac_ext=c
4336ac_cpp='$CPP $CPPFLAGS'
4337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4339ac_compiler_gnu=$ac_cv_c_compiler_gnu
4340
4341
4342  ac_ext=c
4343ac_cpp='$CPP $CPPFLAGS'
4344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346ac_compiler_gnu=$ac_cv_c_compiler_gnu
4347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4348printf %s "checking whether $CC understands -c and -o together... " >&6; }
4349if test ${am_cv_prog_cc_c_o+y}
4350then :
4351  printf %s "(cached) " >&6
4352else $as_nop
4353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354/* end confdefs.h.  */
4355
4356int
4357main (void)
4358{
4359
4360  ;
4361  return 0;
4362}
4363_ACEOF
4364  # Make sure it works both with $CC and with simple cc.
4365  # Following AC_PROG_CC_C_O, we do the test twice because some
4366  # compilers refuse to overwrite an existing .o file with -o,
4367  # though they will create one.
4368  am_cv_prog_cc_c_o=yes
4369  for am_i in 1 2; do
4370    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4371   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4372   ac_status=$?
4373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374   (exit $ac_status); } \
4375         && test -f conftest2.$ac_objext; then
4376      : OK
4377    else
4378      am_cv_prog_cc_c_o=no
4379      break
4380    fi
4381  done
4382  rm -f core conftest*
4383  unset am_i
4384fi
4385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4386printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4387if test "$am_cv_prog_cc_c_o" != yes; then
4388   # Losing compiler, so override with the script.
4389   # FIXME: It is wrong to rewrite CC.
4390   # But if we don't then we get into trouble of one sort or another.
4391   # A longer-term fix would be to have automake use am__CC in this case,
4392   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4393   CC="$am_aux_dir/compile $CC"
4394fi
4395ac_ext=c
4396ac_cpp='$CPP $CPPFLAGS'
4397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4399ac_compiler_gnu=$ac_cv_c_compiler_gnu
4400
4401
4402depcc="$CC"   am_compiler_list=
4403
4404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4405printf %s "checking dependency style of $depcc... " >&6; }
4406if test ${am_cv_CC_dependencies_compiler_type+y}
4407then :
4408  printf %s "(cached) " >&6
4409else $as_nop
4410  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4411  # We make a subdir and do the tests there.  Otherwise we can end up
4412  # making bogus files that we don't know about and never remove.  For
4413  # instance it was reported that on HP-UX the gcc test will end up
4414  # making a dummy file named 'D' -- because '-MD' means "put the output
4415  # in D".
4416  rm -rf conftest.dir
4417  mkdir conftest.dir
4418  # Copy depcomp to subdir because otherwise we won't find it if we're
4419  # using a relative directory.
4420  cp "$am_depcomp" conftest.dir
4421  cd conftest.dir
4422  # We will build objects and dependencies in a subdirectory because
4423  # it helps to detect inapplicable dependency modes.  For instance
4424  # both Tru64's cc and ICC support -MD to output dependencies as a
4425  # side effect of compilation, but ICC will put the dependencies in
4426  # the current directory while Tru64 will put them in the object
4427  # directory.
4428  mkdir sub
4429
4430  am_cv_CC_dependencies_compiler_type=none
4431  if test "$am_compiler_list" = ""; then
4432     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4433  fi
4434  am__universal=false
4435  case " $depcc " in #(
4436     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4437     esac
4438
4439  for depmode in $am_compiler_list; do
4440    # Setup a source with many dependencies, because some compilers
4441    # like to wrap large dependency lists on column 80 (with \), and
4442    # we should not choose a depcomp mode which is confused by this.
4443    #
4444    # We need to recreate these files for each test, as the compiler may
4445    # overwrite some of them when testing with obscure command lines.
4446    # This happens at least with the AIX C compiler.
4447    : > sub/conftest.c
4448    for i in 1 2 3 4 5 6; do
4449      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4450      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4451      # Solaris 10 /bin/sh.
4452      echo '/* dummy */' > sub/conftst$i.h
4453    done
4454    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4455
4456    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4457    # mode.  It turns out that the SunPro C++ compiler does not properly
4458    # handle '-M -o', and we need to detect this.  Also, some Intel
4459    # versions had trouble with output in subdirs.
4460    am__obj=sub/conftest.${OBJEXT-o}
4461    am__minus_obj="-o $am__obj"
4462    case $depmode in
4463    gcc)
4464      # This depmode causes a compiler race in universal mode.
4465      test "$am__universal" = false || continue
4466      ;;
4467    nosideeffect)
4468      # After this tag, mechanisms are not by side-effect, so they'll
4469      # only be used when explicitly requested.
4470      if test "x$enable_dependency_tracking" = xyes; then
4471	continue
4472      else
4473	break
4474      fi
4475      ;;
4476    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4477      # This compiler won't grok '-c -o', but also, the minuso test has
4478      # not run yet.  These depmodes are late enough in the game, and
4479      # so weak that their functioning should not be impacted.
4480      am__obj=conftest.${OBJEXT-o}
4481      am__minus_obj=
4482      ;;
4483    none) break ;;
4484    esac
4485    if depmode=$depmode \
4486       source=sub/conftest.c object=$am__obj \
4487       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4488       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4489         >/dev/null 2>conftest.err &&
4490       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4491       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4492       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4493       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4494      # icc doesn't choke on unknown options, it will just issue warnings
4495      # or remarks (even with -Werror).  So we grep stderr for any message
4496      # that says an option was ignored or not supported.
4497      # When given -MP, icc 7.0 and 7.1 complain thusly:
4498      #   icc: Command line warning: ignoring option '-M'; no argument required
4499      # The diagnosis changed in icc 8.0:
4500      #   icc: Command line remark: option '-MP' not supported
4501      if (grep 'ignoring option' conftest.err ||
4502          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4503        am_cv_CC_dependencies_compiler_type=$depmode
4504        break
4505      fi
4506    fi
4507  done
4508
4509  cd ..
4510  rm -rf conftest.dir
4511else
4512  am_cv_CC_dependencies_compiler_type=none
4513fi
4514
4515fi
4516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4517printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4518CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4519
4520 if
4521  test "x$enable_dependency_tracking" != xno \
4522  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4523  am__fastdepCC_TRUE=
4524  am__fastdepCC_FALSE='#'
4525else
4526  am__fastdepCC_TRUE='#'
4527  am__fastdepCC_FALSE=
4528fi
4529
4530
4531
4532
4533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4534printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4535if test ${ac_cv_c_undeclared_builtin_options+y}
4536then :
4537  printf %s "(cached) " >&6
4538else $as_nop
4539  ac_save_CFLAGS=$CFLAGS
4540   ac_cv_c_undeclared_builtin_options='cannot detect'
4541   for ac_arg in '' -fno-builtin; do
4542     CFLAGS="$ac_save_CFLAGS $ac_arg"
4543     # This test program should *not* compile successfully.
4544     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545/* end confdefs.h.  */
4546
4547int
4548main (void)
4549{
4550(void) strchr;
4551  ;
4552  return 0;
4553}
4554_ACEOF
4555if ac_fn_c_try_compile "$LINENO"
4556then :
4557
4558else $as_nop
4559  # This test program should compile successfully.
4560        # No library function is consistently available on
4561        # freestanding implementations, so test against a dummy
4562        # declaration.  Include always-available headers on the
4563        # off chance that they somehow elicit warnings.
4564        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565/* end confdefs.h.  */
4566#include <float.h>
4567#include <limits.h>
4568#include <stdarg.h>
4569#include <stddef.h>
4570extern void ac_decl (int, char *);
4571
4572int
4573main (void)
4574{
4575(void) ac_decl (0, (char *) 0);
4576  (void) ac_decl;
4577
4578  ;
4579  return 0;
4580}
4581_ACEOF
4582if ac_fn_c_try_compile "$LINENO"
4583then :
4584  if test x"$ac_arg" = x
4585then :
4586  ac_cv_c_undeclared_builtin_options='none needed'
4587else $as_nop
4588  ac_cv_c_undeclared_builtin_options=$ac_arg
4589fi
4590          break
4591fi
4592rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4593fi
4594rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4595    done
4596    CFLAGS=$ac_save_CFLAGS
4597
4598fi
4599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4600printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4601  case $ac_cv_c_undeclared_builtin_options in #(
4602  'cannot detect') :
4603    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4604printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4605as_fn_error $? "cannot make $CC report undeclared builtins
4606See \`config.log' for more details" "$LINENO" 5; } ;; #(
4607  'none needed') :
4608    ac_c_undeclared_builtin_options='' ;; #(
4609  *) :
4610    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4611esac
4612
4613ac_header= ac_cache=
4614for ac_item in $ac_header_c_list
4615do
4616  if test $ac_cache; then
4617    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4618    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4619      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4620    fi
4621    ac_header= ac_cache=
4622  elif test $ac_header; then
4623    ac_cache=$ac_item
4624  else
4625    ac_header=$ac_item
4626  fi
4627done
4628
4629
4630
4631
4632
4633
4634
4635
4636if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4637then :
4638
4639printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4640
4641fi
4642
4643
4644
4645
4646ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4647if test "x$ac_cv_have_decl___clang__" = xyes
4648then :
4649  CLANGCC="yes"
4650else $as_nop
4651  CLANGCC="no"
4652fi
4653ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4654if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4655then :
4656  INTELCC="yes"
4657else $as_nop
4658  INTELCC="no"
4659fi
4660ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4661if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4662then :
4663  SUNCC="yes"
4664else $as_nop
4665  SUNCC="no"
4666fi
4667
4668
4669
4670
4671
4672
4673
4674
4675if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4676	if test -n "$ac_tool_prefix"; then
4677  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4678set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4680printf %s "checking for $ac_word... " >&6; }
4681if test ${ac_cv_path_PKG_CONFIG+y}
4682then :
4683  printf %s "(cached) " >&6
4684else $as_nop
4685  case $PKG_CONFIG in
4686  [\\/]* | ?:[\\/]*)
4687  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4688  ;;
4689  *)
4690  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691for as_dir in $PATH
4692do
4693  IFS=$as_save_IFS
4694  case $as_dir in #(((
4695    '') as_dir=./ ;;
4696    */) ;;
4697    *) as_dir=$as_dir/ ;;
4698  esac
4699    for ac_exec_ext in '' $ac_executable_extensions; do
4700  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4701    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4702    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4703    break 2
4704  fi
4705done
4706  done
4707IFS=$as_save_IFS
4708
4709  ;;
4710esac
4711fi
4712PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4713if test -n "$PKG_CONFIG"; then
4714  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4715printf "%s\n" "$PKG_CONFIG" >&6; }
4716else
4717  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4718printf "%s\n" "no" >&6; }
4719fi
4720
4721
4722fi
4723if test -z "$ac_cv_path_PKG_CONFIG"; then
4724  ac_pt_PKG_CONFIG=$PKG_CONFIG
4725  # Extract the first word of "pkg-config", so it can be a program name with args.
4726set dummy pkg-config; ac_word=$2
4727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4728printf %s "checking for $ac_word... " >&6; }
4729if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4730then :
4731  printf %s "(cached) " >&6
4732else $as_nop
4733  case $ac_pt_PKG_CONFIG in
4734  [\\/]* | ?:[\\/]*)
4735  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4736  ;;
4737  *)
4738  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739for as_dir in $PATH
4740do
4741  IFS=$as_save_IFS
4742  case $as_dir in #(((
4743    '') as_dir=./ ;;
4744    */) ;;
4745    *) as_dir=$as_dir/ ;;
4746  esac
4747    for ac_exec_ext in '' $ac_executable_extensions; do
4748  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4749    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4750    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4751    break 2
4752  fi
4753done
4754  done
4755IFS=$as_save_IFS
4756
4757  ;;
4758esac
4759fi
4760ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4761if test -n "$ac_pt_PKG_CONFIG"; then
4762  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4763printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4764else
4765  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766printf "%s\n" "no" >&6; }
4767fi
4768
4769  if test "x$ac_pt_PKG_CONFIG" = x; then
4770    PKG_CONFIG=""
4771  else
4772    case $cross_compiling:$ac_tool_warned in
4773yes:)
4774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4775printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4776ac_tool_warned=yes ;;
4777esac
4778    PKG_CONFIG=$ac_pt_PKG_CONFIG
4779  fi
4780else
4781  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4782fi
4783
4784fi
4785if test -n "$PKG_CONFIG"; then
4786	_pkg_min_version=0.9.0
4787	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4788printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4789	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4790		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4791printf "%s\n" "yes" >&6; }
4792	else
4793		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4794printf "%s\n" "no" >&6; }
4795		PKG_CONFIG=""
4796	fi
4797fi
4798
4799
4800  # Make sure we can run config.sub.
4801$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4802  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4803
4804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4805printf %s "checking build system type... " >&6; }
4806if test ${ac_cv_build+y}
4807then :
4808  printf %s "(cached) " >&6
4809else $as_nop
4810  ac_build_alias=$build_alias
4811test "x$ac_build_alias" = x &&
4812  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4813test "x$ac_build_alias" = x &&
4814  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4815ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4816  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4817
4818fi
4819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4820printf "%s\n" "$ac_cv_build" >&6; }
4821case $ac_cv_build in
4822*-*-*) ;;
4823*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4824esac
4825build=$ac_cv_build
4826ac_save_IFS=$IFS; IFS='-'
4827set x $ac_cv_build
4828shift
4829build_cpu=$1
4830build_vendor=$2
4831shift; shift
4832# Remember, the first character of IFS is used to create $*,
4833# except with old shells:
4834build_os=$*
4835IFS=$ac_save_IFS
4836case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4837
4838
4839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4840printf %s "checking host system type... " >&6; }
4841if test ${ac_cv_host+y}
4842then :
4843  printf %s "(cached) " >&6
4844else $as_nop
4845  if test "x$host_alias" = x; then
4846  ac_cv_host=$ac_cv_build
4847else
4848  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4849    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4850fi
4851
4852fi
4853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4854printf "%s\n" "$ac_cv_host" >&6; }
4855case $ac_cv_host in
4856*-*-*) ;;
4857*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4858esac
4859host=$ac_cv_host
4860ac_save_IFS=$IFS; IFS='-'
4861set x $ac_cv_host
4862shift
4863host_cpu=$1
4864host_vendor=$2
4865shift; shift
4866# Remember, the first character of IFS is used to create $*,
4867# except with old shells:
4868host_os=$*
4869IFS=$ac_save_IFS
4870case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4871
4872
4873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4874printf %s "checking for a sed that does not truncate output... " >&6; }
4875if test ${ac_cv_path_SED+y}
4876then :
4877  printf %s "(cached) " >&6
4878else $as_nop
4879            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4880     for ac_i in 1 2 3 4 5 6 7; do
4881       ac_script="$ac_script$as_nl$ac_script"
4882     done
4883     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4884     { ac_script=; unset ac_script;}
4885     if test -z "$SED"; then
4886  ac_path_SED_found=false
4887  # Loop through the user's path and test for each of PROGNAME-LIST
4888  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889for as_dir in $PATH
4890do
4891  IFS=$as_save_IFS
4892  case $as_dir in #(((
4893    '') as_dir=./ ;;
4894    */) ;;
4895    *) as_dir=$as_dir/ ;;
4896  esac
4897    for ac_prog in sed gsed
4898   do
4899    for ac_exec_ext in '' $ac_executable_extensions; do
4900      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4901      as_fn_executable_p "$ac_path_SED" || continue
4902# Check for GNU ac_path_SED and select it if it is found.
4903  # Check for GNU $ac_path_SED
4904case `"$ac_path_SED" --version 2>&1` in
4905*GNU*)
4906  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4907*)
4908  ac_count=0
4909  printf %s 0123456789 >"conftest.in"
4910  while :
4911  do
4912    cat "conftest.in" "conftest.in" >"conftest.tmp"
4913    mv "conftest.tmp" "conftest.in"
4914    cp "conftest.in" "conftest.nl"
4915    printf "%s\n" '' >> "conftest.nl"
4916    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4917    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4918    as_fn_arith $ac_count + 1 && ac_count=$as_val
4919    if test $ac_count -gt ${ac_path_SED_max-0}; then
4920      # Best one so far, save it but keep looking for a better one
4921      ac_cv_path_SED="$ac_path_SED"
4922      ac_path_SED_max=$ac_count
4923    fi
4924    # 10*(2^10) chars as input seems more than enough
4925    test $ac_count -gt 10 && break
4926  done
4927  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4928esac
4929
4930      $ac_path_SED_found && break 3
4931    done
4932  done
4933  done
4934IFS=$as_save_IFS
4935  if test -z "$ac_cv_path_SED"; then
4936    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4937  fi
4938else
4939  ac_cv_path_SED=$SED
4940fi
4941
4942fi
4943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4944printf "%s\n" "$ac_cv_path_SED" >&6; }
4945 SED="$ac_cv_path_SED"
4946  rm -f conftest.sed
4947
4948
4949
4950
4951
4952
4953# Check whether --enable-selective-werror was given.
4954if test ${enable_selective_werror+y}
4955then :
4956  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4957else $as_nop
4958  SELECTIVE_WERROR=yes
4959fi
4960
4961
4962
4963
4964
4965# -v is too short to test reliably with XORG_TESTSET_CFLAG
4966if test "x$SUNCC" = "xyes"; then
4967    BASE_CFLAGS="-v"
4968else
4969    BASE_CFLAGS=""
4970fi
4971
4972# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986xorg_testset_save_CFLAGS="$CFLAGS"
4987
4988if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4989	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4990	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4991printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4992if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4993then :
4994  printf %s "(cached) " >&6
4995else $as_nop
4996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997/* end confdefs.h.  */
4998int i;
4999_ACEOF
5000if ac_fn_c_try_compile "$LINENO"
5001then :
5002  xorg_cv_cc_flag_unknown_warning_option=yes
5003else $as_nop
5004  xorg_cv_cc_flag_unknown_warning_option=no
5005fi
5006rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5007fi
5008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5009printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5010	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5011	CFLAGS="$xorg_testset_save_CFLAGS"
5012fi
5013
5014if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5015	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5016		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5017	fi
5018	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5019	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5020printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5021if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5022then :
5023  printf %s "(cached) " >&6
5024else $as_nop
5025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5026/* end confdefs.h.  */
5027int i;
5028_ACEOF
5029if ac_fn_c_try_compile "$LINENO"
5030then :
5031  xorg_cv_cc_flag_unused_command_line_argument=yes
5032else $as_nop
5033  xorg_cv_cc_flag_unused_command_line_argument=no
5034fi
5035rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5036fi
5037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5038printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5039	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5040	CFLAGS="$xorg_testset_save_CFLAGS"
5041fi
5042
5043found="no"
5044
5045	if test $found = "no" ; then
5046		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5047			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5048		fi
5049
5050		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5051			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5052		fi
5053
5054		CFLAGS="$CFLAGS -Wall"
5055
5056		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5057printf %s "checking if $CC supports -Wall... " >&6; }
5058		cacheid=xorg_cv_cc_flag__Wall
5059		if eval test \${$cacheid+y}
5060then :
5061  printf %s "(cached) " >&6
5062else $as_nop
5063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064/* end confdefs.h.  */
5065int i;
5066int
5067main (void)
5068{
5069
5070  ;
5071  return 0;
5072}
5073_ACEOF
5074if ac_fn_c_try_link "$LINENO"
5075then :
5076  eval $cacheid=yes
5077else $as_nop
5078  eval $cacheid=no
5079fi
5080rm -f core conftest.err conftest.$ac_objext conftest.beam \
5081    conftest$ac_exeext conftest.$ac_ext
5082fi
5083
5084
5085		CFLAGS="$xorg_testset_save_CFLAGS"
5086
5087		eval supported=\$$cacheid
5088		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5089printf "%s\n" "$supported" >&6; }
5090		if test "$supported" = "yes" ; then
5091			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5092			found="yes"
5093		fi
5094	fi
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110xorg_testset_save_CFLAGS="$CFLAGS"
5111
5112if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5113	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5114	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5115printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5116if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5117then :
5118  printf %s "(cached) " >&6
5119else $as_nop
5120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121/* end confdefs.h.  */
5122int i;
5123_ACEOF
5124if ac_fn_c_try_compile "$LINENO"
5125then :
5126  xorg_cv_cc_flag_unknown_warning_option=yes
5127else $as_nop
5128  xorg_cv_cc_flag_unknown_warning_option=no
5129fi
5130rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5131fi
5132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5133printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5134	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5135	CFLAGS="$xorg_testset_save_CFLAGS"
5136fi
5137
5138if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5139	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5140		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5141	fi
5142	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5143	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5144printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5145if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5146then :
5147  printf %s "(cached) " >&6
5148else $as_nop
5149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150/* end confdefs.h.  */
5151int i;
5152_ACEOF
5153if ac_fn_c_try_compile "$LINENO"
5154then :
5155  xorg_cv_cc_flag_unused_command_line_argument=yes
5156else $as_nop
5157  xorg_cv_cc_flag_unused_command_line_argument=no
5158fi
5159rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5160fi
5161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5162printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5163	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5164	CFLAGS="$xorg_testset_save_CFLAGS"
5165fi
5166
5167found="no"
5168
5169	if test $found = "no" ; then
5170		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5171			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5172		fi
5173
5174		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5175			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5176		fi
5177
5178		CFLAGS="$CFLAGS -Wpointer-arith"
5179
5180		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5181printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5182		cacheid=xorg_cv_cc_flag__Wpointer_arith
5183		if eval test \${$cacheid+y}
5184then :
5185  printf %s "(cached) " >&6
5186else $as_nop
5187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5188/* end confdefs.h.  */
5189int i;
5190int
5191main (void)
5192{
5193
5194  ;
5195  return 0;
5196}
5197_ACEOF
5198if ac_fn_c_try_link "$LINENO"
5199then :
5200  eval $cacheid=yes
5201else $as_nop
5202  eval $cacheid=no
5203fi
5204rm -f core conftest.err conftest.$ac_objext conftest.beam \
5205    conftest$ac_exeext conftest.$ac_ext
5206fi
5207
5208
5209		CFLAGS="$xorg_testset_save_CFLAGS"
5210
5211		eval supported=\$$cacheid
5212		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5213printf "%s\n" "$supported" >&6; }
5214		if test "$supported" = "yes" ; then
5215			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5216			found="yes"
5217		fi
5218	fi
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234xorg_testset_save_CFLAGS="$CFLAGS"
5235
5236if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5237	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5238	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5239printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5240if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5241then :
5242  printf %s "(cached) " >&6
5243else $as_nop
5244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5245/* end confdefs.h.  */
5246int i;
5247_ACEOF
5248if ac_fn_c_try_compile "$LINENO"
5249then :
5250  xorg_cv_cc_flag_unknown_warning_option=yes
5251else $as_nop
5252  xorg_cv_cc_flag_unknown_warning_option=no
5253fi
5254rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5255fi
5256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5257printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5258	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5259	CFLAGS="$xorg_testset_save_CFLAGS"
5260fi
5261
5262if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5263	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5264		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5265	fi
5266	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5267	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5268printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5269if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5270then :
5271  printf %s "(cached) " >&6
5272else $as_nop
5273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274/* end confdefs.h.  */
5275int i;
5276_ACEOF
5277if ac_fn_c_try_compile "$LINENO"
5278then :
5279  xorg_cv_cc_flag_unused_command_line_argument=yes
5280else $as_nop
5281  xorg_cv_cc_flag_unused_command_line_argument=no
5282fi
5283rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5284fi
5285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5286printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5287	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5288	CFLAGS="$xorg_testset_save_CFLAGS"
5289fi
5290
5291found="no"
5292
5293	if test $found = "no" ; then
5294		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5295			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5296		fi
5297
5298		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5299			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5300		fi
5301
5302		CFLAGS="$CFLAGS -Wmissing-declarations"
5303
5304		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5305printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5306		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5307		if eval test \${$cacheid+y}
5308then :
5309  printf %s "(cached) " >&6
5310else $as_nop
5311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312/* end confdefs.h.  */
5313int i;
5314int
5315main (void)
5316{
5317
5318  ;
5319  return 0;
5320}
5321_ACEOF
5322if ac_fn_c_try_link "$LINENO"
5323then :
5324  eval $cacheid=yes
5325else $as_nop
5326  eval $cacheid=no
5327fi
5328rm -f core conftest.err conftest.$ac_objext conftest.beam \
5329    conftest$ac_exeext conftest.$ac_ext
5330fi
5331
5332
5333		CFLAGS="$xorg_testset_save_CFLAGS"
5334
5335		eval supported=\$$cacheid
5336		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5337printf "%s\n" "$supported" >&6; }
5338		if test "$supported" = "yes" ; then
5339			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5340			found="yes"
5341		fi
5342	fi
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358xorg_testset_save_CFLAGS="$CFLAGS"
5359
5360if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5361	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5362	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5363printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5364if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5365then :
5366  printf %s "(cached) " >&6
5367else $as_nop
5368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369/* end confdefs.h.  */
5370int i;
5371_ACEOF
5372if ac_fn_c_try_compile "$LINENO"
5373then :
5374  xorg_cv_cc_flag_unknown_warning_option=yes
5375else $as_nop
5376  xorg_cv_cc_flag_unknown_warning_option=no
5377fi
5378rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5379fi
5380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5381printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5382	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5383	CFLAGS="$xorg_testset_save_CFLAGS"
5384fi
5385
5386if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5387	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5388		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5389	fi
5390	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5391	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5392printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5393if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5394then :
5395  printf %s "(cached) " >&6
5396else $as_nop
5397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398/* end confdefs.h.  */
5399int i;
5400_ACEOF
5401if ac_fn_c_try_compile "$LINENO"
5402then :
5403  xorg_cv_cc_flag_unused_command_line_argument=yes
5404else $as_nop
5405  xorg_cv_cc_flag_unused_command_line_argument=no
5406fi
5407rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5408fi
5409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5410printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5411	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5412	CFLAGS="$xorg_testset_save_CFLAGS"
5413fi
5414
5415found="no"
5416
5417	if test $found = "no" ; then
5418		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5419			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5420		fi
5421
5422		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5423			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5424		fi
5425
5426		CFLAGS="$CFLAGS -Wformat=2"
5427
5428		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5429printf %s "checking if $CC supports -Wformat=2... " >&6; }
5430		cacheid=xorg_cv_cc_flag__Wformat_2
5431		if eval test \${$cacheid+y}
5432then :
5433  printf %s "(cached) " >&6
5434else $as_nop
5435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436/* end confdefs.h.  */
5437int i;
5438int
5439main (void)
5440{
5441
5442  ;
5443  return 0;
5444}
5445_ACEOF
5446if ac_fn_c_try_link "$LINENO"
5447then :
5448  eval $cacheid=yes
5449else $as_nop
5450  eval $cacheid=no
5451fi
5452rm -f core conftest.err conftest.$ac_objext conftest.beam \
5453    conftest$ac_exeext conftest.$ac_ext
5454fi
5455
5456
5457		CFLAGS="$xorg_testset_save_CFLAGS"
5458
5459		eval supported=\$$cacheid
5460		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5461printf "%s\n" "$supported" >&6; }
5462		if test "$supported" = "yes" ; then
5463			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5464			found="yes"
5465		fi
5466	fi
5467
5468	if test $found = "no" ; then
5469		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5470			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5471		fi
5472
5473		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5474			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5475		fi
5476
5477		CFLAGS="$CFLAGS -Wformat"
5478
5479		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5480printf %s "checking if $CC supports -Wformat... " >&6; }
5481		cacheid=xorg_cv_cc_flag__Wformat
5482		if eval test \${$cacheid+y}
5483then :
5484  printf %s "(cached) " >&6
5485else $as_nop
5486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487/* end confdefs.h.  */
5488int i;
5489int
5490main (void)
5491{
5492
5493  ;
5494  return 0;
5495}
5496_ACEOF
5497if ac_fn_c_try_link "$LINENO"
5498then :
5499  eval $cacheid=yes
5500else $as_nop
5501  eval $cacheid=no
5502fi
5503rm -f core conftest.err conftest.$ac_objext conftest.beam \
5504    conftest$ac_exeext conftest.$ac_ext
5505fi
5506
5507
5508		CFLAGS="$xorg_testset_save_CFLAGS"
5509
5510		eval supported=\$$cacheid
5511		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5512printf "%s\n" "$supported" >&6; }
5513		if test "$supported" = "yes" ; then
5514			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5515			found="yes"
5516		fi
5517	fi
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535xorg_testset_save_CFLAGS="$CFLAGS"
5536
5537if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5538	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5539	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5540printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5541if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5542then :
5543  printf %s "(cached) " >&6
5544else $as_nop
5545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546/* end confdefs.h.  */
5547int i;
5548_ACEOF
5549if ac_fn_c_try_compile "$LINENO"
5550then :
5551  xorg_cv_cc_flag_unknown_warning_option=yes
5552else $as_nop
5553  xorg_cv_cc_flag_unknown_warning_option=no
5554fi
5555rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5556fi
5557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5558printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5559	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5560	CFLAGS="$xorg_testset_save_CFLAGS"
5561fi
5562
5563if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5564	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5565		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5566	fi
5567	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5568	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5569printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5570if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5571then :
5572  printf %s "(cached) " >&6
5573else $as_nop
5574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575/* end confdefs.h.  */
5576int i;
5577_ACEOF
5578if ac_fn_c_try_compile "$LINENO"
5579then :
5580  xorg_cv_cc_flag_unused_command_line_argument=yes
5581else $as_nop
5582  xorg_cv_cc_flag_unused_command_line_argument=no
5583fi
5584rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5585fi
5586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5587printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5588	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5589	CFLAGS="$xorg_testset_save_CFLAGS"
5590fi
5591
5592found="no"
5593
5594	if test $found = "no" ; then
5595		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5596			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5597		fi
5598
5599		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5600			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5601		fi
5602
5603		CFLAGS="$CFLAGS -Wstrict-prototypes"
5604
5605		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5606printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5607		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5608		if eval test \${$cacheid+y}
5609then :
5610  printf %s "(cached) " >&6
5611else $as_nop
5612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613/* end confdefs.h.  */
5614int i;
5615int
5616main (void)
5617{
5618
5619  ;
5620  return 0;
5621}
5622_ACEOF
5623if ac_fn_c_try_link "$LINENO"
5624then :
5625  eval $cacheid=yes
5626else $as_nop
5627  eval $cacheid=no
5628fi
5629rm -f core conftest.err conftest.$ac_objext conftest.beam \
5630    conftest$ac_exeext conftest.$ac_ext
5631fi
5632
5633
5634		CFLAGS="$xorg_testset_save_CFLAGS"
5635
5636		eval supported=\$$cacheid
5637		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5638printf "%s\n" "$supported" >&6; }
5639		if test "$supported" = "yes" ; then
5640			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5641			found="yes"
5642		fi
5643	fi
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659xorg_testset_save_CFLAGS="$CFLAGS"
5660
5661if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5662	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5663	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5664printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5665if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5666then :
5667  printf %s "(cached) " >&6
5668else $as_nop
5669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670/* end confdefs.h.  */
5671int i;
5672_ACEOF
5673if ac_fn_c_try_compile "$LINENO"
5674then :
5675  xorg_cv_cc_flag_unknown_warning_option=yes
5676else $as_nop
5677  xorg_cv_cc_flag_unknown_warning_option=no
5678fi
5679rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5680fi
5681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5682printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5683	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5684	CFLAGS="$xorg_testset_save_CFLAGS"
5685fi
5686
5687if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5688	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5689		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5690	fi
5691	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5692	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5693printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5694if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5695then :
5696  printf %s "(cached) " >&6
5697else $as_nop
5698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5699/* end confdefs.h.  */
5700int i;
5701_ACEOF
5702if ac_fn_c_try_compile "$LINENO"
5703then :
5704  xorg_cv_cc_flag_unused_command_line_argument=yes
5705else $as_nop
5706  xorg_cv_cc_flag_unused_command_line_argument=no
5707fi
5708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5709fi
5710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5711printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5712	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5713	CFLAGS="$xorg_testset_save_CFLAGS"
5714fi
5715
5716found="no"
5717
5718	if test $found = "no" ; then
5719		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5720			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5721		fi
5722
5723		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5724			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5725		fi
5726
5727		CFLAGS="$CFLAGS -Wmissing-prototypes"
5728
5729		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5730printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5731		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5732		if eval test \${$cacheid+y}
5733then :
5734  printf %s "(cached) " >&6
5735else $as_nop
5736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737/* end confdefs.h.  */
5738int i;
5739int
5740main (void)
5741{
5742
5743  ;
5744  return 0;
5745}
5746_ACEOF
5747if ac_fn_c_try_link "$LINENO"
5748then :
5749  eval $cacheid=yes
5750else $as_nop
5751  eval $cacheid=no
5752fi
5753rm -f core conftest.err conftest.$ac_objext conftest.beam \
5754    conftest$ac_exeext conftest.$ac_ext
5755fi
5756
5757
5758		CFLAGS="$xorg_testset_save_CFLAGS"
5759
5760		eval supported=\$$cacheid
5761		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5762printf "%s\n" "$supported" >&6; }
5763		if test "$supported" = "yes" ; then
5764			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5765			found="yes"
5766		fi
5767	fi
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783xorg_testset_save_CFLAGS="$CFLAGS"
5784
5785if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5786	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5787	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5788printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5789if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5790then :
5791  printf %s "(cached) " >&6
5792else $as_nop
5793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794/* end confdefs.h.  */
5795int i;
5796_ACEOF
5797if ac_fn_c_try_compile "$LINENO"
5798then :
5799  xorg_cv_cc_flag_unknown_warning_option=yes
5800else $as_nop
5801  xorg_cv_cc_flag_unknown_warning_option=no
5802fi
5803rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5804fi
5805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5806printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5807	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5808	CFLAGS="$xorg_testset_save_CFLAGS"
5809fi
5810
5811if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5812	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5813		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5814	fi
5815	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5816	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5817printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5818if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5819then :
5820  printf %s "(cached) " >&6
5821else $as_nop
5822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823/* end confdefs.h.  */
5824int i;
5825_ACEOF
5826if ac_fn_c_try_compile "$LINENO"
5827then :
5828  xorg_cv_cc_flag_unused_command_line_argument=yes
5829else $as_nop
5830  xorg_cv_cc_flag_unused_command_line_argument=no
5831fi
5832rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5833fi
5834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5835printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5836	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5837	CFLAGS="$xorg_testset_save_CFLAGS"
5838fi
5839
5840found="no"
5841
5842	if test $found = "no" ; then
5843		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5844			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5845		fi
5846
5847		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5848			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5849		fi
5850
5851		CFLAGS="$CFLAGS -Wnested-externs"
5852
5853		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5854printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5855		cacheid=xorg_cv_cc_flag__Wnested_externs
5856		if eval test \${$cacheid+y}
5857then :
5858  printf %s "(cached) " >&6
5859else $as_nop
5860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5861/* end confdefs.h.  */
5862int i;
5863int
5864main (void)
5865{
5866
5867  ;
5868  return 0;
5869}
5870_ACEOF
5871if ac_fn_c_try_link "$LINENO"
5872then :
5873  eval $cacheid=yes
5874else $as_nop
5875  eval $cacheid=no
5876fi
5877rm -f core conftest.err conftest.$ac_objext conftest.beam \
5878    conftest$ac_exeext conftest.$ac_ext
5879fi
5880
5881
5882		CFLAGS="$xorg_testset_save_CFLAGS"
5883
5884		eval supported=\$$cacheid
5885		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5886printf "%s\n" "$supported" >&6; }
5887		if test "$supported" = "yes" ; then
5888			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5889			found="yes"
5890		fi
5891	fi
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907xorg_testset_save_CFLAGS="$CFLAGS"
5908
5909if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5910	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5911	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5912printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5913if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5914then :
5915  printf %s "(cached) " >&6
5916else $as_nop
5917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918/* end confdefs.h.  */
5919int i;
5920_ACEOF
5921if ac_fn_c_try_compile "$LINENO"
5922then :
5923  xorg_cv_cc_flag_unknown_warning_option=yes
5924else $as_nop
5925  xorg_cv_cc_flag_unknown_warning_option=no
5926fi
5927rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5928fi
5929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5930printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5931	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5932	CFLAGS="$xorg_testset_save_CFLAGS"
5933fi
5934
5935if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5936	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5937		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5938	fi
5939	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5940	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5941printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5942if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5943then :
5944  printf %s "(cached) " >&6
5945else $as_nop
5946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947/* end confdefs.h.  */
5948int i;
5949_ACEOF
5950if ac_fn_c_try_compile "$LINENO"
5951then :
5952  xorg_cv_cc_flag_unused_command_line_argument=yes
5953else $as_nop
5954  xorg_cv_cc_flag_unused_command_line_argument=no
5955fi
5956rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5957fi
5958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5959printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5960	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5961	CFLAGS="$xorg_testset_save_CFLAGS"
5962fi
5963
5964found="no"
5965
5966	if test $found = "no" ; then
5967		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5968			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5969		fi
5970
5971		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5972			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5973		fi
5974
5975		CFLAGS="$CFLAGS -Wbad-function-cast"
5976
5977		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5978printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5979		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5980		if eval test \${$cacheid+y}
5981then :
5982  printf %s "(cached) " >&6
5983else $as_nop
5984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5985/* end confdefs.h.  */
5986int i;
5987int
5988main (void)
5989{
5990
5991  ;
5992  return 0;
5993}
5994_ACEOF
5995if ac_fn_c_try_link "$LINENO"
5996then :
5997  eval $cacheid=yes
5998else $as_nop
5999  eval $cacheid=no
6000fi
6001rm -f core conftest.err conftest.$ac_objext conftest.beam \
6002    conftest$ac_exeext conftest.$ac_ext
6003fi
6004
6005
6006		CFLAGS="$xorg_testset_save_CFLAGS"
6007
6008		eval supported=\$$cacheid
6009		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6010printf "%s\n" "$supported" >&6; }
6011		if test "$supported" = "yes" ; then
6012			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6013			found="yes"
6014		fi
6015	fi
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031xorg_testset_save_CFLAGS="$CFLAGS"
6032
6033if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6034	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6035	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6036printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6037if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6038then :
6039  printf %s "(cached) " >&6
6040else $as_nop
6041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042/* end confdefs.h.  */
6043int i;
6044_ACEOF
6045if ac_fn_c_try_compile "$LINENO"
6046then :
6047  xorg_cv_cc_flag_unknown_warning_option=yes
6048else $as_nop
6049  xorg_cv_cc_flag_unknown_warning_option=no
6050fi
6051rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6052fi
6053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6054printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6055	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6056	CFLAGS="$xorg_testset_save_CFLAGS"
6057fi
6058
6059if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6060	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6061		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6062	fi
6063	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6064	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6065printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6066if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6067then :
6068  printf %s "(cached) " >&6
6069else $as_nop
6070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6071/* end confdefs.h.  */
6072int i;
6073_ACEOF
6074if ac_fn_c_try_compile "$LINENO"
6075then :
6076  xorg_cv_cc_flag_unused_command_line_argument=yes
6077else $as_nop
6078  xorg_cv_cc_flag_unused_command_line_argument=no
6079fi
6080rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6081fi
6082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6083printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6084	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6085	CFLAGS="$xorg_testset_save_CFLAGS"
6086fi
6087
6088found="no"
6089
6090	if test $found = "no" ; then
6091		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6092			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6093		fi
6094
6095		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6096			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6097		fi
6098
6099		CFLAGS="$CFLAGS -Wold-style-definition"
6100
6101		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6102printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6103		cacheid=xorg_cv_cc_flag__Wold_style_definition
6104		if eval test \${$cacheid+y}
6105then :
6106  printf %s "(cached) " >&6
6107else $as_nop
6108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109/* end confdefs.h.  */
6110int i;
6111int
6112main (void)
6113{
6114
6115  ;
6116  return 0;
6117}
6118_ACEOF
6119if ac_fn_c_try_link "$LINENO"
6120then :
6121  eval $cacheid=yes
6122else $as_nop
6123  eval $cacheid=no
6124fi
6125rm -f core conftest.err conftest.$ac_objext conftest.beam \
6126    conftest$ac_exeext conftest.$ac_ext
6127fi
6128
6129
6130		CFLAGS="$xorg_testset_save_CFLAGS"
6131
6132		eval supported=\$$cacheid
6133		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6134printf "%s\n" "$supported" >&6; }
6135		if test "$supported" = "yes" ; then
6136			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6137			found="yes"
6138		fi
6139	fi
6140
6141	if test $found = "no" ; then
6142		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6143			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6144		fi
6145
6146		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6147			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6148		fi
6149
6150		CFLAGS="$CFLAGS -fd"
6151
6152		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6153printf %s "checking if $CC supports -fd... " >&6; }
6154		cacheid=xorg_cv_cc_flag__fd
6155		if eval test \${$cacheid+y}
6156then :
6157  printf %s "(cached) " >&6
6158else $as_nop
6159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6160/* end confdefs.h.  */
6161int i;
6162int
6163main (void)
6164{
6165
6166  ;
6167  return 0;
6168}
6169_ACEOF
6170if ac_fn_c_try_link "$LINENO"
6171then :
6172  eval $cacheid=yes
6173else $as_nop
6174  eval $cacheid=no
6175fi
6176rm -f core conftest.err conftest.$ac_objext conftest.beam \
6177    conftest$ac_exeext conftest.$ac_ext
6178fi
6179
6180
6181		CFLAGS="$xorg_testset_save_CFLAGS"
6182
6183		eval supported=\$$cacheid
6184		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6185printf "%s\n" "$supported" >&6; }
6186		if test "$supported" = "yes" ; then
6187			BASE_CFLAGS="$BASE_CFLAGS -fd"
6188			found="yes"
6189		fi
6190	fi
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206xorg_testset_save_CFLAGS="$CFLAGS"
6207
6208if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6209	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6210	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6211printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6212if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6213then :
6214  printf %s "(cached) " >&6
6215else $as_nop
6216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6217/* end confdefs.h.  */
6218int i;
6219_ACEOF
6220if ac_fn_c_try_compile "$LINENO"
6221then :
6222  xorg_cv_cc_flag_unknown_warning_option=yes
6223else $as_nop
6224  xorg_cv_cc_flag_unknown_warning_option=no
6225fi
6226rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6227fi
6228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6229printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6230	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6231	CFLAGS="$xorg_testset_save_CFLAGS"
6232fi
6233
6234if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6235	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6236		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6237	fi
6238	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6239	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6240printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6241if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6242then :
6243  printf %s "(cached) " >&6
6244else $as_nop
6245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246/* end confdefs.h.  */
6247int i;
6248_ACEOF
6249if ac_fn_c_try_compile "$LINENO"
6250then :
6251  xorg_cv_cc_flag_unused_command_line_argument=yes
6252else $as_nop
6253  xorg_cv_cc_flag_unused_command_line_argument=no
6254fi
6255rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6256fi
6257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6258printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6259	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6260	CFLAGS="$xorg_testset_save_CFLAGS"
6261fi
6262
6263found="no"
6264
6265	if test $found = "no" ; then
6266		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6267			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6268		fi
6269
6270		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6271			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6272		fi
6273
6274		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6275
6276		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6277printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6278		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6279		if eval test \${$cacheid+y}
6280then :
6281  printf %s "(cached) " >&6
6282else $as_nop
6283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284/* end confdefs.h.  */
6285int i;
6286int
6287main (void)
6288{
6289
6290  ;
6291  return 0;
6292}
6293_ACEOF
6294if ac_fn_c_try_link "$LINENO"
6295then :
6296  eval $cacheid=yes
6297else $as_nop
6298  eval $cacheid=no
6299fi
6300rm -f core conftest.err conftest.$ac_objext conftest.beam \
6301    conftest$ac_exeext conftest.$ac_ext
6302fi
6303
6304
6305		CFLAGS="$xorg_testset_save_CFLAGS"
6306
6307		eval supported=\$$cacheid
6308		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6309printf "%s\n" "$supported" >&6; }
6310		if test "$supported" = "yes" ; then
6311			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6312			found="yes"
6313		fi
6314	fi
6315
6316
6317
6318
6319
6320# This chunk adds additional warnings that could catch undesired effects.
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334xorg_testset_save_CFLAGS="$CFLAGS"
6335
6336if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6337	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6338	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6339printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6340if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6341then :
6342  printf %s "(cached) " >&6
6343else $as_nop
6344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345/* end confdefs.h.  */
6346int i;
6347_ACEOF
6348if ac_fn_c_try_compile "$LINENO"
6349then :
6350  xorg_cv_cc_flag_unknown_warning_option=yes
6351else $as_nop
6352  xorg_cv_cc_flag_unknown_warning_option=no
6353fi
6354rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6355fi
6356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6357printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6358	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6359	CFLAGS="$xorg_testset_save_CFLAGS"
6360fi
6361
6362if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6363	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6364		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6365	fi
6366	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6367	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6368printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6369if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6370then :
6371  printf %s "(cached) " >&6
6372else $as_nop
6373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374/* end confdefs.h.  */
6375int i;
6376_ACEOF
6377if ac_fn_c_try_compile "$LINENO"
6378then :
6379  xorg_cv_cc_flag_unused_command_line_argument=yes
6380else $as_nop
6381  xorg_cv_cc_flag_unused_command_line_argument=no
6382fi
6383rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6384fi
6385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6386printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6387	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6388	CFLAGS="$xorg_testset_save_CFLAGS"
6389fi
6390
6391found="no"
6392
6393	if test $found = "no" ; then
6394		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6395			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6396		fi
6397
6398		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6399			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6400		fi
6401
6402		CFLAGS="$CFLAGS -Wunused"
6403
6404		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6405printf %s "checking if $CC supports -Wunused... " >&6; }
6406		cacheid=xorg_cv_cc_flag__Wunused
6407		if eval test \${$cacheid+y}
6408then :
6409  printf %s "(cached) " >&6
6410else $as_nop
6411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6412/* end confdefs.h.  */
6413int i;
6414int
6415main (void)
6416{
6417
6418  ;
6419  return 0;
6420}
6421_ACEOF
6422if ac_fn_c_try_link "$LINENO"
6423then :
6424  eval $cacheid=yes
6425else $as_nop
6426  eval $cacheid=no
6427fi
6428rm -f core conftest.err conftest.$ac_objext conftest.beam \
6429    conftest$ac_exeext conftest.$ac_ext
6430fi
6431
6432
6433		CFLAGS="$xorg_testset_save_CFLAGS"
6434
6435		eval supported=\$$cacheid
6436		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6437printf "%s\n" "$supported" >&6; }
6438		if test "$supported" = "yes" ; then
6439			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6440			found="yes"
6441		fi
6442	fi
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458xorg_testset_save_CFLAGS="$CFLAGS"
6459
6460if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6461	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6462	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6463printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6464if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6465then :
6466  printf %s "(cached) " >&6
6467else $as_nop
6468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469/* end confdefs.h.  */
6470int i;
6471_ACEOF
6472if ac_fn_c_try_compile "$LINENO"
6473then :
6474  xorg_cv_cc_flag_unknown_warning_option=yes
6475else $as_nop
6476  xorg_cv_cc_flag_unknown_warning_option=no
6477fi
6478rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6479fi
6480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6481printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6482	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6483	CFLAGS="$xorg_testset_save_CFLAGS"
6484fi
6485
6486if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6487	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6488		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6489	fi
6490	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6491	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6492printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6493if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6494then :
6495  printf %s "(cached) " >&6
6496else $as_nop
6497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498/* end confdefs.h.  */
6499int i;
6500_ACEOF
6501if ac_fn_c_try_compile "$LINENO"
6502then :
6503  xorg_cv_cc_flag_unused_command_line_argument=yes
6504else $as_nop
6505  xorg_cv_cc_flag_unused_command_line_argument=no
6506fi
6507rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6508fi
6509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6510printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6511	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6512	CFLAGS="$xorg_testset_save_CFLAGS"
6513fi
6514
6515found="no"
6516
6517	if test $found = "no" ; then
6518		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6519			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6520		fi
6521
6522		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6523			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6524		fi
6525
6526		CFLAGS="$CFLAGS -Wuninitialized"
6527
6528		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6529printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6530		cacheid=xorg_cv_cc_flag__Wuninitialized
6531		if eval test \${$cacheid+y}
6532then :
6533  printf %s "(cached) " >&6
6534else $as_nop
6535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536/* end confdefs.h.  */
6537int i;
6538int
6539main (void)
6540{
6541
6542  ;
6543  return 0;
6544}
6545_ACEOF
6546if ac_fn_c_try_link "$LINENO"
6547then :
6548  eval $cacheid=yes
6549else $as_nop
6550  eval $cacheid=no
6551fi
6552rm -f core conftest.err conftest.$ac_objext conftest.beam \
6553    conftest$ac_exeext conftest.$ac_ext
6554fi
6555
6556
6557		CFLAGS="$xorg_testset_save_CFLAGS"
6558
6559		eval supported=\$$cacheid
6560		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6561printf "%s\n" "$supported" >&6; }
6562		if test "$supported" = "yes" ; then
6563			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6564			found="yes"
6565		fi
6566	fi
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582xorg_testset_save_CFLAGS="$CFLAGS"
6583
6584if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6585	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6586	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6587printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6588if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6589then :
6590  printf %s "(cached) " >&6
6591else $as_nop
6592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593/* end confdefs.h.  */
6594int i;
6595_ACEOF
6596if ac_fn_c_try_compile "$LINENO"
6597then :
6598  xorg_cv_cc_flag_unknown_warning_option=yes
6599else $as_nop
6600  xorg_cv_cc_flag_unknown_warning_option=no
6601fi
6602rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6603fi
6604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6605printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6606	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6607	CFLAGS="$xorg_testset_save_CFLAGS"
6608fi
6609
6610if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6611	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6612		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6613	fi
6614	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6615	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6616printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6617if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6618then :
6619  printf %s "(cached) " >&6
6620else $as_nop
6621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622/* end confdefs.h.  */
6623int i;
6624_ACEOF
6625if ac_fn_c_try_compile "$LINENO"
6626then :
6627  xorg_cv_cc_flag_unused_command_line_argument=yes
6628else $as_nop
6629  xorg_cv_cc_flag_unused_command_line_argument=no
6630fi
6631rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6632fi
6633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6634printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6635	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6636	CFLAGS="$xorg_testset_save_CFLAGS"
6637fi
6638
6639found="no"
6640
6641	if test $found = "no" ; then
6642		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6643			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6644		fi
6645
6646		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6647			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6648		fi
6649
6650		CFLAGS="$CFLAGS -Wshadow"
6651
6652		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6653printf %s "checking if $CC supports -Wshadow... " >&6; }
6654		cacheid=xorg_cv_cc_flag__Wshadow
6655		if eval test \${$cacheid+y}
6656then :
6657  printf %s "(cached) " >&6
6658else $as_nop
6659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6660/* end confdefs.h.  */
6661int i;
6662int
6663main (void)
6664{
6665
6666  ;
6667  return 0;
6668}
6669_ACEOF
6670if ac_fn_c_try_link "$LINENO"
6671then :
6672  eval $cacheid=yes
6673else $as_nop
6674  eval $cacheid=no
6675fi
6676rm -f core conftest.err conftest.$ac_objext conftest.beam \
6677    conftest$ac_exeext conftest.$ac_ext
6678fi
6679
6680
6681		CFLAGS="$xorg_testset_save_CFLAGS"
6682
6683		eval supported=\$$cacheid
6684		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6685printf "%s\n" "$supported" >&6; }
6686		if test "$supported" = "yes" ; then
6687			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6688			found="yes"
6689		fi
6690	fi
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706xorg_testset_save_CFLAGS="$CFLAGS"
6707
6708if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6709	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6710	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6711printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6712if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6713then :
6714  printf %s "(cached) " >&6
6715else $as_nop
6716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717/* end confdefs.h.  */
6718int i;
6719_ACEOF
6720if ac_fn_c_try_compile "$LINENO"
6721then :
6722  xorg_cv_cc_flag_unknown_warning_option=yes
6723else $as_nop
6724  xorg_cv_cc_flag_unknown_warning_option=no
6725fi
6726rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6727fi
6728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6729printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6730	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6731	CFLAGS="$xorg_testset_save_CFLAGS"
6732fi
6733
6734if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6735	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6736		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6737	fi
6738	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6739	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6740printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6741if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6742then :
6743  printf %s "(cached) " >&6
6744else $as_nop
6745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746/* end confdefs.h.  */
6747int i;
6748_ACEOF
6749if ac_fn_c_try_compile "$LINENO"
6750then :
6751  xorg_cv_cc_flag_unused_command_line_argument=yes
6752else $as_nop
6753  xorg_cv_cc_flag_unused_command_line_argument=no
6754fi
6755rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6756fi
6757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6758printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6759	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6760	CFLAGS="$xorg_testset_save_CFLAGS"
6761fi
6762
6763found="no"
6764
6765	if test $found = "no" ; then
6766		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6767			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6768		fi
6769
6770		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6771			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6772		fi
6773
6774		CFLAGS="$CFLAGS -Wmissing-noreturn"
6775
6776		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6777printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6778		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6779		if eval test \${$cacheid+y}
6780then :
6781  printf %s "(cached) " >&6
6782else $as_nop
6783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6784/* end confdefs.h.  */
6785int i;
6786int
6787main (void)
6788{
6789
6790  ;
6791  return 0;
6792}
6793_ACEOF
6794if ac_fn_c_try_link "$LINENO"
6795then :
6796  eval $cacheid=yes
6797else $as_nop
6798  eval $cacheid=no
6799fi
6800rm -f core conftest.err conftest.$ac_objext conftest.beam \
6801    conftest$ac_exeext conftest.$ac_ext
6802fi
6803
6804
6805		CFLAGS="$xorg_testset_save_CFLAGS"
6806
6807		eval supported=\$$cacheid
6808		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6809printf "%s\n" "$supported" >&6; }
6810		if test "$supported" = "yes" ; then
6811			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6812			found="yes"
6813		fi
6814	fi
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830xorg_testset_save_CFLAGS="$CFLAGS"
6831
6832if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6833	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6834	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6835printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6836if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6837then :
6838  printf %s "(cached) " >&6
6839else $as_nop
6840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841/* end confdefs.h.  */
6842int i;
6843_ACEOF
6844if ac_fn_c_try_compile "$LINENO"
6845then :
6846  xorg_cv_cc_flag_unknown_warning_option=yes
6847else $as_nop
6848  xorg_cv_cc_flag_unknown_warning_option=no
6849fi
6850rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6851fi
6852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6853printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6854	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6855	CFLAGS="$xorg_testset_save_CFLAGS"
6856fi
6857
6858if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6859	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6860		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6861	fi
6862	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6863	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6864printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6865if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6866then :
6867  printf %s "(cached) " >&6
6868else $as_nop
6869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6870/* end confdefs.h.  */
6871int i;
6872_ACEOF
6873if ac_fn_c_try_compile "$LINENO"
6874then :
6875  xorg_cv_cc_flag_unused_command_line_argument=yes
6876else $as_nop
6877  xorg_cv_cc_flag_unused_command_line_argument=no
6878fi
6879rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6880fi
6881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6882printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6883	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6884	CFLAGS="$xorg_testset_save_CFLAGS"
6885fi
6886
6887found="no"
6888
6889	if test $found = "no" ; then
6890		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6891			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6892		fi
6893
6894		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6895			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6896		fi
6897
6898		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6899
6900		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6901printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6902		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6903		if eval test \${$cacheid+y}
6904then :
6905  printf %s "(cached) " >&6
6906else $as_nop
6907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908/* end confdefs.h.  */
6909int i;
6910int
6911main (void)
6912{
6913
6914  ;
6915  return 0;
6916}
6917_ACEOF
6918if ac_fn_c_try_link "$LINENO"
6919then :
6920  eval $cacheid=yes
6921else $as_nop
6922  eval $cacheid=no
6923fi
6924rm -f core conftest.err conftest.$ac_objext conftest.beam \
6925    conftest$ac_exeext conftest.$ac_ext
6926fi
6927
6928
6929		CFLAGS="$xorg_testset_save_CFLAGS"
6930
6931		eval supported=\$$cacheid
6932		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6933printf "%s\n" "$supported" >&6; }
6934		if test "$supported" = "yes" ; then
6935			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6936			found="yes"
6937		fi
6938	fi
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954xorg_testset_save_CFLAGS="$CFLAGS"
6955
6956if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6957	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6958	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6959printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6960if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6961then :
6962  printf %s "(cached) " >&6
6963else $as_nop
6964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965/* end confdefs.h.  */
6966int i;
6967_ACEOF
6968if ac_fn_c_try_compile "$LINENO"
6969then :
6970  xorg_cv_cc_flag_unknown_warning_option=yes
6971else $as_nop
6972  xorg_cv_cc_flag_unknown_warning_option=no
6973fi
6974rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6975fi
6976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6977printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6978	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6979	CFLAGS="$xorg_testset_save_CFLAGS"
6980fi
6981
6982if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6983	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6984		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6985	fi
6986	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6987	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6988printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6989if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6990then :
6991  printf %s "(cached) " >&6
6992else $as_nop
6993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994/* end confdefs.h.  */
6995int i;
6996_ACEOF
6997if ac_fn_c_try_compile "$LINENO"
6998then :
6999  xorg_cv_cc_flag_unused_command_line_argument=yes
7000else $as_nop
7001  xorg_cv_cc_flag_unused_command_line_argument=no
7002fi
7003rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7004fi
7005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7006printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7007	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7008	CFLAGS="$xorg_testset_save_CFLAGS"
7009fi
7010
7011found="no"
7012
7013	if test $found = "no" ; then
7014		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7015			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7016		fi
7017
7018		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7019			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7020		fi
7021
7022		CFLAGS="$CFLAGS -Wredundant-decls"
7023
7024		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7025printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7026		cacheid=xorg_cv_cc_flag__Wredundant_decls
7027		if eval test \${$cacheid+y}
7028then :
7029  printf %s "(cached) " >&6
7030else $as_nop
7031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7032/* end confdefs.h.  */
7033int i;
7034int
7035main (void)
7036{
7037
7038  ;
7039  return 0;
7040}
7041_ACEOF
7042if ac_fn_c_try_link "$LINENO"
7043then :
7044  eval $cacheid=yes
7045else $as_nop
7046  eval $cacheid=no
7047fi
7048rm -f core conftest.err conftest.$ac_objext conftest.beam \
7049    conftest$ac_exeext conftest.$ac_ext
7050fi
7051
7052
7053		CFLAGS="$xorg_testset_save_CFLAGS"
7054
7055		eval supported=\$$cacheid
7056		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7057printf "%s\n" "$supported" >&6; }
7058		if test "$supported" = "yes" ; then
7059			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7060			found="yes"
7061		fi
7062	fi
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078xorg_testset_save_CFLAGS="$CFLAGS"
7079
7080if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7081	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7082	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7083printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7084if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7085then :
7086  printf %s "(cached) " >&6
7087else $as_nop
7088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089/* end confdefs.h.  */
7090int i;
7091_ACEOF
7092if ac_fn_c_try_compile "$LINENO"
7093then :
7094  xorg_cv_cc_flag_unknown_warning_option=yes
7095else $as_nop
7096  xorg_cv_cc_flag_unknown_warning_option=no
7097fi
7098rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7099fi
7100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7101printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7102	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7103	CFLAGS="$xorg_testset_save_CFLAGS"
7104fi
7105
7106if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7107	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7108		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7109	fi
7110	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7111	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7112printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7113if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7114then :
7115  printf %s "(cached) " >&6
7116else $as_nop
7117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118/* end confdefs.h.  */
7119int i;
7120_ACEOF
7121if ac_fn_c_try_compile "$LINENO"
7122then :
7123  xorg_cv_cc_flag_unused_command_line_argument=yes
7124else $as_nop
7125  xorg_cv_cc_flag_unused_command_line_argument=no
7126fi
7127rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7128fi
7129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7130printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7131	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7132	CFLAGS="$xorg_testset_save_CFLAGS"
7133fi
7134
7135found="no"
7136
7137	if test $found = "no" ; then
7138		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7139			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7140		fi
7141
7142		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7143			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7144		fi
7145
7146		CFLAGS="$CFLAGS -Wlogical-op"
7147
7148		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7149printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7150		cacheid=xorg_cv_cc_flag__Wlogical_op
7151		if eval test \${$cacheid+y}
7152then :
7153  printf %s "(cached) " >&6
7154else $as_nop
7155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156/* end confdefs.h.  */
7157int i;
7158int
7159main (void)
7160{
7161
7162  ;
7163  return 0;
7164}
7165_ACEOF
7166if ac_fn_c_try_link "$LINENO"
7167then :
7168  eval $cacheid=yes
7169else $as_nop
7170  eval $cacheid=no
7171fi
7172rm -f core conftest.err conftest.$ac_objext conftest.beam \
7173    conftest$ac_exeext conftest.$ac_ext
7174fi
7175
7176
7177		CFLAGS="$xorg_testset_save_CFLAGS"
7178
7179		eval supported=\$$cacheid
7180		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7181printf "%s\n" "$supported" >&6; }
7182		if test "$supported" = "yes" ; then
7183			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7184			found="yes"
7185		fi
7186	fi
7187
7188
7189
7190# These are currently disabled because they are noisy.  They will be enabled
7191# in the future once the codebase is sufficiently modernized to silence
7192# them.  For now, I don't want them to drown out the other warnings.
7193# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7194# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7195# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7196
7197# Turn some warnings into errors, so we don't accidently get successful builds
7198# when there are problems that should be fixed.
7199
7200if test "x$SELECTIVE_WERROR" = "xyes" ; then
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214xorg_testset_save_CFLAGS="$CFLAGS"
7215
7216if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7217	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7218	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7219printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7220if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7221then :
7222  printf %s "(cached) " >&6
7223else $as_nop
7224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225/* end confdefs.h.  */
7226int i;
7227_ACEOF
7228if ac_fn_c_try_compile "$LINENO"
7229then :
7230  xorg_cv_cc_flag_unknown_warning_option=yes
7231else $as_nop
7232  xorg_cv_cc_flag_unknown_warning_option=no
7233fi
7234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7235fi
7236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7237printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7238	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7239	CFLAGS="$xorg_testset_save_CFLAGS"
7240fi
7241
7242if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7243	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7244		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7245	fi
7246	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7247	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7248printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7249if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7250then :
7251  printf %s "(cached) " >&6
7252else $as_nop
7253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7254/* end confdefs.h.  */
7255int i;
7256_ACEOF
7257if ac_fn_c_try_compile "$LINENO"
7258then :
7259  xorg_cv_cc_flag_unused_command_line_argument=yes
7260else $as_nop
7261  xorg_cv_cc_flag_unused_command_line_argument=no
7262fi
7263rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7264fi
7265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7266printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7267	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7268	CFLAGS="$xorg_testset_save_CFLAGS"
7269fi
7270
7271found="no"
7272
7273	if test $found = "no" ; then
7274		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7275			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7276		fi
7277
7278		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7279			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7280		fi
7281
7282		CFLAGS="$CFLAGS -Werror=implicit"
7283
7284		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7285printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7286		cacheid=xorg_cv_cc_flag__Werror_implicit
7287		if eval test \${$cacheid+y}
7288then :
7289  printf %s "(cached) " >&6
7290else $as_nop
7291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7292/* end confdefs.h.  */
7293int i;
7294int
7295main (void)
7296{
7297
7298  ;
7299  return 0;
7300}
7301_ACEOF
7302if ac_fn_c_try_link "$LINENO"
7303then :
7304  eval $cacheid=yes
7305else $as_nop
7306  eval $cacheid=no
7307fi
7308rm -f core conftest.err conftest.$ac_objext conftest.beam \
7309    conftest$ac_exeext conftest.$ac_ext
7310fi
7311
7312
7313		CFLAGS="$xorg_testset_save_CFLAGS"
7314
7315		eval supported=\$$cacheid
7316		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7317printf "%s\n" "$supported" >&6; }
7318		if test "$supported" = "yes" ; then
7319			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7320			found="yes"
7321		fi
7322	fi
7323
7324	if test $found = "no" ; then
7325		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7326			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7327		fi
7328
7329		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7330			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7331		fi
7332
7333		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7334
7335		{ 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
7336printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7337		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7338		if eval test \${$cacheid+y}
7339then :
7340  printf %s "(cached) " >&6
7341else $as_nop
7342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343/* end confdefs.h.  */
7344int i;
7345int
7346main (void)
7347{
7348
7349  ;
7350  return 0;
7351}
7352_ACEOF
7353if ac_fn_c_try_link "$LINENO"
7354then :
7355  eval $cacheid=yes
7356else $as_nop
7357  eval $cacheid=no
7358fi
7359rm -f core conftest.err conftest.$ac_objext conftest.beam \
7360    conftest$ac_exeext conftest.$ac_ext
7361fi
7362
7363
7364		CFLAGS="$xorg_testset_save_CFLAGS"
7365
7366		eval supported=\$$cacheid
7367		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7368printf "%s\n" "$supported" >&6; }
7369		if test "$supported" = "yes" ; then
7370			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7371			found="yes"
7372		fi
7373	fi
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389xorg_testset_save_CFLAGS="$CFLAGS"
7390
7391if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7392	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7393	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7394printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7395if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7396then :
7397  printf %s "(cached) " >&6
7398else $as_nop
7399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400/* end confdefs.h.  */
7401int i;
7402_ACEOF
7403if ac_fn_c_try_compile "$LINENO"
7404then :
7405  xorg_cv_cc_flag_unknown_warning_option=yes
7406else $as_nop
7407  xorg_cv_cc_flag_unknown_warning_option=no
7408fi
7409rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7410fi
7411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7412printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7413	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7414	CFLAGS="$xorg_testset_save_CFLAGS"
7415fi
7416
7417if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7418	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7419		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7420	fi
7421	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7422	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7423printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7424if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7425then :
7426  printf %s "(cached) " >&6
7427else $as_nop
7428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7429/* end confdefs.h.  */
7430int i;
7431_ACEOF
7432if ac_fn_c_try_compile "$LINENO"
7433then :
7434  xorg_cv_cc_flag_unused_command_line_argument=yes
7435else $as_nop
7436  xorg_cv_cc_flag_unused_command_line_argument=no
7437fi
7438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7439fi
7440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7441printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7442	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7443	CFLAGS="$xorg_testset_save_CFLAGS"
7444fi
7445
7446found="no"
7447
7448	if test $found = "no" ; then
7449		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7450			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7451		fi
7452
7453		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7454			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7455		fi
7456
7457		CFLAGS="$CFLAGS -Werror=nonnull"
7458
7459		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7460printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7461		cacheid=xorg_cv_cc_flag__Werror_nonnull
7462		if eval test \${$cacheid+y}
7463then :
7464  printf %s "(cached) " >&6
7465else $as_nop
7466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7467/* end confdefs.h.  */
7468int i;
7469int
7470main (void)
7471{
7472
7473  ;
7474  return 0;
7475}
7476_ACEOF
7477if ac_fn_c_try_link "$LINENO"
7478then :
7479  eval $cacheid=yes
7480else $as_nop
7481  eval $cacheid=no
7482fi
7483rm -f core conftest.err conftest.$ac_objext conftest.beam \
7484    conftest$ac_exeext conftest.$ac_ext
7485fi
7486
7487
7488		CFLAGS="$xorg_testset_save_CFLAGS"
7489
7490		eval supported=\$$cacheid
7491		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7492printf "%s\n" "$supported" >&6; }
7493		if test "$supported" = "yes" ; then
7494			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7495			found="yes"
7496		fi
7497	fi
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513xorg_testset_save_CFLAGS="$CFLAGS"
7514
7515if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7516	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7517	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7518printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7519if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7520then :
7521  printf %s "(cached) " >&6
7522else $as_nop
7523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524/* end confdefs.h.  */
7525int i;
7526_ACEOF
7527if ac_fn_c_try_compile "$LINENO"
7528then :
7529  xorg_cv_cc_flag_unknown_warning_option=yes
7530else $as_nop
7531  xorg_cv_cc_flag_unknown_warning_option=no
7532fi
7533rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7534fi
7535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7536printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7537	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7538	CFLAGS="$xorg_testset_save_CFLAGS"
7539fi
7540
7541if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7542	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7543		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7544	fi
7545	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7546	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7547printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7548if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7549then :
7550  printf %s "(cached) " >&6
7551else $as_nop
7552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553/* end confdefs.h.  */
7554int i;
7555_ACEOF
7556if ac_fn_c_try_compile "$LINENO"
7557then :
7558  xorg_cv_cc_flag_unused_command_line_argument=yes
7559else $as_nop
7560  xorg_cv_cc_flag_unused_command_line_argument=no
7561fi
7562rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7563fi
7564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7565printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7566	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7567	CFLAGS="$xorg_testset_save_CFLAGS"
7568fi
7569
7570found="no"
7571
7572	if test $found = "no" ; then
7573		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7574			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7575		fi
7576
7577		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7578			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7579		fi
7580
7581		CFLAGS="$CFLAGS -Werror=init-self"
7582
7583		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7584printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7585		cacheid=xorg_cv_cc_flag__Werror_init_self
7586		if eval test \${$cacheid+y}
7587then :
7588  printf %s "(cached) " >&6
7589else $as_nop
7590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591/* end confdefs.h.  */
7592int i;
7593int
7594main (void)
7595{
7596
7597  ;
7598  return 0;
7599}
7600_ACEOF
7601if ac_fn_c_try_link "$LINENO"
7602then :
7603  eval $cacheid=yes
7604else $as_nop
7605  eval $cacheid=no
7606fi
7607rm -f core conftest.err conftest.$ac_objext conftest.beam \
7608    conftest$ac_exeext conftest.$ac_ext
7609fi
7610
7611
7612		CFLAGS="$xorg_testset_save_CFLAGS"
7613
7614		eval supported=\$$cacheid
7615		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7616printf "%s\n" "$supported" >&6; }
7617		if test "$supported" = "yes" ; then
7618			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7619			found="yes"
7620		fi
7621	fi
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637xorg_testset_save_CFLAGS="$CFLAGS"
7638
7639if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7640	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7641	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7642printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7643if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7644then :
7645  printf %s "(cached) " >&6
7646else $as_nop
7647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7648/* end confdefs.h.  */
7649int i;
7650_ACEOF
7651if ac_fn_c_try_compile "$LINENO"
7652then :
7653  xorg_cv_cc_flag_unknown_warning_option=yes
7654else $as_nop
7655  xorg_cv_cc_flag_unknown_warning_option=no
7656fi
7657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7658fi
7659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7660printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7661	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7662	CFLAGS="$xorg_testset_save_CFLAGS"
7663fi
7664
7665if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7666	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7667		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7668	fi
7669	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7670	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7671printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7672if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7673then :
7674  printf %s "(cached) " >&6
7675else $as_nop
7676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677/* end confdefs.h.  */
7678int i;
7679_ACEOF
7680if ac_fn_c_try_compile "$LINENO"
7681then :
7682  xorg_cv_cc_flag_unused_command_line_argument=yes
7683else $as_nop
7684  xorg_cv_cc_flag_unused_command_line_argument=no
7685fi
7686rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7687fi
7688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7689printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7690	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7691	CFLAGS="$xorg_testset_save_CFLAGS"
7692fi
7693
7694found="no"
7695
7696	if test $found = "no" ; then
7697		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7698			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7699		fi
7700
7701		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7702			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7703		fi
7704
7705		CFLAGS="$CFLAGS -Werror=main"
7706
7707		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7708printf %s "checking if $CC supports -Werror=main... " >&6; }
7709		cacheid=xorg_cv_cc_flag__Werror_main
7710		if eval test \${$cacheid+y}
7711then :
7712  printf %s "(cached) " >&6
7713else $as_nop
7714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7715/* end confdefs.h.  */
7716int i;
7717int
7718main (void)
7719{
7720
7721  ;
7722  return 0;
7723}
7724_ACEOF
7725if ac_fn_c_try_link "$LINENO"
7726then :
7727  eval $cacheid=yes
7728else $as_nop
7729  eval $cacheid=no
7730fi
7731rm -f core conftest.err conftest.$ac_objext conftest.beam \
7732    conftest$ac_exeext conftest.$ac_ext
7733fi
7734
7735
7736		CFLAGS="$xorg_testset_save_CFLAGS"
7737
7738		eval supported=\$$cacheid
7739		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7740printf "%s\n" "$supported" >&6; }
7741		if test "$supported" = "yes" ; then
7742			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7743			found="yes"
7744		fi
7745	fi
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761xorg_testset_save_CFLAGS="$CFLAGS"
7762
7763if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7764	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7765	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7766printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7767if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7768then :
7769  printf %s "(cached) " >&6
7770else $as_nop
7771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7772/* end confdefs.h.  */
7773int i;
7774_ACEOF
7775if ac_fn_c_try_compile "$LINENO"
7776then :
7777  xorg_cv_cc_flag_unknown_warning_option=yes
7778else $as_nop
7779  xorg_cv_cc_flag_unknown_warning_option=no
7780fi
7781rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7782fi
7783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7784printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7785	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7786	CFLAGS="$xorg_testset_save_CFLAGS"
7787fi
7788
7789if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7790	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7791		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7792	fi
7793	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7794	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7795printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7796if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7797then :
7798  printf %s "(cached) " >&6
7799else $as_nop
7800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801/* end confdefs.h.  */
7802int i;
7803_ACEOF
7804if ac_fn_c_try_compile "$LINENO"
7805then :
7806  xorg_cv_cc_flag_unused_command_line_argument=yes
7807else $as_nop
7808  xorg_cv_cc_flag_unused_command_line_argument=no
7809fi
7810rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7811fi
7812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7813printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7814	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7815	CFLAGS="$xorg_testset_save_CFLAGS"
7816fi
7817
7818found="no"
7819
7820	if test $found = "no" ; then
7821		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7822			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7823		fi
7824
7825		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7826			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7827		fi
7828
7829		CFLAGS="$CFLAGS -Werror=missing-braces"
7830
7831		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7832printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7833		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7834		if eval test \${$cacheid+y}
7835then :
7836  printf %s "(cached) " >&6
7837else $as_nop
7838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7839/* end confdefs.h.  */
7840int i;
7841int
7842main (void)
7843{
7844
7845  ;
7846  return 0;
7847}
7848_ACEOF
7849if ac_fn_c_try_link "$LINENO"
7850then :
7851  eval $cacheid=yes
7852else $as_nop
7853  eval $cacheid=no
7854fi
7855rm -f core conftest.err conftest.$ac_objext conftest.beam \
7856    conftest$ac_exeext conftest.$ac_ext
7857fi
7858
7859
7860		CFLAGS="$xorg_testset_save_CFLAGS"
7861
7862		eval supported=\$$cacheid
7863		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7864printf "%s\n" "$supported" >&6; }
7865		if test "$supported" = "yes" ; then
7866			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7867			found="yes"
7868		fi
7869	fi
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885xorg_testset_save_CFLAGS="$CFLAGS"
7886
7887if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7888	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7889	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7890printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7891if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7892then :
7893  printf %s "(cached) " >&6
7894else $as_nop
7895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896/* end confdefs.h.  */
7897int i;
7898_ACEOF
7899if ac_fn_c_try_compile "$LINENO"
7900then :
7901  xorg_cv_cc_flag_unknown_warning_option=yes
7902else $as_nop
7903  xorg_cv_cc_flag_unknown_warning_option=no
7904fi
7905rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7906fi
7907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7908printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7909	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7910	CFLAGS="$xorg_testset_save_CFLAGS"
7911fi
7912
7913if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7914	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7915		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7916	fi
7917	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7918	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7919printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7920if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7921then :
7922  printf %s "(cached) " >&6
7923else $as_nop
7924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925/* end confdefs.h.  */
7926int i;
7927_ACEOF
7928if ac_fn_c_try_compile "$LINENO"
7929then :
7930  xorg_cv_cc_flag_unused_command_line_argument=yes
7931else $as_nop
7932  xorg_cv_cc_flag_unused_command_line_argument=no
7933fi
7934rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7935fi
7936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7937printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7938	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7939	CFLAGS="$xorg_testset_save_CFLAGS"
7940fi
7941
7942found="no"
7943
7944	if test $found = "no" ; then
7945		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7946			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7947		fi
7948
7949		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7950			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7951		fi
7952
7953		CFLAGS="$CFLAGS -Werror=sequence-point"
7954
7955		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7956printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7957		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7958		if eval test \${$cacheid+y}
7959then :
7960  printf %s "(cached) " >&6
7961else $as_nop
7962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7963/* end confdefs.h.  */
7964int i;
7965int
7966main (void)
7967{
7968
7969  ;
7970  return 0;
7971}
7972_ACEOF
7973if ac_fn_c_try_link "$LINENO"
7974then :
7975  eval $cacheid=yes
7976else $as_nop
7977  eval $cacheid=no
7978fi
7979rm -f core conftest.err conftest.$ac_objext conftest.beam \
7980    conftest$ac_exeext conftest.$ac_ext
7981fi
7982
7983
7984		CFLAGS="$xorg_testset_save_CFLAGS"
7985
7986		eval supported=\$$cacheid
7987		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7988printf "%s\n" "$supported" >&6; }
7989		if test "$supported" = "yes" ; then
7990			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7991			found="yes"
7992		fi
7993	fi
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009xorg_testset_save_CFLAGS="$CFLAGS"
8010
8011if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8012	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8013	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8014printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8015if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8016then :
8017  printf %s "(cached) " >&6
8018else $as_nop
8019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8020/* end confdefs.h.  */
8021int i;
8022_ACEOF
8023if ac_fn_c_try_compile "$LINENO"
8024then :
8025  xorg_cv_cc_flag_unknown_warning_option=yes
8026else $as_nop
8027  xorg_cv_cc_flag_unknown_warning_option=no
8028fi
8029rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8030fi
8031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8032printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8033	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8034	CFLAGS="$xorg_testset_save_CFLAGS"
8035fi
8036
8037if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8038	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8039		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8040	fi
8041	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8042	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8043printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8044if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8045then :
8046  printf %s "(cached) " >&6
8047else $as_nop
8048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049/* end confdefs.h.  */
8050int i;
8051_ACEOF
8052if ac_fn_c_try_compile "$LINENO"
8053then :
8054  xorg_cv_cc_flag_unused_command_line_argument=yes
8055else $as_nop
8056  xorg_cv_cc_flag_unused_command_line_argument=no
8057fi
8058rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8059fi
8060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8061printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8062	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8063	CFLAGS="$xorg_testset_save_CFLAGS"
8064fi
8065
8066found="no"
8067
8068	if test $found = "no" ; then
8069		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8070			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8071		fi
8072
8073		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8074			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8075		fi
8076
8077		CFLAGS="$CFLAGS -Werror=return-type"
8078
8079		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8080printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8081		cacheid=xorg_cv_cc_flag__Werror_return_type
8082		if eval test \${$cacheid+y}
8083then :
8084  printf %s "(cached) " >&6
8085else $as_nop
8086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8087/* end confdefs.h.  */
8088int i;
8089int
8090main (void)
8091{
8092
8093  ;
8094  return 0;
8095}
8096_ACEOF
8097if ac_fn_c_try_link "$LINENO"
8098then :
8099  eval $cacheid=yes
8100else $as_nop
8101  eval $cacheid=no
8102fi
8103rm -f core conftest.err conftest.$ac_objext conftest.beam \
8104    conftest$ac_exeext conftest.$ac_ext
8105fi
8106
8107
8108		CFLAGS="$xorg_testset_save_CFLAGS"
8109
8110		eval supported=\$$cacheid
8111		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8112printf "%s\n" "$supported" >&6; }
8113		if test "$supported" = "yes" ; then
8114			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8115			found="yes"
8116		fi
8117	fi
8118
8119	if test $found = "no" ; then
8120		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8121			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8122		fi
8123
8124		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8125			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8126		fi
8127
8128		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8129
8130		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8131printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8132		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8133		if eval test \${$cacheid+y}
8134then :
8135  printf %s "(cached) " >&6
8136else $as_nop
8137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8138/* end confdefs.h.  */
8139int i;
8140int
8141main (void)
8142{
8143
8144  ;
8145  return 0;
8146}
8147_ACEOF
8148if ac_fn_c_try_link "$LINENO"
8149then :
8150  eval $cacheid=yes
8151else $as_nop
8152  eval $cacheid=no
8153fi
8154rm -f core conftest.err conftest.$ac_objext conftest.beam \
8155    conftest$ac_exeext conftest.$ac_ext
8156fi
8157
8158
8159		CFLAGS="$xorg_testset_save_CFLAGS"
8160
8161		eval supported=\$$cacheid
8162		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8163printf "%s\n" "$supported" >&6; }
8164		if test "$supported" = "yes" ; then
8165			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8166			found="yes"
8167		fi
8168	fi
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184xorg_testset_save_CFLAGS="$CFLAGS"
8185
8186if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8187	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8188	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8189printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8190if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8191then :
8192  printf %s "(cached) " >&6
8193else $as_nop
8194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8195/* end confdefs.h.  */
8196int i;
8197_ACEOF
8198if ac_fn_c_try_compile "$LINENO"
8199then :
8200  xorg_cv_cc_flag_unknown_warning_option=yes
8201else $as_nop
8202  xorg_cv_cc_flag_unknown_warning_option=no
8203fi
8204rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8205fi
8206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8207printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8208	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8209	CFLAGS="$xorg_testset_save_CFLAGS"
8210fi
8211
8212if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8213	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8214		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8215	fi
8216	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8217	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8218printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8219if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8220then :
8221  printf %s "(cached) " >&6
8222else $as_nop
8223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8224/* end confdefs.h.  */
8225int i;
8226_ACEOF
8227if ac_fn_c_try_compile "$LINENO"
8228then :
8229  xorg_cv_cc_flag_unused_command_line_argument=yes
8230else $as_nop
8231  xorg_cv_cc_flag_unused_command_line_argument=no
8232fi
8233rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8234fi
8235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8236printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8237	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8238	CFLAGS="$xorg_testset_save_CFLAGS"
8239fi
8240
8241found="no"
8242
8243	if test $found = "no" ; then
8244		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8245			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8246		fi
8247
8248		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8249			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8250		fi
8251
8252		CFLAGS="$CFLAGS -Werror=trigraphs"
8253
8254		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8255printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8256		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8257		if eval test \${$cacheid+y}
8258then :
8259  printf %s "(cached) " >&6
8260else $as_nop
8261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262/* end confdefs.h.  */
8263int i;
8264int
8265main (void)
8266{
8267
8268  ;
8269  return 0;
8270}
8271_ACEOF
8272if ac_fn_c_try_link "$LINENO"
8273then :
8274  eval $cacheid=yes
8275else $as_nop
8276  eval $cacheid=no
8277fi
8278rm -f core conftest.err conftest.$ac_objext conftest.beam \
8279    conftest$ac_exeext conftest.$ac_ext
8280fi
8281
8282
8283		CFLAGS="$xorg_testset_save_CFLAGS"
8284
8285		eval supported=\$$cacheid
8286		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8287printf "%s\n" "$supported" >&6; }
8288		if test "$supported" = "yes" ; then
8289			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8290			found="yes"
8291		fi
8292	fi
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308xorg_testset_save_CFLAGS="$CFLAGS"
8309
8310if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8311	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8312	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8313printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8314if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8315then :
8316  printf %s "(cached) " >&6
8317else $as_nop
8318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319/* end confdefs.h.  */
8320int i;
8321_ACEOF
8322if ac_fn_c_try_compile "$LINENO"
8323then :
8324  xorg_cv_cc_flag_unknown_warning_option=yes
8325else $as_nop
8326  xorg_cv_cc_flag_unknown_warning_option=no
8327fi
8328rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8329fi
8330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8331printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8332	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8333	CFLAGS="$xorg_testset_save_CFLAGS"
8334fi
8335
8336if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8337	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8338		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8339	fi
8340	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8341	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8342printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8343if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8344then :
8345  printf %s "(cached) " >&6
8346else $as_nop
8347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348/* end confdefs.h.  */
8349int i;
8350_ACEOF
8351if ac_fn_c_try_compile "$LINENO"
8352then :
8353  xorg_cv_cc_flag_unused_command_line_argument=yes
8354else $as_nop
8355  xorg_cv_cc_flag_unused_command_line_argument=no
8356fi
8357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8358fi
8359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8360printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8361	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8362	CFLAGS="$xorg_testset_save_CFLAGS"
8363fi
8364
8365found="no"
8366
8367	if test $found = "no" ; then
8368		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8369			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8370		fi
8371
8372		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8373			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8374		fi
8375
8376		CFLAGS="$CFLAGS -Werror=array-bounds"
8377
8378		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8379printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8380		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8381		if eval test \${$cacheid+y}
8382then :
8383  printf %s "(cached) " >&6
8384else $as_nop
8385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8386/* end confdefs.h.  */
8387int i;
8388int
8389main (void)
8390{
8391
8392  ;
8393  return 0;
8394}
8395_ACEOF
8396if ac_fn_c_try_link "$LINENO"
8397then :
8398  eval $cacheid=yes
8399else $as_nop
8400  eval $cacheid=no
8401fi
8402rm -f core conftest.err conftest.$ac_objext conftest.beam \
8403    conftest$ac_exeext conftest.$ac_ext
8404fi
8405
8406
8407		CFLAGS="$xorg_testset_save_CFLAGS"
8408
8409		eval supported=\$$cacheid
8410		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8411printf "%s\n" "$supported" >&6; }
8412		if test "$supported" = "yes" ; then
8413			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8414			found="yes"
8415		fi
8416	fi
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432xorg_testset_save_CFLAGS="$CFLAGS"
8433
8434if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8435	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8436	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8437printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8438if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8439then :
8440  printf %s "(cached) " >&6
8441else $as_nop
8442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443/* end confdefs.h.  */
8444int i;
8445_ACEOF
8446if ac_fn_c_try_compile "$LINENO"
8447then :
8448  xorg_cv_cc_flag_unknown_warning_option=yes
8449else $as_nop
8450  xorg_cv_cc_flag_unknown_warning_option=no
8451fi
8452rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8453fi
8454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8455printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8456	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8457	CFLAGS="$xorg_testset_save_CFLAGS"
8458fi
8459
8460if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8461	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8462		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8463	fi
8464	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8465	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8466printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8467if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8468then :
8469  printf %s "(cached) " >&6
8470else $as_nop
8471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8472/* end confdefs.h.  */
8473int i;
8474_ACEOF
8475if ac_fn_c_try_compile "$LINENO"
8476then :
8477  xorg_cv_cc_flag_unused_command_line_argument=yes
8478else $as_nop
8479  xorg_cv_cc_flag_unused_command_line_argument=no
8480fi
8481rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8482fi
8483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8484printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8485	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8486	CFLAGS="$xorg_testset_save_CFLAGS"
8487fi
8488
8489found="no"
8490
8491	if test $found = "no" ; then
8492		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8493			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8494		fi
8495
8496		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8497			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8498		fi
8499
8500		CFLAGS="$CFLAGS -Werror=write-strings"
8501
8502		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8503printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8504		cacheid=xorg_cv_cc_flag__Werror_write_strings
8505		if eval test \${$cacheid+y}
8506then :
8507  printf %s "(cached) " >&6
8508else $as_nop
8509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8510/* end confdefs.h.  */
8511int i;
8512int
8513main (void)
8514{
8515
8516  ;
8517  return 0;
8518}
8519_ACEOF
8520if ac_fn_c_try_link "$LINENO"
8521then :
8522  eval $cacheid=yes
8523else $as_nop
8524  eval $cacheid=no
8525fi
8526rm -f core conftest.err conftest.$ac_objext conftest.beam \
8527    conftest$ac_exeext conftest.$ac_ext
8528fi
8529
8530
8531		CFLAGS="$xorg_testset_save_CFLAGS"
8532
8533		eval supported=\$$cacheid
8534		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8535printf "%s\n" "$supported" >&6; }
8536		if test "$supported" = "yes" ; then
8537			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8538			found="yes"
8539		fi
8540	fi
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556xorg_testset_save_CFLAGS="$CFLAGS"
8557
8558if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8559	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8560	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8561printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8562if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8563then :
8564  printf %s "(cached) " >&6
8565else $as_nop
8566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567/* end confdefs.h.  */
8568int i;
8569_ACEOF
8570if ac_fn_c_try_compile "$LINENO"
8571then :
8572  xorg_cv_cc_flag_unknown_warning_option=yes
8573else $as_nop
8574  xorg_cv_cc_flag_unknown_warning_option=no
8575fi
8576rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8577fi
8578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8579printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8580	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8581	CFLAGS="$xorg_testset_save_CFLAGS"
8582fi
8583
8584if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8585	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8586		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8587	fi
8588	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8589	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8590printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8591if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8592then :
8593  printf %s "(cached) " >&6
8594else $as_nop
8595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8596/* end confdefs.h.  */
8597int i;
8598_ACEOF
8599if ac_fn_c_try_compile "$LINENO"
8600then :
8601  xorg_cv_cc_flag_unused_command_line_argument=yes
8602else $as_nop
8603  xorg_cv_cc_flag_unused_command_line_argument=no
8604fi
8605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8606fi
8607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8608printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8609	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8610	CFLAGS="$xorg_testset_save_CFLAGS"
8611fi
8612
8613found="no"
8614
8615	if test $found = "no" ; then
8616		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8617			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8618		fi
8619
8620		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8621			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8622		fi
8623
8624		CFLAGS="$CFLAGS -Werror=address"
8625
8626		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8627printf %s "checking if $CC supports -Werror=address... " >&6; }
8628		cacheid=xorg_cv_cc_flag__Werror_address
8629		if eval test \${$cacheid+y}
8630then :
8631  printf %s "(cached) " >&6
8632else $as_nop
8633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8634/* end confdefs.h.  */
8635int i;
8636int
8637main (void)
8638{
8639
8640  ;
8641  return 0;
8642}
8643_ACEOF
8644if ac_fn_c_try_link "$LINENO"
8645then :
8646  eval $cacheid=yes
8647else $as_nop
8648  eval $cacheid=no
8649fi
8650rm -f core conftest.err conftest.$ac_objext conftest.beam \
8651    conftest$ac_exeext conftest.$ac_ext
8652fi
8653
8654
8655		CFLAGS="$xorg_testset_save_CFLAGS"
8656
8657		eval supported=\$$cacheid
8658		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8659printf "%s\n" "$supported" >&6; }
8660		if test "$supported" = "yes" ; then
8661			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8662			found="yes"
8663		fi
8664	fi
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680xorg_testset_save_CFLAGS="$CFLAGS"
8681
8682if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8683	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8684	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8685printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8686if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8687then :
8688  printf %s "(cached) " >&6
8689else $as_nop
8690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8691/* end confdefs.h.  */
8692int i;
8693_ACEOF
8694if ac_fn_c_try_compile "$LINENO"
8695then :
8696  xorg_cv_cc_flag_unknown_warning_option=yes
8697else $as_nop
8698  xorg_cv_cc_flag_unknown_warning_option=no
8699fi
8700rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8701fi
8702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8703printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8704	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8705	CFLAGS="$xorg_testset_save_CFLAGS"
8706fi
8707
8708if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8709	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8710		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8711	fi
8712	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8713	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8714printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8715if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8716then :
8717  printf %s "(cached) " >&6
8718else $as_nop
8719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8720/* end confdefs.h.  */
8721int i;
8722_ACEOF
8723if ac_fn_c_try_compile "$LINENO"
8724then :
8725  xorg_cv_cc_flag_unused_command_line_argument=yes
8726else $as_nop
8727  xorg_cv_cc_flag_unused_command_line_argument=no
8728fi
8729rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8730fi
8731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8732printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8733	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8734	CFLAGS="$xorg_testset_save_CFLAGS"
8735fi
8736
8737found="no"
8738
8739	if test $found = "no" ; then
8740		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8741			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8742		fi
8743
8744		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8745			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8746		fi
8747
8748		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8749
8750		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8751printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8752		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8753		if eval test \${$cacheid+y}
8754then :
8755  printf %s "(cached) " >&6
8756else $as_nop
8757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8758/* end confdefs.h.  */
8759int i;
8760int
8761main (void)
8762{
8763
8764  ;
8765  return 0;
8766}
8767_ACEOF
8768if ac_fn_c_try_link "$LINENO"
8769then :
8770  eval $cacheid=yes
8771else $as_nop
8772  eval $cacheid=no
8773fi
8774rm -f core conftest.err conftest.$ac_objext conftest.beam \
8775    conftest$ac_exeext conftest.$ac_ext
8776fi
8777
8778
8779		CFLAGS="$xorg_testset_save_CFLAGS"
8780
8781		eval supported=\$$cacheid
8782		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8783printf "%s\n" "$supported" >&6; }
8784		if test "$supported" = "yes" ; then
8785			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8786			found="yes"
8787		fi
8788	fi
8789
8790	if test $found = "no" ; then
8791		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8792			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8793		fi
8794
8795		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8796			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8797		fi
8798
8799		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8800
8801		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8802printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8803		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8804		if eval test \${$cacheid+y}
8805then :
8806  printf %s "(cached) " >&6
8807else $as_nop
8808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8809/* end confdefs.h.  */
8810int i;
8811int
8812main (void)
8813{
8814
8815  ;
8816  return 0;
8817}
8818_ACEOF
8819if ac_fn_c_try_link "$LINENO"
8820then :
8821  eval $cacheid=yes
8822else $as_nop
8823  eval $cacheid=no
8824fi
8825rm -f core conftest.err conftest.$ac_objext conftest.beam \
8826    conftest$ac_exeext conftest.$ac_ext
8827fi
8828
8829
8830		CFLAGS="$xorg_testset_save_CFLAGS"
8831
8832		eval supported=\$$cacheid
8833		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8834printf "%s\n" "$supported" >&6; }
8835		if test "$supported" = "yes" ; then
8836			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8837			found="yes"
8838		fi
8839	fi
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855xorg_testset_save_CFLAGS="$CFLAGS"
8856
8857if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8858	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8859	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8860printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8861if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8862then :
8863  printf %s "(cached) " >&6
8864else $as_nop
8865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8866/* end confdefs.h.  */
8867int i;
8868_ACEOF
8869if ac_fn_c_try_compile "$LINENO"
8870then :
8871  xorg_cv_cc_flag_unknown_warning_option=yes
8872else $as_nop
8873  xorg_cv_cc_flag_unknown_warning_option=no
8874fi
8875rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8876fi
8877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8878printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8879	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8880	CFLAGS="$xorg_testset_save_CFLAGS"
8881fi
8882
8883if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8884	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8885		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8886	fi
8887	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8888	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8889printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8890if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8891then :
8892  printf %s "(cached) " >&6
8893else $as_nop
8894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8895/* end confdefs.h.  */
8896int i;
8897_ACEOF
8898if ac_fn_c_try_compile "$LINENO"
8899then :
8900  xorg_cv_cc_flag_unused_command_line_argument=yes
8901else $as_nop
8902  xorg_cv_cc_flag_unused_command_line_argument=no
8903fi
8904rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8905fi
8906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8907printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8908	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8909	CFLAGS="$xorg_testset_save_CFLAGS"
8910fi
8911
8912found="no"
8913
8914	if test $found = "no" ; then
8915		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8916			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8917		fi
8918
8919		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8920			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8921		fi
8922
8923		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8924
8925		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8926printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8927		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8928		if eval test \${$cacheid+y}
8929then :
8930  printf %s "(cached) " >&6
8931else $as_nop
8932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8933/* end confdefs.h.  */
8934int i;
8935int
8936main (void)
8937{
8938
8939  ;
8940  return 0;
8941}
8942_ACEOF
8943if ac_fn_c_try_link "$LINENO"
8944then :
8945  eval $cacheid=yes
8946else $as_nop
8947  eval $cacheid=no
8948fi
8949rm -f core conftest.err conftest.$ac_objext conftest.beam \
8950    conftest$ac_exeext conftest.$ac_ext
8951fi
8952
8953
8954		CFLAGS="$xorg_testset_save_CFLAGS"
8955
8956		eval supported=\$$cacheid
8957		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8958printf "%s\n" "$supported" >&6; }
8959		if test "$supported" = "yes" ; then
8960			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8961			found="yes"
8962		fi
8963	fi
8964
8965 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8966else
8967{ 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
8968printf "%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;}
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982xorg_testset_save_CFLAGS="$CFLAGS"
8983
8984if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8985	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8986	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8987printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8988if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8989then :
8990  printf %s "(cached) " >&6
8991else $as_nop
8992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8993/* end confdefs.h.  */
8994int i;
8995_ACEOF
8996if ac_fn_c_try_compile "$LINENO"
8997then :
8998  xorg_cv_cc_flag_unknown_warning_option=yes
8999else $as_nop
9000  xorg_cv_cc_flag_unknown_warning_option=no
9001fi
9002rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9003fi
9004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9005printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9006	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9007	CFLAGS="$xorg_testset_save_CFLAGS"
9008fi
9009
9010if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9011	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9012		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9013	fi
9014	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9015	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9016printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9017if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9018then :
9019  printf %s "(cached) " >&6
9020else $as_nop
9021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9022/* end confdefs.h.  */
9023int i;
9024_ACEOF
9025if ac_fn_c_try_compile "$LINENO"
9026then :
9027  xorg_cv_cc_flag_unused_command_line_argument=yes
9028else $as_nop
9029  xorg_cv_cc_flag_unused_command_line_argument=no
9030fi
9031rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9032fi
9033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9034printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9035	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9036	CFLAGS="$xorg_testset_save_CFLAGS"
9037fi
9038
9039found="no"
9040
9041	if test $found = "no" ; then
9042		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9043			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9044		fi
9045
9046		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9047			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9048		fi
9049
9050		CFLAGS="$CFLAGS -Wimplicit"
9051
9052		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9053printf %s "checking if $CC supports -Wimplicit... " >&6; }
9054		cacheid=xorg_cv_cc_flag__Wimplicit
9055		if eval test \${$cacheid+y}
9056then :
9057  printf %s "(cached) " >&6
9058else $as_nop
9059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9060/* end confdefs.h.  */
9061int i;
9062int
9063main (void)
9064{
9065
9066  ;
9067  return 0;
9068}
9069_ACEOF
9070if ac_fn_c_try_link "$LINENO"
9071then :
9072  eval $cacheid=yes
9073else $as_nop
9074  eval $cacheid=no
9075fi
9076rm -f core conftest.err conftest.$ac_objext conftest.beam \
9077    conftest$ac_exeext conftest.$ac_ext
9078fi
9079
9080
9081		CFLAGS="$xorg_testset_save_CFLAGS"
9082
9083		eval supported=\$$cacheid
9084		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9085printf "%s\n" "$supported" >&6; }
9086		if test "$supported" = "yes" ; then
9087			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9088			found="yes"
9089		fi
9090	fi
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106xorg_testset_save_CFLAGS="$CFLAGS"
9107
9108if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9109	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9110	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9111printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9112if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9113then :
9114  printf %s "(cached) " >&6
9115else $as_nop
9116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117/* end confdefs.h.  */
9118int i;
9119_ACEOF
9120if ac_fn_c_try_compile "$LINENO"
9121then :
9122  xorg_cv_cc_flag_unknown_warning_option=yes
9123else $as_nop
9124  xorg_cv_cc_flag_unknown_warning_option=no
9125fi
9126rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9127fi
9128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9129printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9130	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9131	CFLAGS="$xorg_testset_save_CFLAGS"
9132fi
9133
9134if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9135	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9136		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9137	fi
9138	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9139	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9140printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9141if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9142then :
9143  printf %s "(cached) " >&6
9144else $as_nop
9145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9146/* end confdefs.h.  */
9147int i;
9148_ACEOF
9149if ac_fn_c_try_compile "$LINENO"
9150then :
9151  xorg_cv_cc_flag_unused_command_line_argument=yes
9152else $as_nop
9153  xorg_cv_cc_flag_unused_command_line_argument=no
9154fi
9155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9156fi
9157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9158printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9159	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9160	CFLAGS="$xorg_testset_save_CFLAGS"
9161fi
9162
9163found="no"
9164
9165	if test $found = "no" ; then
9166		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9167			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9168		fi
9169
9170		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9171			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9172		fi
9173
9174		CFLAGS="$CFLAGS -Wnonnull"
9175
9176		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9177printf %s "checking if $CC supports -Wnonnull... " >&6; }
9178		cacheid=xorg_cv_cc_flag__Wnonnull
9179		if eval test \${$cacheid+y}
9180then :
9181  printf %s "(cached) " >&6
9182else $as_nop
9183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9184/* end confdefs.h.  */
9185int i;
9186int
9187main (void)
9188{
9189
9190  ;
9191  return 0;
9192}
9193_ACEOF
9194if ac_fn_c_try_link "$LINENO"
9195then :
9196  eval $cacheid=yes
9197else $as_nop
9198  eval $cacheid=no
9199fi
9200rm -f core conftest.err conftest.$ac_objext conftest.beam \
9201    conftest$ac_exeext conftest.$ac_ext
9202fi
9203
9204
9205		CFLAGS="$xorg_testset_save_CFLAGS"
9206
9207		eval supported=\$$cacheid
9208		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9209printf "%s\n" "$supported" >&6; }
9210		if test "$supported" = "yes" ; then
9211			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9212			found="yes"
9213		fi
9214	fi
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230xorg_testset_save_CFLAGS="$CFLAGS"
9231
9232if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9233	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9234	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9235printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9236if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9237then :
9238  printf %s "(cached) " >&6
9239else $as_nop
9240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9241/* end confdefs.h.  */
9242int i;
9243_ACEOF
9244if ac_fn_c_try_compile "$LINENO"
9245then :
9246  xorg_cv_cc_flag_unknown_warning_option=yes
9247else $as_nop
9248  xorg_cv_cc_flag_unknown_warning_option=no
9249fi
9250rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9251fi
9252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9253printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9254	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9255	CFLAGS="$xorg_testset_save_CFLAGS"
9256fi
9257
9258if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9259	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9260		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9261	fi
9262	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9263	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9264printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9265if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9266then :
9267  printf %s "(cached) " >&6
9268else $as_nop
9269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270/* end confdefs.h.  */
9271int i;
9272_ACEOF
9273if ac_fn_c_try_compile "$LINENO"
9274then :
9275  xorg_cv_cc_flag_unused_command_line_argument=yes
9276else $as_nop
9277  xorg_cv_cc_flag_unused_command_line_argument=no
9278fi
9279rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9280fi
9281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9282printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9283	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9284	CFLAGS="$xorg_testset_save_CFLAGS"
9285fi
9286
9287found="no"
9288
9289	if test $found = "no" ; then
9290		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9291			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9292		fi
9293
9294		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9295			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9296		fi
9297
9298		CFLAGS="$CFLAGS -Winit-self"
9299
9300		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9301printf %s "checking if $CC supports -Winit-self... " >&6; }
9302		cacheid=xorg_cv_cc_flag__Winit_self
9303		if eval test \${$cacheid+y}
9304then :
9305  printf %s "(cached) " >&6
9306else $as_nop
9307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9308/* end confdefs.h.  */
9309int i;
9310int
9311main (void)
9312{
9313
9314  ;
9315  return 0;
9316}
9317_ACEOF
9318if ac_fn_c_try_link "$LINENO"
9319then :
9320  eval $cacheid=yes
9321else $as_nop
9322  eval $cacheid=no
9323fi
9324rm -f core conftest.err conftest.$ac_objext conftest.beam \
9325    conftest$ac_exeext conftest.$ac_ext
9326fi
9327
9328
9329		CFLAGS="$xorg_testset_save_CFLAGS"
9330
9331		eval supported=\$$cacheid
9332		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9333printf "%s\n" "$supported" >&6; }
9334		if test "$supported" = "yes" ; then
9335			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9336			found="yes"
9337		fi
9338	fi
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354xorg_testset_save_CFLAGS="$CFLAGS"
9355
9356if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9357	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9358	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9359printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9360if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9361then :
9362  printf %s "(cached) " >&6
9363else $as_nop
9364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9365/* end confdefs.h.  */
9366int i;
9367_ACEOF
9368if ac_fn_c_try_compile "$LINENO"
9369then :
9370  xorg_cv_cc_flag_unknown_warning_option=yes
9371else $as_nop
9372  xorg_cv_cc_flag_unknown_warning_option=no
9373fi
9374rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9375fi
9376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9377printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9378	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9379	CFLAGS="$xorg_testset_save_CFLAGS"
9380fi
9381
9382if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9383	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9384		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9385	fi
9386	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9387	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9388printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9389if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9390then :
9391  printf %s "(cached) " >&6
9392else $as_nop
9393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394/* end confdefs.h.  */
9395int i;
9396_ACEOF
9397if ac_fn_c_try_compile "$LINENO"
9398then :
9399  xorg_cv_cc_flag_unused_command_line_argument=yes
9400else $as_nop
9401  xorg_cv_cc_flag_unused_command_line_argument=no
9402fi
9403rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9404fi
9405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9406printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9407	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9408	CFLAGS="$xorg_testset_save_CFLAGS"
9409fi
9410
9411found="no"
9412
9413	if test $found = "no" ; then
9414		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9415			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9416		fi
9417
9418		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9419			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9420		fi
9421
9422		CFLAGS="$CFLAGS -Wmain"
9423
9424		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9425printf %s "checking if $CC supports -Wmain... " >&6; }
9426		cacheid=xorg_cv_cc_flag__Wmain
9427		if eval test \${$cacheid+y}
9428then :
9429  printf %s "(cached) " >&6
9430else $as_nop
9431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9432/* end confdefs.h.  */
9433int i;
9434int
9435main (void)
9436{
9437
9438  ;
9439  return 0;
9440}
9441_ACEOF
9442if ac_fn_c_try_link "$LINENO"
9443then :
9444  eval $cacheid=yes
9445else $as_nop
9446  eval $cacheid=no
9447fi
9448rm -f core conftest.err conftest.$ac_objext conftest.beam \
9449    conftest$ac_exeext conftest.$ac_ext
9450fi
9451
9452
9453		CFLAGS="$xorg_testset_save_CFLAGS"
9454
9455		eval supported=\$$cacheid
9456		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9457printf "%s\n" "$supported" >&6; }
9458		if test "$supported" = "yes" ; then
9459			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9460			found="yes"
9461		fi
9462	fi
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478xorg_testset_save_CFLAGS="$CFLAGS"
9479
9480if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9481	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9482	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9483printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9484if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9485then :
9486  printf %s "(cached) " >&6
9487else $as_nop
9488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9489/* end confdefs.h.  */
9490int i;
9491_ACEOF
9492if ac_fn_c_try_compile "$LINENO"
9493then :
9494  xorg_cv_cc_flag_unknown_warning_option=yes
9495else $as_nop
9496  xorg_cv_cc_flag_unknown_warning_option=no
9497fi
9498rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9499fi
9500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9501printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9502	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9503	CFLAGS="$xorg_testset_save_CFLAGS"
9504fi
9505
9506if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9507	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9508		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9509	fi
9510	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9511	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9512printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9513if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9514then :
9515  printf %s "(cached) " >&6
9516else $as_nop
9517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9518/* end confdefs.h.  */
9519int i;
9520_ACEOF
9521if ac_fn_c_try_compile "$LINENO"
9522then :
9523  xorg_cv_cc_flag_unused_command_line_argument=yes
9524else $as_nop
9525  xorg_cv_cc_flag_unused_command_line_argument=no
9526fi
9527rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9528fi
9529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9530printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9531	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9532	CFLAGS="$xorg_testset_save_CFLAGS"
9533fi
9534
9535found="no"
9536
9537	if test $found = "no" ; then
9538		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9539			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9540		fi
9541
9542		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9543			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9544		fi
9545
9546		CFLAGS="$CFLAGS -Wmissing-braces"
9547
9548		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9549printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9550		cacheid=xorg_cv_cc_flag__Wmissing_braces
9551		if eval test \${$cacheid+y}
9552then :
9553  printf %s "(cached) " >&6
9554else $as_nop
9555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9556/* end confdefs.h.  */
9557int i;
9558int
9559main (void)
9560{
9561
9562  ;
9563  return 0;
9564}
9565_ACEOF
9566if ac_fn_c_try_link "$LINENO"
9567then :
9568  eval $cacheid=yes
9569else $as_nop
9570  eval $cacheid=no
9571fi
9572rm -f core conftest.err conftest.$ac_objext conftest.beam \
9573    conftest$ac_exeext conftest.$ac_ext
9574fi
9575
9576
9577		CFLAGS="$xorg_testset_save_CFLAGS"
9578
9579		eval supported=\$$cacheid
9580		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9581printf "%s\n" "$supported" >&6; }
9582		if test "$supported" = "yes" ; then
9583			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9584			found="yes"
9585		fi
9586	fi
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602xorg_testset_save_CFLAGS="$CFLAGS"
9603
9604if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9605	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9606	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9607printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9608if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9609then :
9610  printf %s "(cached) " >&6
9611else $as_nop
9612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613/* end confdefs.h.  */
9614int i;
9615_ACEOF
9616if ac_fn_c_try_compile "$LINENO"
9617then :
9618  xorg_cv_cc_flag_unknown_warning_option=yes
9619else $as_nop
9620  xorg_cv_cc_flag_unknown_warning_option=no
9621fi
9622rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9623fi
9624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9625printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9626	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9627	CFLAGS="$xorg_testset_save_CFLAGS"
9628fi
9629
9630if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9631	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9632		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9633	fi
9634	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9635	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9636printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9637if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9638then :
9639  printf %s "(cached) " >&6
9640else $as_nop
9641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9642/* end confdefs.h.  */
9643int i;
9644_ACEOF
9645if ac_fn_c_try_compile "$LINENO"
9646then :
9647  xorg_cv_cc_flag_unused_command_line_argument=yes
9648else $as_nop
9649  xorg_cv_cc_flag_unused_command_line_argument=no
9650fi
9651rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9652fi
9653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9654printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9655	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9656	CFLAGS="$xorg_testset_save_CFLAGS"
9657fi
9658
9659found="no"
9660
9661	if test $found = "no" ; then
9662		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9663			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9664		fi
9665
9666		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9667			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9668		fi
9669
9670		CFLAGS="$CFLAGS -Wsequence-point"
9671
9672		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9673printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9674		cacheid=xorg_cv_cc_flag__Wsequence_point
9675		if eval test \${$cacheid+y}
9676then :
9677  printf %s "(cached) " >&6
9678else $as_nop
9679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9680/* end confdefs.h.  */
9681int i;
9682int
9683main (void)
9684{
9685
9686  ;
9687  return 0;
9688}
9689_ACEOF
9690if ac_fn_c_try_link "$LINENO"
9691then :
9692  eval $cacheid=yes
9693else $as_nop
9694  eval $cacheid=no
9695fi
9696rm -f core conftest.err conftest.$ac_objext conftest.beam \
9697    conftest$ac_exeext conftest.$ac_ext
9698fi
9699
9700
9701		CFLAGS="$xorg_testset_save_CFLAGS"
9702
9703		eval supported=\$$cacheid
9704		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9705printf "%s\n" "$supported" >&6; }
9706		if test "$supported" = "yes" ; then
9707			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9708			found="yes"
9709		fi
9710	fi
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726xorg_testset_save_CFLAGS="$CFLAGS"
9727
9728if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9729	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9730	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9731printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9732if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9733then :
9734  printf %s "(cached) " >&6
9735else $as_nop
9736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9737/* end confdefs.h.  */
9738int i;
9739_ACEOF
9740if ac_fn_c_try_compile "$LINENO"
9741then :
9742  xorg_cv_cc_flag_unknown_warning_option=yes
9743else $as_nop
9744  xorg_cv_cc_flag_unknown_warning_option=no
9745fi
9746rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9747fi
9748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9749printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9750	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9751	CFLAGS="$xorg_testset_save_CFLAGS"
9752fi
9753
9754if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9755	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9756		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9757	fi
9758	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9759	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9760printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9761if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9762then :
9763  printf %s "(cached) " >&6
9764else $as_nop
9765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9766/* end confdefs.h.  */
9767int i;
9768_ACEOF
9769if ac_fn_c_try_compile "$LINENO"
9770then :
9771  xorg_cv_cc_flag_unused_command_line_argument=yes
9772else $as_nop
9773  xorg_cv_cc_flag_unused_command_line_argument=no
9774fi
9775rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9776fi
9777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9778printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9779	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9780	CFLAGS="$xorg_testset_save_CFLAGS"
9781fi
9782
9783found="no"
9784
9785	if test $found = "no" ; then
9786		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9787			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9788		fi
9789
9790		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9791			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9792		fi
9793
9794		CFLAGS="$CFLAGS -Wreturn-type"
9795
9796		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9797printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9798		cacheid=xorg_cv_cc_flag__Wreturn_type
9799		if eval test \${$cacheid+y}
9800then :
9801  printf %s "(cached) " >&6
9802else $as_nop
9803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9804/* end confdefs.h.  */
9805int i;
9806int
9807main (void)
9808{
9809
9810  ;
9811  return 0;
9812}
9813_ACEOF
9814if ac_fn_c_try_link "$LINENO"
9815then :
9816  eval $cacheid=yes
9817else $as_nop
9818  eval $cacheid=no
9819fi
9820rm -f core conftest.err conftest.$ac_objext conftest.beam \
9821    conftest$ac_exeext conftest.$ac_ext
9822fi
9823
9824
9825		CFLAGS="$xorg_testset_save_CFLAGS"
9826
9827		eval supported=\$$cacheid
9828		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9829printf "%s\n" "$supported" >&6; }
9830		if test "$supported" = "yes" ; then
9831			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9832			found="yes"
9833		fi
9834	fi
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850xorg_testset_save_CFLAGS="$CFLAGS"
9851
9852if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9853	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9854	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9855printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9856if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9857then :
9858  printf %s "(cached) " >&6
9859else $as_nop
9860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9861/* end confdefs.h.  */
9862int i;
9863_ACEOF
9864if ac_fn_c_try_compile "$LINENO"
9865then :
9866  xorg_cv_cc_flag_unknown_warning_option=yes
9867else $as_nop
9868  xorg_cv_cc_flag_unknown_warning_option=no
9869fi
9870rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9871fi
9872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9873printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9874	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9875	CFLAGS="$xorg_testset_save_CFLAGS"
9876fi
9877
9878if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9879	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9880		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9881	fi
9882	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9883	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9884printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9885if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9886then :
9887  printf %s "(cached) " >&6
9888else $as_nop
9889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9890/* end confdefs.h.  */
9891int i;
9892_ACEOF
9893if ac_fn_c_try_compile "$LINENO"
9894then :
9895  xorg_cv_cc_flag_unused_command_line_argument=yes
9896else $as_nop
9897  xorg_cv_cc_flag_unused_command_line_argument=no
9898fi
9899rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9900fi
9901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9902printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9903	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9904	CFLAGS="$xorg_testset_save_CFLAGS"
9905fi
9906
9907found="no"
9908
9909	if test $found = "no" ; then
9910		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9911			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9912		fi
9913
9914		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9915			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9916		fi
9917
9918		CFLAGS="$CFLAGS -Wtrigraphs"
9919
9920		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9921printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9922		cacheid=xorg_cv_cc_flag__Wtrigraphs
9923		if eval test \${$cacheid+y}
9924then :
9925  printf %s "(cached) " >&6
9926else $as_nop
9927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9928/* end confdefs.h.  */
9929int i;
9930int
9931main (void)
9932{
9933
9934  ;
9935  return 0;
9936}
9937_ACEOF
9938if ac_fn_c_try_link "$LINENO"
9939then :
9940  eval $cacheid=yes
9941else $as_nop
9942  eval $cacheid=no
9943fi
9944rm -f core conftest.err conftest.$ac_objext conftest.beam \
9945    conftest$ac_exeext conftest.$ac_ext
9946fi
9947
9948
9949		CFLAGS="$xorg_testset_save_CFLAGS"
9950
9951		eval supported=\$$cacheid
9952		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9953printf "%s\n" "$supported" >&6; }
9954		if test "$supported" = "yes" ; then
9955			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9956			found="yes"
9957		fi
9958	fi
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974xorg_testset_save_CFLAGS="$CFLAGS"
9975
9976if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9977	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9978	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9979printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9980if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9981then :
9982  printf %s "(cached) " >&6
9983else $as_nop
9984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9985/* end confdefs.h.  */
9986int i;
9987_ACEOF
9988if ac_fn_c_try_compile "$LINENO"
9989then :
9990  xorg_cv_cc_flag_unknown_warning_option=yes
9991else $as_nop
9992  xorg_cv_cc_flag_unknown_warning_option=no
9993fi
9994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9995fi
9996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9997printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9998	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9999	CFLAGS="$xorg_testset_save_CFLAGS"
10000fi
10001
10002if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10003	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10004		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10005	fi
10006	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10007	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10008printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10009if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10010then :
10011  printf %s "(cached) " >&6
10012else $as_nop
10013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014/* end confdefs.h.  */
10015int i;
10016_ACEOF
10017if ac_fn_c_try_compile "$LINENO"
10018then :
10019  xorg_cv_cc_flag_unused_command_line_argument=yes
10020else $as_nop
10021  xorg_cv_cc_flag_unused_command_line_argument=no
10022fi
10023rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10024fi
10025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10026printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10027	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10028	CFLAGS="$xorg_testset_save_CFLAGS"
10029fi
10030
10031found="no"
10032
10033	if test $found = "no" ; then
10034		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10035			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10036		fi
10037
10038		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10039			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10040		fi
10041
10042		CFLAGS="$CFLAGS -Warray-bounds"
10043
10044		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10045printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10046		cacheid=xorg_cv_cc_flag__Warray_bounds
10047		if eval test \${$cacheid+y}
10048then :
10049  printf %s "(cached) " >&6
10050else $as_nop
10051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10052/* end confdefs.h.  */
10053int i;
10054int
10055main (void)
10056{
10057
10058  ;
10059  return 0;
10060}
10061_ACEOF
10062if ac_fn_c_try_link "$LINENO"
10063then :
10064  eval $cacheid=yes
10065else $as_nop
10066  eval $cacheid=no
10067fi
10068rm -f core conftest.err conftest.$ac_objext conftest.beam \
10069    conftest$ac_exeext conftest.$ac_ext
10070fi
10071
10072
10073		CFLAGS="$xorg_testset_save_CFLAGS"
10074
10075		eval supported=\$$cacheid
10076		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10077printf "%s\n" "$supported" >&6; }
10078		if test "$supported" = "yes" ; then
10079			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10080			found="yes"
10081		fi
10082	fi
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098xorg_testset_save_CFLAGS="$CFLAGS"
10099
10100if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10101	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10102	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10103printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10104if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10105then :
10106  printf %s "(cached) " >&6
10107else $as_nop
10108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10109/* end confdefs.h.  */
10110int i;
10111_ACEOF
10112if ac_fn_c_try_compile "$LINENO"
10113then :
10114  xorg_cv_cc_flag_unknown_warning_option=yes
10115else $as_nop
10116  xorg_cv_cc_flag_unknown_warning_option=no
10117fi
10118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10119fi
10120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10121printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10122	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10123	CFLAGS="$xorg_testset_save_CFLAGS"
10124fi
10125
10126if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10127	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10128		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10129	fi
10130	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10131	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10132printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10133if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10134then :
10135  printf %s "(cached) " >&6
10136else $as_nop
10137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10138/* end confdefs.h.  */
10139int i;
10140_ACEOF
10141if ac_fn_c_try_compile "$LINENO"
10142then :
10143  xorg_cv_cc_flag_unused_command_line_argument=yes
10144else $as_nop
10145  xorg_cv_cc_flag_unused_command_line_argument=no
10146fi
10147rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10148fi
10149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10150printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10151	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10152	CFLAGS="$xorg_testset_save_CFLAGS"
10153fi
10154
10155found="no"
10156
10157	if test $found = "no" ; then
10158		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10159			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10160		fi
10161
10162		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10163			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10164		fi
10165
10166		CFLAGS="$CFLAGS -Wwrite-strings"
10167
10168		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10169printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10170		cacheid=xorg_cv_cc_flag__Wwrite_strings
10171		if eval test \${$cacheid+y}
10172then :
10173  printf %s "(cached) " >&6
10174else $as_nop
10175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10176/* end confdefs.h.  */
10177int i;
10178int
10179main (void)
10180{
10181
10182  ;
10183  return 0;
10184}
10185_ACEOF
10186if ac_fn_c_try_link "$LINENO"
10187then :
10188  eval $cacheid=yes
10189else $as_nop
10190  eval $cacheid=no
10191fi
10192rm -f core conftest.err conftest.$ac_objext conftest.beam \
10193    conftest$ac_exeext conftest.$ac_ext
10194fi
10195
10196
10197		CFLAGS="$xorg_testset_save_CFLAGS"
10198
10199		eval supported=\$$cacheid
10200		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10201printf "%s\n" "$supported" >&6; }
10202		if test "$supported" = "yes" ; then
10203			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10204			found="yes"
10205		fi
10206	fi
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222xorg_testset_save_CFLAGS="$CFLAGS"
10223
10224if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10225	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10226	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10227printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10228if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10229then :
10230  printf %s "(cached) " >&6
10231else $as_nop
10232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10233/* end confdefs.h.  */
10234int i;
10235_ACEOF
10236if ac_fn_c_try_compile "$LINENO"
10237then :
10238  xorg_cv_cc_flag_unknown_warning_option=yes
10239else $as_nop
10240  xorg_cv_cc_flag_unknown_warning_option=no
10241fi
10242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10243fi
10244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10245printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10246	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10247	CFLAGS="$xorg_testset_save_CFLAGS"
10248fi
10249
10250if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10251	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10252		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10253	fi
10254	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10255	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10256printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10257if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10258then :
10259  printf %s "(cached) " >&6
10260else $as_nop
10261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10262/* end confdefs.h.  */
10263int i;
10264_ACEOF
10265if ac_fn_c_try_compile "$LINENO"
10266then :
10267  xorg_cv_cc_flag_unused_command_line_argument=yes
10268else $as_nop
10269  xorg_cv_cc_flag_unused_command_line_argument=no
10270fi
10271rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10272fi
10273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10274printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10275	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10276	CFLAGS="$xorg_testset_save_CFLAGS"
10277fi
10278
10279found="no"
10280
10281	if test $found = "no" ; then
10282		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10283			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10284		fi
10285
10286		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10287			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10288		fi
10289
10290		CFLAGS="$CFLAGS -Waddress"
10291
10292		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10293printf %s "checking if $CC supports -Waddress... " >&6; }
10294		cacheid=xorg_cv_cc_flag__Waddress
10295		if eval test \${$cacheid+y}
10296then :
10297  printf %s "(cached) " >&6
10298else $as_nop
10299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10300/* end confdefs.h.  */
10301int i;
10302int
10303main (void)
10304{
10305
10306  ;
10307  return 0;
10308}
10309_ACEOF
10310if ac_fn_c_try_link "$LINENO"
10311then :
10312  eval $cacheid=yes
10313else $as_nop
10314  eval $cacheid=no
10315fi
10316rm -f core conftest.err conftest.$ac_objext conftest.beam \
10317    conftest$ac_exeext conftest.$ac_ext
10318fi
10319
10320
10321		CFLAGS="$xorg_testset_save_CFLAGS"
10322
10323		eval supported=\$$cacheid
10324		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10325printf "%s\n" "$supported" >&6; }
10326		if test "$supported" = "yes" ; then
10327			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10328			found="yes"
10329		fi
10330	fi
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346xorg_testset_save_CFLAGS="$CFLAGS"
10347
10348if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10349	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10350	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10351printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10352if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10353then :
10354  printf %s "(cached) " >&6
10355else $as_nop
10356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10357/* end confdefs.h.  */
10358int i;
10359_ACEOF
10360if ac_fn_c_try_compile "$LINENO"
10361then :
10362  xorg_cv_cc_flag_unknown_warning_option=yes
10363else $as_nop
10364  xorg_cv_cc_flag_unknown_warning_option=no
10365fi
10366rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10367fi
10368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10369printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10370	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10371	CFLAGS="$xorg_testset_save_CFLAGS"
10372fi
10373
10374if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10375	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10376		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10377	fi
10378	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10379	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10380printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10381if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10382then :
10383  printf %s "(cached) " >&6
10384else $as_nop
10385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10386/* end confdefs.h.  */
10387int i;
10388_ACEOF
10389if ac_fn_c_try_compile "$LINENO"
10390then :
10391  xorg_cv_cc_flag_unused_command_line_argument=yes
10392else $as_nop
10393  xorg_cv_cc_flag_unused_command_line_argument=no
10394fi
10395rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10396fi
10397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10398printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10399	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10400	CFLAGS="$xorg_testset_save_CFLAGS"
10401fi
10402
10403found="no"
10404
10405	if test $found = "no" ; then
10406		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10407			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10408		fi
10409
10410		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10411			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10412		fi
10413
10414		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10415
10416		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10417printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10418		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10419		if eval test \${$cacheid+y}
10420then :
10421  printf %s "(cached) " >&6
10422else $as_nop
10423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10424/* end confdefs.h.  */
10425int i;
10426int
10427main (void)
10428{
10429
10430  ;
10431  return 0;
10432}
10433_ACEOF
10434if ac_fn_c_try_link "$LINENO"
10435then :
10436  eval $cacheid=yes
10437else $as_nop
10438  eval $cacheid=no
10439fi
10440rm -f core conftest.err conftest.$ac_objext conftest.beam \
10441    conftest$ac_exeext conftest.$ac_ext
10442fi
10443
10444
10445		CFLAGS="$xorg_testset_save_CFLAGS"
10446
10447		eval supported=\$$cacheid
10448		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10449printf "%s\n" "$supported" >&6; }
10450		if test "$supported" = "yes" ; then
10451			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10452			found="yes"
10453		fi
10454	fi
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470xorg_testset_save_CFLAGS="$CFLAGS"
10471
10472if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10473	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10474	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10475printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10476if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10477then :
10478  printf %s "(cached) " >&6
10479else $as_nop
10480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10481/* end confdefs.h.  */
10482int i;
10483_ACEOF
10484if ac_fn_c_try_compile "$LINENO"
10485then :
10486  xorg_cv_cc_flag_unknown_warning_option=yes
10487else $as_nop
10488  xorg_cv_cc_flag_unknown_warning_option=no
10489fi
10490rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10491fi
10492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10493printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10494	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10495	CFLAGS="$xorg_testset_save_CFLAGS"
10496fi
10497
10498if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10499	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10500		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10501	fi
10502	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10503	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10504printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10505if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10506then :
10507  printf %s "(cached) " >&6
10508else $as_nop
10509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10510/* end confdefs.h.  */
10511int i;
10512_ACEOF
10513if ac_fn_c_try_compile "$LINENO"
10514then :
10515  xorg_cv_cc_flag_unused_command_line_argument=yes
10516else $as_nop
10517  xorg_cv_cc_flag_unused_command_line_argument=no
10518fi
10519rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10520fi
10521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10522printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10523	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10524	CFLAGS="$xorg_testset_save_CFLAGS"
10525fi
10526
10527found="no"
10528
10529	if test $found = "no" ; then
10530		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10531			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10532		fi
10533
10534		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10535			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10536		fi
10537
10538		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10539
10540		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10541printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10542		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10543		if eval test \${$cacheid+y}
10544then :
10545  printf %s "(cached) " >&6
10546else $as_nop
10547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10548/* end confdefs.h.  */
10549int i;
10550int
10551main (void)
10552{
10553
10554  ;
10555  return 0;
10556}
10557_ACEOF
10558if ac_fn_c_try_link "$LINENO"
10559then :
10560  eval $cacheid=yes
10561else $as_nop
10562  eval $cacheid=no
10563fi
10564rm -f core conftest.err conftest.$ac_objext conftest.beam \
10565    conftest$ac_exeext conftest.$ac_ext
10566fi
10567
10568
10569		CFLAGS="$xorg_testset_save_CFLAGS"
10570
10571		eval supported=\$$cacheid
10572		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10573printf "%s\n" "$supported" >&6; }
10574		if test "$supported" = "yes" ; then
10575			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10576			found="yes"
10577		fi
10578	fi
10579
10580
10581fi
10582
10583
10584
10585
10586
10587
10588
10589		CWARNFLAGS="$BASE_CFLAGS"
10590		if  test "x$GCC" = xyes ; then
10591		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10592		fi
10593
10594
10595
10596
10597
10598
10599
10600
10601# Check whether --enable-strict-compilation was given.
10602if test ${enable_strict_compilation+y}
10603then :
10604  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10605else $as_nop
10606  STRICT_COMPILE=no
10607fi
10608
10609
10610
10611
10612
10613
10614STRICT_CFLAGS=""
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628xorg_testset_save_CFLAGS="$CFLAGS"
10629
10630if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10631	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10632	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10633printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10634if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10635then :
10636  printf %s "(cached) " >&6
10637else $as_nop
10638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10639/* end confdefs.h.  */
10640int i;
10641_ACEOF
10642if ac_fn_c_try_compile "$LINENO"
10643then :
10644  xorg_cv_cc_flag_unknown_warning_option=yes
10645else $as_nop
10646  xorg_cv_cc_flag_unknown_warning_option=no
10647fi
10648rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10649fi
10650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10651printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10652	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10653	CFLAGS="$xorg_testset_save_CFLAGS"
10654fi
10655
10656if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10657	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10658		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10659	fi
10660	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10661	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10662printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10663if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10664then :
10665  printf %s "(cached) " >&6
10666else $as_nop
10667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668/* end confdefs.h.  */
10669int i;
10670_ACEOF
10671if ac_fn_c_try_compile "$LINENO"
10672then :
10673  xorg_cv_cc_flag_unused_command_line_argument=yes
10674else $as_nop
10675  xorg_cv_cc_flag_unused_command_line_argument=no
10676fi
10677rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10678fi
10679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10680printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10681	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10682	CFLAGS="$xorg_testset_save_CFLAGS"
10683fi
10684
10685found="no"
10686
10687	if test $found = "no" ; then
10688		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10689			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10690		fi
10691
10692		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10693			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10694		fi
10695
10696		CFLAGS="$CFLAGS -pedantic"
10697
10698		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10699printf %s "checking if $CC supports -pedantic... " >&6; }
10700		cacheid=xorg_cv_cc_flag__pedantic
10701		if eval test \${$cacheid+y}
10702then :
10703  printf %s "(cached) " >&6
10704else $as_nop
10705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10706/* end confdefs.h.  */
10707int i;
10708int
10709main (void)
10710{
10711
10712  ;
10713  return 0;
10714}
10715_ACEOF
10716if ac_fn_c_try_link "$LINENO"
10717then :
10718  eval $cacheid=yes
10719else $as_nop
10720  eval $cacheid=no
10721fi
10722rm -f core conftest.err conftest.$ac_objext conftest.beam \
10723    conftest$ac_exeext conftest.$ac_ext
10724fi
10725
10726
10727		CFLAGS="$xorg_testset_save_CFLAGS"
10728
10729		eval supported=\$$cacheid
10730		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10731printf "%s\n" "$supported" >&6; }
10732		if test "$supported" = "yes" ; then
10733			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10734			found="yes"
10735		fi
10736	fi
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752xorg_testset_save_CFLAGS="$CFLAGS"
10753
10754if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10755	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10756	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10757printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10758if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10759then :
10760  printf %s "(cached) " >&6
10761else $as_nop
10762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10763/* end confdefs.h.  */
10764int i;
10765_ACEOF
10766if ac_fn_c_try_compile "$LINENO"
10767then :
10768  xorg_cv_cc_flag_unknown_warning_option=yes
10769else $as_nop
10770  xorg_cv_cc_flag_unknown_warning_option=no
10771fi
10772rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10773fi
10774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10775printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10776	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10777	CFLAGS="$xorg_testset_save_CFLAGS"
10778fi
10779
10780if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10781	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10782		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10783	fi
10784	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10785	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10786printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10787if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10788then :
10789  printf %s "(cached) " >&6
10790else $as_nop
10791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10792/* end confdefs.h.  */
10793int i;
10794_ACEOF
10795if ac_fn_c_try_compile "$LINENO"
10796then :
10797  xorg_cv_cc_flag_unused_command_line_argument=yes
10798else $as_nop
10799  xorg_cv_cc_flag_unused_command_line_argument=no
10800fi
10801rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10802fi
10803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10804printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10805	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10806	CFLAGS="$xorg_testset_save_CFLAGS"
10807fi
10808
10809found="no"
10810
10811	if test $found = "no" ; then
10812		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10813			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10814		fi
10815
10816		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10817			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10818		fi
10819
10820		CFLAGS="$CFLAGS -Werror"
10821
10822		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10823printf %s "checking if $CC supports -Werror... " >&6; }
10824		cacheid=xorg_cv_cc_flag__Werror
10825		if eval test \${$cacheid+y}
10826then :
10827  printf %s "(cached) " >&6
10828else $as_nop
10829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10830/* end confdefs.h.  */
10831int i;
10832int
10833main (void)
10834{
10835
10836  ;
10837  return 0;
10838}
10839_ACEOF
10840if ac_fn_c_try_link "$LINENO"
10841then :
10842  eval $cacheid=yes
10843else $as_nop
10844  eval $cacheid=no
10845fi
10846rm -f core conftest.err conftest.$ac_objext conftest.beam \
10847    conftest$ac_exeext conftest.$ac_ext
10848fi
10849
10850
10851		CFLAGS="$xorg_testset_save_CFLAGS"
10852
10853		eval supported=\$$cacheid
10854		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10855printf "%s\n" "$supported" >&6; }
10856		if test "$supported" = "yes" ; then
10857			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10858			found="yes"
10859		fi
10860	fi
10861
10862	if test $found = "no" ; then
10863		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10864			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10865		fi
10866
10867		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10868			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10869		fi
10870
10871		CFLAGS="$CFLAGS -errwarn"
10872
10873		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10874printf %s "checking if $CC supports -errwarn... " >&6; }
10875		cacheid=xorg_cv_cc_flag__errwarn
10876		if eval test \${$cacheid+y}
10877then :
10878  printf %s "(cached) " >&6
10879else $as_nop
10880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10881/* end confdefs.h.  */
10882int i;
10883int
10884main (void)
10885{
10886
10887  ;
10888  return 0;
10889}
10890_ACEOF
10891if ac_fn_c_try_link "$LINENO"
10892then :
10893  eval $cacheid=yes
10894else $as_nop
10895  eval $cacheid=no
10896fi
10897rm -f core conftest.err conftest.$ac_objext conftest.beam \
10898    conftest$ac_exeext conftest.$ac_ext
10899fi
10900
10901
10902		CFLAGS="$xorg_testset_save_CFLAGS"
10903
10904		eval supported=\$$cacheid
10905		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10906printf "%s\n" "$supported" >&6; }
10907		if test "$supported" = "yes" ; then
10908			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10909			found="yes"
10910		fi
10911	fi
10912
10913
10914
10915# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10916# activate it with -Werror, so we add it here explicitly.
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930xorg_testset_save_CFLAGS="$CFLAGS"
10931
10932if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10933	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10934	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10935printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10936if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10937then :
10938  printf %s "(cached) " >&6
10939else $as_nop
10940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10941/* end confdefs.h.  */
10942int i;
10943_ACEOF
10944if ac_fn_c_try_compile "$LINENO"
10945then :
10946  xorg_cv_cc_flag_unknown_warning_option=yes
10947else $as_nop
10948  xorg_cv_cc_flag_unknown_warning_option=no
10949fi
10950rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10951fi
10952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10953printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10954	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10955	CFLAGS="$xorg_testset_save_CFLAGS"
10956fi
10957
10958if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10959	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10960		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10961	fi
10962	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10963	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10964printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10965if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10966then :
10967  printf %s "(cached) " >&6
10968else $as_nop
10969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10970/* end confdefs.h.  */
10971int i;
10972_ACEOF
10973if ac_fn_c_try_compile "$LINENO"
10974then :
10975  xorg_cv_cc_flag_unused_command_line_argument=yes
10976else $as_nop
10977  xorg_cv_cc_flag_unused_command_line_argument=no
10978fi
10979rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10980fi
10981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10982printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10983	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10984	CFLAGS="$xorg_testset_save_CFLAGS"
10985fi
10986
10987found="no"
10988
10989	if test $found = "no" ; then
10990		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10991			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10992		fi
10993
10994		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10995			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10996		fi
10997
10998		CFLAGS="$CFLAGS -Werror=attributes"
10999
11000		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11001printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11002		cacheid=xorg_cv_cc_flag__Werror_attributes
11003		if eval test \${$cacheid+y}
11004then :
11005  printf %s "(cached) " >&6
11006else $as_nop
11007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11008/* end confdefs.h.  */
11009int i;
11010int
11011main (void)
11012{
11013
11014  ;
11015  return 0;
11016}
11017_ACEOF
11018if ac_fn_c_try_link "$LINENO"
11019then :
11020  eval $cacheid=yes
11021else $as_nop
11022  eval $cacheid=no
11023fi
11024rm -f core conftest.err conftest.$ac_objext conftest.beam \
11025    conftest$ac_exeext conftest.$ac_ext
11026fi
11027
11028
11029		CFLAGS="$xorg_testset_save_CFLAGS"
11030
11031		eval supported=\$$cacheid
11032		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11033printf "%s\n" "$supported" >&6; }
11034		if test "$supported" = "yes" ; then
11035			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11036			found="yes"
11037		fi
11038	fi
11039
11040
11041
11042if test "x$STRICT_COMPILE" = "xyes"; then
11043    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11044    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11045fi
11046
11047
11048
11049
11050
11051
11052cat >>confdefs.h <<_ACEOF
11053#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11054_ACEOF
11055
11056	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11057	if test "x$PVM" = "x"; then
11058		PVM="0"
11059	fi
11060
11061printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11062
11063	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11064	if test "x$PVP" = "x"; then
11065		PVP="0"
11066	fi
11067
11068printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11069
11070
11071
11072CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11073mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11074|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11075touch \$(top_srcdir)/ChangeLog; \
11076echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11077
11078
11079
11080
11081macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11082INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11083mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11084|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11085touch \$(top_srcdir)/INSTALL; \
11086echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11087
11088
11089
11090
11091
11092
11093case $host_os in
11094    solaris*)
11095        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11096        # check for a man page file found in later versions that use
11097        # traditional section numbers instead
11098        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11099printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11100if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11101then :
11102  printf %s "(cached) " >&6
11103else $as_nop
11104  test "$cross_compiling" = yes &&
11105  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11106if test -r "/usr/share/man/man7/attributes.7"; then
11107  ac_cv_file__usr_share_man_man7_attributes_7=yes
11108else
11109  ac_cv_file__usr_share_man_man7_attributes_7=no
11110fi
11111fi
11112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11113printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11114if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11115then :
11116  SYSV_MAN_SECTIONS=false
11117else $as_nop
11118  SYSV_MAN_SECTIONS=true
11119fi
11120
11121        ;;
11122    *) SYSV_MAN_SECTIONS=false ;;
11123esac
11124
11125if test x$APP_MAN_SUFFIX = x    ; then
11126    APP_MAN_SUFFIX=1
11127fi
11128if test x$APP_MAN_DIR = x    ; then
11129    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11130fi
11131
11132if test x$LIB_MAN_SUFFIX = x    ; then
11133    LIB_MAN_SUFFIX=3
11134fi
11135if test x$LIB_MAN_DIR = x    ; then
11136    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11137fi
11138
11139if test x$FILE_MAN_SUFFIX = x    ; then
11140    case $SYSV_MAN_SECTIONS in
11141	true)				FILE_MAN_SUFFIX=4  ;;
11142	*)				FILE_MAN_SUFFIX=5  ;;
11143    esac
11144fi
11145if test x$FILE_MAN_DIR = x    ; then
11146    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11147fi
11148
11149if test x$MISC_MAN_SUFFIX = x    ; then
11150    case $SYSV_MAN_SECTIONS in
11151	true)				MISC_MAN_SUFFIX=5  ;;
11152	*)				MISC_MAN_SUFFIX=7  ;;
11153    esac
11154fi
11155if test x$MISC_MAN_DIR = x    ; then
11156    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11157fi
11158
11159if test x$DRIVER_MAN_SUFFIX = x    ; then
11160    case $SYSV_MAN_SECTIONS in
11161	true)				DRIVER_MAN_SUFFIX=7  ;;
11162	*)				DRIVER_MAN_SUFFIX=4  ;;
11163    esac
11164fi
11165if test x$DRIVER_MAN_DIR = x    ; then
11166    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11167fi
11168
11169if test x$ADMIN_MAN_SUFFIX = x    ; then
11170    case $SYSV_MAN_SECTIONS in
11171	true)				ADMIN_MAN_SUFFIX=1m ;;
11172	*)				ADMIN_MAN_SUFFIX=8  ;;
11173    esac
11174fi
11175if test x$ADMIN_MAN_DIR = x    ; then
11176    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11177fi
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193XORG_MAN_PAGE="X Version 11"
11194
11195MAN_SUBSTS="\
11196	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11197	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11198	-e 's|__xservername__|Xorg|g' \
11199	-e 's|__xconfigfile__|xorg.conf|g' \
11200	-e 's|__projectroot__|\$(prefix)|g' \
11201	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11202	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11203	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11204	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11205	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11206	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11207	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11208
11209
11210
11211# Check whether --enable-silent-rules was given.
11212if test ${enable_silent_rules+y}
11213then :
11214  enableval=$enable_silent_rules;
11215fi
11216
11217case $enable_silent_rules in # (((
11218  yes) AM_DEFAULT_VERBOSITY=0;;
11219   no) AM_DEFAULT_VERBOSITY=1;;
11220    *) AM_DEFAULT_VERBOSITY=0;;
11221esac
11222am_make=${MAKE-make}
11223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11224printf %s "checking whether $am_make supports nested variables... " >&6; }
11225if test ${am_cv_make_support_nested_variables+y}
11226then :
11227  printf %s "(cached) " >&6
11228else $as_nop
11229  if printf "%s\n" 'TRUE=$(BAR$(V))
11230BAR0=false
11231BAR1=true
11232V=1
11233am__doit:
11234	@$(TRUE)
11235.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11236  am_cv_make_support_nested_variables=yes
11237else
11238  am_cv_make_support_nested_variables=no
11239fi
11240fi
11241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11242printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11243if test $am_cv_make_support_nested_variables = yes; then
11244    AM_V='$(V)'
11245  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11246else
11247  AM_V=$AM_DEFAULT_VERBOSITY
11248  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11249fi
11250AM_BACKSLASH='\'
11251
11252
11253
11254ac_ext=c
11255ac_cpp='$CPP $CPPFLAGS'
11256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11258ac_compiler_gnu=$ac_cv_c_compiler_gnu
11259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11260printf %s "checking how to run the C preprocessor... " >&6; }
11261# On Suns, sometimes $CPP names a directory.
11262if test -n "$CPP" && test -d "$CPP"; then
11263  CPP=
11264fi
11265if test -z "$CPP"; then
11266  if test ${ac_cv_prog_CPP+y}
11267then :
11268  printf %s "(cached) " >&6
11269else $as_nop
11270      # Double quotes because $CC needs to be expanded
11271    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
11272    do
11273      ac_preproc_ok=false
11274for ac_c_preproc_warn_flag in '' yes
11275do
11276  # Use a header file that comes with gcc, so configuring glibc
11277  # with a fresh cross-compiler works.
11278  # On the NeXT, cc -E runs the code through the compiler's parser,
11279  # not just through cpp. "Syntax error" is here to catch this case.
11280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11281/* end confdefs.h.  */
11282#include <limits.h>
11283		     Syntax error
11284_ACEOF
11285if ac_fn_c_try_cpp "$LINENO"
11286then :
11287
11288else $as_nop
11289  # Broken: fails on valid input.
11290continue
11291fi
11292rm -f conftest.err conftest.i conftest.$ac_ext
11293
11294  # OK, works on sane cases.  Now check whether nonexistent headers
11295  # can be detected and how.
11296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11297/* end confdefs.h.  */
11298#include <ac_nonexistent.h>
11299_ACEOF
11300if ac_fn_c_try_cpp "$LINENO"
11301then :
11302  # Broken: success on invalid input.
11303continue
11304else $as_nop
11305  # Passes both tests.
11306ac_preproc_ok=:
11307break
11308fi
11309rm -f conftest.err conftest.i conftest.$ac_ext
11310
11311done
11312# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11313rm -f conftest.i conftest.err conftest.$ac_ext
11314if $ac_preproc_ok
11315then :
11316  break
11317fi
11318
11319    done
11320    ac_cv_prog_CPP=$CPP
11321
11322fi
11323  CPP=$ac_cv_prog_CPP
11324else
11325  ac_cv_prog_CPP=$CPP
11326fi
11327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11328printf "%s\n" "$CPP" >&6; }
11329ac_preproc_ok=false
11330for ac_c_preproc_warn_flag in '' yes
11331do
11332  # Use a header file that comes with gcc, so configuring glibc
11333  # with a fresh cross-compiler works.
11334  # On the NeXT, cc -E runs the code through the compiler's parser,
11335  # not just through cpp. "Syntax error" is here to catch this case.
11336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11337/* end confdefs.h.  */
11338#include <limits.h>
11339		     Syntax error
11340_ACEOF
11341if ac_fn_c_try_cpp "$LINENO"
11342then :
11343
11344else $as_nop
11345  # Broken: fails on valid input.
11346continue
11347fi
11348rm -f conftest.err conftest.i conftest.$ac_ext
11349
11350  # OK, works on sane cases.  Now check whether nonexistent headers
11351  # can be detected and how.
11352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11353/* end confdefs.h.  */
11354#include <ac_nonexistent.h>
11355_ACEOF
11356if ac_fn_c_try_cpp "$LINENO"
11357then :
11358  # Broken: success on invalid input.
11359continue
11360else $as_nop
11361  # Passes both tests.
11362ac_preproc_ok=:
11363break
11364fi
11365rm -f conftest.err conftest.i conftest.$ac_ext
11366
11367done
11368# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11369rm -f conftest.i conftest.err conftest.$ac_ext
11370if $ac_preproc_ok
11371then :
11372
11373else $as_nop
11374  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11375printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11376as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
11377See \`config.log' for more details" "$LINENO" 5; }
11378fi
11379
11380ac_ext=c
11381ac_cpp='$CPP $CPPFLAGS'
11382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11384ac_compiler_gnu=$ac_cv_c_compiler_gnu
11385
11386
11387
11388if test -n "$ac_tool_prefix"; then
11389  # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
11390set dummy ${ac_tool_prefix}cpp; ac_word=$2
11391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11392printf %s "checking for $ac_word... " >&6; }
11393if test ${ac_cv_path_RAWCPP+y}
11394then :
11395  printf %s "(cached) " >&6
11396else $as_nop
11397  case $RAWCPP in
11398  [\\/]* | ?:[\\/]*)
11399  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
11400  ;;
11401  *)
11402  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11403as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
11404for as_dir in $as_dummy
11405do
11406  IFS=$as_save_IFS
11407  case $as_dir in #(((
11408    '') as_dir=./ ;;
11409    */) ;;
11410    *) as_dir=$as_dir/ ;;
11411  esac
11412    for ac_exec_ext in '' $ac_executable_extensions; do
11413  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11414    ac_cv_path_RAWCPP="$as_dir$ac_word$ac_exec_ext"
11415    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11416    break 2
11417  fi
11418done
11419  done
11420IFS=$as_save_IFS
11421
11422  ;;
11423esac
11424fi
11425RAWCPP=$ac_cv_path_RAWCPP
11426if test -n "$RAWCPP"; then
11427  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
11428printf "%s\n" "$RAWCPP" >&6; }
11429else
11430  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11431printf "%s\n" "no" >&6; }
11432fi
11433
11434
11435fi
11436if test -z "$ac_cv_path_RAWCPP"; then
11437  ac_pt_RAWCPP=$RAWCPP
11438  # Extract the first word of "cpp", so it can be a program name with args.
11439set dummy cpp; ac_word=$2
11440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11441printf %s "checking for $ac_word... " >&6; }
11442if test ${ac_cv_path_ac_pt_RAWCPP+y}
11443then :
11444  printf %s "(cached) " >&6
11445else $as_nop
11446  case $ac_pt_RAWCPP in
11447  [\\/]* | ?:[\\/]*)
11448  ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path.
11449  ;;
11450  *)
11451  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11452as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
11453for as_dir in $as_dummy
11454do
11455  IFS=$as_save_IFS
11456  case $as_dir in #(((
11457    '') as_dir=./ ;;
11458    */) ;;
11459    *) as_dir=$as_dir/ ;;
11460  esac
11461    for ac_exec_ext in '' $ac_executable_extensions; do
11462  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11463    ac_cv_path_ac_pt_RAWCPP="$as_dir$ac_word$ac_exec_ext"
11464    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11465    break 2
11466  fi
11467done
11468  done
11469IFS=$as_save_IFS
11470
11471  ;;
11472esac
11473fi
11474ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP
11475if test -n "$ac_pt_RAWCPP"; then
11476  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5
11477printf "%s\n" "$ac_pt_RAWCPP" >&6; }
11478else
11479  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11480printf "%s\n" "no" >&6; }
11481fi
11482
11483  if test "x$ac_pt_RAWCPP" = x; then
11484    RAWCPP="${CPP}"
11485  else
11486    case $cross_compiling:$ac_tool_warned in
11487yes:)
11488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11489printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11490ac_tool_warned=yes ;;
11491esac
11492    RAWCPP=$ac_pt_RAWCPP
11493  fi
11494else
11495  RAWCPP="$ac_cv_path_RAWCPP"
11496fi
11497
11498
11499# Check for flag to avoid builtin definitions - assumes unix is predefined,
11500# which is not the best choice for supporting other OS'es, but covers most
11501# of the ones we need for now.
11502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
11503printf %s "checking if $RAWCPP requires -undef... " >&6; }
11504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11505/* end confdefs.h.  */
11506Does cpp redefine unix ?
11507_ACEOF
11508if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
11509	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11510printf "%s\n" "no" >&6; }
11511else
11512	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
11513		RAWCPPFLAGS=-undef
11514		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11515printf "%s\n" "yes" >&6; }
11516	# under Cygwin unix is still defined even with -undef
11517	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
11518		RAWCPPFLAGS="-undef -ansi"
11519		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
11520printf "%s\n" "yes, with -ansi" >&6; }
11521	else
11522		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
11523	fi
11524fi
11525rm -f conftest.$ac_ext
11526
11527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
11528printf %s "checking if $RAWCPP requires -traditional... " >&6; }
11529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11530/* end confdefs.h.  */
11531Does cpp preserve   "whitespace"?
11532_ACEOF
11533if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
11534	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11535printf "%s\n" "no" >&6; }
11536else
11537	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
11538		TRADITIONALCPPFLAGS="-traditional"
11539		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
11540		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11541printf "%s\n" "yes" >&6; }
11542	else
11543		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
11544	fi
11545fi
11546rm -f conftest.$ac_ext
11547
11548
11549
11550CPP_PROGRAM=${RAWCPP}
11551
11552
11553ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
11554if test "x$ac_cv_func_mkstemp" = xyes
11555then :
11556  printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
11557
11558fi
11559
11560
11561# Extract the first word of "perl", so it can be a program name with args.
11562set dummy perl; ac_word=$2
11563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11564printf %s "checking for $ac_word... " >&6; }
11565if test ${ac_cv_prog_HAS_PERL+y}
11566then :
11567  printf %s "(cached) " >&6
11568else $as_nop
11569  if test -n "$HAS_PERL"; then
11570  ac_cv_prog_HAS_PERL="$HAS_PERL" # Let the user override the test.
11571else
11572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11573for as_dir in $PATH
11574do
11575  IFS=$as_save_IFS
11576  case $as_dir in #(((
11577    '') as_dir=./ ;;
11578    */) ;;
11579    *) as_dir=$as_dir/ ;;
11580  esac
11581    for ac_exec_ext in '' $ac_executable_extensions; do
11582  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11583    ac_cv_prog_HAS_PERL="yes"
11584    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11585    break 2
11586  fi
11587done
11588  done
11589IFS=$as_save_IFS
11590
11591fi
11592fi
11593HAS_PERL=$ac_cv_prog_HAS_PERL
11594if test -n "$HAS_PERL"; then
11595  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAS_PERL" >&5
11596printf "%s\n" "$HAS_PERL" >&6; }
11597else
11598  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11599printf "%s\n" "no" >&6; }
11600fi
11601
11602
11603 if test "x$HAS_PERL" = xyes; then
11604  HAS_PERL_TRUE=
11605  HAS_PERL_FALSE='#'
11606else
11607  HAS_PERL_TRUE='#'
11608  HAS_PERL_FALSE=
11609fi
11610
11611
11612
11613
11614DEFAULT_XCONFDIR="${libdir}/X11/config"
11615
11616# Check whether --with-config-dir was given.
11617if test ${with_config_dir+y}
11618then :
11619  withval=$with_config_dir; XCONFDIR="$withval"
11620else $as_nop
11621  XCONFDIR="$DEFAULT_XCONFDIR"
11622fi
11623
11624
11625
11626DEFAULT_PREPROCESSCMD_MKDEPEND="gcc -E"
11627
11628# Check whether --with-script-preproc-cmd was given.
11629if test ${with_script_preproc_cmd+y}
11630then :
11631  withval=$with_script_preproc_cmd; PREPROCESSCMD_MKDEPEND="$withval"
11632else $as_nop
11633  PREPROCESSCMD_MKDEPEND="$DEFAULT_PREPROCESSCMD_MKDEPEND"
11634fi
11635
11636
11637
11638DEFAULT_ARCMD="ar clq"
11639
11640# Check whether --with-create-lib-cmd was given.
11641if test ${with_create_lib_cmd+y}
11642then :
11643  withval=$with_create_lib_cmd; ARCMD="$withval"
11644else $as_nop
11645  ARCMD="$DEFAULT_ARCMD"
11646fi
11647
11648
11649
11650DEFAULT_RANLIB="ranlib"
11651
11652# Check whether --with-clean-lib-cmd was given.
11653if test ${with_clean_lib_cmd+y}
11654then :
11655  withval=$with_clean_lib_cmd; RANLIB="$withval"
11656else $as_nop
11657  RANLIB="$DEFAULT_RANLIB"
11658fi
11659
11660
11661
11662# Check whether --enable-revpath was given.
11663if test ${enable_revpath+y}
11664then :
11665  enableval=$enable_revpath; BUILD_REVPATH="$enableval"
11666else $as_nop
11667  BUILD_REVPATH=yes
11668fi
11669
11670 if test "x$BUILD_REVPATH" = xyes; then
11671  BUILD_REVPATH_TRUE=
11672  BUILD_REVPATH_FALSE='#'
11673else
11674  BUILD_REVPATH_TRUE='#'
11675  BUILD_REVPATH_FALSE=
11676fi
11677
11678
11679# Check whether --enable-makeg was given.
11680if test ${enable_makeg+y}
11681then :
11682  enableval=$enable_makeg; BUILD_MAKEG="$enableval"
11683else $as_nop
11684  BUILD_MAKEG=yes
11685fi
11686
11687 if test "x$BUILD_MAKEG" = xyes; then
11688  BUILD_MAKEG_TRUE=
11689  BUILD_MAKEG_FALSE='#'
11690else
11691  BUILD_MAKEG_TRUE='#'
11692  BUILD_MAKEG_FALSE=
11693fi
11694
11695
11696# Check whether --enable-xmkmf was given.
11697if test ${enable_xmkmf+y}
11698then :
11699  enableval=$enable_xmkmf; BUILD_XMKMF="$enableval"
11700else $as_nop
11701  BUILD_XMKMF=yes
11702fi
11703
11704 if test "x$BUILD_XMKMF" = xyes; then
11705  BUILD_XMKMF_TRUE=
11706  BUILD_XMKMF_FALSE='#'
11707else
11708  BUILD_XMKMF_TRUE='#'
11709  BUILD_XMKMF_FALSE=
11710fi
11711
11712
11713# Check whether --enable-ccmakedep was given.
11714if test ${enable_ccmakedep+y}
11715then :
11716  enableval=$enable_ccmakedep; BUILD_CCMAKEDEP="$enableval"
11717else $as_nop
11718  BUILD_CCMAKEDEP=yes
11719fi
11720
11721 if test "x$BUILD_CCMAKEDEP" = xyes; then
11722  BUILD_CCMAKEDEP_TRUE=
11723  BUILD_CCMAKEDEP_FALSE='#'
11724else
11725  BUILD_CCMAKEDEP_TRUE='#'
11726  BUILD_CCMAKEDEP_FALSE=
11727fi
11728
11729
11730# Check whether --enable-mergelib was given.
11731if test ${enable_mergelib+y}
11732then :
11733  enableval=$enable_mergelib; BUILD_MERGELIB="$enableval"
11734else $as_nop
11735  BUILD_MERGELIB=yes
11736fi
11737
11738 if test "x$BUILD_MERGELIB" = xyes; then
11739  BUILD_MERGELIB_TRUE=
11740  BUILD_MERGELIB_FALSE='#'
11741else
11742  BUILD_MERGELIB_TRUE='#'
11743  BUILD_MERGELIB_FALSE=
11744fi
11745
11746
11747# Check whether --enable-mkdirhier was given.
11748if test ${enable_mkdirhier+y}
11749then :
11750  enableval=$enable_mkdirhier; BUILD_MKDIRHIER="$enableval"
11751else $as_nop
11752  BUILD_MKDIRHIER=yes
11753fi
11754
11755 if test "x$BUILD_MKDIRHIER" = xyes; then
11756  BUILD_MKDIRHIER_TRUE=
11757  BUILD_MKDIRHIER_FALSE='#'
11758else
11759  BUILD_MKDIRHIER_TRUE='#'
11760  BUILD_MKDIRHIER_FALSE=
11761fi
11762
11763
11764# Check whether --enable-cleanlinks was given.
11765if test ${enable_cleanlinks+y}
11766then :
11767  enableval=$enable_cleanlinks; BUILD_CLEANLINKS="$enableval"
11768else $as_nop
11769  BUILD_CLEANLINKS=yes
11770fi
11771
11772 if test "x$BUILD_CLEANLINKS" = xyes; then
11773  BUILD_CLEANLINKS_TRUE=
11774  BUILD_CLEANLINKS_FALSE='#'
11775else
11776  BUILD_CLEANLINKS_TRUE='#'
11777  BUILD_CLEANLINKS_FALSE=
11778fi
11779
11780
11781# Check whether --enable-mkhtmlindex was given.
11782if test ${enable_mkhtmlindex+y}
11783then :
11784  enableval=$enable_mkhtmlindex; BUILD_MKHTMLINDEX="$enableval"
11785else $as_nop
11786  BUILD_MKHTMLINDEX=yes
11787fi
11788
11789 if test "x$BUILD_MKHTMLINDEX" = xyes; then
11790  BUILD_MKHTMLINDEX_TRUE=
11791  BUILD_MKHTMLINDEX_FALSE='#'
11792else
11793  BUILD_MKHTMLINDEX_TRUE='#'
11794  BUILD_MKHTMLINDEX_FALSE=
11795fi
11796
11797
11798# Checks for pkg-config packages
11799
11800pkg_failed=no
11801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XPROTO" >&5
11802printf %s "checking for XPROTO... " >&6; }
11803
11804if test -n "$XPROTO_CFLAGS"; then
11805    pkg_cv_XPROTO_CFLAGS="$XPROTO_CFLAGS"
11806 elif test -n "$PKG_CONFIG"; then
11807    if test -n "$PKG_CONFIG" && \
11808    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
11809  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
11810  ac_status=$?
11811  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11812  test $ac_status = 0; }; then
11813  pkg_cv_XPROTO_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
11814		      test "x$?" != "x0" && pkg_failed=yes
11815else
11816  pkg_failed=yes
11817fi
11818 else
11819    pkg_failed=untried
11820fi
11821if test -n "$XPROTO_LIBS"; then
11822    pkg_cv_XPROTO_LIBS="$XPROTO_LIBS"
11823 elif test -n "$PKG_CONFIG"; then
11824    if test -n "$PKG_CONFIG" && \
11825    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
11826  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
11827  ac_status=$?
11828  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11829  test $ac_status = 0; }; then
11830  pkg_cv_XPROTO_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
11831		      test "x$?" != "x0" && pkg_failed=yes
11832else
11833  pkg_failed=yes
11834fi
11835 else
11836    pkg_failed=untried
11837fi
11838
11839
11840
11841if test $pkg_failed = yes; then
11842   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11843printf "%s\n" "no" >&6; }
11844
11845if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11846        _pkg_short_errors_supported=yes
11847else
11848        _pkg_short_errors_supported=no
11849fi
11850        if test $_pkg_short_errors_supported = yes; then
11851	        XPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto" 2>&1`
11852        else
11853	        XPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto" 2>&1`
11854        fi
11855	# Put the nasty error message in config.log where it belongs
11856	echo "$XPROTO_PKG_ERRORS" >&5
11857
11858	as_fn_error $? "Package requirements (xproto) were not met:
11859
11860$XPROTO_PKG_ERRORS
11861
11862Consider adjusting the PKG_CONFIG_PATH environment variable if you
11863installed software in a non-standard prefix.
11864
11865Alternatively, you may set the environment variables XPROTO_CFLAGS
11866and XPROTO_LIBS to avoid the need to call pkg-config.
11867See the pkg-config man page for more details." "$LINENO" 5
11868elif test $pkg_failed = untried; then
11869     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11870printf "%s\n" "no" >&6; }
11871	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11872printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11873as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11874is in your PATH or set the PKG_CONFIG environment variable to the full
11875path to pkg-config.
11876
11877Alternatively, you may set the environment variables XPROTO_CFLAGS
11878and XPROTO_LIBS to avoid the need to call pkg-config.
11879See the pkg-config man page for more details.
11880
11881To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11882See \`config.log' for more details" "$LINENO" 5; }
11883else
11884	XPROTO_CFLAGS=$pkg_cv_XPROTO_CFLAGS
11885	XPROTO_LIBS=$pkg_cv_XPROTO_LIBS
11886        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11887printf "%s\n" "yes" >&6; }
11888
11889fi
11890
11891ac_config_files="$ac_config_files Makefile"
11892
11893cat >confcache <<\_ACEOF
11894# This file is a shell script that caches the results of configure
11895# tests run on this system so they can be shared between configure
11896# scripts and configure runs, see configure's option --config-cache.
11897# It is not useful on other systems.  If it contains results you don't
11898# want to keep, you may remove or edit it.
11899#
11900# config.status only pays attention to the cache file if you give it
11901# the --recheck option to rerun configure.
11902#
11903# `ac_cv_env_foo' variables (set or unset) will be overridden when
11904# loading this file, other *unset* `ac_cv_foo' will be assigned the
11905# following values.
11906
11907_ACEOF
11908
11909# The following way of writing the cache mishandles newlines in values,
11910# but we know of no workaround that is simple, portable, and efficient.
11911# So, we kill variables containing newlines.
11912# Ultrix sh set writes to stderr and can't be redirected directly,
11913# and sets the high bit in the cache file unless we assign to the vars.
11914(
11915  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11916    eval ac_val=\$$ac_var
11917    case $ac_val in #(
11918    *${as_nl}*)
11919      case $ac_var in #(
11920      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11921printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11922      esac
11923      case $ac_var in #(
11924      _ | IFS | as_nl) ;; #(
11925      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11926      *) { eval $ac_var=; unset $ac_var;} ;;
11927      esac ;;
11928    esac
11929  done
11930
11931  (set) 2>&1 |
11932    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11933    *${as_nl}ac_space=\ *)
11934      # `set' does not quote correctly, so add quotes: double-quote
11935      # substitution turns \\\\ into \\, and sed turns \\ into \.
11936      sed -n \
11937	"s/'/'\\\\''/g;
11938	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11939      ;; #(
11940    *)
11941      # `set' quotes correctly as required by POSIX, so do not add quotes.
11942      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11943      ;;
11944    esac |
11945    sort
11946) |
11947  sed '
11948     /^ac_cv_env_/b end
11949     t clear
11950     :clear
11951     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11952     t end
11953     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11954     :end' >>confcache
11955if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11956  if test -w "$cache_file"; then
11957    if test "x$cache_file" != "x/dev/null"; then
11958      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11959printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11960      if test ! -f "$cache_file" || test -h "$cache_file"; then
11961	cat confcache >"$cache_file"
11962      else
11963        case $cache_file in #(
11964        */* | ?:*)
11965	  mv -f confcache "$cache_file"$$ &&
11966	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11967        *)
11968	  mv -f confcache "$cache_file" ;;
11969	esac
11970      fi
11971    fi
11972  else
11973    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11974printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11975  fi
11976fi
11977rm -f confcache
11978
11979test "x$prefix" = xNONE && prefix=$ac_default_prefix
11980# Let make expand exec_prefix.
11981test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11982
11983DEFS=-DHAVE_CONFIG_H
11984
11985ac_libobjs=
11986ac_ltlibobjs=
11987U=
11988for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11989  # 1. Remove the extension, and $U if already installed.
11990  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11991  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11992  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11993  #    will be set to the directory where LIBOBJS objects are built.
11994  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11995  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11996done
11997LIBOBJS=$ac_libobjs
11998
11999LTLIBOBJS=$ac_ltlibobjs
12000
12001
12002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12003printf %s "checking that generated files are newer than configure... " >&6; }
12004   if test -n "$am_sleep_pid"; then
12005     # Hide warnings about reused PIDs.
12006     wait $am_sleep_pid 2>/dev/null
12007   fi
12008   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12009printf "%s\n" "done" >&6; }
12010 if test -n "$EXEEXT"; then
12011  am__EXEEXT_TRUE=
12012  am__EXEEXT_FALSE='#'
12013else
12014  am__EXEEXT_TRUE='#'
12015  am__EXEEXT_FALSE=
12016fi
12017
12018if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12019  as_fn_error $? "conditional \"AMDEP\" was never defined.
12020Usually this means the macro was only invoked conditionally." "$LINENO" 5
12021fi
12022if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12023  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12024Usually this means the macro was only invoked conditionally." "$LINENO" 5
12025fi
12026if test -z "${HAS_PERL_TRUE}" && test -z "${HAS_PERL_FALSE}"; then
12027  as_fn_error $? "conditional \"HAS_PERL\" was never defined.
12028Usually this means the macro was only invoked conditionally." "$LINENO" 5
12029fi
12030if test -z "${BUILD_REVPATH_TRUE}" && test -z "${BUILD_REVPATH_FALSE}"; then
12031  as_fn_error $? "conditional \"BUILD_REVPATH\" was never defined.
12032Usually this means the macro was only invoked conditionally." "$LINENO" 5
12033fi
12034if test -z "${BUILD_MAKEG_TRUE}" && test -z "${BUILD_MAKEG_FALSE}"; then
12035  as_fn_error $? "conditional \"BUILD_MAKEG\" was never defined.
12036Usually this means the macro was only invoked conditionally." "$LINENO" 5
12037fi
12038if test -z "${BUILD_XMKMF_TRUE}" && test -z "${BUILD_XMKMF_FALSE}"; then
12039  as_fn_error $? "conditional \"BUILD_XMKMF\" was never defined.
12040Usually this means the macro was only invoked conditionally." "$LINENO" 5
12041fi
12042if test -z "${BUILD_CCMAKEDEP_TRUE}" && test -z "${BUILD_CCMAKEDEP_FALSE}"; then
12043  as_fn_error $? "conditional \"BUILD_CCMAKEDEP\" was never defined.
12044Usually this means the macro was only invoked conditionally." "$LINENO" 5
12045fi
12046if test -z "${BUILD_MERGELIB_TRUE}" && test -z "${BUILD_MERGELIB_FALSE}"; then
12047  as_fn_error $? "conditional \"BUILD_MERGELIB\" was never defined.
12048Usually this means the macro was only invoked conditionally." "$LINENO" 5
12049fi
12050if test -z "${BUILD_MKDIRHIER_TRUE}" && test -z "${BUILD_MKDIRHIER_FALSE}"; then
12051  as_fn_error $? "conditional \"BUILD_MKDIRHIER\" was never defined.
12052Usually this means the macro was only invoked conditionally." "$LINENO" 5
12053fi
12054if test -z "${BUILD_CLEANLINKS_TRUE}" && test -z "${BUILD_CLEANLINKS_FALSE}"; then
12055  as_fn_error $? "conditional \"BUILD_CLEANLINKS\" was never defined.
12056Usually this means the macro was only invoked conditionally." "$LINENO" 5
12057fi
12058if test -z "${BUILD_MKHTMLINDEX_TRUE}" && test -z "${BUILD_MKHTMLINDEX_FALSE}"; then
12059  as_fn_error $? "conditional \"BUILD_MKHTMLINDEX\" was never defined.
12060Usually this means the macro was only invoked conditionally." "$LINENO" 5
12061fi
12062
12063: "${CONFIG_STATUS=./config.status}"
12064ac_write_fail=0
12065ac_clean_files_save=$ac_clean_files
12066ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12068printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12069as_write_fail=0
12070cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12071#! $SHELL
12072# Generated by $as_me.
12073# Run this file to recreate the current configuration.
12074# Compiler output produced by configure, useful for debugging
12075# configure, is in config.log if it exists.
12076
12077debug=false
12078ac_cs_recheck=false
12079ac_cs_silent=false
12080
12081SHELL=\${CONFIG_SHELL-$SHELL}
12082export SHELL
12083_ASEOF
12084cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12085## -------------------- ##
12086## M4sh Initialization. ##
12087## -------------------- ##
12088
12089# Be more Bourne compatible
12090DUALCASE=1; export DUALCASE # for MKS sh
12091as_nop=:
12092if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12093then :
12094  emulate sh
12095  NULLCMD=:
12096  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12097  # is contrary to our usage.  Disable this feature.
12098  alias -g '${1+"$@"}'='"$@"'
12099  setopt NO_GLOB_SUBST
12100else $as_nop
12101  case `(set -o) 2>/dev/null` in #(
12102  *posix*) :
12103    set -o posix ;; #(
12104  *) :
12105     ;;
12106esac
12107fi
12108
12109
12110
12111# Reset variables that may have inherited troublesome values from
12112# the environment.
12113
12114# IFS needs to be set, to space, tab, and newline, in precisely that order.
12115# (If _AS_PATH_WALK were called with IFS unset, it would have the
12116# side effect of setting IFS to empty, thus disabling word splitting.)
12117# Quoting is to prevent editors from complaining about space-tab.
12118as_nl='
12119'
12120export as_nl
12121IFS=" ""	$as_nl"
12122
12123PS1='$ '
12124PS2='> '
12125PS4='+ '
12126
12127# Ensure predictable behavior from utilities with locale-dependent output.
12128LC_ALL=C
12129export LC_ALL
12130LANGUAGE=C
12131export LANGUAGE
12132
12133# We cannot yet rely on "unset" to work, but we need these variables
12134# to be unset--not just set to an empty or harmless value--now, to
12135# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
12136# also avoids known problems related to "unset" and subshell syntax
12137# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12138for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12139do eval test \${$as_var+y} \
12140  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12141done
12142
12143# Ensure that fds 0, 1, and 2 are open.
12144if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12145if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12146if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
12147
12148# The user is always right.
12149if ${PATH_SEPARATOR+false} :; then
12150  PATH_SEPARATOR=:
12151  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12152    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12153      PATH_SEPARATOR=';'
12154  }
12155fi
12156
12157
12158# Find who we are.  Look in the path if we contain no directory separator.
12159as_myself=
12160case $0 in #((
12161  *[\\/]* ) as_myself=$0 ;;
12162  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12163for as_dir in $PATH
12164do
12165  IFS=$as_save_IFS
12166  case $as_dir in #(((
12167    '') as_dir=./ ;;
12168    */) ;;
12169    *) as_dir=$as_dir/ ;;
12170  esac
12171    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12172  done
12173IFS=$as_save_IFS
12174
12175     ;;
12176esac
12177# We did not find ourselves, most probably we were run as `sh COMMAND'
12178# in which case we are not to be found in the path.
12179if test "x$as_myself" = x; then
12180  as_myself=$0
12181fi
12182if test ! -f "$as_myself"; then
12183  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12184  exit 1
12185fi
12186
12187
12188
12189# as_fn_error STATUS ERROR [LINENO LOG_FD]
12190# ----------------------------------------
12191# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12192# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12193# script with STATUS, using 1 if that was 0.
12194as_fn_error ()
12195{
12196  as_status=$1; test $as_status -eq 0 && as_status=1
12197  if test "$4"; then
12198    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12199    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12200  fi
12201  printf "%s\n" "$as_me: error: $2" >&2
12202  as_fn_exit $as_status
12203} # as_fn_error
12204
12205
12206
12207# as_fn_set_status STATUS
12208# -----------------------
12209# Set $? to STATUS, without forking.
12210as_fn_set_status ()
12211{
12212  return $1
12213} # as_fn_set_status
12214
12215# as_fn_exit STATUS
12216# -----------------
12217# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12218as_fn_exit ()
12219{
12220  set +e
12221  as_fn_set_status $1
12222  exit $1
12223} # as_fn_exit
12224
12225# as_fn_unset VAR
12226# ---------------
12227# Portably unset VAR.
12228as_fn_unset ()
12229{
12230  { eval $1=; unset $1;}
12231}
12232as_unset=as_fn_unset
12233
12234# as_fn_append VAR VALUE
12235# ----------------------
12236# Append the text in VALUE to the end of the definition contained in VAR. Take
12237# advantage of any shell optimizations that allow amortized linear growth over
12238# repeated appends, instead of the typical quadratic growth present in naive
12239# implementations.
12240if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12241then :
12242  eval 'as_fn_append ()
12243  {
12244    eval $1+=\$2
12245  }'
12246else $as_nop
12247  as_fn_append ()
12248  {
12249    eval $1=\$$1\$2
12250  }
12251fi # as_fn_append
12252
12253# as_fn_arith ARG...
12254# ------------------
12255# Perform arithmetic evaluation on the ARGs, and store the result in the
12256# global $as_val. Take advantage of shells that can avoid forks. The arguments
12257# must be portable across $(()) and expr.
12258if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12259then :
12260  eval 'as_fn_arith ()
12261  {
12262    as_val=$(( $* ))
12263  }'
12264else $as_nop
12265  as_fn_arith ()
12266  {
12267    as_val=`expr "$@" || test $? -eq 1`
12268  }
12269fi # as_fn_arith
12270
12271
12272if expr a : '\(a\)' >/dev/null 2>&1 &&
12273   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12274  as_expr=expr
12275else
12276  as_expr=false
12277fi
12278
12279if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12280  as_basename=basename
12281else
12282  as_basename=false
12283fi
12284
12285if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12286  as_dirname=dirname
12287else
12288  as_dirname=false
12289fi
12290
12291as_me=`$as_basename -- "$0" ||
12292$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12293	 X"$0" : 'X\(//\)$' \| \
12294	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12295printf "%s\n" X/"$0" |
12296    sed '/^.*\/\([^/][^/]*\)\/*$/{
12297	    s//\1/
12298	    q
12299	  }
12300	  /^X\/\(\/\/\)$/{
12301	    s//\1/
12302	    q
12303	  }
12304	  /^X\/\(\/\).*/{
12305	    s//\1/
12306	    q
12307	  }
12308	  s/.*/./; q'`
12309
12310# Avoid depending upon Character Ranges.
12311as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12312as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12313as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12314as_cr_digits='0123456789'
12315as_cr_alnum=$as_cr_Letters$as_cr_digits
12316
12317
12318# Determine whether it's possible to make 'echo' print without a newline.
12319# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12320# for compatibility with existing Makefiles.
12321ECHO_C= ECHO_N= ECHO_T=
12322case `echo -n x` in #(((((
12323-n*)
12324  case `echo 'xy\c'` in
12325  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12326  xy)  ECHO_C='\c';;
12327  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12328       ECHO_T='	';;
12329  esac;;
12330*)
12331  ECHO_N='-n';;
12332esac
12333
12334# For backward compatibility with old third-party macros, we provide
12335# the shell variables $as_echo and $as_echo_n.  New code should use
12336# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12337as_echo='printf %s\n'
12338as_echo_n='printf %s'
12339
12340rm -f conf$$ conf$$.exe conf$$.file
12341if test -d conf$$.dir; then
12342  rm -f conf$$.dir/conf$$.file
12343else
12344  rm -f conf$$.dir
12345  mkdir conf$$.dir 2>/dev/null
12346fi
12347if (echo >conf$$.file) 2>/dev/null; then
12348  if ln -s conf$$.file conf$$ 2>/dev/null; then
12349    as_ln_s='ln -s'
12350    # ... but there are two gotchas:
12351    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12352    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12353    # In both cases, we have to default to `cp -pR'.
12354    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12355      as_ln_s='cp -pR'
12356  elif ln conf$$.file conf$$ 2>/dev/null; then
12357    as_ln_s=ln
12358  else
12359    as_ln_s='cp -pR'
12360  fi
12361else
12362  as_ln_s='cp -pR'
12363fi
12364rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12365rmdir conf$$.dir 2>/dev/null
12366
12367
12368# as_fn_mkdir_p
12369# -------------
12370# Create "$as_dir" as a directory, including parents if necessary.
12371as_fn_mkdir_p ()
12372{
12373
12374  case $as_dir in #(
12375  -*) as_dir=./$as_dir;;
12376  esac
12377  test -d "$as_dir" || eval $as_mkdir_p || {
12378    as_dirs=
12379    while :; do
12380      case $as_dir in #(
12381      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12382      *) as_qdir=$as_dir;;
12383      esac
12384      as_dirs="'$as_qdir' $as_dirs"
12385      as_dir=`$as_dirname -- "$as_dir" ||
12386$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12387	 X"$as_dir" : 'X\(//\)[^/]' \| \
12388	 X"$as_dir" : 'X\(//\)$' \| \
12389	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12390printf "%s\n" X"$as_dir" |
12391    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12392	    s//\1/
12393	    q
12394	  }
12395	  /^X\(\/\/\)[^/].*/{
12396	    s//\1/
12397	    q
12398	  }
12399	  /^X\(\/\/\)$/{
12400	    s//\1/
12401	    q
12402	  }
12403	  /^X\(\/\).*/{
12404	    s//\1/
12405	    q
12406	  }
12407	  s/.*/./; q'`
12408      test -d "$as_dir" && break
12409    done
12410    test -z "$as_dirs" || eval "mkdir $as_dirs"
12411  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12412
12413
12414} # as_fn_mkdir_p
12415if mkdir -p . 2>/dev/null; then
12416  as_mkdir_p='mkdir -p "$as_dir"'
12417else
12418  test -d ./-p && rmdir ./-p
12419  as_mkdir_p=false
12420fi
12421
12422
12423# as_fn_executable_p FILE
12424# -----------------------
12425# Test if FILE is an executable regular file.
12426as_fn_executable_p ()
12427{
12428  test -f "$1" && test -x "$1"
12429} # as_fn_executable_p
12430as_test_x='test -x'
12431as_executable_p=as_fn_executable_p
12432
12433# Sed expression to map a string onto a valid CPP name.
12434as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12435
12436# Sed expression to map a string onto a valid variable name.
12437as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12438
12439
12440exec 6>&1
12441## ----------------------------------- ##
12442## Main body of $CONFIG_STATUS script. ##
12443## ----------------------------------- ##
12444_ASEOF
12445test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12446
12447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12448# Save the log message, to keep $0 and so on meaningful, and to
12449# report actual input values of CONFIG_FILES etc. instead of their
12450# values after options handling.
12451ac_log="
12452This file was extended by imake $as_me 1.0.9, which was
12453generated by GNU Autoconf 2.71.  Invocation command line was
12454
12455  CONFIG_FILES    = $CONFIG_FILES
12456  CONFIG_HEADERS  = $CONFIG_HEADERS
12457  CONFIG_LINKS    = $CONFIG_LINKS
12458  CONFIG_COMMANDS = $CONFIG_COMMANDS
12459  $ $0 $@
12460
12461on `(hostname || uname -n) 2>/dev/null | sed 1q`
12462"
12463
12464_ACEOF
12465
12466case $ac_config_files in *"
12467"*) set x $ac_config_files; shift; ac_config_files=$*;;
12468esac
12469
12470case $ac_config_headers in *"
12471"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12472esac
12473
12474
12475cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12476# Files that config.status was made for.
12477config_files="$ac_config_files"
12478config_headers="$ac_config_headers"
12479config_commands="$ac_config_commands"
12480
12481_ACEOF
12482
12483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12484ac_cs_usage="\
12485\`$as_me' instantiates files and other configuration actions
12486from templates according to the current configuration.  Unless the files
12487and actions are specified as TAGs, all are instantiated by default.
12488
12489Usage: $0 [OPTION]... [TAG]...
12490
12491  -h, --help       print this help, then exit
12492  -V, --version    print version number and configuration settings, then exit
12493      --config     print configuration, then exit
12494  -q, --quiet, --silent
12495                   do not print progress messages
12496  -d, --debug      don't remove temporary files
12497      --recheck    update $as_me by reconfiguring in the same conditions
12498      --file=FILE[:TEMPLATE]
12499                   instantiate the configuration file FILE
12500      --header=FILE[:TEMPLATE]
12501                   instantiate the configuration header FILE
12502
12503Configuration files:
12504$config_files
12505
12506Configuration headers:
12507$config_headers
12508
12509Configuration commands:
12510$config_commands
12511
12512Report bugs to <https://gitlab.freedesktop.org/xorg/util/imake/-/issues>."
12513
12514_ACEOF
12515ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12516ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12517cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12518ac_cs_config='$ac_cs_config_escaped'
12519ac_cs_version="\\
12520imake config.status 1.0.9
12521configured by $0, generated by GNU Autoconf 2.71,
12522  with options \\"\$ac_cs_config\\"
12523
12524Copyright (C) 2021 Free Software Foundation, Inc.
12525This config.status script is free software; the Free Software Foundation
12526gives unlimited permission to copy, distribute and modify it."
12527
12528ac_pwd='$ac_pwd'
12529srcdir='$srcdir'
12530INSTALL='$INSTALL'
12531MKDIR_P='$MKDIR_P'
12532AWK='$AWK'
12533test -n "\$AWK" || AWK=awk
12534_ACEOF
12535
12536cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12537# The default lists apply if the user does not specify any file.
12538ac_need_defaults=:
12539while test $# != 0
12540do
12541  case $1 in
12542  --*=?*)
12543    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12544    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12545    ac_shift=:
12546    ;;
12547  --*=)
12548    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12549    ac_optarg=
12550    ac_shift=:
12551    ;;
12552  *)
12553    ac_option=$1
12554    ac_optarg=$2
12555    ac_shift=shift
12556    ;;
12557  esac
12558
12559  case $ac_option in
12560  # Handling of the options.
12561  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12562    ac_cs_recheck=: ;;
12563  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12564    printf "%s\n" "$ac_cs_version"; exit ;;
12565  --config | --confi | --conf | --con | --co | --c )
12566    printf "%s\n" "$ac_cs_config"; exit ;;
12567  --debug | --debu | --deb | --de | --d | -d )
12568    debug=: ;;
12569  --file | --fil | --fi | --f )
12570    $ac_shift
12571    case $ac_optarg in
12572    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12573    '') as_fn_error $? "missing file argument" ;;
12574    esac
12575    as_fn_append CONFIG_FILES " '$ac_optarg'"
12576    ac_need_defaults=false;;
12577  --header | --heade | --head | --hea )
12578    $ac_shift
12579    case $ac_optarg in
12580    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12581    esac
12582    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12583    ac_need_defaults=false;;
12584  --he | --h)
12585    # Conflict between --help and --header
12586    as_fn_error $? "ambiguous option: \`$1'
12587Try \`$0 --help' for more information.";;
12588  --help | --hel | -h )
12589    printf "%s\n" "$ac_cs_usage"; exit ;;
12590  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12591  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12592    ac_cs_silent=: ;;
12593
12594  # This is an error.
12595  -*) as_fn_error $? "unrecognized option: \`$1'
12596Try \`$0 --help' for more information." ;;
12597
12598  *) as_fn_append ac_config_targets " $1"
12599     ac_need_defaults=false ;;
12600
12601  esac
12602  shift
12603done
12604
12605ac_configure_extra_args=
12606
12607if $ac_cs_silent; then
12608  exec 6>/dev/null
12609  ac_configure_extra_args="$ac_configure_extra_args --silent"
12610fi
12611
12612_ACEOF
12613cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12614if \$ac_cs_recheck; then
12615  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12616  shift
12617  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12618  CONFIG_SHELL='$SHELL'
12619  export CONFIG_SHELL
12620  exec "\$@"
12621fi
12622
12623_ACEOF
12624cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12625exec 5>>config.log
12626{
12627  echo
12628  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12629## Running $as_me. ##
12630_ASBOX
12631  printf "%s\n" "$ac_log"
12632} >&5
12633
12634_ACEOF
12635cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12636#
12637# INIT-COMMANDS
12638#
12639AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12640
12641_ACEOF
12642
12643cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12644
12645# Handling of arguments.
12646for ac_config_target in $ac_config_targets
12647do
12648  case $ac_config_target in
12649    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12650    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12651    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12652
12653  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12654  esac
12655done
12656
12657
12658# If the user did not use the arguments to specify the items to instantiate,
12659# then the envvar interface is used.  Set only those that are not.
12660# We use the long form for the default assignment because of an extremely
12661# bizarre bug on SunOS 4.1.3.
12662if $ac_need_defaults; then
12663  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12664  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12665  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12666fi
12667
12668# Have a temporary directory for convenience.  Make it in the build tree
12669# simply because there is no reason against having it here, and in addition,
12670# creating and moving files from /tmp can sometimes cause problems.
12671# Hook for its removal unless debugging.
12672# Note that there is a small window in which the directory will not be cleaned:
12673# after its creation but before its name has been assigned to `$tmp'.
12674$debug ||
12675{
12676  tmp= ac_tmp=
12677  trap 'exit_status=$?
12678  : "${ac_tmp:=$tmp}"
12679  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12680' 0
12681  trap 'as_fn_exit 1' 1 2 13 15
12682}
12683# Create a (secure) tmp directory for tmp files.
12684
12685{
12686  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12687  test -d "$tmp"
12688}  ||
12689{
12690  tmp=./conf$$-$RANDOM
12691  (umask 077 && mkdir "$tmp")
12692} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12693ac_tmp=$tmp
12694
12695# Set up the scripts for CONFIG_FILES section.
12696# No need to generate them if there are no CONFIG_FILES.
12697# This happens for instance with `./config.status config.h'.
12698if test -n "$CONFIG_FILES"; then
12699
12700
12701ac_cr=`echo X | tr X '\015'`
12702# On cygwin, bash can eat \r inside `` if the user requested igncr.
12703# But we know of no other shell where ac_cr would be empty at this
12704# point, so we can use a bashism as a fallback.
12705if test "x$ac_cr" = x; then
12706  eval ac_cr=\$\'\\r\'
12707fi
12708ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12709if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12710  ac_cs_awk_cr='\\r'
12711else
12712  ac_cs_awk_cr=$ac_cr
12713fi
12714
12715echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12716_ACEOF
12717
12718
12719{
12720  echo "cat >conf$$subs.awk <<_ACEOF" &&
12721  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12722  echo "_ACEOF"
12723} >conf$$subs.sh ||
12724  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12725ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12726ac_delim='%!_!# '
12727for ac_last_try in false false false false false :; do
12728  . ./conf$$subs.sh ||
12729    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12730
12731  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12732  if test $ac_delim_n = $ac_delim_num; then
12733    break
12734  elif $ac_last_try; then
12735    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12736  else
12737    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12738  fi
12739done
12740rm -f conf$$subs.sh
12741
12742cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12743cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12744_ACEOF
12745sed -n '
12746h
12747s/^/S["/; s/!.*/"]=/
12748p
12749g
12750s/^[^!]*!//
12751:repl
12752t repl
12753s/'"$ac_delim"'$//
12754t delim
12755:nl
12756h
12757s/\(.\{148\}\)..*/\1/
12758t more1
12759s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12760p
12761n
12762b repl
12763:more1
12764s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12765p
12766g
12767s/.\{148\}//
12768t nl
12769:delim
12770h
12771s/\(.\{148\}\)..*/\1/
12772t more2
12773s/["\\]/\\&/g; s/^/"/; s/$/"/
12774p
12775b
12776:more2
12777s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12778p
12779g
12780s/.\{148\}//
12781t delim
12782' <conf$$subs.awk | sed '
12783/^[^""]/{
12784  N
12785  s/\n//
12786}
12787' >>$CONFIG_STATUS || ac_write_fail=1
12788rm -f conf$$subs.awk
12789cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12790_ACAWK
12791cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12792  for (key in S) S_is_set[key] = 1
12793  FS = ""
12794
12795}
12796{
12797  line = $ 0
12798  nfields = split(line, field, "@")
12799  substed = 0
12800  len = length(field[1])
12801  for (i = 2; i < nfields; i++) {
12802    key = field[i]
12803    keylen = length(key)
12804    if (S_is_set[key]) {
12805      value = S[key]
12806      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12807      len += length(value) + length(field[++i])
12808      substed = 1
12809    } else
12810      len += 1 + keylen
12811  }
12812
12813  print line
12814}
12815
12816_ACAWK
12817_ACEOF
12818cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12819if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12820  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12821else
12822  cat
12823fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12824  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12825_ACEOF
12826
12827# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12828# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12829# trailing colons and then remove the whole line if VPATH becomes empty
12830# (actually we leave an empty line to preserve line numbers).
12831if test "x$srcdir" = x.; then
12832  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12833h
12834s///
12835s/^/:/
12836s/[	 ]*$/:/
12837s/:\$(srcdir):/:/g
12838s/:\${srcdir}:/:/g
12839s/:@srcdir@:/:/g
12840s/^:*//
12841s/:*$//
12842x
12843s/\(=[	 ]*\).*/\1/
12844G
12845s/\n//
12846s/^[^=]*=[	 ]*$//
12847}'
12848fi
12849
12850cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12851fi # test -n "$CONFIG_FILES"
12852
12853# Set up the scripts for CONFIG_HEADERS section.
12854# No need to generate them if there are no CONFIG_HEADERS.
12855# This happens for instance with `./config.status Makefile'.
12856if test -n "$CONFIG_HEADERS"; then
12857cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12858BEGIN {
12859_ACEOF
12860
12861# Transform confdefs.h into an awk script `defines.awk', embedded as
12862# here-document in config.status, that substitutes the proper values into
12863# config.h.in to produce config.h.
12864
12865# Create a delimiter string that does not exist in confdefs.h, to ease
12866# handling of long lines.
12867ac_delim='%!_!# '
12868for ac_last_try in false false :; do
12869  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12870  if test -z "$ac_tt"; then
12871    break
12872  elif $ac_last_try; then
12873    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12874  else
12875    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12876  fi
12877done
12878
12879# For the awk script, D is an array of macro values keyed by name,
12880# likewise P contains macro parameters if any.  Preserve backslash
12881# newline sequences.
12882
12883ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12884sed -n '
12885s/.\{148\}/&'"$ac_delim"'/g
12886t rset
12887:rset
12888s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12889t def
12890d
12891:def
12892s/\\$//
12893t bsnl
12894s/["\\]/\\&/g
12895s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12896D["\1"]=" \3"/p
12897s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12898d
12899:bsnl
12900s/["\\]/\\&/g
12901s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12902D["\1"]=" \3\\\\\\n"\\/p
12903t cont
12904s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12905t cont
12906d
12907:cont
12908n
12909s/.\{148\}/&'"$ac_delim"'/g
12910t clear
12911:clear
12912s/\\$//
12913t bsnlc
12914s/["\\]/\\&/g; s/^/"/; s/$/"/p
12915d
12916:bsnlc
12917s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12918b cont
12919' <confdefs.h | sed '
12920s/'"$ac_delim"'/"\\\
12921"/g' >>$CONFIG_STATUS || ac_write_fail=1
12922
12923cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12924  for (key in D) D_is_set[key] = 1
12925  FS = ""
12926}
12927/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12928  line = \$ 0
12929  split(line, arg, " ")
12930  if (arg[1] == "#") {
12931    defundef = arg[2]
12932    mac1 = arg[3]
12933  } else {
12934    defundef = substr(arg[1], 2)
12935    mac1 = arg[2]
12936  }
12937  split(mac1, mac2, "(") #)
12938  macro = mac2[1]
12939  prefix = substr(line, 1, index(line, defundef) - 1)
12940  if (D_is_set[macro]) {
12941    # Preserve the white space surrounding the "#".
12942    print prefix "define", macro P[macro] D[macro]
12943    next
12944  } else {
12945    # Replace #undef with comments.  This is necessary, for example,
12946    # in the case of _POSIX_SOURCE, which is predefined and required
12947    # on some systems where configure will not decide to define it.
12948    if (defundef == "undef") {
12949      print "/*", prefix defundef, macro, "*/"
12950      next
12951    }
12952  }
12953}
12954{ print }
12955_ACAWK
12956_ACEOF
12957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12958  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12959fi # test -n "$CONFIG_HEADERS"
12960
12961
12962eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12963shift
12964for ac_tag
12965do
12966  case $ac_tag in
12967  :[FHLC]) ac_mode=$ac_tag; continue;;
12968  esac
12969  case $ac_mode$ac_tag in
12970  :[FHL]*:*);;
12971  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12972  :[FH]-) ac_tag=-:-;;
12973  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12974  esac
12975  ac_save_IFS=$IFS
12976  IFS=:
12977  set x $ac_tag
12978  IFS=$ac_save_IFS
12979  shift
12980  ac_file=$1
12981  shift
12982
12983  case $ac_mode in
12984  :L) ac_source=$1;;
12985  :[FH])
12986    ac_file_inputs=
12987    for ac_f
12988    do
12989      case $ac_f in
12990      -) ac_f="$ac_tmp/stdin";;
12991      *) # Look for the file first in the build tree, then in the source tree
12992	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12993	 # because $ac_f cannot contain `:'.
12994	 test -f "$ac_f" ||
12995	   case $ac_f in
12996	   [\\/$]*) false;;
12997	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12998	   esac ||
12999	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13000      esac
13001      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13002      as_fn_append ac_file_inputs " '$ac_f'"
13003    done
13004
13005    # Let's still pretend it is `configure' which instantiates (i.e., don't
13006    # use $as_me), people would be surprised to read:
13007    #    /* config.h.  Generated by config.status.  */
13008    configure_input='Generated from '`
13009	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13010	`' by configure.'
13011    if test x"$ac_file" != x-; then
13012      configure_input="$ac_file.  $configure_input"
13013      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13014printf "%s\n" "$as_me: creating $ac_file" >&6;}
13015    fi
13016    # Neutralize special characters interpreted by sed in replacement strings.
13017    case $configure_input in #(
13018    *\&* | *\|* | *\\* )
13019       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13020       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13021    *) ac_sed_conf_input=$configure_input;;
13022    esac
13023
13024    case $ac_tag in
13025    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13026      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13027    esac
13028    ;;
13029  esac
13030
13031  ac_dir=`$as_dirname -- "$ac_file" ||
13032$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13033	 X"$ac_file" : 'X\(//\)[^/]' \| \
13034	 X"$ac_file" : 'X\(//\)$' \| \
13035	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13036printf "%s\n" X"$ac_file" |
13037    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13038	    s//\1/
13039	    q
13040	  }
13041	  /^X\(\/\/\)[^/].*/{
13042	    s//\1/
13043	    q
13044	  }
13045	  /^X\(\/\/\)$/{
13046	    s//\1/
13047	    q
13048	  }
13049	  /^X\(\/\).*/{
13050	    s//\1/
13051	    q
13052	  }
13053	  s/.*/./; q'`
13054  as_dir="$ac_dir"; as_fn_mkdir_p
13055  ac_builddir=.
13056
13057case "$ac_dir" in
13058.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13059*)
13060  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13061  # A ".." for each directory in $ac_dir_suffix.
13062  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13063  case $ac_top_builddir_sub in
13064  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13065  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13066  esac ;;
13067esac
13068ac_abs_top_builddir=$ac_pwd
13069ac_abs_builddir=$ac_pwd$ac_dir_suffix
13070# for backward compatibility:
13071ac_top_builddir=$ac_top_build_prefix
13072
13073case $srcdir in
13074  .)  # We are building in place.
13075    ac_srcdir=.
13076    ac_top_srcdir=$ac_top_builddir_sub
13077    ac_abs_top_srcdir=$ac_pwd ;;
13078  [\\/]* | ?:[\\/]* )  # Absolute name.
13079    ac_srcdir=$srcdir$ac_dir_suffix;
13080    ac_top_srcdir=$srcdir
13081    ac_abs_top_srcdir=$srcdir ;;
13082  *) # Relative name.
13083    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13084    ac_top_srcdir=$ac_top_build_prefix$srcdir
13085    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13086esac
13087ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13088
13089
13090  case $ac_mode in
13091  :F)
13092  #
13093  # CONFIG_FILE
13094  #
13095
13096  case $INSTALL in
13097  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13098  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13099  esac
13100  ac_MKDIR_P=$MKDIR_P
13101  case $MKDIR_P in
13102  [\\/$]* | ?:[\\/]* ) ;;
13103  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13104  esac
13105_ACEOF
13106
13107cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13108# If the template does not know about datarootdir, expand it.
13109# FIXME: This hack should be removed a few years after 2.60.
13110ac_datarootdir_hack=; ac_datarootdir_seen=
13111ac_sed_dataroot='
13112/datarootdir/ {
13113  p
13114  q
13115}
13116/@datadir@/p
13117/@docdir@/p
13118/@infodir@/p
13119/@localedir@/p
13120/@mandir@/p'
13121case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13122*datarootdir*) ac_datarootdir_seen=yes;;
13123*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13124  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13125printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13126_ACEOF
13127cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13128  ac_datarootdir_hack='
13129  s&@datadir@&$datadir&g
13130  s&@docdir@&$docdir&g
13131  s&@infodir@&$infodir&g
13132  s&@localedir@&$localedir&g
13133  s&@mandir@&$mandir&g
13134  s&\\\${datarootdir}&$datarootdir&g' ;;
13135esac
13136_ACEOF
13137
13138# Neutralize VPATH when `$srcdir' = `.'.
13139# Shell code in configure.ac might set extrasub.
13140# FIXME: do we really want to maintain this feature?
13141cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13142ac_sed_extra="$ac_vpsub
13143$extrasub
13144_ACEOF
13145cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13146:t
13147/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13148s|@configure_input@|$ac_sed_conf_input|;t t
13149s&@top_builddir@&$ac_top_builddir_sub&;t t
13150s&@top_build_prefix@&$ac_top_build_prefix&;t t
13151s&@srcdir@&$ac_srcdir&;t t
13152s&@abs_srcdir@&$ac_abs_srcdir&;t t
13153s&@top_srcdir@&$ac_top_srcdir&;t t
13154s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13155s&@builddir@&$ac_builddir&;t t
13156s&@abs_builddir@&$ac_abs_builddir&;t t
13157s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13158s&@INSTALL@&$ac_INSTALL&;t t
13159s&@MKDIR_P@&$ac_MKDIR_P&;t t
13160$ac_datarootdir_hack
13161"
13162eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13163  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13164
13165test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13166  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13167  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13168      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13169  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13170which seems to be undefined.  Please make sure it is defined" >&5
13171printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13172which seems to be undefined.  Please make sure it is defined" >&2;}
13173
13174  rm -f "$ac_tmp/stdin"
13175  case $ac_file in
13176  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13177  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13178  esac \
13179  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13180 ;;
13181  :H)
13182  #
13183  # CONFIG_HEADER
13184  #
13185  if test x"$ac_file" != x-; then
13186    {
13187      printf "%s\n" "/* $configure_input  */" >&1 \
13188      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13189    } >"$ac_tmp/config.h" \
13190      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13191    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13192      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13193printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13194    else
13195      rm -f "$ac_file"
13196      mv "$ac_tmp/config.h" "$ac_file" \
13197	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13198    fi
13199  else
13200    printf "%s\n" "/* $configure_input  */" >&1 \
13201      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13202      || as_fn_error $? "could not create -" "$LINENO" 5
13203  fi
13204# Compute "$ac_file"'s index in $config_headers.
13205_am_arg="$ac_file"
13206_am_stamp_count=1
13207for _am_header in $config_headers :; do
13208  case $_am_header in
13209    $_am_arg | $_am_arg:* )
13210      break ;;
13211    * )
13212      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13213  esac
13214done
13215echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13216$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13217	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13218	 X"$_am_arg" : 'X\(//\)$' \| \
13219	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13220printf "%s\n" X"$_am_arg" |
13221    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13222	    s//\1/
13223	    q
13224	  }
13225	  /^X\(\/\/\)[^/].*/{
13226	    s//\1/
13227	    q
13228	  }
13229	  /^X\(\/\/\)$/{
13230	    s//\1/
13231	    q
13232	  }
13233	  /^X\(\/\).*/{
13234	    s//\1/
13235	    q
13236	  }
13237	  s/.*/./; q'`/stamp-h$_am_stamp_count
13238 ;;
13239
13240  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13241printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13242 ;;
13243  esac
13244
13245
13246  case $ac_file$ac_mode in
13247    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13248  # Older Autoconf quotes --file arguments for eval, but not when files
13249  # are listed without --file.  Let's play safe and only enable the eval
13250  # if we detect the quoting.
13251  # TODO: see whether this extra hack can be removed once we start
13252  # requiring Autoconf 2.70 or later.
13253  case $CONFIG_FILES in #(
13254  *\'*) :
13255    eval set x "$CONFIG_FILES" ;; #(
13256  *) :
13257    set x $CONFIG_FILES ;; #(
13258  *) :
13259     ;;
13260esac
13261  shift
13262  # Used to flag and report bootstrapping failures.
13263  am_rc=0
13264  for am_mf
13265  do
13266    # Strip MF so we end up with the name of the file.
13267    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13268    # Check whether this is an Automake generated Makefile which includes
13269    # dependency-tracking related rules and includes.
13270    # Grep'ing the whole file directly is not great: AIX grep has a line
13271    # limit of 2048, but all sed's we know have understand at least 4000.
13272    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13273      || continue
13274    am_dirpart=`$as_dirname -- "$am_mf" ||
13275$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13276	 X"$am_mf" : 'X\(//\)[^/]' \| \
13277	 X"$am_mf" : 'X\(//\)$' \| \
13278	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13279printf "%s\n" X"$am_mf" |
13280    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13281	    s//\1/
13282	    q
13283	  }
13284	  /^X\(\/\/\)[^/].*/{
13285	    s//\1/
13286	    q
13287	  }
13288	  /^X\(\/\/\)$/{
13289	    s//\1/
13290	    q
13291	  }
13292	  /^X\(\/\).*/{
13293	    s//\1/
13294	    q
13295	  }
13296	  s/.*/./; q'`
13297    am_filepart=`$as_basename -- "$am_mf" ||
13298$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13299	 X"$am_mf" : 'X\(//\)$' \| \
13300	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13301printf "%s\n" X/"$am_mf" |
13302    sed '/^.*\/\([^/][^/]*\)\/*$/{
13303	    s//\1/
13304	    q
13305	  }
13306	  /^X\/\(\/\/\)$/{
13307	    s//\1/
13308	    q
13309	  }
13310	  /^X\/\(\/\).*/{
13311	    s//\1/
13312	    q
13313	  }
13314	  s/.*/./; q'`
13315    { echo "$as_me:$LINENO: cd "$am_dirpart" \
13316      && sed -e '/# am--include-marker/d' "$am_filepart" \
13317        | $MAKE -f - am--depfiles" >&5
13318   (cd "$am_dirpart" \
13319      && sed -e '/# am--include-marker/d' "$am_filepart" \
13320        | $MAKE -f - am--depfiles) >&5 2>&5
13321   ac_status=$?
13322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323   (exit $ac_status); } || am_rc=$?
13324  done
13325  if test $am_rc -ne 0; then
13326    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13327printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13328as_fn_error $? "Something went wrong bootstrapping makefile fragments
13329    for automatic dependency tracking.  If GNU make was not used, consider
13330    re-running the configure script with MAKE=\"gmake\" (or whatever is
13331    necessary).  You can also try re-running configure with the
13332    '--disable-dependency-tracking' option to at least be able to build
13333    the package (albeit without support for automatic dependency tracking).
13334See \`config.log' for more details" "$LINENO" 5; }
13335  fi
13336  { am_dirpart=; unset am_dirpart;}
13337  { am_filepart=; unset am_filepart;}
13338  { am_mf=; unset am_mf;}
13339  { am_rc=; unset am_rc;}
13340  rm -f conftest-deps.mk
13341}
13342 ;;
13343
13344  esac
13345done # for ac_tag
13346
13347
13348as_fn_exit 0
13349_ACEOF
13350ac_clean_files=$ac_clean_files_save
13351
13352test $ac_write_fail = 0 ||
13353  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13354
13355
13356# configure is writing to config.log, and then calls config.status.
13357# config.status does its own redirection, appending to config.log.
13358# Unfortunately, on DOS this fails, as config.log is still kept open
13359# by configure, so config.status won't be able to write to it; its
13360# output is simply discarded.  So we exec the FD to /dev/null,
13361# effectively closing config.log, so it can be properly (re)opened and
13362# appended to by config.status.  When coming back to configure, we
13363# need to make the FD available again.
13364if test "$no_create" != yes; then
13365  ac_cs_success=:
13366  ac_config_status_args=
13367  test "$silent" = yes &&
13368    ac_config_status_args="$ac_config_status_args --quiet"
13369  exec 5>/dev/null
13370  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13371  exec 5>>config.log
13372  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13373  # would make configure fail if this is the last instruction.
13374  $ac_cs_success || as_fn_exit 1
13375fi
13376if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13377  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13378printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13379fi
13380
13381
13382