configure revision ebb1c56d
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xconsole 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='xconsole'
583PACKAGE_TARNAME='xconsole'
584PACKAGE_VERSION='1.0.7'
585PACKAGE_STRING='xconsole 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
630appdefaultdir
631APPDEFS_LIBS
632APPDEFS_CFLAGS
633XCONSOLE_LIBS
634XCONSOLE_CFLAGS
635MAN_SUBSTS
636XORG_MAN_PAGE
637ADMIN_MAN_DIR
638DRIVER_MAN_DIR
639MISC_MAN_DIR
640FILE_MAN_DIR
641LIB_MAN_DIR
642APP_MAN_DIR
643ADMIN_MAN_SUFFIX
644DRIVER_MAN_SUFFIX
645MISC_MAN_SUFFIX
646FILE_MAN_SUFFIX
647LIB_MAN_SUFFIX
648APP_MAN_SUFFIX
649SED
650host_os
651host_vendor
652host_cpu
653host
654build_os
655build_vendor
656build_cpu
657build
658INSTALL_CMD
659PKG_CONFIG_LIBDIR
660PKG_CONFIG_PATH
661PKG_CONFIG
662CHANGELOG_CMD
663STRICT_CFLAGS
664CWARNFLAGS
665BASE_CFLAGS
666AM_BACKSLASH
667AM_DEFAULT_VERBOSITY
668AM_DEFAULT_V
669AM_V
670am__fastdepCC_FALSE
671am__fastdepCC_TRUE
672CCDEPMODE
673am__nodep
674AMDEPBACKSLASH
675AMDEP_FALSE
676AMDEP_TRUE
677am__quote
678am__include
679DEPDIR
680am__untar
681am__tar
682AMTAR
683am__leading_dot
684SET_MAKE
685AWK
686mkdir_p
687MKDIR_P
688INSTALL_STRIP_PROGRAM
689STRIP
690install_sh
691MAKEINFO
692AUTOHEADER
693AUTOMAKE
694AUTOCONF
695ACLOCAL
696VERSION
697PACKAGE
698CYGPATH_W
699am__isrc
700INSTALL_DATA
701INSTALL_SCRIPT
702INSTALL_PROGRAM
703EGREP
704GREP
705CPP
706OBJEXT
707EXEEXT
708ac_ct_CC
709CPPFLAGS
710LDFLAGS
711CFLAGS
712CC
713target_alias
714host_alias
715build_alias
716LIBS
717ECHO_T
718ECHO_N
719ECHO_C
720DEFS
721mandir
722localedir
723libdir
724psdir
725pdfdir
726dvidir
727htmldir
728infodir
729docdir
730oldincludedir
731includedir
732localstatedir
733sharedstatedir
734sysconfdir
735datadir
736datarootdir
737libexecdir
738sbindir
739bindir
740program_transform_name
741prefix
742exec_prefix
743PACKAGE_URL
744PACKAGE_BUGREPORT
745PACKAGE_STRING
746PACKAGE_VERSION
747PACKAGE_TARNAME
748PACKAGE_NAME
749PATH_SEPARATOR
750SHELL'
751ac_subst_files=''
752ac_user_opts='
753enable_option_checking
754enable_dependency_tracking
755enable_silent_rules
756enable_selective_werror
757enable_strict_compilation
758with_appdefaultdir
759'
760      ac_precious_vars='build_alias
761host_alias
762target_alias
763CC
764CFLAGS
765LDFLAGS
766LIBS
767CPPFLAGS
768CPP
769PKG_CONFIG
770PKG_CONFIG_PATH
771PKG_CONFIG_LIBDIR
772XCONSOLE_CFLAGS
773XCONSOLE_LIBS
774APPDEFS_CFLAGS
775APPDEFS_LIBS'
776
777
778# Initialize some variables set by options.
779ac_init_help=
780ac_init_version=false
781ac_unrecognized_opts=
782ac_unrecognized_sep=
783# The variables have the same names as the options, with
784# dashes changed to underlines.
785cache_file=/dev/null
786exec_prefix=NONE
787no_create=
788no_recursion=
789prefix=NONE
790program_prefix=NONE
791program_suffix=NONE
792program_transform_name=s,x,x,
793silent=
794site=
795srcdir=
796verbose=
797x_includes=NONE
798x_libraries=NONE
799
800# Installation directory options.
801# These are left unexpanded so users can "make install exec_prefix=/foo"
802# and all the variables that are supposed to be based on exec_prefix
803# by default will actually change.
804# Use braces instead of parens because sh, perl, etc. also accept them.
805# (The list follows the same order as the GNU Coding Standards.)
806bindir='${exec_prefix}/bin'
807sbindir='${exec_prefix}/sbin'
808libexecdir='${exec_prefix}/libexec'
809datarootdir='${prefix}/share'
810datadir='${datarootdir}'
811sysconfdir='${prefix}/etc'
812sharedstatedir='${prefix}/com'
813localstatedir='${prefix}/var'
814includedir='${prefix}/include'
815oldincludedir='/usr/include'
816docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
817infodir='${datarootdir}/info'
818htmldir='${docdir}'
819dvidir='${docdir}'
820pdfdir='${docdir}'
821psdir='${docdir}'
822libdir='${exec_prefix}/lib'
823localedir='${datarootdir}/locale'
824mandir='${datarootdir}/man'
825
826ac_prev=
827ac_dashdash=
828for ac_option
829do
830  # If the previous option needs an argument, assign it.
831  if test -n "$ac_prev"; then
832    eval $ac_prev=\$ac_option
833    ac_prev=
834    continue
835  fi
836
837  case $ac_option in
838  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
839  *=)   ac_optarg= ;;
840  *)    ac_optarg=yes ;;
841  esac
842
843  # Accept the important Cygnus configure options, so we can diagnose typos.
844
845  case $ac_dashdash$ac_option in
846  --)
847    ac_dashdash=yes ;;
848
849  -bindir | --bindir | --bindi | --bind | --bin | --bi)
850    ac_prev=bindir ;;
851  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
852    bindir=$ac_optarg ;;
853
854  -build | --build | --buil | --bui | --bu)
855    ac_prev=build_alias ;;
856  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
857    build_alias=$ac_optarg ;;
858
859  -cache-file | --cache-file | --cache-fil | --cache-fi \
860  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
861    ac_prev=cache_file ;;
862  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
863  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
864    cache_file=$ac_optarg ;;
865
866  --config-cache | -C)
867    cache_file=config.cache ;;
868
869  -datadir | --datadir | --datadi | --datad)
870    ac_prev=datadir ;;
871  -datadir=* | --datadir=* | --datadi=* | --datad=*)
872    datadir=$ac_optarg ;;
873
874  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
875  | --dataroo | --dataro | --datar)
876    ac_prev=datarootdir ;;
877  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
878  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
879    datarootdir=$ac_optarg ;;
880
881  -disable-* | --disable-*)
882    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
883    # Reject names that are not valid shell variable names.
884    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885      as_fn_error $? "invalid feature name: $ac_useropt"
886    ac_useropt_orig=$ac_useropt
887    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888    case $ac_user_opts in
889      *"
890"enable_$ac_useropt"
891"*) ;;
892      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
893	 ac_unrecognized_sep=', ';;
894    esac
895    eval enable_$ac_useropt=no ;;
896
897  -docdir | --docdir | --docdi | --doc | --do)
898    ac_prev=docdir ;;
899  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
900    docdir=$ac_optarg ;;
901
902  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
903    ac_prev=dvidir ;;
904  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
905    dvidir=$ac_optarg ;;
906
907  -enable-* | --enable-*)
908    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
909    # Reject names that are not valid shell variable names.
910    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911      as_fn_error $? "invalid feature name: $ac_useropt"
912    ac_useropt_orig=$ac_useropt
913    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914    case $ac_user_opts in
915      *"
916"enable_$ac_useropt"
917"*) ;;
918      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
919	 ac_unrecognized_sep=', ';;
920    esac
921    eval enable_$ac_useropt=\$ac_optarg ;;
922
923  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925  | --exec | --exe | --ex)
926    ac_prev=exec_prefix ;;
927  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929  | --exec=* | --exe=* | --ex=*)
930    exec_prefix=$ac_optarg ;;
931
932  -gas | --gas | --ga | --g)
933    # Obsolete; use --with-gas.
934    with_gas=yes ;;
935
936  -help | --help | --hel | --he | -h)
937    ac_init_help=long ;;
938  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939    ac_init_help=recursive ;;
940  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941    ac_init_help=short ;;
942
943  -host | --host | --hos | --ho)
944    ac_prev=host_alias ;;
945  -host=* | --host=* | --hos=* | --ho=*)
946    host_alias=$ac_optarg ;;
947
948  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
949    ac_prev=htmldir ;;
950  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
951  | --ht=*)
952    htmldir=$ac_optarg ;;
953
954  -includedir | --includedir | --includedi | --included | --include \
955  | --includ | --inclu | --incl | --inc)
956    ac_prev=includedir ;;
957  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958  | --includ=* | --inclu=* | --incl=* | --inc=*)
959    includedir=$ac_optarg ;;
960
961  -infodir | --infodir | --infodi | --infod | --info | --inf)
962    ac_prev=infodir ;;
963  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964    infodir=$ac_optarg ;;
965
966  -libdir | --libdir | --libdi | --libd)
967    ac_prev=libdir ;;
968  -libdir=* | --libdir=* | --libdi=* | --libd=*)
969    libdir=$ac_optarg ;;
970
971  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972  | --libexe | --libex | --libe)
973    ac_prev=libexecdir ;;
974  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975  | --libexe=* | --libex=* | --libe=*)
976    libexecdir=$ac_optarg ;;
977
978  -localedir | --localedir | --localedi | --localed | --locale)
979    ac_prev=localedir ;;
980  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981    localedir=$ac_optarg ;;
982
983  -localstatedir | --localstatedir | --localstatedi | --localstated \
984  | --localstate | --localstat | --localsta | --localst | --locals)
985    ac_prev=localstatedir ;;
986  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988    localstatedir=$ac_optarg ;;
989
990  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
991    ac_prev=mandir ;;
992  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
993    mandir=$ac_optarg ;;
994
995  -nfp | --nfp | --nf)
996    # Obsolete; use --without-fp.
997    with_fp=no ;;
998
999  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000  | --no-cr | --no-c | -n)
1001    no_create=yes ;;
1002
1003  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005    no_recursion=yes ;;
1006
1007  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009  | --oldin | --oldi | --old | --ol | --o)
1010    ac_prev=oldincludedir ;;
1011  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014    oldincludedir=$ac_optarg ;;
1015
1016  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1017    ac_prev=prefix ;;
1018  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019    prefix=$ac_optarg ;;
1020
1021  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022  | --program-pre | --program-pr | --program-p)
1023    ac_prev=program_prefix ;;
1024  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026    program_prefix=$ac_optarg ;;
1027
1028  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029  | --program-suf | --program-su | --program-s)
1030    ac_prev=program_suffix ;;
1031  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033    program_suffix=$ac_optarg ;;
1034
1035  -program-transform-name | --program-transform-name \
1036  | --program-transform-nam | --program-transform-na \
1037  | --program-transform-n | --program-transform- \
1038  | --program-transform | --program-transfor \
1039  | --program-transfo | --program-transf \
1040  | --program-trans | --program-tran \
1041  | --progr-tra | --program-tr | --program-t)
1042    ac_prev=program_transform_name ;;
1043  -program-transform-name=* | --program-transform-name=* \
1044  | --program-transform-nam=* | --program-transform-na=* \
1045  | --program-transform-n=* | --program-transform-=* \
1046  | --program-transform=* | --program-transfor=* \
1047  | --program-transfo=* | --program-transf=* \
1048  | --program-trans=* | --program-tran=* \
1049  | --progr-tra=* | --program-tr=* | --program-t=*)
1050    program_transform_name=$ac_optarg ;;
1051
1052  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1053    ac_prev=pdfdir ;;
1054  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055    pdfdir=$ac_optarg ;;
1056
1057  -psdir | --psdir | --psdi | --psd | --ps)
1058    ac_prev=psdir ;;
1059  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1060    psdir=$ac_optarg ;;
1061
1062  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063  | -silent | --silent | --silen | --sile | --sil)
1064    silent=yes ;;
1065
1066  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1067    ac_prev=sbindir ;;
1068  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1069  | --sbi=* | --sb=*)
1070    sbindir=$ac_optarg ;;
1071
1072  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074  | --sharedst | --shareds | --shared | --share | --shar \
1075  | --sha | --sh)
1076    ac_prev=sharedstatedir ;;
1077  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1080  | --sha=* | --sh=*)
1081    sharedstatedir=$ac_optarg ;;
1082
1083  -site | --site | --sit)
1084    ac_prev=site ;;
1085  -site=* | --site=* | --sit=*)
1086    site=$ac_optarg ;;
1087
1088  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1089    ac_prev=srcdir ;;
1090  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091    srcdir=$ac_optarg ;;
1092
1093  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094  | --syscon | --sysco | --sysc | --sys | --sy)
1095    ac_prev=sysconfdir ;;
1096  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098    sysconfdir=$ac_optarg ;;
1099
1100  -target | --target | --targe | --targ | --tar | --ta | --t)
1101    ac_prev=target_alias ;;
1102  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103    target_alias=$ac_optarg ;;
1104
1105  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1106    verbose=yes ;;
1107
1108  -version | --version | --versio | --versi | --vers | -V)
1109    ac_init_version=: ;;
1110
1111  -with-* | --with-*)
1112    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113    # Reject names that are not valid shell variable names.
1114    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115      as_fn_error $? "invalid package name: $ac_useropt"
1116    ac_useropt_orig=$ac_useropt
1117    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118    case $ac_user_opts in
1119      *"
1120"with_$ac_useropt"
1121"*) ;;
1122      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1123	 ac_unrecognized_sep=', ';;
1124    esac
1125    eval with_$ac_useropt=\$ac_optarg ;;
1126
1127  -without-* | --without-*)
1128    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1129    # Reject names that are not valid shell variable names.
1130    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131      as_fn_error $? "invalid package name: $ac_useropt"
1132    ac_useropt_orig=$ac_useropt
1133    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134    case $ac_user_opts in
1135      *"
1136"with_$ac_useropt"
1137"*) ;;
1138      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1139	 ac_unrecognized_sep=', ';;
1140    esac
1141    eval with_$ac_useropt=no ;;
1142
1143  --x)
1144    # Obsolete; use --with-x.
1145    with_x=yes ;;
1146
1147  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1148  | --x-incl | --x-inc | --x-in | --x-i)
1149    ac_prev=x_includes ;;
1150  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1151  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1152    x_includes=$ac_optarg ;;
1153
1154  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1155  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1156    ac_prev=x_libraries ;;
1157  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1158  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1159    x_libraries=$ac_optarg ;;
1160
1161  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1162Try \`$0 --help' for more information"
1163    ;;
1164
1165  *=*)
1166    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1167    # Reject names that are not valid shell variable names.
1168    case $ac_envvar in #(
1169      '' | [0-9]* | *[!_$as_cr_alnum]* )
1170      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1171    esac
1172    eval $ac_envvar=\$ac_optarg
1173    export $ac_envvar ;;
1174
1175  *)
1176    # FIXME: should be removed in autoconf 3.0.
1177    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1178    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1179      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1180    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1181    ;;
1182
1183  esac
1184done
1185
1186if test -n "$ac_prev"; then
1187  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1188  as_fn_error $? "missing argument to $ac_option"
1189fi
1190
1191if test -n "$ac_unrecognized_opts"; then
1192  case $enable_option_checking in
1193    no) ;;
1194    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1195    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1196  esac
1197fi
1198
1199# Check all directory arguments for consistency.
1200for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1201		datadir sysconfdir sharedstatedir localstatedir includedir \
1202		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1203		libdir localedir mandir
1204do
1205  eval ac_val=\$$ac_var
1206  # Remove trailing slashes.
1207  case $ac_val in
1208    */ )
1209      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1210      eval $ac_var=\$ac_val;;
1211  esac
1212  # Be sure to have absolute directory names.
1213  case $ac_val in
1214    [\\/$]* | ?:[\\/]* )  continue;;
1215    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216  esac
1217  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1218done
1219
1220# There might be people who depend on the old broken behavior: `$host'
1221# used to hold the argument of --host etc.
1222# FIXME: To remove some day.
1223build=$build_alias
1224host=$host_alias
1225target=$target_alias
1226
1227# FIXME: To remove some day.
1228if test "x$host_alias" != x; then
1229  if test "x$build_alias" = x; then
1230    cross_compiling=maybe
1231  elif test "x$build_alias" != "x$host_alias"; then
1232    cross_compiling=yes
1233  fi
1234fi
1235
1236ac_tool_prefix=
1237test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238
1239test "$silent" = yes && exec 6>/dev/null
1240
1241
1242ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243ac_ls_di=`ls -di .` &&
1244ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245  as_fn_error $? "working directory cannot be determined"
1246test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247  as_fn_error $? "pwd does not report name of working directory"
1248
1249
1250# Find the source files, if location was not specified.
1251if test -z "$srcdir"; then
1252  ac_srcdir_defaulted=yes
1253  # Try the directory containing this script, then the parent directory.
1254  ac_confdir=`$as_dirname -- "$as_myself" ||
1255$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256	 X"$as_myself" : 'X\(//\)[^/]' \| \
1257	 X"$as_myself" : 'X\(//\)$' \| \
1258	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1259$as_echo X"$as_myself" |
1260    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261	    s//\1/
1262	    q
1263	  }
1264	  /^X\(\/\/\)[^/].*/{
1265	    s//\1/
1266	    q
1267	  }
1268	  /^X\(\/\/\)$/{
1269	    s//\1/
1270	    q
1271	  }
1272	  /^X\(\/\).*/{
1273	    s//\1/
1274	    q
1275	  }
1276	  s/.*/./; q'`
1277  srcdir=$ac_confdir
1278  if test ! -r "$srcdir/$ac_unique_file"; then
1279    srcdir=..
1280  fi
1281else
1282  ac_srcdir_defaulted=no
1283fi
1284if test ! -r "$srcdir/$ac_unique_file"; then
1285  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1287fi
1288ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289ac_abs_confdir=`(
1290	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1291	pwd)`
1292# When building in place, set srcdir=.
1293if test "$ac_abs_confdir" = "$ac_pwd"; then
1294  srcdir=.
1295fi
1296# Remove unnecessary trailing slashes from srcdir.
1297# Double slashes in file names in object file debugging info
1298# mess up M-x gdb in Emacs.
1299case $srcdir in
1300*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1301esac
1302for ac_var in $ac_precious_vars; do
1303  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304  eval ac_env_${ac_var}_value=\$${ac_var}
1305  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1307done
1308
1309#
1310# Report the --help message.
1311#
1312if test "$ac_init_help" = "long"; then
1313  # Omit some internal or obsolete options to make the list less imposing.
1314  # This message is too long to be a string in the A/UX 3.1 sh.
1315  cat <<_ACEOF
1316\`configure' configures xconsole 1.0.7 to adapt to many kinds of systems.
1317
1318Usage: $0 [OPTION]... [VAR=VALUE]...
1319
1320To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321VAR=VALUE.  See below for descriptions of some of the useful variables.
1322
1323Defaults for the options are specified in brackets.
1324
1325Configuration:
1326  -h, --help              display this help and exit
1327      --help=short        display options specific to this package
1328      --help=recursive    display the short help of all the included packages
1329  -V, --version           display version information and exit
1330  -q, --quiet, --silent   do not print \`checking ...' messages
1331      --cache-file=FILE   cache test results in FILE [disabled]
1332  -C, --config-cache      alias for \`--cache-file=config.cache'
1333  -n, --no-create         do not create output files
1334      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1335
1336Installation directories:
1337  --prefix=PREFIX         install architecture-independent files in PREFIX
1338                          [$ac_default_prefix]
1339  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1340                          [PREFIX]
1341
1342By default, \`make install' will install all the files in
1343\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1344an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345for instance \`--prefix=\$HOME'.
1346
1347For better control, use the options below.
1348
1349Fine tuning of the installation directories:
1350  --bindir=DIR            user executables [EPREFIX/bin]
1351  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1352  --libexecdir=DIR        program executables [EPREFIX/libexec]
1353  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1354  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1355  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1356  --libdir=DIR            object code libraries [EPREFIX/lib]
1357  --includedir=DIR        C header files [PREFIX/include]
1358  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1359  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1360  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1361  --infodir=DIR           info documentation [DATAROOTDIR/info]
1362  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1363  --mandir=DIR            man documentation [DATAROOTDIR/man]
1364  --docdir=DIR            documentation root [DATAROOTDIR/doc/xconsole]
1365  --htmldir=DIR           html documentation [DOCDIR]
1366  --dvidir=DIR            dvi documentation [DOCDIR]
1367  --pdfdir=DIR            pdf documentation [DOCDIR]
1368  --psdir=DIR             ps documentation [DOCDIR]
1369_ACEOF
1370
1371  cat <<\_ACEOF
1372
1373Program names:
1374  --program-prefix=PREFIX            prepend PREFIX to installed program names
1375  --program-suffix=SUFFIX            append SUFFIX to installed program names
1376  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1377
1378System types:
1379  --build=BUILD     configure for building on BUILD [guessed]
1380  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1381_ACEOF
1382fi
1383
1384if test -n "$ac_init_help"; then
1385  case $ac_init_help in
1386     short | recursive ) echo "Configuration of xconsole 1.0.7:";;
1387   esac
1388  cat <<\_ACEOF
1389
1390Optional Features:
1391  --disable-option-checking  ignore unrecognized --enable/--with options
1392  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1393  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1394  --enable-dependency-tracking
1395                          do not reject slow dependency extractors
1396  --disable-dependency-tracking
1397                          speeds up one-time build
1398  --enable-silent-rules   less verbose build output (undo: "make V=1")
1399  --disable-silent-rules  verbose build output (undo: "make V=0")
1400  --disable-selective-werror
1401                          Turn off selective compiler errors. (default:
1402                          enabled)
1403  --enable-strict-compilation
1404                          Enable all warnings from compiler and make them
1405                          errors (default: disabled)
1406
1407Optional Packages:
1408  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1409  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1410  --with-appdefaultdir=<pathname>
1411                          specify directory for app-defaults files (default is
1412                          autodetected)
1413
1414Some influential environment variables:
1415  CC          C compiler command
1416  CFLAGS      C compiler flags
1417  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1418              nonstandard directory <lib dir>
1419  LIBS        libraries to pass to the linker, e.g. -l<library>
1420  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1421              you have headers in a nonstandard directory <include dir>
1422  CPP         C preprocessor
1423  PKG_CONFIG  path to pkg-config utility
1424  PKG_CONFIG_PATH
1425              directories to add to pkg-config's search path
1426  PKG_CONFIG_LIBDIR
1427              path overriding pkg-config's built-in search path
1428  XCONSOLE_CFLAGS
1429              C compiler flags for XCONSOLE, overriding pkg-config
1430  XCONSOLE_LIBS
1431              linker flags for XCONSOLE, overriding pkg-config
1432  APPDEFS_CFLAGS
1433              C compiler flags for APPDEFS, overriding pkg-config
1434  APPDEFS_LIBS
1435              linker flags for APPDEFS, overriding pkg-config
1436
1437Use these variables to override the choices made by `configure' or to help
1438it to find libraries and programs with nonstandard names/locations.
1439
1440Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1441_ACEOF
1442ac_status=$?
1443fi
1444
1445if test "$ac_init_help" = "recursive"; then
1446  # If there are subdirs, report their specific --help.
1447  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1448    test -d "$ac_dir" ||
1449      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1450      continue
1451    ac_builddir=.
1452
1453case "$ac_dir" in
1454.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455*)
1456  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1457  # A ".." for each directory in $ac_dir_suffix.
1458  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1459  case $ac_top_builddir_sub in
1460  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1462  esac ;;
1463esac
1464ac_abs_top_builddir=$ac_pwd
1465ac_abs_builddir=$ac_pwd$ac_dir_suffix
1466# for backward compatibility:
1467ac_top_builddir=$ac_top_build_prefix
1468
1469case $srcdir in
1470  .)  # We are building in place.
1471    ac_srcdir=.
1472    ac_top_srcdir=$ac_top_builddir_sub
1473    ac_abs_top_srcdir=$ac_pwd ;;
1474  [\\/]* | ?:[\\/]* )  # Absolute name.
1475    ac_srcdir=$srcdir$ac_dir_suffix;
1476    ac_top_srcdir=$srcdir
1477    ac_abs_top_srcdir=$srcdir ;;
1478  *) # Relative name.
1479    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1480    ac_top_srcdir=$ac_top_build_prefix$srcdir
1481    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1482esac
1483ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1484
1485    cd "$ac_dir" || { ac_status=$?; continue; }
1486    # Check for guested configure.
1487    if test -f "$ac_srcdir/configure.gnu"; then
1488      echo &&
1489      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1490    elif test -f "$ac_srcdir/configure"; then
1491      echo &&
1492      $SHELL "$ac_srcdir/configure" --help=recursive
1493    else
1494      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1495    fi || ac_status=$?
1496    cd "$ac_pwd" || { ac_status=$?; break; }
1497  done
1498fi
1499
1500test -n "$ac_init_help" && exit $ac_status
1501if $ac_init_version; then
1502  cat <<\_ACEOF
1503xconsole configure 1.0.7
1504generated by GNU Autoconf 2.69
1505
1506Copyright (C) 2012 Free Software Foundation, Inc.
1507This configure script is free software; the Free Software Foundation
1508gives unlimited permission to copy, distribute and modify it.
1509_ACEOF
1510  exit
1511fi
1512
1513## ------------------------ ##
1514## Autoconf initialization. ##
1515## ------------------------ ##
1516
1517# ac_fn_c_try_compile LINENO
1518# --------------------------
1519# Try to compile conftest.$ac_ext, and return whether this succeeded.
1520ac_fn_c_try_compile ()
1521{
1522  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1523  rm -f conftest.$ac_objext
1524  if { { ac_try="$ac_compile"
1525case "(($ac_try" in
1526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1527  *) ac_try_echo=$ac_try;;
1528esac
1529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530$as_echo "$ac_try_echo"; } >&5
1531  (eval "$ac_compile") 2>conftest.err
1532  ac_status=$?
1533  if test -s conftest.err; then
1534    grep -v '^ *+' conftest.err >conftest.er1
1535    cat conftest.er1 >&5
1536    mv -f conftest.er1 conftest.err
1537  fi
1538  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539  test $ac_status = 0; } && {
1540	 test -z "$ac_c_werror_flag" ||
1541	 test ! -s conftest.err
1542       } && test -s conftest.$ac_objext; then :
1543  ac_retval=0
1544else
1545  $as_echo "$as_me: failed program was:" >&5
1546sed 's/^/| /' conftest.$ac_ext >&5
1547
1548	ac_retval=1
1549fi
1550  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1551  as_fn_set_status $ac_retval
1552
1553} # ac_fn_c_try_compile
1554
1555# ac_fn_c_try_cpp LINENO
1556# ----------------------
1557# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1558ac_fn_c_try_cpp ()
1559{
1560  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561  if { { ac_try="$ac_cpp conftest.$ac_ext"
1562case "(($ac_try" in
1563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564  *) ac_try_echo=$ac_try;;
1565esac
1566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567$as_echo "$ac_try_echo"; } >&5
1568  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1569  ac_status=$?
1570  if test -s conftest.err; then
1571    grep -v '^ *+' conftest.err >conftest.er1
1572    cat conftest.er1 >&5
1573    mv -f conftest.er1 conftest.err
1574  fi
1575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576  test $ac_status = 0; } > conftest.i && {
1577	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1578	 test ! -s conftest.err
1579       }; then :
1580  ac_retval=0
1581else
1582  $as_echo "$as_me: failed program was:" >&5
1583sed 's/^/| /' conftest.$ac_ext >&5
1584
1585    ac_retval=1
1586fi
1587  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588  as_fn_set_status $ac_retval
1589
1590} # ac_fn_c_try_cpp
1591
1592# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1593# -------------------------------------------------------
1594# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1595# the include files in INCLUDES and setting the cache variable VAR
1596# accordingly.
1597ac_fn_c_check_header_mongrel ()
1598{
1599  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600  if eval \${$3+:} false; then :
1601  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1602$as_echo_n "checking for $2... " >&6; }
1603if eval \${$3+:} false; then :
1604  $as_echo_n "(cached) " >&6
1605fi
1606eval ac_res=\$$3
1607	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1608$as_echo "$ac_res" >&6; }
1609else
1610  # Is the header compilable?
1611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1612$as_echo_n "checking $2 usability... " >&6; }
1613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1614/* end confdefs.h.  */
1615$4
1616#include <$2>
1617_ACEOF
1618if ac_fn_c_try_compile "$LINENO"; then :
1619  ac_header_compiler=yes
1620else
1621  ac_header_compiler=no
1622fi
1623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1625$as_echo "$ac_header_compiler" >&6; }
1626
1627# Is the header present?
1628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1629$as_echo_n "checking $2 presence... " >&6; }
1630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1631/* end confdefs.h.  */
1632#include <$2>
1633_ACEOF
1634if ac_fn_c_try_cpp "$LINENO"; then :
1635  ac_header_preproc=yes
1636else
1637  ac_header_preproc=no
1638fi
1639rm -f conftest.err conftest.i conftest.$ac_ext
1640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1641$as_echo "$ac_header_preproc" >&6; }
1642
1643# So?  What about this header?
1644case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1645  yes:no: )
1646    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1647$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1648    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1649$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1650    ;;
1651  no:yes:* )
1652    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1653$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1654    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1655$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1656    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1657$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1658    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1659$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1660    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1661$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1662( $as_echo "## ---------------------------------------------------------------------- ##
1663## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1664## ---------------------------------------------------------------------- ##"
1665     ) | sed "s/^/$as_me: WARNING:     /" >&2
1666    ;;
1667esac
1668  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669$as_echo_n "checking for $2... " >&6; }
1670if eval \${$3+:} false; then :
1671  $as_echo_n "(cached) " >&6
1672else
1673  eval "$3=\$ac_header_compiler"
1674fi
1675eval ac_res=\$$3
1676	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677$as_echo "$ac_res" >&6; }
1678fi
1679  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680
1681} # ac_fn_c_check_header_mongrel
1682
1683# ac_fn_c_try_run LINENO
1684# ----------------------
1685# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1686# that executables *can* be run.
1687ac_fn_c_try_run ()
1688{
1689  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690  if { { ac_try="$ac_link"
1691case "(($ac_try" in
1692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693  *) ac_try_echo=$ac_try;;
1694esac
1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696$as_echo "$ac_try_echo"; } >&5
1697  (eval "$ac_link") 2>&5
1698  ac_status=$?
1699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1701  { { case "(($ac_try" in
1702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703  *) ac_try_echo=$ac_try;;
1704esac
1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706$as_echo "$ac_try_echo"; } >&5
1707  (eval "$ac_try") 2>&5
1708  ac_status=$?
1709  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710  test $ac_status = 0; }; }; then :
1711  ac_retval=0
1712else
1713  $as_echo "$as_me: program exited with status $ac_status" >&5
1714       $as_echo "$as_me: failed program was:" >&5
1715sed 's/^/| /' conftest.$ac_ext >&5
1716
1717       ac_retval=$ac_status
1718fi
1719  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721  as_fn_set_status $ac_retval
1722
1723} # ac_fn_c_try_run
1724
1725# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1726# -------------------------------------------------------
1727# Tests whether HEADER exists and can be compiled using the include files in
1728# INCLUDES, setting the cache variable VAR accordingly.
1729ac_fn_c_check_header_compile ()
1730{
1731  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733$as_echo_n "checking for $2... " >&6; }
1734if eval \${$3+:} false; then :
1735  $as_echo_n "(cached) " >&6
1736else
1737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738/* end confdefs.h.  */
1739$4
1740#include <$2>
1741_ACEOF
1742if ac_fn_c_try_compile "$LINENO"; then :
1743  eval "$3=yes"
1744else
1745  eval "$3=no"
1746fi
1747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1748fi
1749eval ac_res=\$$3
1750	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751$as_echo "$ac_res" >&6; }
1752  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753
1754} # ac_fn_c_check_header_compile
1755
1756# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1757# ---------------------------------------------
1758# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1759# accordingly.
1760ac_fn_c_check_decl ()
1761{
1762  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763  as_decl_name=`echo $2|sed 's/ *(.*//'`
1764  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1765  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1766$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1767if eval \${$3+:} false; then :
1768  $as_echo_n "(cached) " >&6
1769else
1770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771/* end confdefs.h.  */
1772$4
1773int
1774main ()
1775{
1776#ifndef $as_decl_name
1777#ifdef __cplusplus
1778  (void) $as_decl_use;
1779#else
1780  (void) $as_decl_name;
1781#endif
1782#endif
1783
1784  ;
1785  return 0;
1786}
1787_ACEOF
1788if ac_fn_c_try_compile "$LINENO"; then :
1789  eval "$3=yes"
1790else
1791  eval "$3=no"
1792fi
1793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794fi
1795eval ac_res=\$$3
1796	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797$as_echo "$ac_res" >&6; }
1798  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799
1800} # ac_fn_c_check_decl
1801
1802# ac_fn_c_try_link LINENO
1803# -----------------------
1804# Try to link conftest.$ac_ext, and return whether this succeeded.
1805ac_fn_c_try_link ()
1806{
1807  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808  rm -f conftest.$ac_objext conftest$ac_exeext
1809  if { { ac_try="$ac_link"
1810case "(($ac_try" in
1811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812  *) ac_try_echo=$ac_try;;
1813esac
1814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815$as_echo "$ac_try_echo"; } >&5
1816  (eval "$ac_link") 2>conftest.err
1817  ac_status=$?
1818  if test -s conftest.err; then
1819    grep -v '^ *+' conftest.err >conftest.er1
1820    cat conftest.er1 >&5
1821    mv -f conftest.er1 conftest.err
1822  fi
1823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824  test $ac_status = 0; } && {
1825	 test -z "$ac_c_werror_flag" ||
1826	 test ! -s conftest.err
1827       } && test -s conftest$ac_exeext && {
1828	 test "$cross_compiling" = yes ||
1829	 test -x conftest$ac_exeext
1830       }; then :
1831  ac_retval=0
1832else
1833  $as_echo "$as_me: failed program was:" >&5
1834sed 's/^/| /' conftest.$ac_ext >&5
1835
1836	ac_retval=1
1837fi
1838  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1839  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1840  # interfere with the next link command; also delete a directory that is
1841  # left behind by Apple's compiler.  We do this before executing the actions.
1842  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1843  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844  as_fn_set_status $ac_retval
1845
1846} # ac_fn_c_try_link
1847
1848# ac_fn_c_check_func LINENO FUNC VAR
1849# ----------------------------------
1850# Tests whether FUNC exists, setting the cache variable VAR accordingly
1851ac_fn_c_check_func ()
1852{
1853  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1855$as_echo_n "checking for $2... " >&6; }
1856if eval \${$3+:} false; then :
1857  $as_echo_n "(cached) " >&6
1858else
1859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860/* end confdefs.h.  */
1861/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1862   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1863#define $2 innocuous_$2
1864
1865/* System header to define __stub macros and hopefully few prototypes,
1866    which can conflict with char $2 (); below.
1867    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1868    <limits.h> exists even on freestanding compilers.  */
1869
1870#ifdef __STDC__
1871# include <limits.h>
1872#else
1873# include <assert.h>
1874#endif
1875
1876#undef $2
1877
1878/* Override any GCC internal prototype to avoid an error.
1879   Use char because int might match the return type of a GCC
1880   builtin and then its argument prototype would still apply.  */
1881#ifdef __cplusplus
1882extern "C"
1883#endif
1884char $2 ();
1885/* The GNU C library defines this for functions which it implements
1886    to always fail with ENOSYS.  Some functions are actually named
1887    something starting with __ and the normal name is an alias.  */
1888#if defined __stub_$2 || defined __stub___$2
1889choke me
1890#endif
1891
1892int
1893main ()
1894{
1895return $2 ();
1896  ;
1897  return 0;
1898}
1899_ACEOF
1900if ac_fn_c_try_link "$LINENO"; then :
1901  eval "$3=yes"
1902else
1903  eval "$3=no"
1904fi
1905rm -f core conftest.err conftest.$ac_objext \
1906    conftest$ac_exeext conftest.$ac_ext
1907fi
1908eval ac_res=\$$3
1909	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1910$as_echo "$ac_res" >&6; }
1911  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912
1913} # ac_fn_c_check_func
1914cat >config.log <<_ACEOF
1915This file contains any messages produced by compilers while
1916running configure, to aid debugging if configure makes a mistake.
1917
1918It was created by xconsole $as_me 1.0.7, which was
1919generated by GNU Autoconf 2.69.  Invocation command line was
1920
1921  $ $0 $@
1922
1923_ACEOF
1924exec 5>>config.log
1925{
1926cat <<_ASUNAME
1927## --------- ##
1928## Platform. ##
1929## --------- ##
1930
1931hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1932uname -m = `(uname -m) 2>/dev/null || echo unknown`
1933uname -r = `(uname -r) 2>/dev/null || echo unknown`
1934uname -s = `(uname -s) 2>/dev/null || echo unknown`
1935uname -v = `(uname -v) 2>/dev/null || echo unknown`
1936
1937/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1938/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1939
1940/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1941/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1942/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1943/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1944/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1945/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1946/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1947
1948_ASUNAME
1949
1950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951for as_dir in $PATH
1952do
1953  IFS=$as_save_IFS
1954  test -z "$as_dir" && as_dir=.
1955    $as_echo "PATH: $as_dir"
1956  done
1957IFS=$as_save_IFS
1958
1959} >&5
1960
1961cat >&5 <<_ACEOF
1962
1963
1964## ----------- ##
1965## Core tests. ##
1966## ----------- ##
1967
1968_ACEOF
1969
1970
1971# Keep a trace of the command line.
1972# Strip out --no-create and --no-recursion so they do not pile up.
1973# Strip out --silent because we don't want to record it for future runs.
1974# Also quote any args containing shell meta-characters.
1975# Make two passes to allow for proper duplicate-argument suppression.
1976ac_configure_args=
1977ac_configure_args0=
1978ac_configure_args1=
1979ac_must_keep_next=false
1980for ac_pass in 1 2
1981do
1982  for ac_arg
1983  do
1984    case $ac_arg in
1985    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1986    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1987    | -silent | --silent | --silen | --sile | --sil)
1988      continue ;;
1989    *\'*)
1990      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1991    esac
1992    case $ac_pass in
1993    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1994    2)
1995      as_fn_append ac_configure_args1 " '$ac_arg'"
1996      if test $ac_must_keep_next = true; then
1997	ac_must_keep_next=false # Got value, back to normal.
1998      else
1999	case $ac_arg in
2000	  *=* | --config-cache | -C | -disable-* | --disable-* \
2001	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2002	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2003	  | -with-* | --with-* | -without-* | --without-* | --x)
2004	    case "$ac_configure_args0 " in
2005	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2006	    esac
2007	    ;;
2008	  -* ) ac_must_keep_next=true ;;
2009	esac
2010      fi
2011      as_fn_append ac_configure_args " '$ac_arg'"
2012      ;;
2013    esac
2014  done
2015done
2016{ ac_configure_args0=; unset ac_configure_args0;}
2017{ ac_configure_args1=; unset ac_configure_args1;}
2018
2019# When interrupted or exit'd, cleanup temporary files, and complete
2020# config.log.  We remove comments because anyway the quotes in there
2021# would cause problems or look ugly.
2022# WARNING: Use '\'' to represent an apostrophe within the trap.
2023# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2024trap 'exit_status=$?
2025  # Save into config.log some information that might help in debugging.
2026  {
2027    echo
2028
2029    $as_echo "## ---------------- ##
2030## Cache variables. ##
2031## ---------------- ##"
2032    echo
2033    # The following way of writing the cache mishandles newlines in values,
2034(
2035  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2036    eval ac_val=\$$ac_var
2037    case $ac_val in #(
2038    *${as_nl}*)
2039      case $ac_var in #(
2040      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2041$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2042      esac
2043      case $ac_var in #(
2044      _ | IFS | as_nl) ;; #(
2045      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2046      *) { eval $ac_var=; unset $ac_var;} ;;
2047      esac ;;
2048    esac
2049  done
2050  (set) 2>&1 |
2051    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2052    *${as_nl}ac_space=\ *)
2053      sed -n \
2054	"s/'\''/'\''\\\\'\'''\''/g;
2055	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2056      ;; #(
2057    *)
2058      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2059      ;;
2060    esac |
2061    sort
2062)
2063    echo
2064
2065    $as_echo "## ----------------- ##
2066## Output variables. ##
2067## ----------------- ##"
2068    echo
2069    for ac_var in $ac_subst_vars
2070    do
2071      eval ac_val=\$$ac_var
2072      case $ac_val in
2073      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2074      esac
2075      $as_echo "$ac_var='\''$ac_val'\''"
2076    done | sort
2077    echo
2078
2079    if test -n "$ac_subst_files"; then
2080      $as_echo "## ------------------- ##
2081## File substitutions. ##
2082## ------------------- ##"
2083      echo
2084      for ac_var in $ac_subst_files
2085      do
2086	eval ac_val=\$$ac_var
2087	case $ac_val in
2088	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2089	esac
2090	$as_echo "$ac_var='\''$ac_val'\''"
2091      done | sort
2092      echo
2093    fi
2094
2095    if test -s confdefs.h; then
2096      $as_echo "## ----------- ##
2097## confdefs.h. ##
2098## ----------- ##"
2099      echo
2100      cat confdefs.h
2101      echo
2102    fi
2103    test "$ac_signal" != 0 &&
2104      $as_echo "$as_me: caught signal $ac_signal"
2105    $as_echo "$as_me: exit $exit_status"
2106  } >&5
2107  rm -f core *.core core.conftest.* &&
2108    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2109    exit $exit_status
2110' 0
2111for ac_signal in 1 2 13 15; do
2112  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2113done
2114ac_signal=0
2115
2116# confdefs.h avoids OS command line length limits that DEFS can exceed.
2117rm -f -r conftest* confdefs.h
2118
2119$as_echo "/* confdefs.h */" > confdefs.h
2120
2121# Predefined preprocessor variables.
2122
2123cat >>confdefs.h <<_ACEOF
2124#define PACKAGE_NAME "$PACKAGE_NAME"
2125_ACEOF
2126
2127cat >>confdefs.h <<_ACEOF
2128#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2129_ACEOF
2130
2131cat >>confdefs.h <<_ACEOF
2132#define PACKAGE_VERSION "$PACKAGE_VERSION"
2133_ACEOF
2134
2135cat >>confdefs.h <<_ACEOF
2136#define PACKAGE_STRING "$PACKAGE_STRING"
2137_ACEOF
2138
2139cat >>confdefs.h <<_ACEOF
2140#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2141_ACEOF
2142
2143cat >>confdefs.h <<_ACEOF
2144#define PACKAGE_URL "$PACKAGE_URL"
2145_ACEOF
2146
2147
2148# Let the site file select an alternate cache file if it wants to.
2149# Prefer an explicitly selected file to automatically selected ones.
2150ac_site_file1=NONE
2151ac_site_file2=NONE
2152if test -n "$CONFIG_SITE"; then
2153  # We do not want a PATH search for config.site.
2154  case $CONFIG_SITE in #((
2155    -*)  ac_site_file1=./$CONFIG_SITE;;
2156    */*) ac_site_file1=$CONFIG_SITE;;
2157    *)   ac_site_file1=./$CONFIG_SITE;;
2158  esac
2159elif test "x$prefix" != xNONE; then
2160  ac_site_file1=$prefix/share/config.site
2161  ac_site_file2=$prefix/etc/config.site
2162else
2163  ac_site_file1=$ac_default_prefix/share/config.site
2164  ac_site_file2=$ac_default_prefix/etc/config.site
2165fi
2166for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2167do
2168  test "x$ac_site_file" = xNONE && continue
2169  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2170    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2171$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2172    sed 's/^/| /' "$ac_site_file" >&5
2173    . "$ac_site_file" \
2174      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2176as_fn_error $? "failed to load site script $ac_site_file
2177See \`config.log' for more details" "$LINENO" 5; }
2178  fi
2179done
2180
2181if test -r "$cache_file"; then
2182  # Some versions of bash will fail to source /dev/null (special files
2183  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2184  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2185    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2186$as_echo "$as_me: loading cache $cache_file" >&6;}
2187    case $cache_file in
2188      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2189      *)                      . "./$cache_file";;
2190    esac
2191  fi
2192else
2193  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2194$as_echo "$as_me: creating cache $cache_file" >&6;}
2195  >$cache_file
2196fi
2197
2198# Check that the precious variables saved in the cache have kept the same
2199# value.
2200ac_cache_corrupted=false
2201for ac_var in $ac_precious_vars; do
2202  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2203  eval ac_new_set=\$ac_env_${ac_var}_set
2204  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2205  eval ac_new_val=\$ac_env_${ac_var}_value
2206  case $ac_old_set,$ac_new_set in
2207    set,)
2208      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2209$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2210      ac_cache_corrupted=: ;;
2211    ,set)
2212      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2213$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2214      ac_cache_corrupted=: ;;
2215    ,);;
2216    *)
2217      if test "x$ac_old_val" != "x$ac_new_val"; then
2218	# differences in whitespace do not lead to failure.
2219	ac_old_val_w=`echo x $ac_old_val`
2220	ac_new_val_w=`echo x $ac_new_val`
2221	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2222	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2223$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2224	  ac_cache_corrupted=:
2225	else
2226	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2227$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2228	  eval $ac_var=\$ac_old_val
2229	fi
2230	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2231$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2232	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2233$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2234      fi;;
2235  esac
2236  # Pass precious variables to config.status.
2237  if test "$ac_new_set" = set; then
2238    case $ac_new_val in
2239    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2240    *) ac_arg=$ac_var=$ac_new_val ;;
2241    esac
2242    case " $ac_configure_args " in
2243      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2244      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2245    esac
2246  fi
2247done
2248if $ac_cache_corrupted; then
2249  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2250$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2251  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2252$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2253  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2254fi
2255## -------------------- ##
2256## Main body of script. ##
2257## -------------------- ##
2258
2259ac_ext=c
2260ac_cpp='$CPP $CPPFLAGS'
2261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2263ac_compiler_gnu=$ac_cv_c_compiler_gnu
2264
2265
2266
2267ac_config_headers="$ac_config_headers config.h"
2268
2269ac_aux_dir=
2270for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2271  if test -f "$ac_dir/install-sh"; then
2272    ac_aux_dir=$ac_dir
2273    ac_install_sh="$ac_aux_dir/install-sh -c"
2274    break
2275  elif test -f "$ac_dir/install.sh"; then
2276    ac_aux_dir=$ac_dir
2277    ac_install_sh="$ac_aux_dir/install.sh -c"
2278    break
2279  elif test -f "$ac_dir/shtool"; then
2280    ac_aux_dir=$ac_dir
2281    ac_install_sh="$ac_aux_dir/shtool install -c"
2282    break
2283  fi
2284done
2285if test -z "$ac_aux_dir"; then
2286  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2287fi
2288
2289# These three variables are undocumented and unsupported,
2290# and are intended to be withdrawn in a future Autoconf release.
2291# They can cause serious problems if a builder's source tree is in a directory
2292# whose full name contains unusual characters.
2293ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2294ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2295ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2296
2297
2298# Expand $ac_aux_dir to an absolute path.
2299am_aux_dir=`cd "$ac_aux_dir" && pwd`
2300
2301ac_ext=c
2302ac_cpp='$CPP $CPPFLAGS'
2303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2305ac_compiler_gnu=$ac_cv_c_compiler_gnu
2306if test -n "$ac_tool_prefix"; then
2307  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2308set dummy ${ac_tool_prefix}gcc; ac_word=$2
2309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2310$as_echo_n "checking for $ac_word... " >&6; }
2311if ${ac_cv_prog_CC+:} false; then :
2312  $as_echo_n "(cached) " >&6
2313else
2314  if test -n "$CC"; then
2315  ac_cv_prog_CC="$CC" # Let the user override the test.
2316else
2317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318for as_dir in $PATH
2319do
2320  IFS=$as_save_IFS
2321  test -z "$as_dir" && as_dir=.
2322    for ac_exec_ext in '' $ac_executable_extensions; do
2323  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2324    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2325    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2326    break 2
2327  fi
2328done
2329  done
2330IFS=$as_save_IFS
2331
2332fi
2333fi
2334CC=$ac_cv_prog_CC
2335if test -n "$CC"; then
2336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2337$as_echo "$CC" >&6; }
2338else
2339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2340$as_echo "no" >&6; }
2341fi
2342
2343
2344fi
2345if test -z "$ac_cv_prog_CC"; then
2346  ac_ct_CC=$CC
2347  # Extract the first word of "gcc", so it can be a program name with args.
2348set dummy gcc; ac_word=$2
2349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2350$as_echo_n "checking for $ac_word... " >&6; }
2351if ${ac_cv_prog_ac_ct_CC+:} false; then :
2352  $as_echo_n "(cached) " >&6
2353else
2354  if test -n "$ac_ct_CC"; then
2355  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2356else
2357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358for as_dir in $PATH
2359do
2360  IFS=$as_save_IFS
2361  test -z "$as_dir" && as_dir=.
2362    for ac_exec_ext in '' $ac_executable_extensions; do
2363  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2364    ac_cv_prog_ac_ct_CC="gcc"
2365    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2366    break 2
2367  fi
2368done
2369  done
2370IFS=$as_save_IFS
2371
2372fi
2373fi
2374ac_ct_CC=$ac_cv_prog_ac_ct_CC
2375if test -n "$ac_ct_CC"; then
2376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2377$as_echo "$ac_ct_CC" >&6; }
2378else
2379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2380$as_echo "no" >&6; }
2381fi
2382
2383  if test "x$ac_ct_CC" = x; then
2384    CC=""
2385  else
2386    case $cross_compiling:$ac_tool_warned in
2387yes:)
2388{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2389$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2390ac_tool_warned=yes ;;
2391esac
2392    CC=$ac_ct_CC
2393  fi
2394else
2395  CC="$ac_cv_prog_CC"
2396fi
2397
2398if test -z "$CC"; then
2399          if test -n "$ac_tool_prefix"; then
2400    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2401set dummy ${ac_tool_prefix}cc; ac_word=$2
2402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2403$as_echo_n "checking for $ac_word... " >&6; }
2404if ${ac_cv_prog_CC+:} false; then :
2405  $as_echo_n "(cached) " >&6
2406else
2407  if test -n "$CC"; then
2408  ac_cv_prog_CC="$CC" # Let the user override the test.
2409else
2410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411for as_dir in $PATH
2412do
2413  IFS=$as_save_IFS
2414  test -z "$as_dir" && as_dir=.
2415    for ac_exec_ext in '' $ac_executable_extensions; do
2416  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2417    ac_cv_prog_CC="${ac_tool_prefix}cc"
2418    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2419    break 2
2420  fi
2421done
2422  done
2423IFS=$as_save_IFS
2424
2425fi
2426fi
2427CC=$ac_cv_prog_CC
2428if test -n "$CC"; then
2429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2430$as_echo "$CC" >&6; }
2431else
2432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2433$as_echo "no" >&6; }
2434fi
2435
2436
2437  fi
2438fi
2439if test -z "$CC"; then
2440  # Extract the first word of "cc", so it can be a program name with args.
2441set dummy cc; ac_word=$2
2442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2443$as_echo_n "checking for $ac_word... " >&6; }
2444if ${ac_cv_prog_CC+:} false; then :
2445  $as_echo_n "(cached) " >&6
2446else
2447  if test -n "$CC"; then
2448  ac_cv_prog_CC="$CC" # Let the user override the test.
2449else
2450  ac_prog_rejected=no
2451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452for as_dir in $PATH
2453do
2454  IFS=$as_save_IFS
2455  test -z "$as_dir" && as_dir=.
2456    for ac_exec_ext in '' $ac_executable_extensions; do
2457  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2458    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2459       ac_prog_rejected=yes
2460       continue
2461     fi
2462    ac_cv_prog_CC="cc"
2463    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2464    break 2
2465  fi
2466done
2467  done
2468IFS=$as_save_IFS
2469
2470if test $ac_prog_rejected = yes; then
2471  # We found a bogon in the path, so make sure we never use it.
2472  set dummy $ac_cv_prog_CC
2473  shift
2474  if test $# != 0; then
2475    # We chose a different compiler from the bogus one.
2476    # However, it has the same basename, so the bogon will be chosen
2477    # first if we set CC to just the basename; use the full file name.
2478    shift
2479    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2480  fi
2481fi
2482fi
2483fi
2484CC=$ac_cv_prog_CC
2485if test -n "$CC"; then
2486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2487$as_echo "$CC" >&6; }
2488else
2489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2490$as_echo "no" >&6; }
2491fi
2492
2493
2494fi
2495if test -z "$CC"; then
2496  if test -n "$ac_tool_prefix"; then
2497  for ac_prog in cl.exe
2498  do
2499    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2500set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2502$as_echo_n "checking for $ac_word... " >&6; }
2503if ${ac_cv_prog_CC+:} false; then :
2504  $as_echo_n "(cached) " >&6
2505else
2506  if test -n "$CC"; then
2507  ac_cv_prog_CC="$CC" # Let the user override the test.
2508else
2509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510for as_dir in $PATH
2511do
2512  IFS=$as_save_IFS
2513  test -z "$as_dir" && as_dir=.
2514    for ac_exec_ext in '' $ac_executable_extensions; do
2515  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2516    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2517    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2518    break 2
2519  fi
2520done
2521  done
2522IFS=$as_save_IFS
2523
2524fi
2525fi
2526CC=$ac_cv_prog_CC
2527if test -n "$CC"; then
2528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2529$as_echo "$CC" >&6; }
2530else
2531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2532$as_echo "no" >&6; }
2533fi
2534
2535
2536    test -n "$CC" && break
2537  done
2538fi
2539if test -z "$CC"; then
2540  ac_ct_CC=$CC
2541  for ac_prog in cl.exe
2542do
2543  # Extract the first word of "$ac_prog", so it can be a program name with args.
2544set dummy $ac_prog; ac_word=$2
2545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2546$as_echo_n "checking for $ac_word... " >&6; }
2547if ${ac_cv_prog_ac_ct_CC+:} false; then :
2548  $as_echo_n "(cached) " >&6
2549else
2550  if test -n "$ac_ct_CC"; then
2551  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2552else
2553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2554for as_dir in $PATH
2555do
2556  IFS=$as_save_IFS
2557  test -z "$as_dir" && as_dir=.
2558    for ac_exec_ext in '' $ac_executable_extensions; do
2559  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2560    ac_cv_prog_ac_ct_CC="$ac_prog"
2561    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2562    break 2
2563  fi
2564done
2565  done
2566IFS=$as_save_IFS
2567
2568fi
2569fi
2570ac_ct_CC=$ac_cv_prog_ac_ct_CC
2571if test -n "$ac_ct_CC"; then
2572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2573$as_echo "$ac_ct_CC" >&6; }
2574else
2575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2576$as_echo "no" >&6; }
2577fi
2578
2579
2580  test -n "$ac_ct_CC" && break
2581done
2582
2583  if test "x$ac_ct_CC" = x; then
2584    CC=""
2585  else
2586    case $cross_compiling:$ac_tool_warned in
2587yes:)
2588{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2589$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2590ac_tool_warned=yes ;;
2591esac
2592    CC=$ac_ct_CC
2593  fi
2594fi
2595
2596fi
2597
2598
2599test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2601as_fn_error $? "no acceptable C compiler found in \$PATH
2602See \`config.log' for more details" "$LINENO" 5; }
2603
2604# Provide some information about the compiler.
2605$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2606set X $ac_compile
2607ac_compiler=$2
2608for ac_option in --version -v -V -qversion; do
2609  { { ac_try="$ac_compiler $ac_option >&5"
2610case "(($ac_try" in
2611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612  *) ac_try_echo=$ac_try;;
2613esac
2614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2615$as_echo "$ac_try_echo"; } >&5
2616  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2617  ac_status=$?
2618  if test -s conftest.err; then
2619    sed '10a\
2620... rest of stderr output deleted ...
2621         10q' conftest.err >conftest.er1
2622    cat conftest.er1 >&5
2623  fi
2624  rm -f conftest.er1 conftest.err
2625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2626  test $ac_status = 0; }
2627done
2628
2629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2630/* end confdefs.h.  */
2631
2632int
2633main ()
2634{
2635
2636  ;
2637  return 0;
2638}
2639_ACEOF
2640ac_clean_files_save=$ac_clean_files
2641ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2642# Try to create an executable without -o first, disregard a.out.
2643# It will help us diagnose broken compilers, and finding out an intuition
2644# of exeext.
2645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2646$as_echo_n "checking whether the C compiler works... " >&6; }
2647ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2648
2649# The possible output files:
2650ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2651
2652ac_rmfiles=
2653for ac_file in $ac_files
2654do
2655  case $ac_file in
2656    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2657    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2658  esac
2659done
2660rm -f $ac_rmfiles
2661
2662if { { ac_try="$ac_link_default"
2663case "(($ac_try" in
2664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665  *) ac_try_echo=$ac_try;;
2666esac
2667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2668$as_echo "$ac_try_echo"; } >&5
2669  (eval "$ac_link_default") 2>&5
2670  ac_status=$?
2671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2672  test $ac_status = 0; }; then :
2673  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2674# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2675# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2676# so that the user can short-circuit this test for compilers unknown to
2677# Autoconf.
2678for ac_file in $ac_files ''
2679do
2680  test -f "$ac_file" || continue
2681  case $ac_file in
2682    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2683	;;
2684    [ab].out )
2685	# We found the default executable, but exeext='' is most
2686	# certainly right.
2687	break;;
2688    *.* )
2689	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2690	then :; else
2691	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2692	fi
2693	# We set ac_cv_exeext here because the later test for it is not
2694	# safe: cross compilers may not add the suffix if given an `-o'
2695	# argument, so we may need to know it at that point already.
2696	# Even if this section looks crufty: it has the advantage of
2697	# actually working.
2698	break;;
2699    * )
2700	break;;
2701  esac
2702done
2703test "$ac_cv_exeext" = no && ac_cv_exeext=
2704
2705else
2706  ac_file=''
2707fi
2708if test -z "$ac_file"; then :
2709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2710$as_echo "no" >&6; }
2711$as_echo "$as_me: failed program was:" >&5
2712sed 's/^/| /' conftest.$ac_ext >&5
2713
2714{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2715$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2716as_fn_error 77 "C compiler cannot create executables
2717See \`config.log' for more details" "$LINENO" 5; }
2718else
2719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2720$as_echo "yes" >&6; }
2721fi
2722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2723$as_echo_n "checking for C compiler default output file name... " >&6; }
2724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2725$as_echo "$ac_file" >&6; }
2726ac_exeext=$ac_cv_exeext
2727
2728rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2729ac_clean_files=$ac_clean_files_save
2730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2731$as_echo_n "checking for suffix of executables... " >&6; }
2732if { { ac_try="$ac_link"
2733case "(($ac_try" in
2734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735  *) ac_try_echo=$ac_try;;
2736esac
2737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2738$as_echo "$ac_try_echo"; } >&5
2739  (eval "$ac_link") 2>&5
2740  ac_status=$?
2741  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2742  test $ac_status = 0; }; then :
2743  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2744# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2745# work properly (i.e., refer to `conftest.exe'), while it won't with
2746# `rm'.
2747for ac_file in conftest.exe conftest conftest.*; do
2748  test -f "$ac_file" || continue
2749  case $ac_file in
2750    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2751    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2752	  break;;
2753    * ) break;;
2754  esac
2755done
2756else
2757  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2758$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2759as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2760See \`config.log' for more details" "$LINENO" 5; }
2761fi
2762rm -f conftest conftest$ac_cv_exeext
2763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2764$as_echo "$ac_cv_exeext" >&6; }
2765
2766rm -f conftest.$ac_ext
2767EXEEXT=$ac_cv_exeext
2768ac_exeext=$EXEEXT
2769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2770/* end confdefs.h.  */
2771#include <stdio.h>
2772int
2773main ()
2774{
2775FILE *f = fopen ("conftest.out", "w");
2776 return ferror (f) || fclose (f) != 0;
2777
2778  ;
2779  return 0;
2780}
2781_ACEOF
2782ac_clean_files="$ac_clean_files conftest.out"
2783# Check that the compiler produces executables we can run.  If not, either
2784# the compiler is broken, or we cross compile.
2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2786$as_echo_n "checking whether we are cross compiling... " >&6; }
2787if test "$cross_compiling" != yes; then
2788  { { ac_try="$ac_link"
2789case "(($ac_try" in
2790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2791  *) ac_try_echo=$ac_try;;
2792esac
2793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2794$as_echo "$ac_try_echo"; } >&5
2795  (eval "$ac_link") 2>&5
2796  ac_status=$?
2797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2798  test $ac_status = 0; }
2799  if { ac_try='./conftest$ac_cv_exeext'
2800  { { case "(($ac_try" in
2801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2802  *) ac_try_echo=$ac_try;;
2803esac
2804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2805$as_echo "$ac_try_echo"; } >&5
2806  (eval "$ac_try") 2>&5
2807  ac_status=$?
2808  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2809  test $ac_status = 0; }; }; then
2810    cross_compiling=no
2811  else
2812    if test "$cross_compiling" = maybe; then
2813	cross_compiling=yes
2814    else
2815	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2816$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2817as_fn_error $? "cannot run C compiled programs.
2818If you meant to cross compile, use \`--host'.
2819See \`config.log' for more details" "$LINENO" 5; }
2820    fi
2821  fi
2822fi
2823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2824$as_echo "$cross_compiling" >&6; }
2825
2826rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2827ac_clean_files=$ac_clean_files_save
2828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2829$as_echo_n "checking for suffix of object files... " >&6; }
2830if ${ac_cv_objext+:} false; then :
2831  $as_echo_n "(cached) " >&6
2832else
2833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2834/* end confdefs.h.  */
2835
2836int
2837main ()
2838{
2839
2840  ;
2841  return 0;
2842}
2843_ACEOF
2844rm -f conftest.o conftest.obj
2845if { { ac_try="$ac_compile"
2846case "(($ac_try" in
2847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848  *) ac_try_echo=$ac_try;;
2849esac
2850eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2851$as_echo "$ac_try_echo"; } >&5
2852  (eval "$ac_compile") 2>&5
2853  ac_status=$?
2854  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2855  test $ac_status = 0; }; then :
2856  for ac_file in conftest.o conftest.obj conftest.*; do
2857  test -f "$ac_file" || continue;
2858  case $ac_file in
2859    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2860    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2861       break;;
2862  esac
2863done
2864else
2865  $as_echo "$as_me: failed program was:" >&5
2866sed 's/^/| /' conftest.$ac_ext >&5
2867
2868{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2869$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2870as_fn_error $? "cannot compute suffix of object files: cannot compile
2871See \`config.log' for more details" "$LINENO" 5; }
2872fi
2873rm -f conftest.$ac_cv_objext conftest.$ac_ext
2874fi
2875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2876$as_echo "$ac_cv_objext" >&6; }
2877OBJEXT=$ac_cv_objext
2878ac_objext=$OBJEXT
2879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2880$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2881if ${ac_cv_c_compiler_gnu+:} false; then :
2882  $as_echo_n "(cached) " >&6
2883else
2884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2885/* end confdefs.h.  */
2886
2887int
2888main ()
2889{
2890#ifndef __GNUC__
2891       choke me
2892#endif
2893
2894  ;
2895  return 0;
2896}
2897_ACEOF
2898if ac_fn_c_try_compile "$LINENO"; then :
2899  ac_compiler_gnu=yes
2900else
2901  ac_compiler_gnu=no
2902fi
2903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2904ac_cv_c_compiler_gnu=$ac_compiler_gnu
2905
2906fi
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2908$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2909if test $ac_compiler_gnu = yes; then
2910  GCC=yes
2911else
2912  GCC=
2913fi
2914ac_test_CFLAGS=${CFLAGS+set}
2915ac_save_CFLAGS=$CFLAGS
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2917$as_echo_n "checking whether $CC accepts -g... " >&6; }
2918if ${ac_cv_prog_cc_g+:} false; then :
2919  $as_echo_n "(cached) " >&6
2920else
2921  ac_save_c_werror_flag=$ac_c_werror_flag
2922   ac_c_werror_flag=yes
2923   ac_cv_prog_cc_g=no
2924   CFLAGS="-g"
2925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2926/* end confdefs.h.  */
2927
2928int
2929main ()
2930{
2931
2932  ;
2933  return 0;
2934}
2935_ACEOF
2936if ac_fn_c_try_compile "$LINENO"; then :
2937  ac_cv_prog_cc_g=yes
2938else
2939  CFLAGS=""
2940      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2941/* end confdefs.h.  */
2942
2943int
2944main ()
2945{
2946
2947  ;
2948  return 0;
2949}
2950_ACEOF
2951if ac_fn_c_try_compile "$LINENO"; then :
2952
2953else
2954  ac_c_werror_flag=$ac_save_c_werror_flag
2955	 CFLAGS="-g"
2956	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2957/* end confdefs.h.  */
2958
2959int
2960main ()
2961{
2962
2963  ;
2964  return 0;
2965}
2966_ACEOF
2967if ac_fn_c_try_compile "$LINENO"; then :
2968  ac_cv_prog_cc_g=yes
2969fi
2970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2971fi
2972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973fi
2974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2975   ac_c_werror_flag=$ac_save_c_werror_flag
2976fi
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2978$as_echo "$ac_cv_prog_cc_g" >&6; }
2979if test "$ac_test_CFLAGS" = set; then
2980  CFLAGS=$ac_save_CFLAGS
2981elif test $ac_cv_prog_cc_g = yes; then
2982  if test "$GCC" = yes; then
2983    CFLAGS="-g -O2"
2984  else
2985    CFLAGS="-g"
2986  fi
2987else
2988  if test "$GCC" = yes; then
2989    CFLAGS="-O2"
2990  else
2991    CFLAGS=
2992  fi
2993fi
2994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2995$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2996if ${ac_cv_prog_cc_c89+:} false; then :
2997  $as_echo_n "(cached) " >&6
2998else
2999  ac_cv_prog_cc_c89=no
3000ac_save_CC=$CC
3001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3002/* end confdefs.h.  */
3003#include <stdarg.h>
3004#include <stdio.h>
3005struct stat;
3006/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3007struct buf { int x; };
3008FILE * (*rcsopen) (struct buf *, struct stat *, int);
3009static char *e (p, i)
3010     char **p;
3011     int i;
3012{
3013  return p[i];
3014}
3015static char *f (char * (*g) (char **, int), char **p, ...)
3016{
3017  char *s;
3018  va_list v;
3019  va_start (v,p);
3020  s = g (p, va_arg (v,int));
3021  va_end (v);
3022  return s;
3023}
3024
3025/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3026   function prototypes and stuff, but not '\xHH' hex character constants.
3027   These don't provoke an error unfortunately, instead are silently treated
3028   as 'x'.  The following induces an error, until -std is added to get
3029   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3030   array size at least.  It's necessary to write '\x00'==0 to get something
3031   that's true only with -std.  */
3032int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3033
3034/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3035   inside strings and character constants.  */
3036#define FOO(x) 'x'
3037int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3038
3039int test (int i, double x);
3040struct s1 {int (*f) (int a);};
3041struct s2 {int (*f) (double a);};
3042int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3043int argc;
3044char **argv;
3045int
3046main ()
3047{
3048return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3049  ;
3050  return 0;
3051}
3052_ACEOF
3053for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3054	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3055do
3056  CC="$ac_save_CC $ac_arg"
3057  if ac_fn_c_try_compile "$LINENO"; then :
3058  ac_cv_prog_cc_c89=$ac_arg
3059fi
3060rm -f core conftest.err conftest.$ac_objext
3061  test "x$ac_cv_prog_cc_c89" != "xno" && break
3062done
3063rm -f conftest.$ac_ext
3064CC=$ac_save_CC
3065
3066fi
3067# AC_CACHE_VAL
3068case "x$ac_cv_prog_cc_c89" in
3069  x)
3070    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3071$as_echo "none needed" >&6; } ;;
3072  xno)
3073    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3074$as_echo "unsupported" >&6; } ;;
3075  *)
3076    CC="$CC $ac_cv_prog_cc_c89"
3077    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3078$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3079esac
3080if test "x$ac_cv_prog_cc_c89" != xno; then :
3081
3082fi
3083
3084ac_ext=c
3085ac_cpp='$CPP $CPPFLAGS'
3086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3088ac_compiler_gnu=$ac_cv_c_compiler_gnu
3089
3090ac_ext=c
3091ac_cpp='$CPP $CPPFLAGS'
3092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3094ac_compiler_gnu=$ac_cv_c_compiler_gnu
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3096$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3097if ${am_cv_prog_cc_c_o+:} false; then :
3098  $as_echo_n "(cached) " >&6
3099else
3100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3101/* end confdefs.h.  */
3102
3103int
3104main ()
3105{
3106
3107  ;
3108  return 0;
3109}
3110_ACEOF
3111  # Make sure it works both with $CC and with simple cc.
3112  # Following AC_PROG_CC_C_O, we do the test twice because some
3113  # compilers refuse to overwrite an existing .o file with -o,
3114  # though they will create one.
3115  am_cv_prog_cc_c_o=yes
3116  for am_i in 1 2; do
3117    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3118   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3119   ac_status=$?
3120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121   (exit $ac_status); } \
3122         && test -f conftest2.$ac_objext; then
3123      : OK
3124    else
3125      am_cv_prog_cc_c_o=no
3126      break
3127    fi
3128  done
3129  rm -f core conftest*
3130  unset am_i
3131fi
3132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3133$as_echo "$am_cv_prog_cc_c_o" >&6; }
3134if test "$am_cv_prog_cc_c_o" != yes; then
3135   # Losing compiler, so override with the script.
3136   # FIXME: It is wrong to rewrite CC.
3137   # But if we don't then we get into trouble of one sort or another.
3138   # A longer-term fix would be to have automake use am__CC in this case,
3139   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3140   CC="$am_aux_dir/compile $CC"
3141fi
3142ac_ext=c
3143ac_cpp='$CPP $CPPFLAGS'
3144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3146ac_compiler_gnu=$ac_cv_c_compiler_gnu
3147
3148
3149
3150ac_ext=c
3151ac_cpp='$CPP $CPPFLAGS'
3152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3154ac_compiler_gnu=$ac_cv_c_compiler_gnu
3155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3156$as_echo_n "checking how to run the C preprocessor... " >&6; }
3157# On Suns, sometimes $CPP names a directory.
3158if test -n "$CPP" && test -d "$CPP"; then
3159  CPP=
3160fi
3161if test -z "$CPP"; then
3162  if ${ac_cv_prog_CPP+:} false; then :
3163  $as_echo_n "(cached) " >&6
3164else
3165      # Double quotes because CPP needs to be expanded
3166    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3167    do
3168      ac_preproc_ok=false
3169for ac_c_preproc_warn_flag in '' yes
3170do
3171  # Use a header file that comes with gcc, so configuring glibc
3172  # with a fresh cross-compiler works.
3173  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3174  # <limits.h> exists even on freestanding compilers.
3175  # On the NeXT, cc -E runs the code through the compiler's parser,
3176  # not just through cpp. "Syntax error" is here to catch this case.
3177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178/* end confdefs.h.  */
3179#ifdef __STDC__
3180# include <limits.h>
3181#else
3182# include <assert.h>
3183#endif
3184		     Syntax error
3185_ACEOF
3186if ac_fn_c_try_cpp "$LINENO"; then :
3187
3188else
3189  # Broken: fails on valid input.
3190continue
3191fi
3192rm -f conftest.err conftest.i conftest.$ac_ext
3193
3194  # OK, works on sane cases.  Now check whether nonexistent headers
3195  # can be detected and how.
3196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197/* end confdefs.h.  */
3198#include <ac_nonexistent.h>
3199_ACEOF
3200if ac_fn_c_try_cpp "$LINENO"; then :
3201  # Broken: success on invalid input.
3202continue
3203else
3204  # Passes both tests.
3205ac_preproc_ok=:
3206break
3207fi
3208rm -f conftest.err conftest.i conftest.$ac_ext
3209
3210done
3211# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3212rm -f conftest.i conftest.err conftest.$ac_ext
3213if $ac_preproc_ok; then :
3214  break
3215fi
3216
3217    done
3218    ac_cv_prog_CPP=$CPP
3219
3220fi
3221  CPP=$ac_cv_prog_CPP
3222else
3223  ac_cv_prog_CPP=$CPP
3224fi
3225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3226$as_echo "$CPP" >&6; }
3227ac_preproc_ok=false
3228for ac_c_preproc_warn_flag in '' yes
3229do
3230  # Use a header file that comes with gcc, so configuring glibc
3231  # with a fresh cross-compiler works.
3232  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3233  # <limits.h> exists even on freestanding compilers.
3234  # On the NeXT, cc -E runs the code through the compiler's parser,
3235  # not just through cpp. "Syntax error" is here to catch this case.
3236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3237/* end confdefs.h.  */
3238#ifdef __STDC__
3239# include <limits.h>
3240#else
3241# include <assert.h>
3242#endif
3243		     Syntax error
3244_ACEOF
3245if ac_fn_c_try_cpp "$LINENO"; then :
3246
3247else
3248  # Broken: fails on valid input.
3249continue
3250fi
3251rm -f conftest.err conftest.i conftest.$ac_ext
3252
3253  # OK, works on sane cases.  Now check whether nonexistent headers
3254  # can be detected and how.
3255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3256/* end confdefs.h.  */
3257#include <ac_nonexistent.h>
3258_ACEOF
3259if ac_fn_c_try_cpp "$LINENO"; then :
3260  # Broken: success on invalid input.
3261continue
3262else
3263  # Passes both tests.
3264ac_preproc_ok=:
3265break
3266fi
3267rm -f conftest.err conftest.i conftest.$ac_ext
3268
3269done
3270# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3271rm -f conftest.i conftest.err conftest.$ac_ext
3272if $ac_preproc_ok; then :
3273
3274else
3275  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3277as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3278See \`config.log' for more details" "$LINENO" 5; }
3279fi
3280
3281ac_ext=c
3282ac_cpp='$CPP $CPPFLAGS'
3283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3285ac_compiler_gnu=$ac_cv_c_compiler_gnu
3286
3287
3288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3289$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3290if ${ac_cv_path_GREP+:} false; then :
3291  $as_echo_n "(cached) " >&6
3292else
3293  if test -z "$GREP"; then
3294  ac_path_GREP_found=false
3295  # Loop through the user's path and test for each of PROGNAME-LIST
3296  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3298do
3299  IFS=$as_save_IFS
3300  test -z "$as_dir" && as_dir=.
3301    for ac_prog in grep ggrep; do
3302    for ac_exec_ext in '' $ac_executable_extensions; do
3303      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3304      as_fn_executable_p "$ac_path_GREP" || continue
3305# Check for GNU ac_path_GREP and select it if it is found.
3306  # Check for GNU $ac_path_GREP
3307case `"$ac_path_GREP" --version 2>&1` in
3308*GNU*)
3309  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3310*)
3311  ac_count=0
3312  $as_echo_n 0123456789 >"conftest.in"
3313  while :
3314  do
3315    cat "conftest.in" "conftest.in" >"conftest.tmp"
3316    mv "conftest.tmp" "conftest.in"
3317    cp "conftest.in" "conftest.nl"
3318    $as_echo 'GREP' >> "conftest.nl"
3319    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3320    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3321    as_fn_arith $ac_count + 1 && ac_count=$as_val
3322    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3323      # Best one so far, save it but keep looking for a better one
3324      ac_cv_path_GREP="$ac_path_GREP"
3325      ac_path_GREP_max=$ac_count
3326    fi
3327    # 10*(2^10) chars as input seems more than enough
3328    test $ac_count -gt 10 && break
3329  done
3330  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3331esac
3332
3333      $ac_path_GREP_found && break 3
3334    done
3335  done
3336  done
3337IFS=$as_save_IFS
3338  if test -z "$ac_cv_path_GREP"; then
3339    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3340  fi
3341else
3342  ac_cv_path_GREP=$GREP
3343fi
3344
3345fi
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3347$as_echo "$ac_cv_path_GREP" >&6; }
3348 GREP="$ac_cv_path_GREP"
3349
3350
3351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3352$as_echo_n "checking for egrep... " >&6; }
3353if ${ac_cv_path_EGREP+:} false; then :
3354  $as_echo_n "(cached) " >&6
3355else
3356  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3357   then ac_cv_path_EGREP="$GREP -E"
3358   else
3359     if test -z "$EGREP"; then
3360  ac_path_EGREP_found=false
3361  # Loop through the user's path and test for each of PROGNAME-LIST
3362  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3364do
3365  IFS=$as_save_IFS
3366  test -z "$as_dir" && as_dir=.
3367    for ac_prog in egrep; do
3368    for ac_exec_ext in '' $ac_executable_extensions; do
3369      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3370      as_fn_executable_p "$ac_path_EGREP" || continue
3371# Check for GNU ac_path_EGREP and select it if it is found.
3372  # Check for GNU $ac_path_EGREP
3373case `"$ac_path_EGREP" --version 2>&1` in
3374*GNU*)
3375  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3376*)
3377  ac_count=0
3378  $as_echo_n 0123456789 >"conftest.in"
3379  while :
3380  do
3381    cat "conftest.in" "conftest.in" >"conftest.tmp"
3382    mv "conftest.tmp" "conftest.in"
3383    cp "conftest.in" "conftest.nl"
3384    $as_echo 'EGREP' >> "conftest.nl"
3385    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3386    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3387    as_fn_arith $ac_count + 1 && ac_count=$as_val
3388    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3389      # Best one so far, save it but keep looking for a better one
3390      ac_cv_path_EGREP="$ac_path_EGREP"
3391      ac_path_EGREP_max=$ac_count
3392    fi
3393    # 10*(2^10) chars as input seems more than enough
3394    test $ac_count -gt 10 && break
3395  done
3396  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3397esac
3398
3399      $ac_path_EGREP_found && break 3
3400    done
3401  done
3402  done
3403IFS=$as_save_IFS
3404  if test -z "$ac_cv_path_EGREP"; then
3405    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3406  fi
3407else
3408  ac_cv_path_EGREP=$EGREP
3409fi
3410
3411   fi
3412fi
3413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3414$as_echo "$ac_cv_path_EGREP" >&6; }
3415 EGREP="$ac_cv_path_EGREP"
3416
3417
3418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3419$as_echo_n "checking for ANSI C header files... " >&6; }
3420if ${ac_cv_header_stdc+:} false; then :
3421  $as_echo_n "(cached) " >&6
3422else
3423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424/* end confdefs.h.  */
3425#include <stdlib.h>
3426#include <stdarg.h>
3427#include <string.h>
3428#include <float.h>
3429
3430int
3431main ()
3432{
3433
3434  ;
3435  return 0;
3436}
3437_ACEOF
3438if ac_fn_c_try_compile "$LINENO"; then :
3439  ac_cv_header_stdc=yes
3440else
3441  ac_cv_header_stdc=no
3442fi
3443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3444
3445if test $ac_cv_header_stdc = yes; then
3446  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448/* end confdefs.h.  */
3449#include <string.h>
3450
3451_ACEOF
3452if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3453  $EGREP "memchr" >/dev/null 2>&1; then :
3454
3455else
3456  ac_cv_header_stdc=no
3457fi
3458rm -f conftest*
3459
3460fi
3461
3462if test $ac_cv_header_stdc = yes; then
3463  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465/* end confdefs.h.  */
3466#include <stdlib.h>
3467
3468_ACEOF
3469if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3470  $EGREP "free" >/dev/null 2>&1; then :
3471
3472else
3473  ac_cv_header_stdc=no
3474fi
3475rm -f conftest*
3476
3477fi
3478
3479if test $ac_cv_header_stdc = yes; then
3480  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3481  if test "$cross_compiling" = yes; then :
3482  :
3483else
3484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485/* end confdefs.h.  */
3486#include <ctype.h>
3487#include <stdlib.h>
3488#if ((' ' & 0x0FF) == 0x020)
3489# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3490# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3491#else
3492# define ISLOWER(c) \
3493		   (('a' <= (c) && (c) <= 'i') \
3494		     || ('j' <= (c) && (c) <= 'r') \
3495		     || ('s' <= (c) && (c) <= 'z'))
3496# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3497#endif
3498
3499#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3500int
3501main ()
3502{
3503  int i;
3504  for (i = 0; i < 256; i++)
3505    if (XOR (islower (i), ISLOWER (i))
3506	|| toupper (i) != TOUPPER (i))
3507      return 2;
3508  return 0;
3509}
3510_ACEOF
3511if ac_fn_c_try_run "$LINENO"; then :
3512
3513else
3514  ac_cv_header_stdc=no
3515fi
3516rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3517  conftest.$ac_objext conftest.beam conftest.$ac_ext
3518fi
3519
3520fi
3521fi
3522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3523$as_echo "$ac_cv_header_stdc" >&6; }
3524if test $ac_cv_header_stdc = yes; then
3525
3526$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3527
3528fi
3529
3530# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3531for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3532		  inttypes.h stdint.h unistd.h
3533do :
3534  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3535ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3536"
3537if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3538  cat >>confdefs.h <<_ACEOF
3539#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3540_ACEOF
3541
3542fi
3543
3544done
3545
3546
3547
3548  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3549if test "x$ac_cv_header_minix_config_h" = xyes; then :
3550  MINIX=yes
3551else
3552  MINIX=
3553fi
3554
3555
3556  if test "$MINIX" = yes; then
3557
3558$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3559
3560
3561$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3562
3563
3564$as_echo "#define _MINIX 1" >>confdefs.h
3565
3566  fi
3567
3568
3569  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3570$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3571if ${ac_cv_safe_to_define___extensions__+:} false; then :
3572  $as_echo_n "(cached) " >&6
3573else
3574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575/* end confdefs.h.  */
3576
3577#         define __EXTENSIONS__ 1
3578          $ac_includes_default
3579int
3580main ()
3581{
3582
3583  ;
3584  return 0;
3585}
3586_ACEOF
3587if ac_fn_c_try_compile "$LINENO"; then :
3588  ac_cv_safe_to_define___extensions__=yes
3589else
3590  ac_cv_safe_to_define___extensions__=no
3591fi
3592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593fi
3594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3595$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3596  test $ac_cv_safe_to_define___extensions__ = yes &&
3597    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3598
3599  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3600
3601  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3602
3603  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3604
3605  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3606
3607
3608
3609# Initialize Automake
3610am__api_version='1.15'
3611
3612# Find a good install program.  We prefer a C program (faster),
3613# so one script is as good as another.  But avoid the broken or
3614# incompatible versions:
3615# SysV /etc/install, /usr/sbin/install
3616# SunOS /usr/etc/install
3617# IRIX /sbin/install
3618# AIX /bin/install
3619# AmigaOS /C/install, which installs bootblocks on floppy discs
3620# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3621# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3622# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3623# OS/2's system install, which has a completely different semantic
3624# ./install, which can be erroneously created by make from ./install.sh.
3625# Reject install programs that cannot install multiple files.
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3627$as_echo_n "checking for a BSD-compatible install... " >&6; }
3628if test -z "$INSTALL"; then
3629if ${ac_cv_path_install+:} false; then :
3630  $as_echo_n "(cached) " >&6
3631else
3632  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633for as_dir in $PATH
3634do
3635  IFS=$as_save_IFS
3636  test -z "$as_dir" && as_dir=.
3637    # Account for people who put trailing slashes in PATH elements.
3638case $as_dir/ in #((
3639  ./ | .// | /[cC]/* | \
3640  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3641  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3642  /usr/ucb/* ) ;;
3643  *)
3644    # OSF1 and SCO ODT 3.0 have their own names for install.
3645    # Don't use installbsd from OSF since it installs stuff as root
3646    # by default.
3647    for ac_prog in ginstall scoinst install; do
3648      for ac_exec_ext in '' $ac_executable_extensions; do
3649	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3650	  if test $ac_prog = install &&
3651	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3652	    # AIX install.  It has an incompatible calling convention.
3653	    :
3654	  elif test $ac_prog = install &&
3655	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3656	    # program-specific install script used by HP pwplus--don't use.
3657	    :
3658	  else
3659	    rm -rf conftest.one conftest.two conftest.dir
3660	    echo one > conftest.one
3661	    echo two > conftest.two
3662	    mkdir conftest.dir
3663	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3664	      test -s conftest.one && test -s conftest.two &&
3665	      test -s conftest.dir/conftest.one &&
3666	      test -s conftest.dir/conftest.two
3667	    then
3668	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3669	      break 3
3670	    fi
3671	  fi
3672	fi
3673      done
3674    done
3675    ;;
3676esac
3677
3678  done
3679IFS=$as_save_IFS
3680
3681rm -rf conftest.one conftest.two conftest.dir
3682
3683fi
3684  if test "${ac_cv_path_install+set}" = set; then
3685    INSTALL=$ac_cv_path_install
3686  else
3687    # As a last resort, use the slow shell script.  Don't cache a
3688    # value for INSTALL within a source directory, because that will
3689    # break other packages using the cache if that directory is
3690    # removed, or if the value is a relative name.
3691    INSTALL=$ac_install_sh
3692  fi
3693fi
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3695$as_echo "$INSTALL" >&6; }
3696
3697# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3698# It thinks the first close brace ends the variable substitution.
3699test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3700
3701test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3702
3703test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3704
3705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3706$as_echo_n "checking whether build environment is sane... " >&6; }
3707# Reject unsafe characters in $srcdir or the absolute working directory
3708# name.  Accept space and tab only in the latter.
3709am_lf='
3710'
3711case `pwd` in
3712  *[\\\"\#\$\&\'\`$am_lf]*)
3713    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3714esac
3715case $srcdir in
3716  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3717    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3718esac
3719
3720# Do 'set' in a subshell so we don't clobber the current shell's
3721# arguments.  Must try -L first in case configure is actually a
3722# symlink; some systems play weird games with the mod time of symlinks
3723# (eg FreeBSD returns the mod time of the symlink's containing
3724# directory).
3725if (
3726   am_has_slept=no
3727   for am_try in 1 2; do
3728     echo "timestamp, slept: $am_has_slept" > conftest.file
3729     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3730     if test "$*" = "X"; then
3731	# -L didn't work.
3732	set X `ls -t "$srcdir/configure" conftest.file`
3733     fi
3734     if test "$*" != "X $srcdir/configure conftest.file" \
3735	&& test "$*" != "X conftest.file $srcdir/configure"; then
3736
3737	# If neither matched, then we have a broken ls.  This can happen
3738	# if, for instance, CONFIG_SHELL is bash and it inherits a
3739	# broken ls alias from the environment.  This has actually
3740	# happened.  Such a system could not be considered "sane".
3741	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3742  alias in your environment" "$LINENO" 5
3743     fi
3744     if test "$2" = conftest.file || test $am_try -eq 2; then
3745       break
3746     fi
3747     # Just in case.
3748     sleep 1
3749     am_has_slept=yes
3750   done
3751   test "$2" = conftest.file
3752   )
3753then
3754   # Ok.
3755   :
3756else
3757   as_fn_error $? "newly created file is older than distributed files!
3758Check your system clock" "$LINENO" 5
3759fi
3760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3761$as_echo "yes" >&6; }
3762# If we didn't sleep, we still need to ensure time stamps of config.status and
3763# generated files are strictly newer.
3764am_sleep_pid=
3765if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3766  ( sleep 1 ) &
3767  am_sleep_pid=$!
3768fi
3769
3770rm -f conftest.file
3771
3772test "$program_prefix" != NONE &&
3773  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3774# Use a double $ so make ignores it.
3775test "$program_suffix" != NONE &&
3776  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3777# Double any \ or $.
3778# By default was `s,x,x', remove it if useless.
3779ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3780program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3781
3782if test x"${MISSING+set}" != xset; then
3783  case $am_aux_dir in
3784  *\ * | *\	*)
3785    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3786  *)
3787    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3788  esac
3789fi
3790# Use eval to expand $SHELL
3791if eval "$MISSING --is-lightweight"; then
3792  am_missing_run="$MISSING "
3793else
3794  am_missing_run=
3795  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3796$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3797fi
3798
3799if test x"${install_sh+set}" != xset; then
3800  case $am_aux_dir in
3801  *\ * | *\	*)
3802    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3803  *)
3804    install_sh="\${SHELL} $am_aux_dir/install-sh"
3805  esac
3806fi
3807
3808# Installed binaries are usually stripped using 'strip' when the user
3809# run "make install-strip".  However 'strip' might not be the right
3810# tool to use in cross-compilation environments, therefore Automake
3811# will honor the 'STRIP' environment variable to overrule this program.
3812if test "$cross_compiling" != no; then
3813  if test -n "$ac_tool_prefix"; then
3814  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3815set dummy ${ac_tool_prefix}strip; ac_word=$2
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3817$as_echo_n "checking for $ac_word... " >&6; }
3818if ${ac_cv_prog_STRIP+:} false; then :
3819  $as_echo_n "(cached) " >&6
3820else
3821  if test -n "$STRIP"; then
3822  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3823else
3824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825for as_dir in $PATH
3826do
3827  IFS=$as_save_IFS
3828  test -z "$as_dir" && as_dir=.
3829    for ac_exec_ext in '' $ac_executable_extensions; do
3830  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3831    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3833    break 2
3834  fi
3835done
3836  done
3837IFS=$as_save_IFS
3838
3839fi
3840fi
3841STRIP=$ac_cv_prog_STRIP
3842if test -n "$STRIP"; then
3843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3844$as_echo "$STRIP" >&6; }
3845else
3846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3847$as_echo "no" >&6; }
3848fi
3849
3850
3851fi
3852if test -z "$ac_cv_prog_STRIP"; then
3853  ac_ct_STRIP=$STRIP
3854  # Extract the first word of "strip", so it can be a program name with args.
3855set dummy strip; ac_word=$2
3856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3857$as_echo_n "checking for $ac_word... " >&6; }
3858if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3859  $as_echo_n "(cached) " >&6
3860else
3861  if test -n "$ac_ct_STRIP"; then
3862  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3863else
3864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865for as_dir in $PATH
3866do
3867  IFS=$as_save_IFS
3868  test -z "$as_dir" && as_dir=.
3869    for ac_exec_ext in '' $ac_executable_extensions; do
3870  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3871    ac_cv_prog_ac_ct_STRIP="strip"
3872    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3873    break 2
3874  fi
3875done
3876  done
3877IFS=$as_save_IFS
3878
3879fi
3880fi
3881ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3882if test -n "$ac_ct_STRIP"; then
3883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3884$as_echo "$ac_ct_STRIP" >&6; }
3885else
3886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887$as_echo "no" >&6; }
3888fi
3889
3890  if test "x$ac_ct_STRIP" = x; then
3891    STRIP=":"
3892  else
3893    case $cross_compiling:$ac_tool_warned in
3894yes:)
3895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3897ac_tool_warned=yes ;;
3898esac
3899    STRIP=$ac_ct_STRIP
3900  fi
3901else
3902  STRIP="$ac_cv_prog_STRIP"
3903fi
3904
3905fi
3906INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3907
3908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3909$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3910if test -z "$MKDIR_P"; then
3911  if ${ac_cv_path_mkdir+:} false; then :
3912  $as_echo_n "(cached) " >&6
3913else
3914  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3916do
3917  IFS=$as_save_IFS
3918  test -z "$as_dir" && as_dir=.
3919    for ac_prog in mkdir gmkdir; do
3920	 for ac_exec_ext in '' $ac_executable_extensions; do
3921	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3922	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3923	     'mkdir (GNU coreutils) '* | \
3924	     'mkdir (coreutils) '* | \
3925	     'mkdir (fileutils) '4.1*)
3926	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3927	       break 3;;
3928	   esac
3929	 done
3930       done
3931  done
3932IFS=$as_save_IFS
3933
3934fi
3935
3936  test -d ./--version && rmdir ./--version
3937  if test "${ac_cv_path_mkdir+set}" = set; then
3938    MKDIR_P="$ac_cv_path_mkdir -p"
3939  else
3940    # As a last resort, use the slow shell script.  Don't cache a
3941    # value for MKDIR_P within a source directory, because that will
3942    # break other packages using the cache if that directory is
3943    # removed, or if the value is a relative name.
3944    MKDIR_P="$ac_install_sh -d"
3945  fi
3946fi
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3948$as_echo "$MKDIR_P" >&6; }
3949
3950for ac_prog in gawk mawk nawk awk
3951do
3952  # Extract the first word of "$ac_prog", so it can be a program name with args.
3953set dummy $ac_prog; ac_word=$2
3954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3955$as_echo_n "checking for $ac_word... " >&6; }
3956if ${ac_cv_prog_AWK+:} false; then :
3957  $as_echo_n "(cached) " >&6
3958else
3959  if test -n "$AWK"; then
3960  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3961else
3962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963for as_dir in $PATH
3964do
3965  IFS=$as_save_IFS
3966  test -z "$as_dir" && as_dir=.
3967    for ac_exec_ext in '' $ac_executable_extensions; do
3968  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3969    ac_cv_prog_AWK="$ac_prog"
3970    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3971    break 2
3972  fi
3973done
3974  done
3975IFS=$as_save_IFS
3976
3977fi
3978fi
3979AWK=$ac_cv_prog_AWK
3980if test -n "$AWK"; then
3981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3982$as_echo "$AWK" >&6; }
3983else
3984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3985$as_echo "no" >&6; }
3986fi
3987
3988
3989  test -n "$AWK" && break
3990done
3991
3992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3993$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3994set x ${MAKE-make}
3995ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3996if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3997  $as_echo_n "(cached) " >&6
3998else
3999  cat >conftest.make <<\_ACEOF
4000SHELL = /bin/sh
4001all:
4002	@echo '@@@%%%=$(MAKE)=@@@%%%'
4003_ACEOF
4004# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4005case `${MAKE-make} -f conftest.make 2>/dev/null` in
4006  *@@@%%%=?*=@@@%%%*)
4007    eval ac_cv_prog_make_${ac_make}_set=yes;;
4008  *)
4009    eval ac_cv_prog_make_${ac_make}_set=no;;
4010esac
4011rm -f conftest.make
4012fi
4013if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4015$as_echo "yes" >&6; }
4016  SET_MAKE=
4017else
4018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4019$as_echo "no" >&6; }
4020  SET_MAKE="MAKE=${MAKE-make}"
4021fi
4022
4023rm -rf .tst 2>/dev/null
4024mkdir .tst 2>/dev/null
4025if test -d .tst; then
4026  am__leading_dot=.
4027else
4028  am__leading_dot=_
4029fi
4030rmdir .tst 2>/dev/null
4031
4032DEPDIR="${am__leading_dot}deps"
4033
4034ac_config_commands="$ac_config_commands depfiles"
4035
4036
4037am_make=${MAKE-make}
4038cat > confinc << 'END'
4039am__doit:
4040	@echo this is the am__doit target
4041.PHONY: am__doit
4042END
4043# If we don't find an include directive, just comment out the code.
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4045$as_echo_n "checking for style of include used by $am_make... " >&6; }
4046am__include="#"
4047am__quote=
4048_am_result=none
4049# First try GNU make style include.
4050echo "include confinc" > confmf
4051# Ignore all kinds of additional output from 'make'.
4052case `$am_make -s -f confmf 2> /dev/null` in #(
4053*the\ am__doit\ target*)
4054  am__include=include
4055  am__quote=
4056  _am_result=GNU
4057  ;;
4058esac
4059# Now try BSD make style include.
4060if test "$am__include" = "#"; then
4061   echo '.include "confinc"' > confmf
4062   case `$am_make -s -f confmf 2> /dev/null` in #(
4063   *the\ am__doit\ target*)
4064     am__include=.include
4065     am__quote="\""
4066     _am_result=BSD
4067     ;;
4068   esac
4069fi
4070
4071
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4073$as_echo "$_am_result" >&6; }
4074rm -f confinc confmf
4075
4076# Check whether --enable-dependency-tracking was given.
4077if test "${enable_dependency_tracking+set}" = set; then :
4078  enableval=$enable_dependency_tracking;
4079fi
4080
4081if test "x$enable_dependency_tracking" != xno; then
4082  am_depcomp="$ac_aux_dir/depcomp"
4083  AMDEPBACKSLASH='\'
4084  am__nodep='_no'
4085fi
4086 if test "x$enable_dependency_tracking" != xno; then
4087  AMDEP_TRUE=
4088  AMDEP_FALSE='#'
4089else
4090  AMDEP_TRUE='#'
4091  AMDEP_FALSE=
4092fi
4093
4094
4095# Check whether --enable-silent-rules was given.
4096if test "${enable_silent_rules+set}" = set; then :
4097  enableval=$enable_silent_rules;
4098fi
4099
4100case $enable_silent_rules in # (((
4101  yes) AM_DEFAULT_VERBOSITY=0;;
4102   no) AM_DEFAULT_VERBOSITY=1;;
4103    *) AM_DEFAULT_VERBOSITY=1;;
4104esac
4105am_make=${MAKE-make}
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4107$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4108if ${am_cv_make_support_nested_variables+:} false; then :
4109  $as_echo_n "(cached) " >&6
4110else
4111  if $as_echo 'TRUE=$(BAR$(V))
4112BAR0=false
4113BAR1=true
4114V=1
4115am__doit:
4116	@$(TRUE)
4117.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4118  am_cv_make_support_nested_variables=yes
4119else
4120  am_cv_make_support_nested_variables=no
4121fi
4122fi
4123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4124$as_echo "$am_cv_make_support_nested_variables" >&6; }
4125if test $am_cv_make_support_nested_variables = yes; then
4126    AM_V='$(V)'
4127  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4128else
4129  AM_V=$AM_DEFAULT_VERBOSITY
4130  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4131fi
4132AM_BACKSLASH='\'
4133
4134if test "`cd $srcdir && pwd`" != "`pwd`"; then
4135  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4136  # is not polluted with repeated "-I."
4137  am__isrc=' -I$(srcdir)'
4138  # test to see if srcdir already configured
4139  if test -f $srcdir/config.status; then
4140    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4141  fi
4142fi
4143
4144# test whether we have cygpath
4145if test -z "$CYGPATH_W"; then
4146  if (cygpath --version) >/dev/null 2>/dev/null; then
4147    CYGPATH_W='cygpath -w'
4148  else
4149    CYGPATH_W=echo
4150  fi
4151fi
4152
4153
4154# Define the identity of the package.
4155 PACKAGE='xconsole'
4156 VERSION='1.0.7'
4157
4158
4159cat >>confdefs.h <<_ACEOF
4160#define PACKAGE "$PACKAGE"
4161_ACEOF
4162
4163
4164cat >>confdefs.h <<_ACEOF
4165#define VERSION "$VERSION"
4166_ACEOF
4167
4168# Some tools Automake needs.
4169
4170ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4171
4172
4173AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4174
4175
4176AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4177
4178
4179AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4180
4181
4182MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4183
4184# For better backward compatibility.  To be removed once Automake 1.9.x
4185# dies out for good.  For more background, see:
4186# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4187# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4188mkdir_p='$(MKDIR_P)'
4189
4190# We need awk for the "check" target (and possibly the TAP driver).  The
4191# system "awk" is bad on some platforms.
4192# Always define AMTAR for backward compatibility.  Yes, it's still used
4193# in the wild :-(  We should find a proper way to deprecate it ...
4194AMTAR='$${TAR-tar}'
4195
4196
4197# We'll loop over all known methods to create a tar archive until one works.
4198_am_tools='gnutar  pax cpio none'
4199
4200am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4201
4202
4203
4204
4205
4206depcc="$CC"   am_compiler_list=
4207
4208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4209$as_echo_n "checking dependency style of $depcc... " >&6; }
4210if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4211  $as_echo_n "(cached) " >&6
4212else
4213  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4214  # We make a subdir and do the tests there.  Otherwise we can end up
4215  # making bogus files that we don't know about and never remove.  For
4216  # instance it was reported that on HP-UX the gcc test will end up
4217  # making a dummy file named 'D' -- because '-MD' means "put the output
4218  # in D".
4219  rm -rf conftest.dir
4220  mkdir conftest.dir
4221  # Copy depcomp to subdir because otherwise we won't find it if we're
4222  # using a relative directory.
4223  cp "$am_depcomp" conftest.dir
4224  cd conftest.dir
4225  # We will build objects and dependencies in a subdirectory because
4226  # it helps to detect inapplicable dependency modes.  For instance
4227  # both Tru64's cc and ICC support -MD to output dependencies as a
4228  # side effect of compilation, but ICC will put the dependencies in
4229  # the current directory while Tru64 will put them in the object
4230  # directory.
4231  mkdir sub
4232
4233  am_cv_CC_dependencies_compiler_type=none
4234  if test "$am_compiler_list" = ""; then
4235     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4236  fi
4237  am__universal=false
4238  case " $depcc " in #(
4239     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4240     esac
4241
4242  for depmode in $am_compiler_list; do
4243    # Setup a source with many dependencies, because some compilers
4244    # like to wrap large dependency lists on column 80 (with \), and
4245    # we should not choose a depcomp mode which is confused by this.
4246    #
4247    # We need to recreate these files for each test, as the compiler may
4248    # overwrite some of them when testing with obscure command lines.
4249    # This happens at least with the AIX C compiler.
4250    : > sub/conftest.c
4251    for i in 1 2 3 4 5 6; do
4252      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4253      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4254      # Solaris 10 /bin/sh.
4255      echo '/* dummy */' > sub/conftst$i.h
4256    done
4257    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4258
4259    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4260    # mode.  It turns out that the SunPro C++ compiler does not properly
4261    # handle '-M -o', and we need to detect this.  Also, some Intel
4262    # versions had trouble with output in subdirs.
4263    am__obj=sub/conftest.${OBJEXT-o}
4264    am__minus_obj="-o $am__obj"
4265    case $depmode in
4266    gcc)
4267      # This depmode causes a compiler race in universal mode.
4268      test "$am__universal" = false || continue
4269      ;;
4270    nosideeffect)
4271      # After this tag, mechanisms are not by side-effect, so they'll
4272      # only be used when explicitly requested.
4273      if test "x$enable_dependency_tracking" = xyes; then
4274	continue
4275      else
4276	break
4277      fi
4278      ;;
4279    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4280      # This compiler won't grok '-c -o', but also, the minuso test has
4281      # not run yet.  These depmodes are late enough in the game, and
4282      # so weak that their functioning should not be impacted.
4283      am__obj=conftest.${OBJEXT-o}
4284      am__minus_obj=
4285      ;;
4286    none) break ;;
4287    esac
4288    if depmode=$depmode \
4289       source=sub/conftest.c object=$am__obj \
4290       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4291       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4292         >/dev/null 2>conftest.err &&
4293       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4294       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4295       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4296       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4297      # icc doesn't choke on unknown options, it will just issue warnings
4298      # or remarks (even with -Werror).  So we grep stderr for any message
4299      # that says an option was ignored or not supported.
4300      # When given -MP, icc 7.0 and 7.1 complain thusly:
4301      #   icc: Command line warning: ignoring option '-M'; no argument required
4302      # The diagnosis changed in icc 8.0:
4303      #   icc: Command line remark: option '-MP' not supported
4304      if (grep 'ignoring option' conftest.err ||
4305          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4306        am_cv_CC_dependencies_compiler_type=$depmode
4307        break
4308      fi
4309    fi
4310  done
4311
4312  cd ..
4313  rm -rf conftest.dir
4314else
4315  am_cv_CC_dependencies_compiler_type=none
4316fi
4317
4318fi
4319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4320$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4321CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4322
4323 if
4324  test "x$enable_dependency_tracking" != xno \
4325  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4326  am__fastdepCC_TRUE=
4327  am__fastdepCC_FALSE='#'
4328else
4329  am__fastdepCC_TRUE='#'
4330  am__fastdepCC_FALSE=
4331fi
4332
4333
4334
4335# POSIX will say in a future version that running "rm -f" with no argument
4336# is OK; and we want to be able to make that assumption in our Makefile
4337# recipes.  So use an aggressive probe to check that the usage we want is
4338# actually supported "in the wild" to an acceptable degree.
4339# See automake bug#10828.
4340# To make any issue more visible, cause the running configure to be aborted
4341# by default if the 'rm' program in use doesn't match our expectations; the
4342# user can still override this though.
4343if rm -f && rm -fr && rm -rf; then : OK; else
4344  cat >&2 <<'END'
4345Oops!
4346
4347Your 'rm' program seems unable to run without file operands specified
4348on the command line, even when the '-f' option is present.  This is contrary
4349to the behaviour of most rm programs out there, and not conforming with
4350the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4351
4352Please tell bug-automake@gnu.org about your system, including the value
4353of your $PATH and any error possibly output before this message.  This
4354can help us improve future automake versions.
4355
4356END
4357  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4358    echo 'Configuration will proceed anyway, since you have set the' >&2
4359    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4360    echo >&2
4361  else
4362    cat >&2 <<'END'
4363Aborting the configuration process, to ensure you take notice of the issue.
4364
4365You can download and install GNU coreutils to get an 'rm' implementation
4366that behaves properly: <http://www.gnu.org/software/coreutils/>.
4367
4368If you want to complete the configuration process using your problematic
4369'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4370to "yes", and re-run configure.
4371
4372END
4373    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4374  fi
4375fi
4376
4377
4378# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4391$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4392if ${ac_cv_prog_cc_c99+:} false; then :
4393  $as_echo_n "(cached) " >&6
4394else
4395  ac_cv_prog_cc_c99=no
4396ac_save_CC=$CC
4397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398/* end confdefs.h.  */
4399#include <stdarg.h>
4400#include <stdbool.h>
4401#include <stdlib.h>
4402#include <wchar.h>
4403#include <stdio.h>
4404
4405// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4406#define debug(...) fprintf (stderr, __VA_ARGS__)
4407#define showlist(...) puts (#__VA_ARGS__)
4408#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4409static void
4410test_varargs_macros (void)
4411{
4412  int x = 1234;
4413  int y = 5678;
4414  debug ("Flag");
4415  debug ("X = %d\n", x);
4416  showlist (The first, second, and third items.);
4417  report (x>y, "x is %d but y is %d", x, y);
4418}
4419
4420// Check long long types.
4421#define BIG64 18446744073709551615ull
4422#define BIG32 4294967295ul
4423#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4424#if !BIG_OK
4425  your preprocessor is broken;
4426#endif
4427#if BIG_OK
4428#else
4429  your preprocessor is broken;
4430#endif
4431static long long int bignum = -9223372036854775807LL;
4432static unsigned long long int ubignum = BIG64;
4433
4434struct incomplete_array
4435{
4436  int datasize;
4437  double data[];
4438};
4439
4440struct named_init {
4441  int number;
4442  const wchar_t *name;
4443  double average;
4444};
4445
4446typedef const char *ccp;
4447
4448static inline int
4449test_restrict (ccp restrict text)
4450{
4451  // See if C++-style comments work.
4452  // Iterate through items via the restricted pointer.
4453  // Also check for declarations in for loops.
4454  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4455    continue;
4456  return 0;
4457}
4458
4459// Check varargs and va_copy.
4460static void
4461test_varargs (const char *format, ...)
4462{
4463  va_list args;
4464  va_start (args, format);
4465  va_list args_copy;
4466  va_copy (args_copy, args);
4467
4468  const char *str;
4469  int number;
4470  float fnumber;
4471
4472  while (*format)
4473    {
4474      switch (*format++)
4475	{
4476	case 's': // string
4477	  str = va_arg (args_copy, const char *);
4478	  break;
4479	case 'd': // int
4480	  number = va_arg (args_copy, int);
4481	  break;
4482	case 'f': // float
4483	  fnumber = va_arg (args_copy, double);
4484	  break;
4485	default:
4486	  break;
4487	}
4488    }
4489  va_end (args_copy);
4490  va_end (args);
4491}
4492
4493int
4494main ()
4495{
4496
4497  // Check bool.
4498  _Bool success = false;
4499
4500  // Check restrict.
4501  if (test_restrict ("String literal") == 0)
4502    success = true;
4503  char *restrict newvar = "Another string";
4504
4505  // Check varargs.
4506  test_varargs ("s, d' f .", "string", 65, 34.234);
4507  test_varargs_macros ();
4508
4509  // Check flexible array members.
4510  struct incomplete_array *ia =
4511    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4512  ia->datasize = 10;
4513  for (int i = 0; i < ia->datasize; ++i)
4514    ia->data[i] = i * 1.234;
4515
4516  // Check named initializers.
4517  struct named_init ni = {
4518    .number = 34,
4519    .name = L"Test wide string",
4520    .average = 543.34343,
4521  };
4522
4523  ni.number = 58;
4524
4525  int dynamic_array[ni.number];
4526  dynamic_array[ni.number - 1] = 543;
4527
4528  // work around unused variable warnings
4529  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4530	  || dynamic_array[ni.number - 1] != 543);
4531
4532  ;
4533  return 0;
4534}
4535_ACEOF
4536for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4537do
4538  CC="$ac_save_CC $ac_arg"
4539  if ac_fn_c_try_compile "$LINENO"; then :
4540  ac_cv_prog_cc_c99=$ac_arg
4541fi
4542rm -f core conftest.err conftest.$ac_objext
4543  test "x$ac_cv_prog_cc_c99" != "xno" && break
4544done
4545rm -f conftest.$ac_ext
4546CC=$ac_save_CC
4547
4548fi
4549# AC_CACHE_VAL
4550case "x$ac_cv_prog_cc_c99" in
4551  x)
4552    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4553$as_echo "none needed" >&6; } ;;
4554  xno)
4555    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4556$as_echo "unsupported" >&6; } ;;
4557  *)
4558    CC="$CC $ac_cv_prog_cc_c99"
4559    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4560$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4561esac
4562if test "x$ac_cv_prog_cc_c99" != xno; then :
4563
4564fi
4565
4566
4567
4568
4569
4570
4571ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4572if test "x$ac_cv_have_decl___clang__" = xyes; then :
4573  CLANGCC="yes"
4574else
4575  CLANGCC="no"
4576fi
4577
4578ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4579if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4580  INTELCC="yes"
4581else
4582  INTELCC="no"
4583fi
4584
4585ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4586if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4587  SUNCC="yes"
4588else
4589  SUNCC="no"
4590fi
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4601	if test -n "$ac_tool_prefix"; then
4602  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4603set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4605$as_echo_n "checking for $ac_word... " >&6; }
4606if ${ac_cv_path_PKG_CONFIG+:} false; then :
4607  $as_echo_n "(cached) " >&6
4608else
4609  case $PKG_CONFIG in
4610  [\\/]* | ?:[\\/]*)
4611  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4612  ;;
4613  *)
4614  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615for as_dir in $PATH
4616do
4617  IFS=$as_save_IFS
4618  test -z "$as_dir" && as_dir=.
4619    for ac_exec_ext in '' $ac_executable_extensions; do
4620  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4621    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4622    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4623    break 2
4624  fi
4625done
4626  done
4627IFS=$as_save_IFS
4628
4629  ;;
4630esac
4631fi
4632PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4633if test -n "$PKG_CONFIG"; then
4634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4635$as_echo "$PKG_CONFIG" >&6; }
4636else
4637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638$as_echo "no" >&6; }
4639fi
4640
4641
4642fi
4643if test -z "$ac_cv_path_PKG_CONFIG"; then
4644  ac_pt_PKG_CONFIG=$PKG_CONFIG
4645  # Extract the first word of "pkg-config", so it can be a program name with args.
4646set dummy pkg-config; ac_word=$2
4647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648$as_echo_n "checking for $ac_word... " >&6; }
4649if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4650  $as_echo_n "(cached) " >&6
4651else
4652  case $ac_pt_PKG_CONFIG in
4653  [\\/]* | ?:[\\/]*)
4654  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4655  ;;
4656  *)
4657  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658for as_dir in $PATH
4659do
4660  IFS=$as_save_IFS
4661  test -z "$as_dir" && as_dir=.
4662    for ac_exec_ext in '' $ac_executable_extensions; do
4663  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4664    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666    break 2
4667  fi
4668done
4669  done
4670IFS=$as_save_IFS
4671
4672  ;;
4673esac
4674fi
4675ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4676if test -n "$ac_pt_PKG_CONFIG"; then
4677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4678$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4679else
4680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681$as_echo "no" >&6; }
4682fi
4683
4684  if test "x$ac_pt_PKG_CONFIG" = x; then
4685    PKG_CONFIG=""
4686  else
4687    case $cross_compiling:$ac_tool_warned in
4688yes:)
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4691ac_tool_warned=yes ;;
4692esac
4693    PKG_CONFIG=$ac_pt_PKG_CONFIG
4694  fi
4695else
4696  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4697fi
4698
4699fi
4700if test -n "$PKG_CONFIG"; then
4701	_pkg_min_version=0.9.0
4702	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4703$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4704	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4705		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4706$as_echo "yes" >&6; }
4707	else
4708		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4709$as_echo "no" >&6; }
4710		PKG_CONFIG=""
4711	fi
4712fi
4713# Make sure we can run config.sub.
4714$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4715  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4716
4717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4718$as_echo_n "checking build system type... " >&6; }
4719if ${ac_cv_build+:} false; then :
4720  $as_echo_n "(cached) " >&6
4721else
4722  ac_build_alias=$build_alias
4723test "x$ac_build_alias" = x &&
4724  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4725test "x$ac_build_alias" = x &&
4726  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4727ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4728  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4729
4730fi
4731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4732$as_echo "$ac_cv_build" >&6; }
4733case $ac_cv_build in
4734*-*-*) ;;
4735*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4736esac
4737build=$ac_cv_build
4738ac_save_IFS=$IFS; IFS='-'
4739set x $ac_cv_build
4740shift
4741build_cpu=$1
4742build_vendor=$2
4743shift; shift
4744# Remember, the first character of IFS is used to create $*,
4745# except with old shells:
4746build_os=$*
4747IFS=$ac_save_IFS
4748case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4749
4750
4751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4752$as_echo_n "checking host system type... " >&6; }
4753if ${ac_cv_host+:} false; then :
4754  $as_echo_n "(cached) " >&6
4755else
4756  if test "x$host_alias" = x; then
4757  ac_cv_host=$ac_cv_build
4758else
4759  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4760    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4761fi
4762
4763fi
4764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4765$as_echo "$ac_cv_host" >&6; }
4766case $ac_cv_host in
4767*-*-*) ;;
4768*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4769esac
4770host=$ac_cv_host
4771ac_save_IFS=$IFS; IFS='-'
4772set x $ac_cv_host
4773shift
4774host_cpu=$1
4775host_vendor=$2
4776shift; shift
4777# Remember, the first character of IFS is used to create $*,
4778# except with old shells:
4779host_os=$*
4780IFS=$ac_save_IFS
4781case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4782
4783
4784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4785$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4786if ${ac_cv_path_SED+:} false; then :
4787  $as_echo_n "(cached) " >&6
4788else
4789            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4790     for ac_i in 1 2 3 4 5 6 7; do
4791       ac_script="$ac_script$as_nl$ac_script"
4792     done
4793     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4794     { ac_script=; unset ac_script;}
4795     if test -z "$SED"; then
4796  ac_path_SED_found=false
4797  # Loop through the user's path and test for each of PROGNAME-LIST
4798  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799for as_dir in $PATH
4800do
4801  IFS=$as_save_IFS
4802  test -z "$as_dir" && as_dir=.
4803    for ac_prog in sed gsed; do
4804    for ac_exec_ext in '' $ac_executable_extensions; do
4805      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4806      as_fn_executable_p "$ac_path_SED" || continue
4807# Check for GNU ac_path_SED and select it if it is found.
4808  # Check for GNU $ac_path_SED
4809case `"$ac_path_SED" --version 2>&1` in
4810*GNU*)
4811  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4812*)
4813  ac_count=0
4814  $as_echo_n 0123456789 >"conftest.in"
4815  while :
4816  do
4817    cat "conftest.in" "conftest.in" >"conftest.tmp"
4818    mv "conftest.tmp" "conftest.in"
4819    cp "conftest.in" "conftest.nl"
4820    $as_echo '' >> "conftest.nl"
4821    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4822    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4823    as_fn_arith $ac_count + 1 && ac_count=$as_val
4824    if test $ac_count -gt ${ac_path_SED_max-0}; then
4825      # Best one so far, save it but keep looking for a better one
4826      ac_cv_path_SED="$ac_path_SED"
4827      ac_path_SED_max=$ac_count
4828    fi
4829    # 10*(2^10) chars as input seems more than enough
4830    test $ac_count -gt 10 && break
4831  done
4832  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4833esac
4834
4835      $ac_path_SED_found && break 3
4836    done
4837  done
4838  done
4839IFS=$as_save_IFS
4840  if test -z "$ac_cv_path_SED"; then
4841    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4842  fi
4843else
4844  ac_cv_path_SED=$SED
4845fi
4846
4847fi
4848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4849$as_echo "$ac_cv_path_SED" >&6; }
4850 SED="$ac_cv_path_SED"
4851  rm -f conftest.sed
4852
4853
4854
4855
4856
4857
4858# Check whether --enable-selective-werror was given.
4859if test "${enable_selective_werror+set}" = set; then :
4860  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4861else
4862  SELECTIVE_WERROR=yes
4863fi
4864
4865
4866
4867
4868
4869# -v is too short to test reliably with XORG_TESTSET_CFLAG
4870if test "x$SUNCC" = "xyes"; then
4871    BASE_CFLAGS="-v"
4872else
4873    BASE_CFLAGS=""
4874fi
4875
4876# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890xorg_testset_save_CFLAGS="$CFLAGS"
4891
4892if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4893	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4894	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4895$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4896if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4897  $as_echo_n "(cached) " >&6
4898else
4899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900/* end confdefs.h.  */
4901int i;
4902_ACEOF
4903if ac_fn_c_try_compile "$LINENO"; then :
4904  xorg_cv_cc_flag_unknown_warning_option=yes
4905else
4906  xorg_cv_cc_flag_unknown_warning_option=no
4907fi
4908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4909fi
4910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4911$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4912	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4913	CFLAGS="$xorg_testset_save_CFLAGS"
4914fi
4915
4916if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4917	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4918		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4919	fi
4920	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4921	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4922$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4923if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4924  $as_echo_n "(cached) " >&6
4925else
4926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927/* end confdefs.h.  */
4928int i;
4929_ACEOF
4930if ac_fn_c_try_compile "$LINENO"; then :
4931  xorg_cv_cc_flag_unused_command_line_argument=yes
4932else
4933  xorg_cv_cc_flag_unused_command_line_argument=no
4934fi
4935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4936fi
4937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4938$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4939	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4940	CFLAGS="$xorg_testset_save_CFLAGS"
4941fi
4942
4943found="no"
4944
4945	if test $found = "no" ; then
4946		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4947			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4948		fi
4949
4950		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4951			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4952		fi
4953
4954		CFLAGS="$CFLAGS -Wall"
4955
4956		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4957$as_echo_n "checking if $CC supports -Wall... " >&6; }
4958		cacheid=xorg_cv_cc_flag__Wall
4959		if eval \${$cacheid+:} false; then :
4960  $as_echo_n "(cached) " >&6
4961else
4962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963/* end confdefs.h.  */
4964int i;
4965int
4966main ()
4967{
4968
4969  ;
4970  return 0;
4971}
4972_ACEOF
4973if ac_fn_c_try_link "$LINENO"; then :
4974  eval $cacheid=yes
4975else
4976  eval $cacheid=no
4977fi
4978rm -f core conftest.err conftest.$ac_objext \
4979    conftest$ac_exeext conftest.$ac_ext
4980fi
4981
4982
4983		CFLAGS="$xorg_testset_save_CFLAGS"
4984
4985		eval supported=\$$cacheid
4986		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4987$as_echo "$supported" >&6; }
4988		if test "$supported" = "yes" ; then
4989			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4990			found="yes"
4991		fi
4992	fi
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008xorg_testset_save_CFLAGS="$CFLAGS"
5009
5010if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5011	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5012	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5013$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5014if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5015  $as_echo_n "(cached) " >&6
5016else
5017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018/* end confdefs.h.  */
5019int i;
5020_ACEOF
5021if ac_fn_c_try_compile "$LINENO"; then :
5022  xorg_cv_cc_flag_unknown_warning_option=yes
5023else
5024  xorg_cv_cc_flag_unknown_warning_option=no
5025fi
5026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5027fi
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5029$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5030	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5031	CFLAGS="$xorg_testset_save_CFLAGS"
5032fi
5033
5034if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5035	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5036		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5037	fi
5038	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5039	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5040$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5041if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5042  $as_echo_n "(cached) " >&6
5043else
5044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045/* end confdefs.h.  */
5046int i;
5047_ACEOF
5048if ac_fn_c_try_compile "$LINENO"; then :
5049  xorg_cv_cc_flag_unused_command_line_argument=yes
5050else
5051  xorg_cv_cc_flag_unused_command_line_argument=no
5052fi
5053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5054fi
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5056$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5057	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5058	CFLAGS="$xorg_testset_save_CFLAGS"
5059fi
5060
5061found="no"
5062
5063	if test $found = "no" ; then
5064		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5065			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5066		fi
5067
5068		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5069			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5070		fi
5071
5072		CFLAGS="$CFLAGS -Wpointer-arith"
5073
5074		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5075$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5076		cacheid=xorg_cv_cc_flag__Wpointer_arith
5077		if eval \${$cacheid+:} false; then :
5078  $as_echo_n "(cached) " >&6
5079else
5080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5081/* end confdefs.h.  */
5082int i;
5083int
5084main ()
5085{
5086
5087  ;
5088  return 0;
5089}
5090_ACEOF
5091if ac_fn_c_try_link "$LINENO"; then :
5092  eval $cacheid=yes
5093else
5094  eval $cacheid=no
5095fi
5096rm -f core conftest.err conftest.$ac_objext \
5097    conftest$ac_exeext conftest.$ac_ext
5098fi
5099
5100
5101		CFLAGS="$xorg_testset_save_CFLAGS"
5102
5103		eval supported=\$$cacheid
5104		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5105$as_echo "$supported" >&6; }
5106		if test "$supported" = "yes" ; then
5107			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5108			found="yes"
5109		fi
5110	fi
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126xorg_testset_save_CFLAGS="$CFLAGS"
5127
5128if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5129	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5130	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5131$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5132if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5133  $as_echo_n "(cached) " >&6
5134else
5135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136/* end confdefs.h.  */
5137int i;
5138_ACEOF
5139if ac_fn_c_try_compile "$LINENO"; then :
5140  xorg_cv_cc_flag_unknown_warning_option=yes
5141else
5142  xorg_cv_cc_flag_unknown_warning_option=no
5143fi
5144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5145fi
5146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5147$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5148	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5149	CFLAGS="$xorg_testset_save_CFLAGS"
5150fi
5151
5152if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5153	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5154		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5155	fi
5156	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5157	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5158$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5159if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5160  $as_echo_n "(cached) " >&6
5161else
5162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163/* end confdefs.h.  */
5164int i;
5165_ACEOF
5166if ac_fn_c_try_compile "$LINENO"; then :
5167  xorg_cv_cc_flag_unused_command_line_argument=yes
5168else
5169  xorg_cv_cc_flag_unused_command_line_argument=no
5170fi
5171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5172fi
5173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5174$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5175	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5176	CFLAGS="$xorg_testset_save_CFLAGS"
5177fi
5178
5179found="no"
5180
5181	if test $found = "no" ; then
5182		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5183			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5184		fi
5185
5186		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5187			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5188		fi
5189
5190		CFLAGS="$CFLAGS -Wmissing-declarations"
5191
5192		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5193$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5194		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5195		if eval \${$cacheid+:} false; then :
5196  $as_echo_n "(cached) " >&6
5197else
5198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199/* end confdefs.h.  */
5200int i;
5201int
5202main ()
5203{
5204
5205  ;
5206  return 0;
5207}
5208_ACEOF
5209if ac_fn_c_try_link "$LINENO"; then :
5210  eval $cacheid=yes
5211else
5212  eval $cacheid=no
5213fi
5214rm -f core conftest.err conftest.$ac_objext \
5215    conftest$ac_exeext conftest.$ac_ext
5216fi
5217
5218
5219		CFLAGS="$xorg_testset_save_CFLAGS"
5220
5221		eval supported=\$$cacheid
5222		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5223$as_echo "$supported" >&6; }
5224		if test "$supported" = "yes" ; then
5225			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5226			found="yes"
5227		fi
5228	fi
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244xorg_testset_save_CFLAGS="$CFLAGS"
5245
5246if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5247	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5248	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5249$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5250if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5251  $as_echo_n "(cached) " >&6
5252else
5253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254/* end confdefs.h.  */
5255int i;
5256_ACEOF
5257if ac_fn_c_try_compile "$LINENO"; then :
5258  xorg_cv_cc_flag_unknown_warning_option=yes
5259else
5260  xorg_cv_cc_flag_unknown_warning_option=no
5261fi
5262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5263fi
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5265$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5266	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5267	CFLAGS="$xorg_testset_save_CFLAGS"
5268fi
5269
5270if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5271	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5272		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5273	fi
5274	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5275	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5276$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5277if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5278  $as_echo_n "(cached) " >&6
5279else
5280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281/* end confdefs.h.  */
5282int i;
5283_ACEOF
5284if ac_fn_c_try_compile "$LINENO"; then :
5285  xorg_cv_cc_flag_unused_command_line_argument=yes
5286else
5287  xorg_cv_cc_flag_unused_command_line_argument=no
5288fi
5289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290fi
5291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5292$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5293	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5294	CFLAGS="$xorg_testset_save_CFLAGS"
5295fi
5296
5297found="no"
5298
5299	if test $found = "no" ; then
5300		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5301			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5302		fi
5303
5304		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5305			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5306		fi
5307
5308		CFLAGS="$CFLAGS -Wformat=2"
5309
5310		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5311$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5312		cacheid=xorg_cv_cc_flag__Wformat_2
5313		if eval \${$cacheid+:} false; then :
5314  $as_echo_n "(cached) " >&6
5315else
5316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317/* end confdefs.h.  */
5318int i;
5319int
5320main ()
5321{
5322
5323  ;
5324  return 0;
5325}
5326_ACEOF
5327if ac_fn_c_try_link "$LINENO"; then :
5328  eval $cacheid=yes
5329else
5330  eval $cacheid=no
5331fi
5332rm -f core conftest.err conftest.$ac_objext \
5333    conftest$ac_exeext conftest.$ac_ext
5334fi
5335
5336
5337		CFLAGS="$xorg_testset_save_CFLAGS"
5338
5339		eval supported=\$$cacheid
5340		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5341$as_echo "$supported" >&6; }
5342		if test "$supported" = "yes" ; then
5343			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5344			found="yes"
5345		fi
5346	fi
5347
5348	if test $found = "no" ; then
5349		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5350			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5351		fi
5352
5353		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5354			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5355		fi
5356
5357		CFLAGS="$CFLAGS -Wformat"
5358
5359		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5360$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5361		cacheid=xorg_cv_cc_flag__Wformat
5362		if eval \${$cacheid+:} false; then :
5363  $as_echo_n "(cached) " >&6
5364else
5365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5366/* end confdefs.h.  */
5367int i;
5368int
5369main ()
5370{
5371
5372  ;
5373  return 0;
5374}
5375_ACEOF
5376if ac_fn_c_try_link "$LINENO"; then :
5377  eval $cacheid=yes
5378else
5379  eval $cacheid=no
5380fi
5381rm -f core conftest.err conftest.$ac_objext \
5382    conftest$ac_exeext conftest.$ac_ext
5383fi
5384
5385
5386		CFLAGS="$xorg_testset_save_CFLAGS"
5387
5388		eval supported=\$$cacheid
5389		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5390$as_echo "$supported" >&6; }
5391		if test "$supported" = "yes" ; then
5392			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5393			found="yes"
5394		fi
5395	fi
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413xorg_testset_save_CFLAGS="$CFLAGS"
5414
5415if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5416	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5417	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5418$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5419if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5420  $as_echo_n "(cached) " >&6
5421else
5422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423/* end confdefs.h.  */
5424int i;
5425_ACEOF
5426if ac_fn_c_try_compile "$LINENO"; then :
5427  xorg_cv_cc_flag_unknown_warning_option=yes
5428else
5429  xorg_cv_cc_flag_unknown_warning_option=no
5430fi
5431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432fi
5433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5434$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5435	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5436	CFLAGS="$xorg_testset_save_CFLAGS"
5437fi
5438
5439if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5440	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5441		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5442	fi
5443	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5444	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5445$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5446if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5447  $as_echo_n "(cached) " >&6
5448else
5449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5450/* end confdefs.h.  */
5451int i;
5452_ACEOF
5453if ac_fn_c_try_compile "$LINENO"; then :
5454  xorg_cv_cc_flag_unused_command_line_argument=yes
5455else
5456  xorg_cv_cc_flag_unused_command_line_argument=no
5457fi
5458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5459fi
5460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5461$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5462	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5463	CFLAGS="$xorg_testset_save_CFLAGS"
5464fi
5465
5466found="no"
5467
5468	if test $found = "no" ; then
5469		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5470			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5471		fi
5472
5473		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5474			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5475		fi
5476
5477		CFLAGS="$CFLAGS -Wstrict-prototypes"
5478
5479		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5480$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5481		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5482		if eval \${$cacheid+:} false; then :
5483  $as_echo_n "(cached) " >&6
5484else
5485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486/* end confdefs.h.  */
5487int i;
5488int
5489main ()
5490{
5491
5492  ;
5493  return 0;
5494}
5495_ACEOF
5496if ac_fn_c_try_link "$LINENO"; then :
5497  eval $cacheid=yes
5498else
5499  eval $cacheid=no
5500fi
5501rm -f core conftest.err conftest.$ac_objext \
5502    conftest$ac_exeext conftest.$ac_ext
5503fi
5504
5505
5506		CFLAGS="$xorg_testset_save_CFLAGS"
5507
5508		eval supported=\$$cacheid
5509		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5510$as_echo "$supported" >&6; }
5511		if test "$supported" = "yes" ; then
5512			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5513			found="yes"
5514		fi
5515	fi
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531xorg_testset_save_CFLAGS="$CFLAGS"
5532
5533if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5534	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5535	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5536$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5537if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5538  $as_echo_n "(cached) " >&6
5539else
5540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541/* end confdefs.h.  */
5542int i;
5543_ACEOF
5544if ac_fn_c_try_compile "$LINENO"; then :
5545  xorg_cv_cc_flag_unknown_warning_option=yes
5546else
5547  xorg_cv_cc_flag_unknown_warning_option=no
5548fi
5549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550fi
5551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5552$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5553	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5554	CFLAGS="$xorg_testset_save_CFLAGS"
5555fi
5556
5557if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5558	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5559		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5560	fi
5561	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5562	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5563$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5564if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5565  $as_echo_n "(cached) " >&6
5566else
5567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568/* end confdefs.h.  */
5569int i;
5570_ACEOF
5571if ac_fn_c_try_compile "$LINENO"; then :
5572  xorg_cv_cc_flag_unused_command_line_argument=yes
5573else
5574  xorg_cv_cc_flag_unused_command_line_argument=no
5575fi
5576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5577fi
5578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5579$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5580	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5581	CFLAGS="$xorg_testset_save_CFLAGS"
5582fi
5583
5584found="no"
5585
5586	if test $found = "no" ; then
5587		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5588			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5589		fi
5590
5591		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5592			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5593		fi
5594
5595		CFLAGS="$CFLAGS -Wmissing-prototypes"
5596
5597		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5598$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5599		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5600		if eval \${$cacheid+:} false; then :
5601  $as_echo_n "(cached) " >&6
5602else
5603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604/* end confdefs.h.  */
5605int i;
5606int
5607main ()
5608{
5609
5610  ;
5611  return 0;
5612}
5613_ACEOF
5614if ac_fn_c_try_link "$LINENO"; then :
5615  eval $cacheid=yes
5616else
5617  eval $cacheid=no
5618fi
5619rm -f core conftest.err conftest.$ac_objext \
5620    conftest$ac_exeext conftest.$ac_ext
5621fi
5622
5623
5624		CFLAGS="$xorg_testset_save_CFLAGS"
5625
5626		eval supported=\$$cacheid
5627		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5628$as_echo "$supported" >&6; }
5629		if test "$supported" = "yes" ; then
5630			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5631			found="yes"
5632		fi
5633	fi
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649xorg_testset_save_CFLAGS="$CFLAGS"
5650
5651if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5652	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5653	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5654$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5655if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5656  $as_echo_n "(cached) " >&6
5657else
5658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659/* end confdefs.h.  */
5660int i;
5661_ACEOF
5662if ac_fn_c_try_compile "$LINENO"; then :
5663  xorg_cv_cc_flag_unknown_warning_option=yes
5664else
5665  xorg_cv_cc_flag_unknown_warning_option=no
5666fi
5667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5668fi
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5670$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5671	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5672	CFLAGS="$xorg_testset_save_CFLAGS"
5673fi
5674
5675if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5676	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5677		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5678	fi
5679	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5680	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5681$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5682if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5683  $as_echo_n "(cached) " >&6
5684else
5685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686/* end confdefs.h.  */
5687int i;
5688_ACEOF
5689if ac_fn_c_try_compile "$LINENO"; then :
5690  xorg_cv_cc_flag_unused_command_line_argument=yes
5691else
5692  xorg_cv_cc_flag_unused_command_line_argument=no
5693fi
5694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5695fi
5696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5697$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5698	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5699	CFLAGS="$xorg_testset_save_CFLAGS"
5700fi
5701
5702found="no"
5703
5704	if test $found = "no" ; then
5705		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5706			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5707		fi
5708
5709		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5710			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5711		fi
5712
5713		CFLAGS="$CFLAGS -Wnested-externs"
5714
5715		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5716$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5717		cacheid=xorg_cv_cc_flag__Wnested_externs
5718		if eval \${$cacheid+:} false; then :
5719  $as_echo_n "(cached) " >&6
5720else
5721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722/* end confdefs.h.  */
5723int i;
5724int
5725main ()
5726{
5727
5728  ;
5729  return 0;
5730}
5731_ACEOF
5732if ac_fn_c_try_link "$LINENO"; then :
5733  eval $cacheid=yes
5734else
5735  eval $cacheid=no
5736fi
5737rm -f core conftest.err conftest.$ac_objext \
5738    conftest$ac_exeext conftest.$ac_ext
5739fi
5740
5741
5742		CFLAGS="$xorg_testset_save_CFLAGS"
5743
5744		eval supported=\$$cacheid
5745		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5746$as_echo "$supported" >&6; }
5747		if test "$supported" = "yes" ; then
5748			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5749			found="yes"
5750		fi
5751	fi
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767xorg_testset_save_CFLAGS="$CFLAGS"
5768
5769if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5770	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5771	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5772$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5773if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5774  $as_echo_n "(cached) " >&6
5775else
5776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777/* end confdefs.h.  */
5778int i;
5779_ACEOF
5780if ac_fn_c_try_compile "$LINENO"; then :
5781  xorg_cv_cc_flag_unknown_warning_option=yes
5782else
5783  xorg_cv_cc_flag_unknown_warning_option=no
5784fi
5785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5786fi
5787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5788$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5789	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5790	CFLAGS="$xorg_testset_save_CFLAGS"
5791fi
5792
5793if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5794	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5795		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5796	fi
5797	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5798	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5799$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5800if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5801  $as_echo_n "(cached) " >&6
5802else
5803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804/* end confdefs.h.  */
5805int i;
5806_ACEOF
5807if ac_fn_c_try_compile "$LINENO"; then :
5808  xorg_cv_cc_flag_unused_command_line_argument=yes
5809else
5810  xorg_cv_cc_flag_unused_command_line_argument=no
5811fi
5812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5813fi
5814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5815$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5816	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5817	CFLAGS="$xorg_testset_save_CFLAGS"
5818fi
5819
5820found="no"
5821
5822	if test $found = "no" ; then
5823		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5824			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5825		fi
5826
5827		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5828			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5829		fi
5830
5831		CFLAGS="$CFLAGS -Wbad-function-cast"
5832
5833		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5834$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5835		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5836		if eval \${$cacheid+:} false; then :
5837  $as_echo_n "(cached) " >&6
5838else
5839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840/* end confdefs.h.  */
5841int i;
5842int
5843main ()
5844{
5845
5846  ;
5847  return 0;
5848}
5849_ACEOF
5850if ac_fn_c_try_link "$LINENO"; then :
5851  eval $cacheid=yes
5852else
5853  eval $cacheid=no
5854fi
5855rm -f core conftest.err conftest.$ac_objext \
5856    conftest$ac_exeext conftest.$ac_ext
5857fi
5858
5859
5860		CFLAGS="$xorg_testset_save_CFLAGS"
5861
5862		eval supported=\$$cacheid
5863		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5864$as_echo "$supported" >&6; }
5865		if test "$supported" = "yes" ; then
5866			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5867			found="yes"
5868		fi
5869	fi
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885xorg_testset_save_CFLAGS="$CFLAGS"
5886
5887if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5888	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5889	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5890$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5891if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5892  $as_echo_n "(cached) " >&6
5893else
5894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895/* end confdefs.h.  */
5896int i;
5897_ACEOF
5898if ac_fn_c_try_compile "$LINENO"; then :
5899  xorg_cv_cc_flag_unknown_warning_option=yes
5900else
5901  xorg_cv_cc_flag_unknown_warning_option=no
5902fi
5903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5904fi
5905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5906$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5907	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5908	CFLAGS="$xorg_testset_save_CFLAGS"
5909fi
5910
5911if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5912	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5913		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5914	fi
5915	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5916	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5917$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5918if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5919  $as_echo_n "(cached) " >&6
5920else
5921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922/* end confdefs.h.  */
5923int i;
5924_ACEOF
5925if ac_fn_c_try_compile "$LINENO"; then :
5926  xorg_cv_cc_flag_unused_command_line_argument=yes
5927else
5928  xorg_cv_cc_flag_unused_command_line_argument=no
5929fi
5930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5931fi
5932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5933$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5934	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5935	CFLAGS="$xorg_testset_save_CFLAGS"
5936fi
5937
5938found="no"
5939
5940	if test $found = "no" ; then
5941		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5942			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5943		fi
5944
5945		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5946			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5947		fi
5948
5949		CFLAGS="$CFLAGS -Wold-style-definition"
5950
5951		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5952$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5953		cacheid=xorg_cv_cc_flag__Wold_style_definition
5954		if eval \${$cacheid+:} false; then :
5955  $as_echo_n "(cached) " >&6
5956else
5957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958/* end confdefs.h.  */
5959int i;
5960int
5961main ()
5962{
5963
5964  ;
5965  return 0;
5966}
5967_ACEOF
5968if ac_fn_c_try_link "$LINENO"; then :
5969  eval $cacheid=yes
5970else
5971  eval $cacheid=no
5972fi
5973rm -f core conftest.err conftest.$ac_objext \
5974    conftest$ac_exeext conftest.$ac_ext
5975fi
5976
5977
5978		CFLAGS="$xorg_testset_save_CFLAGS"
5979
5980		eval supported=\$$cacheid
5981		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5982$as_echo "$supported" >&6; }
5983		if test "$supported" = "yes" ; then
5984			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5985			found="yes"
5986		fi
5987	fi
5988
5989	if test $found = "no" ; then
5990		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5991			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5992		fi
5993
5994		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5995			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5996		fi
5997
5998		CFLAGS="$CFLAGS -fd"
5999
6000		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6001$as_echo_n "checking if $CC supports -fd... " >&6; }
6002		cacheid=xorg_cv_cc_flag__fd
6003		if eval \${$cacheid+:} false; then :
6004  $as_echo_n "(cached) " >&6
6005else
6006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007/* end confdefs.h.  */
6008int i;
6009int
6010main ()
6011{
6012
6013  ;
6014  return 0;
6015}
6016_ACEOF
6017if ac_fn_c_try_link "$LINENO"; then :
6018  eval $cacheid=yes
6019else
6020  eval $cacheid=no
6021fi
6022rm -f core conftest.err conftest.$ac_objext \
6023    conftest$ac_exeext conftest.$ac_ext
6024fi
6025
6026
6027		CFLAGS="$xorg_testset_save_CFLAGS"
6028
6029		eval supported=\$$cacheid
6030		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6031$as_echo "$supported" >&6; }
6032		if test "$supported" = "yes" ; then
6033			BASE_CFLAGS="$BASE_CFLAGS -fd"
6034			found="yes"
6035		fi
6036	fi
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052xorg_testset_save_CFLAGS="$CFLAGS"
6053
6054if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6055	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6056	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6057$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6058if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6059  $as_echo_n "(cached) " >&6
6060else
6061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6062/* end confdefs.h.  */
6063int i;
6064_ACEOF
6065if ac_fn_c_try_compile "$LINENO"; then :
6066  xorg_cv_cc_flag_unknown_warning_option=yes
6067else
6068  xorg_cv_cc_flag_unknown_warning_option=no
6069fi
6070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6071fi
6072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6073$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6074	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6075	CFLAGS="$xorg_testset_save_CFLAGS"
6076fi
6077
6078if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6079	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6080		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6081	fi
6082	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6083	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6084$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6085if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6086  $as_echo_n "(cached) " >&6
6087else
6088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6089/* end confdefs.h.  */
6090int i;
6091_ACEOF
6092if ac_fn_c_try_compile "$LINENO"; then :
6093  xorg_cv_cc_flag_unused_command_line_argument=yes
6094else
6095  xorg_cv_cc_flag_unused_command_line_argument=no
6096fi
6097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098fi
6099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6100$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6101	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6102	CFLAGS="$xorg_testset_save_CFLAGS"
6103fi
6104
6105found="no"
6106
6107	if test $found = "no" ; then
6108		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6109			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6110		fi
6111
6112		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6113			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6114		fi
6115
6116		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6117
6118		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6119$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6120		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6121		if eval \${$cacheid+:} false; then :
6122  $as_echo_n "(cached) " >&6
6123else
6124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125/* end confdefs.h.  */
6126int i;
6127int
6128main ()
6129{
6130
6131  ;
6132  return 0;
6133}
6134_ACEOF
6135if ac_fn_c_try_link "$LINENO"; then :
6136  eval $cacheid=yes
6137else
6138  eval $cacheid=no
6139fi
6140rm -f core conftest.err conftest.$ac_objext \
6141    conftest$ac_exeext conftest.$ac_ext
6142fi
6143
6144
6145		CFLAGS="$xorg_testset_save_CFLAGS"
6146
6147		eval supported=\$$cacheid
6148		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6149$as_echo "$supported" >&6; }
6150		if test "$supported" = "yes" ; then
6151			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6152			found="yes"
6153		fi
6154	fi
6155
6156
6157
6158
6159
6160# This chunk adds additional warnings that could catch undesired effects.
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174xorg_testset_save_CFLAGS="$CFLAGS"
6175
6176if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6177	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6178	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6179$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6180if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6181  $as_echo_n "(cached) " >&6
6182else
6183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184/* end confdefs.h.  */
6185int i;
6186_ACEOF
6187if ac_fn_c_try_compile "$LINENO"; then :
6188  xorg_cv_cc_flag_unknown_warning_option=yes
6189else
6190  xorg_cv_cc_flag_unknown_warning_option=no
6191fi
6192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6193fi
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6195$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6196	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6197	CFLAGS="$xorg_testset_save_CFLAGS"
6198fi
6199
6200if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6201	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6202		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6203	fi
6204	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6205	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6206$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6207if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6208  $as_echo_n "(cached) " >&6
6209else
6210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6211/* end confdefs.h.  */
6212int i;
6213_ACEOF
6214if ac_fn_c_try_compile "$LINENO"; then :
6215  xorg_cv_cc_flag_unused_command_line_argument=yes
6216else
6217  xorg_cv_cc_flag_unused_command_line_argument=no
6218fi
6219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6220fi
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6222$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6223	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6224	CFLAGS="$xorg_testset_save_CFLAGS"
6225fi
6226
6227found="no"
6228
6229	if test $found = "no" ; then
6230		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6231			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6232		fi
6233
6234		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6235			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6236		fi
6237
6238		CFLAGS="$CFLAGS -Wunused"
6239
6240		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6241$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6242		cacheid=xorg_cv_cc_flag__Wunused
6243		if eval \${$cacheid+:} false; then :
6244  $as_echo_n "(cached) " >&6
6245else
6246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6247/* end confdefs.h.  */
6248int i;
6249int
6250main ()
6251{
6252
6253  ;
6254  return 0;
6255}
6256_ACEOF
6257if ac_fn_c_try_link "$LINENO"; then :
6258  eval $cacheid=yes
6259else
6260  eval $cacheid=no
6261fi
6262rm -f core conftest.err conftest.$ac_objext \
6263    conftest$ac_exeext conftest.$ac_ext
6264fi
6265
6266
6267		CFLAGS="$xorg_testset_save_CFLAGS"
6268
6269		eval supported=\$$cacheid
6270		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6271$as_echo "$supported" >&6; }
6272		if test "$supported" = "yes" ; then
6273			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6274			found="yes"
6275		fi
6276	fi
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292xorg_testset_save_CFLAGS="$CFLAGS"
6293
6294if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6295	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6296	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6297$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6298if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6299  $as_echo_n "(cached) " >&6
6300else
6301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6302/* end confdefs.h.  */
6303int i;
6304_ACEOF
6305if ac_fn_c_try_compile "$LINENO"; then :
6306  xorg_cv_cc_flag_unknown_warning_option=yes
6307else
6308  xorg_cv_cc_flag_unknown_warning_option=no
6309fi
6310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6311fi
6312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6313$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6314	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6315	CFLAGS="$xorg_testset_save_CFLAGS"
6316fi
6317
6318if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6319	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6320		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6321	fi
6322	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6323	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6324$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6325if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6326  $as_echo_n "(cached) " >&6
6327else
6328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329/* end confdefs.h.  */
6330int i;
6331_ACEOF
6332if ac_fn_c_try_compile "$LINENO"; then :
6333  xorg_cv_cc_flag_unused_command_line_argument=yes
6334else
6335  xorg_cv_cc_flag_unused_command_line_argument=no
6336fi
6337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6338fi
6339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6340$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6341	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6342	CFLAGS="$xorg_testset_save_CFLAGS"
6343fi
6344
6345found="no"
6346
6347	if test $found = "no" ; then
6348		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6349			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6350		fi
6351
6352		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6353			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6354		fi
6355
6356		CFLAGS="$CFLAGS -Wuninitialized"
6357
6358		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6359$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6360		cacheid=xorg_cv_cc_flag__Wuninitialized
6361		if eval \${$cacheid+:} false; then :
6362  $as_echo_n "(cached) " >&6
6363else
6364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365/* end confdefs.h.  */
6366int i;
6367int
6368main ()
6369{
6370
6371  ;
6372  return 0;
6373}
6374_ACEOF
6375if ac_fn_c_try_link "$LINENO"; then :
6376  eval $cacheid=yes
6377else
6378  eval $cacheid=no
6379fi
6380rm -f core conftest.err conftest.$ac_objext \
6381    conftest$ac_exeext conftest.$ac_ext
6382fi
6383
6384
6385		CFLAGS="$xorg_testset_save_CFLAGS"
6386
6387		eval supported=\$$cacheid
6388		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6389$as_echo "$supported" >&6; }
6390		if test "$supported" = "yes" ; then
6391			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6392			found="yes"
6393		fi
6394	fi
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410xorg_testset_save_CFLAGS="$CFLAGS"
6411
6412if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6413	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6414	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6415$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6416if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6417  $as_echo_n "(cached) " >&6
6418else
6419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6420/* end confdefs.h.  */
6421int i;
6422_ACEOF
6423if ac_fn_c_try_compile "$LINENO"; then :
6424  xorg_cv_cc_flag_unknown_warning_option=yes
6425else
6426  xorg_cv_cc_flag_unknown_warning_option=no
6427fi
6428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429fi
6430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6431$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6432	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6433	CFLAGS="$xorg_testset_save_CFLAGS"
6434fi
6435
6436if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6437	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6438		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6439	fi
6440	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6441	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6442$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6443if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6444  $as_echo_n "(cached) " >&6
6445else
6446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447/* end confdefs.h.  */
6448int i;
6449_ACEOF
6450if ac_fn_c_try_compile "$LINENO"; then :
6451  xorg_cv_cc_flag_unused_command_line_argument=yes
6452else
6453  xorg_cv_cc_flag_unused_command_line_argument=no
6454fi
6455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6456fi
6457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6458$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6459	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6460	CFLAGS="$xorg_testset_save_CFLAGS"
6461fi
6462
6463found="no"
6464
6465	if test $found = "no" ; then
6466		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6467			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6468		fi
6469
6470		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6471			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6472		fi
6473
6474		CFLAGS="$CFLAGS -Wshadow"
6475
6476		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6477$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6478		cacheid=xorg_cv_cc_flag__Wshadow
6479		if eval \${$cacheid+:} false; then :
6480  $as_echo_n "(cached) " >&6
6481else
6482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483/* end confdefs.h.  */
6484int i;
6485int
6486main ()
6487{
6488
6489  ;
6490  return 0;
6491}
6492_ACEOF
6493if ac_fn_c_try_link "$LINENO"; then :
6494  eval $cacheid=yes
6495else
6496  eval $cacheid=no
6497fi
6498rm -f core conftest.err conftest.$ac_objext \
6499    conftest$ac_exeext conftest.$ac_ext
6500fi
6501
6502
6503		CFLAGS="$xorg_testset_save_CFLAGS"
6504
6505		eval supported=\$$cacheid
6506		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6507$as_echo "$supported" >&6; }
6508		if test "$supported" = "yes" ; then
6509			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6510			found="yes"
6511		fi
6512	fi
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528xorg_testset_save_CFLAGS="$CFLAGS"
6529
6530if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6531	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6532	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6533$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6534if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6535  $as_echo_n "(cached) " >&6
6536else
6537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538/* end confdefs.h.  */
6539int i;
6540_ACEOF
6541if ac_fn_c_try_compile "$LINENO"; then :
6542  xorg_cv_cc_flag_unknown_warning_option=yes
6543else
6544  xorg_cv_cc_flag_unknown_warning_option=no
6545fi
6546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6547fi
6548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6549$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6550	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6551	CFLAGS="$xorg_testset_save_CFLAGS"
6552fi
6553
6554if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6555	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6556		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6557	fi
6558	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6559	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6560$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6561if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6562  $as_echo_n "(cached) " >&6
6563else
6564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565/* end confdefs.h.  */
6566int i;
6567_ACEOF
6568if ac_fn_c_try_compile "$LINENO"; then :
6569  xorg_cv_cc_flag_unused_command_line_argument=yes
6570else
6571  xorg_cv_cc_flag_unused_command_line_argument=no
6572fi
6573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6574fi
6575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6576$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6577	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6578	CFLAGS="$xorg_testset_save_CFLAGS"
6579fi
6580
6581found="no"
6582
6583	if test $found = "no" ; then
6584		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6585			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6586		fi
6587
6588		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6589			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6590		fi
6591
6592		CFLAGS="$CFLAGS -Wmissing-noreturn"
6593
6594		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6595$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6596		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6597		if eval \${$cacheid+:} false; then :
6598  $as_echo_n "(cached) " >&6
6599else
6600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6601/* end confdefs.h.  */
6602int i;
6603int
6604main ()
6605{
6606
6607  ;
6608  return 0;
6609}
6610_ACEOF
6611if ac_fn_c_try_link "$LINENO"; then :
6612  eval $cacheid=yes
6613else
6614  eval $cacheid=no
6615fi
6616rm -f core conftest.err conftest.$ac_objext \
6617    conftest$ac_exeext conftest.$ac_ext
6618fi
6619
6620
6621		CFLAGS="$xorg_testset_save_CFLAGS"
6622
6623		eval supported=\$$cacheid
6624		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6625$as_echo "$supported" >&6; }
6626		if test "$supported" = "yes" ; then
6627			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6628			found="yes"
6629		fi
6630	fi
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646xorg_testset_save_CFLAGS="$CFLAGS"
6647
6648if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6649	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6650	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6651$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6652if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6653  $as_echo_n "(cached) " >&6
6654else
6655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656/* end confdefs.h.  */
6657int i;
6658_ACEOF
6659if ac_fn_c_try_compile "$LINENO"; then :
6660  xorg_cv_cc_flag_unknown_warning_option=yes
6661else
6662  xorg_cv_cc_flag_unknown_warning_option=no
6663fi
6664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6665fi
6666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6667$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6668	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6669	CFLAGS="$xorg_testset_save_CFLAGS"
6670fi
6671
6672if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6673	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6674		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6675	fi
6676	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6677	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6678$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6679if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6680  $as_echo_n "(cached) " >&6
6681else
6682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683/* end confdefs.h.  */
6684int i;
6685_ACEOF
6686if ac_fn_c_try_compile "$LINENO"; then :
6687  xorg_cv_cc_flag_unused_command_line_argument=yes
6688else
6689  xorg_cv_cc_flag_unused_command_line_argument=no
6690fi
6691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692fi
6693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6694$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6695	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6696	CFLAGS="$xorg_testset_save_CFLAGS"
6697fi
6698
6699found="no"
6700
6701	if test $found = "no" ; then
6702		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6703			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6704		fi
6705
6706		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6707			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6708		fi
6709
6710		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6711
6712		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6713$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6714		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6715		if eval \${$cacheid+:} false; then :
6716  $as_echo_n "(cached) " >&6
6717else
6718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6719/* end confdefs.h.  */
6720int i;
6721int
6722main ()
6723{
6724
6725  ;
6726  return 0;
6727}
6728_ACEOF
6729if ac_fn_c_try_link "$LINENO"; then :
6730  eval $cacheid=yes
6731else
6732  eval $cacheid=no
6733fi
6734rm -f core conftest.err conftest.$ac_objext \
6735    conftest$ac_exeext conftest.$ac_ext
6736fi
6737
6738
6739		CFLAGS="$xorg_testset_save_CFLAGS"
6740
6741		eval supported=\$$cacheid
6742		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6743$as_echo "$supported" >&6; }
6744		if test "$supported" = "yes" ; then
6745			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6746			found="yes"
6747		fi
6748	fi
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764xorg_testset_save_CFLAGS="$CFLAGS"
6765
6766if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6767	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6768	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6769$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6770if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6771  $as_echo_n "(cached) " >&6
6772else
6773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6774/* end confdefs.h.  */
6775int i;
6776_ACEOF
6777if ac_fn_c_try_compile "$LINENO"; then :
6778  xorg_cv_cc_flag_unknown_warning_option=yes
6779else
6780  xorg_cv_cc_flag_unknown_warning_option=no
6781fi
6782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6783fi
6784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6785$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6786	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6787	CFLAGS="$xorg_testset_save_CFLAGS"
6788fi
6789
6790if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6791	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6792		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6793	fi
6794	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6795	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6796$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6797if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6798  $as_echo_n "(cached) " >&6
6799else
6800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801/* end confdefs.h.  */
6802int i;
6803_ACEOF
6804if ac_fn_c_try_compile "$LINENO"; then :
6805  xorg_cv_cc_flag_unused_command_line_argument=yes
6806else
6807  xorg_cv_cc_flag_unused_command_line_argument=no
6808fi
6809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6810fi
6811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6812$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6813	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6814	CFLAGS="$xorg_testset_save_CFLAGS"
6815fi
6816
6817found="no"
6818
6819	if test $found = "no" ; then
6820		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6821			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6822		fi
6823
6824		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6825			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6826		fi
6827
6828		CFLAGS="$CFLAGS -Wredundant-decls"
6829
6830		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6831$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6832		cacheid=xorg_cv_cc_flag__Wredundant_decls
6833		if eval \${$cacheid+:} false; then :
6834  $as_echo_n "(cached) " >&6
6835else
6836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837/* end confdefs.h.  */
6838int i;
6839int
6840main ()
6841{
6842
6843  ;
6844  return 0;
6845}
6846_ACEOF
6847if ac_fn_c_try_link "$LINENO"; then :
6848  eval $cacheid=yes
6849else
6850  eval $cacheid=no
6851fi
6852rm -f core conftest.err conftest.$ac_objext \
6853    conftest$ac_exeext conftest.$ac_ext
6854fi
6855
6856
6857		CFLAGS="$xorg_testset_save_CFLAGS"
6858
6859		eval supported=\$$cacheid
6860		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6861$as_echo "$supported" >&6; }
6862		if test "$supported" = "yes" ; then
6863			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6864			found="yes"
6865		fi
6866	fi
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882xorg_testset_save_CFLAGS="$CFLAGS"
6883
6884if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6885	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6886	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6887$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6888if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6889  $as_echo_n "(cached) " >&6
6890else
6891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892/* end confdefs.h.  */
6893int i;
6894_ACEOF
6895if ac_fn_c_try_compile "$LINENO"; then :
6896  xorg_cv_cc_flag_unknown_warning_option=yes
6897else
6898  xorg_cv_cc_flag_unknown_warning_option=no
6899fi
6900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6901fi
6902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6903$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6904	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6905	CFLAGS="$xorg_testset_save_CFLAGS"
6906fi
6907
6908if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6909	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6910		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6911	fi
6912	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6913	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6914$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6915if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6916  $as_echo_n "(cached) " >&6
6917else
6918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919/* end confdefs.h.  */
6920int i;
6921_ACEOF
6922if ac_fn_c_try_compile "$LINENO"; then :
6923  xorg_cv_cc_flag_unused_command_line_argument=yes
6924else
6925  xorg_cv_cc_flag_unused_command_line_argument=no
6926fi
6927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6928fi
6929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6930$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6931	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6932	CFLAGS="$xorg_testset_save_CFLAGS"
6933fi
6934
6935found="no"
6936
6937	if test $found = "no" ; then
6938		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6939			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6940		fi
6941
6942		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6943			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6944		fi
6945
6946		CFLAGS="$CFLAGS -Wlogical-op"
6947
6948		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6949$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6950		cacheid=xorg_cv_cc_flag__Wlogical_op
6951		if eval \${$cacheid+:} false; then :
6952  $as_echo_n "(cached) " >&6
6953else
6954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955/* end confdefs.h.  */
6956int i;
6957int
6958main ()
6959{
6960
6961  ;
6962  return 0;
6963}
6964_ACEOF
6965if ac_fn_c_try_link "$LINENO"; then :
6966  eval $cacheid=yes
6967else
6968  eval $cacheid=no
6969fi
6970rm -f core conftest.err conftest.$ac_objext \
6971    conftest$ac_exeext conftest.$ac_ext
6972fi
6973
6974
6975		CFLAGS="$xorg_testset_save_CFLAGS"
6976
6977		eval supported=\$$cacheid
6978		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6979$as_echo "$supported" >&6; }
6980		if test "$supported" = "yes" ; then
6981			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6982			found="yes"
6983		fi
6984	fi
6985
6986
6987
6988# These are currently disabled because they are noisy.  They will be enabled
6989# in the future once the codebase is sufficiently modernized to silence
6990# them.  For now, I don't want them to drown out the other warnings.
6991# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6992# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6993# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6994
6995# Turn some warnings into errors, so we don't accidently get successful builds
6996# when there are problems that should be fixed.
6997
6998if test "x$SELECTIVE_WERROR" = "xyes" ; then
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012xorg_testset_save_CFLAGS="$CFLAGS"
7013
7014if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7015	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7016	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7017$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7018if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7019  $as_echo_n "(cached) " >&6
7020else
7021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022/* end confdefs.h.  */
7023int i;
7024_ACEOF
7025if ac_fn_c_try_compile "$LINENO"; then :
7026  xorg_cv_cc_flag_unknown_warning_option=yes
7027else
7028  xorg_cv_cc_flag_unknown_warning_option=no
7029fi
7030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7031fi
7032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7033$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7034	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7035	CFLAGS="$xorg_testset_save_CFLAGS"
7036fi
7037
7038if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7039	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7040		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7041	fi
7042	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7043	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7044$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7045if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7046  $as_echo_n "(cached) " >&6
7047else
7048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049/* end confdefs.h.  */
7050int i;
7051_ACEOF
7052if ac_fn_c_try_compile "$LINENO"; then :
7053  xorg_cv_cc_flag_unused_command_line_argument=yes
7054else
7055  xorg_cv_cc_flag_unused_command_line_argument=no
7056fi
7057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7058fi
7059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7060$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7061	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7062	CFLAGS="$xorg_testset_save_CFLAGS"
7063fi
7064
7065found="no"
7066
7067	if test $found = "no" ; then
7068		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7069			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7070		fi
7071
7072		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7073			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7074		fi
7075
7076		CFLAGS="$CFLAGS -Werror=implicit"
7077
7078		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7079$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7080		cacheid=xorg_cv_cc_flag__Werror_implicit
7081		if eval \${$cacheid+:} false; then :
7082  $as_echo_n "(cached) " >&6
7083else
7084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7085/* end confdefs.h.  */
7086int i;
7087int
7088main ()
7089{
7090
7091  ;
7092  return 0;
7093}
7094_ACEOF
7095if ac_fn_c_try_link "$LINENO"; then :
7096  eval $cacheid=yes
7097else
7098  eval $cacheid=no
7099fi
7100rm -f core conftest.err conftest.$ac_objext \
7101    conftest$ac_exeext conftest.$ac_ext
7102fi
7103
7104
7105		CFLAGS="$xorg_testset_save_CFLAGS"
7106
7107		eval supported=\$$cacheid
7108		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7109$as_echo "$supported" >&6; }
7110		if test "$supported" = "yes" ; then
7111			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7112			found="yes"
7113		fi
7114	fi
7115
7116	if test $found = "no" ; then
7117		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7118			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7119		fi
7120
7121		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7122			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7123		fi
7124
7125		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7126
7127		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7128$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7129		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7130		if eval \${$cacheid+:} false; then :
7131  $as_echo_n "(cached) " >&6
7132else
7133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7134/* end confdefs.h.  */
7135int i;
7136int
7137main ()
7138{
7139
7140  ;
7141  return 0;
7142}
7143_ACEOF
7144if ac_fn_c_try_link "$LINENO"; then :
7145  eval $cacheid=yes
7146else
7147  eval $cacheid=no
7148fi
7149rm -f core conftest.err conftest.$ac_objext \
7150    conftest$ac_exeext conftest.$ac_ext
7151fi
7152
7153
7154		CFLAGS="$xorg_testset_save_CFLAGS"
7155
7156		eval supported=\$$cacheid
7157		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7158$as_echo "$supported" >&6; }
7159		if test "$supported" = "yes" ; then
7160			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7161			found="yes"
7162		fi
7163	fi
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179xorg_testset_save_CFLAGS="$CFLAGS"
7180
7181if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7182	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7183	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7184$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7185if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7186  $as_echo_n "(cached) " >&6
7187else
7188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189/* end confdefs.h.  */
7190int i;
7191_ACEOF
7192if ac_fn_c_try_compile "$LINENO"; then :
7193  xorg_cv_cc_flag_unknown_warning_option=yes
7194else
7195  xorg_cv_cc_flag_unknown_warning_option=no
7196fi
7197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7198fi
7199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7200$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7201	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7202	CFLAGS="$xorg_testset_save_CFLAGS"
7203fi
7204
7205if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7206	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7207		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7208	fi
7209	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7210	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7211$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7212if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7213  $as_echo_n "(cached) " >&6
7214else
7215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7216/* end confdefs.h.  */
7217int i;
7218_ACEOF
7219if ac_fn_c_try_compile "$LINENO"; then :
7220  xorg_cv_cc_flag_unused_command_line_argument=yes
7221else
7222  xorg_cv_cc_flag_unused_command_line_argument=no
7223fi
7224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7225fi
7226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7227$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7228	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7229	CFLAGS="$xorg_testset_save_CFLAGS"
7230fi
7231
7232found="no"
7233
7234	if test $found = "no" ; then
7235		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7236			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7237		fi
7238
7239		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7240			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7241		fi
7242
7243		CFLAGS="$CFLAGS -Werror=nonnull"
7244
7245		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7246$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7247		cacheid=xorg_cv_cc_flag__Werror_nonnull
7248		if eval \${$cacheid+:} false; then :
7249  $as_echo_n "(cached) " >&6
7250else
7251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7252/* end confdefs.h.  */
7253int i;
7254int
7255main ()
7256{
7257
7258  ;
7259  return 0;
7260}
7261_ACEOF
7262if ac_fn_c_try_link "$LINENO"; then :
7263  eval $cacheid=yes
7264else
7265  eval $cacheid=no
7266fi
7267rm -f core conftest.err conftest.$ac_objext \
7268    conftest$ac_exeext conftest.$ac_ext
7269fi
7270
7271
7272		CFLAGS="$xorg_testset_save_CFLAGS"
7273
7274		eval supported=\$$cacheid
7275		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7276$as_echo "$supported" >&6; }
7277		if test "$supported" = "yes" ; then
7278			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7279			found="yes"
7280		fi
7281	fi
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297xorg_testset_save_CFLAGS="$CFLAGS"
7298
7299if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7300	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7301	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7302$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7303if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7304  $as_echo_n "(cached) " >&6
7305else
7306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7307/* end confdefs.h.  */
7308int i;
7309_ACEOF
7310if ac_fn_c_try_compile "$LINENO"; then :
7311  xorg_cv_cc_flag_unknown_warning_option=yes
7312else
7313  xorg_cv_cc_flag_unknown_warning_option=no
7314fi
7315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7316fi
7317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7318$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7319	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7320	CFLAGS="$xorg_testset_save_CFLAGS"
7321fi
7322
7323if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7324	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7325		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7326	fi
7327	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7328	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7329$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7330if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7331  $as_echo_n "(cached) " >&6
7332else
7333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7334/* end confdefs.h.  */
7335int i;
7336_ACEOF
7337if ac_fn_c_try_compile "$LINENO"; then :
7338  xorg_cv_cc_flag_unused_command_line_argument=yes
7339else
7340  xorg_cv_cc_flag_unused_command_line_argument=no
7341fi
7342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7343fi
7344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7345$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7346	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7347	CFLAGS="$xorg_testset_save_CFLAGS"
7348fi
7349
7350found="no"
7351
7352	if test $found = "no" ; then
7353		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7354			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7355		fi
7356
7357		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7358			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7359		fi
7360
7361		CFLAGS="$CFLAGS -Werror=init-self"
7362
7363		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7364$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7365		cacheid=xorg_cv_cc_flag__Werror_init_self
7366		if eval \${$cacheid+:} false; then :
7367  $as_echo_n "(cached) " >&6
7368else
7369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370/* end confdefs.h.  */
7371int i;
7372int
7373main ()
7374{
7375
7376  ;
7377  return 0;
7378}
7379_ACEOF
7380if ac_fn_c_try_link "$LINENO"; then :
7381  eval $cacheid=yes
7382else
7383  eval $cacheid=no
7384fi
7385rm -f core conftest.err conftest.$ac_objext \
7386    conftest$ac_exeext conftest.$ac_ext
7387fi
7388
7389
7390		CFLAGS="$xorg_testset_save_CFLAGS"
7391
7392		eval supported=\$$cacheid
7393		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7394$as_echo "$supported" >&6; }
7395		if test "$supported" = "yes" ; then
7396			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7397			found="yes"
7398		fi
7399	fi
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415xorg_testset_save_CFLAGS="$CFLAGS"
7416
7417if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7418	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7419	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7420$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7421if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7422  $as_echo_n "(cached) " >&6
7423else
7424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425/* end confdefs.h.  */
7426int i;
7427_ACEOF
7428if ac_fn_c_try_compile "$LINENO"; then :
7429  xorg_cv_cc_flag_unknown_warning_option=yes
7430else
7431  xorg_cv_cc_flag_unknown_warning_option=no
7432fi
7433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7434fi
7435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7436$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7437	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7438	CFLAGS="$xorg_testset_save_CFLAGS"
7439fi
7440
7441if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7442	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7443		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7444	fi
7445	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7446	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7447$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7448if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7449  $as_echo_n "(cached) " >&6
7450else
7451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452/* end confdefs.h.  */
7453int i;
7454_ACEOF
7455if ac_fn_c_try_compile "$LINENO"; then :
7456  xorg_cv_cc_flag_unused_command_line_argument=yes
7457else
7458  xorg_cv_cc_flag_unused_command_line_argument=no
7459fi
7460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7461fi
7462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7463$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7464	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7465	CFLAGS="$xorg_testset_save_CFLAGS"
7466fi
7467
7468found="no"
7469
7470	if test $found = "no" ; then
7471		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7472			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7473		fi
7474
7475		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7476			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7477		fi
7478
7479		CFLAGS="$CFLAGS -Werror=main"
7480
7481		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7482$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7483		cacheid=xorg_cv_cc_flag__Werror_main
7484		if eval \${$cacheid+:} false; then :
7485  $as_echo_n "(cached) " >&6
7486else
7487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488/* end confdefs.h.  */
7489int i;
7490int
7491main ()
7492{
7493
7494  ;
7495  return 0;
7496}
7497_ACEOF
7498if ac_fn_c_try_link "$LINENO"; then :
7499  eval $cacheid=yes
7500else
7501  eval $cacheid=no
7502fi
7503rm -f core conftest.err conftest.$ac_objext \
7504    conftest$ac_exeext conftest.$ac_ext
7505fi
7506
7507
7508		CFLAGS="$xorg_testset_save_CFLAGS"
7509
7510		eval supported=\$$cacheid
7511		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7512$as_echo "$supported" >&6; }
7513		if test "$supported" = "yes" ; then
7514			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7515			found="yes"
7516		fi
7517	fi
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533xorg_testset_save_CFLAGS="$CFLAGS"
7534
7535if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7536	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7537	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7538$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7539if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7540  $as_echo_n "(cached) " >&6
7541else
7542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543/* end confdefs.h.  */
7544int i;
7545_ACEOF
7546if ac_fn_c_try_compile "$LINENO"; then :
7547  xorg_cv_cc_flag_unknown_warning_option=yes
7548else
7549  xorg_cv_cc_flag_unknown_warning_option=no
7550fi
7551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7552fi
7553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7554$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7555	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7556	CFLAGS="$xorg_testset_save_CFLAGS"
7557fi
7558
7559if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7560	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7561		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7562	fi
7563	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7564	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7565$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7566if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7567  $as_echo_n "(cached) " >&6
7568else
7569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570/* end confdefs.h.  */
7571int i;
7572_ACEOF
7573if ac_fn_c_try_compile "$LINENO"; then :
7574  xorg_cv_cc_flag_unused_command_line_argument=yes
7575else
7576  xorg_cv_cc_flag_unused_command_line_argument=no
7577fi
7578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7579fi
7580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7581$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7582	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7583	CFLAGS="$xorg_testset_save_CFLAGS"
7584fi
7585
7586found="no"
7587
7588	if test $found = "no" ; then
7589		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7590			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7591		fi
7592
7593		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7594			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7595		fi
7596
7597		CFLAGS="$CFLAGS -Werror=missing-braces"
7598
7599		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7600$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7601		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7602		if eval \${$cacheid+:} false; then :
7603  $as_echo_n "(cached) " >&6
7604else
7605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7606/* end confdefs.h.  */
7607int i;
7608int
7609main ()
7610{
7611
7612  ;
7613  return 0;
7614}
7615_ACEOF
7616if ac_fn_c_try_link "$LINENO"; then :
7617  eval $cacheid=yes
7618else
7619  eval $cacheid=no
7620fi
7621rm -f core conftest.err conftest.$ac_objext \
7622    conftest$ac_exeext conftest.$ac_ext
7623fi
7624
7625
7626		CFLAGS="$xorg_testset_save_CFLAGS"
7627
7628		eval supported=\$$cacheid
7629		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7630$as_echo "$supported" >&6; }
7631		if test "$supported" = "yes" ; then
7632			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7633			found="yes"
7634		fi
7635	fi
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651xorg_testset_save_CFLAGS="$CFLAGS"
7652
7653if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7654	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7655	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7656$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7657if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7658  $as_echo_n "(cached) " >&6
7659else
7660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7661/* end confdefs.h.  */
7662int i;
7663_ACEOF
7664if ac_fn_c_try_compile "$LINENO"; then :
7665  xorg_cv_cc_flag_unknown_warning_option=yes
7666else
7667  xorg_cv_cc_flag_unknown_warning_option=no
7668fi
7669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7670fi
7671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7672$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7673	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7674	CFLAGS="$xorg_testset_save_CFLAGS"
7675fi
7676
7677if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7678	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7679		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7680	fi
7681	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7682	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7683$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7684if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7685  $as_echo_n "(cached) " >&6
7686else
7687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688/* end confdefs.h.  */
7689int i;
7690_ACEOF
7691if ac_fn_c_try_compile "$LINENO"; then :
7692  xorg_cv_cc_flag_unused_command_line_argument=yes
7693else
7694  xorg_cv_cc_flag_unused_command_line_argument=no
7695fi
7696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7697fi
7698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7699$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7700	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7701	CFLAGS="$xorg_testset_save_CFLAGS"
7702fi
7703
7704found="no"
7705
7706	if test $found = "no" ; then
7707		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7708			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7709		fi
7710
7711		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7712			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7713		fi
7714
7715		CFLAGS="$CFLAGS -Werror=sequence-point"
7716
7717		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7718$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7719		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7720		if eval \${$cacheid+:} false; then :
7721  $as_echo_n "(cached) " >&6
7722else
7723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724/* end confdefs.h.  */
7725int i;
7726int
7727main ()
7728{
7729
7730  ;
7731  return 0;
7732}
7733_ACEOF
7734if ac_fn_c_try_link "$LINENO"; then :
7735  eval $cacheid=yes
7736else
7737  eval $cacheid=no
7738fi
7739rm -f core conftest.err conftest.$ac_objext \
7740    conftest$ac_exeext conftest.$ac_ext
7741fi
7742
7743
7744		CFLAGS="$xorg_testset_save_CFLAGS"
7745
7746		eval supported=\$$cacheid
7747		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7748$as_echo "$supported" >&6; }
7749		if test "$supported" = "yes" ; then
7750			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7751			found="yes"
7752		fi
7753	fi
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769xorg_testset_save_CFLAGS="$CFLAGS"
7770
7771if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7772	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7773	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7774$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7775if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7776  $as_echo_n "(cached) " >&6
7777else
7778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779/* end confdefs.h.  */
7780int i;
7781_ACEOF
7782if ac_fn_c_try_compile "$LINENO"; then :
7783  xorg_cv_cc_flag_unknown_warning_option=yes
7784else
7785  xorg_cv_cc_flag_unknown_warning_option=no
7786fi
7787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7788fi
7789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7790$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7791	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7792	CFLAGS="$xorg_testset_save_CFLAGS"
7793fi
7794
7795if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7796	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7797		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7798	fi
7799	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7800	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7801$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7802if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7803  $as_echo_n "(cached) " >&6
7804else
7805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806/* end confdefs.h.  */
7807int i;
7808_ACEOF
7809if ac_fn_c_try_compile "$LINENO"; then :
7810  xorg_cv_cc_flag_unused_command_line_argument=yes
7811else
7812  xorg_cv_cc_flag_unused_command_line_argument=no
7813fi
7814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7815fi
7816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7817$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7818	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7819	CFLAGS="$xorg_testset_save_CFLAGS"
7820fi
7821
7822found="no"
7823
7824	if test $found = "no" ; then
7825		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7826			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7827		fi
7828
7829		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7830			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7831		fi
7832
7833		CFLAGS="$CFLAGS -Werror=return-type"
7834
7835		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7836$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7837		cacheid=xorg_cv_cc_flag__Werror_return_type
7838		if eval \${$cacheid+:} false; then :
7839  $as_echo_n "(cached) " >&6
7840else
7841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842/* end confdefs.h.  */
7843int i;
7844int
7845main ()
7846{
7847
7848  ;
7849  return 0;
7850}
7851_ACEOF
7852if ac_fn_c_try_link "$LINENO"; then :
7853  eval $cacheid=yes
7854else
7855  eval $cacheid=no
7856fi
7857rm -f core conftest.err conftest.$ac_objext \
7858    conftest$ac_exeext conftest.$ac_ext
7859fi
7860
7861
7862		CFLAGS="$xorg_testset_save_CFLAGS"
7863
7864		eval supported=\$$cacheid
7865		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7866$as_echo "$supported" >&6; }
7867		if test "$supported" = "yes" ; then
7868			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7869			found="yes"
7870		fi
7871	fi
7872
7873	if test $found = "no" ; then
7874		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7875			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7876		fi
7877
7878		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7879			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7880		fi
7881
7882		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7883
7884		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7885$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7886		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7887		if eval \${$cacheid+:} false; then :
7888  $as_echo_n "(cached) " >&6
7889else
7890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7891/* end confdefs.h.  */
7892int i;
7893int
7894main ()
7895{
7896
7897  ;
7898  return 0;
7899}
7900_ACEOF
7901if ac_fn_c_try_link "$LINENO"; then :
7902  eval $cacheid=yes
7903else
7904  eval $cacheid=no
7905fi
7906rm -f core conftest.err conftest.$ac_objext \
7907    conftest$ac_exeext conftest.$ac_ext
7908fi
7909
7910
7911		CFLAGS="$xorg_testset_save_CFLAGS"
7912
7913		eval supported=\$$cacheid
7914		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7915$as_echo "$supported" >&6; }
7916		if test "$supported" = "yes" ; then
7917			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7918			found="yes"
7919		fi
7920	fi
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936xorg_testset_save_CFLAGS="$CFLAGS"
7937
7938if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7939	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7940	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7941$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7942if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7943  $as_echo_n "(cached) " >&6
7944else
7945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946/* end confdefs.h.  */
7947int i;
7948_ACEOF
7949if ac_fn_c_try_compile "$LINENO"; then :
7950  xorg_cv_cc_flag_unknown_warning_option=yes
7951else
7952  xorg_cv_cc_flag_unknown_warning_option=no
7953fi
7954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7955fi
7956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7957$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7958	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7959	CFLAGS="$xorg_testset_save_CFLAGS"
7960fi
7961
7962if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7963	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7964		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7965	fi
7966	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7967	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7968$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7969if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7970  $as_echo_n "(cached) " >&6
7971else
7972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973/* end confdefs.h.  */
7974int i;
7975_ACEOF
7976if ac_fn_c_try_compile "$LINENO"; then :
7977  xorg_cv_cc_flag_unused_command_line_argument=yes
7978else
7979  xorg_cv_cc_flag_unused_command_line_argument=no
7980fi
7981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7982fi
7983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7984$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7985	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7986	CFLAGS="$xorg_testset_save_CFLAGS"
7987fi
7988
7989found="no"
7990
7991	if test $found = "no" ; then
7992		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7993			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7994		fi
7995
7996		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7997			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7998		fi
7999
8000		CFLAGS="$CFLAGS -Werror=trigraphs"
8001
8002		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8003$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8004		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8005		if eval \${$cacheid+:} false; then :
8006  $as_echo_n "(cached) " >&6
8007else
8008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8009/* end confdefs.h.  */
8010int i;
8011int
8012main ()
8013{
8014
8015  ;
8016  return 0;
8017}
8018_ACEOF
8019if ac_fn_c_try_link "$LINENO"; then :
8020  eval $cacheid=yes
8021else
8022  eval $cacheid=no
8023fi
8024rm -f core conftest.err conftest.$ac_objext \
8025    conftest$ac_exeext conftest.$ac_ext
8026fi
8027
8028
8029		CFLAGS="$xorg_testset_save_CFLAGS"
8030
8031		eval supported=\$$cacheid
8032		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8033$as_echo "$supported" >&6; }
8034		if test "$supported" = "yes" ; then
8035			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8036			found="yes"
8037		fi
8038	fi
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054xorg_testset_save_CFLAGS="$CFLAGS"
8055
8056if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8057	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8058	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8059$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8060if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8061  $as_echo_n "(cached) " >&6
8062else
8063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8064/* end confdefs.h.  */
8065int i;
8066_ACEOF
8067if ac_fn_c_try_compile "$LINENO"; then :
8068  xorg_cv_cc_flag_unknown_warning_option=yes
8069else
8070  xorg_cv_cc_flag_unknown_warning_option=no
8071fi
8072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8073fi
8074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8075$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8076	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8077	CFLAGS="$xorg_testset_save_CFLAGS"
8078fi
8079
8080if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8081	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8082		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8083	fi
8084	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8085	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8086$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8087if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8088  $as_echo_n "(cached) " >&6
8089else
8090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091/* end confdefs.h.  */
8092int i;
8093_ACEOF
8094if ac_fn_c_try_compile "$LINENO"; then :
8095  xorg_cv_cc_flag_unused_command_line_argument=yes
8096else
8097  xorg_cv_cc_flag_unused_command_line_argument=no
8098fi
8099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8100fi
8101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8102$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8103	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8104	CFLAGS="$xorg_testset_save_CFLAGS"
8105fi
8106
8107found="no"
8108
8109	if test $found = "no" ; then
8110		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8111			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8112		fi
8113
8114		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8115			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8116		fi
8117
8118		CFLAGS="$CFLAGS -Werror=array-bounds"
8119
8120		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8121$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8122		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8123		if eval \${$cacheid+:} false; then :
8124  $as_echo_n "(cached) " >&6
8125else
8126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8127/* end confdefs.h.  */
8128int i;
8129int
8130main ()
8131{
8132
8133  ;
8134  return 0;
8135}
8136_ACEOF
8137if ac_fn_c_try_link "$LINENO"; then :
8138  eval $cacheid=yes
8139else
8140  eval $cacheid=no
8141fi
8142rm -f core conftest.err conftest.$ac_objext \
8143    conftest$ac_exeext conftest.$ac_ext
8144fi
8145
8146
8147		CFLAGS="$xorg_testset_save_CFLAGS"
8148
8149		eval supported=\$$cacheid
8150		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8151$as_echo "$supported" >&6; }
8152		if test "$supported" = "yes" ; then
8153			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8154			found="yes"
8155		fi
8156	fi
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172xorg_testset_save_CFLAGS="$CFLAGS"
8173
8174if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8175	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8176	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8177$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8178if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8179  $as_echo_n "(cached) " >&6
8180else
8181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8182/* end confdefs.h.  */
8183int i;
8184_ACEOF
8185if ac_fn_c_try_compile "$LINENO"; then :
8186  xorg_cv_cc_flag_unknown_warning_option=yes
8187else
8188  xorg_cv_cc_flag_unknown_warning_option=no
8189fi
8190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8191fi
8192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8193$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8194	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8195	CFLAGS="$xorg_testset_save_CFLAGS"
8196fi
8197
8198if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8199	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8200		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8201	fi
8202	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8203	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8204$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8205if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8206  $as_echo_n "(cached) " >&6
8207else
8208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8209/* end confdefs.h.  */
8210int i;
8211_ACEOF
8212if ac_fn_c_try_compile "$LINENO"; then :
8213  xorg_cv_cc_flag_unused_command_line_argument=yes
8214else
8215  xorg_cv_cc_flag_unused_command_line_argument=no
8216fi
8217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8218fi
8219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8220$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8221	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8222	CFLAGS="$xorg_testset_save_CFLAGS"
8223fi
8224
8225found="no"
8226
8227	if test $found = "no" ; then
8228		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8229			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8230		fi
8231
8232		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8233			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8234		fi
8235
8236		CFLAGS="$CFLAGS -Werror=write-strings"
8237
8238		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8239$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8240		cacheid=xorg_cv_cc_flag__Werror_write_strings
8241		if eval \${$cacheid+:} false; then :
8242  $as_echo_n "(cached) " >&6
8243else
8244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8245/* end confdefs.h.  */
8246int i;
8247int
8248main ()
8249{
8250
8251  ;
8252  return 0;
8253}
8254_ACEOF
8255if ac_fn_c_try_link "$LINENO"; then :
8256  eval $cacheid=yes
8257else
8258  eval $cacheid=no
8259fi
8260rm -f core conftest.err conftest.$ac_objext \
8261    conftest$ac_exeext conftest.$ac_ext
8262fi
8263
8264
8265		CFLAGS="$xorg_testset_save_CFLAGS"
8266
8267		eval supported=\$$cacheid
8268		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8269$as_echo "$supported" >&6; }
8270		if test "$supported" = "yes" ; then
8271			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8272			found="yes"
8273		fi
8274	fi
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290xorg_testset_save_CFLAGS="$CFLAGS"
8291
8292if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8293	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8294	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8295$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8296if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8297  $as_echo_n "(cached) " >&6
8298else
8299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300/* end confdefs.h.  */
8301int i;
8302_ACEOF
8303if ac_fn_c_try_compile "$LINENO"; then :
8304  xorg_cv_cc_flag_unknown_warning_option=yes
8305else
8306  xorg_cv_cc_flag_unknown_warning_option=no
8307fi
8308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8309fi
8310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8311$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8312	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8313	CFLAGS="$xorg_testset_save_CFLAGS"
8314fi
8315
8316if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8317	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8318		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8319	fi
8320	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8321	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8322$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8323if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8324  $as_echo_n "(cached) " >&6
8325else
8326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327/* end confdefs.h.  */
8328int i;
8329_ACEOF
8330if ac_fn_c_try_compile "$LINENO"; then :
8331  xorg_cv_cc_flag_unused_command_line_argument=yes
8332else
8333  xorg_cv_cc_flag_unused_command_line_argument=no
8334fi
8335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8336fi
8337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8338$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8339	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8340	CFLAGS="$xorg_testset_save_CFLAGS"
8341fi
8342
8343found="no"
8344
8345	if test $found = "no" ; then
8346		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8347			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8348		fi
8349
8350		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8351			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8352		fi
8353
8354		CFLAGS="$CFLAGS -Werror=address"
8355
8356		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8357$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8358		cacheid=xorg_cv_cc_flag__Werror_address
8359		if eval \${$cacheid+:} false; then :
8360  $as_echo_n "(cached) " >&6
8361else
8362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363/* end confdefs.h.  */
8364int i;
8365int
8366main ()
8367{
8368
8369  ;
8370  return 0;
8371}
8372_ACEOF
8373if ac_fn_c_try_link "$LINENO"; then :
8374  eval $cacheid=yes
8375else
8376  eval $cacheid=no
8377fi
8378rm -f core conftest.err conftest.$ac_objext \
8379    conftest$ac_exeext conftest.$ac_ext
8380fi
8381
8382
8383		CFLAGS="$xorg_testset_save_CFLAGS"
8384
8385		eval supported=\$$cacheid
8386		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8387$as_echo "$supported" >&6; }
8388		if test "$supported" = "yes" ; then
8389			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8390			found="yes"
8391		fi
8392	fi
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408xorg_testset_save_CFLAGS="$CFLAGS"
8409
8410if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8411	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8412	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8413$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8414if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8415  $as_echo_n "(cached) " >&6
8416else
8417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8418/* end confdefs.h.  */
8419int i;
8420_ACEOF
8421if ac_fn_c_try_compile "$LINENO"; then :
8422  xorg_cv_cc_flag_unknown_warning_option=yes
8423else
8424  xorg_cv_cc_flag_unknown_warning_option=no
8425fi
8426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8427fi
8428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8429$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8430	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8431	CFLAGS="$xorg_testset_save_CFLAGS"
8432fi
8433
8434if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8435	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8436		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8437	fi
8438	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8439	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8440$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8441if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8442  $as_echo_n "(cached) " >&6
8443else
8444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8445/* end confdefs.h.  */
8446int i;
8447_ACEOF
8448if ac_fn_c_try_compile "$LINENO"; then :
8449  xorg_cv_cc_flag_unused_command_line_argument=yes
8450else
8451  xorg_cv_cc_flag_unused_command_line_argument=no
8452fi
8453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8454fi
8455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8456$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8457	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8458	CFLAGS="$xorg_testset_save_CFLAGS"
8459fi
8460
8461found="no"
8462
8463	if test $found = "no" ; then
8464		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8465			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8466		fi
8467
8468		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8469			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8470		fi
8471
8472		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8473
8474		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8475$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8476		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8477		if eval \${$cacheid+:} false; then :
8478  $as_echo_n "(cached) " >&6
8479else
8480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8481/* end confdefs.h.  */
8482int i;
8483int
8484main ()
8485{
8486
8487  ;
8488  return 0;
8489}
8490_ACEOF
8491if ac_fn_c_try_link "$LINENO"; then :
8492  eval $cacheid=yes
8493else
8494  eval $cacheid=no
8495fi
8496rm -f core conftest.err conftest.$ac_objext \
8497    conftest$ac_exeext conftest.$ac_ext
8498fi
8499
8500
8501		CFLAGS="$xorg_testset_save_CFLAGS"
8502
8503		eval supported=\$$cacheid
8504		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8505$as_echo "$supported" >&6; }
8506		if test "$supported" = "yes" ; then
8507			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8508			found="yes"
8509		fi
8510	fi
8511
8512	if test $found = "no" ; then
8513		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8514			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8515		fi
8516
8517		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8518			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8519		fi
8520
8521		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8522
8523		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8524$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8525		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8526		if eval \${$cacheid+:} false; then :
8527  $as_echo_n "(cached) " >&6
8528else
8529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8530/* end confdefs.h.  */
8531int i;
8532int
8533main ()
8534{
8535
8536  ;
8537  return 0;
8538}
8539_ACEOF
8540if ac_fn_c_try_link "$LINENO"; then :
8541  eval $cacheid=yes
8542else
8543  eval $cacheid=no
8544fi
8545rm -f core conftest.err conftest.$ac_objext \
8546    conftest$ac_exeext conftest.$ac_ext
8547fi
8548
8549
8550		CFLAGS="$xorg_testset_save_CFLAGS"
8551
8552		eval supported=\$$cacheid
8553		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8554$as_echo "$supported" >&6; }
8555		if test "$supported" = "yes" ; then
8556			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8557			found="yes"
8558		fi
8559	fi
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575xorg_testset_save_CFLAGS="$CFLAGS"
8576
8577if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8578	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8579	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8580$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8581if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8582  $as_echo_n "(cached) " >&6
8583else
8584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8585/* end confdefs.h.  */
8586int i;
8587_ACEOF
8588if ac_fn_c_try_compile "$LINENO"; then :
8589  xorg_cv_cc_flag_unknown_warning_option=yes
8590else
8591  xorg_cv_cc_flag_unknown_warning_option=no
8592fi
8593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8594fi
8595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8596$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8597	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8598	CFLAGS="$xorg_testset_save_CFLAGS"
8599fi
8600
8601if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8602	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8603		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8604	fi
8605	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8606	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8607$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8608if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8609  $as_echo_n "(cached) " >&6
8610else
8611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612/* end confdefs.h.  */
8613int i;
8614_ACEOF
8615if ac_fn_c_try_compile "$LINENO"; then :
8616  xorg_cv_cc_flag_unused_command_line_argument=yes
8617else
8618  xorg_cv_cc_flag_unused_command_line_argument=no
8619fi
8620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8621fi
8622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8623$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8624	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8625	CFLAGS="$xorg_testset_save_CFLAGS"
8626fi
8627
8628found="no"
8629
8630	if test $found = "no" ; then
8631		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8632			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8633		fi
8634
8635		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8636			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8637		fi
8638
8639		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8640
8641		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8642$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8643		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8644		if eval \${$cacheid+:} false; then :
8645  $as_echo_n "(cached) " >&6
8646else
8647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8648/* end confdefs.h.  */
8649int i;
8650int
8651main ()
8652{
8653
8654  ;
8655  return 0;
8656}
8657_ACEOF
8658if ac_fn_c_try_link "$LINENO"; then :
8659  eval $cacheid=yes
8660else
8661  eval $cacheid=no
8662fi
8663rm -f core conftest.err conftest.$ac_objext \
8664    conftest$ac_exeext conftest.$ac_ext
8665fi
8666
8667
8668		CFLAGS="$xorg_testset_save_CFLAGS"
8669
8670		eval supported=\$$cacheid
8671		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8672$as_echo "$supported" >&6; }
8673		if test "$supported" = "yes" ; then
8674			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8675			found="yes"
8676		fi
8677	fi
8678
8679 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8680else
8681{ $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
8682$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;}
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696xorg_testset_save_CFLAGS="$CFLAGS"
8697
8698if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8699	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8700	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8701$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8702if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8703  $as_echo_n "(cached) " >&6
8704else
8705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8706/* end confdefs.h.  */
8707int i;
8708_ACEOF
8709if ac_fn_c_try_compile "$LINENO"; then :
8710  xorg_cv_cc_flag_unknown_warning_option=yes
8711else
8712  xorg_cv_cc_flag_unknown_warning_option=no
8713fi
8714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8715fi
8716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8717$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8718	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8719	CFLAGS="$xorg_testset_save_CFLAGS"
8720fi
8721
8722if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8723	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8724		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8725	fi
8726	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8727	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8728$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8729if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8730  $as_echo_n "(cached) " >&6
8731else
8732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8733/* end confdefs.h.  */
8734int i;
8735_ACEOF
8736if ac_fn_c_try_compile "$LINENO"; then :
8737  xorg_cv_cc_flag_unused_command_line_argument=yes
8738else
8739  xorg_cv_cc_flag_unused_command_line_argument=no
8740fi
8741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8742fi
8743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8744$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8745	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8746	CFLAGS="$xorg_testset_save_CFLAGS"
8747fi
8748
8749found="no"
8750
8751	if test $found = "no" ; then
8752		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8753			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8754		fi
8755
8756		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8757			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8758		fi
8759
8760		CFLAGS="$CFLAGS -Wimplicit"
8761
8762		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8763$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8764		cacheid=xorg_cv_cc_flag__Wimplicit
8765		if eval \${$cacheid+:} false; then :
8766  $as_echo_n "(cached) " >&6
8767else
8768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8769/* end confdefs.h.  */
8770int i;
8771int
8772main ()
8773{
8774
8775  ;
8776  return 0;
8777}
8778_ACEOF
8779if ac_fn_c_try_link "$LINENO"; then :
8780  eval $cacheid=yes
8781else
8782  eval $cacheid=no
8783fi
8784rm -f core conftest.err conftest.$ac_objext \
8785    conftest$ac_exeext conftest.$ac_ext
8786fi
8787
8788
8789		CFLAGS="$xorg_testset_save_CFLAGS"
8790
8791		eval supported=\$$cacheid
8792		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8793$as_echo "$supported" >&6; }
8794		if test "$supported" = "yes" ; then
8795			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8796			found="yes"
8797		fi
8798	fi
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814xorg_testset_save_CFLAGS="$CFLAGS"
8815
8816if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8817	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8818	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8819$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8820if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8821  $as_echo_n "(cached) " >&6
8822else
8823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824/* end confdefs.h.  */
8825int i;
8826_ACEOF
8827if ac_fn_c_try_compile "$LINENO"; then :
8828  xorg_cv_cc_flag_unknown_warning_option=yes
8829else
8830  xorg_cv_cc_flag_unknown_warning_option=no
8831fi
8832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8833fi
8834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8835$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8836	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8837	CFLAGS="$xorg_testset_save_CFLAGS"
8838fi
8839
8840if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8841	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8842		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8843	fi
8844	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8845	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8846$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8847if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8848  $as_echo_n "(cached) " >&6
8849else
8850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8851/* end confdefs.h.  */
8852int i;
8853_ACEOF
8854if ac_fn_c_try_compile "$LINENO"; then :
8855  xorg_cv_cc_flag_unused_command_line_argument=yes
8856else
8857  xorg_cv_cc_flag_unused_command_line_argument=no
8858fi
8859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8860fi
8861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8862$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8863	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8864	CFLAGS="$xorg_testset_save_CFLAGS"
8865fi
8866
8867found="no"
8868
8869	if test $found = "no" ; then
8870		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8871			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8872		fi
8873
8874		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8875			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8876		fi
8877
8878		CFLAGS="$CFLAGS -Wnonnull"
8879
8880		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8881$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8882		cacheid=xorg_cv_cc_flag__Wnonnull
8883		if eval \${$cacheid+:} false; then :
8884  $as_echo_n "(cached) " >&6
8885else
8886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8887/* end confdefs.h.  */
8888int i;
8889int
8890main ()
8891{
8892
8893  ;
8894  return 0;
8895}
8896_ACEOF
8897if ac_fn_c_try_link "$LINENO"; then :
8898  eval $cacheid=yes
8899else
8900  eval $cacheid=no
8901fi
8902rm -f core conftest.err conftest.$ac_objext \
8903    conftest$ac_exeext conftest.$ac_ext
8904fi
8905
8906
8907		CFLAGS="$xorg_testset_save_CFLAGS"
8908
8909		eval supported=\$$cacheid
8910		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8911$as_echo "$supported" >&6; }
8912		if test "$supported" = "yes" ; then
8913			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8914			found="yes"
8915		fi
8916	fi
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932xorg_testset_save_CFLAGS="$CFLAGS"
8933
8934if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8935	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8936	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8937$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8938if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8939  $as_echo_n "(cached) " >&6
8940else
8941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8942/* end confdefs.h.  */
8943int i;
8944_ACEOF
8945if ac_fn_c_try_compile "$LINENO"; then :
8946  xorg_cv_cc_flag_unknown_warning_option=yes
8947else
8948  xorg_cv_cc_flag_unknown_warning_option=no
8949fi
8950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8951fi
8952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8953$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8954	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8955	CFLAGS="$xorg_testset_save_CFLAGS"
8956fi
8957
8958if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8959	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8960		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8961	fi
8962	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8963	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8964$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8965if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8966  $as_echo_n "(cached) " >&6
8967else
8968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969/* end confdefs.h.  */
8970int i;
8971_ACEOF
8972if ac_fn_c_try_compile "$LINENO"; then :
8973  xorg_cv_cc_flag_unused_command_line_argument=yes
8974else
8975  xorg_cv_cc_flag_unused_command_line_argument=no
8976fi
8977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8978fi
8979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8980$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8981	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8982	CFLAGS="$xorg_testset_save_CFLAGS"
8983fi
8984
8985found="no"
8986
8987	if test $found = "no" ; then
8988		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8989			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8990		fi
8991
8992		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8993			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8994		fi
8995
8996		CFLAGS="$CFLAGS -Winit-self"
8997
8998		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8999$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9000		cacheid=xorg_cv_cc_flag__Winit_self
9001		if eval \${$cacheid+:} false; then :
9002  $as_echo_n "(cached) " >&6
9003else
9004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9005/* end confdefs.h.  */
9006int i;
9007int
9008main ()
9009{
9010
9011  ;
9012  return 0;
9013}
9014_ACEOF
9015if ac_fn_c_try_link "$LINENO"; then :
9016  eval $cacheid=yes
9017else
9018  eval $cacheid=no
9019fi
9020rm -f core conftest.err conftest.$ac_objext \
9021    conftest$ac_exeext conftest.$ac_ext
9022fi
9023
9024
9025		CFLAGS="$xorg_testset_save_CFLAGS"
9026
9027		eval supported=\$$cacheid
9028		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9029$as_echo "$supported" >&6; }
9030		if test "$supported" = "yes" ; then
9031			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9032			found="yes"
9033		fi
9034	fi
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050xorg_testset_save_CFLAGS="$CFLAGS"
9051
9052if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9053	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9054	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9055$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9056if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9057  $as_echo_n "(cached) " >&6
9058else
9059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9060/* end confdefs.h.  */
9061int i;
9062_ACEOF
9063if ac_fn_c_try_compile "$LINENO"; then :
9064  xorg_cv_cc_flag_unknown_warning_option=yes
9065else
9066  xorg_cv_cc_flag_unknown_warning_option=no
9067fi
9068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9069fi
9070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9071$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9072	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9073	CFLAGS="$xorg_testset_save_CFLAGS"
9074fi
9075
9076if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9077	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9078		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9079	fi
9080	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9081	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9082$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9083if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9084  $as_echo_n "(cached) " >&6
9085else
9086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087/* end confdefs.h.  */
9088int i;
9089_ACEOF
9090if ac_fn_c_try_compile "$LINENO"; then :
9091  xorg_cv_cc_flag_unused_command_line_argument=yes
9092else
9093  xorg_cv_cc_flag_unused_command_line_argument=no
9094fi
9095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9096fi
9097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9098$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9099	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9100	CFLAGS="$xorg_testset_save_CFLAGS"
9101fi
9102
9103found="no"
9104
9105	if test $found = "no" ; then
9106		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9107			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9108		fi
9109
9110		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9111			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9112		fi
9113
9114		CFLAGS="$CFLAGS -Wmain"
9115
9116		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9117$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9118		cacheid=xorg_cv_cc_flag__Wmain
9119		if eval \${$cacheid+:} false; then :
9120  $as_echo_n "(cached) " >&6
9121else
9122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9123/* end confdefs.h.  */
9124int i;
9125int
9126main ()
9127{
9128
9129  ;
9130  return 0;
9131}
9132_ACEOF
9133if ac_fn_c_try_link "$LINENO"; then :
9134  eval $cacheid=yes
9135else
9136  eval $cacheid=no
9137fi
9138rm -f core conftest.err conftest.$ac_objext \
9139    conftest$ac_exeext conftest.$ac_ext
9140fi
9141
9142
9143		CFLAGS="$xorg_testset_save_CFLAGS"
9144
9145		eval supported=\$$cacheid
9146		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9147$as_echo "$supported" >&6; }
9148		if test "$supported" = "yes" ; then
9149			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9150			found="yes"
9151		fi
9152	fi
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168xorg_testset_save_CFLAGS="$CFLAGS"
9169
9170if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9171	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9172	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9173$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9174if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9175  $as_echo_n "(cached) " >&6
9176else
9177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9178/* end confdefs.h.  */
9179int i;
9180_ACEOF
9181if ac_fn_c_try_compile "$LINENO"; then :
9182  xorg_cv_cc_flag_unknown_warning_option=yes
9183else
9184  xorg_cv_cc_flag_unknown_warning_option=no
9185fi
9186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9187fi
9188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9189$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9190	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9191	CFLAGS="$xorg_testset_save_CFLAGS"
9192fi
9193
9194if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9195	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9196		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9197	fi
9198	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9199	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9200$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9201if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9202  $as_echo_n "(cached) " >&6
9203else
9204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9205/* end confdefs.h.  */
9206int i;
9207_ACEOF
9208if ac_fn_c_try_compile "$LINENO"; then :
9209  xorg_cv_cc_flag_unused_command_line_argument=yes
9210else
9211  xorg_cv_cc_flag_unused_command_line_argument=no
9212fi
9213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9214fi
9215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9216$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9217	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9218	CFLAGS="$xorg_testset_save_CFLAGS"
9219fi
9220
9221found="no"
9222
9223	if test $found = "no" ; then
9224		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9225			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9226		fi
9227
9228		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9229			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9230		fi
9231
9232		CFLAGS="$CFLAGS -Wmissing-braces"
9233
9234		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9235$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9236		cacheid=xorg_cv_cc_flag__Wmissing_braces
9237		if eval \${$cacheid+:} false; then :
9238  $as_echo_n "(cached) " >&6
9239else
9240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9241/* end confdefs.h.  */
9242int i;
9243int
9244main ()
9245{
9246
9247  ;
9248  return 0;
9249}
9250_ACEOF
9251if ac_fn_c_try_link "$LINENO"; then :
9252  eval $cacheid=yes
9253else
9254  eval $cacheid=no
9255fi
9256rm -f core conftest.err conftest.$ac_objext \
9257    conftest$ac_exeext conftest.$ac_ext
9258fi
9259
9260
9261		CFLAGS="$xorg_testset_save_CFLAGS"
9262
9263		eval supported=\$$cacheid
9264		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9265$as_echo "$supported" >&6; }
9266		if test "$supported" = "yes" ; then
9267			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9268			found="yes"
9269		fi
9270	fi
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286xorg_testset_save_CFLAGS="$CFLAGS"
9287
9288if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9289	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9290	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9291$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9292if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9293  $as_echo_n "(cached) " >&6
9294else
9295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9296/* end confdefs.h.  */
9297int i;
9298_ACEOF
9299if ac_fn_c_try_compile "$LINENO"; then :
9300  xorg_cv_cc_flag_unknown_warning_option=yes
9301else
9302  xorg_cv_cc_flag_unknown_warning_option=no
9303fi
9304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9305fi
9306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9307$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9308	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9309	CFLAGS="$xorg_testset_save_CFLAGS"
9310fi
9311
9312if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9313	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9314		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9315	fi
9316	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9317	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9318$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9319if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9320  $as_echo_n "(cached) " >&6
9321else
9322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9323/* end confdefs.h.  */
9324int i;
9325_ACEOF
9326if ac_fn_c_try_compile "$LINENO"; then :
9327  xorg_cv_cc_flag_unused_command_line_argument=yes
9328else
9329  xorg_cv_cc_flag_unused_command_line_argument=no
9330fi
9331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9332fi
9333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9334$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9335	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9336	CFLAGS="$xorg_testset_save_CFLAGS"
9337fi
9338
9339found="no"
9340
9341	if test $found = "no" ; then
9342		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9343			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9344		fi
9345
9346		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9347			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9348		fi
9349
9350		CFLAGS="$CFLAGS -Wsequence-point"
9351
9352		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9353$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9354		cacheid=xorg_cv_cc_flag__Wsequence_point
9355		if eval \${$cacheid+:} false; then :
9356  $as_echo_n "(cached) " >&6
9357else
9358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359/* end confdefs.h.  */
9360int i;
9361int
9362main ()
9363{
9364
9365  ;
9366  return 0;
9367}
9368_ACEOF
9369if ac_fn_c_try_link "$LINENO"; then :
9370  eval $cacheid=yes
9371else
9372  eval $cacheid=no
9373fi
9374rm -f core conftest.err conftest.$ac_objext \
9375    conftest$ac_exeext conftest.$ac_ext
9376fi
9377
9378
9379		CFLAGS="$xorg_testset_save_CFLAGS"
9380
9381		eval supported=\$$cacheid
9382		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9383$as_echo "$supported" >&6; }
9384		if test "$supported" = "yes" ; then
9385			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9386			found="yes"
9387		fi
9388	fi
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404xorg_testset_save_CFLAGS="$CFLAGS"
9405
9406if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9407	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9408	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9409$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9410if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9411  $as_echo_n "(cached) " >&6
9412else
9413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9414/* end confdefs.h.  */
9415int i;
9416_ACEOF
9417if ac_fn_c_try_compile "$LINENO"; then :
9418  xorg_cv_cc_flag_unknown_warning_option=yes
9419else
9420  xorg_cv_cc_flag_unknown_warning_option=no
9421fi
9422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9423fi
9424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9425$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9426	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9427	CFLAGS="$xorg_testset_save_CFLAGS"
9428fi
9429
9430if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9431	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9432		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9433	fi
9434	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9435	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9436$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9437if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9438  $as_echo_n "(cached) " >&6
9439else
9440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9441/* end confdefs.h.  */
9442int i;
9443_ACEOF
9444if ac_fn_c_try_compile "$LINENO"; then :
9445  xorg_cv_cc_flag_unused_command_line_argument=yes
9446else
9447  xorg_cv_cc_flag_unused_command_line_argument=no
9448fi
9449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9450fi
9451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9452$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9453	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9454	CFLAGS="$xorg_testset_save_CFLAGS"
9455fi
9456
9457found="no"
9458
9459	if test $found = "no" ; then
9460		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9461			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9462		fi
9463
9464		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9465			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9466		fi
9467
9468		CFLAGS="$CFLAGS -Wreturn-type"
9469
9470		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9471$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9472		cacheid=xorg_cv_cc_flag__Wreturn_type
9473		if eval \${$cacheid+:} false; then :
9474  $as_echo_n "(cached) " >&6
9475else
9476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477/* end confdefs.h.  */
9478int i;
9479int
9480main ()
9481{
9482
9483  ;
9484  return 0;
9485}
9486_ACEOF
9487if ac_fn_c_try_link "$LINENO"; then :
9488  eval $cacheid=yes
9489else
9490  eval $cacheid=no
9491fi
9492rm -f core conftest.err conftest.$ac_objext \
9493    conftest$ac_exeext conftest.$ac_ext
9494fi
9495
9496
9497		CFLAGS="$xorg_testset_save_CFLAGS"
9498
9499		eval supported=\$$cacheid
9500		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9501$as_echo "$supported" >&6; }
9502		if test "$supported" = "yes" ; then
9503			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9504			found="yes"
9505		fi
9506	fi
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522xorg_testset_save_CFLAGS="$CFLAGS"
9523
9524if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9525	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9526	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9527$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9528if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9529  $as_echo_n "(cached) " >&6
9530else
9531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9532/* end confdefs.h.  */
9533int i;
9534_ACEOF
9535if ac_fn_c_try_compile "$LINENO"; then :
9536  xorg_cv_cc_flag_unknown_warning_option=yes
9537else
9538  xorg_cv_cc_flag_unknown_warning_option=no
9539fi
9540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9541fi
9542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9543$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9544	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9545	CFLAGS="$xorg_testset_save_CFLAGS"
9546fi
9547
9548if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9549	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9550		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9551	fi
9552	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9553	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9554$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9555if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9556  $as_echo_n "(cached) " >&6
9557else
9558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9559/* end confdefs.h.  */
9560int i;
9561_ACEOF
9562if ac_fn_c_try_compile "$LINENO"; then :
9563  xorg_cv_cc_flag_unused_command_line_argument=yes
9564else
9565  xorg_cv_cc_flag_unused_command_line_argument=no
9566fi
9567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9568fi
9569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9570$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9571	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9572	CFLAGS="$xorg_testset_save_CFLAGS"
9573fi
9574
9575found="no"
9576
9577	if test $found = "no" ; then
9578		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9579			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9580		fi
9581
9582		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9583			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9584		fi
9585
9586		CFLAGS="$CFLAGS -Wtrigraphs"
9587
9588		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9589$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9590		cacheid=xorg_cv_cc_flag__Wtrigraphs
9591		if eval \${$cacheid+:} false; then :
9592  $as_echo_n "(cached) " >&6
9593else
9594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9595/* end confdefs.h.  */
9596int i;
9597int
9598main ()
9599{
9600
9601  ;
9602  return 0;
9603}
9604_ACEOF
9605if ac_fn_c_try_link "$LINENO"; then :
9606  eval $cacheid=yes
9607else
9608  eval $cacheid=no
9609fi
9610rm -f core conftest.err conftest.$ac_objext \
9611    conftest$ac_exeext conftest.$ac_ext
9612fi
9613
9614
9615		CFLAGS="$xorg_testset_save_CFLAGS"
9616
9617		eval supported=\$$cacheid
9618		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9619$as_echo "$supported" >&6; }
9620		if test "$supported" = "yes" ; then
9621			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9622			found="yes"
9623		fi
9624	fi
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640xorg_testset_save_CFLAGS="$CFLAGS"
9641
9642if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9643	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9644	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9645$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9646if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9647  $as_echo_n "(cached) " >&6
9648else
9649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9650/* end confdefs.h.  */
9651int i;
9652_ACEOF
9653if ac_fn_c_try_compile "$LINENO"; then :
9654  xorg_cv_cc_flag_unknown_warning_option=yes
9655else
9656  xorg_cv_cc_flag_unknown_warning_option=no
9657fi
9658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9659fi
9660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9661$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9662	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9663	CFLAGS="$xorg_testset_save_CFLAGS"
9664fi
9665
9666if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9667	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9668		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9669	fi
9670	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9671	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9672$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9673if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9674  $as_echo_n "(cached) " >&6
9675else
9676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9677/* end confdefs.h.  */
9678int i;
9679_ACEOF
9680if ac_fn_c_try_compile "$LINENO"; then :
9681  xorg_cv_cc_flag_unused_command_line_argument=yes
9682else
9683  xorg_cv_cc_flag_unused_command_line_argument=no
9684fi
9685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9686fi
9687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9688$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9689	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9690	CFLAGS="$xorg_testset_save_CFLAGS"
9691fi
9692
9693found="no"
9694
9695	if test $found = "no" ; then
9696		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9697			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9698		fi
9699
9700		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9701			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9702		fi
9703
9704		CFLAGS="$CFLAGS -Warray-bounds"
9705
9706		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9707$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9708		cacheid=xorg_cv_cc_flag__Warray_bounds
9709		if eval \${$cacheid+:} false; then :
9710  $as_echo_n "(cached) " >&6
9711else
9712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9713/* end confdefs.h.  */
9714int i;
9715int
9716main ()
9717{
9718
9719  ;
9720  return 0;
9721}
9722_ACEOF
9723if ac_fn_c_try_link "$LINENO"; then :
9724  eval $cacheid=yes
9725else
9726  eval $cacheid=no
9727fi
9728rm -f core conftest.err conftest.$ac_objext \
9729    conftest$ac_exeext conftest.$ac_ext
9730fi
9731
9732
9733		CFLAGS="$xorg_testset_save_CFLAGS"
9734
9735		eval supported=\$$cacheid
9736		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9737$as_echo "$supported" >&6; }
9738		if test "$supported" = "yes" ; then
9739			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9740			found="yes"
9741		fi
9742	fi
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758xorg_testset_save_CFLAGS="$CFLAGS"
9759
9760if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9761	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9762	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9763$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9764if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9765  $as_echo_n "(cached) " >&6
9766else
9767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768/* end confdefs.h.  */
9769int i;
9770_ACEOF
9771if ac_fn_c_try_compile "$LINENO"; then :
9772  xorg_cv_cc_flag_unknown_warning_option=yes
9773else
9774  xorg_cv_cc_flag_unknown_warning_option=no
9775fi
9776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9777fi
9778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9779$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9780	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9781	CFLAGS="$xorg_testset_save_CFLAGS"
9782fi
9783
9784if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9785	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9786		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9787	fi
9788	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9789	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9790$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9791if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9792  $as_echo_n "(cached) " >&6
9793else
9794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9795/* end confdefs.h.  */
9796int i;
9797_ACEOF
9798if ac_fn_c_try_compile "$LINENO"; then :
9799  xorg_cv_cc_flag_unused_command_line_argument=yes
9800else
9801  xorg_cv_cc_flag_unused_command_line_argument=no
9802fi
9803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9804fi
9805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9806$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9807	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9808	CFLAGS="$xorg_testset_save_CFLAGS"
9809fi
9810
9811found="no"
9812
9813	if test $found = "no" ; then
9814		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9815			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9816		fi
9817
9818		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9819			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9820		fi
9821
9822		CFLAGS="$CFLAGS -Wwrite-strings"
9823
9824		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9825$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9826		cacheid=xorg_cv_cc_flag__Wwrite_strings
9827		if eval \${$cacheid+:} false; then :
9828  $as_echo_n "(cached) " >&6
9829else
9830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9831/* end confdefs.h.  */
9832int i;
9833int
9834main ()
9835{
9836
9837  ;
9838  return 0;
9839}
9840_ACEOF
9841if ac_fn_c_try_link "$LINENO"; then :
9842  eval $cacheid=yes
9843else
9844  eval $cacheid=no
9845fi
9846rm -f core conftest.err conftest.$ac_objext \
9847    conftest$ac_exeext conftest.$ac_ext
9848fi
9849
9850
9851		CFLAGS="$xorg_testset_save_CFLAGS"
9852
9853		eval supported=\$$cacheid
9854		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9855$as_echo "$supported" >&6; }
9856		if test "$supported" = "yes" ; then
9857			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9858			found="yes"
9859		fi
9860	fi
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876xorg_testset_save_CFLAGS="$CFLAGS"
9877
9878if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9879	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9880	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9881$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9882if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9883  $as_echo_n "(cached) " >&6
9884else
9885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9886/* end confdefs.h.  */
9887int i;
9888_ACEOF
9889if ac_fn_c_try_compile "$LINENO"; then :
9890  xorg_cv_cc_flag_unknown_warning_option=yes
9891else
9892  xorg_cv_cc_flag_unknown_warning_option=no
9893fi
9894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9895fi
9896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9897$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9898	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9899	CFLAGS="$xorg_testset_save_CFLAGS"
9900fi
9901
9902if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9903	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9904		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9905	fi
9906	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9907	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9908$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9909if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9910  $as_echo_n "(cached) " >&6
9911else
9912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9913/* end confdefs.h.  */
9914int i;
9915_ACEOF
9916if ac_fn_c_try_compile "$LINENO"; then :
9917  xorg_cv_cc_flag_unused_command_line_argument=yes
9918else
9919  xorg_cv_cc_flag_unused_command_line_argument=no
9920fi
9921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9922fi
9923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9924$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9925	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9926	CFLAGS="$xorg_testset_save_CFLAGS"
9927fi
9928
9929found="no"
9930
9931	if test $found = "no" ; then
9932		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9933			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9934		fi
9935
9936		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9937			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9938		fi
9939
9940		CFLAGS="$CFLAGS -Waddress"
9941
9942		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9943$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9944		cacheid=xorg_cv_cc_flag__Waddress
9945		if eval \${$cacheid+:} false; then :
9946  $as_echo_n "(cached) " >&6
9947else
9948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9949/* end confdefs.h.  */
9950int i;
9951int
9952main ()
9953{
9954
9955  ;
9956  return 0;
9957}
9958_ACEOF
9959if ac_fn_c_try_link "$LINENO"; then :
9960  eval $cacheid=yes
9961else
9962  eval $cacheid=no
9963fi
9964rm -f core conftest.err conftest.$ac_objext \
9965    conftest$ac_exeext conftest.$ac_ext
9966fi
9967
9968
9969		CFLAGS="$xorg_testset_save_CFLAGS"
9970
9971		eval supported=\$$cacheid
9972		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9973$as_echo "$supported" >&6; }
9974		if test "$supported" = "yes" ; then
9975			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9976			found="yes"
9977		fi
9978	fi
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994xorg_testset_save_CFLAGS="$CFLAGS"
9995
9996if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9997	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9998	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9999$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10000if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10001  $as_echo_n "(cached) " >&6
10002else
10003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10004/* end confdefs.h.  */
10005int i;
10006_ACEOF
10007if ac_fn_c_try_compile "$LINENO"; then :
10008  xorg_cv_cc_flag_unknown_warning_option=yes
10009else
10010  xorg_cv_cc_flag_unknown_warning_option=no
10011fi
10012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10013fi
10014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10015$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10016	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10017	CFLAGS="$xorg_testset_save_CFLAGS"
10018fi
10019
10020if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10021	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10022		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10023	fi
10024	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10025	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10026$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10027if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10028  $as_echo_n "(cached) " >&6
10029else
10030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10031/* end confdefs.h.  */
10032int i;
10033_ACEOF
10034if ac_fn_c_try_compile "$LINENO"; then :
10035  xorg_cv_cc_flag_unused_command_line_argument=yes
10036else
10037  xorg_cv_cc_flag_unused_command_line_argument=no
10038fi
10039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10040fi
10041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10042$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10043	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10044	CFLAGS="$xorg_testset_save_CFLAGS"
10045fi
10046
10047found="no"
10048
10049	if test $found = "no" ; then
10050		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10051			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10052		fi
10053
10054		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10055			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10056		fi
10057
10058		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10059
10060		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10061$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10062		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10063		if eval \${$cacheid+:} false; then :
10064  $as_echo_n "(cached) " >&6
10065else
10066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10067/* end confdefs.h.  */
10068int i;
10069int
10070main ()
10071{
10072
10073  ;
10074  return 0;
10075}
10076_ACEOF
10077if ac_fn_c_try_link "$LINENO"; then :
10078  eval $cacheid=yes
10079else
10080  eval $cacheid=no
10081fi
10082rm -f core conftest.err conftest.$ac_objext \
10083    conftest$ac_exeext conftest.$ac_ext
10084fi
10085
10086
10087		CFLAGS="$xorg_testset_save_CFLAGS"
10088
10089		eval supported=\$$cacheid
10090		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10091$as_echo "$supported" >&6; }
10092		if test "$supported" = "yes" ; then
10093			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10094			found="yes"
10095		fi
10096	fi
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112xorg_testset_save_CFLAGS="$CFLAGS"
10113
10114if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10115	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10116	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10117$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10118if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10119  $as_echo_n "(cached) " >&6
10120else
10121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10122/* end confdefs.h.  */
10123int i;
10124_ACEOF
10125if ac_fn_c_try_compile "$LINENO"; then :
10126  xorg_cv_cc_flag_unknown_warning_option=yes
10127else
10128  xorg_cv_cc_flag_unknown_warning_option=no
10129fi
10130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10131fi
10132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10133$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10134	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10135	CFLAGS="$xorg_testset_save_CFLAGS"
10136fi
10137
10138if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10139	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10140		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10141	fi
10142	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10143	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10144$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10145if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10146  $as_echo_n "(cached) " >&6
10147else
10148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10149/* end confdefs.h.  */
10150int i;
10151_ACEOF
10152if ac_fn_c_try_compile "$LINENO"; then :
10153  xorg_cv_cc_flag_unused_command_line_argument=yes
10154else
10155  xorg_cv_cc_flag_unused_command_line_argument=no
10156fi
10157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10158fi
10159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10160$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10161	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10162	CFLAGS="$xorg_testset_save_CFLAGS"
10163fi
10164
10165found="no"
10166
10167	if test $found = "no" ; then
10168		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10169			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10170		fi
10171
10172		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10173			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10174		fi
10175
10176		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10177
10178		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10179$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10180		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10181		if eval \${$cacheid+:} false; then :
10182  $as_echo_n "(cached) " >&6
10183else
10184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10185/* end confdefs.h.  */
10186int i;
10187int
10188main ()
10189{
10190
10191  ;
10192  return 0;
10193}
10194_ACEOF
10195if ac_fn_c_try_link "$LINENO"; then :
10196  eval $cacheid=yes
10197else
10198  eval $cacheid=no
10199fi
10200rm -f core conftest.err conftest.$ac_objext \
10201    conftest$ac_exeext conftest.$ac_ext
10202fi
10203
10204
10205		CFLAGS="$xorg_testset_save_CFLAGS"
10206
10207		eval supported=\$$cacheid
10208		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10209$as_echo "$supported" >&6; }
10210		if test "$supported" = "yes" ; then
10211			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10212			found="yes"
10213		fi
10214	fi
10215
10216
10217fi
10218
10219
10220
10221
10222
10223
10224
10225		CWARNFLAGS="$BASE_CFLAGS"
10226		if  test "x$GCC" = xyes ; then
10227		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10228		fi
10229
10230
10231
10232
10233
10234
10235
10236
10237# Check whether --enable-strict-compilation was given.
10238if test "${enable_strict_compilation+set}" = set; then :
10239  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10240else
10241  STRICT_COMPILE=no
10242fi
10243
10244
10245
10246
10247
10248
10249STRICT_CFLAGS=""
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263xorg_testset_save_CFLAGS="$CFLAGS"
10264
10265if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10266	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10267	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10268$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10269if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10270  $as_echo_n "(cached) " >&6
10271else
10272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10273/* end confdefs.h.  */
10274int i;
10275_ACEOF
10276if ac_fn_c_try_compile "$LINENO"; then :
10277  xorg_cv_cc_flag_unknown_warning_option=yes
10278else
10279  xorg_cv_cc_flag_unknown_warning_option=no
10280fi
10281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10282fi
10283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10284$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10285	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10286	CFLAGS="$xorg_testset_save_CFLAGS"
10287fi
10288
10289if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10290	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10291		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10292	fi
10293	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10294	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10295$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10296if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10297  $as_echo_n "(cached) " >&6
10298else
10299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10300/* end confdefs.h.  */
10301int i;
10302_ACEOF
10303if ac_fn_c_try_compile "$LINENO"; then :
10304  xorg_cv_cc_flag_unused_command_line_argument=yes
10305else
10306  xorg_cv_cc_flag_unused_command_line_argument=no
10307fi
10308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10309fi
10310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10311$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10312	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10313	CFLAGS="$xorg_testset_save_CFLAGS"
10314fi
10315
10316found="no"
10317
10318	if test $found = "no" ; then
10319		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10320			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10321		fi
10322
10323		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10324			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10325		fi
10326
10327		CFLAGS="$CFLAGS -pedantic"
10328
10329		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10330$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10331		cacheid=xorg_cv_cc_flag__pedantic
10332		if eval \${$cacheid+:} false; then :
10333  $as_echo_n "(cached) " >&6
10334else
10335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10336/* end confdefs.h.  */
10337int i;
10338int
10339main ()
10340{
10341
10342  ;
10343  return 0;
10344}
10345_ACEOF
10346if ac_fn_c_try_link "$LINENO"; then :
10347  eval $cacheid=yes
10348else
10349  eval $cacheid=no
10350fi
10351rm -f core conftest.err conftest.$ac_objext \
10352    conftest$ac_exeext conftest.$ac_ext
10353fi
10354
10355
10356		CFLAGS="$xorg_testset_save_CFLAGS"
10357
10358		eval supported=\$$cacheid
10359		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10360$as_echo "$supported" >&6; }
10361		if test "$supported" = "yes" ; then
10362			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10363			found="yes"
10364		fi
10365	fi
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381xorg_testset_save_CFLAGS="$CFLAGS"
10382
10383if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10384	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10385	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10386$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10387if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10388  $as_echo_n "(cached) " >&6
10389else
10390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10391/* end confdefs.h.  */
10392int i;
10393_ACEOF
10394if ac_fn_c_try_compile "$LINENO"; then :
10395  xorg_cv_cc_flag_unknown_warning_option=yes
10396else
10397  xorg_cv_cc_flag_unknown_warning_option=no
10398fi
10399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10400fi
10401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10402$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10403	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10404	CFLAGS="$xorg_testset_save_CFLAGS"
10405fi
10406
10407if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10408	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10409		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10410	fi
10411	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10412	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10413$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10414if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10415  $as_echo_n "(cached) " >&6
10416else
10417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10418/* end confdefs.h.  */
10419int i;
10420_ACEOF
10421if ac_fn_c_try_compile "$LINENO"; then :
10422  xorg_cv_cc_flag_unused_command_line_argument=yes
10423else
10424  xorg_cv_cc_flag_unused_command_line_argument=no
10425fi
10426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10427fi
10428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10429$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10430	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10431	CFLAGS="$xorg_testset_save_CFLAGS"
10432fi
10433
10434found="no"
10435
10436	if test $found = "no" ; then
10437		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10438			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10439		fi
10440
10441		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10442			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10443		fi
10444
10445		CFLAGS="$CFLAGS -Werror"
10446
10447		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10448$as_echo_n "checking if $CC supports -Werror... " >&6; }
10449		cacheid=xorg_cv_cc_flag__Werror
10450		if eval \${$cacheid+:} false; then :
10451  $as_echo_n "(cached) " >&6
10452else
10453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10454/* end confdefs.h.  */
10455int i;
10456int
10457main ()
10458{
10459
10460  ;
10461  return 0;
10462}
10463_ACEOF
10464if ac_fn_c_try_link "$LINENO"; then :
10465  eval $cacheid=yes
10466else
10467  eval $cacheid=no
10468fi
10469rm -f core conftest.err conftest.$ac_objext \
10470    conftest$ac_exeext conftest.$ac_ext
10471fi
10472
10473
10474		CFLAGS="$xorg_testset_save_CFLAGS"
10475
10476		eval supported=\$$cacheid
10477		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10478$as_echo "$supported" >&6; }
10479		if test "$supported" = "yes" ; then
10480			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10481			found="yes"
10482		fi
10483	fi
10484
10485	if test $found = "no" ; then
10486		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10487			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10488		fi
10489
10490		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10491			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10492		fi
10493
10494		CFLAGS="$CFLAGS -errwarn"
10495
10496		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10497$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10498		cacheid=xorg_cv_cc_flag__errwarn
10499		if eval \${$cacheid+:} false; then :
10500  $as_echo_n "(cached) " >&6
10501else
10502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10503/* end confdefs.h.  */
10504int i;
10505int
10506main ()
10507{
10508
10509  ;
10510  return 0;
10511}
10512_ACEOF
10513if ac_fn_c_try_link "$LINENO"; then :
10514  eval $cacheid=yes
10515else
10516  eval $cacheid=no
10517fi
10518rm -f core conftest.err conftest.$ac_objext \
10519    conftest$ac_exeext conftest.$ac_ext
10520fi
10521
10522
10523		CFLAGS="$xorg_testset_save_CFLAGS"
10524
10525		eval supported=\$$cacheid
10526		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10527$as_echo "$supported" >&6; }
10528		if test "$supported" = "yes" ; then
10529			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10530			found="yes"
10531		fi
10532	fi
10533
10534
10535
10536# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10537# activate it with -Werror, so we add it here explicitly.
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551xorg_testset_save_CFLAGS="$CFLAGS"
10552
10553if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10554	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10555	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10556$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10557if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10558  $as_echo_n "(cached) " >&6
10559else
10560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10561/* end confdefs.h.  */
10562int i;
10563_ACEOF
10564if ac_fn_c_try_compile "$LINENO"; then :
10565  xorg_cv_cc_flag_unknown_warning_option=yes
10566else
10567  xorg_cv_cc_flag_unknown_warning_option=no
10568fi
10569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10570fi
10571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10572$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10573	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10574	CFLAGS="$xorg_testset_save_CFLAGS"
10575fi
10576
10577if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10578	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10579		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10580	fi
10581	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10582	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10583$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10584if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10585  $as_echo_n "(cached) " >&6
10586else
10587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10588/* end confdefs.h.  */
10589int i;
10590_ACEOF
10591if ac_fn_c_try_compile "$LINENO"; then :
10592  xorg_cv_cc_flag_unused_command_line_argument=yes
10593else
10594  xorg_cv_cc_flag_unused_command_line_argument=no
10595fi
10596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10597fi
10598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10599$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10600	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10601	CFLAGS="$xorg_testset_save_CFLAGS"
10602fi
10603
10604found="no"
10605
10606	if test $found = "no" ; then
10607		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10608			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10609		fi
10610
10611		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10612			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10613		fi
10614
10615		CFLAGS="$CFLAGS -Werror=attributes"
10616
10617		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10618$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10619		cacheid=xorg_cv_cc_flag__Werror_attributes
10620		if eval \${$cacheid+:} false; then :
10621  $as_echo_n "(cached) " >&6
10622else
10623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10624/* end confdefs.h.  */
10625int i;
10626int
10627main ()
10628{
10629
10630  ;
10631  return 0;
10632}
10633_ACEOF
10634if ac_fn_c_try_link "$LINENO"; then :
10635  eval $cacheid=yes
10636else
10637  eval $cacheid=no
10638fi
10639rm -f core conftest.err conftest.$ac_objext \
10640    conftest$ac_exeext conftest.$ac_ext
10641fi
10642
10643
10644		CFLAGS="$xorg_testset_save_CFLAGS"
10645
10646		eval supported=\$$cacheid
10647		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10648$as_echo "$supported" >&6; }
10649		if test "$supported" = "yes" ; then
10650			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10651			found="yes"
10652		fi
10653	fi
10654
10655
10656
10657if test "x$STRICT_COMPILE" = "xyes"; then
10658    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10659    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10660fi
10661
10662
10663
10664
10665
10666
10667cat >>confdefs.h <<_ACEOF
10668#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10669_ACEOF
10670
10671	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10672	if test "x$PVM" = "x"; then
10673		PVM="0"
10674	fi
10675
10676cat >>confdefs.h <<_ACEOF
10677#define PACKAGE_VERSION_MINOR $PVM
10678_ACEOF
10679
10680	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10681	if test "x$PVP" = "x"; then
10682		PVP="0"
10683	fi
10684
10685cat >>confdefs.h <<_ACEOF
10686#define PACKAGE_VERSION_PATCHLEVEL $PVP
10687_ACEOF
10688
10689
10690
10691CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10692mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10693|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10694echo 'git directory not found: installing possibly empty changelog.' >&2)"
10695
10696
10697
10698
10699macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10700INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10701mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10702|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10703echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10704
10705
10706
10707
10708
10709
10710if test x$APP_MAN_SUFFIX = x    ; then
10711    APP_MAN_SUFFIX=1
10712fi
10713if test x$APP_MAN_DIR = x    ; then
10714    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10715fi
10716
10717if test x$LIB_MAN_SUFFIX = x    ; then
10718    LIB_MAN_SUFFIX=3
10719fi
10720if test x$LIB_MAN_DIR = x    ; then
10721    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10722fi
10723
10724if test x$FILE_MAN_SUFFIX = x    ; then
10725    case $host_os in
10726	solaris*)	FILE_MAN_SUFFIX=4  ;;
10727	*)		FILE_MAN_SUFFIX=5  ;;
10728    esac
10729fi
10730if test x$FILE_MAN_DIR = x    ; then
10731    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10732fi
10733
10734if test x$MISC_MAN_SUFFIX = x    ; then
10735    case $host_os in
10736	solaris*)	MISC_MAN_SUFFIX=5  ;;
10737	*)		MISC_MAN_SUFFIX=7  ;;
10738    esac
10739fi
10740if test x$MISC_MAN_DIR = x    ; then
10741    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10742fi
10743
10744if test x$DRIVER_MAN_SUFFIX = x    ; then
10745    case $host_os in
10746	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10747	*)		DRIVER_MAN_SUFFIX=4  ;;
10748    esac
10749fi
10750if test x$DRIVER_MAN_DIR = x    ; then
10751    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10752fi
10753
10754if test x$ADMIN_MAN_SUFFIX = x    ; then
10755    case $host_os in
10756	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10757	*)		ADMIN_MAN_SUFFIX=8  ;;
10758    esac
10759fi
10760if test x$ADMIN_MAN_DIR = x    ; then
10761    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10762fi
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778XORG_MAN_PAGE="X Version 11"
10779
10780MAN_SUBSTS="\
10781	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10782	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10783	-e 's|__xservername__|Xorg|g' \
10784	-e 's|__xconfigfile__|xorg.conf|g' \
10785	-e 's|__projectroot__|\$(prefix)|g' \
10786	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10787	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10788	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10789	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10790	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10791	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10792	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10793
10794
10795
10796# Check whether --enable-silent-rules was given.
10797if test "${enable_silent_rules+set}" = set; then :
10798  enableval=$enable_silent_rules;
10799fi
10800
10801case $enable_silent_rules in # (((
10802  yes) AM_DEFAULT_VERBOSITY=0;;
10803   no) AM_DEFAULT_VERBOSITY=1;;
10804    *) AM_DEFAULT_VERBOSITY=0;;
10805esac
10806am_make=${MAKE-make}
10807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10808$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10809if ${am_cv_make_support_nested_variables+:} false; then :
10810  $as_echo_n "(cached) " >&6
10811else
10812  if $as_echo 'TRUE=$(BAR$(V))
10813BAR0=false
10814BAR1=true
10815V=1
10816am__doit:
10817	@$(TRUE)
10818.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10819  am_cv_make_support_nested_variables=yes
10820else
10821  am_cv_make_support_nested_variables=no
10822fi
10823fi
10824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10825$as_echo "$am_cv_make_support_nested_variables" >&6; }
10826if test $am_cv_make_support_nested_variables = yes; then
10827    AM_V='$(V)'
10828  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10829else
10830  AM_V=$AM_DEFAULT_VERBOSITY
10831  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10832fi
10833AM_BACKSLASH='\'
10834
10835
10836
10837# Checks for pkg-config packages
10838
10839pkg_failed=no
10840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCONSOLE" >&5
10841$as_echo_n "checking for XCONSOLE... " >&6; }
10842
10843if test -n "$XCONSOLE_CFLAGS"; then
10844    pkg_cv_XCONSOLE_CFLAGS="$XCONSOLE_CFLAGS"
10845 elif test -n "$PKG_CONFIG"; then
10846    if test -n "$PKG_CONFIG" && \
10847    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17\""; } >&5
10848  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17") 2>&5
10849  ac_status=$?
10850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10851  test $ac_status = 0; }; then
10852  pkg_cv_XCONSOLE_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17" 2>/dev/null`
10853		      test "x$?" != "x0" && pkg_failed=yes
10854else
10855  pkg_failed=yes
10856fi
10857 else
10858    pkg_failed=untried
10859fi
10860if test -n "$XCONSOLE_LIBS"; then
10861    pkg_cv_XCONSOLE_LIBS="$XCONSOLE_LIBS"
10862 elif test -n "$PKG_CONFIG"; then
10863    if test -n "$PKG_CONFIG" && \
10864    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17\""; } >&5
10865  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17") 2>&5
10866  ac_status=$?
10867  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10868  test $ac_status = 0; }; then
10869  pkg_cv_XCONSOLE_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17" 2>/dev/null`
10870		      test "x$?" != "x0" && pkg_failed=yes
10871else
10872  pkg_failed=yes
10873fi
10874 else
10875    pkg_failed=untried
10876fi
10877
10878
10879
10880if test $pkg_failed = yes; then
10881   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10882$as_echo "no" >&6; }
10883
10884if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10885        _pkg_short_errors_supported=yes
10886else
10887        _pkg_short_errors_supported=no
10888fi
10889        if test $_pkg_short_errors_supported = yes; then
10890	        XCONSOLE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17" 2>&1`
10891        else
10892	        XCONSOLE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17" 2>&1`
10893        fi
10894	# Put the nasty error message in config.log where it belongs
10895	echo "$XCONSOLE_PKG_ERRORS" >&5
10896
10897	as_fn_error $? "Package requirements (xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17) were not met:
10898
10899$XCONSOLE_PKG_ERRORS
10900
10901Consider adjusting the PKG_CONFIG_PATH environment variable if you
10902installed software in a non-standard prefix.
10903
10904Alternatively, you may set the environment variables XCONSOLE_CFLAGS
10905and XCONSOLE_LIBS to avoid the need to call pkg-config.
10906See the pkg-config man page for more details." "$LINENO" 5
10907elif test $pkg_failed = untried; then
10908     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10909$as_echo "no" >&6; }
10910	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10911$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10912as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10913is in your PATH or set the PKG_CONFIG environment variable to the full
10914path to pkg-config.
10915
10916Alternatively, you may set the environment variables XCONSOLE_CFLAGS
10917and XCONSOLE_LIBS to avoid the need to call pkg-config.
10918See the pkg-config man page for more details.
10919
10920To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10921See \`config.log' for more details" "$LINENO" 5; }
10922else
10923	XCONSOLE_CFLAGS=$pkg_cv_XCONSOLE_CFLAGS
10924	XCONSOLE_LIBS=$pkg_cv_XCONSOLE_LIBS
10925        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10926$as_echo "yes" >&6; }
10927
10928fi
10929
10930
10931pkg_failed=no
10932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
10933$as_echo_n "checking for APPDEFS... " >&6; }
10934
10935if test -n "$APPDEFS_CFLAGS"; then
10936    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
10937 elif test -n "$PKG_CONFIG"; then
10938    if test -n "$PKG_CONFIG" && \
10939    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10940  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10941  ac_status=$?
10942  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10943  test $ac_status = 0; }; then
10944  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
10945		      test "x$?" != "x0" && pkg_failed=yes
10946else
10947  pkg_failed=yes
10948fi
10949 else
10950    pkg_failed=untried
10951fi
10952if test -n "$APPDEFS_LIBS"; then
10953    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
10954 elif test -n "$PKG_CONFIG"; then
10955    if test -n "$PKG_CONFIG" && \
10956    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10957  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10958  ac_status=$?
10959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10960  test $ac_status = 0; }; then
10961  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
10962		      test "x$?" != "x0" && pkg_failed=yes
10963else
10964  pkg_failed=yes
10965fi
10966 else
10967    pkg_failed=untried
10968fi
10969
10970
10971
10972if test $pkg_failed = yes; then
10973   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10974$as_echo "no" >&6; }
10975
10976if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10977        _pkg_short_errors_supported=yes
10978else
10979        _pkg_short_errors_supported=no
10980fi
10981        if test $_pkg_short_errors_supported = yes; then
10982	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
10983        else
10984	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
10985        fi
10986	# Put the nasty error message in config.log where it belongs
10987	echo "$APPDEFS_PKG_ERRORS" >&5
10988
10989	as_fn_error $? "Package requirements (xt) were not met:
10990
10991$APPDEFS_PKG_ERRORS
10992
10993Consider adjusting the PKG_CONFIG_PATH environment variable if you
10994installed software in a non-standard prefix.
10995
10996Alternatively, you may set the environment variables APPDEFS_CFLAGS
10997and APPDEFS_LIBS to avoid the need to call pkg-config.
10998See the pkg-config man page for more details." "$LINENO" 5
10999elif test $pkg_failed = untried; then
11000     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11001$as_echo "no" >&6; }
11002	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11003$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11004as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11005is in your PATH or set the PKG_CONFIG environment variable to the full
11006path to pkg-config.
11007
11008Alternatively, you may set the environment variables APPDEFS_CFLAGS
11009and APPDEFS_LIBS to avoid the need to call pkg-config.
11010See the pkg-config man page for more details.
11011
11012To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11013See \`config.log' for more details" "$LINENO" 5; }
11014else
11015	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
11016	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
11017        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11018$as_echo "yes" >&6; }
11019
11020fi
11021xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11022
11023# Check whether --with-appdefaultdir was given.
11024if test "${with_appdefaultdir+set}" = set; then :
11025  withval=$with_appdefaultdir; appdefaultdir="$withval"
11026else
11027  appdefaultdir="${xt_appdefaultdir}"
11028fi
11029
11030
11031
11032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
11033$as_echo_n "checking for library containing openpty... " >&6; }
11034if ${ac_cv_search_openpty+:} false; then :
11035  $as_echo_n "(cached) " >&6
11036else
11037  ac_func_search_save_LIBS=$LIBS
11038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11039/* end confdefs.h.  */
11040
11041/* Override any GCC internal prototype to avoid an error.
11042   Use char because int might match the return type of a GCC
11043   builtin and then its argument prototype would still apply.  */
11044#ifdef __cplusplus
11045extern "C"
11046#endif
11047char openpty ();
11048int
11049main ()
11050{
11051return openpty ();
11052  ;
11053  return 0;
11054}
11055_ACEOF
11056for ac_lib in '' util; do
11057  if test -z "$ac_lib"; then
11058    ac_res="none required"
11059  else
11060    ac_res=-l$ac_lib
11061    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11062  fi
11063  if ac_fn_c_try_link "$LINENO"; then :
11064  ac_cv_search_openpty=$ac_res
11065fi
11066rm -f core conftest.err conftest.$ac_objext \
11067    conftest$ac_exeext
11068  if ${ac_cv_search_openpty+:} false; then :
11069  break
11070fi
11071done
11072if ${ac_cv_search_openpty+:} false; then :
11073
11074else
11075  ac_cv_search_openpty=no
11076fi
11077rm conftest.$ac_ext
11078LIBS=$ac_func_search_save_LIBS
11079fi
11080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
11081$as_echo "$ac_cv_search_openpty" >&6; }
11082ac_res=$ac_cv_search_openpty
11083if test "$ac_res" != no; then :
11084  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11085
11086fi
11087
11088ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
11089if test "x$ac_cv_func_openpty" = xyes; then :
11090  HAS_OPENPTY="yes"
11091fi
11092
11093if test "x$HAS_OPENPTY" = "xyes" ; then
11094
11095$as_echo "#define HAS_OPENPTY 1" >>confdefs.h
11096
11097	for ac_header in util.h libutil.h pty.h
11098do :
11099  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11100ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11101if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11102  cat >>confdefs.h <<_ACEOF
11103#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11104_ACEOF
11105 break
11106fi
11107
11108done
11109
11110fi
11111
11112
11113ac_config_files="$ac_config_files Makefile man/Makefile"
11114
11115cat >confcache <<\_ACEOF
11116# This file is a shell script that caches the results of configure
11117# tests run on this system so they can be shared between configure
11118# scripts and configure runs, see configure's option --config-cache.
11119# It is not useful on other systems.  If it contains results you don't
11120# want to keep, you may remove or edit it.
11121#
11122# config.status only pays attention to the cache file if you give it
11123# the --recheck option to rerun configure.
11124#
11125# `ac_cv_env_foo' variables (set or unset) will be overridden when
11126# loading this file, other *unset* `ac_cv_foo' will be assigned the
11127# following values.
11128
11129_ACEOF
11130
11131# The following way of writing the cache mishandles newlines in values,
11132# but we know of no workaround that is simple, portable, and efficient.
11133# So, we kill variables containing newlines.
11134# Ultrix sh set writes to stderr and can't be redirected directly,
11135# and sets the high bit in the cache file unless we assign to the vars.
11136(
11137  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11138    eval ac_val=\$$ac_var
11139    case $ac_val in #(
11140    *${as_nl}*)
11141      case $ac_var in #(
11142      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11143$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11144      esac
11145      case $ac_var in #(
11146      _ | IFS | as_nl) ;; #(
11147      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11148      *) { eval $ac_var=; unset $ac_var;} ;;
11149      esac ;;
11150    esac
11151  done
11152
11153  (set) 2>&1 |
11154    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11155    *${as_nl}ac_space=\ *)
11156      # `set' does not quote correctly, so add quotes: double-quote
11157      # substitution turns \\\\ into \\, and sed turns \\ into \.
11158      sed -n \
11159	"s/'/'\\\\''/g;
11160	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11161      ;; #(
11162    *)
11163      # `set' quotes correctly as required by POSIX, so do not add quotes.
11164      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11165      ;;
11166    esac |
11167    sort
11168) |
11169  sed '
11170     /^ac_cv_env_/b end
11171     t clear
11172     :clear
11173     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11174     t end
11175     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11176     :end' >>confcache
11177if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11178  if test -w "$cache_file"; then
11179    if test "x$cache_file" != "x/dev/null"; then
11180      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11181$as_echo "$as_me: updating cache $cache_file" >&6;}
11182      if test ! -f "$cache_file" || test -h "$cache_file"; then
11183	cat confcache >"$cache_file"
11184      else
11185        case $cache_file in #(
11186        */* | ?:*)
11187	  mv -f confcache "$cache_file"$$ &&
11188	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11189        *)
11190	  mv -f confcache "$cache_file" ;;
11191	esac
11192      fi
11193    fi
11194  else
11195    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11196$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11197  fi
11198fi
11199rm -f confcache
11200
11201test "x$prefix" = xNONE && prefix=$ac_default_prefix
11202# Let make expand exec_prefix.
11203test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11204
11205DEFS=-DHAVE_CONFIG_H
11206
11207ac_libobjs=
11208ac_ltlibobjs=
11209U=
11210for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11211  # 1. Remove the extension, and $U if already installed.
11212  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11213  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11214  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11215  #    will be set to the directory where LIBOBJS objects are built.
11216  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11217  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11218done
11219LIBOBJS=$ac_libobjs
11220
11221LTLIBOBJS=$ac_ltlibobjs
11222
11223
11224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11225$as_echo_n "checking that generated files are newer than configure... " >&6; }
11226   if test -n "$am_sleep_pid"; then
11227     # Hide warnings about reused PIDs.
11228     wait $am_sleep_pid 2>/dev/null
11229   fi
11230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11231$as_echo "done" >&6; }
11232if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11233  as_fn_error $? "conditional \"AMDEP\" was never defined.
11234Usually this means the macro was only invoked conditionally." "$LINENO" 5
11235fi
11236if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11237  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11238Usually this means the macro was only invoked conditionally." "$LINENO" 5
11239fi
11240 if test -n "$EXEEXT"; then
11241  am__EXEEXT_TRUE=
11242  am__EXEEXT_FALSE='#'
11243else
11244  am__EXEEXT_TRUE='#'
11245  am__EXEEXT_FALSE=
11246fi
11247
11248
11249: "${CONFIG_STATUS=./config.status}"
11250ac_write_fail=0
11251ac_clean_files_save=$ac_clean_files
11252ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11253{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11254$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11255as_write_fail=0
11256cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11257#! $SHELL
11258# Generated by $as_me.
11259# Run this file to recreate the current configuration.
11260# Compiler output produced by configure, useful for debugging
11261# configure, is in config.log if it exists.
11262
11263debug=false
11264ac_cs_recheck=false
11265ac_cs_silent=false
11266
11267SHELL=\${CONFIG_SHELL-$SHELL}
11268export SHELL
11269_ASEOF
11270cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11271## -------------------- ##
11272## M4sh Initialization. ##
11273## -------------------- ##
11274
11275# Be more Bourne compatible
11276DUALCASE=1; export DUALCASE # for MKS sh
11277if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11278  emulate sh
11279  NULLCMD=:
11280  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11281  # is contrary to our usage.  Disable this feature.
11282  alias -g '${1+"$@"}'='"$@"'
11283  setopt NO_GLOB_SUBST
11284else
11285  case `(set -o) 2>/dev/null` in #(
11286  *posix*) :
11287    set -o posix ;; #(
11288  *) :
11289     ;;
11290esac
11291fi
11292
11293
11294as_nl='
11295'
11296export as_nl
11297# Printing a long string crashes Solaris 7 /usr/bin/printf.
11298as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11299as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11300as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11301# Prefer a ksh shell builtin over an external printf program on Solaris,
11302# but without wasting forks for bash or zsh.
11303if test -z "$BASH_VERSION$ZSH_VERSION" \
11304    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11305  as_echo='print -r --'
11306  as_echo_n='print -rn --'
11307elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11308  as_echo='printf %s\n'
11309  as_echo_n='printf %s'
11310else
11311  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11312    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11313    as_echo_n='/usr/ucb/echo -n'
11314  else
11315    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11316    as_echo_n_body='eval
11317      arg=$1;
11318      case $arg in #(
11319      *"$as_nl"*)
11320	expr "X$arg" : "X\\(.*\\)$as_nl";
11321	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11322      esac;
11323      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11324    '
11325    export as_echo_n_body
11326    as_echo_n='sh -c $as_echo_n_body as_echo'
11327  fi
11328  export as_echo_body
11329  as_echo='sh -c $as_echo_body as_echo'
11330fi
11331
11332# The user is always right.
11333if test "${PATH_SEPARATOR+set}" != set; then
11334  PATH_SEPARATOR=:
11335  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11336    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11337      PATH_SEPARATOR=';'
11338  }
11339fi
11340
11341
11342# IFS
11343# We need space, tab and new line, in precisely that order.  Quoting is
11344# there to prevent editors from complaining about space-tab.
11345# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11346# splitting by setting IFS to empty value.)
11347IFS=" ""	$as_nl"
11348
11349# Find who we are.  Look in the path if we contain no directory separator.
11350as_myself=
11351case $0 in #((
11352  *[\\/]* ) as_myself=$0 ;;
11353  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11354for as_dir in $PATH
11355do
11356  IFS=$as_save_IFS
11357  test -z "$as_dir" && as_dir=.
11358    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11359  done
11360IFS=$as_save_IFS
11361
11362     ;;
11363esac
11364# We did not find ourselves, most probably we were run as `sh COMMAND'
11365# in which case we are not to be found in the path.
11366if test "x$as_myself" = x; then
11367  as_myself=$0
11368fi
11369if test ! -f "$as_myself"; then
11370  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11371  exit 1
11372fi
11373
11374# Unset variables that we do not need and which cause bugs (e.g. in
11375# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11376# suppresses any "Segmentation fault" message there.  '((' could
11377# trigger a bug in pdksh 5.2.14.
11378for as_var in BASH_ENV ENV MAIL MAILPATH
11379do eval test x\${$as_var+set} = xset \
11380  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11381done
11382PS1='$ '
11383PS2='> '
11384PS4='+ '
11385
11386# NLS nuisances.
11387LC_ALL=C
11388export LC_ALL
11389LANGUAGE=C
11390export LANGUAGE
11391
11392# CDPATH.
11393(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11394
11395
11396# as_fn_error STATUS ERROR [LINENO LOG_FD]
11397# ----------------------------------------
11398# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11399# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11400# script with STATUS, using 1 if that was 0.
11401as_fn_error ()
11402{
11403  as_status=$1; test $as_status -eq 0 && as_status=1
11404  if test "$4"; then
11405    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11406    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11407  fi
11408  $as_echo "$as_me: error: $2" >&2
11409  as_fn_exit $as_status
11410} # as_fn_error
11411
11412
11413# as_fn_set_status STATUS
11414# -----------------------
11415# Set $? to STATUS, without forking.
11416as_fn_set_status ()
11417{
11418  return $1
11419} # as_fn_set_status
11420
11421# as_fn_exit STATUS
11422# -----------------
11423# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11424as_fn_exit ()
11425{
11426  set +e
11427  as_fn_set_status $1
11428  exit $1
11429} # as_fn_exit
11430
11431# as_fn_unset VAR
11432# ---------------
11433# Portably unset VAR.
11434as_fn_unset ()
11435{
11436  { eval $1=; unset $1;}
11437}
11438as_unset=as_fn_unset
11439# as_fn_append VAR VALUE
11440# ----------------------
11441# Append the text in VALUE to the end of the definition contained in VAR. Take
11442# advantage of any shell optimizations that allow amortized linear growth over
11443# repeated appends, instead of the typical quadratic growth present in naive
11444# implementations.
11445if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11446  eval 'as_fn_append ()
11447  {
11448    eval $1+=\$2
11449  }'
11450else
11451  as_fn_append ()
11452  {
11453    eval $1=\$$1\$2
11454  }
11455fi # as_fn_append
11456
11457# as_fn_arith ARG...
11458# ------------------
11459# Perform arithmetic evaluation on the ARGs, and store the result in the
11460# global $as_val. Take advantage of shells that can avoid forks. The arguments
11461# must be portable across $(()) and expr.
11462if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11463  eval 'as_fn_arith ()
11464  {
11465    as_val=$(( $* ))
11466  }'
11467else
11468  as_fn_arith ()
11469  {
11470    as_val=`expr "$@" || test $? -eq 1`
11471  }
11472fi # as_fn_arith
11473
11474
11475if expr a : '\(a\)' >/dev/null 2>&1 &&
11476   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11477  as_expr=expr
11478else
11479  as_expr=false
11480fi
11481
11482if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11483  as_basename=basename
11484else
11485  as_basename=false
11486fi
11487
11488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11489  as_dirname=dirname
11490else
11491  as_dirname=false
11492fi
11493
11494as_me=`$as_basename -- "$0" ||
11495$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11496	 X"$0" : 'X\(//\)$' \| \
11497	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11498$as_echo X/"$0" |
11499    sed '/^.*\/\([^/][^/]*\)\/*$/{
11500	    s//\1/
11501	    q
11502	  }
11503	  /^X\/\(\/\/\)$/{
11504	    s//\1/
11505	    q
11506	  }
11507	  /^X\/\(\/\).*/{
11508	    s//\1/
11509	    q
11510	  }
11511	  s/.*/./; q'`
11512
11513# Avoid depending upon Character Ranges.
11514as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11515as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11516as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11517as_cr_digits='0123456789'
11518as_cr_alnum=$as_cr_Letters$as_cr_digits
11519
11520ECHO_C= ECHO_N= ECHO_T=
11521case `echo -n x` in #(((((
11522-n*)
11523  case `echo 'xy\c'` in
11524  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11525  xy)  ECHO_C='\c';;
11526  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11527       ECHO_T='	';;
11528  esac;;
11529*)
11530  ECHO_N='-n';;
11531esac
11532
11533rm -f conf$$ conf$$.exe conf$$.file
11534if test -d conf$$.dir; then
11535  rm -f conf$$.dir/conf$$.file
11536else
11537  rm -f conf$$.dir
11538  mkdir conf$$.dir 2>/dev/null
11539fi
11540if (echo >conf$$.file) 2>/dev/null; then
11541  if ln -s conf$$.file conf$$ 2>/dev/null; then
11542    as_ln_s='ln -s'
11543    # ... but there are two gotchas:
11544    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11545    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11546    # In both cases, we have to default to `cp -pR'.
11547    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11548      as_ln_s='cp -pR'
11549  elif ln conf$$.file conf$$ 2>/dev/null; then
11550    as_ln_s=ln
11551  else
11552    as_ln_s='cp -pR'
11553  fi
11554else
11555  as_ln_s='cp -pR'
11556fi
11557rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11558rmdir conf$$.dir 2>/dev/null
11559
11560
11561# as_fn_mkdir_p
11562# -------------
11563# Create "$as_dir" as a directory, including parents if necessary.
11564as_fn_mkdir_p ()
11565{
11566
11567  case $as_dir in #(
11568  -*) as_dir=./$as_dir;;
11569  esac
11570  test -d "$as_dir" || eval $as_mkdir_p || {
11571    as_dirs=
11572    while :; do
11573      case $as_dir in #(
11574      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11575      *) as_qdir=$as_dir;;
11576      esac
11577      as_dirs="'$as_qdir' $as_dirs"
11578      as_dir=`$as_dirname -- "$as_dir" ||
11579$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11580	 X"$as_dir" : 'X\(//\)[^/]' \| \
11581	 X"$as_dir" : 'X\(//\)$' \| \
11582	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11583$as_echo X"$as_dir" |
11584    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11585	    s//\1/
11586	    q
11587	  }
11588	  /^X\(\/\/\)[^/].*/{
11589	    s//\1/
11590	    q
11591	  }
11592	  /^X\(\/\/\)$/{
11593	    s//\1/
11594	    q
11595	  }
11596	  /^X\(\/\).*/{
11597	    s//\1/
11598	    q
11599	  }
11600	  s/.*/./; q'`
11601      test -d "$as_dir" && break
11602    done
11603    test -z "$as_dirs" || eval "mkdir $as_dirs"
11604  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11605
11606
11607} # as_fn_mkdir_p
11608if mkdir -p . 2>/dev/null; then
11609  as_mkdir_p='mkdir -p "$as_dir"'
11610else
11611  test -d ./-p && rmdir ./-p
11612  as_mkdir_p=false
11613fi
11614
11615
11616# as_fn_executable_p FILE
11617# -----------------------
11618# Test if FILE is an executable regular file.
11619as_fn_executable_p ()
11620{
11621  test -f "$1" && test -x "$1"
11622} # as_fn_executable_p
11623as_test_x='test -x'
11624as_executable_p=as_fn_executable_p
11625
11626# Sed expression to map a string onto a valid CPP name.
11627as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11628
11629# Sed expression to map a string onto a valid variable name.
11630as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11631
11632
11633exec 6>&1
11634## ----------------------------------- ##
11635## Main body of $CONFIG_STATUS script. ##
11636## ----------------------------------- ##
11637_ASEOF
11638test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11639
11640cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11641# Save the log message, to keep $0 and so on meaningful, and to
11642# report actual input values of CONFIG_FILES etc. instead of their
11643# values after options handling.
11644ac_log="
11645This file was extended by xconsole $as_me 1.0.7, which was
11646generated by GNU Autoconf 2.69.  Invocation command line was
11647
11648  CONFIG_FILES    = $CONFIG_FILES
11649  CONFIG_HEADERS  = $CONFIG_HEADERS
11650  CONFIG_LINKS    = $CONFIG_LINKS
11651  CONFIG_COMMANDS = $CONFIG_COMMANDS
11652  $ $0 $@
11653
11654on `(hostname || uname -n) 2>/dev/null | sed 1q`
11655"
11656
11657_ACEOF
11658
11659case $ac_config_files in *"
11660"*) set x $ac_config_files; shift; ac_config_files=$*;;
11661esac
11662
11663case $ac_config_headers in *"
11664"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11665esac
11666
11667
11668cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11669# Files that config.status was made for.
11670config_files="$ac_config_files"
11671config_headers="$ac_config_headers"
11672config_commands="$ac_config_commands"
11673
11674_ACEOF
11675
11676cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11677ac_cs_usage="\
11678\`$as_me' instantiates files and other configuration actions
11679from templates according to the current configuration.  Unless the files
11680and actions are specified as TAGs, all are instantiated by default.
11681
11682Usage: $0 [OPTION]... [TAG]...
11683
11684  -h, --help       print this help, then exit
11685  -V, --version    print version number and configuration settings, then exit
11686      --config     print configuration, then exit
11687  -q, --quiet, --silent
11688                   do not print progress messages
11689  -d, --debug      don't remove temporary files
11690      --recheck    update $as_me by reconfiguring in the same conditions
11691      --file=FILE[:TEMPLATE]
11692                   instantiate the configuration file FILE
11693      --header=FILE[:TEMPLATE]
11694                   instantiate the configuration header FILE
11695
11696Configuration files:
11697$config_files
11698
11699Configuration headers:
11700$config_headers
11701
11702Configuration commands:
11703$config_commands
11704
11705Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11706
11707_ACEOF
11708cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11709ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11710ac_cs_version="\\
11711xconsole config.status 1.0.7
11712configured by $0, generated by GNU Autoconf 2.69,
11713  with options \\"\$ac_cs_config\\"
11714
11715Copyright (C) 2012 Free Software Foundation, Inc.
11716This config.status script is free software; the Free Software Foundation
11717gives unlimited permission to copy, distribute and modify it."
11718
11719ac_pwd='$ac_pwd'
11720srcdir='$srcdir'
11721INSTALL='$INSTALL'
11722MKDIR_P='$MKDIR_P'
11723AWK='$AWK'
11724test -n "\$AWK" || AWK=awk
11725_ACEOF
11726
11727cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11728# The default lists apply if the user does not specify any file.
11729ac_need_defaults=:
11730while test $# != 0
11731do
11732  case $1 in
11733  --*=?*)
11734    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11735    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11736    ac_shift=:
11737    ;;
11738  --*=)
11739    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11740    ac_optarg=
11741    ac_shift=:
11742    ;;
11743  *)
11744    ac_option=$1
11745    ac_optarg=$2
11746    ac_shift=shift
11747    ;;
11748  esac
11749
11750  case $ac_option in
11751  # Handling of the options.
11752  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11753    ac_cs_recheck=: ;;
11754  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11755    $as_echo "$ac_cs_version"; exit ;;
11756  --config | --confi | --conf | --con | --co | --c )
11757    $as_echo "$ac_cs_config"; exit ;;
11758  --debug | --debu | --deb | --de | --d | -d )
11759    debug=: ;;
11760  --file | --fil | --fi | --f )
11761    $ac_shift
11762    case $ac_optarg in
11763    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11764    '') as_fn_error $? "missing file argument" ;;
11765    esac
11766    as_fn_append CONFIG_FILES " '$ac_optarg'"
11767    ac_need_defaults=false;;
11768  --header | --heade | --head | --hea )
11769    $ac_shift
11770    case $ac_optarg in
11771    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11772    esac
11773    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11774    ac_need_defaults=false;;
11775  --he | --h)
11776    # Conflict between --help and --header
11777    as_fn_error $? "ambiguous option: \`$1'
11778Try \`$0 --help' for more information.";;
11779  --help | --hel | -h )
11780    $as_echo "$ac_cs_usage"; exit ;;
11781  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11782  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11783    ac_cs_silent=: ;;
11784
11785  # This is an error.
11786  -*) as_fn_error $? "unrecognized option: \`$1'
11787Try \`$0 --help' for more information." ;;
11788
11789  *) as_fn_append ac_config_targets " $1"
11790     ac_need_defaults=false ;;
11791
11792  esac
11793  shift
11794done
11795
11796ac_configure_extra_args=
11797
11798if $ac_cs_silent; then
11799  exec 6>/dev/null
11800  ac_configure_extra_args="$ac_configure_extra_args --silent"
11801fi
11802
11803_ACEOF
11804cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11805if \$ac_cs_recheck; then
11806  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11807  shift
11808  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11809  CONFIG_SHELL='$SHELL'
11810  export CONFIG_SHELL
11811  exec "\$@"
11812fi
11813
11814_ACEOF
11815cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11816exec 5>>config.log
11817{
11818  echo
11819  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11820## Running $as_me. ##
11821_ASBOX
11822  $as_echo "$ac_log"
11823} >&5
11824
11825_ACEOF
11826cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11827#
11828# INIT-COMMANDS
11829#
11830AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11831
11832_ACEOF
11833
11834cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11835
11836# Handling of arguments.
11837for ac_config_target in $ac_config_targets
11838do
11839  case $ac_config_target in
11840    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11841    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11842    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11843    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11844
11845  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11846  esac
11847done
11848
11849
11850# If the user did not use the arguments to specify the items to instantiate,
11851# then the envvar interface is used.  Set only those that are not.
11852# We use the long form for the default assignment because of an extremely
11853# bizarre bug on SunOS 4.1.3.
11854if $ac_need_defaults; then
11855  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11856  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11857  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11858fi
11859
11860# Have a temporary directory for convenience.  Make it in the build tree
11861# simply because there is no reason against having it here, and in addition,
11862# creating and moving files from /tmp can sometimes cause problems.
11863# Hook for its removal unless debugging.
11864# Note that there is a small window in which the directory will not be cleaned:
11865# after its creation but before its name has been assigned to `$tmp'.
11866$debug ||
11867{
11868  tmp= ac_tmp=
11869  trap 'exit_status=$?
11870  : "${ac_tmp:=$tmp}"
11871  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11872' 0
11873  trap 'as_fn_exit 1' 1 2 13 15
11874}
11875# Create a (secure) tmp directory for tmp files.
11876
11877{
11878  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11879  test -d "$tmp"
11880}  ||
11881{
11882  tmp=./conf$$-$RANDOM
11883  (umask 077 && mkdir "$tmp")
11884} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11885ac_tmp=$tmp
11886
11887# Set up the scripts for CONFIG_FILES section.
11888# No need to generate them if there are no CONFIG_FILES.
11889# This happens for instance with `./config.status config.h'.
11890if test -n "$CONFIG_FILES"; then
11891
11892
11893ac_cr=`echo X | tr X '\015'`
11894# On cygwin, bash can eat \r inside `` if the user requested igncr.
11895# But we know of no other shell where ac_cr would be empty at this
11896# point, so we can use a bashism as a fallback.
11897if test "x$ac_cr" = x; then
11898  eval ac_cr=\$\'\\r\'
11899fi
11900ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11901if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11902  ac_cs_awk_cr='\\r'
11903else
11904  ac_cs_awk_cr=$ac_cr
11905fi
11906
11907echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11908_ACEOF
11909
11910
11911{
11912  echo "cat >conf$$subs.awk <<_ACEOF" &&
11913  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11914  echo "_ACEOF"
11915} >conf$$subs.sh ||
11916  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11917ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11918ac_delim='%!_!# '
11919for ac_last_try in false false false false false :; do
11920  . ./conf$$subs.sh ||
11921    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11922
11923  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11924  if test $ac_delim_n = $ac_delim_num; then
11925    break
11926  elif $ac_last_try; then
11927    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11928  else
11929    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11930  fi
11931done
11932rm -f conf$$subs.sh
11933
11934cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11935cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11936_ACEOF
11937sed -n '
11938h
11939s/^/S["/; s/!.*/"]=/
11940p
11941g
11942s/^[^!]*!//
11943:repl
11944t repl
11945s/'"$ac_delim"'$//
11946t delim
11947:nl
11948h
11949s/\(.\{148\}\)..*/\1/
11950t more1
11951s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11952p
11953n
11954b repl
11955:more1
11956s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11957p
11958g
11959s/.\{148\}//
11960t nl
11961:delim
11962h
11963s/\(.\{148\}\)..*/\1/
11964t more2
11965s/["\\]/\\&/g; s/^/"/; s/$/"/
11966p
11967b
11968:more2
11969s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11970p
11971g
11972s/.\{148\}//
11973t delim
11974' <conf$$subs.awk | sed '
11975/^[^""]/{
11976  N
11977  s/\n//
11978}
11979' >>$CONFIG_STATUS || ac_write_fail=1
11980rm -f conf$$subs.awk
11981cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11982_ACAWK
11983cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11984  for (key in S) S_is_set[key] = 1
11985  FS = ""
11986
11987}
11988{
11989  line = $ 0
11990  nfields = split(line, field, "@")
11991  substed = 0
11992  len = length(field[1])
11993  for (i = 2; i < nfields; i++) {
11994    key = field[i]
11995    keylen = length(key)
11996    if (S_is_set[key]) {
11997      value = S[key]
11998      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11999      len += length(value) + length(field[++i])
12000      substed = 1
12001    } else
12002      len += 1 + keylen
12003  }
12004
12005  print line
12006}
12007
12008_ACAWK
12009_ACEOF
12010cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12011if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12012  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12013else
12014  cat
12015fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12016  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12017_ACEOF
12018
12019# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12020# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12021# trailing colons and then remove the whole line if VPATH becomes empty
12022# (actually we leave an empty line to preserve line numbers).
12023if test "x$srcdir" = x.; then
12024  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12025h
12026s///
12027s/^/:/
12028s/[	 ]*$/:/
12029s/:\$(srcdir):/:/g
12030s/:\${srcdir}:/:/g
12031s/:@srcdir@:/:/g
12032s/^:*//
12033s/:*$//
12034x
12035s/\(=[	 ]*\).*/\1/
12036G
12037s/\n//
12038s/^[^=]*=[	 ]*$//
12039}'
12040fi
12041
12042cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12043fi # test -n "$CONFIG_FILES"
12044
12045# Set up the scripts for CONFIG_HEADERS section.
12046# No need to generate them if there are no CONFIG_HEADERS.
12047# This happens for instance with `./config.status Makefile'.
12048if test -n "$CONFIG_HEADERS"; then
12049cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12050BEGIN {
12051_ACEOF
12052
12053# Transform confdefs.h into an awk script `defines.awk', embedded as
12054# here-document in config.status, that substitutes the proper values into
12055# config.h.in to produce config.h.
12056
12057# Create a delimiter string that does not exist in confdefs.h, to ease
12058# handling of long lines.
12059ac_delim='%!_!# '
12060for ac_last_try in false false :; do
12061  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12062  if test -z "$ac_tt"; then
12063    break
12064  elif $ac_last_try; then
12065    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12066  else
12067    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12068  fi
12069done
12070
12071# For the awk script, D is an array of macro values keyed by name,
12072# likewise P contains macro parameters if any.  Preserve backslash
12073# newline sequences.
12074
12075ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12076sed -n '
12077s/.\{148\}/&'"$ac_delim"'/g
12078t rset
12079:rset
12080s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12081t def
12082d
12083:def
12084s/\\$//
12085t bsnl
12086s/["\\]/\\&/g
12087s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12088D["\1"]=" \3"/p
12089s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12090d
12091:bsnl
12092s/["\\]/\\&/g
12093s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12094D["\1"]=" \3\\\\\\n"\\/p
12095t cont
12096s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12097t cont
12098d
12099:cont
12100n
12101s/.\{148\}/&'"$ac_delim"'/g
12102t clear
12103:clear
12104s/\\$//
12105t bsnlc
12106s/["\\]/\\&/g; s/^/"/; s/$/"/p
12107d
12108:bsnlc
12109s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12110b cont
12111' <confdefs.h | sed '
12112s/'"$ac_delim"'/"\\\
12113"/g' >>$CONFIG_STATUS || ac_write_fail=1
12114
12115cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12116  for (key in D) D_is_set[key] = 1
12117  FS = ""
12118}
12119/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12120  line = \$ 0
12121  split(line, arg, " ")
12122  if (arg[1] == "#") {
12123    defundef = arg[2]
12124    mac1 = arg[3]
12125  } else {
12126    defundef = substr(arg[1], 2)
12127    mac1 = arg[2]
12128  }
12129  split(mac1, mac2, "(") #)
12130  macro = mac2[1]
12131  prefix = substr(line, 1, index(line, defundef) - 1)
12132  if (D_is_set[macro]) {
12133    # Preserve the white space surrounding the "#".
12134    print prefix "define", macro P[macro] D[macro]
12135    next
12136  } else {
12137    # Replace #undef with comments.  This is necessary, for example,
12138    # in the case of _POSIX_SOURCE, which is predefined and required
12139    # on some systems where configure will not decide to define it.
12140    if (defundef == "undef") {
12141      print "/*", prefix defundef, macro, "*/"
12142      next
12143    }
12144  }
12145}
12146{ print }
12147_ACAWK
12148_ACEOF
12149cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12150  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12151fi # test -n "$CONFIG_HEADERS"
12152
12153
12154eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12155shift
12156for ac_tag
12157do
12158  case $ac_tag in
12159  :[FHLC]) ac_mode=$ac_tag; continue;;
12160  esac
12161  case $ac_mode$ac_tag in
12162  :[FHL]*:*);;
12163  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12164  :[FH]-) ac_tag=-:-;;
12165  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12166  esac
12167  ac_save_IFS=$IFS
12168  IFS=:
12169  set x $ac_tag
12170  IFS=$ac_save_IFS
12171  shift
12172  ac_file=$1
12173  shift
12174
12175  case $ac_mode in
12176  :L) ac_source=$1;;
12177  :[FH])
12178    ac_file_inputs=
12179    for ac_f
12180    do
12181      case $ac_f in
12182      -) ac_f="$ac_tmp/stdin";;
12183      *) # Look for the file first in the build tree, then in the source tree
12184	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12185	 # because $ac_f cannot contain `:'.
12186	 test -f "$ac_f" ||
12187	   case $ac_f in
12188	   [\\/$]*) false;;
12189	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12190	   esac ||
12191	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12192      esac
12193      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12194      as_fn_append ac_file_inputs " '$ac_f'"
12195    done
12196
12197    # Let's still pretend it is `configure' which instantiates (i.e., don't
12198    # use $as_me), people would be surprised to read:
12199    #    /* config.h.  Generated by config.status.  */
12200    configure_input='Generated from '`
12201	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12202	`' by configure.'
12203    if test x"$ac_file" != x-; then
12204      configure_input="$ac_file.  $configure_input"
12205      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12206$as_echo "$as_me: creating $ac_file" >&6;}
12207    fi
12208    # Neutralize special characters interpreted by sed in replacement strings.
12209    case $configure_input in #(
12210    *\&* | *\|* | *\\* )
12211       ac_sed_conf_input=`$as_echo "$configure_input" |
12212       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12213    *) ac_sed_conf_input=$configure_input;;
12214    esac
12215
12216    case $ac_tag in
12217    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12218      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12219    esac
12220    ;;
12221  esac
12222
12223  ac_dir=`$as_dirname -- "$ac_file" ||
12224$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12225	 X"$ac_file" : 'X\(//\)[^/]' \| \
12226	 X"$ac_file" : 'X\(//\)$' \| \
12227	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12228$as_echo X"$ac_file" |
12229    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12230	    s//\1/
12231	    q
12232	  }
12233	  /^X\(\/\/\)[^/].*/{
12234	    s//\1/
12235	    q
12236	  }
12237	  /^X\(\/\/\)$/{
12238	    s//\1/
12239	    q
12240	  }
12241	  /^X\(\/\).*/{
12242	    s//\1/
12243	    q
12244	  }
12245	  s/.*/./; q'`
12246  as_dir="$ac_dir"; as_fn_mkdir_p
12247  ac_builddir=.
12248
12249case "$ac_dir" in
12250.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12251*)
12252  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12253  # A ".." for each directory in $ac_dir_suffix.
12254  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12255  case $ac_top_builddir_sub in
12256  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12257  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12258  esac ;;
12259esac
12260ac_abs_top_builddir=$ac_pwd
12261ac_abs_builddir=$ac_pwd$ac_dir_suffix
12262# for backward compatibility:
12263ac_top_builddir=$ac_top_build_prefix
12264
12265case $srcdir in
12266  .)  # We are building in place.
12267    ac_srcdir=.
12268    ac_top_srcdir=$ac_top_builddir_sub
12269    ac_abs_top_srcdir=$ac_pwd ;;
12270  [\\/]* | ?:[\\/]* )  # Absolute name.
12271    ac_srcdir=$srcdir$ac_dir_suffix;
12272    ac_top_srcdir=$srcdir
12273    ac_abs_top_srcdir=$srcdir ;;
12274  *) # Relative name.
12275    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12276    ac_top_srcdir=$ac_top_build_prefix$srcdir
12277    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12278esac
12279ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12280
12281
12282  case $ac_mode in
12283  :F)
12284  #
12285  # CONFIG_FILE
12286  #
12287
12288  case $INSTALL in
12289  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12290  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12291  esac
12292  ac_MKDIR_P=$MKDIR_P
12293  case $MKDIR_P in
12294  [\\/$]* | ?:[\\/]* ) ;;
12295  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12296  esac
12297_ACEOF
12298
12299cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12300# If the template does not know about datarootdir, expand it.
12301# FIXME: This hack should be removed a few years after 2.60.
12302ac_datarootdir_hack=; ac_datarootdir_seen=
12303ac_sed_dataroot='
12304/datarootdir/ {
12305  p
12306  q
12307}
12308/@datadir@/p
12309/@docdir@/p
12310/@infodir@/p
12311/@localedir@/p
12312/@mandir@/p'
12313case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12314*datarootdir*) ac_datarootdir_seen=yes;;
12315*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12316  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12317$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12318_ACEOF
12319cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12320  ac_datarootdir_hack='
12321  s&@datadir@&$datadir&g
12322  s&@docdir@&$docdir&g
12323  s&@infodir@&$infodir&g
12324  s&@localedir@&$localedir&g
12325  s&@mandir@&$mandir&g
12326  s&\\\${datarootdir}&$datarootdir&g' ;;
12327esac
12328_ACEOF
12329
12330# Neutralize VPATH when `$srcdir' = `.'.
12331# Shell code in configure.ac might set extrasub.
12332# FIXME: do we really want to maintain this feature?
12333cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12334ac_sed_extra="$ac_vpsub
12335$extrasub
12336_ACEOF
12337cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12338:t
12339/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12340s|@configure_input@|$ac_sed_conf_input|;t t
12341s&@top_builddir@&$ac_top_builddir_sub&;t t
12342s&@top_build_prefix@&$ac_top_build_prefix&;t t
12343s&@srcdir@&$ac_srcdir&;t t
12344s&@abs_srcdir@&$ac_abs_srcdir&;t t
12345s&@top_srcdir@&$ac_top_srcdir&;t t
12346s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12347s&@builddir@&$ac_builddir&;t t
12348s&@abs_builddir@&$ac_abs_builddir&;t t
12349s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12350s&@INSTALL@&$ac_INSTALL&;t t
12351s&@MKDIR_P@&$ac_MKDIR_P&;t t
12352$ac_datarootdir_hack
12353"
12354eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12355  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12356
12357test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12358  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12359  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12360      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12361  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12362which seems to be undefined.  Please make sure it is defined" >&5
12363$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12364which seems to be undefined.  Please make sure it is defined" >&2;}
12365
12366  rm -f "$ac_tmp/stdin"
12367  case $ac_file in
12368  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12369  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12370  esac \
12371  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12372 ;;
12373  :H)
12374  #
12375  # CONFIG_HEADER
12376  #
12377  if test x"$ac_file" != x-; then
12378    {
12379      $as_echo "/* $configure_input  */" \
12380      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12381    } >"$ac_tmp/config.h" \
12382      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12383    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12384      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12385$as_echo "$as_me: $ac_file is unchanged" >&6;}
12386    else
12387      rm -f "$ac_file"
12388      mv "$ac_tmp/config.h" "$ac_file" \
12389	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12390    fi
12391  else
12392    $as_echo "/* $configure_input  */" \
12393      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12394      || as_fn_error $? "could not create -" "$LINENO" 5
12395  fi
12396# Compute "$ac_file"'s index in $config_headers.
12397_am_arg="$ac_file"
12398_am_stamp_count=1
12399for _am_header in $config_headers :; do
12400  case $_am_header in
12401    $_am_arg | $_am_arg:* )
12402      break ;;
12403    * )
12404      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12405  esac
12406done
12407echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12408$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12409	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12410	 X"$_am_arg" : 'X\(//\)$' \| \
12411	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12412$as_echo X"$_am_arg" |
12413    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12414	    s//\1/
12415	    q
12416	  }
12417	  /^X\(\/\/\)[^/].*/{
12418	    s//\1/
12419	    q
12420	  }
12421	  /^X\(\/\/\)$/{
12422	    s//\1/
12423	    q
12424	  }
12425	  /^X\(\/\).*/{
12426	    s//\1/
12427	    q
12428	  }
12429	  s/.*/./; q'`/stamp-h$_am_stamp_count
12430 ;;
12431
12432  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12433$as_echo "$as_me: executing $ac_file commands" >&6;}
12434 ;;
12435  esac
12436
12437
12438  case $ac_file$ac_mode in
12439    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12440  # Older Autoconf quotes --file arguments for eval, but not when files
12441  # are listed without --file.  Let's play safe and only enable the eval
12442  # if we detect the quoting.
12443  case $CONFIG_FILES in
12444  *\'*) eval set x "$CONFIG_FILES" ;;
12445  *)   set x $CONFIG_FILES ;;
12446  esac
12447  shift
12448  for mf
12449  do
12450    # Strip MF so we end up with the name of the file.
12451    mf=`echo "$mf" | sed -e 's/:.*$//'`
12452    # Check whether this is an Automake generated Makefile or not.
12453    # We used to match only the files named 'Makefile.in', but
12454    # some people rename them; so instead we look at the file content.
12455    # Grep'ing the first line is not enough: some people post-process
12456    # each Makefile.in and add a new line on top of each file to say so.
12457    # Grep'ing the whole file is not good either: AIX grep has a line
12458    # limit of 2048, but all sed's we know have understand at least 4000.
12459    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12460      dirpart=`$as_dirname -- "$mf" ||
12461$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12462	 X"$mf" : 'X\(//\)[^/]' \| \
12463	 X"$mf" : 'X\(//\)$' \| \
12464	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12465$as_echo X"$mf" |
12466    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12467	    s//\1/
12468	    q
12469	  }
12470	  /^X\(\/\/\)[^/].*/{
12471	    s//\1/
12472	    q
12473	  }
12474	  /^X\(\/\/\)$/{
12475	    s//\1/
12476	    q
12477	  }
12478	  /^X\(\/\).*/{
12479	    s//\1/
12480	    q
12481	  }
12482	  s/.*/./; q'`
12483    else
12484      continue
12485    fi
12486    # Extract the definition of DEPDIR, am__include, and am__quote
12487    # from the Makefile without running 'make'.
12488    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12489    test -z "$DEPDIR" && continue
12490    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12491    test -z "$am__include" && continue
12492    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12493    # Find all dependency output files, they are included files with
12494    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12495    # simplest approach to changing $(DEPDIR) to its actual value in the
12496    # expansion.
12497    for file in `sed -n "
12498      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12499	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12500      # Make sure the directory exists.
12501      test -f "$dirpart/$file" && continue
12502      fdir=`$as_dirname -- "$file" ||
12503$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12504	 X"$file" : 'X\(//\)[^/]' \| \
12505	 X"$file" : 'X\(//\)$' \| \
12506	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12507$as_echo X"$file" |
12508    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12509	    s//\1/
12510	    q
12511	  }
12512	  /^X\(\/\/\)[^/].*/{
12513	    s//\1/
12514	    q
12515	  }
12516	  /^X\(\/\/\)$/{
12517	    s//\1/
12518	    q
12519	  }
12520	  /^X\(\/\).*/{
12521	    s//\1/
12522	    q
12523	  }
12524	  s/.*/./; q'`
12525      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12526      # echo "creating $dirpart/$file"
12527      echo '# dummy' > "$dirpart/$file"
12528    done
12529  done
12530}
12531 ;;
12532
12533  esac
12534done # for ac_tag
12535
12536
12537as_fn_exit 0
12538_ACEOF
12539ac_clean_files=$ac_clean_files_save
12540
12541test $ac_write_fail = 0 ||
12542  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12543
12544
12545# configure is writing to config.log, and then calls config.status.
12546# config.status does its own redirection, appending to config.log.
12547# Unfortunately, on DOS this fails, as config.log is still kept open
12548# by configure, so config.status won't be able to write to it; its
12549# output is simply discarded.  So we exec the FD to /dev/null,
12550# effectively closing config.log, so it can be properly (re)opened and
12551# appended to by config.status.  When coming back to configure, we
12552# need to make the FD available again.
12553if test "$no_create" != yes; then
12554  ac_cs_success=:
12555  ac_config_status_args=
12556  test "$silent" = yes &&
12557    ac_config_status_args="$ac_config_status_args --quiet"
12558  exec 5>/dev/null
12559  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12560  exec 5>>config.log
12561  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12562  # would make configure fail if this is the last instruction.
12563  $ac_cs_success || as_fn_exit 1
12564fi
12565if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12566  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12567$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12568fi
12569
12570