configure revision 3fe82118
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xlogo 1.0.4.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194	 /*)
195	   for as_base in sh bash ksh sh5; do
196	     # Try only shells that exist, to save several forks.
197	     as_shell=$as_dir/$as_base
198	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205	   done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218	# neutralization value for shells without unset; and this also
219	# works around shells that cannot unset nonexistent variables.
220	# Preserve -v and -x to the replacement shell.
221	BASH_ENV=/dev/null
222	ENV=/dev/null
223	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224	export CONFIG_SHELL
225	case $- in # ((((
226	  *v*x* | *x*v* ) as_opts=-vx ;;
227	  *v* ) as_opts=-v ;;
228	  *x* ) as_opts=-x ;;
229	  * ) as_opts= ;;
230	esac
231	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243$0: about your system, including any error possibly output
244$0: before this message. Then install a modern shell, or
245$0: manually run the script under such a shell if you do
246$0: have one."
247  fi
248  exit 1
249fi
250fi
251fi
252SHELL=${CONFIG_SHELL-/bin/sh}
253export SHELL
254# Unset more variables known to interfere with behavior of common tools.
255CLICOLOR_FORCE= GREP_OPTIONS=
256unset CLICOLOR_FORCE GREP_OPTIONS
257
258## --------------------- ##
259## M4sh Shell Functions. ##
260## --------------------- ##
261# as_fn_unset VAR
262# ---------------
263# Portably unset VAR.
264as_fn_unset ()
265{
266  { eval $1=; unset $1;}
267}
268as_unset=as_fn_unset
269
270# as_fn_set_status STATUS
271# -----------------------
272# Set $? to STATUS, without forking.
273as_fn_set_status ()
274{
275  return $1
276} # as_fn_set_status
277
278# as_fn_exit STATUS
279# -----------------
280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281as_fn_exit ()
282{
283  set +e
284  as_fn_set_status $1
285  exit $1
286} # as_fn_exit
287
288# as_fn_mkdir_p
289# -------------
290# Create "$as_dir" as a directory, including parents if necessary.
291as_fn_mkdir_p ()
292{
293
294  case $as_dir in #(
295  -*) as_dir=./$as_dir;;
296  esac
297  test -d "$as_dir" || eval $as_mkdir_p || {
298    as_dirs=
299    while :; do
300      case $as_dir in #(
301      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302      *) as_qdir=$as_dir;;
303      esac
304      as_dirs="'$as_qdir' $as_dirs"
305      as_dir=`$as_dirname -- "$as_dir" ||
306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307	 X"$as_dir" : 'X\(//\)[^/]' \| \
308	 X"$as_dir" : 'X\(//\)$' \| \
309	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310$as_echo X"$as_dir" |
311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\/\)[^/].*/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\/\)$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\).*/{
324	    s//\1/
325	    q
326	  }
327	  s/.*/./; q'`
328      test -d "$as_dir" && break
329    done
330    test -z "$as_dirs" || eval "mkdir $as_dirs"
331  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334} # as_fn_mkdir_p
335# as_fn_append VAR VALUE
336# ----------------------
337# Append the text in VALUE to the end of the definition contained in VAR. Take
338# advantage of any shell optimizations that allow amortized linear growth over
339# repeated appends, instead of the typical quadratic growth present in naive
340# implementations.
341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342  eval 'as_fn_append ()
343  {
344    eval $1+=\$2
345  }'
346else
347  as_fn_append ()
348  {
349    eval $1=\$$1\$2
350  }
351fi # as_fn_append
352
353# as_fn_arith ARG...
354# ------------------
355# Perform arithmetic evaluation on the ARGs, and store the result in the
356# global $as_val. Take advantage of shells that can avoid forks. The arguments
357# must be portable across $(()) and expr.
358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359  eval 'as_fn_arith ()
360  {
361    as_val=$(( $* ))
362  }'
363else
364  as_fn_arith ()
365  {
366    as_val=`expr "$@" || test $? -eq 1`
367  }
368fi # as_fn_arith
369
370
371# as_fn_error STATUS ERROR [LINENO LOG_FD]
372# ----------------------------------------
373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375# script with STATUS, using 1 if that was 0.
376as_fn_error ()
377{
378  as_status=$1; test $as_status -eq 0 && as_status=1
379  if test "$4"; then
380    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382  fi
383  $as_echo "$as_me: error: $2" >&2
384  as_fn_exit $as_status
385} # as_fn_error
386
387if expr a : '\(a\)' >/dev/null 2>&1 &&
388   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389  as_expr=expr
390else
391  as_expr=false
392fi
393
394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395  as_basename=basename
396else
397  as_basename=false
398fi
399
400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401  as_dirname=dirname
402else
403  as_dirname=false
404fi
405
406as_me=`$as_basename -- "$0" ||
407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408	 X"$0" : 'X\(//\)$' \| \
409	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410$as_echo X/"$0" |
411    sed '/^.*\/\([^/][^/]*\)\/*$/{
412	    s//\1/
413	    q
414	  }
415	  /^X\/\(\/\/\)$/{
416	    s//\1/
417	    q
418	  }
419	  /^X\/\(\/\).*/{
420	    s//\1/
421	    q
422	  }
423	  s/.*/./; q'`
424
425# Avoid depending upon Character Ranges.
426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429as_cr_digits='0123456789'
430as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456  # Don't try to exec as it changes $[0], causing all sort of problems
457  # (the dirname of $[0] is not the place where we might find the
458  # original and so on.  Autoconf is especially sensitive to this).
459  . "./$as_me.lineno"
460  # Exit status is that of the last command.
461  exit
462}
463
464ECHO_C= ECHO_N= ECHO_T=
465case `echo -n x` in #(((((
466-n*)
467  case `echo 'xy\c'` in
468  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469  xy)  ECHO_C='\c';;
470  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471       ECHO_T='	';;
472  esac;;
473*)
474  ECHO_N='-n';;
475esac
476
477rm -f conf$$ conf$$.exe conf$$.file
478if test -d conf$$.dir; then
479  rm -f conf$$.dir/conf$$.file
480else
481  rm -f conf$$.dir
482  mkdir conf$$.dir 2>/dev/null
483fi
484if (echo >conf$$.file) 2>/dev/null; then
485  if ln -s conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s='ln -s'
487    # ... but there are two gotchas:
488    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490    # In both cases, we have to default to `cp -p'.
491    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492      as_ln_s='cp -p'
493  elif ln conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s=ln
495  else
496    as_ln_s='cp -p'
497  fi
498else
499  as_ln_s='cp -p'
500fi
501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502rmdir conf$$.dir 2>/dev/null
503
504if mkdir -p . 2>/dev/null; then
505  as_mkdir_p='mkdir -p "$as_dir"'
506else
507  test -d ./-p && rmdir ./-p
508  as_mkdir_p=false
509fi
510
511if test -x / >/dev/null 2>&1; then
512  as_test_x='test -x'
513else
514  if ls -dL / >/dev/null 2>&1; then
515    as_ls_L_option=L
516  else
517    as_ls_L_option=
518  fi
519  as_test_x='
520    eval sh -c '\''
521      if test -d "$1"; then
522	test -d "$1/.";
523      else
524	case $1 in #(
525	-*)set "./$1";;
526	esac;
527	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528	???[sx]*):;;*)false;;esac;fi
529    '\'' sh
530  '
531fi
532as_executable_p=$as_test_x
533
534# Sed expression to map a string onto a valid CPP name.
535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537# Sed expression to map a string onto a valid variable name.
538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541test -n "$DJDIR" || exec 7<&0 </dev/null
542exec 6>&1
543
544# Name of the host.
545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546# so uname gets run too.
547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549#
550# Initializations.
551#
552ac_default_prefix=/usr/local
553ac_clean_files=
554ac_config_libobj_dir=.
555LIBOBJS=
556cross_compiling=no
557subdirs=
558MFLAGS=
559MAKEFLAGS=
560
561# Identity of this package.
562PACKAGE_NAME='xlogo'
563PACKAGE_TARNAME='xlogo'
564PACKAGE_VERSION='1.0.4'
565PACKAGE_STRING='xlogo 1.0.4'
566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567PACKAGE_URL=''
568
569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
572#ifdef HAVE_SYS_TYPES_H
573# include <sys/types.h>
574#endif
575#ifdef HAVE_SYS_STAT_H
576# include <sys/stat.h>
577#endif
578#ifdef STDC_HEADERS
579# include <stdlib.h>
580# include <stddef.h>
581#else
582# ifdef HAVE_STDLIB_H
583#  include <stdlib.h>
584# endif
585#endif
586#ifdef HAVE_STRING_H
587# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588#  include <memory.h>
589# endif
590# include <string.h>
591#endif
592#ifdef HAVE_STRINGS_H
593# include <strings.h>
594#endif
595#ifdef HAVE_INTTYPES_H
596# include <inttypes.h>
597#endif
598#ifdef HAVE_STDINT_H
599# include <stdint.h>
600#endif
601#ifdef HAVE_UNISTD_H
602# include <unistd.h>
603#endif"
604
605ac_subst_vars='am__EXEEXT_FALSE
606am__EXEEXT_TRUE
607LTLIBOBJS
608LIBOBJS
609appdefaultdir
610APPDEFS_LIBS
611APPDEFS_CFLAGS
612XLOGO_LIBS
613XLOGO_CFLAGS
614USE_RENDER_FALSE
615USE_RENDER_TRUE
616AM_BACKSLASH
617AM_DEFAULT_VERBOSITY
618MAN_SUBSTS
619XORG_MAN_PAGE
620ADMIN_MAN_DIR
621DRIVER_MAN_DIR
622MISC_MAN_DIR
623FILE_MAN_DIR
624LIB_MAN_DIR
625APP_MAN_DIR
626ADMIN_MAN_SUFFIX
627DRIVER_MAN_SUFFIX
628MISC_MAN_SUFFIX
629FILE_MAN_SUFFIX
630LIB_MAN_SUFFIX
631APP_MAN_SUFFIX
632SED
633host_os
634host_vendor
635host_cpu
636host
637build_os
638build_vendor
639build_cpu
640build
641INSTALL_CMD
642PKG_CONFIG
643CHANGELOG_CMD
644STRICT_CFLAGS
645CWARNFLAGS
646BASE_CFLAGS
647EGREP
648GREP
649CPP
650am__fastdepCC_FALSE
651am__fastdepCC_TRUE
652CCDEPMODE
653AMDEPBACKSLASH
654AMDEP_FALSE
655AMDEP_TRUE
656am__quote
657am__include
658DEPDIR
659OBJEXT
660EXEEXT
661ac_ct_CC
662CPPFLAGS
663LDFLAGS
664CFLAGS
665CC
666MAINT
667MAINTAINER_MODE_FALSE
668MAINTAINER_MODE_TRUE
669am__untar
670am__tar
671AMTAR
672am__leading_dot
673SET_MAKE
674AWK
675mkdir_p
676MKDIR_P
677INSTALL_STRIP_PROGRAM
678STRIP
679install_sh
680MAKEINFO
681AUTOHEADER
682AUTOMAKE
683AUTOCONF
684ACLOCAL
685VERSION
686PACKAGE
687CYGPATH_W
688am__isrc
689INSTALL_DATA
690INSTALL_SCRIPT
691INSTALL_PROGRAM
692target_alias
693host_alias
694build_alias
695LIBS
696ECHO_T
697ECHO_N
698ECHO_C
699DEFS
700mandir
701localedir
702libdir
703psdir
704pdfdir
705dvidir
706htmldir
707infodir
708docdir
709oldincludedir
710includedir
711localstatedir
712sharedstatedir
713sysconfdir
714datadir
715datarootdir
716libexecdir
717sbindir
718bindir
719program_transform_name
720prefix
721exec_prefix
722PACKAGE_URL
723PACKAGE_BUGREPORT
724PACKAGE_STRING
725PACKAGE_VERSION
726PACKAGE_TARNAME
727PACKAGE_NAME
728PATH_SEPARATOR
729SHELL'
730ac_subst_files=''
731ac_user_opts='
732enable_option_checking
733enable_maintainer_mode
734enable_dependency_tracking
735enable_selective_werror
736enable_strict_compilation
737enable_silent_rules
738with_render
739with_appdefaultdir
740'
741      ac_precious_vars='build_alias
742host_alias
743target_alias
744CC
745CFLAGS
746LDFLAGS
747LIBS
748CPPFLAGS
749CPP
750PKG_CONFIG
751XLOGO_CFLAGS
752XLOGO_LIBS
753APPDEFS_CFLAGS
754APPDEFS_LIBS'
755
756
757# Initialize some variables set by options.
758ac_init_help=
759ac_init_version=false
760ac_unrecognized_opts=
761ac_unrecognized_sep=
762# The variables have the same names as the options, with
763# dashes changed to underlines.
764cache_file=/dev/null
765exec_prefix=NONE
766no_create=
767no_recursion=
768prefix=NONE
769program_prefix=NONE
770program_suffix=NONE
771program_transform_name=s,x,x,
772silent=
773site=
774srcdir=
775verbose=
776x_includes=NONE
777x_libraries=NONE
778
779# Installation directory options.
780# These are left unexpanded so users can "make install exec_prefix=/foo"
781# and all the variables that are supposed to be based on exec_prefix
782# by default will actually change.
783# Use braces instead of parens because sh, perl, etc. also accept them.
784# (The list follows the same order as the GNU Coding Standards.)
785bindir='${exec_prefix}/bin'
786sbindir='${exec_prefix}/sbin'
787libexecdir='${exec_prefix}/libexec'
788datarootdir='${prefix}/share'
789datadir='${datarootdir}'
790sysconfdir='${prefix}/etc'
791sharedstatedir='${prefix}/com'
792localstatedir='${prefix}/var'
793includedir='${prefix}/include'
794oldincludedir='/usr/include'
795docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
796infodir='${datarootdir}/info'
797htmldir='${docdir}'
798dvidir='${docdir}'
799pdfdir='${docdir}'
800psdir='${docdir}'
801libdir='${exec_prefix}/lib'
802localedir='${datarootdir}/locale'
803mandir='${datarootdir}/man'
804
805ac_prev=
806ac_dashdash=
807for ac_option
808do
809  # If the previous option needs an argument, assign it.
810  if test -n "$ac_prev"; then
811    eval $ac_prev=\$ac_option
812    ac_prev=
813    continue
814  fi
815
816  case $ac_option in
817  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
818  *=)   ac_optarg= ;;
819  *)    ac_optarg=yes ;;
820  esac
821
822  # Accept the important Cygnus configure options, so we can diagnose typos.
823
824  case $ac_dashdash$ac_option in
825  --)
826    ac_dashdash=yes ;;
827
828  -bindir | --bindir | --bindi | --bind | --bin | --bi)
829    ac_prev=bindir ;;
830  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
831    bindir=$ac_optarg ;;
832
833  -build | --build | --buil | --bui | --bu)
834    ac_prev=build_alias ;;
835  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
836    build_alias=$ac_optarg ;;
837
838  -cache-file | --cache-file | --cache-fil | --cache-fi \
839  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
840    ac_prev=cache_file ;;
841  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
842  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
843    cache_file=$ac_optarg ;;
844
845  --config-cache | -C)
846    cache_file=config.cache ;;
847
848  -datadir | --datadir | --datadi | --datad)
849    ac_prev=datadir ;;
850  -datadir=* | --datadir=* | --datadi=* | --datad=*)
851    datadir=$ac_optarg ;;
852
853  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
854  | --dataroo | --dataro | --datar)
855    ac_prev=datarootdir ;;
856  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
857  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
858    datarootdir=$ac_optarg ;;
859
860  -disable-* | --disable-*)
861    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
862    # Reject names that are not valid shell variable names.
863    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
864      as_fn_error $? "invalid feature name: $ac_useropt"
865    ac_useropt_orig=$ac_useropt
866    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
867    case $ac_user_opts in
868      *"
869"enable_$ac_useropt"
870"*) ;;
871      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
872	 ac_unrecognized_sep=', ';;
873    esac
874    eval enable_$ac_useropt=no ;;
875
876  -docdir | --docdir | --docdi | --doc | --do)
877    ac_prev=docdir ;;
878  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
879    docdir=$ac_optarg ;;
880
881  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
882    ac_prev=dvidir ;;
883  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
884    dvidir=$ac_optarg ;;
885
886  -enable-* | --enable-*)
887    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
888    # Reject names that are not valid shell variable names.
889    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890      as_fn_error $? "invalid feature name: $ac_useropt"
891    ac_useropt_orig=$ac_useropt
892    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893    case $ac_user_opts in
894      *"
895"enable_$ac_useropt"
896"*) ;;
897      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
898	 ac_unrecognized_sep=', ';;
899    esac
900    eval enable_$ac_useropt=\$ac_optarg ;;
901
902  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
903  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
904  | --exec | --exe | --ex)
905    ac_prev=exec_prefix ;;
906  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
907  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
908  | --exec=* | --exe=* | --ex=*)
909    exec_prefix=$ac_optarg ;;
910
911  -gas | --gas | --ga | --g)
912    # Obsolete; use --with-gas.
913    with_gas=yes ;;
914
915  -help | --help | --hel | --he | -h)
916    ac_init_help=long ;;
917  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
918    ac_init_help=recursive ;;
919  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
920    ac_init_help=short ;;
921
922  -host | --host | --hos | --ho)
923    ac_prev=host_alias ;;
924  -host=* | --host=* | --hos=* | --ho=*)
925    host_alias=$ac_optarg ;;
926
927  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
928    ac_prev=htmldir ;;
929  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
930  | --ht=*)
931    htmldir=$ac_optarg ;;
932
933  -includedir | --includedir | --includedi | --included | --include \
934  | --includ | --inclu | --incl | --inc)
935    ac_prev=includedir ;;
936  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
937  | --includ=* | --inclu=* | --incl=* | --inc=*)
938    includedir=$ac_optarg ;;
939
940  -infodir | --infodir | --infodi | --infod | --info | --inf)
941    ac_prev=infodir ;;
942  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
943    infodir=$ac_optarg ;;
944
945  -libdir | --libdir | --libdi | --libd)
946    ac_prev=libdir ;;
947  -libdir=* | --libdir=* | --libdi=* | --libd=*)
948    libdir=$ac_optarg ;;
949
950  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
951  | --libexe | --libex | --libe)
952    ac_prev=libexecdir ;;
953  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
954  | --libexe=* | --libex=* | --libe=*)
955    libexecdir=$ac_optarg ;;
956
957  -localedir | --localedir | --localedi | --localed | --locale)
958    ac_prev=localedir ;;
959  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
960    localedir=$ac_optarg ;;
961
962  -localstatedir | --localstatedir | --localstatedi | --localstated \
963  | --localstate | --localstat | --localsta | --localst | --locals)
964    ac_prev=localstatedir ;;
965  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
966  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
967    localstatedir=$ac_optarg ;;
968
969  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
970    ac_prev=mandir ;;
971  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
972    mandir=$ac_optarg ;;
973
974  -nfp | --nfp | --nf)
975    # Obsolete; use --without-fp.
976    with_fp=no ;;
977
978  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
979  | --no-cr | --no-c | -n)
980    no_create=yes ;;
981
982  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
983  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
984    no_recursion=yes ;;
985
986  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
987  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
988  | --oldin | --oldi | --old | --ol | --o)
989    ac_prev=oldincludedir ;;
990  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
991  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
992  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
993    oldincludedir=$ac_optarg ;;
994
995  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
996    ac_prev=prefix ;;
997  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
998    prefix=$ac_optarg ;;
999
1000  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1001  | --program-pre | --program-pr | --program-p)
1002    ac_prev=program_prefix ;;
1003  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1004  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1005    program_prefix=$ac_optarg ;;
1006
1007  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1008  | --program-suf | --program-su | --program-s)
1009    ac_prev=program_suffix ;;
1010  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1011  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1012    program_suffix=$ac_optarg ;;
1013
1014  -program-transform-name | --program-transform-name \
1015  | --program-transform-nam | --program-transform-na \
1016  | --program-transform-n | --program-transform- \
1017  | --program-transform | --program-transfor \
1018  | --program-transfo | --program-transf \
1019  | --program-trans | --program-tran \
1020  | --progr-tra | --program-tr | --program-t)
1021    ac_prev=program_transform_name ;;
1022  -program-transform-name=* | --program-transform-name=* \
1023  | --program-transform-nam=* | --program-transform-na=* \
1024  | --program-transform-n=* | --program-transform-=* \
1025  | --program-transform=* | --program-transfor=* \
1026  | --program-transfo=* | --program-transf=* \
1027  | --program-trans=* | --program-tran=* \
1028  | --progr-tra=* | --program-tr=* | --program-t=*)
1029    program_transform_name=$ac_optarg ;;
1030
1031  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1032    ac_prev=pdfdir ;;
1033  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1034    pdfdir=$ac_optarg ;;
1035
1036  -psdir | --psdir | --psdi | --psd | --ps)
1037    ac_prev=psdir ;;
1038  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1039    psdir=$ac_optarg ;;
1040
1041  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1042  | -silent | --silent | --silen | --sile | --sil)
1043    silent=yes ;;
1044
1045  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1046    ac_prev=sbindir ;;
1047  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1048  | --sbi=* | --sb=*)
1049    sbindir=$ac_optarg ;;
1050
1051  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1052  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1053  | --sharedst | --shareds | --shared | --share | --shar \
1054  | --sha | --sh)
1055    ac_prev=sharedstatedir ;;
1056  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1057  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1058  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1059  | --sha=* | --sh=*)
1060    sharedstatedir=$ac_optarg ;;
1061
1062  -site | --site | --sit)
1063    ac_prev=site ;;
1064  -site=* | --site=* | --sit=*)
1065    site=$ac_optarg ;;
1066
1067  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1068    ac_prev=srcdir ;;
1069  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1070    srcdir=$ac_optarg ;;
1071
1072  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1073  | --syscon | --sysco | --sysc | --sys | --sy)
1074    ac_prev=sysconfdir ;;
1075  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1076  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1077    sysconfdir=$ac_optarg ;;
1078
1079  -target | --target | --targe | --targ | --tar | --ta | --t)
1080    ac_prev=target_alias ;;
1081  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1082    target_alias=$ac_optarg ;;
1083
1084  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1085    verbose=yes ;;
1086
1087  -version | --version | --versio | --versi | --vers | -V)
1088    ac_init_version=: ;;
1089
1090  -with-* | --with-*)
1091    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1092    # Reject names that are not valid shell variable names.
1093    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094      as_fn_error $? "invalid package name: $ac_useropt"
1095    ac_useropt_orig=$ac_useropt
1096    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097    case $ac_user_opts in
1098      *"
1099"with_$ac_useropt"
1100"*) ;;
1101      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1102	 ac_unrecognized_sep=', ';;
1103    esac
1104    eval with_$ac_useropt=\$ac_optarg ;;
1105
1106  -without-* | --without-*)
1107    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1108    # Reject names that are not valid shell variable names.
1109    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110      as_fn_error $? "invalid package name: $ac_useropt"
1111    ac_useropt_orig=$ac_useropt
1112    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113    case $ac_user_opts in
1114      *"
1115"with_$ac_useropt"
1116"*) ;;
1117      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1118	 ac_unrecognized_sep=', ';;
1119    esac
1120    eval with_$ac_useropt=no ;;
1121
1122  --x)
1123    # Obsolete; use --with-x.
1124    with_x=yes ;;
1125
1126  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1127  | --x-incl | --x-inc | --x-in | --x-i)
1128    ac_prev=x_includes ;;
1129  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1130  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1131    x_includes=$ac_optarg ;;
1132
1133  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1134  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1135    ac_prev=x_libraries ;;
1136  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1137  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1138    x_libraries=$ac_optarg ;;
1139
1140  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1141Try \`$0 --help' for more information"
1142    ;;
1143
1144  *=*)
1145    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1146    # Reject names that are not valid shell variable names.
1147    case $ac_envvar in #(
1148      '' | [0-9]* | *[!_$as_cr_alnum]* )
1149      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1150    esac
1151    eval $ac_envvar=\$ac_optarg
1152    export $ac_envvar ;;
1153
1154  *)
1155    # FIXME: should be removed in autoconf 3.0.
1156    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1157    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1158      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1159    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1160    ;;
1161
1162  esac
1163done
1164
1165if test -n "$ac_prev"; then
1166  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1167  as_fn_error $? "missing argument to $ac_option"
1168fi
1169
1170if test -n "$ac_unrecognized_opts"; then
1171  case $enable_option_checking in
1172    no) ;;
1173    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1174    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1175  esac
1176fi
1177
1178# Check all directory arguments for consistency.
1179for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180		datadir sysconfdir sharedstatedir localstatedir includedir \
1181		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182		libdir localedir mandir
1183do
1184  eval ac_val=\$$ac_var
1185  # Remove trailing slashes.
1186  case $ac_val in
1187    */ )
1188      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1189      eval $ac_var=\$ac_val;;
1190  esac
1191  # Be sure to have absolute directory names.
1192  case $ac_val in
1193    [\\/$]* | ?:[\\/]* )  continue;;
1194    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1195  esac
1196  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1197done
1198
1199# There might be people who depend on the old broken behavior: `$host'
1200# used to hold the argument of --host etc.
1201# FIXME: To remove some day.
1202build=$build_alias
1203host=$host_alias
1204target=$target_alias
1205
1206# FIXME: To remove some day.
1207if test "x$host_alias" != x; then
1208  if test "x$build_alias" = x; then
1209    cross_compiling=maybe
1210    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1211    If a cross compiler is detected then cross compile mode will be used" >&2
1212  elif test "x$build_alias" != "x$host_alias"; then
1213    cross_compiling=yes
1214  fi
1215fi
1216
1217ac_tool_prefix=
1218test -n "$host_alias" && ac_tool_prefix=$host_alias-
1219
1220test "$silent" = yes && exec 6>/dev/null
1221
1222
1223ac_pwd=`pwd` && test -n "$ac_pwd" &&
1224ac_ls_di=`ls -di .` &&
1225ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1226  as_fn_error $? "working directory cannot be determined"
1227test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1228  as_fn_error $? "pwd does not report name of working directory"
1229
1230
1231# Find the source files, if location was not specified.
1232if test -z "$srcdir"; then
1233  ac_srcdir_defaulted=yes
1234  # Try the directory containing this script, then the parent directory.
1235  ac_confdir=`$as_dirname -- "$as_myself" ||
1236$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1237	 X"$as_myself" : 'X\(//\)[^/]' \| \
1238	 X"$as_myself" : 'X\(//\)$' \| \
1239	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1240$as_echo X"$as_myself" |
1241    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1242	    s//\1/
1243	    q
1244	  }
1245	  /^X\(\/\/\)[^/].*/{
1246	    s//\1/
1247	    q
1248	  }
1249	  /^X\(\/\/\)$/{
1250	    s//\1/
1251	    q
1252	  }
1253	  /^X\(\/\).*/{
1254	    s//\1/
1255	    q
1256	  }
1257	  s/.*/./; q'`
1258  srcdir=$ac_confdir
1259  if test ! -r "$srcdir/$ac_unique_file"; then
1260    srcdir=..
1261  fi
1262else
1263  ac_srcdir_defaulted=no
1264fi
1265if test ! -r "$srcdir/$ac_unique_file"; then
1266  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1267  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1268fi
1269ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1270ac_abs_confdir=`(
1271	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1272	pwd)`
1273# When building in place, set srcdir=.
1274if test "$ac_abs_confdir" = "$ac_pwd"; then
1275  srcdir=.
1276fi
1277# Remove unnecessary trailing slashes from srcdir.
1278# Double slashes in file names in object file debugging info
1279# mess up M-x gdb in Emacs.
1280case $srcdir in
1281*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1282esac
1283for ac_var in $ac_precious_vars; do
1284  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1285  eval ac_env_${ac_var}_value=\$${ac_var}
1286  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1287  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1288done
1289
1290#
1291# Report the --help message.
1292#
1293if test "$ac_init_help" = "long"; then
1294  # Omit some internal or obsolete options to make the list less imposing.
1295  # This message is too long to be a string in the A/UX 3.1 sh.
1296  cat <<_ACEOF
1297\`configure' configures xlogo 1.0.4 to adapt to many kinds of systems.
1298
1299Usage: $0 [OPTION]... [VAR=VALUE]...
1300
1301To assign environment variables (e.g., CC, CFLAGS...), specify them as
1302VAR=VALUE.  See below for descriptions of some of the useful variables.
1303
1304Defaults for the options are specified in brackets.
1305
1306Configuration:
1307  -h, --help              display this help and exit
1308      --help=short        display options specific to this package
1309      --help=recursive    display the short help of all the included packages
1310  -V, --version           display version information and exit
1311  -q, --quiet, --silent   do not print \`checking ...' messages
1312      --cache-file=FILE   cache test results in FILE [disabled]
1313  -C, --config-cache      alias for \`--cache-file=config.cache'
1314  -n, --no-create         do not create output files
1315      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1316
1317Installation directories:
1318  --prefix=PREFIX         install architecture-independent files in PREFIX
1319                          [$ac_default_prefix]
1320  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1321                          [PREFIX]
1322
1323By default, \`make install' will install all the files in
1324\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1325an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1326for instance \`--prefix=\$HOME'.
1327
1328For better control, use the options below.
1329
1330Fine tuning of the installation directories:
1331  --bindir=DIR            user executables [EPREFIX/bin]
1332  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1333  --libexecdir=DIR        program executables [EPREFIX/libexec]
1334  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1335  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1336  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1337  --libdir=DIR            object code libraries [EPREFIX/lib]
1338  --includedir=DIR        C header files [PREFIX/include]
1339  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1340  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1341  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1342  --infodir=DIR           info documentation [DATAROOTDIR/info]
1343  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1344  --mandir=DIR            man documentation [DATAROOTDIR/man]
1345  --docdir=DIR            documentation root [DATAROOTDIR/doc/xlogo]
1346  --htmldir=DIR           html documentation [DOCDIR]
1347  --dvidir=DIR            dvi documentation [DOCDIR]
1348  --pdfdir=DIR            pdf documentation [DOCDIR]
1349  --psdir=DIR             ps documentation [DOCDIR]
1350_ACEOF
1351
1352  cat <<\_ACEOF
1353
1354Program names:
1355  --program-prefix=PREFIX            prepend PREFIX to installed program names
1356  --program-suffix=SUFFIX            append SUFFIX to installed program names
1357  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1358
1359System types:
1360  --build=BUILD     configure for building on BUILD [guessed]
1361  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1362_ACEOF
1363fi
1364
1365if test -n "$ac_init_help"; then
1366  case $ac_init_help in
1367     short | recursive ) echo "Configuration of xlogo 1.0.4:";;
1368   esac
1369  cat <<\_ACEOF
1370
1371Optional Features:
1372  --disable-option-checking  ignore unrecognized --enable/--with options
1373  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1374  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1375  --enable-maintainer-mode  enable make rules and dependencies not useful
1376			  (and sometimes confusing) to the casual installer
1377  --disable-dependency-tracking  speeds up one-time build
1378  --enable-dependency-tracking   do not reject slow dependency extractors
1379  --disable-selective-werror
1380                          Turn off selective compiler errors. (default:
1381                          enabled)
1382  --enable-strict-compilation
1383                          Enable all warnings from compiler and make them
1384                          errors (default: disabled)
1385  --enable-silent-rules          less verbose build output (undo: `make V=1')
1386  --disable-silent-rules         verbose build output (undo: `make V=0')
1387
1388Optional Packages:
1389  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1390  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1391  --with-xrender          Use Xrender & Xft2 to draw logo
1392  --with-appdefaultdir=<pathname>
1393                          specify directory for app-defaults files (default is
1394                          autodetected)
1395
1396Some influential environment variables:
1397  CC          C compiler command
1398  CFLAGS      C compiler flags
1399  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1400              nonstandard directory <lib dir>
1401  LIBS        libraries to pass to the linker, e.g. -l<library>
1402  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1403              you have headers in a nonstandard directory <include dir>
1404  CPP         C preprocessor
1405  PKG_CONFIG  path to pkg-config utility
1406  XLOGO_CFLAGS
1407              C compiler flags for XLOGO, overriding pkg-config
1408  XLOGO_LIBS  linker flags for XLOGO, overriding pkg-config
1409  APPDEFS_CFLAGS
1410              C compiler flags for APPDEFS, overriding pkg-config
1411  APPDEFS_LIBS
1412              linker flags for APPDEFS, overriding pkg-config
1413
1414Use these variables to override the choices made by `configure' or to help
1415it to find libraries and programs with nonstandard names/locations.
1416
1417Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1418_ACEOF
1419ac_status=$?
1420fi
1421
1422if test "$ac_init_help" = "recursive"; then
1423  # If there are subdirs, report their specific --help.
1424  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1425    test -d "$ac_dir" ||
1426      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1427      continue
1428    ac_builddir=.
1429
1430case "$ac_dir" in
1431.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1432*)
1433  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1434  # A ".." for each directory in $ac_dir_suffix.
1435  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1436  case $ac_top_builddir_sub in
1437  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1439  esac ;;
1440esac
1441ac_abs_top_builddir=$ac_pwd
1442ac_abs_builddir=$ac_pwd$ac_dir_suffix
1443# for backward compatibility:
1444ac_top_builddir=$ac_top_build_prefix
1445
1446case $srcdir in
1447  .)  # We are building in place.
1448    ac_srcdir=.
1449    ac_top_srcdir=$ac_top_builddir_sub
1450    ac_abs_top_srcdir=$ac_pwd ;;
1451  [\\/]* | ?:[\\/]* )  # Absolute name.
1452    ac_srcdir=$srcdir$ac_dir_suffix;
1453    ac_top_srcdir=$srcdir
1454    ac_abs_top_srcdir=$srcdir ;;
1455  *) # Relative name.
1456    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1457    ac_top_srcdir=$ac_top_build_prefix$srcdir
1458    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1459esac
1460ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1461
1462    cd "$ac_dir" || { ac_status=$?; continue; }
1463    # Check for guested configure.
1464    if test -f "$ac_srcdir/configure.gnu"; then
1465      echo &&
1466      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1467    elif test -f "$ac_srcdir/configure"; then
1468      echo &&
1469      $SHELL "$ac_srcdir/configure" --help=recursive
1470    else
1471      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1472    fi || ac_status=$?
1473    cd "$ac_pwd" || { ac_status=$?; break; }
1474  done
1475fi
1476
1477test -n "$ac_init_help" && exit $ac_status
1478if $ac_init_version; then
1479  cat <<\_ACEOF
1480xlogo configure 1.0.4
1481generated by GNU Autoconf 2.68
1482
1483Copyright (C) 2010 Free Software Foundation, Inc.
1484This configure script is free software; the Free Software Foundation
1485gives unlimited permission to copy, distribute and modify it.
1486_ACEOF
1487  exit
1488fi
1489
1490## ------------------------ ##
1491## Autoconf initialization. ##
1492## ------------------------ ##
1493
1494# ac_fn_c_try_compile LINENO
1495# --------------------------
1496# Try to compile conftest.$ac_ext, and return whether this succeeded.
1497ac_fn_c_try_compile ()
1498{
1499  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1500  rm -f conftest.$ac_objext
1501  if { { ac_try="$ac_compile"
1502case "(($ac_try" in
1503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1504  *) ac_try_echo=$ac_try;;
1505esac
1506eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1507$as_echo "$ac_try_echo"; } >&5
1508  (eval "$ac_compile") 2>conftest.err
1509  ac_status=$?
1510  if test -s conftest.err; then
1511    grep -v '^ *+' conftest.err >conftest.er1
1512    cat conftest.er1 >&5
1513    mv -f conftest.er1 conftest.err
1514  fi
1515  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1516  test $ac_status = 0; } && {
1517	 test -z "$ac_c_werror_flag" ||
1518	 test ! -s conftest.err
1519       } && test -s conftest.$ac_objext; then :
1520  ac_retval=0
1521else
1522  $as_echo "$as_me: failed program was:" >&5
1523sed 's/^/| /' conftest.$ac_ext >&5
1524
1525	ac_retval=1
1526fi
1527  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1528  as_fn_set_status $ac_retval
1529
1530} # ac_fn_c_try_compile
1531
1532# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1533# ---------------------------------------------
1534# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1535# accordingly.
1536ac_fn_c_check_decl ()
1537{
1538  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539  as_decl_name=`echo $2|sed 's/ *(.*//'`
1540  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1541  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1542$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1543if eval \${$3+:} false; then :
1544  $as_echo_n "(cached) " >&6
1545else
1546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1547/* end confdefs.h.  */
1548$4
1549int
1550main ()
1551{
1552#ifndef $as_decl_name
1553#ifdef __cplusplus
1554  (void) $as_decl_use;
1555#else
1556  (void) $as_decl_name;
1557#endif
1558#endif
1559
1560  ;
1561  return 0;
1562}
1563_ACEOF
1564if ac_fn_c_try_compile "$LINENO"; then :
1565  eval "$3=yes"
1566else
1567  eval "$3=no"
1568fi
1569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1570fi
1571eval ac_res=\$$3
1572	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1573$as_echo "$ac_res" >&6; }
1574  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575
1576} # ac_fn_c_check_decl
1577
1578# ac_fn_c_try_cpp LINENO
1579# ----------------------
1580# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1581ac_fn_c_try_cpp ()
1582{
1583  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584  if { { ac_try="$ac_cpp conftest.$ac_ext"
1585case "(($ac_try" in
1586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587  *) ac_try_echo=$ac_try;;
1588esac
1589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590$as_echo "$ac_try_echo"; } >&5
1591  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1592  ac_status=$?
1593  if test -s conftest.err; then
1594    grep -v '^ *+' conftest.err >conftest.er1
1595    cat conftest.er1 >&5
1596    mv -f conftest.er1 conftest.err
1597  fi
1598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599  test $ac_status = 0; } > conftest.i && {
1600	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1601	 test ! -s conftest.err
1602       }; then :
1603  ac_retval=0
1604else
1605  $as_echo "$as_me: failed program was:" >&5
1606sed 's/^/| /' conftest.$ac_ext >&5
1607
1608    ac_retval=1
1609fi
1610  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611  as_fn_set_status $ac_retval
1612
1613} # ac_fn_c_try_cpp
1614
1615# ac_fn_c_try_run LINENO
1616# ----------------------
1617# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1618# that executables *can* be run.
1619ac_fn_c_try_run ()
1620{
1621  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622  if { { ac_try="$ac_link"
1623case "(($ac_try" in
1624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625  *) ac_try_echo=$ac_try;;
1626esac
1627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628$as_echo "$ac_try_echo"; } >&5
1629  (eval "$ac_link") 2>&5
1630  ac_status=$?
1631  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1633  { { case "(($ac_try" in
1634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635  *) ac_try_echo=$ac_try;;
1636esac
1637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638$as_echo "$ac_try_echo"; } >&5
1639  (eval "$ac_try") 2>&5
1640  ac_status=$?
1641  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642  test $ac_status = 0; }; }; then :
1643  ac_retval=0
1644else
1645  $as_echo "$as_me: program exited with status $ac_status" >&5
1646       $as_echo "$as_me: failed program was:" >&5
1647sed 's/^/| /' conftest.$ac_ext >&5
1648
1649       ac_retval=$ac_status
1650fi
1651  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1652  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653  as_fn_set_status $ac_retval
1654
1655} # ac_fn_c_try_run
1656
1657# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1658# -------------------------------------------------------
1659# Tests whether HEADER exists and can be compiled using the include files in
1660# INCLUDES, setting the cache variable VAR accordingly.
1661ac_fn_c_check_header_compile ()
1662{
1663  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665$as_echo_n "checking for $2... " >&6; }
1666if eval \${$3+:} false; then :
1667  $as_echo_n "(cached) " >&6
1668else
1669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670/* end confdefs.h.  */
1671$4
1672#include <$2>
1673_ACEOF
1674if ac_fn_c_try_compile "$LINENO"; then :
1675  eval "$3=yes"
1676else
1677  eval "$3=no"
1678fi
1679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1680fi
1681eval ac_res=\$$3
1682	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683$as_echo "$ac_res" >&6; }
1684  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685
1686} # ac_fn_c_check_header_compile
1687
1688# ac_fn_c_try_link LINENO
1689# -----------------------
1690# Try to link conftest.$ac_ext, and return whether this succeeded.
1691ac_fn_c_try_link ()
1692{
1693  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694  rm -f conftest.$ac_objext conftest$ac_exeext
1695  if { { ac_try="$ac_link"
1696case "(($ac_try" in
1697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698  *) ac_try_echo=$ac_try;;
1699esac
1700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701$as_echo "$ac_try_echo"; } >&5
1702  (eval "$ac_link") 2>conftest.err
1703  ac_status=$?
1704  if test -s conftest.err; then
1705    grep -v '^ *+' conftest.err >conftest.er1
1706    cat conftest.er1 >&5
1707    mv -f conftest.er1 conftest.err
1708  fi
1709  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710  test $ac_status = 0; } && {
1711	 test -z "$ac_c_werror_flag" ||
1712	 test ! -s conftest.err
1713       } && test -s conftest$ac_exeext && {
1714	 test "$cross_compiling" = yes ||
1715	 $as_test_x conftest$ac_exeext
1716       }; then :
1717  ac_retval=0
1718else
1719  $as_echo "$as_me: failed program was:" >&5
1720sed 's/^/| /' conftest.$ac_ext >&5
1721
1722	ac_retval=1
1723fi
1724  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1725  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1726  # interfere with the next link command; also delete a directory that is
1727  # left behind by Apple's compiler.  We do this before executing the actions.
1728  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1729  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730  as_fn_set_status $ac_retval
1731
1732} # ac_fn_c_try_link
1733cat >config.log <<_ACEOF
1734This file contains any messages produced by compilers while
1735running configure, to aid debugging if configure makes a mistake.
1736
1737It was created by xlogo $as_me 1.0.4, which was
1738generated by GNU Autoconf 2.68.  Invocation command line was
1739
1740  $ $0 $@
1741
1742_ACEOF
1743exec 5>>config.log
1744{
1745cat <<_ASUNAME
1746## --------- ##
1747## Platform. ##
1748## --------- ##
1749
1750hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1751uname -m = `(uname -m) 2>/dev/null || echo unknown`
1752uname -r = `(uname -r) 2>/dev/null || echo unknown`
1753uname -s = `(uname -s) 2>/dev/null || echo unknown`
1754uname -v = `(uname -v) 2>/dev/null || echo unknown`
1755
1756/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1757/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1758
1759/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1760/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1761/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1762/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1763/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1764/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1765/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1766
1767_ASUNAME
1768
1769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1770for as_dir in $PATH
1771do
1772  IFS=$as_save_IFS
1773  test -z "$as_dir" && as_dir=.
1774    $as_echo "PATH: $as_dir"
1775  done
1776IFS=$as_save_IFS
1777
1778} >&5
1779
1780cat >&5 <<_ACEOF
1781
1782
1783## ----------- ##
1784## Core tests. ##
1785## ----------- ##
1786
1787_ACEOF
1788
1789
1790# Keep a trace of the command line.
1791# Strip out --no-create and --no-recursion so they do not pile up.
1792# Strip out --silent because we don't want to record it for future runs.
1793# Also quote any args containing shell meta-characters.
1794# Make two passes to allow for proper duplicate-argument suppression.
1795ac_configure_args=
1796ac_configure_args0=
1797ac_configure_args1=
1798ac_must_keep_next=false
1799for ac_pass in 1 2
1800do
1801  for ac_arg
1802  do
1803    case $ac_arg in
1804    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1805    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1806    | -silent | --silent | --silen | --sile | --sil)
1807      continue ;;
1808    *\'*)
1809      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1810    esac
1811    case $ac_pass in
1812    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1813    2)
1814      as_fn_append ac_configure_args1 " '$ac_arg'"
1815      if test $ac_must_keep_next = true; then
1816	ac_must_keep_next=false # Got value, back to normal.
1817      else
1818	case $ac_arg in
1819	  *=* | --config-cache | -C | -disable-* | --disable-* \
1820	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1821	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1822	  | -with-* | --with-* | -without-* | --without-* | --x)
1823	    case "$ac_configure_args0 " in
1824	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1825	    esac
1826	    ;;
1827	  -* ) ac_must_keep_next=true ;;
1828	esac
1829      fi
1830      as_fn_append ac_configure_args " '$ac_arg'"
1831      ;;
1832    esac
1833  done
1834done
1835{ ac_configure_args0=; unset ac_configure_args0;}
1836{ ac_configure_args1=; unset ac_configure_args1;}
1837
1838# When interrupted or exit'd, cleanup temporary files, and complete
1839# config.log.  We remove comments because anyway the quotes in there
1840# would cause problems or look ugly.
1841# WARNING: Use '\'' to represent an apostrophe within the trap.
1842# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1843trap 'exit_status=$?
1844  # Save into config.log some information that might help in debugging.
1845  {
1846    echo
1847
1848    $as_echo "## ---------------- ##
1849## Cache variables. ##
1850## ---------------- ##"
1851    echo
1852    # The following way of writing the cache mishandles newlines in values,
1853(
1854  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1855    eval ac_val=\$$ac_var
1856    case $ac_val in #(
1857    *${as_nl}*)
1858      case $ac_var in #(
1859      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1860$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1861      esac
1862      case $ac_var in #(
1863      _ | IFS | as_nl) ;; #(
1864      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1865      *) { eval $ac_var=; unset $ac_var;} ;;
1866      esac ;;
1867    esac
1868  done
1869  (set) 2>&1 |
1870    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1871    *${as_nl}ac_space=\ *)
1872      sed -n \
1873	"s/'\''/'\''\\\\'\'''\''/g;
1874	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1875      ;; #(
1876    *)
1877      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1878      ;;
1879    esac |
1880    sort
1881)
1882    echo
1883
1884    $as_echo "## ----------------- ##
1885## Output variables. ##
1886## ----------------- ##"
1887    echo
1888    for ac_var in $ac_subst_vars
1889    do
1890      eval ac_val=\$$ac_var
1891      case $ac_val in
1892      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1893      esac
1894      $as_echo "$ac_var='\''$ac_val'\''"
1895    done | sort
1896    echo
1897
1898    if test -n "$ac_subst_files"; then
1899      $as_echo "## ------------------- ##
1900## File substitutions. ##
1901## ------------------- ##"
1902      echo
1903      for ac_var in $ac_subst_files
1904      do
1905	eval ac_val=\$$ac_var
1906	case $ac_val in
1907	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1908	esac
1909	$as_echo "$ac_var='\''$ac_val'\''"
1910      done | sort
1911      echo
1912    fi
1913
1914    if test -s confdefs.h; then
1915      $as_echo "## ----------- ##
1916## confdefs.h. ##
1917## ----------- ##"
1918      echo
1919      cat confdefs.h
1920      echo
1921    fi
1922    test "$ac_signal" != 0 &&
1923      $as_echo "$as_me: caught signal $ac_signal"
1924    $as_echo "$as_me: exit $exit_status"
1925  } >&5
1926  rm -f core *.core core.conftest.* &&
1927    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1928    exit $exit_status
1929' 0
1930for ac_signal in 1 2 13 15; do
1931  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1932done
1933ac_signal=0
1934
1935# confdefs.h avoids OS command line length limits that DEFS can exceed.
1936rm -f -r conftest* confdefs.h
1937
1938$as_echo "/* confdefs.h */" > confdefs.h
1939
1940# Predefined preprocessor variables.
1941
1942cat >>confdefs.h <<_ACEOF
1943#define PACKAGE_NAME "$PACKAGE_NAME"
1944_ACEOF
1945
1946cat >>confdefs.h <<_ACEOF
1947#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1948_ACEOF
1949
1950cat >>confdefs.h <<_ACEOF
1951#define PACKAGE_VERSION "$PACKAGE_VERSION"
1952_ACEOF
1953
1954cat >>confdefs.h <<_ACEOF
1955#define PACKAGE_STRING "$PACKAGE_STRING"
1956_ACEOF
1957
1958cat >>confdefs.h <<_ACEOF
1959#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1960_ACEOF
1961
1962cat >>confdefs.h <<_ACEOF
1963#define PACKAGE_URL "$PACKAGE_URL"
1964_ACEOF
1965
1966
1967# Let the site file select an alternate cache file if it wants to.
1968# Prefer an explicitly selected file to automatically selected ones.
1969ac_site_file1=NONE
1970ac_site_file2=NONE
1971if test -n "$CONFIG_SITE"; then
1972  # We do not want a PATH search for config.site.
1973  case $CONFIG_SITE in #((
1974    -*)  ac_site_file1=./$CONFIG_SITE;;
1975    */*) ac_site_file1=$CONFIG_SITE;;
1976    *)   ac_site_file1=./$CONFIG_SITE;;
1977  esac
1978elif test "x$prefix" != xNONE; then
1979  ac_site_file1=$prefix/share/config.site
1980  ac_site_file2=$prefix/etc/config.site
1981else
1982  ac_site_file1=$ac_default_prefix/share/config.site
1983  ac_site_file2=$ac_default_prefix/etc/config.site
1984fi
1985for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1986do
1987  test "x$ac_site_file" = xNONE && continue
1988  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1989    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1990$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1991    sed 's/^/| /' "$ac_site_file" >&5
1992    . "$ac_site_file" \
1993      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1994$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1995as_fn_error $? "failed to load site script $ac_site_file
1996See \`config.log' for more details" "$LINENO" 5; }
1997  fi
1998done
1999
2000if test -r "$cache_file"; then
2001  # Some versions of bash will fail to source /dev/null (special files
2002  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2003  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2004    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2005$as_echo "$as_me: loading cache $cache_file" >&6;}
2006    case $cache_file in
2007      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2008      *)                      . "./$cache_file";;
2009    esac
2010  fi
2011else
2012  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2013$as_echo "$as_me: creating cache $cache_file" >&6;}
2014  >$cache_file
2015fi
2016
2017# Check that the precious variables saved in the cache have kept the same
2018# value.
2019ac_cache_corrupted=false
2020for ac_var in $ac_precious_vars; do
2021  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2022  eval ac_new_set=\$ac_env_${ac_var}_set
2023  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2024  eval ac_new_val=\$ac_env_${ac_var}_value
2025  case $ac_old_set,$ac_new_set in
2026    set,)
2027      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2028$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2029      ac_cache_corrupted=: ;;
2030    ,set)
2031      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2032$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2033      ac_cache_corrupted=: ;;
2034    ,);;
2035    *)
2036      if test "x$ac_old_val" != "x$ac_new_val"; then
2037	# differences in whitespace do not lead to failure.
2038	ac_old_val_w=`echo x $ac_old_val`
2039	ac_new_val_w=`echo x $ac_new_val`
2040	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2041	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2042$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2043	  ac_cache_corrupted=:
2044	else
2045	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2046$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2047	  eval $ac_var=\$ac_old_val
2048	fi
2049	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2050$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2051	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2052$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2053      fi;;
2054  esac
2055  # Pass precious variables to config.status.
2056  if test "$ac_new_set" = set; then
2057    case $ac_new_val in
2058    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2059    *) ac_arg=$ac_var=$ac_new_val ;;
2060    esac
2061    case " $ac_configure_args " in
2062      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2063      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2064    esac
2065  fi
2066done
2067if $ac_cache_corrupted; then
2068  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2069$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2070  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2071$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2072  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2073fi
2074## -------------------- ##
2075## Main body of script. ##
2076## -------------------- ##
2077
2078ac_ext=c
2079ac_cpp='$CPP $CPPFLAGS'
2080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2082ac_compiler_gnu=$ac_cv_c_compiler_gnu
2083
2084
2085am__api_version='1.11'
2086
2087ac_aux_dir=
2088for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2089  if test -f "$ac_dir/install-sh"; then
2090    ac_aux_dir=$ac_dir
2091    ac_install_sh="$ac_aux_dir/install-sh -c"
2092    break
2093  elif test -f "$ac_dir/install.sh"; then
2094    ac_aux_dir=$ac_dir
2095    ac_install_sh="$ac_aux_dir/install.sh -c"
2096    break
2097  elif test -f "$ac_dir/shtool"; then
2098    ac_aux_dir=$ac_dir
2099    ac_install_sh="$ac_aux_dir/shtool install -c"
2100    break
2101  fi
2102done
2103if test -z "$ac_aux_dir"; then
2104  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2105fi
2106
2107# These three variables are undocumented and unsupported,
2108# and are intended to be withdrawn in a future Autoconf release.
2109# They can cause serious problems if a builder's source tree is in a directory
2110# whose full name contains unusual characters.
2111ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2112ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2113ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2114
2115
2116# Find a good install program.  We prefer a C program (faster),
2117# so one script is as good as another.  But avoid the broken or
2118# incompatible versions:
2119# SysV /etc/install, /usr/sbin/install
2120# SunOS /usr/etc/install
2121# IRIX /sbin/install
2122# AIX /bin/install
2123# AmigaOS /C/install, which installs bootblocks on floppy discs
2124# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2125# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2126# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2127# OS/2's system install, which has a completely different semantic
2128# ./install, which can be erroneously created by make from ./install.sh.
2129# Reject install programs that cannot install multiple files.
2130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2131$as_echo_n "checking for a BSD-compatible install... " >&6; }
2132if test -z "$INSTALL"; then
2133if ${ac_cv_path_install+:} false; then :
2134  $as_echo_n "(cached) " >&6
2135else
2136  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137for as_dir in $PATH
2138do
2139  IFS=$as_save_IFS
2140  test -z "$as_dir" && as_dir=.
2141    # Account for people who put trailing slashes in PATH elements.
2142case $as_dir/ in #((
2143  ./ | .// | /[cC]/* | \
2144  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2145  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2146  /usr/ucb/* ) ;;
2147  *)
2148    # OSF1 and SCO ODT 3.0 have their own names for install.
2149    # Don't use installbsd from OSF since it installs stuff as root
2150    # by default.
2151    for ac_prog in ginstall scoinst install; do
2152      for ac_exec_ext in '' $ac_executable_extensions; do
2153	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2154	  if test $ac_prog = install &&
2155	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2156	    # AIX install.  It has an incompatible calling convention.
2157	    :
2158	  elif test $ac_prog = install &&
2159	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2160	    # program-specific install script used by HP pwplus--don't use.
2161	    :
2162	  else
2163	    rm -rf conftest.one conftest.two conftest.dir
2164	    echo one > conftest.one
2165	    echo two > conftest.two
2166	    mkdir conftest.dir
2167	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2168	      test -s conftest.one && test -s conftest.two &&
2169	      test -s conftest.dir/conftest.one &&
2170	      test -s conftest.dir/conftest.two
2171	    then
2172	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2173	      break 3
2174	    fi
2175	  fi
2176	fi
2177      done
2178    done
2179    ;;
2180esac
2181
2182  done
2183IFS=$as_save_IFS
2184
2185rm -rf conftest.one conftest.two conftest.dir
2186
2187fi
2188  if test "${ac_cv_path_install+set}" = set; then
2189    INSTALL=$ac_cv_path_install
2190  else
2191    # As a last resort, use the slow shell script.  Don't cache a
2192    # value for INSTALL within a source directory, because that will
2193    # break other packages using the cache if that directory is
2194    # removed, or if the value is a relative name.
2195    INSTALL=$ac_install_sh
2196  fi
2197fi
2198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2199$as_echo "$INSTALL" >&6; }
2200
2201# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2202# It thinks the first close brace ends the variable substitution.
2203test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2204
2205test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2206
2207test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2208
2209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2210$as_echo_n "checking whether build environment is sane... " >&6; }
2211# Just in case
2212sleep 1
2213echo timestamp > conftest.file
2214# Reject unsafe characters in $srcdir or the absolute working directory
2215# name.  Accept space and tab only in the latter.
2216am_lf='
2217'
2218case `pwd` in
2219  *[\\\"\#\$\&\'\`$am_lf]*)
2220    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2221esac
2222case $srcdir in
2223  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2224    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2225esac
2226
2227# Do `set' in a subshell so we don't clobber the current shell's
2228# arguments.  Must try -L first in case configure is actually a
2229# symlink; some systems play weird games with the mod time of symlinks
2230# (eg FreeBSD returns the mod time of the symlink's containing
2231# directory).
2232if (
2233   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2234   if test "$*" = "X"; then
2235      # -L didn't work.
2236      set X `ls -t "$srcdir/configure" conftest.file`
2237   fi
2238   rm -f conftest.file
2239   if test "$*" != "X $srcdir/configure conftest.file" \
2240      && test "$*" != "X conftest.file $srcdir/configure"; then
2241
2242      # If neither matched, then we have a broken ls.  This can happen
2243      # if, for instance, CONFIG_SHELL is bash and it inherits a
2244      # broken ls alias from the environment.  This has actually
2245      # happened.  Such a system could not be considered "sane".
2246      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2247alias in your environment" "$LINENO" 5
2248   fi
2249
2250   test "$2" = conftest.file
2251   )
2252then
2253   # Ok.
2254   :
2255else
2256   as_fn_error $? "newly created file is older than distributed files!
2257Check your system clock" "$LINENO" 5
2258fi
2259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2260$as_echo "yes" >&6; }
2261test "$program_prefix" != NONE &&
2262  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2263# Use a double $ so make ignores it.
2264test "$program_suffix" != NONE &&
2265  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2266# Double any \ or $.
2267# By default was `s,x,x', remove it if useless.
2268ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2269program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2270
2271# expand $ac_aux_dir to an absolute path
2272am_aux_dir=`cd $ac_aux_dir && pwd`
2273
2274if test x"${MISSING+set}" != xset; then
2275  case $am_aux_dir in
2276  *\ * | *\	*)
2277    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2278  *)
2279    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2280  esac
2281fi
2282# Use eval to expand $SHELL
2283if eval "$MISSING --run true"; then
2284  am_missing_run="$MISSING --run "
2285else
2286  am_missing_run=
2287  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2288$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2289fi
2290
2291if test x"${install_sh}" != xset; then
2292  case $am_aux_dir in
2293  *\ * | *\	*)
2294    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2295  *)
2296    install_sh="\${SHELL} $am_aux_dir/install-sh"
2297  esac
2298fi
2299
2300# Installed binaries are usually stripped using `strip' when the user
2301# run `make install-strip'.  However `strip' might not be the right
2302# tool to use in cross-compilation environments, therefore Automake
2303# will honor the `STRIP' environment variable to overrule this program.
2304if test "$cross_compiling" != no; then
2305  if test -n "$ac_tool_prefix"; then
2306  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2307set dummy ${ac_tool_prefix}strip; ac_word=$2
2308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2309$as_echo_n "checking for $ac_word... " >&6; }
2310if ${ac_cv_prog_STRIP+:} false; then :
2311  $as_echo_n "(cached) " >&6
2312else
2313  if test -n "$STRIP"; then
2314  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2315else
2316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317for as_dir in $PATH
2318do
2319  IFS=$as_save_IFS
2320  test -z "$as_dir" && as_dir=.
2321    for ac_exec_ext in '' $ac_executable_extensions; do
2322  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2323    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2324    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2325    break 2
2326  fi
2327done
2328  done
2329IFS=$as_save_IFS
2330
2331fi
2332fi
2333STRIP=$ac_cv_prog_STRIP
2334if test -n "$STRIP"; then
2335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2336$as_echo "$STRIP" >&6; }
2337else
2338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2339$as_echo "no" >&6; }
2340fi
2341
2342
2343fi
2344if test -z "$ac_cv_prog_STRIP"; then
2345  ac_ct_STRIP=$STRIP
2346  # Extract the first word of "strip", so it can be a program name with args.
2347set dummy strip; ac_word=$2
2348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2349$as_echo_n "checking for $ac_word... " >&6; }
2350if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2351  $as_echo_n "(cached) " >&6
2352else
2353  if test -n "$ac_ct_STRIP"; then
2354  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2355else
2356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357for as_dir in $PATH
2358do
2359  IFS=$as_save_IFS
2360  test -z "$as_dir" && as_dir=.
2361    for ac_exec_ext in '' $ac_executable_extensions; do
2362  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2363    ac_cv_prog_ac_ct_STRIP="strip"
2364    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2365    break 2
2366  fi
2367done
2368  done
2369IFS=$as_save_IFS
2370
2371fi
2372fi
2373ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2374if test -n "$ac_ct_STRIP"; then
2375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2376$as_echo "$ac_ct_STRIP" >&6; }
2377else
2378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2379$as_echo "no" >&6; }
2380fi
2381
2382  if test "x$ac_ct_STRIP" = x; then
2383    STRIP=":"
2384  else
2385    case $cross_compiling:$ac_tool_warned in
2386yes:)
2387{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2388$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2389ac_tool_warned=yes ;;
2390esac
2391    STRIP=$ac_ct_STRIP
2392  fi
2393else
2394  STRIP="$ac_cv_prog_STRIP"
2395fi
2396
2397fi
2398INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2399
2400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2401$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2402if test -z "$MKDIR_P"; then
2403  if ${ac_cv_path_mkdir+:} false; then :
2404  $as_echo_n "(cached) " >&6
2405else
2406  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2408do
2409  IFS=$as_save_IFS
2410  test -z "$as_dir" && as_dir=.
2411    for ac_prog in mkdir gmkdir; do
2412	 for ac_exec_ext in '' $ac_executable_extensions; do
2413	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2414	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2415	     'mkdir (GNU coreutils) '* | \
2416	     'mkdir (coreutils) '* | \
2417	     'mkdir (fileutils) '4.1*)
2418	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2419	       break 3;;
2420	   esac
2421	 done
2422       done
2423  done
2424IFS=$as_save_IFS
2425
2426fi
2427
2428  test -d ./--version && rmdir ./--version
2429  if test "${ac_cv_path_mkdir+set}" = set; then
2430    MKDIR_P="$ac_cv_path_mkdir -p"
2431  else
2432    # As a last resort, use the slow shell script.  Don't cache a
2433    # value for MKDIR_P within a source directory, because that will
2434    # break other packages using the cache if that directory is
2435    # removed, or if the value is a relative name.
2436    MKDIR_P="$ac_install_sh -d"
2437  fi
2438fi
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2440$as_echo "$MKDIR_P" >&6; }
2441
2442mkdir_p="$MKDIR_P"
2443case $mkdir_p in
2444  [\\/$]* | ?:[\\/]*) ;;
2445  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2446esac
2447
2448for ac_prog in gawk mawk nawk awk
2449do
2450  # Extract the first word of "$ac_prog", so it can be a program name with args.
2451set dummy $ac_prog; ac_word=$2
2452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2453$as_echo_n "checking for $ac_word... " >&6; }
2454if ${ac_cv_prog_AWK+:} false; then :
2455  $as_echo_n "(cached) " >&6
2456else
2457  if test -n "$AWK"; then
2458  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2459else
2460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461for as_dir in $PATH
2462do
2463  IFS=$as_save_IFS
2464  test -z "$as_dir" && as_dir=.
2465    for ac_exec_ext in '' $ac_executable_extensions; do
2466  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2467    ac_cv_prog_AWK="$ac_prog"
2468    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2469    break 2
2470  fi
2471done
2472  done
2473IFS=$as_save_IFS
2474
2475fi
2476fi
2477AWK=$ac_cv_prog_AWK
2478if test -n "$AWK"; then
2479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2480$as_echo "$AWK" >&6; }
2481else
2482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2483$as_echo "no" >&6; }
2484fi
2485
2486
2487  test -n "$AWK" && break
2488done
2489
2490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2491$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2492set x ${MAKE-make}
2493ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2494if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2495  $as_echo_n "(cached) " >&6
2496else
2497  cat >conftest.make <<\_ACEOF
2498SHELL = /bin/sh
2499all:
2500	@echo '@@@%%%=$(MAKE)=@@@%%%'
2501_ACEOF
2502# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2503case `${MAKE-make} -f conftest.make 2>/dev/null` in
2504  *@@@%%%=?*=@@@%%%*)
2505    eval ac_cv_prog_make_${ac_make}_set=yes;;
2506  *)
2507    eval ac_cv_prog_make_${ac_make}_set=no;;
2508esac
2509rm -f conftest.make
2510fi
2511if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2513$as_echo "yes" >&6; }
2514  SET_MAKE=
2515else
2516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2517$as_echo "no" >&6; }
2518  SET_MAKE="MAKE=${MAKE-make}"
2519fi
2520
2521rm -rf .tst 2>/dev/null
2522mkdir .tst 2>/dev/null
2523if test -d .tst; then
2524  am__leading_dot=.
2525else
2526  am__leading_dot=_
2527fi
2528rmdir .tst 2>/dev/null
2529
2530if test "`cd $srcdir && pwd`" != "`pwd`"; then
2531  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2532  # is not polluted with repeated "-I."
2533  am__isrc=' -I$(srcdir)'
2534  # test to see if srcdir already configured
2535  if test -f $srcdir/config.status; then
2536    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2537  fi
2538fi
2539
2540# test whether we have cygpath
2541if test -z "$CYGPATH_W"; then
2542  if (cygpath --version) >/dev/null 2>/dev/null; then
2543    CYGPATH_W='cygpath -w'
2544  else
2545    CYGPATH_W=echo
2546  fi
2547fi
2548
2549
2550# Define the identity of the package.
2551 PACKAGE='xlogo'
2552 VERSION='1.0.4'
2553
2554
2555cat >>confdefs.h <<_ACEOF
2556#define PACKAGE "$PACKAGE"
2557_ACEOF
2558
2559
2560cat >>confdefs.h <<_ACEOF
2561#define VERSION "$VERSION"
2562_ACEOF
2563
2564# Some tools Automake needs.
2565
2566ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2567
2568
2569AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2570
2571
2572AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2573
2574
2575AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2576
2577
2578MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2579
2580# We need awk for the "check" target.  The system "awk" is bad on
2581# some platforms.
2582# Always define AMTAR for backward compatibility.
2583
2584AMTAR=${AMTAR-"${am_missing_run}tar"}
2585
2586am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2587
2588
2589
2590
2591
2592
2593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2594$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2595    # Check whether --enable-maintainer-mode was given.
2596if test "${enable_maintainer_mode+set}" = set; then :
2597  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2598else
2599  USE_MAINTAINER_MODE=no
2600fi
2601
2602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2603$as_echo "$USE_MAINTAINER_MODE" >&6; }
2604   if test $USE_MAINTAINER_MODE = yes; then
2605  MAINTAINER_MODE_TRUE=
2606  MAINTAINER_MODE_FALSE='#'
2607else
2608  MAINTAINER_MODE_TRUE='#'
2609  MAINTAINER_MODE_FALSE=
2610fi
2611
2612  MAINT=$MAINTAINER_MODE_TRUE
2613
2614
2615
2616# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628DEPDIR="${am__leading_dot}deps"
2629
2630ac_config_commands="$ac_config_commands depfiles"
2631
2632
2633am_make=${MAKE-make}
2634cat > confinc << 'END'
2635am__doit:
2636	@echo this is the am__doit target
2637.PHONY: am__doit
2638END
2639# If we don't find an include directive, just comment out the code.
2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2641$as_echo_n "checking for style of include used by $am_make... " >&6; }
2642am__include="#"
2643am__quote=
2644_am_result=none
2645# First try GNU make style include.
2646echo "include confinc" > confmf
2647# Ignore all kinds of additional output from `make'.
2648case `$am_make -s -f confmf 2> /dev/null` in #(
2649*the\ am__doit\ target*)
2650  am__include=include
2651  am__quote=
2652  _am_result=GNU
2653  ;;
2654esac
2655# Now try BSD make style include.
2656if test "$am__include" = "#"; then
2657   echo '.include "confinc"' > confmf
2658   case `$am_make -s -f confmf 2> /dev/null` in #(
2659   *the\ am__doit\ target*)
2660     am__include=.include
2661     am__quote="\""
2662     _am_result=BSD
2663     ;;
2664   esac
2665fi
2666
2667
2668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2669$as_echo "$_am_result" >&6; }
2670rm -f confinc confmf
2671
2672# Check whether --enable-dependency-tracking was given.
2673if test "${enable_dependency_tracking+set}" = set; then :
2674  enableval=$enable_dependency_tracking;
2675fi
2676
2677if test "x$enable_dependency_tracking" != xno; then
2678  am_depcomp="$ac_aux_dir/depcomp"
2679  AMDEPBACKSLASH='\'
2680fi
2681 if test "x$enable_dependency_tracking" != xno; then
2682  AMDEP_TRUE=
2683  AMDEP_FALSE='#'
2684else
2685  AMDEP_TRUE='#'
2686  AMDEP_FALSE=
2687fi
2688
2689
2690ac_ext=c
2691ac_cpp='$CPP $CPPFLAGS'
2692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2694ac_compiler_gnu=$ac_cv_c_compiler_gnu
2695if test -n "$ac_tool_prefix"; then
2696  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2697set dummy ${ac_tool_prefix}gcc; ac_word=$2
2698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699$as_echo_n "checking for $ac_word... " >&6; }
2700if ${ac_cv_prog_CC+:} false; then :
2701  $as_echo_n "(cached) " >&6
2702else
2703  if test -n "$CC"; then
2704  ac_cv_prog_CC="$CC" # Let the user override the test.
2705else
2706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707for as_dir in $PATH
2708do
2709  IFS=$as_save_IFS
2710  test -z "$as_dir" && as_dir=.
2711    for ac_exec_ext in '' $ac_executable_extensions; do
2712  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2713    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2714    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2715    break 2
2716  fi
2717done
2718  done
2719IFS=$as_save_IFS
2720
2721fi
2722fi
2723CC=$ac_cv_prog_CC
2724if test -n "$CC"; then
2725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2726$as_echo "$CC" >&6; }
2727else
2728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729$as_echo "no" >&6; }
2730fi
2731
2732
2733fi
2734if test -z "$ac_cv_prog_CC"; then
2735  ac_ct_CC=$CC
2736  # Extract the first word of "gcc", so it can be a program name with args.
2737set dummy gcc; ac_word=$2
2738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2739$as_echo_n "checking for $ac_word... " >&6; }
2740if ${ac_cv_prog_ac_ct_CC+:} false; then :
2741  $as_echo_n "(cached) " >&6
2742else
2743  if test -n "$ac_ct_CC"; then
2744  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2745else
2746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747for as_dir in $PATH
2748do
2749  IFS=$as_save_IFS
2750  test -z "$as_dir" && as_dir=.
2751    for ac_exec_ext in '' $ac_executable_extensions; do
2752  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2753    ac_cv_prog_ac_ct_CC="gcc"
2754    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2755    break 2
2756  fi
2757done
2758  done
2759IFS=$as_save_IFS
2760
2761fi
2762fi
2763ac_ct_CC=$ac_cv_prog_ac_ct_CC
2764if test -n "$ac_ct_CC"; then
2765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2766$as_echo "$ac_ct_CC" >&6; }
2767else
2768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769$as_echo "no" >&6; }
2770fi
2771
2772  if test "x$ac_ct_CC" = x; then
2773    CC=""
2774  else
2775    case $cross_compiling:$ac_tool_warned in
2776yes:)
2777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2779ac_tool_warned=yes ;;
2780esac
2781    CC=$ac_ct_CC
2782  fi
2783else
2784  CC="$ac_cv_prog_CC"
2785fi
2786
2787if test -z "$CC"; then
2788          if test -n "$ac_tool_prefix"; then
2789    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2790set dummy ${ac_tool_prefix}cc; ac_word=$2
2791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2792$as_echo_n "checking for $ac_word... " >&6; }
2793if ${ac_cv_prog_CC+:} false; then :
2794  $as_echo_n "(cached) " >&6
2795else
2796  if test -n "$CC"; then
2797  ac_cv_prog_CC="$CC" # Let the user override the test.
2798else
2799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800for as_dir in $PATH
2801do
2802  IFS=$as_save_IFS
2803  test -z "$as_dir" && as_dir=.
2804    for ac_exec_ext in '' $ac_executable_extensions; do
2805  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2806    ac_cv_prog_CC="${ac_tool_prefix}cc"
2807    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2808    break 2
2809  fi
2810done
2811  done
2812IFS=$as_save_IFS
2813
2814fi
2815fi
2816CC=$ac_cv_prog_CC
2817if test -n "$CC"; then
2818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2819$as_echo "$CC" >&6; }
2820else
2821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822$as_echo "no" >&6; }
2823fi
2824
2825
2826  fi
2827fi
2828if test -z "$CC"; then
2829  # Extract the first word of "cc", so it can be a program name with args.
2830set dummy cc; ac_word=$2
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832$as_echo_n "checking for $ac_word... " >&6; }
2833if ${ac_cv_prog_CC+:} false; then :
2834  $as_echo_n "(cached) " >&6
2835else
2836  if test -n "$CC"; then
2837  ac_cv_prog_CC="$CC" # Let the user override the test.
2838else
2839  ac_prog_rejected=no
2840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841for as_dir in $PATH
2842do
2843  IFS=$as_save_IFS
2844  test -z "$as_dir" && as_dir=.
2845    for ac_exec_ext in '' $ac_executable_extensions; do
2846  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2847    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2848       ac_prog_rejected=yes
2849       continue
2850     fi
2851    ac_cv_prog_CC="cc"
2852    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2853    break 2
2854  fi
2855done
2856  done
2857IFS=$as_save_IFS
2858
2859if test $ac_prog_rejected = yes; then
2860  # We found a bogon in the path, so make sure we never use it.
2861  set dummy $ac_cv_prog_CC
2862  shift
2863  if test $# != 0; then
2864    # We chose a different compiler from the bogus one.
2865    # However, it has the same basename, so the bogon will be chosen
2866    # first if we set CC to just the basename; use the full file name.
2867    shift
2868    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2869  fi
2870fi
2871fi
2872fi
2873CC=$ac_cv_prog_CC
2874if test -n "$CC"; then
2875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2876$as_echo "$CC" >&6; }
2877else
2878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879$as_echo "no" >&6; }
2880fi
2881
2882
2883fi
2884if test -z "$CC"; then
2885  if test -n "$ac_tool_prefix"; then
2886  for ac_prog in cl.exe
2887  do
2888    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2889set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891$as_echo_n "checking for $ac_word... " >&6; }
2892if ${ac_cv_prog_CC+:} false; then :
2893  $as_echo_n "(cached) " >&6
2894else
2895  if test -n "$CC"; then
2896  ac_cv_prog_CC="$CC" # Let the user override the test.
2897else
2898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899for as_dir in $PATH
2900do
2901  IFS=$as_save_IFS
2902  test -z "$as_dir" && as_dir=.
2903    for ac_exec_ext in '' $ac_executable_extensions; do
2904  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2905    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907    break 2
2908  fi
2909done
2910  done
2911IFS=$as_save_IFS
2912
2913fi
2914fi
2915CC=$ac_cv_prog_CC
2916if test -n "$CC"; then
2917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2918$as_echo "$CC" >&6; }
2919else
2920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921$as_echo "no" >&6; }
2922fi
2923
2924
2925    test -n "$CC" && break
2926  done
2927fi
2928if test -z "$CC"; then
2929  ac_ct_CC=$CC
2930  for ac_prog in cl.exe
2931do
2932  # Extract the first word of "$ac_prog", so it can be a program name with args.
2933set dummy $ac_prog; ac_word=$2
2934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935$as_echo_n "checking for $ac_word... " >&6; }
2936if ${ac_cv_prog_ac_ct_CC+:} false; then :
2937  $as_echo_n "(cached) " >&6
2938else
2939  if test -n "$ac_ct_CC"; then
2940  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2941else
2942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943for as_dir in $PATH
2944do
2945  IFS=$as_save_IFS
2946  test -z "$as_dir" && as_dir=.
2947    for ac_exec_ext in '' $ac_executable_extensions; do
2948  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949    ac_cv_prog_ac_ct_CC="$ac_prog"
2950    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951    break 2
2952  fi
2953done
2954  done
2955IFS=$as_save_IFS
2956
2957fi
2958fi
2959ac_ct_CC=$ac_cv_prog_ac_ct_CC
2960if test -n "$ac_ct_CC"; then
2961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2962$as_echo "$ac_ct_CC" >&6; }
2963else
2964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965$as_echo "no" >&6; }
2966fi
2967
2968
2969  test -n "$ac_ct_CC" && break
2970done
2971
2972  if test "x$ac_ct_CC" = x; then
2973    CC=""
2974  else
2975    case $cross_compiling:$ac_tool_warned in
2976yes:)
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2979ac_tool_warned=yes ;;
2980esac
2981    CC=$ac_ct_CC
2982  fi
2983fi
2984
2985fi
2986
2987
2988test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990as_fn_error $? "no acceptable C compiler found in \$PATH
2991See \`config.log' for more details" "$LINENO" 5; }
2992
2993# Provide some information about the compiler.
2994$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2995set X $ac_compile
2996ac_compiler=$2
2997for ac_option in --version -v -V -qversion; do
2998  { { ac_try="$ac_compiler $ac_option >&5"
2999case "(($ac_try" in
3000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001  *) ac_try_echo=$ac_try;;
3002esac
3003eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3004$as_echo "$ac_try_echo"; } >&5
3005  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3006  ac_status=$?
3007  if test -s conftest.err; then
3008    sed '10a\
3009... rest of stderr output deleted ...
3010         10q' conftest.err >conftest.er1
3011    cat conftest.er1 >&5
3012  fi
3013  rm -f conftest.er1 conftest.err
3014  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3015  test $ac_status = 0; }
3016done
3017
3018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3019/* end confdefs.h.  */
3020
3021int
3022main ()
3023{
3024
3025  ;
3026  return 0;
3027}
3028_ACEOF
3029ac_clean_files_save=$ac_clean_files
3030ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3031# Try to create an executable without -o first, disregard a.out.
3032# It will help us diagnose broken compilers, and finding out an intuition
3033# of exeext.
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3035$as_echo_n "checking whether the C compiler works... " >&6; }
3036ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3037
3038# The possible output files:
3039ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3040
3041ac_rmfiles=
3042for ac_file in $ac_files
3043do
3044  case $ac_file in
3045    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3046    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3047  esac
3048done
3049rm -f $ac_rmfiles
3050
3051if { { ac_try="$ac_link_default"
3052case "(($ac_try" in
3053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054  *) ac_try_echo=$ac_try;;
3055esac
3056eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3057$as_echo "$ac_try_echo"; } >&5
3058  (eval "$ac_link_default") 2>&5
3059  ac_status=$?
3060  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3061  test $ac_status = 0; }; then :
3062  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3063# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3064# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3065# so that the user can short-circuit this test for compilers unknown to
3066# Autoconf.
3067for ac_file in $ac_files ''
3068do
3069  test -f "$ac_file" || continue
3070  case $ac_file in
3071    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3072	;;
3073    [ab].out )
3074	# We found the default executable, but exeext='' is most
3075	# certainly right.
3076	break;;
3077    *.* )
3078	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3079	then :; else
3080	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3081	fi
3082	# We set ac_cv_exeext here because the later test for it is not
3083	# safe: cross compilers may not add the suffix if given an `-o'
3084	# argument, so we may need to know it at that point already.
3085	# Even if this section looks crufty: it has the advantage of
3086	# actually working.
3087	break;;
3088    * )
3089	break;;
3090  esac
3091done
3092test "$ac_cv_exeext" = no && ac_cv_exeext=
3093
3094else
3095  ac_file=''
3096fi
3097if test -z "$ac_file"; then :
3098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099$as_echo "no" >&6; }
3100$as_echo "$as_me: failed program was:" >&5
3101sed 's/^/| /' conftest.$ac_ext >&5
3102
3103{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3104$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3105as_fn_error 77 "C compiler cannot create executables
3106See \`config.log' for more details" "$LINENO" 5; }
3107else
3108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3109$as_echo "yes" >&6; }
3110fi
3111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3112$as_echo_n "checking for C compiler default output file name... " >&6; }
3113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3114$as_echo "$ac_file" >&6; }
3115ac_exeext=$ac_cv_exeext
3116
3117rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3118ac_clean_files=$ac_clean_files_save
3119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3120$as_echo_n "checking for suffix of executables... " >&6; }
3121if { { ac_try="$ac_link"
3122case "(($ac_try" in
3123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124  *) ac_try_echo=$ac_try;;
3125esac
3126eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3127$as_echo "$ac_try_echo"; } >&5
3128  (eval "$ac_link") 2>&5
3129  ac_status=$?
3130  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3131  test $ac_status = 0; }; then :
3132  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3133# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3134# work properly (i.e., refer to `conftest.exe'), while it won't with
3135# `rm'.
3136for ac_file in conftest.exe conftest conftest.*; do
3137  test -f "$ac_file" || continue
3138  case $ac_file in
3139    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3140    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3141	  break;;
3142    * ) break;;
3143  esac
3144done
3145else
3146  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3147$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3148as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3149See \`config.log' for more details" "$LINENO" 5; }
3150fi
3151rm -f conftest conftest$ac_cv_exeext
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3153$as_echo "$ac_cv_exeext" >&6; }
3154
3155rm -f conftest.$ac_ext
3156EXEEXT=$ac_cv_exeext
3157ac_exeext=$EXEEXT
3158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3159/* end confdefs.h.  */
3160#include <stdio.h>
3161int
3162main ()
3163{
3164FILE *f = fopen ("conftest.out", "w");
3165 return ferror (f) || fclose (f) != 0;
3166
3167  ;
3168  return 0;
3169}
3170_ACEOF
3171ac_clean_files="$ac_clean_files conftest.out"
3172# Check that the compiler produces executables we can run.  If not, either
3173# the compiler is broken, or we cross compile.
3174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3175$as_echo_n "checking whether we are cross compiling... " >&6; }
3176if test "$cross_compiling" != yes; then
3177  { { ac_try="$ac_link"
3178case "(($ac_try" in
3179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180  *) ac_try_echo=$ac_try;;
3181esac
3182eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3183$as_echo "$ac_try_echo"; } >&5
3184  (eval "$ac_link") 2>&5
3185  ac_status=$?
3186  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3187  test $ac_status = 0; }
3188  if { ac_try='./conftest$ac_cv_exeext'
3189  { { case "(($ac_try" in
3190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191  *) ac_try_echo=$ac_try;;
3192esac
3193eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3194$as_echo "$ac_try_echo"; } >&5
3195  (eval "$ac_try") 2>&5
3196  ac_status=$?
3197  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3198  test $ac_status = 0; }; }; then
3199    cross_compiling=no
3200  else
3201    if test "$cross_compiling" = maybe; then
3202	cross_compiling=yes
3203    else
3204	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3206as_fn_error $? "cannot run C compiled programs.
3207If you meant to cross compile, use \`--host'.
3208See \`config.log' for more details" "$LINENO" 5; }
3209    fi
3210  fi
3211fi
3212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3213$as_echo "$cross_compiling" >&6; }
3214
3215rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3216ac_clean_files=$ac_clean_files_save
3217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3218$as_echo_n "checking for suffix of object files... " >&6; }
3219if ${ac_cv_objext+:} false; then :
3220  $as_echo_n "(cached) " >&6
3221else
3222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3223/* end confdefs.h.  */
3224
3225int
3226main ()
3227{
3228
3229  ;
3230  return 0;
3231}
3232_ACEOF
3233rm -f conftest.o conftest.obj
3234if { { ac_try="$ac_compile"
3235case "(($ac_try" in
3236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237  *) ac_try_echo=$ac_try;;
3238esac
3239eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3240$as_echo "$ac_try_echo"; } >&5
3241  (eval "$ac_compile") 2>&5
3242  ac_status=$?
3243  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3244  test $ac_status = 0; }; then :
3245  for ac_file in conftest.o conftest.obj conftest.*; do
3246  test -f "$ac_file" || continue;
3247  case $ac_file in
3248    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3249    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3250       break;;
3251  esac
3252done
3253else
3254  $as_echo "$as_me: failed program was:" >&5
3255sed 's/^/| /' conftest.$ac_ext >&5
3256
3257{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3258$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3259as_fn_error $? "cannot compute suffix of object files: cannot compile
3260See \`config.log' for more details" "$LINENO" 5; }
3261fi
3262rm -f conftest.$ac_cv_objext conftest.$ac_ext
3263fi
3264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3265$as_echo "$ac_cv_objext" >&6; }
3266OBJEXT=$ac_cv_objext
3267ac_objext=$OBJEXT
3268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3269$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3270if ${ac_cv_c_compiler_gnu+:} false; then :
3271  $as_echo_n "(cached) " >&6
3272else
3273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274/* end confdefs.h.  */
3275
3276int
3277main ()
3278{
3279#ifndef __GNUC__
3280       choke me
3281#endif
3282
3283  ;
3284  return 0;
3285}
3286_ACEOF
3287if ac_fn_c_try_compile "$LINENO"; then :
3288  ac_compiler_gnu=yes
3289else
3290  ac_compiler_gnu=no
3291fi
3292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3293ac_cv_c_compiler_gnu=$ac_compiler_gnu
3294
3295fi
3296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3297$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3298if test $ac_compiler_gnu = yes; then
3299  GCC=yes
3300else
3301  GCC=
3302fi
3303ac_test_CFLAGS=${CFLAGS+set}
3304ac_save_CFLAGS=$CFLAGS
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3306$as_echo_n "checking whether $CC accepts -g... " >&6; }
3307if ${ac_cv_prog_cc_g+:} false; then :
3308  $as_echo_n "(cached) " >&6
3309else
3310  ac_save_c_werror_flag=$ac_c_werror_flag
3311   ac_c_werror_flag=yes
3312   ac_cv_prog_cc_g=no
3313   CFLAGS="-g"
3314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315/* end confdefs.h.  */
3316
3317int
3318main ()
3319{
3320
3321  ;
3322  return 0;
3323}
3324_ACEOF
3325if ac_fn_c_try_compile "$LINENO"; then :
3326  ac_cv_prog_cc_g=yes
3327else
3328  CFLAGS=""
3329      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330/* end confdefs.h.  */
3331
3332int
3333main ()
3334{
3335
3336  ;
3337  return 0;
3338}
3339_ACEOF
3340if ac_fn_c_try_compile "$LINENO"; then :
3341
3342else
3343  ac_c_werror_flag=$ac_save_c_werror_flag
3344	 CFLAGS="-g"
3345	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346/* end confdefs.h.  */
3347
3348int
3349main ()
3350{
3351
3352  ;
3353  return 0;
3354}
3355_ACEOF
3356if ac_fn_c_try_compile "$LINENO"; then :
3357  ac_cv_prog_cc_g=yes
3358fi
3359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3360fi
3361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3362fi
3363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3364   ac_c_werror_flag=$ac_save_c_werror_flag
3365fi
3366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3367$as_echo "$ac_cv_prog_cc_g" >&6; }
3368if test "$ac_test_CFLAGS" = set; then
3369  CFLAGS=$ac_save_CFLAGS
3370elif test $ac_cv_prog_cc_g = yes; then
3371  if test "$GCC" = yes; then
3372    CFLAGS="-g -O2"
3373  else
3374    CFLAGS="-g"
3375  fi
3376else
3377  if test "$GCC" = yes; then
3378    CFLAGS="-O2"
3379  else
3380    CFLAGS=
3381  fi
3382fi
3383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3384$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3385if ${ac_cv_prog_cc_c89+:} false; then :
3386  $as_echo_n "(cached) " >&6
3387else
3388  ac_cv_prog_cc_c89=no
3389ac_save_CC=$CC
3390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391/* end confdefs.h.  */
3392#include <stdarg.h>
3393#include <stdio.h>
3394#include <sys/types.h>
3395#include <sys/stat.h>
3396/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3397struct buf { int x; };
3398FILE * (*rcsopen) (struct buf *, struct stat *, int);
3399static char *e (p, i)
3400     char **p;
3401     int i;
3402{
3403  return p[i];
3404}
3405static char *f (char * (*g) (char **, int), char **p, ...)
3406{
3407  char *s;
3408  va_list v;
3409  va_start (v,p);
3410  s = g (p, va_arg (v,int));
3411  va_end (v);
3412  return s;
3413}
3414
3415/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3416   function prototypes and stuff, but not '\xHH' hex character constants.
3417   These don't provoke an error unfortunately, instead are silently treated
3418   as 'x'.  The following induces an error, until -std is added to get
3419   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3420   array size at least.  It's necessary to write '\x00'==0 to get something
3421   that's true only with -std.  */
3422int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3423
3424/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3425   inside strings and character constants.  */
3426#define FOO(x) 'x'
3427int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3428
3429int test (int i, double x);
3430struct s1 {int (*f) (int a);};
3431struct s2 {int (*f) (double a);};
3432int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3433int argc;
3434char **argv;
3435int
3436main ()
3437{
3438return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3439  ;
3440  return 0;
3441}
3442_ACEOF
3443for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3444	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3445do
3446  CC="$ac_save_CC $ac_arg"
3447  if ac_fn_c_try_compile "$LINENO"; then :
3448  ac_cv_prog_cc_c89=$ac_arg
3449fi
3450rm -f core conftest.err conftest.$ac_objext
3451  test "x$ac_cv_prog_cc_c89" != "xno" && break
3452done
3453rm -f conftest.$ac_ext
3454CC=$ac_save_CC
3455
3456fi
3457# AC_CACHE_VAL
3458case "x$ac_cv_prog_cc_c89" in
3459  x)
3460    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3461$as_echo "none needed" >&6; } ;;
3462  xno)
3463    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3464$as_echo "unsupported" >&6; } ;;
3465  *)
3466    CC="$CC $ac_cv_prog_cc_c89"
3467    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3468$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3469esac
3470if test "x$ac_cv_prog_cc_c89" != xno; then :
3471
3472fi
3473
3474ac_ext=c
3475ac_cpp='$CPP $CPPFLAGS'
3476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3478ac_compiler_gnu=$ac_cv_c_compiler_gnu
3479
3480depcc="$CC"   am_compiler_list=
3481
3482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3483$as_echo_n "checking dependency style of $depcc... " >&6; }
3484if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3485  $as_echo_n "(cached) " >&6
3486else
3487  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3488  # We make a subdir and do the tests there.  Otherwise we can end up
3489  # making bogus files that we don't know about and never remove.  For
3490  # instance it was reported that on HP-UX the gcc test will end up
3491  # making a dummy file named `D' -- because `-MD' means `put the output
3492  # in D'.
3493  mkdir conftest.dir
3494  # Copy depcomp to subdir because otherwise we won't find it if we're
3495  # using a relative directory.
3496  cp "$am_depcomp" conftest.dir
3497  cd conftest.dir
3498  # We will build objects and dependencies in a subdirectory because
3499  # it helps to detect inapplicable dependency modes.  For instance
3500  # both Tru64's cc and ICC support -MD to output dependencies as a
3501  # side effect of compilation, but ICC will put the dependencies in
3502  # the current directory while Tru64 will put them in the object
3503  # directory.
3504  mkdir sub
3505
3506  am_cv_CC_dependencies_compiler_type=none
3507  if test "$am_compiler_list" = ""; then
3508     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3509  fi
3510  am__universal=false
3511  case " $depcc " in #(
3512     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3513     esac
3514
3515  for depmode in $am_compiler_list; do
3516    # Setup a source with many dependencies, because some compilers
3517    # like to wrap large dependency lists on column 80 (with \), and
3518    # we should not choose a depcomp mode which is confused by this.
3519    #
3520    # We need to recreate these files for each test, as the compiler may
3521    # overwrite some of them when testing with obscure command lines.
3522    # This happens at least with the AIX C compiler.
3523    : > sub/conftest.c
3524    for i in 1 2 3 4 5 6; do
3525      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3526      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3527      # Solaris 8's {/usr,}/bin/sh.
3528      touch sub/conftst$i.h
3529    done
3530    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3531
3532    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3533    # mode.  It turns out that the SunPro C++ compiler does not properly
3534    # handle `-M -o', and we need to detect this.  Also, some Intel
3535    # versions had trouble with output in subdirs
3536    am__obj=sub/conftest.${OBJEXT-o}
3537    am__minus_obj="-o $am__obj"
3538    case $depmode in
3539    gcc)
3540      # This depmode causes a compiler race in universal mode.
3541      test "$am__universal" = false || continue
3542      ;;
3543    nosideeffect)
3544      # after this tag, mechanisms are not by side-effect, so they'll
3545      # only be used when explicitly requested
3546      if test "x$enable_dependency_tracking" = xyes; then
3547	continue
3548      else
3549	break
3550      fi
3551      ;;
3552    msvisualcpp | msvcmsys)
3553      # This compiler won't grok `-c -o', but also, the minuso test has
3554      # not run yet.  These depmodes are late enough in the game, and
3555      # so weak that their functioning should not be impacted.
3556      am__obj=conftest.${OBJEXT-o}
3557      am__minus_obj=
3558      ;;
3559    none) break ;;
3560    esac
3561    if depmode=$depmode \
3562       source=sub/conftest.c object=$am__obj \
3563       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3564       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3565         >/dev/null 2>conftest.err &&
3566       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3567       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3568       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3569       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3570      # icc doesn't choke on unknown options, it will just issue warnings
3571      # or remarks (even with -Werror).  So we grep stderr for any message
3572      # that says an option was ignored or not supported.
3573      # When given -MP, icc 7.0 and 7.1 complain thusly:
3574      #   icc: Command line warning: ignoring option '-M'; no argument required
3575      # The diagnosis changed in icc 8.0:
3576      #   icc: Command line remark: option '-MP' not supported
3577      if (grep 'ignoring option' conftest.err ||
3578          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3579        am_cv_CC_dependencies_compiler_type=$depmode
3580        break
3581      fi
3582    fi
3583  done
3584
3585  cd ..
3586  rm -rf conftest.dir
3587else
3588  am_cv_CC_dependencies_compiler_type=none
3589fi
3590
3591fi
3592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3593$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3594CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3595
3596 if
3597  test "x$enable_dependency_tracking" != xno \
3598  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3599  am__fastdepCC_TRUE=
3600  am__fastdepCC_FALSE='#'
3601else
3602  am__fastdepCC_TRUE='#'
3603  am__fastdepCC_FALSE=
3604fi
3605
3606
3607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3608$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3609if ${ac_cv_prog_cc_c99+:} false; then :
3610  $as_echo_n "(cached) " >&6
3611else
3612  ac_cv_prog_cc_c99=no
3613ac_save_CC=$CC
3614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615/* end confdefs.h.  */
3616#include <stdarg.h>
3617#include <stdbool.h>
3618#include <stdlib.h>
3619#include <wchar.h>
3620#include <stdio.h>
3621
3622// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3623#define debug(...) fprintf (stderr, __VA_ARGS__)
3624#define showlist(...) puts (#__VA_ARGS__)
3625#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3626static void
3627test_varargs_macros (void)
3628{
3629  int x = 1234;
3630  int y = 5678;
3631  debug ("Flag");
3632  debug ("X = %d\n", x);
3633  showlist (The first, second, and third items.);
3634  report (x>y, "x is %d but y is %d", x, y);
3635}
3636
3637// Check long long types.
3638#define BIG64 18446744073709551615ull
3639#define BIG32 4294967295ul
3640#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3641#if !BIG_OK
3642  your preprocessor is broken;
3643#endif
3644#if BIG_OK
3645#else
3646  your preprocessor is broken;
3647#endif
3648static long long int bignum = -9223372036854775807LL;
3649static unsigned long long int ubignum = BIG64;
3650
3651struct incomplete_array
3652{
3653  int datasize;
3654  double data[];
3655};
3656
3657struct named_init {
3658  int number;
3659  const wchar_t *name;
3660  double average;
3661};
3662
3663typedef const char *ccp;
3664
3665static inline int
3666test_restrict (ccp restrict text)
3667{
3668  // See if C++-style comments work.
3669  // Iterate through items via the restricted pointer.
3670  // Also check for declarations in for loops.
3671  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3672    continue;
3673  return 0;
3674}
3675
3676// Check varargs and va_copy.
3677static void
3678test_varargs (const char *format, ...)
3679{
3680  va_list args;
3681  va_start (args, format);
3682  va_list args_copy;
3683  va_copy (args_copy, args);
3684
3685  const char *str;
3686  int number;
3687  float fnumber;
3688
3689  while (*format)
3690    {
3691      switch (*format++)
3692	{
3693	case 's': // string
3694	  str = va_arg (args_copy, const char *);
3695	  break;
3696	case 'd': // int
3697	  number = va_arg (args_copy, int);
3698	  break;
3699	case 'f': // float
3700	  fnumber = va_arg (args_copy, double);
3701	  break;
3702	default:
3703	  break;
3704	}
3705    }
3706  va_end (args_copy);
3707  va_end (args);
3708}
3709
3710int
3711main ()
3712{
3713
3714  // Check bool.
3715  _Bool success = false;
3716
3717  // Check restrict.
3718  if (test_restrict ("String literal") == 0)
3719    success = true;
3720  char *restrict newvar = "Another string";
3721
3722  // Check varargs.
3723  test_varargs ("s, d' f .", "string", 65, 34.234);
3724  test_varargs_macros ();
3725
3726  // Check flexible array members.
3727  struct incomplete_array *ia =
3728    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3729  ia->datasize = 10;
3730  for (int i = 0; i < ia->datasize; ++i)
3731    ia->data[i] = i * 1.234;
3732
3733  // Check named initializers.
3734  struct named_init ni = {
3735    .number = 34,
3736    .name = L"Test wide string",
3737    .average = 543.34343,
3738  };
3739
3740  ni.number = 58;
3741
3742  int dynamic_array[ni.number];
3743  dynamic_array[ni.number - 1] = 543;
3744
3745  // work around unused variable warnings
3746  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3747	  || dynamic_array[ni.number - 1] != 543);
3748
3749  ;
3750  return 0;
3751}
3752_ACEOF
3753for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3754do
3755  CC="$ac_save_CC $ac_arg"
3756  if ac_fn_c_try_compile "$LINENO"; then :
3757  ac_cv_prog_cc_c99=$ac_arg
3758fi
3759rm -f core conftest.err conftest.$ac_objext
3760  test "x$ac_cv_prog_cc_c99" != "xno" && break
3761done
3762rm -f conftest.$ac_ext
3763CC=$ac_save_CC
3764
3765fi
3766# AC_CACHE_VAL
3767case "x$ac_cv_prog_cc_c99" in
3768  x)
3769    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3770$as_echo "none needed" >&6; } ;;
3771  xno)
3772    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3773$as_echo "unsupported" >&6; } ;;
3774  *)
3775    CC="$CC $ac_cv_prog_cc_c99"
3776    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3777$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3778esac
3779if test "x$ac_cv_prog_cc_c99" != xno; then :
3780
3781fi
3782
3783
3784
3785ac_ext=c
3786ac_cpp='$CPP $CPPFLAGS'
3787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3789ac_compiler_gnu=$ac_cv_c_compiler_gnu
3790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3791$as_echo_n "checking how to run the C preprocessor... " >&6; }
3792# On Suns, sometimes $CPP names a directory.
3793if test -n "$CPP" && test -d "$CPP"; then
3794  CPP=
3795fi
3796if test -z "$CPP"; then
3797  if ${ac_cv_prog_CPP+:} false; then :
3798  $as_echo_n "(cached) " >&6
3799else
3800      # Double quotes because CPP needs to be expanded
3801    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3802    do
3803      ac_preproc_ok=false
3804for ac_c_preproc_warn_flag in '' yes
3805do
3806  # Use a header file that comes with gcc, so configuring glibc
3807  # with a fresh cross-compiler works.
3808  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3809  # <limits.h> exists even on freestanding compilers.
3810  # On the NeXT, cc -E runs the code through the compiler's parser,
3811  # not just through cpp. "Syntax error" is here to catch this case.
3812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813/* end confdefs.h.  */
3814#ifdef __STDC__
3815# include <limits.h>
3816#else
3817# include <assert.h>
3818#endif
3819		     Syntax error
3820_ACEOF
3821if ac_fn_c_try_cpp "$LINENO"; then :
3822
3823else
3824  # Broken: fails on valid input.
3825continue
3826fi
3827rm -f conftest.err conftest.i conftest.$ac_ext
3828
3829  # OK, works on sane cases.  Now check whether nonexistent headers
3830  # can be detected and how.
3831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832/* end confdefs.h.  */
3833#include <ac_nonexistent.h>
3834_ACEOF
3835if ac_fn_c_try_cpp "$LINENO"; then :
3836  # Broken: success on invalid input.
3837continue
3838else
3839  # Passes both tests.
3840ac_preproc_ok=:
3841break
3842fi
3843rm -f conftest.err conftest.i conftest.$ac_ext
3844
3845done
3846# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3847rm -f conftest.i conftest.err conftest.$ac_ext
3848if $ac_preproc_ok; then :
3849  break
3850fi
3851
3852    done
3853    ac_cv_prog_CPP=$CPP
3854
3855fi
3856  CPP=$ac_cv_prog_CPP
3857else
3858  ac_cv_prog_CPP=$CPP
3859fi
3860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3861$as_echo "$CPP" >&6; }
3862ac_preproc_ok=false
3863for ac_c_preproc_warn_flag in '' yes
3864do
3865  # Use a header file that comes with gcc, so configuring glibc
3866  # with a fresh cross-compiler works.
3867  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3868  # <limits.h> exists even on freestanding compilers.
3869  # On the NeXT, cc -E runs the code through the compiler's parser,
3870  # not just through cpp. "Syntax error" is here to catch this case.
3871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872/* end confdefs.h.  */
3873#ifdef __STDC__
3874# include <limits.h>
3875#else
3876# include <assert.h>
3877#endif
3878		     Syntax error
3879_ACEOF
3880if ac_fn_c_try_cpp "$LINENO"; then :
3881
3882else
3883  # Broken: fails on valid input.
3884continue
3885fi
3886rm -f conftest.err conftest.i conftest.$ac_ext
3887
3888  # OK, works on sane cases.  Now check whether nonexistent headers
3889  # can be detected and how.
3890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891/* end confdefs.h.  */
3892#include <ac_nonexistent.h>
3893_ACEOF
3894if ac_fn_c_try_cpp "$LINENO"; then :
3895  # Broken: success on invalid input.
3896continue
3897else
3898  # Passes both tests.
3899ac_preproc_ok=:
3900break
3901fi
3902rm -f conftest.err conftest.i conftest.$ac_ext
3903
3904done
3905# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3906rm -f conftest.i conftest.err conftest.$ac_ext
3907if $ac_preproc_ok; then :
3908
3909else
3910  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3911$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3912as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3913See \`config.log' for more details" "$LINENO" 5; }
3914fi
3915
3916ac_ext=c
3917ac_cpp='$CPP $CPPFLAGS'
3918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920ac_compiler_gnu=$ac_cv_c_compiler_gnu
3921
3922
3923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3924$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3925if ${ac_cv_path_GREP+:} false; then :
3926  $as_echo_n "(cached) " >&6
3927else
3928  if test -z "$GREP"; then
3929  ac_path_GREP_found=false
3930  # Loop through the user's path and test for each of PROGNAME-LIST
3931  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3933do
3934  IFS=$as_save_IFS
3935  test -z "$as_dir" && as_dir=.
3936    for ac_prog in grep ggrep; do
3937    for ac_exec_ext in '' $ac_executable_extensions; do
3938      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3939      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3940# Check for GNU ac_path_GREP and select it if it is found.
3941  # Check for GNU $ac_path_GREP
3942case `"$ac_path_GREP" --version 2>&1` in
3943*GNU*)
3944  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3945*)
3946  ac_count=0
3947  $as_echo_n 0123456789 >"conftest.in"
3948  while :
3949  do
3950    cat "conftest.in" "conftest.in" >"conftest.tmp"
3951    mv "conftest.tmp" "conftest.in"
3952    cp "conftest.in" "conftest.nl"
3953    $as_echo 'GREP' >> "conftest.nl"
3954    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3955    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3956    as_fn_arith $ac_count + 1 && ac_count=$as_val
3957    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3958      # Best one so far, save it but keep looking for a better one
3959      ac_cv_path_GREP="$ac_path_GREP"
3960      ac_path_GREP_max=$ac_count
3961    fi
3962    # 10*(2^10) chars as input seems more than enough
3963    test $ac_count -gt 10 && break
3964  done
3965  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3966esac
3967
3968      $ac_path_GREP_found && break 3
3969    done
3970  done
3971  done
3972IFS=$as_save_IFS
3973  if test -z "$ac_cv_path_GREP"; then
3974    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3975  fi
3976else
3977  ac_cv_path_GREP=$GREP
3978fi
3979
3980fi
3981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3982$as_echo "$ac_cv_path_GREP" >&6; }
3983 GREP="$ac_cv_path_GREP"
3984
3985
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3987$as_echo_n "checking for egrep... " >&6; }
3988if ${ac_cv_path_EGREP+:} false; then :
3989  $as_echo_n "(cached) " >&6
3990else
3991  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3992   then ac_cv_path_EGREP="$GREP -E"
3993   else
3994     if test -z "$EGREP"; then
3995  ac_path_EGREP_found=false
3996  # Loop through the user's path and test for each of PROGNAME-LIST
3997  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3999do
4000  IFS=$as_save_IFS
4001  test -z "$as_dir" && as_dir=.
4002    for ac_prog in egrep; do
4003    for ac_exec_ext in '' $ac_executable_extensions; do
4004      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4005      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4006# Check for GNU ac_path_EGREP and select it if it is found.
4007  # Check for GNU $ac_path_EGREP
4008case `"$ac_path_EGREP" --version 2>&1` in
4009*GNU*)
4010  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4011*)
4012  ac_count=0
4013  $as_echo_n 0123456789 >"conftest.in"
4014  while :
4015  do
4016    cat "conftest.in" "conftest.in" >"conftest.tmp"
4017    mv "conftest.tmp" "conftest.in"
4018    cp "conftest.in" "conftest.nl"
4019    $as_echo 'EGREP' >> "conftest.nl"
4020    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4021    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4022    as_fn_arith $ac_count + 1 && ac_count=$as_val
4023    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4024      # Best one so far, save it but keep looking for a better one
4025      ac_cv_path_EGREP="$ac_path_EGREP"
4026      ac_path_EGREP_max=$ac_count
4027    fi
4028    # 10*(2^10) chars as input seems more than enough
4029    test $ac_count -gt 10 && break
4030  done
4031  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4032esac
4033
4034      $ac_path_EGREP_found && break 3
4035    done
4036  done
4037  done
4038IFS=$as_save_IFS
4039  if test -z "$ac_cv_path_EGREP"; then
4040    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4041  fi
4042else
4043  ac_cv_path_EGREP=$EGREP
4044fi
4045
4046   fi
4047fi
4048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4049$as_echo "$ac_cv_path_EGREP" >&6; }
4050 EGREP="$ac_cv_path_EGREP"
4051
4052
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4054$as_echo_n "checking for ANSI C header files... " >&6; }
4055if ${ac_cv_header_stdc+:} false; then :
4056  $as_echo_n "(cached) " >&6
4057else
4058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059/* end confdefs.h.  */
4060#include <stdlib.h>
4061#include <stdarg.h>
4062#include <string.h>
4063#include <float.h>
4064
4065int
4066main ()
4067{
4068
4069  ;
4070  return 0;
4071}
4072_ACEOF
4073if ac_fn_c_try_compile "$LINENO"; then :
4074  ac_cv_header_stdc=yes
4075else
4076  ac_cv_header_stdc=no
4077fi
4078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4079
4080if test $ac_cv_header_stdc = yes; then
4081  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083/* end confdefs.h.  */
4084#include <string.h>
4085
4086_ACEOF
4087if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4088  $EGREP "memchr" >/dev/null 2>&1; then :
4089
4090else
4091  ac_cv_header_stdc=no
4092fi
4093rm -f conftest*
4094
4095fi
4096
4097if test $ac_cv_header_stdc = yes; then
4098  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100/* end confdefs.h.  */
4101#include <stdlib.h>
4102
4103_ACEOF
4104if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4105  $EGREP "free" >/dev/null 2>&1; then :
4106
4107else
4108  ac_cv_header_stdc=no
4109fi
4110rm -f conftest*
4111
4112fi
4113
4114if test $ac_cv_header_stdc = yes; then
4115  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4116  if test "$cross_compiling" = yes; then :
4117  :
4118else
4119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120/* end confdefs.h.  */
4121#include <ctype.h>
4122#include <stdlib.h>
4123#if ((' ' & 0x0FF) == 0x020)
4124# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4125# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4126#else
4127# define ISLOWER(c) \
4128		   (('a' <= (c) && (c) <= 'i') \
4129		     || ('j' <= (c) && (c) <= 'r') \
4130		     || ('s' <= (c) && (c) <= 'z'))
4131# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4132#endif
4133
4134#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4135int
4136main ()
4137{
4138  int i;
4139  for (i = 0; i < 256; i++)
4140    if (XOR (islower (i), ISLOWER (i))
4141	|| toupper (i) != TOUPPER (i))
4142      return 2;
4143  return 0;
4144}
4145_ACEOF
4146if ac_fn_c_try_run "$LINENO"; then :
4147
4148else
4149  ac_cv_header_stdc=no
4150fi
4151rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4152  conftest.$ac_objext conftest.beam conftest.$ac_ext
4153fi
4154
4155fi
4156fi
4157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4158$as_echo "$ac_cv_header_stdc" >&6; }
4159if test $ac_cv_header_stdc = yes; then
4160
4161$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4162
4163fi
4164
4165# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4166for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4167		  inttypes.h stdint.h unistd.h
4168do :
4169  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4170ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4171"
4172if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4173  cat >>confdefs.h <<_ACEOF
4174#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4175_ACEOF
4176
4177fi
4178
4179done
4180
4181
4182
4183
4184
4185
4186ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4187if test "x$ac_cv_have_decl___clang__" = xyes; then :
4188  CLANGCC="yes"
4189else
4190  CLANGCC="no"
4191fi
4192
4193ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4194if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4195  INTELCC="yes"
4196else
4197  INTELCC="no"
4198fi
4199
4200ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4201if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4202  SUNCC="yes"
4203else
4204  SUNCC="no"
4205fi
4206
4207
4208
4209
4210if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4211	if test -n "$ac_tool_prefix"; then
4212  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4213set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4215$as_echo_n "checking for $ac_word... " >&6; }
4216if ${ac_cv_path_PKG_CONFIG+:} false; then :
4217  $as_echo_n "(cached) " >&6
4218else
4219  case $PKG_CONFIG in
4220  [\\/]* | ?:[\\/]*)
4221  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4222  ;;
4223  *)
4224  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225for as_dir in $PATH
4226do
4227  IFS=$as_save_IFS
4228  test -z "$as_dir" && as_dir=.
4229    for ac_exec_ext in '' $ac_executable_extensions; do
4230  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4231    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4232    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4233    break 2
4234  fi
4235done
4236  done
4237IFS=$as_save_IFS
4238
4239  ;;
4240esac
4241fi
4242PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4243if test -n "$PKG_CONFIG"; then
4244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4245$as_echo "$PKG_CONFIG" >&6; }
4246else
4247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248$as_echo "no" >&6; }
4249fi
4250
4251
4252fi
4253if test -z "$ac_cv_path_PKG_CONFIG"; then
4254  ac_pt_PKG_CONFIG=$PKG_CONFIG
4255  # Extract the first word of "pkg-config", so it can be a program name with args.
4256set dummy pkg-config; ac_word=$2
4257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4258$as_echo_n "checking for $ac_word... " >&6; }
4259if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4260  $as_echo_n "(cached) " >&6
4261else
4262  case $ac_pt_PKG_CONFIG in
4263  [\\/]* | ?:[\\/]*)
4264  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4265  ;;
4266  *)
4267  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268for as_dir in $PATH
4269do
4270  IFS=$as_save_IFS
4271  test -z "$as_dir" && as_dir=.
4272    for ac_exec_ext in '' $ac_executable_extensions; do
4273  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4274    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4275    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4276    break 2
4277  fi
4278done
4279  done
4280IFS=$as_save_IFS
4281
4282  ;;
4283esac
4284fi
4285ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4286if test -n "$ac_pt_PKG_CONFIG"; then
4287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4288$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4289else
4290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291$as_echo "no" >&6; }
4292fi
4293
4294  if test "x$ac_pt_PKG_CONFIG" = x; then
4295    PKG_CONFIG=""
4296  else
4297    case $cross_compiling:$ac_tool_warned in
4298yes:)
4299{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4300$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4301ac_tool_warned=yes ;;
4302esac
4303    PKG_CONFIG=$ac_pt_PKG_CONFIG
4304  fi
4305else
4306  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4307fi
4308
4309fi
4310if test -n "$PKG_CONFIG"; then
4311	_pkg_min_version=0.9.0
4312	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4313$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4314	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4315		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4316$as_echo "yes" >&6; }
4317	else
4318		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4319$as_echo "no" >&6; }
4320		PKG_CONFIG=""
4321	fi
4322
4323fi
4324# Make sure we can run config.sub.
4325$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4326  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4327
4328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4329$as_echo_n "checking build system type... " >&6; }
4330if ${ac_cv_build+:} false; then :
4331  $as_echo_n "(cached) " >&6
4332else
4333  ac_build_alias=$build_alias
4334test "x$ac_build_alias" = x &&
4335  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4336test "x$ac_build_alias" = x &&
4337  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4338ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4339  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4340
4341fi
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4343$as_echo "$ac_cv_build" >&6; }
4344case $ac_cv_build in
4345*-*-*) ;;
4346*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4347esac
4348build=$ac_cv_build
4349ac_save_IFS=$IFS; IFS='-'
4350set x $ac_cv_build
4351shift
4352build_cpu=$1
4353build_vendor=$2
4354shift; shift
4355# Remember, the first character of IFS is used to create $*,
4356# except with old shells:
4357build_os=$*
4358IFS=$ac_save_IFS
4359case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4360
4361
4362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4363$as_echo_n "checking host system type... " >&6; }
4364if ${ac_cv_host+:} false; then :
4365  $as_echo_n "(cached) " >&6
4366else
4367  if test "x$host_alias" = x; then
4368  ac_cv_host=$ac_cv_build
4369else
4370  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4371    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4372fi
4373
4374fi
4375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4376$as_echo "$ac_cv_host" >&6; }
4377case $ac_cv_host in
4378*-*-*) ;;
4379*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4380esac
4381host=$ac_cv_host
4382ac_save_IFS=$IFS; IFS='-'
4383set x $ac_cv_host
4384shift
4385host_cpu=$1
4386host_vendor=$2
4387shift; shift
4388# Remember, the first character of IFS is used to create $*,
4389# except with old shells:
4390host_os=$*
4391IFS=$ac_save_IFS
4392case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4393
4394
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4396$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4397if ${ac_cv_path_SED+:} false; then :
4398  $as_echo_n "(cached) " >&6
4399else
4400            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4401     for ac_i in 1 2 3 4 5 6 7; do
4402       ac_script="$ac_script$as_nl$ac_script"
4403     done
4404     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4405     { ac_script=; unset ac_script;}
4406     if test -z "$SED"; then
4407  ac_path_SED_found=false
4408  # Loop through the user's path and test for each of PROGNAME-LIST
4409  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410for as_dir in $PATH
4411do
4412  IFS=$as_save_IFS
4413  test -z "$as_dir" && as_dir=.
4414    for ac_prog in sed gsed; do
4415    for ac_exec_ext in '' $ac_executable_extensions; do
4416      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4417      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4418# Check for GNU ac_path_SED and select it if it is found.
4419  # Check for GNU $ac_path_SED
4420case `"$ac_path_SED" --version 2>&1` in
4421*GNU*)
4422  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4423*)
4424  ac_count=0
4425  $as_echo_n 0123456789 >"conftest.in"
4426  while :
4427  do
4428    cat "conftest.in" "conftest.in" >"conftest.tmp"
4429    mv "conftest.tmp" "conftest.in"
4430    cp "conftest.in" "conftest.nl"
4431    $as_echo '' >> "conftest.nl"
4432    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4433    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4434    as_fn_arith $ac_count + 1 && ac_count=$as_val
4435    if test $ac_count -gt ${ac_path_SED_max-0}; then
4436      # Best one so far, save it but keep looking for a better one
4437      ac_cv_path_SED="$ac_path_SED"
4438      ac_path_SED_max=$ac_count
4439    fi
4440    # 10*(2^10) chars as input seems more than enough
4441    test $ac_count -gt 10 && break
4442  done
4443  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4444esac
4445
4446      $ac_path_SED_found && break 3
4447    done
4448  done
4449  done
4450IFS=$as_save_IFS
4451  if test -z "$ac_cv_path_SED"; then
4452    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4453  fi
4454else
4455  ac_cv_path_SED=$SED
4456fi
4457
4458fi
4459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4460$as_echo "$ac_cv_path_SED" >&6; }
4461 SED="$ac_cv_path_SED"
4462  rm -f conftest.sed
4463
4464
4465
4466
4467
4468
4469# Check whether --enable-selective-werror was given.
4470if test "${enable_selective_werror+set}" = set; then :
4471  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4472else
4473  SELECTIVE_WERROR=yes
4474fi
4475
4476
4477
4478
4479
4480# -v is too short to test reliably with XORG_TESTSET_CFLAG
4481if test "x$SUNCC" = "xyes"; then
4482    BASE_CFLAGS="-v"
4483else
4484    BASE_CFLAGS=""
4485fi
4486
4487# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501xorg_testset_save_CFLAGS="$CFLAGS"
4502
4503if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4504	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4505	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4506$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4507if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4508  $as_echo_n "(cached) " >&6
4509else
4510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511/* end confdefs.h.  */
4512int i;
4513_ACEOF
4514if ac_fn_c_try_compile "$LINENO"; then :
4515  xorg_cv_cc_flag_unknown_warning_option=yes
4516else
4517  xorg_cv_cc_flag_unknown_warning_option=no
4518fi
4519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4520fi
4521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4522$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4523	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4524	CFLAGS="$xorg_testset_save_CFLAGS"
4525fi
4526
4527if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4528	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4529		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4530	fi
4531	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4532	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4533$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4534if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4535  $as_echo_n "(cached) " >&6
4536else
4537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538/* end confdefs.h.  */
4539int i;
4540_ACEOF
4541if ac_fn_c_try_compile "$LINENO"; then :
4542  xorg_cv_cc_flag_unused_command_line_argument=yes
4543else
4544  xorg_cv_cc_flag_unused_command_line_argument=no
4545fi
4546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4547fi
4548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4549$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4550	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4551	CFLAGS="$xorg_testset_save_CFLAGS"
4552fi
4553
4554found="no"
4555
4556	if test $found = "no" ; then
4557		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4558			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4559		fi
4560
4561		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4562			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4563		fi
4564
4565		CFLAGS="$CFLAGS -Wall"
4566
4567		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4568$as_echo_n "checking if $CC supports-Wall... " >&6; }
4569		cacheid=xorg_cv_cc_flag__Wall
4570		if eval \${$cacheid+:} false; then :
4571  $as_echo_n "(cached) " >&6
4572else
4573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574/* end confdefs.h.  */
4575int i;
4576int
4577main ()
4578{
4579
4580  ;
4581  return 0;
4582}
4583_ACEOF
4584if ac_fn_c_try_link "$LINENO"; then :
4585  eval $cacheid=yes
4586else
4587  eval $cacheid=no
4588fi
4589rm -f core conftest.err conftest.$ac_objext \
4590    conftest$ac_exeext conftest.$ac_ext
4591fi
4592
4593
4594		CFLAGS="$xorg_testset_save_CFLAGS"
4595
4596		eval supported=\$$cacheid
4597		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4598$as_echo "$supported" >&6; }
4599		if test "$supported" = "yes" ; then
4600			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4601			found="yes"
4602		fi
4603	fi
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619xorg_testset_save_CFLAGS="$CFLAGS"
4620
4621if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4622	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4623	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4624$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4625if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4626  $as_echo_n "(cached) " >&6
4627else
4628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629/* end confdefs.h.  */
4630int i;
4631_ACEOF
4632if ac_fn_c_try_compile "$LINENO"; then :
4633  xorg_cv_cc_flag_unknown_warning_option=yes
4634else
4635  xorg_cv_cc_flag_unknown_warning_option=no
4636fi
4637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4638fi
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4640$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4641	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4642	CFLAGS="$xorg_testset_save_CFLAGS"
4643fi
4644
4645if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4646	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4647		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4648	fi
4649	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4650	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4651$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4652if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4653  $as_echo_n "(cached) " >&6
4654else
4655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656/* end confdefs.h.  */
4657int i;
4658_ACEOF
4659if ac_fn_c_try_compile "$LINENO"; then :
4660  xorg_cv_cc_flag_unused_command_line_argument=yes
4661else
4662  xorg_cv_cc_flag_unused_command_line_argument=no
4663fi
4664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4665fi
4666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4667$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4668	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4669	CFLAGS="$xorg_testset_save_CFLAGS"
4670fi
4671
4672found="no"
4673
4674	if test $found = "no" ; then
4675		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4676			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4677		fi
4678
4679		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4680			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4681		fi
4682
4683		CFLAGS="$CFLAGS -Wpointer-arith"
4684
4685		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
4686$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
4687		cacheid=xorg_cv_cc_flag__Wpointer_arith
4688		if eval \${$cacheid+:} false; then :
4689  $as_echo_n "(cached) " >&6
4690else
4691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692/* end confdefs.h.  */
4693int i;
4694int
4695main ()
4696{
4697
4698  ;
4699  return 0;
4700}
4701_ACEOF
4702if ac_fn_c_try_link "$LINENO"; then :
4703  eval $cacheid=yes
4704else
4705  eval $cacheid=no
4706fi
4707rm -f core conftest.err conftest.$ac_objext \
4708    conftest$ac_exeext conftest.$ac_ext
4709fi
4710
4711
4712		CFLAGS="$xorg_testset_save_CFLAGS"
4713
4714		eval supported=\$$cacheid
4715		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4716$as_echo "$supported" >&6; }
4717		if test "$supported" = "yes" ; then
4718			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4719			found="yes"
4720		fi
4721	fi
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737xorg_testset_save_CFLAGS="$CFLAGS"
4738
4739if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4740	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4741	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4742$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4743if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4744  $as_echo_n "(cached) " >&6
4745else
4746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747/* end confdefs.h.  */
4748int i;
4749_ACEOF
4750if ac_fn_c_try_compile "$LINENO"; then :
4751  xorg_cv_cc_flag_unknown_warning_option=yes
4752else
4753  xorg_cv_cc_flag_unknown_warning_option=no
4754fi
4755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756fi
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4758$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4759	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4760	CFLAGS="$xorg_testset_save_CFLAGS"
4761fi
4762
4763if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4764	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4765		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4766	fi
4767	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4768	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4769$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4770if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4771  $as_echo_n "(cached) " >&6
4772else
4773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774/* end confdefs.h.  */
4775int i;
4776_ACEOF
4777if ac_fn_c_try_compile "$LINENO"; then :
4778  xorg_cv_cc_flag_unused_command_line_argument=yes
4779else
4780  xorg_cv_cc_flag_unused_command_line_argument=no
4781fi
4782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783fi
4784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4785$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4786	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4787	CFLAGS="$xorg_testset_save_CFLAGS"
4788fi
4789
4790found="no"
4791
4792	if test $found = "no" ; then
4793		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4794			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4795		fi
4796
4797		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4798			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4799		fi
4800
4801		CFLAGS="$CFLAGS -Wmissing-declarations"
4802
4803		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
4804$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
4805		cacheid=xorg_cv_cc_flag__Wmissing_declarations
4806		if eval \${$cacheid+:} false; then :
4807  $as_echo_n "(cached) " >&6
4808else
4809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810/* end confdefs.h.  */
4811int i;
4812int
4813main ()
4814{
4815
4816  ;
4817  return 0;
4818}
4819_ACEOF
4820if ac_fn_c_try_link "$LINENO"; then :
4821  eval $cacheid=yes
4822else
4823  eval $cacheid=no
4824fi
4825rm -f core conftest.err conftest.$ac_objext \
4826    conftest$ac_exeext conftest.$ac_ext
4827fi
4828
4829
4830		CFLAGS="$xorg_testset_save_CFLAGS"
4831
4832		eval supported=\$$cacheid
4833		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4834$as_echo "$supported" >&6; }
4835		if test "$supported" = "yes" ; then
4836			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4837			found="yes"
4838		fi
4839	fi
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855xorg_testset_save_CFLAGS="$CFLAGS"
4856
4857if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4858	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4859	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4860$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4861if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4862  $as_echo_n "(cached) " >&6
4863else
4864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865/* end confdefs.h.  */
4866int i;
4867_ACEOF
4868if ac_fn_c_try_compile "$LINENO"; then :
4869  xorg_cv_cc_flag_unknown_warning_option=yes
4870else
4871  xorg_cv_cc_flag_unknown_warning_option=no
4872fi
4873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4874fi
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4876$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4877	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4878	CFLAGS="$xorg_testset_save_CFLAGS"
4879fi
4880
4881if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4882	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4883		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4884	fi
4885	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4886	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4887$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4888if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4889  $as_echo_n "(cached) " >&6
4890else
4891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892/* end confdefs.h.  */
4893int i;
4894_ACEOF
4895if ac_fn_c_try_compile "$LINENO"; then :
4896  xorg_cv_cc_flag_unused_command_line_argument=yes
4897else
4898  xorg_cv_cc_flag_unused_command_line_argument=no
4899fi
4900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4901fi
4902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4903$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4904	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4905	CFLAGS="$xorg_testset_save_CFLAGS"
4906fi
4907
4908found="no"
4909
4910	if test $found = "no" ; then
4911		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4912			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4913		fi
4914
4915		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4916			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4917		fi
4918
4919		CFLAGS="$CFLAGS -Wformat=2"
4920
4921		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
4922$as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
4923		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
4924		if eval \${$cacheid+:} false; then :
4925  $as_echo_n "(cached) " >&6
4926else
4927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928/* end confdefs.h.  */
4929int i;
4930int
4931main ()
4932{
4933
4934  ;
4935  return 0;
4936}
4937_ACEOF
4938if ac_fn_c_try_link "$LINENO"; then :
4939  eval $cacheid=yes
4940else
4941  eval $cacheid=no
4942fi
4943rm -f core conftest.err conftest.$ac_objext \
4944    conftest$ac_exeext conftest.$ac_ext
4945fi
4946
4947
4948		CFLAGS="$xorg_testset_save_CFLAGS"
4949
4950		eval supported=\$$cacheid
4951		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4952$as_echo "$supported" >&6; }
4953		if test "$supported" = "yes" ; then
4954			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
4955			found="yes"
4956		fi
4957	fi
4958
4959	if test $found = "no" ; then
4960		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4961			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4962		fi
4963
4964		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4965			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4966		fi
4967
4968		CFLAGS="$CFLAGS -Wformat"
4969
4970		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
4971$as_echo_n "checking if $CC supports-Wformat... " >&6; }
4972		cacheid=xorg_cv_cc_flag__Wformat
4973		if eval \${$cacheid+:} false; then :
4974  $as_echo_n "(cached) " >&6
4975else
4976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977/* end confdefs.h.  */
4978int i;
4979int
4980main ()
4981{
4982
4983  ;
4984  return 0;
4985}
4986_ACEOF
4987if ac_fn_c_try_link "$LINENO"; then :
4988  eval $cacheid=yes
4989else
4990  eval $cacheid=no
4991fi
4992rm -f core conftest.err conftest.$ac_objext \
4993    conftest$ac_exeext conftest.$ac_ext
4994fi
4995
4996
4997		CFLAGS="$xorg_testset_save_CFLAGS"
4998
4999		eval supported=\$$cacheid
5000		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5001$as_echo "$supported" >&6; }
5002		if test "$supported" = "yes" ; then
5003			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5004			found="yes"
5005		fi
5006	fi
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024xorg_testset_save_CFLAGS="$CFLAGS"
5025
5026if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5027	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5028	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5029$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5030if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5031  $as_echo_n "(cached) " >&6
5032else
5033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034/* end confdefs.h.  */
5035int i;
5036_ACEOF
5037if ac_fn_c_try_compile "$LINENO"; then :
5038  xorg_cv_cc_flag_unknown_warning_option=yes
5039else
5040  xorg_cv_cc_flag_unknown_warning_option=no
5041fi
5042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5043fi
5044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5045$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5046	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5047	CFLAGS="$xorg_testset_save_CFLAGS"
5048fi
5049
5050if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5051	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5052		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5053	fi
5054	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5055	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5056$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5057if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5058  $as_echo_n "(cached) " >&6
5059else
5060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061/* end confdefs.h.  */
5062int i;
5063_ACEOF
5064if ac_fn_c_try_compile "$LINENO"; then :
5065  xorg_cv_cc_flag_unused_command_line_argument=yes
5066else
5067  xorg_cv_cc_flag_unused_command_line_argument=no
5068fi
5069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5070fi
5071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5072$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5073	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5074	CFLAGS="$xorg_testset_save_CFLAGS"
5075fi
5076
5077found="no"
5078
5079	if test $found = "no" ; then
5080		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5081			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5082		fi
5083
5084		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5085			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5086		fi
5087
5088		CFLAGS="$CFLAGS -Wstrict-prototypes"
5089
5090		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5091$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5092		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5093		if eval \${$cacheid+:} false; then :
5094  $as_echo_n "(cached) " >&6
5095else
5096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097/* end confdefs.h.  */
5098int i;
5099int
5100main ()
5101{
5102
5103  ;
5104  return 0;
5105}
5106_ACEOF
5107if ac_fn_c_try_link "$LINENO"; then :
5108  eval $cacheid=yes
5109else
5110  eval $cacheid=no
5111fi
5112rm -f core conftest.err conftest.$ac_objext \
5113    conftest$ac_exeext conftest.$ac_ext
5114fi
5115
5116
5117		CFLAGS="$xorg_testset_save_CFLAGS"
5118
5119		eval supported=\$$cacheid
5120		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5121$as_echo "$supported" >&6; }
5122		if test "$supported" = "yes" ; then
5123			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5124			found="yes"
5125		fi
5126	fi
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142xorg_testset_save_CFLAGS="$CFLAGS"
5143
5144if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5145	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5146	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5147$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5148if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5149  $as_echo_n "(cached) " >&6
5150else
5151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152/* end confdefs.h.  */
5153int i;
5154_ACEOF
5155if ac_fn_c_try_compile "$LINENO"; then :
5156  xorg_cv_cc_flag_unknown_warning_option=yes
5157else
5158  xorg_cv_cc_flag_unknown_warning_option=no
5159fi
5160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5161fi
5162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5163$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5164	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5165	CFLAGS="$xorg_testset_save_CFLAGS"
5166fi
5167
5168if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5169	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5170		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5171	fi
5172	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5173	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5174$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5175if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5176  $as_echo_n "(cached) " >&6
5177else
5178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179/* end confdefs.h.  */
5180int i;
5181_ACEOF
5182if ac_fn_c_try_compile "$LINENO"; then :
5183  xorg_cv_cc_flag_unused_command_line_argument=yes
5184else
5185  xorg_cv_cc_flag_unused_command_line_argument=no
5186fi
5187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5188fi
5189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5190$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5191	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5192	CFLAGS="$xorg_testset_save_CFLAGS"
5193fi
5194
5195found="no"
5196
5197	if test $found = "no" ; then
5198		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5199			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5200		fi
5201
5202		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5203			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5204		fi
5205
5206		CFLAGS="$CFLAGS -Wmissing-prototypes"
5207
5208		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5209$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5210		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5211		if eval \${$cacheid+:} false; then :
5212  $as_echo_n "(cached) " >&6
5213else
5214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215/* end confdefs.h.  */
5216int i;
5217int
5218main ()
5219{
5220
5221  ;
5222  return 0;
5223}
5224_ACEOF
5225if ac_fn_c_try_link "$LINENO"; then :
5226  eval $cacheid=yes
5227else
5228  eval $cacheid=no
5229fi
5230rm -f core conftest.err conftest.$ac_objext \
5231    conftest$ac_exeext conftest.$ac_ext
5232fi
5233
5234
5235		CFLAGS="$xorg_testset_save_CFLAGS"
5236
5237		eval supported=\$$cacheid
5238		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5239$as_echo "$supported" >&6; }
5240		if test "$supported" = "yes" ; then
5241			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5242			found="yes"
5243		fi
5244	fi
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260xorg_testset_save_CFLAGS="$CFLAGS"
5261
5262if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5263	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5264	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5265$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5266if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5267  $as_echo_n "(cached) " >&6
5268else
5269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270/* end confdefs.h.  */
5271int i;
5272_ACEOF
5273if ac_fn_c_try_compile "$LINENO"; then :
5274  xorg_cv_cc_flag_unknown_warning_option=yes
5275else
5276  xorg_cv_cc_flag_unknown_warning_option=no
5277fi
5278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279fi
5280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5281$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5282	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5283	CFLAGS="$xorg_testset_save_CFLAGS"
5284fi
5285
5286if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5287	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5288		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5289	fi
5290	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5291	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5292$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5293if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5294  $as_echo_n "(cached) " >&6
5295else
5296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297/* end confdefs.h.  */
5298int i;
5299_ACEOF
5300if ac_fn_c_try_compile "$LINENO"; then :
5301  xorg_cv_cc_flag_unused_command_line_argument=yes
5302else
5303  xorg_cv_cc_flag_unused_command_line_argument=no
5304fi
5305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306fi
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5308$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5309	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5310	CFLAGS="$xorg_testset_save_CFLAGS"
5311fi
5312
5313found="no"
5314
5315	if test $found = "no" ; then
5316		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5317			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5318		fi
5319
5320		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5321			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5322		fi
5323
5324		CFLAGS="$CFLAGS -Wnested-externs"
5325
5326		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5327$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5328		cacheid=xorg_cv_cc_flag__Wnested_externs
5329		if eval \${$cacheid+:} false; then :
5330  $as_echo_n "(cached) " >&6
5331else
5332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333/* end confdefs.h.  */
5334int i;
5335int
5336main ()
5337{
5338
5339  ;
5340  return 0;
5341}
5342_ACEOF
5343if ac_fn_c_try_link "$LINENO"; then :
5344  eval $cacheid=yes
5345else
5346  eval $cacheid=no
5347fi
5348rm -f core conftest.err conftest.$ac_objext \
5349    conftest$ac_exeext conftest.$ac_ext
5350fi
5351
5352
5353		CFLAGS="$xorg_testset_save_CFLAGS"
5354
5355		eval supported=\$$cacheid
5356		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5357$as_echo "$supported" >&6; }
5358		if test "$supported" = "yes" ; then
5359			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5360			found="yes"
5361		fi
5362	fi
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378xorg_testset_save_CFLAGS="$CFLAGS"
5379
5380if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5381	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5382	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5383$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5384if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5385  $as_echo_n "(cached) " >&6
5386else
5387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388/* end confdefs.h.  */
5389int i;
5390_ACEOF
5391if ac_fn_c_try_compile "$LINENO"; then :
5392  xorg_cv_cc_flag_unknown_warning_option=yes
5393else
5394  xorg_cv_cc_flag_unknown_warning_option=no
5395fi
5396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5397fi
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5399$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5400	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5401	CFLAGS="$xorg_testset_save_CFLAGS"
5402fi
5403
5404if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5405	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5406		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5407	fi
5408	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5409	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5410$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5411if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5412  $as_echo_n "(cached) " >&6
5413else
5414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415/* end confdefs.h.  */
5416int i;
5417_ACEOF
5418if ac_fn_c_try_compile "$LINENO"; then :
5419  xorg_cv_cc_flag_unused_command_line_argument=yes
5420else
5421  xorg_cv_cc_flag_unused_command_line_argument=no
5422fi
5423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5424fi
5425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5426$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5427	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5428	CFLAGS="$xorg_testset_save_CFLAGS"
5429fi
5430
5431found="no"
5432
5433	if test $found = "no" ; then
5434		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5435			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5436		fi
5437
5438		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5439			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5440		fi
5441
5442		CFLAGS="$CFLAGS -Wbad-function-cast"
5443
5444		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5445$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5446		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5447		if eval \${$cacheid+:} false; then :
5448  $as_echo_n "(cached) " >&6
5449else
5450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451/* end confdefs.h.  */
5452int i;
5453int
5454main ()
5455{
5456
5457  ;
5458  return 0;
5459}
5460_ACEOF
5461if ac_fn_c_try_link "$LINENO"; then :
5462  eval $cacheid=yes
5463else
5464  eval $cacheid=no
5465fi
5466rm -f core conftest.err conftest.$ac_objext \
5467    conftest$ac_exeext conftest.$ac_ext
5468fi
5469
5470
5471		CFLAGS="$xorg_testset_save_CFLAGS"
5472
5473		eval supported=\$$cacheid
5474		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5475$as_echo "$supported" >&6; }
5476		if test "$supported" = "yes" ; then
5477			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5478			found="yes"
5479		fi
5480	fi
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496xorg_testset_save_CFLAGS="$CFLAGS"
5497
5498if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5499	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5500	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5501$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5502if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5503  $as_echo_n "(cached) " >&6
5504else
5505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506/* end confdefs.h.  */
5507int i;
5508_ACEOF
5509if ac_fn_c_try_compile "$LINENO"; then :
5510  xorg_cv_cc_flag_unknown_warning_option=yes
5511else
5512  xorg_cv_cc_flag_unknown_warning_option=no
5513fi
5514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5515fi
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5517$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5518	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5519	CFLAGS="$xorg_testset_save_CFLAGS"
5520fi
5521
5522if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5523	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5524		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5525	fi
5526	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5527	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5528$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5529if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5530  $as_echo_n "(cached) " >&6
5531else
5532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533/* end confdefs.h.  */
5534int i;
5535_ACEOF
5536if ac_fn_c_try_compile "$LINENO"; then :
5537  xorg_cv_cc_flag_unused_command_line_argument=yes
5538else
5539  xorg_cv_cc_flag_unused_command_line_argument=no
5540fi
5541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5542fi
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5544$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5545	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5546	CFLAGS="$xorg_testset_save_CFLAGS"
5547fi
5548
5549found="no"
5550
5551	if test $found = "no" ; then
5552		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5553			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5554		fi
5555
5556		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5557			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5558		fi
5559
5560		CFLAGS="$CFLAGS -Wold-style-definition"
5561
5562		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5563$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5564		cacheid=xorg_cv_cc_flag__Wold_style_definition
5565		if eval \${$cacheid+:} false; then :
5566  $as_echo_n "(cached) " >&6
5567else
5568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569/* end confdefs.h.  */
5570int i;
5571int
5572main ()
5573{
5574
5575  ;
5576  return 0;
5577}
5578_ACEOF
5579if ac_fn_c_try_link "$LINENO"; then :
5580  eval $cacheid=yes
5581else
5582  eval $cacheid=no
5583fi
5584rm -f core conftest.err conftest.$ac_objext \
5585    conftest$ac_exeext conftest.$ac_ext
5586fi
5587
5588
5589		CFLAGS="$xorg_testset_save_CFLAGS"
5590
5591		eval supported=\$$cacheid
5592		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5593$as_echo "$supported" >&6; }
5594		if test "$supported" = "yes" ; then
5595			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5596			found="yes"
5597		fi
5598	fi
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614xorg_testset_save_CFLAGS="$CFLAGS"
5615
5616if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5617	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5618	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5619$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5620if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5621  $as_echo_n "(cached) " >&6
5622else
5623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624/* end confdefs.h.  */
5625int i;
5626_ACEOF
5627if ac_fn_c_try_compile "$LINENO"; then :
5628  xorg_cv_cc_flag_unknown_warning_option=yes
5629else
5630  xorg_cv_cc_flag_unknown_warning_option=no
5631fi
5632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5633fi
5634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5635$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5636	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5637	CFLAGS="$xorg_testset_save_CFLAGS"
5638fi
5639
5640if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5641	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5642		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5643	fi
5644	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5645	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5646$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5647if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5648  $as_echo_n "(cached) " >&6
5649else
5650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651/* end confdefs.h.  */
5652int i;
5653_ACEOF
5654if ac_fn_c_try_compile "$LINENO"; then :
5655  xorg_cv_cc_flag_unused_command_line_argument=yes
5656else
5657  xorg_cv_cc_flag_unused_command_line_argument=no
5658fi
5659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5660fi
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5662$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5663	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5664	CFLAGS="$xorg_testset_save_CFLAGS"
5665fi
5666
5667found="no"
5668
5669	if test $found = "no" ; then
5670		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5671			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5672		fi
5673
5674		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5675			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5676		fi
5677
5678		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5679
5680		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
5681$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
5682		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5683		if eval \${$cacheid+:} false; then :
5684  $as_echo_n "(cached) " >&6
5685else
5686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687/* end confdefs.h.  */
5688int i;
5689int
5690main ()
5691{
5692
5693  ;
5694  return 0;
5695}
5696_ACEOF
5697if ac_fn_c_try_link "$LINENO"; then :
5698  eval $cacheid=yes
5699else
5700  eval $cacheid=no
5701fi
5702rm -f core conftest.err conftest.$ac_objext \
5703    conftest$ac_exeext conftest.$ac_ext
5704fi
5705
5706
5707		CFLAGS="$xorg_testset_save_CFLAGS"
5708
5709		eval supported=\$$cacheid
5710		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5711$as_echo "$supported" >&6; }
5712		if test "$supported" = "yes" ; then
5713			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5714			found="yes"
5715		fi
5716	fi
5717
5718
5719
5720
5721
5722# This chunk adds additional warnings that could catch undesired effects.
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736xorg_testset_save_CFLAGS="$CFLAGS"
5737
5738if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5739	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5740	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5741$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5742if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5743  $as_echo_n "(cached) " >&6
5744else
5745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5746/* end confdefs.h.  */
5747int i;
5748_ACEOF
5749if ac_fn_c_try_compile "$LINENO"; then :
5750  xorg_cv_cc_flag_unknown_warning_option=yes
5751else
5752  xorg_cv_cc_flag_unknown_warning_option=no
5753fi
5754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5755fi
5756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5757$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5758	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5759	CFLAGS="$xorg_testset_save_CFLAGS"
5760fi
5761
5762if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5763	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5764		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5765	fi
5766	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5767	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5768$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5769if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5770  $as_echo_n "(cached) " >&6
5771else
5772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773/* end confdefs.h.  */
5774int i;
5775_ACEOF
5776if ac_fn_c_try_compile "$LINENO"; then :
5777  xorg_cv_cc_flag_unused_command_line_argument=yes
5778else
5779  xorg_cv_cc_flag_unused_command_line_argument=no
5780fi
5781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782fi
5783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5784$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5785	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5786	CFLAGS="$xorg_testset_save_CFLAGS"
5787fi
5788
5789found="no"
5790
5791	if test $found = "no" ; then
5792		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5793			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5794		fi
5795
5796		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5797			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5798		fi
5799
5800		CFLAGS="$CFLAGS -Wunused"
5801
5802		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
5803$as_echo_n "checking if $CC supports-Wunused... " >&6; }
5804		cacheid=xorg_cv_cc_flag__Wunused
5805		if eval \${$cacheid+:} false; then :
5806  $as_echo_n "(cached) " >&6
5807else
5808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809/* end confdefs.h.  */
5810int i;
5811int
5812main ()
5813{
5814
5815  ;
5816  return 0;
5817}
5818_ACEOF
5819if ac_fn_c_try_link "$LINENO"; then :
5820  eval $cacheid=yes
5821else
5822  eval $cacheid=no
5823fi
5824rm -f core conftest.err conftest.$ac_objext \
5825    conftest$ac_exeext conftest.$ac_ext
5826fi
5827
5828
5829		CFLAGS="$xorg_testset_save_CFLAGS"
5830
5831		eval supported=\$$cacheid
5832		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5833$as_echo "$supported" >&6; }
5834		if test "$supported" = "yes" ; then
5835			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5836			found="yes"
5837		fi
5838	fi
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854xorg_testset_save_CFLAGS="$CFLAGS"
5855
5856if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5857	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5858	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5859$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5860if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5861  $as_echo_n "(cached) " >&6
5862else
5863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864/* end confdefs.h.  */
5865int i;
5866_ACEOF
5867if ac_fn_c_try_compile "$LINENO"; then :
5868  xorg_cv_cc_flag_unknown_warning_option=yes
5869else
5870  xorg_cv_cc_flag_unknown_warning_option=no
5871fi
5872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5873fi
5874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5875$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5876	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5877	CFLAGS="$xorg_testset_save_CFLAGS"
5878fi
5879
5880if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5881	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5882		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5883	fi
5884	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5885	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5886$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5887if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5888  $as_echo_n "(cached) " >&6
5889else
5890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5891/* end confdefs.h.  */
5892int i;
5893_ACEOF
5894if ac_fn_c_try_compile "$LINENO"; then :
5895  xorg_cv_cc_flag_unused_command_line_argument=yes
5896else
5897  xorg_cv_cc_flag_unused_command_line_argument=no
5898fi
5899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5900fi
5901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5902$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5903	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5904	CFLAGS="$xorg_testset_save_CFLAGS"
5905fi
5906
5907found="no"
5908
5909	if test $found = "no" ; then
5910		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5911			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5912		fi
5913
5914		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5915			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5916		fi
5917
5918		CFLAGS="$CFLAGS -Wuninitialized"
5919
5920		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
5921$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
5922		cacheid=xorg_cv_cc_flag__Wuninitialized
5923		if eval \${$cacheid+:} false; then :
5924  $as_echo_n "(cached) " >&6
5925else
5926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927/* end confdefs.h.  */
5928int i;
5929int
5930main ()
5931{
5932
5933  ;
5934  return 0;
5935}
5936_ACEOF
5937if ac_fn_c_try_link "$LINENO"; then :
5938  eval $cacheid=yes
5939else
5940  eval $cacheid=no
5941fi
5942rm -f core conftest.err conftest.$ac_objext \
5943    conftest$ac_exeext conftest.$ac_ext
5944fi
5945
5946
5947		CFLAGS="$xorg_testset_save_CFLAGS"
5948
5949		eval supported=\$$cacheid
5950		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5951$as_echo "$supported" >&6; }
5952		if test "$supported" = "yes" ; then
5953			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5954			found="yes"
5955		fi
5956	fi
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972xorg_testset_save_CFLAGS="$CFLAGS"
5973
5974if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5975	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5976	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5977$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5978if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5979  $as_echo_n "(cached) " >&6
5980else
5981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982/* end confdefs.h.  */
5983int i;
5984_ACEOF
5985if ac_fn_c_try_compile "$LINENO"; then :
5986  xorg_cv_cc_flag_unknown_warning_option=yes
5987else
5988  xorg_cv_cc_flag_unknown_warning_option=no
5989fi
5990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5991fi
5992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5993$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5994	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5995	CFLAGS="$xorg_testset_save_CFLAGS"
5996fi
5997
5998if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5999	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6000		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6001	fi
6002	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6003	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6004$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6005if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6006  $as_echo_n "(cached) " >&6
6007else
6008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009/* end confdefs.h.  */
6010int i;
6011_ACEOF
6012if ac_fn_c_try_compile "$LINENO"; then :
6013  xorg_cv_cc_flag_unused_command_line_argument=yes
6014else
6015  xorg_cv_cc_flag_unused_command_line_argument=no
6016fi
6017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018fi
6019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6020$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6021	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6022	CFLAGS="$xorg_testset_save_CFLAGS"
6023fi
6024
6025found="no"
6026
6027	if test $found = "no" ; then
6028		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6029			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6030		fi
6031
6032		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6033			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6034		fi
6035
6036		CFLAGS="$CFLAGS -Wshadow"
6037
6038		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6039$as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6040		cacheid=xorg_cv_cc_flag__Wshadow
6041		if eval \${$cacheid+:} false; then :
6042  $as_echo_n "(cached) " >&6
6043else
6044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045/* end confdefs.h.  */
6046int i;
6047int
6048main ()
6049{
6050
6051  ;
6052  return 0;
6053}
6054_ACEOF
6055if ac_fn_c_try_link "$LINENO"; then :
6056  eval $cacheid=yes
6057else
6058  eval $cacheid=no
6059fi
6060rm -f core conftest.err conftest.$ac_objext \
6061    conftest$ac_exeext conftest.$ac_ext
6062fi
6063
6064
6065		CFLAGS="$xorg_testset_save_CFLAGS"
6066
6067		eval supported=\$$cacheid
6068		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6069$as_echo "$supported" >&6; }
6070		if test "$supported" = "yes" ; then
6071			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6072			found="yes"
6073		fi
6074	fi
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090xorg_testset_save_CFLAGS="$CFLAGS"
6091
6092if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6093	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6094	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6095$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6096if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6097  $as_echo_n "(cached) " >&6
6098else
6099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6100/* end confdefs.h.  */
6101int i;
6102_ACEOF
6103if ac_fn_c_try_compile "$LINENO"; then :
6104  xorg_cv_cc_flag_unknown_warning_option=yes
6105else
6106  xorg_cv_cc_flag_unknown_warning_option=no
6107fi
6108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6109fi
6110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6111$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6112	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6113	CFLAGS="$xorg_testset_save_CFLAGS"
6114fi
6115
6116if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6117	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6118		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6119	fi
6120	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6121	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6122$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6123if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6124  $as_echo_n "(cached) " >&6
6125else
6126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127/* end confdefs.h.  */
6128int i;
6129_ACEOF
6130if ac_fn_c_try_compile "$LINENO"; then :
6131  xorg_cv_cc_flag_unused_command_line_argument=yes
6132else
6133  xorg_cv_cc_flag_unused_command_line_argument=no
6134fi
6135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6136fi
6137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6138$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6139	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6140	CFLAGS="$xorg_testset_save_CFLAGS"
6141fi
6142
6143found="no"
6144
6145	if test $found = "no" ; then
6146		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6147			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6148		fi
6149
6150		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6151			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6152		fi
6153
6154		CFLAGS="$CFLAGS -Wcast-qual"
6155
6156		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6157$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6158		cacheid=xorg_cv_cc_flag__Wcast_qual
6159		if eval \${$cacheid+:} false; then :
6160  $as_echo_n "(cached) " >&6
6161else
6162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163/* end confdefs.h.  */
6164int i;
6165int
6166main ()
6167{
6168
6169  ;
6170  return 0;
6171}
6172_ACEOF
6173if ac_fn_c_try_link "$LINENO"; then :
6174  eval $cacheid=yes
6175else
6176  eval $cacheid=no
6177fi
6178rm -f core conftest.err conftest.$ac_objext \
6179    conftest$ac_exeext conftest.$ac_ext
6180fi
6181
6182
6183		CFLAGS="$xorg_testset_save_CFLAGS"
6184
6185		eval supported=\$$cacheid
6186		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6187$as_echo "$supported" >&6; }
6188		if test "$supported" = "yes" ; then
6189			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6190			found="yes"
6191		fi
6192	fi
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208xorg_testset_save_CFLAGS="$CFLAGS"
6209
6210if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6211	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6212	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6213$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6214if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6215  $as_echo_n "(cached) " >&6
6216else
6217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6218/* end confdefs.h.  */
6219int i;
6220_ACEOF
6221if ac_fn_c_try_compile "$LINENO"; then :
6222  xorg_cv_cc_flag_unknown_warning_option=yes
6223else
6224  xorg_cv_cc_flag_unknown_warning_option=no
6225fi
6226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6227fi
6228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6229$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6230	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6231	CFLAGS="$xorg_testset_save_CFLAGS"
6232fi
6233
6234if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6235	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6236		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6237	fi
6238	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6239	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6240$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6241if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6242  $as_echo_n "(cached) " >&6
6243else
6244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6245/* end confdefs.h.  */
6246int i;
6247_ACEOF
6248if ac_fn_c_try_compile "$LINENO"; then :
6249  xorg_cv_cc_flag_unused_command_line_argument=yes
6250else
6251  xorg_cv_cc_flag_unused_command_line_argument=no
6252fi
6253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6254fi
6255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6256$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6257	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6258	CFLAGS="$xorg_testset_save_CFLAGS"
6259fi
6260
6261found="no"
6262
6263	if test $found = "no" ; then
6264		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6265			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6266		fi
6267
6268		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6269			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6270		fi
6271
6272		CFLAGS="$CFLAGS -Wmissing-noreturn"
6273
6274		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6275$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6276		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6277		if eval \${$cacheid+:} false; then :
6278  $as_echo_n "(cached) " >&6
6279else
6280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281/* end confdefs.h.  */
6282int i;
6283int
6284main ()
6285{
6286
6287  ;
6288  return 0;
6289}
6290_ACEOF
6291if ac_fn_c_try_link "$LINENO"; then :
6292  eval $cacheid=yes
6293else
6294  eval $cacheid=no
6295fi
6296rm -f core conftest.err conftest.$ac_objext \
6297    conftest$ac_exeext conftest.$ac_ext
6298fi
6299
6300
6301		CFLAGS="$xorg_testset_save_CFLAGS"
6302
6303		eval supported=\$$cacheid
6304		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6305$as_echo "$supported" >&6; }
6306		if test "$supported" = "yes" ; then
6307			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6308			found="yes"
6309		fi
6310	fi
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326xorg_testset_save_CFLAGS="$CFLAGS"
6327
6328if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6329	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6330	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6331$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6332if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6333  $as_echo_n "(cached) " >&6
6334else
6335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6336/* end confdefs.h.  */
6337int i;
6338_ACEOF
6339if ac_fn_c_try_compile "$LINENO"; then :
6340  xorg_cv_cc_flag_unknown_warning_option=yes
6341else
6342  xorg_cv_cc_flag_unknown_warning_option=no
6343fi
6344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6345fi
6346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6347$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6348	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6349	CFLAGS="$xorg_testset_save_CFLAGS"
6350fi
6351
6352if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6353	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6354		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6355	fi
6356	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6357	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6358$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6359if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6360  $as_echo_n "(cached) " >&6
6361else
6362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6363/* end confdefs.h.  */
6364int i;
6365_ACEOF
6366if ac_fn_c_try_compile "$LINENO"; then :
6367  xorg_cv_cc_flag_unused_command_line_argument=yes
6368else
6369  xorg_cv_cc_flag_unused_command_line_argument=no
6370fi
6371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6372fi
6373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6374$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6375	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6376	CFLAGS="$xorg_testset_save_CFLAGS"
6377fi
6378
6379found="no"
6380
6381	if test $found = "no" ; then
6382		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6383			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6384		fi
6385
6386		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6387			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6388		fi
6389
6390		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6391
6392		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6393$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6394		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6395		if eval \${$cacheid+:} false; then :
6396  $as_echo_n "(cached) " >&6
6397else
6398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6399/* end confdefs.h.  */
6400int i;
6401int
6402main ()
6403{
6404
6405  ;
6406  return 0;
6407}
6408_ACEOF
6409if ac_fn_c_try_link "$LINENO"; then :
6410  eval $cacheid=yes
6411else
6412  eval $cacheid=no
6413fi
6414rm -f core conftest.err conftest.$ac_objext \
6415    conftest$ac_exeext conftest.$ac_ext
6416fi
6417
6418
6419		CFLAGS="$xorg_testset_save_CFLAGS"
6420
6421		eval supported=\$$cacheid
6422		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6423$as_echo "$supported" >&6; }
6424		if test "$supported" = "yes" ; then
6425			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6426			found="yes"
6427		fi
6428	fi
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444xorg_testset_save_CFLAGS="$CFLAGS"
6445
6446if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6447	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6448	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6449$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6450if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6451  $as_echo_n "(cached) " >&6
6452else
6453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6454/* end confdefs.h.  */
6455int i;
6456_ACEOF
6457if ac_fn_c_try_compile "$LINENO"; then :
6458  xorg_cv_cc_flag_unknown_warning_option=yes
6459else
6460  xorg_cv_cc_flag_unknown_warning_option=no
6461fi
6462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6463fi
6464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6465$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6466	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6467	CFLAGS="$xorg_testset_save_CFLAGS"
6468fi
6469
6470if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6471	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6472		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6473	fi
6474	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6475	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6476$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6477if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6478  $as_echo_n "(cached) " >&6
6479else
6480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6481/* end confdefs.h.  */
6482int i;
6483_ACEOF
6484if ac_fn_c_try_compile "$LINENO"; then :
6485  xorg_cv_cc_flag_unused_command_line_argument=yes
6486else
6487  xorg_cv_cc_flag_unused_command_line_argument=no
6488fi
6489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6490fi
6491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6492$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6493	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6494	CFLAGS="$xorg_testset_save_CFLAGS"
6495fi
6496
6497found="no"
6498
6499	if test $found = "no" ; then
6500		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6501			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6502		fi
6503
6504		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6505			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6506		fi
6507
6508		CFLAGS="$CFLAGS -Wredundant-decls"
6509
6510		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6511$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6512		cacheid=xorg_cv_cc_flag__Wredundant_decls
6513		if eval \${$cacheid+:} false; then :
6514  $as_echo_n "(cached) " >&6
6515else
6516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6517/* end confdefs.h.  */
6518int i;
6519int
6520main ()
6521{
6522
6523  ;
6524  return 0;
6525}
6526_ACEOF
6527if ac_fn_c_try_link "$LINENO"; then :
6528  eval $cacheid=yes
6529else
6530  eval $cacheid=no
6531fi
6532rm -f core conftest.err conftest.$ac_objext \
6533    conftest$ac_exeext conftest.$ac_ext
6534fi
6535
6536
6537		CFLAGS="$xorg_testset_save_CFLAGS"
6538
6539		eval supported=\$$cacheid
6540		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6541$as_echo "$supported" >&6; }
6542		if test "$supported" = "yes" ; then
6543			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6544			found="yes"
6545		fi
6546	fi
6547
6548
6549
6550# These are currently disabled because they are noisy.  They will be enabled
6551# in the future once the codebase is sufficiently modernized to silence
6552# them.  For now, I don't want them to drown out the other warnings.
6553# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6554# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6555# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6556
6557# Turn some warnings into errors, so we don't accidently get successful builds
6558# when there are problems that should be fixed.
6559
6560if test "x$SELECTIVE_WERROR" = "xyes" ; then
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574xorg_testset_save_CFLAGS="$CFLAGS"
6575
6576if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6577	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6578	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6579$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6580if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6581  $as_echo_n "(cached) " >&6
6582else
6583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6584/* end confdefs.h.  */
6585int i;
6586_ACEOF
6587if ac_fn_c_try_compile "$LINENO"; then :
6588  xorg_cv_cc_flag_unknown_warning_option=yes
6589else
6590  xorg_cv_cc_flag_unknown_warning_option=no
6591fi
6592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6593fi
6594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6595$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6596	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6597	CFLAGS="$xorg_testset_save_CFLAGS"
6598fi
6599
6600if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6601	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6602		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6603	fi
6604	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6605	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6606$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6607if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6608  $as_echo_n "(cached) " >&6
6609else
6610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611/* end confdefs.h.  */
6612int i;
6613_ACEOF
6614if ac_fn_c_try_compile "$LINENO"; then :
6615  xorg_cv_cc_flag_unused_command_line_argument=yes
6616else
6617  xorg_cv_cc_flag_unused_command_line_argument=no
6618fi
6619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6620fi
6621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6622$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6623	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6624	CFLAGS="$xorg_testset_save_CFLAGS"
6625fi
6626
6627found="no"
6628
6629	if test $found = "no" ; then
6630		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6631			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6632		fi
6633
6634		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6635			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6636		fi
6637
6638		CFLAGS="$CFLAGS -Werror=implicit"
6639
6640		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
6641$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
6642		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6643		if eval \${$cacheid+:} false; then :
6644  $as_echo_n "(cached) " >&6
6645else
6646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6647/* end confdefs.h.  */
6648int i;
6649int
6650main ()
6651{
6652
6653  ;
6654  return 0;
6655}
6656_ACEOF
6657if ac_fn_c_try_link "$LINENO"; then :
6658  eval $cacheid=yes
6659else
6660  eval $cacheid=no
6661fi
6662rm -f core conftest.err conftest.$ac_objext \
6663    conftest$ac_exeext conftest.$ac_ext
6664fi
6665
6666
6667		CFLAGS="$xorg_testset_save_CFLAGS"
6668
6669		eval supported=\$$cacheid
6670		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6671$as_echo "$supported" >&6; }
6672		if test "$supported" = "yes" ; then
6673			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6674			found="yes"
6675		fi
6676	fi
6677
6678	if test $found = "no" ; then
6679		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6680			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6681		fi
6682
6683		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6684			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6685		fi
6686
6687		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6688
6689		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6690$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6691		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6692		if eval \${$cacheid+:} false; then :
6693  $as_echo_n "(cached) " >&6
6694else
6695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696/* end confdefs.h.  */
6697int i;
6698int
6699main ()
6700{
6701
6702  ;
6703  return 0;
6704}
6705_ACEOF
6706if ac_fn_c_try_link "$LINENO"; then :
6707  eval $cacheid=yes
6708else
6709  eval $cacheid=no
6710fi
6711rm -f core conftest.err conftest.$ac_objext \
6712    conftest$ac_exeext conftest.$ac_ext
6713fi
6714
6715
6716		CFLAGS="$xorg_testset_save_CFLAGS"
6717
6718		eval supported=\$$cacheid
6719		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6720$as_echo "$supported" >&6; }
6721		if test "$supported" = "yes" ; then
6722			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6723			found="yes"
6724		fi
6725	fi
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741xorg_testset_save_CFLAGS="$CFLAGS"
6742
6743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6744	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6745	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6746$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6747if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6748  $as_echo_n "(cached) " >&6
6749else
6750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6751/* end confdefs.h.  */
6752int i;
6753_ACEOF
6754if ac_fn_c_try_compile "$LINENO"; then :
6755  xorg_cv_cc_flag_unknown_warning_option=yes
6756else
6757  xorg_cv_cc_flag_unknown_warning_option=no
6758fi
6759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6760fi
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6762$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6763	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6764	CFLAGS="$xorg_testset_save_CFLAGS"
6765fi
6766
6767if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6768	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6769		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6770	fi
6771	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6772	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6773$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6774if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6775  $as_echo_n "(cached) " >&6
6776else
6777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778/* end confdefs.h.  */
6779int i;
6780_ACEOF
6781if ac_fn_c_try_compile "$LINENO"; then :
6782  xorg_cv_cc_flag_unused_command_line_argument=yes
6783else
6784  xorg_cv_cc_flag_unused_command_line_argument=no
6785fi
6786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6787fi
6788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6789$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6790	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6791	CFLAGS="$xorg_testset_save_CFLAGS"
6792fi
6793
6794found="no"
6795
6796	if test $found = "no" ; then
6797		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6798			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6799		fi
6800
6801		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6802			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6803		fi
6804
6805		CFLAGS="$CFLAGS -Werror=nonnull"
6806
6807		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
6808$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
6809		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6810		if eval \${$cacheid+:} false; then :
6811  $as_echo_n "(cached) " >&6
6812else
6813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814/* end confdefs.h.  */
6815int i;
6816int
6817main ()
6818{
6819
6820  ;
6821  return 0;
6822}
6823_ACEOF
6824if ac_fn_c_try_link "$LINENO"; then :
6825  eval $cacheid=yes
6826else
6827  eval $cacheid=no
6828fi
6829rm -f core conftest.err conftest.$ac_objext \
6830    conftest$ac_exeext conftest.$ac_ext
6831fi
6832
6833
6834		CFLAGS="$xorg_testset_save_CFLAGS"
6835
6836		eval supported=\$$cacheid
6837		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6838$as_echo "$supported" >&6; }
6839		if test "$supported" = "yes" ; then
6840			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6841			found="yes"
6842		fi
6843	fi
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859xorg_testset_save_CFLAGS="$CFLAGS"
6860
6861if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6862	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6863	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6864$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6865if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6866  $as_echo_n "(cached) " >&6
6867else
6868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869/* end confdefs.h.  */
6870int i;
6871_ACEOF
6872if ac_fn_c_try_compile "$LINENO"; then :
6873  xorg_cv_cc_flag_unknown_warning_option=yes
6874else
6875  xorg_cv_cc_flag_unknown_warning_option=no
6876fi
6877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6878fi
6879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6880$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6881	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6882	CFLAGS="$xorg_testset_save_CFLAGS"
6883fi
6884
6885if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6886	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6887		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6888	fi
6889	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6890	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6891$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6892if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6893  $as_echo_n "(cached) " >&6
6894else
6895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896/* end confdefs.h.  */
6897int i;
6898_ACEOF
6899if ac_fn_c_try_compile "$LINENO"; then :
6900  xorg_cv_cc_flag_unused_command_line_argument=yes
6901else
6902  xorg_cv_cc_flag_unused_command_line_argument=no
6903fi
6904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6905fi
6906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6907$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6908	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6909	CFLAGS="$xorg_testset_save_CFLAGS"
6910fi
6911
6912found="no"
6913
6914	if test $found = "no" ; then
6915		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6916			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6917		fi
6918
6919		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6920			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6921		fi
6922
6923		CFLAGS="$CFLAGS -Werror=init-self"
6924
6925		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
6926$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
6927		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
6928		if eval \${$cacheid+:} false; then :
6929  $as_echo_n "(cached) " >&6
6930else
6931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6932/* end confdefs.h.  */
6933int i;
6934int
6935main ()
6936{
6937
6938  ;
6939  return 0;
6940}
6941_ACEOF
6942if ac_fn_c_try_link "$LINENO"; then :
6943  eval $cacheid=yes
6944else
6945  eval $cacheid=no
6946fi
6947rm -f core conftest.err conftest.$ac_objext \
6948    conftest$ac_exeext conftest.$ac_ext
6949fi
6950
6951
6952		CFLAGS="$xorg_testset_save_CFLAGS"
6953
6954		eval supported=\$$cacheid
6955		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6956$as_echo "$supported" >&6; }
6957		if test "$supported" = "yes" ; then
6958			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6959			found="yes"
6960		fi
6961	fi
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977xorg_testset_save_CFLAGS="$CFLAGS"
6978
6979if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6980	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6981	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6982$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6983if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6984  $as_echo_n "(cached) " >&6
6985else
6986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6987/* end confdefs.h.  */
6988int i;
6989_ACEOF
6990if ac_fn_c_try_compile "$LINENO"; then :
6991  xorg_cv_cc_flag_unknown_warning_option=yes
6992else
6993  xorg_cv_cc_flag_unknown_warning_option=no
6994fi
6995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6996fi
6997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6998$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6999	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7000	CFLAGS="$xorg_testset_save_CFLAGS"
7001fi
7002
7003if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7004	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7005		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7006	fi
7007	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7008	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7009$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7010if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7011  $as_echo_n "(cached) " >&6
7012else
7013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7014/* end confdefs.h.  */
7015int i;
7016_ACEOF
7017if ac_fn_c_try_compile "$LINENO"; then :
7018  xorg_cv_cc_flag_unused_command_line_argument=yes
7019else
7020  xorg_cv_cc_flag_unused_command_line_argument=no
7021fi
7022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7023fi
7024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7025$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7026	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7027	CFLAGS="$xorg_testset_save_CFLAGS"
7028fi
7029
7030found="no"
7031
7032	if test $found = "no" ; then
7033		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7034			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7035		fi
7036
7037		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7038			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7039		fi
7040
7041		CFLAGS="$CFLAGS -Werror=main"
7042
7043		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7044$as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7045		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7046		if eval \${$cacheid+:} false; then :
7047  $as_echo_n "(cached) " >&6
7048else
7049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050/* end confdefs.h.  */
7051int i;
7052int
7053main ()
7054{
7055
7056  ;
7057  return 0;
7058}
7059_ACEOF
7060if ac_fn_c_try_link "$LINENO"; then :
7061  eval $cacheid=yes
7062else
7063  eval $cacheid=no
7064fi
7065rm -f core conftest.err conftest.$ac_objext \
7066    conftest$ac_exeext conftest.$ac_ext
7067fi
7068
7069
7070		CFLAGS="$xorg_testset_save_CFLAGS"
7071
7072		eval supported=\$$cacheid
7073		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7074$as_echo "$supported" >&6; }
7075		if test "$supported" = "yes" ; then
7076			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7077			found="yes"
7078		fi
7079	fi
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095xorg_testset_save_CFLAGS="$CFLAGS"
7096
7097if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7098	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7099	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7100$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7101if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7102  $as_echo_n "(cached) " >&6
7103else
7104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7105/* end confdefs.h.  */
7106int i;
7107_ACEOF
7108if ac_fn_c_try_compile "$LINENO"; then :
7109  xorg_cv_cc_flag_unknown_warning_option=yes
7110else
7111  xorg_cv_cc_flag_unknown_warning_option=no
7112fi
7113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7114fi
7115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7116$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7117	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7118	CFLAGS="$xorg_testset_save_CFLAGS"
7119fi
7120
7121if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7122	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7123		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7124	fi
7125	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7126	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7127$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7128if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7129  $as_echo_n "(cached) " >&6
7130else
7131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132/* end confdefs.h.  */
7133int i;
7134_ACEOF
7135if ac_fn_c_try_compile "$LINENO"; then :
7136  xorg_cv_cc_flag_unused_command_line_argument=yes
7137else
7138  xorg_cv_cc_flag_unused_command_line_argument=no
7139fi
7140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7141fi
7142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7143$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7144	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7145	CFLAGS="$xorg_testset_save_CFLAGS"
7146fi
7147
7148found="no"
7149
7150	if test $found = "no" ; then
7151		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7152			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7153		fi
7154
7155		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7156			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7157		fi
7158
7159		CFLAGS="$CFLAGS -Werror=missing-braces"
7160
7161		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7162$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7163		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7164		if eval \${$cacheid+:} false; then :
7165  $as_echo_n "(cached) " >&6
7166else
7167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168/* end confdefs.h.  */
7169int i;
7170int
7171main ()
7172{
7173
7174  ;
7175  return 0;
7176}
7177_ACEOF
7178if ac_fn_c_try_link "$LINENO"; then :
7179  eval $cacheid=yes
7180else
7181  eval $cacheid=no
7182fi
7183rm -f core conftest.err conftest.$ac_objext \
7184    conftest$ac_exeext conftest.$ac_ext
7185fi
7186
7187
7188		CFLAGS="$xorg_testset_save_CFLAGS"
7189
7190		eval supported=\$$cacheid
7191		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7192$as_echo "$supported" >&6; }
7193		if test "$supported" = "yes" ; then
7194			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7195			found="yes"
7196		fi
7197	fi
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213xorg_testset_save_CFLAGS="$CFLAGS"
7214
7215if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7216	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7217	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7218$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7219if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7220  $as_echo_n "(cached) " >&6
7221else
7222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223/* end confdefs.h.  */
7224int i;
7225_ACEOF
7226if ac_fn_c_try_compile "$LINENO"; then :
7227  xorg_cv_cc_flag_unknown_warning_option=yes
7228else
7229  xorg_cv_cc_flag_unknown_warning_option=no
7230fi
7231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7232fi
7233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7234$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7235	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7236	CFLAGS="$xorg_testset_save_CFLAGS"
7237fi
7238
7239if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7240	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7241		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7242	fi
7243	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7244	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7245$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7246if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7247  $as_echo_n "(cached) " >&6
7248else
7249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250/* end confdefs.h.  */
7251int i;
7252_ACEOF
7253if ac_fn_c_try_compile "$LINENO"; then :
7254  xorg_cv_cc_flag_unused_command_line_argument=yes
7255else
7256  xorg_cv_cc_flag_unused_command_line_argument=no
7257fi
7258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7259fi
7260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7261$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7262	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7263	CFLAGS="$xorg_testset_save_CFLAGS"
7264fi
7265
7266found="no"
7267
7268	if test $found = "no" ; then
7269		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7270			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7271		fi
7272
7273		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7274			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7275		fi
7276
7277		CFLAGS="$CFLAGS -Werror=sequence-point"
7278
7279		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7280$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7281		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7282		if eval \${$cacheid+:} false; then :
7283  $as_echo_n "(cached) " >&6
7284else
7285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7286/* end confdefs.h.  */
7287int i;
7288int
7289main ()
7290{
7291
7292  ;
7293  return 0;
7294}
7295_ACEOF
7296if ac_fn_c_try_link "$LINENO"; then :
7297  eval $cacheid=yes
7298else
7299  eval $cacheid=no
7300fi
7301rm -f core conftest.err conftest.$ac_objext \
7302    conftest$ac_exeext conftest.$ac_ext
7303fi
7304
7305
7306		CFLAGS="$xorg_testset_save_CFLAGS"
7307
7308		eval supported=\$$cacheid
7309		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7310$as_echo "$supported" >&6; }
7311		if test "$supported" = "yes" ; then
7312			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7313			found="yes"
7314		fi
7315	fi
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331xorg_testset_save_CFLAGS="$CFLAGS"
7332
7333if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7334	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7335	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7336$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7337if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7338  $as_echo_n "(cached) " >&6
7339else
7340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341/* end confdefs.h.  */
7342int i;
7343_ACEOF
7344if ac_fn_c_try_compile "$LINENO"; then :
7345  xorg_cv_cc_flag_unknown_warning_option=yes
7346else
7347  xorg_cv_cc_flag_unknown_warning_option=no
7348fi
7349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7350fi
7351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7352$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7353	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7354	CFLAGS="$xorg_testset_save_CFLAGS"
7355fi
7356
7357if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7358	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7359		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7360	fi
7361	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7362	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7363$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7364if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7365  $as_echo_n "(cached) " >&6
7366else
7367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7368/* end confdefs.h.  */
7369int i;
7370_ACEOF
7371if ac_fn_c_try_compile "$LINENO"; then :
7372  xorg_cv_cc_flag_unused_command_line_argument=yes
7373else
7374  xorg_cv_cc_flag_unused_command_line_argument=no
7375fi
7376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7377fi
7378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7379$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7380	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7381	CFLAGS="$xorg_testset_save_CFLAGS"
7382fi
7383
7384found="no"
7385
7386	if test $found = "no" ; then
7387		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7388			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7389		fi
7390
7391		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7392			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7393		fi
7394
7395		CFLAGS="$CFLAGS -Werror=return-type"
7396
7397		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7398$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7399		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7400		if eval \${$cacheid+:} false; then :
7401  $as_echo_n "(cached) " >&6
7402else
7403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404/* end confdefs.h.  */
7405int i;
7406int
7407main ()
7408{
7409
7410  ;
7411  return 0;
7412}
7413_ACEOF
7414if ac_fn_c_try_link "$LINENO"; then :
7415  eval $cacheid=yes
7416else
7417  eval $cacheid=no
7418fi
7419rm -f core conftest.err conftest.$ac_objext \
7420    conftest$ac_exeext conftest.$ac_ext
7421fi
7422
7423
7424		CFLAGS="$xorg_testset_save_CFLAGS"
7425
7426		eval supported=\$$cacheid
7427		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7428$as_echo "$supported" >&6; }
7429		if test "$supported" = "yes" ; then
7430			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7431			found="yes"
7432		fi
7433	fi
7434
7435	if test $found = "no" ; then
7436		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7437			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7438		fi
7439
7440		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7441			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7442		fi
7443
7444		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7445
7446		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7447$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7448		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7449		if eval \${$cacheid+:} false; then :
7450  $as_echo_n "(cached) " >&6
7451else
7452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453/* end confdefs.h.  */
7454int i;
7455int
7456main ()
7457{
7458
7459  ;
7460  return 0;
7461}
7462_ACEOF
7463if ac_fn_c_try_link "$LINENO"; then :
7464  eval $cacheid=yes
7465else
7466  eval $cacheid=no
7467fi
7468rm -f core conftest.err conftest.$ac_objext \
7469    conftest$ac_exeext conftest.$ac_ext
7470fi
7471
7472
7473		CFLAGS="$xorg_testset_save_CFLAGS"
7474
7475		eval supported=\$$cacheid
7476		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7477$as_echo "$supported" >&6; }
7478		if test "$supported" = "yes" ; then
7479			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7480			found="yes"
7481		fi
7482	fi
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498xorg_testset_save_CFLAGS="$CFLAGS"
7499
7500if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7501	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7502	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7503$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7504if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7505  $as_echo_n "(cached) " >&6
7506else
7507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508/* end confdefs.h.  */
7509int i;
7510_ACEOF
7511if ac_fn_c_try_compile "$LINENO"; then :
7512  xorg_cv_cc_flag_unknown_warning_option=yes
7513else
7514  xorg_cv_cc_flag_unknown_warning_option=no
7515fi
7516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7517fi
7518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7519$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7520	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7521	CFLAGS="$xorg_testset_save_CFLAGS"
7522fi
7523
7524if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7525	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7526		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7527	fi
7528	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7529	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7530$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7531if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7532  $as_echo_n "(cached) " >&6
7533else
7534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535/* end confdefs.h.  */
7536int i;
7537_ACEOF
7538if ac_fn_c_try_compile "$LINENO"; then :
7539  xorg_cv_cc_flag_unused_command_line_argument=yes
7540else
7541  xorg_cv_cc_flag_unused_command_line_argument=no
7542fi
7543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7544fi
7545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7546$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7547	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7548	CFLAGS="$xorg_testset_save_CFLAGS"
7549fi
7550
7551found="no"
7552
7553	if test $found = "no" ; then
7554		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7555			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7556		fi
7557
7558		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7559			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7560		fi
7561
7562		CFLAGS="$CFLAGS -Werror=trigraphs"
7563
7564		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7565$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7566		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7567		if eval \${$cacheid+:} false; then :
7568  $as_echo_n "(cached) " >&6
7569else
7570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571/* end confdefs.h.  */
7572int i;
7573int
7574main ()
7575{
7576
7577  ;
7578  return 0;
7579}
7580_ACEOF
7581if ac_fn_c_try_link "$LINENO"; then :
7582  eval $cacheid=yes
7583else
7584  eval $cacheid=no
7585fi
7586rm -f core conftest.err conftest.$ac_objext \
7587    conftest$ac_exeext conftest.$ac_ext
7588fi
7589
7590
7591		CFLAGS="$xorg_testset_save_CFLAGS"
7592
7593		eval supported=\$$cacheid
7594		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7595$as_echo "$supported" >&6; }
7596		if test "$supported" = "yes" ; then
7597			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7598			found="yes"
7599		fi
7600	fi
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616xorg_testset_save_CFLAGS="$CFLAGS"
7617
7618if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7619	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7620	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7621$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7622if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7623  $as_echo_n "(cached) " >&6
7624else
7625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7626/* end confdefs.h.  */
7627int i;
7628_ACEOF
7629if ac_fn_c_try_compile "$LINENO"; then :
7630  xorg_cv_cc_flag_unknown_warning_option=yes
7631else
7632  xorg_cv_cc_flag_unknown_warning_option=no
7633fi
7634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7635fi
7636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7637$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7638	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7639	CFLAGS="$xorg_testset_save_CFLAGS"
7640fi
7641
7642if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7643	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7644		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7645	fi
7646	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7647	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7648$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7649if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7650  $as_echo_n "(cached) " >&6
7651else
7652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7653/* end confdefs.h.  */
7654int i;
7655_ACEOF
7656if ac_fn_c_try_compile "$LINENO"; then :
7657  xorg_cv_cc_flag_unused_command_line_argument=yes
7658else
7659  xorg_cv_cc_flag_unused_command_line_argument=no
7660fi
7661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7662fi
7663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7664$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7665	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7666	CFLAGS="$xorg_testset_save_CFLAGS"
7667fi
7668
7669found="no"
7670
7671	if test $found = "no" ; then
7672		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7673			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7674		fi
7675
7676		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7677			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7678		fi
7679
7680		CFLAGS="$CFLAGS -Werror=array-bounds"
7681
7682		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
7683$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
7684		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7685		if eval \${$cacheid+:} false; then :
7686  $as_echo_n "(cached) " >&6
7687else
7688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689/* end confdefs.h.  */
7690int i;
7691int
7692main ()
7693{
7694
7695  ;
7696  return 0;
7697}
7698_ACEOF
7699if ac_fn_c_try_link "$LINENO"; then :
7700  eval $cacheid=yes
7701else
7702  eval $cacheid=no
7703fi
7704rm -f core conftest.err conftest.$ac_objext \
7705    conftest$ac_exeext conftest.$ac_ext
7706fi
7707
7708
7709		CFLAGS="$xorg_testset_save_CFLAGS"
7710
7711		eval supported=\$$cacheid
7712		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7713$as_echo "$supported" >&6; }
7714		if test "$supported" = "yes" ; then
7715			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7716			found="yes"
7717		fi
7718	fi
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734xorg_testset_save_CFLAGS="$CFLAGS"
7735
7736if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7737	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7738	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7739$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7740if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7741  $as_echo_n "(cached) " >&6
7742else
7743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744/* end confdefs.h.  */
7745int i;
7746_ACEOF
7747if ac_fn_c_try_compile "$LINENO"; then :
7748  xorg_cv_cc_flag_unknown_warning_option=yes
7749else
7750  xorg_cv_cc_flag_unknown_warning_option=no
7751fi
7752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7753fi
7754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7755$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7756	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7757	CFLAGS="$xorg_testset_save_CFLAGS"
7758fi
7759
7760if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7761	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7762		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7763	fi
7764	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7765	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7766$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7767if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7768  $as_echo_n "(cached) " >&6
7769else
7770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7771/* end confdefs.h.  */
7772int i;
7773_ACEOF
7774if ac_fn_c_try_compile "$LINENO"; then :
7775  xorg_cv_cc_flag_unused_command_line_argument=yes
7776else
7777  xorg_cv_cc_flag_unused_command_line_argument=no
7778fi
7779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7780fi
7781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7782$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7783	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7784	CFLAGS="$xorg_testset_save_CFLAGS"
7785fi
7786
7787found="no"
7788
7789	if test $found = "no" ; then
7790		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7791			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7792		fi
7793
7794		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7795			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7796		fi
7797
7798		CFLAGS="$CFLAGS -Werror=write-strings"
7799
7800		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
7801$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
7802		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7803		if eval \${$cacheid+:} false; then :
7804  $as_echo_n "(cached) " >&6
7805else
7806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807/* end confdefs.h.  */
7808int i;
7809int
7810main ()
7811{
7812
7813  ;
7814  return 0;
7815}
7816_ACEOF
7817if ac_fn_c_try_link "$LINENO"; then :
7818  eval $cacheid=yes
7819else
7820  eval $cacheid=no
7821fi
7822rm -f core conftest.err conftest.$ac_objext \
7823    conftest$ac_exeext conftest.$ac_ext
7824fi
7825
7826
7827		CFLAGS="$xorg_testset_save_CFLAGS"
7828
7829		eval supported=\$$cacheid
7830		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7831$as_echo "$supported" >&6; }
7832		if test "$supported" = "yes" ; then
7833			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7834			found="yes"
7835		fi
7836	fi
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852xorg_testset_save_CFLAGS="$CFLAGS"
7853
7854if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7855	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7856	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7857$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7858if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7859  $as_echo_n "(cached) " >&6
7860else
7861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7862/* end confdefs.h.  */
7863int i;
7864_ACEOF
7865if ac_fn_c_try_compile "$LINENO"; then :
7866  xorg_cv_cc_flag_unknown_warning_option=yes
7867else
7868  xorg_cv_cc_flag_unknown_warning_option=no
7869fi
7870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7871fi
7872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7873$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7874	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7875	CFLAGS="$xorg_testset_save_CFLAGS"
7876fi
7877
7878if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7879	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7880		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7881	fi
7882	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7883	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7884$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7885if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7886  $as_echo_n "(cached) " >&6
7887else
7888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889/* end confdefs.h.  */
7890int i;
7891_ACEOF
7892if ac_fn_c_try_compile "$LINENO"; then :
7893  xorg_cv_cc_flag_unused_command_line_argument=yes
7894else
7895  xorg_cv_cc_flag_unused_command_line_argument=no
7896fi
7897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7898fi
7899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7900$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7901	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7902	CFLAGS="$xorg_testset_save_CFLAGS"
7903fi
7904
7905found="no"
7906
7907	if test $found = "no" ; then
7908		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7909			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7910		fi
7911
7912		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7913			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7914		fi
7915
7916		CFLAGS="$CFLAGS -Werror=address"
7917
7918		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
7919$as_echo_n "checking if $CC supports-Werror=address... " >&6; }
7920		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
7921		if eval \${$cacheid+:} false; then :
7922  $as_echo_n "(cached) " >&6
7923else
7924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925/* end confdefs.h.  */
7926int i;
7927int
7928main ()
7929{
7930
7931  ;
7932  return 0;
7933}
7934_ACEOF
7935if ac_fn_c_try_link "$LINENO"; then :
7936  eval $cacheid=yes
7937else
7938  eval $cacheid=no
7939fi
7940rm -f core conftest.err conftest.$ac_objext \
7941    conftest$ac_exeext conftest.$ac_ext
7942fi
7943
7944
7945		CFLAGS="$xorg_testset_save_CFLAGS"
7946
7947		eval supported=\$$cacheid
7948		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7949$as_echo "$supported" >&6; }
7950		if test "$supported" = "yes" ; then
7951			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7952			found="yes"
7953		fi
7954	fi
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970xorg_testset_save_CFLAGS="$CFLAGS"
7971
7972if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7973	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7974	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7975$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7976if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7977  $as_echo_n "(cached) " >&6
7978else
7979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980/* end confdefs.h.  */
7981int i;
7982_ACEOF
7983if ac_fn_c_try_compile "$LINENO"; then :
7984  xorg_cv_cc_flag_unknown_warning_option=yes
7985else
7986  xorg_cv_cc_flag_unknown_warning_option=no
7987fi
7988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7989fi
7990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7991$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7992	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7993	CFLAGS="$xorg_testset_save_CFLAGS"
7994fi
7995
7996if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7997	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7998		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7999	fi
8000	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8001	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8002$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8003if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8004  $as_echo_n "(cached) " >&6
8005else
8006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007/* end confdefs.h.  */
8008int i;
8009_ACEOF
8010if ac_fn_c_try_compile "$LINENO"; then :
8011  xorg_cv_cc_flag_unused_command_line_argument=yes
8012else
8013  xorg_cv_cc_flag_unused_command_line_argument=no
8014fi
8015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8016fi
8017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8018$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8019	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8020	CFLAGS="$xorg_testset_save_CFLAGS"
8021fi
8022
8023found="no"
8024
8025	if test $found = "no" ; then
8026		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8027			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8028		fi
8029
8030		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8031			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8032		fi
8033
8034		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8035
8036		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8037$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8038		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8039		if eval \${$cacheid+:} false; then :
8040  $as_echo_n "(cached) " >&6
8041else
8042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043/* end confdefs.h.  */
8044int i;
8045int
8046main ()
8047{
8048
8049  ;
8050  return 0;
8051}
8052_ACEOF
8053if ac_fn_c_try_link "$LINENO"; then :
8054  eval $cacheid=yes
8055else
8056  eval $cacheid=no
8057fi
8058rm -f core conftest.err conftest.$ac_objext \
8059    conftest$ac_exeext conftest.$ac_ext
8060fi
8061
8062
8063		CFLAGS="$xorg_testset_save_CFLAGS"
8064
8065		eval supported=\$$cacheid
8066		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8067$as_echo "$supported" >&6; }
8068		if test "$supported" = "yes" ; then
8069			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8070			found="yes"
8071		fi
8072	fi
8073
8074	if test $found = "no" ; then
8075		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8076			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8077		fi
8078
8079		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8080			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8081		fi
8082
8083		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8084
8085		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8086$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8087		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8088		if eval \${$cacheid+:} false; then :
8089  $as_echo_n "(cached) " >&6
8090else
8091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092/* end confdefs.h.  */
8093int i;
8094int
8095main ()
8096{
8097
8098  ;
8099  return 0;
8100}
8101_ACEOF
8102if ac_fn_c_try_link "$LINENO"; then :
8103  eval $cacheid=yes
8104else
8105  eval $cacheid=no
8106fi
8107rm -f core conftest.err conftest.$ac_objext \
8108    conftest$ac_exeext conftest.$ac_ext
8109fi
8110
8111
8112		CFLAGS="$xorg_testset_save_CFLAGS"
8113
8114		eval supported=\$$cacheid
8115		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8116$as_echo "$supported" >&6; }
8117		if test "$supported" = "yes" ; then
8118			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8119			found="yes"
8120		fi
8121	fi
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137xorg_testset_save_CFLAGS="$CFLAGS"
8138
8139if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8140	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8141	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8142$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8143if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8144  $as_echo_n "(cached) " >&6
8145else
8146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8147/* end confdefs.h.  */
8148int i;
8149_ACEOF
8150if ac_fn_c_try_compile "$LINENO"; then :
8151  xorg_cv_cc_flag_unknown_warning_option=yes
8152else
8153  xorg_cv_cc_flag_unknown_warning_option=no
8154fi
8155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8156fi
8157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8158$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8159	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8160	CFLAGS="$xorg_testset_save_CFLAGS"
8161fi
8162
8163if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8164	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8165		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8166	fi
8167	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8168	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8169$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8170if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8171  $as_echo_n "(cached) " >&6
8172else
8173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8174/* end confdefs.h.  */
8175int i;
8176_ACEOF
8177if ac_fn_c_try_compile "$LINENO"; then :
8178  xorg_cv_cc_flag_unused_command_line_argument=yes
8179else
8180  xorg_cv_cc_flag_unused_command_line_argument=no
8181fi
8182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8183fi
8184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8185$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8186	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8187	CFLAGS="$xorg_testset_save_CFLAGS"
8188fi
8189
8190found="no"
8191
8192	if test $found = "no" ; then
8193		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8194			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8195		fi
8196
8197		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8198			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8199		fi
8200
8201		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8202
8203		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8204$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8205		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8206		if eval \${$cacheid+:} false; then :
8207  $as_echo_n "(cached) " >&6
8208else
8209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8210/* end confdefs.h.  */
8211int i;
8212int
8213main ()
8214{
8215
8216  ;
8217  return 0;
8218}
8219_ACEOF
8220if ac_fn_c_try_link "$LINENO"; then :
8221  eval $cacheid=yes
8222else
8223  eval $cacheid=no
8224fi
8225rm -f core conftest.err conftest.$ac_objext \
8226    conftest$ac_exeext conftest.$ac_ext
8227fi
8228
8229
8230		CFLAGS="$xorg_testset_save_CFLAGS"
8231
8232		eval supported=\$$cacheid
8233		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8234$as_echo "$supported" >&6; }
8235		if test "$supported" = "yes" ; then
8236			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8237			found="yes"
8238		fi
8239	fi
8240
8241 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8242else
8243{ $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
8244$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;}
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258xorg_testset_save_CFLAGS="$CFLAGS"
8259
8260if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8261	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8262	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8263$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8264if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8265  $as_echo_n "(cached) " >&6
8266else
8267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8268/* end confdefs.h.  */
8269int i;
8270_ACEOF
8271if ac_fn_c_try_compile "$LINENO"; then :
8272  xorg_cv_cc_flag_unknown_warning_option=yes
8273else
8274  xorg_cv_cc_flag_unknown_warning_option=no
8275fi
8276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8277fi
8278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8279$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8280	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8281	CFLAGS="$xorg_testset_save_CFLAGS"
8282fi
8283
8284if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8285	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8286		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8287	fi
8288	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8289	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8290$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8291if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8292  $as_echo_n "(cached) " >&6
8293else
8294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8295/* end confdefs.h.  */
8296int i;
8297_ACEOF
8298if ac_fn_c_try_compile "$LINENO"; then :
8299  xorg_cv_cc_flag_unused_command_line_argument=yes
8300else
8301  xorg_cv_cc_flag_unused_command_line_argument=no
8302fi
8303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8304fi
8305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8306$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8307	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8308	CFLAGS="$xorg_testset_save_CFLAGS"
8309fi
8310
8311found="no"
8312
8313	if test $found = "no" ; then
8314		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8315			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8316		fi
8317
8318		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8319			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8320		fi
8321
8322		CFLAGS="$CFLAGS -Wimplicit"
8323
8324		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8325$as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8326		cacheid=xorg_cv_cc_flag__Wimplicit
8327		if eval \${$cacheid+:} false; then :
8328  $as_echo_n "(cached) " >&6
8329else
8330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8331/* end confdefs.h.  */
8332int i;
8333int
8334main ()
8335{
8336
8337  ;
8338  return 0;
8339}
8340_ACEOF
8341if ac_fn_c_try_link "$LINENO"; then :
8342  eval $cacheid=yes
8343else
8344  eval $cacheid=no
8345fi
8346rm -f core conftest.err conftest.$ac_objext \
8347    conftest$ac_exeext conftest.$ac_ext
8348fi
8349
8350
8351		CFLAGS="$xorg_testset_save_CFLAGS"
8352
8353		eval supported=\$$cacheid
8354		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8355$as_echo "$supported" >&6; }
8356		if test "$supported" = "yes" ; then
8357			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8358			found="yes"
8359		fi
8360	fi
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376xorg_testset_save_CFLAGS="$CFLAGS"
8377
8378if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8379	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8380	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8381$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8382if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8383  $as_echo_n "(cached) " >&6
8384else
8385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8386/* end confdefs.h.  */
8387int i;
8388_ACEOF
8389if ac_fn_c_try_compile "$LINENO"; then :
8390  xorg_cv_cc_flag_unknown_warning_option=yes
8391else
8392  xorg_cv_cc_flag_unknown_warning_option=no
8393fi
8394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8395fi
8396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8397$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8398	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8399	CFLAGS="$xorg_testset_save_CFLAGS"
8400fi
8401
8402if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8403	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8404		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8405	fi
8406	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8407	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8408$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8409if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8410  $as_echo_n "(cached) " >&6
8411else
8412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413/* end confdefs.h.  */
8414int i;
8415_ACEOF
8416if ac_fn_c_try_compile "$LINENO"; then :
8417  xorg_cv_cc_flag_unused_command_line_argument=yes
8418else
8419  xorg_cv_cc_flag_unused_command_line_argument=no
8420fi
8421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8422fi
8423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8424$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8425	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8426	CFLAGS="$xorg_testset_save_CFLAGS"
8427fi
8428
8429found="no"
8430
8431	if test $found = "no" ; then
8432		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8433			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8434		fi
8435
8436		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8437			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8438		fi
8439
8440		CFLAGS="$CFLAGS -Wnonnull"
8441
8442		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8443$as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8444		cacheid=xorg_cv_cc_flag__Wnonnull
8445		if eval \${$cacheid+:} false; then :
8446  $as_echo_n "(cached) " >&6
8447else
8448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8449/* end confdefs.h.  */
8450int i;
8451int
8452main ()
8453{
8454
8455  ;
8456  return 0;
8457}
8458_ACEOF
8459if ac_fn_c_try_link "$LINENO"; then :
8460  eval $cacheid=yes
8461else
8462  eval $cacheid=no
8463fi
8464rm -f core conftest.err conftest.$ac_objext \
8465    conftest$ac_exeext conftest.$ac_ext
8466fi
8467
8468
8469		CFLAGS="$xorg_testset_save_CFLAGS"
8470
8471		eval supported=\$$cacheid
8472		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8473$as_echo "$supported" >&6; }
8474		if test "$supported" = "yes" ; then
8475			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8476			found="yes"
8477		fi
8478	fi
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494xorg_testset_save_CFLAGS="$CFLAGS"
8495
8496if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8497	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8498	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8499$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8500if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8501  $as_echo_n "(cached) " >&6
8502else
8503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504/* end confdefs.h.  */
8505int i;
8506_ACEOF
8507if ac_fn_c_try_compile "$LINENO"; then :
8508  xorg_cv_cc_flag_unknown_warning_option=yes
8509else
8510  xorg_cv_cc_flag_unknown_warning_option=no
8511fi
8512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8513fi
8514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8515$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8516	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8517	CFLAGS="$xorg_testset_save_CFLAGS"
8518fi
8519
8520if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8521	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8522		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8523	fi
8524	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8525	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8526$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8527if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8528  $as_echo_n "(cached) " >&6
8529else
8530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8531/* end confdefs.h.  */
8532int i;
8533_ACEOF
8534if ac_fn_c_try_compile "$LINENO"; then :
8535  xorg_cv_cc_flag_unused_command_line_argument=yes
8536else
8537  xorg_cv_cc_flag_unused_command_line_argument=no
8538fi
8539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8540fi
8541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8542$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8543	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8544	CFLAGS="$xorg_testset_save_CFLAGS"
8545fi
8546
8547found="no"
8548
8549	if test $found = "no" ; then
8550		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8551			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8552		fi
8553
8554		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8555			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8556		fi
8557
8558		CFLAGS="$CFLAGS -Winit-self"
8559
8560		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8561$as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8562		cacheid=xorg_cv_cc_flag__Winit_self
8563		if eval \${$cacheid+:} false; then :
8564  $as_echo_n "(cached) " >&6
8565else
8566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567/* end confdefs.h.  */
8568int i;
8569int
8570main ()
8571{
8572
8573  ;
8574  return 0;
8575}
8576_ACEOF
8577if ac_fn_c_try_link "$LINENO"; then :
8578  eval $cacheid=yes
8579else
8580  eval $cacheid=no
8581fi
8582rm -f core conftest.err conftest.$ac_objext \
8583    conftest$ac_exeext conftest.$ac_ext
8584fi
8585
8586
8587		CFLAGS="$xorg_testset_save_CFLAGS"
8588
8589		eval supported=\$$cacheid
8590		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8591$as_echo "$supported" >&6; }
8592		if test "$supported" = "yes" ; then
8593			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8594			found="yes"
8595		fi
8596	fi
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612xorg_testset_save_CFLAGS="$CFLAGS"
8613
8614if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8615	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8616	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8617$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8618if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8619  $as_echo_n "(cached) " >&6
8620else
8621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8622/* end confdefs.h.  */
8623int i;
8624_ACEOF
8625if ac_fn_c_try_compile "$LINENO"; then :
8626  xorg_cv_cc_flag_unknown_warning_option=yes
8627else
8628  xorg_cv_cc_flag_unknown_warning_option=no
8629fi
8630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8631fi
8632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8633$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8634	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8635	CFLAGS="$xorg_testset_save_CFLAGS"
8636fi
8637
8638if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8639	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8640		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8641	fi
8642	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8643	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8644$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8645if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8646  $as_echo_n "(cached) " >&6
8647else
8648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8649/* end confdefs.h.  */
8650int i;
8651_ACEOF
8652if ac_fn_c_try_compile "$LINENO"; then :
8653  xorg_cv_cc_flag_unused_command_line_argument=yes
8654else
8655  xorg_cv_cc_flag_unused_command_line_argument=no
8656fi
8657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8658fi
8659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8660$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8661	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8662	CFLAGS="$xorg_testset_save_CFLAGS"
8663fi
8664
8665found="no"
8666
8667	if test $found = "no" ; then
8668		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8669			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8670		fi
8671
8672		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8673			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8674		fi
8675
8676		CFLAGS="$CFLAGS -Wmain"
8677
8678		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
8679$as_echo_n "checking if $CC supports-Wmain... " >&6; }
8680		cacheid=xorg_cv_cc_flag__Wmain
8681		if eval \${$cacheid+:} false; then :
8682  $as_echo_n "(cached) " >&6
8683else
8684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8685/* end confdefs.h.  */
8686int i;
8687int
8688main ()
8689{
8690
8691  ;
8692  return 0;
8693}
8694_ACEOF
8695if ac_fn_c_try_link "$LINENO"; then :
8696  eval $cacheid=yes
8697else
8698  eval $cacheid=no
8699fi
8700rm -f core conftest.err conftest.$ac_objext \
8701    conftest$ac_exeext conftest.$ac_ext
8702fi
8703
8704
8705		CFLAGS="$xorg_testset_save_CFLAGS"
8706
8707		eval supported=\$$cacheid
8708		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8709$as_echo "$supported" >&6; }
8710		if test "$supported" = "yes" ; then
8711			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8712			found="yes"
8713		fi
8714	fi
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730xorg_testset_save_CFLAGS="$CFLAGS"
8731
8732if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8733	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8734	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8735$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8736if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8737  $as_echo_n "(cached) " >&6
8738else
8739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8740/* end confdefs.h.  */
8741int i;
8742_ACEOF
8743if ac_fn_c_try_compile "$LINENO"; then :
8744  xorg_cv_cc_flag_unknown_warning_option=yes
8745else
8746  xorg_cv_cc_flag_unknown_warning_option=no
8747fi
8748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8749fi
8750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8751$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8752	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8753	CFLAGS="$xorg_testset_save_CFLAGS"
8754fi
8755
8756if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8757	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8758		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8759	fi
8760	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8761	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8762$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8763if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8764  $as_echo_n "(cached) " >&6
8765else
8766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8767/* end confdefs.h.  */
8768int i;
8769_ACEOF
8770if ac_fn_c_try_compile "$LINENO"; then :
8771  xorg_cv_cc_flag_unused_command_line_argument=yes
8772else
8773  xorg_cv_cc_flag_unused_command_line_argument=no
8774fi
8775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8776fi
8777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8778$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8779	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8780	CFLAGS="$xorg_testset_save_CFLAGS"
8781fi
8782
8783found="no"
8784
8785	if test $found = "no" ; then
8786		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8787			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8788		fi
8789
8790		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8791			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8792		fi
8793
8794		CFLAGS="$CFLAGS -Wmissing-braces"
8795
8796		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
8797$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
8798		cacheid=xorg_cv_cc_flag__Wmissing_braces
8799		if eval \${$cacheid+:} false; then :
8800  $as_echo_n "(cached) " >&6
8801else
8802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8803/* end confdefs.h.  */
8804int i;
8805int
8806main ()
8807{
8808
8809  ;
8810  return 0;
8811}
8812_ACEOF
8813if ac_fn_c_try_link "$LINENO"; then :
8814  eval $cacheid=yes
8815else
8816  eval $cacheid=no
8817fi
8818rm -f core conftest.err conftest.$ac_objext \
8819    conftest$ac_exeext conftest.$ac_ext
8820fi
8821
8822
8823		CFLAGS="$xorg_testset_save_CFLAGS"
8824
8825		eval supported=\$$cacheid
8826		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8827$as_echo "$supported" >&6; }
8828		if test "$supported" = "yes" ; then
8829			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8830			found="yes"
8831		fi
8832	fi
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848xorg_testset_save_CFLAGS="$CFLAGS"
8849
8850if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8851	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8852	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8853$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8854if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8855  $as_echo_n "(cached) " >&6
8856else
8857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8858/* end confdefs.h.  */
8859int i;
8860_ACEOF
8861if ac_fn_c_try_compile "$LINENO"; then :
8862  xorg_cv_cc_flag_unknown_warning_option=yes
8863else
8864  xorg_cv_cc_flag_unknown_warning_option=no
8865fi
8866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8867fi
8868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8869$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8870	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8871	CFLAGS="$xorg_testset_save_CFLAGS"
8872fi
8873
8874if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8875	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8876		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8877	fi
8878	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8879	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8880$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8881if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8882  $as_echo_n "(cached) " >&6
8883else
8884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8885/* end confdefs.h.  */
8886int i;
8887_ACEOF
8888if ac_fn_c_try_compile "$LINENO"; then :
8889  xorg_cv_cc_flag_unused_command_line_argument=yes
8890else
8891  xorg_cv_cc_flag_unused_command_line_argument=no
8892fi
8893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8894fi
8895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8896$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8897	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8898	CFLAGS="$xorg_testset_save_CFLAGS"
8899fi
8900
8901found="no"
8902
8903	if test $found = "no" ; then
8904		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8905			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8906		fi
8907
8908		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8909			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8910		fi
8911
8912		CFLAGS="$CFLAGS -Wsequence-point"
8913
8914		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
8915$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
8916		cacheid=xorg_cv_cc_flag__Wsequence_point
8917		if eval \${$cacheid+:} false; then :
8918  $as_echo_n "(cached) " >&6
8919else
8920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921/* end confdefs.h.  */
8922int i;
8923int
8924main ()
8925{
8926
8927  ;
8928  return 0;
8929}
8930_ACEOF
8931if ac_fn_c_try_link "$LINENO"; then :
8932  eval $cacheid=yes
8933else
8934  eval $cacheid=no
8935fi
8936rm -f core conftest.err conftest.$ac_objext \
8937    conftest$ac_exeext conftest.$ac_ext
8938fi
8939
8940
8941		CFLAGS="$xorg_testset_save_CFLAGS"
8942
8943		eval supported=\$$cacheid
8944		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8945$as_echo "$supported" >&6; }
8946		if test "$supported" = "yes" ; then
8947			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8948			found="yes"
8949		fi
8950	fi
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966xorg_testset_save_CFLAGS="$CFLAGS"
8967
8968if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8969	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8970	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8971$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8972if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8973  $as_echo_n "(cached) " >&6
8974else
8975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976/* end confdefs.h.  */
8977int i;
8978_ACEOF
8979if ac_fn_c_try_compile "$LINENO"; then :
8980  xorg_cv_cc_flag_unknown_warning_option=yes
8981else
8982  xorg_cv_cc_flag_unknown_warning_option=no
8983fi
8984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8985fi
8986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8987$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8988	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8989	CFLAGS="$xorg_testset_save_CFLAGS"
8990fi
8991
8992if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8993	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8994		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8995	fi
8996	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8997	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8998$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8999if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9000  $as_echo_n "(cached) " >&6
9001else
9002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003/* end confdefs.h.  */
9004int i;
9005_ACEOF
9006if ac_fn_c_try_compile "$LINENO"; then :
9007  xorg_cv_cc_flag_unused_command_line_argument=yes
9008else
9009  xorg_cv_cc_flag_unused_command_line_argument=no
9010fi
9011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9012fi
9013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9014$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9015	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9016	CFLAGS="$xorg_testset_save_CFLAGS"
9017fi
9018
9019found="no"
9020
9021	if test $found = "no" ; then
9022		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9023			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9024		fi
9025
9026		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9027			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9028		fi
9029
9030		CFLAGS="$CFLAGS -Wreturn-type"
9031
9032		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9033$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9034		cacheid=xorg_cv_cc_flag__Wreturn_type
9035		if eval \${$cacheid+:} false; then :
9036  $as_echo_n "(cached) " >&6
9037else
9038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039/* end confdefs.h.  */
9040int i;
9041int
9042main ()
9043{
9044
9045  ;
9046  return 0;
9047}
9048_ACEOF
9049if ac_fn_c_try_link "$LINENO"; then :
9050  eval $cacheid=yes
9051else
9052  eval $cacheid=no
9053fi
9054rm -f core conftest.err conftest.$ac_objext \
9055    conftest$ac_exeext conftest.$ac_ext
9056fi
9057
9058
9059		CFLAGS="$xorg_testset_save_CFLAGS"
9060
9061		eval supported=\$$cacheid
9062		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9063$as_echo "$supported" >&6; }
9064		if test "$supported" = "yes" ; then
9065			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9066			found="yes"
9067		fi
9068	fi
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084xorg_testset_save_CFLAGS="$CFLAGS"
9085
9086if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9087	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9088	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9089$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9090if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9091  $as_echo_n "(cached) " >&6
9092else
9093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9094/* end confdefs.h.  */
9095int i;
9096_ACEOF
9097if ac_fn_c_try_compile "$LINENO"; then :
9098  xorg_cv_cc_flag_unknown_warning_option=yes
9099else
9100  xorg_cv_cc_flag_unknown_warning_option=no
9101fi
9102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9103fi
9104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9105$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9106	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9107	CFLAGS="$xorg_testset_save_CFLAGS"
9108fi
9109
9110if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9111	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9112		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9113	fi
9114	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9115	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9116$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9117if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9118  $as_echo_n "(cached) " >&6
9119else
9120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9121/* end confdefs.h.  */
9122int i;
9123_ACEOF
9124if ac_fn_c_try_compile "$LINENO"; then :
9125  xorg_cv_cc_flag_unused_command_line_argument=yes
9126else
9127  xorg_cv_cc_flag_unused_command_line_argument=no
9128fi
9129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9130fi
9131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9132$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9133	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9134	CFLAGS="$xorg_testset_save_CFLAGS"
9135fi
9136
9137found="no"
9138
9139	if test $found = "no" ; then
9140		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9141			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9142		fi
9143
9144		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9145			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9146		fi
9147
9148		CFLAGS="$CFLAGS -Wtrigraphs"
9149
9150		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9151$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9152		cacheid=xorg_cv_cc_flag__Wtrigraphs
9153		if eval \${$cacheid+:} false; then :
9154  $as_echo_n "(cached) " >&6
9155else
9156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9157/* end confdefs.h.  */
9158int i;
9159int
9160main ()
9161{
9162
9163  ;
9164  return 0;
9165}
9166_ACEOF
9167if ac_fn_c_try_link "$LINENO"; then :
9168  eval $cacheid=yes
9169else
9170  eval $cacheid=no
9171fi
9172rm -f core conftest.err conftest.$ac_objext \
9173    conftest$ac_exeext conftest.$ac_ext
9174fi
9175
9176
9177		CFLAGS="$xorg_testset_save_CFLAGS"
9178
9179		eval supported=\$$cacheid
9180		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9181$as_echo "$supported" >&6; }
9182		if test "$supported" = "yes" ; then
9183			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9184			found="yes"
9185		fi
9186	fi
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202xorg_testset_save_CFLAGS="$CFLAGS"
9203
9204if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9205	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9206	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9207$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9208if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9209  $as_echo_n "(cached) " >&6
9210else
9211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9212/* end confdefs.h.  */
9213int i;
9214_ACEOF
9215if ac_fn_c_try_compile "$LINENO"; then :
9216  xorg_cv_cc_flag_unknown_warning_option=yes
9217else
9218  xorg_cv_cc_flag_unknown_warning_option=no
9219fi
9220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9221fi
9222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9223$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9224	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9225	CFLAGS="$xorg_testset_save_CFLAGS"
9226fi
9227
9228if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9229	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9230		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9231	fi
9232	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9233	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9234$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9235if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9236  $as_echo_n "(cached) " >&6
9237else
9238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9239/* end confdefs.h.  */
9240int i;
9241_ACEOF
9242if ac_fn_c_try_compile "$LINENO"; then :
9243  xorg_cv_cc_flag_unused_command_line_argument=yes
9244else
9245  xorg_cv_cc_flag_unused_command_line_argument=no
9246fi
9247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9248fi
9249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9250$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9251	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9252	CFLAGS="$xorg_testset_save_CFLAGS"
9253fi
9254
9255found="no"
9256
9257	if test $found = "no" ; then
9258		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9259			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9260		fi
9261
9262		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9263			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9264		fi
9265
9266		CFLAGS="$CFLAGS -Warray-bounds"
9267
9268		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9269$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9270		cacheid=xorg_cv_cc_flag__Warray_bounds
9271		if eval \${$cacheid+:} false; then :
9272  $as_echo_n "(cached) " >&6
9273else
9274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9275/* end confdefs.h.  */
9276int i;
9277int
9278main ()
9279{
9280
9281  ;
9282  return 0;
9283}
9284_ACEOF
9285if ac_fn_c_try_link "$LINENO"; then :
9286  eval $cacheid=yes
9287else
9288  eval $cacheid=no
9289fi
9290rm -f core conftest.err conftest.$ac_objext \
9291    conftest$ac_exeext conftest.$ac_ext
9292fi
9293
9294
9295		CFLAGS="$xorg_testset_save_CFLAGS"
9296
9297		eval supported=\$$cacheid
9298		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9299$as_echo "$supported" >&6; }
9300		if test "$supported" = "yes" ; then
9301			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9302			found="yes"
9303		fi
9304	fi
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320xorg_testset_save_CFLAGS="$CFLAGS"
9321
9322if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9323	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9324	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9325$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9326if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9327  $as_echo_n "(cached) " >&6
9328else
9329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9330/* end confdefs.h.  */
9331int i;
9332_ACEOF
9333if ac_fn_c_try_compile "$LINENO"; then :
9334  xorg_cv_cc_flag_unknown_warning_option=yes
9335else
9336  xorg_cv_cc_flag_unknown_warning_option=no
9337fi
9338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9339fi
9340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9341$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9342	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9343	CFLAGS="$xorg_testset_save_CFLAGS"
9344fi
9345
9346if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9347	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9348		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9349	fi
9350	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9351	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9352$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9353if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9354  $as_echo_n "(cached) " >&6
9355else
9356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9357/* end confdefs.h.  */
9358int i;
9359_ACEOF
9360if ac_fn_c_try_compile "$LINENO"; then :
9361  xorg_cv_cc_flag_unused_command_line_argument=yes
9362else
9363  xorg_cv_cc_flag_unused_command_line_argument=no
9364fi
9365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9366fi
9367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9368$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9369	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9370	CFLAGS="$xorg_testset_save_CFLAGS"
9371fi
9372
9373found="no"
9374
9375	if test $found = "no" ; then
9376		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9377			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9378		fi
9379
9380		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9381			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9382		fi
9383
9384		CFLAGS="$CFLAGS -Wwrite-strings"
9385
9386		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9387$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9388		cacheid=xorg_cv_cc_flag__Wwrite_strings
9389		if eval \${$cacheid+:} false; then :
9390  $as_echo_n "(cached) " >&6
9391else
9392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393/* end confdefs.h.  */
9394int i;
9395int
9396main ()
9397{
9398
9399  ;
9400  return 0;
9401}
9402_ACEOF
9403if ac_fn_c_try_link "$LINENO"; then :
9404  eval $cacheid=yes
9405else
9406  eval $cacheid=no
9407fi
9408rm -f core conftest.err conftest.$ac_objext \
9409    conftest$ac_exeext conftest.$ac_ext
9410fi
9411
9412
9413		CFLAGS="$xorg_testset_save_CFLAGS"
9414
9415		eval supported=\$$cacheid
9416		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9417$as_echo "$supported" >&6; }
9418		if test "$supported" = "yes" ; then
9419			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9420			found="yes"
9421		fi
9422	fi
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438xorg_testset_save_CFLAGS="$CFLAGS"
9439
9440if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9441	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9442	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9443$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9444if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9445  $as_echo_n "(cached) " >&6
9446else
9447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9448/* end confdefs.h.  */
9449int i;
9450_ACEOF
9451if ac_fn_c_try_compile "$LINENO"; then :
9452  xorg_cv_cc_flag_unknown_warning_option=yes
9453else
9454  xorg_cv_cc_flag_unknown_warning_option=no
9455fi
9456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9457fi
9458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9459$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9460	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9461	CFLAGS="$xorg_testset_save_CFLAGS"
9462fi
9463
9464if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9465	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9466		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9467	fi
9468	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9469	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9470$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9471if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9472  $as_echo_n "(cached) " >&6
9473else
9474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475/* end confdefs.h.  */
9476int i;
9477_ACEOF
9478if ac_fn_c_try_compile "$LINENO"; then :
9479  xorg_cv_cc_flag_unused_command_line_argument=yes
9480else
9481  xorg_cv_cc_flag_unused_command_line_argument=no
9482fi
9483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9484fi
9485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9486$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9487	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9488	CFLAGS="$xorg_testset_save_CFLAGS"
9489fi
9490
9491found="no"
9492
9493	if test $found = "no" ; then
9494		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9495			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9496		fi
9497
9498		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9499			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9500		fi
9501
9502		CFLAGS="$CFLAGS -Waddress"
9503
9504		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9505$as_echo_n "checking if $CC supports-Waddress... " >&6; }
9506		cacheid=xorg_cv_cc_flag__Waddress
9507		if eval \${$cacheid+:} false; then :
9508  $as_echo_n "(cached) " >&6
9509else
9510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9511/* end confdefs.h.  */
9512int i;
9513int
9514main ()
9515{
9516
9517  ;
9518  return 0;
9519}
9520_ACEOF
9521if ac_fn_c_try_link "$LINENO"; then :
9522  eval $cacheid=yes
9523else
9524  eval $cacheid=no
9525fi
9526rm -f core conftest.err conftest.$ac_objext \
9527    conftest$ac_exeext conftest.$ac_ext
9528fi
9529
9530
9531		CFLAGS="$xorg_testset_save_CFLAGS"
9532
9533		eval supported=\$$cacheid
9534		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9535$as_echo "$supported" >&6; }
9536		if test "$supported" = "yes" ; then
9537			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9538			found="yes"
9539		fi
9540	fi
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556xorg_testset_save_CFLAGS="$CFLAGS"
9557
9558if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9559	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9560	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9561$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9562if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9563  $as_echo_n "(cached) " >&6
9564else
9565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9566/* end confdefs.h.  */
9567int i;
9568_ACEOF
9569if ac_fn_c_try_compile "$LINENO"; then :
9570  xorg_cv_cc_flag_unknown_warning_option=yes
9571else
9572  xorg_cv_cc_flag_unknown_warning_option=no
9573fi
9574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9575fi
9576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9577$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9578	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9579	CFLAGS="$xorg_testset_save_CFLAGS"
9580fi
9581
9582if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9583	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9584		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9585	fi
9586	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9587	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9588$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9589if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9590  $as_echo_n "(cached) " >&6
9591else
9592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593/* end confdefs.h.  */
9594int i;
9595_ACEOF
9596if ac_fn_c_try_compile "$LINENO"; then :
9597  xorg_cv_cc_flag_unused_command_line_argument=yes
9598else
9599  xorg_cv_cc_flag_unused_command_line_argument=no
9600fi
9601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9602fi
9603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9604$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9605	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9606	CFLAGS="$xorg_testset_save_CFLAGS"
9607fi
9608
9609found="no"
9610
9611	if test $found = "no" ; then
9612		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9613			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9614		fi
9615
9616		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9617			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9618		fi
9619
9620		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9621
9622		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
9623$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
9624		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9625		if eval \${$cacheid+:} false; then :
9626  $as_echo_n "(cached) " >&6
9627else
9628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9629/* end confdefs.h.  */
9630int i;
9631int
9632main ()
9633{
9634
9635  ;
9636  return 0;
9637}
9638_ACEOF
9639if ac_fn_c_try_link "$LINENO"; then :
9640  eval $cacheid=yes
9641else
9642  eval $cacheid=no
9643fi
9644rm -f core conftest.err conftest.$ac_objext \
9645    conftest$ac_exeext conftest.$ac_ext
9646fi
9647
9648
9649		CFLAGS="$xorg_testset_save_CFLAGS"
9650
9651		eval supported=\$$cacheid
9652		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9653$as_echo "$supported" >&6; }
9654		if test "$supported" = "yes" ; then
9655			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9656			found="yes"
9657		fi
9658	fi
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674xorg_testset_save_CFLAGS="$CFLAGS"
9675
9676if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9677	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9678	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9679$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9680if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9681  $as_echo_n "(cached) " >&6
9682else
9683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9684/* end confdefs.h.  */
9685int i;
9686_ACEOF
9687if ac_fn_c_try_compile "$LINENO"; then :
9688  xorg_cv_cc_flag_unknown_warning_option=yes
9689else
9690  xorg_cv_cc_flag_unknown_warning_option=no
9691fi
9692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9693fi
9694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9695$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9696	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9697	CFLAGS="$xorg_testset_save_CFLAGS"
9698fi
9699
9700if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9701	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9702		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9703	fi
9704	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9705	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9706$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9707if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9708  $as_echo_n "(cached) " >&6
9709else
9710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9711/* end confdefs.h.  */
9712int i;
9713_ACEOF
9714if ac_fn_c_try_compile "$LINENO"; then :
9715  xorg_cv_cc_flag_unused_command_line_argument=yes
9716else
9717  xorg_cv_cc_flag_unused_command_line_argument=no
9718fi
9719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9720fi
9721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9722$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9723	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9724	CFLAGS="$xorg_testset_save_CFLAGS"
9725fi
9726
9727found="no"
9728
9729	if test $found = "no" ; then
9730		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9731			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9732		fi
9733
9734		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9735			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9736		fi
9737
9738		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9739
9740		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
9741$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
9742		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9743		if eval \${$cacheid+:} false; then :
9744  $as_echo_n "(cached) " >&6
9745else
9746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9747/* end confdefs.h.  */
9748int i;
9749int
9750main ()
9751{
9752
9753  ;
9754  return 0;
9755}
9756_ACEOF
9757if ac_fn_c_try_link "$LINENO"; then :
9758  eval $cacheid=yes
9759else
9760  eval $cacheid=no
9761fi
9762rm -f core conftest.err conftest.$ac_objext \
9763    conftest$ac_exeext conftest.$ac_ext
9764fi
9765
9766
9767		CFLAGS="$xorg_testset_save_CFLAGS"
9768
9769		eval supported=\$$cacheid
9770		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9771$as_echo "$supported" >&6; }
9772		if test "$supported" = "yes" ; then
9773			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9774			found="yes"
9775		fi
9776	fi
9777
9778
9779fi
9780
9781
9782
9783
9784
9785
9786
9787		CWARNFLAGS="$BASE_CFLAGS"
9788		if  test "x$GCC" = xyes ; then
9789		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9790		fi
9791
9792
9793
9794
9795
9796
9797
9798
9799# Check whether --enable-strict-compilation was given.
9800if test "${enable_strict_compilation+set}" = set; then :
9801  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9802else
9803  STRICT_COMPILE=no
9804fi
9805
9806
9807
9808
9809
9810
9811STRICT_CFLAGS=""
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825xorg_testset_save_CFLAGS="$CFLAGS"
9826
9827if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9828	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9829	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9830$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9831if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9832  $as_echo_n "(cached) " >&6
9833else
9834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835/* end confdefs.h.  */
9836int i;
9837_ACEOF
9838if ac_fn_c_try_compile "$LINENO"; then :
9839  xorg_cv_cc_flag_unknown_warning_option=yes
9840else
9841  xorg_cv_cc_flag_unknown_warning_option=no
9842fi
9843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9844fi
9845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9846$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9847	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9848	CFLAGS="$xorg_testset_save_CFLAGS"
9849fi
9850
9851if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9852	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9853		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9854	fi
9855	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9856	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9857$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9858if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9859  $as_echo_n "(cached) " >&6
9860else
9861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9862/* end confdefs.h.  */
9863int i;
9864_ACEOF
9865if ac_fn_c_try_compile "$LINENO"; then :
9866  xorg_cv_cc_flag_unused_command_line_argument=yes
9867else
9868  xorg_cv_cc_flag_unused_command_line_argument=no
9869fi
9870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9871fi
9872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9873$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9874	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9875	CFLAGS="$xorg_testset_save_CFLAGS"
9876fi
9877
9878found="no"
9879
9880	if test $found = "no" ; then
9881		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9882			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9883		fi
9884
9885		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9886			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9887		fi
9888
9889		CFLAGS="$CFLAGS -pedantic"
9890
9891		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
9892$as_echo_n "checking if $CC supports-pedantic... " >&6; }
9893		cacheid=xorg_cv_cc_flag__pedantic
9894		if eval \${$cacheid+:} false; then :
9895  $as_echo_n "(cached) " >&6
9896else
9897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898/* end confdefs.h.  */
9899int i;
9900int
9901main ()
9902{
9903
9904  ;
9905  return 0;
9906}
9907_ACEOF
9908if ac_fn_c_try_link "$LINENO"; then :
9909  eval $cacheid=yes
9910else
9911  eval $cacheid=no
9912fi
9913rm -f core conftest.err conftest.$ac_objext \
9914    conftest$ac_exeext conftest.$ac_ext
9915fi
9916
9917
9918		CFLAGS="$xorg_testset_save_CFLAGS"
9919
9920		eval supported=\$$cacheid
9921		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9922$as_echo "$supported" >&6; }
9923		if test "$supported" = "yes" ; then
9924			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9925			found="yes"
9926		fi
9927	fi
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943xorg_testset_save_CFLAGS="$CFLAGS"
9944
9945if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9946	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9947	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9948$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9949if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9950  $as_echo_n "(cached) " >&6
9951else
9952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9953/* end confdefs.h.  */
9954int i;
9955_ACEOF
9956if ac_fn_c_try_compile "$LINENO"; then :
9957  xorg_cv_cc_flag_unknown_warning_option=yes
9958else
9959  xorg_cv_cc_flag_unknown_warning_option=no
9960fi
9961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9962fi
9963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9964$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9965	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9966	CFLAGS="$xorg_testset_save_CFLAGS"
9967fi
9968
9969if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9970	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9971		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9972	fi
9973	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9974	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9975$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9976if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9977  $as_echo_n "(cached) " >&6
9978else
9979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9980/* end confdefs.h.  */
9981int i;
9982_ACEOF
9983if ac_fn_c_try_compile "$LINENO"; then :
9984  xorg_cv_cc_flag_unused_command_line_argument=yes
9985else
9986  xorg_cv_cc_flag_unused_command_line_argument=no
9987fi
9988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9989fi
9990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9991$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9992	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9993	CFLAGS="$xorg_testset_save_CFLAGS"
9994fi
9995
9996found="no"
9997
9998	if test $found = "no" ; then
9999		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10000			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10001		fi
10002
10003		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10004			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10005		fi
10006
10007		CFLAGS="$CFLAGS -Werror"
10008
10009		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
10010$as_echo_n "checking if $CC supports-Werror... " >&6; }
10011		cacheid=xorg_cv_cc_flag__Werror
10012		if eval \${$cacheid+:} false; then :
10013  $as_echo_n "(cached) " >&6
10014else
10015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016/* end confdefs.h.  */
10017int i;
10018int
10019main ()
10020{
10021
10022  ;
10023  return 0;
10024}
10025_ACEOF
10026if ac_fn_c_try_link "$LINENO"; then :
10027  eval $cacheid=yes
10028else
10029  eval $cacheid=no
10030fi
10031rm -f core conftest.err conftest.$ac_objext \
10032    conftest$ac_exeext conftest.$ac_ext
10033fi
10034
10035
10036		CFLAGS="$xorg_testset_save_CFLAGS"
10037
10038		eval supported=\$$cacheid
10039		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10040$as_echo "$supported" >&6; }
10041		if test "$supported" = "yes" ; then
10042			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10043			found="yes"
10044		fi
10045	fi
10046
10047	if test $found = "no" ; then
10048		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10049			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10050		fi
10051
10052		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10053			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10054		fi
10055
10056		CFLAGS="$CFLAGS -errwarn"
10057
10058		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10059$as_echo_n "checking if $CC supports-errwarn... " >&6; }
10060		cacheid=xorg_cv_cc_flag__errwarn
10061		if eval \${$cacheid+:} false; then :
10062  $as_echo_n "(cached) " >&6
10063else
10064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10065/* end confdefs.h.  */
10066int i;
10067int
10068main ()
10069{
10070
10071  ;
10072  return 0;
10073}
10074_ACEOF
10075if ac_fn_c_try_link "$LINENO"; then :
10076  eval $cacheid=yes
10077else
10078  eval $cacheid=no
10079fi
10080rm -f core conftest.err conftest.$ac_objext \
10081    conftest$ac_exeext conftest.$ac_ext
10082fi
10083
10084
10085		CFLAGS="$xorg_testset_save_CFLAGS"
10086
10087		eval supported=\$$cacheid
10088		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10089$as_echo "$supported" >&6; }
10090		if test "$supported" = "yes" ; then
10091			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10092			found="yes"
10093		fi
10094	fi
10095
10096
10097
10098# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10099# activate it with -Werror, so we add it here explicitly.
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113xorg_testset_save_CFLAGS="$CFLAGS"
10114
10115if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10116	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10117	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10118$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10119if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10120  $as_echo_n "(cached) " >&6
10121else
10122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123/* end confdefs.h.  */
10124int i;
10125_ACEOF
10126if ac_fn_c_try_compile "$LINENO"; then :
10127  xorg_cv_cc_flag_unknown_warning_option=yes
10128else
10129  xorg_cv_cc_flag_unknown_warning_option=no
10130fi
10131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10132fi
10133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10134$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10135	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10136	CFLAGS="$xorg_testset_save_CFLAGS"
10137fi
10138
10139if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10140	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10141		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10142	fi
10143	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10144	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10145$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10146if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10147  $as_echo_n "(cached) " >&6
10148else
10149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10150/* end confdefs.h.  */
10151int i;
10152_ACEOF
10153if ac_fn_c_try_compile "$LINENO"; then :
10154  xorg_cv_cc_flag_unused_command_line_argument=yes
10155else
10156  xorg_cv_cc_flag_unused_command_line_argument=no
10157fi
10158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10159fi
10160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10161$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10162	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10163	CFLAGS="$xorg_testset_save_CFLAGS"
10164fi
10165
10166found="no"
10167
10168	if test $found = "no" ; then
10169		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10170			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10171		fi
10172
10173		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10174			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10175		fi
10176
10177		CFLAGS="$CFLAGS -Werror=attributes"
10178
10179		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10180$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10181		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10182		if eval \${$cacheid+:} false; then :
10183  $as_echo_n "(cached) " >&6
10184else
10185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186/* end confdefs.h.  */
10187int i;
10188int
10189main ()
10190{
10191
10192  ;
10193  return 0;
10194}
10195_ACEOF
10196if ac_fn_c_try_link "$LINENO"; then :
10197  eval $cacheid=yes
10198else
10199  eval $cacheid=no
10200fi
10201rm -f core conftest.err conftest.$ac_objext \
10202    conftest$ac_exeext conftest.$ac_ext
10203fi
10204
10205
10206		CFLAGS="$xorg_testset_save_CFLAGS"
10207
10208		eval supported=\$$cacheid
10209		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10210$as_echo "$supported" >&6; }
10211		if test "$supported" = "yes" ; then
10212			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10213			found="yes"
10214		fi
10215	fi
10216
10217
10218
10219if test "x$STRICT_COMPILE" = "xyes"; then
10220    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10221    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10222fi
10223
10224
10225
10226
10227
10228
10229cat >>confdefs.h <<_ACEOF
10230#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10231_ACEOF
10232
10233	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10234	if test "x$PVM" = "x"; then
10235		PVM="0"
10236	fi
10237
10238cat >>confdefs.h <<_ACEOF
10239#define PACKAGE_VERSION_MINOR $PVM
10240_ACEOF
10241
10242	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10243	if test "x$PVP" = "x"; then
10244		PVP="0"
10245	fi
10246
10247cat >>confdefs.h <<_ACEOF
10248#define PACKAGE_VERSION_PATCHLEVEL $PVP
10249_ACEOF
10250
10251
10252
10253CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10254mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10255|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10256echo 'git directory not found: installing possibly empty changelog.' >&2)"
10257
10258
10259
10260
10261macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10262INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10263mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10264|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10265echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10266
10267
10268
10269
10270
10271
10272if test x$APP_MAN_SUFFIX = x    ; then
10273    APP_MAN_SUFFIX=1
10274fi
10275if test x$APP_MAN_DIR = x    ; then
10276    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10277fi
10278
10279if test x$LIB_MAN_SUFFIX = x    ; then
10280    LIB_MAN_SUFFIX=3
10281fi
10282if test x$LIB_MAN_DIR = x    ; then
10283    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10284fi
10285
10286if test x$FILE_MAN_SUFFIX = x    ; then
10287    case $host_os in
10288	solaris*)	FILE_MAN_SUFFIX=4  ;;
10289	*)		FILE_MAN_SUFFIX=5  ;;
10290    esac
10291fi
10292if test x$FILE_MAN_DIR = x    ; then
10293    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10294fi
10295
10296if test x$MISC_MAN_SUFFIX = x    ; then
10297    case $host_os in
10298	solaris*)	MISC_MAN_SUFFIX=5  ;;
10299	*)		MISC_MAN_SUFFIX=7  ;;
10300    esac
10301fi
10302if test x$MISC_MAN_DIR = x    ; then
10303    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10304fi
10305
10306if test x$DRIVER_MAN_SUFFIX = x    ; then
10307    case $host_os in
10308	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10309	*)		DRIVER_MAN_SUFFIX=4  ;;
10310    esac
10311fi
10312if test x$DRIVER_MAN_DIR = x    ; then
10313    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10314fi
10315
10316if test x$ADMIN_MAN_SUFFIX = x    ; then
10317    case $host_os in
10318	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10319	*)		ADMIN_MAN_SUFFIX=8  ;;
10320    esac
10321fi
10322if test x$ADMIN_MAN_DIR = x    ; then
10323    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10324fi
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340XORG_MAN_PAGE="X Version 11"
10341
10342MAN_SUBSTS="\
10343	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10344	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10345	-e 's|__xservername__|Xorg|g' \
10346	-e 's|__xconfigfile__|xorg.conf|g' \
10347	-e 's|__projectroot__|\$(prefix)|g' \
10348	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10349	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10350	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10351	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10352	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10353	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10354	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10355
10356
10357
10358# Check whether --enable-silent-rules was given.
10359if test "${enable_silent_rules+set}" = set; then :
10360  enableval=$enable_silent_rules;
10361fi
10362
10363case $enable_silent_rules in
10364yes) AM_DEFAULT_VERBOSITY=0;;
10365no)  AM_DEFAULT_VERBOSITY=1;;
10366*)   AM_DEFAULT_VERBOSITY=0;;
10367esac
10368AM_BACKSLASH='\'
10369
10370
10371
10372
10373ac_config_headers="$ac_config_headers config.h"
10374
10375
10376# Base set of required pkg-config packages
10377XLOGO_DEPS="sm xaw7 xmu xt >= 1.0 xext x11"
10378
10379# Use render & xft2 to draw logo?
10380
10381
10382# Check whether --with-render was given.
10383if test "${with_render+set}" = set; then :
10384  withval=$with_render; USE_RENDER="$withval"
10385else
10386  USE_RENDER="try"
10387fi
10388
10389
10390if test "x$USE_RENDER" = "xtry" ; then
10391	if test -n "$PKG_CONFIG" && \
10392    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender xft\""; } >&5
10393  ($PKG_CONFIG --exists --print-errors "xrender xft") 2>&5
10394  ac_status=$?
10395  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10396  test $ac_status = 0; }; then
10397  USE_RENDER="yes"
10398else
10399  USE_RENDER="no"
10400fi
10401fi
10402
10403if test "x$USE_RENDER" = "xyes" ; then
10404	XLOGO_DEPS="xft xrender $XLOGO_DEPS"
10405
10406
10407$as_echo "#define XRENDER 1" >>confdefs.h
10408
10409fi
10410 if test "x$USE_RENDER" = "xyes"; then
10411  USE_RENDER_TRUE=
10412  USE_RENDER_FALSE='#'
10413else
10414  USE_RENDER_TRUE='#'
10415  USE_RENDER_FALSE=
10416fi
10417
10418
10419
10420pkg_failed=no
10421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLOGO" >&5
10422$as_echo_n "checking for XLOGO... " >&6; }
10423
10424if test -n "$XLOGO_CFLAGS"; then
10425    pkg_cv_XLOGO_CFLAGS="$XLOGO_CFLAGS"
10426 elif test -n "$PKG_CONFIG"; then
10427    if test -n "$PKG_CONFIG" && \
10428    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XLOGO_DEPS\""; } >&5
10429  ($PKG_CONFIG --exists --print-errors "$XLOGO_DEPS") 2>&5
10430  ac_status=$?
10431  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10432  test $ac_status = 0; }; then
10433  pkg_cv_XLOGO_CFLAGS=`$PKG_CONFIG --cflags "$XLOGO_DEPS" 2>/dev/null`
10434else
10435  pkg_failed=yes
10436fi
10437 else
10438    pkg_failed=untried
10439fi
10440if test -n "$XLOGO_LIBS"; then
10441    pkg_cv_XLOGO_LIBS="$XLOGO_LIBS"
10442 elif test -n "$PKG_CONFIG"; then
10443    if test -n "$PKG_CONFIG" && \
10444    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XLOGO_DEPS\""; } >&5
10445  ($PKG_CONFIG --exists --print-errors "$XLOGO_DEPS") 2>&5
10446  ac_status=$?
10447  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10448  test $ac_status = 0; }; then
10449  pkg_cv_XLOGO_LIBS=`$PKG_CONFIG --libs "$XLOGO_DEPS" 2>/dev/null`
10450else
10451  pkg_failed=yes
10452fi
10453 else
10454    pkg_failed=untried
10455fi
10456
10457
10458
10459if test $pkg_failed = yes; then
10460
10461if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10462        _pkg_short_errors_supported=yes
10463else
10464        _pkg_short_errors_supported=no
10465fi
10466        if test $_pkg_short_errors_supported = yes; then
10467	        XLOGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$XLOGO_DEPS" 2>&1`
10468        else
10469	        XLOGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "$XLOGO_DEPS" 2>&1`
10470        fi
10471	# Put the nasty error message in config.log where it belongs
10472	echo "$XLOGO_PKG_ERRORS" >&5
10473
10474	as_fn_error $? "Package requirements ($XLOGO_DEPS) were not met:
10475
10476$XLOGO_PKG_ERRORS
10477
10478Consider adjusting the PKG_CONFIG_PATH environment variable if you
10479installed software in a non-standard prefix.
10480
10481Alternatively, you may set the environment variables XLOGO_CFLAGS
10482and XLOGO_LIBS to avoid the need to call pkg-config.
10483See the pkg-config man page for more details.
10484" "$LINENO" 5
10485elif test $pkg_failed = untried; then
10486	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10487$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10488as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10489is in your PATH or set the PKG_CONFIG environment variable to the full
10490path to pkg-config.
10491
10492Alternatively, you may set the environment variables XLOGO_CFLAGS
10493and XLOGO_LIBS to avoid the need to call pkg-config.
10494See the pkg-config man page for more details.
10495
10496To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10497See \`config.log' for more details" "$LINENO" 5; }
10498else
10499	XLOGO_CFLAGS=$pkg_cv_XLOGO_CFLAGS
10500	XLOGO_LIBS=$pkg_cv_XLOGO_LIBS
10501        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10502$as_echo "yes" >&6; }
10503	:
10504fi
10505
10506
10507pkg_failed=no
10508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
10509$as_echo_n "checking for APPDEFS... " >&6; }
10510
10511if test -n "$APPDEFS_CFLAGS"; then
10512    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
10513 elif test -n "$PKG_CONFIG"; then
10514    if test -n "$PKG_CONFIG" && \
10515    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10516  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10517  ac_status=$?
10518  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10519  test $ac_status = 0; }; then
10520  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
10521else
10522  pkg_failed=yes
10523fi
10524 else
10525    pkg_failed=untried
10526fi
10527if test -n "$APPDEFS_LIBS"; then
10528    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
10529 elif test -n "$PKG_CONFIG"; then
10530    if test -n "$PKG_CONFIG" && \
10531    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10532  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10533  ac_status=$?
10534  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10535  test $ac_status = 0; }; then
10536  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
10537else
10538  pkg_failed=yes
10539fi
10540 else
10541    pkg_failed=untried
10542fi
10543
10544
10545
10546if test $pkg_failed = yes; then
10547
10548if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10549        _pkg_short_errors_supported=yes
10550else
10551        _pkg_short_errors_supported=no
10552fi
10553        if test $_pkg_short_errors_supported = yes; then
10554	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1`
10555        else
10556	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1`
10557        fi
10558	# Put the nasty error message in config.log where it belongs
10559	echo "$APPDEFS_PKG_ERRORS" >&5
10560
10561	as_fn_error $? "Package requirements (xt) were not met:
10562
10563$APPDEFS_PKG_ERRORS
10564
10565Consider adjusting the PKG_CONFIG_PATH environment variable if you
10566installed software in a non-standard prefix.
10567
10568Alternatively, you may set the environment variables APPDEFS_CFLAGS
10569and APPDEFS_LIBS to avoid the need to call pkg-config.
10570See the pkg-config man page for more details.
10571" "$LINENO" 5
10572elif test $pkg_failed = untried; then
10573	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10574$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10575as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10576is in your PATH or set the PKG_CONFIG environment variable to the full
10577path to pkg-config.
10578
10579Alternatively, you may set the environment variables APPDEFS_CFLAGS
10580and APPDEFS_LIBS to avoid the need to call pkg-config.
10581See the pkg-config man page for more details.
10582
10583To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10584See \`config.log' for more details" "$LINENO" 5; }
10585else
10586	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
10587	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
10588        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10589$as_echo "yes" >&6; }
10590	:
10591fi
10592xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
10593
10594# Check whether --with-appdefaultdir was given.
10595if test "${with_appdefaultdir+set}" = set; then :
10596  withval=$with_appdefaultdir; appdefaultdir="$withval"
10597else
10598  appdefaultdir="${xt_appdefaultdir}"
10599fi
10600
10601
10602
10603ac_config_files="$ac_config_files Makefile man/Makefile"
10604
10605cat >confcache <<\_ACEOF
10606# This file is a shell script that caches the results of configure
10607# tests run on this system so they can be shared between configure
10608# scripts and configure runs, see configure's option --config-cache.
10609# It is not useful on other systems.  If it contains results you don't
10610# want to keep, you may remove or edit it.
10611#
10612# config.status only pays attention to the cache file if you give it
10613# the --recheck option to rerun configure.
10614#
10615# `ac_cv_env_foo' variables (set or unset) will be overridden when
10616# loading this file, other *unset* `ac_cv_foo' will be assigned the
10617# following values.
10618
10619_ACEOF
10620
10621# The following way of writing the cache mishandles newlines in values,
10622# but we know of no workaround that is simple, portable, and efficient.
10623# So, we kill variables containing newlines.
10624# Ultrix sh set writes to stderr and can't be redirected directly,
10625# and sets the high bit in the cache file unless we assign to the vars.
10626(
10627  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10628    eval ac_val=\$$ac_var
10629    case $ac_val in #(
10630    *${as_nl}*)
10631      case $ac_var in #(
10632      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10633$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10634      esac
10635      case $ac_var in #(
10636      _ | IFS | as_nl) ;; #(
10637      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10638      *) { eval $ac_var=; unset $ac_var;} ;;
10639      esac ;;
10640    esac
10641  done
10642
10643  (set) 2>&1 |
10644    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10645    *${as_nl}ac_space=\ *)
10646      # `set' does not quote correctly, so add quotes: double-quote
10647      # substitution turns \\\\ into \\, and sed turns \\ into \.
10648      sed -n \
10649	"s/'/'\\\\''/g;
10650	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10651      ;; #(
10652    *)
10653      # `set' quotes correctly as required by POSIX, so do not add quotes.
10654      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10655      ;;
10656    esac |
10657    sort
10658) |
10659  sed '
10660     /^ac_cv_env_/b end
10661     t clear
10662     :clear
10663     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10664     t end
10665     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10666     :end' >>confcache
10667if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10668  if test -w "$cache_file"; then
10669    if test "x$cache_file" != "x/dev/null"; then
10670      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10671$as_echo "$as_me: updating cache $cache_file" >&6;}
10672      if test ! -f "$cache_file" || test -h "$cache_file"; then
10673	cat confcache >"$cache_file"
10674      else
10675        case $cache_file in #(
10676        */* | ?:*)
10677	  mv -f confcache "$cache_file"$$ &&
10678	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10679        *)
10680	  mv -f confcache "$cache_file" ;;
10681	esac
10682      fi
10683    fi
10684  else
10685    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10686$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10687  fi
10688fi
10689rm -f confcache
10690
10691test "x$prefix" = xNONE && prefix=$ac_default_prefix
10692# Let make expand exec_prefix.
10693test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10694
10695DEFS=-DHAVE_CONFIG_H
10696
10697ac_libobjs=
10698ac_ltlibobjs=
10699U=
10700for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10701  # 1. Remove the extension, and $U if already installed.
10702  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10703  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10704  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10705  #    will be set to the directory where LIBOBJS objects are built.
10706  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10707  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10708done
10709LIBOBJS=$ac_libobjs
10710
10711LTLIBOBJS=$ac_ltlibobjs
10712
10713
10714 if test -n "$EXEEXT"; then
10715  am__EXEEXT_TRUE=
10716  am__EXEEXT_FALSE='#'
10717else
10718  am__EXEEXT_TRUE='#'
10719  am__EXEEXT_FALSE=
10720fi
10721
10722if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10723  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10724Usually this means the macro was only invoked conditionally." "$LINENO" 5
10725fi
10726if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10727  as_fn_error $? "conditional \"AMDEP\" was never defined.
10728Usually this means the macro was only invoked conditionally." "$LINENO" 5
10729fi
10730if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10731  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10732Usually this means the macro was only invoked conditionally." "$LINENO" 5
10733fi
10734if test -z "${USE_RENDER_TRUE}" && test -z "${USE_RENDER_FALSE}"; then
10735  as_fn_error $? "conditional \"USE_RENDER\" was never defined.
10736Usually this means the macro was only invoked conditionally." "$LINENO" 5
10737fi
10738
10739: "${CONFIG_STATUS=./config.status}"
10740ac_write_fail=0
10741ac_clean_files_save=$ac_clean_files
10742ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10743{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10744$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10745as_write_fail=0
10746cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10747#! $SHELL
10748# Generated by $as_me.
10749# Run this file to recreate the current configuration.
10750# Compiler output produced by configure, useful for debugging
10751# configure, is in config.log if it exists.
10752
10753debug=false
10754ac_cs_recheck=false
10755ac_cs_silent=false
10756
10757SHELL=\${CONFIG_SHELL-$SHELL}
10758export SHELL
10759_ASEOF
10760cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10761## -------------------- ##
10762## M4sh Initialization. ##
10763## -------------------- ##
10764
10765# Be more Bourne compatible
10766DUALCASE=1; export DUALCASE # for MKS sh
10767if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10768  emulate sh
10769  NULLCMD=:
10770  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10771  # is contrary to our usage.  Disable this feature.
10772  alias -g '${1+"$@"}'='"$@"'
10773  setopt NO_GLOB_SUBST
10774else
10775  case `(set -o) 2>/dev/null` in #(
10776  *posix*) :
10777    set -o posix ;; #(
10778  *) :
10779     ;;
10780esac
10781fi
10782
10783
10784as_nl='
10785'
10786export as_nl
10787# Printing a long string crashes Solaris 7 /usr/bin/printf.
10788as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10789as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10790as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10791# Prefer a ksh shell builtin over an external printf program on Solaris,
10792# but without wasting forks for bash or zsh.
10793if test -z "$BASH_VERSION$ZSH_VERSION" \
10794    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10795  as_echo='print -r --'
10796  as_echo_n='print -rn --'
10797elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10798  as_echo='printf %s\n'
10799  as_echo_n='printf %s'
10800else
10801  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10802    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10803    as_echo_n='/usr/ucb/echo -n'
10804  else
10805    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10806    as_echo_n_body='eval
10807      arg=$1;
10808      case $arg in #(
10809      *"$as_nl"*)
10810	expr "X$arg" : "X\\(.*\\)$as_nl";
10811	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10812      esac;
10813      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10814    '
10815    export as_echo_n_body
10816    as_echo_n='sh -c $as_echo_n_body as_echo'
10817  fi
10818  export as_echo_body
10819  as_echo='sh -c $as_echo_body as_echo'
10820fi
10821
10822# The user is always right.
10823if test "${PATH_SEPARATOR+set}" != set; then
10824  PATH_SEPARATOR=:
10825  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10826    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10827      PATH_SEPARATOR=';'
10828  }
10829fi
10830
10831
10832# IFS
10833# We need space, tab and new line, in precisely that order.  Quoting is
10834# there to prevent editors from complaining about space-tab.
10835# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10836# splitting by setting IFS to empty value.)
10837IFS=" ""	$as_nl"
10838
10839# Find who we are.  Look in the path if we contain no directory separator.
10840as_myself=
10841case $0 in #((
10842  *[\\/]* ) as_myself=$0 ;;
10843  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10844for as_dir in $PATH
10845do
10846  IFS=$as_save_IFS
10847  test -z "$as_dir" && as_dir=.
10848    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10849  done
10850IFS=$as_save_IFS
10851
10852     ;;
10853esac
10854# We did not find ourselves, most probably we were run as `sh COMMAND'
10855# in which case we are not to be found in the path.
10856if test "x$as_myself" = x; then
10857  as_myself=$0
10858fi
10859if test ! -f "$as_myself"; then
10860  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10861  exit 1
10862fi
10863
10864# Unset variables that we do not need and which cause bugs (e.g. in
10865# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
10866# suppresses any "Segmentation fault" message there.  '((' could
10867# trigger a bug in pdksh 5.2.14.
10868for as_var in BASH_ENV ENV MAIL MAILPATH
10869do eval test x\${$as_var+set} = xset \
10870  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10871done
10872PS1='$ '
10873PS2='> '
10874PS4='+ '
10875
10876# NLS nuisances.
10877LC_ALL=C
10878export LC_ALL
10879LANGUAGE=C
10880export LANGUAGE
10881
10882# CDPATH.
10883(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10884
10885
10886# as_fn_error STATUS ERROR [LINENO LOG_FD]
10887# ----------------------------------------
10888# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10889# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10890# script with STATUS, using 1 if that was 0.
10891as_fn_error ()
10892{
10893  as_status=$1; test $as_status -eq 0 && as_status=1
10894  if test "$4"; then
10895    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10896    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10897  fi
10898  $as_echo "$as_me: error: $2" >&2
10899  as_fn_exit $as_status
10900} # as_fn_error
10901
10902
10903# as_fn_set_status STATUS
10904# -----------------------
10905# Set $? to STATUS, without forking.
10906as_fn_set_status ()
10907{
10908  return $1
10909} # as_fn_set_status
10910
10911# as_fn_exit STATUS
10912# -----------------
10913# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10914as_fn_exit ()
10915{
10916  set +e
10917  as_fn_set_status $1
10918  exit $1
10919} # as_fn_exit
10920
10921# as_fn_unset VAR
10922# ---------------
10923# Portably unset VAR.
10924as_fn_unset ()
10925{
10926  { eval $1=; unset $1;}
10927}
10928as_unset=as_fn_unset
10929# as_fn_append VAR VALUE
10930# ----------------------
10931# Append the text in VALUE to the end of the definition contained in VAR. Take
10932# advantage of any shell optimizations that allow amortized linear growth over
10933# repeated appends, instead of the typical quadratic growth present in naive
10934# implementations.
10935if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10936  eval 'as_fn_append ()
10937  {
10938    eval $1+=\$2
10939  }'
10940else
10941  as_fn_append ()
10942  {
10943    eval $1=\$$1\$2
10944  }
10945fi # as_fn_append
10946
10947# as_fn_arith ARG...
10948# ------------------
10949# Perform arithmetic evaluation on the ARGs, and store the result in the
10950# global $as_val. Take advantage of shells that can avoid forks. The arguments
10951# must be portable across $(()) and expr.
10952if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10953  eval 'as_fn_arith ()
10954  {
10955    as_val=$(( $* ))
10956  }'
10957else
10958  as_fn_arith ()
10959  {
10960    as_val=`expr "$@" || test $? -eq 1`
10961  }
10962fi # as_fn_arith
10963
10964
10965if expr a : '\(a\)' >/dev/null 2>&1 &&
10966   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10967  as_expr=expr
10968else
10969  as_expr=false
10970fi
10971
10972if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10973  as_basename=basename
10974else
10975  as_basename=false
10976fi
10977
10978if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10979  as_dirname=dirname
10980else
10981  as_dirname=false
10982fi
10983
10984as_me=`$as_basename -- "$0" ||
10985$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10986	 X"$0" : 'X\(//\)$' \| \
10987	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10988$as_echo X/"$0" |
10989    sed '/^.*\/\([^/][^/]*\)\/*$/{
10990	    s//\1/
10991	    q
10992	  }
10993	  /^X\/\(\/\/\)$/{
10994	    s//\1/
10995	    q
10996	  }
10997	  /^X\/\(\/\).*/{
10998	    s//\1/
10999	    q
11000	  }
11001	  s/.*/./; q'`
11002
11003# Avoid depending upon Character Ranges.
11004as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11005as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11006as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11007as_cr_digits='0123456789'
11008as_cr_alnum=$as_cr_Letters$as_cr_digits
11009
11010ECHO_C= ECHO_N= ECHO_T=
11011case `echo -n x` in #(((((
11012-n*)
11013  case `echo 'xy\c'` in
11014  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11015  xy)  ECHO_C='\c';;
11016  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11017       ECHO_T='	';;
11018  esac;;
11019*)
11020  ECHO_N='-n';;
11021esac
11022
11023rm -f conf$$ conf$$.exe conf$$.file
11024if test -d conf$$.dir; then
11025  rm -f conf$$.dir/conf$$.file
11026else
11027  rm -f conf$$.dir
11028  mkdir conf$$.dir 2>/dev/null
11029fi
11030if (echo >conf$$.file) 2>/dev/null; then
11031  if ln -s conf$$.file conf$$ 2>/dev/null; then
11032    as_ln_s='ln -s'
11033    # ... but there are two gotchas:
11034    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11035    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11036    # In both cases, we have to default to `cp -p'.
11037    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11038      as_ln_s='cp -p'
11039  elif ln conf$$.file conf$$ 2>/dev/null; then
11040    as_ln_s=ln
11041  else
11042    as_ln_s='cp -p'
11043  fi
11044else
11045  as_ln_s='cp -p'
11046fi
11047rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11048rmdir conf$$.dir 2>/dev/null
11049
11050
11051# as_fn_mkdir_p
11052# -------------
11053# Create "$as_dir" as a directory, including parents if necessary.
11054as_fn_mkdir_p ()
11055{
11056
11057  case $as_dir in #(
11058  -*) as_dir=./$as_dir;;
11059  esac
11060  test -d "$as_dir" || eval $as_mkdir_p || {
11061    as_dirs=
11062    while :; do
11063      case $as_dir in #(
11064      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11065      *) as_qdir=$as_dir;;
11066      esac
11067      as_dirs="'$as_qdir' $as_dirs"
11068      as_dir=`$as_dirname -- "$as_dir" ||
11069$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11070	 X"$as_dir" : 'X\(//\)[^/]' \| \
11071	 X"$as_dir" : 'X\(//\)$' \| \
11072	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11073$as_echo X"$as_dir" |
11074    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11075	    s//\1/
11076	    q
11077	  }
11078	  /^X\(\/\/\)[^/].*/{
11079	    s//\1/
11080	    q
11081	  }
11082	  /^X\(\/\/\)$/{
11083	    s//\1/
11084	    q
11085	  }
11086	  /^X\(\/\).*/{
11087	    s//\1/
11088	    q
11089	  }
11090	  s/.*/./; q'`
11091      test -d "$as_dir" && break
11092    done
11093    test -z "$as_dirs" || eval "mkdir $as_dirs"
11094  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11095
11096
11097} # as_fn_mkdir_p
11098if mkdir -p . 2>/dev/null; then
11099  as_mkdir_p='mkdir -p "$as_dir"'
11100else
11101  test -d ./-p && rmdir ./-p
11102  as_mkdir_p=false
11103fi
11104
11105if test -x / >/dev/null 2>&1; then
11106  as_test_x='test -x'
11107else
11108  if ls -dL / >/dev/null 2>&1; then
11109    as_ls_L_option=L
11110  else
11111    as_ls_L_option=
11112  fi
11113  as_test_x='
11114    eval sh -c '\''
11115      if test -d "$1"; then
11116	test -d "$1/.";
11117      else
11118	case $1 in #(
11119	-*)set "./$1";;
11120	esac;
11121	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11122	???[sx]*):;;*)false;;esac;fi
11123    '\'' sh
11124  '
11125fi
11126as_executable_p=$as_test_x
11127
11128# Sed expression to map a string onto a valid CPP name.
11129as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11130
11131# Sed expression to map a string onto a valid variable name.
11132as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11133
11134
11135exec 6>&1
11136## ----------------------------------- ##
11137## Main body of $CONFIG_STATUS script. ##
11138## ----------------------------------- ##
11139_ASEOF
11140test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11141
11142cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11143# Save the log message, to keep $0 and so on meaningful, and to
11144# report actual input values of CONFIG_FILES etc. instead of their
11145# values after options handling.
11146ac_log="
11147This file was extended by xlogo $as_me 1.0.4, which was
11148generated by GNU Autoconf 2.68.  Invocation command line was
11149
11150  CONFIG_FILES    = $CONFIG_FILES
11151  CONFIG_HEADERS  = $CONFIG_HEADERS
11152  CONFIG_LINKS    = $CONFIG_LINKS
11153  CONFIG_COMMANDS = $CONFIG_COMMANDS
11154  $ $0 $@
11155
11156on `(hostname || uname -n) 2>/dev/null | sed 1q`
11157"
11158
11159_ACEOF
11160
11161case $ac_config_files in *"
11162"*) set x $ac_config_files; shift; ac_config_files=$*;;
11163esac
11164
11165case $ac_config_headers in *"
11166"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11167esac
11168
11169
11170cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11171# Files that config.status was made for.
11172config_files="$ac_config_files"
11173config_headers="$ac_config_headers"
11174config_commands="$ac_config_commands"
11175
11176_ACEOF
11177
11178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11179ac_cs_usage="\
11180\`$as_me' instantiates files and other configuration actions
11181from templates according to the current configuration.  Unless the files
11182and actions are specified as TAGs, all are instantiated by default.
11183
11184Usage: $0 [OPTION]... [TAG]...
11185
11186  -h, --help       print this help, then exit
11187  -V, --version    print version number and configuration settings, then exit
11188      --config     print configuration, then exit
11189  -q, --quiet, --silent
11190                   do not print progress messages
11191  -d, --debug      don't remove temporary files
11192      --recheck    update $as_me by reconfiguring in the same conditions
11193      --file=FILE[:TEMPLATE]
11194                   instantiate the configuration file FILE
11195      --header=FILE[:TEMPLATE]
11196                   instantiate the configuration header FILE
11197
11198Configuration files:
11199$config_files
11200
11201Configuration headers:
11202$config_headers
11203
11204Configuration commands:
11205$config_commands
11206
11207Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11208
11209_ACEOF
11210cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11211ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11212ac_cs_version="\\
11213xlogo config.status 1.0.4
11214configured by $0, generated by GNU Autoconf 2.68,
11215  with options \\"\$ac_cs_config\\"
11216
11217Copyright (C) 2010 Free Software Foundation, Inc.
11218This config.status script is free software; the Free Software Foundation
11219gives unlimited permission to copy, distribute and modify it."
11220
11221ac_pwd='$ac_pwd'
11222srcdir='$srcdir'
11223INSTALL='$INSTALL'
11224MKDIR_P='$MKDIR_P'
11225AWK='$AWK'
11226test -n "\$AWK" || AWK=awk
11227_ACEOF
11228
11229cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11230# The default lists apply if the user does not specify any file.
11231ac_need_defaults=:
11232while test $# != 0
11233do
11234  case $1 in
11235  --*=?*)
11236    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11237    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11238    ac_shift=:
11239    ;;
11240  --*=)
11241    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11242    ac_optarg=
11243    ac_shift=:
11244    ;;
11245  *)
11246    ac_option=$1
11247    ac_optarg=$2
11248    ac_shift=shift
11249    ;;
11250  esac
11251
11252  case $ac_option in
11253  # Handling of the options.
11254  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11255    ac_cs_recheck=: ;;
11256  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11257    $as_echo "$ac_cs_version"; exit ;;
11258  --config | --confi | --conf | --con | --co | --c )
11259    $as_echo "$ac_cs_config"; exit ;;
11260  --debug | --debu | --deb | --de | --d | -d )
11261    debug=: ;;
11262  --file | --fil | --fi | --f )
11263    $ac_shift
11264    case $ac_optarg in
11265    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11266    '') as_fn_error $? "missing file argument" ;;
11267    esac
11268    as_fn_append CONFIG_FILES " '$ac_optarg'"
11269    ac_need_defaults=false;;
11270  --header | --heade | --head | --hea )
11271    $ac_shift
11272    case $ac_optarg in
11273    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11274    esac
11275    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11276    ac_need_defaults=false;;
11277  --he | --h)
11278    # Conflict between --help and --header
11279    as_fn_error $? "ambiguous option: \`$1'
11280Try \`$0 --help' for more information.";;
11281  --help | --hel | -h )
11282    $as_echo "$ac_cs_usage"; exit ;;
11283  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11284  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11285    ac_cs_silent=: ;;
11286
11287  # This is an error.
11288  -*) as_fn_error $? "unrecognized option: \`$1'
11289Try \`$0 --help' for more information." ;;
11290
11291  *) as_fn_append ac_config_targets " $1"
11292     ac_need_defaults=false ;;
11293
11294  esac
11295  shift
11296done
11297
11298ac_configure_extra_args=
11299
11300if $ac_cs_silent; then
11301  exec 6>/dev/null
11302  ac_configure_extra_args="$ac_configure_extra_args --silent"
11303fi
11304
11305_ACEOF
11306cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11307if \$ac_cs_recheck; then
11308  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11309  shift
11310  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11311  CONFIG_SHELL='$SHELL'
11312  export CONFIG_SHELL
11313  exec "\$@"
11314fi
11315
11316_ACEOF
11317cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11318exec 5>>config.log
11319{
11320  echo
11321  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11322## Running $as_me. ##
11323_ASBOX
11324  $as_echo "$ac_log"
11325} >&5
11326
11327_ACEOF
11328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11329#
11330# INIT-COMMANDS
11331#
11332AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11333
11334_ACEOF
11335
11336cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11337
11338# Handling of arguments.
11339for ac_config_target in $ac_config_targets
11340do
11341  case $ac_config_target in
11342    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11343    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11344    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11345    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11346
11347  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11348  esac
11349done
11350
11351
11352# If the user did not use the arguments to specify the items to instantiate,
11353# then the envvar interface is used.  Set only those that are not.
11354# We use the long form for the default assignment because of an extremely
11355# bizarre bug on SunOS 4.1.3.
11356if $ac_need_defaults; then
11357  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11358  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11359  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11360fi
11361
11362# Have a temporary directory for convenience.  Make it in the build tree
11363# simply because there is no reason against having it here, and in addition,
11364# creating and moving files from /tmp can sometimes cause problems.
11365# Hook for its removal unless debugging.
11366# Note that there is a small window in which the directory will not be cleaned:
11367# after its creation but before its name has been assigned to `$tmp'.
11368$debug ||
11369{
11370  tmp= ac_tmp=
11371  trap 'exit_status=$?
11372  : "${ac_tmp:=$tmp}"
11373  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11374' 0
11375  trap 'as_fn_exit 1' 1 2 13 15
11376}
11377# Create a (secure) tmp directory for tmp files.
11378
11379{
11380  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11381  test -d "$tmp"
11382}  ||
11383{
11384  tmp=./conf$$-$RANDOM
11385  (umask 077 && mkdir "$tmp")
11386} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11387ac_tmp=$tmp
11388
11389# Set up the scripts for CONFIG_FILES section.
11390# No need to generate them if there are no CONFIG_FILES.
11391# This happens for instance with `./config.status config.h'.
11392if test -n "$CONFIG_FILES"; then
11393
11394
11395ac_cr=`echo X | tr X '\015'`
11396# On cygwin, bash can eat \r inside `` if the user requested igncr.
11397# But we know of no other shell where ac_cr would be empty at this
11398# point, so we can use a bashism as a fallback.
11399if test "x$ac_cr" = x; then
11400  eval ac_cr=\$\'\\r\'
11401fi
11402ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11403if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11404  ac_cs_awk_cr='\\r'
11405else
11406  ac_cs_awk_cr=$ac_cr
11407fi
11408
11409echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11410_ACEOF
11411
11412
11413{
11414  echo "cat >conf$$subs.awk <<_ACEOF" &&
11415  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11416  echo "_ACEOF"
11417} >conf$$subs.sh ||
11418  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11419ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11420ac_delim='%!_!# '
11421for ac_last_try in false false false false false :; do
11422  . ./conf$$subs.sh ||
11423    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11424
11425  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11426  if test $ac_delim_n = $ac_delim_num; then
11427    break
11428  elif $ac_last_try; then
11429    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11430  else
11431    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11432  fi
11433done
11434rm -f conf$$subs.sh
11435
11436cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11437cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11438_ACEOF
11439sed -n '
11440h
11441s/^/S["/; s/!.*/"]=/
11442p
11443g
11444s/^[^!]*!//
11445:repl
11446t repl
11447s/'"$ac_delim"'$//
11448t delim
11449:nl
11450h
11451s/\(.\{148\}\)..*/\1/
11452t more1
11453s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11454p
11455n
11456b repl
11457:more1
11458s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11459p
11460g
11461s/.\{148\}//
11462t nl
11463:delim
11464h
11465s/\(.\{148\}\)..*/\1/
11466t more2
11467s/["\\]/\\&/g; s/^/"/; s/$/"/
11468p
11469b
11470:more2
11471s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11472p
11473g
11474s/.\{148\}//
11475t delim
11476' <conf$$subs.awk | sed '
11477/^[^""]/{
11478  N
11479  s/\n//
11480}
11481' >>$CONFIG_STATUS || ac_write_fail=1
11482rm -f conf$$subs.awk
11483cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11484_ACAWK
11485cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11486  for (key in S) S_is_set[key] = 1
11487  FS = ""
11488
11489}
11490{
11491  line = $ 0
11492  nfields = split(line, field, "@")
11493  substed = 0
11494  len = length(field[1])
11495  for (i = 2; i < nfields; i++) {
11496    key = field[i]
11497    keylen = length(key)
11498    if (S_is_set[key]) {
11499      value = S[key]
11500      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11501      len += length(value) + length(field[++i])
11502      substed = 1
11503    } else
11504      len += 1 + keylen
11505  }
11506
11507  print line
11508}
11509
11510_ACAWK
11511_ACEOF
11512cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11513if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11514  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11515else
11516  cat
11517fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11518  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11519_ACEOF
11520
11521# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11522# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11523# trailing colons and then remove the whole line if VPATH becomes empty
11524# (actually we leave an empty line to preserve line numbers).
11525if test "x$srcdir" = x.; then
11526  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11527h
11528s///
11529s/^/:/
11530s/[	 ]*$/:/
11531s/:\$(srcdir):/:/g
11532s/:\${srcdir}:/:/g
11533s/:@srcdir@:/:/g
11534s/^:*//
11535s/:*$//
11536x
11537s/\(=[	 ]*\).*/\1/
11538G
11539s/\n//
11540s/^[^=]*=[	 ]*$//
11541}'
11542fi
11543
11544cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11545fi # test -n "$CONFIG_FILES"
11546
11547# Set up the scripts for CONFIG_HEADERS section.
11548# No need to generate them if there are no CONFIG_HEADERS.
11549# This happens for instance with `./config.status Makefile'.
11550if test -n "$CONFIG_HEADERS"; then
11551cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11552BEGIN {
11553_ACEOF
11554
11555# Transform confdefs.h into an awk script `defines.awk', embedded as
11556# here-document in config.status, that substitutes the proper values into
11557# config.h.in to produce config.h.
11558
11559# Create a delimiter string that does not exist in confdefs.h, to ease
11560# handling of long lines.
11561ac_delim='%!_!# '
11562for ac_last_try in false false :; do
11563  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11564  if test -z "$ac_tt"; then
11565    break
11566  elif $ac_last_try; then
11567    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11568  else
11569    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11570  fi
11571done
11572
11573# For the awk script, D is an array of macro values keyed by name,
11574# likewise P contains macro parameters if any.  Preserve backslash
11575# newline sequences.
11576
11577ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11578sed -n '
11579s/.\{148\}/&'"$ac_delim"'/g
11580t rset
11581:rset
11582s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11583t def
11584d
11585:def
11586s/\\$//
11587t bsnl
11588s/["\\]/\\&/g
11589s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11590D["\1"]=" \3"/p
11591s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11592d
11593:bsnl
11594s/["\\]/\\&/g
11595s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11596D["\1"]=" \3\\\\\\n"\\/p
11597t cont
11598s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11599t cont
11600d
11601:cont
11602n
11603s/.\{148\}/&'"$ac_delim"'/g
11604t clear
11605:clear
11606s/\\$//
11607t bsnlc
11608s/["\\]/\\&/g; s/^/"/; s/$/"/p
11609d
11610:bsnlc
11611s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11612b cont
11613' <confdefs.h | sed '
11614s/'"$ac_delim"'/"\\\
11615"/g' >>$CONFIG_STATUS || ac_write_fail=1
11616
11617cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11618  for (key in D) D_is_set[key] = 1
11619  FS = ""
11620}
11621/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11622  line = \$ 0
11623  split(line, arg, " ")
11624  if (arg[1] == "#") {
11625    defundef = arg[2]
11626    mac1 = arg[3]
11627  } else {
11628    defundef = substr(arg[1], 2)
11629    mac1 = arg[2]
11630  }
11631  split(mac1, mac2, "(") #)
11632  macro = mac2[1]
11633  prefix = substr(line, 1, index(line, defundef) - 1)
11634  if (D_is_set[macro]) {
11635    # Preserve the white space surrounding the "#".
11636    print prefix "define", macro P[macro] D[macro]
11637    next
11638  } else {
11639    # Replace #undef with comments.  This is necessary, for example,
11640    # in the case of _POSIX_SOURCE, which is predefined and required
11641    # on some systems where configure will not decide to define it.
11642    if (defundef == "undef") {
11643      print "/*", prefix defundef, macro, "*/"
11644      next
11645    }
11646  }
11647}
11648{ print }
11649_ACAWK
11650_ACEOF
11651cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11652  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11653fi # test -n "$CONFIG_HEADERS"
11654
11655
11656eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11657shift
11658for ac_tag
11659do
11660  case $ac_tag in
11661  :[FHLC]) ac_mode=$ac_tag; continue;;
11662  esac
11663  case $ac_mode$ac_tag in
11664  :[FHL]*:*);;
11665  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11666  :[FH]-) ac_tag=-:-;;
11667  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11668  esac
11669  ac_save_IFS=$IFS
11670  IFS=:
11671  set x $ac_tag
11672  IFS=$ac_save_IFS
11673  shift
11674  ac_file=$1
11675  shift
11676
11677  case $ac_mode in
11678  :L) ac_source=$1;;
11679  :[FH])
11680    ac_file_inputs=
11681    for ac_f
11682    do
11683      case $ac_f in
11684      -) ac_f="$ac_tmp/stdin";;
11685      *) # Look for the file first in the build tree, then in the source tree
11686	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11687	 # because $ac_f cannot contain `:'.
11688	 test -f "$ac_f" ||
11689	   case $ac_f in
11690	   [\\/$]*) false;;
11691	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11692	   esac ||
11693	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11694      esac
11695      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11696      as_fn_append ac_file_inputs " '$ac_f'"
11697    done
11698
11699    # Let's still pretend it is `configure' which instantiates (i.e., don't
11700    # use $as_me), people would be surprised to read:
11701    #    /* config.h.  Generated by config.status.  */
11702    configure_input='Generated from '`
11703	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11704	`' by configure.'
11705    if test x"$ac_file" != x-; then
11706      configure_input="$ac_file.  $configure_input"
11707      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11708$as_echo "$as_me: creating $ac_file" >&6;}
11709    fi
11710    # Neutralize special characters interpreted by sed in replacement strings.
11711    case $configure_input in #(
11712    *\&* | *\|* | *\\* )
11713       ac_sed_conf_input=`$as_echo "$configure_input" |
11714       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11715    *) ac_sed_conf_input=$configure_input;;
11716    esac
11717
11718    case $ac_tag in
11719    *:-:* | *:-) cat >"$ac_tmp/stdin" \
11720      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11721    esac
11722    ;;
11723  esac
11724
11725  ac_dir=`$as_dirname -- "$ac_file" ||
11726$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11727	 X"$ac_file" : 'X\(//\)[^/]' \| \
11728	 X"$ac_file" : 'X\(//\)$' \| \
11729	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11730$as_echo X"$ac_file" |
11731    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11732	    s//\1/
11733	    q
11734	  }
11735	  /^X\(\/\/\)[^/].*/{
11736	    s//\1/
11737	    q
11738	  }
11739	  /^X\(\/\/\)$/{
11740	    s//\1/
11741	    q
11742	  }
11743	  /^X\(\/\).*/{
11744	    s//\1/
11745	    q
11746	  }
11747	  s/.*/./; q'`
11748  as_dir="$ac_dir"; as_fn_mkdir_p
11749  ac_builddir=.
11750
11751case "$ac_dir" in
11752.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11753*)
11754  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11755  # A ".." for each directory in $ac_dir_suffix.
11756  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11757  case $ac_top_builddir_sub in
11758  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11759  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11760  esac ;;
11761esac
11762ac_abs_top_builddir=$ac_pwd
11763ac_abs_builddir=$ac_pwd$ac_dir_suffix
11764# for backward compatibility:
11765ac_top_builddir=$ac_top_build_prefix
11766
11767case $srcdir in
11768  .)  # We are building in place.
11769    ac_srcdir=.
11770    ac_top_srcdir=$ac_top_builddir_sub
11771    ac_abs_top_srcdir=$ac_pwd ;;
11772  [\\/]* | ?:[\\/]* )  # Absolute name.
11773    ac_srcdir=$srcdir$ac_dir_suffix;
11774    ac_top_srcdir=$srcdir
11775    ac_abs_top_srcdir=$srcdir ;;
11776  *) # Relative name.
11777    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11778    ac_top_srcdir=$ac_top_build_prefix$srcdir
11779    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11780esac
11781ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11782
11783
11784  case $ac_mode in
11785  :F)
11786  #
11787  # CONFIG_FILE
11788  #
11789
11790  case $INSTALL in
11791  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11792  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11793  esac
11794  ac_MKDIR_P=$MKDIR_P
11795  case $MKDIR_P in
11796  [\\/$]* | ?:[\\/]* ) ;;
11797  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11798  esac
11799_ACEOF
11800
11801cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11802# If the template does not know about datarootdir, expand it.
11803# FIXME: This hack should be removed a few years after 2.60.
11804ac_datarootdir_hack=; ac_datarootdir_seen=
11805ac_sed_dataroot='
11806/datarootdir/ {
11807  p
11808  q
11809}
11810/@datadir@/p
11811/@docdir@/p
11812/@infodir@/p
11813/@localedir@/p
11814/@mandir@/p'
11815case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11816*datarootdir*) ac_datarootdir_seen=yes;;
11817*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11818  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11819$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11820_ACEOF
11821cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11822  ac_datarootdir_hack='
11823  s&@datadir@&$datadir&g
11824  s&@docdir@&$docdir&g
11825  s&@infodir@&$infodir&g
11826  s&@localedir@&$localedir&g
11827  s&@mandir@&$mandir&g
11828  s&\\\${datarootdir}&$datarootdir&g' ;;
11829esac
11830_ACEOF
11831
11832# Neutralize VPATH when `$srcdir' = `.'.
11833# Shell code in configure.ac might set extrasub.
11834# FIXME: do we really want to maintain this feature?
11835cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11836ac_sed_extra="$ac_vpsub
11837$extrasub
11838_ACEOF
11839cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11840:t
11841/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11842s|@configure_input@|$ac_sed_conf_input|;t t
11843s&@top_builddir@&$ac_top_builddir_sub&;t t
11844s&@top_build_prefix@&$ac_top_build_prefix&;t t
11845s&@srcdir@&$ac_srcdir&;t t
11846s&@abs_srcdir@&$ac_abs_srcdir&;t t
11847s&@top_srcdir@&$ac_top_srcdir&;t t
11848s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11849s&@builddir@&$ac_builddir&;t t
11850s&@abs_builddir@&$ac_abs_builddir&;t t
11851s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11852s&@INSTALL@&$ac_INSTALL&;t t
11853s&@MKDIR_P@&$ac_MKDIR_P&;t t
11854$ac_datarootdir_hack
11855"
11856eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11857  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11858
11859test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11860  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11861  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
11862      "$ac_tmp/out"`; test -z "$ac_out"; } &&
11863  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11864which seems to be undefined.  Please make sure it is defined" >&5
11865$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11866which seems to be undefined.  Please make sure it is defined" >&2;}
11867
11868  rm -f "$ac_tmp/stdin"
11869  case $ac_file in
11870  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11871  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11872  esac \
11873  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11874 ;;
11875  :H)
11876  #
11877  # CONFIG_HEADER
11878  #
11879  if test x"$ac_file" != x-; then
11880    {
11881      $as_echo "/* $configure_input  */" \
11882      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11883    } >"$ac_tmp/config.h" \
11884      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11885    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11886      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11887$as_echo "$as_me: $ac_file is unchanged" >&6;}
11888    else
11889      rm -f "$ac_file"
11890      mv "$ac_tmp/config.h" "$ac_file" \
11891	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
11892    fi
11893  else
11894    $as_echo "/* $configure_input  */" \
11895      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11896      || as_fn_error $? "could not create -" "$LINENO" 5
11897  fi
11898# Compute "$ac_file"'s index in $config_headers.
11899_am_arg="$ac_file"
11900_am_stamp_count=1
11901for _am_header in $config_headers :; do
11902  case $_am_header in
11903    $_am_arg | $_am_arg:* )
11904      break ;;
11905    * )
11906      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11907  esac
11908done
11909echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11910$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11911	 X"$_am_arg" : 'X\(//\)[^/]' \| \
11912	 X"$_am_arg" : 'X\(//\)$' \| \
11913	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11914$as_echo X"$_am_arg" |
11915    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11916	    s//\1/
11917	    q
11918	  }
11919	  /^X\(\/\/\)[^/].*/{
11920	    s//\1/
11921	    q
11922	  }
11923	  /^X\(\/\/\)$/{
11924	    s//\1/
11925	    q
11926	  }
11927	  /^X\(\/\).*/{
11928	    s//\1/
11929	    q
11930	  }
11931	  s/.*/./; q'`/stamp-h$_am_stamp_count
11932 ;;
11933
11934  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11935$as_echo "$as_me: executing $ac_file commands" >&6;}
11936 ;;
11937  esac
11938
11939
11940  case $ac_file$ac_mode in
11941    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11942  # Autoconf 2.62 quotes --file arguments for eval, but not when files
11943  # are listed without --file.  Let's play safe and only enable the eval
11944  # if we detect the quoting.
11945  case $CONFIG_FILES in
11946  *\'*) eval set x "$CONFIG_FILES" ;;
11947  *)   set x $CONFIG_FILES ;;
11948  esac
11949  shift
11950  for mf
11951  do
11952    # Strip MF so we end up with the name of the file.
11953    mf=`echo "$mf" | sed -e 's/:.*$//'`
11954    # Check whether this is an Automake generated Makefile or not.
11955    # We used to match only the files named `Makefile.in', but
11956    # some people rename them; so instead we look at the file content.
11957    # Grep'ing the first line is not enough: some people post-process
11958    # each Makefile.in and add a new line on top of each file to say so.
11959    # Grep'ing the whole file is not good either: AIX grep has a line
11960    # limit of 2048, but all sed's we know have understand at least 4000.
11961    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11962      dirpart=`$as_dirname -- "$mf" ||
11963$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11964	 X"$mf" : 'X\(//\)[^/]' \| \
11965	 X"$mf" : 'X\(//\)$' \| \
11966	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11967$as_echo X"$mf" |
11968    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11969	    s//\1/
11970	    q
11971	  }
11972	  /^X\(\/\/\)[^/].*/{
11973	    s//\1/
11974	    q
11975	  }
11976	  /^X\(\/\/\)$/{
11977	    s//\1/
11978	    q
11979	  }
11980	  /^X\(\/\).*/{
11981	    s//\1/
11982	    q
11983	  }
11984	  s/.*/./; q'`
11985    else
11986      continue
11987    fi
11988    # Extract the definition of DEPDIR, am__include, and am__quote
11989    # from the Makefile without running `make'.
11990    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11991    test -z "$DEPDIR" && continue
11992    am__include=`sed -n 's/^am__include = //p' < "$mf"`
11993    test -z "am__include" && continue
11994    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11995    # When using ansi2knr, U may be empty or an underscore; expand it
11996    U=`sed -n 's/^U = //p' < "$mf"`
11997    # Find all dependency output files, they are included files with
11998    # $(DEPDIR) in their names.  We invoke sed twice because it is the
11999    # simplest approach to changing $(DEPDIR) to its actual value in the
12000    # expansion.
12001    for file in `sed -n "
12002      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12003	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12004      # Make sure the directory exists.
12005      test -f "$dirpart/$file" && continue
12006      fdir=`$as_dirname -- "$file" ||
12007$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12008	 X"$file" : 'X\(//\)[^/]' \| \
12009	 X"$file" : 'X\(//\)$' \| \
12010	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12011$as_echo X"$file" |
12012    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12013	    s//\1/
12014	    q
12015	  }
12016	  /^X\(\/\/\)[^/].*/{
12017	    s//\1/
12018	    q
12019	  }
12020	  /^X\(\/\/\)$/{
12021	    s//\1/
12022	    q
12023	  }
12024	  /^X\(\/\).*/{
12025	    s//\1/
12026	    q
12027	  }
12028	  s/.*/./; q'`
12029      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12030      # echo "creating $dirpart/$file"
12031      echo '# dummy' > "$dirpart/$file"
12032    done
12033  done
12034}
12035 ;;
12036
12037  esac
12038done # for ac_tag
12039
12040
12041as_fn_exit 0
12042_ACEOF
12043ac_clean_files=$ac_clean_files_save
12044
12045test $ac_write_fail = 0 ||
12046  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12047
12048
12049# configure is writing to config.log, and then calls config.status.
12050# config.status does its own redirection, appending to config.log.
12051# Unfortunately, on DOS this fails, as config.log is still kept open
12052# by configure, so config.status won't be able to write to it; its
12053# output is simply discarded.  So we exec the FD to /dev/null,
12054# effectively closing config.log, so it can be properly (re)opened and
12055# appended to by config.status.  When coming back to configure, we
12056# need to make the FD available again.
12057if test "$no_create" != yes; then
12058  ac_cs_success=:
12059  ac_config_status_args=
12060  test "$silent" = yes &&
12061    ac_config_status_args="$ac_config_status_args --quiet"
12062  exec 5>/dev/null
12063  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12064  exec 5>>config.log
12065  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12066  # would make configure fail if this is the last instruction.
12067  $ac_cs_success || as_fn_exit 1
12068fi
12069if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12070  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12071$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12072fi
12073
12074