configure revision 7af227c3
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for imake 1.0.7.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
271$0: about your system, including any error possibly output
272$0: before this message. Then install a modern shell, or
273$0: manually run the script under such a shell if you do
274$0: have one."
275  fi
276  exit 1
277fi
278fi
279fi
280SHELL=${CONFIG_SHELL-/bin/sh}
281export SHELL
282# Unset more variables known to interfere with behavior of common tools.
283CLICOLOR_FORCE= GREP_OPTIONS=
284unset CLICOLOR_FORCE GREP_OPTIONS
285
286## --------------------- ##
287## M4sh Shell Functions. ##
288## --------------------- ##
289# as_fn_unset VAR
290# ---------------
291# Portably unset VAR.
292as_fn_unset ()
293{
294  { eval $1=; unset $1;}
295}
296as_unset=as_fn_unset
297
298# as_fn_set_status STATUS
299# -----------------------
300# Set $? to STATUS, without forking.
301as_fn_set_status ()
302{
303  return $1
304} # as_fn_set_status
305
306# as_fn_exit STATUS
307# -----------------
308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309as_fn_exit ()
310{
311  set +e
312  as_fn_set_status $1
313  exit $1
314} # as_fn_exit
315
316# as_fn_mkdir_p
317# -------------
318# Create "$as_dir" as a directory, including parents if necessary.
319as_fn_mkdir_p ()
320{
321
322  case $as_dir in #(
323  -*) as_dir=./$as_dir;;
324  esac
325  test -d "$as_dir" || eval $as_mkdir_p || {
326    as_dirs=
327    while :; do
328      case $as_dir in #(
329      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330      *) as_qdir=$as_dir;;
331      esac
332      as_dirs="'$as_qdir' $as_dirs"
333      as_dir=`$as_dirname -- "$as_dir" ||
334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335	 X"$as_dir" : 'X\(//\)[^/]' \| \
336	 X"$as_dir" : 'X\(//\)$' \| \
337	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338$as_echo X"$as_dir" |
339    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)[^/].*/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\).*/{
352	    s//\1/
353	    q
354	  }
355	  s/.*/./; q'`
356      test -d "$as_dir" && break
357    done
358    test -z "$as_dirs" || eval "mkdir $as_dirs"
359  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362} # as_fn_mkdir_p
363
364# as_fn_executable_p FILE
365# -----------------------
366# Test if FILE is an executable regular file.
367as_fn_executable_p ()
368{
369  test -f "$1" && test -x "$1"
370} # as_fn_executable_p
371# as_fn_append VAR VALUE
372# ----------------------
373# Append the text in VALUE to the end of the definition contained in VAR. Take
374# advantage of any shell optimizations that allow amortized linear growth over
375# repeated appends, instead of the typical quadratic growth present in naive
376# implementations.
377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378  eval 'as_fn_append ()
379  {
380    eval $1+=\$2
381  }'
382else
383  as_fn_append ()
384  {
385    eval $1=\$$1\$2
386  }
387fi # as_fn_append
388
389# as_fn_arith ARG...
390# ------------------
391# Perform arithmetic evaluation on the ARGs, and store the result in the
392# global $as_val. Take advantage of shells that can avoid forks. The arguments
393# must be portable across $(()) and expr.
394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395  eval 'as_fn_arith ()
396  {
397    as_val=$(( $* ))
398  }'
399else
400  as_fn_arith ()
401  {
402    as_val=`expr "$@" || test $? -eq 1`
403  }
404fi # as_fn_arith
405
406
407# as_fn_error STATUS ERROR [LINENO LOG_FD]
408# ----------------------------------------
409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411# script with STATUS, using 1 if that was 0.
412as_fn_error ()
413{
414  as_status=$1; test $as_status -eq 0 && as_status=1
415  if test "$4"; then
416    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418  fi
419  $as_echo "$as_me: error: $2" >&2
420  as_fn_exit $as_status
421} # as_fn_error
422
423if expr a : '\(a\)' >/dev/null 2>&1 &&
424   test "X`expr 00001 : '.*\(...\)'`" = X001; then
425  as_expr=expr
426else
427  as_expr=false
428fi
429
430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431  as_basename=basename
432else
433  as_basename=false
434fi
435
436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437  as_dirname=dirname
438else
439  as_dirname=false
440fi
441
442as_me=`$as_basename -- "$0" ||
443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444	 X"$0" : 'X\(//\)$' \| \
445	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446$as_echo X/"$0" |
447    sed '/^.*\/\([^/][^/]*\)\/*$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\/\)$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\).*/{
456	    s//\1/
457	    q
458	  }
459	  s/.*/./; q'`
460
461# Avoid depending upon Character Ranges.
462as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465as_cr_digits='0123456789'
466as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469  as_lineno_1=$LINENO as_lineno_1a=$LINENO
470  as_lineno_2=$LINENO as_lineno_2a=$LINENO
471  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
474  sed -n '
475    p
476    /[$]LINENO/=
477  ' <$as_myself |
478    sed '
479      s/[$]LINENO.*/&-/
480      t lineno
481      b
482      :lineno
483      N
484      :loop
485      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486      t loop
487      s/-\n.*//
488    ' >$as_me.lineno &&
489  chmod +x "$as_me.lineno" ||
490    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493  # already done that, so ensure we don't try to do so again and fall
494  # in an infinite loop.  This has already happened in practice.
495  _as_can_reexec=no; export _as_can_reexec
496  # Don't try to exec as it changes $[0], causing all sort of problems
497  # (the dirname of $[0] is not the place where we might find the
498  # original and so on.  Autoconf is especially sensitive to this).
499  . "./$as_me.lineno"
500  # Exit status is that of the last command.
501  exit
502}
503
504ECHO_C= ECHO_N= ECHO_T=
505case `echo -n x` in #(((((
506-n*)
507  case `echo 'xy\c'` in
508  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
509  xy)  ECHO_C='\c';;
510  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
511       ECHO_T='	';;
512  esac;;
513*)
514  ECHO_N='-n';;
515esac
516
517rm -f conf$$ conf$$.exe conf$$.file
518if test -d conf$$.dir; then
519  rm -f conf$$.dir/conf$$.file
520else
521  rm -f conf$$.dir
522  mkdir conf$$.dir 2>/dev/null
523fi
524if (echo >conf$$.file) 2>/dev/null; then
525  if ln -s conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s='ln -s'
527    # ... but there are two gotchas:
528    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530    # In both cases, we have to default to `cp -pR'.
531    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532      as_ln_s='cp -pR'
533  elif ln conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s=ln
535  else
536    as_ln_s='cp -pR'
537  fi
538else
539  as_ln_s='cp -pR'
540fi
541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542rmdir conf$$.dir 2>/dev/null
543
544if mkdir -p . 2>/dev/null; then
545  as_mkdir_p='mkdir -p "$as_dir"'
546else
547  test -d ./-p && rmdir ./-p
548  as_mkdir_p=false
549fi
550
551as_test_x='test -x'
552as_executable_p=as_fn_executable_p
553
554# Sed expression to map a string onto a valid CPP name.
555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557# Sed expression to map a string onto a valid variable name.
558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
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='imake'
583PACKAGE_TARNAME='imake'
584PACKAGE_VERSION='1.0.7'
585PACKAGE_STRING='imake 1.0.7'
586PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
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
630XPROTO_LIBS
631XPROTO_CFLAGS
632BUILD_MKHTMLINDEX_FALSE
633BUILD_MKHTMLINDEX_TRUE
634BUILD_CLEANLINKS_FALSE
635BUILD_CLEANLINKS_TRUE
636BUILD_MKDIRHIER_FALSE
637BUILD_MKDIRHIER_TRUE
638BUILD_MERGELIB_FALSE
639BUILD_MERGELIB_TRUE
640BUILD_CCMAKEDEP_FALSE
641BUILD_CCMAKEDEP_TRUE
642BUILD_XMKMF_FALSE
643BUILD_XMKMF_TRUE
644BUILD_MAKEG_FALSE
645BUILD_MAKEG_TRUE
646BUILD_REVPATH_FALSE
647BUILD_REVPATH_TRUE
648RANLIB
649ARCMD
650PREPROCESSCMD_MKDEPEND
651XCONFDIR
652HAS_PERL_FALSE
653HAS_PERL_TRUE
654HAS_PERL
655CPP_PROGRAM
656RAWCPPFLAGS
657RAWCPP
658MAN_SUBSTS
659XORG_MAN_PAGE
660ADMIN_MAN_DIR
661DRIVER_MAN_DIR
662MISC_MAN_DIR
663FILE_MAN_DIR
664LIB_MAN_DIR
665APP_MAN_DIR
666ADMIN_MAN_SUFFIX
667DRIVER_MAN_SUFFIX
668MISC_MAN_SUFFIX
669FILE_MAN_SUFFIX
670LIB_MAN_SUFFIX
671APP_MAN_SUFFIX
672SED
673host_os
674host_vendor
675host_cpu
676host
677build_os
678build_vendor
679build_cpu
680build
681INSTALL_CMD
682PKG_CONFIG_LIBDIR
683PKG_CONFIG_PATH
684PKG_CONFIG
685CHANGELOG_CMD
686STRICT_CFLAGS
687CWARNFLAGS
688BASE_CFLAGS
689EGREP
690GREP
691CPP
692am__fastdepCC_FALSE
693am__fastdepCC_TRUE
694CCDEPMODE
695am__nodep
696AMDEPBACKSLASH
697AMDEP_FALSE
698AMDEP_TRUE
699am__quote
700am__include
701DEPDIR
702OBJEXT
703EXEEXT
704ac_ct_CC
705CPPFLAGS
706LDFLAGS
707CFLAGS
708CC
709MAINT
710MAINTAINER_MODE_FALSE
711MAINTAINER_MODE_TRUE
712AM_BACKSLASH
713AM_DEFAULT_VERBOSITY
714AM_DEFAULT_V
715AM_V
716am__untar
717am__tar
718AMTAR
719am__leading_dot
720SET_MAKE
721AWK
722mkdir_p
723MKDIR_P
724INSTALL_STRIP_PROGRAM
725STRIP
726install_sh
727MAKEINFO
728AUTOHEADER
729AUTOMAKE
730AUTOCONF
731ACLOCAL
732VERSION
733PACKAGE
734CYGPATH_W
735am__isrc
736INSTALL_DATA
737INSTALL_SCRIPT
738INSTALL_PROGRAM
739target_alias
740host_alias
741build_alias
742LIBS
743ECHO_T
744ECHO_N
745ECHO_C
746DEFS
747mandir
748localedir
749libdir
750psdir
751pdfdir
752dvidir
753htmldir
754infodir
755docdir
756oldincludedir
757includedir
758localstatedir
759sharedstatedir
760sysconfdir
761datadir
762datarootdir
763libexecdir
764sbindir
765bindir
766program_transform_name
767prefix
768exec_prefix
769PACKAGE_URL
770PACKAGE_BUGREPORT
771PACKAGE_STRING
772PACKAGE_VERSION
773PACKAGE_TARNAME
774PACKAGE_NAME
775PATH_SEPARATOR
776SHELL'
777ac_subst_files=''
778ac_user_opts='
779enable_option_checking
780enable_silent_rules
781enable_maintainer_mode
782enable_dependency_tracking
783enable_selective_werror
784enable_strict_compilation
785with_config_dir
786with_script_preproc_cmd
787with_create_lib_cmd
788with_clean_lib_cmd
789enable_revpath
790enable_makeg
791enable_xmkmf
792enable_ccmakedep
793enable_mergelib
794enable_mkdirhier
795enable_cleanlinks
796enable_mkhtmlindex
797'
798      ac_precious_vars='build_alias
799host_alias
800target_alias
801CC
802CFLAGS
803LDFLAGS
804LIBS
805CPPFLAGS
806CPP
807PKG_CONFIG
808PKG_CONFIG_PATH
809PKG_CONFIG_LIBDIR
810XPROTO_CFLAGS
811XPROTO_LIBS'
812
813
814# Initialize some variables set by options.
815ac_init_help=
816ac_init_version=false
817ac_unrecognized_opts=
818ac_unrecognized_sep=
819# The variables have the same names as the options, with
820# dashes changed to underlines.
821cache_file=/dev/null
822exec_prefix=NONE
823no_create=
824no_recursion=
825prefix=NONE
826program_prefix=NONE
827program_suffix=NONE
828program_transform_name=s,x,x,
829silent=
830site=
831srcdir=
832verbose=
833x_includes=NONE
834x_libraries=NONE
835
836# Installation directory options.
837# These are left unexpanded so users can "make install exec_prefix=/foo"
838# and all the variables that are supposed to be based on exec_prefix
839# by default will actually change.
840# Use braces instead of parens because sh, perl, etc. also accept them.
841# (The list follows the same order as the GNU Coding Standards.)
842bindir='${exec_prefix}/bin'
843sbindir='${exec_prefix}/sbin'
844libexecdir='${exec_prefix}/libexec'
845datarootdir='${prefix}/share'
846datadir='${datarootdir}'
847sysconfdir='${prefix}/etc'
848sharedstatedir='${prefix}/com'
849localstatedir='${prefix}/var'
850includedir='${prefix}/include'
851oldincludedir='/usr/include'
852docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
853infodir='${datarootdir}/info'
854htmldir='${docdir}'
855dvidir='${docdir}'
856pdfdir='${docdir}'
857psdir='${docdir}'
858libdir='${exec_prefix}/lib'
859localedir='${datarootdir}/locale'
860mandir='${datarootdir}/man'
861
862ac_prev=
863ac_dashdash=
864for ac_option
865do
866  # If the previous option needs an argument, assign it.
867  if test -n "$ac_prev"; then
868    eval $ac_prev=\$ac_option
869    ac_prev=
870    continue
871  fi
872
873  case $ac_option in
874  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875  *=)   ac_optarg= ;;
876  *)    ac_optarg=yes ;;
877  esac
878
879  # Accept the important Cygnus configure options, so we can diagnose typos.
880
881  case $ac_dashdash$ac_option in
882  --)
883    ac_dashdash=yes ;;
884
885  -bindir | --bindir | --bindi | --bind | --bin | --bi)
886    ac_prev=bindir ;;
887  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888    bindir=$ac_optarg ;;
889
890  -build | --build | --buil | --bui | --bu)
891    ac_prev=build_alias ;;
892  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893    build_alias=$ac_optarg ;;
894
895  -cache-file | --cache-file | --cache-fil | --cache-fi \
896  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897    ac_prev=cache_file ;;
898  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900    cache_file=$ac_optarg ;;
901
902  --config-cache | -C)
903    cache_file=config.cache ;;
904
905  -datadir | --datadir | --datadi | --datad)
906    ac_prev=datadir ;;
907  -datadir=* | --datadir=* | --datadi=* | --datad=*)
908    datadir=$ac_optarg ;;
909
910  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911  | --dataroo | --dataro | --datar)
912    ac_prev=datarootdir ;;
913  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915    datarootdir=$ac_optarg ;;
916
917  -disable-* | --disable-*)
918    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919    # Reject names that are not valid shell variable names.
920    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921      as_fn_error $? "invalid feature name: $ac_useropt"
922    ac_useropt_orig=$ac_useropt
923    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924    case $ac_user_opts in
925      *"
926"enable_$ac_useropt"
927"*) ;;
928      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929	 ac_unrecognized_sep=', ';;
930    esac
931    eval enable_$ac_useropt=no ;;
932
933  -docdir | --docdir | --docdi | --doc | --do)
934    ac_prev=docdir ;;
935  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936    docdir=$ac_optarg ;;
937
938  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939    ac_prev=dvidir ;;
940  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941    dvidir=$ac_optarg ;;
942
943  -enable-* | --enable-*)
944    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945    # Reject names that are not valid shell variable names.
946    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947      as_fn_error $? "invalid feature name: $ac_useropt"
948    ac_useropt_orig=$ac_useropt
949    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950    case $ac_user_opts in
951      *"
952"enable_$ac_useropt"
953"*) ;;
954      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
955	 ac_unrecognized_sep=', ';;
956    esac
957    eval enable_$ac_useropt=\$ac_optarg ;;
958
959  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961  | --exec | --exe | --ex)
962    ac_prev=exec_prefix ;;
963  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965  | --exec=* | --exe=* | --ex=*)
966    exec_prefix=$ac_optarg ;;
967
968  -gas | --gas | --ga | --g)
969    # Obsolete; use --with-gas.
970    with_gas=yes ;;
971
972  -help | --help | --hel | --he | -h)
973    ac_init_help=long ;;
974  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975    ac_init_help=recursive ;;
976  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977    ac_init_help=short ;;
978
979  -host | --host | --hos | --ho)
980    ac_prev=host_alias ;;
981  -host=* | --host=* | --hos=* | --ho=*)
982    host_alias=$ac_optarg ;;
983
984  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985    ac_prev=htmldir ;;
986  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987  | --ht=*)
988    htmldir=$ac_optarg ;;
989
990  -includedir | --includedir | --includedi | --included | --include \
991  | --includ | --inclu | --incl | --inc)
992    ac_prev=includedir ;;
993  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994  | --includ=* | --inclu=* | --incl=* | --inc=*)
995    includedir=$ac_optarg ;;
996
997  -infodir | --infodir | --infodi | --infod | --info | --inf)
998    ac_prev=infodir ;;
999  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000    infodir=$ac_optarg ;;
1001
1002  -libdir | --libdir | --libdi | --libd)
1003    ac_prev=libdir ;;
1004  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005    libdir=$ac_optarg ;;
1006
1007  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008  | --libexe | --libex | --libe)
1009    ac_prev=libexecdir ;;
1010  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011  | --libexe=* | --libex=* | --libe=*)
1012    libexecdir=$ac_optarg ;;
1013
1014  -localedir | --localedir | --localedi | --localed | --locale)
1015    ac_prev=localedir ;;
1016  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017    localedir=$ac_optarg ;;
1018
1019  -localstatedir | --localstatedir | --localstatedi | --localstated \
1020  | --localstate | --localstat | --localsta | --localst | --locals)
1021    ac_prev=localstatedir ;;
1022  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024    localstatedir=$ac_optarg ;;
1025
1026  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027    ac_prev=mandir ;;
1028  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029    mandir=$ac_optarg ;;
1030
1031  -nfp | --nfp | --nf)
1032    # Obsolete; use --without-fp.
1033    with_fp=no ;;
1034
1035  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036  | --no-cr | --no-c | -n)
1037    no_create=yes ;;
1038
1039  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041    no_recursion=yes ;;
1042
1043  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045  | --oldin | --oldi | --old | --ol | --o)
1046    ac_prev=oldincludedir ;;
1047  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050    oldincludedir=$ac_optarg ;;
1051
1052  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053    ac_prev=prefix ;;
1054  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055    prefix=$ac_optarg ;;
1056
1057  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058  | --program-pre | --program-pr | --program-p)
1059    ac_prev=program_prefix ;;
1060  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062    program_prefix=$ac_optarg ;;
1063
1064  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065  | --program-suf | --program-su | --program-s)
1066    ac_prev=program_suffix ;;
1067  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069    program_suffix=$ac_optarg ;;
1070
1071  -program-transform-name | --program-transform-name \
1072  | --program-transform-nam | --program-transform-na \
1073  | --program-transform-n | --program-transform- \
1074  | --program-transform | --program-transfor \
1075  | --program-transfo | --program-transf \
1076  | --program-trans | --program-tran \
1077  | --progr-tra | --program-tr | --program-t)
1078    ac_prev=program_transform_name ;;
1079  -program-transform-name=* | --program-transform-name=* \
1080  | --program-transform-nam=* | --program-transform-na=* \
1081  | --program-transform-n=* | --program-transform-=* \
1082  | --program-transform=* | --program-transfor=* \
1083  | --program-transfo=* | --program-transf=* \
1084  | --program-trans=* | --program-tran=* \
1085  | --progr-tra=* | --program-tr=* | --program-t=*)
1086    program_transform_name=$ac_optarg ;;
1087
1088  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089    ac_prev=pdfdir ;;
1090  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091    pdfdir=$ac_optarg ;;
1092
1093  -psdir | --psdir | --psdi | --psd | --ps)
1094    ac_prev=psdir ;;
1095  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096    psdir=$ac_optarg ;;
1097
1098  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099  | -silent | --silent | --silen | --sile | --sil)
1100    silent=yes ;;
1101
1102  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103    ac_prev=sbindir ;;
1104  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105  | --sbi=* | --sb=*)
1106    sbindir=$ac_optarg ;;
1107
1108  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110  | --sharedst | --shareds | --shared | --share | --shar \
1111  | --sha | --sh)
1112    ac_prev=sharedstatedir ;;
1113  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116  | --sha=* | --sh=*)
1117    sharedstatedir=$ac_optarg ;;
1118
1119  -site | --site | --sit)
1120    ac_prev=site ;;
1121  -site=* | --site=* | --sit=*)
1122    site=$ac_optarg ;;
1123
1124  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125    ac_prev=srcdir ;;
1126  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127    srcdir=$ac_optarg ;;
1128
1129  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130  | --syscon | --sysco | --sysc | --sys | --sy)
1131    ac_prev=sysconfdir ;;
1132  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134    sysconfdir=$ac_optarg ;;
1135
1136  -target | --target | --targe | --targ | --tar | --ta | --t)
1137    ac_prev=target_alias ;;
1138  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139    target_alias=$ac_optarg ;;
1140
1141  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142    verbose=yes ;;
1143
1144  -version | --version | --versio | --versi | --vers | -V)
1145    ac_init_version=: ;;
1146
1147  -with-* | --with-*)
1148    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149    # Reject names that are not valid shell variable names.
1150    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151      as_fn_error $? "invalid package name: $ac_useropt"
1152    ac_useropt_orig=$ac_useropt
1153    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154    case $ac_user_opts in
1155      *"
1156"with_$ac_useropt"
1157"*) ;;
1158      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159	 ac_unrecognized_sep=', ';;
1160    esac
1161    eval with_$ac_useropt=\$ac_optarg ;;
1162
1163  -without-* | --without-*)
1164    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165    # Reject names that are not valid shell variable names.
1166    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167      as_fn_error $? "invalid package name: $ac_useropt"
1168    ac_useropt_orig=$ac_useropt
1169    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170    case $ac_user_opts in
1171      *"
1172"with_$ac_useropt"
1173"*) ;;
1174      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175	 ac_unrecognized_sep=', ';;
1176    esac
1177    eval with_$ac_useropt=no ;;
1178
1179  --x)
1180    # Obsolete; use --with-x.
1181    with_x=yes ;;
1182
1183  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184  | --x-incl | --x-inc | --x-in | --x-i)
1185    ac_prev=x_includes ;;
1186  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188    x_includes=$ac_optarg ;;
1189
1190  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192    ac_prev=x_libraries ;;
1193  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195    x_libraries=$ac_optarg ;;
1196
1197  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1198Try \`$0 --help' for more information"
1199    ;;
1200
1201  *=*)
1202    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203    # Reject names that are not valid shell variable names.
1204    case $ac_envvar in #(
1205      '' | [0-9]* | *[!_$as_cr_alnum]* )
1206      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1207    esac
1208    eval $ac_envvar=\$ac_optarg
1209    export $ac_envvar ;;
1210
1211  *)
1212    # FIXME: should be removed in autoconf 3.0.
1213    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1214    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1216    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1217    ;;
1218
1219  esac
1220done
1221
1222if test -n "$ac_prev"; then
1223  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224  as_fn_error $? "missing argument to $ac_option"
1225fi
1226
1227if test -n "$ac_unrecognized_opts"; then
1228  case $enable_option_checking in
1229    no) ;;
1230    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1231    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232  esac
1233fi
1234
1235# Check all directory arguments for consistency.
1236for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237		datadir sysconfdir sharedstatedir localstatedir includedir \
1238		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239		libdir localedir mandir
1240do
1241  eval ac_val=\$$ac_var
1242  # Remove trailing slashes.
1243  case $ac_val in
1244    */ )
1245      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246      eval $ac_var=\$ac_val;;
1247  esac
1248  # Be sure to have absolute directory names.
1249  case $ac_val in
1250    [\\/$]* | ?:[\\/]* )  continue;;
1251    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252  esac
1253  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1254done
1255
1256# There might be people who depend on the old broken behavior: `$host'
1257# used to hold the argument of --host etc.
1258# FIXME: To remove some day.
1259build=$build_alias
1260host=$host_alias
1261target=$target_alias
1262
1263# FIXME: To remove some day.
1264if test "x$host_alias" != x; then
1265  if test "x$build_alias" = x; then
1266    cross_compiling=maybe
1267  elif test "x$build_alias" != "x$host_alias"; then
1268    cross_compiling=yes
1269  fi
1270fi
1271
1272ac_tool_prefix=
1273test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274
1275test "$silent" = yes && exec 6>/dev/null
1276
1277
1278ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279ac_ls_di=`ls -di .` &&
1280ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281  as_fn_error $? "working directory cannot be determined"
1282test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283  as_fn_error $? "pwd does not report name of working directory"
1284
1285
1286# Find the source files, if location was not specified.
1287if test -z "$srcdir"; then
1288  ac_srcdir_defaulted=yes
1289  # Try the directory containing this script, then the parent directory.
1290  ac_confdir=`$as_dirname -- "$as_myself" ||
1291$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292	 X"$as_myself" : 'X\(//\)[^/]' \| \
1293	 X"$as_myself" : 'X\(//\)$' \| \
1294	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295$as_echo X"$as_myself" |
1296    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297	    s//\1/
1298	    q
1299	  }
1300	  /^X\(\/\/\)[^/].*/{
1301	    s//\1/
1302	    q
1303	  }
1304	  /^X\(\/\/\)$/{
1305	    s//\1/
1306	    q
1307	  }
1308	  /^X\(\/\).*/{
1309	    s//\1/
1310	    q
1311	  }
1312	  s/.*/./; q'`
1313  srcdir=$ac_confdir
1314  if test ! -r "$srcdir/$ac_unique_file"; then
1315    srcdir=..
1316  fi
1317else
1318  ac_srcdir_defaulted=no
1319fi
1320if test ! -r "$srcdir/$ac_unique_file"; then
1321  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1323fi
1324ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1325ac_abs_confdir=`(
1326	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1327	pwd)`
1328# When building in place, set srcdir=.
1329if test "$ac_abs_confdir" = "$ac_pwd"; then
1330  srcdir=.
1331fi
1332# Remove unnecessary trailing slashes from srcdir.
1333# Double slashes in file names in object file debugging info
1334# mess up M-x gdb in Emacs.
1335case $srcdir in
1336*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337esac
1338for ac_var in $ac_precious_vars; do
1339  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340  eval ac_env_${ac_var}_value=\$${ac_var}
1341  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343done
1344
1345#
1346# Report the --help message.
1347#
1348if test "$ac_init_help" = "long"; then
1349  # Omit some internal or obsolete options to make the list less imposing.
1350  # This message is too long to be a string in the A/UX 3.1 sh.
1351  cat <<_ACEOF
1352\`configure' configures imake 1.0.7 to adapt to many kinds of systems.
1353
1354Usage: $0 [OPTION]... [VAR=VALUE]...
1355
1356To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357VAR=VALUE.  See below for descriptions of some of the useful variables.
1358
1359Defaults for the options are specified in brackets.
1360
1361Configuration:
1362  -h, --help              display this help and exit
1363      --help=short        display options specific to this package
1364      --help=recursive    display the short help of all the included packages
1365  -V, --version           display version information and exit
1366  -q, --quiet, --silent   do not print \`checking ...' messages
1367      --cache-file=FILE   cache test results in FILE [disabled]
1368  -C, --config-cache      alias for \`--cache-file=config.cache'
1369  -n, --no-create         do not create output files
1370      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1371
1372Installation directories:
1373  --prefix=PREFIX         install architecture-independent files in PREFIX
1374                          [$ac_default_prefix]
1375  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1376                          [PREFIX]
1377
1378By default, \`make install' will install all the files in
1379\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1380an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381for instance \`--prefix=\$HOME'.
1382
1383For better control, use the options below.
1384
1385Fine tuning of the installation directories:
1386  --bindir=DIR            user executables [EPREFIX/bin]
1387  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1388  --libexecdir=DIR        program executables [EPREFIX/libexec]
1389  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1390  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1391  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1392  --libdir=DIR            object code libraries [EPREFIX/lib]
1393  --includedir=DIR        C header files [PREFIX/include]
1394  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1395  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1396  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1397  --infodir=DIR           info documentation [DATAROOTDIR/info]
1398  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1399  --mandir=DIR            man documentation [DATAROOTDIR/man]
1400  --docdir=DIR            documentation root [DATAROOTDIR/doc/imake]
1401  --htmldir=DIR           html documentation [DOCDIR]
1402  --dvidir=DIR            dvi documentation [DOCDIR]
1403  --pdfdir=DIR            pdf documentation [DOCDIR]
1404  --psdir=DIR             ps documentation [DOCDIR]
1405_ACEOF
1406
1407  cat <<\_ACEOF
1408
1409Program names:
1410  --program-prefix=PREFIX            prepend PREFIX to installed program names
1411  --program-suffix=SUFFIX            append SUFFIX to installed program names
1412  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1413
1414System types:
1415  --build=BUILD     configure for building on BUILD [guessed]
1416  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1417_ACEOF
1418fi
1419
1420if test -n "$ac_init_help"; then
1421  case $ac_init_help in
1422     short | recursive ) echo "Configuration of imake 1.0.7:";;
1423   esac
1424  cat <<\_ACEOF
1425
1426Optional Features:
1427  --disable-option-checking  ignore unrecognized --enable/--with options
1428  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1429  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1430  --enable-silent-rules   less verbose build output (undo: "make V=1")
1431  --disable-silent-rules  verbose build output (undo: "make V=0")
1432  --enable-maintainer-mode
1433                          enable make rules and dependencies not useful (and
1434                          sometimes confusing) to the casual installer
1435  --enable-dependency-tracking
1436                          do not reject slow dependency extractors
1437  --disable-dependency-tracking
1438                          speeds up one-time build
1439  --disable-selective-werror
1440                          Turn off selective compiler errors. (default:
1441                          enabled)
1442  --enable-strict-compilation
1443                          Enable all warnings from compiler and make them
1444                          errors (default: disabled)
1445  --disable-revpath       Build revpath (default: enabled)
1446  --disable-makeg         Build makeg (default: enabled)
1447  --disable-xmkmf         Build xmkmf (default: enabled)
1448  --disable-ccmakedep     Build ccmakedep (default: enabled)
1449  --disable-mergelib      Build mergelib (default: enabled)
1450  --disable-mkdirhier     Build mkdirhier (default: enabled)
1451  --disable-cleanlinks    Build cleanlinks (default: enabled)
1452  --disable-mkhtmlindex   Build mkhtmlindex (default: enabled)
1453
1454Optional Packages:
1455  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1456  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1457  --with-config-dir=<path>
1458                          Path to config dir (default: ${libdir}/X11/config)
1459  --with-script-preproc-cmd=CMD
1460                          Preprocessor command to run on scripts (default:
1461                          "gcc -E")
1462  --with-create-lib-cmd=CMD
1463                          Command to create libraries (default: "ar clq")
1464  --with-clean-lib-cmd=CMD
1465                          Command to clean up libraries (default: "ranlib")
1466
1467Some influential environment variables:
1468  CC          C compiler command
1469  CFLAGS      C compiler flags
1470  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1471              nonstandard directory <lib dir>
1472  LIBS        libraries to pass to the linker, e.g. -l<library>
1473  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1474              you have headers in a nonstandard directory <include dir>
1475  CPP         C preprocessor
1476  PKG_CONFIG  path to pkg-config utility
1477  PKG_CONFIG_PATH
1478              directories to add to pkg-config's search path
1479  PKG_CONFIG_LIBDIR
1480              path overriding pkg-config's built-in search path
1481  XPROTO_CFLAGS
1482              C compiler flags for XPROTO, overriding pkg-config
1483  XPROTO_LIBS linker flags for XPROTO, overriding pkg-config
1484
1485Use these variables to override the choices made by `configure' or to help
1486it to find libraries and programs with nonstandard names/locations.
1487
1488Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1489_ACEOF
1490ac_status=$?
1491fi
1492
1493if test "$ac_init_help" = "recursive"; then
1494  # If there are subdirs, report their specific --help.
1495  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1496    test -d "$ac_dir" ||
1497      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1498      continue
1499    ac_builddir=.
1500
1501case "$ac_dir" in
1502.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503*)
1504  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1505  # A ".." for each directory in $ac_dir_suffix.
1506  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1507  case $ac_top_builddir_sub in
1508  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1510  esac ;;
1511esac
1512ac_abs_top_builddir=$ac_pwd
1513ac_abs_builddir=$ac_pwd$ac_dir_suffix
1514# for backward compatibility:
1515ac_top_builddir=$ac_top_build_prefix
1516
1517case $srcdir in
1518  .)  # We are building in place.
1519    ac_srcdir=.
1520    ac_top_srcdir=$ac_top_builddir_sub
1521    ac_abs_top_srcdir=$ac_pwd ;;
1522  [\\/]* | ?:[\\/]* )  # Absolute name.
1523    ac_srcdir=$srcdir$ac_dir_suffix;
1524    ac_top_srcdir=$srcdir
1525    ac_abs_top_srcdir=$srcdir ;;
1526  *) # Relative name.
1527    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1528    ac_top_srcdir=$ac_top_build_prefix$srcdir
1529    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1530esac
1531ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1532
1533    cd "$ac_dir" || { ac_status=$?; continue; }
1534    # Check for guested configure.
1535    if test -f "$ac_srcdir/configure.gnu"; then
1536      echo &&
1537      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1538    elif test -f "$ac_srcdir/configure"; then
1539      echo &&
1540      $SHELL "$ac_srcdir/configure" --help=recursive
1541    else
1542      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1543    fi || ac_status=$?
1544    cd "$ac_pwd" || { ac_status=$?; break; }
1545  done
1546fi
1547
1548test -n "$ac_init_help" && exit $ac_status
1549if $ac_init_version; then
1550  cat <<\_ACEOF
1551imake configure 1.0.7
1552generated by GNU Autoconf 2.69
1553
1554Copyright (C) 2012 Free Software Foundation, Inc.
1555This configure script is free software; the Free Software Foundation
1556gives unlimited permission to copy, distribute and modify it.
1557_ACEOF
1558  exit
1559fi
1560
1561## ------------------------ ##
1562## Autoconf initialization. ##
1563## ------------------------ ##
1564
1565# ac_fn_c_try_compile LINENO
1566# --------------------------
1567# Try to compile conftest.$ac_ext, and return whether this succeeded.
1568ac_fn_c_try_compile ()
1569{
1570  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571  rm -f conftest.$ac_objext
1572  if { { ac_try="$ac_compile"
1573case "(($ac_try" in
1574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575  *) ac_try_echo=$ac_try;;
1576esac
1577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578$as_echo "$ac_try_echo"; } >&5
1579  (eval "$ac_compile") 2>conftest.err
1580  ac_status=$?
1581  if test -s conftest.err; then
1582    grep -v '^ *+' conftest.err >conftest.er1
1583    cat conftest.er1 >&5
1584    mv -f conftest.er1 conftest.err
1585  fi
1586  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587  test $ac_status = 0; } && {
1588	 test -z "$ac_c_werror_flag" ||
1589	 test ! -s conftest.err
1590       } && test -s conftest.$ac_objext; then :
1591  ac_retval=0
1592else
1593  $as_echo "$as_me: failed program was:" >&5
1594sed 's/^/| /' conftest.$ac_ext >&5
1595
1596	ac_retval=1
1597fi
1598  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1599  as_fn_set_status $ac_retval
1600
1601} # ac_fn_c_try_compile
1602
1603# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1604# ---------------------------------------------
1605# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1606# accordingly.
1607ac_fn_c_check_decl ()
1608{
1609  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610  as_decl_name=`echo $2|sed 's/ *(.*//'`
1611  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1612  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1613$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1614if eval \${$3+:} false; then :
1615  $as_echo_n "(cached) " >&6
1616else
1617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1618/* end confdefs.h.  */
1619$4
1620int
1621main ()
1622{
1623#ifndef $as_decl_name
1624#ifdef __cplusplus
1625  (void) $as_decl_use;
1626#else
1627  (void) $as_decl_name;
1628#endif
1629#endif
1630
1631  ;
1632  return 0;
1633}
1634_ACEOF
1635if ac_fn_c_try_compile "$LINENO"; then :
1636  eval "$3=yes"
1637else
1638  eval "$3=no"
1639fi
1640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1641fi
1642eval ac_res=\$$3
1643	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644$as_echo "$ac_res" >&6; }
1645  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646
1647} # ac_fn_c_check_decl
1648
1649# ac_fn_c_try_cpp LINENO
1650# ----------------------
1651# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1652ac_fn_c_try_cpp ()
1653{
1654  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655  if { { ac_try="$ac_cpp conftest.$ac_ext"
1656case "(($ac_try" in
1657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658  *) ac_try_echo=$ac_try;;
1659esac
1660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661$as_echo "$ac_try_echo"; } >&5
1662  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1663  ac_status=$?
1664  if test -s conftest.err; then
1665    grep -v '^ *+' conftest.err >conftest.er1
1666    cat conftest.er1 >&5
1667    mv -f conftest.er1 conftest.err
1668  fi
1669  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670  test $ac_status = 0; } > conftest.i && {
1671	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1672	 test ! -s conftest.err
1673       }; then :
1674  ac_retval=0
1675else
1676  $as_echo "$as_me: failed program was:" >&5
1677sed 's/^/| /' conftest.$ac_ext >&5
1678
1679    ac_retval=1
1680fi
1681  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682  as_fn_set_status $ac_retval
1683
1684} # ac_fn_c_try_cpp
1685
1686# ac_fn_c_try_run LINENO
1687# ----------------------
1688# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1689# that executables *can* be run.
1690ac_fn_c_try_run ()
1691{
1692  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693  if { { ac_try="$ac_link"
1694case "(($ac_try" in
1695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696  *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699$as_echo "$ac_try_echo"; } >&5
1700  (eval "$ac_link") 2>&5
1701  ac_status=$?
1702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1704  { { case "(($ac_try" in
1705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706  *) ac_try_echo=$ac_try;;
1707esac
1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709$as_echo "$ac_try_echo"; } >&5
1710  (eval "$ac_try") 2>&5
1711  ac_status=$?
1712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713  test $ac_status = 0; }; }; then :
1714  ac_retval=0
1715else
1716  $as_echo "$as_me: program exited with status $ac_status" >&5
1717       $as_echo "$as_me: failed program was:" >&5
1718sed 's/^/| /' conftest.$ac_ext >&5
1719
1720       ac_retval=$ac_status
1721fi
1722  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724  as_fn_set_status $ac_retval
1725
1726} # ac_fn_c_try_run
1727
1728# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1729# -------------------------------------------------------
1730# Tests whether HEADER exists and can be compiled using the include files in
1731# INCLUDES, setting the cache variable VAR accordingly.
1732ac_fn_c_check_header_compile ()
1733{
1734  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736$as_echo_n "checking for $2... " >&6; }
1737if eval \${$3+:} false; then :
1738  $as_echo_n "(cached) " >&6
1739else
1740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741/* end confdefs.h.  */
1742$4
1743#include <$2>
1744_ACEOF
1745if ac_fn_c_try_compile "$LINENO"; then :
1746  eval "$3=yes"
1747else
1748  eval "$3=no"
1749fi
1750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1751fi
1752eval ac_res=\$$3
1753	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754$as_echo "$ac_res" >&6; }
1755  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756
1757} # ac_fn_c_check_header_compile
1758
1759# ac_fn_c_try_link LINENO
1760# -----------------------
1761# Try to link conftest.$ac_ext, and return whether this succeeded.
1762ac_fn_c_try_link ()
1763{
1764  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765  rm -f conftest.$ac_objext conftest$ac_exeext
1766  if { { ac_try="$ac_link"
1767case "(($ac_try" in
1768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769  *) ac_try_echo=$ac_try;;
1770esac
1771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772$as_echo "$ac_try_echo"; } >&5
1773  (eval "$ac_link") 2>conftest.err
1774  ac_status=$?
1775  if test -s conftest.err; then
1776    grep -v '^ *+' conftest.err >conftest.er1
1777    cat conftest.er1 >&5
1778    mv -f conftest.er1 conftest.err
1779  fi
1780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781  test $ac_status = 0; } && {
1782	 test -z "$ac_c_werror_flag" ||
1783	 test ! -s conftest.err
1784       } && test -s conftest$ac_exeext && {
1785	 test "$cross_compiling" = yes ||
1786	 test -x conftest$ac_exeext
1787       }; then :
1788  ac_retval=0
1789else
1790  $as_echo "$as_me: failed program was:" >&5
1791sed 's/^/| /' conftest.$ac_ext >&5
1792
1793	ac_retval=1
1794fi
1795  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1796  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1797  # interfere with the next link command; also delete a directory that is
1798  # left behind by Apple's compiler.  We do this before executing the actions.
1799  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1800  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801  as_fn_set_status $ac_retval
1802
1803} # ac_fn_c_try_link
1804
1805# ac_fn_c_check_func LINENO FUNC VAR
1806# ----------------------------------
1807# Tests whether FUNC exists, setting the cache variable VAR accordingly
1808ac_fn_c_check_func ()
1809{
1810  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812$as_echo_n "checking for $2... " >&6; }
1813if eval \${$3+:} false; then :
1814  $as_echo_n "(cached) " >&6
1815else
1816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817/* end confdefs.h.  */
1818/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1819   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1820#define $2 innocuous_$2
1821
1822/* System header to define __stub macros and hopefully few prototypes,
1823    which can conflict with char $2 (); below.
1824    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1825    <limits.h> exists even on freestanding compilers.  */
1826
1827#ifdef __STDC__
1828# include <limits.h>
1829#else
1830# include <assert.h>
1831#endif
1832
1833#undef $2
1834
1835/* Override any GCC internal prototype to avoid an error.
1836   Use char because int might match the return type of a GCC
1837   builtin and then its argument prototype would still apply.  */
1838#ifdef __cplusplus
1839extern "C"
1840#endif
1841char $2 ();
1842/* The GNU C library defines this for functions which it implements
1843    to always fail with ENOSYS.  Some functions are actually named
1844    something starting with __ and the normal name is an alias.  */
1845#if defined __stub_$2 || defined __stub___$2
1846choke me
1847#endif
1848
1849int
1850main ()
1851{
1852return $2 ();
1853  ;
1854  return 0;
1855}
1856_ACEOF
1857if ac_fn_c_try_link "$LINENO"; then :
1858  eval "$3=yes"
1859else
1860  eval "$3=no"
1861fi
1862rm -f core conftest.err conftest.$ac_objext \
1863    conftest$ac_exeext conftest.$ac_ext
1864fi
1865eval ac_res=\$$3
1866	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867$as_echo "$ac_res" >&6; }
1868  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869
1870} # ac_fn_c_check_func
1871cat >config.log <<_ACEOF
1872This file contains any messages produced by compilers while
1873running configure, to aid debugging if configure makes a mistake.
1874
1875It was created by imake $as_me 1.0.7, which was
1876generated by GNU Autoconf 2.69.  Invocation command line was
1877
1878  $ $0 $@
1879
1880_ACEOF
1881exec 5>>config.log
1882{
1883cat <<_ASUNAME
1884## --------- ##
1885## Platform. ##
1886## --------- ##
1887
1888hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1889uname -m = `(uname -m) 2>/dev/null || echo unknown`
1890uname -r = `(uname -r) 2>/dev/null || echo unknown`
1891uname -s = `(uname -s) 2>/dev/null || echo unknown`
1892uname -v = `(uname -v) 2>/dev/null || echo unknown`
1893
1894/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1895/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1896
1897/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1898/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1899/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1900/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1901/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1902/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1903/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1904
1905_ASUNAME
1906
1907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908for as_dir in $PATH
1909do
1910  IFS=$as_save_IFS
1911  test -z "$as_dir" && as_dir=.
1912    $as_echo "PATH: $as_dir"
1913  done
1914IFS=$as_save_IFS
1915
1916} >&5
1917
1918cat >&5 <<_ACEOF
1919
1920
1921## ----------- ##
1922## Core tests. ##
1923## ----------- ##
1924
1925_ACEOF
1926
1927
1928# Keep a trace of the command line.
1929# Strip out --no-create and --no-recursion so they do not pile up.
1930# Strip out --silent because we don't want to record it for future runs.
1931# Also quote any args containing shell meta-characters.
1932# Make two passes to allow for proper duplicate-argument suppression.
1933ac_configure_args=
1934ac_configure_args0=
1935ac_configure_args1=
1936ac_must_keep_next=false
1937for ac_pass in 1 2
1938do
1939  for ac_arg
1940  do
1941    case $ac_arg in
1942    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1943    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1944    | -silent | --silent | --silen | --sile | --sil)
1945      continue ;;
1946    *\'*)
1947      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1948    esac
1949    case $ac_pass in
1950    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1951    2)
1952      as_fn_append ac_configure_args1 " '$ac_arg'"
1953      if test $ac_must_keep_next = true; then
1954	ac_must_keep_next=false # Got value, back to normal.
1955      else
1956	case $ac_arg in
1957	  *=* | --config-cache | -C | -disable-* | --disable-* \
1958	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1959	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1960	  | -with-* | --with-* | -without-* | --without-* | --x)
1961	    case "$ac_configure_args0 " in
1962	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1963	    esac
1964	    ;;
1965	  -* ) ac_must_keep_next=true ;;
1966	esac
1967      fi
1968      as_fn_append ac_configure_args " '$ac_arg'"
1969      ;;
1970    esac
1971  done
1972done
1973{ ac_configure_args0=; unset ac_configure_args0;}
1974{ ac_configure_args1=; unset ac_configure_args1;}
1975
1976# When interrupted or exit'd, cleanup temporary files, and complete
1977# config.log.  We remove comments because anyway the quotes in there
1978# would cause problems or look ugly.
1979# WARNING: Use '\'' to represent an apostrophe within the trap.
1980# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1981trap 'exit_status=$?
1982  # Save into config.log some information that might help in debugging.
1983  {
1984    echo
1985
1986    $as_echo "## ---------------- ##
1987## Cache variables. ##
1988## ---------------- ##"
1989    echo
1990    # The following way of writing the cache mishandles newlines in values,
1991(
1992  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1993    eval ac_val=\$$ac_var
1994    case $ac_val in #(
1995    *${as_nl}*)
1996      case $ac_var in #(
1997      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1998$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1999      esac
2000      case $ac_var in #(
2001      _ | IFS | as_nl) ;; #(
2002      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2003      *) { eval $ac_var=; unset $ac_var;} ;;
2004      esac ;;
2005    esac
2006  done
2007  (set) 2>&1 |
2008    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2009    *${as_nl}ac_space=\ *)
2010      sed -n \
2011	"s/'\''/'\''\\\\'\'''\''/g;
2012	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2013      ;; #(
2014    *)
2015      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2016      ;;
2017    esac |
2018    sort
2019)
2020    echo
2021
2022    $as_echo "## ----------------- ##
2023## Output variables. ##
2024## ----------------- ##"
2025    echo
2026    for ac_var in $ac_subst_vars
2027    do
2028      eval ac_val=\$$ac_var
2029      case $ac_val in
2030      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2031      esac
2032      $as_echo "$ac_var='\''$ac_val'\''"
2033    done | sort
2034    echo
2035
2036    if test -n "$ac_subst_files"; then
2037      $as_echo "## ------------------- ##
2038## File substitutions. ##
2039## ------------------- ##"
2040      echo
2041      for ac_var in $ac_subst_files
2042      do
2043	eval ac_val=\$$ac_var
2044	case $ac_val in
2045	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2046	esac
2047	$as_echo "$ac_var='\''$ac_val'\''"
2048      done | sort
2049      echo
2050    fi
2051
2052    if test -s confdefs.h; then
2053      $as_echo "## ----------- ##
2054## confdefs.h. ##
2055## ----------- ##"
2056      echo
2057      cat confdefs.h
2058      echo
2059    fi
2060    test "$ac_signal" != 0 &&
2061      $as_echo "$as_me: caught signal $ac_signal"
2062    $as_echo "$as_me: exit $exit_status"
2063  } >&5
2064  rm -f core *.core core.conftest.* &&
2065    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2066    exit $exit_status
2067' 0
2068for ac_signal in 1 2 13 15; do
2069  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2070done
2071ac_signal=0
2072
2073# confdefs.h avoids OS command line length limits that DEFS can exceed.
2074rm -f -r conftest* confdefs.h
2075
2076$as_echo "/* confdefs.h */" > confdefs.h
2077
2078# Predefined preprocessor variables.
2079
2080cat >>confdefs.h <<_ACEOF
2081#define PACKAGE_NAME "$PACKAGE_NAME"
2082_ACEOF
2083
2084cat >>confdefs.h <<_ACEOF
2085#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2086_ACEOF
2087
2088cat >>confdefs.h <<_ACEOF
2089#define PACKAGE_VERSION "$PACKAGE_VERSION"
2090_ACEOF
2091
2092cat >>confdefs.h <<_ACEOF
2093#define PACKAGE_STRING "$PACKAGE_STRING"
2094_ACEOF
2095
2096cat >>confdefs.h <<_ACEOF
2097#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2098_ACEOF
2099
2100cat >>confdefs.h <<_ACEOF
2101#define PACKAGE_URL "$PACKAGE_URL"
2102_ACEOF
2103
2104
2105# Let the site file select an alternate cache file if it wants to.
2106# Prefer an explicitly selected file to automatically selected ones.
2107ac_site_file1=NONE
2108ac_site_file2=NONE
2109if test -n "$CONFIG_SITE"; then
2110  # We do not want a PATH search for config.site.
2111  case $CONFIG_SITE in #((
2112    -*)  ac_site_file1=./$CONFIG_SITE;;
2113    */*) ac_site_file1=$CONFIG_SITE;;
2114    *)   ac_site_file1=./$CONFIG_SITE;;
2115  esac
2116elif test "x$prefix" != xNONE; then
2117  ac_site_file1=$prefix/share/config.site
2118  ac_site_file2=$prefix/etc/config.site
2119else
2120  ac_site_file1=$ac_default_prefix/share/config.site
2121  ac_site_file2=$ac_default_prefix/etc/config.site
2122fi
2123for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2124do
2125  test "x$ac_site_file" = xNONE && continue
2126  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2127    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2128$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2129    sed 's/^/| /' "$ac_site_file" >&5
2130    . "$ac_site_file" \
2131      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2132$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2133as_fn_error $? "failed to load site script $ac_site_file
2134See \`config.log' for more details" "$LINENO" 5; }
2135  fi
2136done
2137
2138if test -r "$cache_file"; then
2139  # Some versions of bash will fail to source /dev/null (special files
2140  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2141  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2142    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2143$as_echo "$as_me: loading cache $cache_file" >&6;}
2144    case $cache_file in
2145      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2146      *)                      . "./$cache_file";;
2147    esac
2148  fi
2149else
2150  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2151$as_echo "$as_me: creating cache $cache_file" >&6;}
2152  >$cache_file
2153fi
2154
2155# Check that the precious variables saved in the cache have kept the same
2156# value.
2157ac_cache_corrupted=false
2158for ac_var in $ac_precious_vars; do
2159  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2160  eval ac_new_set=\$ac_env_${ac_var}_set
2161  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2162  eval ac_new_val=\$ac_env_${ac_var}_value
2163  case $ac_old_set,$ac_new_set in
2164    set,)
2165      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2166$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2167      ac_cache_corrupted=: ;;
2168    ,set)
2169      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2170$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2171      ac_cache_corrupted=: ;;
2172    ,);;
2173    *)
2174      if test "x$ac_old_val" != "x$ac_new_val"; then
2175	# differences in whitespace do not lead to failure.
2176	ac_old_val_w=`echo x $ac_old_val`
2177	ac_new_val_w=`echo x $ac_new_val`
2178	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2179	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2180$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2181	  ac_cache_corrupted=:
2182	else
2183	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2184$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2185	  eval $ac_var=\$ac_old_val
2186	fi
2187	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2188$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2189	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2190$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2191      fi;;
2192  esac
2193  # Pass precious variables to config.status.
2194  if test "$ac_new_set" = set; then
2195    case $ac_new_val in
2196    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2197    *) ac_arg=$ac_var=$ac_new_val ;;
2198    esac
2199    case " $ac_configure_args " in
2200      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2201      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2202    esac
2203  fi
2204done
2205if $ac_cache_corrupted; then
2206  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2207$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2208  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2209$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2210  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2211fi
2212## -------------------- ##
2213## Main body of script. ##
2214## -------------------- ##
2215
2216ac_ext=c
2217ac_cpp='$CPP $CPPFLAGS'
2218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2220ac_compiler_gnu=$ac_cv_c_compiler_gnu
2221
2222
2223
2224ac_config_headers="$ac_config_headers config.h"
2225
2226
2227# Initialize Automake
2228am__api_version='1.14'
2229
2230ac_aux_dir=
2231for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2232  if test -f "$ac_dir/install-sh"; then
2233    ac_aux_dir=$ac_dir
2234    ac_install_sh="$ac_aux_dir/install-sh -c"
2235    break
2236  elif test -f "$ac_dir/install.sh"; then
2237    ac_aux_dir=$ac_dir
2238    ac_install_sh="$ac_aux_dir/install.sh -c"
2239    break
2240  elif test -f "$ac_dir/shtool"; then
2241    ac_aux_dir=$ac_dir
2242    ac_install_sh="$ac_aux_dir/shtool install -c"
2243    break
2244  fi
2245done
2246if test -z "$ac_aux_dir"; then
2247  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2248fi
2249
2250# These three variables are undocumented and unsupported,
2251# and are intended to be withdrawn in a future Autoconf release.
2252# They can cause serious problems if a builder's source tree is in a directory
2253# whose full name contains unusual characters.
2254ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2255ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2256ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2257
2258
2259# Find a good install program.  We prefer a C program (faster),
2260# so one script is as good as another.  But avoid the broken or
2261# incompatible versions:
2262# SysV /etc/install, /usr/sbin/install
2263# SunOS /usr/etc/install
2264# IRIX /sbin/install
2265# AIX /bin/install
2266# AmigaOS /C/install, which installs bootblocks on floppy discs
2267# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2268# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2269# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2270# OS/2's system install, which has a completely different semantic
2271# ./install, which can be erroneously created by make from ./install.sh.
2272# Reject install programs that cannot install multiple files.
2273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2274$as_echo_n "checking for a BSD-compatible install... " >&6; }
2275if test -z "$INSTALL"; then
2276if ${ac_cv_path_install+:} false; then :
2277  $as_echo_n "(cached) " >&6
2278else
2279  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280for as_dir in $PATH
2281do
2282  IFS=$as_save_IFS
2283  test -z "$as_dir" && as_dir=.
2284    # Account for people who put trailing slashes in PATH elements.
2285case $as_dir/ in #((
2286  ./ | .// | /[cC]/* | \
2287  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2288  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2289  /usr/ucb/* ) ;;
2290  *)
2291    # OSF1 and SCO ODT 3.0 have their own names for install.
2292    # Don't use installbsd from OSF since it installs stuff as root
2293    # by default.
2294    for ac_prog in ginstall scoinst install; do
2295      for ac_exec_ext in '' $ac_executable_extensions; do
2296	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2297	  if test $ac_prog = install &&
2298	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2299	    # AIX install.  It has an incompatible calling convention.
2300	    :
2301	  elif test $ac_prog = install &&
2302	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2303	    # program-specific install script used by HP pwplus--don't use.
2304	    :
2305	  else
2306	    rm -rf conftest.one conftest.two conftest.dir
2307	    echo one > conftest.one
2308	    echo two > conftest.two
2309	    mkdir conftest.dir
2310	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2311	      test -s conftest.one && test -s conftest.two &&
2312	      test -s conftest.dir/conftest.one &&
2313	      test -s conftest.dir/conftest.two
2314	    then
2315	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2316	      break 3
2317	    fi
2318	  fi
2319	fi
2320      done
2321    done
2322    ;;
2323esac
2324
2325  done
2326IFS=$as_save_IFS
2327
2328rm -rf conftest.one conftest.two conftest.dir
2329
2330fi
2331  if test "${ac_cv_path_install+set}" = set; then
2332    INSTALL=$ac_cv_path_install
2333  else
2334    # As a last resort, use the slow shell script.  Don't cache a
2335    # value for INSTALL within a source directory, because that will
2336    # break other packages using the cache if that directory is
2337    # removed, or if the value is a relative name.
2338    INSTALL=$ac_install_sh
2339  fi
2340fi
2341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2342$as_echo "$INSTALL" >&6; }
2343
2344# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2345# It thinks the first close brace ends the variable substitution.
2346test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2347
2348test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2349
2350test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2351
2352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2353$as_echo_n "checking whether build environment is sane... " >&6; }
2354# Reject unsafe characters in $srcdir or the absolute working directory
2355# name.  Accept space and tab only in the latter.
2356am_lf='
2357'
2358case `pwd` in
2359  *[\\\"\#\$\&\'\`$am_lf]*)
2360    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2361esac
2362case $srcdir in
2363  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2364    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2365esac
2366
2367# Do 'set' in a subshell so we don't clobber the current shell's
2368# arguments.  Must try -L first in case configure is actually a
2369# symlink; some systems play weird games with the mod time of symlinks
2370# (eg FreeBSD returns the mod time of the symlink's containing
2371# directory).
2372if (
2373   am_has_slept=no
2374   for am_try in 1 2; do
2375     echo "timestamp, slept: $am_has_slept" > conftest.file
2376     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2377     if test "$*" = "X"; then
2378	# -L didn't work.
2379	set X `ls -t "$srcdir/configure" conftest.file`
2380     fi
2381     if test "$*" != "X $srcdir/configure conftest.file" \
2382	&& test "$*" != "X conftest.file $srcdir/configure"; then
2383
2384	# If neither matched, then we have a broken ls.  This can happen
2385	# if, for instance, CONFIG_SHELL is bash and it inherits a
2386	# broken ls alias from the environment.  This has actually
2387	# happened.  Such a system could not be considered "sane".
2388	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2389  alias in your environment" "$LINENO" 5
2390     fi
2391     if test "$2" = conftest.file || test $am_try -eq 2; then
2392       break
2393     fi
2394     # Just in case.
2395     sleep 1
2396     am_has_slept=yes
2397   done
2398   test "$2" = conftest.file
2399   )
2400then
2401   # Ok.
2402   :
2403else
2404   as_fn_error $? "newly created file is older than distributed files!
2405Check your system clock" "$LINENO" 5
2406fi
2407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2408$as_echo "yes" >&6; }
2409# If we didn't sleep, we still need to ensure time stamps of config.status and
2410# generated files are strictly newer.
2411am_sleep_pid=
2412if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2413  ( sleep 1 ) &
2414  am_sleep_pid=$!
2415fi
2416
2417rm -f conftest.file
2418
2419test "$program_prefix" != NONE &&
2420  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2421# Use a double $ so make ignores it.
2422test "$program_suffix" != NONE &&
2423  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2424# Double any \ or $.
2425# By default was `s,x,x', remove it if useless.
2426ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2427program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2428
2429# expand $ac_aux_dir to an absolute path
2430am_aux_dir=`cd $ac_aux_dir && pwd`
2431
2432if test x"${MISSING+set}" != xset; then
2433  case $am_aux_dir in
2434  *\ * | *\	*)
2435    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2436  *)
2437    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2438  esac
2439fi
2440# Use eval to expand $SHELL
2441if eval "$MISSING --is-lightweight"; then
2442  am_missing_run="$MISSING "
2443else
2444  am_missing_run=
2445  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2446$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2447fi
2448
2449if test x"${install_sh}" != xset; then
2450  case $am_aux_dir in
2451  *\ * | *\	*)
2452    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2453  *)
2454    install_sh="\${SHELL} $am_aux_dir/install-sh"
2455  esac
2456fi
2457
2458# Installed binaries are usually stripped using 'strip' when the user
2459# run "make install-strip".  However 'strip' might not be the right
2460# tool to use in cross-compilation environments, therefore Automake
2461# will honor the 'STRIP' environment variable to overrule this program.
2462if test "$cross_compiling" != no; then
2463  if test -n "$ac_tool_prefix"; then
2464  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2465set dummy ${ac_tool_prefix}strip; ac_word=$2
2466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2467$as_echo_n "checking for $ac_word... " >&6; }
2468if ${ac_cv_prog_STRIP+:} false; then :
2469  $as_echo_n "(cached) " >&6
2470else
2471  if test -n "$STRIP"; then
2472  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2473else
2474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475for as_dir in $PATH
2476do
2477  IFS=$as_save_IFS
2478  test -z "$as_dir" && as_dir=.
2479    for ac_exec_ext in '' $ac_executable_extensions; do
2480  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2481    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2482    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2483    break 2
2484  fi
2485done
2486  done
2487IFS=$as_save_IFS
2488
2489fi
2490fi
2491STRIP=$ac_cv_prog_STRIP
2492if test -n "$STRIP"; then
2493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2494$as_echo "$STRIP" >&6; }
2495else
2496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2497$as_echo "no" >&6; }
2498fi
2499
2500
2501fi
2502if test -z "$ac_cv_prog_STRIP"; then
2503  ac_ct_STRIP=$STRIP
2504  # Extract the first word of "strip", so it can be a program name with args.
2505set dummy strip; ac_word=$2
2506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2507$as_echo_n "checking for $ac_word... " >&6; }
2508if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2509  $as_echo_n "(cached) " >&6
2510else
2511  if test -n "$ac_ct_STRIP"; then
2512  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2513else
2514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515for as_dir in $PATH
2516do
2517  IFS=$as_save_IFS
2518  test -z "$as_dir" && as_dir=.
2519    for ac_exec_ext in '' $ac_executable_extensions; do
2520  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2521    ac_cv_prog_ac_ct_STRIP="strip"
2522    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2523    break 2
2524  fi
2525done
2526  done
2527IFS=$as_save_IFS
2528
2529fi
2530fi
2531ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2532if test -n "$ac_ct_STRIP"; then
2533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2534$as_echo "$ac_ct_STRIP" >&6; }
2535else
2536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2537$as_echo "no" >&6; }
2538fi
2539
2540  if test "x$ac_ct_STRIP" = x; then
2541    STRIP=":"
2542  else
2543    case $cross_compiling:$ac_tool_warned in
2544yes:)
2545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2547ac_tool_warned=yes ;;
2548esac
2549    STRIP=$ac_ct_STRIP
2550  fi
2551else
2552  STRIP="$ac_cv_prog_STRIP"
2553fi
2554
2555fi
2556INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2557
2558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2559$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2560if test -z "$MKDIR_P"; then
2561  if ${ac_cv_path_mkdir+:} false; then :
2562  $as_echo_n "(cached) " >&6
2563else
2564  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2566do
2567  IFS=$as_save_IFS
2568  test -z "$as_dir" && as_dir=.
2569    for ac_prog in mkdir gmkdir; do
2570	 for ac_exec_ext in '' $ac_executable_extensions; do
2571	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2572	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2573	     'mkdir (GNU coreutils) '* | \
2574	     'mkdir (coreutils) '* | \
2575	     'mkdir (fileutils) '4.1*)
2576	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2577	       break 3;;
2578	   esac
2579	 done
2580       done
2581  done
2582IFS=$as_save_IFS
2583
2584fi
2585
2586  test -d ./--version && rmdir ./--version
2587  if test "${ac_cv_path_mkdir+set}" = set; then
2588    MKDIR_P="$ac_cv_path_mkdir -p"
2589  else
2590    # As a last resort, use the slow shell script.  Don't cache a
2591    # value for MKDIR_P within a source directory, because that will
2592    # break other packages using the cache if that directory is
2593    # removed, or if the value is a relative name.
2594    MKDIR_P="$ac_install_sh -d"
2595  fi
2596fi
2597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2598$as_echo "$MKDIR_P" >&6; }
2599
2600for ac_prog in gawk mawk nawk awk
2601do
2602  # Extract the first word of "$ac_prog", so it can be a program name with args.
2603set dummy $ac_prog; ac_word=$2
2604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2605$as_echo_n "checking for $ac_word... " >&6; }
2606if ${ac_cv_prog_AWK+:} false; then :
2607  $as_echo_n "(cached) " >&6
2608else
2609  if test -n "$AWK"; then
2610  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2611else
2612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613for as_dir in $PATH
2614do
2615  IFS=$as_save_IFS
2616  test -z "$as_dir" && as_dir=.
2617    for ac_exec_ext in '' $ac_executable_extensions; do
2618  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2619    ac_cv_prog_AWK="$ac_prog"
2620    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2621    break 2
2622  fi
2623done
2624  done
2625IFS=$as_save_IFS
2626
2627fi
2628fi
2629AWK=$ac_cv_prog_AWK
2630if test -n "$AWK"; then
2631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2632$as_echo "$AWK" >&6; }
2633else
2634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635$as_echo "no" >&6; }
2636fi
2637
2638
2639  test -n "$AWK" && break
2640done
2641
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2643$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2644set x ${MAKE-make}
2645ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2646if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2647  $as_echo_n "(cached) " >&6
2648else
2649  cat >conftest.make <<\_ACEOF
2650SHELL = /bin/sh
2651all:
2652	@echo '@@@%%%=$(MAKE)=@@@%%%'
2653_ACEOF
2654# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2655case `${MAKE-make} -f conftest.make 2>/dev/null` in
2656  *@@@%%%=?*=@@@%%%*)
2657    eval ac_cv_prog_make_${ac_make}_set=yes;;
2658  *)
2659    eval ac_cv_prog_make_${ac_make}_set=no;;
2660esac
2661rm -f conftest.make
2662fi
2663if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2665$as_echo "yes" >&6; }
2666  SET_MAKE=
2667else
2668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669$as_echo "no" >&6; }
2670  SET_MAKE="MAKE=${MAKE-make}"
2671fi
2672
2673rm -rf .tst 2>/dev/null
2674mkdir .tst 2>/dev/null
2675if test -d .tst; then
2676  am__leading_dot=.
2677else
2678  am__leading_dot=_
2679fi
2680rmdir .tst 2>/dev/null
2681
2682# Check whether --enable-silent-rules was given.
2683if test "${enable_silent_rules+set}" = set; then :
2684  enableval=$enable_silent_rules;
2685fi
2686
2687case $enable_silent_rules in # (((
2688  yes) AM_DEFAULT_VERBOSITY=0;;
2689   no) AM_DEFAULT_VERBOSITY=1;;
2690    *) AM_DEFAULT_VERBOSITY=1;;
2691esac
2692am_make=${MAKE-make}
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2694$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2695if ${am_cv_make_support_nested_variables+:} false; then :
2696  $as_echo_n "(cached) " >&6
2697else
2698  if $as_echo 'TRUE=$(BAR$(V))
2699BAR0=false
2700BAR1=true
2701V=1
2702am__doit:
2703	@$(TRUE)
2704.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2705  am_cv_make_support_nested_variables=yes
2706else
2707  am_cv_make_support_nested_variables=no
2708fi
2709fi
2710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2711$as_echo "$am_cv_make_support_nested_variables" >&6; }
2712if test $am_cv_make_support_nested_variables = yes; then
2713    AM_V='$(V)'
2714  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2715else
2716  AM_V=$AM_DEFAULT_VERBOSITY
2717  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2718fi
2719AM_BACKSLASH='\'
2720
2721if test "`cd $srcdir && pwd`" != "`pwd`"; then
2722  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2723  # is not polluted with repeated "-I."
2724  am__isrc=' -I$(srcdir)'
2725  # test to see if srcdir already configured
2726  if test -f $srcdir/config.status; then
2727    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2728  fi
2729fi
2730
2731# test whether we have cygpath
2732if test -z "$CYGPATH_W"; then
2733  if (cygpath --version) >/dev/null 2>/dev/null; then
2734    CYGPATH_W='cygpath -w'
2735  else
2736    CYGPATH_W=echo
2737  fi
2738fi
2739
2740
2741# Define the identity of the package.
2742 PACKAGE='imake'
2743 VERSION='1.0.7'
2744
2745
2746cat >>confdefs.h <<_ACEOF
2747#define PACKAGE "$PACKAGE"
2748_ACEOF
2749
2750
2751cat >>confdefs.h <<_ACEOF
2752#define VERSION "$VERSION"
2753_ACEOF
2754
2755# Some tools Automake needs.
2756
2757ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2758
2759
2760AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2761
2762
2763AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2764
2765
2766AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2767
2768
2769MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2770
2771# For better backward compatibility.  To be removed once Automake 1.9.x
2772# dies out for good.  For more background, see:
2773# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2774# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2775mkdir_p='$(MKDIR_P)'
2776
2777# We need awk for the "check" target.  The system "awk" is bad on
2778# some platforms.
2779# Always define AMTAR for backward compatibility.  Yes, it's still used
2780# in the wild :-(  We should find a proper way to deprecate it ...
2781AMTAR='$${TAR-tar}'
2782
2783
2784# We'll loop over all known methods to create a tar archive until one works.
2785_am_tools='gnutar  pax cpio none'
2786
2787am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2788
2789
2790
2791
2792
2793
2794# POSIX will say in a future version that running "rm -f" with no argument
2795# is OK; and we want to be able to make that assumption in our Makefile
2796# recipes.  So use an aggressive probe to check that the usage we want is
2797# actually supported "in the wild" to an acceptable degree.
2798# See automake bug#10828.
2799# To make any issue more visible, cause the running configure to be aborted
2800# by default if the 'rm' program in use doesn't match our expectations; the
2801# user can still override this though.
2802if rm -f && rm -fr && rm -rf; then : OK; else
2803  cat >&2 <<'END'
2804Oops!
2805
2806Your 'rm' program seems unable to run without file operands specified
2807on the command line, even when the '-f' option is present.  This is contrary
2808to the behaviour of most rm programs out there, and not conforming with
2809the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2810
2811Please tell bug-automake@gnu.org about your system, including the value
2812of your $PATH and any error possibly output before this message.  This
2813can help us improve future automake versions.
2814
2815END
2816  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2817    echo 'Configuration will proceed anyway, since you have set the' >&2
2818    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2819    echo >&2
2820  else
2821    cat >&2 <<'END'
2822Aborting the configuration process, to ensure you take notice of the issue.
2823
2824You can download and install GNU coreutils to get an 'rm' implementation
2825that behaves properly: <http://www.gnu.org/software/coreutils/>.
2826
2827If you want to complete the configuration process using your problematic
2828'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2829to "yes", and re-run configure.
2830
2831END
2832    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2833  fi
2834fi
2835
2836
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2838$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2839    # Check whether --enable-maintainer-mode was given.
2840if test "${enable_maintainer_mode+set}" = set; then :
2841  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2842else
2843  USE_MAINTAINER_MODE=no
2844fi
2845
2846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2847$as_echo "$USE_MAINTAINER_MODE" >&6; }
2848   if test $USE_MAINTAINER_MODE = yes; then
2849  MAINTAINER_MODE_TRUE=
2850  MAINTAINER_MODE_FALSE='#'
2851else
2852  MAINTAINER_MODE_TRUE='#'
2853  MAINTAINER_MODE_FALSE=
2854fi
2855
2856  MAINT=$MAINTAINER_MODE_TRUE
2857
2858
2859
2860# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872DEPDIR="${am__leading_dot}deps"
2873
2874ac_config_commands="$ac_config_commands depfiles"
2875
2876
2877am_make=${MAKE-make}
2878cat > confinc << 'END'
2879am__doit:
2880	@echo this is the am__doit target
2881.PHONY: am__doit
2882END
2883# If we don't find an include directive, just comment out the code.
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2885$as_echo_n "checking for style of include used by $am_make... " >&6; }
2886am__include="#"
2887am__quote=
2888_am_result=none
2889# First try GNU make style include.
2890echo "include confinc" > confmf
2891# Ignore all kinds of additional output from 'make'.
2892case `$am_make -s -f confmf 2> /dev/null` in #(
2893*the\ am__doit\ target*)
2894  am__include=include
2895  am__quote=
2896  _am_result=GNU
2897  ;;
2898esac
2899# Now try BSD make style include.
2900if test "$am__include" = "#"; then
2901   echo '.include "confinc"' > confmf
2902   case `$am_make -s -f confmf 2> /dev/null` in #(
2903   *the\ am__doit\ target*)
2904     am__include=.include
2905     am__quote="\""
2906     _am_result=BSD
2907     ;;
2908   esac
2909fi
2910
2911
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2913$as_echo "$_am_result" >&6; }
2914rm -f confinc confmf
2915
2916# Check whether --enable-dependency-tracking was given.
2917if test "${enable_dependency_tracking+set}" = set; then :
2918  enableval=$enable_dependency_tracking;
2919fi
2920
2921if test "x$enable_dependency_tracking" != xno; then
2922  am_depcomp="$ac_aux_dir/depcomp"
2923  AMDEPBACKSLASH='\'
2924  am__nodep='_no'
2925fi
2926 if test "x$enable_dependency_tracking" != xno; then
2927  AMDEP_TRUE=
2928  AMDEP_FALSE='#'
2929else
2930  AMDEP_TRUE='#'
2931  AMDEP_FALSE=
2932fi
2933
2934
2935ac_ext=c
2936ac_cpp='$CPP $CPPFLAGS'
2937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2939ac_compiler_gnu=$ac_cv_c_compiler_gnu
2940if test -n "$ac_tool_prefix"; then
2941  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2942set dummy ${ac_tool_prefix}gcc; ac_word=$2
2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944$as_echo_n "checking for $ac_word... " >&6; }
2945if ${ac_cv_prog_CC+:} false; then :
2946  $as_echo_n "(cached) " >&6
2947else
2948  if test -n "$CC"; then
2949  ac_cv_prog_CC="$CC" # Let the user override the test.
2950else
2951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952for as_dir in $PATH
2953do
2954  IFS=$as_save_IFS
2955  test -z "$as_dir" && as_dir=.
2956    for ac_exec_ext in '' $ac_executable_extensions; do
2957  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2958    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2959    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2960    break 2
2961  fi
2962done
2963  done
2964IFS=$as_save_IFS
2965
2966fi
2967fi
2968CC=$ac_cv_prog_CC
2969if test -n "$CC"; then
2970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2971$as_echo "$CC" >&6; }
2972else
2973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974$as_echo "no" >&6; }
2975fi
2976
2977
2978fi
2979if test -z "$ac_cv_prog_CC"; then
2980  ac_ct_CC=$CC
2981  # Extract the first word of "gcc", so it can be a program name with args.
2982set dummy gcc; ac_word=$2
2983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984$as_echo_n "checking for $ac_word... " >&6; }
2985if ${ac_cv_prog_ac_ct_CC+:} false; then :
2986  $as_echo_n "(cached) " >&6
2987else
2988  if test -n "$ac_ct_CC"; then
2989  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2990else
2991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992for as_dir in $PATH
2993do
2994  IFS=$as_save_IFS
2995  test -z "$as_dir" && as_dir=.
2996    for ac_exec_ext in '' $ac_executable_extensions; do
2997  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2998    ac_cv_prog_ac_ct_CC="gcc"
2999    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000    break 2
3001  fi
3002done
3003  done
3004IFS=$as_save_IFS
3005
3006fi
3007fi
3008ac_ct_CC=$ac_cv_prog_ac_ct_CC
3009if test -n "$ac_ct_CC"; then
3010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3011$as_echo "$ac_ct_CC" >&6; }
3012else
3013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014$as_echo "no" >&6; }
3015fi
3016
3017  if test "x$ac_ct_CC" = x; then
3018    CC=""
3019  else
3020    case $cross_compiling:$ac_tool_warned in
3021yes:)
3022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3024ac_tool_warned=yes ;;
3025esac
3026    CC=$ac_ct_CC
3027  fi
3028else
3029  CC="$ac_cv_prog_CC"
3030fi
3031
3032if test -z "$CC"; then
3033          if test -n "$ac_tool_prefix"; then
3034    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3035set dummy ${ac_tool_prefix}cc; ac_word=$2
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037$as_echo_n "checking for $ac_word... " >&6; }
3038if ${ac_cv_prog_CC+:} false; then :
3039  $as_echo_n "(cached) " >&6
3040else
3041  if test -n "$CC"; then
3042  ac_cv_prog_CC="$CC" # Let the user override the test.
3043else
3044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045for as_dir in $PATH
3046do
3047  IFS=$as_save_IFS
3048  test -z "$as_dir" && as_dir=.
3049    for ac_exec_ext in '' $ac_executable_extensions; do
3050  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3051    ac_cv_prog_CC="${ac_tool_prefix}cc"
3052    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053    break 2
3054  fi
3055done
3056  done
3057IFS=$as_save_IFS
3058
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
3071  fi
3072fi
3073if test -z "$CC"; then
3074  # Extract the first word of "cc", so it can be a program name with args.
3075set dummy cc; ac_word=$2
3076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077$as_echo_n "checking for $ac_word... " >&6; }
3078if ${ac_cv_prog_CC+:} false; then :
3079  $as_echo_n "(cached) " >&6
3080else
3081  if test -n "$CC"; then
3082  ac_cv_prog_CC="$CC" # Let the user override the test.
3083else
3084  ac_prog_rejected=no
3085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086for as_dir in $PATH
3087do
3088  IFS=$as_save_IFS
3089  test -z "$as_dir" && as_dir=.
3090    for ac_exec_ext in '' $ac_executable_extensions; do
3091  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3093       ac_prog_rejected=yes
3094       continue
3095     fi
3096    ac_cv_prog_CC="cc"
3097    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3098    break 2
3099  fi
3100done
3101  done
3102IFS=$as_save_IFS
3103
3104if test $ac_prog_rejected = yes; then
3105  # We found a bogon in the path, so make sure we never use it.
3106  set dummy $ac_cv_prog_CC
3107  shift
3108  if test $# != 0; then
3109    # We chose a different compiler from the bogus one.
3110    # However, it has the same basename, so the bogon will be chosen
3111    # first if we set CC to just the basename; use the full file name.
3112    shift
3113    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3114  fi
3115fi
3116fi
3117fi
3118CC=$ac_cv_prog_CC
3119if test -n "$CC"; then
3120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3121$as_echo "$CC" >&6; }
3122else
3123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124$as_echo "no" >&6; }
3125fi
3126
3127
3128fi
3129if test -z "$CC"; then
3130  if test -n "$ac_tool_prefix"; then
3131  for ac_prog in cl.exe
3132  do
3133    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3134set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136$as_echo_n "checking for $ac_word... " >&6; }
3137if ${ac_cv_prog_CC+:} false; then :
3138  $as_echo_n "(cached) " >&6
3139else
3140  if test -n "$CC"; then
3141  ac_cv_prog_CC="$CC" # Let the user override the test.
3142else
3143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144for as_dir in $PATH
3145do
3146  IFS=$as_save_IFS
3147  test -z "$as_dir" && as_dir=.
3148    for ac_exec_ext in '' $ac_executable_extensions; do
3149  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3150    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3151    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3152    break 2
3153  fi
3154done
3155  done
3156IFS=$as_save_IFS
3157
3158fi
3159fi
3160CC=$ac_cv_prog_CC
3161if test -n "$CC"; then
3162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3163$as_echo "$CC" >&6; }
3164else
3165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166$as_echo "no" >&6; }
3167fi
3168
3169
3170    test -n "$CC" && break
3171  done
3172fi
3173if test -z "$CC"; then
3174  ac_ct_CC=$CC
3175  for ac_prog in cl.exe
3176do
3177  # Extract the first word of "$ac_prog", so it can be a program name with args.
3178set dummy $ac_prog; ac_word=$2
3179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180$as_echo_n "checking for $ac_word... " >&6; }
3181if ${ac_cv_prog_ac_ct_CC+:} false; then :
3182  $as_echo_n "(cached) " >&6
3183else
3184  if test -n "$ac_ct_CC"; then
3185  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3186else
3187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188for as_dir in $PATH
3189do
3190  IFS=$as_save_IFS
3191  test -z "$as_dir" && as_dir=.
3192    for ac_exec_ext in '' $ac_executable_extensions; do
3193  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3194    ac_cv_prog_ac_ct_CC="$ac_prog"
3195    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3196    break 2
3197  fi
3198done
3199  done
3200IFS=$as_save_IFS
3201
3202fi
3203fi
3204ac_ct_CC=$ac_cv_prog_ac_ct_CC
3205if test -n "$ac_ct_CC"; then
3206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3207$as_echo "$ac_ct_CC" >&6; }
3208else
3209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210$as_echo "no" >&6; }
3211fi
3212
3213
3214  test -n "$ac_ct_CC" && break
3215done
3216
3217  if test "x$ac_ct_CC" = x; then
3218    CC=""
3219  else
3220    case $cross_compiling:$ac_tool_warned in
3221yes:)
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3223$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3224ac_tool_warned=yes ;;
3225esac
3226    CC=$ac_ct_CC
3227  fi
3228fi
3229
3230fi
3231
3232
3233test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3234$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3235as_fn_error $? "no acceptable C compiler found in \$PATH
3236See \`config.log' for more details" "$LINENO" 5; }
3237
3238# Provide some information about the compiler.
3239$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3240set X $ac_compile
3241ac_compiler=$2
3242for ac_option in --version -v -V -qversion; do
3243  { { ac_try="$ac_compiler $ac_option >&5"
3244case "(($ac_try" in
3245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246  *) ac_try_echo=$ac_try;;
3247esac
3248eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3249$as_echo "$ac_try_echo"; } >&5
3250  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3251  ac_status=$?
3252  if test -s conftest.err; then
3253    sed '10a\
3254... rest of stderr output deleted ...
3255         10q' conftest.err >conftest.er1
3256    cat conftest.er1 >&5
3257  fi
3258  rm -f conftest.er1 conftest.err
3259  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260  test $ac_status = 0; }
3261done
3262
3263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264/* end confdefs.h.  */
3265
3266int
3267main ()
3268{
3269
3270  ;
3271  return 0;
3272}
3273_ACEOF
3274ac_clean_files_save=$ac_clean_files
3275ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3276# Try to create an executable without -o first, disregard a.out.
3277# It will help us diagnose broken compilers, and finding out an intuition
3278# of exeext.
3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3280$as_echo_n "checking whether the C compiler works... " >&6; }
3281ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3282
3283# The possible output files:
3284ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3285
3286ac_rmfiles=
3287for ac_file in $ac_files
3288do
3289  case $ac_file in
3290    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3291    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3292  esac
3293done
3294rm -f $ac_rmfiles
3295
3296if { { ac_try="$ac_link_default"
3297case "(($ac_try" in
3298  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299  *) ac_try_echo=$ac_try;;
3300esac
3301eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3302$as_echo "$ac_try_echo"; } >&5
3303  (eval "$ac_link_default") 2>&5
3304  ac_status=$?
3305  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3306  test $ac_status = 0; }; then :
3307  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3308# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3309# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3310# so that the user can short-circuit this test for compilers unknown to
3311# Autoconf.
3312for ac_file in $ac_files ''
3313do
3314  test -f "$ac_file" || continue
3315  case $ac_file in
3316    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3317	;;
3318    [ab].out )
3319	# We found the default executable, but exeext='' is most
3320	# certainly right.
3321	break;;
3322    *.* )
3323	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3324	then :; else
3325	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3326	fi
3327	# We set ac_cv_exeext here because the later test for it is not
3328	# safe: cross compilers may not add the suffix if given an `-o'
3329	# argument, so we may need to know it at that point already.
3330	# Even if this section looks crufty: it has the advantage of
3331	# actually working.
3332	break;;
3333    * )
3334	break;;
3335  esac
3336done
3337test "$ac_cv_exeext" = no && ac_cv_exeext=
3338
3339else
3340  ac_file=''
3341fi
3342if test -z "$ac_file"; then :
3343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344$as_echo "no" >&6; }
3345$as_echo "$as_me: failed program was:" >&5
3346sed 's/^/| /' conftest.$ac_ext >&5
3347
3348{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3349$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3350as_fn_error 77 "C compiler cannot create executables
3351See \`config.log' for more details" "$LINENO" 5; }
3352else
3353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3354$as_echo "yes" >&6; }
3355fi
3356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3357$as_echo_n "checking for C compiler default output file name... " >&6; }
3358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3359$as_echo "$ac_file" >&6; }
3360ac_exeext=$ac_cv_exeext
3361
3362rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3363ac_clean_files=$ac_clean_files_save
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3365$as_echo_n "checking for suffix of executables... " >&6; }
3366if { { ac_try="$ac_link"
3367case "(($ac_try" in
3368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369  *) ac_try_echo=$ac_try;;
3370esac
3371eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3372$as_echo "$ac_try_echo"; } >&5
3373  (eval "$ac_link") 2>&5
3374  ac_status=$?
3375  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3376  test $ac_status = 0; }; then :
3377  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3378# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3379# work properly (i.e., refer to `conftest.exe'), while it won't with
3380# `rm'.
3381for ac_file in conftest.exe conftest conftest.*; do
3382  test -f "$ac_file" || continue
3383  case $ac_file in
3384    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3385    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3386	  break;;
3387    * ) break;;
3388  esac
3389done
3390else
3391  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3394See \`config.log' for more details" "$LINENO" 5; }
3395fi
3396rm -f conftest conftest$ac_cv_exeext
3397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3398$as_echo "$ac_cv_exeext" >&6; }
3399
3400rm -f conftest.$ac_ext
3401EXEEXT=$ac_cv_exeext
3402ac_exeext=$EXEEXT
3403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404/* end confdefs.h.  */
3405#include <stdio.h>
3406int
3407main ()
3408{
3409FILE *f = fopen ("conftest.out", "w");
3410 return ferror (f) || fclose (f) != 0;
3411
3412  ;
3413  return 0;
3414}
3415_ACEOF
3416ac_clean_files="$ac_clean_files conftest.out"
3417# Check that the compiler produces executables we can run.  If not, either
3418# the compiler is broken, or we cross compile.
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3420$as_echo_n "checking whether we are cross compiling... " >&6; }
3421if test "$cross_compiling" != yes; then
3422  { { ac_try="$ac_link"
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_link") 2>&5
3430  ac_status=$?
3431  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3432  test $ac_status = 0; }
3433  if { ac_try='./conftest$ac_cv_exeext'
3434  { { case "(($ac_try" in
3435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436  *) ac_try_echo=$ac_try;;
3437esac
3438eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3439$as_echo "$ac_try_echo"; } >&5
3440  (eval "$ac_try") 2>&5
3441  ac_status=$?
3442  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443  test $ac_status = 0; }; }; then
3444    cross_compiling=no
3445  else
3446    if test "$cross_compiling" = maybe; then
3447	cross_compiling=yes
3448    else
3449	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3450$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3451as_fn_error $? "cannot run C compiled programs.
3452If you meant to cross compile, use \`--host'.
3453See \`config.log' for more details" "$LINENO" 5; }
3454    fi
3455  fi
3456fi
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3458$as_echo "$cross_compiling" >&6; }
3459
3460rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3461ac_clean_files=$ac_clean_files_save
3462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3463$as_echo_n "checking for suffix of object files... " >&6; }
3464if ${ac_cv_objext+:} false; then :
3465  $as_echo_n "(cached) " >&6
3466else
3467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468/* end confdefs.h.  */
3469
3470int
3471main ()
3472{
3473
3474  ;
3475  return 0;
3476}
3477_ACEOF
3478rm -f conftest.o conftest.obj
3479if { { ac_try="$ac_compile"
3480case "(($ac_try" in
3481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482  *) ac_try_echo=$ac_try;;
3483esac
3484eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3485$as_echo "$ac_try_echo"; } >&5
3486  (eval "$ac_compile") 2>&5
3487  ac_status=$?
3488  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3489  test $ac_status = 0; }; then :
3490  for ac_file in conftest.o conftest.obj conftest.*; do
3491  test -f "$ac_file" || continue;
3492  case $ac_file in
3493    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3494    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3495       break;;
3496  esac
3497done
3498else
3499  $as_echo "$as_me: failed program was:" >&5
3500sed 's/^/| /' conftest.$ac_ext >&5
3501
3502{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3504as_fn_error $? "cannot compute suffix of object files: cannot compile
3505See \`config.log' for more details" "$LINENO" 5; }
3506fi
3507rm -f conftest.$ac_cv_objext conftest.$ac_ext
3508fi
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3510$as_echo "$ac_cv_objext" >&6; }
3511OBJEXT=$ac_cv_objext
3512ac_objext=$OBJEXT
3513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3514$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3515if ${ac_cv_c_compiler_gnu+:} false; then :
3516  $as_echo_n "(cached) " >&6
3517else
3518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519/* end confdefs.h.  */
3520
3521int
3522main ()
3523{
3524#ifndef __GNUC__
3525       choke me
3526#endif
3527
3528  ;
3529  return 0;
3530}
3531_ACEOF
3532if ac_fn_c_try_compile "$LINENO"; then :
3533  ac_compiler_gnu=yes
3534else
3535  ac_compiler_gnu=no
3536fi
3537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3538ac_cv_c_compiler_gnu=$ac_compiler_gnu
3539
3540fi
3541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3542$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3543if test $ac_compiler_gnu = yes; then
3544  GCC=yes
3545else
3546  GCC=
3547fi
3548ac_test_CFLAGS=${CFLAGS+set}
3549ac_save_CFLAGS=$CFLAGS
3550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3551$as_echo_n "checking whether $CC accepts -g... " >&6; }
3552if ${ac_cv_prog_cc_g+:} false; then :
3553  $as_echo_n "(cached) " >&6
3554else
3555  ac_save_c_werror_flag=$ac_c_werror_flag
3556   ac_c_werror_flag=yes
3557   ac_cv_prog_cc_g=no
3558   CFLAGS="-g"
3559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560/* end confdefs.h.  */
3561
3562int
3563main ()
3564{
3565
3566  ;
3567  return 0;
3568}
3569_ACEOF
3570if ac_fn_c_try_compile "$LINENO"; then :
3571  ac_cv_prog_cc_g=yes
3572else
3573  CFLAGS=""
3574      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575/* end confdefs.h.  */
3576
3577int
3578main ()
3579{
3580
3581  ;
3582  return 0;
3583}
3584_ACEOF
3585if ac_fn_c_try_compile "$LINENO"; then :
3586
3587else
3588  ac_c_werror_flag=$ac_save_c_werror_flag
3589	 CFLAGS="-g"
3590	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591/* end confdefs.h.  */
3592
3593int
3594main ()
3595{
3596
3597  ;
3598  return 0;
3599}
3600_ACEOF
3601if ac_fn_c_try_compile "$LINENO"; then :
3602  ac_cv_prog_cc_g=yes
3603fi
3604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605fi
3606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607fi
3608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609   ac_c_werror_flag=$ac_save_c_werror_flag
3610fi
3611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3612$as_echo "$ac_cv_prog_cc_g" >&6; }
3613if test "$ac_test_CFLAGS" = set; then
3614  CFLAGS=$ac_save_CFLAGS
3615elif test $ac_cv_prog_cc_g = yes; then
3616  if test "$GCC" = yes; then
3617    CFLAGS="-g -O2"
3618  else
3619    CFLAGS="-g"
3620  fi
3621else
3622  if test "$GCC" = yes; then
3623    CFLAGS="-O2"
3624  else
3625    CFLAGS=
3626  fi
3627fi
3628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3629$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3630if ${ac_cv_prog_cc_c89+:} false; then :
3631  $as_echo_n "(cached) " >&6
3632else
3633  ac_cv_prog_cc_c89=no
3634ac_save_CC=$CC
3635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636/* end confdefs.h.  */
3637#include <stdarg.h>
3638#include <stdio.h>
3639struct stat;
3640/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3641struct buf { int x; };
3642FILE * (*rcsopen) (struct buf *, struct stat *, int);
3643static char *e (p, i)
3644     char **p;
3645     int i;
3646{
3647  return p[i];
3648}
3649static char *f (char * (*g) (char **, int), char **p, ...)
3650{
3651  char *s;
3652  va_list v;
3653  va_start (v,p);
3654  s = g (p, va_arg (v,int));
3655  va_end (v);
3656  return s;
3657}
3658
3659/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3660   function prototypes and stuff, but not '\xHH' hex character constants.
3661   These don't provoke an error unfortunately, instead are silently treated
3662   as 'x'.  The following induces an error, until -std is added to get
3663   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3664   array size at least.  It's necessary to write '\x00'==0 to get something
3665   that's true only with -std.  */
3666int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3667
3668/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3669   inside strings and character constants.  */
3670#define FOO(x) 'x'
3671int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3672
3673int test (int i, double x);
3674struct s1 {int (*f) (int a);};
3675struct s2 {int (*f) (double a);};
3676int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3677int argc;
3678char **argv;
3679int
3680main ()
3681{
3682return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3683  ;
3684  return 0;
3685}
3686_ACEOF
3687for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3688	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3689do
3690  CC="$ac_save_CC $ac_arg"
3691  if ac_fn_c_try_compile "$LINENO"; then :
3692  ac_cv_prog_cc_c89=$ac_arg
3693fi
3694rm -f core conftest.err conftest.$ac_objext
3695  test "x$ac_cv_prog_cc_c89" != "xno" && break
3696done
3697rm -f conftest.$ac_ext
3698CC=$ac_save_CC
3699
3700fi
3701# AC_CACHE_VAL
3702case "x$ac_cv_prog_cc_c89" in
3703  x)
3704    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3705$as_echo "none needed" >&6; } ;;
3706  xno)
3707    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3708$as_echo "unsupported" >&6; } ;;
3709  *)
3710    CC="$CC $ac_cv_prog_cc_c89"
3711    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3712$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3713esac
3714if test "x$ac_cv_prog_cc_c89" != xno; then :
3715
3716fi
3717
3718ac_ext=c
3719ac_cpp='$CPP $CPPFLAGS'
3720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722ac_compiler_gnu=$ac_cv_c_compiler_gnu
3723
3724ac_ext=c
3725ac_cpp='$CPP $CPPFLAGS'
3726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3728ac_compiler_gnu=$ac_cv_c_compiler_gnu
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3730$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3731if ${am_cv_prog_cc_c_o+:} false; then :
3732  $as_echo_n "(cached) " >&6
3733else
3734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735/* end confdefs.h.  */
3736
3737int
3738main ()
3739{
3740
3741  ;
3742  return 0;
3743}
3744_ACEOF
3745  # Make sure it works both with $CC and with simple cc.
3746  # Following AC_PROG_CC_C_O, we do the test twice because some
3747  # compilers refuse to overwrite an existing .o file with -o,
3748  # though they will create one.
3749  am_cv_prog_cc_c_o=yes
3750  for am_i in 1 2; do
3751    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3752   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3753   ac_status=$?
3754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755   (exit $ac_status); } \
3756         && test -f conftest2.$ac_objext; then
3757      : OK
3758    else
3759      am_cv_prog_cc_c_o=no
3760      break
3761    fi
3762  done
3763  rm -f core conftest*
3764  unset am_i
3765fi
3766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3767$as_echo "$am_cv_prog_cc_c_o" >&6; }
3768if test "$am_cv_prog_cc_c_o" != yes; then
3769   # Losing compiler, so override with the script.
3770   # FIXME: It is wrong to rewrite CC.
3771   # But if we don't then we get into trouble of one sort or another.
3772   # A longer-term fix would be to have automake use am__CC in this case,
3773   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3774   CC="$am_aux_dir/compile $CC"
3775fi
3776ac_ext=c
3777ac_cpp='$CPP $CPPFLAGS'
3778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3780ac_compiler_gnu=$ac_cv_c_compiler_gnu
3781
3782
3783depcc="$CC"   am_compiler_list=
3784
3785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3786$as_echo_n "checking dependency style of $depcc... " >&6; }
3787if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3788  $as_echo_n "(cached) " >&6
3789else
3790  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3791  # We make a subdir and do the tests there.  Otherwise we can end up
3792  # making bogus files that we don't know about and never remove.  For
3793  # instance it was reported that on HP-UX the gcc test will end up
3794  # making a dummy file named 'D' -- because '-MD' means "put the output
3795  # in D".
3796  rm -rf conftest.dir
3797  mkdir conftest.dir
3798  # Copy depcomp to subdir because otherwise we won't find it if we're
3799  # using a relative directory.
3800  cp "$am_depcomp" conftest.dir
3801  cd conftest.dir
3802  # We will build objects and dependencies in a subdirectory because
3803  # it helps to detect inapplicable dependency modes.  For instance
3804  # both Tru64's cc and ICC support -MD to output dependencies as a
3805  # side effect of compilation, but ICC will put the dependencies in
3806  # the current directory while Tru64 will put them in the object
3807  # directory.
3808  mkdir sub
3809
3810  am_cv_CC_dependencies_compiler_type=none
3811  if test "$am_compiler_list" = ""; then
3812     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3813  fi
3814  am__universal=false
3815  case " $depcc " in #(
3816     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3817     esac
3818
3819  for depmode in $am_compiler_list; do
3820    # Setup a source with many dependencies, because some compilers
3821    # like to wrap large dependency lists on column 80 (with \), and
3822    # we should not choose a depcomp mode which is confused by this.
3823    #
3824    # We need to recreate these files for each test, as the compiler may
3825    # overwrite some of them when testing with obscure command lines.
3826    # This happens at least with the AIX C compiler.
3827    : > sub/conftest.c
3828    for i in 1 2 3 4 5 6; do
3829      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3830      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3831      # Solaris 10 /bin/sh.
3832      echo '/* dummy */' > sub/conftst$i.h
3833    done
3834    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3835
3836    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3837    # mode.  It turns out that the SunPro C++ compiler does not properly
3838    # handle '-M -o', and we need to detect this.  Also, some Intel
3839    # versions had trouble with output in subdirs.
3840    am__obj=sub/conftest.${OBJEXT-o}
3841    am__minus_obj="-o $am__obj"
3842    case $depmode in
3843    gcc)
3844      # This depmode causes a compiler race in universal mode.
3845      test "$am__universal" = false || continue
3846      ;;
3847    nosideeffect)
3848      # After this tag, mechanisms are not by side-effect, so they'll
3849      # only be used when explicitly requested.
3850      if test "x$enable_dependency_tracking" = xyes; then
3851	continue
3852      else
3853	break
3854      fi
3855      ;;
3856    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3857      # This compiler won't grok '-c -o', but also, the minuso test has
3858      # not run yet.  These depmodes are late enough in the game, and
3859      # so weak that their functioning should not be impacted.
3860      am__obj=conftest.${OBJEXT-o}
3861      am__minus_obj=
3862      ;;
3863    none) break ;;
3864    esac
3865    if depmode=$depmode \
3866       source=sub/conftest.c object=$am__obj \
3867       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3868       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3869         >/dev/null 2>conftest.err &&
3870       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3871       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3872       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3873       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3874      # icc doesn't choke on unknown options, it will just issue warnings
3875      # or remarks (even with -Werror).  So we grep stderr for any message
3876      # that says an option was ignored or not supported.
3877      # When given -MP, icc 7.0 and 7.1 complain thusly:
3878      #   icc: Command line warning: ignoring option '-M'; no argument required
3879      # The diagnosis changed in icc 8.0:
3880      #   icc: Command line remark: option '-MP' not supported
3881      if (grep 'ignoring option' conftest.err ||
3882          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3883        am_cv_CC_dependencies_compiler_type=$depmode
3884        break
3885      fi
3886    fi
3887  done
3888
3889  cd ..
3890  rm -rf conftest.dir
3891else
3892  am_cv_CC_dependencies_compiler_type=none
3893fi
3894
3895fi
3896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3897$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3898CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3899
3900 if
3901  test "x$enable_dependency_tracking" != xno \
3902  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3903  am__fastdepCC_TRUE=
3904  am__fastdepCC_FALSE='#'
3905else
3906  am__fastdepCC_TRUE='#'
3907  am__fastdepCC_FALSE=
3908fi
3909
3910
3911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3912$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3913if ${ac_cv_prog_cc_c99+:} false; then :
3914  $as_echo_n "(cached) " >&6
3915else
3916  ac_cv_prog_cc_c99=no
3917ac_save_CC=$CC
3918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919/* end confdefs.h.  */
3920#include <stdarg.h>
3921#include <stdbool.h>
3922#include <stdlib.h>
3923#include <wchar.h>
3924#include <stdio.h>
3925
3926// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3927#define debug(...) fprintf (stderr, __VA_ARGS__)
3928#define showlist(...) puts (#__VA_ARGS__)
3929#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3930static void
3931test_varargs_macros (void)
3932{
3933  int x = 1234;
3934  int y = 5678;
3935  debug ("Flag");
3936  debug ("X = %d\n", x);
3937  showlist (The first, second, and third items.);
3938  report (x>y, "x is %d but y is %d", x, y);
3939}
3940
3941// Check long long types.
3942#define BIG64 18446744073709551615ull
3943#define BIG32 4294967295ul
3944#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3945#if !BIG_OK
3946  your preprocessor is broken;
3947#endif
3948#if BIG_OK
3949#else
3950  your preprocessor is broken;
3951#endif
3952static long long int bignum = -9223372036854775807LL;
3953static unsigned long long int ubignum = BIG64;
3954
3955struct incomplete_array
3956{
3957  int datasize;
3958  double data[];
3959};
3960
3961struct named_init {
3962  int number;
3963  const wchar_t *name;
3964  double average;
3965};
3966
3967typedef const char *ccp;
3968
3969static inline int
3970test_restrict (ccp restrict text)
3971{
3972  // See if C++-style comments work.
3973  // Iterate through items via the restricted pointer.
3974  // Also check for declarations in for loops.
3975  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3976    continue;
3977  return 0;
3978}
3979
3980// Check varargs and va_copy.
3981static void
3982test_varargs (const char *format, ...)
3983{
3984  va_list args;
3985  va_start (args, format);
3986  va_list args_copy;
3987  va_copy (args_copy, args);
3988
3989  const char *str;
3990  int number;
3991  float fnumber;
3992
3993  while (*format)
3994    {
3995      switch (*format++)
3996	{
3997	case 's': // string
3998	  str = va_arg (args_copy, const char *);
3999	  break;
4000	case 'd': // int
4001	  number = va_arg (args_copy, int);
4002	  break;
4003	case 'f': // float
4004	  fnumber = va_arg (args_copy, double);
4005	  break;
4006	default:
4007	  break;
4008	}
4009    }
4010  va_end (args_copy);
4011  va_end (args);
4012}
4013
4014int
4015main ()
4016{
4017
4018  // Check bool.
4019  _Bool success = false;
4020
4021  // Check restrict.
4022  if (test_restrict ("String literal") == 0)
4023    success = true;
4024  char *restrict newvar = "Another string";
4025
4026  // Check varargs.
4027  test_varargs ("s, d' f .", "string", 65, 34.234);
4028  test_varargs_macros ();
4029
4030  // Check flexible array members.
4031  struct incomplete_array *ia =
4032    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4033  ia->datasize = 10;
4034  for (int i = 0; i < ia->datasize; ++i)
4035    ia->data[i] = i * 1.234;
4036
4037  // Check named initializers.
4038  struct named_init ni = {
4039    .number = 34,
4040    .name = L"Test wide string",
4041    .average = 543.34343,
4042  };
4043
4044  ni.number = 58;
4045
4046  int dynamic_array[ni.number];
4047  dynamic_array[ni.number - 1] = 543;
4048
4049  // work around unused variable warnings
4050  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4051	  || dynamic_array[ni.number - 1] != 543);
4052
4053  ;
4054  return 0;
4055}
4056_ACEOF
4057for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4058do
4059  CC="$ac_save_CC $ac_arg"
4060  if ac_fn_c_try_compile "$LINENO"; then :
4061  ac_cv_prog_cc_c99=$ac_arg
4062fi
4063rm -f core conftest.err conftest.$ac_objext
4064  test "x$ac_cv_prog_cc_c99" != "xno" && break
4065done
4066rm -f conftest.$ac_ext
4067CC=$ac_save_CC
4068
4069fi
4070# AC_CACHE_VAL
4071case "x$ac_cv_prog_cc_c99" in
4072  x)
4073    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4074$as_echo "none needed" >&6; } ;;
4075  xno)
4076    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4077$as_echo "unsupported" >&6; } ;;
4078  *)
4079    CC="$CC $ac_cv_prog_cc_c99"
4080    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4081$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4082esac
4083if test "x$ac_cv_prog_cc_c99" != xno; then :
4084
4085fi
4086
4087
4088
4089ac_ext=c
4090ac_cpp='$CPP $CPPFLAGS'
4091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4093ac_compiler_gnu=$ac_cv_c_compiler_gnu
4094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4095$as_echo_n "checking how to run the C preprocessor... " >&6; }
4096# On Suns, sometimes $CPP names a directory.
4097if test -n "$CPP" && test -d "$CPP"; then
4098  CPP=
4099fi
4100if test -z "$CPP"; then
4101  if ${ac_cv_prog_CPP+:} false; then :
4102  $as_echo_n "(cached) " >&6
4103else
4104      # Double quotes because CPP needs to be expanded
4105    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4106    do
4107      ac_preproc_ok=false
4108for ac_c_preproc_warn_flag in '' yes
4109do
4110  # Use a header file that comes with gcc, so configuring glibc
4111  # with a fresh cross-compiler works.
4112  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4113  # <limits.h> exists even on freestanding compilers.
4114  # On the NeXT, cc -E runs the code through the compiler's parser,
4115  # not just through cpp. "Syntax error" is here to catch this case.
4116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117/* end confdefs.h.  */
4118#ifdef __STDC__
4119# include <limits.h>
4120#else
4121# include <assert.h>
4122#endif
4123		     Syntax error
4124_ACEOF
4125if ac_fn_c_try_cpp "$LINENO"; then :
4126
4127else
4128  # Broken: fails on valid input.
4129continue
4130fi
4131rm -f conftest.err conftest.i conftest.$ac_ext
4132
4133  # OK, works on sane cases.  Now check whether nonexistent headers
4134  # can be detected and how.
4135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136/* end confdefs.h.  */
4137#include <ac_nonexistent.h>
4138_ACEOF
4139if ac_fn_c_try_cpp "$LINENO"; then :
4140  # Broken: success on invalid input.
4141continue
4142else
4143  # Passes both tests.
4144ac_preproc_ok=:
4145break
4146fi
4147rm -f conftest.err conftest.i conftest.$ac_ext
4148
4149done
4150# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4151rm -f conftest.i conftest.err conftest.$ac_ext
4152if $ac_preproc_ok; then :
4153  break
4154fi
4155
4156    done
4157    ac_cv_prog_CPP=$CPP
4158
4159fi
4160  CPP=$ac_cv_prog_CPP
4161else
4162  ac_cv_prog_CPP=$CPP
4163fi
4164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4165$as_echo "$CPP" >&6; }
4166ac_preproc_ok=false
4167for ac_c_preproc_warn_flag in '' yes
4168do
4169  # Use a header file that comes with gcc, so configuring glibc
4170  # with a fresh cross-compiler works.
4171  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4172  # <limits.h> exists even on freestanding compilers.
4173  # On the NeXT, cc -E runs the code through the compiler's parser,
4174  # not just through cpp. "Syntax error" is here to catch this case.
4175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176/* end confdefs.h.  */
4177#ifdef __STDC__
4178# include <limits.h>
4179#else
4180# include <assert.h>
4181#endif
4182		     Syntax error
4183_ACEOF
4184if ac_fn_c_try_cpp "$LINENO"; then :
4185
4186else
4187  # Broken: fails on valid input.
4188continue
4189fi
4190rm -f conftest.err conftest.i conftest.$ac_ext
4191
4192  # OK, works on sane cases.  Now check whether nonexistent headers
4193  # can be detected and how.
4194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195/* end confdefs.h.  */
4196#include <ac_nonexistent.h>
4197_ACEOF
4198if ac_fn_c_try_cpp "$LINENO"; then :
4199  # Broken: success on invalid input.
4200continue
4201else
4202  # Passes both tests.
4203ac_preproc_ok=:
4204break
4205fi
4206rm -f conftest.err conftest.i conftest.$ac_ext
4207
4208done
4209# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4210rm -f conftest.i conftest.err conftest.$ac_ext
4211if $ac_preproc_ok; then :
4212
4213else
4214  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4215$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4216as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4217See \`config.log' for more details" "$LINENO" 5; }
4218fi
4219
4220ac_ext=c
4221ac_cpp='$CPP $CPPFLAGS'
4222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4224ac_compiler_gnu=$ac_cv_c_compiler_gnu
4225
4226
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4228$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4229if ${ac_cv_path_GREP+:} false; then :
4230  $as_echo_n "(cached) " >&6
4231else
4232  if test -z "$GREP"; then
4233  ac_path_GREP_found=false
4234  # Loop through the user's path and test for each of PROGNAME-LIST
4235  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4237do
4238  IFS=$as_save_IFS
4239  test -z "$as_dir" && as_dir=.
4240    for ac_prog in grep ggrep; do
4241    for ac_exec_ext in '' $ac_executable_extensions; do
4242      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4243      as_fn_executable_p "$ac_path_GREP" || continue
4244# Check for GNU ac_path_GREP and select it if it is found.
4245  # Check for GNU $ac_path_GREP
4246case `"$ac_path_GREP" --version 2>&1` in
4247*GNU*)
4248  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4249*)
4250  ac_count=0
4251  $as_echo_n 0123456789 >"conftest.in"
4252  while :
4253  do
4254    cat "conftest.in" "conftest.in" >"conftest.tmp"
4255    mv "conftest.tmp" "conftest.in"
4256    cp "conftest.in" "conftest.nl"
4257    $as_echo 'GREP' >> "conftest.nl"
4258    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4259    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4260    as_fn_arith $ac_count + 1 && ac_count=$as_val
4261    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4262      # Best one so far, save it but keep looking for a better one
4263      ac_cv_path_GREP="$ac_path_GREP"
4264      ac_path_GREP_max=$ac_count
4265    fi
4266    # 10*(2^10) chars as input seems more than enough
4267    test $ac_count -gt 10 && break
4268  done
4269  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4270esac
4271
4272      $ac_path_GREP_found && break 3
4273    done
4274  done
4275  done
4276IFS=$as_save_IFS
4277  if test -z "$ac_cv_path_GREP"; then
4278    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4279  fi
4280else
4281  ac_cv_path_GREP=$GREP
4282fi
4283
4284fi
4285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4286$as_echo "$ac_cv_path_GREP" >&6; }
4287 GREP="$ac_cv_path_GREP"
4288
4289
4290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4291$as_echo_n "checking for egrep... " >&6; }
4292if ${ac_cv_path_EGREP+:} false; then :
4293  $as_echo_n "(cached) " >&6
4294else
4295  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4296   then ac_cv_path_EGREP="$GREP -E"
4297   else
4298     if test -z "$EGREP"; then
4299  ac_path_EGREP_found=false
4300  # Loop through the user's path and test for each of PROGNAME-LIST
4301  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4303do
4304  IFS=$as_save_IFS
4305  test -z "$as_dir" && as_dir=.
4306    for ac_prog in egrep; do
4307    for ac_exec_ext in '' $ac_executable_extensions; do
4308      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4309      as_fn_executable_p "$ac_path_EGREP" || continue
4310# Check for GNU ac_path_EGREP and select it if it is found.
4311  # Check for GNU $ac_path_EGREP
4312case `"$ac_path_EGREP" --version 2>&1` in
4313*GNU*)
4314  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4315*)
4316  ac_count=0
4317  $as_echo_n 0123456789 >"conftest.in"
4318  while :
4319  do
4320    cat "conftest.in" "conftest.in" >"conftest.tmp"
4321    mv "conftest.tmp" "conftest.in"
4322    cp "conftest.in" "conftest.nl"
4323    $as_echo 'EGREP' >> "conftest.nl"
4324    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4325    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4326    as_fn_arith $ac_count + 1 && ac_count=$as_val
4327    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4328      # Best one so far, save it but keep looking for a better one
4329      ac_cv_path_EGREP="$ac_path_EGREP"
4330      ac_path_EGREP_max=$ac_count
4331    fi
4332    # 10*(2^10) chars as input seems more than enough
4333    test $ac_count -gt 10 && break
4334  done
4335  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4336esac
4337
4338      $ac_path_EGREP_found && break 3
4339    done
4340  done
4341  done
4342IFS=$as_save_IFS
4343  if test -z "$ac_cv_path_EGREP"; then
4344    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4345  fi
4346else
4347  ac_cv_path_EGREP=$EGREP
4348fi
4349
4350   fi
4351fi
4352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4353$as_echo "$ac_cv_path_EGREP" >&6; }
4354 EGREP="$ac_cv_path_EGREP"
4355
4356
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4358$as_echo_n "checking for ANSI C header files... " >&6; }
4359if ${ac_cv_header_stdc+:} false; then :
4360  $as_echo_n "(cached) " >&6
4361else
4362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363/* end confdefs.h.  */
4364#include <stdlib.h>
4365#include <stdarg.h>
4366#include <string.h>
4367#include <float.h>
4368
4369int
4370main ()
4371{
4372
4373  ;
4374  return 0;
4375}
4376_ACEOF
4377if ac_fn_c_try_compile "$LINENO"; then :
4378  ac_cv_header_stdc=yes
4379else
4380  ac_cv_header_stdc=no
4381fi
4382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383
4384if test $ac_cv_header_stdc = yes; then
4385  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387/* end confdefs.h.  */
4388#include <string.h>
4389
4390_ACEOF
4391if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4392  $EGREP "memchr" >/dev/null 2>&1; then :
4393
4394else
4395  ac_cv_header_stdc=no
4396fi
4397rm -f conftest*
4398
4399fi
4400
4401if test $ac_cv_header_stdc = yes; then
4402  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404/* end confdefs.h.  */
4405#include <stdlib.h>
4406
4407_ACEOF
4408if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4409  $EGREP "free" >/dev/null 2>&1; then :
4410
4411else
4412  ac_cv_header_stdc=no
4413fi
4414rm -f conftest*
4415
4416fi
4417
4418if test $ac_cv_header_stdc = yes; then
4419  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4420  if test "$cross_compiling" = yes; then :
4421  :
4422else
4423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424/* end confdefs.h.  */
4425#include <ctype.h>
4426#include <stdlib.h>
4427#if ((' ' & 0x0FF) == 0x020)
4428# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4429# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4430#else
4431# define ISLOWER(c) \
4432		   (('a' <= (c) && (c) <= 'i') \
4433		     || ('j' <= (c) && (c) <= 'r') \
4434		     || ('s' <= (c) && (c) <= 'z'))
4435# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4436#endif
4437
4438#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4439int
4440main ()
4441{
4442  int i;
4443  for (i = 0; i < 256; i++)
4444    if (XOR (islower (i), ISLOWER (i))
4445	|| toupper (i) != TOUPPER (i))
4446      return 2;
4447  return 0;
4448}
4449_ACEOF
4450if ac_fn_c_try_run "$LINENO"; then :
4451
4452else
4453  ac_cv_header_stdc=no
4454fi
4455rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4456  conftest.$ac_objext conftest.beam conftest.$ac_ext
4457fi
4458
4459fi
4460fi
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4462$as_echo "$ac_cv_header_stdc" >&6; }
4463if test $ac_cv_header_stdc = yes; then
4464
4465$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4466
4467fi
4468
4469# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4470for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4471		  inttypes.h stdint.h unistd.h
4472do :
4473  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4474ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4475"
4476if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4477  cat >>confdefs.h <<_ACEOF
4478#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4479_ACEOF
4480
4481fi
4482
4483done
4484
4485
4486
4487
4488
4489
4490ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4491if test "x$ac_cv_have_decl___clang__" = xyes; then :
4492  CLANGCC="yes"
4493else
4494  CLANGCC="no"
4495fi
4496
4497ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4498if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4499  INTELCC="yes"
4500else
4501  INTELCC="no"
4502fi
4503
4504ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4505if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4506  SUNCC="yes"
4507else
4508  SUNCC="no"
4509fi
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4520	if test -n "$ac_tool_prefix"; then
4521  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4522set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4524$as_echo_n "checking for $ac_word... " >&6; }
4525if ${ac_cv_path_PKG_CONFIG+:} false; then :
4526  $as_echo_n "(cached) " >&6
4527else
4528  case $PKG_CONFIG in
4529  [\\/]* | ?:[\\/]*)
4530  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4531  ;;
4532  *)
4533  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534for as_dir in $PATH
4535do
4536  IFS=$as_save_IFS
4537  test -z "$as_dir" && as_dir=.
4538    for ac_exec_ext in '' $ac_executable_extensions; do
4539  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4540    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4541    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4542    break 2
4543  fi
4544done
4545  done
4546IFS=$as_save_IFS
4547
4548  ;;
4549esac
4550fi
4551PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4552if test -n "$PKG_CONFIG"; then
4553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4554$as_echo "$PKG_CONFIG" >&6; }
4555else
4556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4557$as_echo "no" >&6; }
4558fi
4559
4560
4561fi
4562if test -z "$ac_cv_path_PKG_CONFIG"; then
4563  ac_pt_PKG_CONFIG=$PKG_CONFIG
4564  # Extract the first word of "pkg-config", so it can be a program name with args.
4565set dummy pkg-config; ac_word=$2
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4567$as_echo_n "checking for $ac_word... " >&6; }
4568if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4569  $as_echo_n "(cached) " >&6
4570else
4571  case $ac_pt_PKG_CONFIG in
4572  [\\/]* | ?:[\\/]*)
4573  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4574  ;;
4575  *)
4576  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577for as_dir in $PATH
4578do
4579  IFS=$as_save_IFS
4580  test -z "$as_dir" && as_dir=.
4581    for ac_exec_ext in '' $ac_executable_extensions; do
4582  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4583    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4584    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4585    break 2
4586  fi
4587done
4588  done
4589IFS=$as_save_IFS
4590
4591  ;;
4592esac
4593fi
4594ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4595if test -n "$ac_pt_PKG_CONFIG"; then
4596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4597$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4598else
4599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600$as_echo "no" >&6; }
4601fi
4602
4603  if test "x$ac_pt_PKG_CONFIG" = x; then
4604    PKG_CONFIG=""
4605  else
4606    case $cross_compiling:$ac_tool_warned in
4607yes:)
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4609$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4610ac_tool_warned=yes ;;
4611esac
4612    PKG_CONFIG=$ac_pt_PKG_CONFIG
4613  fi
4614else
4615  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4616fi
4617
4618fi
4619if test -n "$PKG_CONFIG"; then
4620	_pkg_min_version=0.9.0
4621	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4622$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4623	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4624		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4625$as_echo "yes" >&6; }
4626	else
4627		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628$as_echo "no" >&6; }
4629		PKG_CONFIG=""
4630	fi
4631fi
4632# Make sure we can run config.sub.
4633$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4634  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4635
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4637$as_echo_n "checking build system type... " >&6; }
4638if ${ac_cv_build+:} false; then :
4639  $as_echo_n "(cached) " >&6
4640else
4641  ac_build_alias=$build_alias
4642test "x$ac_build_alias" = x &&
4643  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4644test "x$ac_build_alias" = x &&
4645  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4646ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4647  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4648
4649fi
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4651$as_echo "$ac_cv_build" >&6; }
4652case $ac_cv_build in
4653*-*-*) ;;
4654*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4655esac
4656build=$ac_cv_build
4657ac_save_IFS=$IFS; IFS='-'
4658set x $ac_cv_build
4659shift
4660build_cpu=$1
4661build_vendor=$2
4662shift; shift
4663# Remember, the first character of IFS is used to create $*,
4664# except with old shells:
4665build_os=$*
4666IFS=$ac_save_IFS
4667case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4668
4669
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4671$as_echo_n "checking host system type... " >&6; }
4672if ${ac_cv_host+:} false; then :
4673  $as_echo_n "(cached) " >&6
4674else
4675  if test "x$host_alias" = x; then
4676  ac_cv_host=$ac_cv_build
4677else
4678  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4679    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4680fi
4681
4682fi
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4684$as_echo "$ac_cv_host" >&6; }
4685case $ac_cv_host in
4686*-*-*) ;;
4687*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4688esac
4689host=$ac_cv_host
4690ac_save_IFS=$IFS; IFS='-'
4691set x $ac_cv_host
4692shift
4693host_cpu=$1
4694host_vendor=$2
4695shift; shift
4696# Remember, the first character of IFS is used to create $*,
4697# except with old shells:
4698host_os=$*
4699IFS=$ac_save_IFS
4700case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4701
4702
4703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4704$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4705if ${ac_cv_path_SED+:} false; then :
4706  $as_echo_n "(cached) " >&6
4707else
4708            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4709     for ac_i in 1 2 3 4 5 6 7; do
4710       ac_script="$ac_script$as_nl$ac_script"
4711     done
4712     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4713     { ac_script=; unset ac_script;}
4714     if test -z "$SED"; then
4715  ac_path_SED_found=false
4716  # Loop through the user's path and test for each of PROGNAME-LIST
4717  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718for as_dir in $PATH
4719do
4720  IFS=$as_save_IFS
4721  test -z "$as_dir" && as_dir=.
4722    for ac_prog in sed gsed; do
4723    for ac_exec_ext in '' $ac_executable_extensions; do
4724      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4725      as_fn_executable_p "$ac_path_SED" || continue
4726# Check for GNU ac_path_SED and select it if it is found.
4727  # Check for GNU $ac_path_SED
4728case `"$ac_path_SED" --version 2>&1` in
4729*GNU*)
4730  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4731*)
4732  ac_count=0
4733  $as_echo_n 0123456789 >"conftest.in"
4734  while :
4735  do
4736    cat "conftest.in" "conftest.in" >"conftest.tmp"
4737    mv "conftest.tmp" "conftest.in"
4738    cp "conftest.in" "conftest.nl"
4739    $as_echo '' >> "conftest.nl"
4740    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4741    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4742    as_fn_arith $ac_count + 1 && ac_count=$as_val
4743    if test $ac_count -gt ${ac_path_SED_max-0}; then
4744      # Best one so far, save it but keep looking for a better one
4745      ac_cv_path_SED="$ac_path_SED"
4746      ac_path_SED_max=$ac_count
4747    fi
4748    # 10*(2^10) chars as input seems more than enough
4749    test $ac_count -gt 10 && break
4750  done
4751  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4752esac
4753
4754      $ac_path_SED_found && break 3
4755    done
4756  done
4757  done
4758IFS=$as_save_IFS
4759  if test -z "$ac_cv_path_SED"; then
4760    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4761  fi
4762else
4763  ac_cv_path_SED=$SED
4764fi
4765
4766fi
4767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4768$as_echo "$ac_cv_path_SED" >&6; }
4769 SED="$ac_cv_path_SED"
4770  rm -f conftest.sed
4771
4772
4773
4774
4775
4776
4777# Check whether --enable-selective-werror was given.
4778if test "${enable_selective_werror+set}" = set; then :
4779  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4780else
4781  SELECTIVE_WERROR=yes
4782fi
4783
4784
4785
4786
4787
4788# -v is too short to test reliably with XORG_TESTSET_CFLAG
4789if test "x$SUNCC" = "xyes"; then
4790    BASE_CFLAGS="-v"
4791else
4792    BASE_CFLAGS=""
4793fi
4794
4795# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809xorg_testset_save_CFLAGS="$CFLAGS"
4810
4811if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4812	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4813	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4814$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4815if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4816  $as_echo_n "(cached) " >&6
4817else
4818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819/* end confdefs.h.  */
4820int i;
4821_ACEOF
4822if ac_fn_c_try_compile "$LINENO"; then :
4823  xorg_cv_cc_flag_unknown_warning_option=yes
4824else
4825  xorg_cv_cc_flag_unknown_warning_option=no
4826fi
4827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4828fi
4829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4830$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4831	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4832	CFLAGS="$xorg_testset_save_CFLAGS"
4833fi
4834
4835if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4836	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4837		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4838	fi
4839	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4840	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4841$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4842if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4843  $as_echo_n "(cached) " >&6
4844else
4845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4846/* end confdefs.h.  */
4847int i;
4848_ACEOF
4849if ac_fn_c_try_compile "$LINENO"; then :
4850  xorg_cv_cc_flag_unused_command_line_argument=yes
4851else
4852  xorg_cv_cc_flag_unused_command_line_argument=no
4853fi
4854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4855fi
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4857$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4858	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4859	CFLAGS="$xorg_testset_save_CFLAGS"
4860fi
4861
4862found="no"
4863
4864	if test $found = "no" ; then
4865		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4866			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4867		fi
4868
4869		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4870			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4871		fi
4872
4873		CFLAGS="$CFLAGS -Wall"
4874
4875		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4876$as_echo_n "checking if $CC supports -Wall... " >&6; }
4877		cacheid=xorg_cv_cc_flag__Wall
4878		if eval \${$cacheid+:} false; then :
4879  $as_echo_n "(cached) " >&6
4880else
4881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4882/* end confdefs.h.  */
4883int i;
4884int
4885main ()
4886{
4887
4888  ;
4889  return 0;
4890}
4891_ACEOF
4892if ac_fn_c_try_link "$LINENO"; then :
4893  eval $cacheid=yes
4894else
4895  eval $cacheid=no
4896fi
4897rm -f core conftest.err conftest.$ac_objext \
4898    conftest$ac_exeext conftest.$ac_ext
4899fi
4900
4901
4902		CFLAGS="$xorg_testset_save_CFLAGS"
4903
4904		eval supported=\$$cacheid
4905		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4906$as_echo "$supported" >&6; }
4907		if test "$supported" = "yes" ; then
4908			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4909			found="yes"
4910		fi
4911	fi
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927xorg_testset_save_CFLAGS="$CFLAGS"
4928
4929if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4930	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4931	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4932$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4933if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4934  $as_echo_n "(cached) " >&6
4935else
4936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937/* end confdefs.h.  */
4938int i;
4939_ACEOF
4940if ac_fn_c_try_compile "$LINENO"; then :
4941  xorg_cv_cc_flag_unknown_warning_option=yes
4942else
4943  xorg_cv_cc_flag_unknown_warning_option=no
4944fi
4945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946fi
4947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4948$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4949	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4950	CFLAGS="$xorg_testset_save_CFLAGS"
4951fi
4952
4953if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4954	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4955		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4956	fi
4957	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4958	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4959$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4960if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4961  $as_echo_n "(cached) " >&6
4962else
4963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4964/* end confdefs.h.  */
4965int i;
4966_ACEOF
4967if ac_fn_c_try_compile "$LINENO"; then :
4968  xorg_cv_cc_flag_unused_command_line_argument=yes
4969else
4970  xorg_cv_cc_flag_unused_command_line_argument=no
4971fi
4972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973fi
4974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4975$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4976	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4977	CFLAGS="$xorg_testset_save_CFLAGS"
4978fi
4979
4980found="no"
4981
4982	if test $found = "no" ; then
4983		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4984			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4985		fi
4986
4987		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4988			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4989		fi
4990
4991		CFLAGS="$CFLAGS -Wpointer-arith"
4992
4993		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4994$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4995		cacheid=xorg_cv_cc_flag__Wpointer_arith
4996		if eval \${$cacheid+:} false; then :
4997  $as_echo_n "(cached) " >&6
4998else
4999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000/* end confdefs.h.  */
5001int i;
5002int
5003main ()
5004{
5005
5006  ;
5007  return 0;
5008}
5009_ACEOF
5010if ac_fn_c_try_link "$LINENO"; then :
5011  eval $cacheid=yes
5012else
5013  eval $cacheid=no
5014fi
5015rm -f core conftest.err conftest.$ac_objext \
5016    conftest$ac_exeext conftest.$ac_ext
5017fi
5018
5019
5020		CFLAGS="$xorg_testset_save_CFLAGS"
5021
5022		eval supported=\$$cacheid
5023		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5024$as_echo "$supported" >&6; }
5025		if test "$supported" = "yes" ; then
5026			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5027			found="yes"
5028		fi
5029	fi
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045xorg_testset_save_CFLAGS="$CFLAGS"
5046
5047if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5048	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5049	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5050$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5051if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5052  $as_echo_n "(cached) " >&6
5053else
5054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055/* end confdefs.h.  */
5056int i;
5057_ACEOF
5058if ac_fn_c_try_compile "$LINENO"; then :
5059  xorg_cv_cc_flag_unknown_warning_option=yes
5060else
5061  xorg_cv_cc_flag_unknown_warning_option=no
5062fi
5063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5064fi
5065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5066$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5067	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5068	CFLAGS="$xorg_testset_save_CFLAGS"
5069fi
5070
5071if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5072	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5073		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5074	fi
5075	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5076	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5077$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5078if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5079  $as_echo_n "(cached) " >&6
5080else
5081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082/* end confdefs.h.  */
5083int i;
5084_ACEOF
5085if ac_fn_c_try_compile "$LINENO"; then :
5086  xorg_cv_cc_flag_unused_command_line_argument=yes
5087else
5088  xorg_cv_cc_flag_unused_command_line_argument=no
5089fi
5090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5091fi
5092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5093$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5094	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5095	CFLAGS="$xorg_testset_save_CFLAGS"
5096fi
5097
5098found="no"
5099
5100	if test $found = "no" ; then
5101		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5102			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5103		fi
5104
5105		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5106			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5107		fi
5108
5109		CFLAGS="$CFLAGS -Wmissing-declarations"
5110
5111		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5112$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5113		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5114		if eval \${$cacheid+:} false; then :
5115  $as_echo_n "(cached) " >&6
5116else
5117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118/* end confdefs.h.  */
5119int i;
5120int
5121main ()
5122{
5123
5124  ;
5125  return 0;
5126}
5127_ACEOF
5128if ac_fn_c_try_link "$LINENO"; then :
5129  eval $cacheid=yes
5130else
5131  eval $cacheid=no
5132fi
5133rm -f core conftest.err conftest.$ac_objext \
5134    conftest$ac_exeext conftest.$ac_ext
5135fi
5136
5137
5138		CFLAGS="$xorg_testset_save_CFLAGS"
5139
5140		eval supported=\$$cacheid
5141		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5142$as_echo "$supported" >&6; }
5143		if test "$supported" = "yes" ; then
5144			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5145			found="yes"
5146		fi
5147	fi
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163xorg_testset_save_CFLAGS="$CFLAGS"
5164
5165if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5166	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5167	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5168$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5169if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5170  $as_echo_n "(cached) " >&6
5171else
5172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173/* end confdefs.h.  */
5174int i;
5175_ACEOF
5176if ac_fn_c_try_compile "$LINENO"; then :
5177  xorg_cv_cc_flag_unknown_warning_option=yes
5178else
5179  xorg_cv_cc_flag_unknown_warning_option=no
5180fi
5181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5182fi
5183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5184$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5185	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5186	CFLAGS="$xorg_testset_save_CFLAGS"
5187fi
5188
5189if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5190	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5191		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5192	fi
5193	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5194	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5195$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5196if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5197  $as_echo_n "(cached) " >&6
5198else
5199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200/* end confdefs.h.  */
5201int i;
5202_ACEOF
5203if ac_fn_c_try_compile "$LINENO"; then :
5204  xorg_cv_cc_flag_unused_command_line_argument=yes
5205else
5206  xorg_cv_cc_flag_unused_command_line_argument=no
5207fi
5208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5209fi
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5211$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5212	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5213	CFLAGS="$xorg_testset_save_CFLAGS"
5214fi
5215
5216found="no"
5217
5218	if test $found = "no" ; then
5219		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5220			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5221		fi
5222
5223		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5224			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5225		fi
5226
5227		CFLAGS="$CFLAGS -Wformat=2"
5228
5229		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5230$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5231		cacheid=xorg_cv_cc_flag__Wformat_2
5232		if eval \${$cacheid+:} false; then :
5233  $as_echo_n "(cached) " >&6
5234else
5235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236/* end confdefs.h.  */
5237int i;
5238int
5239main ()
5240{
5241
5242  ;
5243  return 0;
5244}
5245_ACEOF
5246if ac_fn_c_try_link "$LINENO"; then :
5247  eval $cacheid=yes
5248else
5249  eval $cacheid=no
5250fi
5251rm -f core conftest.err conftest.$ac_objext \
5252    conftest$ac_exeext conftest.$ac_ext
5253fi
5254
5255
5256		CFLAGS="$xorg_testset_save_CFLAGS"
5257
5258		eval supported=\$$cacheid
5259		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5260$as_echo "$supported" >&6; }
5261		if test "$supported" = "yes" ; then
5262			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5263			found="yes"
5264		fi
5265	fi
5266
5267	if test $found = "no" ; then
5268		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5269			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5270		fi
5271
5272		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5273			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5274		fi
5275
5276		CFLAGS="$CFLAGS -Wformat"
5277
5278		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5279$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5280		cacheid=xorg_cv_cc_flag__Wformat
5281		if eval \${$cacheid+:} false; then :
5282  $as_echo_n "(cached) " >&6
5283else
5284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285/* end confdefs.h.  */
5286int i;
5287int
5288main ()
5289{
5290
5291  ;
5292  return 0;
5293}
5294_ACEOF
5295if ac_fn_c_try_link "$LINENO"; then :
5296  eval $cacheid=yes
5297else
5298  eval $cacheid=no
5299fi
5300rm -f core conftest.err conftest.$ac_objext \
5301    conftest$ac_exeext conftest.$ac_ext
5302fi
5303
5304
5305		CFLAGS="$xorg_testset_save_CFLAGS"
5306
5307		eval supported=\$$cacheid
5308		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5309$as_echo "$supported" >&6; }
5310		if test "$supported" = "yes" ; then
5311			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5312			found="yes"
5313		fi
5314	fi
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332xorg_testset_save_CFLAGS="$CFLAGS"
5333
5334if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5335	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5336	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5337$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5338if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5339  $as_echo_n "(cached) " >&6
5340else
5341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342/* end confdefs.h.  */
5343int i;
5344_ACEOF
5345if ac_fn_c_try_compile "$LINENO"; then :
5346  xorg_cv_cc_flag_unknown_warning_option=yes
5347else
5348  xorg_cv_cc_flag_unknown_warning_option=no
5349fi
5350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5351fi
5352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5353$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5354	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5355	CFLAGS="$xorg_testset_save_CFLAGS"
5356fi
5357
5358if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5359	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5360		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5361	fi
5362	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5363	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5364$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5365if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5366  $as_echo_n "(cached) " >&6
5367else
5368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369/* end confdefs.h.  */
5370int i;
5371_ACEOF
5372if ac_fn_c_try_compile "$LINENO"; then :
5373  xorg_cv_cc_flag_unused_command_line_argument=yes
5374else
5375  xorg_cv_cc_flag_unused_command_line_argument=no
5376fi
5377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5378fi
5379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5380$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5381	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5382	CFLAGS="$xorg_testset_save_CFLAGS"
5383fi
5384
5385found="no"
5386
5387	if test $found = "no" ; then
5388		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5389			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5390		fi
5391
5392		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5393			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5394		fi
5395
5396		CFLAGS="$CFLAGS -Wstrict-prototypes"
5397
5398		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5399$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5400		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5401		if eval \${$cacheid+:} false; then :
5402  $as_echo_n "(cached) " >&6
5403else
5404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405/* end confdefs.h.  */
5406int i;
5407int
5408main ()
5409{
5410
5411  ;
5412  return 0;
5413}
5414_ACEOF
5415if ac_fn_c_try_link "$LINENO"; then :
5416  eval $cacheid=yes
5417else
5418  eval $cacheid=no
5419fi
5420rm -f core conftest.err conftest.$ac_objext \
5421    conftest$ac_exeext conftest.$ac_ext
5422fi
5423
5424
5425		CFLAGS="$xorg_testset_save_CFLAGS"
5426
5427		eval supported=\$$cacheid
5428		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5429$as_echo "$supported" >&6; }
5430		if test "$supported" = "yes" ; then
5431			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5432			found="yes"
5433		fi
5434	fi
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450xorg_testset_save_CFLAGS="$CFLAGS"
5451
5452if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5453	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5454	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5455$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5456if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5457  $as_echo_n "(cached) " >&6
5458else
5459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460/* end confdefs.h.  */
5461int i;
5462_ACEOF
5463if ac_fn_c_try_compile "$LINENO"; then :
5464  xorg_cv_cc_flag_unknown_warning_option=yes
5465else
5466  xorg_cv_cc_flag_unknown_warning_option=no
5467fi
5468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5469fi
5470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5471$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5472	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5473	CFLAGS="$xorg_testset_save_CFLAGS"
5474fi
5475
5476if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5477	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5478		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5479	fi
5480	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5481	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5482$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5483if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5484  $as_echo_n "(cached) " >&6
5485else
5486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487/* end confdefs.h.  */
5488int i;
5489_ACEOF
5490if ac_fn_c_try_compile "$LINENO"; then :
5491  xorg_cv_cc_flag_unused_command_line_argument=yes
5492else
5493  xorg_cv_cc_flag_unused_command_line_argument=no
5494fi
5495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496fi
5497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5498$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5499	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5500	CFLAGS="$xorg_testset_save_CFLAGS"
5501fi
5502
5503found="no"
5504
5505	if test $found = "no" ; then
5506		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5507			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5508		fi
5509
5510		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5511			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5512		fi
5513
5514		CFLAGS="$CFLAGS -Wmissing-prototypes"
5515
5516		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5517$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5518		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5519		if eval \${$cacheid+:} false; then :
5520  $as_echo_n "(cached) " >&6
5521else
5522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523/* end confdefs.h.  */
5524int i;
5525int
5526main ()
5527{
5528
5529  ;
5530  return 0;
5531}
5532_ACEOF
5533if ac_fn_c_try_link "$LINENO"; then :
5534  eval $cacheid=yes
5535else
5536  eval $cacheid=no
5537fi
5538rm -f core conftest.err conftest.$ac_objext \
5539    conftest$ac_exeext conftest.$ac_ext
5540fi
5541
5542
5543		CFLAGS="$xorg_testset_save_CFLAGS"
5544
5545		eval supported=\$$cacheid
5546		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5547$as_echo "$supported" >&6; }
5548		if test "$supported" = "yes" ; then
5549			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5550			found="yes"
5551		fi
5552	fi
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568xorg_testset_save_CFLAGS="$CFLAGS"
5569
5570if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5571	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5572	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5573$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5574if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5575  $as_echo_n "(cached) " >&6
5576else
5577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578/* end confdefs.h.  */
5579int i;
5580_ACEOF
5581if ac_fn_c_try_compile "$LINENO"; then :
5582  xorg_cv_cc_flag_unknown_warning_option=yes
5583else
5584  xorg_cv_cc_flag_unknown_warning_option=no
5585fi
5586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5587fi
5588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5589$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5590	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5591	CFLAGS="$xorg_testset_save_CFLAGS"
5592fi
5593
5594if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5595	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5596		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5597	fi
5598	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5599	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5600$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5601if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5602  $as_echo_n "(cached) " >&6
5603else
5604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605/* end confdefs.h.  */
5606int i;
5607_ACEOF
5608if ac_fn_c_try_compile "$LINENO"; then :
5609  xorg_cv_cc_flag_unused_command_line_argument=yes
5610else
5611  xorg_cv_cc_flag_unused_command_line_argument=no
5612fi
5613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5614fi
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5616$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5617	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5618	CFLAGS="$xorg_testset_save_CFLAGS"
5619fi
5620
5621found="no"
5622
5623	if test $found = "no" ; then
5624		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5625			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5626		fi
5627
5628		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5629			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5630		fi
5631
5632		CFLAGS="$CFLAGS -Wnested-externs"
5633
5634		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5635$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5636		cacheid=xorg_cv_cc_flag__Wnested_externs
5637		if eval \${$cacheid+:} false; then :
5638  $as_echo_n "(cached) " >&6
5639else
5640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641/* end confdefs.h.  */
5642int i;
5643int
5644main ()
5645{
5646
5647  ;
5648  return 0;
5649}
5650_ACEOF
5651if ac_fn_c_try_link "$LINENO"; then :
5652  eval $cacheid=yes
5653else
5654  eval $cacheid=no
5655fi
5656rm -f core conftest.err conftest.$ac_objext \
5657    conftest$ac_exeext conftest.$ac_ext
5658fi
5659
5660
5661		CFLAGS="$xorg_testset_save_CFLAGS"
5662
5663		eval supported=\$$cacheid
5664		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5665$as_echo "$supported" >&6; }
5666		if test "$supported" = "yes" ; then
5667			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5668			found="yes"
5669		fi
5670	fi
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686xorg_testset_save_CFLAGS="$CFLAGS"
5687
5688if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5689	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5690	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5691$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5692if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5693  $as_echo_n "(cached) " >&6
5694else
5695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696/* end confdefs.h.  */
5697int i;
5698_ACEOF
5699if ac_fn_c_try_compile "$LINENO"; then :
5700  xorg_cv_cc_flag_unknown_warning_option=yes
5701else
5702  xorg_cv_cc_flag_unknown_warning_option=no
5703fi
5704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5705fi
5706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5707$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5708	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5709	CFLAGS="$xorg_testset_save_CFLAGS"
5710fi
5711
5712if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5713	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5714		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5715	fi
5716	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5717	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5718$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5719if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5720  $as_echo_n "(cached) " >&6
5721else
5722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723/* end confdefs.h.  */
5724int i;
5725_ACEOF
5726if ac_fn_c_try_compile "$LINENO"; then :
5727  xorg_cv_cc_flag_unused_command_line_argument=yes
5728else
5729  xorg_cv_cc_flag_unused_command_line_argument=no
5730fi
5731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5732fi
5733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5734$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5735	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5736	CFLAGS="$xorg_testset_save_CFLAGS"
5737fi
5738
5739found="no"
5740
5741	if test $found = "no" ; then
5742		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5743			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5744		fi
5745
5746		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5747			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5748		fi
5749
5750		CFLAGS="$CFLAGS -Wbad-function-cast"
5751
5752		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5753$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5754		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5755		if eval \${$cacheid+:} false; then :
5756  $as_echo_n "(cached) " >&6
5757else
5758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759/* end confdefs.h.  */
5760int i;
5761int
5762main ()
5763{
5764
5765  ;
5766  return 0;
5767}
5768_ACEOF
5769if ac_fn_c_try_link "$LINENO"; then :
5770  eval $cacheid=yes
5771else
5772  eval $cacheid=no
5773fi
5774rm -f core conftest.err conftest.$ac_objext \
5775    conftest$ac_exeext conftest.$ac_ext
5776fi
5777
5778
5779		CFLAGS="$xorg_testset_save_CFLAGS"
5780
5781		eval supported=\$$cacheid
5782		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5783$as_echo "$supported" >&6; }
5784		if test "$supported" = "yes" ; then
5785			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5786			found="yes"
5787		fi
5788	fi
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804xorg_testset_save_CFLAGS="$CFLAGS"
5805
5806if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5807	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5808	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5809$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5810if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5811  $as_echo_n "(cached) " >&6
5812else
5813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814/* end confdefs.h.  */
5815int i;
5816_ACEOF
5817if ac_fn_c_try_compile "$LINENO"; then :
5818  xorg_cv_cc_flag_unknown_warning_option=yes
5819else
5820  xorg_cv_cc_flag_unknown_warning_option=no
5821fi
5822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5823fi
5824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5825$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5826	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5827	CFLAGS="$xorg_testset_save_CFLAGS"
5828fi
5829
5830if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5831	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5832		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5833	fi
5834	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5835	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5836$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5837if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5838  $as_echo_n "(cached) " >&6
5839else
5840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841/* end confdefs.h.  */
5842int i;
5843_ACEOF
5844if ac_fn_c_try_compile "$LINENO"; then :
5845  xorg_cv_cc_flag_unused_command_line_argument=yes
5846else
5847  xorg_cv_cc_flag_unused_command_line_argument=no
5848fi
5849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850fi
5851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5852$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5853	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5854	CFLAGS="$xorg_testset_save_CFLAGS"
5855fi
5856
5857found="no"
5858
5859	if test $found = "no" ; then
5860		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5861			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5862		fi
5863
5864		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5865			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5866		fi
5867
5868		CFLAGS="$CFLAGS -Wold-style-definition"
5869
5870		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5871$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5872		cacheid=xorg_cv_cc_flag__Wold_style_definition
5873		if eval \${$cacheid+:} false; then :
5874  $as_echo_n "(cached) " >&6
5875else
5876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877/* end confdefs.h.  */
5878int i;
5879int
5880main ()
5881{
5882
5883  ;
5884  return 0;
5885}
5886_ACEOF
5887if ac_fn_c_try_link "$LINENO"; then :
5888  eval $cacheid=yes
5889else
5890  eval $cacheid=no
5891fi
5892rm -f core conftest.err conftest.$ac_objext \
5893    conftest$ac_exeext conftest.$ac_ext
5894fi
5895
5896
5897		CFLAGS="$xorg_testset_save_CFLAGS"
5898
5899		eval supported=\$$cacheid
5900		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5901$as_echo "$supported" >&6; }
5902		if test "$supported" = "yes" ; then
5903			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5904			found="yes"
5905		fi
5906	fi
5907
5908	if test $found = "no" ; then
5909		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5910			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5911		fi
5912
5913		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5914			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5915		fi
5916
5917		CFLAGS="$CFLAGS -fd"
5918
5919		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5920$as_echo_n "checking if $CC supports -fd... " >&6; }
5921		cacheid=xorg_cv_cc_flag__fd
5922		if eval \${$cacheid+:} false; then :
5923  $as_echo_n "(cached) " >&6
5924else
5925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926/* end confdefs.h.  */
5927int i;
5928int
5929main ()
5930{
5931
5932  ;
5933  return 0;
5934}
5935_ACEOF
5936if ac_fn_c_try_link "$LINENO"; then :
5937  eval $cacheid=yes
5938else
5939  eval $cacheid=no
5940fi
5941rm -f core conftest.err conftest.$ac_objext \
5942    conftest$ac_exeext conftest.$ac_ext
5943fi
5944
5945
5946		CFLAGS="$xorg_testset_save_CFLAGS"
5947
5948		eval supported=\$$cacheid
5949		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5950$as_echo "$supported" >&6; }
5951		if test "$supported" = "yes" ; then
5952			BASE_CFLAGS="$BASE_CFLAGS -fd"
5953			found="yes"
5954		fi
5955	fi
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971xorg_testset_save_CFLAGS="$CFLAGS"
5972
5973if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5974	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5975	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5976$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5977if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5978  $as_echo_n "(cached) " >&6
5979else
5980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5981/* end confdefs.h.  */
5982int i;
5983_ACEOF
5984if ac_fn_c_try_compile "$LINENO"; then :
5985  xorg_cv_cc_flag_unknown_warning_option=yes
5986else
5987  xorg_cv_cc_flag_unknown_warning_option=no
5988fi
5989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5990fi
5991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5992$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5993	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5994	CFLAGS="$xorg_testset_save_CFLAGS"
5995fi
5996
5997if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5998	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5999		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6000	fi
6001	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6002	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6003$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6004if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6005  $as_echo_n "(cached) " >&6
6006else
6007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008/* end confdefs.h.  */
6009int i;
6010_ACEOF
6011if ac_fn_c_try_compile "$LINENO"; then :
6012  xorg_cv_cc_flag_unused_command_line_argument=yes
6013else
6014  xorg_cv_cc_flag_unused_command_line_argument=no
6015fi
6016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6017fi
6018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6019$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6020	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6021	CFLAGS="$xorg_testset_save_CFLAGS"
6022fi
6023
6024found="no"
6025
6026	if test $found = "no" ; then
6027		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6028			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6029		fi
6030
6031		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6032			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6033		fi
6034
6035		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6036
6037		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6038$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6039		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6040		if eval \${$cacheid+:} false; then :
6041  $as_echo_n "(cached) " >&6
6042else
6043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044/* end confdefs.h.  */
6045int i;
6046int
6047main ()
6048{
6049
6050  ;
6051  return 0;
6052}
6053_ACEOF
6054if ac_fn_c_try_link "$LINENO"; then :
6055  eval $cacheid=yes
6056else
6057  eval $cacheid=no
6058fi
6059rm -f core conftest.err conftest.$ac_objext \
6060    conftest$ac_exeext conftest.$ac_ext
6061fi
6062
6063
6064		CFLAGS="$xorg_testset_save_CFLAGS"
6065
6066		eval supported=\$$cacheid
6067		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6068$as_echo "$supported" >&6; }
6069		if test "$supported" = "yes" ; then
6070			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6071			found="yes"
6072		fi
6073	fi
6074
6075
6076
6077
6078
6079# This chunk adds additional warnings that could catch undesired effects.
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093xorg_testset_save_CFLAGS="$CFLAGS"
6094
6095if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6096	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6097	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6098$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6099if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6100  $as_echo_n "(cached) " >&6
6101else
6102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6103/* end confdefs.h.  */
6104int i;
6105_ACEOF
6106if ac_fn_c_try_compile "$LINENO"; then :
6107  xorg_cv_cc_flag_unknown_warning_option=yes
6108else
6109  xorg_cv_cc_flag_unknown_warning_option=no
6110fi
6111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6112fi
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6114$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6115	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6116	CFLAGS="$xorg_testset_save_CFLAGS"
6117fi
6118
6119if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6120	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6121		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6122	fi
6123	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6124	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6125$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6126if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6127  $as_echo_n "(cached) " >&6
6128else
6129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130/* end confdefs.h.  */
6131int i;
6132_ACEOF
6133if ac_fn_c_try_compile "$LINENO"; then :
6134  xorg_cv_cc_flag_unused_command_line_argument=yes
6135else
6136  xorg_cv_cc_flag_unused_command_line_argument=no
6137fi
6138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6139fi
6140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6141$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6142	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6143	CFLAGS="$xorg_testset_save_CFLAGS"
6144fi
6145
6146found="no"
6147
6148	if test $found = "no" ; then
6149		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6150			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6151		fi
6152
6153		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6154			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6155		fi
6156
6157		CFLAGS="$CFLAGS -Wunused"
6158
6159		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6160$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6161		cacheid=xorg_cv_cc_flag__Wunused
6162		if eval \${$cacheid+:} false; then :
6163  $as_echo_n "(cached) " >&6
6164else
6165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6166/* end confdefs.h.  */
6167int i;
6168int
6169main ()
6170{
6171
6172  ;
6173  return 0;
6174}
6175_ACEOF
6176if ac_fn_c_try_link "$LINENO"; then :
6177  eval $cacheid=yes
6178else
6179  eval $cacheid=no
6180fi
6181rm -f core conftest.err conftest.$ac_objext \
6182    conftest$ac_exeext conftest.$ac_ext
6183fi
6184
6185
6186		CFLAGS="$xorg_testset_save_CFLAGS"
6187
6188		eval supported=\$$cacheid
6189		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6190$as_echo "$supported" >&6; }
6191		if test "$supported" = "yes" ; then
6192			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6193			found="yes"
6194		fi
6195	fi
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211xorg_testset_save_CFLAGS="$CFLAGS"
6212
6213if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6214	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6215	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6216$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6217if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6218  $as_echo_n "(cached) " >&6
6219else
6220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221/* end confdefs.h.  */
6222int i;
6223_ACEOF
6224if ac_fn_c_try_compile "$LINENO"; then :
6225  xorg_cv_cc_flag_unknown_warning_option=yes
6226else
6227  xorg_cv_cc_flag_unknown_warning_option=no
6228fi
6229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6230fi
6231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6232$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6233	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6234	CFLAGS="$xorg_testset_save_CFLAGS"
6235fi
6236
6237if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6238	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6239		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6240	fi
6241	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6242	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6243$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6244if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6245  $as_echo_n "(cached) " >&6
6246else
6247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248/* end confdefs.h.  */
6249int i;
6250_ACEOF
6251if ac_fn_c_try_compile "$LINENO"; then :
6252  xorg_cv_cc_flag_unused_command_line_argument=yes
6253else
6254  xorg_cv_cc_flag_unused_command_line_argument=no
6255fi
6256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6257fi
6258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6259$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6260	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6261	CFLAGS="$xorg_testset_save_CFLAGS"
6262fi
6263
6264found="no"
6265
6266	if test $found = "no" ; then
6267		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6268			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6269		fi
6270
6271		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6272			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6273		fi
6274
6275		CFLAGS="$CFLAGS -Wuninitialized"
6276
6277		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6278$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6279		cacheid=xorg_cv_cc_flag__Wuninitialized
6280		if eval \${$cacheid+:} false; then :
6281  $as_echo_n "(cached) " >&6
6282else
6283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284/* end confdefs.h.  */
6285int i;
6286int
6287main ()
6288{
6289
6290  ;
6291  return 0;
6292}
6293_ACEOF
6294if ac_fn_c_try_link "$LINENO"; then :
6295  eval $cacheid=yes
6296else
6297  eval $cacheid=no
6298fi
6299rm -f core conftest.err conftest.$ac_objext \
6300    conftest$ac_exeext conftest.$ac_ext
6301fi
6302
6303
6304		CFLAGS="$xorg_testset_save_CFLAGS"
6305
6306		eval supported=\$$cacheid
6307		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6308$as_echo "$supported" >&6; }
6309		if test "$supported" = "yes" ; then
6310			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6311			found="yes"
6312		fi
6313	fi
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329xorg_testset_save_CFLAGS="$CFLAGS"
6330
6331if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6332	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6333	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6334$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6335if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6336  $as_echo_n "(cached) " >&6
6337else
6338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339/* end confdefs.h.  */
6340int i;
6341_ACEOF
6342if ac_fn_c_try_compile "$LINENO"; then :
6343  xorg_cv_cc_flag_unknown_warning_option=yes
6344else
6345  xorg_cv_cc_flag_unknown_warning_option=no
6346fi
6347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6348fi
6349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6350$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6351	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6352	CFLAGS="$xorg_testset_save_CFLAGS"
6353fi
6354
6355if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6356	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6357		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6358	fi
6359	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6360	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6361$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6362if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6363  $as_echo_n "(cached) " >&6
6364else
6365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366/* end confdefs.h.  */
6367int i;
6368_ACEOF
6369if ac_fn_c_try_compile "$LINENO"; then :
6370  xorg_cv_cc_flag_unused_command_line_argument=yes
6371else
6372  xorg_cv_cc_flag_unused_command_line_argument=no
6373fi
6374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6375fi
6376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6377$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6378	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6379	CFLAGS="$xorg_testset_save_CFLAGS"
6380fi
6381
6382found="no"
6383
6384	if test $found = "no" ; then
6385		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6386			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6387		fi
6388
6389		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6390			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6391		fi
6392
6393		CFLAGS="$CFLAGS -Wshadow"
6394
6395		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6396$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6397		cacheid=xorg_cv_cc_flag__Wshadow
6398		if eval \${$cacheid+:} false; then :
6399  $as_echo_n "(cached) " >&6
6400else
6401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6402/* end confdefs.h.  */
6403int i;
6404int
6405main ()
6406{
6407
6408  ;
6409  return 0;
6410}
6411_ACEOF
6412if ac_fn_c_try_link "$LINENO"; then :
6413  eval $cacheid=yes
6414else
6415  eval $cacheid=no
6416fi
6417rm -f core conftest.err conftest.$ac_objext \
6418    conftest$ac_exeext conftest.$ac_ext
6419fi
6420
6421
6422		CFLAGS="$xorg_testset_save_CFLAGS"
6423
6424		eval supported=\$$cacheid
6425		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6426$as_echo "$supported" >&6; }
6427		if test "$supported" = "yes" ; then
6428			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6429			found="yes"
6430		fi
6431	fi
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447xorg_testset_save_CFLAGS="$CFLAGS"
6448
6449if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6450	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6451	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6452$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6453if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6454  $as_echo_n "(cached) " >&6
6455else
6456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457/* end confdefs.h.  */
6458int i;
6459_ACEOF
6460if ac_fn_c_try_compile "$LINENO"; then :
6461  xorg_cv_cc_flag_unknown_warning_option=yes
6462else
6463  xorg_cv_cc_flag_unknown_warning_option=no
6464fi
6465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6466fi
6467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6468$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6469	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6470	CFLAGS="$xorg_testset_save_CFLAGS"
6471fi
6472
6473if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6474	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6475		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6476	fi
6477	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6478	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6479$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6480if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6481  $as_echo_n "(cached) " >&6
6482else
6483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484/* end confdefs.h.  */
6485int i;
6486_ACEOF
6487if ac_fn_c_try_compile "$LINENO"; then :
6488  xorg_cv_cc_flag_unused_command_line_argument=yes
6489else
6490  xorg_cv_cc_flag_unused_command_line_argument=no
6491fi
6492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6493fi
6494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6495$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6496	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6497	CFLAGS="$xorg_testset_save_CFLAGS"
6498fi
6499
6500found="no"
6501
6502	if test $found = "no" ; then
6503		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6504			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6505		fi
6506
6507		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6508			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6509		fi
6510
6511		CFLAGS="$CFLAGS -Wmissing-noreturn"
6512
6513		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6514$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6515		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6516		if eval \${$cacheid+:} false; then :
6517  $as_echo_n "(cached) " >&6
6518else
6519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6520/* end confdefs.h.  */
6521int i;
6522int
6523main ()
6524{
6525
6526  ;
6527  return 0;
6528}
6529_ACEOF
6530if ac_fn_c_try_link "$LINENO"; then :
6531  eval $cacheid=yes
6532else
6533  eval $cacheid=no
6534fi
6535rm -f core conftest.err conftest.$ac_objext \
6536    conftest$ac_exeext conftest.$ac_ext
6537fi
6538
6539
6540		CFLAGS="$xorg_testset_save_CFLAGS"
6541
6542		eval supported=\$$cacheid
6543		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6544$as_echo "$supported" >&6; }
6545		if test "$supported" = "yes" ; then
6546			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6547			found="yes"
6548		fi
6549	fi
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565xorg_testset_save_CFLAGS="$CFLAGS"
6566
6567if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6568	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6569	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6570$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6571if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6572  $as_echo_n "(cached) " >&6
6573else
6574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575/* end confdefs.h.  */
6576int i;
6577_ACEOF
6578if ac_fn_c_try_compile "$LINENO"; then :
6579  xorg_cv_cc_flag_unknown_warning_option=yes
6580else
6581  xorg_cv_cc_flag_unknown_warning_option=no
6582fi
6583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6584fi
6585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6586$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6587	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6588	CFLAGS="$xorg_testset_save_CFLAGS"
6589fi
6590
6591if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6592	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6593		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6594	fi
6595	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6596	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6597$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6598if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6599  $as_echo_n "(cached) " >&6
6600else
6601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6602/* end confdefs.h.  */
6603int i;
6604_ACEOF
6605if ac_fn_c_try_compile "$LINENO"; then :
6606  xorg_cv_cc_flag_unused_command_line_argument=yes
6607else
6608  xorg_cv_cc_flag_unused_command_line_argument=no
6609fi
6610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6611fi
6612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6613$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6614	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6615	CFLAGS="$xorg_testset_save_CFLAGS"
6616fi
6617
6618found="no"
6619
6620	if test $found = "no" ; then
6621		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6622			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6623		fi
6624
6625		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6626			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6627		fi
6628
6629		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6630
6631		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6632$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6633		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6634		if eval \${$cacheid+:} false; then :
6635  $as_echo_n "(cached) " >&6
6636else
6637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638/* end confdefs.h.  */
6639int i;
6640int
6641main ()
6642{
6643
6644  ;
6645  return 0;
6646}
6647_ACEOF
6648if ac_fn_c_try_link "$LINENO"; then :
6649  eval $cacheid=yes
6650else
6651  eval $cacheid=no
6652fi
6653rm -f core conftest.err conftest.$ac_objext \
6654    conftest$ac_exeext conftest.$ac_ext
6655fi
6656
6657
6658		CFLAGS="$xorg_testset_save_CFLAGS"
6659
6660		eval supported=\$$cacheid
6661		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6662$as_echo "$supported" >&6; }
6663		if test "$supported" = "yes" ; then
6664			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6665			found="yes"
6666		fi
6667	fi
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683xorg_testset_save_CFLAGS="$CFLAGS"
6684
6685if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6686	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6687	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6688$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6689if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6690  $as_echo_n "(cached) " >&6
6691else
6692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693/* end confdefs.h.  */
6694int i;
6695_ACEOF
6696if ac_fn_c_try_compile "$LINENO"; then :
6697  xorg_cv_cc_flag_unknown_warning_option=yes
6698else
6699  xorg_cv_cc_flag_unknown_warning_option=no
6700fi
6701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6702fi
6703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6704$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6705	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6706	CFLAGS="$xorg_testset_save_CFLAGS"
6707fi
6708
6709if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6710	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6711		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6712	fi
6713	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6714	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6715$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6716if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6717  $as_echo_n "(cached) " >&6
6718else
6719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720/* end confdefs.h.  */
6721int i;
6722_ACEOF
6723if ac_fn_c_try_compile "$LINENO"; then :
6724  xorg_cv_cc_flag_unused_command_line_argument=yes
6725else
6726  xorg_cv_cc_flag_unused_command_line_argument=no
6727fi
6728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6729fi
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6731$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6732	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6733	CFLAGS="$xorg_testset_save_CFLAGS"
6734fi
6735
6736found="no"
6737
6738	if test $found = "no" ; then
6739		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6740			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6741		fi
6742
6743		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6744			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6745		fi
6746
6747		CFLAGS="$CFLAGS -Wredundant-decls"
6748
6749		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6750$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6751		cacheid=xorg_cv_cc_flag__Wredundant_decls
6752		if eval \${$cacheid+:} false; then :
6753  $as_echo_n "(cached) " >&6
6754else
6755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756/* end confdefs.h.  */
6757int i;
6758int
6759main ()
6760{
6761
6762  ;
6763  return 0;
6764}
6765_ACEOF
6766if ac_fn_c_try_link "$LINENO"; then :
6767  eval $cacheid=yes
6768else
6769  eval $cacheid=no
6770fi
6771rm -f core conftest.err conftest.$ac_objext \
6772    conftest$ac_exeext conftest.$ac_ext
6773fi
6774
6775
6776		CFLAGS="$xorg_testset_save_CFLAGS"
6777
6778		eval supported=\$$cacheid
6779		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6780$as_echo "$supported" >&6; }
6781		if test "$supported" = "yes" ; then
6782			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6783			found="yes"
6784		fi
6785	fi
6786
6787
6788
6789# These are currently disabled because they are noisy.  They will be enabled
6790# in the future once the codebase is sufficiently modernized to silence
6791# them.  For now, I don't want them to drown out the other warnings.
6792# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6793# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6794# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6795# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6796
6797# Turn some warnings into errors, so we don't accidently get successful builds
6798# when there are problems that should be fixed.
6799
6800if test "x$SELECTIVE_WERROR" = "xyes" ; then
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814xorg_testset_save_CFLAGS="$CFLAGS"
6815
6816if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6817	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6818	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6819$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6820if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6821  $as_echo_n "(cached) " >&6
6822else
6823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824/* end confdefs.h.  */
6825int i;
6826_ACEOF
6827if ac_fn_c_try_compile "$LINENO"; then :
6828  xorg_cv_cc_flag_unknown_warning_option=yes
6829else
6830  xorg_cv_cc_flag_unknown_warning_option=no
6831fi
6832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6833fi
6834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6835$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6836	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6837	CFLAGS="$xorg_testset_save_CFLAGS"
6838fi
6839
6840if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6841	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6842		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6843	fi
6844	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6845	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6846$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6847if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6848  $as_echo_n "(cached) " >&6
6849else
6850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851/* end confdefs.h.  */
6852int i;
6853_ACEOF
6854if ac_fn_c_try_compile "$LINENO"; then :
6855  xorg_cv_cc_flag_unused_command_line_argument=yes
6856else
6857  xorg_cv_cc_flag_unused_command_line_argument=no
6858fi
6859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6860fi
6861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6862$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6863	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6864	CFLAGS="$xorg_testset_save_CFLAGS"
6865fi
6866
6867found="no"
6868
6869	if test $found = "no" ; then
6870		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6871			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6872		fi
6873
6874		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6875			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6876		fi
6877
6878		CFLAGS="$CFLAGS -Werror=implicit"
6879
6880		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6881$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6882		cacheid=xorg_cv_cc_flag__Werror_implicit
6883		if eval \${$cacheid+:} false; then :
6884  $as_echo_n "(cached) " >&6
6885else
6886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887/* end confdefs.h.  */
6888int i;
6889int
6890main ()
6891{
6892
6893  ;
6894  return 0;
6895}
6896_ACEOF
6897if ac_fn_c_try_link "$LINENO"; then :
6898  eval $cacheid=yes
6899else
6900  eval $cacheid=no
6901fi
6902rm -f core conftest.err conftest.$ac_objext \
6903    conftest$ac_exeext conftest.$ac_ext
6904fi
6905
6906
6907		CFLAGS="$xorg_testset_save_CFLAGS"
6908
6909		eval supported=\$$cacheid
6910		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6911$as_echo "$supported" >&6; }
6912		if test "$supported" = "yes" ; then
6913			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6914			found="yes"
6915		fi
6916	fi
6917
6918	if test $found = "no" ; then
6919		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6920			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6921		fi
6922
6923		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6924			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6925		fi
6926
6927		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6928
6929		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6930$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6931		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6932		if eval \${$cacheid+:} false; then :
6933  $as_echo_n "(cached) " >&6
6934else
6935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936/* end confdefs.h.  */
6937int i;
6938int
6939main ()
6940{
6941
6942  ;
6943  return 0;
6944}
6945_ACEOF
6946if ac_fn_c_try_link "$LINENO"; then :
6947  eval $cacheid=yes
6948else
6949  eval $cacheid=no
6950fi
6951rm -f core conftest.err conftest.$ac_objext \
6952    conftest$ac_exeext conftest.$ac_ext
6953fi
6954
6955
6956		CFLAGS="$xorg_testset_save_CFLAGS"
6957
6958		eval supported=\$$cacheid
6959		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6960$as_echo "$supported" >&6; }
6961		if test "$supported" = "yes" ; then
6962			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6963			found="yes"
6964		fi
6965	fi
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981xorg_testset_save_CFLAGS="$CFLAGS"
6982
6983if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6984	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6985	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6986$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6987if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6988  $as_echo_n "(cached) " >&6
6989else
6990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6991/* end confdefs.h.  */
6992int i;
6993_ACEOF
6994if ac_fn_c_try_compile "$LINENO"; then :
6995  xorg_cv_cc_flag_unknown_warning_option=yes
6996else
6997  xorg_cv_cc_flag_unknown_warning_option=no
6998fi
6999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7000fi
7001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7002$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7003	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7004	CFLAGS="$xorg_testset_save_CFLAGS"
7005fi
7006
7007if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7008	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7009		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7010	fi
7011	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7012	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7013$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7014if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7015  $as_echo_n "(cached) " >&6
7016else
7017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018/* end confdefs.h.  */
7019int i;
7020_ACEOF
7021if ac_fn_c_try_compile "$LINENO"; then :
7022  xorg_cv_cc_flag_unused_command_line_argument=yes
7023else
7024  xorg_cv_cc_flag_unused_command_line_argument=no
7025fi
7026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7027fi
7028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7029$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7030	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7031	CFLAGS="$xorg_testset_save_CFLAGS"
7032fi
7033
7034found="no"
7035
7036	if test $found = "no" ; then
7037		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7038			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7039		fi
7040
7041		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7042			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7043		fi
7044
7045		CFLAGS="$CFLAGS -Werror=nonnull"
7046
7047		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7048$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7049		cacheid=xorg_cv_cc_flag__Werror_nonnull
7050		if eval \${$cacheid+:} false; then :
7051  $as_echo_n "(cached) " >&6
7052else
7053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054/* end confdefs.h.  */
7055int i;
7056int
7057main ()
7058{
7059
7060  ;
7061  return 0;
7062}
7063_ACEOF
7064if ac_fn_c_try_link "$LINENO"; then :
7065  eval $cacheid=yes
7066else
7067  eval $cacheid=no
7068fi
7069rm -f core conftest.err conftest.$ac_objext \
7070    conftest$ac_exeext conftest.$ac_ext
7071fi
7072
7073
7074		CFLAGS="$xorg_testset_save_CFLAGS"
7075
7076		eval supported=\$$cacheid
7077		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7078$as_echo "$supported" >&6; }
7079		if test "$supported" = "yes" ; then
7080			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7081			found="yes"
7082		fi
7083	fi
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099xorg_testset_save_CFLAGS="$CFLAGS"
7100
7101if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7102	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7103	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7104$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7105if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7106  $as_echo_n "(cached) " >&6
7107else
7108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7109/* end confdefs.h.  */
7110int i;
7111_ACEOF
7112if ac_fn_c_try_compile "$LINENO"; then :
7113  xorg_cv_cc_flag_unknown_warning_option=yes
7114else
7115  xorg_cv_cc_flag_unknown_warning_option=no
7116fi
7117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7118fi
7119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7120$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7121	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7122	CFLAGS="$xorg_testset_save_CFLAGS"
7123fi
7124
7125if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7126	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7127		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7128	fi
7129	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7130	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7131$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7132if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7133  $as_echo_n "(cached) " >&6
7134else
7135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136/* end confdefs.h.  */
7137int i;
7138_ACEOF
7139if ac_fn_c_try_compile "$LINENO"; then :
7140  xorg_cv_cc_flag_unused_command_line_argument=yes
7141else
7142  xorg_cv_cc_flag_unused_command_line_argument=no
7143fi
7144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7145fi
7146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7147$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7148	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7149	CFLAGS="$xorg_testset_save_CFLAGS"
7150fi
7151
7152found="no"
7153
7154	if test $found = "no" ; then
7155		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7156			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7157		fi
7158
7159		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7160			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7161		fi
7162
7163		CFLAGS="$CFLAGS -Werror=init-self"
7164
7165		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7166$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7167		cacheid=xorg_cv_cc_flag__Werror_init_self
7168		if eval \${$cacheid+:} false; then :
7169  $as_echo_n "(cached) " >&6
7170else
7171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172/* end confdefs.h.  */
7173int i;
7174int
7175main ()
7176{
7177
7178  ;
7179  return 0;
7180}
7181_ACEOF
7182if ac_fn_c_try_link "$LINENO"; then :
7183  eval $cacheid=yes
7184else
7185  eval $cacheid=no
7186fi
7187rm -f core conftest.err conftest.$ac_objext \
7188    conftest$ac_exeext conftest.$ac_ext
7189fi
7190
7191
7192		CFLAGS="$xorg_testset_save_CFLAGS"
7193
7194		eval supported=\$$cacheid
7195		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7196$as_echo "$supported" >&6; }
7197		if test "$supported" = "yes" ; then
7198			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7199			found="yes"
7200		fi
7201	fi
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217xorg_testset_save_CFLAGS="$CFLAGS"
7218
7219if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7220	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7221	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7222$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7223if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7224  $as_echo_n "(cached) " >&6
7225else
7226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227/* end confdefs.h.  */
7228int i;
7229_ACEOF
7230if ac_fn_c_try_compile "$LINENO"; then :
7231  xorg_cv_cc_flag_unknown_warning_option=yes
7232else
7233  xorg_cv_cc_flag_unknown_warning_option=no
7234fi
7235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7236fi
7237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7238$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7239	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7240	CFLAGS="$xorg_testset_save_CFLAGS"
7241fi
7242
7243if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7244	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7245		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7246	fi
7247	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7248	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7249$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7250if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7251  $as_echo_n "(cached) " >&6
7252else
7253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7254/* end confdefs.h.  */
7255int i;
7256_ACEOF
7257if ac_fn_c_try_compile "$LINENO"; then :
7258  xorg_cv_cc_flag_unused_command_line_argument=yes
7259else
7260  xorg_cv_cc_flag_unused_command_line_argument=no
7261fi
7262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7263fi
7264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7265$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7266	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7267	CFLAGS="$xorg_testset_save_CFLAGS"
7268fi
7269
7270found="no"
7271
7272	if test $found = "no" ; then
7273		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7274			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7275		fi
7276
7277		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7278			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7279		fi
7280
7281		CFLAGS="$CFLAGS -Werror=main"
7282
7283		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7284$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7285		cacheid=xorg_cv_cc_flag__Werror_main
7286		if eval \${$cacheid+:} false; then :
7287  $as_echo_n "(cached) " >&6
7288else
7289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290/* end confdefs.h.  */
7291int i;
7292int
7293main ()
7294{
7295
7296  ;
7297  return 0;
7298}
7299_ACEOF
7300if ac_fn_c_try_link "$LINENO"; then :
7301  eval $cacheid=yes
7302else
7303  eval $cacheid=no
7304fi
7305rm -f core conftest.err conftest.$ac_objext \
7306    conftest$ac_exeext conftest.$ac_ext
7307fi
7308
7309
7310		CFLAGS="$xorg_testset_save_CFLAGS"
7311
7312		eval supported=\$$cacheid
7313		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7314$as_echo "$supported" >&6; }
7315		if test "$supported" = "yes" ; then
7316			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7317			found="yes"
7318		fi
7319	fi
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335xorg_testset_save_CFLAGS="$CFLAGS"
7336
7337if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7338	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7339	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7340$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7341if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7342  $as_echo_n "(cached) " >&6
7343else
7344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7345/* end confdefs.h.  */
7346int i;
7347_ACEOF
7348if ac_fn_c_try_compile "$LINENO"; then :
7349  xorg_cv_cc_flag_unknown_warning_option=yes
7350else
7351  xorg_cv_cc_flag_unknown_warning_option=no
7352fi
7353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7354fi
7355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7356$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7357	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7358	CFLAGS="$xorg_testset_save_CFLAGS"
7359fi
7360
7361if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7362	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7363		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7364	fi
7365	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7366	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7367$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7368if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7369  $as_echo_n "(cached) " >&6
7370else
7371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372/* end confdefs.h.  */
7373int i;
7374_ACEOF
7375if ac_fn_c_try_compile "$LINENO"; then :
7376  xorg_cv_cc_flag_unused_command_line_argument=yes
7377else
7378  xorg_cv_cc_flag_unused_command_line_argument=no
7379fi
7380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7381fi
7382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7383$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7384	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7385	CFLAGS="$xorg_testset_save_CFLAGS"
7386fi
7387
7388found="no"
7389
7390	if test $found = "no" ; then
7391		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7392			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7393		fi
7394
7395		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7396			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7397		fi
7398
7399		CFLAGS="$CFLAGS -Werror=missing-braces"
7400
7401		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7402$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7403		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7404		if eval \${$cacheid+:} false; then :
7405  $as_echo_n "(cached) " >&6
7406else
7407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408/* end confdefs.h.  */
7409int i;
7410int
7411main ()
7412{
7413
7414  ;
7415  return 0;
7416}
7417_ACEOF
7418if ac_fn_c_try_link "$LINENO"; then :
7419  eval $cacheid=yes
7420else
7421  eval $cacheid=no
7422fi
7423rm -f core conftest.err conftest.$ac_objext \
7424    conftest$ac_exeext conftest.$ac_ext
7425fi
7426
7427
7428		CFLAGS="$xorg_testset_save_CFLAGS"
7429
7430		eval supported=\$$cacheid
7431		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7432$as_echo "$supported" >&6; }
7433		if test "$supported" = "yes" ; then
7434			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7435			found="yes"
7436		fi
7437	fi
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453xorg_testset_save_CFLAGS="$CFLAGS"
7454
7455if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7456	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7457	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7458$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7459if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7460  $as_echo_n "(cached) " >&6
7461else
7462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463/* end confdefs.h.  */
7464int i;
7465_ACEOF
7466if ac_fn_c_try_compile "$LINENO"; then :
7467  xorg_cv_cc_flag_unknown_warning_option=yes
7468else
7469  xorg_cv_cc_flag_unknown_warning_option=no
7470fi
7471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7472fi
7473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7474$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7475	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7476	CFLAGS="$xorg_testset_save_CFLAGS"
7477fi
7478
7479if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7480	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7481		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7482	fi
7483	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7484	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7485$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7486if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7487  $as_echo_n "(cached) " >&6
7488else
7489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7490/* end confdefs.h.  */
7491int i;
7492_ACEOF
7493if ac_fn_c_try_compile "$LINENO"; then :
7494  xorg_cv_cc_flag_unused_command_line_argument=yes
7495else
7496  xorg_cv_cc_flag_unused_command_line_argument=no
7497fi
7498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7499fi
7500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7501$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7502	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7503	CFLAGS="$xorg_testset_save_CFLAGS"
7504fi
7505
7506found="no"
7507
7508	if test $found = "no" ; then
7509		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7510			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7511		fi
7512
7513		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7514			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7515		fi
7516
7517		CFLAGS="$CFLAGS -Werror=sequence-point"
7518
7519		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7520$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7521		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7522		if eval \${$cacheid+:} false; then :
7523  $as_echo_n "(cached) " >&6
7524else
7525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7526/* end confdefs.h.  */
7527int i;
7528int
7529main ()
7530{
7531
7532  ;
7533  return 0;
7534}
7535_ACEOF
7536if ac_fn_c_try_link "$LINENO"; then :
7537  eval $cacheid=yes
7538else
7539  eval $cacheid=no
7540fi
7541rm -f core conftest.err conftest.$ac_objext \
7542    conftest$ac_exeext conftest.$ac_ext
7543fi
7544
7545
7546		CFLAGS="$xorg_testset_save_CFLAGS"
7547
7548		eval supported=\$$cacheid
7549		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7550$as_echo "$supported" >&6; }
7551		if test "$supported" = "yes" ; then
7552			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7553			found="yes"
7554		fi
7555	fi
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571xorg_testset_save_CFLAGS="$CFLAGS"
7572
7573if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7574	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7575	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7576$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7577if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7578  $as_echo_n "(cached) " >&6
7579else
7580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7581/* end confdefs.h.  */
7582int i;
7583_ACEOF
7584if ac_fn_c_try_compile "$LINENO"; then :
7585  xorg_cv_cc_flag_unknown_warning_option=yes
7586else
7587  xorg_cv_cc_flag_unknown_warning_option=no
7588fi
7589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7590fi
7591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7592$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7593	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7594	CFLAGS="$xorg_testset_save_CFLAGS"
7595fi
7596
7597if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7598	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7599		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7600	fi
7601	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7602	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7603$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7604if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7605  $as_echo_n "(cached) " >&6
7606else
7607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608/* end confdefs.h.  */
7609int i;
7610_ACEOF
7611if ac_fn_c_try_compile "$LINENO"; then :
7612  xorg_cv_cc_flag_unused_command_line_argument=yes
7613else
7614  xorg_cv_cc_flag_unused_command_line_argument=no
7615fi
7616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7617fi
7618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7619$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7620	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7621	CFLAGS="$xorg_testset_save_CFLAGS"
7622fi
7623
7624found="no"
7625
7626	if test $found = "no" ; then
7627		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7628			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7629		fi
7630
7631		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7632			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7633		fi
7634
7635		CFLAGS="$CFLAGS -Werror=return-type"
7636
7637		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7638$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7639		cacheid=xorg_cv_cc_flag__Werror_return_type
7640		if eval \${$cacheid+:} false; then :
7641  $as_echo_n "(cached) " >&6
7642else
7643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644/* end confdefs.h.  */
7645int i;
7646int
7647main ()
7648{
7649
7650  ;
7651  return 0;
7652}
7653_ACEOF
7654if ac_fn_c_try_link "$LINENO"; then :
7655  eval $cacheid=yes
7656else
7657  eval $cacheid=no
7658fi
7659rm -f core conftest.err conftest.$ac_objext \
7660    conftest$ac_exeext conftest.$ac_ext
7661fi
7662
7663
7664		CFLAGS="$xorg_testset_save_CFLAGS"
7665
7666		eval supported=\$$cacheid
7667		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7668$as_echo "$supported" >&6; }
7669		if test "$supported" = "yes" ; then
7670			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7671			found="yes"
7672		fi
7673	fi
7674
7675	if test $found = "no" ; then
7676		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7677			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7678		fi
7679
7680		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7681			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7682		fi
7683
7684		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7685
7686		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7687$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7688		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7689		if eval \${$cacheid+:} false; then :
7690  $as_echo_n "(cached) " >&6
7691else
7692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693/* end confdefs.h.  */
7694int i;
7695int
7696main ()
7697{
7698
7699  ;
7700  return 0;
7701}
7702_ACEOF
7703if ac_fn_c_try_link "$LINENO"; then :
7704  eval $cacheid=yes
7705else
7706  eval $cacheid=no
7707fi
7708rm -f core conftest.err conftest.$ac_objext \
7709    conftest$ac_exeext conftest.$ac_ext
7710fi
7711
7712
7713		CFLAGS="$xorg_testset_save_CFLAGS"
7714
7715		eval supported=\$$cacheid
7716		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7717$as_echo "$supported" >&6; }
7718		if test "$supported" = "yes" ; then
7719			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7720			found="yes"
7721		fi
7722	fi
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738xorg_testset_save_CFLAGS="$CFLAGS"
7739
7740if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7741	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7742	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7743$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7744if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7745  $as_echo_n "(cached) " >&6
7746else
7747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7748/* end confdefs.h.  */
7749int i;
7750_ACEOF
7751if ac_fn_c_try_compile "$LINENO"; then :
7752  xorg_cv_cc_flag_unknown_warning_option=yes
7753else
7754  xorg_cv_cc_flag_unknown_warning_option=no
7755fi
7756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7757fi
7758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7759$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7760	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7761	CFLAGS="$xorg_testset_save_CFLAGS"
7762fi
7763
7764if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7765	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7766		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7767	fi
7768	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7769	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7770$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7771if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7772  $as_echo_n "(cached) " >&6
7773else
7774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775/* end confdefs.h.  */
7776int i;
7777_ACEOF
7778if ac_fn_c_try_compile "$LINENO"; then :
7779  xorg_cv_cc_flag_unused_command_line_argument=yes
7780else
7781  xorg_cv_cc_flag_unused_command_line_argument=no
7782fi
7783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7784fi
7785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7786$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7787	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7788	CFLAGS="$xorg_testset_save_CFLAGS"
7789fi
7790
7791found="no"
7792
7793	if test $found = "no" ; then
7794		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7795			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7796		fi
7797
7798		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7799			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7800		fi
7801
7802		CFLAGS="$CFLAGS -Werror=trigraphs"
7803
7804		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7805$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7806		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7807		if eval \${$cacheid+:} false; then :
7808  $as_echo_n "(cached) " >&6
7809else
7810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811/* end confdefs.h.  */
7812int i;
7813int
7814main ()
7815{
7816
7817  ;
7818  return 0;
7819}
7820_ACEOF
7821if ac_fn_c_try_link "$LINENO"; then :
7822  eval $cacheid=yes
7823else
7824  eval $cacheid=no
7825fi
7826rm -f core conftest.err conftest.$ac_objext \
7827    conftest$ac_exeext conftest.$ac_ext
7828fi
7829
7830
7831		CFLAGS="$xorg_testset_save_CFLAGS"
7832
7833		eval supported=\$$cacheid
7834		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7835$as_echo "$supported" >&6; }
7836		if test "$supported" = "yes" ; then
7837			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7838			found="yes"
7839		fi
7840	fi
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856xorg_testset_save_CFLAGS="$CFLAGS"
7857
7858if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7859	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7860	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7861$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7862if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7863  $as_echo_n "(cached) " >&6
7864else
7865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866/* end confdefs.h.  */
7867int i;
7868_ACEOF
7869if ac_fn_c_try_compile "$LINENO"; then :
7870  xorg_cv_cc_flag_unknown_warning_option=yes
7871else
7872  xorg_cv_cc_flag_unknown_warning_option=no
7873fi
7874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7875fi
7876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7877$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7878	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7879	CFLAGS="$xorg_testset_save_CFLAGS"
7880fi
7881
7882if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7883	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7884		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7885	fi
7886	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7887	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7888$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7889if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7890  $as_echo_n "(cached) " >&6
7891else
7892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893/* end confdefs.h.  */
7894int i;
7895_ACEOF
7896if ac_fn_c_try_compile "$LINENO"; then :
7897  xorg_cv_cc_flag_unused_command_line_argument=yes
7898else
7899  xorg_cv_cc_flag_unused_command_line_argument=no
7900fi
7901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7902fi
7903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7904$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7905	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7906	CFLAGS="$xorg_testset_save_CFLAGS"
7907fi
7908
7909found="no"
7910
7911	if test $found = "no" ; then
7912		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7913			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7914		fi
7915
7916		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7917			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7918		fi
7919
7920		CFLAGS="$CFLAGS -Werror=array-bounds"
7921
7922		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7923$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7924		cacheid=xorg_cv_cc_flag__Werror_array_bounds
7925		if eval \${$cacheid+:} false; then :
7926  $as_echo_n "(cached) " >&6
7927else
7928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929/* end confdefs.h.  */
7930int i;
7931int
7932main ()
7933{
7934
7935  ;
7936  return 0;
7937}
7938_ACEOF
7939if ac_fn_c_try_link "$LINENO"; then :
7940  eval $cacheid=yes
7941else
7942  eval $cacheid=no
7943fi
7944rm -f core conftest.err conftest.$ac_objext \
7945    conftest$ac_exeext conftest.$ac_ext
7946fi
7947
7948
7949		CFLAGS="$xorg_testset_save_CFLAGS"
7950
7951		eval supported=\$$cacheid
7952		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7953$as_echo "$supported" >&6; }
7954		if test "$supported" = "yes" ; then
7955			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7956			found="yes"
7957		fi
7958	fi
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974xorg_testset_save_CFLAGS="$CFLAGS"
7975
7976if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7977	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7978	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7979$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7980if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7981  $as_echo_n "(cached) " >&6
7982else
7983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7984/* end confdefs.h.  */
7985int i;
7986_ACEOF
7987if ac_fn_c_try_compile "$LINENO"; then :
7988  xorg_cv_cc_flag_unknown_warning_option=yes
7989else
7990  xorg_cv_cc_flag_unknown_warning_option=no
7991fi
7992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7993fi
7994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7995$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7996	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7997	CFLAGS="$xorg_testset_save_CFLAGS"
7998fi
7999
8000if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8001	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8002		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8003	fi
8004	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8005	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8006$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8007if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8008  $as_echo_n "(cached) " >&6
8009else
8010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011/* end confdefs.h.  */
8012int i;
8013_ACEOF
8014if ac_fn_c_try_compile "$LINENO"; then :
8015  xorg_cv_cc_flag_unused_command_line_argument=yes
8016else
8017  xorg_cv_cc_flag_unused_command_line_argument=no
8018fi
8019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8020fi
8021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8022$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8023	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8024	CFLAGS="$xorg_testset_save_CFLAGS"
8025fi
8026
8027found="no"
8028
8029	if test $found = "no" ; then
8030		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8031			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8032		fi
8033
8034		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8035			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8036		fi
8037
8038		CFLAGS="$CFLAGS -Werror=write-strings"
8039
8040		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8041$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8042		cacheid=xorg_cv_cc_flag__Werror_write_strings
8043		if eval \${$cacheid+:} false; then :
8044  $as_echo_n "(cached) " >&6
8045else
8046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047/* end confdefs.h.  */
8048int i;
8049int
8050main ()
8051{
8052
8053  ;
8054  return 0;
8055}
8056_ACEOF
8057if ac_fn_c_try_link "$LINENO"; then :
8058  eval $cacheid=yes
8059else
8060  eval $cacheid=no
8061fi
8062rm -f core conftest.err conftest.$ac_objext \
8063    conftest$ac_exeext conftest.$ac_ext
8064fi
8065
8066
8067		CFLAGS="$xorg_testset_save_CFLAGS"
8068
8069		eval supported=\$$cacheid
8070		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8071$as_echo "$supported" >&6; }
8072		if test "$supported" = "yes" ; then
8073			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8074			found="yes"
8075		fi
8076	fi
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092xorg_testset_save_CFLAGS="$CFLAGS"
8093
8094if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8095	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8096	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8097$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8098if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8099  $as_echo_n "(cached) " >&6
8100else
8101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102/* end confdefs.h.  */
8103int i;
8104_ACEOF
8105if ac_fn_c_try_compile "$LINENO"; then :
8106  xorg_cv_cc_flag_unknown_warning_option=yes
8107else
8108  xorg_cv_cc_flag_unknown_warning_option=no
8109fi
8110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8111fi
8112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8113$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8114	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8115	CFLAGS="$xorg_testset_save_CFLAGS"
8116fi
8117
8118if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8119	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8120		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8121	fi
8122	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8123	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8124$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8125if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8126  $as_echo_n "(cached) " >&6
8127else
8128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129/* end confdefs.h.  */
8130int i;
8131_ACEOF
8132if ac_fn_c_try_compile "$LINENO"; then :
8133  xorg_cv_cc_flag_unused_command_line_argument=yes
8134else
8135  xorg_cv_cc_flag_unused_command_line_argument=no
8136fi
8137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8138fi
8139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8140$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8141	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8142	CFLAGS="$xorg_testset_save_CFLAGS"
8143fi
8144
8145found="no"
8146
8147	if test $found = "no" ; then
8148		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8149			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8150		fi
8151
8152		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8153			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8154		fi
8155
8156		CFLAGS="$CFLAGS -Werror=address"
8157
8158		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8159$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8160		cacheid=xorg_cv_cc_flag__Werror_address
8161		if eval \${$cacheid+:} false; then :
8162  $as_echo_n "(cached) " >&6
8163else
8164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165/* end confdefs.h.  */
8166int i;
8167int
8168main ()
8169{
8170
8171  ;
8172  return 0;
8173}
8174_ACEOF
8175if ac_fn_c_try_link "$LINENO"; then :
8176  eval $cacheid=yes
8177else
8178  eval $cacheid=no
8179fi
8180rm -f core conftest.err conftest.$ac_objext \
8181    conftest$ac_exeext conftest.$ac_ext
8182fi
8183
8184
8185		CFLAGS="$xorg_testset_save_CFLAGS"
8186
8187		eval supported=\$$cacheid
8188		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8189$as_echo "$supported" >&6; }
8190		if test "$supported" = "yes" ; then
8191			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8192			found="yes"
8193		fi
8194	fi
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210xorg_testset_save_CFLAGS="$CFLAGS"
8211
8212if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8213	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8214	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8215$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8216if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8217  $as_echo_n "(cached) " >&6
8218else
8219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8220/* end confdefs.h.  */
8221int i;
8222_ACEOF
8223if ac_fn_c_try_compile "$LINENO"; then :
8224  xorg_cv_cc_flag_unknown_warning_option=yes
8225else
8226  xorg_cv_cc_flag_unknown_warning_option=no
8227fi
8228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8229fi
8230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8231$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8232	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8233	CFLAGS="$xorg_testset_save_CFLAGS"
8234fi
8235
8236if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8237	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8238		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8239	fi
8240	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8241	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8242$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8243if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8244  $as_echo_n "(cached) " >&6
8245else
8246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8247/* end confdefs.h.  */
8248int i;
8249_ACEOF
8250if ac_fn_c_try_compile "$LINENO"; then :
8251  xorg_cv_cc_flag_unused_command_line_argument=yes
8252else
8253  xorg_cv_cc_flag_unused_command_line_argument=no
8254fi
8255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8256fi
8257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8258$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8259	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8260	CFLAGS="$xorg_testset_save_CFLAGS"
8261fi
8262
8263found="no"
8264
8265	if test $found = "no" ; then
8266		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8267			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8268		fi
8269
8270		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8271			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8272		fi
8273
8274		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8275
8276		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8277$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8278		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8279		if eval \${$cacheid+:} false; then :
8280  $as_echo_n "(cached) " >&6
8281else
8282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8283/* end confdefs.h.  */
8284int i;
8285int
8286main ()
8287{
8288
8289  ;
8290  return 0;
8291}
8292_ACEOF
8293if ac_fn_c_try_link "$LINENO"; then :
8294  eval $cacheid=yes
8295else
8296  eval $cacheid=no
8297fi
8298rm -f core conftest.err conftest.$ac_objext \
8299    conftest$ac_exeext conftest.$ac_ext
8300fi
8301
8302
8303		CFLAGS="$xorg_testset_save_CFLAGS"
8304
8305		eval supported=\$$cacheid
8306		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8307$as_echo "$supported" >&6; }
8308		if test "$supported" = "yes" ; then
8309			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8310			found="yes"
8311		fi
8312	fi
8313
8314	if test $found = "no" ; then
8315		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8316			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8317		fi
8318
8319		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8320			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8321		fi
8322
8323		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8324
8325		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8326$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8327		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8328		if eval \${$cacheid+:} false; then :
8329  $as_echo_n "(cached) " >&6
8330else
8331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8332/* end confdefs.h.  */
8333int i;
8334int
8335main ()
8336{
8337
8338  ;
8339  return 0;
8340}
8341_ACEOF
8342if ac_fn_c_try_link "$LINENO"; then :
8343  eval $cacheid=yes
8344else
8345  eval $cacheid=no
8346fi
8347rm -f core conftest.err conftest.$ac_objext \
8348    conftest$ac_exeext conftest.$ac_ext
8349fi
8350
8351
8352		CFLAGS="$xorg_testset_save_CFLAGS"
8353
8354		eval supported=\$$cacheid
8355		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8356$as_echo "$supported" >&6; }
8357		if test "$supported" = "yes" ; then
8358			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8359			found="yes"
8360		fi
8361	fi
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377xorg_testset_save_CFLAGS="$CFLAGS"
8378
8379if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8380	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8381	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8382$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8383if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8384  $as_echo_n "(cached) " >&6
8385else
8386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8387/* end confdefs.h.  */
8388int i;
8389_ACEOF
8390if ac_fn_c_try_compile "$LINENO"; then :
8391  xorg_cv_cc_flag_unknown_warning_option=yes
8392else
8393  xorg_cv_cc_flag_unknown_warning_option=no
8394fi
8395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8396fi
8397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8398$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8399	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8400	CFLAGS="$xorg_testset_save_CFLAGS"
8401fi
8402
8403if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8404	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8405		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8406	fi
8407	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8408	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8409$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8410if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8411  $as_echo_n "(cached) " >&6
8412else
8413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414/* end confdefs.h.  */
8415int i;
8416_ACEOF
8417if ac_fn_c_try_compile "$LINENO"; then :
8418  xorg_cv_cc_flag_unused_command_line_argument=yes
8419else
8420  xorg_cv_cc_flag_unused_command_line_argument=no
8421fi
8422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8423fi
8424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8425$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8426	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8427	CFLAGS="$xorg_testset_save_CFLAGS"
8428fi
8429
8430found="no"
8431
8432	if test $found = "no" ; then
8433		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8434			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8435		fi
8436
8437		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8438			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8439		fi
8440
8441		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8442
8443		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8444$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8445		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8446		if eval \${$cacheid+:} false; then :
8447  $as_echo_n "(cached) " >&6
8448else
8449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8450/* end confdefs.h.  */
8451int i;
8452int
8453main ()
8454{
8455
8456  ;
8457  return 0;
8458}
8459_ACEOF
8460if ac_fn_c_try_link "$LINENO"; then :
8461  eval $cacheid=yes
8462else
8463  eval $cacheid=no
8464fi
8465rm -f core conftest.err conftest.$ac_objext \
8466    conftest$ac_exeext conftest.$ac_ext
8467fi
8468
8469
8470		CFLAGS="$xorg_testset_save_CFLAGS"
8471
8472		eval supported=\$$cacheid
8473		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8474$as_echo "$supported" >&6; }
8475		if test "$supported" = "yes" ; then
8476			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8477			found="yes"
8478		fi
8479	fi
8480
8481 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8482else
8483{ $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
8484$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;}
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498xorg_testset_save_CFLAGS="$CFLAGS"
8499
8500if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8501	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8502	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8503$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8504if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8505  $as_echo_n "(cached) " >&6
8506else
8507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8508/* end confdefs.h.  */
8509int i;
8510_ACEOF
8511if ac_fn_c_try_compile "$LINENO"; then :
8512  xorg_cv_cc_flag_unknown_warning_option=yes
8513else
8514  xorg_cv_cc_flag_unknown_warning_option=no
8515fi
8516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8517fi
8518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8519$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8520	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8521	CFLAGS="$xorg_testset_save_CFLAGS"
8522fi
8523
8524if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8525	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8526		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8527	fi
8528	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8529	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8530$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8531if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8532  $as_echo_n "(cached) " >&6
8533else
8534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8535/* end confdefs.h.  */
8536int i;
8537_ACEOF
8538if ac_fn_c_try_compile "$LINENO"; then :
8539  xorg_cv_cc_flag_unused_command_line_argument=yes
8540else
8541  xorg_cv_cc_flag_unused_command_line_argument=no
8542fi
8543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8544fi
8545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8546$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8547	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8548	CFLAGS="$xorg_testset_save_CFLAGS"
8549fi
8550
8551found="no"
8552
8553	if test $found = "no" ; then
8554		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8555			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8556		fi
8557
8558		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8559			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8560		fi
8561
8562		CFLAGS="$CFLAGS -Wimplicit"
8563
8564		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8565$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8566		cacheid=xorg_cv_cc_flag__Wimplicit
8567		if eval \${$cacheid+:} false; then :
8568  $as_echo_n "(cached) " >&6
8569else
8570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8571/* end confdefs.h.  */
8572int i;
8573int
8574main ()
8575{
8576
8577  ;
8578  return 0;
8579}
8580_ACEOF
8581if ac_fn_c_try_link "$LINENO"; then :
8582  eval $cacheid=yes
8583else
8584  eval $cacheid=no
8585fi
8586rm -f core conftest.err conftest.$ac_objext \
8587    conftest$ac_exeext conftest.$ac_ext
8588fi
8589
8590
8591		CFLAGS="$xorg_testset_save_CFLAGS"
8592
8593		eval supported=\$$cacheid
8594		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8595$as_echo "$supported" >&6; }
8596		if test "$supported" = "yes" ; then
8597			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8598			found="yes"
8599		fi
8600	fi
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616xorg_testset_save_CFLAGS="$CFLAGS"
8617
8618if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8619	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8620	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8621$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8622if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8623  $as_echo_n "(cached) " >&6
8624else
8625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8626/* end confdefs.h.  */
8627int i;
8628_ACEOF
8629if ac_fn_c_try_compile "$LINENO"; then :
8630  xorg_cv_cc_flag_unknown_warning_option=yes
8631else
8632  xorg_cv_cc_flag_unknown_warning_option=no
8633fi
8634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8635fi
8636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8637$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8638	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8639	CFLAGS="$xorg_testset_save_CFLAGS"
8640fi
8641
8642if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8643	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8644		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8645	fi
8646	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8647	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8648$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8649if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8650  $as_echo_n "(cached) " >&6
8651else
8652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8653/* end confdefs.h.  */
8654int i;
8655_ACEOF
8656if ac_fn_c_try_compile "$LINENO"; then :
8657  xorg_cv_cc_flag_unused_command_line_argument=yes
8658else
8659  xorg_cv_cc_flag_unused_command_line_argument=no
8660fi
8661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8662fi
8663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8664$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8665	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8666	CFLAGS="$xorg_testset_save_CFLAGS"
8667fi
8668
8669found="no"
8670
8671	if test $found = "no" ; then
8672		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8673			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8674		fi
8675
8676		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8677			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8678		fi
8679
8680		CFLAGS="$CFLAGS -Wnonnull"
8681
8682		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8683$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8684		cacheid=xorg_cv_cc_flag__Wnonnull
8685		if eval \${$cacheid+:} false; then :
8686  $as_echo_n "(cached) " >&6
8687else
8688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689/* end confdefs.h.  */
8690int i;
8691int
8692main ()
8693{
8694
8695  ;
8696  return 0;
8697}
8698_ACEOF
8699if ac_fn_c_try_link "$LINENO"; then :
8700  eval $cacheid=yes
8701else
8702  eval $cacheid=no
8703fi
8704rm -f core conftest.err conftest.$ac_objext \
8705    conftest$ac_exeext conftest.$ac_ext
8706fi
8707
8708
8709		CFLAGS="$xorg_testset_save_CFLAGS"
8710
8711		eval supported=\$$cacheid
8712		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8713$as_echo "$supported" >&6; }
8714		if test "$supported" = "yes" ; then
8715			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8716			found="yes"
8717		fi
8718	fi
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734xorg_testset_save_CFLAGS="$CFLAGS"
8735
8736if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8737	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8738	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8739$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8740if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8741  $as_echo_n "(cached) " >&6
8742else
8743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8744/* end confdefs.h.  */
8745int i;
8746_ACEOF
8747if ac_fn_c_try_compile "$LINENO"; then :
8748  xorg_cv_cc_flag_unknown_warning_option=yes
8749else
8750  xorg_cv_cc_flag_unknown_warning_option=no
8751fi
8752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8753fi
8754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8755$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8756	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8757	CFLAGS="$xorg_testset_save_CFLAGS"
8758fi
8759
8760if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8761	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8762		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8763	fi
8764	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8765	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8766$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8767if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8768  $as_echo_n "(cached) " >&6
8769else
8770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8771/* end confdefs.h.  */
8772int i;
8773_ACEOF
8774if ac_fn_c_try_compile "$LINENO"; then :
8775  xorg_cv_cc_flag_unused_command_line_argument=yes
8776else
8777  xorg_cv_cc_flag_unused_command_line_argument=no
8778fi
8779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8780fi
8781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8782$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8783	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8784	CFLAGS="$xorg_testset_save_CFLAGS"
8785fi
8786
8787found="no"
8788
8789	if test $found = "no" ; then
8790		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8791			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8792		fi
8793
8794		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8795			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8796		fi
8797
8798		CFLAGS="$CFLAGS -Winit-self"
8799
8800		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8801$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8802		cacheid=xorg_cv_cc_flag__Winit_self
8803		if eval \${$cacheid+:} false; then :
8804  $as_echo_n "(cached) " >&6
8805else
8806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807/* end confdefs.h.  */
8808int i;
8809int
8810main ()
8811{
8812
8813  ;
8814  return 0;
8815}
8816_ACEOF
8817if ac_fn_c_try_link "$LINENO"; then :
8818  eval $cacheid=yes
8819else
8820  eval $cacheid=no
8821fi
8822rm -f core conftest.err conftest.$ac_objext \
8823    conftest$ac_exeext conftest.$ac_ext
8824fi
8825
8826
8827		CFLAGS="$xorg_testset_save_CFLAGS"
8828
8829		eval supported=\$$cacheid
8830		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8831$as_echo "$supported" >&6; }
8832		if test "$supported" = "yes" ; then
8833			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8834			found="yes"
8835		fi
8836	fi
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852xorg_testset_save_CFLAGS="$CFLAGS"
8853
8854if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8855	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8856	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8857$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8858if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8859  $as_echo_n "(cached) " >&6
8860else
8861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862/* end confdefs.h.  */
8863int i;
8864_ACEOF
8865if ac_fn_c_try_compile "$LINENO"; then :
8866  xorg_cv_cc_flag_unknown_warning_option=yes
8867else
8868  xorg_cv_cc_flag_unknown_warning_option=no
8869fi
8870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8871fi
8872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8873$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8874	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8875	CFLAGS="$xorg_testset_save_CFLAGS"
8876fi
8877
8878if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8879	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8880		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8881	fi
8882	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8883	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8884$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8885if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8886  $as_echo_n "(cached) " >&6
8887else
8888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8889/* end confdefs.h.  */
8890int i;
8891_ACEOF
8892if ac_fn_c_try_compile "$LINENO"; then :
8893  xorg_cv_cc_flag_unused_command_line_argument=yes
8894else
8895  xorg_cv_cc_flag_unused_command_line_argument=no
8896fi
8897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8898fi
8899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8900$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8901	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8902	CFLAGS="$xorg_testset_save_CFLAGS"
8903fi
8904
8905found="no"
8906
8907	if test $found = "no" ; then
8908		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8909			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8910		fi
8911
8912		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8913			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8914		fi
8915
8916		CFLAGS="$CFLAGS -Wmain"
8917
8918		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8919$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8920		cacheid=xorg_cv_cc_flag__Wmain
8921		if eval \${$cacheid+:} false; then :
8922  $as_echo_n "(cached) " >&6
8923else
8924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8925/* end confdefs.h.  */
8926int i;
8927int
8928main ()
8929{
8930
8931  ;
8932  return 0;
8933}
8934_ACEOF
8935if ac_fn_c_try_link "$LINENO"; then :
8936  eval $cacheid=yes
8937else
8938  eval $cacheid=no
8939fi
8940rm -f core conftest.err conftest.$ac_objext \
8941    conftest$ac_exeext conftest.$ac_ext
8942fi
8943
8944
8945		CFLAGS="$xorg_testset_save_CFLAGS"
8946
8947		eval supported=\$$cacheid
8948		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8949$as_echo "$supported" >&6; }
8950		if test "$supported" = "yes" ; then
8951			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8952			found="yes"
8953		fi
8954	fi
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970xorg_testset_save_CFLAGS="$CFLAGS"
8971
8972if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8973	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8974	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8975$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8976if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8977  $as_echo_n "(cached) " >&6
8978else
8979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8980/* end confdefs.h.  */
8981int i;
8982_ACEOF
8983if ac_fn_c_try_compile "$LINENO"; then :
8984  xorg_cv_cc_flag_unknown_warning_option=yes
8985else
8986  xorg_cv_cc_flag_unknown_warning_option=no
8987fi
8988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8989fi
8990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8991$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8992	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8993	CFLAGS="$xorg_testset_save_CFLAGS"
8994fi
8995
8996if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8997	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8998		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8999	fi
9000	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9001	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9002$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9003if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9004  $as_echo_n "(cached) " >&6
9005else
9006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9007/* end confdefs.h.  */
9008int i;
9009_ACEOF
9010if ac_fn_c_try_compile "$LINENO"; then :
9011  xorg_cv_cc_flag_unused_command_line_argument=yes
9012else
9013  xorg_cv_cc_flag_unused_command_line_argument=no
9014fi
9015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9016fi
9017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9018$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9019	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9020	CFLAGS="$xorg_testset_save_CFLAGS"
9021fi
9022
9023found="no"
9024
9025	if test $found = "no" ; then
9026		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9027			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9028		fi
9029
9030		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9031			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9032		fi
9033
9034		CFLAGS="$CFLAGS -Wmissing-braces"
9035
9036		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9037$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9038		cacheid=xorg_cv_cc_flag__Wmissing_braces
9039		if eval \${$cacheid+:} false; then :
9040  $as_echo_n "(cached) " >&6
9041else
9042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043/* end confdefs.h.  */
9044int i;
9045int
9046main ()
9047{
9048
9049  ;
9050  return 0;
9051}
9052_ACEOF
9053if ac_fn_c_try_link "$LINENO"; then :
9054  eval $cacheid=yes
9055else
9056  eval $cacheid=no
9057fi
9058rm -f core conftest.err conftest.$ac_objext \
9059    conftest$ac_exeext conftest.$ac_ext
9060fi
9061
9062
9063		CFLAGS="$xorg_testset_save_CFLAGS"
9064
9065		eval supported=\$$cacheid
9066		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9067$as_echo "$supported" >&6; }
9068		if test "$supported" = "yes" ; then
9069			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9070			found="yes"
9071		fi
9072	fi
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088xorg_testset_save_CFLAGS="$CFLAGS"
9089
9090if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9091	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9092	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9093$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9094if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9095  $as_echo_n "(cached) " >&6
9096else
9097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9098/* end confdefs.h.  */
9099int i;
9100_ACEOF
9101if ac_fn_c_try_compile "$LINENO"; then :
9102  xorg_cv_cc_flag_unknown_warning_option=yes
9103else
9104  xorg_cv_cc_flag_unknown_warning_option=no
9105fi
9106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9107fi
9108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9109$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9110	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9111	CFLAGS="$xorg_testset_save_CFLAGS"
9112fi
9113
9114if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9115	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9116		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9117	fi
9118	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9119	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9120$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9121if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9122  $as_echo_n "(cached) " >&6
9123else
9124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125/* end confdefs.h.  */
9126int i;
9127_ACEOF
9128if ac_fn_c_try_compile "$LINENO"; then :
9129  xorg_cv_cc_flag_unused_command_line_argument=yes
9130else
9131  xorg_cv_cc_flag_unused_command_line_argument=no
9132fi
9133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9134fi
9135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9136$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9137	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9138	CFLAGS="$xorg_testset_save_CFLAGS"
9139fi
9140
9141found="no"
9142
9143	if test $found = "no" ; then
9144		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9145			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9146		fi
9147
9148		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9149			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9150		fi
9151
9152		CFLAGS="$CFLAGS -Wsequence-point"
9153
9154		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9155$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9156		cacheid=xorg_cv_cc_flag__Wsequence_point
9157		if eval \${$cacheid+:} false; then :
9158  $as_echo_n "(cached) " >&6
9159else
9160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161/* end confdefs.h.  */
9162int i;
9163int
9164main ()
9165{
9166
9167  ;
9168  return 0;
9169}
9170_ACEOF
9171if ac_fn_c_try_link "$LINENO"; then :
9172  eval $cacheid=yes
9173else
9174  eval $cacheid=no
9175fi
9176rm -f core conftest.err conftest.$ac_objext \
9177    conftest$ac_exeext conftest.$ac_ext
9178fi
9179
9180
9181		CFLAGS="$xorg_testset_save_CFLAGS"
9182
9183		eval supported=\$$cacheid
9184		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9185$as_echo "$supported" >&6; }
9186		if test "$supported" = "yes" ; then
9187			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9188			found="yes"
9189		fi
9190	fi
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206xorg_testset_save_CFLAGS="$CFLAGS"
9207
9208if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9209	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9210	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9211$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9212if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9213  $as_echo_n "(cached) " >&6
9214else
9215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9216/* end confdefs.h.  */
9217int i;
9218_ACEOF
9219if ac_fn_c_try_compile "$LINENO"; then :
9220  xorg_cv_cc_flag_unknown_warning_option=yes
9221else
9222  xorg_cv_cc_flag_unknown_warning_option=no
9223fi
9224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9225fi
9226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9227$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9228	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9229	CFLAGS="$xorg_testset_save_CFLAGS"
9230fi
9231
9232if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9233	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9234		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9235	fi
9236	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9237	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9238$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9239if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9240  $as_echo_n "(cached) " >&6
9241else
9242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9243/* end confdefs.h.  */
9244int i;
9245_ACEOF
9246if ac_fn_c_try_compile "$LINENO"; then :
9247  xorg_cv_cc_flag_unused_command_line_argument=yes
9248else
9249  xorg_cv_cc_flag_unused_command_line_argument=no
9250fi
9251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9252fi
9253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9254$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9255	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9256	CFLAGS="$xorg_testset_save_CFLAGS"
9257fi
9258
9259found="no"
9260
9261	if test $found = "no" ; then
9262		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9263			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9264		fi
9265
9266		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9267			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9268		fi
9269
9270		CFLAGS="$CFLAGS -Wreturn-type"
9271
9272		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9273$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9274		cacheid=xorg_cv_cc_flag__Wreturn_type
9275		if eval \${$cacheid+:} false; then :
9276  $as_echo_n "(cached) " >&6
9277else
9278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279/* end confdefs.h.  */
9280int i;
9281int
9282main ()
9283{
9284
9285  ;
9286  return 0;
9287}
9288_ACEOF
9289if ac_fn_c_try_link "$LINENO"; then :
9290  eval $cacheid=yes
9291else
9292  eval $cacheid=no
9293fi
9294rm -f core conftest.err conftest.$ac_objext \
9295    conftest$ac_exeext conftest.$ac_ext
9296fi
9297
9298
9299		CFLAGS="$xorg_testset_save_CFLAGS"
9300
9301		eval supported=\$$cacheid
9302		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9303$as_echo "$supported" >&6; }
9304		if test "$supported" = "yes" ; then
9305			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9306			found="yes"
9307		fi
9308	fi
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324xorg_testset_save_CFLAGS="$CFLAGS"
9325
9326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9327	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9328	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9329$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9330if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9331  $as_echo_n "(cached) " >&6
9332else
9333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9334/* end confdefs.h.  */
9335int i;
9336_ACEOF
9337if ac_fn_c_try_compile "$LINENO"; then :
9338  xorg_cv_cc_flag_unknown_warning_option=yes
9339else
9340  xorg_cv_cc_flag_unknown_warning_option=no
9341fi
9342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9343fi
9344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9345$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9346	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9347	CFLAGS="$xorg_testset_save_CFLAGS"
9348fi
9349
9350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9351	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9352		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9353	fi
9354	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9355	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9356$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9357if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9358  $as_echo_n "(cached) " >&6
9359else
9360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9361/* end confdefs.h.  */
9362int i;
9363_ACEOF
9364if ac_fn_c_try_compile "$LINENO"; then :
9365  xorg_cv_cc_flag_unused_command_line_argument=yes
9366else
9367  xorg_cv_cc_flag_unused_command_line_argument=no
9368fi
9369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9370fi
9371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9372$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9373	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9374	CFLAGS="$xorg_testset_save_CFLAGS"
9375fi
9376
9377found="no"
9378
9379	if test $found = "no" ; then
9380		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9381			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9382		fi
9383
9384		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9385			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9386		fi
9387
9388		CFLAGS="$CFLAGS -Wtrigraphs"
9389
9390		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9391$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9392		cacheid=xorg_cv_cc_flag__Wtrigraphs
9393		if eval \${$cacheid+:} false; then :
9394  $as_echo_n "(cached) " >&6
9395else
9396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9397/* end confdefs.h.  */
9398int i;
9399int
9400main ()
9401{
9402
9403  ;
9404  return 0;
9405}
9406_ACEOF
9407if ac_fn_c_try_link "$LINENO"; then :
9408  eval $cacheid=yes
9409else
9410  eval $cacheid=no
9411fi
9412rm -f core conftest.err conftest.$ac_objext \
9413    conftest$ac_exeext conftest.$ac_ext
9414fi
9415
9416
9417		CFLAGS="$xorg_testset_save_CFLAGS"
9418
9419		eval supported=\$$cacheid
9420		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9421$as_echo "$supported" >&6; }
9422		if test "$supported" = "yes" ; then
9423			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9424			found="yes"
9425		fi
9426	fi
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442xorg_testset_save_CFLAGS="$CFLAGS"
9443
9444if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9445	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9446	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9447$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9448if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9449  $as_echo_n "(cached) " >&6
9450else
9451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9452/* end confdefs.h.  */
9453int i;
9454_ACEOF
9455if ac_fn_c_try_compile "$LINENO"; then :
9456  xorg_cv_cc_flag_unknown_warning_option=yes
9457else
9458  xorg_cv_cc_flag_unknown_warning_option=no
9459fi
9460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9461fi
9462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9463$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9464	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9465	CFLAGS="$xorg_testset_save_CFLAGS"
9466fi
9467
9468if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9469	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9470		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9471	fi
9472	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9473	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9474$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9475if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9476  $as_echo_n "(cached) " >&6
9477else
9478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9479/* end confdefs.h.  */
9480int i;
9481_ACEOF
9482if ac_fn_c_try_compile "$LINENO"; then :
9483  xorg_cv_cc_flag_unused_command_line_argument=yes
9484else
9485  xorg_cv_cc_flag_unused_command_line_argument=no
9486fi
9487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9488fi
9489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9490$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9491	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9492	CFLAGS="$xorg_testset_save_CFLAGS"
9493fi
9494
9495found="no"
9496
9497	if test $found = "no" ; then
9498		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9499			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9500		fi
9501
9502		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9503			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9504		fi
9505
9506		CFLAGS="$CFLAGS -Warray-bounds"
9507
9508		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9509$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9510		cacheid=xorg_cv_cc_flag__Warray_bounds
9511		if eval \${$cacheid+:} false; then :
9512  $as_echo_n "(cached) " >&6
9513else
9514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9515/* end confdefs.h.  */
9516int i;
9517int
9518main ()
9519{
9520
9521  ;
9522  return 0;
9523}
9524_ACEOF
9525if ac_fn_c_try_link "$LINENO"; then :
9526  eval $cacheid=yes
9527else
9528  eval $cacheid=no
9529fi
9530rm -f core conftest.err conftest.$ac_objext \
9531    conftest$ac_exeext conftest.$ac_ext
9532fi
9533
9534
9535		CFLAGS="$xorg_testset_save_CFLAGS"
9536
9537		eval supported=\$$cacheid
9538		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9539$as_echo "$supported" >&6; }
9540		if test "$supported" = "yes" ; then
9541			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9542			found="yes"
9543		fi
9544	fi
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560xorg_testset_save_CFLAGS="$CFLAGS"
9561
9562if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9563	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9564	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9565$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9566if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9567  $as_echo_n "(cached) " >&6
9568else
9569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570/* end confdefs.h.  */
9571int i;
9572_ACEOF
9573if ac_fn_c_try_compile "$LINENO"; then :
9574  xorg_cv_cc_flag_unknown_warning_option=yes
9575else
9576  xorg_cv_cc_flag_unknown_warning_option=no
9577fi
9578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9579fi
9580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9581$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9582	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9583	CFLAGS="$xorg_testset_save_CFLAGS"
9584fi
9585
9586if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9587	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9588		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9589	fi
9590	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9591	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9592$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9593if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9594  $as_echo_n "(cached) " >&6
9595else
9596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9597/* end confdefs.h.  */
9598int i;
9599_ACEOF
9600if ac_fn_c_try_compile "$LINENO"; then :
9601  xorg_cv_cc_flag_unused_command_line_argument=yes
9602else
9603  xorg_cv_cc_flag_unused_command_line_argument=no
9604fi
9605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9606fi
9607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9608$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9609	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9610	CFLAGS="$xorg_testset_save_CFLAGS"
9611fi
9612
9613found="no"
9614
9615	if test $found = "no" ; then
9616		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9617			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9618		fi
9619
9620		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9621			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9622		fi
9623
9624		CFLAGS="$CFLAGS -Wwrite-strings"
9625
9626		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9627$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9628		cacheid=xorg_cv_cc_flag__Wwrite_strings
9629		if eval \${$cacheid+:} false; then :
9630  $as_echo_n "(cached) " >&6
9631else
9632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9633/* end confdefs.h.  */
9634int i;
9635int
9636main ()
9637{
9638
9639  ;
9640  return 0;
9641}
9642_ACEOF
9643if ac_fn_c_try_link "$LINENO"; then :
9644  eval $cacheid=yes
9645else
9646  eval $cacheid=no
9647fi
9648rm -f core conftest.err conftest.$ac_objext \
9649    conftest$ac_exeext conftest.$ac_ext
9650fi
9651
9652
9653		CFLAGS="$xorg_testset_save_CFLAGS"
9654
9655		eval supported=\$$cacheid
9656		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9657$as_echo "$supported" >&6; }
9658		if test "$supported" = "yes" ; then
9659			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9660			found="yes"
9661		fi
9662	fi
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678xorg_testset_save_CFLAGS="$CFLAGS"
9679
9680if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9681	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9682	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9683$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9684if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9685  $as_echo_n "(cached) " >&6
9686else
9687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688/* end confdefs.h.  */
9689int i;
9690_ACEOF
9691if ac_fn_c_try_compile "$LINENO"; then :
9692  xorg_cv_cc_flag_unknown_warning_option=yes
9693else
9694  xorg_cv_cc_flag_unknown_warning_option=no
9695fi
9696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9697fi
9698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9699$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9700	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9701	CFLAGS="$xorg_testset_save_CFLAGS"
9702fi
9703
9704if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9705	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9706		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9707	fi
9708	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9709	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9710$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9711if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9712  $as_echo_n "(cached) " >&6
9713else
9714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715/* end confdefs.h.  */
9716int i;
9717_ACEOF
9718if ac_fn_c_try_compile "$LINENO"; then :
9719  xorg_cv_cc_flag_unused_command_line_argument=yes
9720else
9721  xorg_cv_cc_flag_unused_command_line_argument=no
9722fi
9723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9724fi
9725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9726$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9727	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9728	CFLAGS="$xorg_testset_save_CFLAGS"
9729fi
9730
9731found="no"
9732
9733	if test $found = "no" ; then
9734		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9735			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9736		fi
9737
9738		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9739			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9740		fi
9741
9742		CFLAGS="$CFLAGS -Waddress"
9743
9744		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9745$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9746		cacheid=xorg_cv_cc_flag__Waddress
9747		if eval \${$cacheid+:} false; then :
9748  $as_echo_n "(cached) " >&6
9749else
9750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751/* end confdefs.h.  */
9752int i;
9753int
9754main ()
9755{
9756
9757  ;
9758  return 0;
9759}
9760_ACEOF
9761if ac_fn_c_try_link "$LINENO"; then :
9762  eval $cacheid=yes
9763else
9764  eval $cacheid=no
9765fi
9766rm -f core conftest.err conftest.$ac_objext \
9767    conftest$ac_exeext conftest.$ac_ext
9768fi
9769
9770
9771		CFLAGS="$xorg_testset_save_CFLAGS"
9772
9773		eval supported=\$$cacheid
9774		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9775$as_echo "$supported" >&6; }
9776		if test "$supported" = "yes" ; then
9777			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9778			found="yes"
9779		fi
9780	fi
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796xorg_testset_save_CFLAGS="$CFLAGS"
9797
9798if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9799	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9800	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9801$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9802if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9803  $as_echo_n "(cached) " >&6
9804else
9805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9806/* end confdefs.h.  */
9807int i;
9808_ACEOF
9809if ac_fn_c_try_compile "$LINENO"; then :
9810  xorg_cv_cc_flag_unknown_warning_option=yes
9811else
9812  xorg_cv_cc_flag_unknown_warning_option=no
9813fi
9814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9815fi
9816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9817$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9818	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9819	CFLAGS="$xorg_testset_save_CFLAGS"
9820fi
9821
9822if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9823	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9824		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9825	fi
9826	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9827	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9828$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9829if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9830  $as_echo_n "(cached) " >&6
9831else
9832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9833/* end confdefs.h.  */
9834int i;
9835_ACEOF
9836if ac_fn_c_try_compile "$LINENO"; then :
9837  xorg_cv_cc_flag_unused_command_line_argument=yes
9838else
9839  xorg_cv_cc_flag_unused_command_line_argument=no
9840fi
9841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9842fi
9843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9844$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9845	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9846	CFLAGS="$xorg_testset_save_CFLAGS"
9847fi
9848
9849found="no"
9850
9851	if test $found = "no" ; then
9852		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9853			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9854		fi
9855
9856		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9857			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9858		fi
9859
9860		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9861
9862		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9863$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9864		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9865		if eval \${$cacheid+:} false; then :
9866  $as_echo_n "(cached) " >&6
9867else
9868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869/* end confdefs.h.  */
9870int i;
9871int
9872main ()
9873{
9874
9875  ;
9876  return 0;
9877}
9878_ACEOF
9879if ac_fn_c_try_link "$LINENO"; then :
9880  eval $cacheid=yes
9881else
9882  eval $cacheid=no
9883fi
9884rm -f core conftest.err conftest.$ac_objext \
9885    conftest$ac_exeext conftest.$ac_ext
9886fi
9887
9888
9889		CFLAGS="$xorg_testset_save_CFLAGS"
9890
9891		eval supported=\$$cacheid
9892		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9893$as_echo "$supported" >&6; }
9894		if test "$supported" = "yes" ; then
9895			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9896			found="yes"
9897		fi
9898	fi
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914xorg_testset_save_CFLAGS="$CFLAGS"
9915
9916if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9917	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9918	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9919$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9920if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9921  $as_echo_n "(cached) " >&6
9922else
9923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9924/* end confdefs.h.  */
9925int i;
9926_ACEOF
9927if ac_fn_c_try_compile "$LINENO"; then :
9928  xorg_cv_cc_flag_unknown_warning_option=yes
9929else
9930  xorg_cv_cc_flag_unknown_warning_option=no
9931fi
9932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9933fi
9934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9935$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9936	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9937	CFLAGS="$xorg_testset_save_CFLAGS"
9938fi
9939
9940if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9941	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9942		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9943	fi
9944	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9945	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9946$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9947if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9948  $as_echo_n "(cached) " >&6
9949else
9950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9951/* end confdefs.h.  */
9952int i;
9953_ACEOF
9954if ac_fn_c_try_compile "$LINENO"; then :
9955  xorg_cv_cc_flag_unused_command_line_argument=yes
9956else
9957  xorg_cv_cc_flag_unused_command_line_argument=no
9958fi
9959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9960fi
9961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9962$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9963	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9964	CFLAGS="$xorg_testset_save_CFLAGS"
9965fi
9966
9967found="no"
9968
9969	if test $found = "no" ; then
9970		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9971			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9972		fi
9973
9974		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9975			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9976		fi
9977
9978		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9979
9980		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9981$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9982		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9983		if eval \${$cacheid+:} false; then :
9984  $as_echo_n "(cached) " >&6
9985else
9986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987/* end confdefs.h.  */
9988int i;
9989int
9990main ()
9991{
9992
9993  ;
9994  return 0;
9995}
9996_ACEOF
9997if ac_fn_c_try_link "$LINENO"; then :
9998  eval $cacheid=yes
9999else
10000  eval $cacheid=no
10001fi
10002rm -f core conftest.err conftest.$ac_objext \
10003    conftest$ac_exeext conftest.$ac_ext
10004fi
10005
10006
10007		CFLAGS="$xorg_testset_save_CFLAGS"
10008
10009		eval supported=\$$cacheid
10010		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10011$as_echo "$supported" >&6; }
10012		if test "$supported" = "yes" ; then
10013			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10014			found="yes"
10015		fi
10016	fi
10017
10018
10019fi
10020
10021
10022
10023
10024
10025
10026
10027		CWARNFLAGS="$BASE_CFLAGS"
10028		if  test "x$GCC" = xyes ; then
10029		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10030		fi
10031
10032
10033
10034
10035
10036
10037
10038
10039# Check whether --enable-strict-compilation was given.
10040if test "${enable_strict_compilation+set}" = set; then :
10041  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10042else
10043  STRICT_COMPILE=no
10044fi
10045
10046
10047
10048
10049
10050
10051STRICT_CFLAGS=""
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065xorg_testset_save_CFLAGS="$CFLAGS"
10066
10067if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10068	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10069	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10070$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10071if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10072  $as_echo_n "(cached) " >&6
10073else
10074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10075/* end confdefs.h.  */
10076int i;
10077_ACEOF
10078if ac_fn_c_try_compile "$LINENO"; then :
10079  xorg_cv_cc_flag_unknown_warning_option=yes
10080else
10081  xorg_cv_cc_flag_unknown_warning_option=no
10082fi
10083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10084fi
10085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10086$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10087	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10088	CFLAGS="$xorg_testset_save_CFLAGS"
10089fi
10090
10091if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10092	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10093		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10094	fi
10095	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10096	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10097$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10098if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10099  $as_echo_n "(cached) " >&6
10100else
10101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10102/* end confdefs.h.  */
10103int i;
10104_ACEOF
10105if ac_fn_c_try_compile "$LINENO"; then :
10106  xorg_cv_cc_flag_unused_command_line_argument=yes
10107else
10108  xorg_cv_cc_flag_unused_command_line_argument=no
10109fi
10110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10111fi
10112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10113$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10114	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10115	CFLAGS="$xorg_testset_save_CFLAGS"
10116fi
10117
10118found="no"
10119
10120	if test $found = "no" ; then
10121		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10122			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10123		fi
10124
10125		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10126			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10127		fi
10128
10129		CFLAGS="$CFLAGS -pedantic"
10130
10131		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10132$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10133		cacheid=xorg_cv_cc_flag__pedantic
10134		if eval \${$cacheid+:} false; then :
10135  $as_echo_n "(cached) " >&6
10136else
10137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10138/* end confdefs.h.  */
10139int i;
10140int
10141main ()
10142{
10143
10144  ;
10145  return 0;
10146}
10147_ACEOF
10148if ac_fn_c_try_link "$LINENO"; then :
10149  eval $cacheid=yes
10150else
10151  eval $cacheid=no
10152fi
10153rm -f core conftest.err conftest.$ac_objext \
10154    conftest$ac_exeext conftest.$ac_ext
10155fi
10156
10157
10158		CFLAGS="$xorg_testset_save_CFLAGS"
10159
10160		eval supported=\$$cacheid
10161		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10162$as_echo "$supported" >&6; }
10163		if test "$supported" = "yes" ; then
10164			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10165			found="yes"
10166		fi
10167	fi
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183xorg_testset_save_CFLAGS="$CFLAGS"
10184
10185if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10186	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10187	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10188$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10189if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10190  $as_echo_n "(cached) " >&6
10191else
10192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10193/* end confdefs.h.  */
10194int i;
10195_ACEOF
10196if ac_fn_c_try_compile "$LINENO"; then :
10197  xorg_cv_cc_flag_unknown_warning_option=yes
10198else
10199  xorg_cv_cc_flag_unknown_warning_option=no
10200fi
10201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10202fi
10203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10204$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10205	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10206	CFLAGS="$xorg_testset_save_CFLAGS"
10207fi
10208
10209if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10210	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10211		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10212	fi
10213	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10214	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10215$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10216if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10217  $as_echo_n "(cached) " >&6
10218else
10219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10220/* end confdefs.h.  */
10221int i;
10222_ACEOF
10223if ac_fn_c_try_compile "$LINENO"; then :
10224  xorg_cv_cc_flag_unused_command_line_argument=yes
10225else
10226  xorg_cv_cc_flag_unused_command_line_argument=no
10227fi
10228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10229fi
10230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10231$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10232	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10233	CFLAGS="$xorg_testset_save_CFLAGS"
10234fi
10235
10236found="no"
10237
10238	if test $found = "no" ; then
10239		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10240			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10241		fi
10242
10243		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10244			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10245		fi
10246
10247		CFLAGS="$CFLAGS -Werror"
10248
10249		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10250$as_echo_n "checking if $CC supports -Werror... " >&6; }
10251		cacheid=xorg_cv_cc_flag__Werror
10252		if eval \${$cacheid+:} false; then :
10253  $as_echo_n "(cached) " >&6
10254else
10255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10256/* end confdefs.h.  */
10257int i;
10258int
10259main ()
10260{
10261
10262  ;
10263  return 0;
10264}
10265_ACEOF
10266if ac_fn_c_try_link "$LINENO"; then :
10267  eval $cacheid=yes
10268else
10269  eval $cacheid=no
10270fi
10271rm -f core conftest.err conftest.$ac_objext \
10272    conftest$ac_exeext conftest.$ac_ext
10273fi
10274
10275
10276		CFLAGS="$xorg_testset_save_CFLAGS"
10277
10278		eval supported=\$$cacheid
10279		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10280$as_echo "$supported" >&6; }
10281		if test "$supported" = "yes" ; then
10282			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10283			found="yes"
10284		fi
10285	fi
10286
10287	if test $found = "no" ; then
10288		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10289			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10290		fi
10291
10292		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10293			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10294		fi
10295
10296		CFLAGS="$CFLAGS -errwarn"
10297
10298		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10299$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10300		cacheid=xorg_cv_cc_flag__errwarn
10301		if eval \${$cacheid+:} false; then :
10302  $as_echo_n "(cached) " >&6
10303else
10304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10305/* end confdefs.h.  */
10306int i;
10307int
10308main ()
10309{
10310
10311  ;
10312  return 0;
10313}
10314_ACEOF
10315if ac_fn_c_try_link "$LINENO"; then :
10316  eval $cacheid=yes
10317else
10318  eval $cacheid=no
10319fi
10320rm -f core conftest.err conftest.$ac_objext \
10321    conftest$ac_exeext conftest.$ac_ext
10322fi
10323
10324
10325		CFLAGS="$xorg_testset_save_CFLAGS"
10326
10327		eval supported=\$$cacheid
10328		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10329$as_echo "$supported" >&6; }
10330		if test "$supported" = "yes" ; then
10331			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10332			found="yes"
10333		fi
10334	fi
10335
10336
10337
10338# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10339# activate it with -Werror, so we add it here explicitly.
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353xorg_testset_save_CFLAGS="$CFLAGS"
10354
10355if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10356	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10357	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10358$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10359if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10360  $as_echo_n "(cached) " >&6
10361else
10362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10363/* end confdefs.h.  */
10364int i;
10365_ACEOF
10366if ac_fn_c_try_compile "$LINENO"; then :
10367  xorg_cv_cc_flag_unknown_warning_option=yes
10368else
10369  xorg_cv_cc_flag_unknown_warning_option=no
10370fi
10371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10372fi
10373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10374$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10375	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10376	CFLAGS="$xorg_testset_save_CFLAGS"
10377fi
10378
10379if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10380	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10381		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10382	fi
10383	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10384	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10385$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10386if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10387  $as_echo_n "(cached) " >&6
10388else
10389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10390/* end confdefs.h.  */
10391int i;
10392_ACEOF
10393if ac_fn_c_try_compile "$LINENO"; then :
10394  xorg_cv_cc_flag_unused_command_line_argument=yes
10395else
10396  xorg_cv_cc_flag_unused_command_line_argument=no
10397fi
10398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10399fi
10400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10401$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10402	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10403	CFLAGS="$xorg_testset_save_CFLAGS"
10404fi
10405
10406found="no"
10407
10408	if test $found = "no" ; then
10409		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10410			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10411		fi
10412
10413		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10414			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10415		fi
10416
10417		CFLAGS="$CFLAGS -Werror=attributes"
10418
10419		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10420$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10421		cacheid=xorg_cv_cc_flag__Werror_attributes
10422		if eval \${$cacheid+:} false; then :
10423  $as_echo_n "(cached) " >&6
10424else
10425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10426/* end confdefs.h.  */
10427int i;
10428int
10429main ()
10430{
10431
10432  ;
10433  return 0;
10434}
10435_ACEOF
10436if ac_fn_c_try_link "$LINENO"; then :
10437  eval $cacheid=yes
10438else
10439  eval $cacheid=no
10440fi
10441rm -f core conftest.err conftest.$ac_objext \
10442    conftest$ac_exeext conftest.$ac_ext
10443fi
10444
10445
10446		CFLAGS="$xorg_testset_save_CFLAGS"
10447
10448		eval supported=\$$cacheid
10449		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10450$as_echo "$supported" >&6; }
10451		if test "$supported" = "yes" ; then
10452			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10453			found="yes"
10454		fi
10455	fi
10456
10457
10458
10459if test "x$STRICT_COMPILE" = "xyes"; then
10460    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10461    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10462fi
10463
10464
10465
10466
10467
10468
10469cat >>confdefs.h <<_ACEOF
10470#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10471_ACEOF
10472
10473	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10474	if test "x$PVM" = "x"; then
10475		PVM="0"
10476	fi
10477
10478cat >>confdefs.h <<_ACEOF
10479#define PACKAGE_VERSION_MINOR $PVM
10480_ACEOF
10481
10482	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10483	if test "x$PVP" = "x"; then
10484		PVP="0"
10485	fi
10486
10487cat >>confdefs.h <<_ACEOF
10488#define PACKAGE_VERSION_PATCHLEVEL $PVP
10489_ACEOF
10490
10491
10492
10493CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10494mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10495|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10496echo 'git directory not found: installing possibly empty changelog.' >&2)"
10497
10498
10499
10500
10501macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10502INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10503mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10504|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10505echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10506
10507
10508
10509
10510
10511
10512if test x$APP_MAN_SUFFIX = x    ; then
10513    APP_MAN_SUFFIX=1
10514fi
10515if test x$APP_MAN_DIR = x    ; then
10516    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10517fi
10518
10519if test x$LIB_MAN_SUFFIX = x    ; then
10520    LIB_MAN_SUFFIX=3
10521fi
10522if test x$LIB_MAN_DIR = x    ; then
10523    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10524fi
10525
10526if test x$FILE_MAN_SUFFIX = x    ; then
10527    case $host_os in
10528	solaris*)	FILE_MAN_SUFFIX=4  ;;
10529	*)		FILE_MAN_SUFFIX=5  ;;
10530    esac
10531fi
10532if test x$FILE_MAN_DIR = x    ; then
10533    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10534fi
10535
10536if test x$MISC_MAN_SUFFIX = x    ; then
10537    case $host_os in
10538	solaris*)	MISC_MAN_SUFFIX=5  ;;
10539	*)		MISC_MAN_SUFFIX=7  ;;
10540    esac
10541fi
10542if test x$MISC_MAN_DIR = x    ; then
10543    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10544fi
10545
10546if test x$DRIVER_MAN_SUFFIX = x    ; then
10547    case $host_os in
10548	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10549	*)		DRIVER_MAN_SUFFIX=4  ;;
10550    esac
10551fi
10552if test x$DRIVER_MAN_DIR = x    ; then
10553    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10554fi
10555
10556if test x$ADMIN_MAN_SUFFIX = x    ; then
10557    case $host_os in
10558	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10559	*)		ADMIN_MAN_SUFFIX=8  ;;
10560    esac
10561fi
10562if test x$ADMIN_MAN_DIR = x    ; then
10563    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10564fi
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580XORG_MAN_PAGE="X Version 11"
10581
10582MAN_SUBSTS="\
10583	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10584	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10585	-e 's|__xservername__|Xorg|g' \
10586	-e 's|__xconfigfile__|xorg.conf|g' \
10587	-e 's|__projectroot__|\$(prefix)|g' \
10588	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10589	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10590	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10591	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10592	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10593	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10594	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10595
10596
10597
10598# Check whether --enable-silent-rules was given.
10599if test "${enable_silent_rules+set}" = set; then :
10600  enableval=$enable_silent_rules;
10601fi
10602
10603case $enable_silent_rules in # (((
10604  yes) AM_DEFAULT_VERBOSITY=0;;
10605   no) AM_DEFAULT_VERBOSITY=1;;
10606    *) AM_DEFAULT_VERBOSITY=0;;
10607esac
10608am_make=${MAKE-make}
10609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10610$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10611if ${am_cv_make_support_nested_variables+:} false; then :
10612  $as_echo_n "(cached) " >&6
10613else
10614  if $as_echo 'TRUE=$(BAR$(V))
10615BAR0=false
10616BAR1=true
10617V=1
10618am__doit:
10619	@$(TRUE)
10620.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10621  am_cv_make_support_nested_variables=yes
10622else
10623  am_cv_make_support_nested_variables=no
10624fi
10625fi
10626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10627$as_echo "$am_cv_make_support_nested_variables" >&6; }
10628if test $am_cv_make_support_nested_variables = yes; then
10629    AM_V='$(V)'
10630  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10631else
10632  AM_V=$AM_DEFAULT_VERBOSITY
10633  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10634fi
10635AM_BACKSLASH='\'
10636
10637
10638
10639ac_ext=c
10640ac_cpp='$CPP $CPPFLAGS'
10641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10643ac_compiler_gnu=$ac_cv_c_compiler_gnu
10644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
10645$as_echo_n "checking how to run the C preprocessor... " >&6; }
10646# On Suns, sometimes $CPP names a directory.
10647if test -n "$CPP" && test -d "$CPP"; then
10648  CPP=
10649fi
10650if test -z "$CPP"; then
10651  if ${ac_cv_prog_CPP+:} false; then :
10652  $as_echo_n "(cached) " >&6
10653else
10654      # Double quotes because CPP needs to be expanded
10655    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10656    do
10657      ac_preproc_ok=false
10658for ac_c_preproc_warn_flag in '' yes
10659do
10660  # Use a header file that comes with gcc, so configuring glibc
10661  # with a fresh cross-compiler works.
10662  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10663  # <limits.h> exists even on freestanding compilers.
10664  # On the NeXT, cc -E runs the code through the compiler's parser,
10665  # not just through cpp. "Syntax error" is here to catch this case.
10666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10667/* end confdefs.h.  */
10668#ifdef __STDC__
10669# include <limits.h>
10670#else
10671# include <assert.h>
10672#endif
10673		     Syntax error
10674_ACEOF
10675if ac_fn_c_try_cpp "$LINENO"; then :
10676
10677else
10678  # Broken: fails on valid input.
10679continue
10680fi
10681rm -f conftest.err conftest.i conftest.$ac_ext
10682
10683  # OK, works on sane cases.  Now check whether nonexistent headers
10684  # can be detected and how.
10685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10686/* end confdefs.h.  */
10687#include <ac_nonexistent.h>
10688_ACEOF
10689if ac_fn_c_try_cpp "$LINENO"; then :
10690  # Broken: success on invalid input.
10691continue
10692else
10693  # Passes both tests.
10694ac_preproc_ok=:
10695break
10696fi
10697rm -f conftest.err conftest.i conftest.$ac_ext
10698
10699done
10700# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10701rm -f conftest.i conftest.err conftest.$ac_ext
10702if $ac_preproc_ok; then :
10703  break
10704fi
10705
10706    done
10707    ac_cv_prog_CPP=$CPP
10708
10709fi
10710  CPP=$ac_cv_prog_CPP
10711else
10712  ac_cv_prog_CPP=$CPP
10713fi
10714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
10715$as_echo "$CPP" >&6; }
10716ac_preproc_ok=false
10717for ac_c_preproc_warn_flag in '' yes
10718do
10719  # Use a header file that comes with gcc, so configuring glibc
10720  # with a fresh cross-compiler works.
10721  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10722  # <limits.h> exists even on freestanding compilers.
10723  # On the NeXT, cc -E runs the code through the compiler's parser,
10724  # not just through cpp. "Syntax error" is here to catch this case.
10725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10726/* end confdefs.h.  */
10727#ifdef __STDC__
10728# include <limits.h>
10729#else
10730# include <assert.h>
10731#endif
10732		     Syntax error
10733_ACEOF
10734if ac_fn_c_try_cpp "$LINENO"; then :
10735
10736else
10737  # Broken: fails on valid input.
10738continue
10739fi
10740rm -f conftest.err conftest.i conftest.$ac_ext
10741
10742  # OK, works on sane cases.  Now check whether nonexistent headers
10743  # can be detected and how.
10744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10745/* end confdefs.h.  */
10746#include <ac_nonexistent.h>
10747_ACEOF
10748if ac_fn_c_try_cpp "$LINENO"; then :
10749  # Broken: success on invalid input.
10750continue
10751else
10752  # Passes both tests.
10753ac_preproc_ok=:
10754break
10755fi
10756rm -f conftest.err conftest.i conftest.$ac_ext
10757
10758done
10759# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10760rm -f conftest.i conftest.err conftest.$ac_ext
10761if $ac_preproc_ok; then :
10762
10763else
10764  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10765$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10766as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
10767See \`config.log' for more details" "$LINENO" 5; }
10768fi
10769
10770ac_ext=c
10771ac_cpp='$CPP $CPPFLAGS'
10772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10774ac_compiler_gnu=$ac_cv_c_compiler_gnu
10775
10776
10777
10778for ac_prog in cpp
10779do
10780  # Extract the first word of "$ac_prog", so it can be a program name with args.
10781set dummy $ac_prog; ac_word=$2
10782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10783$as_echo_n "checking for $ac_word... " >&6; }
10784if ${ac_cv_path_RAWCPP+:} false; then :
10785  $as_echo_n "(cached) " >&6
10786else
10787  case $RAWCPP in
10788  [\\/]* | ?:[\\/]*)
10789  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
10790  ;;
10791  *)
10792  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10793as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
10794for as_dir in $as_dummy
10795do
10796  IFS=$as_save_IFS
10797  test -z "$as_dir" && as_dir=.
10798    for ac_exec_ext in '' $ac_executable_extensions; do
10799  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10800    ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
10801    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10802    break 2
10803  fi
10804done
10805  done
10806IFS=$as_save_IFS
10807
10808  ;;
10809esac
10810fi
10811RAWCPP=$ac_cv_path_RAWCPP
10812if test -n "$RAWCPP"; then
10813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
10814$as_echo "$RAWCPP" >&6; }
10815else
10816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10817$as_echo "no" >&6; }
10818fi
10819
10820
10821  test -n "$RAWCPP" && break
10822done
10823test -n "$RAWCPP" || RAWCPP="${CPP}"
10824
10825
10826# Check for flag to avoid builtin definitions - assumes unix is predefined,
10827# which is not the best choice for supporting other OS'es, but covers most
10828# of the ones we need for now.
10829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
10830$as_echo_n "checking if $RAWCPP requires -undef... " >&6; }
10831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10832/* end confdefs.h.  */
10833Does cpp redefine unix ?
10834_ACEOF
10835if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
10836	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10837$as_echo "no" >&6; }
10838else
10839	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
10840		RAWCPPFLAGS=-undef
10841		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10842$as_echo "yes" >&6; }
10843	# under Cygwin unix is still defined even with -undef
10844	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
10845		RAWCPPFLAGS="-undef -ansi"
10846		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
10847$as_echo "yes, with -ansi" >&6; }
10848	else
10849		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
10850	fi
10851fi
10852rm -f conftest.$ac_ext
10853
10854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
10855$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; }
10856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857/* end confdefs.h.  */
10858Does cpp preserve   "whitespace"?
10859_ACEOF
10860if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
10861	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10862$as_echo "no" >&6; }
10863else
10864	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
10865		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
10866		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10867$as_echo "yes" >&6; }
10868	else
10869		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
10870	fi
10871fi
10872rm -f conftest.$ac_ext
10873
10874
10875CPP_PROGRAM=${RAWCPP}
10876
10877
10878for ac_func in mkstemp
10879do :
10880  ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
10881if test "x$ac_cv_func_mkstemp" = xyes; then :
10882  cat >>confdefs.h <<_ACEOF
10883#define HAVE_MKSTEMP 1
10884_ACEOF
10885
10886fi
10887done
10888
10889
10890# Extract the first word of "perl", so it can be a program name with args.
10891set dummy perl; ac_word=$2
10892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10893$as_echo_n "checking for $ac_word... " >&6; }
10894if ${ac_cv_prog_HAS_PERL+:} false; then :
10895  $as_echo_n "(cached) " >&6
10896else
10897  if test -n "$HAS_PERL"; then
10898  ac_cv_prog_HAS_PERL="$HAS_PERL" # Let the user override the test.
10899else
10900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10901for as_dir in $PATH
10902do
10903  IFS=$as_save_IFS
10904  test -z "$as_dir" && as_dir=.
10905    for ac_exec_ext in '' $ac_executable_extensions; do
10906  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10907    ac_cv_prog_HAS_PERL="yes"
10908    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10909    break 2
10910  fi
10911done
10912  done
10913IFS=$as_save_IFS
10914
10915fi
10916fi
10917HAS_PERL=$ac_cv_prog_HAS_PERL
10918if test -n "$HAS_PERL"; then
10919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_PERL" >&5
10920$as_echo "$HAS_PERL" >&6; }
10921else
10922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10923$as_echo "no" >&6; }
10924fi
10925
10926
10927 if test "x$HAS_PERL" = xyes; then
10928  HAS_PERL_TRUE=
10929  HAS_PERL_FALSE='#'
10930else
10931  HAS_PERL_TRUE='#'
10932  HAS_PERL_FALSE=
10933fi
10934
10935
10936
10937
10938DEFAULT_XCONFDIR="${libdir}/X11/config"
10939
10940# Check whether --with-config-dir was given.
10941if test "${with_config_dir+set}" = set; then :
10942  withval=$with_config_dir; XCONFDIR="$withval"
10943else
10944  XCONFDIR="$DEFAULT_XCONFDIR"
10945fi
10946
10947
10948
10949DEFAULT_PREPROCESSCMD_MKDEPEND="gcc -E"
10950
10951# Check whether --with-script-preproc-cmd was given.
10952if test "${with_script_preproc_cmd+set}" = set; then :
10953  withval=$with_script_preproc_cmd; PREPROCESSCMD_MKDEPEND="$withval"
10954else
10955  PREPROCESSCMD_MKDEPEND="$DEFAULT_PREPROCESSCMD_MKDEPEND"
10956fi
10957
10958
10959
10960DEFAULT_ARCMD="ar clq"
10961
10962# Check whether --with-create-lib-cmd was given.
10963if test "${with_create_lib_cmd+set}" = set; then :
10964  withval=$with_create_lib_cmd; ARCMD="$withval"
10965else
10966  ARCMD="$DEFAULT_ARCMD"
10967fi
10968
10969
10970
10971DEFAULT_RANLIB="ranlib"
10972
10973# Check whether --with-clean-lib-cmd was given.
10974if test "${with_clean_lib_cmd+set}" = set; then :
10975  withval=$with_clean_lib_cmd; RANLIB="$withval"
10976else
10977  RANLIB="$DEFAULT_RANLIB"
10978fi
10979
10980
10981
10982# Check whether --enable-revpath was given.
10983if test "${enable_revpath+set}" = set; then :
10984  enableval=$enable_revpath; BUILD_REVPATH="$enableval"
10985else
10986  BUILD_REVPATH=yes
10987fi
10988
10989 if test "x$BUILD_REVPATH" = xyes; then
10990  BUILD_REVPATH_TRUE=
10991  BUILD_REVPATH_FALSE='#'
10992else
10993  BUILD_REVPATH_TRUE='#'
10994  BUILD_REVPATH_FALSE=
10995fi
10996
10997
10998# Check whether --enable-makeg was given.
10999if test "${enable_makeg+set}" = set; then :
11000  enableval=$enable_makeg; BUILD_MAKEG="$enableval"
11001else
11002  BUILD_MAKEG=yes
11003fi
11004
11005 if test "x$BUILD_MAKEG" = xyes; then
11006  BUILD_MAKEG_TRUE=
11007  BUILD_MAKEG_FALSE='#'
11008else
11009  BUILD_MAKEG_TRUE='#'
11010  BUILD_MAKEG_FALSE=
11011fi
11012
11013
11014# Check whether --enable-xmkmf was given.
11015if test "${enable_xmkmf+set}" = set; then :
11016  enableval=$enable_xmkmf; BUILD_XMKMF="$enableval"
11017else
11018  BUILD_XMKMF=yes
11019fi
11020
11021 if test "x$BUILD_XMKMF" = xyes; then
11022  BUILD_XMKMF_TRUE=
11023  BUILD_XMKMF_FALSE='#'
11024else
11025  BUILD_XMKMF_TRUE='#'
11026  BUILD_XMKMF_FALSE=
11027fi
11028
11029
11030# Check whether --enable-ccmakedep was given.
11031if test "${enable_ccmakedep+set}" = set; then :
11032  enableval=$enable_ccmakedep; BUILD_CCMAKEDEP="$enableval"
11033else
11034  BUILD_CCMAKEDEP=yes
11035fi
11036
11037 if test "x$BUILD_CCMAKEDEP" = xyes; then
11038  BUILD_CCMAKEDEP_TRUE=
11039  BUILD_CCMAKEDEP_FALSE='#'
11040else
11041  BUILD_CCMAKEDEP_TRUE='#'
11042  BUILD_CCMAKEDEP_FALSE=
11043fi
11044
11045
11046# Check whether --enable-mergelib was given.
11047if test "${enable_mergelib+set}" = set; then :
11048  enableval=$enable_mergelib; BUILD_MERGELIB="$enableval"
11049else
11050  BUILD_MERGELIB=yes
11051fi
11052
11053 if test "x$BUILD_MERGELIB" = xyes; then
11054  BUILD_MERGELIB_TRUE=
11055  BUILD_MERGELIB_FALSE='#'
11056else
11057  BUILD_MERGELIB_TRUE='#'
11058  BUILD_MERGELIB_FALSE=
11059fi
11060
11061
11062# Check whether --enable-mkdirhier was given.
11063if test "${enable_mkdirhier+set}" = set; then :
11064  enableval=$enable_mkdirhier; BUILD_MKDIRHIER="$enableval"
11065else
11066  BUILD_MKDIRHIER=yes
11067fi
11068
11069 if test "x$BUILD_MKDIRHIER" = xyes; then
11070  BUILD_MKDIRHIER_TRUE=
11071  BUILD_MKDIRHIER_FALSE='#'
11072else
11073  BUILD_MKDIRHIER_TRUE='#'
11074  BUILD_MKDIRHIER_FALSE=
11075fi
11076
11077
11078# Check whether --enable-cleanlinks was given.
11079if test "${enable_cleanlinks+set}" = set; then :
11080  enableval=$enable_cleanlinks; BUILD_CLEANLINKS="$enableval"
11081else
11082  BUILD_CLEANLINKS=yes
11083fi
11084
11085 if test "x$BUILD_CLEANLINKS" = xyes; then
11086  BUILD_CLEANLINKS_TRUE=
11087  BUILD_CLEANLINKS_FALSE='#'
11088else
11089  BUILD_CLEANLINKS_TRUE='#'
11090  BUILD_CLEANLINKS_FALSE=
11091fi
11092
11093
11094# Check whether --enable-mkhtmlindex was given.
11095if test "${enable_mkhtmlindex+set}" = set; then :
11096  enableval=$enable_mkhtmlindex; BUILD_MKHTMLINDEX="$enableval"
11097else
11098  BUILD_MKHTMLINDEX=yes
11099fi
11100
11101 if test "x$BUILD_MKHTMLINDEX" = xyes; then
11102  BUILD_MKHTMLINDEX_TRUE=
11103  BUILD_MKHTMLINDEX_FALSE='#'
11104else
11105  BUILD_MKHTMLINDEX_TRUE='#'
11106  BUILD_MKHTMLINDEX_FALSE=
11107fi
11108
11109
11110# Checks for pkg-config packages
11111
11112pkg_failed=no
11113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPROTO" >&5
11114$as_echo_n "checking for XPROTO... " >&6; }
11115
11116if test -n "$XPROTO_CFLAGS"; then
11117    pkg_cv_XPROTO_CFLAGS="$XPROTO_CFLAGS"
11118 elif test -n "$PKG_CONFIG"; then
11119    if test -n "$PKG_CONFIG" && \
11120    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
11121  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
11122  ac_status=$?
11123  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11124  test $ac_status = 0; }; then
11125  pkg_cv_XPROTO_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
11126		      test "x$?" != "x0" && pkg_failed=yes
11127else
11128  pkg_failed=yes
11129fi
11130 else
11131    pkg_failed=untried
11132fi
11133if test -n "$XPROTO_LIBS"; then
11134    pkg_cv_XPROTO_LIBS="$XPROTO_LIBS"
11135 elif test -n "$PKG_CONFIG"; then
11136    if test -n "$PKG_CONFIG" && \
11137    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
11138  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
11139  ac_status=$?
11140  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11141  test $ac_status = 0; }; then
11142  pkg_cv_XPROTO_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
11143		      test "x$?" != "x0" && pkg_failed=yes
11144else
11145  pkg_failed=yes
11146fi
11147 else
11148    pkg_failed=untried
11149fi
11150
11151
11152
11153if test $pkg_failed = yes; then
11154   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11155$as_echo "no" >&6; }
11156
11157if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11158        _pkg_short_errors_supported=yes
11159else
11160        _pkg_short_errors_supported=no
11161fi
11162        if test $_pkg_short_errors_supported = yes; then
11163	        XPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto" 2>&1`
11164        else
11165	        XPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto" 2>&1`
11166        fi
11167	# Put the nasty error message in config.log where it belongs
11168	echo "$XPROTO_PKG_ERRORS" >&5
11169
11170	as_fn_error $? "Package requirements (xproto) were not met:
11171
11172$XPROTO_PKG_ERRORS
11173
11174Consider adjusting the PKG_CONFIG_PATH environment variable if you
11175installed software in a non-standard prefix.
11176
11177Alternatively, you may set the environment variables XPROTO_CFLAGS
11178and XPROTO_LIBS to avoid the need to call pkg-config.
11179See the pkg-config man page for more details." "$LINENO" 5
11180elif test $pkg_failed = untried; then
11181     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11182$as_echo "no" >&6; }
11183	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11185as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11186is in your PATH or set the PKG_CONFIG environment variable to the full
11187path to pkg-config.
11188
11189Alternatively, you may set the environment variables XPROTO_CFLAGS
11190and XPROTO_LIBS to avoid the need to call pkg-config.
11191See the pkg-config man page for more details.
11192
11193To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11194See \`config.log' for more details" "$LINENO" 5; }
11195else
11196	XPROTO_CFLAGS=$pkg_cv_XPROTO_CFLAGS
11197	XPROTO_LIBS=$pkg_cv_XPROTO_LIBS
11198        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11199$as_echo "yes" >&6; }
11200
11201fi
11202
11203ac_config_files="$ac_config_files Makefile"
11204
11205cat >confcache <<\_ACEOF
11206# This file is a shell script that caches the results of configure
11207# tests run on this system so they can be shared between configure
11208# scripts and configure runs, see configure's option --config-cache.
11209# It is not useful on other systems.  If it contains results you don't
11210# want to keep, you may remove or edit it.
11211#
11212# config.status only pays attention to the cache file if you give it
11213# the --recheck option to rerun configure.
11214#
11215# `ac_cv_env_foo' variables (set or unset) will be overridden when
11216# loading this file, other *unset* `ac_cv_foo' will be assigned the
11217# following values.
11218
11219_ACEOF
11220
11221# The following way of writing the cache mishandles newlines in values,
11222# but we know of no workaround that is simple, portable, and efficient.
11223# So, we kill variables containing newlines.
11224# Ultrix sh set writes to stderr and can't be redirected directly,
11225# and sets the high bit in the cache file unless we assign to the vars.
11226(
11227  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11228    eval ac_val=\$$ac_var
11229    case $ac_val in #(
11230    *${as_nl}*)
11231      case $ac_var in #(
11232      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11233$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11234      esac
11235      case $ac_var in #(
11236      _ | IFS | as_nl) ;; #(
11237      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11238      *) { eval $ac_var=; unset $ac_var;} ;;
11239      esac ;;
11240    esac
11241  done
11242
11243  (set) 2>&1 |
11244    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11245    *${as_nl}ac_space=\ *)
11246      # `set' does not quote correctly, so add quotes: double-quote
11247      # substitution turns \\\\ into \\, and sed turns \\ into \.
11248      sed -n \
11249	"s/'/'\\\\''/g;
11250	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11251      ;; #(
11252    *)
11253      # `set' quotes correctly as required by POSIX, so do not add quotes.
11254      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11255      ;;
11256    esac |
11257    sort
11258) |
11259  sed '
11260     /^ac_cv_env_/b end
11261     t clear
11262     :clear
11263     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11264     t end
11265     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11266     :end' >>confcache
11267if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11268  if test -w "$cache_file"; then
11269    if test "x$cache_file" != "x/dev/null"; then
11270      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11271$as_echo "$as_me: updating cache $cache_file" >&6;}
11272      if test ! -f "$cache_file" || test -h "$cache_file"; then
11273	cat confcache >"$cache_file"
11274      else
11275        case $cache_file in #(
11276        */* | ?:*)
11277	  mv -f confcache "$cache_file"$$ &&
11278	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11279        *)
11280	  mv -f confcache "$cache_file" ;;
11281	esac
11282      fi
11283    fi
11284  else
11285    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11286$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11287  fi
11288fi
11289rm -f confcache
11290
11291test "x$prefix" = xNONE && prefix=$ac_default_prefix
11292# Let make expand exec_prefix.
11293test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11294
11295DEFS=-DHAVE_CONFIG_H
11296
11297ac_libobjs=
11298ac_ltlibobjs=
11299U=
11300for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11301  # 1. Remove the extension, and $U if already installed.
11302  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11303  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11304  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11305  #    will be set to the directory where LIBOBJS objects are built.
11306  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11307  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11308done
11309LIBOBJS=$ac_libobjs
11310
11311LTLIBOBJS=$ac_ltlibobjs
11312
11313
11314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11315$as_echo_n "checking that generated files are newer than configure... " >&6; }
11316   if test -n "$am_sleep_pid"; then
11317     # Hide warnings about reused PIDs.
11318     wait $am_sleep_pid 2>/dev/null
11319   fi
11320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11321$as_echo "done" >&6; }
11322 if test -n "$EXEEXT"; then
11323  am__EXEEXT_TRUE=
11324  am__EXEEXT_FALSE='#'
11325else
11326  am__EXEEXT_TRUE='#'
11327  am__EXEEXT_FALSE=
11328fi
11329
11330if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11331  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11332Usually this means the macro was only invoked conditionally." "$LINENO" 5
11333fi
11334if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11335  as_fn_error $? "conditional \"AMDEP\" was never defined.
11336Usually this means the macro was only invoked conditionally." "$LINENO" 5
11337fi
11338if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11339  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11340Usually this means the macro was only invoked conditionally." "$LINENO" 5
11341fi
11342if test -z "${HAS_PERL_TRUE}" && test -z "${HAS_PERL_FALSE}"; then
11343  as_fn_error $? "conditional \"HAS_PERL\" was never defined.
11344Usually this means the macro was only invoked conditionally." "$LINENO" 5
11345fi
11346if test -z "${BUILD_REVPATH_TRUE}" && test -z "${BUILD_REVPATH_FALSE}"; then
11347  as_fn_error $? "conditional \"BUILD_REVPATH\" was never defined.
11348Usually this means the macro was only invoked conditionally." "$LINENO" 5
11349fi
11350if test -z "${BUILD_MAKEG_TRUE}" && test -z "${BUILD_MAKEG_FALSE}"; then
11351  as_fn_error $? "conditional \"BUILD_MAKEG\" was never defined.
11352Usually this means the macro was only invoked conditionally." "$LINENO" 5
11353fi
11354if test -z "${BUILD_XMKMF_TRUE}" && test -z "${BUILD_XMKMF_FALSE}"; then
11355  as_fn_error $? "conditional \"BUILD_XMKMF\" was never defined.
11356Usually this means the macro was only invoked conditionally." "$LINENO" 5
11357fi
11358if test -z "${BUILD_CCMAKEDEP_TRUE}" && test -z "${BUILD_CCMAKEDEP_FALSE}"; then
11359  as_fn_error $? "conditional \"BUILD_CCMAKEDEP\" was never defined.
11360Usually this means the macro was only invoked conditionally." "$LINENO" 5
11361fi
11362if test -z "${BUILD_MERGELIB_TRUE}" && test -z "${BUILD_MERGELIB_FALSE}"; then
11363  as_fn_error $? "conditional \"BUILD_MERGELIB\" was never defined.
11364Usually this means the macro was only invoked conditionally." "$LINENO" 5
11365fi
11366if test -z "${BUILD_MKDIRHIER_TRUE}" && test -z "${BUILD_MKDIRHIER_FALSE}"; then
11367  as_fn_error $? "conditional \"BUILD_MKDIRHIER\" was never defined.
11368Usually this means the macro was only invoked conditionally." "$LINENO" 5
11369fi
11370if test -z "${BUILD_CLEANLINKS_TRUE}" && test -z "${BUILD_CLEANLINKS_FALSE}"; then
11371  as_fn_error $? "conditional \"BUILD_CLEANLINKS\" was never defined.
11372Usually this means the macro was only invoked conditionally." "$LINENO" 5
11373fi
11374if test -z "${BUILD_MKHTMLINDEX_TRUE}" && test -z "${BUILD_MKHTMLINDEX_FALSE}"; then
11375  as_fn_error $? "conditional \"BUILD_MKHTMLINDEX\" was never defined.
11376Usually this means the macro was only invoked conditionally." "$LINENO" 5
11377fi
11378
11379: "${CONFIG_STATUS=./config.status}"
11380ac_write_fail=0
11381ac_clean_files_save=$ac_clean_files
11382ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11383{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11384$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11385as_write_fail=0
11386cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11387#! $SHELL
11388# Generated by $as_me.
11389# Run this file to recreate the current configuration.
11390# Compiler output produced by configure, useful for debugging
11391# configure, is in config.log if it exists.
11392
11393debug=false
11394ac_cs_recheck=false
11395ac_cs_silent=false
11396
11397SHELL=\${CONFIG_SHELL-$SHELL}
11398export SHELL
11399_ASEOF
11400cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11401## -------------------- ##
11402## M4sh Initialization. ##
11403## -------------------- ##
11404
11405# Be more Bourne compatible
11406DUALCASE=1; export DUALCASE # for MKS sh
11407if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11408  emulate sh
11409  NULLCMD=:
11410  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11411  # is contrary to our usage.  Disable this feature.
11412  alias -g '${1+"$@"}'='"$@"'
11413  setopt NO_GLOB_SUBST
11414else
11415  case `(set -o) 2>/dev/null` in #(
11416  *posix*) :
11417    set -o posix ;; #(
11418  *) :
11419     ;;
11420esac
11421fi
11422
11423
11424as_nl='
11425'
11426export as_nl
11427# Printing a long string crashes Solaris 7 /usr/bin/printf.
11428as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11429as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11430as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11431# Prefer a ksh shell builtin over an external printf program on Solaris,
11432# but without wasting forks for bash or zsh.
11433if test -z "$BASH_VERSION$ZSH_VERSION" \
11434    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11435  as_echo='print -r --'
11436  as_echo_n='print -rn --'
11437elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11438  as_echo='printf %s\n'
11439  as_echo_n='printf %s'
11440else
11441  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11442    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11443    as_echo_n='/usr/ucb/echo -n'
11444  else
11445    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11446    as_echo_n_body='eval
11447      arg=$1;
11448      case $arg in #(
11449      *"$as_nl"*)
11450	expr "X$arg" : "X\\(.*\\)$as_nl";
11451	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11452      esac;
11453      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11454    '
11455    export as_echo_n_body
11456    as_echo_n='sh -c $as_echo_n_body as_echo'
11457  fi
11458  export as_echo_body
11459  as_echo='sh -c $as_echo_body as_echo'
11460fi
11461
11462# The user is always right.
11463if test "${PATH_SEPARATOR+set}" != set; then
11464  PATH_SEPARATOR=:
11465  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11466    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11467      PATH_SEPARATOR=';'
11468  }
11469fi
11470
11471
11472# IFS
11473# We need space, tab and new line, in precisely that order.  Quoting is
11474# there to prevent editors from complaining about space-tab.
11475# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11476# splitting by setting IFS to empty value.)
11477IFS=" ""	$as_nl"
11478
11479# Find who we are.  Look in the path if we contain no directory separator.
11480as_myself=
11481case $0 in #((
11482  *[\\/]* ) as_myself=$0 ;;
11483  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11484for as_dir in $PATH
11485do
11486  IFS=$as_save_IFS
11487  test -z "$as_dir" && as_dir=.
11488    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11489  done
11490IFS=$as_save_IFS
11491
11492     ;;
11493esac
11494# We did not find ourselves, most probably we were run as `sh COMMAND'
11495# in which case we are not to be found in the path.
11496if test "x$as_myself" = x; then
11497  as_myself=$0
11498fi
11499if test ! -f "$as_myself"; then
11500  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11501  exit 1
11502fi
11503
11504# Unset variables that we do not need and which cause bugs (e.g. in
11505# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11506# suppresses any "Segmentation fault" message there.  '((' could
11507# trigger a bug in pdksh 5.2.14.
11508for as_var in BASH_ENV ENV MAIL MAILPATH
11509do eval test x\${$as_var+set} = xset \
11510  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11511done
11512PS1='$ '
11513PS2='> '
11514PS4='+ '
11515
11516# NLS nuisances.
11517LC_ALL=C
11518export LC_ALL
11519LANGUAGE=C
11520export LANGUAGE
11521
11522# CDPATH.
11523(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11524
11525
11526# as_fn_error STATUS ERROR [LINENO LOG_FD]
11527# ----------------------------------------
11528# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11529# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11530# script with STATUS, using 1 if that was 0.
11531as_fn_error ()
11532{
11533  as_status=$1; test $as_status -eq 0 && as_status=1
11534  if test "$4"; then
11535    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11536    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11537  fi
11538  $as_echo "$as_me: error: $2" >&2
11539  as_fn_exit $as_status
11540} # as_fn_error
11541
11542
11543# as_fn_set_status STATUS
11544# -----------------------
11545# Set $? to STATUS, without forking.
11546as_fn_set_status ()
11547{
11548  return $1
11549} # as_fn_set_status
11550
11551# as_fn_exit STATUS
11552# -----------------
11553# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11554as_fn_exit ()
11555{
11556  set +e
11557  as_fn_set_status $1
11558  exit $1
11559} # as_fn_exit
11560
11561# as_fn_unset VAR
11562# ---------------
11563# Portably unset VAR.
11564as_fn_unset ()
11565{
11566  { eval $1=; unset $1;}
11567}
11568as_unset=as_fn_unset
11569# as_fn_append VAR VALUE
11570# ----------------------
11571# Append the text in VALUE to the end of the definition contained in VAR. Take
11572# advantage of any shell optimizations that allow amortized linear growth over
11573# repeated appends, instead of the typical quadratic growth present in naive
11574# implementations.
11575if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11576  eval 'as_fn_append ()
11577  {
11578    eval $1+=\$2
11579  }'
11580else
11581  as_fn_append ()
11582  {
11583    eval $1=\$$1\$2
11584  }
11585fi # as_fn_append
11586
11587# as_fn_arith ARG...
11588# ------------------
11589# Perform arithmetic evaluation on the ARGs, and store the result in the
11590# global $as_val. Take advantage of shells that can avoid forks. The arguments
11591# must be portable across $(()) and expr.
11592if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11593  eval 'as_fn_arith ()
11594  {
11595    as_val=$(( $* ))
11596  }'
11597else
11598  as_fn_arith ()
11599  {
11600    as_val=`expr "$@" || test $? -eq 1`
11601  }
11602fi # as_fn_arith
11603
11604
11605if expr a : '\(a\)' >/dev/null 2>&1 &&
11606   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11607  as_expr=expr
11608else
11609  as_expr=false
11610fi
11611
11612if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11613  as_basename=basename
11614else
11615  as_basename=false
11616fi
11617
11618if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11619  as_dirname=dirname
11620else
11621  as_dirname=false
11622fi
11623
11624as_me=`$as_basename -- "$0" ||
11625$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11626	 X"$0" : 'X\(//\)$' \| \
11627	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11628$as_echo X/"$0" |
11629    sed '/^.*\/\([^/][^/]*\)\/*$/{
11630	    s//\1/
11631	    q
11632	  }
11633	  /^X\/\(\/\/\)$/{
11634	    s//\1/
11635	    q
11636	  }
11637	  /^X\/\(\/\).*/{
11638	    s//\1/
11639	    q
11640	  }
11641	  s/.*/./; q'`
11642
11643# Avoid depending upon Character Ranges.
11644as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11645as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11646as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11647as_cr_digits='0123456789'
11648as_cr_alnum=$as_cr_Letters$as_cr_digits
11649
11650ECHO_C= ECHO_N= ECHO_T=
11651case `echo -n x` in #(((((
11652-n*)
11653  case `echo 'xy\c'` in
11654  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11655  xy)  ECHO_C='\c';;
11656  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11657       ECHO_T='	';;
11658  esac;;
11659*)
11660  ECHO_N='-n';;
11661esac
11662
11663rm -f conf$$ conf$$.exe conf$$.file
11664if test -d conf$$.dir; then
11665  rm -f conf$$.dir/conf$$.file
11666else
11667  rm -f conf$$.dir
11668  mkdir conf$$.dir 2>/dev/null
11669fi
11670if (echo >conf$$.file) 2>/dev/null; then
11671  if ln -s conf$$.file conf$$ 2>/dev/null; then
11672    as_ln_s='ln -s'
11673    # ... but there are two gotchas:
11674    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11675    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11676    # In both cases, we have to default to `cp -pR'.
11677    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11678      as_ln_s='cp -pR'
11679  elif ln conf$$.file conf$$ 2>/dev/null; then
11680    as_ln_s=ln
11681  else
11682    as_ln_s='cp -pR'
11683  fi
11684else
11685  as_ln_s='cp -pR'
11686fi
11687rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11688rmdir conf$$.dir 2>/dev/null
11689
11690
11691# as_fn_mkdir_p
11692# -------------
11693# Create "$as_dir" as a directory, including parents if necessary.
11694as_fn_mkdir_p ()
11695{
11696
11697  case $as_dir in #(
11698  -*) as_dir=./$as_dir;;
11699  esac
11700  test -d "$as_dir" || eval $as_mkdir_p || {
11701    as_dirs=
11702    while :; do
11703      case $as_dir in #(
11704      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11705      *) as_qdir=$as_dir;;
11706      esac
11707      as_dirs="'$as_qdir' $as_dirs"
11708      as_dir=`$as_dirname -- "$as_dir" ||
11709$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11710	 X"$as_dir" : 'X\(//\)[^/]' \| \
11711	 X"$as_dir" : 'X\(//\)$' \| \
11712	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11713$as_echo X"$as_dir" |
11714    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11715	    s//\1/
11716	    q
11717	  }
11718	  /^X\(\/\/\)[^/].*/{
11719	    s//\1/
11720	    q
11721	  }
11722	  /^X\(\/\/\)$/{
11723	    s//\1/
11724	    q
11725	  }
11726	  /^X\(\/\).*/{
11727	    s//\1/
11728	    q
11729	  }
11730	  s/.*/./; q'`
11731      test -d "$as_dir" && break
11732    done
11733    test -z "$as_dirs" || eval "mkdir $as_dirs"
11734  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11735
11736
11737} # as_fn_mkdir_p
11738if mkdir -p . 2>/dev/null; then
11739  as_mkdir_p='mkdir -p "$as_dir"'
11740else
11741  test -d ./-p && rmdir ./-p
11742  as_mkdir_p=false
11743fi
11744
11745
11746# as_fn_executable_p FILE
11747# -----------------------
11748# Test if FILE is an executable regular file.
11749as_fn_executable_p ()
11750{
11751  test -f "$1" && test -x "$1"
11752} # as_fn_executable_p
11753as_test_x='test -x'
11754as_executable_p=as_fn_executable_p
11755
11756# Sed expression to map a string onto a valid CPP name.
11757as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11758
11759# Sed expression to map a string onto a valid variable name.
11760as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11761
11762
11763exec 6>&1
11764## ----------------------------------- ##
11765## Main body of $CONFIG_STATUS script. ##
11766## ----------------------------------- ##
11767_ASEOF
11768test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11769
11770cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11771# Save the log message, to keep $0 and so on meaningful, and to
11772# report actual input values of CONFIG_FILES etc. instead of their
11773# values after options handling.
11774ac_log="
11775This file was extended by imake $as_me 1.0.7, which was
11776generated by GNU Autoconf 2.69.  Invocation command line was
11777
11778  CONFIG_FILES    = $CONFIG_FILES
11779  CONFIG_HEADERS  = $CONFIG_HEADERS
11780  CONFIG_LINKS    = $CONFIG_LINKS
11781  CONFIG_COMMANDS = $CONFIG_COMMANDS
11782  $ $0 $@
11783
11784on `(hostname || uname -n) 2>/dev/null | sed 1q`
11785"
11786
11787_ACEOF
11788
11789case $ac_config_files in *"
11790"*) set x $ac_config_files; shift; ac_config_files=$*;;
11791esac
11792
11793case $ac_config_headers in *"
11794"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11795esac
11796
11797
11798cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11799# Files that config.status was made for.
11800config_files="$ac_config_files"
11801config_headers="$ac_config_headers"
11802config_commands="$ac_config_commands"
11803
11804_ACEOF
11805
11806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11807ac_cs_usage="\
11808\`$as_me' instantiates files and other configuration actions
11809from templates according to the current configuration.  Unless the files
11810and actions are specified as TAGs, all are instantiated by default.
11811
11812Usage: $0 [OPTION]... [TAG]...
11813
11814  -h, --help       print this help, then exit
11815  -V, --version    print version number and configuration settings, then exit
11816      --config     print configuration, then exit
11817  -q, --quiet, --silent
11818                   do not print progress messages
11819  -d, --debug      don't remove temporary files
11820      --recheck    update $as_me by reconfiguring in the same conditions
11821      --file=FILE[:TEMPLATE]
11822                   instantiate the configuration file FILE
11823      --header=FILE[:TEMPLATE]
11824                   instantiate the configuration header FILE
11825
11826Configuration files:
11827$config_files
11828
11829Configuration headers:
11830$config_headers
11831
11832Configuration commands:
11833$config_commands
11834
11835Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11836
11837_ACEOF
11838cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11839ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11840ac_cs_version="\\
11841imake config.status 1.0.7
11842configured by $0, generated by GNU Autoconf 2.69,
11843  with options \\"\$ac_cs_config\\"
11844
11845Copyright (C) 2012 Free Software Foundation, Inc.
11846This config.status script is free software; the Free Software Foundation
11847gives unlimited permission to copy, distribute and modify it."
11848
11849ac_pwd='$ac_pwd'
11850srcdir='$srcdir'
11851INSTALL='$INSTALL'
11852MKDIR_P='$MKDIR_P'
11853AWK='$AWK'
11854test -n "\$AWK" || AWK=awk
11855_ACEOF
11856
11857cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11858# The default lists apply if the user does not specify any file.
11859ac_need_defaults=:
11860while test $# != 0
11861do
11862  case $1 in
11863  --*=?*)
11864    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11865    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11866    ac_shift=:
11867    ;;
11868  --*=)
11869    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11870    ac_optarg=
11871    ac_shift=:
11872    ;;
11873  *)
11874    ac_option=$1
11875    ac_optarg=$2
11876    ac_shift=shift
11877    ;;
11878  esac
11879
11880  case $ac_option in
11881  # Handling of the options.
11882  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11883    ac_cs_recheck=: ;;
11884  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11885    $as_echo "$ac_cs_version"; exit ;;
11886  --config | --confi | --conf | --con | --co | --c )
11887    $as_echo "$ac_cs_config"; exit ;;
11888  --debug | --debu | --deb | --de | --d | -d )
11889    debug=: ;;
11890  --file | --fil | --fi | --f )
11891    $ac_shift
11892    case $ac_optarg in
11893    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11894    '') as_fn_error $? "missing file argument" ;;
11895    esac
11896    as_fn_append CONFIG_FILES " '$ac_optarg'"
11897    ac_need_defaults=false;;
11898  --header | --heade | --head | --hea )
11899    $ac_shift
11900    case $ac_optarg in
11901    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11902    esac
11903    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11904    ac_need_defaults=false;;
11905  --he | --h)
11906    # Conflict between --help and --header
11907    as_fn_error $? "ambiguous option: \`$1'
11908Try \`$0 --help' for more information.";;
11909  --help | --hel | -h )
11910    $as_echo "$ac_cs_usage"; exit ;;
11911  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11912  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11913    ac_cs_silent=: ;;
11914
11915  # This is an error.
11916  -*) as_fn_error $? "unrecognized option: \`$1'
11917Try \`$0 --help' for more information." ;;
11918
11919  *) as_fn_append ac_config_targets " $1"
11920     ac_need_defaults=false ;;
11921
11922  esac
11923  shift
11924done
11925
11926ac_configure_extra_args=
11927
11928if $ac_cs_silent; then
11929  exec 6>/dev/null
11930  ac_configure_extra_args="$ac_configure_extra_args --silent"
11931fi
11932
11933_ACEOF
11934cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11935if \$ac_cs_recheck; then
11936  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11937  shift
11938  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11939  CONFIG_SHELL='$SHELL'
11940  export CONFIG_SHELL
11941  exec "\$@"
11942fi
11943
11944_ACEOF
11945cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11946exec 5>>config.log
11947{
11948  echo
11949  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11950## Running $as_me. ##
11951_ASBOX
11952  $as_echo "$ac_log"
11953} >&5
11954
11955_ACEOF
11956cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11957#
11958# INIT-COMMANDS
11959#
11960AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11961
11962_ACEOF
11963
11964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11965
11966# Handling of arguments.
11967for ac_config_target in $ac_config_targets
11968do
11969  case $ac_config_target in
11970    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11971    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11972    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11973
11974  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11975  esac
11976done
11977
11978
11979# If the user did not use the arguments to specify the items to instantiate,
11980# then the envvar interface is used.  Set only those that are not.
11981# We use the long form for the default assignment because of an extremely
11982# bizarre bug on SunOS 4.1.3.
11983if $ac_need_defaults; then
11984  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11985  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11986  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11987fi
11988
11989# Have a temporary directory for convenience.  Make it in the build tree
11990# simply because there is no reason against having it here, and in addition,
11991# creating and moving files from /tmp can sometimes cause problems.
11992# Hook for its removal unless debugging.
11993# Note that there is a small window in which the directory will not be cleaned:
11994# after its creation but before its name has been assigned to `$tmp'.
11995$debug ||
11996{
11997  tmp= ac_tmp=
11998  trap 'exit_status=$?
11999  : "${ac_tmp:=$tmp}"
12000  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12001' 0
12002  trap 'as_fn_exit 1' 1 2 13 15
12003}
12004# Create a (secure) tmp directory for tmp files.
12005
12006{
12007  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12008  test -d "$tmp"
12009}  ||
12010{
12011  tmp=./conf$$-$RANDOM
12012  (umask 077 && mkdir "$tmp")
12013} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12014ac_tmp=$tmp
12015
12016# Set up the scripts for CONFIG_FILES section.
12017# No need to generate them if there are no CONFIG_FILES.
12018# This happens for instance with `./config.status config.h'.
12019if test -n "$CONFIG_FILES"; then
12020
12021
12022ac_cr=`echo X | tr X '\015'`
12023# On cygwin, bash can eat \r inside `` if the user requested igncr.
12024# But we know of no other shell where ac_cr would be empty at this
12025# point, so we can use a bashism as a fallback.
12026if test "x$ac_cr" = x; then
12027  eval ac_cr=\$\'\\r\'
12028fi
12029ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12030if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12031  ac_cs_awk_cr='\\r'
12032else
12033  ac_cs_awk_cr=$ac_cr
12034fi
12035
12036echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12037_ACEOF
12038
12039
12040{
12041  echo "cat >conf$$subs.awk <<_ACEOF" &&
12042  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12043  echo "_ACEOF"
12044} >conf$$subs.sh ||
12045  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12046ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12047ac_delim='%!_!# '
12048for ac_last_try in false false false false false :; do
12049  . ./conf$$subs.sh ||
12050    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12051
12052  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12053  if test $ac_delim_n = $ac_delim_num; then
12054    break
12055  elif $ac_last_try; then
12056    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12057  else
12058    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12059  fi
12060done
12061rm -f conf$$subs.sh
12062
12063cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12064cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12065_ACEOF
12066sed -n '
12067h
12068s/^/S["/; s/!.*/"]=/
12069p
12070g
12071s/^[^!]*!//
12072:repl
12073t repl
12074s/'"$ac_delim"'$//
12075t delim
12076:nl
12077h
12078s/\(.\{148\}\)..*/\1/
12079t more1
12080s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12081p
12082n
12083b repl
12084:more1
12085s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12086p
12087g
12088s/.\{148\}//
12089t nl
12090:delim
12091h
12092s/\(.\{148\}\)..*/\1/
12093t more2
12094s/["\\]/\\&/g; s/^/"/; s/$/"/
12095p
12096b
12097:more2
12098s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12099p
12100g
12101s/.\{148\}//
12102t delim
12103' <conf$$subs.awk | sed '
12104/^[^""]/{
12105  N
12106  s/\n//
12107}
12108' >>$CONFIG_STATUS || ac_write_fail=1
12109rm -f conf$$subs.awk
12110cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12111_ACAWK
12112cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12113  for (key in S) S_is_set[key] = 1
12114  FS = ""
12115
12116}
12117{
12118  line = $ 0
12119  nfields = split(line, field, "@")
12120  substed = 0
12121  len = length(field[1])
12122  for (i = 2; i < nfields; i++) {
12123    key = field[i]
12124    keylen = length(key)
12125    if (S_is_set[key]) {
12126      value = S[key]
12127      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12128      len += length(value) + length(field[++i])
12129      substed = 1
12130    } else
12131      len += 1 + keylen
12132  }
12133
12134  print line
12135}
12136
12137_ACAWK
12138_ACEOF
12139cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12140if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12141  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12142else
12143  cat
12144fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12145  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12146_ACEOF
12147
12148# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12149# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12150# trailing colons and then remove the whole line if VPATH becomes empty
12151# (actually we leave an empty line to preserve line numbers).
12152if test "x$srcdir" = x.; then
12153  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12154h
12155s///
12156s/^/:/
12157s/[	 ]*$/:/
12158s/:\$(srcdir):/:/g
12159s/:\${srcdir}:/:/g
12160s/:@srcdir@:/:/g
12161s/^:*//
12162s/:*$//
12163x
12164s/\(=[	 ]*\).*/\1/
12165G
12166s/\n//
12167s/^[^=]*=[	 ]*$//
12168}'
12169fi
12170
12171cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12172fi # test -n "$CONFIG_FILES"
12173
12174# Set up the scripts for CONFIG_HEADERS section.
12175# No need to generate them if there are no CONFIG_HEADERS.
12176# This happens for instance with `./config.status Makefile'.
12177if test -n "$CONFIG_HEADERS"; then
12178cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12179BEGIN {
12180_ACEOF
12181
12182# Transform confdefs.h into an awk script `defines.awk', embedded as
12183# here-document in config.status, that substitutes the proper values into
12184# config.h.in to produce config.h.
12185
12186# Create a delimiter string that does not exist in confdefs.h, to ease
12187# handling of long lines.
12188ac_delim='%!_!# '
12189for ac_last_try in false false :; do
12190  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12191  if test -z "$ac_tt"; then
12192    break
12193  elif $ac_last_try; then
12194    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12195  else
12196    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12197  fi
12198done
12199
12200# For the awk script, D is an array of macro values keyed by name,
12201# likewise P contains macro parameters if any.  Preserve backslash
12202# newline sequences.
12203
12204ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12205sed -n '
12206s/.\{148\}/&'"$ac_delim"'/g
12207t rset
12208:rset
12209s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12210t def
12211d
12212:def
12213s/\\$//
12214t bsnl
12215s/["\\]/\\&/g
12216s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12217D["\1"]=" \3"/p
12218s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12219d
12220:bsnl
12221s/["\\]/\\&/g
12222s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12223D["\1"]=" \3\\\\\\n"\\/p
12224t cont
12225s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12226t cont
12227d
12228:cont
12229n
12230s/.\{148\}/&'"$ac_delim"'/g
12231t clear
12232:clear
12233s/\\$//
12234t bsnlc
12235s/["\\]/\\&/g; s/^/"/; s/$/"/p
12236d
12237:bsnlc
12238s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12239b cont
12240' <confdefs.h | sed '
12241s/'"$ac_delim"'/"\\\
12242"/g' >>$CONFIG_STATUS || ac_write_fail=1
12243
12244cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12245  for (key in D) D_is_set[key] = 1
12246  FS = ""
12247}
12248/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12249  line = \$ 0
12250  split(line, arg, " ")
12251  if (arg[1] == "#") {
12252    defundef = arg[2]
12253    mac1 = arg[3]
12254  } else {
12255    defundef = substr(arg[1], 2)
12256    mac1 = arg[2]
12257  }
12258  split(mac1, mac2, "(") #)
12259  macro = mac2[1]
12260  prefix = substr(line, 1, index(line, defundef) - 1)
12261  if (D_is_set[macro]) {
12262    # Preserve the white space surrounding the "#".
12263    print prefix "define", macro P[macro] D[macro]
12264    next
12265  } else {
12266    # Replace #undef with comments.  This is necessary, for example,
12267    # in the case of _POSIX_SOURCE, which is predefined and required
12268    # on some systems where configure will not decide to define it.
12269    if (defundef == "undef") {
12270      print "/*", prefix defundef, macro, "*/"
12271      next
12272    }
12273  }
12274}
12275{ print }
12276_ACAWK
12277_ACEOF
12278cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12279  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12280fi # test -n "$CONFIG_HEADERS"
12281
12282
12283eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12284shift
12285for ac_tag
12286do
12287  case $ac_tag in
12288  :[FHLC]) ac_mode=$ac_tag; continue;;
12289  esac
12290  case $ac_mode$ac_tag in
12291  :[FHL]*:*);;
12292  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12293  :[FH]-) ac_tag=-:-;;
12294  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12295  esac
12296  ac_save_IFS=$IFS
12297  IFS=:
12298  set x $ac_tag
12299  IFS=$ac_save_IFS
12300  shift
12301  ac_file=$1
12302  shift
12303
12304  case $ac_mode in
12305  :L) ac_source=$1;;
12306  :[FH])
12307    ac_file_inputs=
12308    for ac_f
12309    do
12310      case $ac_f in
12311      -) ac_f="$ac_tmp/stdin";;
12312      *) # Look for the file first in the build tree, then in the source tree
12313	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12314	 # because $ac_f cannot contain `:'.
12315	 test -f "$ac_f" ||
12316	   case $ac_f in
12317	   [\\/$]*) false;;
12318	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12319	   esac ||
12320	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12321      esac
12322      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12323      as_fn_append ac_file_inputs " '$ac_f'"
12324    done
12325
12326    # Let's still pretend it is `configure' which instantiates (i.e., don't
12327    # use $as_me), people would be surprised to read:
12328    #    /* config.h.  Generated by config.status.  */
12329    configure_input='Generated from '`
12330	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12331	`' by configure.'
12332    if test x"$ac_file" != x-; then
12333      configure_input="$ac_file.  $configure_input"
12334      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12335$as_echo "$as_me: creating $ac_file" >&6;}
12336    fi
12337    # Neutralize special characters interpreted by sed in replacement strings.
12338    case $configure_input in #(
12339    *\&* | *\|* | *\\* )
12340       ac_sed_conf_input=`$as_echo "$configure_input" |
12341       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12342    *) ac_sed_conf_input=$configure_input;;
12343    esac
12344
12345    case $ac_tag in
12346    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12347      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12348    esac
12349    ;;
12350  esac
12351
12352  ac_dir=`$as_dirname -- "$ac_file" ||
12353$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12354	 X"$ac_file" : 'X\(//\)[^/]' \| \
12355	 X"$ac_file" : 'X\(//\)$' \| \
12356	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12357$as_echo X"$ac_file" |
12358    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12359	    s//\1/
12360	    q
12361	  }
12362	  /^X\(\/\/\)[^/].*/{
12363	    s//\1/
12364	    q
12365	  }
12366	  /^X\(\/\/\)$/{
12367	    s//\1/
12368	    q
12369	  }
12370	  /^X\(\/\).*/{
12371	    s//\1/
12372	    q
12373	  }
12374	  s/.*/./; q'`
12375  as_dir="$ac_dir"; as_fn_mkdir_p
12376  ac_builddir=.
12377
12378case "$ac_dir" in
12379.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12380*)
12381  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12382  # A ".." for each directory in $ac_dir_suffix.
12383  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12384  case $ac_top_builddir_sub in
12385  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12386  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12387  esac ;;
12388esac
12389ac_abs_top_builddir=$ac_pwd
12390ac_abs_builddir=$ac_pwd$ac_dir_suffix
12391# for backward compatibility:
12392ac_top_builddir=$ac_top_build_prefix
12393
12394case $srcdir in
12395  .)  # We are building in place.
12396    ac_srcdir=.
12397    ac_top_srcdir=$ac_top_builddir_sub
12398    ac_abs_top_srcdir=$ac_pwd ;;
12399  [\\/]* | ?:[\\/]* )  # Absolute name.
12400    ac_srcdir=$srcdir$ac_dir_suffix;
12401    ac_top_srcdir=$srcdir
12402    ac_abs_top_srcdir=$srcdir ;;
12403  *) # Relative name.
12404    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12405    ac_top_srcdir=$ac_top_build_prefix$srcdir
12406    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12407esac
12408ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12409
12410
12411  case $ac_mode in
12412  :F)
12413  #
12414  # CONFIG_FILE
12415  #
12416
12417  case $INSTALL in
12418  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12419  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12420  esac
12421  ac_MKDIR_P=$MKDIR_P
12422  case $MKDIR_P in
12423  [\\/$]* | ?:[\\/]* ) ;;
12424  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12425  esac
12426_ACEOF
12427
12428cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12429# If the template does not know about datarootdir, expand it.
12430# FIXME: This hack should be removed a few years after 2.60.
12431ac_datarootdir_hack=; ac_datarootdir_seen=
12432ac_sed_dataroot='
12433/datarootdir/ {
12434  p
12435  q
12436}
12437/@datadir@/p
12438/@docdir@/p
12439/@infodir@/p
12440/@localedir@/p
12441/@mandir@/p'
12442case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12443*datarootdir*) ac_datarootdir_seen=yes;;
12444*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12445  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12446$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12447_ACEOF
12448cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12449  ac_datarootdir_hack='
12450  s&@datadir@&$datadir&g
12451  s&@docdir@&$docdir&g
12452  s&@infodir@&$infodir&g
12453  s&@localedir@&$localedir&g
12454  s&@mandir@&$mandir&g
12455  s&\\\${datarootdir}&$datarootdir&g' ;;
12456esac
12457_ACEOF
12458
12459# Neutralize VPATH when `$srcdir' = `.'.
12460# Shell code in configure.ac might set extrasub.
12461# FIXME: do we really want to maintain this feature?
12462cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12463ac_sed_extra="$ac_vpsub
12464$extrasub
12465_ACEOF
12466cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12467:t
12468/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12469s|@configure_input@|$ac_sed_conf_input|;t t
12470s&@top_builddir@&$ac_top_builddir_sub&;t t
12471s&@top_build_prefix@&$ac_top_build_prefix&;t t
12472s&@srcdir@&$ac_srcdir&;t t
12473s&@abs_srcdir@&$ac_abs_srcdir&;t t
12474s&@top_srcdir@&$ac_top_srcdir&;t t
12475s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12476s&@builddir@&$ac_builddir&;t t
12477s&@abs_builddir@&$ac_abs_builddir&;t t
12478s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12479s&@INSTALL@&$ac_INSTALL&;t t
12480s&@MKDIR_P@&$ac_MKDIR_P&;t t
12481$ac_datarootdir_hack
12482"
12483eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12484  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12485
12486test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12487  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12488  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12489      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12490  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12491which seems to be undefined.  Please make sure it is defined" >&5
12492$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12493which seems to be undefined.  Please make sure it is defined" >&2;}
12494
12495  rm -f "$ac_tmp/stdin"
12496  case $ac_file in
12497  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12498  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12499  esac \
12500  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12501 ;;
12502  :H)
12503  #
12504  # CONFIG_HEADER
12505  #
12506  if test x"$ac_file" != x-; then
12507    {
12508      $as_echo "/* $configure_input  */" \
12509      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12510    } >"$ac_tmp/config.h" \
12511      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12512    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12513      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12514$as_echo "$as_me: $ac_file is unchanged" >&6;}
12515    else
12516      rm -f "$ac_file"
12517      mv "$ac_tmp/config.h" "$ac_file" \
12518	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12519    fi
12520  else
12521    $as_echo "/* $configure_input  */" \
12522      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12523      || as_fn_error $? "could not create -" "$LINENO" 5
12524  fi
12525# Compute "$ac_file"'s index in $config_headers.
12526_am_arg="$ac_file"
12527_am_stamp_count=1
12528for _am_header in $config_headers :; do
12529  case $_am_header in
12530    $_am_arg | $_am_arg:* )
12531      break ;;
12532    * )
12533      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12534  esac
12535done
12536echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12537$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12538	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12539	 X"$_am_arg" : 'X\(//\)$' \| \
12540	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12541$as_echo X"$_am_arg" |
12542    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12543	    s//\1/
12544	    q
12545	  }
12546	  /^X\(\/\/\)[^/].*/{
12547	    s//\1/
12548	    q
12549	  }
12550	  /^X\(\/\/\)$/{
12551	    s//\1/
12552	    q
12553	  }
12554	  /^X\(\/\).*/{
12555	    s//\1/
12556	    q
12557	  }
12558	  s/.*/./; q'`/stamp-h$_am_stamp_count
12559 ;;
12560
12561  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12562$as_echo "$as_me: executing $ac_file commands" >&6;}
12563 ;;
12564  esac
12565
12566
12567  case $ac_file$ac_mode in
12568    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12569  # Older Autoconf quotes --file arguments for eval, but not when files
12570  # are listed without --file.  Let's play safe and only enable the eval
12571  # if we detect the quoting.
12572  case $CONFIG_FILES in
12573  *\'*) eval set x "$CONFIG_FILES" ;;
12574  *)   set x $CONFIG_FILES ;;
12575  esac
12576  shift
12577  for mf
12578  do
12579    # Strip MF so we end up with the name of the file.
12580    mf=`echo "$mf" | sed -e 's/:.*$//'`
12581    # Check whether this is an Automake generated Makefile or not.
12582    # We used to match only the files named 'Makefile.in', but
12583    # some people rename them; so instead we look at the file content.
12584    # Grep'ing the first line is not enough: some people post-process
12585    # each Makefile.in and add a new line on top of each file to say so.
12586    # Grep'ing the whole file is not good either: AIX grep has a line
12587    # limit of 2048, but all sed's we know have understand at least 4000.
12588    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12589      dirpart=`$as_dirname -- "$mf" ||
12590$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12591	 X"$mf" : 'X\(//\)[^/]' \| \
12592	 X"$mf" : 'X\(//\)$' \| \
12593	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12594$as_echo X"$mf" |
12595    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12596	    s//\1/
12597	    q
12598	  }
12599	  /^X\(\/\/\)[^/].*/{
12600	    s//\1/
12601	    q
12602	  }
12603	  /^X\(\/\/\)$/{
12604	    s//\1/
12605	    q
12606	  }
12607	  /^X\(\/\).*/{
12608	    s//\1/
12609	    q
12610	  }
12611	  s/.*/./; q'`
12612    else
12613      continue
12614    fi
12615    # Extract the definition of DEPDIR, am__include, and am__quote
12616    # from the Makefile without running 'make'.
12617    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12618    test -z "$DEPDIR" && continue
12619    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12620    test -z "$am__include" && continue
12621    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12622    # Find all dependency output files, they are included files with
12623    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12624    # simplest approach to changing $(DEPDIR) to its actual value in the
12625    # expansion.
12626    for file in `sed -n "
12627      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12628	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12629      # Make sure the directory exists.
12630      test -f "$dirpart/$file" && continue
12631      fdir=`$as_dirname -- "$file" ||
12632$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12633	 X"$file" : 'X\(//\)[^/]' \| \
12634	 X"$file" : 'X\(//\)$' \| \
12635	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12636$as_echo X"$file" |
12637    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12638	    s//\1/
12639	    q
12640	  }
12641	  /^X\(\/\/\)[^/].*/{
12642	    s//\1/
12643	    q
12644	  }
12645	  /^X\(\/\/\)$/{
12646	    s//\1/
12647	    q
12648	  }
12649	  /^X\(\/\).*/{
12650	    s//\1/
12651	    q
12652	  }
12653	  s/.*/./; q'`
12654      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12655      # echo "creating $dirpart/$file"
12656      echo '# dummy' > "$dirpart/$file"
12657    done
12658  done
12659}
12660 ;;
12661
12662  esac
12663done # for ac_tag
12664
12665
12666as_fn_exit 0
12667_ACEOF
12668ac_clean_files=$ac_clean_files_save
12669
12670test $ac_write_fail = 0 ||
12671  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12672
12673
12674# configure is writing to config.log, and then calls config.status.
12675# config.status does its own redirection, appending to config.log.
12676# Unfortunately, on DOS this fails, as config.log is still kept open
12677# by configure, so config.status won't be able to write to it; its
12678# output is simply discarded.  So we exec the FD to /dev/null,
12679# effectively closing config.log, so it can be properly (re)opened and
12680# appended to by config.status.  When coming back to configure, we
12681# need to make the FD available again.
12682if test "$no_create" != yes; then
12683  ac_cs_success=:
12684  ac_config_status_args=
12685  test "$silent" = yes &&
12686    ac_config_status_args="$ac_config_status_args --quiet"
12687  exec 5>/dev/null
12688  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12689  exec 5>>config.log
12690  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12691  # would make configure fail if this is the last instruction.
12692  $ac_cs_success || as_fn_exit 1
12693fi
12694if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12695  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12696$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12697fi
12698
12699