configure revision 65912f00
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xditview 1.0.3.
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='xditview'
563PACKAGE_TARNAME='xditview'
564PACKAGE_VERSION='1.0.3'
565PACKAGE_STRING='xditview 1.0.3'
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
612XDITVIEW_LIBS
613XDITVIEW_CFLAGS
614AM_BACKSLASH
615AM_DEFAULT_VERBOSITY
616MAN_SUBSTS
617XORG_MAN_PAGE
618ADMIN_MAN_DIR
619DRIVER_MAN_DIR
620MISC_MAN_DIR
621FILE_MAN_DIR
622LIB_MAN_DIR
623APP_MAN_DIR
624ADMIN_MAN_SUFFIX
625DRIVER_MAN_SUFFIX
626MISC_MAN_SUFFIX
627FILE_MAN_SUFFIX
628LIB_MAN_SUFFIX
629APP_MAN_SUFFIX
630SED
631host_os
632host_vendor
633host_cpu
634host
635build_os
636build_vendor
637build_cpu
638build
639INSTALL_CMD
640PKG_CONFIG
641CHANGELOG_CMD
642STRICT_CFLAGS
643CWARNFLAGS
644BASE_CFLAGS
645EGREP
646GREP
647CPP
648am__fastdepCC_FALSE
649am__fastdepCC_TRUE
650CCDEPMODE
651am__nodep
652AMDEPBACKSLASH
653AMDEP_FALSE
654AMDEP_TRUE
655am__quote
656am__include
657DEPDIR
658OBJEXT
659EXEEXT
660ac_ct_CC
661CPPFLAGS
662LDFLAGS
663CFLAGS
664CC
665MAINT
666MAINTAINER_MODE_FALSE
667MAINTAINER_MODE_TRUE
668am__untar
669am__tar
670AMTAR
671am__leading_dot
672SET_MAKE
673AWK
674mkdir_p
675MKDIR_P
676INSTALL_STRIP_PROGRAM
677STRIP
678install_sh
679MAKEINFO
680AUTOHEADER
681AUTOMAKE
682AUTOCONF
683ACLOCAL
684VERSION
685PACKAGE
686CYGPATH_W
687am__isrc
688INSTALL_DATA
689INSTALL_SCRIPT
690INSTALL_PROGRAM
691target_alias
692host_alias
693build_alias
694LIBS
695ECHO_T
696ECHO_N
697ECHO_C
698DEFS
699mandir
700localedir
701libdir
702psdir
703pdfdir
704dvidir
705htmldir
706infodir
707docdir
708oldincludedir
709includedir
710localstatedir
711sharedstatedir
712sysconfdir
713datadir
714datarootdir
715libexecdir
716sbindir
717bindir
718program_transform_name
719prefix
720exec_prefix
721PACKAGE_URL
722PACKAGE_BUGREPORT
723PACKAGE_STRING
724PACKAGE_VERSION
725PACKAGE_TARNAME
726PACKAGE_NAME
727PATH_SEPARATOR
728SHELL'
729ac_subst_files=''
730ac_user_opts='
731enable_option_checking
732enable_maintainer_mode
733enable_dependency_tracking
734enable_selective_werror
735enable_strict_compilation
736enable_silent_rules
737with_appdefaultdir
738'
739      ac_precious_vars='build_alias
740host_alias
741target_alias
742CC
743CFLAGS
744LDFLAGS
745LIBS
746CPPFLAGS
747CPP
748PKG_CONFIG
749XDITVIEW_CFLAGS
750XDITVIEW_LIBS
751APPDEFS_CFLAGS
752APPDEFS_LIBS'
753
754
755# Initialize some variables set by options.
756ac_init_help=
757ac_init_version=false
758ac_unrecognized_opts=
759ac_unrecognized_sep=
760# The variables have the same names as the options, with
761# dashes changed to underlines.
762cache_file=/dev/null
763exec_prefix=NONE
764no_create=
765no_recursion=
766prefix=NONE
767program_prefix=NONE
768program_suffix=NONE
769program_transform_name=s,x,x,
770silent=
771site=
772srcdir=
773verbose=
774x_includes=NONE
775x_libraries=NONE
776
777# Installation directory options.
778# These are left unexpanded so users can "make install exec_prefix=/foo"
779# and all the variables that are supposed to be based on exec_prefix
780# by default will actually change.
781# Use braces instead of parens because sh, perl, etc. also accept them.
782# (The list follows the same order as the GNU Coding Standards.)
783bindir='${exec_prefix}/bin'
784sbindir='${exec_prefix}/sbin'
785libexecdir='${exec_prefix}/libexec'
786datarootdir='${prefix}/share'
787datadir='${datarootdir}'
788sysconfdir='${prefix}/etc'
789sharedstatedir='${prefix}/com'
790localstatedir='${prefix}/var'
791includedir='${prefix}/include'
792oldincludedir='/usr/include'
793docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
794infodir='${datarootdir}/info'
795htmldir='${docdir}'
796dvidir='${docdir}'
797pdfdir='${docdir}'
798psdir='${docdir}'
799libdir='${exec_prefix}/lib'
800localedir='${datarootdir}/locale'
801mandir='${datarootdir}/man'
802
803ac_prev=
804ac_dashdash=
805for ac_option
806do
807  # If the previous option needs an argument, assign it.
808  if test -n "$ac_prev"; then
809    eval $ac_prev=\$ac_option
810    ac_prev=
811    continue
812  fi
813
814  case $ac_option in
815  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
816  *=)   ac_optarg= ;;
817  *)    ac_optarg=yes ;;
818  esac
819
820  # Accept the important Cygnus configure options, so we can diagnose typos.
821
822  case $ac_dashdash$ac_option in
823  --)
824    ac_dashdash=yes ;;
825
826  -bindir | --bindir | --bindi | --bind | --bin | --bi)
827    ac_prev=bindir ;;
828  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
829    bindir=$ac_optarg ;;
830
831  -build | --build | --buil | --bui | --bu)
832    ac_prev=build_alias ;;
833  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
834    build_alias=$ac_optarg ;;
835
836  -cache-file | --cache-file | --cache-fil | --cache-fi \
837  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
838    ac_prev=cache_file ;;
839  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
840  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
841    cache_file=$ac_optarg ;;
842
843  --config-cache | -C)
844    cache_file=config.cache ;;
845
846  -datadir | --datadir | --datadi | --datad)
847    ac_prev=datadir ;;
848  -datadir=* | --datadir=* | --datadi=* | --datad=*)
849    datadir=$ac_optarg ;;
850
851  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
852  | --dataroo | --dataro | --datar)
853    ac_prev=datarootdir ;;
854  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
855  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
856    datarootdir=$ac_optarg ;;
857
858  -disable-* | --disable-*)
859    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
860    # Reject names that are not valid shell variable names.
861    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
862      as_fn_error $? "invalid feature name: $ac_useropt"
863    ac_useropt_orig=$ac_useropt
864    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
865    case $ac_user_opts in
866      *"
867"enable_$ac_useropt"
868"*) ;;
869      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
870	 ac_unrecognized_sep=', ';;
871    esac
872    eval enable_$ac_useropt=no ;;
873
874  -docdir | --docdir | --docdi | --doc | --do)
875    ac_prev=docdir ;;
876  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
877    docdir=$ac_optarg ;;
878
879  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
880    ac_prev=dvidir ;;
881  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
882    dvidir=$ac_optarg ;;
883
884  -enable-* | --enable-*)
885    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
886    # Reject names that are not valid shell variable names.
887    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888      as_fn_error $? "invalid feature name: $ac_useropt"
889    ac_useropt_orig=$ac_useropt
890    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891    case $ac_user_opts in
892      *"
893"enable_$ac_useropt"
894"*) ;;
895      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
896	 ac_unrecognized_sep=', ';;
897    esac
898    eval enable_$ac_useropt=\$ac_optarg ;;
899
900  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
901  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
902  | --exec | --exe | --ex)
903    ac_prev=exec_prefix ;;
904  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
905  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
906  | --exec=* | --exe=* | --ex=*)
907    exec_prefix=$ac_optarg ;;
908
909  -gas | --gas | --ga | --g)
910    # Obsolete; use --with-gas.
911    with_gas=yes ;;
912
913  -help | --help | --hel | --he | -h)
914    ac_init_help=long ;;
915  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
916    ac_init_help=recursive ;;
917  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
918    ac_init_help=short ;;
919
920  -host | --host | --hos | --ho)
921    ac_prev=host_alias ;;
922  -host=* | --host=* | --hos=* | --ho=*)
923    host_alias=$ac_optarg ;;
924
925  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
926    ac_prev=htmldir ;;
927  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
928  | --ht=*)
929    htmldir=$ac_optarg ;;
930
931  -includedir | --includedir | --includedi | --included | --include \
932  | --includ | --inclu | --incl | --inc)
933    ac_prev=includedir ;;
934  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
935  | --includ=* | --inclu=* | --incl=* | --inc=*)
936    includedir=$ac_optarg ;;
937
938  -infodir | --infodir | --infodi | --infod | --info | --inf)
939    ac_prev=infodir ;;
940  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
941    infodir=$ac_optarg ;;
942
943  -libdir | --libdir | --libdi | --libd)
944    ac_prev=libdir ;;
945  -libdir=* | --libdir=* | --libdi=* | --libd=*)
946    libdir=$ac_optarg ;;
947
948  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
949  | --libexe | --libex | --libe)
950    ac_prev=libexecdir ;;
951  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
952  | --libexe=* | --libex=* | --libe=*)
953    libexecdir=$ac_optarg ;;
954
955  -localedir | --localedir | --localedi | --localed | --locale)
956    ac_prev=localedir ;;
957  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
958    localedir=$ac_optarg ;;
959
960  -localstatedir | --localstatedir | --localstatedi | --localstated \
961  | --localstate | --localstat | --localsta | --localst | --locals)
962    ac_prev=localstatedir ;;
963  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
964  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
965    localstatedir=$ac_optarg ;;
966
967  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
968    ac_prev=mandir ;;
969  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
970    mandir=$ac_optarg ;;
971
972  -nfp | --nfp | --nf)
973    # Obsolete; use --without-fp.
974    with_fp=no ;;
975
976  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
977  | --no-cr | --no-c | -n)
978    no_create=yes ;;
979
980  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
981  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
982    no_recursion=yes ;;
983
984  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
985  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
986  | --oldin | --oldi | --old | --ol | --o)
987    ac_prev=oldincludedir ;;
988  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
989  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
990  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
991    oldincludedir=$ac_optarg ;;
992
993  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
994    ac_prev=prefix ;;
995  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
996    prefix=$ac_optarg ;;
997
998  -program-prefix | --program-prefix | --program-prefi | --program-pref \
999  | --program-pre | --program-pr | --program-p)
1000    ac_prev=program_prefix ;;
1001  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1002  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1003    program_prefix=$ac_optarg ;;
1004
1005  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1006  | --program-suf | --program-su | --program-s)
1007    ac_prev=program_suffix ;;
1008  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1009  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1010    program_suffix=$ac_optarg ;;
1011
1012  -program-transform-name | --program-transform-name \
1013  | --program-transform-nam | --program-transform-na \
1014  | --program-transform-n | --program-transform- \
1015  | --program-transform | --program-transfor \
1016  | --program-transfo | --program-transf \
1017  | --program-trans | --program-tran \
1018  | --progr-tra | --program-tr | --program-t)
1019    ac_prev=program_transform_name ;;
1020  -program-transform-name=* | --program-transform-name=* \
1021  | --program-transform-nam=* | --program-transform-na=* \
1022  | --program-transform-n=* | --program-transform-=* \
1023  | --program-transform=* | --program-transfor=* \
1024  | --program-transfo=* | --program-transf=* \
1025  | --program-trans=* | --program-tran=* \
1026  | --progr-tra=* | --program-tr=* | --program-t=*)
1027    program_transform_name=$ac_optarg ;;
1028
1029  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1030    ac_prev=pdfdir ;;
1031  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1032    pdfdir=$ac_optarg ;;
1033
1034  -psdir | --psdir | --psdi | --psd | --ps)
1035    ac_prev=psdir ;;
1036  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1037    psdir=$ac_optarg ;;
1038
1039  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1040  | -silent | --silent | --silen | --sile | --sil)
1041    silent=yes ;;
1042
1043  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1044    ac_prev=sbindir ;;
1045  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1046  | --sbi=* | --sb=*)
1047    sbindir=$ac_optarg ;;
1048
1049  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1050  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1051  | --sharedst | --shareds | --shared | --share | --shar \
1052  | --sha | --sh)
1053    ac_prev=sharedstatedir ;;
1054  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1055  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1056  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1057  | --sha=* | --sh=*)
1058    sharedstatedir=$ac_optarg ;;
1059
1060  -site | --site | --sit)
1061    ac_prev=site ;;
1062  -site=* | --site=* | --sit=*)
1063    site=$ac_optarg ;;
1064
1065  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1066    ac_prev=srcdir ;;
1067  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1068    srcdir=$ac_optarg ;;
1069
1070  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1071  | --syscon | --sysco | --sysc | --sys | --sy)
1072    ac_prev=sysconfdir ;;
1073  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1074  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1075    sysconfdir=$ac_optarg ;;
1076
1077  -target | --target | --targe | --targ | --tar | --ta | --t)
1078    ac_prev=target_alias ;;
1079  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1080    target_alias=$ac_optarg ;;
1081
1082  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1083    verbose=yes ;;
1084
1085  -version | --version | --versio | --versi | --vers | -V)
1086    ac_init_version=: ;;
1087
1088  -with-* | --with-*)
1089    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1090    # Reject names that are not valid shell variable names.
1091    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092      as_fn_error $? "invalid package name: $ac_useropt"
1093    ac_useropt_orig=$ac_useropt
1094    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095    case $ac_user_opts in
1096      *"
1097"with_$ac_useropt"
1098"*) ;;
1099      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1100	 ac_unrecognized_sep=', ';;
1101    esac
1102    eval with_$ac_useropt=\$ac_optarg ;;
1103
1104  -without-* | --without-*)
1105    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1106    # Reject names that are not valid shell variable names.
1107    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108      as_fn_error $? "invalid package name: $ac_useropt"
1109    ac_useropt_orig=$ac_useropt
1110    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111    case $ac_user_opts in
1112      *"
1113"with_$ac_useropt"
1114"*) ;;
1115      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1116	 ac_unrecognized_sep=', ';;
1117    esac
1118    eval with_$ac_useropt=no ;;
1119
1120  --x)
1121    # Obsolete; use --with-x.
1122    with_x=yes ;;
1123
1124  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1125  | --x-incl | --x-inc | --x-in | --x-i)
1126    ac_prev=x_includes ;;
1127  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1128  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1129    x_includes=$ac_optarg ;;
1130
1131  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1132  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1133    ac_prev=x_libraries ;;
1134  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1135  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1136    x_libraries=$ac_optarg ;;
1137
1138  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1139Try \`$0 --help' for more information"
1140    ;;
1141
1142  *=*)
1143    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1144    # Reject names that are not valid shell variable names.
1145    case $ac_envvar in #(
1146      '' | [0-9]* | *[!_$as_cr_alnum]* )
1147      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1148    esac
1149    eval $ac_envvar=\$ac_optarg
1150    export $ac_envvar ;;
1151
1152  *)
1153    # FIXME: should be removed in autoconf 3.0.
1154    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1155    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1156      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1157    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1158    ;;
1159
1160  esac
1161done
1162
1163if test -n "$ac_prev"; then
1164  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1165  as_fn_error $? "missing argument to $ac_option"
1166fi
1167
1168if test -n "$ac_unrecognized_opts"; then
1169  case $enable_option_checking in
1170    no) ;;
1171    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1172    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1173  esac
1174fi
1175
1176# Check all directory arguments for consistency.
1177for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1178		datadir sysconfdir sharedstatedir localstatedir includedir \
1179		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1180		libdir localedir mandir
1181do
1182  eval ac_val=\$$ac_var
1183  # Remove trailing slashes.
1184  case $ac_val in
1185    */ )
1186      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1187      eval $ac_var=\$ac_val;;
1188  esac
1189  # Be sure to have absolute directory names.
1190  case $ac_val in
1191    [\\/$]* | ?:[\\/]* )  continue;;
1192    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1193  esac
1194  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1195done
1196
1197# There might be people who depend on the old broken behavior: `$host'
1198# used to hold the argument of --host etc.
1199# FIXME: To remove some day.
1200build=$build_alias
1201host=$host_alias
1202target=$target_alias
1203
1204# FIXME: To remove some day.
1205if test "x$host_alias" != x; then
1206  if test "x$build_alias" = x; then
1207    cross_compiling=maybe
1208    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1209    If a cross compiler is detected then cross compile mode will be used" >&2
1210  elif test "x$build_alias" != "x$host_alias"; then
1211    cross_compiling=yes
1212  fi
1213fi
1214
1215ac_tool_prefix=
1216test -n "$host_alias" && ac_tool_prefix=$host_alias-
1217
1218test "$silent" = yes && exec 6>/dev/null
1219
1220
1221ac_pwd=`pwd` && test -n "$ac_pwd" &&
1222ac_ls_di=`ls -di .` &&
1223ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1224  as_fn_error $? "working directory cannot be determined"
1225test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1226  as_fn_error $? "pwd does not report name of working directory"
1227
1228
1229# Find the source files, if location was not specified.
1230if test -z "$srcdir"; then
1231  ac_srcdir_defaulted=yes
1232  # Try the directory containing this script, then the parent directory.
1233  ac_confdir=`$as_dirname -- "$as_myself" ||
1234$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1235	 X"$as_myself" : 'X\(//\)[^/]' \| \
1236	 X"$as_myself" : 'X\(//\)$' \| \
1237	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1238$as_echo X"$as_myself" |
1239    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1240	    s//\1/
1241	    q
1242	  }
1243	  /^X\(\/\/\)[^/].*/{
1244	    s//\1/
1245	    q
1246	  }
1247	  /^X\(\/\/\)$/{
1248	    s//\1/
1249	    q
1250	  }
1251	  /^X\(\/\).*/{
1252	    s//\1/
1253	    q
1254	  }
1255	  s/.*/./; q'`
1256  srcdir=$ac_confdir
1257  if test ! -r "$srcdir/$ac_unique_file"; then
1258    srcdir=..
1259  fi
1260else
1261  ac_srcdir_defaulted=no
1262fi
1263if test ! -r "$srcdir/$ac_unique_file"; then
1264  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1265  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1266fi
1267ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1268ac_abs_confdir=`(
1269	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1270	pwd)`
1271# When building in place, set srcdir=.
1272if test "$ac_abs_confdir" = "$ac_pwd"; then
1273  srcdir=.
1274fi
1275# Remove unnecessary trailing slashes from srcdir.
1276# Double slashes in file names in object file debugging info
1277# mess up M-x gdb in Emacs.
1278case $srcdir in
1279*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280esac
1281for ac_var in $ac_precious_vars; do
1282  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283  eval ac_env_${ac_var}_value=\$${ac_var}
1284  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1286done
1287
1288#
1289# Report the --help message.
1290#
1291if test "$ac_init_help" = "long"; then
1292  # Omit some internal or obsolete options to make the list less imposing.
1293  # This message is too long to be a string in the A/UX 3.1 sh.
1294  cat <<_ACEOF
1295\`configure' configures xditview 1.0.3 to adapt to many kinds of systems.
1296
1297Usage: $0 [OPTION]... [VAR=VALUE]...
1298
1299To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300VAR=VALUE.  See below for descriptions of some of the useful variables.
1301
1302Defaults for the options are specified in brackets.
1303
1304Configuration:
1305  -h, --help              display this help and exit
1306      --help=short        display options specific to this package
1307      --help=recursive    display the short help of all the included packages
1308  -V, --version           display version information and exit
1309  -q, --quiet, --silent   do not print \`checking ...' messages
1310      --cache-file=FILE   cache test results in FILE [disabled]
1311  -C, --config-cache      alias for \`--cache-file=config.cache'
1312  -n, --no-create         do not create output files
1313      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1314
1315Installation directories:
1316  --prefix=PREFIX         install architecture-independent files in PREFIX
1317                          [$ac_default_prefix]
1318  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1319                          [PREFIX]
1320
1321By default, \`make install' will install all the files in
1322\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1323an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324for instance \`--prefix=\$HOME'.
1325
1326For better control, use the options below.
1327
1328Fine tuning of the installation directories:
1329  --bindir=DIR            user executables [EPREFIX/bin]
1330  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1331  --libexecdir=DIR        program executables [EPREFIX/libexec]
1332  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1333  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1334  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1335  --libdir=DIR            object code libraries [EPREFIX/lib]
1336  --includedir=DIR        C header files [PREFIX/include]
1337  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1338  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1339  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1340  --infodir=DIR           info documentation [DATAROOTDIR/info]
1341  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1342  --mandir=DIR            man documentation [DATAROOTDIR/man]
1343  --docdir=DIR            documentation root [DATAROOTDIR/doc/xditview]
1344  --htmldir=DIR           html documentation [DOCDIR]
1345  --dvidir=DIR            dvi documentation [DOCDIR]
1346  --pdfdir=DIR            pdf documentation [DOCDIR]
1347  --psdir=DIR             ps documentation [DOCDIR]
1348_ACEOF
1349
1350  cat <<\_ACEOF
1351
1352Program names:
1353  --program-prefix=PREFIX            prepend PREFIX to installed program names
1354  --program-suffix=SUFFIX            append SUFFIX to installed program names
1355  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1356
1357System types:
1358  --build=BUILD     configure for building on BUILD [guessed]
1359  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1360_ACEOF
1361fi
1362
1363if test -n "$ac_init_help"; then
1364  case $ac_init_help in
1365     short | recursive ) echo "Configuration of xditview 1.0.3:";;
1366   esac
1367  cat <<\_ACEOF
1368
1369Optional Features:
1370  --disable-option-checking  ignore unrecognized --enable/--with options
1371  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1372  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1373  --enable-maintainer-mode  enable make rules and dependencies not useful
1374			  (and sometimes confusing) to the casual installer
1375  --disable-dependency-tracking  speeds up one-time build
1376  --enable-dependency-tracking   do not reject slow dependency extractors
1377  --disable-selective-werror
1378                          Turn off selective compiler errors. (default:
1379                          enabled)
1380  --enable-strict-compilation
1381                          Enable all warnings from compiler and make them
1382                          errors (default: disabled)
1383  --enable-silent-rules          less verbose build output (undo: `make V=1')
1384  --disable-silent-rules         verbose build output (undo: `make V=0')
1385
1386Optional Packages:
1387  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1388  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1389  --with-appdefaultdir=<pathname>
1390                          specify directory for app-defaults files (default is
1391                          autodetected)
1392
1393Some influential environment variables:
1394  CC          C compiler command
1395  CFLAGS      C compiler flags
1396  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1397              nonstandard directory <lib dir>
1398  LIBS        libraries to pass to the linker, e.g. -l<library>
1399  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1400              you have headers in a nonstandard directory <include dir>
1401  CPP         C preprocessor
1402  PKG_CONFIG  path to pkg-config utility
1403  XDITVIEW_CFLAGS
1404              C compiler flags for XDITVIEW, overriding pkg-config
1405  XDITVIEW_LIBS
1406              linker flags for XDITVIEW, overriding pkg-config
1407  APPDEFS_CFLAGS
1408              C compiler flags for APPDEFS, overriding pkg-config
1409  APPDEFS_LIBS
1410              linker flags for APPDEFS, overriding pkg-config
1411
1412Use these variables to override the choices made by `configure' or to help
1413it to find libraries and programs with nonstandard names/locations.
1414
1415Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1416_ACEOF
1417ac_status=$?
1418fi
1419
1420if test "$ac_init_help" = "recursive"; then
1421  # If there are subdirs, report their specific --help.
1422  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423    test -d "$ac_dir" ||
1424      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1425      continue
1426    ac_builddir=.
1427
1428case "$ac_dir" in
1429.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430*)
1431  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1432  # A ".." for each directory in $ac_dir_suffix.
1433  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1434  case $ac_top_builddir_sub in
1435  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437  esac ;;
1438esac
1439ac_abs_top_builddir=$ac_pwd
1440ac_abs_builddir=$ac_pwd$ac_dir_suffix
1441# for backward compatibility:
1442ac_top_builddir=$ac_top_build_prefix
1443
1444case $srcdir in
1445  .)  # We are building in place.
1446    ac_srcdir=.
1447    ac_top_srcdir=$ac_top_builddir_sub
1448    ac_abs_top_srcdir=$ac_pwd ;;
1449  [\\/]* | ?:[\\/]* )  # Absolute name.
1450    ac_srcdir=$srcdir$ac_dir_suffix;
1451    ac_top_srcdir=$srcdir
1452    ac_abs_top_srcdir=$srcdir ;;
1453  *) # Relative name.
1454    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1455    ac_top_srcdir=$ac_top_build_prefix$srcdir
1456    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1457esac
1458ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1459
1460    cd "$ac_dir" || { ac_status=$?; continue; }
1461    # Check for guested configure.
1462    if test -f "$ac_srcdir/configure.gnu"; then
1463      echo &&
1464      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1465    elif test -f "$ac_srcdir/configure"; then
1466      echo &&
1467      $SHELL "$ac_srcdir/configure" --help=recursive
1468    else
1469      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1470    fi || ac_status=$?
1471    cd "$ac_pwd" || { ac_status=$?; break; }
1472  done
1473fi
1474
1475test -n "$ac_init_help" && exit $ac_status
1476if $ac_init_version; then
1477  cat <<\_ACEOF
1478xditview configure 1.0.3
1479generated by GNU Autoconf 2.68
1480
1481Copyright (C) 2010 Free Software Foundation, Inc.
1482This configure script is free software; the Free Software Foundation
1483gives unlimited permission to copy, distribute and modify it.
1484_ACEOF
1485  exit
1486fi
1487
1488## ------------------------ ##
1489## Autoconf initialization. ##
1490## ------------------------ ##
1491
1492# ac_fn_c_try_compile LINENO
1493# --------------------------
1494# Try to compile conftest.$ac_ext, and return whether this succeeded.
1495ac_fn_c_try_compile ()
1496{
1497  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498  rm -f conftest.$ac_objext
1499  if { { ac_try="$ac_compile"
1500case "(($ac_try" in
1501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1502  *) ac_try_echo=$ac_try;;
1503esac
1504eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505$as_echo "$ac_try_echo"; } >&5
1506  (eval "$ac_compile") 2>conftest.err
1507  ac_status=$?
1508  if test -s conftest.err; then
1509    grep -v '^ *+' conftest.err >conftest.er1
1510    cat conftest.er1 >&5
1511    mv -f conftest.er1 conftest.err
1512  fi
1513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514  test $ac_status = 0; } && {
1515	 test -z "$ac_c_werror_flag" ||
1516	 test ! -s conftest.err
1517       } && test -s conftest.$ac_objext; then :
1518  ac_retval=0
1519else
1520  $as_echo "$as_me: failed program was:" >&5
1521sed 's/^/| /' conftest.$ac_ext >&5
1522
1523	ac_retval=1
1524fi
1525  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1526  as_fn_set_status $ac_retval
1527
1528} # ac_fn_c_try_compile
1529
1530# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1531# ---------------------------------------------
1532# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1533# accordingly.
1534ac_fn_c_check_decl ()
1535{
1536  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537  as_decl_name=`echo $2|sed 's/ *(.*//'`
1538  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1539  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1540$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1541if eval \${$3+:} false; then :
1542  $as_echo_n "(cached) " >&6
1543else
1544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1545/* end confdefs.h.  */
1546$4
1547int
1548main ()
1549{
1550#ifndef $as_decl_name
1551#ifdef __cplusplus
1552  (void) $as_decl_use;
1553#else
1554  (void) $as_decl_name;
1555#endif
1556#endif
1557
1558  ;
1559  return 0;
1560}
1561_ACEOF
1562if ac_fn_c_try_compile "$LINENO"; then :
1563  eval "$3=yes"
1564else
1565  eval "$3=no"
1566fi
1567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1568fi
1569eval ac_res=\$$3
1570	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1571$as_echo "$ac_res" >&6; }
1572  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573
1574} # ac_fn_c_check_decl
1575
1576# ac_fn_c_try_cpp LINENO
1577# ----------------------
1578# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1579ac_fn_c_try_cpp ()
1580{
1581  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582  if { { ac_try="$ac_cpp conftest.$ac_ext"
1583case "(($ac_try" in
1584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585  *) ac_try_echo=$ac_try;;
1586esac
1587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588$as_echo "$ac_try_echo"; } >&5
1589  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1590  ac_status=$?
1591  if test -s conftest.err; then
1592    grep -v '^ *+' conftest.err >conftest.er1
1593    cat conftest.er1 >&5
1594    mv -f conftest.er1 conftest.err
1595  fi
1596  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597  test $ac_status = 0; } > conftest.i && {
1598	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1599	 test ! -s conftest.err
1600       }; then :
1601  ac_retval=0
1602else
1603  $as_echo "$as_me: failed program was:" >&5
1604sed 's/^/| /' conftest.$ac_ext >&5
1605
1606    ac_retval=1
1607fi
1608  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609  as_fn_set_status $ac_retval
1610
1611} # ac_fn_c_try_cpp
1612
1613# ac_fn_c_try_run LINENO
1614# ----------------------
1615# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1616# that executables *can* be run.
1617ac_fn_c_try_run ()
1618{
1619  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620  if { { ac_try="$ac_link"
1621case "(($ac_try" in
1622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623  *) ac_try_echo=$ac_try;;
1624esac
1625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626$as_echo "$ac_try_echo"; } >&5
1627  (eval "$ac_link") 2>&5
1628  ac_status=$?
1629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1631  { { case "(($ac_try" in
1632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633  *) ac_try_echo=$ac_try;;
1634esac
1635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636$as_echo "$ac_try_echo"; } >&5
1637  (eval "$ac_try") 2>&5
1638  ac_status=$?
1639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640  test $ac_status = 0; }; }; then :
1641  ac_retval=0
1642else
1643  $as_echo "$as_me: program exited with status $ac_status" >&5
1644       $as_echo "$as_me: failed program was:" >&5
1645sed 's/^/| /' conftest.$ac_ext >&5
1646
1647       ac_retval=$ac_status
1648fi
1649  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1650  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651  as_fn_set_status $ac_retval
1652
1653} # ac_fn_c_try_run
1654
1655# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1656# -------------------------------------------------------
1657# Tests whether HEADER exists and can be compiled using the include files in
1658# INCLUDES, setting the cache variable VAR accordingly.
1659ac_fn_c_check_header_compile ()
1660{
1661  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663$as_echo_n "checking for $2... " >&6; }
1664if eval \${$3+:} false; then :
1665  $as_echo_n "(cached) " >&6
1666else
1667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668/* end confdefs.h.  */
1669$4
1670#include <$2>
1671_ACEOF
1672if ac_fn_c_try_compile "$LINENO"; then :
1673  eval "$3=yes"
1674else
1675  eval "$3=no"
1676fi
1677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678fi
1679eval ac_res=\$$3
1680	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681$as_echo "$ac_res" >&6; }
1682  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683
1684} # ac_fn_c_check_header_compile
1685
1686# ac_fn_c_try_link LINENO
1687# -----------------------
1688# Try to link conftest.$ac_ext, and return whether this succeeded.
1689ac_fn_c_try_link ()
1690{
1691  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692  rm -f conftest.$ac_objext conftest$ac_exeext
1693  if { { ac_try="$ac_link"
1694case "(($ac_try" in
1695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696  *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699$as_echo "$ac_try_echo"; } >&5
1700  (eval "$ac_link") 2>conftest.err
1701  ac_status=$?
1702  if test -s conftest.err; then
1703    grep -v '^ *+' conftest.err >conftest.er1
1704    cat conftest.er1 >&5
1705    mv -f conftest.er1 conftest.err
1706  fi
1707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708  test $ac_status = 0; } && {
1709	 test -z "$ac_c_werror_flag" ||
1710	 test ! -s conftest.err
1711       } && test -s conftest$ac_exeext && {
1712	 test "$cross_compiling" = yes ||
1713	 $as_test_x conftest$ac_exeext
1714       }; then :
1715  ac_retval=0
1716else
1717  $as_echo "$as_me: failed program was:" >&5
1718sed 's/^/| /' conftest.$ac_ext >&5
1719
1720	ac_retval=1
1721fi
1722  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1723  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1724  # interfere with the next link command; also delete a directory that is
1725  # left behind by Apple's compiler.  We do this before executing the actions.
1726  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728  as_fn_set_status $ac_retval
1729
1730} # ac_fn_c_try_link
1731
1732# ac_fn_c_check_func LINENO FUNC VAR
1733# ----------------------------------
1734# Tests whether FUNC exists, setting the cache variable VAR accordingly
1735ac_fn_c_check_func ()
1736{
1737  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739$as_echo_n "checking for $2... " >&6; }
1740if eval \${$3+:} false; then :
1741  $as_echo_n "(cached) " >&6
1742else
1743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744/* end confdefs.h.  */
1745/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1746   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1747#define $2 innocuous_$2
1748
1749/* System header to define __stub macros and hopefully few prototypes,
1750    which can conflict with char $2 (); below.
1751    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1752    <limits.h> exists even on freestanding compilers.  */
1753
1754#ifdef __STDC__
1755# include <limits.h>
1756#else
1757# include <assert.h>
1758#endif
1759
1760#undef $2
1761
1762/* Override any GCC internal prototype to avoid an error.
1763   Use char because int might match the return type of a GCC
1764   builtin and then its argument prototype would still apply.  */
1765#ifdef __cplusplus
1766extern "C"
1767#endif
1768char $2 ();
1769/* The GNU C library defines this for functions which it implements
1770    to always fail with ENOSYS.  Some functions are actually named
1771    something starting with __ and the normal name is an alias.  */
1772#if defined __stub_$2 || defined __stub___$2
1773choke me
1774#endif
1775
1776int
1777main ()
1778{
1779return $2 ();
1780  ;
1781  return 0;
1782}
1783_ACEOF
1784if ac_fn_c_try_link "$LINENO"; then :
1785  eval "$3=yes"
1786else
1787  eval "$3=no"
1788fi
1789rm -f core conftest.err conftest.$ac_objext \
1790    conftest$ac_exeext conftest.$ac_ext
1791fi
1792eval ac_res=\$$3
1793	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794$as_echo "$ac_res" >&6; }
1795  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796
1797} # ac_fn_c_check_func
1798cat >config.log <<_ACEOF
1799This file contains any messages produced by compilers while
1800running configure, to aid debugging if configure makes a mistake.
1801
1802It was created by xditview $as_me 1.0.3, which was
1803generated by GNU Autoconf 2.68.  Invocation command line was
1804
1805  $ $0 $@
1806
1807_ACEOF
1808exec 5>>config.log
1809{
1810cat <<_ASUNAME
1811## --------- ##
1812## Platform. ##
1813## --------- ##
1814
1815hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1816uname -m = `(uname -m) 2>/dev/null || echo unknown`
1817uname -r = `(uname -r) 2>/dev/null || echo unknown`
1818uname -s = `(uname -s) 2>/dev/null || echo unknown`
1819uname -v = `(uname -v) 2>/dev/null || echo unknown`
1820
1821/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1822/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1823
1824/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1825/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1826/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1827/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1828/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1829/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1830/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1831
1832_ASUNAME
1833
1834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835for as_dir in $PATH
1836do
1837  IFS=$as_save_IFS
1838  test -z "$as_dir" && as_dir=.
1839    $as_echo "PATH: $as_dir"
1840  done
1841IFS=$as_save_IFS
1842
1843} >&5
1844
1845cat >&5 <<_ACEOF
1846
1847
1848## ----------- ##
1849## Core tests. ##
1850## ----------- ##
1851
1852_ACEOF
1853
1854
1855# Keep a trace of the command line.
1856# Strip out --no-create and --no-recursion so they do not pile up.
1857# Strip out --silent because we don't want to record it for future runs.
1858# Also quote any args containing shell meta-characters.
1859# Make two passes to allow for proper duplicate-argument suppression.
1860ac_configure_args=
1861ac_configure_args0=
1862ac_configure_args1=
1863ac_must_keep_next=false
1864for ac_pass in 1 2
1865do
1866  for ac_arg
1867  do
1868    case $ac_arg in
1869    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1870    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1871    | -silent | --silent | --silen | --sile | --sil)
1872      continue ;;
1873    *\'*)
1874      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1875    esac
1876    case $ac_pass in
1877    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1878    2)
1879      as_fn_append ac_configure_args1 " '$ac_arg'"
1880      if test $ac_must_keep_next = true; then
1881	ac_must_keep_next=false # Got value, back to normal.
1882      else
1883	case $ac_arg in
1884	  *=* | --config-cache | -C | -disable-* | --disable-* \
1885	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1886	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1887	  | -with-* | --with-* | -without-* | --without-* | --x)
1888	    case "$ac_configure_args0 " in
1889	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1890	    esac
1891	    ;;
1892	  -* ) ac_must_keep_next=true ;;
1893	esac
1894      fi
1895      as_fn_append ac_configure_args " '$ac_arg'"
1896      ;;
1897    esac
1898  done
1899done
1900{ ac_configure_args0=; unset ac_configure_args0;}
1901{ ac_configure_args1=; unset ac_configure_args1;}
1902
1903# When interrupted or exit'd, cleanup temporary files, and complete
1904# config.log.  We remove comments because anyway the quotes in there
1905# would cause problems or look ugly.
1906# WARNING: Use '\'' to represent an apostrophe within the trap.
1907# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1908trap 'exit_status=$?
1909  # Save into config.log some information that might help in debugging.
1910  {
1911    echo
1912
1913    $as_echo "## ---------------- ##
1914## Cache variables. ##
1915## ---------------- ##"
1916    echo
1917    # The following way of writing the cache mishandles newlines in values,
1918(
1919  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1920    eval ac_val=\$$ac_var
1921    case $ac_val in #(
1922    *${as_nl}*)
1923      case $ac_var in #(
1924      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1925$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1926      esac
1927      case $ac_var in #(
1928      _ | IFS | as_nl) ;; #(
1929      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1930      *) { eval $ac_var=; unset $ac_var;} ;;
1931      esac ;;
1932    esac
1933  done
1934  (set) 2>&1 |
1935    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1936    *${as_nl}ac_space=\ *)
1937      sed -n \
1938	"s/'\''/'\''\\\\'\'''\''/g;
1939	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1940      ;; #(
1941    *)
1942      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1943      ;;
1944    esac |
1945    sort
1946)
1947    echo
1948
1949    $as_echo "## ----------------- ##
1950## Output variables. ##
1951## ----------------- ##"
1952    echo
1953    for ac_var in $ac_subst_vars
1954    do
1955      eval ac_val=\$$ac_var
1956      case $ac_val in
1957      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1958      esac
1959      $as_echo "$ac_var='\''$ac_val'\''"
1960    done | sort
1961    echo
1962
1963    if test -n "$ac_subst_files"; then
1964      $as_echo "## ------------------- ##
1965## File substitutions. ##
1966## ------------------- ##"
1967      echo
1968      for ac_var in $ac_subst_files
1969      do
1970	eval ac_val=\$$ac_var
1971	case $ac_val in
1972	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1973	esac
1974	$as_echo "$ac_var='\''$ac_val'\''"
1975      done | sort
1976      echo
1977    fi
1978
1979    if test -s confdefs.h; then
1980      $as_echo "## ----------- ##
1981## confdefs.h. ##
1982## ----------- ##"
1983      echo
1984      cat confdefs.h
1985      echo
1986    fi
1987    test "$ac_signal" != 0 &&
1988      $as_echo "$as_me: caught signal $ac_signal"
1989    $as_echo "$as_me: exit $exit_status"
1990  } >&5
1991  rm -f core *.core core.conftest.* &&
1992    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1993    exit $exit_status
1994' 0
1995for ac_signal in 1 2 13 15; do
1996  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1997done
1998ac_signal=0
1999
2000# confdefs.h avoids OS command line length limits that DEFS can exceed.
2001rm -f -r conftest* confdefs.h
2002
2003$as_echo "/* confdefs.h */" > confdefs.h
2004
2005# Predefined preprocessor variables.
2006
2007cat >>confdefs.h <<_ACEOF
2008#define PACKAGE_NAME "$PACKAGE_NAME"
2009_ACEOF
2010
2011cat >>confdefs.h <<_ACEOF
2012#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2013_ACEOF
2014
2015cat >>confdefs.h <<_ACEOF
2016#define PACKAGE_VERSION "$PACKAGE_VERSION"
2017_ACEOF
2018
2019cat >>confdefs.h <<_ACEOF
2020#define PACKAGE_STRING "$PACKAGE_STRING"
2021_ACEOF
2022
2023cat >>confdefs.h <<_ACEOF
2024#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2025_ACEOF
2026
2027cat >>confdefs.h <<_ACEOF
2028#define PACKAGE_URL "$PACKAGE_URL"
2029_ACEOF
2030
2031
2032# Let the site file select an alternate cache file if it wants to.
2033# Prefer an explicitly selected file to automatically selected ones.
2034ac_site_file1=NONE
2035ac_site_file2=NONE
2036if test -n "$CONFIG_SITE"; then
2037  # We do not want a PATH search for config.site.
2038  case $CONFIG_SITE in #((
2039    -*)  ac_site_file1=./$CONFIG_SITE;;
2040    */*) ac_site_file1=$CONFIG_SITE;;
2041    *)   ac_site_file1=./$CONFIG_SITE;;
2042  esac
2043elif test "x$prefix" != xNONE; then
2044  ac_site_file1=$prefix/share/config.site
2045  ac_site_file2=$prefix/etc/config.site
2046else
2047  ac_site_file1=$ac_default_prefix/share/config.site
2048  ac_site_file2=$ac_default_prefix/etc/config.site
2049fi
2050for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2051do
2052  test "x$ac_site_file" = xNONE && continue
2053  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2054    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2055$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2056    sed 's/^/| /' "$ac_site_file" >&5
2057    . "$ac_site_file" \
2058      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2060as_fn_error $? "failed to load site script $ac_site_file
2061See \`config.log' for more details" "$LINENO" 5; }
2062  fi
2063done
2064
2065if test -r "$cache_file"; then
2066  # Some versions of bash will fail to source /dev/null (special files
2067  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2068  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2069    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2070$as_echo "$as_me: loading cache $cache_file" >&6;}
2071    case $cache_file in
2072      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2073      *)                      . "./$cache_file";;
2074    esac
2075  fi
2076else
2077  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2078$as_echo "$as_me: creating cache $cache_file" >&6;}
2079  >$cache_file
2080fi
2081
2082# Check that the precious variables saved in the cache have kept the same
2083# value.
2084ac_cache_corrupted=false
2085for ac_var in $ac_precious_vars; do
2086  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2087  eval ac_new_set=\$ac_env_${ac_var}_set
2088  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2089  eval ac_new_val=\$ac_env_${ac_var}_value
2090  case $ac_old_set,$ac_new_set in
2091    set,)
2092      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2093$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2094      ac_cache_corrupted=: ;;
2095    ,set)
2096      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2097$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2098      ac_cache_corrupted=: ;;
2099    ,);;
2100    *)
2101      if test "x$ac_old_val" != "x$ac_new_val"; then
2102	# differences in whitespace do not lead to failure.
2103	ac_old_val_w=`echo x $ac_old_val`
2104	ac_new_val_w=`echo x $ac_new_val`
2105	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2106	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2107$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2108	  ac_cache_corrupted=:
2109	else
2110	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2111$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2112	  eval $ac_var=\$ac_old_val
2113	fi
2114	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2115$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2116	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2117$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2118      fi;;
2119  esac
2120  # Pass precious variables to config.status.
2121  if test "$ac_new_set" = set; then
2122    case $ac_new_val in
2123    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2124    *) ac_arg=$ac_var=$ac_new_val ;;
2125    esac
2126    case " $ac_configure_args " in
2127      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2128      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2129    esac
2130  fi
2131done
2132if $ac_cache_corrupted; then
2133  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2135  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2136$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2137  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2138fi
2139## -------------------- ##
2140## Main body of script. ##
2141## -------------------- ##
2142
2143ac_ext=c
2144ac_cpp='$CPP $CPPFLAGS'
2145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2147ac_compiler_gnu=$ac_cv_c_compiler_gnu
2148
2149
2150am__api_version='1.11'
2151
2152ac_aux_dir=
2153for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2154  if test -f "$ac_dir/install-sh"; then
2155    ac_aux_dir=$ac_dir
2156    ac_install_sh="$ac_aux_dir/install-sh -c"
2157    break
2158  elif test -f "$ac_dir/install.sh"; then
2159    ac_aux_dir=$ac_dir
2160    ac_install_sh="$ac_aux_dir/install.sh -c"
2161    break
2162  elif test -f "$ac_dir/shtool"; then
2163    ac_aux_dir=$ac_dir
2164    ac_install_sh="$ac_aux_dir/shtool install -c"
2165    break
2166  fi
2167done
2168if test -z "$ac_aux_dir"; then
2169  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2170fi
2171
2172# These three variables are undocumented and unsupported,
2173# and are intended to be withdrawn in a future Autoconf release.
2174# They can cause serious problems if a builder's source tree is in a directory
2175# whose full name contains unusual characters.
2176ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2177ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2178ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2179
2180
2181# Find a good install program.  We prefer a C program (faster),
2182# so one script is as good as another.  But avoid the broken or
2183# incompatible versions:
2184# SysV /etc/install, /usr/sbin/install
2185# SunOS /usr/etc/install
2186# IRIX /sbin/install
2187# AIX /bin/install
2188# AmigaOS /C/install, which installs bootblocks on floppy discs
2189# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2190# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2191# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2192# OS/2's system install, which has a completely different semantic
2193# ./install, which can be erroneously created by make from ./install.sh.
2194# Reject install programs that cannot install multiple files.
2195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2196$as_echo_n "checking for a BSD-compatible install... " >&6; }
2197if test -z "$INSTALL"; then
2198if ${ac_cv_path_install+:} false; then :
2199  $as_echo_n "(cached) " >&6
2200else
2201  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202for as_dir in $PATH
2203do
2204  IFS=$as_save_IFS
2205  test -z "$as_dir" && as_dir=.
2206    # Account for people who put trailing slashes in PATH elements.
2207case $as_dir/ in #((
2208  ./ | .// | /[cC]/* | \
2209  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2210  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2211  /usr/ucb/* ) ;;
2212  *)
2213    # OSF1 and SCO ODT 3.0 have their own names for install.
2214    # Don't use installbsd from OSF since it installs stuff as root
2215    # by default.
2216    for ac_prog in ginstall scoinst install; do
2217      for ac_exec_ext in '' $ac_executable_extensions; do
2218	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2219	  if test $ac_prog = install &&
2220	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2221	    # AIX install.  It has an incompatible calling convention.
2222	    :
2223	  elif test $ac_prog = install &&
2224	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2225	    # program-specific install script used by HP pwplus--don't use.
2226	    :
2227	  else
2228	    rm -rf conftest.one conftest.two conftest.dir
2229	    echo one > conftest.one
2230	    echo two > conftest.two
2231	    mkdir conftest.dir
2232	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2233	      test -s conftest.one && test -s conftest.two &&
2234	      test -s conftest.dir/conftest.one &&
2235	      test -s conftest.dir/conftest.two
2236	    then
2237	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2238	      break 3
2239	    fi
2240	  fi
2241	fi
2242      done
2243    done
2244    ;;
2245esac
2246
2247  done
2248IFS=$as_save_IFS
2249
2250rm -rf conftest.one conftest.two conftest.dir
2251
2252fi
2253  if test "${ac_cv_path_install+set}" = set; then
2254    INSTALL=$ac_cv_path_install
2255  else
2256    # As a last resort, use the slow shell script.  Don't cache a
2257    # value for INSTALL within a source directory, because that will
2258    # break other packages using the cache if that directory is
2259    # removed, or if the value is a relative name.
2260    INSTALL=$ac_install_sh
2261  fi
2262fi
2263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2264$as_echo "$INSTALL" >&6; }
2265
2266# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2267# It thinks the first close brace ends the variable substitution.
2268test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2269
2270test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2271
2272test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2273
2274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2275$as_echo_n "checking whether build environment is sane... " >&6; }
2276# Just in case
2277sleep 1
2278echo timestamp > conftest.file
2279# Reject unsafe characters in $srcdir or the absolute working directory
2280# name.  Accept space and tab only in the latter.
2281am_lf='
2282'
2283case `pwd` in
2284  *[\\\"\#\$\&\'\`$am_lf]*)
2285    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2286esac
2287case $srcdir in
2288  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2289    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2290esac
2291
2292# Do `set' in a subshell so we don't clobber the current shell's
2293# arguments.  Must try -L first in case configure is actually a
2294# symlink; some systems play weird games with the mod time of symlinks
2295# (eg FreeBSD returns the mod time of the symlink's containing
2296# directory).
2297if (
2298   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2299   if test "$*" = "X"; then
2300      # -L didn't work.
2301      set X `ls -t "$srcdir/configure" conftest.file`
2302   fi
2303   rm -f conftest.file
2304   if test "$*" != "X $srcdir/configure conftest.file" \
2305      && test "$*" != "X conftest.file $srcdir/configure"; then
2306
2307      # If neither matched, then we have a broken ls.  This can happen
2308      # if, for instance, CONFIG_SHELL is bash and it inherits a
2309      # broken ls alias from the environment.  This has actually
2310      # happened.  Such a system could not be considered "sane".
2311      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2312alias in your environment" "$LINENO" 5
2313   fi
2314
2315   test "$2" = conftest.file
2316   )
2317then
2318   # Ok.
2319   :
2320else
2321   as_fn_error $? "newly created file is older than distributed files!
2322Check your system clock" "$LINENO" 5
2323fi
2324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2325$as_echo "yes" >&6; }
2326test "$program_prefix" != NONE &&
2327  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2328# Use a double $ so make ignores it.
2329test "$program_suffix" != NONE &&
2330  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2331# Double any \ or $.
2332# By default was `s,x,x', remove it if useless.
2333ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2334program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2335
2336# expand $ac_aux_dir to an absolute path
2337am_aux_dir=`cd $ac_aux_dir && pwd`
2338
2339if test x"${MISSING+set}" != xset; then
2340  case $am_aux_dir in
2341  *\ * | *\	*)
2342    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2343  *)
2344    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2345  esac
2346fi
2347# Use eval to expand $SHELL
2348if eval "$MISSING --run true"; then
2349  am_missing_run="$MISSING --run "
2350else
2351  am_missing_run=
2352  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2353$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2354fi
2355
2356if test x"${install_sh}" != xset; then
2357  case $am_aux_dir in
2358  *\ * | *\	*)
2359    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2360  *)
2361    install_sh="\${SHELL} $am_aux_dir/install-sh"
2362  esac
2363fi
2364
2365# Installed binaries are usually stripped using `strip' when the user
2366# run `make install-strip'.  However `strip' might not be the right
2367# tool to use in cross-compilation environments, therefore Automake
2368# will honor the `STRIP' environment variable to overrule this program.
2369if test "$cross_compiling" != no; then
2370  if test -n "$ac_tool_prefix"; then
2371  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2372set dummy ${ac_tool_prefix}strip; ac_word=$2
2373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2374$as_echo_n "checking for $ac_word... " >&6; }
2375if ${ac_cv_prog_STRIP+:} false; then :
2376  $as_echo_n "(cached) " >&6
2377else
2378  if test -n "$STRIP"; then
2379  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2380else
2381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382for as_dir in $PATH
2383do
2384  IFS=$as_save_IFS
2385  test -z "$as_dir" && as_dir=.
2386    for ac_exec_ext in '' $ac_executable_extensions; do
2387  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2388    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2389    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2390    break 2
2391  fi
2392done
2393  done
2394IFS=$as_save_IFS
2395
2396fi
2397fi
2398STRIP=$ac_cv_prog_STRIP
2399if test -n "$STRIP"; then
2400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2401$as_echo "$STRIP" >&6; }
2402else
2403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2404$as_echo "no" >&6; }
2405fi
2406
2407
2408fi
2409if test -z "$ac_cv_prog_STRIP"; then
2410  ac_ct_STRIP=$STRIP
2411  # Extract the first word of "strip", so it can be a program name with args.
2412set dummy strip; ac_word=$2
2413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2414$as_echo_n "checking for $ac_word... " >&6; }
2415if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2416  $as_echo_n "(cached) " >&6
2417else
2418  if test -n "$ac_ct_STRIP"; then
2419  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2420else
2421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422for as_dir in $PATH
2423do
2424  IFS=$as_save_IFS
2425  test -z "$as_dir" && as_dir=.
2426    for ac_exec_ext in '' $ac_executable_extensions; do
2427  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2428    ac_cv_prog_ac_ct_STRIP="strip"
2429    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2430    break 2
2431  fi
2432done
2433  done
2434IFS=$as_save_IFS
2435
2436fi
2437fi
2438ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2439if test -n "$ac_ct_STRIP"; then
2440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2441$as_echo "$ac_ct_STRIP" >&6; }
2442else
2443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2444$as_echo "no" >&6; }
2445fi
2446
2447  if test "x$ac_ct_STRIP" = x; then
2448    STRIP=":"
2449  else
2450    case $cross_compiling:$ac_tool_warned in
2451yes:)
2452{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2453$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2454ac_tool_warned=yes ;;
2455esac
2456    STRIP=$ac_ct_STRIP
2457  fi
2458else
2459  STRIP="$ac_cv_prog_STRIP"
2460fi
2461
2462fi
2463INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2464
2465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2466$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2467if test -z "$MKDIR_P"; then
2468  if ${ac_cv_path_mkdir+:} false; then :
2469  $as_echo_n "(cached) " >&6
2470else
2471  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2473do
2474  IFS=$as_save_IFS
2475  test -z "$as_dir" && as_dir=.
2476    for ac_prog in mkdir gmkdir; do
2477	 for ac_exec_ext in '' $ac_executable_extensions; do
2478	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2479	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2480	     'mkdir (GNU coreutils) '* | \
2481	     'mkdir (coreutils) '* | \
2482	     'mkdir (fileutils) '4.1*)
2483	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2484	       break 3;;
2485	   esac
2486	 done
2487       done
2488  done
2489IFS=$as_save_IFS
2490
2491fi
2492
2493  test -d ./--version && rmdir ./--version
2494  if test "${ac_cv_path_mkdir+set}" = set; then
2495    MKDIR_P="$ac_cv_path_mkdir -p"
2496  else
2497    # As a last resort, use the slow shell script.  Don't cache a
2498    # value for MKDIR_P within a source directory, because that will
2499    # break other packages using the cache if that directory is
2500    # removed, or if the value is a relative name.
2501    MKDIR_P="$ac_install_sh -d"
2502  fi
2503fi
2504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2505$as_echo "$MKDIR_P" >&6; }
2506
2507mkdir_p="$MKDIR_P"
2508case $mkdir_p in
2509  [\\/$]* | ?:[\\/]*) ;;
2510  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2511esac
2512
2513for ac_prog in gawk mawk nawk awk
2514do
2515  # Extract the first word of "$ac_prog", so it can be a program name with args.
2516set dummy $ac_prog; ac_word=$2
2517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2518$as_echo_n "checking for $ac_word... " >&6; }
2519if ${ac_cv_prog_AWK+:} false; then :
2520  $as_echo_n "(cached) " >&6
2521else
2522  if test -n "$AWK"; then
2523  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2524else
2525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526for as_dir in $PATH
2527do
2528  IFS=$as_save_IFS
2529  test -z "$as_dir" && as_dir=.
2530    for ac_exec_ext in '' $ac_executable_extensions; do
2531  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2532    ac_cv_prog_AWK="$ac_prog"
2533    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2534    break 2
2535  fi
2536done
2537  done
2538IFS=$as_save_IFS
2539
2540fi
2541fi
2542AWK=$ac_cv_prog_AWK
2543if test -n "$AWK"; then
2544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2545$as_echo "$AWK" >&6; }
2546else
2547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2548$as_echo "no" >&6; }
2549fi
2550
2551
2552  test -n "$AWK" && break
2553done
2554
2555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2556$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2557set x ${MAKE-make}
2558ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2559if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2560  $as_echo_n "(cached) " >&6
2561else
2562  cat >conftest.make <<\_ACEOF
2563SHELL = /bin/sh
2564all:
2565	@echo '@@@%%%=$(MAKE)=@@@%%%'
2566_ACEOF
2567# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2568case `${MAKE-make} -f conftest.make 2>/dev/null` in
2569  *@@@%%%=?*=@@@%%%*)
2570    eval ac_cv_prog_make_${ac_make}_set=yes;;
2571  *)
2572    eval ac_cv_prog_make_${ac_make}_set=no;;
2573esac
2574rm -f conftest.make
2575fi
2576if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2578$as_echo "yes" >&6; }
2579  SET_MAKE=
2580else
2581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2582$as_echo "no" >&6; }
2583  SET_MAKE="MAKE=${MAKE-make}"
2584fi
2585
2586rm -rf .tst 2>/dev/null
2587mkdir .tst 2>/dev/null
2588if test -d .tst; then
2589  am__leading_dot=.
2590else
2591  am__leading_dot=_
2592fi
2593rmdir .tst 2>/dev/null
2594
2595if test "`cd $srcdir && pwd`" != "`pwd`"; then
2596  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2597  # is not polluted with repeated "-I."
2598  am__isrc=' -I$(srcdir)'
2599  # test to see if srcdir already configured
2600  if test -f $srcdir/config.status; then
2601    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2602  fi
2603fi
2604
2605# test whether we have cygpath
2606if test -z "$CYGPATH_W"; then
2607  if (cygpath --version) >/dev/null 2>/dev/null; then
2608    CYGPATH_W='cygpath -w'
2609  else
2610    CYGPATH_W=echo
2611  fi
2612fi
2613
2614
2615# Define the identity of the package.
2616 PACKAGE='xditview'
2617 VERSION='1.0.3'
2618
2619
2620cat >>confdefs.h <<_ACEOF
2621#define PACKAGE "$PACKAGE"
2622_ACEOF
2623
2624
2625cat >>confdefs.h <<_ACEOF
2626#define VERSION "$VERSION"
2627_ACEOF
2628
2629# Some tools Automake needs.
2630
2631ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2632
2633
2634AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2635
2636
2637AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2638
2639
2640AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2641
2642
2643MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2644
2645# We need awk for the "check" target.  The system "awk" is bad on
2646# some platforms.
2647# Always define AMTAR for backward compatibility.
2648
2649AMTAR=${AMTAR-"${am_missing_run}tar"}
2650
2651am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2652
2653
2654
2655
2656
2657
2658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2659$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2660    # Check whether --enable-maintainer-mode was given.
2661if test "${enable_maintainer_mode+set}" = set; then :
2662  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2663else
2664  USE_MAINTAINER_MODE=no
2665fi
2666
2667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2668$as_echo "$USE_MAINTAINER_MODE" >&6; }
2669   if test $USE_MAINTAINER_MODE = yes; then
2670  MAINTAINER_MODE_TRUE=
2671  MAINTAINER_MODE_FALSE='#'
2672else
2673  MAINTAINER_MODE_TRUE='#'
2674  MAINTAINER_MODE_FALSE=
2675fi
2676
2677  MAINT=$MAINTAINER_MODE_TRUE
2678
2679
2680
2681# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693DEPDIR="${am__leading_dot}deps"
2694
2695ac_config_commands="$ac_config_commands depfiles"
2696
2697
2698am_make=${MAKE-make}
2699cat > confinc << 'END'
2700am__doit:
2701	@echo this is the am__doit target
2702.PHONY: am__doit
2703END
2704# If we don't find an include directive, just comment out the code.
2705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2706$as_echo_n "checking for style of include used by $am_make... " >&6; }
2707am__include="#"
2708am__quote=
2709_am_result=none
2710# First try GNU make style include.
2711echo "include confinc" > confmf
2712# Ignore all kinds of additional output from `make'.
2713case `$am_make -s -f confmf 2> /dev/null` in #(
2714*the\ am__doit\ target*)
2715  am__include=include
2716  am__quote=
2717  _am_result=GNU
2718  ;;
2719esac
2720# Now try BSD make style include.
2721if test "$am__include" = "#"; then
2722   echo '.include "confinc"' > confmf
2723   case `$am_make -s -f confmf 2> /dev/null` in #(
2724   *the\ am__doit\ target*)
2725     am__include=.include
2726     am__quote="\""
2727     _am_result=BSD
2728     ;;
2729   esac
2730fi
2731
2732
2733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2734$as_echo "$_am_result" >&6; }
2735rm -f confinc confmf
2736
2737# Check whether --enable-dependency-tracking was given.
2738if test "${enable_dependency_tracking+set}" = set; then :
2739  enableval=$enable_dependency_tracking;
2740fi
2741
2742if test "x$enable_dependency_tracking" != xno; then
2743  am_depcomp="$ac_aux_dir/depcomp"
2744  AMDEPBACKSLASH='\'
2745  am__nodep='_no'
2746fi
2747 if test "x$enable_dependency_tracking" != xno; then
2748  AMDEP_TRUE=
2749  AMDEP_FALSE='#'
2750else
2751  AMDEP_TRUE='#'
2752  AMDEP_FALSE=
2753fi
2754
2755
2756ac_ext=c
2757ac_cpp='$CPP $CPPFLAGS'
2758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760ac_compiler_gnu=$ac_cv_c_compiler_gnu
2761if test -n "$ac_tool_prefix"; then
2762  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2763set dummy ${ac_tool_prefix}gcc; ac_word=$2
2764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2765$as_echo_n "checking for $ac_word... " >&6; }
2766if ${ac_cv_prog_CC+:} false; then :
2767  $as_echo_n "(cached) " >&6
2768else
2769  if test -n "$CC"; then
2770  ac_cv_prog_CC="$CC" # Let the user override the test.
2771else
2772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773for as_dir in $PATH
2774do
2775  IFS=$as_save_IFS
2776  test -z "$as_dir" && as_dir=.
2777    for ac_exec_ext in '' $ac_executable_extensions; do
2778  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2779    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2780    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2781    break 2
2782  fi
2783done
2784  done
2785IFS=$as_save_IFS
2786
2787fi
2788fi
2789CC=$ac_cv_prog_CC
2790if test -n "$CC"; then
2791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2792$as_echo "$CC" >&6; }
2793else
2794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2795$as_echo "no" >&6; }
2796fi
2797
2798
2799fi
2800if test -z "$ac_cv_prog_CC"; then
2801  ac_ct_CC=$CC
2802  # Extract the first word of "gcc", so it can be a program name with args.
2803set dummy gcc; ac_word=$2
2804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2805$as_echo_n "checking for $ac_word... " >&6; }
2806if ${ac_cv_prog_ac_ct_CC+:} false; then :
2807  $as_echo_n "(cached) " >&6
2808else
2809  if test -n "$ac_ct_CC"; then
2810  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2811else
2812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813for as_dir in $PATH
2814do
2815  IFS=$as_save_IFS
2816  test -z "$as_dir" && as_dir=.
2817    for ac_exec_ext in '' $ac_executable_extensions; do
2818  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2819    ac_cv_prog_ac_ct_CC="gcc"
2820    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2821    break 2
2822  fi
2823done
2824  done
2825IFS=$as_save_IFS
2826
2827fi
2828fi
2829ac_ct_CC=$ac_cv_prog_ac_ct_CC
2830if test -n "$ac_ct_CC"; then
2831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2832$as_echo "$ac_ct_CC" >&6; }
2833else
2834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835$as_echo "no" >&6; }
2836fi
2837
2838  if test "x$ac_ct_CC" = x; then
2839    CC=""
2840  else
2841    case $cross_compiling:$ac_tool_warned in
2842yes:)
2843{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2845ac_tool_warned=yes ;;
2846esac
2847    CC=$ac_ct_CC
2848  fi
2849else
2850  CC="$ac_cv_prog_CC"
2851fi
2852
2853if test -z "$CC"; then
2854          if test -n "$ac_tool_prefix"; then
2855    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2856set dummy ${ac_tool_prefix}cc; ac_word=$2
2857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858$as_echo_n "checking for $ac_word... " >&6; }
2859if ${ac_cv_prog_CC+:} false; then :
2860  $as_echo_n "(cached) " >&6
2861else
2862  if test -n "$CC"; then
2863  ac_cv_prog_CC="$CC" # Let the user override the test.
2864else
2865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866for as_dir in $PATH
2867do
2868  IFS=$as_save_IFS
2869  test -z "$as_dir" && as_dir=.
2870    for ac_exec_ext in '' $ac_executable_extensions; do
2871  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2872    ac_cv_prog_CC="${ac_tool_prefix}cc"
2873    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874    break 2
2875  fi
2876done
2877  done
2878IFS=$as_save_IFS
2879
2880fi
2881fi
2882CC=$ac_cv_prog_CC
2883if test -n "$CC"; then
2884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2885$as_echo "$CC" >&6; }
2886else
2887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888$as_echo "no" >&6; }
2889fi
2890
2891
2892  fi
2893fi
2894if test -z "$CC"; then
2895  # Extract the first word of "cc", so it can be a program name with args.
2896set dummy cc; ac_word=$2
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898$as_echo_n "checking for $ac_word... " >&6; }
2899if ${ac_cv_prog_CC+:} false; then :
2900  $as_echo_n "(cached) " >&6
2901else
2902  if test -n "$CC"; then
2903  ac_cv_prog_CC="$CC" # Let the user override the test.
2904else
2905  ac_prog_rejected=no
2906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907for as_dir in $PATH
2908do
2909  IFS=$as_save_IFS
2910  test -z "$as_dir" && as_dir=.
2911    for ac_exec_ext in '' $ac_executable_extensions; do
2912  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2913    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2914       ac_prog_rejected=yes
2915       continue
2916     fi
2917    ac_cv_prog_CC="cc"
2918    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2919    break 2
2920  fi
2921done
2922  done
2923IFS=$as_save_IFS
2924
2925if test $ac_prog_rejected = yes; then
2926  # We found a bogon in the path, so make sure we never use it.
2927  set dummy $ac_cv_prog_CC
2928  shift
2929  if test $# != 0; then
2930    # We chose a different compiler from the bogus one.
2931    # However, it has the same basename, so the bogon will be chosen
2932    # first if we set CC to just the basename; use the full file name.
2933    shift
2934    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2935  fi
2936fi
2937fi
2938fi
2939CC=$ac_cv_prog_CC
2940if test -n "$CC"; then
2941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2942$as_echo "$CC" >&6; }
2943else
2944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945$as_echo "no" >&6; }
2946fi
2947
2948
2949fi
2950if test -z "$CC"; then
2951  if test -n "$ac_tool_prefix"; then
2952  for ac_prog in cl.exe
2953  do
2954    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2955set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957$as_echo_n "checking for $ac_word... " >&6; }
2958if ${ac_cv_prog_CC+:} false; then :
2959  $as_echo_n "(cached) " >&6
2960else
2961  if test -n "$CC"; then
2962  ac_cv_prog_CC="$CC" # Let the user override the test.
2963else
2964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965for as_dir in $PATH
2966do
2967  IFS=$as_save_IFS
2968  test -z "$as_dir" && as_dir=.
2969    for ac_exec_ext in '' $ac_executable_extensions; do
2970  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2971    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2972    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973    break 2
2974  fi
2975done
2976  done
2977IFS=$as_save_IFS
2978
2979fi
2980fi
2981CC=$ac_cv_prog_CC
2982if test -n "$CC"; then
2983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2984$as_echo "$CC" >&6; }
2985else
2986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987$as_echo "no" >&6; }
2988fi
2989
2990
2991    test -n "$CC" && break
2992  done
2993fi
2994if test -z "$CC"; then
2995  ac_ct_CC=$CC
2996  for ac_prog in cl.exe
2997do
2998  # Extract the first word of "$ac_prog", so it can be a program name with args.
2999set dummy $ac_prog; ac_word=$2
3000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001$as_echo_n "checking for $ac_word... " >&6; }
3002if ${ac_cv_prog_ac_ct_CC+:} false; then :
3003  $as_echo_n "(cached) " >&6
3004else
3005  if test -n "$ac_ct_CC"; then
3006  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3007else
3008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009for as_dir in $PATH
3010do
3011  IFS=$as_save_IFS
3012  test -z "$as_dir" && as_dir=.
3013    for ac_exec_ext in '' $ac_executable_extensions; do
3014  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3015    ac_cv_prog_ac_ct_CC="$ac_prog"
3016    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3017    break 2
3018  fi
3019done
3020  done
3021IFS=$as_save_IFS
3022
3023fi
3024fi
3025ac_ct_CC=$ac_cv_prog_ac_ct_CC
3026if test -n "$ac_ct_CC"; then
3027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3028$as_echo "$ac_ct_CC" >&6; }
3029else
3030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031$as_echo "no" >&6; }
3032fi
3033
3034
3035  test -n "$ac_ct_CC" && break
3036done
3037
3038  if test "x$ac_ct_CC" = x; then
3039    CC=""
3040  else
3041    case $cross_compiling:$ac_tool_warned in
3042yes:)
3043{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3044$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3045ac_tool_warned=yes ;;
3046esac
3047    CC=$ac_ct_CC
3048  fi
3049fi
3050
3051fi
3052
3053
3054test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3055$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3056as_fn_error $? "no acceptable C compiler found in \$PATH
3057See \`config.log' for more details" "$LINENO" 5; }
3058
3059# Provide some information about the compiler.
3060$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3061set X $ac_compile
3062ac_compiler=$2
3063for ac_option in --version -v -V -qversion; do
3064  { { ac_try="$ac_compiler $ac_option >&5"
3065case "(($ac_try" in
3066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067  *) ac_try_echo=$ac_try;;
3068esac
3069eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3070$as_echo "$ac_try_echo"; } >&5
3071  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3072  ac_status=$?
3073  if test -s conftest.err; then
3074    sed '10a\
3075... rest of stderr output deleted ...
3076         10q' conftest.err >conftest.er1
3077    cat conftest.er1 >&5
3078  fi
3079  rm -f conftest.er1 conftest.err
3080  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3081  test $ac_status = 0; }
3082done
3083
3084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3085/* end confdefs.h.  */
3086
3087int
3088main ()
3089{
3090
3091  ;
3092  return 0;
3093}
3094_ACEOF
3095ac_clean_files_save=$ac_clean_files
3096ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3097# Try to create an executable without -o first, disregard a.out.
3098# It will help us diagnose broken compilers, and finding out an intuition
3099# of exeext.
3100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3101$as_echo_n "checking whether the C compiler works... " >&6; }
3102ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3103
3104# The possible output files:
3105ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3106
3107ac_rmfiles=
3108for ac_file in $ac_files
3109do
3110  case $ac_file in
3111    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3112    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3113  esac
3114done
3115rm -f $ac_rmfiles
3116
3117if { { ac_try="$ac_link_default"
3118case "(($ac_try" in
3119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120  *) ac_try_echo=$ac_try;;
3121esac
3122eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3123$as_echo "$ac_try_echo"; } >&5
3124  (eval "$ac_link_default") 2>&5
3125  ac_status=$?
3126  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3127  test $ac_status = 0; }; then :
3128  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3129# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3130# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3131# so that the user can short-circuit this test for compilers unknown to
3132# Autoconf.
3133for ac_file in $ac_files ''
3134do
3135  test -f "$ac_file" || continue
3136  case $ac_file in
3137    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3138	;;
3139    [ab].out )
3140	# We found the default executable, but exeext='' is most
3141	# certainly right.
3142	break;;
3143    *.* )
3144	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3145	then :; else
3146	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3147	fi
3148	# We set ac_cv_exeext here because the later test for it is not
3149	# safe: cross compilers may not add the suffix if given an `-o'
3150	# argument, so we may need to know it at that point already.
3151	# Even if this section looks crufty: it has the advantage of
3152	# actually working.
3153	break;;
3154    * )
3155	break;;
3156  esac
3157done
3158test "$ac_cv_exeext" = no && ac_cv_exeext=
3159
3160else
3161  ac_file=''
3162fi
3163if test -z "$ac_file"; then :
3164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165$as_echo "no" >&6; }
3166$as_echo "$as_me: failed program was:" >&5
3167sed 's/^/| /' conftest.$ac_ext >&5
3168
3169{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3170$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3171as_fn_error 77 "C compiler cannot create executables
3172See \`config.log' for more details" "$LINENO" 5; }
3173else
3174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3175$as_echo "yes" >&6; }
3176fi
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3178$as_echo_n "checking for C compiler default output file name... " >&6; }
3179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3180$as_echo "$ac_file" >&6; }
3181ac_exeext=$ac_cv_exeext
3182
3183rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3184ac_clean_files=$ac_clean_files_save
3185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3186$as_echo_n "checking for suffix of executables... " >&6; }
3187if { { ac_try="$ac_link"
3188case "(($ac_try" in
3189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190  *) ac_try_echo=$ac_try;;
3191esac
3192eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3193$as_echo "$ac_try_echo"; } >&5
3194  (eval "$ac_link") 2>&5
3195  ac_status=$?
3196  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3197  test $ac_status = 0; }; then :
3198  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3199# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3200# work properly (i.e., refer to `conftest.exe'), while it won't with
3201# `rm'.
3202for ac_file in conftest.exe conftest conftest.*; do
3203  test -f "$ac_file" || continue
3204  case $ac_file in
3205    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3206    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3207	  break;;
3208    * ) break;;
3209  esac
3210done
3211else
3212  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3215See \`config.log' for more details" "$LINENO" 5; }
3216fi
3217rm -f conftest conftest$ac_cv_exeext
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3219$as_echo "$ac_cv_exeext" >&6; }
3220
3221rm -f conftest.$ac_ext
3222EXEEXT=$ac_cv_exeext
3223ac_exeext=$EXEEXT
3224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3225/* end confdefs.h.  */
3226#include <stdio.h>
3227int
3228main ()
3229{
3230FILE *f = fopen ("conftest.out", "w");
3231 return ferror (f) || fclose (f) != 0;
3232
3233  ;
3234  return 0;
3235}
3236_ACEOF
3237ac_clean_files="$ac_clean_files conftest.out"
3238# Check that the compiler produces executables we can run.  If not, either
3239# the compiler is broken, or we cross compile.
3240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3241$as_echo_n "checking whether we are cross compiling... " >&6; }
3242if test "$cross_compiling" != yes; then
3243  { { ac_try="$ac_link"
3244case "(($ac_try" in
3245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246  *) ac_try_echo=$ac_try;;
3247esac
3248eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3249$as_echo "$ac_try_echo"; } >&5
3250  (eval "$ac_link") 2>&5
3251  ac_status=$?
3252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3253  test $ac_status = 0; }
3254  if { ac_try='./conftest$ac_cv_exeext'
3255  { { case "(($ac_try" in
3256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257  *) ac_try_echo=$ac_try;;
3258esac
3259eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3260$as_echo "$ac_try_echo"; } >&5
3261  (eval "$ac_try") 2>&5
3262  ac_status=$?
3263  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3264  test $ac_status = 0; }; }; then
3265    cross_compiling=no
3266  else
3267    if test "$cross_compiling" = maybe; then
3268	cross_compiling=yes
3269    else
3270	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3271$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272as_fn_error $? "cannot run C compiled programs.
3273If you meant to cross compile, use \`--host'.
3274See \`config.log' for more details" "$LINENO" 5; }
3275    fi
3276  fi
3277fi
3278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3279$as_echo "$cross_compiling" >&6; }
3280
3281rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3282ac_clean_files=$ac_clean_files_save
3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3284$as_echo_n "checking for suffix of object files... " >&6; }
3285if ${ac_cv_objext+:} false; then :
3286  $as_echo_n "(cached) " >&6
3287else
3288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289/* end confdefs.h.  */
3290
3291int
3292main ()
3293{
3294
3295  ;
3296  return 0;
3297}
3298_ACEOF
3299rm -f conftest.o conftest.obj
3300if { { ac_try="$ac_compile"
3301case "(($ac_try" in
3302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303  *) ac_try_echo=$ac_try;;
3304esac
3305eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3306$as_echo "$ac_try_echo"; } >&5
3307  (eval "$ac_compile") 2>&5
3308  ac_status=$?
3309  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3310  test $ac_status = 0; }; then :
3311  for ac_file in conftest.o conftest.obj conftest.*; do
3312  test -f "$ac_file" || continue;
3313  case $ac_file in
3314    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3315    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3316       break;;
3317  esac
3318done
3319else
3320  $as_echo "$as_me: failed program was:" >&5
3321sed 's/^/| /' conftest.$ac_ext >&5
3322
3323{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3325as_fn_error $? "cannot compute suffix of object files: cannot compile
3326See \`config.log' for more details" "$LINENO" 5; }
3327fi
3328rm -f conftest.$ac_cv_objext conftest.$ac_ext
3329fi
3330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3331$as_echo "$ac_cv_objext" >&6; }
3332OBJEXT=$ac_cv_objext
3333ac_objext=$OBJEXT
3334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3335$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3336if ${ac_cv_c_compiler_gnu+:} false; then :
3337  $as_echo_n "(cached) " >&6
3338else
3339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340/* end confdefs.h.  */
3341
3342int
3343main ()
3344{
3345#ifndef __GNUC__
3346       choke me
3347#endif
3348
3349  ;
3350  return 0;
3351}
3352_ACEOF
3353if ac_fn_c_try_compile "$LINENO"; then :
3354  ac_compiler_gnu=yes
3355else
3356  ac_compiler_gnu=no
3357fi
3358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359ac_cv_c_compiler_gnu=$ac_compiler_gnu
3360
3361fi
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3363$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3364if test $ac_compiler_gnu = yes; then
3365  GCC=yes
3366else
3367  GCC=
3368fi
3369ac_test_CFLAGS=${CFLAGS+set}
3370ac_save_CFLAGS=$CFLAGS
3371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3372$as_echo_n "checking whether $CC accepts -g... " >&6; }
3373if ${ac_cv_prog_cc_g+:} false; then :
3374  $as_echo_n "(cached) " >&6
3375else
3376  ac_save_c_werror_flag=$ac_c_werror_flag
3377   ac_c_werror_flag=yes
3378   ac_cv_prog_cc_g=no
3379   CFLAGS="-g"
3380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381/* end confdefs.h.  */
3382
3383int
3384main ()
3385{
3386
3387  ;
3388  return 0;
3389}
3390_ACEOF
3391if ac_fn_c_try_compile "$LINENO"; then :
3392  ac_cv_prog_cc_g=yes
3393else
3394  CFLAGS=""
3395      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396/* end confdefs.h.  */
3397
3398int
3399main ()
3400{
3401
3402  ;
3403  return 0;
3404}
3405_ACEOF
3406if ac_fn_c_try_compile "$LINENO"; then :
3407
3408else
3409  ac_c_werror_flag=$ac_save_c_werror_flag
3410	 CFLAGS="-g"
3411	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412/* end confdefs.h.  */
3413
3414int
3415main ()
3416{
3417
3418  ;
3419  return 0;
3420}
3421_ACEOF
3422if ac_fn_c_try_compile "$LINENO"; then :
3423  ac_cv_prog_cc_g=yes
3424fi
3425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3426fi
3427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3428fi
3429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430   ac_c_werror_flag=$ac_save_c_werror_flag
3431fi
3432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3433$as_echo "$ac_cv_prog_cc_g" >&6; }
3434if test "$ac_test_CFLAGS" = set; then
3435  CFLAGS=$ac_save_CFLAGS
3436elif test $ac_cv_prog_cc_g = yes; then
3437  if test "$GCC" = yes; then
3438    CFLAGS="-g -O2"
3439  else
3440    CFLAGS="-g"
3441  fi
3442else
3443  if test "$GCC" = yes; then
3444    CFLAGS="-O2"
3445  else
3446    CFLAGS=
3447  fi
3448fi
3449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3450$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3451if ${ac_cv_prog_cc_c89+:} false; then :
3452  $as_echo_n "(cached) " >&6
3453else
3454  ac_cv_prog_cc_c89=no
3455ac_save_CC=$CC
3456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457/* end confdefs.h.  */
3458#include <stdarg.h>
3459#include <stdio.h>
3460#include <sys/types.h>
3461#include <sys/stat.h>
3462/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3463struct buf { int x; };
3464FILE * (*rcsopen) (struct buf *, struct stat *, int);
3465static char *e (p, i)
3466     char **p;
3467     int i;
3468{
3469  return p[i];
3470}
3471static char *f (char * (*g) (char **, int), char **p, ...)
3472{
3473  char *s;
3474  va_list v;
3475  va_start (v,p);
3476  s = g (p, va_arg (v,int));
3477  va_end (v);
3478  return s;
3479}
3480
3481/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3482   function prototypes and stuff, but not '\xHH' hex character constants.
3483   These don't provoke an error unfortunately, instead are silently treated
3484   as 'x'.  The following induces an error, until -std is added to get
3485   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3486   array size at least.  It's necessary to write '\x00'==0 to get something
3487   that's true only with -std.  */
3488int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3489
3490/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3491   inside strings and character constants.  */
3492#define FOO(x) 'x'
3493int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3494
3495int test (int i, double x);
3496struct s1 {int (*f) (int a);};
3497struct s2 {int (*f) (double a);};
3498int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3499int argc;
3500char **argv;
3501int
3502main ()
3503{
3504return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3505  ;
3506  return 0;
3507}
3508_ACEOF
3509for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3510	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3511do
3512  CC="$ac_save_CC $ac_arg"
3513  if ac_fn_c_try_compile "$LINENO"; then :
3514  ac_cv_prog_cc_c89=$ac_arg
3515fi
3516rm -f core conftest.err conftest.$ac_objext
3517  test "x$ac_cv_prog_cc_c89" != "xno" && break
3518done
3519rm -f conftest.$ac_ext
3520CC=$ac_save_CC
3521
3522fi
3523# AC_CACHE_VAL
3524case "x$ac_cv_prog_cc_c89" in
3525  x)
3526    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3527$as_echo "none needed" >&6; } ;;
3528  xno)
3529    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3530$as_echo "unsupported" >&6; } ;;
3531  *)
3532    CC="$CC $ac_cv_prog_cc_c89"
3533    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3534$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3535esac
3536if test "x$ac_cv_prog_cc_c89" != xno; then :
3537
3538fi
3539
3540ac_ext=c
3541ac_cpp='$CPP $CPPFLAGS'
3542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3544ac_compiler_gnu=$ac_cv_c_compiler_gnu
3545
3546depcc="$CC"   am_compiler_list=
3547
3548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3549$as_echo_n "checking dependency style of $depcc... " >&6; }
3550if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3551  $as_echo_n "(cached) " >&6
3552else
3553  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3554  # We make a subdir and do the tests there.  Otherwise we can end up
3555  # making bogus files that we don't know about and never remove.  For
3556  # instance it was reported that on HP-UX the gcc test will end up
3557  # making a dummy file named `D' -- because `-MD' means `put the output
3558  # in D'.
3559  rm -rf conftest.dir
3560  mkdir conftest.dir
3561  # Copy depcomp to subdir because otherwise we won't find it if we're
3562  # using a relative directory.
3563  cp "$am_depcomp" conftest.dir
3564  cd conftest.dir
3565  # We will build objects and dependencies in a subdirectory because
3566  # it helps to detect inapplicable dependency modes.  For instance
3567  # both Tru64's cc and ICC support -MD to output dependencies as a
3568  # side effect of compilation, but ICC will put the dependencies in
3569  # the current directory while Tru64 will put them in the object
3570  # directory.
3571  mkdir sub
3572
3573  am_cv_CC_dependencies_compiler_type=none
3574  if test "$am_compiler_list" = ""; then
3575     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3576  fi
3577  am__universal=false
3578  case " $depcc " in #(
3579     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3580     esac
3581
3582  for depmode in $am_compiler_list; do
3583    # Setup a source with many dependencies, because some compilers
3584    # like to wrap large dependency lists on column 80 (with \), and
3585    # we should not choose a depcomp mode which is confused by this.
3586    #
3587    # We need to recreate these files for each test, as the compiler may
3588    # overwrite some of them when testing with obscure command lines.
3589    # This happens at least with the AIX C compiler.
3590    : > sub/conftest.c
3591    for i in 1 2 3 4 5 6; do
3592      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3593      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3594      # Solaris 8's {/usr,}/bin/sh.
3595      touch sub/conftst$i.h
3596    done
3597    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3598
3599    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3600    # mode.  It turns out that the SunPro C++ compiler does not properly
3601    # handle `-M -o', and we need to detect this.  Also, some Intel
3602    # versions had trouble with output in subdirs
3603    am__obj=sub/conftest.${OBJEXT-o}
3604    am__minus_obj="-o $am__obj"
3605    case $depmode in
3606    gcc)
3607      # This depmode causes a compiler race in universal mode.
3608      test "$am__universal" = false || continue
3609      ;;
3610    nosideeffect)
3611      # after this tag, mechanisms are not by side-effect, so they'll
3612      # only be used when explicitly requested
3613      if test "x$enable_dependency_tracking" = xyes; then
3614	continue
3615      else
3616	break
3617      fi
3618      ;;
3619    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3620      # This compiler won't grok `-c -o', but also, the minuso test has
3621      # not run yet.  These depmodes are late enough in the game, and
3622      # so weak that their functioning should not be impacted.
3623      am__obj=conftest.${OBJEXT-o}
3624      am__minus_obj=
3625      ;;
3626    none) break ;;
3627    esac
3628    if depmode=$depmode \
3629       source=sub/conftest.c object=$am__obj \
3630       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3631       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3632         >/dev/null 2>conftest.err &&
3633       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3634       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3635       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3636       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3637      # icc doesn't choke on unknown options, it will just issue warnings
3638      # or remarks (even with -Werror).  So we grep stderr for any message
3639      # that says an option was ignored or not supported.
3640      # When given -MP, icc 7.0 and 7.1 complain thusly:
3641      #   icc: Command line warning: ignoring option '-M'; no argument required
3642      # The diagnosis changed in icc 8.0:
3643      #   icc: Command line remark: option '-MP' not supported
3644      if (grep 'ignoring option' conftest.err ||
3645          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3646        am_cv_CC_dependencies_compiler_type=$depmode
3647        break
3648      fi
3649    fi
3650  done
3651
3652  cd ..
3653  rm -rf conftest.dir
3654else
3655  am_cv_CC_dependencies_compiler_type=none
3656fi
3657
3658fi
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3660$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3661CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3662
3663 if
3664  test "x$enable_dependency_tracking" != xno \
3665  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3666  am__fastdepCC_TRUE=
3667  am__fastdepCC_FALSE='#'
3668else
3669  am__fastdepCC_TRUE='#'
3670  am__fastdepCC_FALSE=
3671fi
3672
3673
3674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3675$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3676if ${ac_cv_prog_cc_c99+:} false; then :
3677  $as_echo_n "(cached) " >&6
3678else
3679  ac_cv_prog_cc_c99=no
3680ac_save_CC=$CC
3681cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682/* end confdefs.h.  */
3683#include <stdarg.h>
3684#include <stdbool.h>
3685#include <stdlib.h>
3686#include <wchar.h>
3687#include <stdio.h>
3688
3689// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3690#define debug(...) fprintf (stderr, __VA_ARGS__)
3691#define showlist(...) puts (#__VA_ARGS__)
3692#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3693static void
3694test_varargs_macros (void)
3695{
3696  int x = 1234;
3697  int y = 5678;
3698  debug ("Flag");
3699  debug ("X = %d\n", x);
3700  showlist (The first, second, and third items.);
3701  report (x>y, "x is %d but y is %d", x, y);
3702}
3703
3704// Check long long types.
3705#define BIG64 18446744073709551615ull
3706#define BIG32 4294967295ul
3707#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3708#if !BIG_OK
3709  your preprocessor is broken;
3710#endif
3711#if BIG_OK
3712#else
3713  your preprocessor is broken;
3714#endif
3715static long long int bignum = -9223372036854775807LL;
3716static unsigned long long int ubignum = BIG64;
3717
3718struct incomplete_array
3719{
3720  int datasize;
3721  double data[];
3722};
3723
3724struct named_init {
3725  int number;
3726  const wchar_t *name;
3727  double average;
3728};
3729
3730typedef const char *ccp;
3731
3732static inline int
3733test_restrict (ccp restrict text)
3734{
3735  // See if C++-style comments work.
3736  // Iterate through items via the restricted pointer.
3737  // Also check for declarations in for loops.
3738  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3739    continue;
3740  return 0;
3741}
3742
3743// Check varargs and va_copy.
3744static void
3745test_varargs (const char *format, ...)
3746{
3747  va_list args;
3748  va_start (args, format);
3749  va_list args_copy;
3750  va_copy (args_copy, args);
3751
3752  const char *str;
3753  int number;
3754  float fnumber;
3755
3756  while (*format)
3757    {
3758      switch (*format++)
3759	{
3760	case 's': // string
3761	  str = va_arg (args_copy, const char *);
3762	  break;
3763	case 'd': // int
3764	  number = va_arg (args_copy, int);
3765	  break;
3766	case 'f': // float
3767	  fnumber = va_arg (args_copy, double);
3768	  break;
3769	default:
3770	  break;
3771	}
3772    }
3773  va_end (args_copy);
3774  va_end (args);
3775}
3776
3777int
3778main ()
3779{
3780
3781  // Check bool.
3782  _Bool success = false;
3783
3784  // Check restrict.
3785  if (test_restrict ("String literal") == 0)
3786    success = true;
3787  char *restrict newvar = "Another string";
3788
3789  // Check varargs.
3790  test_varargs ("s, d' f .", "string", 65, 34.234);
3791  test_varargs_macros ();
3792
3793  // Check flexible array members.
3794  struct incomplete_array *ia =
3795    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3796  ia->datasize = 10;
3797  for (int i = 0; i < ia->datasize; ++i)
3798    ia->data[i] = i * 1.234;
3799
3800  // Check named initializers.
3801  struct named_init ni = {
3802    .number = 34,
3803    .name = L"Test wide string",
3804    .average = 543.34343,
3805  };
3806
3807  ni.number = 58;
3808
3809  int dynamic_array[ni.number];
3810  dynamic_array[ni.number - 1] = 543;
3811
3812  // work around unused variable warnings
3813  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3814	  || dynamic_array[ni.number - 1] != 543);
3815
3816  ;
3817  return 0;
3818}
3819_ACEOF
3820for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3821do
3822  CC="$ac_save_CC $ac_arg"
3823  if ac_fn_c_try_compile "$LINENO"; then :
3824  ac_cv_prog_cc_c99=$ac_arg
3825fi
3826rm -f core conftest.err conftest.$ac_objext
3827  test "x$ac_cv_prog_cc_c99" != "xno" && break
3828done
3829rm -f conftest.$ac_ext
3830CC=$ac_save_CC
3831
3832fi
3833# AC_CACHE_VAL
3834case "x$ac_cv_prog_cc_c99" in
3835  x)
3836    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3837$as_echo "none needed" >&6; } ;;
3838  xno)
3839    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3840$as_echo "unsupported" >&6; } ;;
3841  *)
3842    CC="$CC $ac_cv_prog_cc_c99"
3843    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3844$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3845esac
3846if test "x$ac_cv_prog_cc_c99" != xno; then :
3847
3848fi
3849
3850
3851
3852ac_ext=c
3853ac_cpp='$CPP $CPPFLAGS'
3854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3856ac_compiler_gnu=$ac_cv_c_compiler_gnu
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3858$as_echo_n "checking how to run the C preprocessor... " >&6; }
3859# On Suns, sometimes $CPP names a directory.
3860if test -n "$CPP" && test -d "$CPP"; then
3861  CPP=
3862fi
3863if test -z "$CPP"; then
3864  if ${ac_cv_prog_CPP+:} false; then :
3865  $as_echo_n "(cached) " >&6
3866else
3867      # Double quotes because CPP needs to be expanded
3868    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3869    do
3870      ac_preproc_ok=false
3871for ac_c_preproc_warn_flag in '' yes
3872do
3873  # Use a header file that comes with gcc, so configuring glibc
3874  # with a fresh cross-compiler works.
3875  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3876  # <limits.h> exists even on freestanding compilers.
3877  # On the NeXT, cc -E runs the code through the compiler's parser,
3878  # not just through cpp. "Syntax error" is here to catch this case.
3879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880/* end confdefs.h.  */
3881#ifdef __STDC__
3882# include <limits.h>
3883#else
3884# include <assert.h>
3885#endif
3886		     Syntax error
3887_ACEOF
3888if ac_fn_c_try_cpp "$LINENO"; then :
3889
3890else
3891  # Broken: fails on valid input.
3892continue
3893fi
3894rm -f conftest.err conftest.i conftest.$ac_ext
3895
3896  # OK, works on sane cases.  Now check whether nonexistent headers
3897  # can be detected and how.
3898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899/* end confdefs.h.  */
3900#include <ac_nonexistent.h>
3901_ACEOF
3902if ac_fn_c_try_cpp "$LINENO"; then :
3903  # Broken: success on invalid input.
3904continue
3905else
3906  # Passes both tests.
3907ac_preproc_ok=:
3908break
3909fi
3910rm -f conftest.err conftest.i conftest.$ac_ext
3911
3912done
3913# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3914rm -f conftest.i conftest.err conftest.$ac_ext
3915if $ac_preproc_ok; then :
3916  break
3917fi
3918
3919    done
3920    ac_cv_prog_CPP=$CPP
3921
3922fi
3923  CPP=$ac_cv_prog_CPP
3924else
3925  ac_cv_prog_CPP=$CPP
3926fi
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3928$as_echo "$CPP" >&6; }
3929ac_preproc_ok=false
3930for ac_c_preproc_warn_flag in '' yes
3931do
3932  # Use a header file that comes with gcc, so configuring glibc
3933  # with a fresh cross-compiler works.
3934  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3935  # <limits.h> exists even on freestanding compilers.
3936  # On the NeXT, cc -E runs the code through the compiler's parser,
3937  # not just through cpp. "Syntax error" is here to catch this case.
3938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939/* end confdefs.h.  */
3940#ifdef __STDC__
3941# include <limits.h>
3942#else
3943# include <assert.h>
3944#endif
3945		     Syntax error
3946_ACEOF
3947if ac_fn_c_try_cpp "$LINENO"; then :
3948
3949else
3950  # Broken: fails on valid input.
3951continue
3952fi
3953rm -f conftest.err conftest.i conftest.$ac_ext
3954
3955  # OK, works on sane cases.  Now check whether nonexistent headers
3956  # can be detected and how.
3957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958/* end confdefs.h.  */
3959#include <ac_nonexistent.h>
3960_ACEOF
3961if ac_fn_c_try_cpp "$LINENO"; then :
3962  # Broken: success on invalid input.
3963continue
3964else
3965  # Passes both tests.
3966ac_preproc_ok=:
3967break
3968fi
3969rm -f conftest.err conftest.i conftest.$ac_ext
3970
3971done
3972# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3973rm -f conftest.i conftest.err conftest.$ac_ext
3974if $ac_preproc_ok; then :
3975
3976else
3977  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3978$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3979as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3980See \`config.log' for more details" "$LINENO" 5; }
3981fi
3982
3983ac_ext=c
3984ac_cpp='$CPP $CPPFLAGS'
3985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3987ac_compiler_gnu=$ac_cv_c_compiler_gnu
3988
3989
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3991$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3992if ${ac_cv_path_GREP+:} false; then :
3993  $as_echo_n "(cached) " >&6
3994else
3995  if test -z "$GREP"; then
3996  ac_path_GREP_found=false
3997  # Loop through the user's path and test for each of PROGNAME-LIST
3998  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4000do
4001  IFS=$as_save_IFS
4002  test -z "$as_dir" && as_dir=.
4003    for ac_prog in grep ggrep; do
4004    for ac_exec_ext in '' $ac_executable_extensions; do
4005      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4006      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4007# Check for GNU ac_path_GREP and select it if it is found.
4008  # Check for GNU $ac_path_GREP
4009case `"$ac_path_GREP" --version 2>&1` in
4010*GNU*)
4011  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4012*)
4013  ac_count=0
4014  $as_echo_n 0123456789 >"conftest.in"
4015  while :
4016  do
4017    cat "conftest.in" "conftest.in" >"conftest.tmp"
4018    mv "conftest.tmp" "conftest.in"
4019    cp "conftest.in" "conftest.nl"
4020    $as_echo 'GREP' >> "conftest.nl"
4021    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4022    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4023    as_fn_arith $ac_count + 1 && ac_count=$as_val
4024    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4025      # Best one so far, save it but keep looking for a better one
4026      ac_cv_path_GREP="$ac_path_GREP"
4027      ac_path_GREP_max=$ac_count
4028    fi
4029    # 10*(2^10) chars as input seems more than enough
4030    test $ac_count -gt 10 && break
4031  done
4032  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4033esac
4034
4035      $ac_path_GREP_found && break 3
4036    done
4037  done
4038  done
4039IFS=$as_save_IFS
4040  if test -z "$ac_cv_path_GREP"; then
4041    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4042  fi
4043else
4044  ac_cv_path_GREP=$GREP
4045fi
4046
4047fi
4048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4049$as_echo "$ac_cv_path_GREP" >&6; }
4050 GREP="$ac_cv_path_GREP"
4051
4052
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4054$as_echo_n "checking for egrep... " >&6; }
4055if ${ac_cv_path_EGREP+:} false; then :
4056  $as_echo_n "(cached) " >&6
4057else
4058  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4059   then ac_cv_path_EGREP="$GREP -E"
4060   else
4061     if test -z "$EGREP"; then
4062  ac_path_EGREP_found=false
4063  # Loop through the user's path and test for each of PROGNAME-LIST
4064  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4066do
4067  IFS=$as_save_IFS
4068  test -z "$as_dir" && as_dir=.
4069    for ac_prog in egrep; do
4070    for ac_exec_ext in '' $ac_executable_extensions; do
4071      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4072      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4073# Check for GNU ac_path_EGREP and select it if it is found.
4074  # Check for GNU $ac_path_EGREP
4075case `"$ac_path_EGREP" --version 2>&1` in
4076*GNU*)
4077  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4078*)
4079  ac_count=0
4080  $as_echo_n 0123456789 >"conftest.in"
4081  while :
4082  do
4083    cat "conftest.in" "conftest.in" >"conftest.tmp"
4084    mv "conftest.tmp" "conftest.in"
4085    cp "conftest.in" "conftest.nl"
4086    $as_echo 'EGREP' >> "conftest.nl"
4087    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4088    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4089    as_fn_arith $ac_count + 1 && ac_count=$as_val
4090    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4091      # Best one so far, save it but keep looking for a better one
4092      ac_cv_path_EGREP="$ac_path_EGREP"
4093      ac_path_EGREP_max=$ac_count
4094    fi
4095    # 10*(2^10) chars as input seems more than enough
4096    test $ac_count -gt 10 && break
4097  done
4098  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4099esac
4100
4101      $ac_path_EGREP_found && break 3
4102    done
4103  done
4104  done
4105IFS=$as_save_IFS
4106  if test -z "$ac_cv_path_EGREP"; then
4107    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4108  fi
4109else
4110  ac_cv_path_EGREP=$EGREP
4111fi
4112
4113   fi
4114fi
4115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4116$as_echo "$ac_cv_path_EGREP" >&6; }
4117 EGREP="$ac_cv_path_EGREP"
4118
4119
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4121$as_echo_n "checking for ANSI C header files... " >&6; }
4122if ${ac_cv_header_stdc+:} false; then :
4123  $as_echo_n "(cached) " >&6
4124else
4125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126/* end confdefs.h.  */
4127#include <stdlib.h>
4128#include <stdarg.h>
4129#include <string.h>
4130#include <float.h>
4131
4132int
4133main ()
4134{
4135
4136  ;
4137  return 0;
4138}
4139_ACEOF
4140if ac_fn_c_try_compile "$LINENO"; then :
4141  ac_cv_header_stdc=yes
4142else
4143  ac_cv_header_stdc=no
4144fi
4145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146
4147if test $ac_cv_header_stdc = yes; then
4148  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150/* end confdefs.h.  */
4151#include <string.h>
4152
4153_ACEOF
4154if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4155  $EGREP "memchr" >/dev/null 2>&1; then :
4156
4157else
4158  ac_cv_header_stdc=no
4159fi
4160rm -f conftest*
4161
4162fi
4163
4164if test $ac_cv_header_stdc = yes; then
4165  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167/* end confdefs.h.  */
4168#include <stdlib.h>
4169
4170_ACEOF
4171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4172  $EGREP "free" >/dev/null 2>&1; then :
4173
4174else
4175  ac_cv_header_stdc=no
4176fi
4177rm -f conftest*
4178
4179fi
4180
4181if test $ac_cv_header_stdc = yes; then
4182  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4183  if test "$cross_compiling" = yes; then :
4184  :
4185else
4186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187/* end confdefs.h.  */
4188#include <ctype.h>
4189#include <stdlib.h>
4190#if ((' ' & 0x0FF) == 0x020)
4191# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4192# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4193#else
4194# define ISLOWER(c) \
4195		   (('a' <= (c) && (c) <= 'i') \
4196		     || ('j' <= (c) && (c) <= 'r') \
4197		     || ('s' <= (c) && (c) <= 'z'))
4198# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4199#endif
4200
4201#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4202int
4203main ()
4204{
4205  int i;
4206  for (i = 0; i < 256; i++)
4207    if (XOR (islower (i), ISLOWER (i))
4208	|| toupper (i) != TOUPPER (i))
4209      return 2;
4210  return 0;
4211}
4212_ACEOF
4213if ac_fn_c_try_run "$LINENO"; then :
4214
4215else
4216  ac_cv_header_stdc=no
4217fi
4218rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4219  conftest.$ac_objext conftest.beam conftest.$ac_ext
4220fi
4221
4222fi
4223fi
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4225$as_echo "$ac_cv_header_stdc" >&6; }
4226if test $ac_cv_header_stdc = yes; then
4227
4228$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4229
4230fi
4231
4232# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4233for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4234		  inttypes.h stdint.h unistd.h
4235do :
4236  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4237ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4238"
4239if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4240  cat >>confdefs.h <<_ACEOF
4241#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4242_ACEOF
4243
4244fi
4245
4246done
4247
4248
4249
4250
4251
4252
4253ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4254if test "x$ac_cv_have_decl___clang__" = xyes; then :
4255  CLANGCC="yes"
4256else
4257  CLANGCC="no"
4258fi
4259
4260ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4261if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4262  INTELCC="yes"
4263else
4264  INTELCC="no"
4265fi
4266
4267ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4268if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4269  SUNCC="yes"
4270else
4271  SUNCC="no"
4272fi
4273
4274
4275
4276
4277if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4278	if test -n "$ac_tool_prefix"; then
4279  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4280set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4282$as_echo_n "checking for $ac_word... " >&6; }
4283if ${ac_cv_path_PKG_CONFIG+:} false; then :
4284  $as_echo_n "(cached) " >&6
4285else
4286  case $PKG_CONFIG in
4287  [\\/]* | ?:[\\/]*)
4288  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4289  ;;
4290  *)
4291  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292for as_dir in $PATH
4293do
4294  IFS=$as_save_IFS
4295  test -z "$as_dir" && as_dir=.
4296    for ac_exec_ext in '' $ac_executable_extensions; do
4297  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4298    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4299    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4300    break 2
4301  fi
4302done
4303  done
4304IFS=$as_save_IFS
4305
4306  ;;
4307esac
4308fi
4309PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4310if test -n "$PKG_CONFIG"; then
4311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4312$as_echo "$PKG_CONFIG" >&6; }
4313else
4314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315$as_echo "no" >&6; }
4316fi
4317
4318
4319fi
4320if test -z "$ac_cv_path_PKG_CONFIG"; then
4321  ac_pt_PKG_CONFIG=$PKG_CONFIG
4322  # Extract the first word of "pkg-config", so it can be a program name with args.
4323set dummy pkg-config; ac_word=$2
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4325$as_echo_n "checking for $ac_word... " >&6; }
4326if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4327  $as_echo_n "(cached) " >&6
4328else
4329  case $ac_pt_PKG_CONFIG in
4330  [\\/]* | ?:[\\/]*)
4331  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4332  ;;
4333  *)
4334  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335for as_dir in $PATH
4336do
4337  IFS=$as_save_IFS
4338  test -z "$as_dir" && as_dir=.
4339    for ac_exec_ext in '' $ac_executable_extensions; do
4340  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4341    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4342    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4343    break 2
4344  fi
4345done
4346  done
4347IFS=$as_save_IFS
4348
4349  ;;
4350esac
4351fi
4352ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4353if test -n "$ac_pt_PKG_CONFIG"; then
4354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4355$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4356else
4357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358$as_echo "no" >&6; }
4359fi
4360
4361  if test "x$ac_pt_PKG_CONFIG" = x; then
4362    PKG_CONFIG=""
4363  else
4364    case $cross_compiling:$ac_tool_warned in
4365yes:)
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4368ac_tool_warned=yes ;;
4369esac
4370    PKG_CONFIG=$ac_pt_PKG_CONFIG
4371  fi
4372else
4373  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4374fi
4375
4376fi
4377if test -n "$PKG_CONFIG"; then
4378	_pkg_min_version=0.9.0
4379	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4380$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4381	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4382		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4383$as_echo "yes" >&6; }
4384	else
4385		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386$as_echo "no" >&6; }
4387		PKG_CONFIG=""
4388	fi
4389
4390fi
4391# Make sure we can run config.sub.
4392$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4393  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4394
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4396$as_echo_n "checking build system type... " >&6; }
4397if ${ac_cv_build+:} false; then :
4398  $as_echo_n "(cached) " >&6
4399else
4400  ac_build_alias=$build_alias
4401test "x$ac_build_alias" = x &&
4402  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4403test "x$ac_build_alias" = x &&
4404  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4405ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4406  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4407
4408fi
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4410$as_echo "$ac_cv_build" >&6; }
4411case $ac_cv_build in
4412*-*-*) ;;
4413*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4414esac
4415build=$ac_cv_build
4416ac_save_IFS=$IFS; IFS='-'
4417set x $ac_cv_build
4418shift
4419build_cpu=$1
4420build_vendor=$2
4421shift; shift
4422# Remember, the first character of IFS is used to create $*,
4423# except with old shells:
4424build_os=$*
4425IFS=$ac_save_IFS
4426case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4427
4428
4429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4430$as_echo_n "checking host system type... " >&6; }
4431if ${ac_cv_host+:} false; then :
4432  $as_echo_n "(cached) " >&6
4433else
4434  if test "x$host_alias" = x; then
4435  ac_cv_host=$ac_cv_build
4436else
4437  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4438    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4439fi
4440
4441fi
4442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4443$as_echo "$ac_cv_host" >&6; }
4444case $ac_cv_host in
4445*-*-*) ;;
4446*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4447esac
4448host=$ac_cv_host
4449ac_save_IFS=$IFS; IFS='-'
4450set x $ac_cv_host
4451shift
4452host_cpu=$1
4453host_vendor=$2
4454shift; shift
4455# Remember, the first character of IFS is used to create $*,
4456# except with old shells:
4457host_os=$*
4458IFS=$ac_save_IFS
4459case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4460
4461
4462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4463$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4464if ${ac_cv_path_SED+:} false; then :
4465  $as_echo_n "(cached) " >&6
4466else
4467            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4468     for ac_i in 1 2 3 4 5 6 7; do
4469       ac_script="$ac_script$as_nl$ac_script"
4470     done
4471     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4472     { ac_script=; unset ac_script;}
4473     if test -z "$SED"; then
4474  ac_path_SED_found=false
4475  # Loop through the user's path and test for each of PROGNAME-LIST
4476  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477for as_dir in $PATH
4478do
4479  IFS=$as_save_IFS
4480  test -z "$as_dir" && as_dir=.
4481    for ac_prog in sed gsed; do
4482    for ac_exec_ext in '' $ac_executable_extensions; do
4483      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4484      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4485# Check for GNU ac_path_SED and select it if it is found.
4486  # Check for GNU $ac_path_SED
4487case `"$ac_path_SED" --version 2>&1` in
4488*GNU*)
4489  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4490*)
4491  ac_count=0
4492  $as_echo_n 0123456789 >"conftest.in"
4493  while :
4494  do
4495    cat "conftest.in" "conftest.in" >"conftest.tmp"
4496    mv "conftest.tmp" "conftest.in"
4497    cp "conftest.in" "conftest.nl"
4498    $as_echo '' >> "conftest.nl"
4499    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4500    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4501    as_fn_arith $ac_count + 1 && ac_count=$as_val
4502    if test $ac_count -gt ${ac_path_SED_max-0}; then
4503      # Best one so far, save it but keep looking for a better one
4504      ac_cv_path_SED="$ac_path_SED"
4505      ac_path_SED_max=$ac_count
4506    fi
4507    # 10*(2^10) chars as input seems more than enough
4508    test $ac_count -gt 10 && break
4509  done
4510  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4511esac
4512
4513      $ac_path_SED_found && break 3
4514    done
4515  done
4516  done
4517IFS=$as_save_IFS
4518  if test -z "$ac_cv_path_SED"; then
4519    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4520  fi
4521else
4522  ac_cv_path_SED=$SED
4523fi
4524
4525fi
4526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4527$as_echo "$ac_cv_path_SED" >&6; }
4528 SED="$ac_cv_path_SED"
4529  rm -f conftest.sed
4530
4531
4532
4533
4534
4535
4536# Check whether --enable-selective-werror was given.
4537if test "${enable_selective_werror+set}" = set; then :
4538  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4539else
4540  SELECTIVE_WERROR=yes
4541fi
4542
4543
4544
4545
4546
4547# -v is too short to test reliably with XORG_TESTSET_CFLAG
4548if test "x$SUNCC" = "xyes"; then
4549    BASE_CFLAGS="-v"
4550else
4551    BASE_CFLAGS=""
4552fi
4553
4554# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568xorg_testset_save_CFLAGS="$CFLAGS"
4569
4570if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4571	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4572	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4573$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4574if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4575  $as_echo_n "(cached) " >&6
4576else
4577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578/* end confdefs.h.  */
4579int i;
4580_ACEOF
4581if ac_fn_c_try_compile "$LINENO"; then :
4582  xorg_cv_cc_flag_unknown_warning_option=yes
4583else
4584  xorg_cv_cc_flag_unknown_warning_option=no
4585fi
4586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4587fi
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4589$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4590	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4591	CFLAGS="$xorg_testset_save_CFLAGS"
4592fi
4593
4594if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4595	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4596		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4597	fi
4598	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4599	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4600$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4601if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4602  $as_echo_n "(cached) " >&6
4603else
4604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605/* end confdefs.h.  */
4606int i;
4607_ACEOF
4608if ac_fn_c_try_compile "$LINENO"; then :
4609  xorg_cv_cc_flag_unused_command_line_argument=yes
4610else
4611  xorg_cv_cc_flag_unused_command_line_argument=no
4612fi
4613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614fi
4615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4616$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4617	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4618	CFLAGS="$xorg_testset_save_CFLAGS"
4619fi
4620
4621found="no"
4622
4623	if test $found = "no" ; then
4624		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4625			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4626		fi
4627
4628		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4629			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4630		fi
4631
4632		CFLAGS="$CFLAGS -Wall"
4633
4634		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4635$as_echo_n "checking if $CC supports -Wall... " >&6; }
4636		cacheid=xorg_cv_cc_flag__Wall
4637		if eval \${$cacheid+:} false; then :
4638  $as_echo_n "(cached) " >&6
4639else
4640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641/* end confdefs.h.  */
4642int i;
4643int
4644main ()
4645{
4646
4647  ;
4648  return 0;
4649}
4650_ACEOF
4651if ac_fn_c_try_link "$LINENO"; then :
4652  eval $cacheid=yes
4653else
4654  eval $cacheid=no
4655fi
4656rm -f core conftest.err conftest.$ac_objext \
4657    conftest$ac_exeext conftest.$ac_ext
4658fi
4659
4660
4661		CFLAGS="$xorg_testset_save_CFLAGS"
4662
4663		eval supported=\$$cacheid
4664		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4665$as_echo "$supported" >&6; }
4666		if test "$supported" = "yes" ; then
4667			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4668			found="yes"
4669		fi
4670	fi
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686xorg_testset_save_CFLAGS="$CFLAGS"
4687
4688if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4689	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4690	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4691$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4692if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4693  $as_echo_n "(cached) " >&6
4694else
4695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696/* end confdefs.h.  */
4697int i;
4698_ACEOF
4699if ac_fn_c_try_compile "$LINENO"; then :
4700  xorg_cv_cc_flag_unknown_warning_option=yes
4701else
4702  xorg_cv_cc_flag_unknown_warning_option=no
4703fi
4704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705fi
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4707$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4708	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4709	CFLAGS="$xorg_testset_save_CFLAGS"
4710fi
4711
4712if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4713	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4714		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4715	fi
4716	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4717	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4718$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4719if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4720  $as_echo_n "(cached) " >&6
4721else
4722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723/* end confdefs.h.  */
4724int i;
4725_ACEOF
4726if ac_fn_c_try_compile "$LINENO"; then :
4727  xorg_cv_cc_flag_unused_command_line_argument=yes
4728else
4729  xorg_cv_cc_flag_unused_command_line_argument=no
4730fi
4731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4732fi
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4734$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4735	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4736	CFLAGS="$xorg_testset_save_CFLAGS"
4737fi
4738
4739found="no"
4740
4741	if test $found = "no" ; then
4742		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4743			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4744		fi
4745
4746		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4747			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4748		fi
4749
4750		CFLAGS="$CFLAGS -Wpointer-arith"
4751
4752		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4753$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4754		cacheid=xorg_cv_cc_flag__Wpointer_arith
4755		if eval \${$cacheid+:} false; then :
4756  $as_echo_n "(cached) " >&6
4757else
4758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4759/* end confdefs.h.  */
4760int i;
4761int
4762main ()
4763{
4764
4765  ;
4766  return 0;
4767}
4768_ACEOF
4769if ac_fn_c_try_link "$LINENO"; then :
4770  eval $cacheid=yes
4771else
4772  eval $cacheid=no
4773fi
4774rm -f core conftest.err conftest.$ac_objext \
4775    conftest$ac_exeext conftest.$ac_ext
4776fi
4777
4778
4779		CFLAGS="$xorg_testset_save_CFLAGS"
4780
4781		eval supported=\$$cacheid
4782		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4783$as_echo "$supported" >&6; }
4784		if test "$supported" = "yes" ; then
4785			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4786			found="yes"
4787		fi
4788	fi
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804xorg_testset_save_CFLAGS="$CFLAGS"
4805
4806if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4807	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4808	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4809$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4810if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4811  $as_echo_n "(cached) " >&6
4812else
4813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814/* end confdefs.h.  */
4815int i;
4816_ACEOF
4817if ac_fn_c_try_compile "$LINENO"; then :
4818  xorg_cv_cc_flag_unknown_warning_option=yes
4819else
4820  xorg_cv_cc_flag_unknown_warning_option=no
4821fi
4822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4823fi
4824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4825$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4826	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4827	CFLAGS="$xorg_testset_save_CFLAGS"
4828fi
4829
4830if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4831	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4832		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4833	fi
4834	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4835	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4836$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4837if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4838  $as_echo_n "(cached) " >&6
4839else
4840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4841/* end confdefs.h.  */
4842int i;
4843_ACEOF
4844if ac_fn_c_try_compile "$LINENO"; then :
4845  xorg_cv_cc_flag_unused_command_line_argument=yes
4846else
4847  xorg_cv_cc_flag_unused_command_line_argument=no
4848fi
4849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4850fi
4851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4852$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4853	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4854	CFLAGS="$xorg_testset_save_CFLAGS"
4855fi
4856
4857found="no"
4858
4859	if test $found = "no" ; then
4860		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4861			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4862		fi
4863
4864		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4865			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4866		fi
4867
4868		CFLAGS="$CFLAGS -Wmissing-declarations"
4869
4870		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4871$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4872		cacheid=xorg_cv_cc_flag__Wmissing_declarations
4873		if eval \${$cacheid+:} false; then :
4874  $as_echo_n "(cached) " >&6
4875else
4876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877/* end confdefs.h.  */
4878int i;
4879int
4880main ()
4881{
4882
4883  ;
4884  return 0;
4885}
4886_ACEOF
4887if ac_fn_c_try_link "$LINENO"; then :
4888  eval $cacheid=yes
4889else
4890  eval $cacheid=no
4891fi
4892rm -f core conftest.err conftest.$ac_objext \
4893    conftest$ac_exeext conftest.$ac_ext
4894fi
4895
4896
4897		CFLAGS="$xorg_testset_save_CFLAGS"
4898
4899		eval supported=\$$cacheid
4900		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4901$as_echo "$supported" >&6; }
4902		if test "$supported" = "yes" ; then
4903			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4904			found="yes"
4905		fi
4906	fi
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922xorg_testset_save_CFLAGS="$CFLAGS"
4923
4924if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4925	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4926	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4927$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4928if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4929  $as_echo_n "(cached) " >&6
4930else
4931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932/* end confdefs.h.  */
4933int i;
4934_ACEOF
4935if ac_fn_c_try_compile "$LINENO"; then :
4936  xorg_cv_cc_flag_unknown_warning_option=yes
4937else
4938  xorg_cv_cc_flag_unknown_warning_option=no
4939fi
4940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4941fi
4942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4943$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4944	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4945	CFLAGS="$xorg_testset_save_CFLAGS"
4946fi
4947
4948if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4949	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4950		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4951	fi
4952	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4953	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4954$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4955if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4956  $as_echo_n "(cached) " >&6
4957else
4958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959/* end confdefs.h.  */
4960int i;
4961_ACEOF
4962if ac_fn_c_try_compile "$LINENO"; then :
4963  xorg_cv_cc_flag_unused_command_line_argument=yes
4964else
4965  xorg_cv_cc_flag_unused_command_line_argument=no
4966fi
4967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4968fi
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4970$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4971	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4972	CFLAGS="$xorg_testset_save_CFLAGS"
4973fi
4974
4975found="no"
4976
4977	if test $found = "no" ; then
4978		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4979			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4980		fi
4981
4982		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4983			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4984		fi
4985
4986		CFLAGS="$CFLAGS -Wformat=2"
4987
4988		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
4989$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
4990		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
4991		if eval \${$cacheid+:} false; then :
4992  $as_echo_n "(cached) " >&6
4993else
4994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995/* end confdefs.h.  */
4996int i;
4997int
4998main ()
4999{
5000
5001  ;
5002  return 0;
5003}
5004_ACEOF
5005if ac_fn_c_try_link "$LINENO"; then :
5006  eval $cacheid=yes
5007else
5008  eval $cacheid=no
5009fi
5010rm -f core conftest.err conftest.$ac_objext \
5011    conftest$ac_exeext conftest.$ac_ext
5012fi
5013
5014
5015		CFLAGS="$xorg_testset_save_CFLAGS"
5016
5017		eval supported=\$$cacheid
5018		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5019$as_echo "$supported" >&6; }
5020		if test "$supported" = "yes" ; then
5021			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5022			found="yes"
5023		fi
5024	fi
5025
5026	if test $found = "no" ; then
5027		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5028			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5029		fi
5030
5031		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5032			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5033		fi
5034
5035		CFLAGS="$CFLAGS -Wformat"
5036
5037		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5038$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5039		cacheid=xorg_cv_cc_flag__Wformat
5040		if eval \${$cacheid+:} false; then :
5041  $as_echo_n "(cached) " >&6
5042else
5043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044/* end confdefs.h.  */
5045int i;
5046int
5047main ()
5048{
5049
5050  ;
5051  return 0;
5052}
5053_ACEOF
5054if ac_fn_c_try_link "$LINENO"; then :
5055  eval $cacheid=yes
5056else
5057  eval $cacheid=no
5058fi
5059rm -f core conftest.err conftest.$ac_objext \
5060    conftest$ac_exeext conftest.$ac_ext
5061fi
5062
5063
5064		CFLAGS="$xorg_testset_save_CFLAGS"
5065
5066		eval supported=\$$cacheid
5067		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5068$as_echo "$supported" >&6; }
5069		if test "$supported" = "yes" ; then
5070			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5071			found="yes"
5072		fi
5073	fi
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091xorg_testset_save_CFLAGS="$CFLAGS"
5092
5093if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5094	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5095	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5096$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5097if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5098  $as_echo_n "(cached) " >&6
5099else
5100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101/* end confdefs.h.  */
5102int i;
5103_ACEOF
5104if ac_fn_c_try_compile "$LINENO"; then :
5105  xorg_cv_cc_flag_unknown_warning_option=yes
5106else
5107  xorg_cv_cc_flag_unknown_warning_option=no
5108fi
5109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5110fi
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5112$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5113	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5114	CFLAGS="$xorg_testset_save_CFLAGS"
5115fi
5116
5117if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5118	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5119		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5120	fi
5121	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5122	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5123$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5124if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5125  $as_echo_n "(cached) " >&6
5126else
5127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128/* end confdefs.h.  */
5129int i;
5130_ACEOF
5131if ac_fn_c_try_compile "$LINENO"; then :
5132  xorg_cv_cc_flag_unused_command_line_argument=yes
5133else
5134  xorg_cv_cc_flag_unused_command_line_argument=no
5135fi
5136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5137fi
5138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5139$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5140	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5141	CFLAGS="$xorg_testset_save_CFLAGS"
5142fi
5143
5144found="no"
5145
5146	if test $found = "no" ; then
5147		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5148			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5149		fi
5150
5151		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5152			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5153		fi
5154
5155		CFLAGS="$CFLAGS -Wstrict-prototypes"
5156
5157		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5158$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5159		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5160		if eval \${$cacheid+:} false; then :
5161  $as_echo_n "(cached) " >&6
5162else
5163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5164/* end confdefs.h.  */
5165int i;
5166int
5167main ()
5168{
5169
5170  ;
5171  return 0;
5172}
5173_ACEOF
5174if ac_fn_c_try_link "$LINENO"; then :
5175  eval $cacheid=yes
5176else
5177  eval $cacheid=no
5178fi
5179rm -f core conftest.err conftest.$ac_objext \
5180    conftest$ac_exeext conftest.$ac_ext
5181fi
5182
5183
5184		CFLAGS="$xorg_testset_save_CFLAGS"
5185
5186		eval supported=\$$cacheid
5187		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5188$as_echo "$supported" >&6; }
5189		if test "$supported" = "yes" ; then
5190			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5191			found="yes"
5192		fi
5193	fi
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209xorg_testset_save_CFLAGS="$CFLAGS"
5210
5211if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5212	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5213	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5214$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5215if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5216  $as_echo_n "(cached) " >&6
5217else
5218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219/* end confdefs.h.  */
5220int i;
5221_ACEOF
5222if ac_fn_c_try_compile "$LINENO"; then :
5223  xorg_cv_cc_flag_unknown_warning_option=yes
5224else
5225  xorg_cv_cc_flag_unknown_warning_option=no
5226fi
5227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5228fi
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5230$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5231	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5232	CFLAGS="$xorg_testset_save_CFLAGS"
5233fi
5234
5235if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5236	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5237		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5238	fi
5239	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5240	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5241$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5242if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5243  $as_echo_n "(cached) " >&6
5244else
5245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246/* end confdefs.h.  */
5247int i;
5248_ACEOF
5249if ac_fn_c_try_compile "$LINENO"; then :
5250  xorg_cv_cc_flag_unused_command_line_argument=yes
5251else
5252  xorg_cv_cc_flag_unused_command_line_argument=no
5253fi
5254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5255fi
5256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5257$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5258	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5259	CFLAGS="$xorg_testset_save_CFLAGS"
5260fi
5261
5262found="no"
5263
5264	if test $found = "no" ; then
5265		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5266			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5267		fi
5268
5269		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5270			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5271		fi
5272
5273		CFLAGS="$CFLAGS -Wmissing-prototypes"
5274
5275		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5276$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5277		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5278		if eval \${$cacheid+:} false; then :
5279  $as_echo_n "(cached) " >&6
5280else
5281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5282/* end confdefs.h.  */
5283int i;
5284int
5285main ()
5286{
5287
5288  ;
5289  return 0;
5290}
5291_ACEOF
5292if ac_fn_c_try_link "$LINENO"; then :
5293  eval $cacheid=yes
5294else
5295  eval $cacheid=no
5296fi
5297rm -f core conftest.err conftest.$ac_objext \
5298    conftest$ac_exeext conftest.$ac_ext
5299fi
5300
5301
5302		CFLAGS="$xorg_testset_save_CFLAGS"
5303
5304		eval supported=\$$cacheid
5305		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5306$as_echo "$supported" >&6; }
5307		if test "$supported" = "yes" ; then
5308			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5309			found="yes"
5310		fi
5311	fi
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327xorg_testset_save_CFLAGS="$CFLAGS"
5328
5329if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5330	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5331	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5332$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5333if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5334  $as_echo_n "(cached) " >&6
5335else
5336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5337/* end confdefs.h.  */
5338int i;
5339_ACEOF
5340if ac_fn_c_try_compile "$LINENO"; then :
5341  xorg_cv_cc_flag_unknown_warning_option=yes
5342else
5343  xorg_cv_cc_flag_unknown_warning_option=no
5344fi
5345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5346fi
5347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5348$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5349	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5350	CFLAGS="$xorg_testset_save_CFLAGS"
5351fi
5352
5353if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5354	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5355		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5356	fi
5357	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5358	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5359$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5360if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5361  $as_echo_n "(cached) " >&6
5362else
5363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5364/* end confdefs.h.  */
5365int i;
5366_ACEOF
5367if ac_fn_c_try_compile "$LINENO"; then :
5368  xorg_cv_cc_flag_unused_command_line_argument=yes
5369else
5370  xorg_cv_cc_flag_unused_command_line_argument=no
5371fi
5372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5373fi
5374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5375$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5376	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5377	CFLAGS="$xorg_testset_save_CFLAGS"
5378fi
5379
5380found="no"
5381
5382	if test $found = "no" ; then
5383		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5384			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5385		fi
5386
5387		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5388			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5389		fi
5390
5391		CFLAGS="$CFLAGS -Wnested-externs"
5392
5393		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5394$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5395		cacheid=xorg_cv_cc_flag__Wnested_externs
5396		if eval \${$cacheid+:} false; then :
5397  $as_echo_n "(cached) " >&6
5398else
5399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400/* end confdefs.h.  */
5401int i;
5402int
5403main ()
5404{
5405
5406  ;
5407  return 0;
5408}
5409_ACEOF
5410if ac_fn_c_try_link "$LINENO"; then :
5411  eval $cacheid=yes
5412else
5413  eval $cacheid=no
5414fi
5415rm -f core conftest.err conftest.$ac_objext \
5416    conftest$ac_exeext conftest.$ac_ext
5417fi
5418
5419
5420		CFLAGS="$xorg_testset_save_CFLAGS"
5421
5422		eval supported=\$$cacheid
5423		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5424$as_echo "$supported" >&6; }
5425		if test "$supported" = "yes" ; then
5426			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5427			found="yes"
5428		fi
5429	fi
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445xorg_testset_save_CFLAGS="$CFLAGS"
5446
5447if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5448	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5449	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5450$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5451if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5452  $as_echo_n "(cached) " >&6
5453else
5454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455/* end confdefs.h.  */
5456int i;
5457_ACEOF
5458if ac_fn_c_try_compile "$LINENO"; then :
5459  xorg_cv_cc_flag_unknown_warning_option=yes
5460else
5461  xorg_cv_cc_flag_unknown_warning_option=no
5462fi
5463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464fi
5465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5466$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5467	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5468	CFLAGS="$xorg_testset_save_CFLAGS"
5469fi
5470
5471if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5472	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5473		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5474	fi
5475	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5476	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5477$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5478if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5479  $as_echo_n "(cached) " >&6
5480else
5481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482/* end confdefs.h.  */
5483int i;
5484_ACEOF
5485if ac_fn_c_try_compile "$LINENO"; then :
5486  xorg_cv_cc_flag_unused_command_line_argument=yes
5487else
5488  xorg_cv_cc_flag_unused_command_line_argument=no
5489fi
5490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491fi
5492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5493$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5494	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5495	CFLAGS="$xorg_testset_save_CFLAGS"
5496fi
5497
5498found="no"
5499
5500	if test $found = "no" ; then
5501		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5502			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5503		fi
5504
5505		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5506			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5507		fi
5508
5509		CFLAGS="$CFLAGS -Wbad-function-cast"
5510
5511		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5512$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5513		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5514		if eval \${$cacheid+:} false; then :
5515  $as_echo_n "(cached) " >&6
5516else
5517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518/* end confdefs.h.  */
5519int i;
5520int
5521main ()
5522{
5523
5524  ;
5525  return 0;
5526}
5527_ACEOF
5528if ac_fn_c_try_link "$LINENO"; then :
5529  eval $cacheid=yes
5530else
5531  eval $cacheid=no
5532fi
5533rm -f core conftest.err conftest.$ac_objext \
5534    conftest$ac_exeext conftest.$ac_ext
5535fi
5536
5537
5538		CFLAGS="$xorg_testset_save_CFLAGS"
5539
5540		eval supported=\$$cacheid
5541		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5542$as_echo "$supported" >&6; }
5543		if test "$supported" = "yes" ; then
5544			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5545			found="yes"
5546		fi
5547	fi
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563xorg_testset_save_CFLAGS="$CFLAGS"
5564
5565if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5566	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5567	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5568$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5569if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5570  $as_echo_n "(cached) " >&6
5571else
5572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573/* end confdefs.h.  */
5574int i;
5575_ACEOF
5576if ac_fn_c_try_compile "$LINENO"; then :
5577  xorg_cv_cc_flag_unknown_warning_option=yes
5578else
5579  xorg_cv_cc_flag_unknown_warning_option=no
5580fi
5581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582fi
5583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5584$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5585	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5586	CFLAGS="$xorg_testset_save_CFLAGS"
5587fi
5588
5589if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5590	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5591		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5592	fi
5593	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5594	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5595$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5596if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5597  $as_echo_n "(cached) " >&6
5598else
5599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600/* end confdefs.h.  */
5601int i;
5602_ACEOF
5603if ac_fn_c_try_compile "$LINENO"; then :
5604  xorg_cv_cc_flag_unused_command_line_argument=yes
5605else
5606  xorg_cv_cc_flag_unused_command_line_argument=no
5607fi
5608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5609fi
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5611$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5612	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5613	CFLAGS="$xorg_testset_save_CFLAGS"
5614fi
5615
5616found="no"
5617
5618	if test $found = "no" ; then
5619		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5620			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5621		fi
5622
5623		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5624			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5625		fi
5626
5627		CFLAGS="$CFLAGS -Wold-style-definition"
5628
5629		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5630$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5631		cacheid=xorg_cv_cc_flag__Wold_style_definition
5632		if eval \${$cacheid+:} false; then :
5633  $as_echo_n "(cached) " >&6
5634else
5635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636/* end confdefs.h.  */
5637int i;
5638int
5639main ()
5640{
5641
5642  ;
5643  return 0;
5644}
5645_ACEOF
5646if ac_fn_c_try_link "$LINENO"; then :
5647  eval $cacheid=yes
5648else
5649  eval $cacheid=no
5650fi
5651rm -f core conftest.err conftest.$ac_objext \
5652    conftest$ac_exeext conftest.$ac_ext
5653fi
5654
5655
5656		CFLAGS="$xorg_testset_save_CFLAGS"
5657
5658		eval supported=\$$cacheid
5659		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5660$as_echo "$supported" >&6; }
5661		if test "$supported" = "yes" ; then
5662			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5663			found="yes"
5664		fi
5665	fi
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681xorg_testset_save_CFLAGS="$CFLAGS"
5682
5683if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5684	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5685	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5686$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5687if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5688  $as_echo_n "(cached) " >&6
5689else
5690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691/* end confdefs.h.  */
5692int i;
5693_ACEOF
5694if ac_fn_c_try_compile "$LINENO"; then :
5695  xorg_cv_cc_flag_unknown_warning_option=yes
5696else
5697  xorg_cv_cc_flag_unknown_warning_option=no
5698fi
5699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700fi
5701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5702$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5703	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5704	CFLAGS="$xorg_testset_save_CFLAGS"
5705fi
5706
5707if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5708	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5709		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5710	fi
5711	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5712	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5713$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5714if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5715  $as_echo_n "(cached) " >&6
5716else
5717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718/* end confdefs.h.  */
5719int i;
5720_ACEOF
5721if ac_fn_c_try_compile "$LINENO"; then :
5722  xorg_cv_cc_flag_unused_command_line_argument=yes
5723else
5724  xorg_cv_cc_flag_unused_command_line_argument=no
5725fi
5726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5727fi
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5729$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5730	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5731	CFLAGS="$xorg_testset_save_CFLAGS"
5732fi
5733
5734found="no"
5735
5736	if test $found = "no" ; then
5737		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5738			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5739		fi
5740
5741		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5742			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5743		fi
5744
5745		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5746
5747		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5748$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5749		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5750		if eval \${$cacheid+:} false; then :
5751  $as_echo_n "(cached) " >&6
5752else
5753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754/* end confdefs.h.  */
5755int i;
5756int
5757main ()
5758{
5759
5760  ;
5761  return 0;
5762}
5763_ACEOF
5764if ac_fn_c_try_link "$LINENO"; then :
5765  eval $cacheid=yes
5766else
5767  eval $cacheid=no
5768fi
5769rm -f core conftest.err conftest.$ac_objext \
5770    conftest$ac_exeext conftest.$ac_ext
5771fi
5772
5773
5774		CFLAGS="$xorg_testset_save_CFLAGS"
5775
5776		eval supported=\$$cacheid
5777		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5778$as_echo "$supported" >&6; }
5779		if test "$supported" = "yes" ; then
5780			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5781			found="yes"
5782		fi
5783	fi
5784
5785
5786
5787
5788
5789# This chunk adds additional warnings that could catch undesired effects.
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803xorg_testset_save_CFLAGS="$CFLAGS"
5804
5805if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5806	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5807	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5808$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5809if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5810  $as_echo_n "(cached) " >&6
5811else
5812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813/* end confdefs.h.  */
5814int i;
5815_ACEOF
5816if ac_fn_c_try_compile "$LINENO"; then :
5817  xorg_cv_cc_flag_unknown_warning_option=yes
5818else
5819  xorg_cv_cc_flag_unknown_warning_option=no
5820fi
5821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5822fi
5823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5824$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5825	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5826	CFLAGS="$xorg_testset_save_CFLAGS"
5827fi
5828
5829if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5830	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5831		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5832	fi
5833	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5834	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5835$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5836if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5837  $as_echo_n "(cached) " >&6
5838else
5839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840/* end confdefs.h.  */
5841int i;
5842_ACEOF
5843if ac_fn_c_try_compile "$LINENO"; then :
5844  xorg_cv_cc_flag_unused_command_line_argument=yes
5845else
5846  xorg_cv_cc_flag_unused_command_line_argument=no
5847fi
5848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5849fi
5850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5851$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5852	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5853	CFLAGS="$xorg_testset_save_CFLAGS"
5854fi
5855
5856found="no"
5857
5858	if test $found = "no" ; then
5859		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5860			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5861		fi
5862
5863		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5864			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5865		fi
5866
5867		CFLAGS="$CFLAGS -Wunused"
5868
5869		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5870$as_echo_n "checking if $CC supports -Wunused... " >&6; }
5871		cacheid=xorg_cv_cc_flag__Wunused
5872		if eval \${$cacheid+:} false; then :
5873  $as_echo_n "(cached) " >&6
5874else
5875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5876/* end confdefs.h.  */
5877int i;
5878int
5879main ()
5880{
5881
5882  ;
5883  return 0;
5884}
5885_ACEOF
5886if ac_fn_c_try_link "$LINENO"; then :
5887  eval $cacheid=yes
5888else
5889  eval $cacheid=no
5890fi
5891rm -f core conftest.err conftest.$ac_objext \
5892    conftest$ac_exeext conftest.$ac_ext
5893fi
5894
5895
5896		CFLAGS="$xorg_testset_save_CFLAGS"
5897
5898		eval supported=\$$cacheid
5899		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5900$as_echo "$supported" >&6; }
5901		if test "$supported" = "yes" ; then
5902			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5903			found="yes"
5904		fi
5905	fi
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921xorg_testset_save_CFLAGS="$CFLAGS"
5922
5923if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5924	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5925	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5926$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5927if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5928  $as_echo_n "(cached) " >&6
5929else
5930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931/* end confdefs.h.  */
5932int i;
5933_ACEOF
5934if ac_fn_c_try_compile "$LINENO"; then :
5935  xorg_cv_cc_flag_unknown_warning_option=yes
5936else
5937  xorg_cv_cc_flag_unknown_warning_option=no
5938fi
5939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5940fi
5941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5942$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5943	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5944	CFLAGS="$xorg_testset_save_CFLAGS"
5945fi
5946
5947if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5948	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5949		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5950	fi
5951	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5952	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5953$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5954if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5955  $as_echo_n "(cached) " >&6
5956else
5957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958/* end confdefs.h.  */
5959int i;
5960_ACEOF
5961if ac_fn_c_try_compile "$LINENO"; then :
5962  xorg_cv_cc_flag_unused_command_line_argument=yes
5963else
5964  xorg_cv_cc_flag_unused_command_line_argument=no
5965fi
5966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5967fi
5968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5969$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5970	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5971	CFLAGS="$xorg_testset_save_CFLAGS"
5972fi
5973
5974found="no"
5975
5976	if test $found = "no" ; then
5977		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5978			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5979		fi
5980
5981		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5982			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5983		fi
5984
5985		CFLAGS="$CFLAGS -Wuninitialized"
5986
5987		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5988$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5989		cacheid=xorg_cv_cc_flag__Wuninitialized
5990		if eval \${$cacheid+:} false; then :
5991  $as_echo_n "(cached) " >&6
5992else
5993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994/* end confdefs.h.  */
5995int i;
5996int
5997main ()
5998{
5999
6000  ;
6001  return 0;
6002}
6003_ACEOF
6004if ac_fn_c_try_link "$LINENO"; then :
6005  eval $cacheid=yes
6006else
6007  eval $cacheid=no
6008fi
6009rm -f core conftest.err conftest.$ac_objext \
6010    conftest$ac_exeext conftest.$ac_ext
6011fi
6012
6013
6014		CFLAGS="$xorg_testset_save_CFLAGS"
6015
6016		eval supported=\$$cacheid
6017		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6018$as_echo "$supported" >&6; }
6019		if test "$supported" = "yes" ; then
6020			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6021			found="yes"
6022		fi
6023	fi
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039xorg_testset_save_CFLAGS="$CFLAGS"
6040
6041if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6042	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6043	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6044$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6045if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6046  $as_echo_n "(cached) " >&6
6047else
6048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049/* end confdefs.h.  */
6050int i;
6051_ACEOF
6052if ac_fn_c_try_compile "$LINENO"; then :
6053  xorg_cv_cc_flag_unknown_warning_option=yes
6054else
6055  xorg_cv_cc_flag_unknown_warning_option=no
6056fi
6057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058fi
6059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6060$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6061	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6062	CFLAGS="$xorg_testset_save_CFLAGS"
6063fi
6064
6065if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6066	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6067		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6068	fi
6069	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6070	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6071$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6072if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6073  $as_echo_n "(cached) " >&6
6074else
6075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076/* end confdefs.h.  */
6077int i;
6078_ACEOF
6079if ac_fn_c_try_compile "$LINENO"; then :
6080  xorg_cv_cc_flag_unused_command_line_argument=yes
6081else
6082  xorg_cv_cc_flag_unused_command_line_argument=no
6083fi
6084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6085fi
6086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6087$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6088	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6089	CFLAGS="$xorg_testset_save_CFLAGS"
6090fi
6091
6092found="no"
6093
6094	if test $found = "no" ; then
6095		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6096			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6097		fi
6098
6099		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6100			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6101		fi
6102
6103		CFLAGS="$CFLAGS -Wshadow"
6104
6105		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6106$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6107		cacheid=xorg_cv_cc_flag__Wshadow
6108		if eval \${$cacheid+:} false; then :
6109  $as_echo_n "(cached) " >&6
6110else
6111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112/* end confdefs.h.  */
6113int i;
6114int
6115main ()
6116{
6117
6118  ;
6119  return 0;
6120}
6121_ACEOF
6122if ac_fn_c_try_link "$LINENO"; then :
6123  eval $cacheid=yes
6124else
6125  eval $cacheid=no
6126fi
6127rm -f core conftest.err conftest.$ac_objext \
6128    conftest$ac_exeext conftest.$ac_ext
6129fi
6130
6131
6132		CFLAGS="$xorg_testset_save_CFLAGS"
6133
6134		eval supported=\$$cacheid
6135		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6136$as_echo "$supported" >&6; }
6137		if test "$supported" = "yes" ; then
6138			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6139			found="yes"
6140		fi
6141	fi
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157xorg_testset_save_CFLAGS="$CFLAGS"
6158
6159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6160	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6161	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6162$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6163if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6164  $as_echo_n "(cached) " >&6
6165else
6166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6167/* end confdefs.h.  */
6168int i;
6169_ACEOF
6170if ac_fn_c_try_compile "$LINENO"; then :
6171  xorg_cv_cc_flag_unknown_warning_option=yes
6172else
6173  xorg_cv_cc_flag_unknown_warning_option=no
6174fi
6175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6176fi
6177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6178$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6179	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6180	CFLAGS="$xorg_testset_save_CFLAGS"
6181fi
6182
6183if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6184	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6185		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6186	fi
6187	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6188	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6189$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6190if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6191  $as_echo_n "(cached) " >&6
6192else
6193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194/* end confdefs.h.  */
6195int i;
6196_ACEOF
6197if ac_fn_c_try_compile "$LINENO"; then :
6198  xorg_cv_cc_flag_unused_command_line_argument=yes
6199else
6200  xorg_cv_cc_flag_unused_command_line_argument=no
6201fi
6202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6203fi
6204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6205$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6206	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6207	CFLAGS="$xorg_testset_save_CFLAGS"
6208fi
6209
6210found="no"
6211
6212	if test $found = "no" ; then
6213		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6214			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6215		fi
6216
6217		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6218			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6219		fi
6220
6221		CFLAGS="$CFLAGS -Wcast-qual"
6222
6223		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6224$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6225		cacheid=xorg_cv_cc_flag__Wcast_qual
6226		if eval \${$cacheid+:} false; then :
6227  $as_echo_n "(cached) " >&6
6228else
6229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6230/* end confdefs.h.  */
6231int i;
6232int
6233main ()
6234{
6235
6236  ;
6237  return 0;
6238}
6239_ACEOF
6240if ac_fn_c_try_link "$LINENO"; then :
6241  eval $cacheid=yes
6242else
6243  eval $cacheid=no
6244fi
6245rm -f core conftest.err conftest.$ac_objext \
6246    conftest$ac_exeext conftest.$ac_ext
6247fi
6248
6249
6250		CFLAGS="$xorg_testset_save_CFLAGS"
6251
6252		eval supported=\$$cacheid
6253		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6254$as_echo "$supported" >&6; }
6255		if test "$supported" = "yes" ; then
6256			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6257			found="yes"
6258		fi
6259	fi
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275xorg_testset_save_CFLAGS="$CFLAGS"
6276
6277if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6278	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6279	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6280$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6281if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6282  $as_echo_n "(cached) " >&6
6283else
6284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6285/* end confdefs.h.  */
6286int i;
6287_ACEOF
6288if ac_fn_c_try_compile "$LINENO"; then :
6289  xorg_cv_cc_flag_unknown_warning_option=yes
6290else
6291  xorg_cv_cc_flag_unknown_warning_option=no
6292fi
6293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6294fi
6295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6296$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6297	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6298	CFLAGS="$xorg_testset_save_CFLAGS"
6299fi
6300
6301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6302	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6303		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6304	fi
6305	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6306	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6307$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6308if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6309  $as_echo_n "(cached) " >&6
6310else
6311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6312/* end confdefs.h.  */
6313int i;
6314_ACEOF
6315if ac_fn_c_try_compile "$LINENO"; then :
6316  xorg_cv_cc_flag_unused_command_line_argument=yes
6317else
6318  xorg_cv_cc_flag_unused_command_line_argument=no
6319fi
6320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6321fi
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6323$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6324	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6325	CFLAGS="$xorg_testset_save_CFLAGS"
6326fi
6327
6328found="no"
6329
6330	if test $found = "no" ; then
6331		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6332			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6333		fi
6334
6335		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6336			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6337		fi
6338
6339		CFLAGS="$CFLAGS -Wmissing-noreturn"
6340
6341		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6342$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6343		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6344		if eval \${$cacheid+:} false; then :
6345  $as_echo_n "(cached) " >&6
6346else
6347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6348/* end confdefs.h.  */
6349int i;
6350int
6351main ()
6352{
6353
6354  ;
6355  return 0;
6356}
6357_ACEOF
6358if ac_fn_c_try_link "$LINENO"; then :
6359  eval $cacheid=yes
6360else
6361  eval $cacheid=no
6362fi
6363rm -f core conftest.err conftest.$ac_objext \
6364    conftest$ac_exeext conftest.$ac_ext
6365fi
6366
6367
6368		CFLAGS="$xorg_testset_save_CFLAGS"
6369
6370		eval supported=\$$cacheid
6371		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6372$as_echo "$supported" >&6; }
6373		if test "$supported" = "yes" ; then
6374			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6375			found="yes"
6376		fi
6377	fi
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393xorg_testset_save_CFLAGS="$CFLAGS"
6394
6395if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6396	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6397	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6398$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6399if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6400  $as_echo_n "(cached) " >&6
6401else
6402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403/* end confdefs.h.  */
6404int i;
6405_ACEOF
6406if ac_fn_c_try_compile "$LINENO"; then :
6407  xorg_cv_cc_flag_unknown_warning_option=yes
6408else
6409  xorg_cv_cc_flag_unknown_warning_option=no
6410fi
6411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6412fi
6413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6414$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6415	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6416	CFLAGS="$xorg_testset_save_CFLAGS"
6417fi
6418
6419if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6420	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6421		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6422	fi
6423	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6424	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6425$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6426if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6427  $as_echo_n "(cached) " >&6
6428else
6429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430/* end confdefs.h.  */
6431int i;
6432_ACEOF
6433if ac_fn_c_try_compile "$LINENO"; then :
6434  xorg_cv_cc_flag_unused_command_line_argument=yes
6435else
6436  xorg_cv_cc_flag_unused_command_line_argument=no
6437fi
6438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6439fi
6440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6441$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6442	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6443	CFLAGS="$xorg_testset_save_CFLAGS"
6444fi
6445
6446found="no"
6447
6448	if test $found = "no" ; then
6449		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6450			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6451		fi
6452
6453		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6454			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6455		fi
6456
6457		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6458
6459		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6460$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6461		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6462		if eval \${$cacheid+:} false; then :
6463  $as_echo_n "(cached) " >&6
6464else
6465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466/* end confdefs.h.  */
6467int i;
6468int
6469main ()
6470{
6471
6472  ;
6473  return 0;
6474}
6475_ACEOF
6476if ac_fn_c_try_link "$LINENO"; then :
6477  eval $cacheid=yes
6478else
6479  eval $cacheid=no
6480fi
6481rm -f core conftest.err conftest.$ac_objext \
6482    conftest$ac_exeext conftest.$ac_ext
6483fi
6484
6485
6486		CFLAGS="$xorg_testset_save_CFLAGS"
6487
6488		eval supported=\$$cacheid
6489		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6490$as_echo "$supported" >&6; }
6491		if test "$supported" = "yes" ; then
6492			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6493			found="yes"
6494		fi
6495	fi
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511xorg_testset_save_CFLAGS="$CFLAGS"
6512
6513if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6514	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6515	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6516$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6517if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6518  $as_echo_n "(cached) " >&6
6519else
6520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521/* end confdefs.h.  */
6522int i;
6523_ACEOF
6524if ac_fn_c_try_compile "$LINENO"; then :
6525  xorg_cv_cc_flag_unknown_warning_option=yes
6526else
6527  xorg_cv_cc_flag_unknown_warning_option=no
6528fi
6529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6530fi
6531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6532$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6533	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6534	CFLAGS="$xorg_testset_save_CFLAGS"
6535fi
6536
6537if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6538	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6539		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6540	fi
6541	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6542	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6543$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6544if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6545  $as_echo_n "(cached) " >&6
6546else
6547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548/* end confdefs.h.  */
6549int i;
6550_ACEOF
6551if ac_fn_c_try_compile "$LINENO"; then :
6552  xorg_cv_cc_flag_unused_command_line_argument=yes
6553else
6554  xorg_cv_cc_flag_unused_command_line_argument=no
6555fi
6556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6557fi
6558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6559$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6560	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6561	CFLAGS="$xorg_testset_save_CFLAGS"
6562fi
6563
6564found="no"
6565
6566	if test $found = "no" ; then
6567		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6568			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6569		fi
6570
6571		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6572			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6573		fi
6574
6575		CFLAGS="$CFLAGS -Wredundant-decls"
6576
6577		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6578$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6579		cacheid=xorg_cv_cc_flag__Wredundant_decls
6580		if eval \${$cacheid+:} false; then :
6581  $as_echo_n "(cached) " >&6
6582else
6583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6584/* end confdefs.h.  */
6585int i;
6586int
6587main ()
6588{
6589
6590  ;
6591  return 0;
6592}
6593_ACEOF
6594if ac_fn_c_try_link "$LINENO"; then :
6595  eval $cacheid=yes
6596else
6597  eval $cacheid=no
6598fi
6599rm -f core conftest.err conftest.$ac_objext \
6600    conftest$ac_exeext conftest.$ac_ext
6601fi
6602
6603
6604		CFLAGS="$xorg_testset_save_CFLAGS"
6605
6606		eval supported=\$$cacheid
6607		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6608$as_echo "$supported" >&6; }
6609		if test "$supported" = "yes" ; then
6610			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6611			found="yes"
6612		fi
6613	fi
6614
6615
6616
6617# These are currently disabled because they are noisy.  They will be enabled
6618# in the future once the codebase is sufficiently modernized to silence
6619# them.  For now, I don't want them to drown out the other warnings.
6620# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6621# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6622# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6623
6624# Turn some warnings into errors, so we don't accidently get successful builds
6625# when there are problems that should be fixed.
6626
6627if test "x$SELECTIVE_WERROR" = "xyes" ; then
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641xorg_testset_save_CFLAGS="$CFLAGS"
6642
6643if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6644	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6645	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6646$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6647if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6648  $as_echo_n "(cached) " >&6
6649else
6650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6651/* end confdefs.h.  */
6652int i;
6653_ACEOF
6654if ac_fn_c_try_compile "$LINENO"; then :
6655  xorg_cv_cc_flag_unknown_warning_option=yes
6656else
6657  xorg_cv_cc_flag_unknown_warning_option=no
6658fi
6659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6660fi
6661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6662$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6663	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6664	CFLAGS="$xorg_testset_save_CFLAGS"
6665fi
6666
6667if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6668	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6669		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6670	fi
6671	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6672	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6673$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6674if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6675  $as_echo_n "(cached) " >&6
6676else
6677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678/* end confdefs.h.  */
6679int i;
6680_ACEOF
6681if ac_fn_c_try_compile "$LINENO"; then :
6682  xorg_cv_cc_flag_unused_command_line_argument=yes
6683else
6684  xorg_cv_cc_flag_unused_command_line_argument=no
6685fi
6686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687fi
6688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6689$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6690	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6691	CFLAGS="$xorg_testset_save_CFLAGS"
6692fi
6693
6694found="no"
6695
6696	if test $found = "no" ; then
6697		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6698			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6699		fi
6700
6701		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6702			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6703		fi
6704
6705		CFLAGS="$CFLAGS -Werror=implicit"
6706
6707		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6708$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6709		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6710		if eval \${$cacheid+:} false; then :
6711  $as_echo_n "(cached) " >&6
6712else
6713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714/* end confdefs.h.  */
6715int i;
6716int
6717main ()
6718{
6719
6720  ;
6721  return 0;
6722}
6723_ACEOF
6724if ac_fn_c_try_link "$LINENO"; then :
6725  eval $cacheid=yes
6726else
6727  eval $cacheid=no
6728fi
6729rm -f core conftest.err conftest.$ac_objext \
6730    conftest$ac_exeext conftest.$ac_ext
6731fi
6732
6733
6734		CFLAGS="$xorg_testset_save_CFLAGS"
6735
6736		eval supported=\$$cacheid
6737		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6738$as_echo "$supported" >&6; }
6739		if test "$supported" = "yes" ; then
6740			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6741			found="yes"
6742		fi
6743	fi
6744
6745	if test $found = "no" ; then
6746		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6747			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6748		fi
6749
6750		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6751			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6752		fi
6753
6754		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6755
6756		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6757$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6758		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6759		if eval \${$cacheid+:} false; then :
6760  $as_echo_n "(cached) " >&6
6761else
6762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6763/* end confdefs.h.  */
6764int i;
6765int
6766main ()
6767{
6768
6769  ;
6770  return 0;
6771}
6772_ACEOF
6773if ac_fn_c_try_link "$LINENO"; then :
6774  eval $cacheid=yes
6775else
6776  eval $cacheid=no
6777fi
6778rm -f core conftest.err conftest.$ac_objext \
6779    conftest$ac_exeext conftest.$ac_ext
6780fi
6781
6782
6783		CFLAGS="$xorg_testset_save_CFLAGS"
6784
6785		eval supported=\$$cacheid
6786		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6787$as_echo "$supported" >&6; }
6788		if test "$supported" = "yes" ; then
6789			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6790			found="yes"
6791		fi
6792	fi
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808xorg_testset_save_CFLAGS="$CFLAGS"
6809
6810if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6811	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6812	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6813$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6814if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6815  $as_echo_n "(cached) " >&6
6816else
6817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6818/* end confdefs.h.  */
6819int i;
6820_ACEOF
6821if ac_fn_c_try_compile "$LINENO"; then :
6822  xorg_cv_cc_flag_unknown_warning_option=yes
6823else
6824  xorg_cv_cc_flag_unknown_warning_option=no
6825fi
6826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6827fi
6828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6829$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6830	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6831	CFLAGS="$xorg_testset_save_CFLAGS"
6832fi
6833
6834if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6835	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6836		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6837	fi
6838	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6839	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6840$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6841if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6842  $as_echo_n "(cached) " >&6
6843else
6844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845/* end confdefs.h.  */
6846int i;
6847_ACEOF
6848if ac_fn_c_try_compile "$LINENO"; then :
6849  xorg_cv_cc_flag_unused_command_line_argument=yes
6850else
6851  xorg_cv_cc_flag_unused_command_line_argument=no
6852fi
6853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6854fi
6855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6856$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6857	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6858	CFLAGS="$xorg_testset_save_CFLAGS"
6859fi
6860
6861found="no"
6862
6863	if test $found = "no" ; then
6864		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6865			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6866		fi
6867
6868		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6869			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6870		fi
6871
6872		CFLAGS="$CFLAGS -Werror=nonnull"
6873
6874		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6875$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6876		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6877		if eval \${$cacheid+:} false; then :
6878  $as_echo_n "(cached) " >&6
6879else
6880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881/* end confdefs.h.  */
6882int i;
6883int
6884main ()
6885{
6886
6887  ;
6888  return 0;
6889}
6890_ACEOF
6891if ac_fn_c_try_link "$LINENO"; then :
6892  eval $cacheid=yes
6893else
6894  eval $cacheid=no
6895fi
6896rm -f core conftest.err conftest.$ac_objext \
6897    conftest$ac_exeext conftest.$ac_ext
6898fi
6899
6900
6901		CFLAGS="$xorg_testset_save_CFLAGS"
6902
6903		eval supported=\$$cacheid
6904		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6905$as_echo "$supported" >&6; }
6906		if test "$supported" = "yes" ; then
6907			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6908			found="yes"
6909		fi
6910	fi
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926xorg_testset_save_CFLAGS="$CFLAGS"
6927
6928if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6929	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6930	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6931$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6932if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6933  $as_echo_n "(cached) " >&6
6934else
6935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936/* end confdefs.h.  */
6937int i;
6938_ACEOF
6939if ac_fn_c_try_compile "$LINENO"; then :
6940  xorg_cv_cc_flag_unknown_warning_option=yes
6941else
6942  xorg_cv_cc_flag_unknown_warning_option=no
6943fi
6944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6945fi
6946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6947$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6948	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6949	CFLAGS="$xorg_testset_save_CFLAGS"
6950fi
6951
6952if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6953	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6954		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6955	fi
6956	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6957	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6958$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6959if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6960  $as_echo_n "(cached) " >&6
6961else
6962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963/* end confdefs.h.  */
6964int i;
6965_ACEOF
6966if ac_fn_c_try_compile "$LINENO"; then :
6967  xorg_cv_cc_flag_unused_command_line_argument=yes
6968else
6969  xorg_cv_cc_flag_unused_command_line_argument=no
6970fi
6971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6972fi
6973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6974$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6975	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6976	CFLAGS="$xorg_testset_save_CFLAGS"
6977fi
6978
6979found="no"
6980
6981	if test $found = "no" ; then
6982		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6983			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6984		fi
6985
6986		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6987			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6988		fi
6989
6990		CFLAGS="$CFLAGS -Werror=init-self"
6991
6992		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6993$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6994		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
6995		if eval \${$cacheid+:} false; then :
6996  $as_echo_n "(cached) " >&6
6997else
6998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6999/* end confdefs.h.  */
7000int i;
7001int
7002main ()
7003{
7004
7005  ;
7006  return 0;
7007}
7008_ACEOF
7009if ac_fn_c_try_link "$LINENO"; then :
7010  eval $cacheid=yes
7011else
7012  eval $cacheid=no
7013fi
7014rm -f core conftest.err conftest.$ac_objext \
7015    conftest$ac_exeext conftest.$ac_ext
7016fi
7017
7018
7019		CFLAGS="$xorg_testset_save_CFLAGS"
7020
7021		eval supported=\$$cacheid
7022		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7023$as_echo "$supported" >&6; }
7024		if test "$supported" = "yes" ; then
7025			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7026			found="yes"
7027		fi
7028	fi
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044xorg_testset_save_CFLAGS="$CFLAGS"
7045
7046if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7047	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7048	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7049$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7050if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7051  $as_echo_n "(cached) " >&6
7052else
7053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054/* end confdefs.h.  */
7055int i;
7056_ACEOF
7057if ac_fn_c_try_compile "$LINENO"; then :
7058  xorg_cv_cc_flag_unknown_warning_option=yes
7059else
7060  xorg_cv_cc_flag_unknown_warning_option=no
7061fi
7062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7063fi
7064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7065$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7066	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7067	CFLAGS="$xorg_testset_save_CFLAGS"
7068fi
7069
7070if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7071	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7072		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7073	fi
7074	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7075	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7076$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7077if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7078  $as_echo_n "(cached) " >&6
7079else
7080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081/* end confdefs.h.  */
7082int i;
7083_ACEOF
7084if ac_fn_c_try_compile "$LINENO"; then :
7085  xorg_cv_cc_flag_unused_command_line_argument=yes
7086else
7087  xorg_cv_cc_flag_unused_command_line_argument=no
7088fi
7089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7090fi
7091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7092$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7093	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7094	CFLAGS="$xorg_testset_save_CFLAGS"
7095fi
7096
7097found="no"
7098
7099	if test $found = "no" ; then
7100		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7101			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7102		fi
7103
7104		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7105			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7106		fi
7107
7108		CFLAGS="$CFLAGS -Werror=main"
7109
7110		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7111$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7112		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7113		if eval \${$cacheid+:} false; then :
7114  $as_echo_n "(cached) " >&6
7115else
7116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7117/* end confdefs.h.  */
7118int i;
7119int
7120main ()
7121{
7122
7123  ;
7124  return 0;
7125}
7126_ACEOF
7127if ac_fn_c_try_link "$LINENO"; then :
7128  eval $cacheid=yes
7129else
7130  eval $cacheid=no
7131fi
7132rm -f core conftest.err conftest.$ac_objext \
7133    conftest$ac_exeext conftest.$ac_ext
7134fi
7135
7136
7137		CFLAGS="$xorg_testset_save_CFLAGS"
7138
7139		eval supported=\$$cacheid
7140		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7141$as_echo "$supported" >&6; }
7142		if test "$supported" = "yes" ; then
7143			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7144			found="yes"
7145		fi
7146	fi
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162xorg_testset_save_CFLAGS="$CFLAGS"
7163
7164if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7165	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7166	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7167$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7168if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7169  $as_echo_n "(cached) " >&6
7170else
7171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172/* end confdefs.h.  */
7173int i;
7174_ACEOF
7175if ac_fn_c_try_compile "$LINENO"; then :
7176  xorg_cv_cc_flag_unknown_warning_option=yes
7177else
7178  xorg_cv_cc_flag_unknown_warning_option=no
7179fi
7180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7181fi
7182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7183$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7184	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7185	CFLAGS="$xorg_testset_save_CFLAGS"
7186fi
7187
7188if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7189	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7190		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7191	fi
7192	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7193	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7194$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7195if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7196  $as_echo_n "(cached) " >&6
7197else
7198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199/* end confdefs.h.  */
7200int i;
7201_ACEOF
7202if ac_fn_c_try_compile "$LINENO"; then :
7203  xorg_cv_cc_flag_unused_command_line_argument=yes
7204else
7205  xorg_cv_cc_flag_unused_command_line_argument=no
7206fi
7207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7208fi
7209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7210$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7211	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7212	CFLAGS="$xorg_testset_save_CFLAGS"
7213fi
7214
7215found="no"
7216
7217	if test $found = "no" ; then
7218		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7219			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7220		fi
7221
7222		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7223			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7224		fi
7225
7226		CFLAGS="$CFLAGS -Werror=missing-braces"
7227
7228		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7229$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7230		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7231		if eval \${$cacheid+:} false; then :
7232  $as_echo_n "(cached) " >&6
7233else
7234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235/* end confdefs.h.  */
7236int i;
7237int
7238main ()
7239{
7240
7241  ;
7242  return 0;
7243}
7244_ACEOF
7245if ac_fn_c_try_link "$LINENO"; then :
7246  eval $cacheid=yes
7247else
7248  eval $cacheid=no
7249fi
7250rm -f core conftest.err conftest.$ac_objext \
7251    conftest$ac_exeext conftest.$ac_ext
7252fi
7253
7254
7255		CFLAGS="$xorg_testset_save_CFLAGS"
7256
7257		eval supported=\$$cacheid
7258		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7259$as_echo "$supported" >&6; }
7260		if test "$supported" = "yes" ; then
7261			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7262			found="yes"
7263		fi
7264	fi
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280xorg_testset_save_CFLAGS="$CFLAGS"
7281
7282if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7283	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7284	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7285$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7286if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7287  $as_echo_n "(cached) " >&6
7288else
7289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290/* end confdefs.h.  */
7291int i;
7292_ACEOF
7293if ac_fn_c_try_compile "$LINENO"; then :
7294  xorg_cv_cc_flag_unknown_warning_option=yes
7295else
7296  xorg_cv_cc_flag_unknown_warning_option=no
7297fi
7298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7299fi
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7301$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7302	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7303	CFLAGS="$xorg_testset_save_CFLAGS"
7304fi
7305
7306if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7307	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7308		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7309	fi
7310	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7311	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7312$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7313if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7314  $as_echo_n "(cached) " >&6
7315else
7316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317/* end confdefs.h.  */
7318int i;
7319_ACEOF
7320if ac_fn_c_try_compile "$LINENO"; then :
7321  xorg_cv_cc_flag_unused_command_line_argument=yes
7322else
7323  xorg_cv_cc_flag_unused_command_line_argument=no
7324fi
7325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7326fi
7327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7328$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7329	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7330	CFLAGS="$xorg_testset_save_CFLAGS"
7331fi
7332
7333found="no"
7334
7335	if test $found = "no" ; then
7336		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7337			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7338		fi
7339
7340		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7341			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7342		fi
7343
7344		CFLAGS="$CFLAGS -Werror=sequence-point"
7345
7346		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7347$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7348		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7349		if eval \${$cacheid+:} false; then :
7350  $as_echo_n "(cached) " >&6
7351else
7352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353/* end confdefs.h.  */
7354int i;
7355int
7356main ()
7357{
7358
7359  ;
7360  return 0;
7361}
7362_ACEOF
7363if ac_fn_c_try_link "$LINENO"; then :
7364  eval $cacheid=yes
7365else
7366  eval $cacheid=no
7367fi
7368rm -f core conftest.err conftest.$ac_objext \
7369    conftest$ac_exeext conftest.$ac_ext
7370fi
7371
7372
7373		CFLAGS="$xorg_testset_save_CFLAGS"
7374
7375		eval supported=\$$cacheid
7376		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7377$as_echo "$supported" >&6; }
7378		if test "$supported" = "yes" ; then
7379			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7380			found="yes"
7381		fi
7382	fi
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398xorg_testset_save_CFLAGS="$CFLAGS"
7399
7400if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7401	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7402	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7403$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7404if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7405  $as_echo_n "(cached) " >&6
7406else
7407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408/* end confdefs.h.  */
7409int i;
7410_ACEOF
7411if ac_fn_c_try_compile "$LINENO"; then :
7412  xorg_cv_cc_flag_unknown_warning_option=yes
7413else
7414  xorg_cv_cc_flag_unknown_warning_option=no
7415fi
7416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7417fi
7418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7419$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7420	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7421	CFLAGS="$xorg_testset_save_CFLAGS"
7422fi
7423
7424if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7425	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7426		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7427	fi
7428	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7429	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7430$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7431if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7432  $as_echo_n "(cached) " >&6
7433else
7434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435/* end confdefs.h.  */
7436int i;
7437_ACEOF
7438if ac_fn_c_try_compile "$LINENO"; then :
7439  xorg_cv_cc_flag_unused_command_line_argument=yes
7440else
7441  xorg_cv_cc_flag_unused_command_line_argument=no
7442fi
7443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7444fi
7445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7446$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7447	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7448	CFLAGS="$xorg_testset_save_CFLAGS"
7449fi
7450
7451found="no"
7452
7453	if test $found = "no" ; then
7454		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7455			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7456		fi
7457
7458		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7459			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7460		fi
7461
7462		CFLAGS="$CFLAGS -Werror=return-type"
7463
7464		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7465$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7466		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7467		if eval \${$cacheid+:} false; then :
7468  $as_echo_n "(cached) " >&6
7469else
7470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7471/* end confdefs.h.  */
7472int i;
7473int
7474main ()
7475{
7476
7477  ;
7478  return 0;
7479}
7480_ACEOF
7481if ac_fn_c_try_link "$LINENO"; then :
7482  eval $cacheid=yes
7483else
7484  eval $cacheid=no
7485fi
7486rm -f core conftest.err conftest.$ac_objext \
7487    conftest$ac_exeext conftest.$ac_ext
7488fi
7489
7490
7491		CFLAGS="$xorg_testset_save_CFLAGS"
7492
7493		eval supported=\$$cacheid
7494		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7495$as_echo "$supported" >&6; }
7496		if test "$supported" = "yes" ; then
7497			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7498			found="yes"
7499		fi
7500	fi
7501
7502	if test $found = "no" ; then
7503		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7504			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7505		fi
7506
7507		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7508			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7509		fi
7510
7511		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7512
7513		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7514$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7515		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7516		if eval \${$cacheid+:} false; then :
7517  $as_echo_n "(cached) " >&6
7518else
7519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520/* end confdefs.h.  */
7521int i;
7522int
7523main ()
7524{
7525
7526  ;
7527  return 0;
7528}
7529_ACEOF
7530if ac_fn_c_try_link "$LINENO"; then :
7531  eval $cacheid=yes
7532else
7533  eval $cacheid=no
7534fi
7535rm -f core conftest.err conftest.$ac_objext \
7536    conftest$ac_exeext conftest.$ac_ext
7537fi
7538
7539
7540		CFLAGS="$xorg_testset_save_CFLAGS"
7541
7542		eval supported=\$$cacheid
7543		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7544$as_echo "$supported" >&6; }
7545		if test "$supported" = "yes" ; then
7546			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7547			found="yes"
7548		fi
7549	fi
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565xorg_testset_save_CFLAGS="$CFLAGS"
7566
7567if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7568	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7569	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7570$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7571if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7572  $as_echo_n "(cached) " >&6
7573else
7574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7575/* end confdefs.h.  */
7576int i;
7577_ACEOF
7578if ac_fn_c_try_compile "$LINENO"; then :
7579  xorg_cv_cc_flag_unknown_warning_option=yes
7580else
7581  xorg_cv_cc_flag_unknown_warning_option=no
7582fi
7583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7584fi
7585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7586$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7587	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7588	CFLAGS="$xorg_testset_save_CFLAGS"
7589fi
7590
7591if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7592	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7593		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7594	fi
7595	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7596	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7597$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7598if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7599  $as_echo_n "(cached) " >&6
7600else
7601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602/* end confdefs.h.  */
7603int i;
7604_ACEOF
7605if ac_fn_c_try_compile "$LINENO"; then :
7606  xorg_cv_cc_flag_unused_command_line_argument=yes
7607else
7608  xorg_cv_cc_flag_unused_command_line_argument=no
7609fi
7610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7611fi
7612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7613$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7614	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7615	CFLAGS="$xorg_testset_save_CFLAGS"
7616fi
7617
7618found="no"
7619
7620	if test $found = "no" ; then
7621		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7622			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7623		fi
7624
7625		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7626			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7627		fi
7628
7629		CFLAGS="$CFLAGS -Werror=trigraphs"
7630
7631		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7632$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7633		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7634		if eval \${$cacheid+:} false; then :
7635  $as_echo_n "(cached) " >&6
7636else
7637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638/* end confdefs.h.  */
7639int i;
7640int
7641main ()
7642{
7643
7644  ;
7645  return 0;
7646}
7647_ACEOF
7648if ac_fn_c_try_link "$LINENO"; then :
7649  eval $cacheid=yes
7650else
7651  eval $cacheid=no
7652fi
7653rm -f core conftest.err conftest.$ac_objext \
7654    conftest$ac_exeext conftest.$ac_ext
7655fi
7656
7657
7658		CFLAGS="$xorg_testset_save_CFLAGS"
7659
7660		eval supported=\$$cacheid
7661		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7662$as_echo "$supported" >&6; }
7663		if test "$supported" = "yes" ; then
7664			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7665			found="yes"
7666		fi
7667	fi
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683xorg_testset_save_CFLAGS="$CFLAGS"
7684
7685if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7686	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7687	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7688$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7689if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7690  $as_echo_n "(cached) " >&6
7691else
7692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693/* end confdefs.h.  */
7694int i;
7695_ACEOF
7696if ac_fn_c_try_compile "$LINENO"; then :
7697  xorg_cv_cc_flag_unknown_warning_option=yes
7698else
7699  xorg_cv_cc_flag_unknown_warning_option=no
7700fi
7701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7702fi
7703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7704$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7705	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7706	CFLAGS="$xorg_testset_save_CFLAGS"
7707fi
7708
7709if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7710	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7711		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7712	fi
7713	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7714	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7715$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7716if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7717  $as_echo_n "(cached) " >&6
7718else
7719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720/* end confdefs.h.  */
7721int i;
7722_ACEOF
7723if ac_fn_c_try_compile "$LINENO"; then :
7724  xorg_cv_cc_flag_unused_command_line_argument=yes
7725else
7726  xorg_cv_cc_flag_unused_command_line_argument=no
7727fi
7728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7729fi
7730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7731$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7732	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7733	CFLAGS="$xorg_testset_save_CFLAGS"
7734fi
7735
7736found="no"
7737
7738	if test $found = "no" ; then
7739		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7740			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7741		fi
7742
7743		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7744			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7745		fi
7746
7747		CFLAGS="$CFLAGS -Werror=array-bounds"
7748
7749		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7750$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7751		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7752		if eval \${$cacheid+:} false; then :
7753  $as_echo_n "(cached) " >&6
7754else
7755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756/* end confdefs.h.  */
7757int i;
7758int
7759main ()
7760{
7761
7762  ;
7763  return 0;
7764}
7765_ACEOF
7766if ac_fn_c_try_link "$LINENO"; then :
7767  eval $cacheid=yes
7768else
7769  eval $cacheid=no
7770fi
7771rm -f core conftest.err conftest.$ac_objext \
7772    conftest$ac_exeext conftest.$ac_ext
7773fi
7774
7775
7776		CFLAGS="$xorg_testset_save_CFLAGS"
7777
7778		eval supported=\$$cacheid
7779		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7780$as_echo "$supported" >&6; }
7781		if test "$supported" = "yes" ; then
7782			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7783			found="yes"
7784		fi
7785	fi
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801xorg_testset_save_CFLAGS="$CFLAGS"
7802
7803if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7804	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7805	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7806$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7807if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7808  $as_echo_n "(cached) " >&6
7809else
7810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811/* end confdefs.h.  */
7812int i;
7813_ACEOF
7814if ac_fn_c_try_compile "$LINENO"; then :
7815  xorg_cv_cc_flag_unknown_warning_option=yes
7816else
7817  xorg_cv_cc_flag_unknown_warning_option=no
7818fi
7819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7820fi
7821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7822$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7823	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7824	CFLAGS="$xorg_testset_save_CFLAGS"
7825fi
7826
7827if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7828	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7829		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7830	fi
7831	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7832	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7833$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7834if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7835  $as_echo_n "(cached) " >&6
7836else
7837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838/* end confdefs.h.  */
7839int i;
7840_ACEOF
7841if ac_fn_c_try_compile "$LINENO"; then :
7842  xorg_cv_cc_flag_unused_command_line_argument=yes
7843else
7844  xorg_cv_cc_flag_unused_command_line_argument=no
7845fi
7846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7847fi
7848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7849$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7850	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7851	CFLAGS="$xorg_testset_save_CFLAGS"
7852fi
7853
7854found="no"
7855
7856	if test $found = "no" ; then
7857		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7858			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7859		fi
7860
7861		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7862			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7863		fi
7864
7865		CFLAGS="$CFLAGS -Werror=write-strings"
7866
7867		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7868$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7869		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7870		if eval \${$cacheid+:} false; then :
7871  $as_echo_n "(cached) " >&6
7872else
7873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874/* end confdefs.h.  */
7875int i;
7876int
7877main ()
7878{
7879
7880  ;
7881  return 0;
7882}
7883_ACEOF
7884if ac_fn_c_try_link "$LINENO"; then :
7885  eval $cacheid=yes
7886else
7887  eval $cacheid=no
7888fi
7889rm -f core conftest.err conftest.$ac_objext \
7890    conftest$ac_exeext conftest.$ac_ext
7891fi
7892
7893
7894		CFLAGS="$xorg_testset_save_CFLAGS"
7895
7896		eval supported=\$$cacheid
7897		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7898$as_echo "$supported" >&6; }
7899		if test "$supported" = "yes" ; then
7900			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7901			found="yes"
7902		fi
7903	fi
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919xorg_testset_save_CFLAGS="$CFLAGS"
7920
7921if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7922	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7923	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7924$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7925if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7926  $as_echo_n "(cached) " >&6
7927else
7928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929/* end confdefs.h.  */
7930int i;
7931_ACEOF
7932if ac_fn_c_try_compile "$LINENO"; then :
7933  xorg_cv_cc_flag_unknown_warning_option=yes
7934else
7935  xorg_cv_cc_flag_unknown_warning_option=no
7936fi
7937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7938fi
7939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7940$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7941	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7942	CFLAGS="$xorg_testset_save_CFLAGS"
7943fi
7944
7945if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7946	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7947		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7948	fi
7949	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7950	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7951$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7952if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7953  $as_echo_n "(cached) " >&6
7954else
7955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956/* end confdefs.h.  */
7957int i;
7958_ACEOF
7959if ac_fn_c_try_compile "$LINENO"; then :
7960  xorg_cv_cc_flag_unused_command_line_argument=yes
7961else
7962  xorg_cv_cc_flag_unused_command_line_argument=no
7963fi
7964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7965fi
7966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7967$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7968	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7969	CFLAGS="$xorg_testset_save_CFLAGS"
7970fi
7971
7972found="no"
7973
7974	if test $found = "no" ; then
7975		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7976			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7977		fi
7978
7979		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7980			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7981		fi
7982
7983		CFLAGS="$CFLAGS -Werror=address"
7984
7985		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7986$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7987		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
7988		if eval \${$cacheid+:} false; then :
7989  $as_echo_n "(cached) " >&6
7990else
7991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992/* end confdefs.h.  */
7993int i;
7994int
7995main ()
7996{
7997
7998  ;
7999  return 0;
8000}
8001_ACEOF
8002if ac_fn_c_try_link "$LINENO"; then :
8003  eval $cacheid=yes
8004else
8005  eval $cacheid=no
8006fi
8007rm -f core conftest.err conftest.$ac_objext \
8008    conftest$ac_exeext conftest.$ac_ext
8009fi
8010
8011
8012		CFLAGS="$xorg_testset_save_CFLAGS"
8013
8014		eval supported=\$$cacheid
8015		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8016$as_echo "$supported" >&6; }
8017		if test "$supported" = "yes" ; then
8018			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8019			found="yes"
8020		fi
8021	fi
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037xorg_testset_save_CFLAGS="$CFLAGS"
8038
8039if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8040	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8041	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8042$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8043if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8044  $as_echo_n "(cached) " >&6
8045else
8046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047/* end confdefs.h.  */
8048int i;
8049_ACEOF
8050if ac_fn_c_try_compile "$LINENO"; then :
8051  xorg_cv_cc_flag_unknown_warning_option=yes
8052else
8053  xorg_cv_cc_flag_unknown_warning_option=no
8054fi
8055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8056fi
8057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8058$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8059	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8060	CFLAGS="$xorg_testset_save_CFLAGS"
8061fi
8062
8063if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8064	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8065		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8066	fi
8067	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8068	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8069$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8070if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8071  $as_echo_n "(cached) " >&6
8072else
8073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8074/* end confdefs.h.  */
8075int i;
8076_ACEOF
8077if ac_fn_c_try_compile "$LINENO"; then :
8078  xorg_cv_cc_flag_unused_command_line_argument=yes
8079else
8080  xorg_cv_cc_flag_unused_command_line_argument=no
8081fi
8082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8083fi
8084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8085$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8086	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8087	CFLAGS="$xorg_testset_save_CFLAGS"
8088fi
8089
8090found="no"
8091
8092	if test $found = "no" ; then
8093		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8094			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8095		fi
8096
8097		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8098			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8099		fi
8100
8101		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8102
8103		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8104$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8105		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8106		if eval \${$cacheid+:} false; then :
8107  $as_echo_n "(cached) " >&6
8108else
8109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8110/* end confdefs.h.  */
8111int i;
8112int
8113main ()
8114{
8115
8116  ;
8117  return 0;
8118}
8119_ACEOF
8120if ac_fn_c_try_link "$LINENO"; then :
8121  eval $cacheid=yes
8122else
8123  eval $cacheid=no
8124fi
8125rm -f core conftest.err conftest.$ac_objext \
8126    conftest$ac_exeext conftest.$ac_ext
8127fi
8128
8129
8130		CFLAGS="$xorg_testset_save_CFLAGS"
8131
8132		eval supported=\$$cacheid
8133		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8134$as_echo "$supported" >&6; }
8135		if test "$supported" = "yes" ; then
8136			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8137			found="yes"
8138		fi
8139	fi
8140
8141	if test $found = "no" ; then
8142		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8143			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8144		fi
8145
8146		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8147			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8148		fi
8149
8150		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8151
8152		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8153$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8154		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8155		if eval \${$cacheid+:} false; then :
8156  $as_echo_n "(cached) " >&6
8157else
8158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159/* end confdefs.h.  */
8160int i;
8161int
8162main ()
8163{
8164
8165  ;
8166  return 0;
8167}
8168_ACEOF
8169if ac_fn_c_try_link "$LINENO"; then :
8170  eval $cacheid=yes
8171else
8172  eval $cacheid=no
8173fi
8174rm -f core conftest.err conftest.$ac_objext \
8175    conftest$ac_exeext conftest.$ac_ext
8176fi
8177
8178
8179		CFLAGS="$xorg_testset_save_CFLAGS"
8180
8181		eval supported=\$$cacheid
8182		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8183$as_echo "$supported" >&6; }
8184		if test "$supported" = "yes" ; then
8185			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8186			found="yes"
8187		fi
8188	fi
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204xorg_testset_save_CFLAGS="$CFLAGS"
8205
8206if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8207	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8208	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8209$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8210if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8211  $as_echo_n "(cached) " >&6
8212else
8213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8214/* end confdefs.h.  */
8215int i;
8216_ACEOF
8217if ac_fn_c_try_compile "$LINENO"; then :
8218  xorg_cv_cc_flag_unknown_warning_option=yes
8219else
8220  xorg_cv_cc_flag_unknown_warning_option=no
8221fi
8222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223fi
8224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8225$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8226	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8227	CFLAGS="$xorg_testset_save_CFLAGS"
8228fi
8229
8230if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8231	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8232		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8233	fi
8234	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8235	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8236$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8237if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8238  $as_echo_n "(cached) " >&6
8239else
8240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241/* end confdefs.h.  */
8242int i;
8243_ACEOF
8244if ac_fn_c_try_compile "$LINENO"; then :
8245  xorg_cv_cc_flag_unused_command_line_argument=yes
8246else
8247  xorg_cv_cc_flag_unused_command_line_argument=no
8248fi
8249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8250fi
8251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8252$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8253	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8254	CFLAGS="$xorg_testset_save_CFLAGS"
8255fi
8256
8257found="no"
8258
8259	if test $found = "no" ; then
8260		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8261			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8262		fi
8263
8264		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8265			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8266		fi
8267
8268		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8269
8270		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8271$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8272		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8273		if eval \${$cacheid+:} false; then :
8274  $as_echo_n "(cached) " >&6
8275else
8276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8277/* end confdefs.h.  */
8278int i;
8279int
8280main ()
8281{
8282
8283  ;
8284  return 0;
8285}
8286_ACEOF
8287if ac_fn_c_try_link "$LINENO"; then :
8288  eval $cacheid=yes
8289else
8290  eval $cacheid=no
8291fi
8292rm -f core conftest.err conftest.$ac_objext \
8293    conftest$ac_exeext conftest.$ac_ext
8294fi
8295
8296
8297		CFLAGS="$xorg_testset_save_CFLAGS"
8298
8299		eval supported=\$$cacheid
8300		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8301$as_echo "$supported" >&6; }
8302		if test "$supported" = "yes" ; then
8303			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8304			found="yes"
8305		fi
8306	fi
8307
8308 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8309else
8310{ $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
8311$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;}
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325xorg_testset_save_CFLAGS="$CFLAGS"
8326
8327if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8328	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8329	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8330$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8331if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8332  $as_echo_n "(cached) " >&6
8333else
8334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335/* end confdefs.h.  */
8336int i;
8337_ACEOF
8338if ac_fn_c_try_compile "$LINENO"; then :
8339  xorg_cv_cc_flag_unknown_warning_option=yes
8340else
8341  xorg_cv_cc_flag_unknown_warning_option=no
8342fi
8343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8344fi
8345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8346$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8347	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8348	CFLAGS="$xorg_testset_save_CFLAGS"
8349fi
8350
8351if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8352	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8353		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8354	fi
8355	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8356	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8357$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8358if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8359  $as_echo_n "(cached) " >&6
8360else
8361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362/* end confdefs.h.  */
8363int i;
8364_ACEOF
8365if ac_fn_c_try_compile "$LINENO"; then :
8366  xorg_cv_cc_flag_unused_command_line_argument=yes
8367else
8368  xorg_cv_cc_flag_unused_command_line_argument=no
8369fi
8370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8371fi
8372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8373$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8374	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8375	CFLAGS="$xorg_testset_save_CFLAGS"
8376fi
8377
8378found="no"
8379
8380	if test $found = "no" ; then
8381		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8382			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8383		fi
8384
8385		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8386			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8387		fi
8388
8389		CFLAGS="$CFLAGS -Wimplicit"
8390
8391		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8392$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8393		cacheid=xorg_cv_cc_flag__Wimplicit
8394		if eval \${$cacheid+:} false; then :
8395  $as_echo_n "(cached) " >&6
8396else
8397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398/* end confdefs.h.  */
8399int i;
8400int
8401main ()
8402{
8403
8404  ;
8405  return 0;
8406}
8407_ACEOF
8408if ac_fn_c_try_link "$LINENO"; then :
8409  eval $cacheid=yes
8410else
8411  eval $cacheid=no
8412fi
8413rm -f core conftest.err conftest.$ac_objext \
8414    conftest$ac_exeext conftest.$ac_ext
8415fi
8416
8417
8418		CFLAGS="$xorg_testset_save_CFLAGS"
8419
8420		eval supported=\$$cacheid
8421		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8422$as_echo "$supported" >&6; }
8423		if test "$supported" = "yes" ; then
8424			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8425			found="yes"
8426		fi
8427	fi
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443xorg_testset_save_CFLAGS="$CFLAGS"
8444
8445if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8446	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8447	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8448$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8449if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8450  $as_echo_n "(cached) " >&6
8451else
8452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453/* end confdefs.h.  */
8454int i;
8455_ACEOF
8456if ac_fn_c_try_compile "$LINENO"; then :
8457  xorg_cv_cc_flag_unknown_warning_option=yes
8458else
8459  xorg_cv_cc_flag_unknown_warning_option=no
8460fi
8461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8462fi
8463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8464$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8465	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8466	CFLAGS="$xorg_testset_save_CFLAGS"
8467fi
8468
8469if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8470	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8471		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8472	fi
8473	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8474	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8475$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8476if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8477  $as_echo_n "(cached) " >&6
8478else
8479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480/* end confdefs.h.  */
8481int i;
8482_ACEOF
8483if ac_fn_c_try_compile "$LINENO"; then :
8484  xorg_cv_cc_flag_unused_command_line_argument=yes
8485else
8486  xorg_cv_cc_flag_unused_command_line_argument=no
8487fi
8488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8489fi
8490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8491$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8492	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8493	CFLAGS="$xorg_testset_save_CFLAGS"
8494fi
8495
8496found="no"
8497
8498	if test $found = "no" ; then
8499		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8500			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8501		fi
8502
8503		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8504			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8505		fi
8506
8507		CFLAGS="$CFLAGS -Wnonnull"
8508
8509		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8510$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8511		cacheid=xorg_cv_cc_flag__Wnonnull
8512		if eval \${$cacheid+:} false; then :
8513  $as_echo_n "(cached) " >&6
8514else
8515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8516/* end confdefs.h.  */
8517int i;
8518int
8519main ()
8520{
8521
8522  ;
8523  return 0;
8524}
8525_ACEOF
8526if ac_fn_c_try_link "$LINENO"; then :
8527  eval $cacheid=yes
8528else
8529  eval $cacheid=no
8530fi
8531rm -f core conftest.err conftest.$ac_objext \
8532    conftest$ac_exeext conftest.$ac_ext
8533fi
8534
8535
8536		CFLAGS="$xorg_testset_save_CFLAGS"
8537
8538		eval supported=\$$cacheid
8539		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8540$as_echo "$supported" >&6; }
8541		if test "$supported" = "yes" ; then
8542			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8543			found="yes"
8544		fi
8545	fi
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561xorg_testset_save_CFLAGS="$CFLAGS"
8562
8563if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8564	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8565	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8566$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8567if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8568  $as_echo_n "(cached) " >&6
8569else
8570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8571/* end confdefs.h.  */
8572int i;
8573_ACEOF
8574if ac_fn_c_try_compile "$LINENO"; then :
8575  xorg_cv_cc_flag_unknown_warning_option=yes
8576else
8577  xorg_cv_cc_flag_unknown_warning_option=no
8578fi
8579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8580fi
8581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8582$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8583	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8584	CFLAGS="$xorg_testset_save_CFLAGS"
8585fi
8586
8587if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8588	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8589		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8590	fi
8591	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8592	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8593$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8594if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8595  $as_echo_n "(cached) " >&6
8596else
8597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8598/* end confdefs.h.  */
8599int i;
8600_ACEOF
8601if ac_fn_c_try_compile "$LINENO"; then :
8602  xorg_cv_cc_flag_unused_command_line_argument=yes
8603else
8604  xorg_cv_cc_flag_unused_command_line_argument=no
8605fi
8606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8607fi
8608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8609$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8610	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8611	CFLAGS="$xorg_testset_save_CFLAGS"
8612fi
8613
8614found="no"
8615
8616	if test $found = "no" ; then
8617		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8618			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8619		fi
8620
8621		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8622			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8623		fi
8624
8625		CFLAGS="$CFLAGS -Winit-self"
8626
8627		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8628$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8629		cacheid=xorg_cv_cc_flag__Winit_self
8630		if eval \${$cacheid+:} false; then :
8631  $as_echo_n "(cached) " >&6
8632else
8633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8634/* end confdefs.h.  */
8635int i;
8636int
8637main ()
8638{
8639
8640  ;
8641  return 0;
8642}
8643_ACEOF
8644if ac_fn_c_try_link "$LINENO"; then :
8645  eval $cacheid=yes
8646else
8647  eval $cacheid=no
8648fi
8649rm -f core conftest.err conftest.$ac_objext \
8650    conftest$ac_exeext conftest.$ac_ext
8651fi
8652
8653
8654		CFLAGS="$xorg_testset_save_CFLAGS"
8655
8656		eval supported=\$$cacheid
8657		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8658$as_echo "$supported" >&6; }
8659		if test "$supported" = "yes" ; then
8660			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8661			found="yes"
8662		fi
8663	fi
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679xorg_testset_save_CFLAGS="$CFLAGS"
8680
8681if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8682	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8683	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8684$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8685if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8686  $as_echo_n "(cached) " >&6
8687else
8688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689/* end confdefs.h.  */
8690int i;
8691_ACEOF
8692if ac_fn_c_try_compile "$LINENO"; then :
8693  xorg_cv_cc_flag_unknown_warning_option=yes
8694else
8695  xorg_cv_cc_flag_unknown_warning_option=no
8696fi
8697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8698fi
8699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8700$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8701	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8702	CFLAGS="$xorg_testset_save_CFLAGS"
8703fi
8704
8705if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8706	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8707		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8708	fi
8709	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8710	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8711$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8712if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8713  $as_echo_n "(cached) " >&6
8714else
8715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8716/* end confdefs.h.  */
8717int i;
8718_ACEOF
8719if ac_fn_c_try_compile "$LINENO"; then :
8720  xorg_cv_cc_flag_unused_command_line_argument=yes
8721else
8722  xorg_cv_cc_flag_unused_command_line_argument=no
8723fi
8724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8725fi
8726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8727$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8728	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8729	CFLAGS="$xorg_testset_save_CFLAGS"
8730fi
8731
8732found="no"
8733
8734	if test $found = "no" ; then
8735		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8736			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8737		fi
8738
8739		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8740			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8741		fi
8742
8743		CFLAGS="$CFLAGS -Wmain"
8744
8745		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8746$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8747		cacheid=xorg_cv_cc_flag__Wmain
8748		if eval \${$cacheid+:} false; then :
8749  $as_echo_n "(cached) " >&6
8750else
8751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8752/* end confdefs.h.  */
8753int i;
8754int
8755main ()
8756{
8757
8758  ;
8759  return 0;
8760}
8761_ACEOF
8762if ac_fn_c_try_link "$LINENO"; then :
8763  eval $cacheid=yes
8764else
8765  eval $cacheid=no
8766fi
8767rm -f core conftest.err conftest.$ac_objext \
8768    conftest$ac_exeext conftest.$ac_ext
8769fi
8770
8771
8772		CFLAGS="$xorg_testset_save_CFLAGS"
8773
8774		eval supported=\$$cacheid
8775		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8776$as_echo "$supported" >&6; }
8777		if test "$supported" = "yes" ; then
8778			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8779			found="yes"
8780		fi
8781	fi
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797xorg_testset_save_CFLAGS="$CFLAGS"
8798
8799if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8800	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8801	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8802$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8803if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8804  $as_echo_n "(cached) " >&6
8805else
8806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807/* end confdefs.h.  */
8808int i;
8809_ACEOF
8810if ac_fn_c_try_compile "$LINENO"; then :
8811  xorg_cv_cc_flag_unknown_warning_option=yes
8812else
8813  xorg_cv_cc_flag_unknown_warning_option=no
8814fi
8815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8816fi
8817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8818$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8819	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8820	CFLAGS="$xorg_testset_save_CFLAGS"
8821fi
8822
8823if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8824	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8825		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8826	fi
8827	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8828	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8829$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8830if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8831  $as_echo_n "(cached) " >&6
8832else
8833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8834/* end confdefs.h.  */
8835int i;
8836_ACEOF
8837if ac_fn_c_try_compile "$LINENO"; then :
8838  xorg_cv_cc_flag_unused_command_line_argument=yes
8839else
8840  xorg_cv_cc_flag_unused_command_line_argument=no
8841fi
8842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8843fi
8844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8845$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8846	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8847	CFLAGS="$xorg_testset_save_CFLAGS"
8848fi
8849
8850found="no"
8851
8852	if test $found = "no" ; then
8853		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8854			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8855		fi
8856
8857		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8858			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8859		fi
8860
8861		CFLAGS="$CFLAGS -Wmissing-braces"
8862
8863		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8864$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8865		cacheid=xorg_cv_cc_flag__Wmissing_braces
8866		if eval \${$cacheid+:} false; then :
8867  $as_echo_n "(cached) " >&6
8868else
8869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8870/* end confdefs.h.  */
8871int i;
8872int
8873main ()
8874{
8875
8876  ;
8877  return 0;
8878}
8879_ACEOF
8880if ac_fn_c_try_link "$LINENO"; then :
8881  eval $cacheid=yes
8882else
8883  eval $cacheid=no
8884fi
8885rm -f core conftest.err conftest.$ac_objext \
8886    conftest$ac_exeext conftest.$ac_ext
8887fi
8888
8889
8890		CFLAGS="$xorg_testset_save_CFLAGS"
8891
8892		eval supported=\$$cacheid
8893		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8894$as_echo "$supported" >&6; }
8895		if test "$supported" = "yes" ; then
8896			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8897			found="yes"
8898		fi
8899	fi
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915xorg_testset_save_CFLAGS="$CFLAGS"
8916
8917if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8918	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8919	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8920$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8921if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8922  $as_echo_n "(cached) " >&6
8923else
8924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8925/* end confdefs.h.  */
8926int i;
8927_ACEOF
8928if ac_fn_c_try_compile "$LINENO"; then :
8929  xorg_cv_cc_flag_unknown_warning_option=yes
8930else
8931  xorg_cv_cc_flag_unknown_warning_option=no
8932fi
8933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8934fi
8935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8936$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8937	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8938	CFLAGS="$xorg_testset_save_CFLAGS"
8939fi
8940
8941if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8942	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8943		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8944	fi
8945	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8946	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8947$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8948if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8949  $as_echo_n "(cached) " >&6
8950else
8951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8952/* end confdefs.h.  */
8953int i;
8954_ACEOF
8955if ac_fn_c_try_compile "$LINENO"; then :
8956  xorg_cv_cc_flag_unused_command_line_argument=yes
8957else
8958  xorg_cv_cc_flag_unused_command_line_argument=no
8959fi
8960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8961fi
8962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8963$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8964	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8965	CFLAGS="$xorg_testset_save_CFLAGS"
8966fi
8967
8968found="no"
8969
8970	if test $found = "no" ; then
8971		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8972			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8973		fi
8974
8975		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8976			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8977		fi
8978
8979		CFLAGS="$CFLAGS -Wsequence-point"
8980
8981		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8982$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8983		cacheid=xorg_cv_cc_flag__Wsequence_point
8984		if eval \${$cacheid+:} false; then :
8985  $as_echo_n "(cached) " >&6
8986else
8987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8988/* end confdefs.h.  */
8989int i;
8990int
8991main ()
8992{
8993
8994  ;
8995  return 0;
8996}
8997_ACEOF
8998if ac_fn_c_try_link "$LINENO"; then :
8999  eval $cacheid=yes
9000else
9001  eval $cacheid=no
9002fi
9003rm -f core conftest.err conftest.$ac_objext \
9004    conftest$ac_exeext conftest.$ac_ext
9005fi
9006
9007
9008		CFLAGS="$xorg_testset_save_CFLAGS"
9009
9010		eval supported=\$$cacheid
9011		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9012$as_echo "$supported" >&6; }
9013		if test "$supported" = "yes" ; then
9014			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9015			found="yes"
9016		fi
9017	fi
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033xorg_testset_save_CFLAGS="$CFLAGS"
9034
9035if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9036	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9037	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9038$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9039if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9040  $as_echo_n "(cached) " >&6
9041else
9042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043/* end confdefs.h.  */
9044int i;
9045_ACEOF
9046if ac_fn_c_try_compile "$LINENO"; then :
9047  xorg_cv_cc_flag_unknown_warning_option=yes
9048else
9049  xorg_cv_cc_flag_unknown_warning_option=no
9050fi
9051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9052fi
9053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9054$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9055	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9056	CFLAGS="$xorg_testset_save_CFLAGS"
9057fi
9058
9059if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9060	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9061		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9062	fi
9063	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9064	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9065$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9066if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9067  $as_echo_n "(cached) " >&6
9068else
9069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070/* end confdefs.h.  */
9071int i;
9072_ACEOF
9073if ac_fn_c_try_compile "$LINENO"; then :
9074  xorg_cv_cc_flag_unused_command_line_argument=yes
9075else
9076  xorg_cv_cc_flag_unused_command_line_argument=no
9077fi
9078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9079fi
9080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9081$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9082	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9083	CFLAGS="$xorg_testset_save_CFLAGS"
9084fi
9085
9086found="no"
9087
9088	if test $found = "no" ; then
9089		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9090			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9091		fi
9092
9093		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9094			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9095		fi
9096
9097		CFLAGS="$CFLAGS -Wreturn-type"
9098
9099		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9100$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9101		cacheid=xorg_cv_cc_flag__Wreturn_type
9102		if eval \${$cacheid+:} false; then :
9103  $as_echo_n "(cached) " >&6
9104else
9105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9106/* end confdefs.h.  */
9107int i;
9108int
9109main ()
9110{
9111
9112  ;
9113  return 0;
9114}
9115_ACEOF
9116if ac_fn_c_try_link "$LINENO"; then :
9117  eval $cacheid=yes
9118else
9119  eval $cacheid=no
9120fi
9121rm -f core conftest.err conftest.$ac_objext \
9122    conftest$ac_exeext conftest.$ac_ext
9123fi
9124
9125
9126		CFLAGS="$xorg_testset_save_CFLAGS"
9127
9128		eval supported=\$$cacheid
9129		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9130$as_echo "$supported" >&6; }
9131		if test "$supported" = "yes" ; then
9132			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9133			found="yes"
9134		fi
9135	fi
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151xorg_testset_save_CFLAGS="$CFLAGS"
9152
9153if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9154	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9155	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9156$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9157if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9158  $as_echo_n "(cached) " >&6
9159else
9160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161/* end confdefs.h.  */
9162int i;
9163_ACEOF
9164if ac_fn_c_try_compile "$LINENO"; then :
9165  xorg_cv_cc_flag_unknown_warning_option=yes
9166else
9167  xorg_cv_cc_flag_unknown_warning_option=no
9168fi
9169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9170fi
9171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9172$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9173	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9174	CFLAGS="$xorg_testset_save_CFLAGS"
9175fi
9176
9177if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9178	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9179		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9180	fi
9181	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9182	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9183$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9184if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9185  $as_echo_n "(cached) " >&6
9186else
9187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9188/* end confdefs.h.  */
9189int i;
9190_ACEOF
9191if ac_fn_c_try_compile "$LINENO"; then :
9192  xorg_cv_cc_flag_unused_command_line_argument=yes
9193else
9194  xorg_cv_cc_flag_unused_command_line_argument=no
9195fi
9196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9197fi
9198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9199$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9200	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9201	CFLAGS="$xorg_testset_save_CFLAGS"
9202fi
9203
9204found="no"
9205
9206	if test $found = "no" ; then
9207		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9208			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9209		fi
9210
9211		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9212			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9213		fi
9214
9215		CFLAGS="$CFLAGS -Wtrigraphs"
9216
9217		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9218$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9219		cacheid=xorg_cv_cc_flag__Wtrigraphs
9220		if eval \${$cacheid+:} false; then :
9221  $as_echo_n "(cached) " >&6
9222else
9223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9224/* end confdefs.h.  */
9225int i;
9226int
9227main ()
9228{
9229
9230  ;
9231  return 0;
9232}
9233_ACEOF
9234if ac_fn_c_try_link "$LINENO"; then :
9235  eval $cacheid=yes
9236else
9237  eval $cacheid=no
9238fi
9239rm -f core conftest.err conftest.$ac_objext \
9240    conftest$ac_exeext conftest.$ac_ext
9241fi
9242
9243
9244		CFLAGS="$xorg_testset_save_CFLAGS"
9245
9246		eval supported=\$$cacheid
9247		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9248$as_echo "$supported" >&6; }
9249		if test "$supported" = "yes" ; then
9250			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9251			found="yes"
9252		fi
9253	fi
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269xorg_testset_save_CFLAGS="$CFLAGS"
9270
9271if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9272	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9273	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9274$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9275if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9276  $as_echo_n "(cached) " >&6
9277else
9278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279/* end confdefs.h.  */
9280int i;
9281_ACEOF
9282if ac_fn_c_try_compile "$LINENO"; then :
9283  xorg_cv_cc_flag_unknown_warning_option=yes
9284else
9285  xorg_cv_cc_flag_unknown_warning_option=no
9286fi
9287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9288fi
9289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9290$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9291	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9292	CFLAGS="$xorg_testset_save_CFLAGS"
9293fi
9294
9295if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9296	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9297		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9298	fi
9299	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9300	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9301$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9302if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9303  $as_echo_n "(cached) " >&6
9304else
9305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9306/* end confdefs.h.  */
9307int i;
9308_ACEOF
9309if ac_fn_c_try_compile "$LINENO"; then :
9310  xorg_cv_cc_flag_unused_command_line_argument=yes
9311else
9312  xorg_cv_cc_flag_unused_command_line_argument=no
9313fi
9314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9315fi
9316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9317$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9318	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9319	CFLAGS="$xorg_testset_save_CFLAGS"
9320fi
9321
9322found="no"
9323
9324	if test $found = "no" ; then
9325		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9326			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9327		fi
9328
9329		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9330			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9331		fi
9332
9333		CFLAGS="$CFLAGS -Warray-bounds"
9334
9335		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9336$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9337		cacheid=xorg_cv_cc_flag__Warray_bounds
9338		if eval \${$cacheid+:} false; then :
9339  $as_echo_n "(cached) " >&6
9340else
9341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9342/* end confdefs.h.  */
9343int i;
9344int
9345main ()
9346{
9347
9348  ;
9349  return 0;
9350}
9351_ACEOF
9352if ac_fn_c_try_link "$LINENO"; then :
9353  eval $cacheid=yes
9354else
9355  eval $cacheid=no
9356fi
9357rm -f core conftest.err conftest.$ac_objext \
9358    conftest$ac_exeext conftest.$ac_ext
9359fi
9360
9361
9362		CFLAGS="$xorg_testset_save_CFLAGS"
9363
9364		eval supported=\$$cacheid
9365		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9366$as_echo "$supported" >&6; }
9367		if test "$supported" = "yes" ; then
9368			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9369			found="yes"
9370		fi
9371	fi
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387xorg_testset_save_CFLAGS="$CFLAGS"
9388
9389if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9390	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9391	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9392$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9393if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9394  $as_echo_n "(cached) " >&6
9395else
9396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9397/* end confdefs.h.  */
9398int i;
9399_ACEOF
9400if ac_fn_c_try_compile "$LINENO"; then :
9401  xorg_cv_cc_flag_unknown_warning_option=yes
9402else
9403  xorg_cv_cc_flag_unknown_warning_option=no
9404fi
9405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9406fi
9407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9408$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9409	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9410	CFLAGS="$xorg_testset_save_CFLAGS"
9411fi
9412
9413if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9414	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9415		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9416	fi
9417	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9418	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9419$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9420if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9421  $as_echo_n "(cached) " >&6
9422else
9423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424/* end confdefs.h.  */
9425int i;
9426_ACEOF
9427if ac_fn_c_try_compile "$LINENO"; then :
9428  xorg_cv_cc_flag_unused_command_line_argument=yes
9429else
9430  xorg_cv_cc_flag_unused_command_line_argument=no
9431fi
9432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9433fi
9434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9435$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9436	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9437	CFLAGS="$xorg_testset_save_CFLAGS"
9438fi
9439
9440found="no"
9441
9442	if test $found = "no" ; then
9443		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9444			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9445		fi
9446
9447		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9448			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9449		fi
9450
9451		CFLAGS="$CFLAGS -Wwrite-strings"
9452
9453		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9454$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9455		cacheid=xorg_cv_cc_flag__Wwrite_strings
9456		if eval \${$cacheid+:} false; then :
9457  $as_echo_n "(cached) " >&6
9458else
9459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9460/* end confdefs.h.  */
9461int i;
9462int
9463main ()
9464{
9465
9466  ;
9467  return 0;
9468}
9469_ACEOF
9470if ac_fn_c_try_link "$LINENO"; then :
9471  eval $cacheid=yes
9472else
9473  eval $cacheid=no
9474fi
9475rm -f core conftest.err conftest.$ac_objext \
9476    conftest$ac_exeext conftest.$ac_ext
9477fi
9478
9479
9480		CFLAGS="$xorg_testset_save_CFLAGS"
9481
9482		eval supported=\$$cacheid
9483		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9484$as_echo "$supported" >&6; }
9485		if test "$supported" = "yes" ; then
9486			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9487			found="yes"
9488		fi
9489	fi
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505xorg_testset_save_CFLAGS="$CFLAGS"
9506
9507if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9508	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9509	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9510$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9511if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9512  $as_echo_n "(cached) " >&6
9513else
9514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9515/* end confdefs.h.  */
9516int i;
9517_ACEOF
9518if ac_fn_c_try_compile "$LINENO"; then :
9519  xorg_cv_cc_flag_unknown_warning_option=yes
9520else
9521  xorg_cv_cc_flag_unknown_warning_option=no
9522fi
9523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9524fi
9525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9526$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9527	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9528	CFLAGS="$xorg_testset_save_CFLAGS"
9529fi
9530
9531if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9532	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9533		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9534	fi
9535	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9536	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9537$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9538if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9539  $as_echo_n "(cached) " >&6
9540else
9541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9542/* end confdefs.h.  */
9543int i;
9544_ACEOF
9545if ac_fn_c_try_compile "$LINENO"; then :
9546  xorg_cv_cc_flag_unused_command_line_argument=yes
9547else
9548  xorg_cv_cc_flag_unused_command_line_argument=no
9549fi
9550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9551fi
9552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9553$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9554	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9555	CFLAGS="$xorg_testset_save_CFLAGS"
9556fi
9557
9558found="no"
9559
9560	if test $found = "no" ; then
9561		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9562			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9563		fi
9564
9565		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9566			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9567		fi
9568
9569		CFLAGS="$CFLAGS -Waddress"
9570
9571		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9572$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9573		cacheid=xorg_cv_cc_flag__Waddress
9574		if eval \${$cacheid+:} false; then :
9575  $as_echo_n "(cached) " >&6
9576else
9577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578/* end confdefs.h.  */
9579int i;
9580int
9581main ()
9582{
9583
9584  ;
9585  return 0;
9586}
9587_ACEOF
9588if ac_fn_c_try_link "$LINENO"; then :
9589  eval $cacheid=yes
9590else
9591  eval $cacheid=no
9592fi
9593rm -f core conftest.err conftest.$ac_objext \
9594    conftest$ac_exeext conftest.$ac_ext
9595fi
9596
9597
9598		CFLAGS="$xorg_testset_save_CFLAGS"
9599
9600		eval supported=\$$cacheid
9601		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9602$as_echo "$supported" >&6; }
9603		if test "$supported" = "yes" ; then
9604			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9605			found="yes"
9606		fi
9607	fi
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623xorg_testset_save_CFLAGS="$CFLAGS"
9624
9625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9626	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9627	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9628$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9629if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9630  $as_echo_n "(cached) " >&6
9631else
9632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9633/* end confdefs.h.  */
9634int i;
9635_ACEOF
9636if ac_fn_c_try_compile "$LINENO"; then :
9637  xorg_cv_cc_flag_unknown_warning_option=yes
9638else
9639  xorg_cv_cc_flag_unknown_warning_option=no
9640fi
9641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9642fi
9643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9644$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9645	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9646	CFLAGS="$xorg_testset_save_CFLAGS"
9647fi
9648
9649if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9650	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9651		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9652	fi
9653	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9654	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9655$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9656if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9657  $as_echo_n "(cached) " >&6
9658else
9659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9660/* end confdefs.h.  */
9661int i;
9662_ACEOF
9663if ac_fn_c_try_compile "$LINENO"; then :
9664  xorg_cv_cc_flag_unused_command_line_argument=yes
9665else
9666  xorg_cv_cc_flag_unused_command_line_argument=no
9667fi
9668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9669fi
9670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9671$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9672	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9673	CFLAGS="$xorg_testset_save_CFLAGS"
9674fi
9675
9676found="no"
9677
9678	if test $found = "no" ; then
9679		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9680			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9681		fi
9682
9683		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9684			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9685		fi
9686
9687		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9688
9689		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9690$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9691		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9692		if eval \${$cacheid+:} false; then :
9693  $as_echo_n "(cached) " >&6
9694else
9695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9696/* end confdefs.h.  */
9697int i;
9698int
9699main ()
9700{
9701
9702  ;
9703  return 0;
9704}
9705_ACEOF
9706if ac_fn_c_try_link "$LINENO"; then :
9707  eval $cacheid=yes
9708else
9709  eval $cacheid=no
9710fi
9711rm -f core conftest.err conftest.$ac_objext \
9712    conftest$ac_exeext conftest.$ac_ext
9713fi
9714
9715
9716		CFLAGS="$xorg_testset_save_CFLAGS"
9717
9718		eval supported=\$$cacheid
9719		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9720$as_echo "$supported" >&6; }
9721		if test "$supported" = "yes" ; then
9722			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9723			found="yes"
9724		fi
9725	fi
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741xorg_testset_save_CFLAGS="$CFLAGS"
9742
9743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9744	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9745	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9746$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9747if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9748  $as_echo_n "(cached) " >&6
9749else
9750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751/* end confdefs.h.  */
9752int i;
9753_ACEOF
9754if ac_fn_c_try_compile "$LINENO"; then :
9755  xorg_cv_cc_flag_unknown_warning_option=yes
9756else
9757  xorg_cv_cc_flag_unknown_warning_option=no
9758fi
9759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9760fi
9761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9762$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9763	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9764	CFLAGS="$xorg_testset_save_CFLAGS"
9765fi
9766
9767if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9768	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9769		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9770	fi
9771	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9772	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9773$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9774if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9775  $as_echo_n "(cached) " >&6
9776else
9777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9778/* end confdefs.h.  */
9779int i;
9780_ACEOF
9781if ac_fn_c_try_compile "$LINENO"; then :
9782  xorg_cv_cc_flag_unused_command_line_argument=yes
9783else
9784  xorg_cv_cc_flag_unused_command_line_argument=no
9785fi
9786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9787fi
9788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9789$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9790	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9791	CFLAGS="$xorg_testset_save_CFLAGS"
9792fi
9793
9794found="no"
9795
9796	if test $found = "no" ; then
9797		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9798			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9799		fi
9800
9801		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9802			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9803		fi
9804
9805		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9806
9807		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9808$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9809		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9810		if eval \${$cacheid+:} false; then :
9811  $as_echo_n "(cached) " >&6
9812else
9813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9814/* end confdefs.h.  */
9815int i;
9816int
9817main ()
9818{
9819
9820  ;
9821  return 0;
9822}
9823_ACEOF
9824if ac_fn_c_try_link "$LINENO"; then :
9825  eval $cacheid=yes
9826else
9827  eval $cacheid=no
9828fi
9829rm -f core conftest.err conftest.$ac_objext \
9830    conftest$ac_exeext conftest.$ac_ext
9831fi
9832
9833
9834		CFLAGS="$xorg_testset_save_CFLAGS"
9835
9836		eval supported=\$$cacheid
9837		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9838$as_echo "$supported" >&6; }
9839		if test "$supported" = "yes" ; then
9840			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9841			found="yes"
9842		fi
9843	fi
9844
9845
9846fi
9847
9848
9849
9850
9851
9852
9853
9854		CWARNFLAGS="$BASE_CFLAGS"
9855		if  test "x$GCC" = xyes ; then
9856		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9857		fi
9858
9859
9860
9861
9862
9863
9864
9865
9866# Check whether --enable-strict-compilation was given.
9867if test "${enable_strict_compilation+set}" = set; then :
9868  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9869else
9870  STRICT_COMPILE=no
9871fi
9872
9873
9874
9875
9876
9877
9878STRICT_CFLAGS=""
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892xorg_testset_save_CFLAGS="$CFLAGS"
9893
9894if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9895	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9896	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9897$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9898if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9899  $as_echo_n "(cached) " >&6
9900else
9901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902/* end confdefs.h.  */
9903int i;
9904_ACEOF
9905if ac_fn_c_try_compile "$LINENO"; then :
9906  xorg_cv_cc_flag_unknown_warning_option=yes
9907else
9908  xorg_cv_cc_flag_unknown_warning_option=no
9909fi
9910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9911fi
9912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9913$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9914	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9915	CFLAGS="$xorg_testset_save_CFLAGS"
9916fi
9917
9918if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9919	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9920		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9921	fi
9922	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9923	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9924$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9925if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9926  $as_echo_n "(cached) " >&6
9927else
9928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9929/* end confdefs.h.  */
9930int i;
9931_ACEOF
9932if ac_fn_c_try_compile "$LINENO"; then :
9933  xorg_cv_cc_flag_unused_command_line_argument=yes
9934else
9935  xorg_cv_cc_flag_unused_command_line_argument=no
9936fi
9937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9938fi
9939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9940$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9941	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9942	CFLAGS="$xorg_testset_save_CFLAGS"
9943fi
9944
9945found="no"
9946
9947	if test $found = "no" ; then
9948		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9949			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9950		fi
9951
9952		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9953			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9954		fi
9955
9956		CFLAGS="$CFLAGS -pedantic"
9957
9958		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9959$as_echo_n "checking if $CC supports -pedantic... " >&6; }
9960		cacheid=xorg_cv_cc_flag__pedantic
9961		if eval \${$cacheid+:} false; then :
9962  $as_echo_n "(cached) " >&6
9963else
9964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9965/* end confdefs.h.  */
9966int i;
9967int
9968main ()
9969{
9970
9971  ;
9972  return 0;
9973}
9974_ACEOF
9975if ac_fn_c_try_link "$LINENO"; then :
9976  eval $cacheid=yes
9977else
9978  eval $cacheid=no
9979fi
9980rm -f core conftest.err conftest.$ac_objext \
9981    conftest$ac_exeext conftest.$ac_ext
9982fi
9983
9984
9985		CFLAGS="$xorg_testset_save_CFLAGS"
9986
9987		eval supported=\$$cacheid
9988		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9989$as_echo "$supported" >&6; }
9990		if test "$supported" = "yes" ; then
9991			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9992			found="yes"
9993		fi
9994	fi
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010xorg_testset_save_CFLAGS="$CFLAGS"
10011
10012if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10013	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10014	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10015$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10016if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10017  $as_echo_n "(cached) " >&6
10018else
10019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10020/* end confdefs.h.  */
10021int i;
10022_ACEOF
10023if ac_fn_c_try_compile "$LINENO"; then :
10024  xorg_cv_cc_flag_unknown_warning_option=yes
10025else
10026  xorg_cv_cc_flag_unknown_warning_option=no
10027fi
10028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10029fi
10030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10031$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10032	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10033	CFLAGS="$xorg_testset_save_CFLAGS"
10034fi
10035
10036if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10037	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10038		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10039	fi
10040	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10041	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10042$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10043if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10044  $as_echo_n "(cached) " >&6
10045else
10046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10047/* end confdefs.h.  */
10048int i;
10049_ACEOF
10050if ac_fn_c_try_compile "$LINENO"; then :
10051  xorg_cv_cc_flag_unused_command_line_argument=yes
10052else
10053  xorg_cv_cc_flag_unused_command_line_argument=no
10054fi
10055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10056fi
10057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10058$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10059	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10060	CFLAGS="$xorg_testset_save_CFLAGS"
10061fi
10062
10063found="no"
10064
10065	if test $found = "no" ; then
10066		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10067			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10068		fi
10069
10070		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10071			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10072		fi
10073
10074		CFLAGS="$CFLAGS -Werror"
10075
10076		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10077$as_echo_n "checking if $CC supports -Werror... " >&6; }
10078		cacheid=xorg_cv_cc_flag__Werror
10079		if eval \${$cacheid+:} false; then :
10080  $as_echo_n "(cached) " >&6
10081else
10082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10083/* end confdefs.h.  */
10084int i;
10085int
10086main ()
10087{
10088
10089  ;
10090  return 0;
10091}
10092_ACEOF
10093if ac_fn_c_try_link "$LINENO"; then :
10094  eval $cacheid=yes
10095else
10096  eval $cacheid=no
10097fi
10098rm -f core conftest.err conftest.$ac_objext \
10099    conftest$ac_exeext conftest.$ac_ext
10100fi
10101
10102
10103		CFLAGS="$xorg_testset_save_CFLAGS"
10104
10105		eval supported=\$$cacheid
10106		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10107$as_echo "$supported" >&6; }
10108		if test "$supported" = "yes" ; then
10109			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10110			found="yes"
10111		fi
10112	fi
10113
10114	if test $found = "no" ; then
10115		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10116			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10117		fi
10118
10119		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10120			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10121		fi
10122
10123		CFLAGS="$CFLAGS -errwarn"
10124
10125		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10126$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10127		cacheid=xorg_cv_cc_flag__errwarn
10128		if eval \${$cacheid+:} false; then :
10129  $as_echo_n "(cached) " >&6
10130else
10131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10132/* end confdefs.h.  */
10133int i;
10134int
10135main ()
10136{
10137
10138  ;
10139  return 0;
10140}
10141_ACEOF
10142if ac_fn_c_try_link "$LINENO"; then :
10143  eval $cacheid=yes
10144else
10145  eval $cacheid=no
10146fi
10147rm -f core conftest.err conftest.$ac_objext \
10148    conftest$ac_exeext conftest.$ac_ext
10149fi
10150
10151
10152		CFLAGS="$xorg_testset_save_CFLAGS"
10153
10154		eval supported=\$$cacheid
10155		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10156$as_echo "$supported" >&6; }
10157		if test "$supported" = "yes" ; then
10158			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10159			found="yes"
10160		fi
10161	fi
10162
10163
10164
10165# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10166# activate it with -Werror, so we add it here explicitly.
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180xorg_testset_save_CFLAGS="$CFLAGS"
10181
10182if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10183	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10184	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10185$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10186if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10187  $as_echo_n "(cached) " >&6
10188else
10189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190/* end confdefs.h.  */
10191int i;
10192_ACEOF
10193if ac_fn_c_try_compile "$LINENO"; then :
10194  xorg_cv_cc_flag_unknown_warning_option=yes
10195else
10196  xorg_cv_cc_flag_unknown_warning_option=no
10197fi
10198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10199fi
10200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10201$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10202	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10203	CFLAGS="$xorg_testset_save_CFLAGS"
10204fi
10205
10206if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10207	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10208		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10209	fi
10210	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10211	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10212$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10213if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10214  $as_echo_n "(cached) " >&6
10215else
10216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217/* end confdefs.h.  */
10218int i;
10219_ACEOF
10220if ac_fn_c_try_compile "$LINENO"; then :
10221  xorg_cv_cc_flag_unused_command_line_argument=yes
10222else
10223  xorg_cv_cc_flag_unused_command_line_argument=no
10224fi
10225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10226fi
10227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10228$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10229	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10230	CFLAGS="$xorg_testset_save_CFLAGS"
10231fi
10232
10233found="no"
10234
10235	if test $found = "no" ; then
10236		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10237			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10238		fi
10239
10240		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10241			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10242		fi
10243
10244		CFLAGS="$CFLAGS -Werror=attributes"
10245
10246		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10247$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10248		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10249		if eval \${$cacheid+:} false; then :
10250  $as_echo_n "(cached) " >&6
10251else
10252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10253/* end confdefs.h.  */
10254int i;
10255int
10256main ()
10257{
10258
10259  ;
10260  return 0;
10261}
10262_ACEOF
10263if ac_fn_c_try_link "$LINENO"; then :
10264  eval $cacheid=yes
10265else
10266  eval $cacheid=no
10267fi
10268rm -f core conftest.err conftest.$ac_objext \
10269    conftest$ac_exeext conftest.$ac_ext
10270fi
10271
10272
10273		CFLAGS="$xorg_testset_save_CFLAGS"
10274
10275		eval supported=\$$cacheid
10276		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10277$as_echo "$supported" >&6; }
10278		if test "$supported" = "yes" ; then
10279			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10280			found="yes"
10281		fi
10282	fi
10283
10284
10285
10286if test "x$STRICT_COMPILE" = "xyes"; then
10287    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10288    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10289fi
10290
10291
10292
10293
10294
10295
10296cat >>confdefs.h <<_ACEOF
10297#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10298_ACEOF
10299
10300	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10301	if test "x$PVM" = "x"; then
10302		PVM="0"
10303	fi
10304
10305cat >>confdefs.h <<_ACEOF
10306#define PACKAGE_VERSION_MINOR $PVM
10307_ACEOF
10308
10309	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10310	if test "x$PVP" = "x"; then
10311		PVP="0"
10312	fi
10313
10314cat >>confdefs.h <<_ACEOF
10315#define PACKAGE_VERSION_PATCHLEVEL $PVP
10316_ACEOF
10317
10318
10319
10320CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10321mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10322|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10323echo 'git directory not found: installing possibly empty changelog.' >&2)"
10324
10325
10326
10327
10328macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10329INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10330mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10331|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10332echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10333
10334
10335
10336
10337
10338
10339if test x$APP_MAN_SUFFIX = x    ; then
10340    APP_MAN_SUFFIX=1
10341fi
10342if test x$APP_MAN_DIR = x    ; then
10343    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10344fi
10345
10346if test x$LIB_MAN_SUFFIX = x    ; then
10347    LIB_MAN_SUFFIX=3
10348fi
10349if test x$LIB_MAN_DIR = x    ; then
10350    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10351fi
10352
10353if test x$FILE_MAN_SUFFIX = x    ; then
10354    case $host_os in
10355	solaris*)	FILE_MAN_SUFFIX=4  ;;
10356	*)		FILE_MAN_SUFFIX=5  ;;
10357    esac
10358fi
10359if test x$FILE_MAN_DIR = x    ; then
10360    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10361fi
10362
10363if test x$MISC_MAN_SUFFIX = x    ; then
10364    case $host_os in
10365	solaris*)	MISC_MAN_SUFFIX=5  ;;
10366	*)		MISC_MAN_SUFFIX=7  ;;
10367    esac
10368fi
10369if test x$MISC_MAN_DIR = x    ; then
10370    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10371fi
10372
10373if test x$DRIVER_MAN_SUFFIX = x    ; then
10374    case $host_os in
10375	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10376	*)		DRIVER_MAN_SUFFIX=4  ;;
10377    esac
10378fi
10379if test x$DRIVER_MAN_DIR = x    ; then
10380    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10381fi
10382
10383if test x$ADMIN_MAN_SUFFIX = x    ; then
10384    case $host_os in
10385	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10386	*)		ADMIN_MAN_SUFFIX=8  ;;
10387    esac
10388fi
10389if test x$ADMIN_MAN_DIR = x    ; then
10390    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10391fi
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407XORG_MAN_PAGE="X Version 11"
10408
10409MAN_SUBSTS="\
10410	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10411	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10412	-e 's|__xservername__|Xorg|g' \
10413	-e 's|__xconfigfile__|xorg.conf|g' \
10414	-e 's|__projectroot__|\$(prefix)|g' \
10415	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10416	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10417	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10418	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10419	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10420	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10421	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10422
10423
10424
10425# Check whether --enable-silent-rules was given.
10426if test "${enable_silent_rules+set}" = set; then :
10427  enableval=$enable_silent_rules;
10428fi
10429
10430case $enable_silent_rules in
10431yes) AM_DEFAULT_VERBOSITY=0;;
10432no)  AM_DEFAULT_VERBOSITY=1;;
10433*)   AM_DEFAULT_VERBOSITY=0;;
10434esac
10435AM_BACKSLASH='\'
10436
10437
10438
10439ac_config_headers="$ac_config_headers config.h"
10440
10441
10442
10443ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
10444if test "x$ac_cv_func_mkstemp" = xyes; then :
10445
10446$as_echo "#define HAS_MKSTEMP 1" >>confdefs.h
10447
10448fi
10449
10450
10451# Checks for pkg-config packages
10452
10453pkg_failed=no
10454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDITVIEW" >&5
10455$as_echo_n "checking for XDITVIEW... " >&6; }
10456
10457if test -n "$XDITVIEW_CFLAGS"; then
10458    pkg_cv_XDITVIEW_CFLAGS="$XDITVIEW_CFLAGS"
10459 elif test -n "$PKG_CONFIG"; then
10460    if test -n "$PKG_CONFIG" && \
10461    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11\""; } >&5
10462  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11") 2>&5
10463  ac_status=$?
10464  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10465  test $ac_status = 0; }; then
10466  pkg_cv_XDITVIEW_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt x11" 2>/dev/null`
10467else
10468  pkg_failed=yes
10469fi
10470 else
10471    pkg_failed=untried
10472fi
10473if test -n "$XDITVIEW_LIBS"; then
10474    pkg_cv_XDITVIEW_LIBS="$XDITVIEW_LIBS"
10475 elif test -n "$PKG_CONFIG"; then
10476    if test -n "$PKG_CONFIG" && \
10477    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11\""; } >&5
10478  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11") 2>&5
10479  ac_status=$?
10480  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10481  test $ac_status = 0; }; then
10482  pkg_cv_XDITVIEW_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt x11" 2>/dev/null`
10483else
10484  pkg_failed=yes
10485fi
10486 else
10487    pkg_failed=untried
10488fi
10489
10490
10491
10492if test $pkg_failed = yes; then
10493
10494if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10495        _pkg_short_errors_supported=yes
10496else
10497        _pkg_short_errors_supported=no
10498fi
10499        if test $_pkg_short_errors_supported = yes; then
10500	        XDITVIEW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 xmu xt x11" 2>&1`
10501        else
10502	        XDITVIEW_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 xmu xt x11" 2>&1`
10503        fi
10504	# Put the nasty error message in config.log where it belongs
10505	echo "$XDITVIEW_PKG_ERRORS" >&5
10506
10507	as_fn_error $? "Package requirements (xaw7 xmu xt x11) were not met:
10508
10509$XDITVIEW_PKG_ERRORS
10510
10511Consider adjusting the PKG_CONFIG_PATH environment variable if you
10512installed software in a non-standard prefix.
10513
10514Alternatively, you may set the environment variables XDITVIEW_CFLAGS
10515and XDITVIEW_LIBS to avoid the need to call pkg-config.
10516See the pkg-config man page for more details.
10517" "$LINENO" 5
10518elif test $pkg_failed = untried; then
10519	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10521as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10522is in your PATH or set the PKG_CONFIG environment variable to the full
10523path to pkg-config.
10524
10525Alternatively, you may set the environment variables XDITVIEW_CFLAGS
10526and XDITVIEW_LIBS to avoid the need to call pkg-config.
10527See the pkg-config man page for more details.
10528
10529To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10530See \`config.log' for more details" "$LINENO" 5; }
10531else
10532	XDITVIEW_CFLAGS=$pkg_cv_XDITVIEW_CFLAGS
10533	XDITVIEW_LIBS=$pkg_cv_XDITVIEW_LIBS
10534        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10535$as_echo "yes" >&6; }
10536	:
10537fi
10538
10539
10540pkg_failed=no
10541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
10542$as_echo_n "checking for APPDEFS... " >&6; }
10543
10544if test -n "$APPDEFS_CFLAGS"; then
10545    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
10546 elif test -n "$PKG_CONFIG"; then
10547    if test -n "$PKG_CONFIG" && \
10548    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10549  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10550  ac_status=$?
10551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10552  test $ac_status = 0; }; then
10553  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
10554else
10555  pkg_failed=yes
10556fi
10557 else
10558    pkg_failed=untried
10559fi
10560if test -n "$APPDEFS_LIBS"; then
10561    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
10562 elif test -n "$PKG_CONFIG"; then
10563    if test -n "$PKG_CONFIG" && \
10564    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10565  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10566  ac_status=$?
10567  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10568  test $ac_status = 0; }; then
10569  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
10570else
10571  pkg_failed=yes
10572fi
10573 else
10574    pkg_failed=untried
10575fi
10576
10577
10578
10579if test $pkg_failed = yes; then
10580
10581if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10582        _pkg_short_errors_supported=yes
10583else
10584        _pkg_short_errors_supported=no
10585fi
10586        if test $_pkg_short_errors_supported = yes; then
10587	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1`
10588        else
10589	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1`
10590        fi
10591	# Put the nasty error message in config.log where it belongs
10592	echo "$APPDEFS_PKG_ERRORS" >&5
10593
10594	as_fn_error $? "Package requirements (xt) were not met:
10595
10596$APPDEFS_PKG_ERRORS
10597
10598Consider adjusting the PKG_CONFIG_PATH environment variable if you
10599installed software in a non-standard prefix.
10600
10601Alternatively, you may set the environment variables APPDEFS_CFLAGS
10602and APPDEFS_LIBS to avoid the need to call pkg-config.
10603See the pkg-config man page for more details.
10604" "$LINENO" 5
10605elif test $pkg_failed = untried; then
10606	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10607$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10608as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10609is in your PATH or set the PKG_CONFIG environment variable to the full
10610path to pkg-config.
10611
10612Alternatively, you may set the environment variables APPDEFS_CFLAGS
10613and APPDEFS_LIBS to avoid the need to call pkg-config.
10614See the pkg-config man page for more details.
10615
10616To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10617See \`config.log' for more details" "$LINENO" 5; }
10618else
10619	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
10620	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
10621        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10622$as_echo "yes" >&6; }
10623	:
10624fi
10625xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
10626
10627# Check whether --with-appdefaultdir was given.
10628if test "${with_appdefaultdir+set}" = set; then :
10629  withval=$with_appdefaultdir; appdefaultdir="$withval"
10630else
10631  appdefaultdir="${xt_appdefaultdir}"
10632fi
10633
10634
10635
10636
10637ac_config_files="$ac_config_files Makefile man/Makefile"
10638
10639cat >confcache <<\_ACEOF
10640# This file is a shell script that caches the results of configure
10641# tests run on this system so they can be shared between configure
10642# scripts and configure runs, see configure's option --config-cache.
10643# It is not useful on other systems.  If it contains results you don't
10644# want to keep, you may remove or edit it.
10645#
10646# config.status only pays attention to the cache file if you give it
10647# the --recheck option to rerun configure.
10648#
10649# `ac_cv_env_foo' variables (set or unset) will be overridden when
10650# loading this file, other *unset* `ac_cv_foo' will be assigned the
10651# following values.
10652
10653_ACEOF
10654
10655# The following way of writing the cache mishandles newlines in values,
10656# but we know of no workaround that is simple, portable, and efficient.
10657# So, we kill variables containing newlines.
10658# Ultrix sh set writes to stderr and can't be redirected directly,
10659# and sets the high bit in the cache file unless we assign to the vars.
10660(
10661  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10662    eval ac_val=\$$ac_var
10663    case $ac_val in #(
10664    *${as_nl}*)
10665      case $ac_var in #(
10666      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10667$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10668      esac
10669      case $ac_var in #(
10670      _ | IFS | as_nl) ;; #(
10671      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10672      *) { eval $ac_var=; unset $ac_var;} ;;
10673      esac ;;
10674    esac
10675  done
10676
10677  (set) 2>&1 |
10678    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10679    *${as_nl}ac_space=\ *)
10680      # `set' does not quote correctly, so add quotes: double-quote
10681      # substitution turns \\\\ into \\, and sed turns \\ into \.
10682      sed -n \
10683	"s/'/'\\\\''/g;
10684	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10685      ;; #(
10686    *)
10687      # `set' quotes correctly as required by POSIX, so do not add quotes.
10688      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10689      ;;
10690    esac |
10691    sort
10692) |
10693  sed '
10694     /^ac_cv_env_/b end
10695     t clear
10696     :clear
10697     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10698     t end
10699     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10700     :end' >>confcache
10701if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10702  if test -w "$cache_file"; then
10703    if test "x$cache_file" != "x/dev/null"; then
10704      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10705$as_echo "$as_me: updating cache $cache_file" >&6;}
10706      if test ! -f "$cache_file" || test -h "$cache_file"; then
10707	cat confcache >"$cache_file"
10708      else
10709        case $cache_file in #(
10710        */* | ?:*)
10711	  mv -f confcache "$cache_file"$$ &&
10712	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10713        *)
10714	  mv -f confcache "$cache_file" ;;
10715	esac
10716      fi
10717    fi
10718  else
10719    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10720$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10721  fi
10722fi
10723rm -f confcache
10724
10725test "x$prefix" = xNONE && prefix=$ac_default_prefix
10726# Let make expand exec_prefix.
10727test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10728
10729DEFS=-DHAVE_CONFIG_H
10730
10731ac_libobjs=
10732ac_ltlibobjs=
10733U=
10734for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10735  # 1. Remove the extension, and $U if already installed.
10736  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10737  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10738  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10739  #    will be set to the directory where LIBOBJS objects are built.
10740  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10741  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10742done
10743LIBOBJS=$ac_libobjs
10744
10745LTLIBOBJS=$ac_ltlibobjs
10746
10747
10748 if test -n "$EXEEXT"; then
10749  am__EXEEXT_TRUE=
10750  am__EXEEXT_FALSE='#'
10751else
10752  am__EXEEXT_TRUE='#'
10753  am__EXEEXT_FALSE=
10754fi
10755
10756if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10757  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10758Usually this means the macro was only invoked conditionally." "$LINENO" 5
10759fi
10760if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10761  as_fn_error $? "conditional \"AMDEP\" was never defined.
10762Usually this means the macro was only invoked conditionally." "$LINENO" 5
10763fi
10764if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10765  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10766Usually this means the macro was only invoked conditionally." "$LINENO" 5
10767fi
10768
10769: "${CONFIG_STATUS=./config.status}"
10770ac_write_fail=0
10771ac_clean_files_save=$ac_clean_files
10772ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10773{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10774$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10775as_write_fail=0
10776cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10777#! $SHELL
10778# Generated by $as_me.
10779# Run this file to recreate the current configuration.
10780# Compiler output produced by configure, useful for debugging
10781# configure, is in config.log if it exists.
10782
10783debug=false
10784ac_cs_recheck=false
10785ac_cs_silent=false
10786
10787SHELL=\${CONFIG_SHELL-$SHELL}
10788export SHELL
10789_ASEOF
10790cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10791## -------------------- ##
10792## M4sh Initialization. ##
10793## -------------------- ##
10794
10795# Be more Bourne compatible
10796DUALCASE=1; export DUALCASE # for MKS sh
10797if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10798  emulate sh
10799  NULLCMD=:
10800  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10801  # is contrary to our usage.  Disable this feature.
10802  alias -g '${1+"$@"}'='"$@"'
10803  setopt NO_GLOB_SUBST
10804else
10805  case `(set -o) 2>/dev/null` in #(
10806  *posix*) :
10807    set -o posix ;; #(
10808  *) :
10809     ;;
10810esac
10811fi
10812
10813
10814as_nl='
10815'
10816export as_nl
10817# Printing a long string crashes Solaris 7 /usr/bin/printf.
10818as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10819as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10820as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10821# Prefer a ksh shell builtin over an external printf program on Solaris,
10822# but without wasting forks for bash or zsh.
10823if test -z "$BASH_VERSION$ZSH_VERSION" \
10824    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10825  as_echo='print -r --'
10826  as_echo_n='print -rn --'
10827elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10828  as_echo='printf %s\n'
10829  as_echo_n='printf %s'
10830else
10831  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10832    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10833    as_echo_n='/usr/ucb/echo -n'
10834  else
10835    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10836    as_echo_n_body='eval
10837      arg=$1;
10838      case $arg in #(
10839      *"$as_nl"*)
10840	expr "X$arg" : "X\\(.*\\)$as_nl";
10841	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10842      esac;
10843      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10844    '
10845    export as_echo_n_body
10846    as_echo_n='sh -c $as_echo_n_body as_echo'
10847  fi
10848  export as_echo_body
10849  as_echo='sh -c $as_echo_body as_echo'
10850fi
10851
10852# The user is always right.
10853if test "${PATH_SEPARATOR+set}" != set; then
10854  PATH_SEPARATOR=:
10855  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10856    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10857      PATH_SEPARATOR=';'
10858  }
10859fi
10860
10861
10862# IFS
10863# We need space, tab and new line, in precisely that order.  Quoting is
10864# there to prevent editors from complaining about space-tab.
10865# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10866# splitting by setting IFS to empty value.)
10867IFS=" ""	$as_nl"
10868
10869# Find who we are.  Look in the path if we contain no directory separator.
10870as_myself=
10871case $0 in #((
10872  *[\\/]* ) as_myself=$0 ;;
10873  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10874for as_dir in $PATH
10875do
10876  IFS=$as_save_IFS
10877  test -z "$as_dir" && as_dir=.
10878    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10879  done
10880IFS=$as_save_IFS
10881
10882     ;;
10883esac
10884# We did not find ourselves, most probably we were run as `sh COMMAND'
10885# in which case we are not to be found in the path.
10886if test "x$as_myself" = x; then
10887  as_myself=$0
10888fi
10889if test ! -f "$as_myself"; then
10890  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10891  exit 1
10892fi
10893
10894# Unset variables that we do not need and which cause bugs (e.g. in
10895# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
10896# suppresses any "Segmentation fault" message there.  '((' could
10897# trigger a bug in pdksh 5.2.14.
10898for as_var in BASH_ENV ENV MAIL MAILPATH
10899do eval test x\${$as_var+set} = xset \
10900  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10901done
10902PS1='$ '
10903PS2='> '
10904PS4='+ '
10905
10906# NLS nuisances.
10907LC_ALL=C
10908export LC_ALL
10909LANGUAGE=C
10910export LANGUAGE
10911
10912# CDPATH.
10913(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10914
10915
10916# as_fn_error STATUS ERROR [LINENO LOG_FD]
10917# ----------------------------------------
10918# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10919# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10920# script with STATUS, using 1 if that was 0.
10921as_fn_error ()
10922{
10923  as_status=$1; test $as_status -eq 0 && as_status=1
10924  if test "$4"; then
10925    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10926    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10927  fi
10928  $as_echo "$as_me: error: $2" >&2
10929  as_fn_exit $as_status
10930} # as_fn_error
10931
10932
10933# as_fn_set_status STATUS
10934# -----------------------
10935# Set $? to STATUS, without forking.
10936as_fn_set_status ()
10937{
10938  return $1
10939} # as_fn_set_status
10940
10941# as_fn_exit STATUS
10942# -----------------
10943# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10944as_fn_exit ()
10945{
10946  set +e
10947  as_fn_set_status $1
10948  exit $1
10949} # as_fn_exit
10950
10951# as_fn_unset VAR
10952# ---------------
10953# Portably unset VAR.
10954as_fn_unset ()
10955{
10956  { eval $1=; unset $1;}
10957}
10958as_unset=as_fn_unset
10959# as_fn_append VAR VALUE
10960# ----------------------
10961# Append the text in VALUE to the end of the definition contained in VAR. Take
10962# advantage of any shell optimizations that allow amortized linear growth over
10963# repeated appends, instead of the typical quadratic growth present in naive
10964# implementations.
10965if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10966  eval 'as_fn_append ()
10967  {
10968    eval $1+=\$2
10969  }'
10970else
10971  as_fn_append ()
10972  {
10973    eval $1=\$$1\$2
10974  }
10975fi # as_fn_append
10976
10977# as_fn_arith ARG...
10978# ------------------
10979# Perform arithmetic evaluation on the ARGs, and store the result in the
10980# global $as_val. Take advantage of shells that can avoid forks. The arguments
10981# must be portable across $(()) and expr.
10982if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10983  eval 'as_fn_arith ()
10984  {
10985    as_val=$(( $* ))
10986  }'
10987else
10988  as_fn_arith ()
10989  {
10990    as_val=`expr "$@" || test $? -eq 1`
10991  }
10992fi # as_fn_arith
10993
10994
10995if expr a : '\(a\)' >/dev/null 2>&1 &&
10996   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10997  as_expr=expr
10998else
10999  as_expr=false
11000fi
11001
11002if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11003  as_basename=basename
11004else
11005  as_basename=false
11006fi
11007
11008if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11009  as_dirname=dirname
11010else
11011  as_dirname=false
11012fi
11013
11014as_me=`$as_basename -- "$0" ||
11015$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11016	 X"$0" : 'X\(//\)$' \| \
11017	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11018$as_echo X/"$0" |
11019    sed '/^.*\/\([^/][^/]*\)\/*$/{
11020	    s//\1/
11021	    q
11022	  }
11023	  /^X\/\(\/\/\)$/{
11024	    s//\1/
11025	    q
11026	  }
11027	  /^X\/\(\/\).*/{
11028	    s//\1/
11029	    q
11030	  }
11031	  s/.*/./; q'`
11032
11033# Avoid depending upon Character Ranges.
11034as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11035as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11036as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11037as_cr_digits='0123456789'
11038as_cr_alnum=$as_cr_Letters$as_cr_digits
11039
11040ECHO_C= ECHO_N= ECHO_T=
11041case `echo -n x` in #(((((
11042-n*)
11043  case `echo 'xy\c'` in
11044  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11045  xy)  ECHO_C='\c';;
11046  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11047       ECHO_T='	';;
11048  esac;;
11049*)
11050  ECHO_N='-n';;
11051esac
11052
11053rm -f conf$$ conf$$.exe conf$$.file
11054if test -d conf$$.dir; then
11055  rm -f conf$$.dir/conf$$.file
11056else
11057  rm -f conf$$.dir
11058  mkdir conf$$.dir 2>/dev/null
11059fi
11060if (echo >conf$$.file) 2>/dev/null; then
11061  if ln -s conf$$.file conf$$ 2>/dev/null; then
11062    as_ln_s='ln -s'
11063    # ... but there are two gotchas:
11064    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11065    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11066    # In both cases, we have to default to `cp -p'.
11067    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11068      as_ln_s='cp -p'
11069  elif ln conf$$.file conf$$ 2>/dev/null; then
11070    as_ln_s=ln
11071  else
11072    as_ln_s='cp -p'
11073  fi
11074else
11075  as_ln_s='cp -p'
11076fi
11077rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11078rmdir conf$$.dir 2>/dev/null
11079
11080
11081# as_fn_mkdir_p
11082# -------------
11083# Create "$as_dir" as a directory, including parents if necessary.
11084as_fn_mkdir_p ()
11085{
11086
11087  case $as_dir in #(
11088  -*) as_dir=./$as_dir;;
11089  esac
11090  test -d "$as_dir" || eval $as_mkdir_p || {
11091    as_dirs=
11092    while :; do
11093      case $as_dir in #(
11094      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11095      *) as_qdir=$as_dir;;
11096      esac
11097      as_dirs="'$as_qdir' $as_dirs"
11098      as_dir=`$as_dirname -- "$as_dir" ||
11099$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11100	 X"$as_dir" : 'X\(//\)[^/]' \| \
11101	 X"$as_dir" : 'X\(//\)$' \| \
11102	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11103$as_echo X"$as_dir" |
11104    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11105	    s//\1/
11106	    q
11107	  }
11108	  /^X\(\/\/\)[^/].*/{
11109	    s//\1/
11110	    q
11111	  }
11112	  /^X\(\/\/\)$/{
11113	    s//\1/
11114	    q
11115	  }
11116	  /^X\(\/\).*/{
11117	    s//\1/
11118	    q
11119	  }
11120	  s/.*/./; q'`
11121      test -d "$as_dir" && break
11122    done
11123    test -z "$as_dirs" || eval "mkdir $as_dirs"
11124  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11125
11126
11127} # as_fn_mkdir_p
11128if mkdir -p . 2>/dev/null; then
11129  as_mkdir_p='mkdir -p "$as_dir"'
11130else
11131  test -d ./-p && rmdir ./-p
11132  as_mkdir_p=false
11133fi
11134
11135if test -x / >/dev/null 2>&1; then
11136  as_test_x='test -x'
11137else
11138  if ls -dL / >/dev/null 2>&1; then
11139    as_ls_L_option=L
11140  else
11141    as_ls_L_option=
11142  fi
11143  as_test_x='
11144    eval sh -c '\''
11145      if test -d "$1"; then
11146	test -d "$1/.";
11147      else
11148	case $1 in #(
11149	-*)set "./$1";;
11150	esac;
11151	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11152	???[sx]*):;;*)false;;esac;fi
11153    '\'' sh
11154  '
11155fi
11156as_executable_p=$as_test_x
11157
11158# Sed expression to map a string onto a valid CPP name.
11159as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11160
11161# Sed expression to map a string onto a valid variable name.
11162as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11163
11164
11165exec 6>&1
11166## ----------------------------------- ##
11167## Main body of $CONFIG_STATUS script. ##
11168## ----------------------------------- ##
11169_ASEOF
11170test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11171
11172cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11173# Save the log message, to keep $0 and so on meaningful, and to
11174# report actual input values of CONFIG_FILES etc. instead of their
11175# values after options handling.
11176ac_log="
11177This file was extended by xditview $as_me 1.0.3, which was
11178generated by GNU Autoconf 2.68.  Invocation command line was
11179
11180  CONFIG_FILES    = $CONFIG_FILES
11181  CONFIG_HEADERS  = $CONFIG_HEADERS
11182  CONFIG_LINKS    = $CONFIG_LINKS
11183  CONFIG_COMMANDS = $CONFIG_COMMANDS
11184  $ $0 $@
11185
11186on `(hostname || uname -n) 2>/dev/null | sed 1q`
11187"
11188
11189_ACEOF
11190
11191case $ac_config_files in *"
11192"*) set x $ac_config_files; shift; ac_config_files=$*;;
11193esac
11194
11195case $ac_config_headers in *"
11196"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11197esac
11198
11199
11200cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11201# Files that config.status was made for.
11202config_files="$ac_config_files"
11203config_headers="$ac_config_headers"
11204config_commands="$ac_config_commands"
11205
11206_ACEOF
11207
11208cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11209ac_cs_usage="\
11210\`$as_me' instantiates files and other configuration actions
11211from templates according to the current configuration.  Unless the files
11212and actions are specified as TAGs, all are instantiated by default.
11213
11214Usage: $0 [OPTION]... [TAG]...
11215
11216  -h, --help       print this help, then exit
11217  -V, --version    print version number and configuration settings, then exit
11218      --config     print configuration, then exit
11219  -q, --quiet, --silent
11220                   do not print progress messages
11221  -d, --debug      don't remove temporary files
11222      --recheck    update $as_me by reconfiguring in the same conditions
11223      --file=FILE[:TEMPLATE]
11224                   instantiate the configuration file FILE
11225      --header=FILE[:TEMPLATE]
11226                   instantiate the configuration header FILE
11227
11228Configuration files:
11229$config_files
11230
11231Configuration headers:
11232$config_headers
11233
11234Configuration commands:
11235$config_commands
11236
11237Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11238
11239_ACEOF
11240cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11241ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11242ac_cs_version="\\
11243xditview config.status 1.0.3
11244configured by $0, generated by GNU Autoconf 2.68,
11245  with options \\"\$ac_cs_config\\"
11246
11247Copyright (C) 2010 Free Software Foundation, Inc.
11248This config.status script is free software; the Free Software Foundation
11249gives unlimited permission to copy, distribute and modify it."
11250
11251ac_pwd='$ac_pwd'
11252srcdir='$srcdir'
11253INSTALL='$INSTALL'
11254MKDIR_P='$MKDIR_P'
11255AWK='$AWK'
11256test -n "\$AWK" || AWK=awk
11257_ACEOF
11258
11259cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11260# The default lists apply if the user does not specify any file.
11261ac_need_defaults=:
11262while test $# != 0
11263do
11264  case $1 in
11265  --*=?*)
11266    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11267    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11268    ac_shift=:
11269    ;;
11270  --*=)
11271    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11272    ac_optarg=
11273    ac_shift=:
11274    ;;
11275  *)
11276    ac_option=$1
11277    ac_optarg=$2
11278    ac_shift=shift
11279    ;;
11280  esac
11281
11282  case $ac_option in
11283  # Handling of the options.
11284  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11285    ac_cs_recheck=: ;;
11286  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11287    $as_echo "$ac_cs_version"; exit ;;
11288  --config | --confi | --conf | --con | --co | --c )
11289    $as_echo "$ac_cs_config"; exit ;;
11290  --debug | --debu | --deb | --de | --d | -d )
11291    debug=: ;;
11292  --file | --fil | --fi | --f )
11293    $ac_shift
11294    case $ac_optarg in
11295    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11296    '') as_fn_error $? "missing file argument" ;;
11297    esac
11298    as_fn_append CONFIG_FILES " '$ac_optarg'"
11299    ac_need_defaults=false;;
11300  --header | --heade | --head | --hea )
11301    $ac_shift
11302    case $ac_optarg in
11303    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11304    esac
11305    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11306    ac_need_defaults=false;;
11307  --he | --h)
11308    # Conflict between --help and --header
11309    as_fn_error $? "ambiguous option: \`$1'
11310Try \`$0 --help' for more information.";;
11311  --help | --hel | -h )
11312    $as_echo "$ac_cs_usage"; exit ;;
11313  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11314  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11315    ac_cs_silent=: ;;
11316
11317  # This is an error.
11318  -*) as_fn_error $? "unrecognized option: \`$1'
11319Try \`$0 --help' for more information." ;;
11320
11321  *) as_fn_append ac_config_targets " $1"
11322     ac_need_defaults=false ;;
11323
11324  esac
11325  shift
11326done
11327
11328ac_configure_extra_args=
11329
11330if $ac_cs_silent; then
11331  exec 6>/dev/null
11332  ac_configure_extra_args="$ac_configure_extra_args --silent"
11333fi
11334
11335_ACEOF
11336cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11337if \$ac_cs_recheck; then
11338  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11339  shift
11340  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11341  CONFIG_SHELL='$SHELL'
11342  export CONFIG_SHELL
11343  exec "\$@"
11344fi
11345
11346_ACEOF
11347cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11348exec 5>>config.log
11349{
11350  echo
11351  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11352## Running $as_me. ##
11353_ASBOX
11354  $as_echo "$ac_log"
11355} >&5
11356
11357_ACEOF
11358cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11359#
11360# INIT-COMMANDS
11361#
11362AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11363
11364_ACEOF
11365
11366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11367
11368# Handling of arguments.
11369for ac_config_target in $ac_config_targets
11370do
11371  case $ac_config_target in
11372    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11373    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11374    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11375    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11376
11377  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11378  esac
11379done
11380
11381
11382# If the user did not use the arguments to specify the items to instantiate,
11383# then the envvar interface is used.  Set only those that are not.
11384# We use the long form for the default assignment because of an extremely
11385# bizarre bug on SunOS 4.1.3.
11386if $ac_need_defaults; then
11387  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11388  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11389  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11390fi
11391
11392# Have a temporary directory for convenience.  Make it in the build tree
11393# simply because there is no reason against having it here, and in addition,
11394# creating and moving files from /tmp can sometimes cause problems.
11395# Hook for its removal unless debugging.
11396# Note that there is a small window in which the directory will not be cleaned:
11397# after its creation but before its name has been assigned to `$tmp'.
11398$debug ||
11399{
11400  tmp= ac_tmp=
11401  trap 'exit_status=$?
11402  : "${ac_tmp:=$tmp}"
11403  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11404' 0
11405  trap 'as_fn_exit 1' 1 2 13 15
11406}
11407# Create a (secure) tmp directory for tmp files.
11408
11409{
11410  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11411  test -d "$tmp"
11412}  ||
11413{
11414  tmp=./conf$$-$RANDOM
11415  (umask 077 && mkdir "$tmp")
11416} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11417ac_tmp=$tmp
11418
11419# Set up the scripts for CONFIG_FILES section.
11420# No need to generate them if there are no CONFIG_FILES.
11421# This happens for instance with `./config.status config.h'.
11422if test -n "$CONFIG_FILES"; then
11423
11424
11425ac_cr=`echo X | tr X '\015'`
11426# On cygwin, bash can eat \r inside `` if the user requested igncr.
11427# But we know of no other shell where ac_cr would be empty at this
11428# point, so we can use a bashism as a fallback.
11429if test "x$ac_cr" = x; then
11430  eval ac_cr=\$\'\\r\'
11431fi
11432ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11433if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11434  ac_cs_awk_cr='\\r'
11435else
11436  ac_cs_awk_cr=$ac_cr
11437fi
11438
11439echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11440_ACEOF
11441
11442
11443{
11444  echo "cat >conf$$subs.awk <<_ACEOF" &&
11445  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11446  echo "_ACEOF"
11447} >conf$$subs.sh ||
11448  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11449ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11450ac_delim='%!_!# '
11451for ac_last_try in false false false false false :; do
11452  . ./conf$$subs.sh ||
11453    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11454
11455  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11456  if test $ac_delim_n = $ac_delim_num; then
11457    break
11458  elif $ac_last_try; then
11459    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11460  else
11461    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11462  fi
11463done
11464rm -f conf$$subs.sh
11465
11466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11467cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11468_ACEOF
11469sed -n '
11470h
11471s/^/S["/; s/!.*/"]=/
11472p
11473g
11474s/^[^!]*!//
11475:repl
11476t repl
11477s/'"$ac_delim"'$//
11478t delim
11479:nl
11480h
11481s/\(.\{148\}\)..*/\1/
11482t more1
11483s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11484p
11485n
11486b repl
11487:more1
11488s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11489p
11490g
11491s/.\{148\}//
11492t nl
11493:delim
11494h
11495s/\(.\{148\}\)..*/\1/
11496t more2
11497s/["\\]/\\&/g; s/^/"/; s/$/"/
11498p
11499b
11500:more2
11501s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11502p
11503g
11504s/.\{148\}//
11505t delim
11506' <conf$$subs.awk | sed '
11507/^[^""]/{
11508  N
11509  s/\n//
11510}
11511' >>$CONFIG_STATUS || ac_write_fail=1
11512rm -f conf$$subs.awk
11513cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11514_ACAWK
11515cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11516  for (key in S) S_is_set[key] = 1
11517  FS = ""
11518
11519}
11520{
11521  line = $ 0
11522  nfields = split(line, field, "@")
11523  substed = 0
11524  len = length(field[1])
11525  for (i = 2; i < nfields; i++) {
11526    key = field[i]
11527    keylen = length(key)
11528    if (S_is_set[key]) {
11529      value = S[key]
11530      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11531      len += length(value) + length(field[++i])
11532      substed = 1
11533    } else
11534      len += 1 + keylen
11535  }
11536
11537  print line
11538}
11539
11540_ACAWK
11541_ACEOF
11542cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11543if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11544  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11545else
11546  cat
11547fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11548  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11549_ACEOF
11550
11551# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11552# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11553# trailing colons and then remove the whole line if VPATH becomes empty
11554# (actually we leave an empty line to preserve line numbers).
11555if test "x$srcdir" = x.; then
11556  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11557h
11558s///
11559s/^/:/
11560s/[	 ]*$/:/
11561s/:\$(srcdir):/:/g
11562s/:\${srcdir}:/:/g
11563s/:@srcdir@:/:/g
11564s/^:*//
11565s/:*$//
11566x
11567s/\(=[	 ]*\).*/\1/
11568G
11569s/\n//
11570s/^[^=]*=[	 ]*$//
11571}'
11572fi
11573
11574cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11575fi # test -n "$CONFIG_FILES"
11576
11577# Set up the scripts for CONFIG_HEADERS section.
11578# No need to generate them if there are no CONFIG_HEADERS.
11579# This happens for instance with `./config.status Makefile'.
11580if test -n "$CONFIG_HEADERS"; then
11581cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11582BEGIN {
11583_ACEOF
11584
11585# Transform confdefs.h into an awk script `defines.awk', embedded as
11586# here-document in config.status, that substitutes the proper values into
11587# config.h.in to produce config.h.
11588
11589# Create a delimiter string that does not exist in confdefs.h, to ease
11590# handling of long lines.
11591ac_delim='%!_!# '
11592for ac_last_try in false false :; do
11593  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11594  if test -z "$ac_tt"; then
11595    break
11596  elif $ac_last_try; then
11597    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11598  else
11599    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11600  fi
11601done
11602
11603# For the awk script, D is an array of macro values keyed by name,
11604# likewise P contains macro parameters if any.  Preserve backslash
11605# newline sequences.
11606
11607ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11608sed -n '
11609s/.\{148\}/&'"$ac_delim"'/g
11610t rset
11611:rset
11612s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11613t def
11614d
11615:def
11616s/\\$//
11617t bsnl
11618s/["\\]/\\&/g
11619s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11620D["\1"]=" \3"/p
11621s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11622d
11623:bsnl
11624s/["\\]/\\&/g
11625s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11626D["\1"]=" \3\\\\\\n"\\/p
11627t cont
11628s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11629t cont
11630d
11631:cont
11632n
11633s/.\{148\}/&'"$ac_delim"'/g
11634t clear
11635:clear
11636s/\\$//
11637t bsnlc
11638s/["\\]/\\&/g; s/^/"/; s/$/"/p
11639d
11640:bsnlc
11641s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11642b cont
11643' <confdefs.h | sed '
11644s/'"$ac_delim"'/"\\\
11645"/g' >>$CONFIG_STATUS || ac_write_fail=1
11646
11647cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11648  for (key in D) D_is_set[key] = 1
11649  FS = ""
11650}
11651/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11652  line = \$ 0
11653  split(line, arg, " ")
11654  if (arg[1] == "#") {
11655    defundef = arg[2]
11656    mac1 = arg[3]
11657  } else {
11658    defundef = substr(arg[1], 2)
11659    mac1 = arg[2]
11660  }
11661  split(mac1, mac2, "(") #)
11662  macro = mac2[1]
11663  prefix = substr(line, 1, index(line, defundef) - 1)
11664  if (D_is_set[macro]) {
11665    # Preserve the white space surrounding the "#".
11666    print prefix "define", macro P[macro] D[macro]
11667    next
11668  } else {
11669    # Replace #undef with comments.  This is necessary, for example,
11670    # in the case of _POSIX_SOURCE, which is predefined and required
11671    # on some systems where configure will not decide to define it.
11672    if (defundef == "undef") {
11673      print "/*", prefix defundef, macro, "*/"
11674      next
11675    }
11676  }
11677}
11678{ print }
11679_ACAWK
11680_ACEOF
11681cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11682  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11683fi # test -n "$CONFIG_HEADERS"
11684
11685
11686eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11687shift
11688for ac_tag
11689do
11690  case $ac_tag in
11691  :[FHLC]) ac_mode=$ac_tag; continue;;
11692  esac
11693  case $ac_mode$ac_tag in
11694  :[FHL]*:*);;
11695  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11696  :[FH]-) ac_tag=-:-;;
11697  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11698  esac
11699  ac_save_IFS=$IFS
11700  IFS=:
11701  set x $ac_tag
11702  IFS=$ac_save_IFS
11703  shift
11704  ac_file=$1
11705  shift
11706
11707  case $ac_mode in
11708  :L) ac_source=$1;;
11709  :[FH])
11710    ac_file_inputs=
11711    for ac_f
11712    do
11713      case $ac_f in
11714      -) ac_f="$ac_tmp/stdin";;
11715      *) # Look for the file first in the build tree, then in the source tree
11716	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11717	 # because $ac_f cannot contain `:'.
11718	 test -f "$ac_f" ||
11719	   case $ac_f in
11720	   [\\/$]*) false;;
11721	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11722	   esac ||
11723	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11724      esac
11725      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11726      as_fn_append ac_file_inputs " '$ac_f'"
11727    done
11728
11729    # Let's still pretend it is `configure' which instantiates (i.e., don't
11730    # use $as_me), people would be surprised to read:
11731    #    /* config.h.  Generated by config.status.  */
11732    configure_input='Generated from '`
11733	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11734	`' by configure.'
11735    if test x"$ac_file" != x-; then
11736      configure_input="$ac_file.  $configure_input"
11737      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11738$as_echo "$as_me: creating $ac_file" >&6;}
11739    fi
11740    # Neutralize special characters interpreted by sed in replacement strings.
11741    case $configure_input in #(
11742    *\&* | *\|* | *\\* )
11743       ac_sed_conf_input=`$as_echo "$configure_input" |
11744       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11745    *) ac_sed_conf_input=$configure_input;;
11746    esac
11747
11748    case $ac_tag in
11749    *:-:* | *:-) cat >"$ac_tmp/stdin" \
11750      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11751    esac
11752    ;;
11753  esac
11754
11755  ac_dir=`$as_dirname -- "$ac_file" ||
11756$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11757	 X"$ac_file" : 'X\(//\)[^/]' \| \
11758	 X"$ac_file" : 'X\(//\)$' \| \
11759	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11760$as_echo X"$ac_file" |
11761    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11762	    s//\1/
11763	    q
11764	  }
11765	  /^X\(\/\/\)[^/].*/{
11766	    s//\1/
11767	    q
11768	  }
11769	  /^X\(\/\/\)$/{
11770	    s//\1/
11771	    q
11772	  }
11773	  /^X\(\/\).*/{
11774	    s//\1/
11775	    q
11776	  }
11777	  s/.*/./; q'`
11778  as_dir="$ac_dir"; as_fn_mkdir_p
11779  ac_builddir=.
11780
11781case "$ac_dir" in
11782.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11783*)
11784  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11785  # A ".." for each directory in $ac_dir_suffix.
11786  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11787  case $ac_top_builddir_sub in
11788  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11789  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11790  esac ;;
11791esac
11792ac_abs_top_builddir=$ac_pwd
11793ac_abs_builddir=$ac_pwd$ac_dir_suffix
11794# for backward compatibility:
11795ac_top_builddir=$ac_top_build_prefix
11796
11797case $srcdir in
11798  .)  # We are building in place.
11799    ac_srcdir=.
11800    ac_top_srcdir=$ac_top_builddir_sub
11801    ac_abs_top_srcdir=$ac_pwd ;;
11802  [\\/]* | ?:[\\/]* )  # Absolute name.
11803    ac_srcdir=$srcdir$ac_dir_suffix;
11804    ac_top_srcdir=$srcdir
11805    ac_abs_top_srcdir=$srcdir ;;
11806  *) # Relative name.
11807    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11808    ac_top_srcdir=$ac_top_build_prefix$srcdir
11809    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11810esac
11811ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11812
11813
11814  case $ac_mode in
11815  :F)
11816  #
11817  # CONFIG_FILE
11818  #
11819
11820  case $INSTALL in
11821  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11822  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11823  esac
11824  ac_MKDIR_P=$MKDIR_P
11825  case $MKDIR_P in
11826  [\\/$]* | ?:[\\/]* ) ;;
11827  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11828  esac
11829_ACEOF
11830
11831cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11832# If the template does not know about datarootdir, expand it.
11833# FIXME: This hack should be removed a few years after 2.60.
11834ac_datarootdir_hack=; ac_datarootdir_seen=
11835ac_sed_dataroot='
11836/datarootdir/ {
11837  p
11838  q
11839}
11840/@datadir@/p
11841/@docdir@/p
11842/@infodir@/p
11843/@localedir@/p
11844/@mandir@/p'
11845case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11846*datarootdir*) ac_datarootdir_seen=yes;;
11847*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11848  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11849$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11850_ACEOF
11851cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11852  ac_datarootdir_hack='
11853  s&@datadir@&$datadir&g
11854  s&@docdir@&$docdir&g
11855  s&@infodir@&$infodir&g
11856  s&@localedir@&$localedir&g
11857  s&@mandir@&$mandir&g
11858  s&\\\${datarootdir}&$datarootdir&g' ;;
11859esac
11860_ACEOF
11861
11862# Neutralize VPATH when `$srcdir' = `.'.
11863# Shell code in configure.ac might set extrasub.
11864# FIXME: do we really want to maintain this feature?
11865cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11866ac_sed_extra="$ac_vpsub
11867$extrasub
11868_ACEOF
11869cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11870:t
11871/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11872s|@configure_input@|$ac_sed_conf_input|;t t
11873s&@top_builddir@&$ac_top_builddir_sub&;t t
11874s&@top_build_prefix@&$ac_top_build_prefix&;t t
11875s&@srcdir@&$ac_srcdir&;t t
11876s&@abs_srcdir@&$ac_abs_srcdir&;t t
11877s&@top_srcdir@&$ac_top_srcdir&;t t
11878s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11879s&@builddir@&$ac_builddir&;t t
11880s&@abs_builddir@&$ac_abs_builddir&;t t
11881s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11882s&@INSTALL@&$ac_INSTALL&;t t
11883s&@MKDIR_P@&$ac_MKDIR_P&;t t
11884$ac_datarootdir_hack
11885"
11886eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11887  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11888
11889test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11890  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11891  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
11892      "$ac_tmp/out"`; test -z "$ac_out"; } &&
11893  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11894which seems to be undefined.  Please make sure it is defined" >&5
11895$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11896which seems to be undefined.  Please make sure it is defined" >&2;}
11897
11898  rm -f "$ac_tmp/stdin"
11899  case $ac_file in
11900  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11901  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11902  esac \
11903  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11904 ;;
11905  :H)
11906  #
11907  # CONFIG_HEADER
11908  #
11909  if test x"$ac_file" != x-; then
11910    {
11911      $as_echo "/* $configure_input  */" \
11912      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11913    } >"$ac_tmp/config.h" \
11914      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11915    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11916      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11917$as_echo "$as_me: $ac_file is unchanged" >&6;}
11918    else
11919      rm -f "$ac_file"
11920      mv "$ac_tmp/config.h" "$ac_file" \
11921	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
11922    fi
11923  else
11924    $as_echo "/* $configure_input  */" \
11925      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11926      || as_fn_error $? "could not create -" "$LINENO" 5
11927  fi
11928# Compute "$ac_file"'s index in $config_headers.
11929_am_arg="$ac_file"
11930_am_stamp_count=1
11931for _am_header in $config_headers :; do
11932  case $_am_header in
11933    $_am_arg | $_am_arg:* )
11934      break ;;
11935    * )
11936      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11937  esac
11938done
11939echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11940$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11941	 X"$_am_arg" : 'X\(//\)[^/]' \| \
11942	 X"$_am_arg" : 'X\(//\)$' \| \
11943	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11944$as_echo X"$_am_arg" |
11945    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11946	    s//\1/
11947	    q
11948	  }
11949	  /^X\(\/\/\)[^/].*/{
11950	    s//\1/
11951	    q
11952	  }
11953	  /^X\(\/\/\)$/{
11954	    s//\1/
11955	    q
11956	  }
11957	  /^X\(\/\).*/{
11958	    s//\1/
11959	    q
11960	  }
11961	  s/.*/./; q'`/stamp-h$_am_stamp_count
11962 ;;
11963
11964  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11965$as_echo "$as_me: executing $ac_file commands" >&6;}
11966 ;;
11967  esac
11968
11969
11970  case $ac_file$ac_mode in
11971    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11972  # Autoconf 2.62 quotes --file arguments for eval, but not when files
11973  # are listed without --file.  Let's play safe and only enable the eval
11974  # if we detect the quoting.
11975  case $CONFIG_FILES in
11976  *\'*) eval set x "$CONFIG_FILES" ;;
11977  *)   set x $CONFIG_FILES ;;
11978  esac
11979  shift
11980  for mf
11981  do
11982    # Strip MF so we end up with the name of the file.
11983    mf=`echo "$mf" | sed -e 's/:.*$//'`
11984    # Check whether this is an Automake generated Makefile or not.
11985    # We used to match only the files named `Makefile.in', but
11986    # some people rename them; so instead we look at the file content.
11987    # Grep'ing the first line is not enough: some people post-process
11988    # each Makefile.in and add a new line on top of each file to say so.
11989    # Grep'ing the whole file is not good either: AIX grep has a line
11990    # limit of 2048, but all sed's we know have understand at least 4000.
11991    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11992      dirpart=`$as_dirname -- "$mf" ||
11993$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11994	 X"$mf" : 'X\(//\)[^/]' \| \
11995	 X"$mf" : 'X\(//\)$' \| \
11996	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11997$as_echo X"$mf" |
11998    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11999	    s//\1/
12000	    q
12001	  }
12002	  /^X\(\/\/\)[^/].*/{
12003	    s//\1/
12004	    q
12005	  }
12006	  /^X\(\/\/\)$/{
12007	    s//\1/
12008	    q
12009	  }
12010	  /^X\(\/\).*/{
12011	    s//\1/
12012	    q
12013	  }
12014	  s/.*/./; q'`
12015    else
12016      continue
12017    fi
12018    # Extract the definition of DEPDIR, am__include, and am__quote
12019    # from the Makefile without running `make'.
12020    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12021    test -z "$DEPDIR" && continue
12022    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12023    test -z "am__include" && continue
12024    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12025    # When using ansi2knr, U may be empty or an underscore; expand it
12026    U=`sed -n 's/^U = //p' < "$mf"`
12027    # Find all dependency output files, they are included files with
12028    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12029    # simplest approach to changing $(DEPDIR) to its actual value in the
12030    # expansion.
12031    for file in `sed -n "
12032      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12033	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12034      # Make sure the directory exists.
12035      test -f "$dirpart/$file" && continue
12036      fdir=`$as_dirname -- "$file" ||
12037$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12038	 X"$file" : 'X\(//\)[^/]' \| \
12039	 X"$file" : 'X\(//\)$' \| \
12040	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12041$as_echo X"$file" |
12042    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12043	    s//\1/
12044	    q
12045	  }
12046	  /^X\(\/\/\)[^/].*/{
12047	    s//\1/
12048	    q
12049	  }
12050	  /^X\(\/\/\)$/{
12051	    s//\1/
12052	    q
12053	  }
12054	  /^X\(\/\).*/{
12055	    s//\1/
12056	    q
12057	  }
12058	  s/.*/./; q'`
12059      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12060      # echo "creating $dirpart/$file"
12061      echo '# dummy' > "$dirpart/$file"
12062    done
12063  done
12064}
12065 ;;
12066
12067  esac
12068done # for ac_tag
12069
12070
12071as_fn_exit 0
12072_ACEOF
12073ac_clean_files=$ac_clean_files_save
12074
12075test $ac_write_fail = 0 ||
12076  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12077
12078
12079# configure is writing to config.log, and then calls config.status.
12080# config.status does its own redirection, appending to config.log.
12081# Unfortunately, on DOS this fails, as config.log is still kept open
12082# by configure, so config.status won't be able to write to it; its
12083# output is simply discarded.  So we exec the FD to /dev/null,
12084# effectively closing config.log, so it can be properly (re)opened and
12085# appended to by config.status.  When coming back to configure, we
12086# need to make the FD available again.
12087if test "$no_create" != yes; then
12088  ac_cs_success=:
12089  ac_config_status_args=
12090  test "$silent" = yes &&
12091    ac_config_status_args="$ac_config_status_args --quiet"
12092  exec 5>/dev/null
12093  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12094  exec 5>>config.log
12095  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12096  # would make configure fail if this is the last instruction.
12097  $ac_cs_success || as_fn_exit 1
12098fi
12099if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12100  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12101$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12102fi
12103
12104