configure revision 7515ee80
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for bitmap 1.1.0.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/bitmap/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: https://gitlab.freedesktop.org/xorg/app/bitmap/issues
271$0: about your system, including any error possibly output
272$0: before this message. Then install a modern shell, or
273$0: manually run the script under such a shell if you do
274$0: have one."
275  fi
276  exit 1
277fi
278fi
279fi
280SHELL=${CONFIG_SHELL-/bin/sh}
281export SHELL
282# Unset more variables known to interfere with behavior of common tools.
283CLICOLOR_FORCE= GREP_OPTIONS=
284unset CLICOLOR_FORCE GREP_OPTIONS
285
286## --------------------- ##
287## M4sh Shell Functions. ##
288## --------------------- ##
289# as_fn_unset VAR
290# ---------------
291# Portably unset VAR.
292as_fn_unset ()
293{
294  { eval $1=; unset $1;}
295}
296as_unset=as_fn_unset
297
298# as_fn_set_status STATUS
299# -----------------------
300# Set $? to STATUS, without forking.
301as_fn_set_status ()
302{
303  return $1
304} # as_fn_set_status
305
306# as_fn_exit STATUS
307# -----------------
308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309as_fn_exit ()
310{
311  set +e
312  as_fn_set_status $1
313  exit $1
314} # as_fn_exit
315
316# as_fn_mkdir_p
317# -------------
318# Create "$as_dir" as a directory, including parents if necessary.
319as_fn_mkdir_p ()
320{
321
322  case $as_dir in #(
323  -*) as_dir=./$as_dir;;
324  esac
325  test -d "$as_dir" || eval $as_mkdir_p || {
326    as_dirs=
327    while :; do
328      case $as_dir in #(
329      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330      *) as_qdir=$as_dir;;
331      esac
332      as_dirs="'$as_qdir' $as_dirs"
333      as_dir=`$as_dirname -- "$as_dir" ||
334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335	 X"$as_dir" : 'X\(//\)[^/]' \| \
336	 X"$as_dir" : 'X\(//\)$' \| \
337	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338$as_echo X"$as_dir" |
339    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)[^/].*/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\).*/{
352	    s//\1/
353	    q
354	  }
355	  s/.*/./; q'`
356      test -d "$as_dir" && break
357    done
358    test -z "$as_dirs" || eval "mkdir $as_dirs"
359  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362} # as_fn_mkdir_p
363
364# as_fn_executable_p FILE
365# -----------------------
366# Test if FILE is an executable regular file.
367as_fn_executable_p ()
368{
369  test -f "$1" && test -x "$1"
370} # as_fn_executable_p
371# as_fn_append VAR VALUE
372# ----------------------
373# Append the text in VALUE to the end of the definition contained in VAR. Take
374# advantage of any shell optimizations that allow amortized linear growth over
375# repeated appends, instead of the typical quadratic growth present in naive
376# implementations.
377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378  eval 'as_fn_append ()
379  {
380    eval $1+=\$2
381  }'
382else
383  as_fn_append ()
384  {
385    eval $1=\$$1\$2
386  }
387fi # as_fn_append
388
389# as_fn_arith ARG...
390# ------------------
391# Perform arithmetic evaluation on the ARGs, and store the result in the
392# global $as_val. Take advantage of shells that can avoid forks. The arguments
393# must be portable across $(()) and expr.
394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395  eval 'as_fn_arith ()
396  {
397    as_val=$(( $* ))
398  }'
399else
400  as_fn_arith ()
401  {
402    as_val=`expr "$@" || test $? -eq 1`
403  }
404fi # as_fn_arith
405
406
407# as_fn_error STATUS ERROR [LINENO LOG_FD]
408# ----------------------------------------
409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411# script with STATUS, using 1 if that was 0.
412as_fn_error ()
413{
414  as_status=$1; test $as_status -eq 0 && as_status=1
415  if test "$4"; then
416    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418  fi
419  $as_echo "$as_me: error: $2" >&2
420  as_fn_exit $as_status
421} # as_fn_error
422
423if expr a : '\(a\)' >/dev/null 2>&1 &&
424   test "X`expr 00001 : '.*\(...\)'`" = X001; then
425  as_expr=expr
426else
427  as_expr=false
428fi
429
430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431  as_basename=basename
432else
433  as_basename=false
434fi
435
436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437  as_dirname=dirname
438else
439  as_dirname=false
440fi
441
442as_me=`$as_basename -- "$0" ||
443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444	 X"$0" : 'X\(//\)$' \| \
445	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446$as_echo X/"$0" |
447    sed '/^.*\/\([^/][^/]*\)\/*$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\/\)$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\).*/{
456	    s//\1/
457	    q
458	  }
459	  s/.*/./; q'`
460
461# Avoid depending upon Character Ranges.
462as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465as_cr_digits='0123456789'
466as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469  as_lineno_1=$LINENO as_lineno_1a=$LINENO
470  as_lineno_2=$LINENO as_lineno_2a=$LINENO
471  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
474  sed -n '
475    p
476    /[$]LINENO/=
477  ' <$as_myself |
478    sed '
479      s/[$]LINENO.*/&-/
480      t lineno
481      b
482      :lineno
483      N
484      :loop
485      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486      t loop
487      s/-\n.*//
488    ' >$as_me.lineno &&
489  chmod +x "$as_me.lineno" ||
490    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493  # already done that, so ensure we don't try to do so again and fall
494  # in an infinite loop.  This has already happened in practice.
495  _as_can_reexec=no; export _as_can_reexec
496  # Don't try to exec as it changes $[0], causing all sort of problems
497  # (the dirname of $[0] is not the place where we might find the
498  # original and so on.  Autoconf is especially sensitive to this).
499  . "./$as_me.lineno"
500  # Exit status is that of the last command.
501  exit
502}
503
504ECHO_C= ECHO_N= ECHO_T=
505case `echo -n x` in #(((((
506-n*)
507  case `echo 'xy\c'` in
508  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
509  xy)  ECHO_C='\c';;
510  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
511       ECHO_T='	';;
512  esac;;
513*)
514  ECHO_N='-n';;
515esac
516
517rm -f conf$$ conf$$.exe conf$$.file
518if test -d conf$$.dir; then
519  rm -f conf$$.dir/conf$$.file
520else
521  rm -f conf$$.dir
522  mkdir conf$$.dir 2>/dev/null
523fi
524if (echo >conf$$.file) 2>/dev/null; then
525  if ln -s conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s='ln -s'
527    # ... but there are two gotchas:
528    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530    # In both cases, we have to default to `cp -pR'.
531    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532      as_ln_s='cp -pR'
533  elif ln conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s=ln
535  else
536    as_ln_s='cp -pR'
537  fi
538else
539  as_ln_s='cp -pR'
540fi
541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542rmdir conf$$.dir 2>/dev/null
543
544if mkdir -p . 2>/dev/null; then
545  as_mkdir_p='mkdir -p "$as_dir"'
546else
547  test -d ./-p && rmdir ./-p
548  as_mkdir_p=false
549fi
550
551as_test_x='test -x'
552as_executable_p=as_fn_executable_p
553
554# Sed expression to map a string onto a valid CPP name.
555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557# Sed expression to map a string onto a valid variable name.
558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561test -n "$DJDIR" || exec 7<&0 </dev/null
562exec 6>&1
563
564# Name of the host.
565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566# so uname gets run too.
567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569#
570# Initializations.
571#
572ac_default_prefix=/usr/local
573ac_clean_files=
574ac_config_libobj_dir=.
575LIBOBJS=
576cross_compiling=no
577subdirs=
578MFLAGS=
579MAKEFLAGS=
580
581# Identity of this package.
582PACKAGE_NAME='bitmap'
583PACKAGE_TARNAME='bitmap'
584PACKAGE_VERSION='1.1.0'
585PACKAGE_STRING='bitmap 1.1.0'
586PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/bitmap/issues'
587PACKAGE_URL=''
588
589ac_unique_file="Makefile.am"
590# Factoring default headers for most tests.
591ac_includes_default="\
592#include <stdio.h>
593#ifdef HAVE_SYS_TYPES_H
594# include <sys/types.h>
595#endif
596#ifdef HAVE_SYS_STAT_H
597# include <sys/stat.h>
598#endif
599#ifdef STDC_HEADERS
600# include <stdlib.h>
601# include <stddef.h>
602#else
603# ifdef HAVE_STDLIB_H
604#  include <stdlib.h>
605# endif
606#endif
607#ifdef HAVE_STRING_H
608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609#  include <memory.h>
610# endif
611# include <string.h>
612#endif
613#ifdef HAVE_STRINGS_H
614# include <strings.h>
615#endif
616#ifdef HAVE_INTTYPES_H
617# include <inttypes.h>
618#endif
619#ifdef HAVE_STDINT_H
620# include <stdint.h>
621#endif
622#ifdef HAVE_UNISTD_H
623# include <unistd.h>
624#endif"
625
626ac_subst_vars='am__EXEEXT_FALSE
627am__EXEEXT_TRUE
628LTLIBOBJS
629LIBOBJS
630appdefaultdir
631APPDEFS_LIBS
632APPDEFS_CFLAGS
633BITMAP_LIBS
634BITMAP_CFLAGS
635ATOBM_LIBS
636ATOBM_CFLAGS
637BMTOA_LIBS
638BMTOA_CFLAGS
639MATH_LIBS
640MAN_SUBSTS
641XORG_MAN_PAGE
642ADMIN_MAN_DIR
643DRIVER_MAN_DIR
644MISC_MAN_DIR
645FILE_MAN_DIR
646LIB_MAN_DIR
647APP_MAN_DIR
648ADMIN_MAN_SUFFIX
649DRIVER_MAN_SUFFIX
650MISC_MAN_SUFFIX
651FILE_MAN_SUFFIX
652LIB_MAN_SUFFIX
653APP_MAN_SUFFIX
654SED
655host_os
656host_vendor
657host_cpu
658host
659build_os
660build_vendor
661build_cpu
662build
663INSTALL_CMD
664PKG_CONFIG_LIBDIR
665PKG_CONFIG_PATH
666PKG_CONFIG
667CHANGELOG_CMD
668STRICT_CFLAGS
669CWARNFLAGS
670BASE_CFLAGS
671EGREP
672GREP
673CPP
674am__fastdepCC_FALSE
675am__fastdepCC_TRUE
676CCDEPMODE
677am__nodep
678AMDEPBACKSLASH
679AMDEP_FALSE
680AMDEP_TRUE
681am__quote
682am__include
683DEPDIR
684OBJEXT
685EXEEXT
686ac_ct_CC
687CPPFLAGS
688LDFLAGS
689CFLAGS
690CC
691AM_BACKSLASH
692AM_DEFAULT_VERBOSITY
693AM_DEFAULT_V
694AM_V
695am__untar
696am__tar
697AMTAR
698am__leading_dot
699SET_MAKE
700AWK
701mkdir_p
702MKDIR_P
703INSTALL_STRIP_PROGRAM
704STRIP
705install_sh
706MAKEINFO
707AUTOHEADER
708AUTOMAKE
709AUTOCONF
710ACLOCAL
711VERSION
712PACKAGE
713CYGPATH_W
714am__isrc
715INSTALL_DATA
716INSTALL_SCRIPT
717INSTALL_PROGRAM
718target_alias
719host_alias
720build_alias
721LIBS
722ECHO_T
723ECHO_N
724ECHO_C
725DEFS
726mandir
727localedir
728libdir
729psdir
730pdfdir
731dvidir
732htmldir
733infodir
734docdir
735oldincludedir
736includedir
737localstatedir
738sharedstatedir
739sysconfdir
740datadir
741datarootdir
742libexecdir
743sbindir
744bindir
745program_transform_name
746prefix
747exec_prefix
748PACKAGE_URL
749PACKAGE_BUGREPORT
750PACKAGE_STRING
751PACKAGE_VERSION
752PACKAGE_TARNAME
753PACKAGE_NAME
754PATH_SEPARATOR
755SHELL'
756ac_subst_files=''
757ac_user_opts='
758enable_option_checking
759enable_silent_rules
760enable_dependency_tracking
761enable_selective_werror
762enable_strict_compilation
763with_appdefaultdir
764'
765      ac_precious_vars='build_alias
766host_alias
767target_alias
768CC
769CFLAGS
770LDFLAGS
771LIBS
772CPPFLAGS
773CPP
774PKG_CONFIG
775PKG_CONFIG_PATH
776PKG_CONFIG_LIBDIR
777BMTOA_CFLAGS
778BMTOA_LIBS
779ATOBM_CFLAGS
780ATOBM_LIBS
781BITMAP_CFLAGS
782BITMAP_LIBS
783APPDEFS_CFLAGS
784APPDEFS_LIBS'
785
786
787# Initialize some variables set by options.
788ac_init_help=
789ac_init_version=false
790ac_unrecognized_opts=
791ac_unrecognized_sep=
792# The variables have the same names as the options, with
793# dashes changed to underlines.
794cache_file=/dev/null
795exec_prefix=NONE
796no_create=
797no_recursion=
798prefix=NONE
799program_prefix=NONE
800program_suffix=NONE
801program_transform_name=s,x,x,
802silent=
803site=
804srcdir=
805verbose=
806x_includes=NONE
807x_libraries=NONE
808
809# Installation directory options.
810# These are left unexpanded so users can "make install exec_prefix=/foo"
811# and all the variables that are supposed to be based on exec_prefix
812# by default will actually change.
813# Use braces instead of parens because sh, perl, etc. also accept them.
814# (The list follows the same order as the GNU Coding Standards.)
815bindir='${exec_prefix}/bin'
816sbindir='${exec_prefix}/sbin'
817libexecdir='${exec_prefix}/libexec'
818datarootdir='${prefix}/share'
819datadir='${datarootdir}'
820sysconfdir='${prefix}/etc'
821sharedstatedir='${prefix}/com'
822localstatedir='${prefix}/var'
823includedir='${prefix}/include'
824oldincludedir='/usr/include'
825docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826infodir='${datarootdir}/info'
827htmldir='${docdir}'
828dvidir='${docdir}'
829pdfdir='${docdir}'
830psdir='${docdir}'
831libdir='${exec_prefix}/lib'
832localedir='${datarootdir}/locale'
833mandir='${datarootdir}/man'
834
835ac_prev=
836ac_dashdash=
837for ac_option
838do
839  # If the previous option needs an argument, assign it.
840  if test -n "$ac_prev"; then
841    eval $ac_prev=\$ac_option
842    ac_prev=
843    continue
844  fi
845
846  case $ac_option in
847  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848  *=)   ac_optarg= ;;
849  *)    ac_optarg=yes ;;
850  esac
851
852  # Accept the important Cygnus configure options, so we can diagnose typos.
853
854  case $ac_dashdash$ac_option in
855  --)
856    ac_dashdash=yes ;;
857
858  -bindir | --bindir | --bindi | --bind | --bin | --bi)
859    ac_prev=bindir ;;
860  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
861    bindir=$ac_optarg ;;
862
863  -build | --build | --buil | --bui | --bu)
864    ac_prev=build_alias ;;
865  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
866    build_alias=$ac_optarg ;;
867
868  -cache-file | --cache-file | --cache-fil | --cache-fi \
869  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870    ac_prev=cache_file ;;
871  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
873    cache_file=$ac_optarg ;;
874
875  --config-cache | -C)
876    cache_file=config.cache ;;
877
878  -datadir | --datadir | --datadi | --datad)
879    ac_prev=datadir ;;
880  -datadir=* | --datadir=* | --datadi=* | --datad=*)
881    datadir=$ac_optarg ;;
882
883  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884  | --dataroo | --dataro | --datar)
885    ac_prev=datarootdir ;;
886  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888    datarootdir=$ac_optarg ;;
889
890  -disable-* | --disable-*)
891    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
892    # Reject names that are not valid shell variable names.
893    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894      as_fn_error $? "invalid feature name: $ac_useropt"
895    ac_useropt_orig=$ac_useropt
896    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897    case $ac_user_opts in
898      *"
899"enable_$ac_useropt"
900"*) ;;
901      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
902	 ac_unrecognized_sep=', ';;
903    esac
904    eval enable_$ac_useropt=no ;;
905
906  -docdir | --docdir | --docdi | --doc | --do)
907    ac_prev=docdir ;;
908  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909    docdir=$ac_optarg ;;
910
911  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
912    ac_prev=dvidir ;;
913  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914    dvidir=$ac_optarg ;;
915
916  -enable-* | --enable-*)
917    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
918    # Reject names that are not valid shell variable names.
919    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920      as_fn_error $? "invalid feature name: $ac_useropt"
921    ac_useropt_orig=$ac_useropt
922    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923    case $ac_user_opts in
924      *"
925"enable_$ac_useropt"
926"*) ;;
927      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
928	 ac_unrecognized_sep=', ';;
929    esac
930    eval enable_$ac_useropt=\$ac_optarg ;;
931
932  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934  | --exec | --exe | --ex)
935    ac_prev=exec_prefix ;;
936  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938  | --exec=* | --exe=* | --ex=*)
939    exec_prefix=$ac_optarg ;;
940
941  -gas | --gas | --ga | --g)
942    # Obsolete; use --with-gas.
943    with_gas=yes ;;
944
945  -help | --help | --hel | --he | -h)
946    ac_init_help=long ;;
947  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948    ac_init_help=recursive ;;
949  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950    ac_init_help=short ;;
951
952  -host | --host | --hos | --ho)
953    ac_prev=host_alias ;;
954  -host=* | --host=* | --hos=* | --ho=*)
955    host_alias=$ac_optarg ;;
956
957  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958    ac_prev=htmldir ;;
959  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960  | --ht=*)
961    htmldir=$ac_optarg ;;
962
963  -includedir | --includedir | --includedi | --included | --include \
964  | --includ | --inclu | --incl | --inc)
965    ac_prev=includedir ;;
966  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967  | --includ=* | --inclu=* | --incl=* | --inc=*)
968    includedir=$ac_optarg ;;
969
970  -infodir | --infodir | --infodi | --infod | --info | --inf)
971    ac_prev=infodir ;;
972  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973    infodir=$ac_optarg ;;
974
975  -libdir | --libdir | --libdi | --libd)
976    ac_prev=libdir ;;
977  -libdir=* | --libdir=* | --libdi=* | --libd=*)
978    libdir=$ac_optarg ;;
979
980  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981  | --libexe | --libex | --libe)
982    ac_prev=libexecdir ;;
983  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984  | --libexe=* | --libex=* | --libe=*)
985    libexecdir=$ac_optarg ;;
986
987  -localedir | --localedir | --localedi | --localed | --locale)
988    ac_prev=localedir ;;
989  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990    localedir=$ac_optarg ;;
991
992  -localstatedir | --localstatedir | --localstatedi | --localstated \
993  | --localstate | --localstat | --localsta | --localst | --locals)
994    ac_prev=localstatedir ;;
995  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997    localstatedir=$ac_optarg ;;
998
999  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000    ac_prev=mandir ;;
1001  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002    mandir=$ac_optarg ;;
1003
1004  -nfp | --nfp | --nf)
1005    # Obsolete; use --without-fp.
1006    with_fp=no ;;
1007
1008  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009  | --no-cr | --no-c | -n)
1010    no_create=yes ;;
1011
1012  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014    no_recursion=yes ;;
1015
1016  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018  | --oldin | --oldi | --old | --ol | --o)
1019    ac_prev=oldincludedir ;;
1020  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023    oldincludedir=$ac_optarg ;;
1024
1025  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026    ac_prev=prefix ;;
1027  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028    prefix=$ac_optarg ;;
1029
1030  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031  | --program-pre | --program-pr | --program-p)
1032    ac_prev=program_prefix ;;
1033  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035    program_prefix=$ac_optarg ;;
1036
1037  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038  | --program-suf | --program-su | --program-s)
1039    ac_prev=program_suffix ;;
1040  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042    program_suffix=$ac_optarg ;;
1043
1044  -program-transform-name | --program-transform-name \
1045  | --program-transform-nam | --program-transform-na \
1046  | --program-transform-n | --program-transform- \
1047  | --program-transform | --program-transfor \
1048  | --program-transfo | --program-transf \
1049  | --program-trans | --program-tran \
1050  | --progr-tra | --program-tr | --program-t)
1051    ac_prev=program_transform_name ;;
1052  -program-transform-name=* | --program-transform-name=* \
1053  | --program-transform-nam=* | --program-transform-na=* \
1054  | --program-transform-n=* | --program-transform-=* \
1055  | --program-transform=* | --program-transfor=* \
1056  | --program-transfo=* | --program-transf=* \
1057  | --program-trans=* | --program-tran=* \
1058  | --progr-tra=* | --program-tr=* | --program-t=*)
1059    program_transform_name=$ac_optarg ;;
1060
1061  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062    ac_prev=pdfdir ;;
1063  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064    pdfdir=$ac_optarg ;;
1065
1066  -psdir | --psdir | --psdi | --psd | --ps)
1067    ac_prev=psdir ;;
1068  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069    psdir=$ac_optarg ;;
1070
1071  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072  | -silent | --silent | --silen | --sile | --sil)
1073    silent=yes ;;
1074
1075  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076    ac_prev=sbindir ;;
1077  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078  | --sbi=* | --sb=*)
1079    sbindir=$ac_optarg ;;
1080
1081  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083  | --sharedst | --shareds | --shared | --share | --shar \
1084  | --sha | --sh)
1085    ac_prev=sharedstatedir ;;
1086  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089  | --sha=* | --sh=*)
1090    sharedstatedir=$ac_optarg ;;
1091
1092  -site | --site | --sit)
1093    ac_prev=site ;;
1094  -site=* | --site=* | --sit=*)
1095    site=$ac_optarg ;;
1096
1097  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098    ac_prev=srcdir ;;
1099  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100    srcdir=$ac_optarg ;;
1101
1102  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103  | --syscon | --sysco | --sysc | --sys | --sy)
1104    ac_prev=sysconfdir ;;
1105  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107    sysconfdir=$ac_optarg ;;
1108
1109  -target | --target | --targe | --targ | --tar | --ta | --t)
1110    ac_prev=target_alias ;;
1111  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112    target_alias=$ac_optarg ;;
1113
1114  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115    verbose=yes ;;
1116
1117  -version | --version | --versio | --versi | --vers | -V)
1118    ac_init_version=: ;;
1119
1120  -with-* | --with-*)
1121    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122    # Reject names that are not valid shell variable names.
1123    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124      as_fn_error $? "invalid package name: $ac_useropt"
1125    ac_useropt_orig=$ac_useropt
1126    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127    case $ac_user_opts in
1128      *"
1129"with_$ac_useropt"
1130"*) ;;
1131      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1132	 ac_unrecognized_sep=', ';;
1133    esac
1134    eval with_$ac_useropt=\$ac_optarg ;;
1135
1136  -without-* | --without-*)
1137    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1138    # Reject names that are not valid shell variable names.
1139    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140      as_fn_error $? "invalid package name: $ac_useropt"
1141    ac_useropt_orig=$ac_useropt
1142    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143    case $ac_user_opts in
1144      *"
1145"with_$ac_useropt"
1146"*) ;;
1147      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1148	 ac_unrecognized_sep=', ';;
1149    esac
1150    eval with_$ac_useropt=no ;;
1151
1152  --x)
1153    # Obsolete; use --with-x.
1154    with_x=yes ;;
1155
1156  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157  | --x-incl | --x-inc | --x-in | --x-i)
1158    ac_prev=x_includes ;;
1159  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161    x_includes=$ac_optarg ;;
1162
1163  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165    ac_prev=x_libraries ;;
1166  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168    x_libraries=$ac_optarg ;;
1169
1170  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1171Try \`$0 --help' for more information"
1172    ;;
1173
1174  *=*)
1175    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176    # Reject names that are not valid shell variable names.
1177    case $ac_envvar in #(
1178      '' | [0-9]* | *[!_$as_cr_alnum]* )
1179      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1180    esac
1181    eval $ac_envvar=\$ac_optarg
1182    export $ac_envvar ;;
1183
1184  *)
1185    # FIXME: should be removed in autoconf 3.0.
1186    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1190    ;;
1191
1192  esac
1193done
1194
1195if test -n "$ac_prev"; then
1196  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197  as_fn_error $? "missing argument to $ac_option"
1198fi
1199
1200if test -n "$ac_unrecognized_opts"; then
1201  case $enable_option_checking in
1202    no) ;;
1203    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1204    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1205  esac
1206fi
1207
1208# Check all directory arguments for consistency.
1209for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210		datadir sysconfdir sharedstatedir localstatedir includedir \
1211		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212		libdir localedir mandir
1213do
1214  eval ac_val=\$$ac_var
1215  # Remove trailing slashes.
1216  case $ac_val in
1217    */ )
1218      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1219      eval $ac_var=\$ac_val;;
1220  esac
1221  # Be sure to have absolute directory names.
1222  case $ac_val in
1223    [\\/$]* | ?:[\\/]* )  continue;;
1224    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225  esac
1226  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1227done
1228
1229# There might be people who depend on the old broken behavior: `$host'
1230# used to hold the argument of --host etc.
1231# FIXME: To remove some day.
1232build=$build_alias
1233host=$host_alias
1234target=$target_alias
1235
1236# FIXME: To remove some day.
1237if test "x$host_alias" != x; then
1238  if test "x$build_alias" = x; then
1239    cross_compiling=maybe
1240  elif test "x$build_alias" != "x$host_alias"; then
1241    cross_compiling=yes
1242  fi
1243fi
1244
1245ac_tool_prefix=
1246test -n "$host_alias" && ac_tool_prefix=$host_alias-
1247
1248test "$silent" = yes && exec 6>/dev/null
1249
1250
1251ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252ac_ls_di=`ls -di .` &&
1253ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254  as_fn_error $? "working directory cannot be determined"
1255test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1256  as_fn_error $? "pwd does not report name of working directory"
1257
1258
1259# Find the source files, if location was not specified.
1260if test -z "$srcdir"; then
1261  ac_srcdir_defaulted=yes
1262  # Try the directory containing this script, then the parent directory.
1263  ac_confdir=`$as_dirname -- "$as_myself" ||
1264$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265	 X"$as_myself" : 'X\(//\)[^/]' \| \
1266	 X"$as_myself" : 'X\(//\)$' \| \
1267	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1268$as_echo X"$as_myself" |
1269    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1270	    s//\1/
1271	    q
1272	  }
1273	  /^X\(\/\/\)[^/].*/{
1274	    s//\1/
1275	    q
1276	  }
1277	  /^X\(\/\/\)$/{
1278	    s//\1/
1279	    q
1280	  }
1281	  /^X\(\/\).*/{
1282	    s//\1/
1283	    q
1284	  }
1285	  s/.*/./; q'`
1286  srcdir=$ac_confdir
1287  if test ! -r "$srcdir/$ac_unique_file"; then
1288    srcdir=..
1289  fi
1290else
1291  ac_srcdir_defaulted=no
1292fi
1293if test ! -r "$srcdir/$ac_unique_file"; then
1294  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1295  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1296fi
1297ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1298ac_abs_confdir=`(
1299	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1300	pwd)`
1301# When building in place, set srcdir=.
1302if test "$ac_abs_confdir" = "$ac_pwd"; then
1303  srcdir=.
1304fi
1305# Remove unnecessary trailing slashes from srcdir.
1306# Double slashes in file names in object file debugging info
1307# mess up M-x gdb in Emacs.
1308case $srcdir in
1309*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310esac
1311for ac_var in $ac_precious_vars; do
1312  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313  eval ac_env_${ac_var}_value=\$${ac_var}
1314  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316done
1317
1318#
1319# Report the --help message.
1320#
1321if test "$ac_init_help" = "long"; then
1322  # Omit some internal or obsolete options to make the list less imposing.
1323  # This message is too long to be a string in the A/UX 3.1 sh.
1324  cat <<_ACEOF
1325\`configure' configures bitmap 1.1.0 to adapt to many kinds of systems.
1326
1327Usage: $0 [OPTION]... [VAR=VALUE]...
1328
1329To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330VAR=VALUE.  See below for descriptions of some of the useful variables.
1331
1332Defaults for the options are specified in brackets.
1333
1334Configuration:
1335  -h, --help              display this help and exit
1336      --help=short        display options specific to this package
1337      --help=recursive    display the short help of all the included packages
1338  -V, --version           display version information and exit
1339  -q, --quiet, --silent   do not print \`checking ...' messages
1340      --cache-file=FILE   cache test results in FILE [disabled]
1341  -C, --config-cache      alias for \`--cache-file=config.cache'
1342  -n, --no-create         do not create output files
1343      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1344
1345Installation directories:
1346  --prefix=PREFIX         install architecture-independent files in PREFIX
1347                          [$ac_default_prefix]
1348  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1349                          [PREFIX]
1350
1351By default, \`make install' will install all the files in
1352\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1353an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354for instance \`--prefix=\$HOME'.
1355
1356For better control, use the options below.
1357
1358Fine tuning of the installation directories:
1359  --bindir=DIR            user executables [EPREFIX/bin]
1360  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1361  --libexecdir=DIR        program executables [EPREFIX/libexec]
1362  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1363  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1364  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1365  --libdir=DIR            object code libraries [EPREFIX/lib]
1366  --includedir=DIR        C header files [PREFIX/include]
1367  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1368  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1369  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1370  --infodir=DIR           info documentation [DATAROOTDIR/info]
1371  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1372  --mandir=DIR            man documentation [DATAROOTDIR/man]
1373  --docdir=DIR            documentation root [DATAROOTDIR/doc/bitmap]
1374  --htmldir=DIR           html documentation [DOCDIR]
1375  --dvidir=DIR            dvi documentation [DOCDIR]
1376  --pdfdir=DIR            pdf documentation [DOCDIR]
1377  --psdir=DIR             ps documentation [DOCDIR]
1378_ACEOF
1379
1380  cat <<\_ACEOF
1381
1382Program names:
1383  --program-prefix=PREFIX            prepend PREFIX to installed program names
1384  --program-suffix=SUFFIX            append SUFFIX to installed program names
1385  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1386
1387System types:
1388  --build=BUILD     configure for building on BUILD [guessed]
1389  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1390_ACEOF
1391fi
1392
1393if test -n "$ac_init_help"; then
1394  case $ac_init_help in
1395     short | recursive ) echo "Configuration of bitmap 1.1.0:";;
1396   esac
1397  cat <<\_ACEOF
1398
1399Optional Features:
1400  --disable-option-checking  ignore unrecognized --enable/--with options
1401  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1402  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1403  --enable-silent-rules   less verbose build output (undo: "make V=1")
1404  --disable-silent-rules  verbose build output (undo: "make V=0")
1405  --enable-dependency-tracking
1406                          do not reject slow dependency extractors
1407  --disable-dependency-tracking
1408                          speeds up one-time build
1409  --disable-selective-werror
1410                          Turn off selective compiler errors. (default:
1411                          enabled)
1412  --enable-strict-compilation
1413                          Enable all warnings from compiler and make them
1414                          errors (default: disabled)
1415
1416Optional Packages:
1417  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1418  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1419  --with-appdefaultdir=<pathname>
1420                          specify directory for app-defaults files (default is
1421                          autodetected)
1422
1423Some influential environment variables:
1424  CC          C compiler command
1425  CFLAGS      C compiler flags
1426  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1427              nonstandard directory <lib dir>
1428  LIBS        libraries to pass to the linker, e.g. -l<library>
1429  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1430              you have headers in a nonstandard directory <include dir>
1431  CPP         C preprocessor
1432  PKG_CONFIG  path to pkg-config utility
1433  PKG_CONFIG_PATH
1434              directories to add to pkg-config's search path
1435  PKG_CONFIG_LIBDIR
1436              path overriding pkg-config's built-in search path
1437  BMTOA_CFLAGS
1438              C compiler flags for BMTOA, overriding pkg-config
1439  BMTOA_LIBS  linker flags for BMTOA, overriding pkg-config
1440  ATOBM_CFLAGS
1441              C compiler flags for ATOBM, overriding pkg-config
1442  ATOBM_LIBS  linker flags for ATOBM, overriding pkg-config
1443  BITMAP_CFLAGS
1444              C compiler flags for BITMAP, overriding pkg-config
1445  BITMAP_LIBS linker flags for BITMAP, overriding pkg-config
1446  APPDEFS_CFLAGS
1447              C compiler flags for APPDEFS, overriding pkg-config
1448  APPDEFS_LIBS
1449              linker flags for APPDEFS, overriding pkg-config
1450
1451Use these variables to override the choices made by `configure' or to help
1452it to find libraries and programs with nonstandard names/locations.
1453
1454Report bugs to <https://gitlab.freedesktop.org/xorg/app/bitmap/issues>.
1455_ACEOF
1456ac_status=$?
1457fi
1458
1459if test "$ac_init_help" = "recursive"; then
1460  # If there are subdirs, report their specific --help.
1461  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1462    test -d "$ac_dir" ||
1463      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1464      continue
1465    ac_builddir=.
1466
1467case "$ac_dir" in
1468.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469*)
1470  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1471  # A ".." for each directory in $ac_dir_suffix.
1472  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1473  case $ac_top_builddir_sub in
1474  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1476  esac ;;
1477esac
1478ac_abs_top_builddir=$ac_pwd
1479ac_abs_builddir=$ac_pwd$ac_dir_suffix
1480# for backward compatibility:
1481ac_top_builddir=$ac_top_build_prefix
1482
1483case $srcdir in
1484  .)  # We are building in place.
1485    ac_srcdir=.
1486    ac_top_srcdir=$ac_top_builddir_sub
1487    ac_abs_top_srcdir=$ac_pwd ;;
1488  [\\/]* | ?:[\\/]* )  # Absolute name.
1489    ac_srcdir=$srcdir$ac_dir_suffix;
1490    ac_top_srcdir=$srcdir
1491    ac_abs_top_srcdir=$srcdir ;;
1492  *) # Relative name.
1493    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1494    ac_top_srcdir=$ac_top_build_prefix$srcdir
1495    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1496esac
1497ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1498
1499    cd "$ac_dir" || { ac_status=$?; continue; }
1500    # Check for guested configure.
1501    if test -f "$ac_srcdir/configure.gnu"; then
1502      echo &&
1503      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1504    elif test -f "$ac_srcdir/configure"; then
1505      echo &&
1506      $SHELL "$ac_srcdir/configure" --help=recursive
1507    else
1508      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509    fi || ac_status=$?
1510    cd "$ac_pwd" || { ac_status=$?; break; }
1511  done
1512fi
1513
1514test -n "$ac_init_help" && exit $ac_status
1515if $ac_init_version; then
1516  cat <<\_ACEOF
1517bitmap configure 1.1.0
1518generated by GNU Autoconf 2.69
1519
1520Copyright (C) 2012 Free Software Foundation, Inc.
1521This configure script is free software; the Free Software Foundation
1522gives unlimited permission to copy, distribute and modify it.
1523_ACEOF
1524  exit
1525fi
1526
1527## ------------------------ ##
1528## Autoconf initialization. ##
1529## ------------------------ ##
1530
1531# ac_fn_c_try_compile LINENO
1532# --------------------------
1533# Try to compile conftest.$ac_ext, and return whether this succeeded.
1534ac_fn_c_try_compile ()
1535{
1536  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537  rm -f conftest.$ac_objext
1538  if { { ac_try="$ac_compile"
1539case "(($ac_try" in
1540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541  *) ac_try_echo=$ac_try;;
1542esac
1543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544$as_echo "$ac_try_echo"; } >&5
1545  (eval "$ac_compile") 2>conftest.err
1546  ac_status=$?
1547  if test -s conftest.err; then
1548    grep -v '^ *+' conftest.err >conftest.er1
1549    cat conftest.er1 >&5
1550    mv -f conftest.er1 conftest.err
1551  fi
1552  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553  test $ac_status = 0; } && {
1554	 test -z "$ac_c_werror_flag" ||
1555	 test ! -s conftest.err
1556       } && test -s conftest.$ac_objext; then :
1557  ac_retval=0
1558else
1559  $as_echo "$as_me: failed program was:" >&5
1560sed 's/^/| /' conftest.$ac_ext >&5
1561
1562	ac_retval=1
1563fi
1564  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1565  as_fn_set_status $ac_retval
1566
1567} # ac_fn_c_try_compile
1568
1569# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1570# ---------------------------------------------
1571# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1572# accordingly.
1573ac_fn_c_check_decl ()
1574{
1575  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576  as_decl_name=`echo $2|sed 's/ *(.*//'`
1577  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1578  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1579$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1580if eval \${$3+:} false; then :
1581  $as_echo_n "(cached) " >&6
1582else
1583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1584/* end confdefs.h.  */
1585$4
1586int
1587main ()
1588{
1589#ifndef $as_decl_name
1590#ifdef __cplusplus
1591  (void) $as_decl_use;
1592#else
1593  (void) $as_decl_name;
1594#endif
1595#endif
1596
1597  ;
1598  return 0;
1599}
1600_ACEOF
1601if ac_fn_c_try_compile "$LINENO"; then :
1602  eval "$3=yes"
1603else
1604  eval "$3=no"
1605fi
1606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1607fi
1608eval ac_res=\$$3
1609	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1610$as_echo "$ac_res" >&6; }
1611  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612
1613} # ac_fn_c_check_decl
1614
1615# ac_fn_c_try_cpp LINENO
1616# ----------------------
1617# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1618ac_fn_c_try_cpp ()
1619{
1620  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621  if { { ac_try="$ac_cpp conftest.$ac_ext"
1622case "(($ac_try" in
1623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624  *) ac_try_echo=$ac_try;;
1625esac
1626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627$as_echo "$ac_try_echo"; } >&5
1628  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1629  ac_status=$?
1630  if test -s conftest.err; then
1631    grep -v '^ *+' conftest.err >conftest.er1
1632    cat conftest.er1 >&5
1633    mv -f conftest.er1 conftest.err
1634  fi
1635  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636  test $ac_status = 0; } > conftest.i && {
1637	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1638	 test ! -s conftest.err
1639       }; then :
1640  ac_retval=0
1641else
1642  $as_echo "$as_me: failed program was:" >&5
1643sed 's/^/| /' conftest.$ac_ext >&5
1644
1645    ac_retval=1
1646fi
1647  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648  as_fn_set_status $ac_retval
1649
1650} # ac_fn_c_try_cpp
1651
1652# ac_fn_c_try_run LINENO
1653# ----------------------
1654# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1655# that executables *can* be run.
1656ac_fn_c_try_run ()
1657{
1658  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659  if { { ac_try="$ac_link"
1660case "(($ac_try" in
1661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662  *) ac_try_echo=$ac_try;;
1663esac
1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665$as_echo "$ac_try_echo"; } >&5
1666  (eval "$ac_link") 2>&5
1667  ac_status=$?
1668  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1670  { { case "(($ac_try" in
1671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672  *) ac_try_echo=$ac_try;;
1673esac
1674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675$as_echo "$ac_try_echo"; } >&5
1676  (eval "$ac_try") 2>&5
1677  ac_status=$?
1678  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679  test $ac_status = 0; }; }; then :
1680  ac_retval=0
1681else
1682  $as_echo "$as_me: program exited with status $ac_status" >&5
1683       $as_echo "$as_me: failed program was:" >&5
1684sed 's/^/| /' conftest.$ac_ext >&5
1685
1686       ac_retval=$ac_status
1687fi
1688  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690  as_fn_set_status $ac_retval
1691
1692} # ac_fn_c_try_run
1693
1694# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1695# -------------------------------------------------------
1696# Tests whether HEADER exists and can be compiled using the include files in
1697# INCLUDES, setting the cache variable VAR accordingly.
1698ac_fn_c_check_header_compile ()
1699{
1700  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702$as_echo_n "checking for $2... " >&6; }
1703if eval \${$3+:} false; then :
1704  $as_echo_n "(cached) " >&6
1705else
1706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707/* end confdefs.h.  */
1708$4
1709#include <$2>
1710_ACEOF
1711if ac_fn_c_try_compile "$LINENO"; then :
1712  eval "$3=yes"
1713else
1714  eval "$3=no"
1715fi
1716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1717fi
1718eval ac_res=\$$3
1719	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720$as_echo "$ac_res" >&6; }
1721  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722
1723} # ac_fn_c_check_header_compile
1724
1725# ac_fn_c_try_link LINENO
1726# -----------------------
1727# Try to link conftest.$ac_ext, and return whether this succeeded.
1728ac_fn_c_try_link ()
1729{
1730  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731  rm -f conftest.$ac_objext conftest$ac_exeext
1732  if { { ac_try="$ac_link"
1733case "(($ac_try" in
1734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735  *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739  (eval "$ac_link") 2>conftest.err
1740  ac_status=$?
1741  if test -s conftest.err; then
1742    grep -v '^ *+' conftest.err >conftest.er1
1743    cat conftest.er1 >&5
1744    mv -f conftest.er1 conftest.err
1745  fi
1746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747  test $ac_status = 0; } && {
1748	 test -z "$ac_c_werror_flag" ||
1749	 test ! -s conftest.err
1750       } && test -s conftest$ac_exeext && {
1751	 test "$cross_compiling" = yes ||
1752	 test -x conftest$ac_exeext
1753       }; then :
1754  ac_retval=0
1755else
1756  $as_echo "$as_me: failed program was:" >&5
1757sed 's/^/| /' conftest.$ac_ext >&5
1758
1759	ac_retval=1
1760fi
1761  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1762  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1763  # interfere with the next link command; also delete a directory that is
1764  # left behind by Apple's compiler.  We do this before executing the actions.
1765  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767  as_fn_set_status $ac_retval
1768
1769} # ac_fn_c_try_link
1770
1771# ac_fn_c_check_func LINENO FUNC VAR
1772# ----------------------------------
1773# Tests whether FUNC exists, setting the cache variable VAR accordingly
1774ac_fn_c_check_func ()
1775{
1776  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778$as_echo_n "checking for $2... " >&6; }
1779if eval \${$3+:} false; then :
1780  $as_echo_n "(cached) " >&6
1781else
1782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783/* end confdefs.h.  */
1784/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1785   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1786#define $2 innocuous_$2
1787
1788/* System header to define __stub macros and hopefully few prototypes,
1789    which can conflict with char $2 (); below.
1790    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1791    <limits.h> exists even on freestanding compilers.  */
1792
1793#ifdef __STDC__
1794# include <limits.h>
1795#else
1796# include <assert.h>
1797#endif
1798
1799#undef $2
1800
1801/* Override any GCC internal prototype to avoid an error.
1802   Use char because int might match the return type of a GCC
1803   builtin and then its argument prototype would still apply.  */
1804#ifdef __cplusplus
1805extern "C"
1806#endif
1807char $2 ();
1808/* The GNU C library defines this for functions which it implements
1809    to always fail with ENOSYS.  Some functions are actually named
1810    something starting with __ and the normal name is an alias.  */
1811#if defined __stub_$2 || defined __stub___$2
1812choke me
1813#endif
1814
1815int
1816main ()
1817{
1818return $2 ();
1819  ;
1820  return 0;
1821}
1822_ACEOF
1823if ac_fn_c_try_link "$LINENO"; then :
1824  eval "$3=yes"
1825else
1826  eval "$3=no"
1827fi
1828rm -f core conftest.err conftest.$ac_objext \
1829    conftest$ac_exeext conftest.$ac_ext
1830fi
1831eval ac_res=\$$3
1832	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833$as_echo "$ac_res" >&6; }
1834  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835
1836} # ac_fn_c_check_func
1837cat >config.log <<_ACEOF
1838This file contains any messages produced by compilers while
1839running configure, to aid debugging if configure makes a mistake.
1840
1841It was created by bitmap $as_me 1.1.0, which was
1842generated by GNU Autoconf 2.69.  Invocation command line was
1843
1844  $ $0 $@
1845
1846_ACEOF
1847exec 5>>config.log
1848{
1849cat <<_ASUNAME
1850## --------- ##
1851## Platform. ##
1852## --------- ##
1853
1854hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1855uname -m = `(uname -m) 2>/dev/null || echo unknown`
1856uname -r = `(uname -r) 2>/dev/null || echo unknown`
1857uname -s = `(uname -s) 2>/dev/null || echo unknown`
1858uname -v = `(uname -v) 2>/dev/null || echo unknown`
1859
1860/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1861/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1862
1863/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1864/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1865/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1866/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1867/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1868/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1869/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1870
1871_ASUNAME
1872
1873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874for as_dir in $PATH
1875do
1876  IFS=$as_save_IFS
1877  test -z "$as_dir" && as_dir=.
1878    $as_echo "PATH: $as_dir"
1879  done
1880IFS=$as_save_IFS
1881
1882} >&5
1883
1884cat >&5 <<_ACEOF
1885
1886
1887## ----------- ##
1888## Core tests. ##
1889## ----------- ##
1890
1891_ACEOF
1892
1893
1894# Keep a trace of the command line.
1895# Strip out --no-create and --no-recursion so they do not pile up.
1896# Strip out --silent because we don't want to record it for future runs.
1897# Also quote any args containing shell meta-characters.
1898# Make two passes to allow for proper duplicate-argument suppression.
1899ac_configure_args=
1900ac_configure_args0=
1901ac_configure_args1=
1902ac_must_keep_next=false
1903for ac_pass in 1 2
1904do
1905  for ac_arg
1906  do
1907    case $ac_arg in
1908    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1909    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1910    | -silent | --silent | --silen | --sile | --sil)
1911      continue ;;
1912    *\'*)
1913      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1914    esac
1915    case $ac_pass in
1916    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1917    2)
1918      as_fn_append ac_configure_args1 " '$ac_arg'"
1919      if test $ac_must_keep_next = true; then
1920	ac_must_keep_next=false # Got value, back to normal.
1921      else
1922	case $ac_arg in
1923	  *=* | --config-cache | -C | -disable-* | --disable-* \
1924	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1925	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1926	  | -with-* | --with-* | -without-* | --without-* | --x)
1927	    case "$ac_configure_args0 " in
1928	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1929	    esac
1930	    ;;
1931	  -* ) ac_must_keep_next=true ;;
1932	esac
1933      fi
1934      as_fn_append ac_configure_args " '$ac_arg'"
1935      ;;
1936    esac
1937  done
1938done
1939{ ac_configure_args0=; unset ac_configure_args0;}
1940{ ac_configure_args1=; unset ac_configure_args1;}
1941
1942# When interrupted or exit'd, cleanup temporary files, and complete
1943# config.log.  We remove comments because anyway the quotes in there
1944# would cause problems or look ugly.
1945# WARNING: Use '\'' to represent an apostrophe within the trap.
1946# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1947trap 'exit_status=$?
1948  # Save into config.log some information that might help in debugging.
1949  {
1950    echo
1951
1952    $as_echo "## ---------------- ##
1953## Cache variables. ##
1954## ---------------- ##"
1955    echo
1956    # The following way of writing the cache mishandles newlines in values,
1957(
1958  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1959    eval ac_val=\$$ac_var
1960    case $ac_val in #(
1961    *${as_nl}*)
1962      case $ac_var in #(
1963      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1964$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1965      esac
1966      case $ac_var in #(
1967      _ | IFS | as_nl) ;; #(
1968      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1969      *) { eval $ac_var=; unset $ac_var;} ;;
1970      esac ;;
1971    esac
1972  done
1973  (set) 2>&1 |
1974    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1975    *${as_nl}ac_space=\ *)
1976      sed -n \
1977	"s/'\''/'\''\\\\'\'''\''/g;
1978	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1979      ;; #(
1980    *)
1981      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1982      ;;
1983    esac |
1984    sort
1985)
1986    echo
1987
1988    $as_echo "## ----------------- ##
1989## Output variables. ##
1990## ----------------- ##"
1991    echo
1992    for ac_var in $ac_subst_vars
1993    do
1994      eval ac_val=\$$ac_var
1995      case $ac_val in
1996      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1997      esac
1998      $as_echo "$ac_var='\''$ac_val'\''"
1999    done | sort
2000    echo
2001
2002    if test -n "$ac_subst_files"; then
2003      $as_echo "## ------------------- ##
2004## File substitutions. ##
2005## ------------------- ##"
2006      echo
2007      for ac_var in $ac_subst_files
2008      do
2009	eval ac_val=\$$ac_var
2010	case $ac_val in
2011	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2012	esac
2013	$as_echo "$ac_var='\''$ac_val'\''"
2014      done | sort
2015      echo
2016    fi
2017
2018    if test -s confdefs.h; then
2019      $as_echo "## ----------- ##
2020## confdefs.h. ##
2021## ----------- ##"
2022      echo
2023      cat confdefs.h
2024      echo
2025    fi
2026    test "$ac_signal" != 0 &&
2027      $as_echo "$as_me: caught signal $ac_signal"
2028    $as_echo "$as_me: exit $exit_status"
2029  } >&5
2030  rm -f core *.core core.conftest.* &&
2031    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2032    exit $exit_status
2033' 0
2034for ac_signal in 1 2 13 15; do
2035  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2036done
2037ac_signal=0
2038
2039# confdefs.h avoids OS command line length limits that DEFS can exceed.
2040rm -f -r conftest* confdefs.h
2041
2042$as_echo "/* confdefs.h */" > confdefs.h
2043
2044# Predefined preprocessor variables.
2045
2046cat >>confdefs.h <<_ACEOF
2047#define PACKAGE_NAME "$PACKAGE_NAME"
2048_ACEOF
2049
2050cat >>confdefs.h <<_ACEOF
2051#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2052_ACEOF
2053
2054cat >>confdefs.h <<_ACEOF
2055#define PACKAGE_VERSION "$PACKAGE_VERSION"
2056_ACEOF
2057
2058cat >>confdefs.h <<_ACEOF
2059#define PACKAGE_STRING "$PACKAGE_STRING"
2060_ACEOF
2061
2062cat >>confdefs.h <<_ACEOF
2063#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2064_ACEOF
2065
2066cat >>confdefs.h <<_ACEOF
2067#define PACKAGE_URL "$PACKAGE_URL"
2068_ACEOF
2069
2070
2071# Let the site file select an alternate cache file if it wants to.
2072# Prefer an explicitly selected file to automatically selected ones.
2073ac_site_file1=NONE
2074ac_site_file2=NONE
2075if test -n "$CONFIG_SITE"; then
2076  # We do not want a PATH search for config.site.
2077  case $CONFIG_SITE in #((
2078    -*)  ac_site_file1=./$CONFIG_SITE;;
2079    */*) ac_site_file1=$CONFIG_SITE;;
2080    *)   ac_site_file1=./$CONFIG_SITE;;
2081  esac
2082elif test "x$prefix" != xNONE; then
2083  ac_site_file1=$prefix/share/config.site
2084  ac_site_file2=$prefix/etc/config.site
2085else
2086  ac_site_file1=$ac_default_prefix/share/config.site
2087  ac_site_file2=$ac_default_prefix/etc/config.site
2088fi
2089for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2090do
2091  test "x$ac_site_file" = xNONE && continue
2092  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2093    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2094$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2095    sed 's/^/| /' "$ac_site_file" >&5
2096    . "$ac_site_file" \
2097      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2098$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2099as_fn_error $? "failed to load site script $ac_site_file
2100See \`config.log' for more details" "$LINENO" 5; }
2101  fi
2102done
2103
2104if test -r "$cache_file"; then
2105  # Some versions of bash will fail to source /dev/null (special files
2106  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2107  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2108    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2109$as_echo "$as_me: loading cache $cache_file" >&6;}
2110    case $cache_file in
2111      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2112      *)                      . "./$cache_file";;
2113    esac
2114  fi
2115else
2116  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2117$as_echo "$as_me: creating cache $cache_file" >&6;}
2118  >$cache_file
2119fi
2120
2121# Check that the precious variables saved in the cache have kept the same
2122# value.
2123ac_cache_corrupted=false
2124for ac_var in $ac_precious_vars; do
2125  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2126  eval ac_new_set=\$ac_env_${ac_var}_set
2127  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2128  eval ac_new_val=\$ac_env_${ac_var}_value
2129  case $ac_old_set,$ac_new_set in
2130    set,)
2131      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2132$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2133      ac_cache_corrupted=: ;;
2134    ,set)
2135      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2136$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2137      ac_cache_corrupted=: ;;
2138    ,);;
2139    *)
2140      if test "x$ac_old_val" != "x$ac_new_val"; then
2141	# differences in whitespace do not lead to failure.
2142	ac_old_val_w=`echo x $ac_old_val`
2143	ac_new_val_w=`echo x $ac_new_val`
2144	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2145	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2146$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2147	  ac_cache_corrupted=:
2148	else
2149	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2150$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2151	  eval $ac_var=\$ac_old_val
2152	fi
2153	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2154$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2155	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2156$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2157      fi;;
2158  esac
2159  # Pass precious variables to config.status.
2160  if test "$ac_new_set" = set; then
2161    case $ac_new_val in
2162    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2163    *) ac_arg=$ac_var=$ac_new_val ;;
2164    esac
2165    case " $ac_configure_args " in
2166      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2167      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2168    esac
2169  fi
2170done
2171if $ac_cache_corrupted; then
2172  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2173$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2174  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2175$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2176  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2177fi
2178## -------------------- ##
2179## Main body of script. ##
2180## -------------------- ##
2181
2182ac_ext=c
2183ac_cpp='$CPP $CPPFLAGS'
2184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2186ac_compiler_gnu=$ac_cv_c_compiler_gnu
2187
2188
2189
2190ac_config_headers="$ac_config_headers config.h"
2191
2192
2193# Initialize Automake
2194am__api_version='1.15'
2195
2196ac_aux_dir=
2197for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2198  if test -f "$ac_dir/install-sh"; then
2199    ac_aux_dir=$ac_dir
2200    ac_install_sh="$ac_aux_dir/install-sh -c"
2201    break
2202  elif test -f "$ac_dir/install.sh"; then
2203    ac_aux_dir=$ac_dir
2204    ac_install_sh="$ac_aux_dir/install.sh -c"
2205    break
2206  elif test -f "$ac_dir/shtool"; then
2207    ac_aux_dir=$ac_dir
2208    ac_install_sh="$ac_aux_dir/shtool install -c"
2209    break
2210  fi
2211done
2212if test -z "$ac_aux_dir"; then
2213  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2214fi
2215
2216# These three variables are undocumented and unsupported,
2217# and are intended to be withdrawn in a future Autoconf release.
2218# They can cause serious problems if a builder's source tree is in a directory
2219# whose full name contains unusual characters.
2220ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2221ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2222ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2223
2224
2225# Find a good install program.  We prefer a C program (faster),
2226# so one script is as good as another.  But avoid the broken or
2227# incompatible versions:
2228# SysV /etc/install, /usr/sbin/install
2229# SunOS /usr/etc/install
2230# IRIX /sbin/install
2231# AIX /bin/install
2232# AmigaOS /C/install, which installs bootblocks on floppy discs
2233# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2234# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2235# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2236# OS/2's system install, which has a completely different semantic
2237# ./install, which can be erroneously created by make from ./install.sh.
2238# Reject install programs that cannot install multiple files.
2239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2240$as_echo_n "checking for a BSD-compatible install... " >&6; }
2241if test -z "$INSTALL"; then
2242if ${ac_cv_path_install+:} false; then :
2243  $as_echo_n "(cached) " >&6
2244else
2245  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246for as_dir in $PATH
2247do
2248  IFS=$as_save_IFS
2249  test -z "$as_dir" && as_dir=.
2250    # Account for people who put trailing slashes in PATH elements.
2251case $as_dir/ in #((
2252  ./ | .// | /[cC]/* | \
2253  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2254  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2255  /usr/ucb/* ) ;;
2256  *)
2257    # OSF1 and SCO ODT 3.0 have their own names for install.
2258    # Don't use installbsd from OSF since it installs stuff as root
2259    # by default.
2260    for ac_prog in ginstall scoinst install; do
2261      for ac_exec_ext in '' $ac_executable_extensions; do
2262	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2263	  if test $ac_prog = install &&
2264	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2265	    # AIX install.  It has an incompatible calling convention.
2266	    :
2267	  elif test $ac_prog = install &&
2268	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2269	    # program-specific install script used by HP pwplus--don't use.
2270	    :
2271	  else
2272	    rm -rf conftest.one conftest.two conftest.dir
2273	    echo one > conftest.one
2274	    echo two > conftest.two
2275	    mkdir conftest.dir
2276	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2277	      test -s conftest.one && test -s conftest.two &&
2278	      test -s conftest.dir/conftest.one &&
2279	      test -s conftest.dir/conftest.two
2280	    then
2281	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2282	      break 3
2283	    fi
2284	  fi
2285	fi
2286      done
2287    done
2288    ;;
2289esac
2290
2291  done
2292IFS=$as_save_IFS
2293
2294rm -rf conftest.one conftest.two conftest.dir
2295
2296fi
2297  if test "${ac_cv_path_install+set}" = set; then
2298    INSTALL=$ac_cv_path_install
2299  else
2300    # As a last resort, use the slow shell script.  Don't cache a
2301    # value for INSTALL within a source directory, because that will
2302    # break other packages using the cache if that directory is
2303    # removed, or if the value is a relative name.
2304    INSTALL=$ac_install_sh
2305  fi
2306fi
2307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2308$as_echo "$INSTALL" >&6; }
2309
2310# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2311# It thinks the first close brace ends the variable substitution.
2312test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2313
2314test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2315
2316test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2317
2318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2319$as_echo_n "checking whether build environment is sane... " >&6; }
2320# Reject unsafe characters in $srcdir or the absolute working directory
2321# name.  Accept space and tab only in the latter.
2322am_lf='
2323'
2324case `pwd` in
2325  *[\\\"\#\$\&\'\`$am_lf]*)
2326    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2327esac
2328case $srcdir in
2329  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2330    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2331esac
2332
2333# Do 'set' in a subshell so we don't clobber the current shell's
2334# arguments.  Must try -L first in case configure is actually a
2335# symlink; some systems play weird games with the mod time of symlinks
2336# (eg FreeBSD returns the mod time of the symlink's containing
2337# directory).
2338if (
2339   am_has_slept=no
2340   for am_try in 1 2; do
2341     echo "timestamp, slept: $am_has_slept" > conftest.file
2342     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2343     if test "$*" = "X"; then
2344	# -L didn't work.
2345	set X `ls -t "$srcdir/configure" conftest.file`
2346     fi
2347     if test "$*" != "X $srcdir/configure conftest.file" \
2348	&& test "$*" != "X conftest.file $srcdir/configure"; then
2349
2350	# If neither matched, then we have a broken ls.  This can happen
2351	# if, for instance, CONFIG_SHELL is bash and it inherits a
2352	# broken ls alias from the environment.  This has actually
2353	# happened.  Such a system could not be considered "sane".
2354	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2355  alias in your environment" "$LINENO" 5
2356     fi
2357     if test "$2" = conftest.file || test $am_try -eq 2; then
2358       break
2359     fi
2360     # Just in case.
2361     sleep 1
2362     am_has_slept=yes
2363   done
2364   test "$2" = conftest.file
2365   )
2366then
2367   # Ok.
2368   :
2369else
2370   as_fn_error $? "newly created file is older than distributed files!
2371Check your system clock" "$LINENO" 5
2372fi
2373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2374$as_echo "yes" >&6; }
2375# If we didn't sleep, we still need to ensure time stamps of config.status and
2376# generated files are strictly newer.
2377am_sleep_pid=
2378if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2379  ( sleep 1 ) &
2380  am_sleep_pid=$!
2381fi
2382
2383rm -f conftest.file
2384
2385test "$program_prefix" != NONE &&
2386  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2387# Use a double $ so make ignores it.
2388test "$program_suffix" != NONE &&
2389  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2390# Double any \ or $.
2391# By default was `s,x,x', remove it if useless.
2392ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2393program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2394
2395# Expand $ac_aux_dir to an absolute path.
2396am_aux_dir=`cd "$ac_aux_dir" && pwd`
2397
2398if test x"${MISSING+set}" != xset; then
2399  case $am_aux_dir in
2400  *\ * | *\	*)
2401    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2402  *)
2403    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2404  esac
2405fi
2406# Use eval to expand $SHELL
2407if eval "$MISSING --is-lightweight"; then
2408  am_missing_run="$MISSING "
2409else
2410  am_missing_run=
2411  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2412$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2413fi
2414
2415if test x"${install_sh+set}" != xset; then
2416  case $am_aux_dir in
2417  *\ * | *\	*)
2418    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2419  *)
2420    install_sh="\${SHELL} $am_aux_dir/install-sh"
2421  esac
2422fi
2423
2424# Installed binaries are usually stripped using 'strip' when the user
2425# run "make install-strip".  However 'strip' might not be the right
2426# tool to use in cross-compilation environments, therefore Automake
2427# will honor the 'STRIP' environment variable to overrule this program.
2428if test "$cross_compiling" != no; then
2429  if test -n "$ac_tool_prefix"; then
2430  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2431set dummy ${ac_tool_prefix}strip; ac_word=$2
2432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2433$as_echo_n "checking for $ac_word... " >&6; }
2434if ${ac_cv_prog_STRIP+:} false; then :
2435  $as_echo_n "(cached) " >&6
2436else
2437  if test -n "$STRIP"; then
2438  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2439else
2440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441for as_dir in $PATH
2442do
2443  IFS=$as_save_IFS
2444  test -z "$as_dir" && as_dir=.
2445    for ac_exec_ext in '' $ac_executable_extensions; do
2446  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2447    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2448    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2449    break 2
2450  fi
2451done
2452  done
2453IFS=$as_save_IFS
2454
2455fi
2456fi
2457STRIP=$ac_cv_prog_STRIP
2458if test -n "$STRIP"; then
2459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2460$as_echo "$STRIP" >&6; }
2461else
2462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2463$as_echo "no" >&6; }
2464fi
2465
2466
2467fi
2468if test -z "$ac_cv_prog_STRIP"; then
2469  ac_ct_STRIP=$STRIP
2470  # Extract the first word of "strip", so it can be a program name with args.
2471set dummy strip; ac_word=$2
2472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2473$as_echo_n "checking for $ac_word... " >&6; }
2474if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2475  $as_echo_n "(cached) " >&6
2476else
2477  if test -n "$ac_ct_STRIP"; then
2478  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2479else
2480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481for as_dir in $PATH
2482do
2483  IFS=$as_save_IFS
2484  test -z "$as_dir" && as_dir=.
2485    for ac_exec_ext in '' $ac_executable_extensions; do
2486  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2487    ac_cv_prog_ac_ct_STRIP="strip"
2488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2489    break 2
2490  fi
2491done
2492  done
2493IFS=$as_save_IFS
2494
2495fi
2496fi
2497ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2498if test -n "$ac_ct_STRIP"; then
2499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2500$as_echo "$ac_ct_STRIP" >&6; }
2501else
2502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2503$as_echo "no" >&6; }
2504fi
2505
2506  if test "x$ac_ct_STRIP" = x; then
2507    STRIP=":"
2508  else
2509    case $cross_compiling:$ac_tool_warned in
2510yes:)
2511{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2512$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2513ac_tool_warned=yes ;;
2514esac
2515    STRIP=$ac_ct_STRIP
2516  fi
2517else
2518  STRIP="$ac_cv_prog_STRIP"
2519fi
2520
2521fi
2522INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2523
2524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2525$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2526if test -z "$MKDIR_P"; then
2527  if ${ac_cv_path_mkdir+:} false; then :
2528  $as_echo_n "(cached) " >&6
2529else
2530  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2532do
2533  IFS=$as_save_IFS
2534  test -z "$as_dir" && as_dir=.
2535    for ac_prog in mkdir gmkdir; do
2536	 for ac_exec_ext in '' $ac_executable_extensions; do
2537	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2538	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2539	     'mkdir (GNU coreutils) '* | \
2540	     'mkdir (coreutils) '* | \
2541	     'mkdir (fileutils) '4.1*)
2542	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2543	       break 3;;
2544	   esac
2545	 done
2546       done
2547  done
2548IFS=$as_save_IFS
2549
2550fi
2551
2552  test -d ./--version && rmdir ./--version
2553  if test "${ac_cv_path_mkdir+set}" = set; then
2554    MKDIR_P="$ac_cv_path_mkdir -p"
2555  else
2556    # As a last resort, use the slow shell script.  Don't cache a
2557    # value for MKDIR_P within a source directory, because that will
2558    # break other packages using the cache if that directory is
2559    # removed, or if the value is a relative name.
2560    MKDIR_P="$ac_install_sh -d"
2561  fi
2562fi
2563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2564$as_echo "$MKDIR_P" >&6; }
2565
2566for ac_prog in gawk mawk nawk awk
2567do
2568  # Extract the first word of "$ac_prog", so it can be a program name with args.
2569set dummy $ac_prog; ac_word=$2
2570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2571$as_echo_n "checking for $ac_word... " >&6; }
2572if ${ac_cv_prog_AWK+:} false; then :
2573  $as_echo_n "(cached) " >&6
2574else
2575  if test -n "$AWK"; then
2576  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2577else
2578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579for as_dir in $PATH
2580do
2581  IFS=$as_save_IFS
2582  test -z "$as_dir" && as_dir=.
2583    for ac_exec_ext in '' $ac_executable_extensions; do
2584  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2585    ac_cv_prog_AWK="$ac_prog"
2586    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2587    break 2
2588  fi
2589done
2590  done
2591IFS=$as_save_IFS
2592
2593fi
2594fi
2595AWK=$ac_cv_prog_AWK
2596if test -n "$AWK"; then
2597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2598$as_echo "$AWK" >&6; }
2599else
2600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2601$as_echo "no" >&6; }
2602fi
2603
2604
2605  test -n "$AWK" && break
2606done
2607
2608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2609$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2610set x ${MAKE-make}
2611ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2612if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2613  $as_echo_n "(cached) " >&6
2614else
2615  cat >conftest.make <<\_ACEOF
2616SHELL = /bin/sh
2617all:
2618	@echo '@@@%%%=$(MAKE)=@@@%%%'
2619_ACEOF
2620# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2621case `${MAKE-make} -f conftest.make 2>/dev/null` in
2622  *@@@%%%=?*=@@@%%%*)
2623    eval ac_cv_prog_make_${ac_make}_set=yes;;
2624  *)
2625    eval ac_cv_prog_make_${ac_make}_set=no;;
2626esac
2627rm -f conftest.make
2628fi
2629if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2631$as_echo "yes" >&6; }
2632  SET_MAKE=
2633else
2634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635$as_echo "no" >&6; }
2636  SET_MAKE="MAKE=${MAKE-make}"
2637fi
2638
2639rm -rf .tst 2>/dev/null
2640mkdir .tst 2>/dev/null
2641if test -d .tst; then
2642  am__leading_dot=.
2643else
2644  am__leading_dot=_
2645fi
2646rmdir .tst 2>/dev/null
2647
2648# Check whether --enable-silent-rules was given.
2649if test "${enable_silent_rules+set}" = set; then :
2650  enableval=$enable_silent_rules;
2651fi
2652
2653case $enable_silent_rules in # (((
2654  yes) AM_DEFAULT_VERBOSITY=0;;
2655   no) AM_DEFAULT_VERBOSITY=1;;
2656    *) AM_DEFAULT_VERBOSITY=1;;
2657esac
2658am_make=${MAKE-make}
2659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2660$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2661if ${am_cv_make_support_nested_variables+:} false; then :
2662  $as_echo_n "(cached) " >&6
2663else
2664  if $as_echo 'TRUE=$(BAR$(V))
2665BAR0=false
2666BAR1=true
2667V=1
2668am__doit:
2669	@$(TRUE)
2670.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2671  am_cv_make_support_nested_variables=yes
2672else
2673  am_cv_make_support_nested_variables=no
2674fi
2675fi
2676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2677$as_echo "$am_cv_make_support_nested_variables" >&6; }
2678if test $am_cv_make_support_nested_variables = yes; then
2679    AM_V='$(V)'
2680  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2681else
2682  AM_V=$AM_DEFAULT_VERBOSITY
2683  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2684fi
2685AM_BACKSLASH='\'
2686
2687if test "`cd $srcdir && pwd`" != "`pwd`"; then
2688  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2689  # is not polluted with repeated "-I."
2690  am__isrc=' -I$(srcdir)'
2691  # test to see if srcdir already configured
2692  if test -f $srcdir/config.status; then
2693    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2694  fi
2695fi
2696
2697# test whether we have cygpath
2698if test -z "$CYGPATH_W"; then
2699  if (cygpath --version) >/dev/null 2>/dev/null; then
2700    CYGPATH_W='cygpath -w'
2701  else
2702    CYGPATH_W=echo
2703  fi
2704fi
2705
2706
2707# Define the identity of the package.
2708 PACKAGE='bitmap'
2709 VERSION='1.1.0'
2710
2711
2712cat >>confdefs.h <<_ACEOF
2713#define PACKAGE "$PACKAGE"
2714_ACEOF
2715
2716
2717cat >>confdefs.h <<_ACEOF
2718#define VERSION "$VERSION"
2719_ACEOF
2720
2721# Some tools Automake needs.
2722
2723ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2724
2725
2726AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2727
2728
2729AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2730
2731
2732AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2733
2734
2735MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2736
2737# For better backward compatibility.  To be removed once Automake 1.9.x
2738# dies out for good.  For more background, see:
2739# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2740# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2741mkdir_p='$(MKDIR_P)'
2742
2743# We need awk for the "check" target (and possibly the TAP driver).  The
2744# system "awk" is bad on some platforms.
2745# Always define AMTAR for backward compatibility.  Yes, it's still used
2746# in the wild :-(  We should find a proper way to deprecate it ...
2747AMTAR='$${TAR-tar}'
2748
2749
2750# We'll loop over all known methods to create a tar archive until one works.
2751_am_tools='gnutar  pax cpio none'
2752
2753am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2754
2755
2756
2757
2758
2759
2760# POSIX will say in a future version that running "rm -f" with no argument
2761# is OK; and we want to be able to make that assumption in our Makefile
2762# recipes.  So use an aggressive probe to check that the usage we want is
2763# actually supported "in the wild" to an acceptable degree.
2764# See automake bug#10828.
2765# To make any issue more visible, cause the running configure to be aborted
2766# by default if the 'rm' program in use doesn't match our expectations; the
2767# user can still override this though.
2768if rm -f && rm -fr && rm -rf; then : OK; else
2769  cat >&2 <<'END'
2770Oops!
2771
2772Your 'rm' program seems unable to run without file operands specified
2773on the command line, even when the '-f' option is present.  This is contrary
2774to the behaviour of most rm programs out there, and not conforming with
2775the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2776
2777Please tell bug-automake@gnu.org about your system, including the value
2778of your $PATH and any error possibly output before this message.  This
2779can help us improve future automake versions.
2780
2781END
2782  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2783    echo 'Configuration will proceed anyway, since you have set the' >&2
2784    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2785    echo >&2
2786  else
2787    cat >&2 <<'END'
2788Aborting the configuration process, to ensure you take notice of the issue.
2789
2790You can download and install GNU coreutils to get an 'rm' implementation
2791that behaves properly: <http://www.gnu.org/software/coreutils/>.
2792
2793If you want to complete the configuration process using your problematic
2794'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2795to "yes", and re-run configure.
2796
2797END
2798    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2799  fi
2800fi
2801
2802
2803# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815DEPDIR="${am__leading_dot}deps"
2816
2817ac_config_commands="$ac_config_commands depfiles"
2818
2819
2820am_make=${MAKE-make}
2821cat > confinc << 'END'
2822am__doit:
2823	@echo this is the am__doit target
2824.PHONY: am__doit
2825END
2826# If we don't find an include directive, just comment out the code.
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2828$as_echo_n "checking for style of include used by $am_make... " >&6; }
2829am__include="#"
2830am__quote=
2831_am_result=none
2832# First try GNU make style include.
2833echo "include confinc" > confmf
2834# Ignore all kinds of additional output from 'make'.
2835case `$am_make -s -f confmf 2> /dev/null` in #(
2836*the\ am__doit\ target*)
2837  am__include=include
2838  am__quote=
2839  _am_result=GNU
2840  ;;
2841esac
2842# Now try BSD make style include.
2843if test "$am__include" = "#"; then
2844   echo '.include "confinc"' > confmf
2845   case `$am_make -s -f confmf 2> /dev/null` in #(
2846   *the\ am__doit\ target*)
2847     am__include=.include
2848     am__quote="\""
2849     _am_result=BSD
2850     ;;
2851   esac
2852fi
2853
2854
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2856$as_echo "$_am_result" >&6; }
2857rm -f confinc confmf
2858
2859# Check whether --enable-dependency-tracking was given.
2860if test "${enable_dependency_tracking+set}" = set; then :
2861  enableval=$enable_dependency_tracking;
2862fi
2863
2864if test "x$enable_dependency_tracking" != xno; then
2865  am_depcomp="$ac_aux_dir/depcomp"
2866  AMDEPBACKSLASH='\'
2867  am__nodep='_no'
2868fi
2869 if test "x$enable_dependency_tracking" != xno; then
2870  AMDEP_TRUE=
2871  AMDEP_FALSE='#'
2872else
2873  AMDEP_TRUE='#'
2874  AMDEP_FALSE=
2875fi
2876
2877
2878ac_ext=c
2879ac_cpp='$CPP $CPPFLAGS'
2880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882ac_compiler_gnu=$ac_cv_c_compiler_gnu
2883if test -n "$ac_tool_prefix"; then
2884  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2885set dummy ${ac_tool_prefix}gcc; ac_word=$2
2886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887$as_echo_n "checking for $ac_word... " >&6; }
2888if ${ac_cv_prog_CC+:} false; then :
2889  $as_echo_n "(cached) " >&6
2890else
2891  if test -n "$CC"; then
2892  ac_cv_prog_CC="$CC" # Let the user override the test.
2893else
2894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895for as_dir in $PATH
2896do
2897  IFS=$as_save_IFS
2898  test -z "$as_dir" && as_dir=.
2899    for ac_exec_ext in '' $ac_executable_extensions; do
2900  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2901    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2902    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903    break 2
2904  fi
2905done
2906  done
2907IFS=$as_save_IFS
2908
2909fi
2910fi
2911CC=$ac_cv_prog_CC
2912if test -n "$CC"; then
2913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2914$as_echo "$CC" >&6; }
2915else
2916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917$as_echo "no" >&6; }
2918fi
2919
2920
2921fi
2922if test -z "$ac_cv_prog_CC"; then
2923  ac_ct_CC=$CC
2924  # Extract the first word of "gcc", so it can be a program name with args.
2925set dummy gcc; ac_word=$2
2926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927$as_echo_n "checking for $ac_word... " >&6; }
2928if ${ac_cv_prog_ac_ct_CC+:} false; then :
2929  $as_echo_n "(cached) " >&6
2930else
2931  if test -n "$ac_ct_CC"; then
2932  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2933else
2934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935for as_dir in $PATH
2936do
2937  IFS=$as_save_IFS
2938  test -z "$as_dir" && as_dir=.
2939    for ac_exec_ext in '' $ac_executable_extensions; do
2940  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2941    ac_cv_prog_ac_ct_CC="gcc"
2942    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2943    break 2
2944  fi
2945done
2946  done
2947IFS=$as_save_IFS
2948
2949fi
2950fi
2951ac_ct_CC=$ac_cv_prog_ac_ct_CC
2952if test -n "$ac_ct_CC"; then
2953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2954$as_echo "$ac_ct_CC" >&6; }
2955else
2956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957$as_echo "no" >&6; }
2958fi
2959
2960  if test "x$ac_ct_CC" = x; then
2961    CC=""
2962  else
2963    case $cross_compiling:$ac_tool_warned in
2964yes:)
2965{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2967ac_tool_warned=yes ;;
2968esac
2969    CC=$ac_ct_CC
2970  fi
2971else
2972  CC="$ac_cv_prog_CC"
2973fi
2974
2975if test -z "$CC"; then
2976          if test -n "$ac_tool_prefix"; then
2977    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2978set dummy ${ac_tool_prefix}cc; ac_word=$2
2979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980$as_echo_n "checking for $ac_word... " >&6; }
2981if ${ac_cv_prog_CC+:} false; then :
2982  $as_echo_n "(cached) " >&6
2983else
2984  if test -n "$CC"; then
2985  ac_cv_prog_CC="$CC" # Let the user override the test.
2986else
2987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988for as_dir in $PATH
2989do
2990  IFS=$as_save_IFS
2991  test -z "$as_dir" && as_dir=.
2992    for ac_exec_ext in '' $ac_executable_extensions; do
2993  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2994    ac_cv_prog_CC="${ac_tool_prefix}cc"
2995    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996    break 2
2997  fi
2998done
2999  done
3000IFS=$as_save_IFS
3001
3002fi
3003fi
3004CC=$ac_cv_prog_CC
3005if test -n "$CC"; then
3006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3007$as_echo "$CC" >&6; }
3008else
3009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010$as_echo "no" >&6; }
3011fi
3012
3013
3014  fi
3015fi
3016if test -z "$CC"; then
3017  # Extract the first word of "cc", so it can be a program name with args.
3018set dummy cc; ac_word=$2
3019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020$as_echo_n "checking for $ac_word... " >&6; }
3021if ${ac_cv_prog_CC+:} false; then :
3022  $as_echo_n "(cached) " >&6
3023else
3024  if test -n "$CC"; then
3025  ac_cv_prog_CC="$CC" # Let the user override the test.
3026else
3027  ac_prog_rejected=no
3028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029for as_dir in $PATH
3030do
3031  IFS=$as_save_IFS
3032  test -z "$as_dir" && as_dir=.
3033    for ac_exec_ext in '' $ac_executable_extensions; do
3034  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3035    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3036       ac_prog_rejected=yes
3037       continue
3038     fi
3039    ac_cv_prog_CC="cc"
3040    $as_echo "$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
3047if test $ac_prog_rejected = yes; then
3048  # We found a bogon in the path, so make sure we never use it.
3049  set dummy $ac_cv_prog_CC
3050  shift
3051  if test $# != 0; then
3052    # We chose a different compiler from the bogus one.
3053    # However, it has the same basename, so the bogon will be chosen
3054    # first if we set CC to just the basename; use the full file name.
3055    shift
3056    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3057  fi
3058fi
3059fi
3060fi
3061CC=$ac_cv_prog_CC
3062if test -n "$CC"; then
3063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3064$as_echo "$CC" >&6; }
3065else
3066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067$as_echo "no" >&6; }
3068fi
3069
3070
3071fi
3072if test -z "$CC"; then
3073  if test -n "$ac_tool_prefix"; then
3074  for ac_prog in cl.exe
3075  do
3076    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3077set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079$as_echo_n "checking for $ac_word... " >&6; }
3080if ${ac_cv_prog_CC+:} false; then :
3081  $as_echo_n "(cached) " >&6
3082else
3083  if test -n "$CC"; then
3084  ac_cv_prog_CC="$CC" # Let the user override the test.
3085else
3086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087for as_dir in $PATH
3088do
3089  IFS=$as_save_IFS
3090  test -z "$as_dir" && as_dir=.
3091    for ac_exec_ext in '' $ac_executable_extensions; do
3092  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3094    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3095    break 2
3096  fi
3097done
3098  done
3099IFS=$as_save_IFS
3100
3101fi
3102fi
3103CC=$ac_cv_prog_CC
3104if test -n "$CC"; then
3105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3106$as_echo "$CC" >&6; }
3107else
3108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109$as_echo "no" >&6; }
3110fi
3111
3112
3113    test -n "$CC" && break
3114  done
3115fi
3116if test -z "$CC"; then
3117  ac_ct_CC=$CC
3118  for ac_prog in cl.exe
3119do
3120  # Extract the first word of "$ac_prog", so it can be a program name with args.
3121set dummy $ac_prog; ac_word=$2
3122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123$as_echo_n "checking for $ac_word... " >&6; }
3124if ${ac_cv_prog_ac_ct_CC+:} false; then :
3125  $as_echo_n "(cached) " >&6
3126else
3127  if test -n "$ac_ct_CC"; then
3128  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3129else
3130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131for as_dir in $PATH
3132do
3133  IFS=$as_save_IFS
3134  test -z "$as_dir" && as_dir=.
3135    for ac_exec_ext in '' $ac_executable_extensions; do
3136  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137    ac_cv_prog_ac_ct_CC="$ac_prog"
3138    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3139    break 2
3140  fi
3141done
3142  done
3143IFS=$as_save_IFS
3144
3145fi
3146fi
3147ac_ct_CC=$ac_cv_prog_ac_ct_CC
3148if test -n "$ac_ct_CC"; then
3149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3150$as_echo "$ac_ct_CC" >&6; }
3151else
3152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153$as_echo "no" >&6; }
3154fi
3155
3156
3157  test -n "$ac_ct_CC" && break
3158done
3159
3160  if test "x$ac_ct_CC" = x; then
3161    CC=""
3162  else
3163    case $cross_compiling:$ac_tool_warned in
3164yes:)
3165{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3166$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3167ac_tool_warned=yes ;;
3168esac
3169    CC=$ac_ct_CC
3170  fi
3171fi
3172
3173fi
3174
3175
3176test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178as_fn_error $? "no acceptable C compiler found in \$PATH
3179See \`config.log' for more details" "$LINENO" 5; }
3180
3181# Provide some information about the compiler.
3182$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3183set X $ac_compile
3184ac_compiler=$2
3185for ac_option in --version -v -V -qversion; do
3186  { { ac_try="$ac_compiler $ac_option >&5"
3187case "(($ac_try" in
3188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189  *) ac_try_echo=$ac_try;;
3190esac
3191eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3192$as_echo "$ac_try_echo"; } >&5
3193  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3194  ac_status=$?
3195  if test -s conftest.err; then
3196    sed '10a\
3197... rest of stderr output deleted ...
3198         10q' conftest.err >conftest.er1
3199    cat conftest.er1 >&5
3200  fi
3201  rm -f conftest.er1 conftest.err
3202  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3203  test $ac_status = 0; }
3204done
3205
3206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207/* end confdefs.h.  */
3208
3209int
3210main ()
3211{
3212
3213  ;
3214  return 0;
3215}
3216_ACEOF
3217ac_clean_files_save=$ac_clean_files
3218ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3219# Try to create an executable without -o first, disregard a.out.
3220# It will help us diagnose broken compilers, and finding out an intuition
3221# of exeext.
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3223$as_echo_n "checking whether the C compiler works... " >&6; }
3224ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3225
3226# The possible output files:
3227ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3228
3229ac_rmfiles=
3230for ac_file in $ac_files
3231do
3232  case $ac_file in
3233    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3234    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3235  esac
3236done
3237rm -f $ac_rmfiles
3238
3239if { { ac_try="$ac_link_default"
3240case "(($ac_try" in
3241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242  *) ac_try_echo=$ac_try;;
3243esac
3244eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3245$as_echo "$ac_try_echo"; } >&5
3246  (eval "$ac_link_default") 2>&5
3247  ac_status=$?
3248  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3249  test $ac_status = 0; }; then :
3250  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3251# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3252# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3253# so that the user can short-circuit this test for compilers unknown to
3254# Autoconf.
3255for ac_file in $ac_files ''
3256do
3257  test -f "$ac_file" || continue
3258  case $ac_file in
3259    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3260	;;
3261    [ab].out )
3262	# We found the default executable, but exeext='' is most
3263	# certainly right.
3264	break;;
3265    *.* )
3266	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3267	then :; else
3268	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3269	fi
3270	# We set ac_cv_exeext here because the later test for it is not
3271	# safe: cross compilers may not add the suffix if given an `-o'
3272	# argument, so we may need to know it at that point already.
3273	# Even if this section looks crufty: it has the advantage of
3274	# actually working.
3275	break;;
3276    * )
3277	break;;
3278  esac
3279done
3280test "$ac_cv_exeext" = no && ac_cv_exeext=
3281
3282else
3283  ac_file=''
3284fi
3285if test -z "$ac_file"; then :
3286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287$as_echo "no" >&6; }
3288$as_echo "$as_me: failed program was:" >&5
3289sed 's/^/| /' conftest.$ac_ext >&5
3290
3291{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3293as_fn_error 77 "C compiler cannot create executables
3294See \`config.log' for more details" "$LINENO" 5; }
3295else
3296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297$as_echo "yes" >&6; }
3298fi
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3300$as_echo_n "checking for C compiler default output file name... " >&6; }
3301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3302$as_echo "$ac_file" >&6; }
3303ac_exeext=$ac_cv_exeext
3304
3305rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3306ac_clean_files=$ac_clean_files_save
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3308$as_echo_n "checking for suffix of executables... " >&6; }
3309if { { ac_try="$ac_link"
3310case "(($ac_try" in
3311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312  *) ac_try_echo=$ac_try;;
3313esac
3314eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3315$as_echo "$ac_try_echo"; } >&5
3316  (eval "$ac_link") 2>&5
3317  ac_status=$?
3318  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3319  test $ac_status = 0; }; then :
3320  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3321# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3322# work properly (i.e., refer to `conftest.exe'), while it won't with
3323# `rm'.
3324for ac_file in conftest.exe conftest conftest.*; do
3325  test -f "$ac_file" || continue
3326  case $ac_file in
3327    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3328    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3329	  break;;
3330    * ) break;;
3331  esac
3332done
3333else
3334  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3335$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3336as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3337See \`config.log' for more details" "$LINENO" 5; }
3338fi
3339rm -f conftest conftest$ac_cv_exeext
3340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3341$as_echo "$ac_cv_exeext" >&6; }
3342
3343rm -f conftest.$ac_ext
3344EXEEXT=$ac_cv_exeext
3345ac_exeext=$EXEEXT
3346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347/* end confdefs.h.  */
3348#include <stdio.h>
3349int
3350main ()
3351{
3352FILE *f = fopen ("conftest.out", "w");
3353 return ferror (f) || fclose (f) != 0;
3354
3355  ;
3356  return 0;
3357}
3358_ACEOF
3359ac_clean_files="$ac_clean_files conftest.out"
3360# Check that the compiler produces executables we can run.  If not, either
3361# the compiler is broken, or we cross compile.
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3363$as_echo_n "checking whether we are cross compiling... " >&6; }
3364if test "$cross_compiling" != yes; then
3365  { { ac_try="$ac_link"
3366case "(($ac_try" in
3367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368  *) ac_try_echo=$ac_try;;
3369esac
3370eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3371$as_echo "$ac_try_echo"; } >&5
3372  (eval "$ac_link") 2>&5
3373  ac_status=$?
3374  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3375  test $ac_status = 0; }
3376  if { ac_try='./conftest$ac_cv_exeext'
3377  { { case "(($ac_try" in
3378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379  *) ac_try_echo=$ac_try;;
3380esac
3381eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382$as_echo "$ac_try_echo"; } >&5
3383  (eval "$ac_try") 2>&5
3384  ac_status=$?
3385  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3386  test $ac_status = 0; }; }; then
3387    cross_compiling=no
3388  else
3389    if test "$cross_compiling" = maybe; then
3390	cross_compiling=yes
3391    else
3392	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3393$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3394as_fn_error $? "cannot run C compiled programs.
3395If you meant to cross compile, use \`--host'.
3396See \`config.log' for more details" "$LINENO" 5; }
3397    fi
3398  fi
3399fi
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3401$as_echo "$cross_compiling" >&6; }
3402
3403rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3404ac_clean_files=$ac_clean_files_save
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3406$as_echo_n "checking for suffix of object files... " >&6; }
3407if ${ac_cv_objext+:} false; then :
3408  $as_echo_n "(cached) " >&6
3409else
3410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411/* end confdefs.h.  */
3412
3413int
3414main ()
3415{
3416
3417  ;
3418  return 0;
3419}
3420_ACEOF
3421rm -f conftest.o conftest.obj
3422if { { ac_try="$ac_compile"
3423case "(($ac_try" in
3424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425  *) ac_try_echo=$ac_try;;
3426esac
3427eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3428$as_echo "$ac_try_echo"; } >&5
3429  (eval "$ac_compile") 2>&5
3430  ac_status=$?
3431  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3432  test $ac_status = 0; }; then :
3433  for ac_file in conftest.o conftest.obj conftest.*; do
3434  test -f "$ac_file" || continue;
3435  case $ac_file in
3436    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3437    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3438       break;;
3439  esac
3440done
3441else
3442  $as_echo "$as_me: failed program was:" >&5
3443sed 's/^/| /' conftest.$ac_ext >&5
3444
3445{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3446$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3447as_fn_error $? "cannot compute suffix of object files: cannot compile
3448See \`config.log' for more details" "$LINENO" 5; }
3449fi
3450rm -f conftest.$ac_cv_objext conftest.$ac_ext
3451fi
3452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3453$as_echo "$ac_cv_objext" >&6; }
3454OBJEXT=$ac_cv_objext
3455ac_objext=$OBJEXT
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3457$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3458if ${ac_cv_c_compiler_gnu+:} false; then :
3459  $as_echo_n "(cached) " >&6
3460else
3461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462/* end confdefs.h.  */
3463
3464int
3465main ()
3466{
3467#ifndef __GNUC__
3468       choke me
3469#endif
3470
3471  ;
3472  return 0;
3473}
3474_ACEOF
3475if ac_fn_c_try_compile "$LINENO"; then :
3476  ac_compiler_gnu=yes
3477else
3478  ac_compiler_gnu=no
3479fi
3480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481ac_cv_c_compiler_gnu=$ac_compiler_gnu
3482
3483fi
3484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3485$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3486if test $ac_compiler_gnu = yes; then
3487  GCC=yes
3488else
3489  GCC=
3490fi
3491ac_test_CFLAGS=${CFLAGS+set}
3492ac_save_CFLAGS=$CFLAGS
3493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3494$as_echo_n "checking whether $CC accepts -g... " >&6; }
3495if ${ac_cv_prog_cc_g+:} false; then :
3496  $as_echo_n "(cached) " >&6
3497else
3498  ac_save_c_werror_flag=$ac_c_werror_flag
3499   ac_c_werror_flag=yes
3500   ac_cv_prog_cc_g=no
3501   CFLAGS="-g"
3502   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503/* end confdefs.h.  */
3504
3505int
3506main ()
3507{
3508
3509  ;
3510  return 0;
3511}
3512_ACEOF
3513if ac_fn_c_try_compile "$LINENO"; then :
3514  ac_cv_prog_cc_g=yes
3515else
3516  CFLAGS=""
3517      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518/* end confdefs.h.  */
3519
3520int
3521main ()
3522{
3523
3524  ;
3525  return 0;
3526}
3527_ACEOF
3528if ac_fn_c_try_compile "$LINENO"; then :
3529
3530else
3531  ac_c_werror_flag=$ac_save_c_werror_flag
3532	 CFLAGS="-g"
3533	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534/* end confdefs.h.  */
3535
3536int
3537main ()
3538{
3539
3540  ;
3541  return 0;
3542}
3543_ACEOF
3544if ac_fn_c_try_compile "$LINENO"; then :
3545  ac_cv_prog_cc_g=yes
3546fi
3547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3548fi
3549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3550fi
3551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552   ac_c_werror_flag=$ac_save_c_werror_flag
3553fi
3554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3555$as_echo "$ac_cv_prog_cc_g" >&6; }
3556if test "$ac_test_CFLAGS" = set; then
3557  CFLAGS=$ac_save_CFLAGS
3558elif test $ac_cv_prog_cc_g = yes; then
3559  if test "$GCC" = yes; then
3560    CFLAGS="-g -O2"
3561  else
3562    CFLAGS="-g"
3563  fi
3564else
3565  if test "$GCC" = yes; then
3566    CFLAGS="-O2"
3567  else
3568    CFLAGS=
3569  fi
3570fi
3571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3572$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3573if ${ac_cv_prog_cc_c89+:} false; then :
3574  $as_echo_n "(cached) " >&6
3575else
3576  ac_cv_prog_cc_c89=no
3577ac_save_CC=$CC
3578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579/* end confdefs.h.  */
3580#include <stdarg.h>
3581#include <stdio.h>
3582struct stat;
3583/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3584struct buf { int x; };
3585FILE * (*rcsopen) (struct buf *, struct stat *, int);
3586static char *e (p, i)
3587     char **p;
3588     int i;
3589{
3590  return p[i];
3591}
3592static char *f (char * (*g) (char **, int), char **p, ...)
3593{
3594  char *s;
3595  va_list v;
3596  va_start (v,p);
3597  s = g (p, va_arg (v,int));
3598  va_end (v);
3599  return s;
3600}
3601
3602/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3603   function prototypes and stuff, but not '\xHH' hex character constants.
3604   These don't provoke an error unfortunately, instead are silently treated
3605   as 'x'.  The following induces an error, until -std is added to get
3606   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3607   array size at least.  It's necessary to write '\x00'==0 to get something
3608   that's true only with -std.  */
3609int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3610
3611/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3612   inside strings and character constants.  */
3613#define FOO(x) 'x'
3614int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3615
3616int test (int i, double x);
3617struct s1 {int (*f) (int a);};
3618struct s2 {int (*f) (double a);};
3619int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3620int argc;
3621char **argv;
3622int
3623main ()
3624{
3625return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3626  ;
3627  return 0;
3628}
3629_ACEOF
3630for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3631	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3632do
3633  CC="$ac_save_CC $ac_arg"
3634  if ac_fn_c_try_compile "$LINENO"; then :
3635  ac_cv_prog_cc_c89=$ac_arg
3636fi
3637rm -f core conftest.err conftest.$ac_objext
3638  test "x$ac_cv_prog_cc_c89" != "xno" && break
3639done
3640rm -f conftest.$ac_ext
3641CC=$ac_save_CC
3642
3643fi
3644# AC_CACHE_VAL
3645case "x$ac_cv_prog_cc_c89" in
3646  x)
3647    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3648$as_echo "none needed" >&6; } ;;
3649  xno)
3650    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3651$as_echo "unsupported" >&6; } ;;
3652  *)
3653    CC="$CC $ac_cv_prog_cc_c89"
3654    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3655$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3656esac
3657if test "x$ac_cv_prog_cc_c89" != xno; then :
3658
3659fi
3660
3661ac_ext=c
3662ac_cpp='$CPP $CPPFLAGS'
3663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3665ac_compiler_gnu=$ac_cv_c_compiler_gnu
3666
3667ac_ext=c
3668ac_cpp='$CPP $CPPFLAGS'
3669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3671ac_compiler_gnu=$ac_cv_c_compiler_gnu
3672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3673$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3674if ${am_cv_prog_cc_c_o+:} false; then :
3675  $as_echo_n "(cached) " >&6
3676else
3677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678/* end confdefs.h.  */
3679
3680int
3681main ()
3682{
3683
3684  ;
3685  return 0;
3686}
3687_ACEOF
3688  # Make sure it works both with $CC and with simple cc.
3689  # Following AC_PROG_CC_C_O, we do the test twice because some
3690  # compilers refuse to overwrite an existing .o file with -o,
3691  # though they will create one.
3692  am_cv_prog_cc_c_o=yes
3693  for am_i in 1 2; do
3694    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3695   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3696   ac_status=$?
3697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698   (exit $ac_status); } \
3699         && test -f conftest2.$ac_objext; then
3700      : OK
3701    else
3702      am_cv_prog_cc_c_o=no
3703      break
3704    fi
3705  done
3706  rm -f core conftest*
3707  unset am_i
3708fi
3709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3710$as_echo "$am_cv_prog_cc_c_o" >&6; }
3711if test "$am_cv_prog_cc_c_o" != yes; then
3712   # Losing compiler, so override with the script.
3713   # FIXME: It is wrong to rewrite CC.
3714   # But if we don't then we get into trouble of one sort or another.
3715   # A longer-term fix would be to have automake use am__CC in this case,
3716   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3717   CC="$am_aux_dir/compile $CC"
3718fi
3719ac_ext=c
3720ac_cpp='$CPP $CPPFLAGS'
3721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3723ac_compiler_gnu=$ac_cv_c_compiler_gnu
3724
3725
3726depcc="$CC"   am_compiler_list=
3727
3728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3729$as_echo_n "checking dependency style of $depcc... " >&6; }
3730if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3731  $as_echo_n "(cached) " >&6
3732else
3733  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3734  # We make a subdir and do the tests there.  Otherwise we can end up
3735  # making bogus files that we don't know about and never remove.  For
3736  # instance it was reported that on HP-UX the gcc test will end up
3737  # making a dummy file named 'D' -- because '-MD' means "put the output
3738  # in D".
3739  rm -rf conftest.dir
3740  mkdir conftest.dir
3741  # Copy depcomp to subdir because otherwise we won't find it if we're
3742  # using a relative directory.
3743  cp "$am_depcomp" conftest.dir
3744  cd conftest.dir
3745  # We will build objects and dependencies in a subdirectory because
3746  # it helps to detect inapplicable dependency modes.  For instance
3747  # both Tru64's cc and ICC support -MD to output dependencies as a
3748  # side effect of compilation, but ICC will put the dependencies in
3749  # the current directory while Tru64 will put them in the object
3750  # directory.
3751  mkdir sub
3752
3753  am_cv_CC_dependencies_compiler_type=none
3754  if test "$am_compiler_list" = ""; then
3755     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3756  fi
3757  am__universal=false
3758  case " $depcc " in #(
3759     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3760     esac
3761
3762  for depmode in $am_compiler_list; do
3763    # Setup a source with many dependencies, because some compilers
3764    # like to wrap large dependency lists on column 80 (with \), and
3765    # we should not choose a depcomp mode which is confused by this.
3766    #
3767    # We need to recreate these files for each test, as the compiler may
3768    # overwrite some of them when testing with obscure command lines.
3769    # This happens at least with the AIX C compiler.
3770    : > sub/conftest.c
3771    for i in 1 2 3 4 5 6; do
3772      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3773      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3774      # Solaris 10 /bin/sh.
3775      echo '/* dummy */' > sub/conftst$i.h
3776    done
3777    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3778
3779    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3780    # mode.  It turns out that the SunPro C++ compiler does not properly
3781    # handle '-M -o', and we need to detect this.  Also, some Intel
3782    # versions had trouble with output in subdirs.
3783    am__obj=sub/conftest.${OBJEXT-o}
3784    am__minus_obj="-o $am__obj"
3785    case $depmode in
3786    gcc)
3787      # This depmode causes a compiler race in universal mode.
3788      test "$am__universal" = false || continue
3789      ;;
3790    nosideeffect)
3791      # After this tag, mechanisms are not by side-effect, so they'll
3792      # only be used when explicitly requested.
3793      if test "x$enable_dependency_tracking" = xyes; then
3794	continue
3795      else
3796	break
3797      fi
3798      ;;
3799    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3800      # This compiler won't grok '-c -o', but also, the minuso test has
3801      # not run yet.  These depmodes are late enough in the game, and
3802      # so weak that their functioning should not be impacted.
3803      am__obj=conftest.${OBJEXT-o}
3804      am__minus_obj=
3805      ;;
3806    none) break ;;
3807    esac
3808    if depmode=$depmode \
3809       source=sub/conftest.c object=$am__obj \
3810       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3811       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3812         >/dev/null 2>conftest.err &&
3813       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3814       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3815       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3816       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3817      # icc doesn't choke on unknown options, it will just issue warnings
3818      # or remarks (even with -Werror).  So we grep stderr for any message
3819      # that says an option was ignored or not supported.
3820      # When given -MP, icc 7.0 and 7.1 complain thusly:
3821      #   icc: Command line warning: ignoring option '-M'; no argument required
3822      # The diagnosis changed in icc 8.0:
3823      #   icc: Command line remark: option '-MP' not supported
3824      if (grep 'ignoring option' conftest.err ||
3825          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3826        am_cv_CC_dependencies_compiler_type=$depmode
3827        break
3828      fi
3829    fi
3830  done
3831
3832  cd ..
3833  rm -rf conftest.dir
3834else
3835  am_cv_CC_dependencies_compiler_type=none
3836fi
3837
3838fi
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3840$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3841CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3842
3843 if
3844  test "x$enable_dependency_tracking" != xno \
3845  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3846  am__fastdepCC_TRUE=
3847  am__fastdepCC_FALSE='#'
3848else
3849  am__fastdepCC_TRUE='#'
3850  am__fastdepCC_FALSE=
3851fi
3852
3853
3854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3855$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3856if ${ac_cv_prog_cc_c99+:} false; then :
3857  $as_echo_n "(cached) " >&6
3858else
3859  ac_cv_prog_cc_c99=no
3860ac_save_CC=$CC
3861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862/* end confdefs.h.  */
3863#include <stdarg.h>
3864#include <stdbool.h>
3865#include <stdlib.h>
3866#include <wchar.h>
3867#include <stdio.h>
3868
3869// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3870#define debug(...) fprintf (stderr, __VA_ARGS__)
3871#define showlist(...) puts (#__VA_ARGS__)
3872#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3873static void
3874test_varargs_macros (void)
3875{
3876  int x = 1234;
3877  int y = 5678;
3878  debug ("Flag");
3879  debug ("X = %d\n", x);
3880  showlist (The first, second, and third items.);
3881  report (x>y, "x is %d but y is %d", x, y);
3882}
3883
3884// Check long long types.
3885#define BIG64 18446744073709551615ull
3886#define BIG32 4294967295ul
3887#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3888#if !BIG_OK
3889  your preprocessor is broken;
3890#endif
3891#if BIG_OK
3892#else
3893  your preprocessor is broken;
3894#endif
3895static long long int bignum = -9223372036854775807LL;
3896static unsigned long long int ubignum = BIG64;
3897
3898struct incomplete_array
3899{
3900  int datasize;
3901  double data[];
3902};
3903
3904struct named_init {
3905  int number;
3906  const wchar_t *name;
3907  double average;
3908};
3909
3910typedef const char *ccp;
3911
3912static inline int
3913test_restrict (ccp restrict text)
3914{
3915  // See if C++-style comments work.
3916  // Iterate through items via the restricted pointer.
3917  // Also check for declarations in for loops.
3918  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3919    continue;
3920  return 0;
3921}
3922
3923// Check varargs and va_copy.
3924static void
3925test_varargs (const char *format, ...)
3926{
3927  va_list args;
3928  va_start (args, format);
3929  va_list args_copy;
3930  va_copy (args_copy, args);
3931
3932  const char *str;
3933  int number;
3934  float fnumber;
3935
3936  while (*format)
3937    {
3938      switch (*format++)
3939	{
3940	case 's': // string
3941	  str = va_arg (args_copy, const char *);
3942	  break;
3943	case 'd': // int
3944	  number = va_arg (args_copy, int);
3945	  break;
3946	case 'f': // float
3947	  fnumber = va_arg (args_copy, double);
3948	  break;
3949	default:
3950	  break;
3951	}
3952    }
3953  va_end (args_copy);
3954  va_end (args);
3955}
3956
3957int
3958main ()
3959{
3960
3961  // Check bool.
3962  _Bool success = false;
3963
3964  // Check restrict.
3965  if (test_restrict ("String literal") == 0)
3966    success = true;
3967  char *restrict newvar = "Another string";
3968
3969  // Check varargs.
3970  test_varargs ("s, d' f .", "string", 65, 34.234);
3971  test_varargs_macros ();
3972
3973  // Check flexible array members.
3974  struct incomplete_array *ia =
3975    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3976  ia->datasize = 10;
3977  for (int i = 0; i < ia->datasize; ++i)
3978    ia->data[i] = i * 1.234;
3979
3980  // Check named initializers.
3981  struct named_init ni = {
3982    .number = 34,
3983    .name = L"Test wide string",
3984    .average = 543.34343,
3985  };
3986
3987  ni.number = 58;
3988
3989  int dynamic_array[ni.number];
3990  dynamic_array[ni.number - 1] = 543;
3991
3992  // work around unused variable warnings
3993  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3994	  || dynamic_array[ni.number - 1] != 543);
3995
3996  ;
3997  return 0;
3998}
3999_ACEOF
4000for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4001do
4002  CC="$ac_save_CC $ac_arg"
4003  if ac_fn_c_try_compile "$LINENO"; then :
4004  ac_cv_prog_cc_c99=$ac_arg
4005fi
4006rm -f core conftest.err conftest.$ac_objext
4007  test "x$ac_cv_prog_cc_c99" != "xno" && break
4008done
4009rm -f conftest.$ac_ext
4010CC=$ac_save_CC
4011
4012fi
4013# AC_CACHE_VAL
4014case "x$ac_cv_prog_cc_c99" in
4015  x)
4016    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4017$as_echo "none needed" >&6; } ;;
4018  xno)
4019    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4020$as_echo "unsupported" >&6; } ;;
4021  *)
4022    CC="$CC $ac_cv_prog_cc_c99"
4023    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4024$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4025esac
4026if test "x$ac_cv_prog_cc_c99" != xno; then :
4027
4028fi
4029
4030
4031
4032ac_ext=c
4033ac_cpp='$CPP $CPPFLAGS'
4034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4036ac_compiler_gnu=$ac_cv_c_compiler_gnu
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4038$as_echo_n "checking how to run the C preprocessor... " >&6; }
4039# On Suns, sometimes $CPP names a directory.
4040if test -n "$CPP" && test -d "$CPP"; then
4041  CPP=
4042fi
4043if test -z "$CPP"; then
4044  if ${ac_cv_prog_CPP+:} false; then :
4045  $as_echo_n "(cached) " >&6
4046else
4047      # Double quotes because CPP needs to be expanded
4048    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4049    do
4050      ac_preproc_ok=false
4051for ac_c_preproc_warn_flag in '' yes
4052do
4053  # Use a header file that comes with gcc, so configuring glibc
4054  # with a fresh cross-compiler works.
4055  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4056  # <limits.h> exists even on freestanding compilers.
4057  # On the NeXT, cc -E runs the code through the compiler's parser,
4058  # not just through cpp. "Syntax error" is here to catch this case.
4059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060/* end confdefs.h.  */
4061#ifdef __STDC__
4062# include <limits.h>
4063#else
4064# include <assert.h>
4065#endif
4066		     Syntax error
4067_ACEOF
4068if ac_fn_c_try_cpp "$LINENO"; then :
4069
4070else
4071  # Broken: fails on valid input.
4072continue
4073fi
4074rm -f conftest.err conftest.i conftest.$ac_ext
4075
4076  # OK, works on sane cases.  Now check whether nonexistent headers
4077  # can be detected and how.
4078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079/* end confdefs.h.  */
4080#include <ac_nonexistent.h>
4081_ACEOF
4082if ac_fn_c_try_cpp "$LINENO"; then :
4083  # Broken: success on invalid input.
4084continue
4085else
4086  # Passes both tests.
4087ac_preproc_ok=:
4088break
4089fi
4090rm -f conftest.err conftest.i conftest.$ac_ext
4091
4092done
4093# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4094rm -f conftest.i conftest.err conftest.$ac_ext
4095if $ac_preproc_ok; then :
4096  break
4097fi
4098
4099    done
4100    ac_cv_prog_CPP=$CPP
4101
4102fi
4103  CPP=$ac_cv_prog_CPP
4104else
4105  ac_cv_prog_CPP=$CPP
4106fi
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4108$as_echo "$CPP" >&6; }
4109ac_preproc_ok=false
4110for ac_c_preproc_warn_flag in '' yes
4111do
4112  # Use a header file that comes with gcc, so configuring glibc
4113  # with a fresh cross-compiler works.
4114  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4115  # <limits.h> exists even on freestanding compilers.
4116  # On the NeXT, cc -E runs the code through the compiler's parser,
4117  # not just through cpp. "Syntax error" is here to catch this case.
4118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119/* end confdefs.h.  */
4120#ifdef __STDC__
4121# include <limits.h>
4122#else
4123# include <assert.h>
4124#endif
4125		     Syntax error
4126_ACEOF
4127if ac_fn_c_try_cpp "$LINENO"; then :
4128
4129else
4130  # Broken: fails on valid input.
4131continue
4132fi
4133rm -f conftest.err conftest.i conftest.$ac_ext
4134
4135  # OK, works on sane cases.  Now check whether nonexistent headers
4136  # can be detected and how.
4137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138/* end confdefs.h.  */
4139#include <ac_nonexistent.h>
4140_ACEOF
4141if ac_fn_c_try_cpp "$LINENO"; then :
4142  # Broken: success on invalid input.
4143continue
4144else
4145  # Passes both tests.
4146ac_preproc_ok=:
4147break
4148fi
4149rm -f conftest.err conftest.i conftest.$ac_ext
4150
4151done
4152# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4153rm -f conftest.i conftest.err conftest.$ac_ext
4154if $ac_preproc_ok; then :
4155
4156else
4157  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4159as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4160See \`config.log' for more details" "$LINENO" 5; }
4161fi
4162
4163ac_ext=c
4164ac_cpp='$CPP $CPPFLAGS'
4165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4167ac_compiler_gnu=$ac_cv_c_compiler_gnu
4168
4169
4170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4171$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4172if ${ac_cv_path_GREP+:} false; then :
4173  $as_echo_n "(cached) " >&6
4174else
4175  if test -z "$GREP"; then
4176  ac_path_GREP_found=false
4177  # Loop through the user's path and test for each of PROGNAME-LIST
4178  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4180do
4181  IFS=$as_save_IFS
4182  test -z "$as_dir" && as_dir=.
4183    for ac_prog in grep ggrep; do
4184    for ac_exec_ext in '' $ac_executable_extensions; do
4185      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4186      as_fn_executable_p "$ac_path_GREP" || continue
4187# Check for GNU ac_path_GREP and select it if it is found.
4188  # Check for GNU $ac_path_GREP
4189case `"$ac_path_GREP" --version 2>&1` in
4190*GNU*)
4191  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4192*)
4193  ac_count=0
4194  $as_echo_n 0123456789 >"conftest.in"
4195  while :
4196  do
4197    cat "conftest.in" "conftest.in" >"conftest.tmp"
4198    mv "conftest.tmp" "conftest.in"
4199    cp "conftest.in" "conftest.nl"
4200    $as_echo 'GREP' >> "conftest.nl"
4201    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4202    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4203    as_fn_arith $ac_count + 1 && ac_count=$as_val
4204    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4205      # Best one so far, save it but keep looking for a better one
4206      ac_cv_path_GREP="$ac_path_GREP"
4207      ac_path_GREP_max=$ac_count
4208    fi
4209    # 10*(2^10) chars as input seems more than enough
4210    test $ac_count -gt 10 && break
4211  done
4212  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4213esac
4214
4215      $ac_path_GREP_found && break 3
4216    done
4217  done
4218  done
4219IFS=$as_save_IFS
4220  if test -z "$ac_cv_path_GREP"; then
4221    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4222  fi
4223else
4224  ac_cv_path_GREP=$GREP
4225fi
4226
4227fi
4228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4229$as_echo "$ac_cv_path_GREP" >&6; }
4230 GREP="$ac_cv_path_GREP"
4231
4232
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4234$as_echo_n "checking for egrep... " >&6; }
4235if ${ac_cv_path_EGREP+:} false; then :
4236  $as_echo_n "(cached) " >&6
4237else
4238  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4239   then ac_cv_path_EGREP="$GREP -E"
4240   else
4241     if test -z "$EGREP"; then
4242  ac_path_EGREP_found=false
4243  # Loop through the user's path and test for each of PROGNAME-LIST
4244  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4246do
4247  IFS=$as_save_IFS
4248  test -z "$as_dir" && as_dir=.
4249    for ac_prog in egrep; do
4250    for ac_exec_ext in '' $ac_executable_extensions; do
4251      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4252      as_fn_executable_p "$ac_path_EGREP" || continue
4253# Check for GNU ac_path_EGREP and select it if it is found.
4254  # Check for GNU $ac_path_EGREP
4255case `"$ac_path_EGREP" --version 2>&1` in
4256*GNU*)
4257  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4258*)
4259  ac_count=0
4260  $as_echo_n 0123456789 >"conftest.in"
4261  while :
4262  do
4263    cat "conftest.in" "conftest.in" >"conftest.tmp"
4264    mv "conftest.tmp" "conftest.in"
4265    cp "conftest.in" "conftest.nl"
4266    $as_echo 'EGREP' >> "conftest.nl"
4267    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4268    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4269    as_fn_arith $ac_count + 1 && ac_count=$as_val
4270    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4271      # Best one so far, save it but keep looking for a better one
4272      ac_cv_path_EGREP="$ac_path_EGREP"
4273      ac_path_EGREP_max=$ac_count
4274    fi
4275    # 10*(2^10) chars as input seems more than enough
4276    test $ac_count -gt 10 && break
4277  done
4278  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4279esac
4280
4281      $ac_path_EGREP_found && break 3
4282    done
4283  done
4284  done
4285IFS=$as_save_IFS
4286  if test -z "$ac_cv_path_EGREP"; then
4287    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4288  fi
4289else
4290  ac_cv_path_EGREP=$EGREP
4291fi
4292
4293   fi
4294fi
4295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4296$as_echo "$ac_cv_path_EGREP" >&6; }
4297 EGREP="$ac_cv_path_EGREP"
4298
4299
4300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4301$as_echo_n "checking for ANSI C header files... " >&6; }
4302if ${ac_cv_header_stdc+:} false; then :
4303  $as_echo_n "(cached) " >&6
4304else
4305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306/* end confdefs.h.  */
4307#include <stdlib.h>
4308#include <stdarg.h>
4309#include <string.h>
4310#include <float.h>
4311
4312int
4313main ()
4314{
4315
4316  ;
4317  return 0;
4318}
4319_ACEOF
4320if ac_fn_c_try_compile "$LINENO"; then :
4321  ac_cv_header_stdc=yes
4322else
4323  ac_cv_header_stdc=no
4324fi
4325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326
4327if test $ac_cv_header_stdc = yes; then
4328  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330/* end confdefs.h.  */
4331#include <string.h>
4332
4333_ACEOF
4334if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4335  $EGREP "memchr" >/dev/null 2>&1; then :
4336
4337else
4338  ac_cv_header_stdc=no
4339fi
4340rm -f conftest*
4341
4342fi
4343
4344if test $ac_cv_header_stdc = yes; then
4345  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347/* end confdefs.h.  */
4348#include <stdlib.h>
4349
4350_ACEOF
4351if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4352  $EGREP "free" >/dev/null 2>&1; then :
4353
4354else
4355  ac_cv_header_stdc=no
4356fi
4357rm -f conftest*
4358
4359fi
4360
4361if test $ac_cv_header_stdc = yes; then
4362  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4363  if test "$cross_compiling" = yes; then :
4364  :
4365else
4366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367/* end confdefs.h.  */
4368#include <ctype.h>
4369#include <stdlib.h>
4370#if ((' ' & 0x0FF) == 0x020)
4371# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4372# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4373#else
4374# define ISLOWER(c) \
4375		   (('a' <= (c) && (c) <= 'i') \
4376		     || ('j' <= (c) && (c) <= 'r') \
4377		     || ('s' <= (c) && (c) <= 'z'))
4378# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4379#endif
4380
4381#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4382int
4383main ()
4384{
4385  int i;
4386  for (i = 0; i < 256; i++)
4387    if (XOR (islower (i), ISLOWER (i))
4388	|| toupper (i) != TOUPPER (i))
4389      return 2;
4390  return 0;
4391}
4392_ACEOF
4393if ac_fn_c_try_run "$LINENO"; then :
4394
4395else
4396  ac_cv_header_stdc=no
4397fi
4398rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4399  conftest.$ac_objext conftest.beam conftest.$ac_ext
4400fi
4401
4402fi
4403fi
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4405$as_echo "$ac_cv_header_stdc" >&6; }
4406if test $ac_cv_header_stdc = yes; then
4407
4408$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4409
4410fi
4411
4412# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4413for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4414		  inttypes.h stdint.h unistd.h
4415do :
4416  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4417ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4418"
4419if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4420  cat >>confdefs.h <<_ACEOF
4421#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4422_ACEOF
4423
4424fi
4425
4426done
4427
4428
4429
4430
4431
4432
4433ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4434if test "x$ac_cv_have_decl___clang__" = xyes; then :
4435  CLANGCC="yes"
4436else
4437  CLANGCC="no"
4438fi
4439
4440ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4441if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4442  INTELCC="yes"
4443else
4444  INTELCC="no"
4445fi
4446
4447ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4448if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4449  SUNCC="yes"
4450else
4451  SUNCC="no"
4452fi
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4463	if test -n "$ac_tool_prefix"; then
4464  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4465set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4467$as_echo_n "checking for $ac_word... " >&6; }
4468if ${ac_cv_path_PKG_CONFIG+:} false; then :
4469  $as_echo_n "(cached) " >&6
4470else
4471  case $PKG_CONFIG in
4472  [\\/]* | ?:[\\/]*)
4473  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4474  ;;
4475  *)
4476  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477for as_dir in $PATH
4478do
4479  IFS=$as_save_IFS
4480  test -z "$as_dir" && as_dir=.
4481    for ac_exec_ext in '' $ac_executable_extensions; do
4482  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4483    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4484    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4485    break 2
4486  fi
4487done
4488  done
4489IFS=$as_save_IFS
4490
4491  ;;
4492esac
4493fi
4494PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4495if test -n "$PKG_CONFIG"; then
4496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4497$as_echo "$PKG_CONFIG" >&6; }
4498else
4499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4500$as_echo "no" >&6; }
4501fi
4502
4503
4504fi
4505if test -z "$ac_cv_path_PKG_CONFIG"; then
4506  ac_pt_PKG_CONFIG=$PKG_CONFIG
4507  # Extract the first word of "pkg-config", so it can be a program name with args.
4508set dummy pkg-config; ac_word=$2
4509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510$as_echo_n "checking for $ac_word... " >&6; }
4511if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4512  $as_echo_n "(cached) " >&6
4513else
4514  case $ac_pt_PKG_CONFIG in
4515  [\\/]* | ?:[\\/]*)
4516  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4517  ;;
4518  *)
4519  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520for as_dir in $PATH
4521do
4522  IFS=$as_save_IFS
4523  test -z "$as_dir" && as_dir=.
4524    for ac_exec_ext in '' $ac_executable_extensions; do
4525  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4527    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4528    break 2
4529  fi
4530done
4531  done
4532IFS=$as_save_IFS
4533
4534  ;;
4535esac
4536fi
4537ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4538if test -n "$ac_pt_PKG_CONFIG"; then
4539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4540$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4541else
4542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543$as_echo "no" >&6; }
4544fi
4545
4546  if test "x$ac_pt_PKG_CONFIG" = x; then
4547    PKG_CONFIG=""
4548  else
4549    case $cross_compiling:$ac_tool_warned in
4550yes:)
4551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4553ac_tool_warned=yes ;;
4554esac
4555    PKG_CONFIG=$ac_pt_PKG_CONFIG
4556  fi
4557else
4558  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4559fi
4560
4561fi
4562if test -n "$PKG_CONFIG"; then
4563	_pkg_min_version=0.9.0
4564	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4565$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4566	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4567		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4568$as_echo "yes" >&6; }
4569	else
4570		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571$as_echo "no" >&6; }
4572		PKG_CONFIG=""
4573	fi
4574fi
4575# Make sure we can run config.sub.
4576$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4577  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4578
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4580$as_echo_n "checking build system type... " >&6; }
4581if ${ac_cv_build+:} false; then :
4582  $as_echo_n "(cached) " >&6
4583else
4584  ac_build_alias=$build_alias
4585test "x$ac_build_alias" = x &&
4586  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4587test "x$ac_build_alias" = x &&
4588  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4589ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4590  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4591
4592fi
4593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4594$as_echo "$ac_cv_build" >&6; }
4595case $ac_cv_build in
4596*-*-*) ;;
4597*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4598esac
4599build=$ac_cv_build
4600ac_save_IFS=$IFS; IFS='-'
4601set x $ac_cv_build
4602shift
4603build_cpu=$1
4604build_vendor=$2
4605shift; shift
4606# Remember, the first character of IFS is used to create $*,
4607# except with old shells:
4608build_os=$*
4609IFS=$ac_save_IFS
4610case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4611
4612
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4614$as_echo_n "checking host system type... " >&6; }
4615if ${ac_cv_host+:} false; then :
4616  $as_echo_n "(cached) " >&6
4617else
4618  if test "x$host_alias" = x; then
4619  ac_cv_host=$ac_cv_build
4620else
4621  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4622    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4623fi
4624
4625fi
4626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4627$as_echo "$ac_cv_host" >&6; }
4628case $ac_cv_host in
4629*-*-*) ;;
4630*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4631esac
4632host=$ac_cv_host
4633ac_save_IFS=$IFS; IFS='-'
4634set x $ac_cv_host
4635shift
4636host_cpu=$1
4637host_vendor=$2
4638shift; shift
4639# Remember, the first character of IFS is used to create $*,
4640# except with old shells:
4641host_os=$*
4642IFS=$ac_save_IFS
4643case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4644
4645
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4647$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4648if ${ac_cv_path_SED+:} false; then :
4649  $as_echo_n "(cached) " >&6
4650else
4651            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4652     for ac_i in 1 2 3 4 5 6 7; do
4653       ac_script="$ac_script$as_nl$ac_script"
4654     done
4655     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4656     { ac_script=; unset ac_script;}
4657     if test -z "$SED"; then
4658  ac_path_SED_found=false
4659  # Loop through the user's path and test for each of PROGNAME-LIST
4660  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661for as_dir in $PATH
4662do
4663  IFS=$as_save_IFS
4664  test -z "$as_dir" && as_dir=.
4665    for ac_prog in sed gsed; do
4666    for ac_exec_ext in '' $ac_executable_extensions; do
4667      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4668      as_fn_executable_p "$ac_path_SED" || continue
4669# Check for GNU ac_path_SED and select it if it is found.
4670  # Check for GNU $ac_path_SED
4671case `"$ac_path_SED" --version 2>&1` in
4672*GNU*)
4673  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4674*)
4675  ac_count=0
4676  $as_echo_n 0123456789 >"conftest.in"
4677  while :
4678  do
4679    cat "conftest.in" "conftest.in" >"conftest.tmp"
4680    mv "conftest.tmp" "conftest.in"
4681    cp "conftest.in" "conftest.nl"
4682    $as_echo '' >> "conftest.nl"
4683    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4684    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4685    as_fn_arith $ac_count + 1 && ac_count=$as_val
4686    if test $ac_count -gt ${ac_path_SED_max-0}; then
4687      # Best one so far, save it but keep looking for a better one
4688      ac_cv_path_SED="$ac_path_SED"
4689      ac_path_SED_max=$ac_count
4690    fi
4691    # 10*(2^10) chars as input seems more than enough
4692    test $ac_count -gt 10 && break
4693  done
4694  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4695esac
4696
4697      $ac_path_SED_found && break 3
4698    done
4699  done
4700  done
4701IFS=$as_save_IFS
4702  if test -z "$ac_cv_path_SED"; then
4703    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4704  fi
4705else
4706  ac_cv_path_SED=$SED
4707fi
4708
4709fi
4710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4711$as_echo "$ac_cv_path_SED" >&6; }
4712 SED="$ac_cv_path_SED"
4713  rm -f conftest.sed
4714
4715
4716
4717
4718
4719
4720# Check whether --enable-selective-werror was given.
4721if test "${enable_selective_werror+set}" = set; then :
4722  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4723else
4724  SELECTIVE_WERROR=yes
4725fi
4726
4727
4728
4729
4730
4731# -v is too short to test reliably with XORG_TESTSET_CFLAG
4732if test "x$SUNCC" = "xyes"; then
4733    BASE_CFLAGS="-v"
4734else
4735    BASE_CFLAGS=""
4736fi
4737
4738# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752xorg_testset_save_CFLAGS="$CFLAGS"
4753
4754if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4755	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4756	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4757$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4758if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4759  $as_echo_n "(cached) " >&6
4760else
4761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762/* end confdefs.h.  */
4763int i;
4764_ACEOF
4765if ac_fn_c_try_compile "$LINENO"; then :
4766  xorg_cv_cc_flag_unknown_warning_option=yes
4767else
4768  xorg_cv_cc_flag_unknown_warning_option=no
4769fi
4770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4771fi
4772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4773$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4774	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4775	CFLAGS="$xorg_testset_save_CFLAGS"
4776fi
4777
4778if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4779	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4780		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4781	fi
4782	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4783	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4784$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4785if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4786  $as_echo_n "(cached) " >&6
4787else
4788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789/* end confdefs.h.  */
4790int i;
4791_ACEOF
4792if ac_fn_c_try_compile "$LINENO"; then :
4793  xorg_cv_cc_flag_unused_command_line_argument=yes
4794else
4795  xorg_cv_cc_flag_unused_command_line_argument=no
4796fi
4797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798fi
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4800$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4801	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4802	CFLAGS="$xorg_testset_save_CFLAGS"
4803fi
4804
4805found="no"
4806
4807	if test $found = "no" ; then
4808		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4809			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4810		fi
4811
4812		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4813			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4814		fi
4815
4816		CFLAGS="$CFLAGS -Wall"
4817
4818		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4819$as_echo_n "checking if $CC supports -Wall... " >&6; }
4820		cacheid=xorg_cv_cc_flag__Wall
4821		if eval \${$cacheid+:} false; then :
4822  $as_echo_n "(cached) " >&6
4823else
4824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4825/* end confdefs.h.  */
4826int i;
4827int
4828main ()
4829{
4830
4831  ;
4832  return 0;
4833}
4834_ACEOF
4835if ac_fn_c_try_link "$LINENO"; then :
4836  eval $cacheid=yes
4837else
4838  eval $cacheid=no
4839fi
4840rm -f core conftest.err conftest.$ac_objext \
4841    conftest$ac_exeext conftest.$ac_ext
4842fi
4843
4844
4845		CFLAGS="$xorg_testset_save_CFLAGS"
4846
4847		eval supported=\$$cacheid
4848		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4849$as_echo "$supported" >&6; }
4850		if test "$supported" = "yes" ; then
4851			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4852			found="yes"
4853		fi
4854	fi
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870xorg_testset_save_CFLAGS="$CFLAGS"
4871
4872if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4873	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4874	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4875$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4876if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4877  $as_echo_n "(cached) " >&6
4878else
4879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880/* end confdefs.h.  */
4881int i;
4882_ACEOF
4883if ac_fn_c_try_compile "$LINENO"; then :
4884  xorg_cv_cc_flag_unknown_warning_option=yes
4885else
4886  xorg_cv_cc_flag_unknown_warning_option=no
4887fi
4888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889fi
4890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4891$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4892	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4893	CFLAGS="$xorg_testset_save_CFLAGS"
4894fi
4895
4896if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4897	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4898		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4899	fi
4900	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4901	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4902$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4903if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4904  $as_echo_n "(cached) " >&6
4905else
4906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907/* end confdefs.h.  */
4908int i;
4909_ACEOF
4910if ac_fn_c_try_compile "$LINENO"; then :
4911  xorg_cv_cc_flag_unused_command_line_argument=yes
4912else
4913  xorg_cv_cc_flag_unused_command_line_argument=no
4914fi
4915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4916fi
4917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4918$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4919	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4920	CFLAGS="$xorg_testset_save_CFLAGS"
4921fi
4922
4923found="no"
4924
4925	if test $found = "no" ; then
4926		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4927			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4928		fi
4929
4930		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4931			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4932		fi
4933
4934		CFLAGS="$CFLAGS -Wpointer-arith"
4935
4936		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4937$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4938		cacheid=xorg_cv_cc_flag__Wpointer_arith
4939		if eval \${$cacheid+:} false; then :
4940  $as_echo_n "(cached) " >&6
4941else
4942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943/* end confdefs.h.  */
4944int i;
4945int
4946main ()
4947{
4948
4949  ;
4950  return 0;
4951}
4952_ACEOF
4953if ac_fn_c_try_link "$LINENO"; then :
4954  eval $cacheid=yes
4955else
4956  eval $cacheid=no
4957fi
4958rm -f core conftest.err conftest.$ac_objext \
4959    conftest$ac_exeext conftest.$ac_ext
4960fi
4961
4962
4963		CFLAGS="$xorg_testset_save_CFLAGS"
4964
4965		eval supported=\$$cacheid
4966		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4967$as_echo "$supported" >&6; }
4968		if test "$supported" = "yes" ; then
4969			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4970			found="yes"
4971		fi
4972	fi
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988xorg_testset_save_CFLAGS="$CFLAGS"
4989
4990if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4991	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4992	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4993$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4994if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4995  $as_echo_n "(cached) " >&6
4996else
4997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998/* end confdefs.h.  */
4999int i;
5000_ACEOF
5001if ac_fn_c_try_compile "$LINENO"; then :
5002  xorg_cv_cc_flag_unknown_warning_option=yes
5003else
5004  xorg_cv_cc_flag_unknown_warning_option=no
5005fi
5006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5007fi
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5009$as_echo "$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	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5020$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5021if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5022  $as_echo_n "(cached) " >&6
5023else
5024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025/* end confdefs.h.  */
5026int i;
5027_ACEOF
5028if ac_fn_c_try_compile "$LINENO"; then :
5029  xorg_cv_cc_flag_unused_command_line_argument=yes
5030else
5031  xorg_cv_cc_flag_unused_command_line_argument=no
5032fi
5033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5034fi
5035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5036$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5037	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5038	CFLAGS="$xorg_testset_save_CFLAGS"
5039fi
5040
5041found="no"
5042
5043	if test $found = "no" ; then
5044		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5045			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5046		fi
5047
5048		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5049			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5050		fi
5051
5052		CFLAGS="$CFLAGS -Wmissing-declarations"
5053
5054		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5055$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5056		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5057		if eval \${$cacheid+:} false; then :
5058  $as_echo_n "(cached) " >&6
5059else
5060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061/* end confdefs.h.  */
5062int i;
5063int
5064main ()
5065{
5066
5067  ;
5068  return 0;
5069}
5070_ACEOF
5071if ac_fn_c_try_link "$LINENO"; then :
5072  eval $cacheid=yes
5073else
5074  eval $cacheid=no
5075fi
5076rm -f core conftest.err conftest.$ac_objext \
5077    conftest$ac_exeext conftest.$ac_ext
5078fi
5079
5080
5081		CFLAGS="$xorg_testset_save_CFLAGS"
5082
5083		eval supported=\$$cacheid
5084		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5085$as_echo "$supported" >&6; }
5086		if test "$supported" = "yes" ; then
5087			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5088			found="yes"
5089		fi
5090	fi
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106xorg_testset_save_CFLAGS="$CFLAGS"
5107
5108if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5109	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5110	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5111$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5112if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5113  $as_echo_n "(cached) " >&6
5114else
5115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116/* end confdefs.h.  */
5117int i;
5118_ACEOF
5119if ac_fn_c_try_compile "$LINENO"; then :
5120  xorg_cv_cc_flag_unknown_warning_option=yes
5121else
5122  xorg_cv_cc_flag_unknown_warning_option=no
5123fi
5124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5125fi
5126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5127$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5128	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5129	CFLAGS="$xorg_testset_save_CFLAGS"
5130fi
5131
5132if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5133	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5134		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5135	fi
5136	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5137	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5138$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5139if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5140  $as_echo_n "(cached) " >&6
5141else
5142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143/* end confdefs.h.  */
5144int i;
5145_ACEOF
5146if ac_fn_c_try_compile "$LINENO"; then :
5147  xorg_cv_cc_flag_unused_command_line_argument=yes
5148else
5149  xorg_cv_cc_flag_unused_command_line_argument=no
5150fi
5151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5152fi
5153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5154$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5155	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5156	CFLAGS="$xorg_testset_save_CFLAGS"
5157fi
5158
5159found="no"
5160
5161	if test $found = "no" ; then
5162		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5163			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5164		fi
5165
5166		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5167			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5168		fi
5169
5170		CFLAGS="$CFLAGS -Wformat=2"
5171
5172		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5173$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5174		cacheid=xorg_cv_cc_flag__Wformat_2
5175		if eval \${$cacheid+:} false; then :
5176  $as_echo_n "(cached) " >&6
5177else
5178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179/* end confdefs.h.  */
5180int i;
5181int
5182main ()
5183{
5184
5185  ;
5186  return 0;
5187}
5188_ACEOF
5189if ac_fn_c_try_link "$LINENO"; then :
5190  eval $cacheid=yes
5191else
5192  eval $cacheid=no
5193fi
5194rm -f core conftest.err conftest.$ac_objext \
5195    conftest$ac_exeext conftest.$ac_ext
5196fi
5197
5198
5199		CFLAGS="$xorg_testset_save_CFLAGS"
5200
5201		eval supported=\$$cacheid
5202		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5203$as_echo "$supported" >&6; }
5204		if test "$supported" = "yes" ; then
5205			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5206			found="yes"
5207		fi
5208	fi
5209
5210	if test $found = "no" ; then
5211		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5212			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5213		fi
5214
5215		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5216			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5217		fi
5218
5219		CFLAGS="$CFLAGS -Wformat"
5220
5221		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5222$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5223		cacheid=xorg_cv_cc_flag__Wformat
5224		if eval \${$cacheid+:} false; then :
5225  $as_echo_n "(cached) " >&6
5226else
5227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228/* end confdefs.h.  */
5229int i;
5230int
5231main ()
5232{
5233
5234  ;
5235  return 0;
5236}
5237_ACEOF
5238if ac_fn_c_try_link "$LINENO"; then :
5239  eval $cacheid=yes
5240else
5241  eval $cacheid=no
5242fi
5243rm -f core conftest.err conftest.$ac_objext \
5244    conftest$ac_exeext conftest.$ac_ext
5245fi
5246
5247
5248		CFLAGS="$xorg_testset_save_CFLAGS"
5249
5250		eval supported=\$$cacheid
5251		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5252$as_echo "$supported" >&6; }
5253		if test "$supported" = "yes" ; then
5254			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5255			found="yes"
5256		fi
5257	fi
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275xorg_testset_save_CFLAGS="$CFLAGS"
5276
5277if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5278	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5279	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5280$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5281if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5282  $as_echo_n "(cached) " >&6
5283else
5284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285/* end confdefs.h.  */
5286int i;
5287_ACEOF
5288if ac_fn_c_try_compile "$LINENO"; then :
5289  xorg_cv_cc_flag_unknown_warning_option=yes
5290else
5291  xorg_cv_cc_flag_unknown_warning_option=no
5292fi
5293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5294fi
5295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5296$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5297	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5298	CFLAGS="$xorg_testset_save_CFLAGS"
5299fi
5300
5301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5302	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5303		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5304	fi
5305	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5306	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5307$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5308if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5309  $as_echo_n "(cached) " >&6
5310else
5311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312/* end confdefs.h.  */
5313int i;
5314_ACEOF
5315if ac_fn_c_try_compile "$LINENO"; then :
5316  xorg_cv_cc_flag_unused_command_line_argument=yes
5317else
5318  xorg_cv_cc_flag_unused_command_line_argument=no
5319fi
5320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5321fi
5322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5323$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5324	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5325	CFLAGS="$xorg_testset_save_CFLAGS"
5326fi
5327
5328found="no"
5329
5330	if test $found = "no" ; then
5331		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5332			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5333		fi
5334
5335		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5336			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5337		fi
5338
5339		CFLAGS="$CFLAGS -Wstrict-prototypes"
5340
5341		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5342$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5343		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5344		if eval \${$cacheid+:} false; then :
5345  $as_echo_n "(cached) " >&6
5346else
5347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5348/* end confdefs.h.  */
5349int i;
5350int
5351main ()
5352{
5353
5354  ;
5355  return 0;
5356}
5357_ACEOF
5358if ac_fn_c_try_link "$LINENO"; then :
5359  eval $cacheid=yes
5360else
5361  eval $cacheid=no
5362fi
5363rm -f core conftest.err conftest.$ac_objext \
5364    conftest$ac_exeext conftest.$ac_ext
5365fi
5366
5367
5368		CFLAGS="$xorg_testset_save_CFLAGS"
5369
5370		eval supported=\$$cacheid
5371		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5372$as_echo "$supported" >&6; }
5373		if test "$supported" = "yes" ; then
5374			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5375			found="yes"
5376		fi
5377	fi
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393xorg_testset_save_CFLAGS="$CFLAGS"
5394
5395if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5396	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5397	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5398$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5399if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5400  $as_echo_n "(cached) " >&6
5401else
5402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403/* end confdefs.h.  */
5404int i;
5405_ACEOF
5406if ac_fn_c_try_compile "$LINENO"; then :
5407  xorg_cv_cc_flag_unknown_warning_option=yes
5408else
5409  xorg_cv_cc_flag_unknown_warning_option=no
5410fi
5411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5412fi
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5414$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5415	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5416	CFLAGS="$xorg_testset_save_CFLAGS"
5417fi
5418
5419if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5420	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5421		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5422	fi
5423	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5424	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5425$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5426if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5427  $as_echo_n "(cached) " >&6
5428else
5429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430/* end confdefs.h.  */
5431int i;
5432_ACEOF
5433if ac_fn_c_try_compile "$LINENO"; then :
5434  xorg_cv_cc_flag_unused_command_line_argument=yes
5435else
5436  xorg_cv_cc_flag_unused_command_line_argument=no
5437fi
5438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5439fi
5440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5441$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5442	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5443	CFLAGS="$xorg_testset_save_CFLAGS"
5444fi
5445
5446found="no"
5447
5448	if test $found = "no" ; then
5449		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5450			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5451		fi
5452
5453		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5454			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5455		fi
5456
5457		CFLAGS="$CFLAGS -Wmissing-prototypes"
5458
5459		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5460$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5461		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5462		if eval \${$cacheid+:} false; then :
5463  $as_echo_n "(cached) " >&6
5464else
5465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466/* end confdefs.h.  */
5467int i;
5468int
5469main ()
5470{
5471
5472  ;
5473  return 0;
5474}
5475_ACEOF
5476if ac_fn_c_try_link "$LINENO"; then :
5477  eval $cacheid=yes
5478else
5479  eval $cacheid=no
5480fi
5481rm -f core conftest.err conftest.$ac_objext \
5482    conftest$ac_exeext conftest.$ac_ext
5483fi
5484
5485
5486		CFLAGS="$xorg_testset_save_CFLAGS"
5487
5488		eval supported=\$$cacheid
5489		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5490$as_echo "$supported" >&6; }
5491		if test "$supported" = "yes" ; then
5492			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5493			found="yes"
5494		fi
5495	fi
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511xorg_testset_save_CFLAGS="$CFLAGS"
5512
5513if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5514	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5515	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5516$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5517if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5518  $as_echo_n "(cached) " >&6
5519else
5520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521/* end confdefs.h.  */
5522int i;
5523_ACEOF
5524if ac_fn_c_try_compile "$LINENO"; then :
5525  xorg_cv_cc_flag_unknown_warning_option=yes
5526else
5527  xorg_cv_cc_flag_unknown_warning_option=no
5528fi
5529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530fi
5531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5532$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5533	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5534	CFLAGS="$xorg_testset_save_CFLAGS"
5535fi
5536
5537if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5538	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5539		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5540	fi
5541	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5542	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5543$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5544if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5545  $as_echo_n "(cached) " >&6
5546else
5547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548/* end confdefs.h.  */
5549int i;
5550_ACEOF
5551if ac_fn_c_try_compile "$LINENO"; then :
5552  xorg_cv_cc_flag_unused_command_line_argument=yes
5553else
5554  xorg_cv_cc_flag_unused_command_line_argument=no
5555fi
5556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557fi
5558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5559$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5560	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5561	CFLAGS="$xorg_testset_save_CFLAGS"
5562fi
5563
5564found="no"
5565
5566	if test $found = "no" ; then
5567		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5568			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5569		fi
5570
5571		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5572			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5573		fi
5574
5575		CFLAGS="$CFLAGS -Wnested-externs"
5576
5577		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5578$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5579		cacheid=xorg_cv_cc_flag__Wnested_externs
5580		if eval \${$cacheid+:} false; then :
5581  $as_echo_n "(cached) " >&6
5582else
5583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584/* end confdefs.h.  */
5585int i;
5586int
5587main ()
5588{
5589
5590  ;
5591  return 0;
5592}
5593_ACEOF
5594if ac_fn_c_try_link "$LINENO"; then :
5595  eval $cacheid=yes
5596else
5597  eval $cacheid=no
5598fi
5599rm -f core conftest.err conftest.$ac_objext \
5600    conftest$ac_exeext conftest.$ac_ext
5601fi
5602
5603
5604		CFLAGS="$xorg_testset_save_CFLAGS"
5605
5606		eval supported=\$$cacheid
5607		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5608$as_echo "$supported" >&6; }
5609		if test "$supported" = "yes" ; then
5610			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5611			found="yes"
5612		fi
5613	fi
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629xorg_testset_save_CFLAGS="$CFLAGS"
5630
5631if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5632	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5633	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5634$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5635if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5636  $as_echo_n "(cached) " >&6
5637else
5638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639/* end confdefs.h.  */
5640int i;
5641_ACEOF
5642if ac_fn_c_try_compile "$LINENO"; then :
5643  xorg_cv_cc_flag_unknown_warning_option=yes
5644else
5645  xorg_cv_cc_flag_unknown_warning_option=no
5646fi
5647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5648fi
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5650$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5651	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5652	CFLAGS="$xorg_testset_save_CFLAGS"
5653fi
5654
5655if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5656	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5657		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5658	fi
5659	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5660	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5661$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5662if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5663  $as_echo_n "(cached) " >&6
5664else
5665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666/* end confdefs.h.  */
5667int i;
5668_ACEOF
5669if ac_fn_c_try_compile "$LINENO"; then :
5670  xorg_cv_cc_flag_unused_command_line_argument=yes
5671else
5672  xorg_cv_cc_flag_unused_command_line_argument=no
5673fi
5674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675fi
5676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5677$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5678	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5679	CFLAGS="$xorg_testset_save_CFLAGS"
5680fi
5681
5682found="no"
5683
5684	if test $found = "no" ; then
5685		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5686			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5687		fi
5688
5689		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5690			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5691		fi
5692
5693		CFLAGS="$CFLAGS -Wbad-function-cast"
5694
5695		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5696$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5697		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5698		if eval \${$cacheid+:} false; then :
5699  $as_echo_n "(cached) " >&6
5700else
5701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702/* end confdefs.h.  */
5703int i;
5704int
5705main ()
5706{
5707
5708  ;
5709  return 0;
5710}
5711_ACEOF
5712if ac_fn_c_try_link "$LINENO"; then :
5713  eval $cacheid=yes
5714else
5715  eval $cacheid=no
5716fi
5717rm -f core conftest.err conftest.$ac_objext \
5718    conftest$ac_exeext conftest.$ac_ext
5719fi
5720
5721
5722		CFLAGS="$xorg_testset_save_CFLAGS"
5723
5724		eval supported=\$$cacheid
5725		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5726$as_echo "$supported" >&6; }
5727		if test "$supported" = "yes" ; then
5728			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5729			found="yes"
5730		fi
5731	fi
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747xorg_testset_save_CFLAGS="$CFLAGS"
5748
5749if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5750	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5751	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5752$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5753if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5754  $as_echo_n "(cached) " >&6
5755else
5756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757/* end confdefs.h.  */
5758int i;
5759_ACEOF
5760if ac_fn_c_try_compile "$LINENO"; then :
5761  xorg_cv_cc_flag_unknown_warning_option=yes
5762else
5763  xorg_cv_cc_flag_unknown_warning_option=no
5764fi
5765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766fi
5767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5768$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5769	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5770	CFLAGS="$xorg_testset_save_CFLAGS"
5771fi
5772
5773if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5774	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5775		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5776	fi
5777	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5778	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5779$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5780if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5781  $as_echo_n "(cached) " >&6
5782else
5783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5784/* end confdefs.h.  */
5785int i;
5786_ACEOF
5787if ac_fn_c_try_compile "$LINENO"; then :
5788  xorg_cv_cc_flag_unused_command_line_argument=yes
5789else
5790  xorg_cv_cc_flag_unused_command_line_argument=no
5791fi
5792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5793fi
5794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5795$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5796	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5797	CFLAGS="$xorg_testset_save_CFLAGS"
5798fi
5799
5800found="no"
5801
5802	if test $found = "no" ; then
5803		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5804			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5805		fi
5806
5807		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5808			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5809		fi
5810
5811		CFLAGS="$CFLAGS -Wold-style-definition"
5812
5813		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5814$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5815		cacheid=xorg_cv_cc_flag__Wold_style_definition
5816		if eval \${$cacheid+:} false; then :
5817  $as_echo_n "(cached) " >&6
5818else
5819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820/* end confdefs.h.  */
5821int i;
5822int
5823main ()
5824{
5825
5826  ;
5827  return 0;
5828}
5829_ACEOF
5830if ac_fn_c_try_link "$LINENO"; then :
5831  eval $cacheid=yes
5832else
5833  eval $cacheid=no
5834fi
5835rm -f core conftest.err conftest.$ac_objext \
5836    conftest$ac_exeext conftest.$ac_ext
5837fi
5838
5839
5840		CFLAGS="$xorg_testset_save_CFLAGS"
5841
5842		eval supported=\$$cacheid
5843		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5844$as_echo "$supported" >&6; }
5845		if test "$supported" = "yes" ; then
5846			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5847			found="yes"
5848		fi
5849	fi
5850
5851	if test $found = "no" ; then
5852		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5853			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5854		fi
5855
5856		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5857			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5858		fi
5859
5860		CFLAGS="$CFLAGS -fd"
5861
5862		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5863$as_echo_n "checking if $CC supports -fd... " >&6; }
5864		cacheid=xorg_cv_cc_flag__fd
5865		if eval \${$cacheid+:} false; then :
5866  $as_echo_n "(cached) " >&6
5867else
5868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869/* end confdefs.h.  */
5870int i;
5871int
5872main ()
5873{
5874
5875  ;
5876  return 0;
5877}
5878_ACEOF
5879if ac_fn_c_try_link "$LINENO"; then :
5880  eval $cacheid=yes
5881else
5882  eval $cacheid=no
5883fi
5884rm -f core conftest.err conftest.$ac_objext \
5885    conftest$ac_exeext conftest.$ac_ext
5886fi
5887
5888
5889		CFLAGS="$xorg_testset_save_CFLAGS"
5890
5891		eval supported=\$$cacheid
5892		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5893$as_echo "$supported" >&6; }
5894		if test "$supported" = "yes" ; then
5895			BASE_CFLAGS="$BASE_CFLAGS -fd"
5896			found="yes"
5897		fi
5898	fi
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914xorg_testset_save_CFLAGS="$CFLAGS"
5915
5916if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5917	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5918	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5919$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5920if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5921  $as_echo_n "(cached) " >&6
5922else
5923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924/* end confdefs.h.  */
5925int i;
5926_ACEOF
5927if ac_fn_c_try_compile "$LINENO"; then :
5928  xorg_cv_cc_flag_unknown_warning_option=yes
5929else
5930  xorg_cv_cc_flag_unknown_warning_option=no
5931fi
5932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5933fi
5934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5935$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5936	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5937	CFLAGS="$xorg_testset_save_CFLAGS"
5938fi
5939
5940if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5941	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5942		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5943	fi
5944	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5945	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5946$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5947if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5948  $as_echo_n "(cached) " >&6
5949else
5950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951/* end confdefs.h.  */
5952int i;
5953_ACEOF
5954if ac_fn_c_try_compile "$LINENO"; then :
5955  xorg_cv_cc_flag_unused_command_line_argument=yes
5956else
5957  xorg_cv_cc_flag_unused_command_line_argument=no
5958fi
5959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5960fi
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5962$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5963	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5964	CFLAGS="$xorg_testset_save_CFLAGS"
5965fi
5966
5967found="no"
5968
5969	if test $found = "no" ; then
5970		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5971			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5972		fi
5973
5974		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5975			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5976		fi
5977
5978		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5979
5980		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5981$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5982		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5983		if eval \${$cacheid+:} false; then :
5984  $as_echo_n "(cached) " >&6
5985else
5986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987/* end confdefs.h.  */
5988int i;
5989int
5990main ()
5991{
5992
5993  ;
5994  return 0;
5995}
5996_ACEOF
5997if ac_fn_c_try_link "$LINENO"; then :
5998  eval $cacheid=yes
5999else
6000  eval $cacheid=no
6001fi
6002rm -f core conftest.err conftest.$ac_objext \
6003    conftest$ac_exeext conftest.$ac_ext
6004fi
6005
6006
6007		CFLAGS="$xorg_testset_save_CFLAGS"
6008
6009		eval supported=\$$cacheid
6010		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6011$as_echo "$supported" >&6; }
6012		if test "$supported" = "yes" ; then
6013			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6014			found="yes"
6015		fi
6016	fi
6017
6018
6019
6020
6021
6022# This chunk adds additional warnings that could catch undesired effects.
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036xorg_testset_save_CFLAGS="$CFLAGS"
6037
6038if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6039	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6040	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6041$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6042if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6043  $as_echo_n "(cached) " >&6
6044else
6045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046/* end confdefs.h.  */
6047int i;
6048_ACEOF
6049if ac_fn_c_try_compile "$LINENO"; then :
6050  xorg_cv_cc_flag_unknown_warning_option=yes
6051else
6052  xorg_cv_cc_flag_unknown_warning_option=no
6053fi
6054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055fi
6056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6057$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6058	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6059	CFLAGS="$xorg_testset_save_CFLAGS"
6060fi
6061
6062if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6063	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6064		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6065	fi
6066	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6067	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6068$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6069if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6070  $as_echo_n "(cached) " >&6
6071else
6072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6073/* end confdefs.h.  */
6074int i;
6075_ACEOF
6076if ac_fn_c_try_compile "$LINENO"; then :
6077  xorg_cv_cc_flag_unused_command_line_argument=yes
6078else
6079  xorg_cv_cc_flag_unused_command_line_argument=no
6080fi
6081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6082fi
6083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6084$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6085	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6086	CFLAGS="$xorg_testset_save_CFLAGS"
6087fi
6088
6089found="no"
6090
6091	if test $found = "no" ; then
6092		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6093			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6094		fi
6095
6096		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6097			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6098		fi
6099
6100		CFLAGS="$CFLAGS -Wunused"
6101
6102		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6103$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6104		cacheid=xorg_cv_cc_flag__Wunused
6105		if eval \${$cacheid+:} false; then :
6106  $as_echo_n "(cached) " >&6
6107else
6108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109/* end confdefs.h.  */
6110int i;
6111int
6112main ()
6113{
6114
6115  ;
6116  return 0;
6117}
6118_ACEOF
6119if ac_fn_c_try_link "$LINENO"; then :
6120  eval $cacheid=yes
6121else
6122  eval $cacheid=no
6123fi
6124rm -f core conftest.err conftest.$ac_objext \
6125    conftest$ac_exeext conftest.$ac_ext
6126fi
6127
6128
6129		CFLAGS="$xorg_testset_save_CFLAGS"
6130
6131		eval supported=\$$cacheid
6132		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6133$as_echo "$supported" >&6; }
6134		if test "$supported" = "yes" ; then
6135			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6136			found="yes"
6137		fi
6138	fi
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154xorg_testset_save_CFLAGS="$CFLAGS"
6155
6156if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6157	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6158	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6159$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6160if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6161  $as_echo_n "(cached) " >&6
6162else
6163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164/* end confdefs.h.  */
6165int i;
6166_ACEOF
6167if ac_fn_c_try_compile "$LINENO"; then :
6168  xorg_cv_cc_flag_unknown_warning_option=yes
6169else
6170  xorg_cv_cc_flag_unknown_warning_option=no
6171fi
6172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6173fi
6174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6175$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6176	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6177	CFLAGS="$xorg_testset_save_CFLAGS"
6178fi
6179
6180if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6181	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6182		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6183	fi
6184	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6185	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6186$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6187if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6188  $as_echo_n "(cached) " >&6
6189else
6190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191/* end confdefs.h.  */
6192int i;
6193_ACEOF
6194if ac_fn_c_try_compile "$LINENO"; then :
6195  xorg_cv_cc_flag_unused_command_line_argument=yes
6196else
6197  xorg_cv_cc_flag_unused_command_line_argument=no
6198fi
6199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6200fi
6201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6202$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6203	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6204	CFLAGS="$xorg_testset_save_CFLAGS"
6205fi
6206
6207found="no"
6208
6209	if test $found = "no" ; then
6210		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6211			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6212		fi
6213
6214		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6215			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6216		fi
6217
6218		CFLAGS="$CFLAGS -Wuninitialized"
6219
6220		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6221$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6222		cacheid=xorg_cv_cc_flag__Wuninitialized
6223		if eval \${$cacheid+:} false; then :
6224  $as_echo_n "(cached) " >&6
6225else
6226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227/* end confdefs.h.  */
6228int i;
6229int
6230main ()
6231{
6232
6233  ;
6234  return 0;
6235}
6236_ACEOF
6237if ac_fn_c_try_link "$LINENO"; then :
6238  eval $cacheid=yes
6239else
6240  eval $cacheid=no
6241fi
6242rm -f core conftest.err conftest.$ac_objext \
6243    conftest$ac_exeext conftest.$ac_ext
6244fi
6245
6246
6247		CFLAGS="$xorg_testset_save_CFLAGS"
6248
6249		eval supported=\$$cacheid
6250		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6251$as_echo "$supported" >&6; }
6252		if test "$supported" = "yes" ; then
6253			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6254			found="yes"
6255		fi
6256	fi
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272xorg_testset_save_CFLAGS="$CFLAGS"
6273
6274if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6275	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6276	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6277$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6278if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6279  $as_echo_n "(cached) " >&6
6280else
6281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282/* end confdefs.h.  */
6283int i;
6284_ACEOF
6285if ac_fn_c_try_compile "$LINENO"; then :
6286  xorg_cv_cc_flag_unknown_warning_option=yes
6287else
6288  xorg_cv_cc_flag_unknown_warning_option=no
6289fi
6290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6291fi
6292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6293$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6294	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6295	CFLAGS="$xorg_testset_save_CFLAGS"
6296fi
6297
6298if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6299	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6300		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6301	fi
6302	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6303	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6304$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6305if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6306  $as_echo_n "(cached) " >&6
6307else
6308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309/* end confdefs.h.  */
6310int i;
6311_ACEOF
6312if ac_fn_c_try_compile "$LINENO"; then :
6313  xorg_cv_cc_flag_unused_command_line_argument=yes
6314else
6315  xorg_cv_cc_flag_unused_command_line_argument=no
6316fi
6317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6318fi
6319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6320$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6321	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6322	CFLAGS="$xorg_testset_save_CFLAGS"
6323fi
6324
6325found="no"
6326
6327	if test $found = "no" ; then
6328		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6329			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6330		fi
6331
6332		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6333			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6334		fi
6335
6336		CFLAGS="$CFLAGS -Wshadow"
6337
6338		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6339$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6340		cacheid=xorg_cv_cc_flag__Wshadow
6341		if eval \${$cacheid+:} false; then :
6342  $as_echo_n "(cached) " >&6
6343else
6344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345/* end confdefs.h.  */
6346int i;
6347int
6348main ()
6349{
6350
6351  ;
6352  return 0;
6353}
6354_ACEOF
6355if ac_fn_c_try_link "$LINENO"; then :
6356  eval $cacheid=yes
6357else
6358  eval $cacheid=no
6359fi
6360rm -f core conftest.err conftest.$ac_objext \
6361    conftest$ac_exeext conftest.$ac_ext
6362fi
6363
6364
6365		CFLAGS="$xorg_testset_save_CFLAGS"
6366
6367		eval supported=\$$cacheid
6368		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6369$as_echo "$supported" >&6; }
6370		if test "$supported" = "yes" ; then
6371			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6372			found="yes"
6373		fi
6374	fi
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390xorg_testset_save_CFLAGS="$CFLAGS"
6391
6392if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6393	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6394	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6395$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6396if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6397  $as_echo_n "(cached) " >&6
6398else
6399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400/* end confdefs.h.  */
6401int i;
6402_ACEOF
6403if ac_fn_c_try_compile "$LINENO"; then :
6404  xorg_cv_cc_flag_unknown_warning_option=yes
6405else
6406  xorg_cv_cc_flag_unknown_warning_option=no
6407fi
6408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6409fi
6410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6411$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6412	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6413	CFLAGS="$xorg_testset_save_CFLAGS"
6414fi
6415
6416if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6417	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6418		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6419	fi
6420	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6421	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6422$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6423if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6424  $as_echo_n "(cached) " >&6
6425else
6426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6427/* end confdefs.h.  */
6428int i;
6429_ACEOF
6430if ac_fn_c_try_compile "$LINENO"; then :
6431  xorg_cv_cc_flag_unused_command_line_argument=yes
6432else
6433  xorg_cv_cc_flag_unused_command_line_argument=no
6434fi
6435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6436fi
6437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6438$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6439	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6440	CFLAGS="$xorg_testset_save_CFLAGS"
6441fi
6442
6443found="no"
6444
6445	if test $found = "no" ; then
6446		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6447			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6448		fi
6449
6450		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6451			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6452		fi
6453
6454		CFLAGS="$CFLAGS -Wmissing-noreturn"
6455
6456		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6457$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6458		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6459		if eval \${$cacheid+:} false; then :
6460  $as_echo_n "(cached) " >&6
6461else
6462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463/* end confdefs.h.  */
6464int i;
6465int
6466main ()
6467{
6468
6469  ;
6470  return 0;
6471}
6472_ACEOF
6473if ac_fn_c_try_link "$LINENO"; then :
6474  eval $cacheid=yes
6475else
6476  eval $cacheid=no
6477fi
6478rm -f core conftest.err conftest.$ac_objext \
6479    conftest$ac_exeext conftest.$ac_ext
6480fi
6481
6482
6483		CFLAGS="$xorg_testset_save_CFLAGS"
6484
6485		eval supported=\$$cacheid
6486		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6487$as_echo "$supported" >&6; }
6488		if test "$supported" = "yes" ; then
6489			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6490			found="yes"
6491		fi
6492	fi
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508xorg_testset_save_CFLAGS="$CFLAGS"
6509
6510if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6511	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6512	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6513$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6514if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6515  $as_echo_n "(cached) " >&6
6516else
6517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518/* end confdefs.h.  */
6519int i;
6520_ACEOF
6521if ac_fn_c_try_compile "$LINENO"; then :
6522  xorg_cv_cc_flag_unknown_warning_option=yes
6523else
6524  xorg_cv_cc_flag_unknown_warning_option=no
6525fi
6526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6527fi
6528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6529$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6530	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6531	CFLAGS="$xorg_testset_save_CFLAGS"
6532fi
6533
6534if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6535	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6536		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6537	fi
6538	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6539	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6540$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6541if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6542  $as_echo_n "(cached) " >&6
6543else
6544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6545/* end confdefs.h.  */
6546int i;
6547_ACEOF
6548if ac_fn_c_try_compile "$LINENO"; then :
6549  xorg_cv_cc_flag_unused_command_line_argument=yes
6550else
6551  xorg_cv_cc_flag_unused_command_line_argument=no
6552fi
6553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554fi
6555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6556$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6557	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6558	CFLAGS="$xorg_testset_save_CFLAGS"
6559fi
6560
6561found="no"
6562
6563	if test $found = "no" ; then
6564		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6565			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6566		fi
6567
6568		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6569			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6570		fi
6571
6572		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6573
6574		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6575$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6576		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6577		if eval \${$cacheid+:} false; then :
6578  $as_echo_n "(cached) " >&6
6579else
6580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581/* end confdefs.h.  */
6582int i;
6583int
6584main ()
6585{
6586
6587  ;
6588  return 0;
6589}
6590_ACEOF
6591if ac_fn_c_try_link "$LINENO"; then :
6592  eval $cacheid=yes
6593else
6594  eval $cacheid=no
6595fi
6596rm -f core conftest.err conftest.$ac_objext \
6597    conftest$ac_exeext conftest.$ac_ext
6598fi
6599
6600
6601		CFLAGS="$xorg_testset_save_CFLAGS"
6602
6603		eval supported=\$$cacheid
6604		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6605$as_echo "$supported" >&6; }
6606		if test "$supported" = "yes" ; then
6607			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6608			found="yes"
6609		fi
6610	fi
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626xorg_testset_save_CFLAGS="$CFLAGS"
6627
6628if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6629	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6630	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6631$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6632if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6633  $as_echo_n "(cached) " >&6
6634else
6635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636/* end confdefs.h.  */
6637int i;
6638_ACEOF
6639if ac_fn_c_try_compile "$LINENO"; then :
6640  xorg_cv_cc_flag_unknown_warning_option=yes
6641else
6642  xorg_cv_cc_flag_unknown_warning_option=no
6643fi
6644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645fi
6646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6647$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6648	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6649	CFLAGS="$xorg_testset_save_CFLAGS"
6650fi
6651
6652if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6653	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6654		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6655	fi
6656	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6657	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6658$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6659if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6660  $as_echo_n "(cached) " >&6
6661else
6662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663/* end confdefs.h.  */
6664int i;
6665_ACEOF
6666if ac_fn_c_try_compile "$LINENO"; then :
6667  xorg_cv_cc_flag_unused_command_line_argument=yes
6668else
6669  xorg_cv_cc_flag_unused_command_line_argument=no
6670fi
6671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6672fi
6673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6674$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6675	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6676	CFLAGS="$xorg_testset_save_CFLAGS"
6677fi
6678
6679found="no"
6680
6681	if test $found = "no" ; then
6682		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6683			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6684		fi
6685
6686		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6687			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6688		fi
6689
6690		CFLAGS="$CFLAGS -Wredundant-decls"
6691
6692		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6693$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6694		cacheid=xorg_cv_cc_flag__Wredundant_decls
6695		if eval \${$cacheid+:} false; then :
6696  $as_echo_n "(cached) " >&6
6697else
6698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699/* end confdefs.h.  */
6700int i;
6701int
6702main ()
6703{
6704
6705  ;
6706  return 0;
6707}
6708_ACEOF
6709if ac_fn_c_try_link "$LINENO"; then :
6710  eval $cacheid=yes
6711else
6712  eval $cacheid=no
6713fi
6714rm -f core conftest.err conftest.$ac_objext \
6715    conftest$ac_exeext conftest.$ac_ext
6716fi
6717
6718
6719		CFLAGS="$xorg_testset_save_CFLAGS"
6720
6721		eval supported=\$$cacheid
6722		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6723$as_echo "$supported" >&6; }
6724		if test "$supported" = "yes" ; then
6725			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6726			found="yes"
6727		fi
6728	fi
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744xorg_testset_save_CFLAGS="$CFLAGS"
6745
6746if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6747	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6748	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6749$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6750if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6751  $as_echo_n "(cached) " >&6
6752else
6753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754/* end confdefs.h.  */
6755int i;
6756_ACEOF
6757if ac_fn_c_try_compile "$LINENO"; then :
6758  xorg_cv_cc_flag_unknown_warning_option=yes
6759else
6760  xorg_cv_cc_flag_unknown_warning_option=no
6761fi
6762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6763fi
6764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6765$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6766	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6767	CFLAGS="$xorg_testset_save_CFLAGS"
6768fi
6769
6770if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6771	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6772		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6773	fi
6774	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6775	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6776$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6777if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6778  $as_echo_n "(cached) " >&6
6779else
6780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781/* end confdefs.h.  */
6782int i;
6783_ACEOF
6784if ac_fn_c_try_compile "$LINENO"; then :
6785  xorg_cv_cc_flag_unused_command_line_argument=yes
6786else
6787  xorg_cv_cc_flag_unused_command_line_argument=no
6788fi
6789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6790fi
6791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6792$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6793	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6794	CFLAGS="$xorg_testset_save_CFLAGS"
6795fi
6796
6797found="no"
6798
6799	if test $found = "no" ; then
6800		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6801			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6802		fi
6803
6804		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6805			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6806		fi
6807
6808		CFLAGS="$CFLAGS -Wlogical-op"
6809
6810		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6811$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6812		cacheid=xorg_cv_cc_flag__Wlogical_op
6813		if eval \${$cacheid+:} false; then :
6814  $as_echo_n "(cached) " >&6
6815else
6816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817/* end confdefs.h.  */
6818int i;
6819int
6820main ()
6821{
6822
6823  ;
6824  return 0;
6825}
6826_ACEOF
6827if ac_fn_c_try_link "$LINENO"; then :
6828  eval $cacheid=yes
6829else
6830  eval $cacheid=no
6831fi
6832rm -f core conftest.err conftest.$ac_objext \
6833    conftest$ac_exeext conftest.$ac_ext
6834fi
6835
6836
6837		CFLAGS="$xorg_testset_save_CFLAGS"
6838
6839		eval supported=\$$cacheid
6840		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6841$as_echo "$supported" >&6; }
6842		if test "$supported" = "yes" ; then
6843			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6844			found="yes"
6845		fi
6846	fi
6847
6848
6849
6850# These are currently disabled because they are noisy.  They will be enabled
6851# in the future once the codebase is sufficiently modernized to silence
6852# them.  For now, I don't want them to drown out the other warnings.
6853# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6854# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6855# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6856
6857# Turn some warnings into errors, so we don't accidently get successful builds
6858# when there are problems that should be fixed.
6859
6860if test "x$SELECTIVE_WERROR" = "xyes" ; then
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874xorg_testset_save_CFLAGS="$CFLAGS"
6875
6876if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6877	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6878	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6879$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6880if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6881  $as_echo_n "(cached) " >&6
6882else
6883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884/* end confdefs.h.  */
6885int i;
6886_ACEOF
6887if ac_fn_c_try_compile "$LINENO"; then :
6888  xorg_cv_cc_flag_unknown_warning_option=yes
6889else
6890  xorg_cv_cc_flag_unknown_warning_option=no
6891fi
6892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6893fi
6894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6895$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6896	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6897	CFLAGS="$xorg_testset_save_CFLAGS"
6898fi
6899
6900if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6901	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6902		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6903	fi
6904	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6905	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6906$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6907if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6908  $as_echo_n "(cached) " >&6
6909else
6910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911/* end confdefs.h.  */
6912int i;
6913_ACEOF
6914if ac_fn_c_try_compile "$LINENO"; then :
6915  xorg_cv_cc_flag_unused_command_line_argument=yes
6916else
6917  xorg_cv_cc_flag_unused_command_line_argument=no
6918fi
6919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6920fi
6921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6922$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6923	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6924	CFLAGS="$xorg_testset_save_CFLAGS"
6925fi
6926
6927found="no"
6928
6929	if test $found = "no" ; then
6930		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6931			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6932		fi
6933
6934		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6935			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6936		fi
6937
6938		CFLAGS="$CFLAGS -Werror=implicit"
6939
6940		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6941$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6942		cacheid=xorg_cv_cc_flag__Werror_implicit
6943		if eval \${$cacheid+:} false; then :
6944  $as_echo_n "(cached) " >&6
6945else
6946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6947/* end confdefs.h.  */
6948int i;
6949int
6950main ()
6951{
6952
6953  ;
6954  return 0;
6955}
6956_ACEOF
6957if ac_fn_c_try_link "$LINENO"; then :
6958  eval $cacheid=yes
6959else
6960  eval $cacheid=no
6961fi
6962rm -f core conftest.err conftest.$ac_objext \
6963    conftest$ac_exeext conftest.$ac_ext
6964fi
6965
6966
6967		CFLAGS="$xorg_testset_save_CFLAGS"
6968
6969		eval supported=\$$cacheid
6970		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6971$as_echo "$supported" >&6; }
6972		if test "$supported" = "yes" ; then
6973			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6974			found="yes"
6975		fi
6976	fi
6977
6978	if test $found = "no" ; then
6979		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6980			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6981		fi
6982
6983		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6984			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6985		fi
6986
6987		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6988
6989		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6990$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6991		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6992		if eval \${$cacheid+:} false; then :
6993  $as_echo_n "(cached) " >&6
6994else
6995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996/* end confdefs.h.  */
6997int i;
6998int
6999main ()
7000{
7001
7002  ;
7003  return 0;
7004}
7005_ACEOF
7006if ac_fn_c_try_link "$LINENO"; then :
7007  eval $cacheid=yes
7008else
7009  eval $cacheid=no
7010fi
7011rm -f core conftest.err conftest.$ac_objext \
7012    conftest$ac_exeext conftest.$ac_ext
7013fi
7014
7015
7016		CFLAGS="$xorg_testset_save_CFLAGS"
7017
7018		eval supported=\$$cacheid
7019		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7020$as_echo "$supported" >&6; }
7021		if test "$supported" = "yes" ; then
7022			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7023			found="yes"
7024		fi
7025	fi
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041xorg_testset_save_CFLAGS="$CFLAGS"
7042
7043if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7044	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7045	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7046$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7047if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7048  $as_echo_n "(cached) " >&6
7049else
7050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051/* end confdefs.h.  */
7052int i;
7053_ACEOF
7054if ac_fn_c_try_compile "$LINENO"; then :
7055  xorg_cv_cc_flag_unknown_warning_option=yes
7056else
7057  xorg_cv_cc_flag_unknown_warning_option=no
7058fi
7059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7060fi
7061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7062$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7063	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7064	CFLAGS="$xorg_testset_save_CFLAGS"
7065fi
7066
7067if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7068	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7069		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7070	fi
7071	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7072	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7073$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7074if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7075  $as_echo_n "(cached) " >&6
7076else
7077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7078/* end confdefs.h.  */
7079int i;
7080_ACEOF
7081if ac_fn_c_try_compile "$LINENO"; then :
7082  xorg_cv_cc_flag_unused_command_line_argument=yes
7083else
7084  xorg_cv_cc_flag_unused_command_line_argument=no
7085fi
7086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7087fi
7088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7089$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7090	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7091	CFLAGS="$xorg_testset_save_CFLAGS"
7092fi
7093
7094found="no"
7095
7096	if test $found = "no" ; then
7097		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7098			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7099		fi
7100
7101		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7102			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7103		fi
7104
7105		CFLAGS="$CFLAGS -Werror=nonnull"
7106
7107		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7108$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7109		cacheid=xorg_cv_cc_flag__Werror_nonnull
7110		if eval \${$cacheid+:} false; then :
7111  $as_echo_n "(cached) " >&6
7112else
7113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114/* end confdefs.h.  */
7115int i;
7116int
7117main ()
7118{
7119
7120  ;
7121  return 0;
7122}
7123_ACEOF
7124if ac_fn_c_try_link "$LINENO"; then :
7125  eval $cacheid=yes
7126else
7127  eval $cacheid=no
7128fi
7129rm -f core conftest.err conftest.$ac_objext \
7130    conftest$ac_exeext conftest.$ac_ext
7131fi
7132
7133
7134		CFLAGS="$xorg_testset_save_CFLAGS"
7135
7136		eval supported=\$$cacheid
7137		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7138$as_echo "$supported" >&6; }
7139		if test "$supported" = "yes" ; then
7140			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7141			found="yes"
7142		fi
7143	fi
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159xorg_testset_save_CFLAGS="$CFLAGS"
7160
7161if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7162	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7163	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7164$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7165if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7166  $as_echo_n "(cached) " >&6
7167else
7168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169/* end confdefs.h.  */
7170int i;
7171_ACEOF
7172if ac_fn_c_try_compile "$LINENO"; then :
7173  xorg_cv_cc_flag_unknown_warning_option=yes
7174else
7175  xorg_cv_cc_flag_unknown_warning_option=no
7176fi
7177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7178fi
7179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7180$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7181	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7182	CFLAGS="$xorg_testset_save_CFLAGS"
7183fi
7184
7185if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7186	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7187		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7188	fi
7189	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7190	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7191$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7192if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7193  $as_echo_n "(cached) " >&6
7194else
7195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196/* end confdefs.h.  */
7197int i;
7198_ACEOF
7199if ac_fn_c_try_compile "$LINENO"; then :
7200  xorg_cv_cc_flag_unused_command_line_argument=yes
7201else
7202  xorg_cv_cc_flag_unused_command_line_argument=no
7203fi
7204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7205fi
7206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7207$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7208	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7209	CFLAGS="$xorg_testset_save_CFLAGS"
7210fi
7211
7212found="no"
7213
7214	if test $found = "no" ; then
7215		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7216			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7217		fi
7218
7219		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7220			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7221		fi
7222
7223		CFLAGS="$CFLAGS -Werror=init-self"
7224
7225		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7226$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7227		cacheid=xorg_cv_cc_flag__Werror_init_self
7228		if eval \${$cacheid+:} false; then :
7229  $as_echo_n "(cached) " >&6
7230else
7231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232/* end confdefs.h.  */
7233int i;
7234int
7235main ()
7236{
7237
7238  ;
7239  return 0;
7240}
7241_ACEOF
7242if ac_fn_c_try_link "$LINENO"; then :
7243  eval $cacheid=yes
7244else
7245  eval $cacheid=no
7246fi
7247rm -f core conftest.err conftest.$ac_objext \
7248    conftest$ac_exeext conftest.$ac_ext
7249fi
7250
7251
7252		CFLAGS="$xorg_testset_save_CFLAGS"
7253
7254		eval supported=\$$cacheid
7255		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7256$as_echo "$supported" >&6; }
7257		if test "$supported" = "yes" ; then
7258			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7259			found="yes"
7260		fi
7261	fi
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277xorg_testset_save_CFLAGS="$CFLAGS"
7278
7279if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7280	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7281	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7282$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7283if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7284  $as_echo_n "(cached) " >&6
7285else
7286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287/* end confdefs.h.  */
7288int i;
7289_ACEOF
7290if ac_fn_c_try_compile "$LINENO"; then :
7291  xorg_cv_cc_flag_unknown_warning_option=yes
7292else
7293  xorg_cv_cc_flag_unknown_warning_option=no
7294fi
7295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7296fi
7297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7298$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7299	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7300	CFLAGS="$xorg_testset_save_CFLAGS"
7301fi
7302
7303if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7304	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7305		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7306	fi
7307	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7308	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7309$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7310if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7311  $as_echo_n "(cached) " >&6
7312else
7313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314/* end confdefs.h.  */
7315int i;
7316_ACEOF
7317if ac_fn_c_try_compile "$LINENO"; then :
7318  xorg_cv_cc_flag_unused_command_line_argument=yes
7319else
7320  xorg_cv_cc_flag_unused_command_line_argument=no
7321fi
7322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7323fi
7324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7325$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7326	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7327	CFLAGS="$xorg_testset_save_CFLAGS"
7328fi
7329
7330found="no"
7331
7332	if test $found = "no" ; then
7333		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7334			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7335		fi
7336
7337		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7338			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7339		fi
7340
7341		CFLAGS="$CFLAGS -Werror=main"
7342
7343		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7344$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7345		cacheid=xorg_cv_cc_flag__Werror_main
7346		if eval \${$cacheid+:} false; then :
7347  $as_echo_n "(cached) " >&6
7348else
7349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350/* end confdefs.h.  */
7351int i;
7352int
7353main ()
7354{
7355
7356  ;
7357  return 0;
7358}
7359_ACEOF
7360if ac_fn_c_try_link "$LINENO"; then :
7361  eval $cacheid=yes
7362else
7363  eval $cacheid=no
7364fi
7365rm -f core conftest.err conftest.$ac_objext \
7366    conftest$ac_exeext conftest.$ac_ext
7367fi
7368
7369
7370		CFLAGS="$xorg_testset_save_CFLAGS"
7371
7372		eval supported=\$$cacheid
7373		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7374$as_echo "$supported" >&6; }
7375		if test "$supported" = "yes" ; then
7376			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7377			found="yes"
7378		fi
7379	fi
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395xorg_testset_save_CFLAGS="$CFLAGS"
7396
7397if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7398	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7399	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7400$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7401if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7402  $as_echo_n "(cached) " >&6
7403else
7404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405/* end confdefs.h.  */
7406int i;
7407_ACEOF
7408if ac_fn_c_try_compile "$LINENO"; then :
7409  xorg_cv_cc_flag_unknown_warning_option=yes
7410else
7411  xorg_cv_cc_flag_unknown_warning_option=no
7412fi
7413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7414fi
7415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7416$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7417	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7418	CFLAGS="$xorg_testset_save_CFLAGS"
7419fi
7420
7421if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7422	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7423		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7424	fi
7425	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7426	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7427$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7428if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7429  $as_echo_n "(cached) " >&6
7430else
7431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432/* end confdefs.h.  */
7433int i;
7434_ACEOF
7435if ac_fn_c_try_compile "$LINENO"; then :
7436  xorg_cv_cc_flag_unused_command_line_argument=yes
7437else
7438  xorg_cv_cc_flag_unused_command_line_argument=no
7439fi
7440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7441fi
7442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7443$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7444	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7445	CFLAGS="$xorg_testset_save_CFLAGS"
7446fi
7447
7448found="no"
7449
7450	if test $found = "no" ; then
7451		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7452			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7453		fi
7454
7455		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7456			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7457		fi
7458
7459		CFLAGS="$CFLAGS -Werror=missing-braces"
7460
7461		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7462$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7463		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7464		if eval \${$cacheid+:} false; then :
7465  $as_echo_n "(cached) " >&6
7466else
7467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468/* end confdefs.h.  */
7469int i;
7470int
7471main ()
7472{
7473
7474  ;
7475  return 0;
7476}
7477_ACEOF
7478if ac_fn_c_try_link "$LINENO"; then :
7479  eval $cacheid=yes
7480else
7481  eval $cacheid=no
7482fi
7483rm -f core conftest.err conftest.$ac_objext \
7484    conftest$ac_exeext conftest.$ac_ext
7485fi
7486
7487
7488		CFLAGS="$xorg_testset_save_CFLAGS"
7489
7490		eval supported=\$$cacheid
7491		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7492$as_echo "$supported" >&6; }
7493		if test "$supported" = "yes" ; then
7494			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
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	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7518$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7519if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7520  $as_echo_n "(cached) " >&6
7521else
7522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523/* end confdefs.h.  */
7524int i;
7525_ACEOF
7526if ac_fn_c_try_compile "$LINENO"; then :
7527  xorg_cv_cc_flag_unknown_warning_option=yes
7528else
7529  xorg_cv_cc_flag_unknown_warning_option=no
7530fi
7531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7532fi
7533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7534$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7535	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7536	CFLAGS="$xorg_testset_save_CFLAGS"
7537fi
7538
7539if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7540	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7541		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7542	fi
7543	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7544	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7545$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7546if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7547  $as_echo_n "(cached) " >&6
7548else
7549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550/* end confdefs.h.  */
7551int i;
7552_ACEOF
7553if ac_fn_c_try_compile "$LINENO"; then :
7554  xorg_cv_cc_flag_unused_command_line_argument=yes
7555else
7556  xorg_cv_cc_flag_unused_command_line_argument=no
7557fi
7558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7559fi
7560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7561$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7562	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7563	CFLAGS="$xorg_testset_save_CFLAGS"
7564fi
7565
7566found="no"
7567
7568	if test $found = "no" ; then
7569		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7570			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7571		fi
7572
7573		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7574			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7575		fi
7576
7577		CFLAGS="$CFLAGS -Werror=sequence-point"
7578
7579		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7580$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7581		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7582		if eval \${$cacheid+:} false; then :
7583  $as_echo_n "(cached) " >&6
7584else
7585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7586/* end confdefs.h.  */
7587int i;
7588int
7589main ()
7590{
7591
7592  ;
7593  return 0;
7594}
7595_ACEOF
7596if ac_fn_c_try_link "$LINENO"; then :
7597  eval $cacheid=yes
7598else
7599  eval $cacheid=no
7600fi
7601rm -f core conftest.err conftest.$ac_objext \
7602    conftest$ac_exeext conftest.$ac_ext
7603fi
7604
7605
7606		CFLAGS="$xorg_testset_save_CFLAGS"
7607
7608		eval supported=\$$cacheid
7609		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7610$as_echo "$supported" >&6; }
7611		if test "$supported" = "yes" ; then
7612			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7613			found="yes"
7614		fi
7615	fi
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631xorg_testset_save_CFLAGS="$CFLAGS"
7632
7633if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7634	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7635	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7636$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7637if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7638  $as_echo_n "(cached) " >&6
7639else
7640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641/* end confdefs.h.  */
7642int i;
7643_ACEOF
7644if ac_fn_c_try_compile "$LINENO"; then :
7645  xorg_cv_cc_flag_unknown_warning_option=yes
7646else
7647  xorg_cv_cc_flag_unknown_warning_option=no
7648fi
7649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7650fi
7651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7652$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7653	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7654	CFLAGS="$xorg_testset_save_CFLAGS"
7655fi
7656
7657if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7658	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7659		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7660	fi
7661	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7662	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7663$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7664if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7665  $as_echo_n "(cached) " >&6
7666else
7667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668/* end confdefs.h.  */
7669int i;
7670_ACEOF
7671if ac_fn_c_try_compile "$LINENO"; then :
7672  xorg_cv_cc_flag_unused_command_line_argument=yes
7673else
7674  xorg_cv_cc_flag_unused_command_line_argument=no
7675fi
7676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7677fi
7678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7679$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7680	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7681	CFLAGS="$xorg_testset_save_CFLAGS"
7682fi
7683
7684found="no"
7685
7686	if test $found = "no" ; then
7687		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7688			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7689		fi
7690
7691		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7692			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7693		fi
7694
7695		CFLAGS="$CFLAGS -Werror=return-type"
7696
7697		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7698$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7699		cacheid=xorg_cv_cc_flag__Werror_return_type
7700		if eval \${$cacheid+:} false; then :
7701  $as_echo_n "(cached) " >&6
7702else
7703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7704/* end confdefs.h.  */
7705int i;
7706int
7707main ()
7708{
7709
7710  ;
7711  return 0;
7712}
7713_ACEOF
7714if ac_fn_c_try_link "$LINENO"; then :
7715  eval $cacheid=yes
7716else
7717  eval $cacheid=no
7718fi
7719rm -f core conftest.err conftest.$ac_objext \
7720    conftest$ac_exeext conftest.$ac_ext
7721fi
7722
7723
7724		CFLAGS="$xorg_testset_save_CFLAGS"
7725
7726		eval supported=\$$cacheid
7727		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7728$as_echo "$supported" >&6; }
7729		if test "$supported" = "yes" ; then
7730			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7731			found="yes"
7732		fi
7733	fi
7734
7735	if test $found = "no" ; then
7736		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7737			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7738		fi
7739
7740		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7741			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7742		fi
7743
7744		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7745
7746		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7747$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7748		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7749		if eval \${$cacheid+:} false; then :
7750  $as_echo_n "(cached) " >&6
7751else
7752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753/* end confdefs.h.  */
7754int i;
7755int
7756main ()
7757{
7758
7759  ;
7760  return 0;
7761}
7762_ACEOF
7763if ac_fn_c_try_link "$LINENO"; then :
7764  eval $cacheid=yes
7765else
7766  eval $cacheid=no
7767fi
7768rm -f core conftest.err conftest.$ac_objext \
7769    conftest$ac_exeext conftest.$ac_ext
7770fi
7771
7772
7773		CFLAGS="$xorg_testset_save_CFLAGS"
7774
7775		eval supported=\$$cacheid
7776		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7777$as_echo "$supported" >&6; }
7778		if test "$supported" = "yes" ; then
7779			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7780			found="yes"
7781		fi
7782	fi
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798xorg_testset_save_CFLAGS="$CFLAGS"
7799
7800if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7801	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7802	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7803$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7804if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7805  $as_echo_n "(cached) " >&6
7806else
7807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808/* end confdefs.h.  */
7809int i;
7810_ACEOF
7811if ac_fn_c_try_compile "$LINENO"; then :
7812  xorg_cv_cc_flag_unknown_warning_option=yes
7813else
7814  xorg_cv_cc_flag_unknown_warning_option=no
7815fi
7816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7817fi
7818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7819$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7820	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7821	CFLAGS="$xorg_testset_save_CFLAGS"
7822fi
7823
7824if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7825	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7826		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7827	fi
7828	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7829	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7830$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7831if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7832  $as_echo_n "(cached) " >&6
7833else
7834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835/* end confdefs.h.  */
7836int i;
7837_ACEOF
7838if ac_fn_c_try_compile "$LINENO"; then :
7839  xorg_cv_cc_flag_unused_command_line_argument=yes
7840else
7841  xorg_cv_cc_flag_unused_command_line_argument=no
7842fi
7843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7844fi
7845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7846$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7847	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7848	CFLAGS="$xorg_testset_save_CFLAGS"
7849fi
7850
7851found="no"
7852
7853	if test $found = "no" ; then
7854		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7855			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7856		fi
7857
7858		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7859			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7860		fi
7861
7862		CFLAGS="$CFLAGS -Werror=trigraphs"
7863
7864		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7865$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7866		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7867		if eval \${$cacheid+:} false; then :
7868  $as_echo_n "(cached) " >&6
7869else
7870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871/* end confdefs.h.  */
7872int i;
7873int
7874main ()
7875{
7876
7877  ;
7878  return 0;
7879}
7880_ACEOF
7881if ac_fn_c_try_link "$LINENO"; then :
7882  eval $cacheid=yes
7883else
7884  eval $cacheid=no
7885fi
7886rm -f core conftest.err conftest.$ac_objext \
7887    conftest$ac_exeext conftest.$ac_ext
7888fi
7889
7890
7891		CFLAGS="$xorg_testset_save_CFLAGS"
7892
7893		eval supported=\$$cacheid
7894		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7895$as_echo "$supported" >&6; }
7896		if test "$supported" = "yes" ; then
7897			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7898			found="yes"
7899		fi
7900	fi
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916xorg_testset_save_CFLAGS="$CFLAGS"
7917
7918if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7919	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7920	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7921$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7922if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7923  $as_echo_n "(cached) " >&6
7924else
7925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7926/* end confdefs.h.  */
7927int i;
7928_ACEOF
7929if ac_fn_c_try_compile "$LINENO"; then :
7930  xorg_cv_cc_flag_unknown_warning_option=yes
7931else
7932  xorg_cv_cc_flag_unknown_warning_option=no
7933fi
7934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7935fi
7936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7937$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7938	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7939	CFLAGS="$xorg_testset_save_CFLAGS"
7940fi
7941
7942if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7943	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7944		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7945	fi
7946	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7947	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7948$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7949if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7950  $as_echo_n "(cached) " >&6
7951else
7952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953/* end confdefs.h.  */
7954int i;
7955_ACEOF
7956if ac_fn_c_try_compile "$LINENO"; then :
7957  xorg_cv_cc_flag_unused_command_line_argument=yes
7958else
7959  xorg_cv_cc_flag_unused_command_line_argument=no
7960fi
7961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7962fi
7963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7964$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7965	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7966	CFLAGS="$xorg_testset_save_CFLAGS"
7967fi
7968
7969found="no"
7970
7971	if test $found = "no" ; then
7972		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7973			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7974		fi
7975
7976		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7977			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7978		fi
7979
7980		CFLAGS="$CFLAGS -Werror=array-bounds"
7981
7982		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7983$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7984		cacheid=xorg_cv_cc_flag__Werror_array_bounds
7985		if eval \${$cacheid+:} false; then :
7986  $as_echo_n "(cached) " >&6
7987else
7988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7989/* end confdefs.h.  */
7990int i;
7991int
7992main ()
7993{
7994
7995  ;
7996  return 0;
7997}
7998_ACEOF
7999if ac_fn_c_try_link "$LINENO"; then :
8000  eval $cacheid=yes
8001else
8002  eval $cacheid=no
8003fi
8004rm -f core conftest.err conftest.$ac_objext \
8005    conftest$ac_exeext conftest.$ac_ext
8006fi
8007
8008
8009		CFLAGS="$xorg_testset_save_CFLAGS"
8010
8011		eval supported=\$$cacheid
8012		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8013$as_echo "$supported" >&6; }
8014		if test "$supported" = "yes" ; then
8015			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8016			found="yes"
8017		fi
8018	fi
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034xorg_testset_save_CFLAGS="$CFLAGS"
8035
8036if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8037	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8038	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8039$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8040if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8041  $as_echo_n "(cached) " >&6
8042else
8043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044/* end confdefs.h.  */
8045int i;
8046_ACEOF
8047if ac_fn_c_try_compile "$LINENO"; then :
8048  xorg_cv_cc_flag_unknown_warning_option=yes
8049else
8050  xorg_cv_cc_flag_unknown_warning_option=no
8051fi
8052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8053fi
8054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8055$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8056	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8057	CFLAGS="$xorg_testset_save_CFLAGS"
8058fi
8059
8060if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8061	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8062		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8063	fi
8064	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8065	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8066$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8067if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8068  $as_echo_n "(cached) " >&6
8069else
8070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8071/* end confdefs.h.  */
8072int i;
8073_ACEOF
8074if ac_fn_c_try_compile "$LINENO"; then :
8075  xorg_cv_cc_flag_unused_command_line_argument=yes
8076else
8077  xorg_cv_cc_flag_unused_command_line_argument=no
8078fi
8079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8080fi
8081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8082$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8083	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8084	CFLAGS="$xorg_testset_save_CFLAGS"
8085fi
8086
8087found="no"
8088
8089	if test $found = "no" ; then
8090		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8091			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8092		fi
8093
8094		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8095			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8096		fi
8097
8098		CFLAGS="$CFLAGS -Werror=write-strings"
8099
8100		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8101$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8102		cacheid=xorg_cv_cc_flag__Werror_write_strings
8103		if eval \${$cacheid+:} false; then :
8104  $as_echo_n "(cached) " >&6
8105else
8106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107/* end confdefs.h.  */
8108int i;
8109int
8110main ()
8111{
8112
8113  ;
8114  return 0;
8115}
8116_ACEOF
8117if ac_fn_c_try_link "$LINENO"; then :
8118  eval $cacheid=yes
8119else
8120  eval $cacheid=no
8121fi
8122rm -f core conftest.err conftest.$ac_objext \
8123    conftest$ac_exeext conftest.$ac_ext
8124fi
8125
8126
8127		CFLAGS="$xorg_testset_save_CFLAGS"
8128
8129		eval supported=\$$cacheid
8130		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8131$as_echo "$supported" >&6; }
8132		if test "$supported" = "yes" ; then
8133			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8134			found="yes"
8135		fi
8136	fi
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152xorg_testset_save_CFLAGS="$CFLAGS"
8153
8154if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8155	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8156	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8157$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8158if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8159  $as_echo_n "(cached) " >&6
8160else
8161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162/* end confdefs.h.  */
8163int i;
8164_ACEOF
8165if ac_fn_c_try_compile "$LINENO"; then :
8166  xorg_cv_cc_flag_unknown_warning_option=yes
8167else
8168  xorg_cv_cc_flag_unknown_warning_option=no
8169fi
8170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8171fi
8172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8173$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8174	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8175	CFLAGS="$xorg_testset_save_CFLAGS"
8176fi
8177
8178if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8179	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8180		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8181	fi
8182	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8183	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8184$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8185if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8186  $as_echo_n "(cached) " >&6
8187else
8188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8189/* end confdefs.h.  */
8190int i;
8191_ACEOF
8192if ac_fn_c_try_compile "$LINENO"; then :
8193  xorg_cv_cc_flag_unused_command_line_argument=yes
8194else
8195  xorg_cv_cc_flag_unused_command_line_argument=no
8196fi
8197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8198fi
8199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8200$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8201	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8202	CFLAGS="$xorg_testset_save_CFLAGS"
8203fi
8204
8205found="no"
8206
8207	if test $found = "no" ; then
8208		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8209			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8210		fi
8211
8212		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8213			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8214		fi
8215
8216		CFLAGS="$CFLAGS -Werror=address"
8217
8218		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8219$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8220		cacheid=xorg_cv_cc_flag__Werror_address
8221		if eval \${$cacheid+:} false; then :
8222  $as_echo_n "(cached) " >&6
8223else
8224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8225/* end confdefs.h.  */
8226int i;
8227int
8228main ()
8229{
8230
8231  ;
8232  return 0;
8233}
8234_ACEOF
8235if ac_fn_c_try_link "$LINENO"; then :
8236  eval $cacheid=yes
8237else
8238  eval $cacheid=no
8239fi
8240rm -f core conftest.err conftest.$ac_objext \
8241    conftest$ac_exeext conftest.$ac_ext
8242fi
8243
8244
8245		CFLAGS="$xorg_testset_save_CFLAGS"
8246
8247		eval supported=\$$cacheid
8248		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8249$as_echo "$supported" >&6; }
8250		if test "$supported" = "yes" ; then
8251			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8252			found="yes"
8253		fi
8254	fi
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270xorg_testset_save_CFLAGS="$CFLAGS"
8271
8272if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8273	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8274	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8275$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8276if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8277  $as_echo_n "(cached) " >&6
8278else
8279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8280/* end confdefs.h.  */
8281int i;
8282_ACEOF
8283if ac_fn_c_try_compile "$LINENO"; then :
8284  xorg_cv_cc_flag_unknown_warning_option=yes
8285else
8286  xorg_cv_cc_flag_unknown_warning_option=no
8287fi
8288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8289fi
8290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8291$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8292	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8293	CFLAGS="$xorg_testset_save_CFLAGS"
8294fi
8295
8296if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8297	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8298		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8299	fi
8300	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8301	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8302$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8303if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8304  $as_echo_n "(cached) " >&6
8305else
8306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307/* end confdefs.h.  */
8308int i;
8309_ACEOF
8310if ac_fn_c_try_compile "$LINENO"; then :
8311  xorg_cv_cc_flag_unused_command_line_argument=yes
8312else
8313  xorg_cv_cc_flag_unused_command_line_argument=no
8314fi
8315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8316fi
8317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8318$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8319	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8320	CFLAGS="$xorg_testset_save_CFLAGS"
8321fi
8322
8323found="no"
8324
8325	if test $found = "no" ; then
8326		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8327			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8328		fi
8329
8330		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8331			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8332		fi
8333
8334		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8335
8336		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8337$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8338		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8339		if eval \${$cacheid+:} false; then :
8340  $as_echo_n "(cached) " >&6
8341else
8342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8343/* end confdefs.h.  */
8344int i;
8345int
8346main ()
8347{
8348
8349  ;
8350  return 0;
8351}
8352_ACEOF
8353if ac_fn_c_try_link "$LINENO"; then :
8354  eval $cacheid=yes
8355else
8356  eval $cacheid=no
8357fi
8358rm -f core conftest.err conftest.$ac_objext \
8359    conftest$ac_exeext conftest.$ac_ext
8360fi
8361
8362
8363		CFLAGS="$xorg_testset_save_CFLAGS"
8364
8365		eval supported=\$$cacheid
8366		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8367$as_echo "$supported" >&6; }
8368		if test "$supported" = "yes" ; then
8369			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8370			found="yes"
8371		fi
8372	fi
8373
8374	if test $found = "no" ; then
8375		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8376			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8377		fi
8378
8379		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8380			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8381		fi
8382
8383		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8384
8385		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8386$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8387		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8388		if eval \${$cacheid+:} false; then :
8389  $as_echo_n "(cached) " >&6
8390else
8391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8392/* end confdefs.h.  */
8393int i;
8394int
8395main ()
8396{
8397
8398  ;
8399  return 0;
8400}
8401_ACEOF
8402if ac_fn_c_try_link "$LINENO"; then :
8403  eval $cacheid=yes
8404else
8405  eval $cacheid=no
8406fi
8407rm -f core conftest.err conftest.$ac_objext \
8408    conftest$ac_exeext conftest.$ac_ext
8409fi
8410
8411
8412		CFLAGS="$xorg_testset_save_CFLAGS"
8413
8414		eval supported=\$$cacheid
8415		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8416$as_echo "$supported" >&6; }
8417		if test "$supported" = "yes" ; then
8418			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8419			found="yes"
8420		fi
8421	fi
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437xorg_testset_save_CFLAGS="$CFLAGS"
8438
8439if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8440	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8441	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8442$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8443if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8444  $as_echo_n "(cached) " >&6
8445else
8446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8447/* end confdefs.h.  */
8448int i;
8449_ACEOF
8450if ac_fn_c_try_compile "$LINENO"; then :
8451  xorg_cv_cc_flag_unknown_warning_option=yes
8452else
8453  xorg_cv_cc_flag_unknown_warning_option=no
8454fi
8455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8456fi
8457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8458$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8459	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8460	CFLAGS="$xorg_testset_save_CFLAGS"
8461fi
8462
8463if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8464	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8465		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8466	fi
8467	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8468	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8469$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8470if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8471  $as_echo_n "(cached) " >&6
8472else
8473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474/* end confdefs.h.  */
8475int i;
8476_ACEOF
8477if ac_fn_c_try_compile "$LINENO"; then :
8478  xorg_cv_cc_flag_unused_command_line_argument=yes
8479else
8480  xorg_cv_cc_flag_unused_command_line_argument=no
8481fi
8482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483fi
8484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8485$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8486	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8487	CFLAGS="$xorg_testset_save_CFLAGS"
8488fi
8489
8490found="no"
8491
8492	if test $found = "no" ; then
8493		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8494			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8495		fi
8496
8497		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8498			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8499		fi
8500
8501		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8502
8503		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8504$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8505		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8506		if eval \${$cacheid+:} false; then :
8507  $as_echo_n "(cached) " >&6
8508else
8509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8510/* end confdefs.h.  */
8511int i;
8512int
8513main ()
8514{
8515
8516  ;
8517  return 0;
8518}
8519_ACEOF
8520if ac_fn_c_try_link "$LINENO"; then :
8521  eval $cacheid=yes
8522else
8523  eval $cacheid=no
8524fi
8525rm -f core conftest.err conftest.$ac_objext \
8526    conftest$ac_exeext conftest.$ac_ext
8527fi
8528
8529
8530		CFLAGS="$xorg_testset_save_CFLAGS"
8531
8532		eval supported=\$$cacheid
8533		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8534$as_echo "$supported" >&6; }
8535		if test "$supported" = "yes" ; then
8536			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8537			found="yes"
8538		fi
8539	fi
8540
8541 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8542else
8543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
8544$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558xorg_testset_save_CFLAGS="$CFLAGS"
8559
8560if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8561	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8562	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8563$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8564if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8565  $as_echo_n "(cached) " >&6
8566else
8567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8568/* end confdefs.h.  */
8569int i;
8570_ACEOF
8571if ac_fn_c_try_compile "$LINENO"; then :
8572  xorg_cv_cc_flag_unknown_warning_option=yes
8573else
8574  xorg_cv_cc_flag_unknown_warning_option=no
8575fi
8576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8577fi
8578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8579$as_echo "$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	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8590$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8591if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8592  $as_echo_n "(cached) " >&6
8593else
8594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595/* end confdefs.h.  */
8596int i;
8597_ACEOF
8598if ac_fn_c_try_compile "$LINENO"; then :
8599  xorg_cv_cc_flag_unused_command_line_argument=yes
8600else
8601  xorg_cv_cc_flag_unused_command_line_argument=no
8602fi
8603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8604fi
8605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8606$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8607	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8608	CFLAGS="$xorg_testset_save_CFLAGS"
8609fi
8610
8611found="no"
8612
8613	if test $found = "no" ; then
8614		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8615			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8616		fi
8617
8618		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8619			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8620		fi
8621
8622		CFLAGS="$CFLAGS -Wimplicit"
8623
8624		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8625$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8626		cacheid=xorg_cv_cc_flag__Wimplicit
8627		if eval \${$cacheid+:} false; then :
8628  $as_echo_n "(cached) " >&6
8629else
8630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631/* end confdefs.h.  */
8632int i;
8633int
8634main ()
8635{
8636
8637  ;
8638  return 0;
8639}
8640_ACEOF
8641if ac_fn_c_try_link "$LINENO"; then :
8642  eval $cacheid=yes
8643else
8644  eval $cacheid=no
8645fi
8646rm -f core conftest.err conftest.$ac_objext \
8647    conftest$ac_exeext conftest.$ac_ext
8648fi
8649
8650
8651		CFLAGS="$xorg_testset_save_CFLAGS"
8652
8653		eval supported=\$$cacheid
8654		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8655$as_echo "$supported" >&6; }
8656		if test "$supported" = "yes" ; then
8657			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8658			found="yes"
8659		fi
8660	fi
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676xorg_testset_save_CFLAGS="$CFLAGS"
8677
8678if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8679	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8680	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8681$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8682if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8683  $as_echo_n "(cached) " >&6
8684else
8685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686/* end confdefs.h.  */
8687int i;
8688_ACEOF
8689if ac_fn_c_try_compile "$LINENO"; then :
8690  xorg_cv_cc_flag_unknown_warning_option=yes
8691else
8692  xorg_cv_cc_flag_unknown_warning_option=no
8693fi
8694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8695fi
8696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8697$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8698	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8699	CFLAGS="$xorg_testset_save_CFLAGS"
8700fi
8701
8702if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8703	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8704		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8705	fi
8706	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8707	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8708$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8709if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8710  $as_echo_n "(cached) " >&6
8711else
8712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713/* end confdefs.h.  */
8714int i;
8715_ACEOF
8716if ac_fn_c_try_compile "$LINENO"; then :
8717  xorg_cv_cc_flag_unused_command_line_argument=yes
8718else
8719  xorg_cv_cc_flag_unused_command_line_argument=no
8720fi
8721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8722fi
8723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8724$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8725	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8726	CFLAGS="$xorg_testset_save_CFLAGS"
8727fi
8728
8729found="no"
8730
8731	if test $found = "no" ; then
8732		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8733			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8734		fi
8735
8736		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8737			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8738		fi
8739
8740		CFLAGS="$CFLAGS -Wnonnull"
8741
8742		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8743$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8744		cacheid=xorg_cv_cc_flag__Wnonnull
8745		if eval \${$cacheid+:} false; then :
8746  $as_echo_n "(cached) " >&6
8747else
8748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749/* end confdefs.h.  */
8750int i;
8751int
8752main ()
8753{
8754
8755  ;
8756  return 0;
8757}
8758_ACEOF
8759if ac_fn_c_try_link "$LINENO"; then :
8760  eval $cacheid=yes
8761else
8762  eval $cacheid=no
8763fi
8764rm -f core conftest.err conftest.$ac_objext \
8765    conftest$ac_exeext conftest.$ac_ext
8766fi
8767
8768
8769		CFLAGS="$xorg_testset_save_CFLAGS"
8770
8771		eval supported=\$$cacheid
8772		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8773$as_echo "$supported" >&6; }
8774		if test "$supported" = "yes" ; then
8775			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8776			found="yes"
8777		fi
8778	fi
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794xorg_testset_save_CFLAGS="$CFLAGS"
8795
8796if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8797	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8798	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8799$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8800if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8801  $as_echo_n "(cached) " >&6
8802else
8803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8804/* end confdefs.h.  */
8805int i;
8806_ACEOF
8807if ac_fn_c_try_compile "$LINENO"; then :
8808  xorg_cv_cc_flag_unknown_warning_option=yes
8809else
8810  xorg_cv_cc_flag_unknown_warning_option=no
8811fi
8812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8813fi
8814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8815$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8816	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8817	CFLAGS="$xorg_testset_save_CFLAGS"
8818fi
8819
8820if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8821	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8822		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8823	fi
8824	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8825	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8826$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8827if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8828  $as_echo_n "(cached) " >&6
8829else
8830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831/* end confdefs.h.  */
8832int i;
8833_ACEOF
8834if ac_fn_c_try_compile "$LINENO"; then :
8835  xorg_cv_cc_flag_unused_command_line_argument=yes
8836else
8837  xorg_cv_cc_flag_unused_command_line_argument=no
8838fi
8839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8840fi
8841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8842$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8843	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8844	CFLAGS="$xorg_testset_save_CFLAGS"
8845fi
8846
8847found="no"
8848
8849	if test $found = "no" ; then
8850		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8851			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8852		fi
8853
8854		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8855			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8856		fi
8857
8858		CFLAGS="$CFLAGS -Winit-self"
8859
8860		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8861$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8862		cacheid=xorg_cv_cc_flag__Winit_self
8863		if eval \${$cacheid+:} false; then :
8864  $as_echo_n "(cached) " >&6
8865else
8866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867/* end confdefs.h.  */
8868int i;
8869int
8870main ()
8871{
8872
8873  ;
8874  return 0;
8875}
8876_ACEOF
8877if ac_fn_c_try_link "$LINENO"; then :
8878  eval $cacheid=yes
8879else
8880  eval $cacheid=no
8881fi
8882rm -f core conftest.err conftest.$ac_objext \
8883    conftest$ac_exeext conftest.$ac_ext
8884fi
8885
8886
8887		CFLAGS="$xorg_testset_save_CFLAGS"
8888
8889		eval supported=\$$cacheid
8890		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8891$as_echo "$supported" >&6; }
8892		if test "$supported" = "yes" ; then
8893			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8894			found="yes"
8895		fi
8896	fi
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912xorg_testset_save_CFLAGS="$CFLAGS"
8913
8914if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8915	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8916	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8917$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8918if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8919  $as_echo_n "(cached) " >&6
8920else
8921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8922/* end confdefs.h.  */
8923int i;
8924_ACEOF
8925if ac_fn_c_try_compile "$LINENO"; then :
8926  xorg_cv_cc_flag_unknown_warning_option=yes
8927else
8928  xorg_cv_cc_flag_unknown_warning_option=no
8929fi
8930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8931fi
8932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8933$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8934	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8935	CFLAGS="$xorg_testset_save_CFLAGS"
8936fi
8937
8938if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8939	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8940		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8941	fi
8942	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8943	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8944$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8945if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8946  $as_echo_n "(cached) " >&6
8947else
8948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8949/* end confdefs.h.  */
8950int i;
8951_ACEOF
8952if ac_fn_c_try_compile "$LINENO"; then :
8953  xorg_cv_cc_flag_unused_command_line_argument=yes
8954else
8955  xorg_cv_cc_flag_unused_command_line_argument=no
8956fi
8957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8958fi
8959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8960$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8961	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8962	CFLAGS="$xorg_testset_save_CFLAGS"
8963fi
8964
8965found="no"
8966
8967	if test $found = "no" ; then
8968		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8969			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8970		fi
8971
8972		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8973			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8974		fi
8975
8976		CFLAGS="$CFLAGS -Wmain"
8977
8978		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8979$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8980		cacheid=xorg_cv_cc_flag__Wmain
8981		if eval \${$cacheid+:} false; then :
8982  $as_echo_n "(cached) " >&6
8983else
8984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8985/* end confdefs.h.  */
8986int i;
8987int
8988main ()
8989{
8990
8991  ;
8992  return 0;
8993}
8994_ACEOF
8995if ac_fn_c_try_link "$LINENO"; then :
8996  eval $cacheid=yes
8997else
8998  eval $cacheid=no
8999fi
9000rm -f core conftest.err conftest.$ac_objext \
9001    conftest$ac_exeext conftest.$ac_ext
9002fi
9003
9004
9005		CFLAGS="$xorg_testset_save_CFLAGS"
9006
9007		eval supported=\$$cacheid
9008		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9009$as_echo "$supported" >&6; }
9010		if test "$supported" = "yes" ; then
9011			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9012			found="yes"
9013		fi
9014	fi
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030xorg_testset_save_CFLAGS="$CFLAGS"
9031
9032if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9033	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9034	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9035$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9036if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9037  $as_echo_n "(cached) " >&6
9038else
9039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9040/* end confdefs.h.  */
9041int i;
9042_ACEOF
9043if ac_fn_c_try_compile "$LINENO"; then :
9044  xorg_cv_cc_flag_unknown_warning_option=yes
9045else
9046  xorg_cv_cc_flag_unknown_warning_option=no
9047fi
9048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9049fi
9050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9051$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9052	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9053	CFLAGS="$xorg_testset_save_CFLAGS"
9054fi
9055
9056if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9057	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9058		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9059	fi
9060	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9061	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9062$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9063if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9064  $as_echo_n "(cached) " >&6
9065else
9066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067/* end confdefs.h.  */
9068int i;
9069_ACEOF
9070if ac_fn_c_try_compile "$LINENO"; then :
9071  xorg_cv_cc_flag_unused_command_line_argument=yes
9072else
9073  xorg_cv_cc_flag_unused_command_line_argument=no
9074fi
9075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9076fi
9077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9078$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9079	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9080	CFLAGS="$xorg_testset_save_CFLAGS"
9081fi
9082
9083found="no"
9084
9085	if test $found = "no" ; then
9086		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9087			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9088		fi
9089
9090		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9091			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9092		fi
9093
9094		CFLAGS="$CFLAGS -Wmissing-braces"
9095
9096		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9097$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9098		cacheid=xorg_cv_cc_flag__Wmissing_braces
9099		if eval \${$cacheid+:} false; then :
9100  $as_echo_n "(cached) " >&6
9101else
9102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9103/* end confdefs.h.  */
9104int i;
9105int
9106main ()
9107{
9108
9109  ;
9110  return 0;
9111}
9112_ACEOF
9113if ac_fn_c_try_link "$LINENO"; then :
9114  eval $cacheid=yes
9115else
9116  eval $cacheid=no
9117fi
9118rm -f core conftest.err conftest.$ac_objext \
9119    conftest$ac_exeext conftest.$ac_ext
9120fi
9121
9122
9123		CFLAGS="$xorg_testset_save_CFLAGS"
9124
9125		eval supported=\$$cacheid
9126		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9127$as_echo "$supported" >&6; }
9128		if test "$supported" = "yes" ; then
9129			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9130			found="yes"
9131		fi
9132	fi
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148xorg_testset_save_CFLAGS="$CFLAGS"
9149
9150if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9151	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9152	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9153$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9154if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9155  $as_echo_n "(cached) " >&6
9156else
9157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9158/* end confdefs.h.  */
9159int i;
9160_ACEOF
9161if ac_fn_c_try_compile "$LINENO"; then :
9162  xorg_cv_cc_flag_unknown_warning_option=yes
9163else
9164  xorg_cv_cc_flag_unknown_warning_option=no
9165fi
9166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9167fi
9168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9169$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9170	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9171	CFLAGS="$xorg_testset_save_CFLAGS"
9172fi
9173
9174if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9175	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9176		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9177	fi
9178	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9179	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9180$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9181if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9182  $as_echo_n "(cached) " >&6
9183else
9184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9185/* end confdefs.h.  */
9186int i;
9187_ACEOF
9188if ac_fn_c_try_compile "$LINENO"; then :
9189  xorg_cv_cc_flag_unused_command_line_argument=yes
9190else
9191  xorg_cv_cc_flag_unused_command_line_argument=no
9192fi
9193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9194fi
9195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9196$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9197	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9198	CFLAGS="$xorg_testset_save_CFLAGS"
9199fi
9200
9201found="no"
9202
9203	if test $found = "no" ; then
9204		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9205			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9206		fi
9207
9208		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9209			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9210		fi
9211
9212		CFLAGS="$CFLAGS -Wsequence-point"
9213
9214		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9215$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9216		cacheid=xorg_cv_cc_flag__Wsequence_point
9217		if eval \${$cacheid+:} false; then :
9218  $as_echo_n "(cached) " >&6
9219else
9220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221/* end confdefs.h.  */
9222int i;
9223int
9224main ()
9225{
9226
9227  ;
9228  return 0;
9229}
9230_ACEOF
9231if ac_fn_c_try_link "$LINENO"; then :
9232  eval $cacheid=yes
9233else
9234  eval $cacheid=no
9235fi
9236rm -f core conftest.err conftest.$ac_objext \
9237    conftest$ac_exeext conftest.$ac_ext
9238fi
9239
9240
9241		CFLAGS="$xorg_testset_save_CFLAGS"
9242
9243		eval supported=\$$cacheid
9244		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9245$as_echo "$supported" >&6; }
9246		if test "$supported" = "yes" ; then
9247			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9248			found="yes"
9249		fi
9250	fi
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266xorg_testset_save_CFLAGS="$CFLAGS"
9267
9268if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9269	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9270	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9271$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9272if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9273  $as_echo_n "(cached) " >&6
9274else
9275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9276/* end confdefs.h.  */
9277int i;
9278_ACEOF
9279if ac_fn_c_try_compile "$LINENO"; then :
9280  xorg_cv_cc_flag_unknown_warning_option=yes
9281else
9282  xorg_cv_cc_flag_unknown_warning_option=no
9283fi
9284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9285fi
9286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9287$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9288	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9289	CFLAGS="$xorg_testset_save_CFLAGS"
9290fi
9291
9292if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9293	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9294		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9295	fi
9296	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9297	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9298$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9299if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9300  $as_echo_n "(cached) " >&6
9301else
9302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303/* end confdefs.h.  */
9304int i;
9305_ACEOF
9306if ac_fn_c_try_compile "$LINENO"; then :
9307  xorg_cv_cc_flag_unused_command_line_argument=yes
9308else
9309  xorg_cv_cc_flag_unused_command_line_argument=no
9310fi
9311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9312fi
9313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9314$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9315	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9316	CFLAGS="$xorg_testset_save_CFLAGS"
9317fi
9318
9319found="no"
9320
9321	if test $found = "no" ; then
9322		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9323			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9324		fi
9325
9326		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9327			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9328		fi
9329
9330		CFLAGS="$CFLAGS -Wreturn-type"
9331
9332		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9333$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9334		cacheid=xorg_cv_cc_flag__Wreturn_type
9335		if eval \${$cacheid+:} false; then :
9336  $as_echo_n "(cached) " >&6
9337else
9338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9339/* end confdefs.h.  */
9340int i;
9341int
9342main ()
9343{
9344
9345  ;
9346  return 0;
9347}
9348_ACEOF
9349if ac_fn_c_try_link "$LINENO"; then :
9350  eval $cacheid=yes
9351else
9352  eval $cacheid=no
9353fi
9354rm -f core conftest.err conftest.$ac_objext \
9355    conftest$ac_exeext conftest.$ac_ext
9356fi
9357
9358
9359		CFLAGS="$xorg_testset_save_CFLAGS"
9360
9361		eval supported=\$$cacheid
9362		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9363$as_echo "$supported" >&6; }
9364		if test "$supported" = "yes" ; then
9365			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9366			found="yes"
9367		fi
9368	fi
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384xorg_testset_save_CFLAGS="$CFLAGS"
9385
9386if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9387	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9388	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9389$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9390if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9391  $as_echo_n "(cached) " >&6
9392else
9393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394/* end confdefs.h.  */
9395int i;
9396_ACEOF
9397if ac_fn_c_try_compile "$LINENO"; then :
9398  xorg_cv_cc_flag_unknown_warning_option=yes
9399else
9400  xorg_cv_cc_flag_unknown_warning_option=no
9401fi
9402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9403fi
9404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9405$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9406	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9407	CFLAGS="$xorg_testset_save_CFLAGS"
9408fi
9409
9410if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9411	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9412		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9413	fi
9414	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9415	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9416$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9417if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9418  $as_echo_n "(cached) " >&6
9419else
9420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421/* end confdefs.h.  */
9422int i;
9423_ACEOF
9424if ac_fn_c_try_compile "$LINENO"; then :
9425  xorg_cv_cc_flag_unused_command_line_argument=yes
9426else
9427  xorg_cv_cc_flag_unused_command_line_argument=no
9428fi
9429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9430fi
9431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9432$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9433	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9434	CFLAGS="$xorg_testset_save_CFLAGS"
9435fi
9436
9437found="no"
9438
9439	if test $found = "no" ; then
9440		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9441			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9442		fi
9443
9444		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9445			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9446		fi
9447
9448		CFLAGS="$CFLAGS -Wtrigraphs"
9449
9450		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9451$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9452		cacheid=xorg_cv_cc_flag__Wtrigraphs
9453		if eval \${$cacheid+:} false; then :
9454  $as_echo_n "(cached) " >&6
9455else
9456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9457/* end confdefs.h.  */
9458int i;
9459int
9460main ()
9461{
9462
9463  ;
9464  return 0;
9465}
9466_ACEOF
9467if ac_fn_c_try_link "$LINENO"; then :
9468  eval $cacheid=yes
9469else
9470  eval $cacheid=no
9471fi
9472rm -f core conftest.err conftest.$ac_objext \
9473    conftest$ac_exeext conftest.$ac_ext
9474fi
9475
9476
9477		CFLAGS="$xorg_testset_save_CFLAGS"
9478
9479		eval supported=\$$cacheid
9480		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9481$as_echo "$supported" >&6; }
9482		if test "$supported" = "yes" ; then
9483			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9484			found="yes"
9485		fi
9486	fi
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502xorg_testset_save_CFLAGS="$CFLAGS"
9503
9504if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9505	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9506	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9507$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9508if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9509  $as_echo_n "(cached) " >&6
9510else
9511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9512/* end confdefs.h.  */
9513int i;
9514_ACEOF
9515if ac_fn_c_try_compile "$LINENO"; then :
9516  xorg_cv_cc_flag_unknown_warning_option=yes
9517else
9518  xorg_cv_cc_flag_unknown_warning_option=no
9519fi
9520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9521fi
9522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9523$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9524	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9525	CFLAGS="$xorg_testset_save_CFLAGS"
9526fi
9527
9528if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9529	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9530		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9531	fi
9532	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9533	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9534$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9535if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9536  $as_echo_n "(cached) " >&6
9537else
9538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9539/* end confdefs.h.  */
9540int i;
9541_ACEOF
9542if ac_fn_c_try_compile "$LINENO"; then :
9543  xorg_cv_cc_flag_unused_command_line_argument=yes
9544else
9545  xorg_cv_cc_flag_unused_command_line_argument=no
9546fi
9547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9548fi
9549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9550$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9551	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9552	CFLAGS="$xorg_testset_save_CFLAGS"
9553fi
9554
9555found="no"
9556
9557	if test $found = "no" ; then
9558		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9559			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9560		fi
9561
9562		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9563			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9564		fi
9565
9566		CFLAGS="$CFLAGS -Warray-bounds"
9567
9568		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9569$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9570		cacheid=xorg_cv_cc_flag__Warray_bounds
9571		if eval \${$cacheid+:} false; then :
9572  $as_echo_n "(cached) " >&6
9573else
9574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9575/* end confdefs.h.  */
9576int i;
9577int
9578main ()
9579{
9580
9581  ;
9582  return 0;
9583}
9584_ACEOF
9585if ac_fn_c_try_link "$LINENO"; then :
9586  eval $cacheid=yes
9587else
9588  eval $cacheid=no
9589fi
9590rm -f core conftest.err conftest.$ac_objext \
9591    conftest$ac_exeext conftest.$ac_ext
9592fi
9593
9594
9595		CFLAGS="$xorg_testset_save_CFLAGS"
9596
9597		eval supported=\$$cacheid
9598		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9599$as_echo "$supported" >&6; }
9600		if test "$supported" = "yes" ; then
9601			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9602			found="yes"
9603		fi
9604	fi
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620xorg_testset_save_CFLAGS="$CFLAGS"
9621
9622if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9623	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9624	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9625$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9626if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9627  $as_echo_n "(cached) " >&6
9628else
9629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630/* end confdefs.h.  */
9631int i;
9632_ACEOF
9633if ac_fn_c_try_compile "$LINENO"; then :
9634  xorg_cv_cc_flag_unknown_warning_option=yes
9635else
9636  xorg_cv_cc_flag_unknown_warning_option=no
9637fi
9638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9639fi
9640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9641$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9642	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9643	CFLAGS="$xorg_testset_save_CFLAGS"
9644fi
9645
9646if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9647	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9648		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9649	fi
9650	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9651	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9652$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9653if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9654  $as_echo_n "(cached) " >&6
9655else
9656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9657/* end confdefs.h.  */
9658int i;
9659_ACEOF
9660if ac_fn_c_try_compile "$LINENO"; then :
9661  xorg_cv_cc_flag_unused_command_line_argument=yes
9662else
9663  xorg_cv_cc_flag_unused_command_line_argument=no
9664fi
9665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9666fi
9667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9668$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9669	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9670	CFLAGS="$xorg_testset_save_CFLAGS"
9671fi
9672
9673found="no"
9674
9675	if test $found = "no" ; then
9676		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9677			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9678		fi
9679
9680		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9681			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9682		fi
9683
9684		CFLAGS="$CFLAGS -Wwrite-strings"
9685
9686		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9687$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9688		cacheid=xorg_cv_cc_flag__Wwrite_strings
9689		if eval \${$cacheid+:} false; then :
9690  $as_echo_n "(cached) " >&6
9691else
9692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693/* end confdefs.h.  */
9694int i;
9695int
9696main ()
9697{
9698
9699  ;
9700  return 0;
9701}
9702_ACEOF
9703if ac_fn_c_try_link "$LINENO"; then :
9704  eval $cacheid=yes
9705else
9706  eval $cacheid=no
9707fi
9708rm -f core conftest.err conftest.$ac_objext \
9709    conftest$ac_exeext conftest.$ac_ext
9710fi
9711
9712
9713		CFLAGS="$xorg_testset_save_CFLAGS"
9714
9715		eval supported=\$$cacheid
9716		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9717$as_echo "$supported" >&6; }
9718		if test "$supported" = "yes" ; then
9719			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9720			found="yes"
9721		fi
9722	fi
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738xorg_testset_save_CFLAGS="$CFLAGS"
9739
9740if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9741	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9742	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9743$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9744if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9745  $as_echo_n "(cached) " >&6
9746else
9747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748/* end confdefs.h.  */
9749int i;
9750_ACEOF
9751if ac_fn_c_try_compile "$LINENO"; then :
9752  xorg_cv_cc_flag_unknown_warning_option=yes
9753else
9754  xorg_cv_cc_flag_unknown_warning_option=no
9755fi
9756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9757fi
9758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9759$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9760	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9761	CFLAGS="$xorg_testset_save_CFLAGS"
9762fi
9763
9764if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9765	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9766		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9767	fi
9768	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9769	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9770$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9771if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9772  $as_echo_n "(cached) " >&6
9773else
9774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775/* end confdefs.h.  */
9776int i;
9777_ACEOF
9778if ac_fn_c_try_compile "$LINENO"; then :
9779  xorg_cv_cc_flag_unused_command_line_argument=yes
9780else
9781  xorg_cv_cc_flag_unused_command_line_argument=no
9782fi
9783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9784fi
9785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9786$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9787	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9788	CFLAGS="$xorg_testset_save_CFLAGS"
9789fi
9790
9791found="no"
9792
9793	if test $found = "no" ; then
9794		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9795			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9796		fi
9797
9798		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9799			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9800		fi
9801
9802		CFLAGS="$CFLAGS -Waddress"
9803
9804		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9805$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9806		cacheid=xorg_cv_cc_flag__Waddress
9807		if eval \${$cacheid+:} false; then :
9808  $as_echo_n "(cached) " >&6
9809else
9810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811/* end confdefs.h.  */
9812int i;
9813int
9814main ()
9815{
9816
9817  ;
9818  return 0;
9819}
9820_ACEOF
9821if ac_fn_c_try_link "$LINENO"; then :
9822  eval $cacheid=yes
9823else
9824  eval $cacheid=no
9825fi
9826rm -f core conftest.err conftest.$ac_objext \
9827    conftest$ac_exeext conftest.$ac_ext
9828fi
9829
9830
9831		CFLAGS="$xorg_testset_save_CFLAGS"
9832
9833		eval supported=\$$cacheid
9834		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9835$as_echo "$supported" >&6; }
9836		if test "$supported" = "yes" ; then
9837			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9838			found="yes"
9839		fi
9840	fi
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856xorg_testset_save_CFLAGS="$CFLAGS"
9857
9858if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9859	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9860	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9861$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9862if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9863  $as_echo_n "(cached) " >&6
9864else
9865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9866/* end confdefs.h.  */
9867int i;
9868_ACEOF
9869if ac_fn_c_try_compile "$LINENO"; then :
9870  xorg_cv_cc_flag_unknown_warning_option=yes
9871else
9872  xorg_cv_cc_flag_unknown_warning_option=no
9873fi
9874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9875fi
9876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9877$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9878	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9879	CFLAGS="$xorg_testset_save_CFLAGS"
9880fi
9881
9882if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9883	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9884		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9885	fi
9886	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9887	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9888$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9889if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9890  $as_echo_n "(cached) " >&6
9891else
9892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9893/* end confdefs.h.  */
9894int i;
9895_ACEOF
9896if ac_fn_c_try_compile "$LINENO"; then :
9897  xorg_cv_cc_flag_unused_command_line_argument=yes
9898else
9899  xorg_cv_cc_flag_unused_command_line_argument=no
9900fi
9901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9902fi
9903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9904$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9905	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9906	CFLAGS="$xorg_testset_save_CFLAGS"
9907fi
9908
9909found="no"
9910
9911	if test $found = "no" ; then
9912		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9913			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9914		fi
9915
9916		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9917			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9918		fi
9919
9920		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9921
9922		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9923$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9924		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9925		if eval \${$cacheid+:} false; then :
9926  $as_echo_n "(cached) " >&6
9927else
9928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9929/* end confdefs.h.  */
9930int i;
9931int
9932main ()
9933{
9934
9935  ;
9936  return 0;
9937}
9938_ACEOF
9939if ac_fn_c_try_link "$LINENO"; then :
9940  eval $cacheid=yes
9941else
9942  eval $cacheid=no
9943fi
9944rm -f core conftest.err conftest.$ac_objext \
9945    conftest$ac_exeext conftest.$ac_ext
9946fi
9947
9948
9949		CFLAGS="$xorg_testset_save_CFLAGS"
9950
9951		eval supported=\$$cacheid
9952		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9953$as_echo "$supported" >&6; }
9954		if test "$supported" = "yes" ; then
9955			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
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	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9979$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9980if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9981  $as_echo_n "(cached) " >&6
9982else
9983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9984/* end confdefs.h.  */
9985int i;
9986_ACEOF
9987if ac_fn_c_try_compile "$LINENO"; then :
9988  xorg_cv_cc_flag_unknown_warning_option=yes
9989else
9990  xorg_cv_cc_flag_unknown_warning_option=no
9991fi
9992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9993fi
9994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9995$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9996	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9997	CFLAGS="$xorg_testset_save_CFLAGS"
9998fi
9999
10000if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10001	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10002		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10003	fi
10004	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10005	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10006$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10007if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10008  $as_echo_n "(cached) " >&6
10009else
10010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10011/* end confdefs.h.  */
10012int i;
10013_ACEOF
10014if ac_fn_c_try_compile "$LINENO"; then :
10015  xorg_cv_cc_flag_unused_command_line_argument=yes
10016else
10017  xorg_cv_cc_flag_unused_command_line_argument=no
10018fi
10019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10020fi
10021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10022$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10023	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10024	CFLAGS="$xorg_testset_save_CFLAGS"
10025fi
10026
10027found="no"
10028
10029	if test $found = "no" ; then
10030		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10031			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10032		fi
10033
10034		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10035			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10036		fi
10037
10038		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10039
10040		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10041$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10042		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10043		if eval \${$cacheid+:} false; then :
10044  $as_echo_n "(cached) " >&6
10045else
10046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10047/* end confdefs.h.  */
10048int i;
10049int
10050main ()
10051{
10052
10053  ;
10054  return 0;
10055}
10056_ACEOF
10057if ac_fn_c_try_link "$LINENO"; then :
10058  eval $cacheid=yes
10059else
10060  eval $cacheid=no
10061fi
10062rm -f core conftest.err conftest.$ac_objext \
10063    conftest$ac_exeext conftest.$ac_ext
10064fi
10065
10066
10067		CFLAGS="$xorg_testset_save_CFLAGS"
10068
10069		eval supported=\$$cacheid
10070		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10071$as_echo "$supported" >&6; }
10072		if test "$supported" = "yes" ; then
10073			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10074			found="yes"
10075		fi
10076	fi
10077
10078
10079fi
10080
10081
10082
10083
10084
10085
10086
10087		CWARNFLAGS="$BASE_CFLAGS"
10088		if  test "x$GCC" = xyes ; then
10089		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10090		fi
10091
10092
10093
10094
10095
10096
10097
10098
10099# Check whether --enable-strict-compilation was given.
10100if test "${enable_strict_compilation+set}" = set; then :
10101  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10102else
10103  STRICT_COMPILE=no
10104fi
10105
10106
10107
10108
10109
10110
10111STRICT_CFLAGS=""
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125xorg_testset_save_CFLAGS="$CFLAGS"
10126
10127if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10128	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10129	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10130$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10131if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10132  $as_echo_n "(cached) " >&6
10133else
10134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10135/* end confdefs.h.  */
10136int i;
10137_ACEOF
10138if ac_fn_c_try_compile "$LINENO"; then :
10139  xorg_cv_cc_flag_unknown_warning_option=yes
10140else
10141  xorg_cv_cc_flag_unknown_warning_option=no
10142fi
10143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10144fi
10145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10146$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10147	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10148	CFLAGS="$xorg_testset_save_CFLAGS"
10149fi
10150
10151if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10152	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10153		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10154	fi
10155	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10156	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10157$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10158if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10159  $as_echo_n "(cached) " >&6
10160else
10161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10162/* end confdefs.h.  */
10163int i;
10164_ACEOF
10165if ac_fn_c_try_compile "$LINENO"; then :
10166  xorg_cv_cc_flag_unused_command_line_argument=yes
10167else
10168  xorg_cv_cc_flag_unused_command_line_argument=no
10169fi
10170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10171fi
10172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10173$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10174	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10175	CFLAGS="$xorg_testset_save_CFLAGS"
10176fi
10177
10178found="no"
10179
10180	if test $found = "no" ; then
10181		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10182			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10183		fi
10184
10185		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10186			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10187		fi
10188
10189		CFLAGS="$CFLAGS -pedantic"
10190
10191		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10192$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10193		cacheid=xorg_cv_cc_flag__pedantic
10194		if eval \${$cacheid+:} false; then :
10195  $as_echo_n "(cached) " >&6
10196else
10197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10198/* end confdefs.h.  */
10199int i;
10200int
10201main ()
10202{
10203
10204  ;
10205  return 0;
10206}
10207_ACEOF
10208if ac_fn_c_try_link "$LINENO"; then :
10209  eval $cacheid=yes
10210else
10211  eval $cacheid=no
10212fi
10213rm -f core conftest.err conftest.$ac_objext \
10214    conftest$ac_exeext conftest.$ac_ext
10215fi
10216
10217
10218		CFLAGS="$xorg_testset_save_CFLAGS"
10219
10220		eval supported=\$$cacheid
10221		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10222$as_echo "$supported" >&6; }
10223		if test "$supported" = "yes" ; then
10224			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10225			found="yes"
10226		fi
10227	fi
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243xorg_testset_save_CFLAGS="$CFLAGS"
10244
10245if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10246	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10247	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10248$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10249if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10250  $as_echo_n "(cached) " >&6
10251else
10252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10253/* end confdefs.h.  */
10254int i;
10255_ACEOF
10256if ac_fn_c_try_compile "$LINENO"; then :
10257  xorg_cv_cc_flag_unknown_warning_option=yes
10258else
10259  xorg_cv_cc_flag_unknown_warning_option=no
10260fi
10261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10262fi
10263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10264$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10265	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10266	CFLAGS="$xorg_testset_save_CFLAGS"
10267fi
10268
10269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10270	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10271		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10272	fi
10273	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10274	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10275$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10276if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10277  $as_echo_n "(cached) " >&6
10278else
10279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10280/* end confdefs.h.  */
10281int i;
10282_ACEOF
10283if ac_fn_c_try_compile "$LINENO"; then :
10284  xorg_cv_cc_flag_unused_command_line_argument=yes
10285else
10286  xorg_cv_cc_flag_unused_command_line_argument=no
10287fi
10288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10289fi
10290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10291$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10292	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10293	CFLAGS="$xorg_testset_save_CFLAGS"
10294fi
10295
10296found="no"
10297
10298	if test $found = "no" ; then
10299		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10300			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10301		fi
10302
10303		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10304			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10305		fi
10306
10307		CFLAGS="$CFLAGS -Werror"
10308
10309		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10310$as_echo_n "checking if $CC supports -Werror... " >&6; }
10311		cacheid=xorg_cv_cc_flag__Werror
10312		if eval \${$cacheid+:} false; then :
10313  $as_echo_n "(cached) " >&6
10314else
10315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10316/* end confdefs.h.  */
10317int i;
10318int
10319main ()
10320{
10321
10322  ;
10323  return 0;
10324}
10325_ACEOF
10326if ac_fn_c_try_link "$LINENO"; then :
10327  eval $cacheid=yes
10328else
10329  eval $cacheid=no
10330fi
10331rm -f core conftest.err conftest.$ac_objext \
10332    conftest$ac_exeext conftest.$ac_ext
10333fi
10334
10335
10336		CFLAGS="$xorg_testset_save_CFLAGS"
10337
10338		eval supported=\$$cacheid
10339		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10340$as_echo "$supported" >&6; }
10341		if test "$supported" = "yes" ; then
10342			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10343			found="yes"
10344		fi
10345	fi
10346
10347	if test $found = "no" ; then
10348		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10349			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10350		fi
10351
10352		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10353			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10354		fi
10355
10356		CFLAGS="$CFLAGS -errwarn"
10357
10358		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10359$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10360		cacheid=xorg_cv_cc_flag__errwarn
10361		if eval \${$cacheid+:} false; then :
10362  $as_echo_n "(cached) " >&6
10363else
10364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365/* end confdefs.h.  */
10366int i;
10367int
10368main ()
10369{
10370
10371  ;
10372  return 0;
10373}
10374_ACEOF
10375if ac_fn_c_try_link "$LINENO"; then :
10376  eval $cacheid=yes
10377else
10378  eval $cacheid=no
10379fi
10380rm -f core conftest.err conftest.$ac_objext \
10381    conftest$ac_exeext conftest.$ac_ext
10382fi
10383
10384
10385		CFLAGS="$xorg_testset_save_CFLAGS"
10386
10387		eval supported=\$$cacheid
10388		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10389$as_echo "$supported" >&6; }
10390		if test "$supported" = "yes" ; then
10391			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10392			found="yes"
10393		fi
10394	fi
10395
10396
10397
10398# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10399# activate it with -Werror, so we add it here explicitly.
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413xorg_testset_save_CFLAGS="$CFLAGS"
10414
10415if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10416	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10417	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10418$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10419if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10420  $as_echo_n "(cached) " >&6
10421else
10422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10423/* end confdefs.h.  */
10424int i;
10425_ACEOF
10426if ac_fn_c_try_compile "$LINENO"; then :
10427  xorg_cv_cc_flag_unknown_warning_option=yes
10428else
10429  xorg_cv_cc_flag_unknown_warning_option=no
10430fi
10431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10432fi
10433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10434$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10435	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10436	CFLAGS="$xorg_testset_save_CFLAGS"
10437fi
10438
10439if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10440	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10441		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10442	fi
10443	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10444	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10445$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10446if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10447  $as_echo_n "(cached) " >&6
10448else
10449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10450/* end confdefs.h.  */
10451int i;
10452_ACEOF
10453if ac_fn_c_try_compile "$LINENO"; then :
10454  xorg_cv_cc_flag_unused_command_line_argument=yes
10455else
10456  xorg_cv_cc_flag_unused_command_line_argument=no
10457fi
10458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10459fi
10460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10461$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10462	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10463	CFLAGS="$xorg_testset_save_CFLAGS"
10464fi
10465
10466found="no"
10467
10468	if test $found = "no" ; then
10469		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10470			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10471		fi
10472
10473		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10474			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10475		fi
10476
10477		CFLAGS="$CFLAGS -Werror=attributes"
10478
10479		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10480$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10481		cacheid=xorg_cv_cc_flag__Werror_attributes
10482		if eval \${$cacheid+:} false; then :
10483  $as_echo_n "(cached) " >&6
10484else
10485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10486/* end confdefs.h.  */
10487int i;
10488int
10489main ()
10490{
10491
10492  ;
10493  return 0;
10494}
10495_ACEOF
10496if ac_fn_c_try_link "$LINENO"; then :
10497  eval $cacheid=yes
10498else
10499  eval $cacheid=no
10500fi
10501rm -f core conftest.err conftest.$ac_objext \
10502    conftest$ac_exeext conftest.$ac_ext
10503fi
10504
10505
10506		CFLAGS="$xorg_testset_save_CFLAGS"
10507
10508		eval supported=\$$cacheid
10509		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10510$as_echo "$supported" >&6; }
10511		if test "$supported" = "yes" ; then
10512			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10513			found="yes"
10514		fi
10515	fi
10516
10517
10518
10519if test "x$STRICT_COMPILE" = "xyes"; then
10520    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10521    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10522fi
10523
10524
10525
10526
10527
10528
10529cat >>confdefs.h <<_ACEOF
10530#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10531_ACEOF
10532
10533	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10534	if test "x$PVM" = "x"; then
10535		PVM="0"
10536	fi
10537
10538cat >>confdefs.h <<_ACEOF
10539#define PACKAGE_VERSION_MINOR $PVM
10540_ACEOF
10541
10542	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10543	if test "x$PVP" = "x"; then
10544		PVP="0"
10545	fi
10546
10547cat >>confdefs.h <<_ACEOF
10548#define PACKAGE_VERSION_PATCHLEVEL $PVP
10549_ACEOF
10550
10551
10552
10553CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10554mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10555|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10556echo 'git directory not found: installing possibly empty changelog.' >&2)"
10557
10558
10559
10560
10561macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10562INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10563mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10564|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10565echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10566
10567
10568
10569
10570
10571
10572if test x$APP_MAN_SUFFIX = x    ; then
10573    APP_MAN_SUFFIX=1
10574fi
10575if test x$APP_MAN_DIR = x    ; then
10576    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10577fi
10578
10579if test x$LIB_MAN_SUFFIX = x    ; then
10580    LIB_MAN_SUFFIX=3
10581fi
10582if test x$LIB_MAN_DIR = x    ; then
10583    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10584fi
10585
10586if test x$FILE_MAN_SUFFIX = x    ; then
10587    case $host_os in
10588	# Solaris 2.0 - 11 use SysV man page sections
10589	solaris2.?|solaris2.1[01])	FILE_MAN_SUFFIX=4  ;;
10590	*)				FILE_MAN_SUFFIX=5  ;;
10591    esac
10592fi
10593if test x$FILE_MAN_DIR = x    ; then
10594    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10595fi
10596
10597if test x$MISC_MAN_SUFFIX = x    ; then
10598    case $host_os in
10599	# Solaris 2.0 - 11 use SysV man page sections
10600	solaris2.?|solaris2.1[01])	MISC_MAN_SUFFIX=5  ;;
10601	*)				MISC_MAN_SUFFIX=7  ;;
10602    esac
10603fi
10604if test x$MISC_MAN_DIR = x    ; then
10605    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10606fi
10607
10608if test x$DRIVER_MAN_SUFFIX = x    ; then
10609    case $host_os in
10610	# Solaris 2.0 - 11 use SysV man page sections
10611	solaris2.?|solaris2.1[01])	DRIVER_MAN_SUFFIX=7  ;;
10612	*)				DRIVER_MAN_SUFFIX=4  ;;
10613    esac
10614fi
10615if test x$DRIVER_MAN_DIR = x    ; then
10616    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10617fi
10618
10619if test x$ADMIN_MAN_SUFFIX = x    ; then
10620    case $host_os in
10621	# Solaris 2.0 - 11 use SysV man page sections
10622	solaris2.?|solaris2.1[01])	ADMIN_MAN_SUFFIX=1m ;;
10623	*)				ADMIN_MAN_SUFFIX=8  ;;
10624    esac
10625fi
10626if test x$ADMIN_MAN_DIR = x    ; then
10627    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10628fi
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644XORG_MAN_PAGE="X Version 11"
10645
10646MAN_SUBSTS="\
10647	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10648	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10649	-e 's|__xservername__|Xorg|g' \
10650	-e 's|__xconfigfile__|xorg.conf|g' \
10651	-e 's|__projectroot__|\$(prefix)|g' \
10652	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10653	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10654	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10655	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10656	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10657	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10658	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10659
10660
10661
10662# Check whether --enable-silent-rules was given.
10663if test "${enable_silent_rules+set}" = set; then :
10664  enableval=$enable_silent_rules;
10665fi
10666
10667case $enable_silent_rules in # (((
10668  yes) AM_DEFAULT_VERBOSITY=0;;
10669   no) AM_DEFAULT_VERBOSITY=1;;
10670    *) AM_DEFAULT_VERBOSITY=0;;
10671esac
10672am_make=${MAKE-make}
10673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10674$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10675if ${am_cv_make_support_nested_variables+:} false; then :
10676  $as_echo_n "(cached) " >&6
10677else
10678  if $as_echo 'TRUE=$(BAR$(V))
10679BAR0=false
10680BAR1=true
10681V=1
10682am__doit:
10683	@$(TRUE)
10684.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10685  am_cv_make_support_nested_variables=yes
10686else
10687  am_cv_make_support_nested_variables=no
10688fi
10689fi
10690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10691$as_echo "$am_cv_make_support_nested_variables" >&6; }
10692if test $am_cv_make_support_nested_variables = yes; then
10693    AM_V='$(V)'
10694  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10695else
10696  AM_V=$AM_DEFAULT_VERBOSITY
10697  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10698fi
10699AM_BACKSLASH='\'
10700
10701
10702
10703
10704
10705for ac_func in mkstemp
10706do :
10707  ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
10708if test "x$ac_cv_func_mkstemp" = xyes; then :
10709  cat >>confdefs.h <<_ACEOF
10710#define HAVE_MKSTEMP 1
10711_ACEOF
10712
10713fi
10714done
10715
10716
10717# Math libraries & functions
10718# - some compilers use builtin inlines for floor when optimizing
10719# - lrint() is a C99 addition not found on some older systems
10720# - must do the libm check first so that the lrint check will have it in $LIBS
10721save_LIBS="$LIBS"
10722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
10723$as_echo_n "checking for library containing floor... " >&6; }
10724if ${ac_cv_search_floor+:} false; then :
10725  $as_echo_n "(cached) " >&6
10726else
10727  ac_func_search_save_LIBS=$LIBS
10728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10729/* end confdefs.h.  */
10730
10731/* Override any GCC internal prototype to avoid an error.
10732   Use char because int might match the return type of a GCC
10733   builtin and then its argument prototype would still apply.  */
10734#ifdef __cplusplus
10735extern "C"
10736#endif
10737char floor ();
10738int
10739main ()
10740{
10741return floor ();
10742  ;
10743  return 0;
10744}
10745_ACEOF
10746for ac_lib in '' m; do
10747  if test -z "$ac_lib"; then
10748    ac_res="none required"
10749  else
10750    ac_res=-l$ac_lib
10751    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10752  fi
10753  if ac_fn_c_try_link "$LINENO"; then :
10754  ac_cv_search_floor=$ac_res
10755fi
10756rm -f core conftest.err conftest.$ac_objext \
10757    conftest$ac_exeext
10758  if ${ac_cv_search_floor+:} false; then :
10759  break
10760fi
10761done
10762if ${ac_cv_search_floor+:} false; then :
10763
10764else
10765  ac_cv_search_floor=no
10766fi
10767rm conftest.$ac_ext
10768LIBS=$ac_func_search_save_LIBS
10769fi
10770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
10771$as_echo "$ac_cv_search_floor" >&6; }
10772ac_res=$ac_cv_search_floor
10773if test "$ac_res" != no; then :
10774  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10775
10776fi
10777
10778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lrint" >&5
10779$as_echo_n "checking for library containing lrint... " >&6; }
10780if ${ac_cv_search_lrint+:} false; then :
10781  $as_echo_n "(cached) " >&6
10782else
10783  ac_func_search_save_LIBS=$LIBS
10784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10785/* end confdefs.h.  */
10786
10787/* Override any GCC internal prototype to avoid an error.
10788   Use char because int might match the return type of a GCC
10789   builtin and then its argument prototype would still apply.  */
10790#ifdef __cplusplus
10791extern "C"
10792#endif
10793char lrint ();
10794int
10795main ()
10796{
10797return lrint ();
10798  ;
10799  return 0;
10800}
10801_ACEOF
10802for ac_lib in '' m; do
10803  if test -z "$ac_lib"; then
10804    ac_res="none required"
10805  else
10806    ac_res=-l$ac_lib
10807    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10808  fi
10809  if ac_fn_c_try_link "$LINENO"; then :
10810  ac_cv_search_lrint=$ac_res
10811fi
10812rm -f core conftest.err conftest.$ac_objext \
10813    conftest$ac_exeext
10814  if ${ac_cv_search_lrint+:} false; then :
10815  break
10816fi
10817done
10818if ${ac_cv_search_lrint+:} false; then :
10819
10820else
10821  ac_cv_search_lrint=no
10822fi
10823rm conftest.$ac_ext
10824LIBS=$ac_func_search_save_LIBS
10825fi
10826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lrint" >&5
10827$as_echo "$ac_cv_search_lrint" >&6; }
10828ac_res=$ac_cv_search_lrint
10829if test "$ac_res" != no; then :
10830  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10831
10832fi
10833
10834for ac_func in lrint
10835do :
10836  ac_fn_c_check_func "$LINENO" "lrint" "ac_cv_func_lrint"
10837if test "x$ac_cv_func_lrint" = xyes; then :
10838  cat >>confdefs.h <<_ACEOF
10839#define HAVE_LRINT 1
10840_ACEOF
10841
10842fi
10843done
10844
10845MATH_LIBS="$LIBS"
10846LIBS="$save_LIBS"
10847
10848
10849# Obtain compiler/linker options from dependencies
10850
10851pkg_failed=no
10852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BMTOA" >&5
10853$as_echo_n "checking for BMTOA... " >&6; }
10854
10855if test -n "$BMTOA_CFLAGS"; then
10856    pkg_cv_BMTOA_CFLAGS="$BMTOA_CFLAGS"
10857 elif test -n "$PKG_CONFIG"; then
10858    if test -n "$PKG_CONFIG" && \
10859    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmu xproto >= 7.0.17\""; } >&5
10860  ($PKG_CONFIG --exists --print-errors "x11 xmu xproto >= 7.0.17") 2>&5
10861  ac_status=$?
10862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10863  test $ac_status = 0; }; then
10864  pkg_cv_BMTOA_CFLAGS=`$PKG_CONFIG --cflags "x11 xmu xproto >= 7.0.17" 2>/dev/null`
10865		      test "x$?" != "x0" && pkg_failed=yes
10866else
10867  pkg_failed=yes
10868fi
10869 else
10870    pkg_failed=untried
10871fi
10872if test -n "$BMTOA_LIBS"; then
10873    pkg_cv_BMTOA_LIBS="$BMTOA_LIBS"
10874 elif test -n "$PKG_CONFIG"; then
10875    if test -n "$PKG_CONFIG" && \
10876    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmu xproto >= 7.0.17\""; } >&5
10877  ($PKG_CONFIG --exists --print-errors "x11 xmu xproto >= 7.0.17") 2>&5
10878  ac_status=$?
10879  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10880  test $ac_status = 0; }; then
10881  pkg_cv_BMTOA_LIBS=`$PKG_CONFIG --libs "x11 xmu xproto >= 7.0.17" 2>/dev/null`
10882		      test "x$?" != "x0" && pkg_failed=yes
10883else
10884  pkg_failed=yes
10885fi
10886 else
10887    pkg_failed=untried
10888fi
10889
10890
10891
10892if test $pkg_failed = yes; then
10893   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10894$as_echo "no" >&6; }
10895
10896if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10897        _pkg_short_errors_supported=yes
10898else
10899        _pkg_short_errors_supported=no
10900fi
10901        if test $_pkg_short_errors_supported = yes; then
10902	        BMTOA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xmu xproto >= 7.0.17" 2>&1`
10903        else
10904	        BMTOA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xmu xproto >= 7.0.17" 2>&1`
10905        fi
10906	# Put the nasty error message in config.log where it belongs
10907	echo "$BMTOA_PKG_ERRORS" >&5
10908
10909	as_fn_error $? "Package requirements (x11 xmu xproto >= 7.0.17) were not met:
10910
10911$BMTOA_PKG_ERRORS
10912
10913Consider adjusting the PKG_CONFIG_PATH environment variable if you
10914installed software in a non-standard prefix.
10915
10916Alternatively, you may set the environment variables BMTOA_CFLAGS
10917and BMTOA_LIBS to avoid the need to call pkg-config.
10918See the pkg-config man page for more details." "$LINENO" 5
10919elif test $pkg_failed = untried; then
10920     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10921$as_echo "no" >&6; }
10922	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10923$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10924as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10925is in your PATH or set the PKG_CONFIG environment variable to the full
10926path to pkg-config.
10927
10928Alternatively, you may set the environment variables BMTOA_CFLAGS
10929and BMTOA_LIBS to avoid the need to call pkg-config.
10930See the pkg-config man page for more details.
10931
10932To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10933See \`config.log' for more details" "$LINENO" 5; }
10934else
10935	BMTOA_CFLAGS=$pkg_cv_BMTOA_CFLAGS
10936	BMTOA_LIBS=$pkg_cv_BMTOA_LIBS
10937        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10938$as_echo "yes" >&6; }
10939
10940fi
10941
10942pkg_failed=no
10943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATOBM" >&5
10944$as_echo_n "checking for ATOBM... " >&6; }
10945
10946if test -n "$ATOBM_CFLAGS"; then
10947    pkg_cv_ATOBM_CFLAGS="$ATOBM_CFLAGS"
10948 elif test -n "$PKG_CONFIG"; then
10949    if test -n "$PKG_CONFIG" && \
10950    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5
10951  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5
10952  ac_status=$?
10953  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10954  test $ac_status = 0; }; then
10955  pkg_cv_ATOBM_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.25" 2>/dev/null`
10956		      test "x$?" != "x0" && pkg_failed=yes
10957else
10958  pkg_failed=yes
10959fi
10960 else
10961    pkg_failed=untried
10962fi
10963if test -n "$ATOBM_LIBS"; then
10964    pkg_cv_ATOBM_LIBS="$ATOBM_LIBS"
10965 elif test -n "$PKG_CONFIG"; then
10966    if test -n "$PKG_CONFIG" && \
10967    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5
10968  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5
10969  ac_status=$?
10970  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10971  test $ac_status = 0; }; then
10972  pkg_cv_ATOBM_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.25" 2>/dev/null`
10973		      test "x$?" != "x0" && pkg_failed=yes
10974else
10975  pkg_failed=yes
10976fi
10977 else
10978    pkg_failed=untried
10979fi
10980
10981
10982
10983if test $pkg_failed = yes; then
10984   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10985$as_echo "no" >&6; }
10986
10987if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10988        _pkg_short_errors_supported=yes
10989else
10990        _pkg_short_errors_supported=no
10991fi
10992        if test $_pkg_short_errors_supported = yes; then
10993	        ATOBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.25" 2>&1`
10994        else
10995	        ATOBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.25" 2>&1`
10996        fi
10997	# Put the nasty error message in config.log where it belongs
10998	echo "$ATOBM_PKG_ERRORS" >&5
10999
11000	as_fn_error $? "Package requirements (xproto >= 7.0.25) were not met:
11001
11002$ATOBM_PKG_ERRORS
11003
11004Consider adjusting the PKG_CONFIG_PATH environment variable if you
11005installed software in a non-standard prefix.
11006
11007Alternatively, you may set the environment variables ATOBM_CFLAGS
11008and ATOBM_LIBS to avoid the need to call pkg-config.
11009See the pkg-config man page for more details." "$LINENO" 5
11010elif test $pkg_failed = untried; then
11011     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11012$as_echo "no" >&6; }
11013	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11014$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11015as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11016is in your PATH or set the PKG_CONFIG environment variable to the full
11017path to pkg-config.
11018
11019Alternatively, you may set the environment variables ATOBM_CFLAGS
11020and ATOBM_LIBS to avoid the need to call pkg-config.
11021See the pkg-config man page for more details.
11022
11023To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11024See \`config.log' for more details" "$LINENO" 5; }
11025else
11026	ATOBM_CFLAGS=$pkg_cv_ATOBM_CFLAGS
11027	ATOBM_LIBS=$pkg_cv_ATOBM_LIBS
11028        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11029$as_echo "yes" >&6; }
11030
11031fi
11032
11033pkg_failed=no
11034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BITMAP" >&5
11035$as_echo_n "checking for BITMAP... " >&6; }
11036
11037if test -n "$BITMAP_CFLAGS"; then
11038    pkg_cv_BITMAP_CFLAGS="$BITMAP_CFLAGS"
11039 elif test -n "$PKG_CONFIG"; then
11040    if test -n "$PKG_CONFIG" && \
11041    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xbitmaps xaw7 xmu\""; } >&5
11042  ($PKG_CONFIG --exists --print-errors "xbitmaps xaw7 xmu") 2>&5
11043  ac_status=$?
11044  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11045  test $ac_status = 0; }; then
11046  pkg_cv_BITMAP_CFLAGS=`$PKG_CONFIG --cflags "xbitmaps xaw7 xmu" 2>/dev/null`
11047		      test "x$?" != "x0" && pkg_failed=yes
11048else
11049  pkg_failed=yes
11050fi
11051 else
11052    pkg_failed=untried
11053fi
11054if test -n "$BITMAP_LIBS"; then
11055    pkg_cv_BITMAP_LIBS="$BITMAP_LIBS"
11056 elif test -n "$PKG_CONFIG"; then
11057    if test -n "$PKG_CONFIG" && \
11058    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xbitmaps xaw7 xmu\""; } >&5
11059  ($PKG_CONFIG --exists --print-errors "xbitmaps xaw7 xmu") 2>&5
11060  ac_status=$?
11061  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11062  test $ac_status = 0; }; then
11063  pkg_cv_BITMAP_LIBS=`$PKG_CONFIG --libs "xbitmaps xaw7 xmu" 2>/dev/null`
11064		      test "x$?" != "x0" && pkg_failed=yes
11065else
11066  pkg_failed=yes
11067fi
11068 else
11069    pkg_failed=untried
11070fi
11071
11072
11073
11074if test $pkg_failed = yes; then
11075   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11076$as_echo "no" >&6; }
11077
11078if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11079        _pkg_short_errors_supported=yes
11080else
11081        _pkg_short_errors_supported=no
11082fi
11083        if test $_pkg_short_errors_supported = yes; then
11084	        BITMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xbitmaps xaw7 xmu" 2>&1`
11085        else
11086	        BITMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xbitmaps xaw7 xmu" 2>&1`
11087        fi
11088	# Put the nasty error message in config.log where it belongs
11089	echo "$BITMAP_PKG_ERRORS" >&5
11090
11091	as_fn_error $? "Package requirements (xbitmaps xaw7 xmu) were not met:
11092
11093$BITMAP_PKG_ERRORS
11094
11095Consider adjusting the PKG_CONFIG_PATH environment variable if you
11096installed software in a non-standard prefix.
11097
11098Alternatively, you may set the environment variables BITMAP_CFLAGS
11099and BITMAP_LIBS to avoid the need to call pkg-config.
11100See the pkg-config man page for more details." "$LINENO" 5
11101elif test $pkg_failed = untried; then
11102     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11103$as_echo "no" >&6; }
11104	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11105$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11106as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11107is in your PATH or set the PKG_CONFIG environment variable to the full
11108path to pkg-config.
11109
11110Alternatively, you may set the environment variables BITMAP_CFLAGS
11111and BITMAP_LIBS to avoid the need to call pkg-config.
11112See the pkg-config man page for more details.
11113
11114To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11115See \`config.log' for more details" "$LINENO" 5; }
11116else
11117	BITMAP_CFLAGS=$pkg_cv_BITMAP_CFLAGS
11118	BITMAP_LIBS=$pkg_cv_BITMAP_LIBS
11119        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11120$as_echo "yes" >&6; }
11121
11122fi
11123
11124
11125pkg_failed=no
11126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
11127$as_echo_n "checking for APPDEFS... " >&6; }
11128
11129if test -n "$APPDEFS_CFLAGS"; then
11130    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
11131 elif test -n "$PKG_CONFIG"; then
11132    if test -n "$PKG_CONFIG" && \
11133    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11134  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11135  ac_status=$?
11136  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11137  test $ac_status = 0; }; then
11138  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
11139		      test "x$?" != "x0" && pkg_failed=yes
11140else
11141  pkg_failed=yes
11142fi
11143 else
11144    pkg_failed=untried
11145fi
11146if test -n "$APPDEFS_LIBS"; then
11147    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
11148 elif test -n "$PKG_CONFIG"; then
11149    if test -n "$PKG_CONFIG" && \
11150    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11151  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11152  ac_status=$?
11153  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11154  test $ac_status = 0; }; then
11155  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
11156		      test "x$?" != "x0" && pkg_failed=yes
11157else
11158  pkg_failed=yes
11159fi
11160 else
11161    pkg_failed=untried
11162fi
11163
11164
11165
11166if test $pkg_failed = yes; then
11167   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11168$as_echo "no" >&6; }
11169
11170if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11171        _pkg_short_errors_supported=yes
11172else
11173        _pkg_short_errors_supported=no
11174fi
11175        if test $_pkg_short_errors_supported = yes; then
11176	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
11177        else
11178	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
11179        fi
11180	# Put the nasty error message in config.log where it belongs
11181	echo "$APPDEFS_PKG_ERRORS" >&5
11182
11183	as_fn_error $? "Package requirements (xt) were not met:
11184
11185$APPDEFS_PKG_ERRORS
11186
11187Consider adjusting the PKG_CONFIG_PATH environment variable if you
11188installed software in a non-standard prefix.
11189
11190Alternatively, you may set the environment variables APPDEFS_CFLAGS
11191and APPDEFS_LIBS to avoid the need to call pkg-config.
11192See the pkg-config man page for more details." "$LINENO" 5
11193elif test $pkg_failed = untried; then
11194     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11195$as_echo "no" >&6; }
11196	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11197$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11198as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11199is in your PATH or set the PKG_CONFIG environment variable to the full
11200path to pkg-config.
11201
11202Alternatively, you may set the environment variables APPDEFS_CFLAGS
11203and APPDEFS_LIBS to avoid the need to call pkg-config.
11204See the pkg-config man page for more details.
11205
11206To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11207See \`config.log' for more details" "$LINENO" 5; }
11208else
11209	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
11210	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
11211        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11212$as_echo "yes" >&6; }
11213
11214fi
11215xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11216
11217# Check whether --with-appdefaultdir was given.
11218if test "${with_appdefaultdir+set}" = set; then :
11219  withval=$with_appdefaultdir; appdefaultdir="$withval"
11220else
11221  appdefaultdir="${xt_appdefaultdir}"
11222fi
11223
11224
11225
11226ac_config_files="$ac_config_files Makefile man/Makefile"
11227
11228ac_config_files="$ac_config_files test/round-trip-test"
11229
11230cat >confcache <<\_ACEOF
11231# This file is a shell script that caches the results of configure
11232# tests run on this system so they can be shared between configure
11233# scripts and configure runs, see configure's option --config-cache.
11234# It is not useful on other systems.  If it contains results you don't
11235# want to keep, you may remove or edit it.
11236#
11237# config.status only pays attention to the cache file if you give it
11238# the --recheck option to rerun configure.
11239#
11240# `ac_cv_env_foo' variables (set or unset) will be overridden when
11241# loading this file, other *unset* `ac_cv_foo' will be assigned the
11242# following values.
11243
11244_ACEOF
11245
11246# The following way of writing the cache mishandles newlines in values,
11247# but we know of no workaround that is simple, portable, and efficient.
11248# So, we kill variables containing newlines.
11249# Ultrix sh set writes to stderr and can't be redirected directly,
11250# and sets the high bit in the cache file unless we assign to the vars.
11251(
11252  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11253    eval ac_val=\$$ac_var
11254    case $ac_val in #(
11255    *${as_nl}*)
11256      case $ac_var in #(
11257      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11258$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11259      esac
11260      case $ac_var in #(
11261      _ | IFS | as_nl) ;; #(
11262      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11263      *) { eval $ac_var=; unset $ac_var;} ;;
11264      esac ;;
11265    esac
11266  done
11267
11268  (set) 2>&1 |
11269    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11270    *${as_nl}ac_space=\ *)
11271      # `set' does not quote correctly, so add quotes: double-quote
11272      # substitution turns \\\\ into \\, and sed turns \\ into \.
11273      sed -n \
11274	"s/'/'\\\\''/g;
11275	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11276      ;; #(
11277    *)
11278      # `set' quotes correctly as required by POSIX, so do not add quotes.
11279      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11280      ;;
11281    esac |
11282    sort
11283) |
11284  sed '
11285     /^ac_cv_env_/b end
11286     t clear
11287     :clear
11288     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11289     t end
11290     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11291     :end' >>confcache
11292if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11293  if test -w "$cache_file"; then
11294    if test "x$cache_file" != "x/dev/null"; then
11295      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11296$as_echo "$as_me: updating cache $cache_file" >&6;}
11297      if test ! -f "$cache_file" || test -h "$cache_file"; then
11298	cat confcache >"$cache_file"
11299      else
11300        case $cache_file in #(
11301        */* | ?:*)
11302	  mv -f confcache "$cache_file"$$ &&
11303	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11304        *)
11305	  mv -f confcache "$cache_file" ;;
11306	esac
11307      fi
11308    fi
11309  else
11310    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11311$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11312  fi
11313fi
11314rm -f confcache
11315
11316test "x$prefix" = xNONE && prefix=$ac_default_prefix
11317# Let make expand exec_prefix.
11318test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11319
11320DEFS=-DHAVE_CONFIG_H
11321
11322ac_libobjs=
11323ac_ltlibobjs=
11324U=
11325for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11326  # 1. Remove the extension, and $U if already installed.
11327  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11328  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11329  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11330  #    will be set to the directory where LIBOBJS objects are built.
11331  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11332  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11333done
11334LIBOBJS=$ac_libobjs
11335
11336LTLIBOBJS=$ac_ltlibobjs
11337
11338
11339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11340$as_echo_n "checking that generated files are newer than configure... " >&6; }
11341   if test -n "$am_sleep_pid"; then
11342     # Hide warnings about reused PIDs.
11343     wait $am_sleep_pid 2>/dev/null
11344   fi
11345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11346$as_echo "done" >&6; }
11347 if test -n "$EXEEXT"; then
11348  am__EXEEXT_TRUE=
11349  am__EXEEXT_FALSE='#'
11350else
11351  am__EXEEXT_TRUE='#'
11352  am__EXEEXT_FALSE=
11353fi
11354
11355if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11356  as_fn_error $? "conditional \"AMDEP\" was never defined.
11357Usually this means the macro was only invoked conditionally." "$LINENO" 5
11358fi
11359if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11360  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11361Usually this means the macro was only invoked conditionally." "$LINENO" 5
11362fi
11363
11364: "${CONFIG_STATUS=./config.status}"
11365ac_write_fail=0
11366ac_clean_files_save=$ac_clean_files
11367ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11368{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11369$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11370as_write_fail=0
11371cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11372#! $SHELL
11373# Generated by $as_me.
11374# Run this file to recreate the current configuration.
11375# Compiler output produced by configure, useful for debugging
11376# configure, is in config.log if it exists.
11377
11378debug=false
11379ac_cs_recheck=false
11380ac_cs_silent=false
11381
11382SHELL=\${CONFIG_SHELL-$SHELL}
11383export SHELL
11384_ASEOF
11385cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11386## -------------------- ##
11387## M4sh Initialization. ##
11388## -------------------- ##
11389
11390# Be more Bourne compatible
11391DUALCASE=1; export DUALCASE # for MKS sh
11392if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11393  emulate sh
11394  NULLCMD=:
11395  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11396  # is contrary to our usage.  Disable this feature.
11397  alias -g '${1+"$@"}'='"$@"'
11398  setopt NO_GLOB_SUBST
11399else
11400  case `(set -o) 2>/dev/null` in #(
11401  *posix*) :
11402    set -o posix ;; #(
11403  *) :
11404     ;;
11405esac
11406fi
11407
11408
11409as_nl='
11410'
11411export as_nl
11412# Printing a long string crashes Solaris 7 /usr/bin/printf.
11413as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11414as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11415as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11416# Prefer a ksh shell builtin over an external printf program on Solaris,
11417# but without wasting forks for bash or zsh.
11418if test -z "$BASH_VERSION$ZSH_VERSION" \
11419    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11420  as_echo='print -r --'
11421  as_echo_n='print -rn --'
11422elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11423  as_echo='printf %s\n'
11424  as_echo_n='printf %s'
11425else
11426  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11427    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11428    as_echo_n='/usr/ucb/echo -n'
11429  else
11430    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11431    as_echo_n_body='eval
11432      arg=$1;
11433      case $arg in #(
11434      *"$as_nl"*)
11435	expr "X$arg" : "X\\(.*\\)$as_nl";
11436	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11437      esac;
11438      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11439    '
11440    export as_echo_n_body
11441    as_echo_n='sh -c $as_echo_n_body as_echo'
11442  fi
11443  export as_echo_body
11444  as_echo='sh -c $as_echo_body as_echo'
11445fi
11446
11447# The user is always right.
11448if test "${PATH_SEPARATOR+set}" != set; then
11449  PATH_SEPARATOR=:
11450  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11451    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11452      PATH_SEPARATOR=';'
11453  }
11454fi
11455
11456
11457# IFS
11458# We need space, tab and new line, in precisely that order.  Quoting is
11459# there to prevent editors from complaining about space-tab.
11460# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11461# splitting by setting IFS to empty value.)
11462IFS=" ""	$as_nl"
11463
11464# Find who we are.  Look in the path if we contain no directory separator.
11465as_myself=
11466case $0 in #((
11467  *[\\/]* ) as_myself=$0 ;;
11468  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11469for as_dir in $PATH
11470do
11471  IFS=$as_save_IFS
11472  test -z "$as_dir" && as_dir=.
11473    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11474  done
11475IFS=$as_save_IFS
11476
11477     ;;
11478esac
11479# We did not find ourselves, most probably we were run as `sh COMMAND'
11480# in which case we are not to be found in the path.
11481if test "x$as_myself" = x; then
11482  as_myself=$0
11483fi
11484if test ! -f "$as_myself"; then
11485  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11486  exit 1
11487fi
11488
11489# Unset variables that we do not need and which cause bugs (e.g. in
11490# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11491# suppresses any "Segmentation fault" message there.  '((' could
11492# trigger a bug in pdksh 5.2.14.
11493for as_var in BASH_ENV ENV MAIL MAILPATH
11494do eval test x\${$as_var+set} = xset \
11495  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11496done
11497PS1='$ '
11498PS2='> '
11499PS4='+ '
11500
11501# NLS nuisances.
11502LC_ALL=C
11503export LC_ALL
11504LANGUAGE=C
11505export LANGUAGE
11506
11507# CDPATH.
11508(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11509
11510
11511# as_fn_error STATUS ERROR [LINENO LOG_FD]
11512# ----------------------------------------
11513# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11514# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11515# script with STATUS, using 1 if that was 0.
11516as_fn_error ()
11517{
11518  as_status=$1; test $as_status -eq 0 && as_status=1
11519  if test "$4"; then
11520    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11521    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11522  fi
11523  $as_echo "$as_me: error: $2" >&2
11524  as_fn_exit $as_status
11525} # as_fn_error
11526
11527
11528# as_fn_set_status STATUS
11529# -----------------------
11530# Set $? to STATUS, without forking.
11531as_fn_set_status ()
11532{
11533  return $1
11534} # as_fn_set_status
11535
11536# as_fn_exit STATUS
11537# -----------------
11538# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11539as_fn_exit ()
11540{
11541  set +e
11542  as_fn_set_status $1
11543  exit $1
11544} # as_fn_exit
11545
11546# as_fn_unset VAR
11547# ---------------
11548# Portably unset VAR.
11549as_fn_unset ()
11550{
11551  { eval $1=; unset $1;}
11552}
11553as_unset=as_fn_unset
11554# as_fn_append VAR VALUE
11555# ----------------------
11556# Append the text in VALUE to the end of the definition contained in VAR. Take
11557# advantage of any shell optimizations that allow amortized linear growth over
11558# repeated appends, instead of the typical quadratic growth present in naive
11559# implementations.
11560if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11561  eval 'as_fn_append ()
11562  {
11563    eval $1+=\$2
11564  }'
11565else
11566  as_fn_append ()
11567  {
11568    eval $1=\$$1\$2
11569  }
11570fi # as_fn_append
11571
11572# as_fn_arith ARG...
11573# ------------------
11574# Perform arithmetic evaluation on the ARGs, and store the result in the
11575# global $as_val. Take advantage of shells that can avoid forks. The arguments
11576# must be portable across $(()) and expr.
11577if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11578  eval 'as_fn_arith ()
11579  {
11580    as_val=$(( $* ))
11581  }'
11582else
11583  as_fn_arith ()
11584  {
11585    as_val=`expr "$@" || test $? -eq 1`
11586  }
11587fi # as_fn_arith
11588
11589
11590if expr a : '\(a\)' >/dev/null 2>&1 &&
11591   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11592  as_expr=expr
11593else
11594  as_expr=false
11595fi
11596
11597if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11598  as_basename=basename
11599else
11600  as_basename=false
11601fi
11602
11603if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11604  as_dirname=dirname
11605else
11606  as_dirname=false
11607fi
11608
11609as_me=`$as_basename -- "$0" ||
11610$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11611	 X"$0" : 'X\(//\)$' \| \
11612	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11613$as_echo X/"$0" |
11614    sed '/^.*\/\([^/][^/]*\)\/*$/{
11615	    s//\1/
11616	    q
11617	  }
11618	  /^X\/\(\/\/\)$/{
11619	    s//\1/
11620	    q
11621	  }
11622	  /^X\/\(\/\).*/{
11623	    s//\1/
11624	    q
11625	  }
11626	  s/.*/./; q'`
11627
11628# Avoid depending upon Character Ranges.
11629as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11630as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11631as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11632as_cr_digits='0123456789'
11633as_cr_alnum=$as_cr_Letters$as_cr_digits
11634
11635ECHO_C= ECHO_N= ECHO_T=
11636case `echo -n x` in #(((((
11637-n*)
11638  case `echo 'xy\c'` in
11639  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11640  xy)  ECHO_C='\c';;
11641  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11642       ECHO_T='	';;
11643  esac;;
11644*)
11645  ECHO_N='-n';;
11646esac
11647
11648rm -f conf$$ conf$$.exe conf$$.file
11649if test -d conf$$.dir; then
11650  rm -f conf$$.dir/conf$$.file
11651else
11652  rm -f conf$$.dir
11653  mkdir conf$$.dir 2>/dev/null
11654fi
11655if (echo >conf$$.file) 2>/dev/null; then
11656  if ln -s conf$$.file conf$$ 2>/dev/null; then
11657    as_ln_s='ln -s'
11658    # ... but there are two gotchas:
11659    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11660    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11661    # In both cases, we have to default to `cp -pR'.
11662    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11663      as_ln_s='cp -pR'
11664  elif ln conf$$.file conf$$ 2>/dev/null; then
11665    as_ln_s=ln
11666  else
11667    as_ln_s='cp -pR'
11668  fi
11669else
11670  as_ln_s='cp -pR'
11671fi
11672rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11673rmdir conf$$.dir 2>/dev/null
11674
11675
11676# as_fn_mkdir_p
11677# -------------
11678# Create "$as_dir" as a directory, including parents if necessary.
11679as_fn_mkdir_p ()
11680{
11681
11682  case $as_dir in #(
11683  -*) as_dir=./$as_dir;;
11684  esac
11685  test -d "$as_dir" || eval $as_mkdir_p || {
11686    as_dirs=
11687    while :; do
11688      case $as_dir in #(
11689      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11690      *) as_qdir=$as_dir;;
11691      esac
11692      as_dirs="'$as_qdir' $as_dirs"
11693      as_dir=`$as_dirname -- "$as_dir" ||
11694$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11695	 X"$as_dir" : 'X\(//\)[^/]' \| \
11696	 X"$as_dir" : 'X\(//\)$' \| \
11697	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11698$as_echo X"$as_dir" |
11699    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11700	    s//\1/
11701	    q
11702	  }
11703	  /^X\(\/\/\)[^/].*/{
11704	    s//\1/
11705	    q
11706	  }
11707	  /^X\(\/\/\)$/{
11708	    s//\1/
11709	    q
11710	  }
11711	  /^X\(\/\).*/{
11712	    s//\1/
11713	    q
11714	  }
11715	  s/.*/./; q'`
11716      test -d "$as_dir" && break
11717    done
11718    test -z "$as_dirs" || eval "mkdir $as_dirs"
11719  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11720
11721
11722} # as_fn_mkdir_p
11723if mkdir -p . 2>/dev/null; then
11724  as_mkdir_p='mkdir -p "$as_dir"'
11725else
11726  test -d ./-p && rmdir ./-p
11727  as_mkdir_p=false
11728fi
11729
11730
11731# as_fn_executable_p FILE
11732# -----------------------
11733# Test if FILE is an executable regular file.
11734as_fn_executable_p ()
11735{
11736  test -f "$1" && test -x "$1"
11737} # as_fn_executable_p
11738as_test_x='test -x'
11739as_executable_p=as_fn_executable_p
11740
11741# Sed expression to map a string onto a valid CPP name.
11742as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11743
11744# Sed expression to map a string onto a valid variable name.
11745as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11746
11747
11748exec 6>&1
11749## ----------------------------------- ##
11750## Main body of $CONFIG_STATUS script. ##
11751## ----------------------------------- ##
11752_ASEOF
11753test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11754
11755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11756# Save the log message, to keep $0 and so on meaningful, and to
11757# report actual input values of CONFIG_FILES etc. instead of their
11758# values after options handling.
11759ac_log="
11760This file was extended by bitmap $as_me 1.1.0, which was
11761generated by GNU Autoconf 2.69.  Invocation command line was
11762
11763  CONFIG_FILES    = $CONFIG_FILES
11764  CONFIG_HEADERS  = $CONFIG_HEADERS
11765  CONFIG_LINKS    = $CONFIG_LINKS
11766  CONFIG_COMMANDS = $CONFIG_COMMANDS
11767  $ $0 $@
11768
11769on `(hostname || uname -n) 2>/dev/null | sed 1q`
11770"
11771
11772_ACEOF
11773
11774case $ac_config_files in *"
11775"*) set x $ac_config_files; shift; ac_config_files=$*;;
11776esac
11777
11778case $ac_config_headers in *"
11779"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11780esac
11781
11782
11783cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11784# Files that config.status was made for.
11785config_files="$ac_config_files"
11786config_headers="$ac_config_headers"
11787config_commands="$ac_config_commands"
11788
11789_ACEOF
11790
11791cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11792ac_cs_usage="\
11793\`$as_me' instantiates files and other configuration actions
11794from templates according to the current configuration.  Unless the files
11795and actions are specified as TAGs, all are instantiated by default.
11796
11797Usage: $0 [OPTION]... [TAG]...
11798
11799  -h, --help       print this help, then exit
11800  -V, --version    print version number and configuration settings, then exit
11801      --config     print configuration, then exit
11802  -q, --quiet, --silent
11803                   do not print progress messages
11804  -d, --debug      don't remove temporary files
11805      --recheck    update $as_me by reconfiguring in the same conditions
11806      --file=FILE[:TEMPLATE]
11807                   instantiate the configuration file FILE
11808      --header=FILE[:TEMPLATE]
11809                   instantiate the configuration header FILE
11810
11811Configuration files:
11812$config_files
11813
11814Configuration headers:
11815$config_headers
11816
11817Configuration commands:
11818$config_commands
11819
11820Report bugs to <https://gitlab.freedesktop.org/xorg/app/bitmap/issues>."
11821
11822_ACEOF
11823cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11824ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11825ac_cs_version="\\
11826bitmap config.status 1.1.0
11827configured by $0, generated by GNU Autoconf 2.69,
11828  with options \\"\$ac_cs_config\\"
11829
11830Copyright (C) 2012 Free Software Foundation, Inc.
11831This config.status script is free software; the Free Software Foundation
11832gives unlimited permission to copy, distribute and modify it."
11833
11834ac_pwd='$ac_pwd'
11835srcdir='$srcdir'
11836INSTALL='$INSTALL'
11837MKDIR_P='$MKDIR_P'
11838AWK='$AWK'
11839test -n "\$AWK" || AWK=awk
11840_ACEOF
11841
11842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11843# The default lists apply if the user does not specify any file.
11844ac_need_defaults=:
11845while test $# != 0
11846do
11847  case $1 in
11848  --*=?*)
11849    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11850    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11851    ac_shift=:
11852    ;;
11853  --*=)
11854    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11855    ac_optarg=
11856    ac_shift=:
11857    ;;
11858  *)
11859    ac_option=$1
11860    ac_optarg=$2
11861    ac_shift=shift
11862    ;;
11863  esac
11864
11865  case $ac_option in
11866  # Handling of the options.
11867  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11868    ac_cs_recheck=: ;;
11869  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11870    $as_echo "$ac_cs_version"; exit ;;
11871  --config | --confi | --conf | --con | --co | --c )
11872    $as_echo "$ac_cs_config"; exit ;;
11873  --debug | --debu | --deb | --de | --d | -d )
11874    debug=: ;;
11875  --file | --fil | --fi | --f )
11876    $ac_shift
11877    case $ac_optarg in
11878    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11879    '') as_fn_error $? "missing file argument" ;;
11880    esac
11881    as_fn_append CONFIG_FILES " '$ac_optarg'"
11882    ac_need_defaults=false;;
11883  --header | --heade | --head | --hea )
11884    $ac_shift
11885    case $ac_optarg in
11886    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11887    esac
11888    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11889    ac_need_defaults=false;;
11890  --he | --h)
11891    # Conflict between --help and --header
11892    as_fn_error $? "ambiguous option: \`$1'
11893Try \`$0 --help' for more information.";;
11894  --help | --hel | -h )
11895    $as_echo "$ac_cs_usage"; exit ;;
11896  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11897  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11898    ac_cs_silent=: ;;
11899
11900  # This is an error.
11901  -*) as_fn_error $? "unrecognized option: \`$1'
11902Try \`$0 --help' for more information." ;;
11903
11904  *) as_fn_append ac_config_targets " $1"
11905     ac_need_defaults=false ;;
11906
11907  esac
11908  shift
11909done
11910
11911ac_configure_extra_args=
11912
11913if $ac_cs_silent; then
11914  exec 6>/dev/null
11915  ac_configure_extra_args="$ac_configure_extra_args --silent"
11916fi
11917
11918_ACEOF
11919cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11920if \$ac_cs_recheck; then
11921  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11922  shift
11923  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11924  CONFIG_SHELL='$SHELL'
11925  export CONFIG_SHELL
11926  exec "\$@"
11927fi
11928
11929_ACEOF
11930cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11931exec 5>>config.log
11932{
11933  echo
11934  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11935## Running $as_me. ##
11936_ASBOX
11937  $as_echo "$ac_log"
11938} >&5
11939
11940_ACEOF
11941cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11942#
11943# INIT-COMMANDS
11944#
11945AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11946
11947_ACEOF
11948
11949cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11950
11951# Handling of arguments.
11952for ac_config_target in $ac_config_targets
11953do
11954  case $ac_config_target in
11955    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11956    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11957    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11958    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11959    "test/round-trip-test") CONFIG_FILES="$CONFIG_FILES test/round-trip-test" ;;
11960
11961  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11962  esac
11963done
11964
11965
11966# If the user did not use the arguments to specify the items to instantiate,
11967# then the envvar interface is used.  Set only those that are not.
11968# We use the long form for the default assignment because of an extremely
11969# bizarre bug on SunOS 4.1.3.
11970if $ac_need_defaults; then
11971  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11972  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11973  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11974fi
11975
11976# Have a temporary directory for convenience.  Make it in the build tree
11977# simply because there is no reason against having it here, and in addition,
11978# creating and moving files from /tmp can sometimes cause problems.
11979# Hook for its removal unless debugging.
11980# Note that there is a small window in which the directory will not be cleaned:
11981# after its creation but before its name has been assigned to `$tmp'.
11982$debug ||
11983{
11984  tmp= ac_tmp=
11985  trap 'exit_status=$?
11986  : "${ac_tmp:=$tmp}"
11987  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11988' 0
11989  trap 'as_fn_exit 1' 1 2 13 15
11990}
11991# Create a (secure) tmp directory for tmp files.
11992
11993{
11994  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11995  test -d "$tmp"
11996}  ||
11997{
11998  tmp=./conf$$-$RANDOM
11999  (umask 077 && mkdir "$tmp")
12000} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12001ac_tmp=$tmp
12002
12003# Set up the scripts for CONFIG_FILES section.
12004# No need to generate them if there are no CONFIG_FILES.
12005# This happens for instance with `./config.status config.h'.
12006if test -n "$CONFIG_FILES"; then
12007
12008
12009ac_cr=`echo X | tr X '\015'`
12010# On cygwin, bash can eat \r inside `` if the user requested igncr.
12011# But we know of no other shell where ac_cr would be empty at this
12012# point, so we can use a bashism as a fallback.
12013if test "x$ac_cr" = x; then
12014  eval ac_cr=\$\'\\r\'
12015fi
12016ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12017if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12018  ac_cs_awk_cr='\\r'
12019else
12020  ac_cs_awk_cr=$ac_cr
12021fi
12022
12023echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12024_ACEOF
12025
12026
12027{
12028  echo "cat >conf$$subs.awk <<_ACEOF" &&
12029  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12030  echo "_ACEOF"
12031} >conf$$subs.sh ||
12032  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12033ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12034ac_delim='%!_!# '
12035for ac_last_try in false false false false false :; do
12036  . ./conf$$subs.sh ||
12037    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12038
12039  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12040  if test $ac_delim_n = $ac_delim_num; then
12041    break
12042  elif $ac_last_try; then
12043    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12044  else
12045    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12046  fi
12047done
12048rm -f conf$$subs.sh
12049
12050cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12051cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12052_ACEOF
12053sed -n '
12054h
12055s/^/S["/; s/!.*/"]=/
12056p
12057g
12058s/^[^!]*!//
12059:repl
12060t repl
12061s/'"$ac_delim"'$//
12062t delim
12063:nl
12064h
12065s/\(.\{148\}\)..*/\1/
12066t more1
12067s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12068p
12069n
12070b repl
12071:more1
12072s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12073p
12074g
12075s/.\{148\}//
12076t nl
12077:delim
12078h
12079s/\(.\{148\}\)..*/\1/
12080t more2
12081s/["\\]/\\&/g; s/^/"/; s/$/"/
12082p
12083b
12084:more2
12085s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12086p
12087g
12088s/.\{148\}//
12089t delim
12090' <conf$$subs.awk | sed '
12091/^[^""]/{
12092  N
12093  s/\n//
12094}
12095' >>$CONFIG_STATUS || ac_write_fail=1
12096rm -f conf$$subs.awk
12097cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12098_ACAWK
12099cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12100  for (key in S) S_is_set[key] = 1
12101  FS = ""
12102
12103}
12104{
12105  line = $ 0
12106  nfields = split(line, field, "@")
12107  substed = 0
12108  len = length(field[1])
12109  for (i = 2; i < nfields; i++) {
12110    key = field[i]
12111    keylen = length(key)
12112    if (S_is_set[key]) {
12113      value = S[key]
12114      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12115      len += length(value) + length(field[++i])
12116      substed = 1
12117    } else
12118      len += 1 + keylen
12119  }
12120
12121  print line
12122}
12123
12124_ACAWK
12125_ACEOF
12126cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12127if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12128  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12129else
12130  cat
12131fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12132  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12133_ACEOF
12134
12135# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12136# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12137# trailing colons and then remove the whole line if VPATH becomes empty
12138# (actually we leave an empty line to preserve line numbers).
12139if test "x$srcdir" = x.; then
12140  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12141h
12142s///
12143s/^/:/
12144s/[	 ]*$/:/
12145s/:\$(srcdir):/:/g
12146s/:\${srcdir}:/:/g
12147s/:@srcdir@:/:/g
12148s/^:*//
12149s/:*$//
12150x
12151s/\(=[	 ]*\).*/\1/
12152G
12153s/\n//
12154s/^[^=]*=[	 ]*$//
12155}'
12156fi
12157
12158cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12159fi # test -n "$CONFIG_FILES"
12160
12161# Set up the scripts for CONFIG_HEADERS section.
12162# No need to generate them if there are no CONFIG_HEADERS.
12163# This happens for instance with `./config.status Makefile'.
12164if test -n "$CONFIG_HEADERS"; then
12165cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12166BEGIN {
12167_ACEOF
12168
12169# Transform confdefs.h into an awk script `defines.awk', embedded as
12170# here-document in config.status, that substitutes the proper values into
12171# config.h.in to produce config.h.
12172
12173# Create a delimiter string that does not exist in confdefs.h, to ease
12174# handling of long lines.
12175ac_delim='%!_!# '
12176for ac_last_try in false false :; do
12177  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12178  if test -z "$ac_tt"; then
12179    break
12180  elif $ac_last_try; then
12181    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12182  else
12183    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12184  fi
12185done
12186
12187# For the awk script, D is an array of macro values keyed by name,
12188# likewise P contains macro parameters if any.  Preserve backslash
12189# newline sequences.
12190
12191ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12192sed -n '
12193s/.\{148\}/&'"$ac_delim"'/g
12194t rset
12195:rset
12196s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12197t def
12198d
12199:def
12200s/\\$//
12201t bsnl
12202s/["\\]/\\&/g
12203s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12204D["\1"]=" \3"/p
12205s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12206d
12207:bsnl
12208s/["\\]/\\&/g
12209s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12210D["\1"]=" \3\\\\\\n"\\/p
12211t cont
12212s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12213t cont
12214d
12215:cont
12216n
12217s/.\{148\}/&'"$ac_delim"'/g
12218t clear
12219:clear
12220s/\\$//
12221t bsnlc
12222s/["\\]/\\&/g; s/^/"/; s/$/"/p
12223d
12224:bsnlc
12225s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12226b cont
12227' <confdefs.h | sed '
12228s/'"$ac_delim"'/"\\\
12229"/g' >>$CONFIG_STATUS || ac_write_fail=1
12230
12231cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12232  for (key in D) D_is_set[key] = 1
12233  FS = ""
12234}
12235/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12236  line = \$ 0
12237  split(line, arg, " ")
12238  if (arg[1] == "#") {
12239    defundef = arg[2]
12240    mac1 = arg[3]
12241  } else {
12242    defundef = substr(arg[1], 2)
12243    mac1 = arg[2]
12244  }
12245  split(mac1, mac2, "(") #)
12246  macro = mac2[1]
12247  prefix = substr(line, 1, index(line, defundef) - 1)
12248  if (D_is_set[macro]) {
12249    # Preserve the white space surrounding the "#".
12250    print prefix "define", macro P[macro] D[macro]
12251    next
12252  } else {
12253    # Replace #undef with comments.  This is necessary, for example,
12254    # in the case of _POSIX_SOURCE, which is predefined and required
12255    # on some systems where configure will not decide to define it.
12256    if (defundef == "undef") {
12257      print "/*", prefix defundef, macro, "*/"
12258      next
12259    }
12260  }
12261}
12262{ print }
12263_ACAWK
12264_ACEOF
12265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12266  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12267fi # test -n "$CONFIG_HEADERS"
12268
12269
12270eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12271shift
12272for ac_tag
12273do
12274  case $ac_tag in
12275  :[FHLC]) ac_mode=$ac_tag; continue;;
12276  esac
12277  case $ac_mode$ac_tag in
12278  :[FHL]*:*);;
12279  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12280  :[FH]-) ac_tag=-:-;;
12281  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12282  esac
12283  ac_save_IFS=$IFS
12284  IFS=:
12285  set x $ac_tag
12286  IFS=$ac_save_IFS
12287  shift
12288  ac_file=$1
12289  shift
12290
12291  case $ac_mode in
12292  :L) ac_source=$1;;
12293  :[FH])
12294    ac_file_inputs=
12295    for ac_f
12296    do
12297      case $ac_f in
12298      -) ac_f="$ac_tmp/stdin";;
12299      *) # Look for the file first in the build tree, then in the source tree
12300	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12301	 # because $ac_f cannot contain `:'.
12302	 test -f "$ac_f" ||
12303	   case $ac_f in
12304	   [\\/$]*) false;;
12305	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12306	   esac ||
12307	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12308      esac
12309      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12310      as_fn_append ac_file_inputs " '$ac_f'"
12311    done
12312
12313    # Let's still pretend it is `configure' which instantiates (i.e., don't
12314    # use $as_me), people would be surprised to read:
12315    #    /* config.h.  Generated by config.status.  */
12316    configure_input='Generated from '`
12317	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12318	`' by configure.'
12319    if test x"$ac_file" != x-; then
12320      configure_input="$ac_file.  $configure_input"
12321      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12322$as_echo "$as_me: creating $ac_file" >&6;}
12323    fi
12324    # Neutralize special characters interpreted by sed in replacement strings.
12325    case $configure_input in #(
12326    *\&* | *\|* | *\\* )
12327       ac_sed_conf_input=`$as_echo "$configure_input" |
12328       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12329    *) ac_sed_conf_input=$configure_input;;
12330    esac
12331
12332    case $ac_tag in
12333    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12334      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12335    esac
12336    ;;
12337  esac
12338
12339  ac_dir=`$as_dirname -- "$ac_file" ||
12340$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12341	 X"$ac_file" : 'X\(//\)[^/]' \| \
12342	 X"$ac_file" : 'X\(//\)$' \| \
12343	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12344$as_echo X"$ac_file" |
12345    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12346	    s//\1/
12347	    q
12348	  }
12349	  /^X\(\/\/\)[^/].*/{
12350	    s//\1/
12351	    q
12352	  }
12353	  /^X\(\/\/\)$/{
12354	    s//\1/
12355	    q
12356	  }
12357	  /^X\(\/\).*/{
12358	    s//\1/
12359	    q
12360	  }
12361	  s/.*/./; q'`
12362  as_dir="$ac_dir"; as_fn_mkdir_p
12363  ac_builddir=.
12364
12365case "$ac_dir" in
12366.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12367*)
12368  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12369  # A ".." for each directory in $ac_dir_suffix.
12370  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12371  case $ac_top_builddir_sub in
12372  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12373  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12374  esac ;;
12375esac
12376ac_abs_top_builddir=$ac_pwd
12377ac_abs_builddir=$ac_pwd$ac_dir_suffix
12378# for backward compatibility:
12379ac_top_builddir=$ac_top_build_prefix
12380
12381case $srcdir in
12382  .)  # We are building in place.
12383    ac_srcdir=.
12384    ac_top_srcdir=$ac_top_builddir_sub
12385    ac_abs_top_srcdir=$ac_pwd ;;
12386  [\\/]* | ?:[\\/]* )  # Absolute name.
12387    ac_srcdir=$srcdir$ac_dir_suffix;
12388    ac_top_srcdir=$srcdir
12389    ac_abs_top_srcdir=$srcdir ;;
12390  *) # Relative name.
12391    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12392    ac_top_srcdir=$ac_top_build_prefix$srcdir
12393    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12394esac
12395ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12396
12397
12398  case $ac_mode in
12399  :F)
12400  #
12401  # CONFIG_FILE
12402  #
12403
12404  case $INSTALL in
12405  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12406  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12407  esac
12408  ac_MKDIR_P=$MKDIR_P
12409  case $MKDIR_P in
12410  [\\/$]* | ?:[\\/]* ) ;;
12411  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12412  esac
12413_ACEOF
12414
12415cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12416# If the template does not know about datarootdir, expand it.
12417# FIXME: This hack should be removed a few years after 2.60.
12418ac_datarootdir_hack=; ac_datarootdir_seen=
12419ac_sed_dataroot='
12420/datarootdir/ {
12421  p
12422  q
12423}
12424/@datadir@/p
12425/@docdir@/p
12426/@infodir@/p
12427/@localedir@/p
12428/@mandir@/p'
12429case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12430*datarootdir*) ac_datarootdir_seen=yes;;
12431*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12432  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12433$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12434_ACEOF
12435cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12436  ac_datarootdir_hack='
12437  s&@datadir@&$datadir&g
12438  s&@docdir@&$docdir&g
12439  s&@infodir@&$infodir&g
12440  s&@localedir@&$localedir&g
12441  s&@mandir@&$mandir&g
12442  s&\\\${datarootdir}&$datarootdir&g' ;;
12443esac
12444_ACEOF
12445
12446# Neutralize VPATH when `$srcdir' = `.'.
12447# Shell code in configure.ac might set extrasub.
12448# FIXME: do we really want to maintain this feature?
12449cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12450ac_sed_extra="$ac_vpsub
12451$extrasub
12452_ACEOF
12453cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12454:t
12455/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12456s|@configure_input@|$ac_sed_conf_input|;t t
12457s&@top_builddir@&$ac_top_builddir_sub&;t t
12458s&@top_build_prefix@&$ac_top_build_prefix&;t t
12459s&@srcdir@&$ac_srcdir&;t t
12460s&@abs_srcdir@&$ac_abs_srcdir&;t t
12461s&@top_srcdir@&$ac_top_srcdir&;t t
12462s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12463s&@builddir@&$ac_builddir&;t t
12464s&@abs_builddir@&$ac_abs_builddir&;t t
12465s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12466s&@INSTALL@&$ac_INSTALL&;t t
12467s&@MKDIR_P@&$ac_MKDIR_P&;t t
12468$ac_datarootdir_hack
12469"
12470eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12471  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12472
12473test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12474  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12475  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12476      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12477  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12478which seems to be undefined.  Please make sure it is defined" >&5
12479$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12480which seems to be undefined.  Please make sure it is defined" >&2;}
12481
12482  rm -f "$ac_tmp/stdin"
12483  case $ac_file in
12484  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12485  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12486  esac \
12487  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12488 ;;
12489  :H)
12490  #
12491  # CONFIG_HEADER
12492  #
12493  if test x"$ac_file" != x-; then
12494    {
12495      $as_echo "/* $configure_input  */" \
12496      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12497    } >"$ac_tmp/config.h" \
12498      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12499    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12500      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12501$as_echo "$as_me: $ac_file is unchanged" >&6;}
12502    else
12503      rm -f "$ac_file"
12504      mv "$ac_tmp/config.h" "$ac_file" \
12505	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12506    fi
12507  else
12508    $as_echo "/* $configure_input  */" \
12509      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12510      || as_fn_error $? "could not create -" "$LINENO" 5
12511  fi
12512# Compute "$ac_file"'s index in $config_headers.
12513_am_arg="$ac_file"
12514_am_stamp_count=1
12515for _am_header in $config_headers :; do
12516  case $_am_header in
12517    $_am_arg | $_am_arg:* )
12518      break ;;
12519    * )
12520      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12521  esac
12522done
12523echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12524$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12525	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12526	 X"$_am_arg" : 'X\(//\)$' \| \
12527	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12528$as_echo X"$_am_arg" |
12529    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12530	    s//\1/
12531	    q
12532	  }
12533	  /^X\(\/\/\)[^/].*/{
12534	    s//\1/
12535	    q
12536	  }
12537	  /^X\(\/\/\)$/{
12538	    s//\1/
12539	    q
12540	  }
12541	  /^X\(\/\).*/{
12542	    s//\1/
12543	    q
12544	  }
12545	  s/.*/./; q'`/stamp-h$_am_stamp_count
12546 ;;
12547
12548  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12549$as_echo "$as_me: executing $ac_file commands" >&6;}
12550 ;;
12551  esac
12552
12553
12554  case $ac_file$ac_mode in
12555    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12556  # Older Autoconf quotes --file arguments for eval, but not when files
12557  # are listed without --file.  Let's play safe and only enable the eval
12558  # if we detect the quoting.
12559  case $CONFIG_FILES in
12560  *\'*) eval set x "$CONFIG_FILES" ;;
12561  *)   set x $CONFIG_FILES ;;
12562  esac
12563  shift
12564  for mf
12565  do
12566    # Strip MF so we end up with the name of the file.
12567    mf=`echo "$mf" | sed -e 's/:.*$//'`
12568    # Check whether this is an Automake generated Makefile or not.
12569    # We used to match only the files named 'Makefile.in', but
12570    # some people rename them; so instead we look at the file content.
12571    # Grep'ing the first line is not enough: some people post-process
12572    # each Makefile.in and add a new line on top of each file to say so.
12573    # Grep'ing the whole file is not good either: AIX grep has a line
12574    # limit of 2048, but all sed's we know have understand at least 4000.
12575    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12576      dirpart=`$as_dirname -- "$mf" ||
12577$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12578	 X"$mf" : 'X\(//\)[^/]' \| \
12579	 X"$mf" : 'X\(//\)$' \| \
12580	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12581$as_echo X"$mf" |
12582    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12583	    s//\1/
12584	    q
12585	  }
12586	  /^X\(\/\/\)[^/].*/{
12587	    s//\1/
12588	    q
12589	  }
12590	  /^X\(\/\/\)$/{
12591	    s//\1/
12592	    q
12593	  }
12594	  /^X\(\/\).*/{
12595	    s//\1/
12596	    q
12597	  }
12598	  s/.*/./; q'`
12599    else
12600      continue
12601    fi
12602    # Extract the definition of DEPDIR, am__include, and am__quote
12603    # from the Makefile without running 'make'.
12604    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12605    test -z "$DEPDIR" && continue
12606    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12607    test -z "$am__include" && continue
12608    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12609    # Find all dependency output files, they are included files with
12610    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12611    # simplest approach to changing $(DEPDIR) to its actual value in the
12612    # expansion.
12613    for file in `sed -n "
12614      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12615	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12616      # Make sure the directory exists.
12617      test -f "$dirpart/$file" && continue
12618      fdir=`$as_dirname -- "$file" ||
12619$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12620	 X"$file" : 'X\(//\)[^/]' \| \
12621	 X"$file" : 'X\(//\)$' \| \
12622	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12623$as_echo X"$file" |
12624    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12625	    s//\1/
12626	    q
12627	  }
12628	  /^X\(\/\/\)[^/].*/{
12629	    s//\1/
12630	    q
12631	  }
12632	  /^X\(\/\/\)$/{
12633	    s//\1/
12634	    q
12635	  }
12636	  /^X\(\/\).*/{
12637	    s//\1/
12638	    q
12639	  }
12640	  s/.*/./; q'`
12641      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12642      # echo "creating $dirpart/$file"
12643      echo '# dummy' > "$dirpart/$file"
12644    done
12645  done
12646}
12647 ;;
12648    "test/round-trip-test":F) chmod +x test/round-trip-test ;;
12649
12650  esac
12651done # for ac_tag
12652
12653
12654as_fn_exit 0
12655_ACEOF
12656ac_clean_files=$ac_clean_files_save
12657
12658test $ac_write_fail = 0 ||
12659  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12660
12661
12662# configure is writing to config.log, and then calls config.status.
12663# config.status does its own redirection, appending to config.log.
12664# Unfortunately, on DOS this fails, as config.log is still kept open
12665# by configure, so config.status won't be able to write to it; its
12666# output is simply discarded.  So we exec the FD to /dev/null,
12667# effectively closing config.log, so it can be properly (re)opened and
12668# appended to by config.status.  When coming back to configure, we
12669# need to make the FD available again.
12670if test "$no_create" != yes; then
12671  ac_cs_success=:
12672  ac_config_status_args=
12673  test "$silent" = yes &&
12674    ac_config_status_args="$ac_config_status_args --quiet"
12675  exec 5>/dev/null
12676  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12677  exec 5>>config.log
12678  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12679  # would make configure fail if this is the last instruction.
12680  $ac_cs_success || as_fn_exit 1
12681fi
12682if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12683  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12684$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12685fi
12686
12687