configure revision b2f5b1db
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for makedepend 1.0.6.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/util/makedepend/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: https://gitlab.freedesktop.org/xorg/util/makedepend/issues
271$0: about your system, including any error possibly output
272$0: before this message. Then install a modern shell, or
273$0: manually run the script under such a shell if you do
274$0: have one."
275  fi
276  exit 1
277fi
278fi
279fi
280SHELL=${CONFIG_SHELL-/bin/sh}
281export SHELL
282# Unset more variables known to interfere with behavior of common tools.
283CLICOLOR_FORCE= GREP_OPTIONS=
284unset CLICOLOR_FORCE GREP_OPTIONS
285
286## --------------------- ##
287## M4sh Shell Functions. ##
288## --------------------- ##
289# as_fn_unset VAR
290# ---------------
291# Portably unset VAR.
292as_fn_unset ()
293{
294  { eval $1=; unset $1;}
295}
296as_unset=as_fn_unset
297
298# as_fn_set_status STATUS
299# -----------------------
300# Set $? to STATUS, without forking.
301as_fn_set_status ()
302{
303  return $1
304} # as_fn_set_status
305
306# as_fn_exit STATUS
307# -----------------
308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309as_fn_exit ()
310{
311  set +e
312  as_fn_set_status $1
313  exit $1
314} # as_fn_exit
315
316# as_fn_mkdir_p
317# -------------
318# Create "$as_dir" as a directory, including parents if necessary.
319as_fn_mkdir_p ()
320{
321
322  case $as_dir in #(
323  -*) as_dir=./$as_dir;;
324  esac
325  test -d "$as_dir" || eval $as_mkdir_p || {
326    as_dirs=
327    while :; do
328      case $as_dir in #(
329      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330      *) as_qdir=$as_dir;;
331      esac
332      as_dirs="'$as_qdir' $as_dirs"
333      as_dir=`$as_dirname -- "$as_dir" ||
334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335	 X"$as_dir" : 'X\(//\)[^/]' \| \
336	 X"$as_dir" : 'X\(//\)$' \| \
337	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338$as_echo X"$as_dir" |
339    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)[^/].*/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\).*/{
352	    s//\1/
353	    q
354	  }
355	  s/.*/./; q'`
356      test -d "$as_dir" && break
357    done
358    test -z "$as_dirs" || eval "mkdir $as_dirs"
359  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362} # as_fn_mkdir_p
363
364# as_fn_executable_p FILE
365# -----------------------
366# Test if FILE is an executable regular file.
367as_fn_executable_p ()
368{
369  test -f "$1" && test -x "$1"
370} # as_fn_executable_p
371# as_fn_append VAR VALUE
372# ----------------------
373# Append the text in VALUE to the end of the definition contained in VAR. Take
374# advantage of any shell optimizations that allow amortized linear growth over
375# repeated appends, instead of the typical quadratic growth present in naive
376# implementations.
377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378  eval 'as_fn_append ()
379  {
380    eval $1+=\$2
381  }'
382else
383  as_fn_append ()
384  {
385    eval $1=\$$1\$2
386  }
387fi # as_fn_append
388
389# as_fn_arith ARG...
390# ------------------
391# Perform arithmetic evaluation on the ARGs, and store the result in the
392# global $as_val. Take advantage of shells that can avoid forks. The arguments
393# must be portable across $(()) and expr.
394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395  eval 'as_fn_arith ()
396  {
397    as_val=$(( $* ))
398  }'
399else
400  as_fn_arith ()
401  {
402    as_val=`expr "$@" || test $? -eq 1`
403  }
404fi # as_fn_arith
405
406
407# as_fn_error STATUS ERROR [LINENO LOG_FD]
408# ----------------------------------------
409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411# script with STATUS, using 1 if that was 0.
412as_fn_error ()
413{
414  as_status=$1; test $as_status -eq 0 && as_status=1
415  if test "$4"; then
416    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418  fi
419  $as_echo "$as_me: error: $2" >&2
420  as_fn_exit $as_status
421} # as_fn_error
422
423if expr a : '\(a\)' >/dev/null 2>&1 &&
424   test "X`expr 00001 : '.*\(...\)'`" = X001; then
425  as_expr=expr
426else
427  as_expr=false
428fi
429
430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431  as_basename=basename
432else
433  as_basename=false
434fi
435
436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437  as_dirname=dirname
438else
439  as_dirname=false
440fi
441
442as_me=`$as_basename -- "$0" ||
443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444	 X"$0" : 'X\(//\)$' \| \
445	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446$as_echo X/"$0" |
447    sed '/^.*\/\([^/][^/]*\)\/*$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\/\)$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\).*/{
456	    s//\1/
457	    q
458	  }
459	  s/.*/./; q'`
460
461# Avoid depending upon Character Ranges.
462as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465as_cr_digits='0123456789'
466as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469  as_lineno_1=$LINENO as_lineno_1a=$LINENO
470  as_lineno_2=$LINENO as_lineno_2a=$LINENO
471  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
474  sed -n '
475    p
476    /[$]LINENO/=
477  ' <$as_myself |
478    sed '
479      s/[$]LINENO.*/&-/
480      t lineno
481      b
482      :lineno
483      N
484      :loop
485      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486      t loop
487      s/-\n.*//
488    ' >$as_me.lineno &&
489  chmod +x "$as_me.lineno" ||
490    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493  # already done that, so ensure we don't try to do so again and fall
494  # in an infinite loop.  This has already happened in practice.
495  _as_can_reexec=no; export _as_can_reexec
496  # Don't try to exec as it changes $[0], causing all sort of problems
497  # (the dirname of $[0] is not the place where we might find the
498  # original and so on.  Autoconf is especially sensitive to this).
499  . "./$as_me.lineno"
500  # Exit status is that of the last command.
501  exit
502}
503
504ECHO_C= ECHO_N= ECHO_T=
505case `echo -n x` in #(((((
506-n*)
507  case `echo 'xy\c'` in
508  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
509  xy)  ECHO_C='\c';;
510  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
511       ECHO_T='	';;
512  esac;;
513*)
514  ECHO_N='-n';;
515esac
516
517rm -f conf$$ conf$$.exe conf$$.file
518if test -d conf$$.dir; then
519  rm -f conf$$.dir/conf$$.file
520else
521  rm -f conf$$.dir
522  mkdir conf$$.dir 2>/dev/null
523fi
524if (echo >conf$$.file) 2>/dev/null; then
525  if ln -s conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s='ln -s'
527    # ... but there are two gotchas:
528    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530    # In both cases, we have to default to `cp -pR'.
531    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532      as_ln_s='cp -pR'
533  elif ln conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s=ln
535  else
536    as_ln_s='cp -pR'
537  fi
538else
539  as_ln_s='cp -pR'
540fi
541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542rmdir conf$$.dir 2>/dev/null
543
544if mkdir -p . 2>/dev/null; then
545  as_mkdir_p='mkdir -p "$as_dir"'
546else
547  test -d ./-p && rmdir ./-p
548  as_mkdir_p=false
549fi
550
551as_test_x='test -x'
552as_executable_p=as_fn_executable_p
553
554# Sed expression to map a string onto a valid CPP name.
555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557# Sed expression to map a string onto a valid variable name.
558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561test -n "$DJDIR" || exec 7<&0 </dev/null
562exec 6>&1
563
564# Name of the host.
565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566# so uname gets run too.
567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569#
570# Initializations.
571#
572ac_default_prefix=/usr/local
573ac_clean_files=
574ac_config_libobj_dir=.
575LIBOBJS=
576cross_compiling=no
577subdirs=
578MFLAGS=
579MAKEFLAGS=
580
581# Identity of this package.
582PACKAGE_NAME='makedepend'
583PACKAGE_TARNAME='makedepend'
584PACKAGE_VERSION='1.0.6'
585PACKAGE_STRING='makedepend 1.0.6'
586PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/util/makedepend/issues'
587PACKAGE_URL=''
588
589ac_unique_file="Makefile.am"
590# Factoring default headers for most tests.
591ac_includes_default="\
592#include <stdio.h>
593#ifdef HAVE_SYS_TYPES_H
594# include <sys/types.h>
595#endif
596#ifdef HAVE_SYS_STAT_H
597# include <sys/stat.h>
598#endif
599#ifdef STDC_HEADERS
600# include <stdlib.h>
601# include <stddef.h>
602#else
603# ifdef HAVE_STDLIB_H
604#  include <stdlib.h>
605# endif
606#endif
607#ifdef HAVE_STRING_H
608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609#  include <memory.h>
610# endif
611# include <string.h>
612#endif
613#ifdef HAVE_STRINGS_H
614# include <strings.h>
615#endif
616#ifdef HAVE_INTTYPES_H
617# include <inttypes.h>
618#endif
619#ifdef HAVE_STDINT_H
620# include <stdint.h>
621#endif
622#ifdef HAVE_UNISTD_H
623# include <unistd.h>
624#endif"
625
626ac_subst_vars='am__EXEEXT_FALSE
627am__EXEEXT_TRUE
628LTLIBOBJS
629LIBOBJS
630X_LIBS
631X_CFLAGS
632LINT_FALSE
633LINT_TRUE
634LINT_FLAGS
635LINT
636MAN_SUBSTS
637XORG_MAN_PAGE
638ADMIN_MAN_DIR
639DRIVER_MAN_DIR
640MISC_MAN_DIR
641FILE_MAN_DIR
642LIB_MAN_DIR
643APP_MAN_DIR
644ADMIN_MAN_SUFFIX
645DRIVER_MAN_SUFFIX
646MISC_MAN_SUFFIX
647FILE_MAN_SUFFIX
648LIB_MAN_SUFFIX
649APP_MAN_SUFFIX
650SED
651host_os
652host_vendor
653host_cpu
654host
655build_os
656build_vendor
657build_cpu
658build
659INSTALL_CMD
660PKG_CONFIG_LIBDIR
661PKG_CONFIG_PATH
662PKG_CONFIG
663CHANGELOG_CMD
664STRICT_CFLAGS
665CWARNFLAGS
666BASE_CFLAGS
667EGREP
668GREP
669CPP
670am__fastdepCC_FALSE
671am__fastdepCC_TRUE
672CCDEPMODE
673am__nodep
674AMDEPBACKSLASH
675AMDEP_FALSE
676AMDEP_TRUE
677am__quote
678am__include
679DEPDIR
680OBJEXT
681EXEEXT
682ac_ct_CC
683CPPFLAGS
684LDFLAGS
685CFLAGS
686CC
687AM_BACKSLASH
688AM_DEFAULT_VERBOSITY
689AM_DEFAULT_V
690AM_V
691am__untar
692am__tar
693AMTAR
694am__leading_dot
695SET_MAKE
696AWK
697mkdir_p
698MKDIR_P
699INSTALL_STRIP_PROGRAM
700STRIP
701install_sh
702MAKEINFO
703AUTOHEADER
704AUTOMAKE
705AUTOCONF
706ACLOCAL
707VERSION
708PACKAGE
709CYGPATH_W
710am__isrc
711INSTALL_DATA
712INSTALL_SCRIPT
713INSTALL_PROGRAM
714target_alias
715host_alias
716build_alias
717LIBS
718ECHO_T
719ECHO_N
720ECHO_C
721DEFS
722mandir
723localedir
724libdir
725psdir
726pdfdir
727dvidir
728htmldir
729infodir
730docdir
731oldincludedir
732includedir
733localstatedir
734sharedstatedir
735sysconfdir
736datadir
737datarootdir
738libexecdir
739sbindir
740bindir
741program_transform_name
742prefix
743exec_prefix
744PACKAGE_URL
745PACKAGE_BUGREPORT
746PACKAGE_STRING
747PACKAGE_VERSION
748PACKAGE_TARNAME
749PACKAGE_NAME
750PATH_SEPARATOR
751SHELL'
752ac_subst_files=''
753ac_user_opts='
754enable_option_checking
755enable_silent_rules
756enable_dependency_tracking
757enable_selective_werror
758enable_strict_compilation
759with_lint
760enable_largefile
761'
762      ac_precious_vars='build_alias
763host_alias
764target_alias
765CC
766CFLAGS
767LDFLAGS
768LIBS
769CPPFLAGS
770CPP
771PKG_CONFIG
772PKG_CONFIG_PATH
773PKG_CONFIG_LIBDIR
774LINT
775LINT_FLAGS
776X_CFLAGS
777X_LIBS'
778
779
780# Initialize some variables set by options.
781ac_init_help=
782ac_init_version=false
783ac_unrecognized_opts=
784ac_unrecognized_sep=
785# The variables have the same names as the options, with
786# dashes changed to underlines.
787cache_file=/dev/null
788exec_prefix=NONE
789no_create=
790no_recursion=
791prefix=NONE
792program_prefix=NONE
793program_suffix=NONE
794program_transform_name=s,x,x,
795silent=
796site=
797srcdir=
798verbose=
799x_includes=NONE
800x_libraries=NONE
801
802# Installation directory options.
803# These are left unexpanded so users can "make install exec_prefix=/foo"
804# and all the variables that are supposed to be based on exec_prefix
805# by default will actually change.
806# Use braces instead of parens because sh, perl, etc. also accept them.
807# (The list follows the same order as the GNU Coding Standards.)
808bindir='${exec_prefix}/bin'
809sbindir='${exec_prefix}/sbin'
810libexecdir='${exec_prefix}/libexec'
811datarootdir='${prefix}/share'
812datadir='${datarootdir}'
813sysconfdir='${prefix}/etc'
814sharedstatedir='${prefix}/com'
815localstatedir='${prefix}/var'
816includedir='${prefix}/include'
817oldincludedir='/usr/include'
818docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
819infodir='${datarootdir}/info'
820htmldir='${docdir}'
821dvidir='${docdir}'
822pdfdir='${docdir}'
823psdir='${docdir}'
824libdir='${exec_prefix}/lib'
825localedir='${datarootdir}/locale'
826mandir='${datarootdir}/man'
827
828ac_prev=
829ac_dashdash=
830for ac_option
831do
832  # If the previous option needs an argument, assign it.
833  if test -n "$ac_prev"; then
834    eval $ac_prev=\$ac_option
835    ac_prev=
836    continue
837  fi
838
839  case $ac_option in
840  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841  *=)   ac_optarg= ;;
842  *)    ac_optarg=yes ;;
843  esac
844
845  # Accept the important Cygnus configure options, so we can diagnose typos.
846
847  case $ac_dashdash$ac_option in
848  --)
849    ac_dashdash=yes ;;
850
851  -bindir | --bindir | --bindi | --bind | --bin | --bi)
852    ac_prev=bindir ;;
853  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854    bindir=$ac_optarg ;;
855
856  -build | --build | --buil | --bui | --bu)
857    ac_prev=build_alias ;;
858  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859    build_alias=$ac_optarg ;;
860
861  -cache-file | --cache-file | --cache-fil | --cache-fi \
862  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863    ac_prev=cache_file ;;
864  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866    cache_file=$ac_optarg ;;
867
868  --config-cache | -C)
869    cache_file=config.cache ;;
870
871  -datadir | --datadir | --datadi | --datad)
872    ac_prev=datadir ;;
873  -datadir=* | --datadir=* | --datadi=* | --datad=*)
874    datadir=$ac_optarg ;;
875
876  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877  | --dataroo | --dataro | --datar)
878    ac_prev=datarootdir ;;
879  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881    datarootdir=$ac_optarg ;;
882
883  -disable-* | --disable-*)
884    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885    # Reject names that are not valid shell variable names.
886    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
887      as_fn_error $? "invalid feature name: $ac_useropt"
888    ac_useropt_orig=$ac_useropt
889    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890    case $ac_user_opts in
891      *"
892"enable_$ac_useropt"
893"*) ;;
894      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895	 ac_unrecognized_sep=', ';;
896    esac
897    eval enable_$ac_useropt=no ;;
898
899  -docdir | --docdir | --docdi | --doc | --do)
900    ac_prev=docdir ;;
901  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902    docdir=$ac_optarg ;;
903
904  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905    ac_prev=dvidir ;;
906  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907    dvidir=$ac_optarg ;;
908
909  -enable-* | --enable-*)
910    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911    # Reject names that are not valid shell variable names.
912    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913      as_fn_error $? "invalid feature name: $ac_useropt"
914    ac_useropt_orig=$ac_useropt
915    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916    case $ac_user_opts in
917      *"
918"enable_$ac_useropt"
919"*) ;;
920      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921	 ac_unrecognized_sep=', ';;
922    esac
923    eval enable_$ac_useropt=\$ac_optarg ;;
924
925  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927  | --exec | --exe | --ex)
928    ac_prev=exec_prefix ;;
929  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931  | --exec=* | --exe=* | --ex=*)
932    exec_prefix=$ac_optarg ;;
933
934  -gas | --gas | --ga | --g)
935    # Obsolete; use --with-gas.
936    with_gas=yes ;;
937
938  -help | --help | --hel | --he | -h)
939    ac_init_help=long ;;
940  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941    ac_init_help=recursive ;;
942  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943    ac_init_help=short ;;
944
945  -host | --host | --hos | --ho)
946    ac_prev=host_alias ;;
947  -host=* | --host=* | --hos=* | --ho=*)
948    host_alias=$ac_optarg ;;
949
950  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
951    ac_prev=htmldir ;;
952  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
953  | --ht=*)
954    htmldir=$ac_optarg ;;
955
956  -includedir | --includedir | --includedi | --included | --include \
957  | --includ | --inclu | --incl | --inc)
958    ac_prev=includedir ;;
959  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960  | --includ=* | --inclu=* | --incl=* | --inc=*)
961    includedir=$ac_optarg ;;
962
963  -infodir | --infodir | --infodi | --infod | --info | --inf)
964    ac_prev=infodir ;;
965  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966    infodir=$ac_optarg ;;
967
968  -libdir | --libdir | --libdi | --libd)
969    ac_prev=libdir ;;
970  -libdir=* | --libdir=* | --libdi=* | --libd=*)
971    libdir=$ac_optarg ;;
972
973  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974  | --libexe | --libex | --libe)
975    ac_prev=libexecdir ;;
976  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977  | --libexe=* | --libex=* | --libe=*)
978    libexecdir=$ac_optarg ;;
979
980  -localedir | --localedir | --localedi | --localed | --locale)
981    ac_prev=localedir ;;
982  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983    localedir=$ac_optarg ;;
984
985  -localstatedir | --localstatedir | --localstatedi | --localstated \
986  | --localstate | --localstat | --localsta | --localst | --locals)
987    ac_prev=localstatedir ;;
988  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
989  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
990    localstatedir=$ac_optarg ;;
991
992  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
993    ac_prev=mandir ;;
994  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995    mandir=$ac_optarg ;;
996
997  -nfp | --nfp | --nf)
998    # Obsolete; use --without-fp.
999    with_fp=no ;;
1000
1001  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002  | --no-cr | --no-c | -n)
1003    no_create=yes ;;
1004
1005  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007    no_recursion=yes ;;
1008
1009  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011  | --oldin | --oldi | --old | --ol | --o)
1012    ac_prev=oldincludedir ;;
1013  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016    oldincludedir=$ac_optarg ;;
1017
1018  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1019    ac_prev=prefix ;;
1020  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021    prefix=$ac_optarg ;;
1022
1023  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024  | --program-pre | --program-pr | --program-p)
1025    ac_prev=program_prefix ;;
1026  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028    program_prefix=$ac_optarg ;;
1029
1030  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031  | --program-suf | --program-su | --program-s)
1032    ac_prev=program_suffix ;;
1033  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035    program_suffix=$ac_optarg ;;
1036
1037  -program-transform-name | --program-transform-name \
1038  | --program-transform-nam | --program-transform-na \
1039  | --program-transform-n | --program-transform- \
1040  | --program-transform | --program-transfor \
1041  | --program-transfo | --program-transf \
1042  | --program-trans | --program-tran \
1043  | --progr-tra | --program-tr | --program-t)
1044    ac_prev=program_transform_name ;;
1045  -program-transform-name=* | --program-transform-name=* \
1046  | --program-transform-nam=* | --program-transform-na=* \
1047  | --program-transform-n=* | --program-transform-=* \
1048  | --program-transform=* | --program-transfor=* \
1049  | --program-transfo=* | --program-transf=* \
1050  | --program-trans=* | --program-tran=* \
1051  | --progr-tra=* | --program-tr=* | --program-t=*)
1052    program_transform_name=$ac_optarg ;;
1053
1054  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1055    ac_prev=pdfdir ;;
1056  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057    pdfdir=$ac_optarg ;;
1058
1059  -psdir | --psdir | --psdi | --psd | --ps)
1060    ac_prev=psdir ;;
1061  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062    psdir=$ac_optarg ;;
1063
1064  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065  | -silent | --silent | --silen | --sile | --sil)
1066    silent=yes ;;
1067
1068  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1069    ac_prev=sbindir ;;
1070  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1071  | --sbi=* | --sb=*)
1072    sbindir=$ac_optarg ;;
1073
1074  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076  | --sharedst | --shareds | --shared | --share | --shar \
1077  | --sha | --sh)
1078    ac_prev=sharedstatedir ;;
1079  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1082  | --sha=* | --sh=*)
1083    sharedstatedir=$ac_optarg ;;
1084
1085  -site | --site | --sit)
1086    ac_prev=site ;;
1087  -site=* | --site=* | --sit=*)
1088    site=$ac_optarg ;;
1089
1090  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1091    ac_prev=srcdir ;;
1092  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1093    srcdir=$ac_optarg ;;
1094
1095  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096  | --syscon | --sysco | --sysc | --sys | --sy)
1097    ac_prev=sysconfdir ;;
1098  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1100    sysconfdir=$ac_optarg ;;
1101
1102  -target | --target | --targe | --targ | --tar | --ta | --t)
1103    ac_prev=target_alias ;;
1104  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1105    target_alias=$ac_optarg ;;
1106
1107  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108    verbose=yes ;;
1109
1110  -version | --version | --versio | --versi | --vers | -V)
1111    ac_init_version=: ;;
1112
1113  -with-* | --with-*)
1114    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115    # Reject names that are not valid shell variable names.
1116    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117      as_fn_error $? "invalid package name: $ac_useropt"
1118    ac_useropt_orig=$ac_useropt
1119    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120    case $ac_user_opts in
1121      *"
1122"with_$ac_useropt"
1123"*) ;;
1124      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1125	 ac_unrecognized_sep=', ';;
1126    esac
1127    eval with_$ac_useropt=\$ac_optarg ;;
1128
1129  -without-* | --without-*)
1130    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131    # Reject names that are not valid shell variable names.
1132    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133      as_fn_error $? "invalid package name: $ac_useropt"
1134    ac_useropt_orig=$ac_useropt
1135    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136    case $ac_user_opts in
1137      *"
1138"with_$ac_useropt"
1139"*) ;;
1140      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141	 ac_unrecognized_sep=', ';;
1142    esac
1143    eval with_$ac_useropt=no ;;
1144
1145  --x)
1146    # Obsolete; use --with-x.
1147    with_x=yes ;;
1148
1149  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1150  | --x-incl | --x-inc | --x-in | --x-i)
1151    ac_prev=x_includes ;;
1152  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1153  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1154    x_includes=$ac_optarg ;;
1155
1156  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1157  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1158    ac_prev=x_libraries ;;
1159  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1160  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1161    x_libraries=$ac_optarg ;;
1162
1163  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1164Try \`$0 --help' for more information"
1165    ;;
1166
1167  *=*)
1168    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1169    # Reject names that are not valid shell variable names.
1170    case $ac_envvar in #(
1171      '' | [0-9]* | *[!_$as_cr_alnum]* )
1172      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1173    esac
1174    eval $ac_envvar=\$ac_optarg
1175    export $ac_envvar ;;
1176
1177  *)
1178    # FIXME: should be removed in autoconf 3.0.
1179    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1180    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1181      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1182    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1183    ;;
1184
1185  esac
1186done
1187
1188if test -n "$ac_prev"; then
1189  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1190  as_fn_error $? "missing argument to $ac_option"
1191fi
1192
1193if test -n "$ac_unrecognized_opts"; then
1194  case $enable_option_checking in
1195    no) ;;
1196    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1197    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1198  esac
1199fi
1200
1201# Check all directory arguments for consistency.
1202for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203		datadir sysconfdir sharedstatedir localstatedir includedir \
1204		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205		libdir localedir mandir
1206do
1207  eval ac_val=\$$ac_var
1208  # Remove trailing slashes.
1209  case $ac_val in
1210    */ )
1211      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212      eval $ac_var=\$ac_val;;
1213  esac
1214  # Be sure to have absolute directory names.
1215  case $ac_val in
1216    [\\/$]* | ?:[\\/]* )  continue;;
1217    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218  esac
1219  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1220done
1221
1222# There might be people who depend on the old broken behavior: `$host'
1223# used to hold the argument of --host etc.
1224# FIXME: To remove some day.
1225build=$build_alias
1226host=$host_alias
1227target=$target_alias
1228
1229# FIXME: To remove some day.
1230if test "x$host_alias" != x; then
1231  if test "x$build_alias" = x; then
1232    cross_compiling=maybe
1233  elif test "x$build_alias" != "x$host_alias"; then
1234    cross_compiling=yes
1235  fi
1236fi
1237
1238ac_tool_prefix=
1239test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240
1241test "$silent" = yes && exec 6>/dev/null
1242
1243
1244ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245ac_ls_di=`ls -di .` &&
1246ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1247  as_fn_error $? "working directory cannot be determined"
1248test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249  as_fn_error $? "pwd does not report name of working directory"
1250
1251
1252# Find the source files, if location was not specified.
1253if test -z "$srcdir"; then
1254  ac_srcdir_defaulted=yes
1255  # Try the directory containing this script, then the parent directory.
1256  ac_confdir=`$as_dirname -- "$as_myself" ||
1257$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258	 X"$as_myself" : 'X\(//\)[^/]' \| \
1259	 X"$as_myself" : 'X\(//\)$' \| \
1260	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1261$as_echo X"$as_myself" |
1262    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263	    s//\1/
1264	    q
1265	  }
1266	  /^X\(\/\/\)[^/].*/{
1267	    s//\1/
1268	    q
1269	  }
1270	  /^X\(\/\/\)$/{
1271	    s//\1/
1272	    q
1273	  }
1274	  /^X\(\/\).*/{
1275	    s//\1/
1276	    q
1277	  }
1278	  s/.*/./; q'`
1279  srcdir=$ac_confdir
1280  if test ! -r "$srcdir/$ac_unique_file"; then
1281    srcdir=..
1282  fi
1283else
1284  ac_srcdir_defaulted=no
1285fi
1286if test ! -r "$srcdir/$ac_unique_file"; then
1287  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1288  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1289fi
1290ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291ac_abs_confdir=`(
1292	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1293	pwd)`
1294# When building in place, set srcdir=.
1295if test "$ac_abs_confdir" = "$ac_pwd"; then
1296  srcdir=.
1297fi
1298# Remove unnecessary trailing slashes from srcdir.
1299# Double slashes in file names in object file debugging info
1300# mess up M-x gdb in Emacs.
1301case $srcdir in
1302*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303esac
1304for ac_var in $ac_precious_vars; do
1305  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306  eval ac_env_${ac_var}_value=\$${ac_var}
1307  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309done
1310
1311#
1312# Report the --help message.
1313#
1314if test "$ac_init_help" = "long"; then
1315  # Omit some internal or obsolete options to make the list less imposing.
1316  # This message is too long to be a string in the A/UX 3.1 sh.
1317  cat <<_ACEOF
1318\`configure' configures makedepend 1.0.6 to adapt to many kinds of systems.
1319
1320Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323VAR=VALUE.  See below for descriptions of some of the useful variables.
1324
1325Defaults for the options are specified in brackets.
1326
1327Configuration:
1328  -h, --help              display this help and exit
1329      --help=short        display options specific to this package
1330      --help=recursive    display the short help of all the included packages
1331  -V, --version           display version information and exit
1332  -q, --quiet, --silent   do not print \`checking ...' messages
1333      --cache-file=FILE   cache test results in FILE [disabled]
1334  -C, --config-cache      alias for \`--cache-file=config.cache'
1335  -n, --no-create         do not create output files
1336      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1337
1338Installation directories:
1339  --prefix=PREFIX         install architecture-independent files in PREFIX
1340                          [$ac_default_prefix]
1341  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1342                          [PREFIX]
1343
1344By default, \`make install' will install all the files in
1345\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1346an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347for instance \`--prefix=\$HOME'.
1348
1349For better control, use the options below.
1350
1351Fine tuning of the installation directories:
1352  --bindir=DIR            user executables [EPREFIX/bin]
1353  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1354  --libexecdir=DIR        program executables [EPREFIX/libexec]
1355  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1356  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1357  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1358  --libdir=DIR            object code libraries [EPREFIX/lib]
1359  --includedir=DIR        C header files [PREFIX/include]
1360  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1361  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1362  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1363  --infodir=DIR           info documentation [DATAROOTDIR/info]
1364  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1365  --mandir=DIR            man documentation [DATAROOTDIR/man]
1366  --docdir=DIR            documentation root [DATAROOTDIR/doc/makedepend]
1367  --htmldir=DIR           html documentation [DOCDIR]
1368  --dvidir=DIR            dvi documentation [DOCDIR]
1369  --pdfdir=DIR            pdf documentation [DOCDIR]
1370  --psdir=DIR             ps documentation [DOCDIR]
1371_ACEOF
1372
1373  cat <<\_ACEOF
1374
1375Program names:
1376  --program-prefix=PREFIX            prepend PREFIX to installed program names
1377  --program-suffix=SUFFIX            append SUFFIX to installed program names
1378  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1379
1380System types:
1381  --build=BUILD     configure for building on BUILD [guessed]
1382  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1383_ACEOF
1384fi
1385
1386if test -n "$ac_init_help"; then
1387  case $ac_init_help in
1388     short | recursive ) echo "Configuration of makedepend 1.0.6:";;
1389   esac
1390  cat <<\_ACEOF
1391
1392Optional Features:
1393  --disable-option-checking  ignore unrecognized --enable/--with options
1394  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1395  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1396  --enable-silent-rules   less verbose build output (undo: "make V=1")
1397  --disable-silent-rules  verbose build output (undo: "make V=0")
1398  --enable-dependency-tracking
1399                          do not reject slow dependency extractors
1400  --disable-dependency-tracking
1401                          speeds up one-time build
1402  --disable-selective-werror
1403                          Turn off selective compiler errors. (default:
1404                          enabled)
1405  --enable-strict-compilation
1406                          Enable all warnings from compiler and make them
1407                          errors (default: disabled)
1408  --disable-largefile     omit support for large files
1409
1410Optional Packages:
1411  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1412  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1413  --with-lint             Use a lint-style source code checker (default:
1414                          disabled)
1415
1416Some influential environment variables:
1417  CC          C compiler command
1418  CFLAGS      C compiler flags
1419  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1420              nonstandard directory <lib dir>
1421  LIBS        libraries to pass to the linker, e.g. -l<library>
1422  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1423              you have headers in a nonstandard directory <include dir>
1424  CPP         C preprocessor
1425  PKG_CONFIG  path to pkg-config utility
1426  PKG_CONFIG_PATH
1427              directories to add to pkg-config's search path
1428  PKG_CONFIG_LIBDIR
1429              path overriding pkg-config's built-in search path
1430  LINT        Path to a lint-style command
1431  LINT_FLAGS  Flags for the lint-style command
1432  X_CFLAGS    C compiler flags for X, overriding pkg-config
1433  X_LIBS      linker flags for X, overriding pkg-config
1434
1435Use these variables to override the choices made by `configure' or to help
1436it to find libraries and programs with nonstandard names/locations.
1437
1438Report bugs to <https://gitlab.freedesktop.org/xorg/util/makedepend/issues>.
1439_ACEOF
1440ac_status=$?
1441fi
1442
1443if test "$ac_init_help" = "recursive"; then
1444  # If there are subdirs, report their specific --help.
1445  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1446    test -d "$ac_dir" ||
1447      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1448      continue
1449    ac_builddir=.
1450
1451case "$ac_dir" in
1452.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453*)
1454  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1455  # A ".." for each directory in $ac_dir_suffix.
1456  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1457  case $ac_top_builddir_sub in
1458  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1460  esac ;;
1461esac
1462ac_abs_top_builddir=$ac_pwd
1463ac_abs_builddir=$ac_pwd$ac_dir_suffix
1464# for backward compatibility:
1465ac_top_builddir=$ac_top_build_prefix
1466
1467case $srcdir in
1468  .)  # We are building in place.
1469    ac_srcdir=.
1470    ac_top_srcdir=$ac_top_builddir_sub
1471    ac_abs_top_srcdir=$ac_pwd ;;
1472  [\\/]* | ?:[\\/]* )  # Absolute name.
1473    ac_srcdir=$srcdir$ac_dir_suffix;
1474    ac_top_srcdir=$srcdir
1475    ac_abs_top_srcdir=$srcdir ;;
1476  *) # Relative name.
1477    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1478    ac_top_srcdir=$ac_top_build_prefix$srcdir
1479    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1480esac
1481ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1482
1483    cd "$ac_dir" || { ac_status=$?; continue; }
1484    # Check for guested configure.
1485    if test -f "$ac_srcdir/configure.gnu"; then
1486      echo &&
1487      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1488    elif test -f "$ac_srcdir/configure"; then
1489      echo &&
1490      $SHELL "$ac_srcdir/configure" --help=recursive
1491    else
1492      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1493    fi || ac_status=$?
1494    cd "$ac_pwd" || { ac_status=$?; break; }
1495  done
1496fi
1497
1498test -n "$ac_init_help" && exit $ac_status
1499if $ac_init_version; then
1500  cat <<\_ACEOF
1501makedepend configure 1.0.6
1502generated by GNU Autoconf 2.69
1503
1504Copyright (C) 2012 Free Software Foundation, Inc.
1505This configure script is free software; the Free Software Foundation
1506gives unlimited permission to copy, distribute and modify it.
1507_ACEOF
1508  exit
1509fi
1510
1511## ------------------------ ##
1512## Autoconf initialization. ##
1513## ------------------------ ##
1514
1515# ac_fn_c_try_compile LINENO
1516# --------------------------
1517# Try to compile conftest.$ac_ext, and return whether this succeeded.
1518ac_fn_c_try_compile ()
1519{
1520  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521  rm -f conftest.$ac_objext
1522  if { { ac_try="$ac_compile"
1523case "(($ac_try" in
1524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525  *) ac_try_echo=$ac_try;;
1526esac
1527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528$as_echo "$ac_try_echo"; } >&5
1529  (eval "$ac_compile") 2>conftest.err
1530  ac_status=$?
1531  if test -s conftest.err; then
1532    grep -v '^ *+' conftest.err >conftest.er1
1533    cat conftest.er1 >&5
1534    mv -f conftest.er1 conftest.err
1535  fi
1536  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537  test $ac_status = 0; } && {
1538	 test -z "$ac_c_werror_flag" ||
1539	 test ! -s conftest.err
1540       } && test -s conftest.$ac_objext; then :
1541  ac_retval=0
1542else
1543  $as_echo "$as_me: failed program was:" >&5
1544sed 's/^/| /' conftest.$ac_ext >&5
1545
1546	ac_retval=1
1547fi
1548  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549  as_fn_set_status $ac_retval
1550
1551} # ac_fn_c_try_compile
1552
1553# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1554# ---------------------------------------------
1555# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1556# accordingly.
1557ac_fn_c_check_decl ()
1558{
1559  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560  as_decl_name=`echo $2|sed 's/ *(.*//'`
1561  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1562  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1563$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1564if eval \${$3+:} false; then :
1565  $as_echo_n "(cached) " >&6
1566else
1567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1568/* end confdefs.h.  */
1569$4
1570int
1571main ()
1572{
1573#ifndef $as_decl_name
1574#ifdef __cplusplus
1575  (void) $as_decl_use;
1576#else
1577  (void) $as_decl_name;
1578#endif
1579#endif
1580
1581  ;
1582  return 0;
1583}
1584_ACEOF
1585if ac_fn_c_try_compile "$LINENO"; then :
1586  eval "$3=yes"
1587else
1588  eval "$3=no"
1589fi
1590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1591fi
1592eval ac_res=\$$3
1593	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1594$as_echo "$ac_res" >&6; }
1595  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596
1597} # ac_fn_c_check_decl
1598
1599# ac_fn_c_try_cpp LINENO
1600# ----------------------
1601# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1602ac_fn_c_try_cpp ()
1603{
1604  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605  if { { ac_try="$ac_cpp conftest.$ac_ext"
1606case "(($ac_try" in
1607  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608  *) ac_try_echo=$ac_try;;
1609esac
1610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611$as_echo "$ac_try_echo"; } >&5
1612  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1613  ac_status=$?
1614  if test -s conftest.err; then
1615    grep -v '^ *+' conftest.err >conftest.er1
1616    cat conftest.er1 >&5
1617    mv -f conftest.er1 conftest.err
1618  fi
1619  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620  test $ac_status = 0; } > conftest.i && {
1621	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1622	 test ! -s conftest.err
1623       }; then :
1624  ac_retval=0
1625else
1626  $as_echo "$as_me: failed program was:" >&5
1627sed 's/^/| /' conftest.$ac_ext >&5
1628
1629    ac_retval=1
1630fi
1631  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632  as_fn_set_status $ac_retval
1633
1634} # ac_fn_c_try_cpp
1635
1636# ac_fn_c_try_run LINENO
1637# ----------------------
1638# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1639# that executables *can* be run.
1640ac_fn_c_try_run ()
1641{
1642  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643  if { { ac_try="$ac_link"
1644case "(($ac_try" in
1645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646  *) ac_try_echo=$ac_try;;
1647esac
1648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649$as_echo "$ac_try_echo"; } >&5
1650  (eval "$ac_link") 2>&5
1651  ac_status=$?
1652  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1654  { { case "(($ac_try" in
1655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656  *) ac_try_echo=$ac_try;;
1657esac
1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659$as_echo "$ac_try_echo"; } >&5
1660  (eval "$ac_try") 2>&5
1661  ac_status=$?
1662  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663  test $ac_status = 0; }; }; then :
1664  ac_retval=0
1665else
1666  $as_echo "$as_me: program exited with status $ac_status" >&5
1667       $as_echo "$as_me: failed program was:" >&5
1668sed 's/^/| /' conftest.$ac_ext >&5
1669
1670       ac_retval=$ac_status
1671fi
1672  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1673  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674  as_fn_set_status $ac_retval
1675
1676} # ac_fn_c_try_run
1677
1678# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1679# -------------------------------------------------------
1680# Tests whether HEADER exists and can be compiled using the include files in
1681# INCLUDES, setting the cache variable VAR accordingly.
1682ac_fn_c_check_header_compile ()
1683{
1684  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1686$as_echo_n "checking for $2... " >&6; }
1687if eval \${$3+:} false; then :
1688  $as_echo_n "(cached) " >&6
1689else
1690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1691/* end confdefs.h.  */
1692$4
1693#include <$2>
1694_ACEOF
1695if ac_fn_c_try_compile "$LINENO"; then :
1696  eval "$3=yes"
1697else
1698  eval "$3=no"
1699fi
1700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1701fi
1702eval ac_res=\$$3
1703	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1704$as_echo "$ac_res" >&6; }
1705  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706
1707} # ac_fn_c_check_header_compile
1708
1709# ac_fn_c_try_link LINENO
1710# -----------------------
1711# Try to link conftest.$ac_ext, and return whether this succeeded.
1712ac_fn_c_try_link ()
1713{
1714  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715  rm -f conftest.$ac_objext conftest$ac_exeext
1716  if { { ac_try="$ac_link"
1717case "(($ac_try" in
1718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719  *) ac_try_echo=$ac_try;;
1720esac
1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722$as_echo "$ac_try_echo"; } >&5
1723  (eval "$ac_link") 2>conftest.err
1724  ac_status=$?
1725  if test -s conftest.err; then
1726    grep -v '^ *+' conftest.err >conftest.er1
1727    cat conftest.er1 >&5
1728    mv -f conftest.er1 conftest.err
1729  fi
1730  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731  test $ac_status = 0; } && {
1732	 test -z "$ac_c_werror_flag" ||
1733	 test ! -s conftest.err
1734       } && test -s conftest$ac_exeext && {
1735	 test "$cross_compiling" = yes ||
1736	 test -x conftest$ac_exeext
1737       }; then :
1738  ac_retval=0
1739else
1740  $as_echo "$as_me: failed program was:" >&5
1741sed 's/^/| /' conftest.$ac_ext >&5
1742
1743	ac_retval=1
1744fi
1745  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1746  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1747  # interfere with the next link command; also delete a directory that is
1748  # left behind by Apple's compiler.  We do this before executing the actions.
1749  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751  as_fn_set_status $ac_retval
1752
1753} # ac_fn_c_try_link
1754
1755# ac_fn_c_check_func LINENO FUNC VAR
1756# ----------------------------------
1757# Tests whether FUNC exists, setting the cache variable VAR accordingly
1758ac_fn_c_check_func ()
1759{
1760  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762$as_echo_n "checking for $2... " >&6; }
1763if eval \${$3+:} false; then :
1764  $as_echo_n "(cached) " >&6
1765else
1766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767/* end confdefs.h.  */
1768/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1769   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1770#define $2 innocuous_$2
1771
1772/* System header to define __stub macros and hopefully few prototypes,
1773    which can conflict with char $2 (); below.
1774    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1775    <limits.h> exists even on freestanding compilers.  */
1776
1777#ifdef __STDC__
1778# include <limits.h>
1779#else
1780# include <assert.h>
1781#endif
1782
1783#undef $2
1784
1785/* Override any GCC internal prototype to avoid an error.
1786   Use char because int might match the return type of a GCC
1787   builtin and then its argument prototype would still apply.  */
1788#ifdef __cplusplus
1789extern "C"
1790#endif
1791char $2 ();
1792/* The GNU C library defines this for functions which it implements
1793    to always fail with ENOSYS.  Some functions are actually named
1794    something starting with __ and the normal name is an alias.  */
1795#if defined __stub_$2 || defined __stub___$2
1796choke me
1797#endif
1798
1799int
1800main ()
1801{
1802return $2 ();
1803  ;
1804  return 0;
1805}
1806_ACEOF
1807if ac_fn_c_try_link "$LINENO"; then :
1808  eval "$3=yes"
1809else
1810  eval "$3=no"
1811fi
1812rm -f core conftest.err conftest.$ac_objext \
1813    conftest$ac_exeext conftest.$ac_ext
1814fi
1815eval ac_res=\$$3
1816	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817$as_echo "$ac_res" >&6; }
1818  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819
1820} # ac_fn_c_check_func
1821cat >config.log <<_ACEOF
1822This file contains any messages produced by compilers while
1823running configure, to aid debugging if configure makes a mistake.
1824
1825It was created by makedepend $as_me 1.0.6, which was
1826generated by GNU Autoconf 2.69.  Invocation command line was
1827
1828  $ $0 $@
1829
1830_ACEOF
1831exec 5>>config.log
1832{
1833cat <<_ASUNAME
1834## --------- ##
1835## Platform. ##
1836## --------- ##
1837
1838hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1839uname -m = `(uname -m) 2>/dev/null || echo unknown`
1840uname -r = `(uname -r) 2>/dev/null || echo unknown`
1841uname -s = `(uname -s) 2>/dev/null || echo unknown`
1842uname -v = `(uname -v) 2>/dev/null || echo unknown`
1843
1844/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1845/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1846
1847/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1848/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1849/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1850/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1851/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1852/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1853/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1854
1855_ASUNAME
1856
1857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858for as_dir in $PATH
1859do
1860  IFS=$as_save_IFS
1861  test -z "$as_dir" && as_dir=.
1862    $as_echo "PATH: $as_dir"
1863  done
1864IFS=$as_save_IFS
1865
1866} >&5
1867
1868cat >&5 <<_ACEOF
1869
1870
1871## ----------- ##
1872## Core tests. ##
1873## ----------- ##
1874
1875_ACEOF
1876
1877
1878# Keep a trace of the command line.
1879# Strip out --no-create and --no-recursion so they do not pile up.
1880# Strip out --silent because we don't want to record it for future runs.
1881# Also quote any args containing shell meta-characters.
1882# Make two passes to allow for proper duplicate-argument suppression.
1883ac_configure_args=
1884ac_configure_args0=
1885ac_configure_args1=
1886ac_must_keep_next=false
1887for ac_pass in 1 2
1888do
1889  for ac_arg
1890  do
1891    case $ac_arg in
1892    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1893    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1894    | -silent | --silent | --silen | --sile | --sil)
1895      continue ;;
1896    *\'*)
1897      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1898    esac
1899    case $ac_pass in
1900    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1901    2)
1902      as_fn_append ac_configure_args1 " '$ac_arg'"
1903      if test $ac_must_keep_next = true; then
1904	ac_must_keep_next=false # Got value, back to normal.
1905      else
1906	case $ac_arg in
1907	  *=* | --config-cache | -C | -disable-* | --disable-* \
1908	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1909	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1910	  | -with-* | --with-* | -without-* | --without-* | --x)
1911	    case "$ac_configure_args0 " in
1912	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1913	    esac
1914	    ;;
1915	  -* ) ac_must_keep_next=true ;;
1916	esac
1917      fi
1918      as_fn_append ac_configure_args " '$ac_arg'"
1919      ;;
1920    esac
1921  done
1922done
1923{ ac_configure_args0=; unset ac_configure_args0;}
1924{ ac_configure_args1=; unset ac_configure_args1;}
1925
1926# When interrupted or exit'd, cleanup temporary files, and complete
1927# config.log.  We remove comments because anyway the quotes in there
1928# would cause problems or look ugly.
1929# WARNING: Use '\'' to represent an apostrophe within the trap.
1930# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1931trap 'exit_status=$?
1932  # Save into config.log some information that might help in debugging.
1933  {
1934    echo
1935
1936    $as_echo "## ---------------- ##
1937## Cache variables. ##
1938## ---------------- ##"
1939    echo
1940    # The following way of writing the cache mishandles newlines in values,
1941(
1942  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1943    eval ac_val=\$$ac_var
1944    case $ac_val in #(
1945    *${as_nl}*)
1946      case $ac_var in #(
1947      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1948$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1949      esac
1950      case $ac_var in #(
1951      _ | IFS | as_nl) ;; #(
1952      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1953      *) { eval $ac_var=; unset $ac_var;} ;;
1954      esac ;;
1955    esac
1956  done
1957  (set) 2>&1 |
1958    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1959    *${as_nl}ac_space=\ *)
1960      sed -n \
1961	"s/'\''/'\''\\\\'\'''\''/g;
1962	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1963      ;; #(
1964    *)
1965      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1966      ;;
1967    esac |
1968    sort
1969)
1970    echo
1971
1972    $as_echo "## ----------------- ##
1973## Output variables. ##
1974## ----------------- ##"
1975    echo
1976    for ac_var in $ac_subst_vars
1977    do
1978      eval ac_val=\$$ac_var
1979      case $ac_val in
1980      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1981      esac
1982      $as_echo "$ac_var='\''$ac_val'\''"
1983    done | sort
1984    echo
1985
1986    if test -n "$ac_subst_files"; then
1987      $as_echo "## ------------------- ##
1988## File substitutions. ##
1989## ------------------- ##"
1990      echo
1991      for ac_var in $ac_subst_files
1992      do
1993	eval ac_val=\$$ac_var
1994	case $ac_val in
1995	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1996	esac
1997	$as_echo "$ac_var='\''$ac_val'\''"
1998      done | sort
1999      echo
2000    fi
2001
2002    if test -s confdefs.h; then
2003      $as_echo "## ----------- ##
2004## confdefs.h. ##
2005## ----------- ##"
2006      echo
2007      cat confdefs.h
2008      echo
2009    fi
2010    test "$ac_signal" != 0 &&
2011      $as_echo "$as_me: caught signal $ac_signal"
2012    $as_echo "$as_me: exit $exit_status"
2013  } >&5
2014  rm -f core *.core core.conftest.* &&
2015    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2016    exit $exit_status
2017' 0
2018for ac_signal in 1 2 13 15; do
2019  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2020done
2021ac_signal=0
2022
2023# confdefs.h avoids OS command line length limits that DEFS can exceed.
2024rm -f -r conftest* confdefs.h
2025
2026$as_echo "/* confdefs.h */" > confdefs.h
2027
2028# Predefined preprocessor variables.
2029
2030cat >>confdefs.h <<_ACEOF
2031#define PACKAGE_NAME "$PACKAGE_NAME"
2032_ACEOF
2033
2034cat >>confdefs.h <<_ACEOF
2035#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2036_ACEOF
2037
2038cat >>confdefs.h <<_ACEOF
2039#define PACKAGE_VERSION "$PACKAGE_VERSION"
2040_ACEOF
2041
2042cat >>confdefs.h <<_ACEOF
2043#define PACKAGE_STRING "$PACKAGE_STRING"
2044_ACEOF
2045
2046cat >>confdefs.h <<_ACEOF
2047#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2048_ACEOF
2049
2050cat >>confdefs.h <<_ACEOF
2051#define PACKAGE_URL "$PACKAGE_URL"
2052_ACEOF
2053
2054
2055# Let the site file select an alternate cache file if it wants to.
2056# Prefer an explicitly selected file to automatically selected ones.
2057ac_site_file1=NONE
2058ac_site_file2=NONE
2059if test -n "$CONFIG_SITE"; then
2060  # We do not want a PATH search for config.site.
2061  case $CONFIG_SITE in #((
2062    -*)  ac_site_file1=./$CONFIG_SITE;;
2063    */*) ac_site_file1=$CONFIG_SITE;;
2064    *)   ac_site_file1=./$CONFIG_SITE;;
2065  esac
2066elif test "x$prefix" != xNONE; then
2067  ac_site_file1=$prefix/share/config.site
2068  ac_site_file2=$prefix/etc/config.site
2069else
2070  ac_site_file1=$ac_default_prefix/share/config.site
2071  ac_site_file2=$ac_default_prefix/etc/config.site
2072fi
2073for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2074do
2075  test "x$ac_site_file" = xNONE && continue
2076  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2077    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2078$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2079    sed 's/^/| /' "$ac_site_file" >&5
2080    . "$ac_site_file" \
2081      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2082$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2083as_fn_error $? "failed to load site script $ac_site_file
2084See \`config.log' for more details" "$LINENO" 5; }
2085  fi
2086done
2087
2088if test -r "$cache_file"; then
2089  # Some versions of bash will fail to source /dev/null (special files
2090  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2091  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2092    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2093$as_echo "$as_me: loading cache $cache_file" >&6;}
2094    case $cache_file in
2095      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2096      *)                      . "./$cache_file";;
2097    esac
2098  fi
2099else
2100  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2101$as_echo "$as_me: creating cache $cache_file" >&6;}
2102  >$cache_file
2103fi
2104
2105# Check that the precious variables saved in the cache have kept the same
2106# value.
2107ac_cache_corrupted=false
2108for ac_var in $ac_precious_vars; do
2109  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2110  eval ac_new_set=\$ac_env_${ac_var}_set
2111  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2112  eval ac_new_val=\$ac_env_${ac_var}_value
2113  case $ac_old_set,$ac_new_set in
2114    set,)
2115      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2116$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2117      ac_cache_corrupted=: ;;
2118    ,set)
2119      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2120$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2121      ac_cache_corrupted=: ;;
2122    ,);;
2123    *)
2124      if test "x$ac_old_val" != "x$ac_new_val"; then
2125	# differences in whitespace do not lead to failure.
2126	ac_old_val_w=`echo x $ac_old_val`
2127	ac_new_val_w=`echo x $ac_new_val`
2128	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2129	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2130$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2131	  ac_cache_corrupted=:
2132	else
2133	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2134$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2135	  eval $ac_var=\$ac_old_val
2136	fi
2137	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2138$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2139	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2140$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2141      fi;;
2142  esac
2143  # Pass precious variables to config.status.
2144  if test "$ac_new_set" = set; then
2145    case $ac_new_val in
2146    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2147    *) ac_arg=$ac_var=$ac_new_val ;;
2148    esac
2149    case " $ac_configure_args " in
2150      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2151      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2152    esac
2153  fi
2154done
2155if $ac_cache_corrupted; then
2156  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2157$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2158  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2159$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2160  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2161fi
2162## -------------------- ##
2163## Main body of script. ##
2164## -------------------- ##
2165
2166ac_ext=c
2167ac_cpp='$CPP $CPPFLAGS'
2168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2170ac_compiler_gnu=$ac_cv_c_compiler_gnu
2171
2172
2173
2174ac_config_headers="$ac_config_headers makedepend-config.h"
2175
2176
2177# Initialize Automake
2178am__api_version='1.15'
2179
2180ac_aux_dir=
2181for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2182  if test -f "$ac_dir/install-sh"; then
2183    ac_aux_dir=$ac_dir
2184    ac_install_sh="$ac_aux_dir/install-sh -c"
2185    break
2186  elif test -f "$ac_dir/install.sh"; then
2187    ac_aux_dir=$ac_dir
2188    ac_install_sh="$ac_aux_dir/install.sh -c"
2189    break
2190  elif test -f "$ac_dir/shtool"; then
2191    ac_aux_dir=$ac_dir
2192    ac_install_sh="$ac_aux_dir/shtool install -c"
2193    break
2194  fi
2195done
2196if test -z "$ac_aux_dir"; then
2197  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2198fi
2199
2200# These three variables are undocumented and unsupported,
2201# and are intended to be withdrawn in a future Autoconf release.
2202# They can cause serious problems if a builder's source tree is in a directory
2203# whose full name contains unusual characters.
2204ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2205ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2206ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2207
2208
2209# Find a good install program.  We prefer a C program (faster),
2210# so one script is as good as another.  But avoid the broken or
2211# incompatible versions:
2212# SysV /etc/install, /usr/sbin/install
2213# SunOS /usr/etc/install
2214# IRIX /sbin/install
2215# AIX /bin/install
2216# AmigaOS /C/install, which installs bootblocks on floppy discs
2217# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2218# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2219# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2220# OS/2's system install, which has a completely different semantic
2221# ./install, which can be erroneously created by make from ./install.sh.
2222# Reject install programs that cannot install multiple files.
2223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2224$as_echo_n "checking for a BSD-compatible install... " >&6; }
2225if test -z "$INSTALL"; then
2226if ${ac_cv_path_install+:} false; then :
2227  $as_echo_n "(cached) " >&6
2228else
2229  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230for as_dir in $PATH
2231do
2232  IFS=$as_save_IFS
2233  test -z "$as_dir" && as_dir=.
2234    # Account for people who put trailing slashes in PATH elements.
2235case $as_dir/ in #((
2236  ./ | .// | /[cC]/* | \
2237  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2238  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2239  /usr/ucb/* ) ;;
2240  *)
2241    # OSF1 and SCO ODT 3.0 have their own names for install.
2242    # Don't use installbsd from OSF since it installs stuff as root
2243    # by default.
2244    for ac_prog in ginstall scoinst install; do
2245      for ac_exec_ext in '' $ac_executable_extensions; do
2246	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2247	  if test $ac_prog = install &&
2248	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2249	    # AIX install.  It has an incompatible calling convention.
2250	    :
2251	  elif test $ac_prog = install &&
2252	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2253	    # program-specific install script used by HP pwplus--don't use.
2254	    :
2255	  else
2256	    rm -rf conftest.one conftest.two conftest.dir
2257	    echo one > conftest.one
2258	    echo two > conftest.two
2259	    mkdir conftest.dir
2260	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2261	      test -s conftest.one && test -s conftest.two &&
2262	      test -s conftest.dir/conftest.one &&
2263	      test -s conftest.dir/conftest.two
2264	    then
2265	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2266	      break 3
2267	    fi
2268	  fi
2269	fi
2270      done
2271    done
2272    ;;
2273esac
2274
2275  done
2276IFS=$as_save_IFS
2277
2278rm -rf conftest.one conftest.two conftest.dir
2279
2280fi
2281  if test "${ac_cv_path_install+set}" = set; then
2282    INSTALL=$ac_cv_path_install
2283  else
2284    # As a last resort, use the slow shell script.  Don't cache a
2285    # value for INSTALL within a source directory, because that will
2286    # break other packages using the cache if that directory is
2287    # removed, or if the value is a relative name.
2288    INSTALL=$ac_install_sh
2289  fi
2290fi
2291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2292$as_echo "$INSTALL" >&6; }
2293
2294# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2295# It thinks the first close brace ends the variable substitution.
2296test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2297
2298test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2299
2300test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2301
2302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2303$as_echo_n "checking whether build environment is sane... " >&6; }
2304# Reject unsafe characters in $srcdir or the absolute working directory
2305# name.  Accept space and tab only in the latter.
2306am_lf='
2307'
2308case `pwd` in
2309  *[\\\"\#\$\&\'\`$am_lf]*)
2310    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2311esac
2312case $srcdir in
2313  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2314    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2315esac
2316
2317# Do 'set' in a subshell so we don't clobber the current shell's
2318# arguments.  Must try -L first in case configure is actually a
2319# symlink; some systems play weird games with the mod time of symlinks
2320# (eg FreeBSD returns the mod time of the symlink's containing
2321# directory).
2322if (
2323   am_has_slept=no
2324   for am_try in 1 2; do
2325     echo "timestamp, slept: $am_has_slept" > conftest.file
2326     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2327     if test "$*" = "X"; then
2328	# -L didn't work.
2329	set X `ls -t "$srcdir/configure" conftest.file`
2330     fi
2331     if test "$*" != "X $srcdir/configure conftest.file" \
2332	&& test "$*" != "X conftest.file $srcdir/configure"; then
2333
2334	# If neither matched, then we have a broken ls.  This can happen
2335	# if, for instance, CONFIG_SHELL is bash and it inherits a
2336	# broken ls alias from the environment.  This has actually
2337	# happened.  Such a system could not be considered "sane".
2338	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2339  alias in your environment" "$LINENO" 5
2340     fi
2341     if test "$2" = conftest.file || test $am_try -eq 2; then
2342       break
2343     fi
2344     # Just in case.
2345     sleep 1
2346     am_has_slept=yes
2347   done
2348   test "$2" = conftest.file
2349   )
2350then
2351   # Ok.
2352   :
2353else
2354   as_fn_error $? "newly created file is older than distributed files!
2355Check your system clock" "$LINENO" 5
2356fi
2357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2358$as_echo "yes" >&6; }
2359# If we didn't sleep, we still need to ensure time stamps of config.status and
2360# generated files are strictly newer.
2361am_sleep_pid=
2362if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2363  ( sleep 1 ) &
2364  am_sleep_pid=$!
2365fi
2366
2367rm -f conftest.file
2368
2369test "$program_prefix" != NONE &&
2370  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2371# Use a double $ so make ignores it.
2372test "$program_suffix" != NONE &&
2373  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2374# Double any \ or $.
2375# By default was `s,x,x', remove it if useless.
2376ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2377program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2378
2379# Expand $ac_aux_dir to an absolute path.
2380am_aux_dir=`cd "$ac_aux_dir" && pwd`
2381
2382if test x"${MISSING+set}" != xset; then
2383  case $am_aux_dir in
2384  *\ * | *\	*)
2385    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2386  *)
2387    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2388  esac
2389fi
2390# Use eval to expand $SHELL
2391if eval "$MISSING --is-lightweight"; then
2392  am_missing_run="$MISSING "
2393else
2394  am_missing_run=
2395  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2396$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2397fi
2398
2399if test x"${install_sh+set}" != xset; then
2400  case $am_aux_dir in
2401  *\ * | *\	*)
2402    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2403  *)
2404    install_sh="\${SHELL} $am_aux_dir/install-sh"
2405  esac
2406fi
2407
2408# Installed binaries are usually stripped using 'strip' when the user
2409# run "make install-strip".  However 'strip' might not be the right
2410# tool to use in cross-compilation environments, therefore Automake
2411# will honor the 'STRIP' environment variable to overrule this program.
2412if test "$cross_compiling" != no; then
2413  if test -n "$ac_tool_prefix"; then
2414  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2415set dummy ${ac_tool_prefix}strip; ac_word=$2
2416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2417$as_echo_n "checking for $ac_word... " >&6; }
2418if ${ac_cv_prog_STRIP+:} false; then :
2419  $as_echo_n "(cached) " >&6
2420else
2421  if test -n "$STRIP"; then
2422  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2423else
2424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425for as_dir in $PATH
2426do
2427  IFS=$as_save_IFS
2428  test -z "$as_dir" && as_dir=.
2429    for ac_exec_ext in '' $ac_executable_extensions; do
2430  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2431    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2432    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2433    break 2
2434  fi
2435done
2436  done
2437IFS=$as_save_IFS
2438
2439fi
2440fi
2441STRIP=$ac_cv_prog_STRIP
2442if test -n "$STRIP"; then
2443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2444$as_echo "$STRIP" >&6; }
2445else
2446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2447$as_echo "no" >&6; }
2448fi
2449
2450
2451fi
2452if test -z "$ac_cv_prog_STRIP"; then
2453  ac_ct_STRIP=$STRIP
2454  # Extract the first word of "strip", so it can be a program name with args.
2455set dummy strip; ac_word=$2
2456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2457$as_echo_n "checking for $ac_word... " >&6; }
2458if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2459  $as_echo_n "(cached) " >&6
2460else
2461  if test -n "$ac_ct_STRIP"; then
2462  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2463else
2464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465for as_dir in $PATH
2466do
2467  IFS=$as_save_IFS
2468  test -z "$as_dir" && as_dir=.
2469    for ac_exec_ext in '' $ac_executable_extensions; do
2470  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2471    ac_cv_prog_ac_ct_STRIP="strip"
2472    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2473    break 2
2474  fi
2475done
2476  done
2477IFS=$as_save_IFS
2478
2479fi
2480fi
2481ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2482if test -n "$ac_ct_STRIP"; then
2483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2484$as_echo "$ac_ct_STRIP" >&6; }
2485else
2486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2487$as_echo "no" >&6; }
2488fi
2489
2490  if test "x$ac_ct_STRIP" = x; then
2491    STRIP=":"
2492  else
2493    case $cross_compiling:$ac_tool_warned in
2494yes:)
2495{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2496$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2497ac_tool_warned=yes ;;
2498esac
2499    STRIP=$ac_ct_STRIP
2500  fi
2501else
2502  STRIP="$ac_cv_prog_STRIP"
2503fi
2504
2505fi
2506INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2507
2508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2509$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2510if test -z "$MKDIR_P"; then
2511  if ${ac_cv_path_mkdir+:} false; then :
2512  $as_echo_n "(cached) " >&6
2513else
2514  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2516do
2517  IFS=$as_save_IFS
2518  test -z "$as_dir" && as_dir=.
2519    for ac_prog in mkdir gmkdir; do
2520	 for ac_exec_ext in '' $ac_executable_extensions; do
2521	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2522	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2523	     'mkdir (GNU coreutils) '* | \
2524	     'mkdir (coreutils) '* | \
2525	     'mkdir (fileutils) '4.1*)
2526	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2527	       break 3;;
2528	   esac
2529	 done
2530       done
2531  done
2532IFS=$as_save_IFS
2533
2534fi
2535
2536  test -d ./--version && rmdir ./--version
2537  if test "${ac_cv_path_mkdir+set}" = set; then
2538    MKDIR_P="$ac_cv_path_mkdir -p"
2539  else
2540    # As a last resort, use the slow shell script.  Don't cache a
2541    # value for MKDIR_P within a source directory, because that will
2542    # break other packages using the cache if that directory is
2543    # removed, or if the value is a relative name.
2544    MKDIR_P="$ac_install_sh -d"
2545  fi
2546fi
2547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2548$as_echo "$MKDIR_P" >&6; }
2549
2550for ac_prog in gawk mawk nawk awk
2551do
2552  # Extract the first word of "$ac_prog", so it can be a program name with args.
2553set dummy $ac_prog; ac_word=$2
2554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2555$as_echo_n "checking for $ac_word... " >&6; }
2556if ${ac_cv_prog_AWK+:} false; then :
2557  $as_echo_n "(cached) " >&6
2558else
2559  if test -n "$AWK"; then
2560  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2561else
2562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563for as_dir in $PATH
2564do
2565  IFS=$as_save_IFS
2566  test -z "$as_dir" && as_dir=.
2567    for ac_exec_ext in '' $ac_executable_extensions; do
2568  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2569    ac_cv_prog_AWK="$ac_prog"
2570    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2571    break 2
2572  fi
2573done
2574  done
2575IFS=$as_save_IFS
2576
2577fi
2578fi
2579AWK=$ac_cv_prog_AWK
2580if test -n "$AWK"; then
2581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2582$as_echo "$AWK" >&6; }
2583else
2584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585$as_echo "no" >&6; }
2586fi
2587
2588
2589  test -n "$AWK" && break
2590done
2591
2592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2593$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2594set x ${MAKE-make}
2595ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2596if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2597  $as_echo_n "(cached) " >&6
2598else
2599  cat >conftest.make <<\_ACEOF
2600SHELL = /bin/sh
2601all:
2602	@echo '@@@%%%=$(MAKE)=@@@%%%'
2603_ACEOF
2604# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2605case `${MAKE-make} -f conftest.make 2>/dev/null` in
2606  *@@@%%%=?*=@@@%%%*)
2607    eval ac_cv_prog_make_${ac_make}_set=yes;;
2608  *)
2609    eval ac_cv_prog_make_${ac_make}_set=no;;
2610esac
2611rm -f conftest.make
2612fi
2613if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2615$as_echo "yes" >&6; }
2616  SET_MAKE=
2617else
2618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2619$as_echo "no" >&6; }
2620  SET_MAKE="MAKE=${MAKE-make}"
2621fi
2622
2623rm -rf .tst 2>/dev/null
2624mkdir .tst 2>/dev/null
2625if test -d .tst; then
2626  am__leading_dot=.
2627else
2628  am__leading_dot=_
2629fi
2630rmdir .tst 2>/dev/null
2631
2632# Check whether --enable-silent-rules was given.
2633if test "${enable_silent_rules+set}" = set; then :
2634  enableval=$enable_silent_rules;
2635fi
2636
2637case $enable_silent_rules in # (((
2638  yes) AM_DEFAULT_VERBOSITY=0;;
2639   no) AM_DEFAULT_VERBOSITY=1;;
2640    *) AM_DEFAULT_VERBOSITY=1;;
2641esac
2642am_make=${MAKE-make}
2643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2644$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2645if ${am_cv_make_support_nested_variables+:} false; then :
2646  $as_echo_n "(cached) " >&6
2647else
2648  if $as_echo 'TRUE=$(BAR$(V))
2649BAR0=false
2650BAR1=true
2651V=1
2652am__doit:
2653	@$(TRUE)
2654.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2655  am_cv_make_support_nested_variables=yes
2656else
2657  am_cv_make_support_nested_variables=no
2658fi
2659fi
2660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2661$as_echo "$am_cv_make_support_nested_variables" >&6; }
2662if test $am_cv_make_support_nested_variables = yes; then
2663    AM_V='$(V)'
2664  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2665else
2666  AM_V=$AM_DEFAULT_VERBOSITY
2667  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2668fi
2669AM_BACKSLASH='\'
2670
2671if test "`cd $srcdir && pwd`" != "`pwd`"; then
2672  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2673  # is not polluted with repeated "-I."
2674  am__isrc=' -I$(srcdir)'
2675  # test to see if srcdir already configured
2676  if test -f $srcdir/config.status; then
2677    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2678  fi
2679fi
2680
2681# test whether we have cygpath
2682if test -z "$CYGPATH_W"; then
2683  if (cygpath --version) >/dev/null 2>/dev/null; then
2684    CYGPATH_W='cygpath -w'
2685  else
2686    CYGPATH_W=echo
2687  fi
2688fi
2689
2690
2691# Define the identity of the package.
2692 PACKAGE='makedepend'
2693 VERSION='1.0.6'
2694
2695
2696cat >>confdefs.h <<_ACEOF
2697#define PACKAGE "$PACKAGE"
2698_ACEOF
2699
2700
2701cat >>confdefs.h <<_ACEOF
2702#define VERSION "$VERSION"
2703_ACEOF
2704
2705# Some tools Automake needs.
2706
2707ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2708
2709
2710AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2711
2712
2713AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2714
2715
2716AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2717
2718
2719MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2720
2721# For better backward compatibility.  To be removed once Automake 1.9.x
2722# dies out for good.  For more background, see:
2723# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2724# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2725mkdir_p='$(MKDIR_P)'
2726
2727# We need awk for the "check" target (and possibly the TAP driver).  The
2728# system "awk" is bad on some platforms.
2729# Always define AMTAR for backward compatibility.  Yes, it's still used
2730# in the wild :-(  We should find a proper way to deprecate it ...
2731AMTAR='$${TAR-tar}'
2732
2733
2734# We'll loop over all known methods to create a tar archive until one works.
2735_am_tools='gnutar  pax cpio none'
2736
2737am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2738
2739
2740
2741
2742
2743
2744# POSIX will say in a future version that running "rm -f" with no argument
2745# is OK; and we want to be able to make that assumption in our Makefile
2746# recipes.  So use an aggressive probe to check that the usage we want is
2747# actually supported "in the wild" to an acceptable degree.
2748# See automake bug#10828.
2749# To make any issue more visible, cause the running configure to be aborted
2750# by default if the 'rm' program in use doesn't match our expectations; the
2751# user can still override this though.
2752if rm -f && rm -fr && rm -rf; then : OK; else
2753  cat >&2 <<'END'
2754Oops!
2755
2756Your 'rm' program seems unable to run without file operands specified
2757on the command line, even when the '-f' option is present.  This is contrary
2758to the behaviour of most rm programs out there, and not conforming with
2759the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2760
2761Please tell bug-automake@gnu.org about your system, including the value
2762of your $PATH and any error possibly output before this message.  This
2763can help us improve future automake versions.
2764
2765END
2766  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2767    echo 'Configuration will proceed anyway, since you have set the' >&2
2768    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2769    echo >&2
2770  else
2771    cat >&2 <<'END'
2772Aborting the configuration process, to ensure you take notice of the issue.
2773
2774You can download and install GNU coreutils to get an 'rm' implementation
2775that behaves properly: <http://www.gnu.org/software/coreutils/>.
2776
2777If you want to complete the configuration process using your problematic
2778'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2779to "yes", and re-run configure.
2780
2781END
2782    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2783  fi
2784fi
2785
2786
2787# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800DEPDIR="${am__leading_dot}deps"
2801
2802ac_config_commands="$ac_config_commands depfiles"
2803
2804
2805am_make=${MAKE-make}
2806cat > confinc << 'END'
2807am__doit:
2808	@echo this is the am__doit target
2809.PHONY: am__doit
2810END
2811# If we don't find an include directive, just comment out the code.
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2813$as_echo_n "checking for style of include used by $am_make... " >&6; }
2814am__include="#"
2815am__quote=
2816_am_result=none
2817# First try GNU make style include.
2818echo "include confinc" > confmf
2819# Ignore all kinds of additional output from 'make'.
2820case `$am_make -s -f confmf 2> /dev/null` in #(
2821*the\ am__doit\ target*)
2822  am__include=include
2823  am__quote=
2824  _am_result=GNU
2825  ;;
2826esac
2827# Now try BSD make style include.
2828if test "$am__include" = "#"; then
2829   echo '.include "confinc"' > confmf
2830   case `$am_make -s -f confmf 2> /dev/null` in #(
2831   *the\ am__doit\ target*)
2832     am__include=.include
2833     am__quote="\""
2834     _am_result=BSD
2835     ;;
2836   esac
2837fi
2838
2839
2840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2841$as_echo "$_am_result" >&6; }
2842rm -f confinc confmf
2843
2844# Check whether --enable-dependency-tracking was given.
2845if test "${enable_dependency_tracking+set}" = set; then :
2846  enableval=$enable_dependency_tracking;
2847fi
2848
2849if test "x$enable_dependency_tracking" != xno; then
2850  am_depcomp="$ac_aux_dir/depcomp"
2851  AMDEPBACKSLASH='\'
2852  am__nodep='_no'
2853fi
2854 if test "x$enable_dependency_tracking" != xno; then
2855  AMDEP_TRUE=
2856  AMDEP_FALSE='#'
2857else
2858  AMDEP_TRUE='#'
2859  AMDEP_FALSE=
2860fi
2861
2862
2863ac_ext=c
2864ac_cpp='$CPP $CPPFLAGS'
2865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867ac_compiler_gnu=$ac_cv_c_compiler_gnu
2868if test -n "$ac_tool_prefix"; then
2869  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2870set dummy ${ac_tool_prefix}gcc; ac_word=$2
2871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872$as_echo_n "checking for $ac_word... " >&6; }
2873if ${ac_cv_prog_CC+:} false; then :
2874  $as_echo_n "(cached) " >&6
2875else
2876  if test -n "$CC"; then
2877  ac_cv_prog_CC="$CC" # Let the user override the test.
2878else
2879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880for as_dir in $PATH
2881do
2882  IFS=$as_save_IFS
2883  test -z "$as_dir" && as_dir=.
2884    for ac_exec_ext in '' $ac_executable_extensions; do
2885  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2887    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888    break 2
2889  fi
2890done
2891  done
2892IFS=$as_save_IFS
2893
2894fi
2895fi
2896CC=$ac_cv_prog_CC
2897if test -n "$CC"; then
2898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899$as_echo "$CC" >&6; }
2900else
2901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902$as_echo "no" >&6; }
2903fi
2904
2905
2906fi
2907if test -z "$ac_cv_prog_CC"; then
2908  ac_ct_CC=$CC
2909  # Extract the first word of "gcc", so it can be a program name with args.
2910set dummy gcc; ac_word=$2
2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912$as_echo_n "checking for $ac_word... " >&6; }
2913if ${ac_cv_prog_ac_ct_CC+:} false; then :
2914  $as_echo_n "(cached) " >&6
2915else
2916  if test -n "$ac_ct_CC"; then
2917  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2918else
2919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920for as_dir in $PATH
2921do
2922  IFS=$as_save_IFS
2923  test -z "$as_dir" && as_dir=.
2924    for ac_exec_ext in '' $ac_executable_extensions; do
2925  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926    ac_cv_prog_ac_ct_CC="gcc"
2927    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928    break 2
2929  fi
2930done
2931  done
2932IFS=$as_save_IFS
2933
2934fi
2935fi
2936ac_ct_CC=$ac_cv_prog_ac_ct_CC
2937if test -n "$ac_ct_CC"; then
2938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2939$as_echo "$ac_ct_CC" >&6; }
2940else
2941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942$as_echo "no" >&6; }
2943fi
2944
2945  if test "x$ac_ct_CC" = x; then
2946    CC=""
2947  else
2948    case $cross_compiling:$ac_tool_warned in
2949yes:)
2950{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2951$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2952ac_tool_warned=yes ;;
2953esac
2954    CC=$ac_ct_CC
2955  fi
2956else
2957  CC="$ac_cv_prog_CC"
2958fi
2959
2960if test -z "$CC"; then
2961          if test -n "$ac_tool_prefix"; then
2962    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2963set dummy ${ac_tool_prefix}cc; ac_word=$2
2964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965$as_echo_n "checking for $ac_word... " >&6; }
2966if ${ac_cv_prog_CC+:} false; then :
2967  $as_echo_n "(cached) " >&6
2968else
2969  if test -n "$CC"; then
2970  ac_cv_prog_CC="$CC" # Let the user override the test.
2971else
2972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973for as_dir in $PATH
2974do
2975  IFS=$as_save_IFS
2976  test -z "$as_dir" && as_dir=.
2977    for ac_exec_ext in '' $ac_executable_extensions; do
2978  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979    ac_cv_prog_CC="${ac_tool_prefix}cc"
2980    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981    break 2
2982  fi
2983done
2984  done
2985IFS=$as_save_IFS
2986
2987fi
2988fi
2989CC=$ac_cv_prog_CC
2990if test -n "$CC"; then
2991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2992$as_echo "$CC" >&6; }
2993else
2994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995$as_echo "no" >&6; }
2996fi
2997
2998
2999  fi
3000fi
3001if test -z "$CC"; then
3002  # Extract the first word of "cc", so it can be a program name with args.
3003set dummy cc; ac_word=$2
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005$as_echo_n "checking for $ac_word... " >&6; }
3006if ${ac_cv_prog_CC+:} false; then :
3007  $as_echo_n "(cached) " >&6
3008else
3009  if test -n "$CC"; then
3010  ac_cv_prog_CC="$CC" # Let the user override the test.
3011else
3012  ac_prog_rejected=no
3013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014for as_dir in $PATH
3015do
3016  IFS=$as_save_IFS
3017  test -z "$as_dir" && as_dir=.
3018    for ac_exec_ext in '' $ac_executable_extensions; do
3019  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3020    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3021       ac_prog_rejected=yes
3022       continue
3023     fi
3024    ac_cv_prog_CC="cc"
3025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026    break 2
3027  fi
3028done
3029  done
3030IFS=$as_save_IFS
3031
3032if test $ac_prog_rejected = yes; then
3033  # We found a bogon in the path, so make sure we never use it.
3034  set dummy $ac_cv_prog_CC
3035  shift
3036  if test $# != 0; then
3037    # We chose a different compiler from the bogus one.
3038    # However, it has the same basename, so the bogon will be chosen
3039    # first if we set CC to just the basename; use the full file name.
3040    shift
3041    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3042  fi
3043fi
3044fi
3045fi
3046CC=$ac_cv_prog_CC
3047if test -n "$CC"; then
3048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049$as_echo "$CC" >&6; }
3050else
3051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052$as_echo "no" >&6; }
3053fi
3054
3055
3056fi
3057if test -z "$CC"; then
3058  if test -n "$ac_tool_prefix"; then
3059  for ac_prog in cl.exe
3060  do
3061    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3062set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064$as_echo_n "checking for $ac_word... " >&6; }
3065if ${ac_cv_prog_CC+:} false; then :
3066  $as_echo_n "(cached) " >&6
3067else
3068  if test -n "$CC"; then
3069  ac_cv_prog_CC="$CC" # Let the user override the test.
3070else
3071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072for as_dir in $PATH
3073do
3074  IFS=$as_save_IFS
3075  test -z "$as_dir" && as_dir=.
3076    for ac_exec_ext in '' $ac_executable_extensions; do
3077  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3079    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080    break 2
3081  fi
3082done
3083  done
3084IFS=$as_save_IFS
3085
3086fi
3087fi
3088CC=$ac_cv_prog_CC
3089if test -n "$CC"; then
3090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091$as_echo "$CC" >&6; }
3092else
3093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094$as_echo "no" >&6; }
3095fi
3096
3097
3098    test -n "$CC" && break
3099  done
3100fi
3101if test -z "$CC"; then
3102  ac_ct_CC=$CC
3103  for ac_prog in cl.exe
3104do
3105  # Extract the first word of "$ac_prog", so it can be a program name with args.
3106set dummy $ac_prog; ac_word=$2
3107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108$as_echo_n "checking for $ac_word... " >&6; }
3109if ${ac_cv_prog_ac_ct_CC+:} false; then :
3110  $as_echo_n "(cached) " >&6
3111else
3112  if test -n "$ac_ct_CC"; then
3113  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3114else
3115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116for as_dir in $PATH
3117do
3118  IFS=$as_save_IFS
3119  test -z "$as_dir" && as_dir=.
3120    for ac_exec_ext in '' $ac_executable_extensions; do
3121  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122    ac_cv_prog_ac_ct_CC="$ac_prog"
3123    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124    break 2
3125  fi
3126done
3127  done
3128IFS=$as_save_IFS
3129
3130fi
3131fi
3132ac_ct_CC=$ac_cv_prog_ac_ct_CC
3133if test -n "$ac_ct_CC"; then
3134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3135$as_echo "$ac_ct_CC" >&6; }
3136else
3137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138$as_echo "no" >&6; }
3139fi
3140
3141
3142  test -n "$ac_ct_CC" && break
3143done
3144
3145  if test "x$ac_ct_CC" = x; then
3146    CC=""
3147  else
3148    case $cross_compiling:$ac_tool_warned in
3149yes:)
3150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3152ac_tool_warned=yes ;;
3153esac
3154    CC=$ac_ct_CC
3155  fi
3156fi
3157
3158fi
3159
3160
3161test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3162$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3163as_fn_error $? "no acceptable C compiler found in \$PATH
3164See \`config.log' for more details" "$LINENO" 5; }
3165
3166# Provide some information about the compiler.
3167$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3168set X $ac_compile
3169ac_compiler=$2
3170for ac_option in --version -v -V -qversion; do
3171  { { ac_try="$ac_compiler $ac_option >&5"
3172case "(($ac_try" in
3173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174  *) ac_try_echo=$ac_try;;
3175esac
3176eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177$as_echo "$ac_try_echo"; } >&5
3178  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3179  ac_status=$?
3180  if test -s conftest.err; then
3181    sed '10a\
3182... rest of stderr output deleted ...
3183         10q' conftest.err >conftest.er1
3184    cat conftest.er1 >&5
3185  fi
3186  rm -f conftest.er1 conftest.err
3187  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188  test $ac_status = 0; }
3189done
3190
3191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192/* end confdefs.h.  */
3193
3194int
3195main ()
3196{
3197
3198  ;
3199  return 0;
3200}
3201_ACEOF
3202ac_clean_files_save=$ac_clean_files
3203ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3204# Try to create an executable without -o first, disregard a.out.
3205# It will help us diagnose broken compilers, and finding out an intuition
3206# of exeext.
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3208$as_echo_n "checking whether the C compiler works... " >&6; }
3209ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3210
3211# The possible output files:
3212ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3213
3214ac_rmfiles=
3215for ac_file in $ac_files
3216do
3217  case $ac_file in
3218    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3219    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3220  esac
3221done
3222rm -f $ac_rmfiles
3223
3224if { { ac_try="$ac_link_default"
3225case "(($ac_try" in
3226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227  *) ac_try_echo=$ac_try;;
3228esac
3229eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230$as_echo "$ac_try_echo"; } >&5
3231  (eval "$ac_link_default") 2>&5
3232  ac_status=$?
3233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234  test $ac_status = 0; }; then :
3235  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3236# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3237# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3238# so that the user can short-circuit this test for compilers unknown to
3239# Autoconf.
3240for ac_file in $ac_files ''
3241do
3242  test -f "$ac_file" || continue
3243  case $ac_file in
3244    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3245	;;
3246    [ab].out )
3247	# We found the default executable, but exeext='' is most
3248	# certainly right.
3249	break;;
3250    *.* )
3251	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3252	then :; else
3253	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3254	fi
3255	# We set ac_cv_exeext here because the later test for it is not
3256	# safe: cross compilers may not add the suffix if given an `-o'
3257	# argument, so we may need to know it at that point already.
3258	# Even if this section looks crufty: it has the advantage of
3259	# actually working.
3260	break;;
3261    * )
3262	break;;
3263  esac
3264done
3265test "$ac_cv_exeext" = no && ac_cv_exeext=
3266
3267else
3268  ac_file=''
3269fi
3270if test -z "$ac_file"; then :
3271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272$as_echo "no" >&6; }
3273$as_echo "$as_me: failed program was:" >&5
3274sed 's/^/| /' conftest.$ac_ext >&5
3275
3276{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3278as_fn_error 77 "C compiler cannot create executables
3279See \`config.log' for more details" "$LINENO" 5; }
3280else
3281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3282$as_echo "yes" >&6; }
3283fi
3284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3285$as_echo_n "checking for C compiler default output file name... " >&6; }
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3287$as_echo "$ac_file" >&6; }
3288ac_exeext=$ac_cv_exeext
3289
3290rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3291ac_clean_files=$ac_clean_files_save
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3293$as_echo_n "checking for suffix of executables... " >&6; }
3294if { { ac_try="$ac_link"
3295case "(($ac_try" in
3296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297  *) ac_try_echo=$ac_try;;
3298esac
3299eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300$as_echo "$ac_try_echo"; } >&5
3301  (eval "$ac_link") 2>&5
3302  ac_status=$?
3303  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304  test $ac_status = 0; }; then :
3305  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3306# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3307# work properly (i.e., refer to `conftest.exe'), while it won't with
3308# `rm'.
3309for ac_file in conftest.exe conftest conftest.*; do
3310  test -f "$ac_file" || continue
3311  case $ac_file in
3312    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3313    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3314	  break;;
3315    * ) break;;
3316  esac
3317done
3318else
3319  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3322See \`config.log' for more details" "$LINENO" 5; }
3323fi
3324rm -f conftest conftest$ac_cv_exeext
3325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3326$as_echo "$ac_cv_exeext" >&6; }
3327
3328rm -f conftest.$ac_ext
3329EXEEXT=$ac_cv_exeext
3330ac_exeext=$EXEEXT
3331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332/* end confdefs.h.  */
3333#include <stdio.h>
3334int
3335main ()
3336{
3337FILE *f = fopen ("conftest.out", "w");
3338 return ferror (f) || fclose (f) != 0;
3339
3340  ;
3341  return 0;
3342}
3343_ACEOF
3344ac_clean_files="$ac_clean_files conftest.out"
3345# Check that the compiler produces executables we can run.  If not, either
3346# the compiler is broken, or we cross compile.
3347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3348$as_echo_n "checking whether we are cross compiling... " >&6; }
3349if test "$cross_compiling" != yes; then
3350  { { ac_try="$ac_link"
3351case "(($ac_try" in
3352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353  *) ac_try_echo=$ac_try;;
3354esac
3355eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3356$as_echo "$ac_try_echo"; } >&5
3357  (eval "$ac_link") 2>&5
3358  ac_status=$?
3359  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360  test $ac_status = 0; }
3361  if { ac_try='./conftest$ac_cv_exeext'
3362  { { case "(($ac_try" in
3363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364  *) ac_try_echo=$ac_try;;
3365esac
3366eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367$as_echo "$ac_try_echo"; } >&5
3368  (eval "$ac_try") 2>&5
3369  ac_status=$?
3370  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371  test $ac_status = 0; }; }; then
3372    cross_compiling=no
3373  else
3374    if test "$cross_compiling" = maybe; then
3375	cross_compiling=yes
3376    else
3377	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3378$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379as_fn_error $? "cannot run C compiled programs.
3380If you meant to cross compile, use \`--host'.
3381See \`config.log' for more details" "$LINENO" 5; }
3382    fi
3383  fi
3384fi
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3386$as_echo "$cross_compiling" >&6; }
3387
3388rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3389ac_clean_files=$ac_clean_files_save
3390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3391$as_echo_n "checking for suffix of object files... " >&6; }
3392if ${ac_cv_objext+:} false; then :
3393  $as_echo_n "(cached) " >&6
3394else
3395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396/* end confdefs.h.  */
3397
3398int
3399main ()
3400{
3401
3402  ;
3403  return 0;
3404}
3405_ACEOF
3406rm -f conftest.o conftest.obj
3407if { { ac_try="$ac_compile"
3408case "(($ac_try" in
3409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410  *) ac_try_echo=$ac_try;;
3411esac
3412eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413$as_echo "$ac_try_echo"; } >&5
3414  (eval "$ac_compile") 2>&5
3415  ac_status=$?
3416  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417  test $ac_status = 0; }; then :
3418  for ac_file in conftest.o conftest.obj conftest.*; do
3419  test -f "$ac_file" || continue;
3420  case $ac_file in
3421    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3422    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3423       break;;
3424  esac
3425done
3426else
3427  $as_echo "$as_me: failed program was:" >&5
3428sed 's/^/| /' conftest.$ac_ext >&5
3429
3430{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432as_fn_error $? "cannot compute suffix of object files: cannot compile
3433See \`config.log' for more details" "$LINENO" 5; }
3434fi
3435rm -f conftest.$ac_cv_objext conftest.$ac_ext
3436fi
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3438$as_echo "$ac_cv_objext" >&6; }
3439OBJEXT=$ac_cv_objext
3440ac_objext=$OBJEXT
3441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3442$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3443if ${ac_cv_c_compiler_gnu+:} false; then :
3444  $as_echo_n "(cached) " >&6
3445else
3446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447/* end confdefs.h.  */
3448
3449int
3450main ()
3451{
3452#ifndef __GNUC__
3453       choke me
3454#endif
3455
3456  ;
3457  return 0;
3458}
3459_ACEOF
3460if ac_fn_c_try_compile "$LINENO"; then :
3461  ac_compiler_gnu=yes
3462else
3463  ac_compiler_gnu=no
3464fi
3465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3466ac_cv_c_compiler_gnu=$ac_compiler_gnu
3467
3468fi
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3470$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3471if test $ac_compiler_gnu = yes; then
3472  GCC=yes
3473else
3474  GCC=
3475fi
3476ac_test_CFLAGS=${CFLAGS+set}
3477ac_save_CFLAGS=$CFLAGS
3478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3479$as_echo_n "checking whether $CC accepts -g... " >&6; }
3480if ${ac_cv_prog_cc_g+:} false; then :
3481  $as_echo_n "(cached) " >&6
3482else
3483  ac_save_c_werror_flag=$ac_c_werror_flag
3484   ac_c_werror_flag=yes
3485   ac_cv_prog_cc_g=no
3486   CFLAGS="-g"
3487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488/* end confdefs.h.  */
3489
3490int
3491main ()
3492{
3493
3494  ;
3495  return 0;
3496}
3497_ACEOF
3498if ac_fn_c_try_compile "$LINENO"; then :
3499  ac_cv_prog_cc_g=yes
3500else
3501  CFLAGS=""
3502      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503/* end confdefs.h.  */
3504
3505int
3506main ()
3507{
3508
3509  ;
3510  return 0;
3511}
3512_ACEOF
3513if ac_fn_c_try_compile "$LINENO"; then :
3514
3515else
3516  ac_c_werror_flag=$ac_save_c_werror_flag
3517	 CFLAGS="-g"
3518	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519/* end confdefs.h.  */
3520
3521int
3522main ()
3523{
3524
3525  ;
3526  return 0;
3527}
3528_ACEOF
3529if ac_fn_c_try_compile "$LINENO"; then :
3530  ac_cv_prog_cc_g=yes
3531fi
3532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3533fi
3534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535fi
3536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537   ac_c_werror_flag=$ac_save_c_werror_flag
3538fi
3539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3540$as_echo "$ac_cv_prog_cc_g" >&6; }
3541if test "$ac_test_CFLAGS" = set; then
3542  CFLAGS=$ac_save_CFLAGS
3543elif test $ac_cv_prog_cc_g = yes; then
3544  if test "$GCC" = yes; then
3545    CFLAGS="-g -O2"
3546  else
3547    CFLAGS="-g"
3548  fi
3549else
3550  if test "$GCC" = yes; then
3551    CFLAGS="-O2"
3552  else
3553    CFLAGS=
3554  fi
3555fi
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3557$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3558if ${ac_cv_prog_cc_c89+:} false; then :
3559  $as_echo_n "(cached) " >&6
3560else
3561  ac_cv_prog_cc_c89=no
3562ac_save_CC=$CC
3563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564/* end confdefs.h.  */
3565#include <stdarg.h>
3566#include <stdio.h>
3567struct stat;
3568/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3569struct buf { int x; };
3570FILE * (*rcsopen) (struct buf *, struct stat *, int);
3571static char *e (p, i)
3572     char **p;
3573     int i;
3574{
3575  return p[i];
3576}
3577static char *f (char * (*g) (char **, int), char **p, ...)
3578{
3579  char *s;
3580  va_list v;
3581  va_start (v,p);
3582  s = g (p, va_arg (v,int));
3583  va_end (v);
3584  return s;
3585}
3586
3587/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3588   function prototypes and stuff, but not '\xHH' hex character constants.
3589   These don't provoke an error unfortunately, instead are silently treated
3590   as 'x'.  The following induces an error, until -std is added to get
3591   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3592   array size at least.  It's necessary to write '\x00'==0 to get something
3593   that's true only with -std.  */
3594int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3595
3596/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3597   inside strings and character constants.  */
3598#define FOO(x) 'x'
3599int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3600
3601int test (int i, double x);
3602struct s1 {int (*f) (int a);};
3603struct s2 {int (*f) (double a);};
3604int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3605int argc;
3606char **argv;
3607int
3608main ()
3609{
3610return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3611  ;
3612  return 0;
3613}
3614_ACEOF
3615for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3616	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3617do
3618  CC="$ac_save_CC $ac_arg"
3619  if ac_fn_c_try_compile "$LINENO"; then :
3620  ac_cv_prog_cc_c89=$ac_arg
3621fi
3622rm -f core conftest.err conftest.$ac_objext
3623  test "x$ac_cv_prog_cc_c89" != "xno" && break
3624done
3625rm -f conftest.$ac_ext
3626CC=$ac_save_CC
3627
3628fi
3629# AC_CACHE_VAL
3630case "x$ac_cv_prog_cc_c89" in
3631  x)
3632    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3633$as_echo "none needed" >&6; } ;;
3634  xno)
3635    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3636$as_echo "unsupported" >&6; } ;;
3637  *)
3638    CC="$CC $ac_cv_prog_cc_c89"
3639    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3640$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3641esac
3642if test "x$ac_cv_prog_cc_c89" != xno; then :
3643
3644fi
3645
3646ac_ext=c
3647ac_cpp='$CPP $CPPFLAGS'
3648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651
3652ac_ext=c
3653ac_cpp='$CPP $CPPFLAGS'
3654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3656ac_compiler_gnu=$ac_cv_c_compiler_gnu
3657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3658$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3659if ${am_cv_prog_cc_c_o+:} false; then :
3660  $as_echo_n "(cached) " >&6
3661else
3662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663/* end confdefs.h.  */
3664
3665int
3666main ()
3667{
3668
3669  ;
3670  return 0;
3671}
3672_ACEOF
3673  # Make sure it works both with $CC and with simple cc.
3674  # Following AC_PROG_CC_C_O, we do the test twice because some
3675  # compilers refuse to overwrite an existing .o file with -o,
3676  # though they will create one.
3677  am_cv_prog_cc_c_o=yes
3678  for am_i in 1 2; do
3679    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3680   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3681   ac_status=$?
3682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683   (exit $ac_status); } \
3684         && test -f conftest2.$ac_objext; then
3685      : OK
3686    else
3687      am_cv_prog_cc_c_o=no
3688      break
3689    fi
3690  done
3691  rm -f core conftest*
3692  unset am_i
3693fi
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3695$as_echo "$am_cv_prog_cc_c_o" >&6; }
3696if test "$am_cv_prog_cc_c_o" != yes; then
3697   # Losing compiler, so override with the script.
3698   # FIXME: It is wrong to rewrite CC.
3699   # But if we don't then we get into trouble of one sort or another.
3700   # A longer-term fix would be to have automake use am__CC in this case,
3701   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3702   CC="$am_aux_dir/compile $CC"
3703fi
3704ac_ext=c
3705ac_cpp='$CPP $CPPFLAGS'
3706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708ac_compiler_gnu=$ac_cv_c_compiler_gnu
3709
3710
3711depcc="$CC"   am_compiler_list=
3712
3713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3714$as_echo_n "checking dependency style of $depcc... " >&6; }
3715if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3716  $as_echo_n "(cached) " >&6
3717else
3718  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3719  # We make a subdir and do the tests there.  Otherwise we can end up
3720  # making bogus files that we don't know about and never remove.  For
3721  # instance it was reported that on HP-UX the gcc test will end up
3722  # making a dummy file named 'D' -- because '-MD' means "put the output
3723  # in D".
3724  rm -rf conftest.dir
3725  mkdir conftest.dir
3726  # Copy depcomp to subdir because otherwise we won't find it if we're
3727  # using a relative directory.
3728  cp "$am_depcomp" conftest.dir
3729  cd conftest.dir
3730  # We will build objects and dependencies in a subdirectory because
3731  # it helps to detect inapplicable dependency modes.  For instance
3732  # both Tru64's cc and ICC support -MD to output dependencies as a
3733  # side effect of compilation, but ICC will put the dependencies in
3734  # the current directory while Tru64 will put them in the object
3735  # directory.
3736  mkdir sub
3737
3738  am_cv_CC_dependencies_compiler_type=none
3739  if test "$am_compiler_list" = ""; then
3740     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3741  fi
3742  am__universal=false
3743  case " $depcc " in #(
3744     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3745     esac
3746
3747  for depmode in $am_compiler_list; do
3748    # Setup a source with many dependencies, because some compilers
3749    # like to wrap large dependency lists on column 80 (with \), and
3750    # we should not choose a depcomp mode which is confused by this.
3751    #
3752    # We need to recreate these files for each test, as the compiler may
3753    # overwrite some of them when testing with obscure command lines.
3754    # This happens at least with the AIX C compiler.
3755    : > sub/conftest.c
3756    for i in 1 2 3 4 5 6; do
3757      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3758      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3759      # Solaris 10 /bin/sh.
3760      echo '/* dummy */' > sub/conftst$i.h
3761    done
3762    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3763
3764    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3765    # mode.  It turns out that the SunPro C++ compiler does not properly
3766    # handle '-M -o', and we need to detect this.  Also, some Intel
3767    # versions had trouble with output in subdirs.
3768    am__obj=sub/conftest.${OBJEXT-o}
3769    am__minus_obj="-o $am__obj"
3770    case $depmode in
3771    gcc)
3772      # This depmode causes a compiler race in universal mode.
3773      test "$am__universal" = false || continue
3774      ;;
3775    nosideeffect)
3776      # After this tag, mechanisms are not by side-effect, so they'll
3777      # only be used when explicitly requested.
3778      if test "x$enable_dependency_tracking" = xyes; then
3779	continue
3780      else
3781	break
3782      fi
3783      ;;
3784    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3785      # This compiler won't grok '-c -o', but also, the minuso test has
3786      # not run yet.  These depmodes are late enough in the game, and
3787      # so weak that their functioning should not be impacted.
3788      am__obj=conftest.${OBJEXT-o}
3789      am__minus_obj=
3790      ;;
3791    none) break ;;
3792    esac
3793    if depmode=$depmode \
3794       source=sub/conftest.c object=$am__obj \
3795       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3796       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3797         >/dev/null 2>conftest.err &&
3798       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3799       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3800       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3801       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3802      # icc doesn't choke on unknown options, it will just issue warnings
3803      # or remarks (even with -Werror).  So we grep stderr for any message
3804      # that says an option was ignored or not supported.
3805      # When given -MP, icc 7.0 and 7.1 complain thusly:
3806      #   icc: Command line warning: ignoring option '-M'; no argument required
3807      # The diagnosis changed in icc 8.0:
3808      #   icc: Command line remark: option '-MP' not supported
3809      if (grep 'ignoring option' conftest.err ||
3810          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3811        am_cv_CC_dependencies_compiler_type=$depmode
3812        break
3813      fi
3814    fi
3815  done
3816
3817  cd ..
3818  rm -rf conftest.dir
3819else
3820  am_cv_CC_dependencies_compiler_type=none
3821fi
3822
3823fi
3824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3825$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3826CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3827
3828 if
3829  test "x$enable_dependency_tracking" != xno \
3830  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3831  am__fastdepCC_TRUE=
3832  am__fastdepCC_FALSE='#'
3833else
3834  am__fastdepCC_TRUE='#'
3835  am__fastdepCC_FALSE=
3836fi
3837
3838
3839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3840$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3841if ${ac_cv_prog_cc_c99+:} false; then :
3842  $as_echo_n "(cached) " >&6
3843else
3844  ac_cv_prog_cc_c99=no
3845ac_save_CC=$CC
3846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847/* end confdefs.h.  */
3848#include <stdarg.h>
3849#include <stdbool.h>
3850#include <stdlib.h>
3851#include <wchar.h>
3852#include <stdio.h>
3853
3854// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3855#define debug(...) fprintf (stderr, __VA_ARGS__)
3856#define showlist(...) puts (#__VA_ARGS__)
3857#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3858static void
3859test_varargs_macros (void)
3860{
3861  int x = 1234;
3862  int y = 5678;
3863  debug ("Flag");
3864  debug ("X = %d\n", x);
3865  showlist (The first, second, and third items.);
3866  report (x>y, "x is %d but y is %d", x, y);
3867}
3868
3869// Check long long types.
3870#define BIG64 18446744073709551615ull
3871#define BIG32 4294967295ul
3872#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3873#if !BIG_OK
3874  your preprocessor is broken;
3875#endif
3876#if BIG_OK
3877#else
3878  your preprocessor is broken;
3879#endif
3880static long long int bignum = -9223372036854775807LL;
3881static unsigned long long int ubignum = BIG64;
3882
3883struct incomplete_array
3884{
3885  int datasize;
3886  double data[];
3887};
3888
3889struct named_init {
3890  int number;
3891  const wchar_t *name;
3892  double average;
3893};
3894
3895typedef const char *ccp;
3896
3897static inline int
3898test_restrict (ccp restrict text)
3899{
3900  // See if C++-style comments work.
3901  // Iterate through items via the restricted pointer.
3902  // Also check for declarations in for loops.
3903  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3904    continue;
3905  return 0;
3906}
3907
3908// Check varargs and va_copy.
3909static void
3910test_varargs (const char *format, ...)
3911{
3912  va_list args;
3913  va_start (args, format);
3914  va_list args_copy;
3915  va_copy (args_copy, args);
3916
3917  const char *str;
3918  int number;
3919  float fnumber;
3920
3921  while (*format)
3922    {
3923      switch (*format++)
3924	{
3925	case 's': // string
3926	  str = va_arg (args_copy, const char *);
3927	  break;
3928	case 'd': // int
3929	  number = va_arg (args_copy, int);
3930	  break;
3931	case 'f': // float
3932	  fnumber = va_arg (args_copy, double);
3933	  break;
3934	default:
3935	  break;
3936	}
3937    }
3938  va_end (args_copy);
3939  va_end (args);
3940}
3941
3942int
3943main ()
3944{
3945
3946  // Check bool.
3947  _Bool success = false;
3948
3949  // Check restrict.
3950  if (test_restrict ("String literal") == 0)
3951    success = true;
3952  char *restrict newvar = "Another string";
3953
3954  // Check varargs.
3955  test_varargs ("s, d' f .", "string", 65, 34.234);
3956  test_varargs_macros ();
3957
3958  // Check flexible array members.
3959  struct incomplete_array *ia =
3960    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3961  ia->datasize = 10;
3962  for (int i = 0; i < ia->datasize; ++i)
3963    ia->data[i] = i * 1.234;
3964
3965  // Check named initializers.
3966  struct named_init ni = {
3967    .number = 34,
3968    .name = L"Test wide string",
3969    .average = 543.34343,
3970  };
3971
3972  ni.number = 58;
3973
3974  int dynamic_array[ni.number];
3975  dynamic_array[ni.number - 1] = 543;
3976
3977  // work around unused variable warnings
3978  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3979	  || dynamic_array[ni.number - 1] != 543);
3980
3981  ;
3982  return 0;
3983}
3984_ACEOF
3985for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3986do
3987  CC="$ac_save_CC $ac_arg"
3988  if ac_fn_c_try_compile "$LINENO"; then :
3989  ac_cv_prog_cc_c99=$ac_arg
3990fi
3991rm -f core conftest.err conftest.$ac_objext
3992  test "x$ac_cv_prog_cc_c99" != "xno" && break
3993done
3994rm -f conftest.$ac_ext
3995CC=$ac_save_CC
3996
3997fi
3998# AC_CACHE_VAL
3999case "x$ac_cv_prog_cc_c99" in
4000  x)
4001    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4002$as_echo "none needed" >&6; } ;;
4003  xno)
4004    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4005$as_echo "unsupported" >&6; } ;;
4006  *)
4007    CC="$CC $ac_cv_prog_cc_c99"
4008    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4009$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4010esac
4011if test "x$ac_cv_prog_cc_c99" != xno; then :
4012
4013fi
4014
4015
4016
4017ac_ext=c
4018ac_cpp='$CPP $CPPFLAGS'
4019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4021ac_compiler_gnu=$ac_cv_c_compiler_gnu
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4023$as_echo_n "checking how to run the C preprocessor... " >&6; }
4024# On Suns, sometimes $CPP names a directory.
4025if test -n "$CPP" && test -d "$CPP"; then
4026  CPP=
4027fi
4028if test -z "$CPP"; then
4029  if ${ac_cv_prog_CPP+:} false; then :
4030  $as_echo_n "(cached) " >&6
4031else
4032      # Double quotes because CPP needs to be expanded
4033    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4034    do
4035      ac_preproc_ok=false
4036for ac_c_preproc_warn_flag in '' yes
4037do
4038  # Use a header file that comes with gcc, so configuring glibc
4039  # with a fresh cross-compiler works.
4040  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4041  # <limits.h> exists even on freestanding compilers.
4042  # On the NeXT, cc -E runs the code through the compiler's parser,
4043  # not just through cpp. "Syntax error" is here to catch this case.
4044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045/* end confdefs.h.  */
4046#ifdef __STDC__
4047# include <limits.h>
4048#else
4049# include <assert.h>
4050#endif
4051		     Syntax error
4052_ACEOF
4053if ac_fn_c_try_cpp "$LINENO"; then :
4054
4055else
4056  # Broken: fails on valid input.
4057continue
4058fi
4059rm -f conftest.err conftest.i conftest.$ac_ext
4060
4061  # OK, works on sane cases.  Now check whether nonexistent headers
4062  # can be detected and how.
4063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064/* end confdefs.h.  */
4065#include <ac_nonexistent.h>
4066_ACEOF
4067if ac_fn_c_try_cpp "$LINENO"; then :
4068  # Broken: success on invalid input.
4069continue
4070else
4071  # Passes both tests.
4072ac_preproc_ok=:
4073break
4074fi
4075rm -f conftest.err conftest.i conftest.$ac_ext
4076
4077done
4078# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4079rm -f conftest.i conftest.err conftest.$ac_ext
4080if $ac_preproc_ok; then :
4081  break
4082fi
4083
4084    done
4085    ac_cv_prog_CPP=$CPP
4086
4087fi
4088  CPP=$ac_cv_prog_CPP
4089else
4090  ac_cv_prog_CPP=$CPP
4091fi
4092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4093$as_echo "$CPP" >&6; }
4094ac_preproc_ok=false
4095for ac_c_preproc_warn_flag in '' yes
4096do
4097  # Use a header file that comes with gcc, so configuring glibc
4098  # with a fresh cross-compiler works.
4099  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4100  # <limits.h> exists even on freestanding compilers.
4101  # On the NeXT, cc -E runs the code through the compiler's parser,
4102  # not just through cpp. "Syntax error" is here to catch this case.
4103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104/* end confdefs.h.  */
4105#ifdef __STDC__
4106# include <limits.h>
4107#else
4108# include <assert.h>
4109#endif
4110		     Syntax error
4111_ACEOF
4112if ac_fn_c_try_cpp "$LINENO"; then :
4113
4114else
4115  # Broken: fails on valid input.
4116continue
4117fi
4118rm -f conftest.err conftest.i conftest.$ac_ext
4119
4120  # OK, works on sane cases.  Now check whether nonexistent headers
4121  # can be detected and how.
4122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123/* end confdefs.h.  */
4124#include <ac_nonexistent.h>
4125_ACEOF
4126if ac_fn_c_try_cpp "$LINENO"; then :
4127  # Broken: success on invalid input.
4128continue
4129else
4130  # Passes both tests.
4131ac_preproc_ok=:
4132break
4133fi
4134rm -f conftest.err conftest.i conftest.$ac_ext
4135
4136done
4137# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4138rm -f conftest.i conftest.err conftest.$ac_ext
4139if $ac_preproc_ok; then :
4140
4141else
4142  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4143$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4144as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4145See \`config.log' for more details" "$LINENO" 5; }
4146fi
4147
4148ac_ext=c
4149ac_cpp='$CPP $CPPFLAGS'
4150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4152ac_compiler_gnu=$ac_cv_c_compiler_gnu
4153
4154
4155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4156$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4157if ${ac_cv_path_GREP+:} false; then :
4158  $as_echo_n "(cached) " >&6
4159else
4160  if test -z "$GREP"; then
4161  ac_path_GREP_found=false
4162  # Loop through the user's path and test for each of PROGNAME-LIST
4163  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4165do
4166  IFS=$as_save_IFS
4167  test -z "$as_dir" && as_dir=.
4168    for ac_prog in grep ggrep; do
4169    for ac_exec_ext in '' $ac_executable_extensions; do
4170      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4171      as_fn_executable_p "$ac_path_GREP" || continue
4172# Check for GNU ac_path_GREP and select it if it is found.
4173  # Check for GNU $ac_path_GREP
4174case `"$ac_path_GREP" --version 2>&1` in
4175*GNU*)
4176  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4177*)
4178  ac_count=0
4179  $as_echo_n 0123456789 >"conftest.in"
4180  while :
4181  do
4182    cat "conftest.in" "conftest.in" >"conftest.tmp"
4183    mv "conftest.tmp" "conftest.in"
4184    cp "conftest.in" "conftest.nl"
4185    $as_echo 'GREP' >> "conftest.nl"
4186    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4187    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4188    as_fn_arith $ac_count + 1 && ac_count=$as_val
4189    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4190      # Best one so far, save it but keep looking for a better one
4191      ac_cv_path_GREP="$ac_path_GREP"
4192      ac_path_GREP_max=$ac_count
4193    fi
4194    # 10*(2^10) chars as input seems more than enough
4195    test $ac_count -gt 10 && break
4196  done
4197  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4198esac
4199
4200      $ac_path_GREP_found && break 3
4201    done
4202  done
4203  done
4204IFS=$as_save_IFS
4205  if test -z "$ac_cv_path_GREP"; then
4206    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4207  fi
4208else
4209  ac_cv_path_GREP=$GREP
4210fi
4211
4212fi
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4214$as_echo "$ac_cv_path_GREP" >&6; }
4215 GREP="$ac_cv_path_GREP"
4216
4217
4218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4219$as_echo_n "checking for egrep... " >&6; }
4220if ${ac_cv_path_EGREP+:} false; then :
4221  $as_echo_n "(cached) " >&6
4222else
4223  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4224   then ac_cv_path_EGREP="$GREP -E"
4225   else
4226     if test -z "$EGREP"; then
4227  ac_path_EGREP_found=false
4228  # Loop through the user's path and test for each of PROGNAME-LIST
4229  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4231do
4232  IFS=$as_save_IFS
4233  test -z "$as_dir" && as_dir=.
4234    for ac_prog in egrep; do
4235    for ac_exec_ext in '' $ac_executable_extensions; do
4236      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4237      as_fn_executable_p "$ac_path_EGREP" || continue
4238# Check for GNU ac_path_EGREP and select it if it is found.
4239  # Check for GNU $ac_path_EGREP
4240case `"$ac_path_EGREP" --version 2>&1` in
4241*GNU*)
4242  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4243*)
4244  ac_count=0
4245  $as_echo_n 0123456789 >"conftest.in"
4246  while :
4247  do
4248    cat "conftest.in" "conftest.in" >"conftest.tmp"
4249    mv "conftest.tmp" "conftest.in"
4250    cp "conftest.in" "conftest.nl"
4251    $as_echo 'EGREP' >> "conftest.nl"
4252    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4253    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4254    as_fn_arith $ac_count + 1 && ac_count=$as_val
4255    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4256      # Best one so far, save it but keep looking for a better one
4257      ac_cv_path_EGREP="$ac_path_EGREP"
4258      ac_path_EGREP_max=$ac_count
4259    fi
4260    # 10*(2^10) chars as input seems more than enough
4261    test $ac_count -gt 10 && break
4262  done
4263  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4264esac
4265
4266      $ac_path_EGREP_found && break 3
4267    done
4268  done
4269  done
4270IFS=$as_save_IFS
4271  if test -z "$ac_cv_path_EGREP"; then
4272    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4273  fi
4274else
4275  ac_cv_path_EGREP=$EGREP
4276fi
4277
4278   fi
4279fi
4280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4281$as_echo "$ac_cv_path_EGREP" >&6; }
4282 EGREP="$ac_cv_path_EGREP"
4283
4284
4285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4286$as_echo_n "checking for ANSI C header files... " >&6; }
4287if ${ac_cv_header_stdc+:} false; then :
4288  $as_echo_n "(cached) " >&6
4289else
4290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291/* end confdefs.h.  */
4292#include <stdlib.h>
4293#include <stdarg.h>
4294#include <string.h>
4295#include <float.h>
4296
4297int
4298main ()
4299{
4300
4301  ;
4302  return 0;
4303}
4304_ACEOF
4305if ac_fn_c_try_compile "$LINENO"; then :
4306  ac_cv_header_stdc=yes
4307else
4308  ac_cv_header_stdc=no
4309fi
4310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311
4312if test $ac_cv_header_stdc = yes; then
4313  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315/* end confdefs.h.  */
4316#include <string.h>
4317
4318_ACEOF
4319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4320  $EGREP "memchr" >/dev/null 2>&1; then :
4321
4322else
4323  ac_cv_header_stdc=no
4324fi
4325rm -f conftest*
4326
4327fi
4328
4329if test $ac_cv_header_stdc = yes; then
4330  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332/* end confdefs.h.  */
4333#include <stdlib.h>
4334
4335_ACEOF
4336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4337  $EGREP "free" >/dev/null 2>&1; then :
4338
4339else
4340  ac_cv_header_stdc=no
4341fi
4342rm -f conftest*
4343
4344fi
4345
4346if test $ac_cv_header_stdc = yes; then
4347  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4348  if test "$cross_compiling" = yes; then :
4349  :
4350else
4351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352/* end confdefs.h.  */
4353#include <ctype.h>
4354#include <stdlib.h>
4355#if ((' ' & 0x0FF) == 0x020)
4356# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4357# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4358#else
4359# define ISLOWER(c) \
4360		   (('a' <= (c) && (c) <= 'i') \
4361		     || ('j' <= (c) && (c) <= 'r') \
4362		     || ('s' <= (c) && (c) <= 'z'))
4363# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4364#endif
4365
4366#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4367int
4368main ()
4369{
4370  int i;
4371  for (i = 0; i < 256; i++)
4372    if (XOR (islower (i), ISLOWER (i))
4373	|| toupper (i) != TOUPPER (i))
4374      return 2;
4375  return 0;
4376}
4377_ACEOF
4378if ac_fn_c_try_run "$LINENO"; then :
4379
4380else
4381  ac_cv_header_stdc=no
4382fi
4383rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4384  conftest.$ac_objext conftest.beam conftest.$ac_ext
4385fi
4386
4387fi
4388fi
4389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4390$as_echo "$ac_cv_header_stdc" >&6; }
4391if test $ac_cv_header_stdc = yes; then
4392
4393$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4394
4395fi
4396
4397# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4398for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4399		  inttypes.h stdint.h unistd.h
4400do :
4401  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4402ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4403"
4404if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4405  cat >>confdefs.h <<_ACEOF
4406#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4407_ACEOF
4408
4409fi
4410
4411done
4412
4413
4414
4415
4416
4417
4418ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4419if test "x$ac_cv_have_decl___clang__" = xyes; then :
4420  CLANGCC="yes"
4421else
4422  CLANGCC="no"
4423fi
4424
4425ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4426if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4427  INTELCC="yes"
4428else
4429  INTELCC="no"
4430fi
4431
4432ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4433if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4434  SUNCC="yes"
4435else
4436  SUNCC="no"
4437fi
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4448	if test -n "$ac_tool_prefix"; then
4449  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4450set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4452$as_echo_n "checking for $ac_word... " >&6; }
4453if ${ac_cv_path_PKG_CONFIG+:} false; then :
4454  $as_echo_n "(cached) " >&6
4455else
4456  case $PKG_CONFIG in
4457  [\\/]* | ?:[\\/]*)
4458  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4459  ;;
4460  *)
4461  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462for as_dir in $PATH
4463do
4464  IFS=$as_save_IFS
4465  test -z "$as_dir" && as_dir=.
4466    for ac_exec_ext in '' $ac_executable_extensions; do
4467  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4468    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4469    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4470    break 2
4471  fi
4472done
4473  done
4474IFS=$as_save_IFS
4475
4476  ;;
4477esac
4478fi
4479PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4480if test -n "$PKG_CONFIG"; then
4481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4482$as_echo "$PKG_CONFIG" >&6; }
4483else
4484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485$as_echo "no" >&6; }
4486fi
4487
4488
4489fi
4490if test -z "$ac_cv_path_PKG_CONFIG"; then
4491  ac_pt_PKG_CONFIG=$PKG_CONFIG
4492  # Extract the first word of "pkg-config", so it can be a program name with args.
4493set dummy pkg-config; ac_word=$2
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4495$as_echo_n "checking for $ac_word... " >&6; }
4496if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4497  $as_echo_n "(cached) " >&6
4498else
4499  case $ac_pt_PKG_CONFIG in
4500  [\\/]* | ?:[\\/]*)
4501  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4502  ;;
4503  *)
4504  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505for as_dir in $PATH
4506do
4507  IFS=$as_save_IFS
4508  test -z "$as_dir" && as_dir=.
4509    for ac_exec_ext in '' $ac_executable_extensions; do
4510  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4511    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4512    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4513    break 2
4514  fi
4515done
4516  done
4517IFS=$as_save_IFS
4518
4519  ;;
4520esac
4521fi
4522ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4523if test -n "$ac_pt_PKG_CONFIG"; then
4524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4525$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4526else
4527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528$as_echo "no" >&6; }
4529fi
4530
4531  if test "x$ac_pt_PKG_CONFIG" = x; then
4532    PKG_CONFIG=""
4533  else
4534    case $cross_compiling:$ac_tool_warned in
4535yes:)
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4538ac_tool_warned=yes ;;
4539esac
4540    PKG_CONFIG=$ac_pt_PKG_CONFIG
4541  fi
4542else
4543  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4544fi
4545
4546fi
4547if test -n "$PKG_CONFIG"; then
4548	_pkg_min_version=0.9.0
4549	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4550$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4551	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4552		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4553$as_echo "yes" >&6; }
4554	else
4555		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556$as_echo "no" >&6; }
4557		PKG_CONFIG=""
4558	fi
4559fi
4560# Make sure we can run config.sub.
4561$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4562  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4563
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4565$as_echo_n "checking build system type... " >&6; }
4566if ${ac_cv_build+:} false; then :
4567  $as_echo_n "(cached) " >&6
4568else
4569  ac_build_alias=$build_alias
4570test "x$ac_build_alias" = x &&
4571  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4572test "x$ac_build_alias" = x &&
4573  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4574ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4575  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4576
4577fi
4578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4579$as_echo "$ac_cv_build" >&6; }
4580case $ac_cv_build in
4581*-*-*) ;;
4582*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4583esac
4584build=$ac_cv_build
4585ac_save_IFS=$IFS; IFS='-'
4586set x $ac_cv_build
4587shift
4588build_cpu=$1
4589build_vendor=$2
4590shift; shift
4591# Remember, the first character of IFS is used to create $*,
4592# except with old shells:
4593build_os=$*
4594IFS=$ac_save_IFS
4595case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4596
4597
4598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4599$as_echo_n "checking host system type... " >&6; }
4600if ${ac_cv_host+:} false; then :
4601  $as_echo_n "(cached) " >&6
4602else
4603  if test "x$host_alias" = x; then
4604  ac_cv_host=$ac_cv_build
4605else
4606  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4607    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4608fi
4609
4610fi
4611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4612$as_echo "$ac_cv_host" >&6; }
4613case $ac_cv_host in
4614*-*-*) ;;
4615*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4616esac
4617host=$ac_cv_host
4618ac_save_IFS=$IFS; IFS='-'
4619set x $ac_cv_host
4620shift
4621host_cpu=$1
4622host_vendor=$2
4623shift; shift
4624# Remember, the first character of IFS is used to create $*,
4625# except with old shells:
4626host_os=$*
4627IFS=$ac_save_IFS
4628case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4629
4630
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4632$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4633if ${ac_cv_path_SED+:} false; then :
4634  $as_echo_n "(cached) " >&6
4635else
4636            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4637     for ac_i in 1 2 3 4 5 6 7; do
4638       ac_script="$ac_script$as_nl$ac_script"
4639     done
4640     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4641     { ac_script=; unset ac_script;}
4642     if test -z "$SED"; then
4643  ac_path_SED_found=false
4644  # Loop through the user's path and test for each of PROGNAME-LIST
4645  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646for as_dir in $PATH
4647do
4648  IFS=$as_save_IFS
4649  test -z "$as_dir" && as_dir=.
4650    for ac_prog in sed gsed; do
4651    for ac_exec_ext in '' $ac_executable_extensions; do
4652      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4653      as_fn_executable_p "$ac_path_SED" || continue
4654# Check for GNU ac_path_SED and select it if it is found.
4655  # Check for GNU $ac_path_SED
4656case `"$ac_path_SED" --version 2>&1` in
4657*GNU*)
4658  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4659*)
4660  ac_count=0
4661  $as_echo_n 0123456789 >"conftest.in"
4662  while :
4663  do
4664    cat "conftest.in" "conftest.in" >"conftest.tmp"
4665    mv "conftest.tmp" "conftest.in"
4666    cp "conftest.in" "conftest.nl"
4667    $as_echo '' >> "conftest.nl"
4668    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4669    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4670    as_fn_arith $ac_count + 1 && ac_count=$as_val
4671    if test $ac_count -gt ${ac_path_SED_max-0}; then
4672      # Best one so far, save it but keep looking for a better one
4673      ac_cv_path_SED="$ac_path_SED"
4674      ac_path_SED_max=$ac_count
4675    fi
4676    # 10*(2^10) chars as input seems more than enough
4677    test $ac_count -gt 10 && break
4678  done
4679  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4680esac
4681
4682      $ac_path_SED_found && break 3
4683    done
4684  done
4685  done
4686IFS=$as_save_IFS
4687  if test -z "$ac_cv_path_SED"; then
4688    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4689  fi
4690else
4691  ac_cv_path_SED=$SED
4692fi
4693
4694fi
4695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4696$as_echo "$ac_cv_path_SED" >&6; }
4697 SED="$ac_cv_path_SED"
4698  rm -f conftest.sed
4699
4700
4701
4702
4703
4704
4705# Check whether --enable-selective-werror was given.
4706if test "${enable_selective_werror+set}" = set; then :
4707  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4708else
4709  SELECTIVE_WERROR=yes
4710fi
4711
4712
4713
4714
4715
4716# -v is too short to test reliably with XORG_TESTSET_CFLAG
4717if test "x$SUNCC" = "xyes"; then
4718    BASE_CFLAGS="-v"
4719else
4720    BASE_CFLAGS=""
4721fi
4722
4723# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737xorg_testset_save_CFLAGS="$CFLAGS"
4738
4739if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4740	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4741	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4742$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4743if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4744  $as_echo_n "(cached) " >&6
4745else
4746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747/* end confdefs.h.  */
4748int i;
4749_ACEOF
4750if ac_fn_c_try_compile "$LINENO"; then :
4751  xorg_cv_cc_flag_unknown_warning_option=yes
4752else
4753  xorg_cv_cc_flag_unknown_warning_option=no
4754fi
4755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756fi
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4758$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4759	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4760	CFLAGS="$xorg_testset_save_CFLAGS"
4761fi
4762
4763if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4764	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4765		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4766	fi
4767	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4768	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4769$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4770if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4771  $as_echo_n "(cached) " >&6
4772else
4773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774/* end confdefs.h.  */
4775int i;
4776_ACEOF
4777if ac_fn_c_try_compile "$LINENO"; then :
4778  xorg_cv_cc_flag_unused_command_line_argument=yes
4779else
4780  xorg_cv_cc_flag_unused_command_line_argument=no
4781fi
4782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783fi
4784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4785$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4786	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4787	CFLAGS="$xorg_testset_save_CFLAGS"
4788fi
4789
4790found="no"
4791
4792	if test $found = "no" ; then
4793		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4794			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4795		fi
4796
4797		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4798			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4799		fi
4800
4801		CFLAGS="$CFLAGS -Wall"
4802
4803		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4804$as_echo_n "checking if $CC supports -Wall... " >&6; }
4805		cacheid=xorg_cv_cc_flag__Wall
4806		if eval \${$cacheid+:} false; then :
4807  $as_echo_n "(cached) " >&6
4808else
4809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810/* end confdefs.h.  */
4811int i;
4812int
4813main ()
4814{
4815
4816  ;
4817  return 0;
4818}
4819_ACEOF
4820if ac_fn_c_try_link "$LINENO"; then :
4821  eval $cacheid=yes
4822else
4823  eval $cacheid=no
4824fi
4825rm -f core conftest.err conftest.$ac_objext \
4826    conftest$ac_exeext conftest.$ac_ext
4827fi
4828
4829
4830		CFLAGS="$xorg_testset_save_CFLAGS"
4831
4832		eval supported=\$$cacheid
4833		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4834$as_echo "$supported" >&6; }
4835		if test "$supported" = "yes" ; then
4836			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4837			found="yes"
4838		fi
4839	fi
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855xorg_testset_save_CFLAGS="$CFLAGS"
4856
4857if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4858	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4859	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4860$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4861if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4862  $as_echo_n "(cached) " >&6
4863else
4864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865/* end confdefs.h.  */
4866int i;
4867_ACEOF
4868if ac_fn_c_try_compile "$LINENO"; then :
4869  xorg_cv_cc_flag_unknown_warning_option=yes
4870else
4871  xorg_cv_cc_flag_unknown_warning_option=no
4872fi
4873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4874fi
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4876$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4877	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4878	CFLAGS="$xorg_testset_save_CFLAGS"
4879fi
4880
4881if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4882	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4883		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4884	fi
4885	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4886	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4887$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4888if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4889  $as_echo_n "(cached) " >&6
4890else
4891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892/* end confdefs.h.  */
4893int i;
4894_ACEOF
4895if ac_fn_c_try_compile "$LINENO"; then :
4896  xorg_cv_cc_flag_unused_command_line_argument=yes
4897else
4898  xorg_cv_cc_flag_unused_command_line_argument=no
4899fi
4900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4901fi
4902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4903$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4904	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4905	CFLAGS="$xorg_testset_save_CFLAGS"
4906fi
4907
4908found="no"
4909
4910	if test $found = "no" ; then
4911		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4912			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4913		fi
4914
4915		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4916			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4917		fi
4918
4919		CFLAGS="$CFLAGS -Wpointer-arith"
4920
4921		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4922$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4923		cacheid=xorg_cv_cc_flag__Wpointer_arith
4924		if eval \${$cacheid+:} false; then :
4925  $as_echo_n "(cached) " >&6
4926else
4927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928/* end confdefs.h.  */
4929int i;
4930int
4931main ()
4932{
4933
4934  ;
4935  return 0;
4936}
4937_ACEOF
4938if ac_fn_c_try_link "$LINENO"; then :
4939  eval $cacheid=yes
4940else
4941  eval $cacheid=no
4942fi
4943rm -f core conftest.err conftest.$ac_objext \
4944    conftest$ac_exeext conftest.$ac_ext
4945fi
4946
4947
4948		CFLAGS="$xorg_testset_save_CFLAGS"
4949
4950		eval supported=\$$cacheid
4951		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4952$as_echo "$supported" >&6; }
4953		if test "$supported" = "yes" ; then
4954			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4955			found="yes"
4956		fi
4957	fi
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973xorg_testset_save_CFLAGS="$CFLAGS"
4974
4975if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4976	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4977	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4978$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4979if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4980  $as_echo_n "(cached) " >&6
4981else
4982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983/* end confdefs.h.  */
4984int i;
4985_ACEOF
4986if ac_fn_c_try_compile "$LINENO"; then :
4987  xorg_cv_cc_flag_unknown_warning_option=yes
4988else
4989  xorg_cv_cc_flag_unknown_warning_option=no
4990fi
4991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4992fi
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4994$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4995	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4996	CFLAGS="$xorg_testset_save_CFLAGS"
4997fi
4998
4999if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5000	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5001		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5002	fi
5003	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5004	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5005$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5006if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5007  $as_echo_n "(cached) " >&6
5008else
5009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010/* end confdefs.h.  */
5011int i;
5012_ACEOF
5013if ac_fn_c_try_compile "$LINENO"; then :
5014  xorg_cv_cc_flag_unused_command_line_argument=yes
5015else
5016  xorg_cv_cc_flag_unused_command_line_argument=no
5017fi
5018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019fi
5020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5021$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5022	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5023	CFLAGS="$xorg_testset_save_CFLAGS"
5024fi
5025
5026found="no"
5027
5028	if test $found = "no" ; then
5029		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5030			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5031		fi
5032
5033		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5034			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5035		fi
5036
5037		CFLAGS="$CFLAGS -Wmissing-declarations"
5038
5039		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5040$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5041		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5042		if eval \${$cacheid+:} false; then :
5043  $as_echo_n "(cached) " >&6
5044else
5045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046/* end confdefs.h.  */
5047int i;
5048int
5049main ()
5050{
5051
5052  ;
5053  return 0;
5054}
5055_ACEOF
5056if ac_fn_c_try_link "$LINENO"; then :
5057  eval $cacheid=yes
5058else
5059  eval $cacheid=no
5060fi
5061rm -f core conftest.err conftest.$ac_objext \
5062    conftest$ac_exeext conftest.$ac_ext
5063fi
5064
5065
5066		CFLAGS="$xorg_testset_save_CFLAGS"
5067
5068		eval supported=\$$cacheid
5069		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5070$as_echo "$supported" >&6; }
5071		if test "$supported" = "yes" ; then
5072			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5073			found="yes"
5074		fi
5075	fi
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_cc_unknown_warning_option" = "xyes" ; then
5148			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5149		fi
5150
5151		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5152			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5153		fi
5154
5155		CFLAGS="$CFLAGS -Wformat=2"
5156
5157		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5158$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5159		cacheid=xorg_cv_cc_flag__Wformat_2
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 -Wformat=2"
5191			found="yes"
5192		fi
5193	fi
5194
5195	if test $found = "no" ; then
5196		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5197			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5198		fi
5199
5200		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5201			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5202		fi
5203
5204		CFLAGS="$CFLAGS -Wformat"
5205
5206		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5207$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5208		cacheid=xorg_cv_cc_flag__Wformat
5209		if eval \${$cacheid+:} false; then :
5210  $as_echo_n "(cached) " >&6
5211else
5212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213/* end confdefs.h.  */
5214int i;
5215int
5216main ()
5217{
5218
5219  ;
5220  return 0;
5221}
5222_ACEOF
5223if ac_fn_c_try_link "$LINENO"; then :
5224  eval $cacheid=yes
5225else
5226  eval $cacheid=no
5227fi
5228rm -f core conftest.err conftest.$ac_objext \
5229    conftest$ac_exeext conftest.$ac_ext
5230fi
5231
5232
5233		CFLAGS="$xorg_testset_save_CFLAGS"
5234
5235		eval supported=\$$cacheid
5236		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5237$as_echo "$supported" >&6; }
5238		if test "$supported" = "yes" ; then
5239			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5240			found="yes"
5241		fi
5242	fi
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260xorg_testset_save_CFLAGS="$CFLAGS"
5261
5262if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5263	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5264	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5265$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5266if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5267  $as_echo_n "(cached) " >&6
5268else
5269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270/* end confdefs.h.  */
5271int i;
5272_ACEOF
5273if ac_fn_c_try_compile "$LINENO"; then :
5274  xorg_cv_cc_flag_unknown_warning_option=yes
5275else
5276  xorg_cv_cc_flag_unknown_warning_option=no
5277fi
5278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279fi
5280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5281$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5282	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5283	CFLAGS="$xorg_testset_save_CFLAGS"
5284fi
5285
5286if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5287	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5288		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5289	fi
5290	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5291	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5292$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5293if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5294  $as_echo_n "(cached) " >&6
5295else
5296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297/* end confdefs.h.  */
5298int i;
5299_ACEOF
5300if ac_fn_c_try_compile "$LINENO"; then :
5301  xorg_cv_cc_flag_unused_command_line_argument=yes
5302else
5303  xorg_cv_cc_flag_unused_command_line_argument=no
5304fi
5305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306fi
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5308$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5309	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5310	CFLAGS="$xorg_testset_save_CFLAGS"
5311fi
5312
5313found="no"
5314
5315	if test $found = "no" ; then
5316		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5317			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5318		fi
5319
5320		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5321			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5322		fi
5323
5324		CFLAGS="$CFLAGS -Wstrict-prototypes"
5325
5326		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5327$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5328		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5329		if eval \${$cacheid+:} false; then :
5330  $as_echo_n "(cached) " >&6
5331else
5332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333/* end confdefs.h.  */
5334int i;
5335int
5336main ()
5337{
5338
5339  ;
5340  return 0;
5341}
5342_ACEOF
5343if ac_fn_c_try_link "$LINENO"; then :
5344  eval $cacheid=yes
5345else
5346  eval $cacheid=no
5347fi
5348rm -f core conftest.err conftest.$ac_objext \
5349    conftest$ac_exeext conftest.$ac_ext
5350fi
5351
5352
5353		CFLAGS="$xorg_testset_save_CFLAGS"
5354
5355		eval supported=\$$cacheid
5356		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5357$as_echo "$supported" >&6; }
5358		if test "$supported" = "yes" ; then
5359			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5360			found="yes"
5361		fi
5362	fi
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378xorg_testset_save_CFLAGS="$CFLAGS"
5379
5380if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5381	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5382	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5383$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5384if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5385  $as_echo_n "(cached) " >&6
5386else
5387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388/* end confdefs.h.  */
5389int i;
5390_ACEOF
5391if ac_fn_c_try_compile "$LINENO"; then :
5392  xorg_cv_cc_flag_unknown_warning_option=yes
5393else
5394  xorg_cv_cc_flag_unknown_warning_option=no
5395fi
5396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5397fi
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5399$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5400	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5401	CFLAGS="$xorg_testset_save_CFLAGS"
5402fi
5403
5404if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5405	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5406		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5407	fi
5408	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5409	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5410$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5411if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5412  $as_echo_n "(cached) " >&6
5413else
5414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415/* end confdefs.h.  */
5416int i;
5417_ACEOF
5418if ac_fn_c_try_compile "$LINENO"; then :
5419  xorg_cv_cc_flag_unused_command_line_argument=yes
5420else
5421  xorg_cv_cc_flag_unused_command_line_argument=no
5422fi
5423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5424fi
5425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5426$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5427	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5428	CFLAGS="$xorg_testset_save_CFLAGS"
5429fi
5430
5431found="no"
5432
5433	if test $found = "no" ; then
5434		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5435			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5436		fi
5437
5438		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5439			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5440		fi
5441
5442		CFLAGS="$CFLAGS -Wmissing-prototypes"
5443
5444		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5445$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5446		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5447		if eval \${$cacheid+:} false; then :
5448  $as_echo_n "(cached) " >&6
5449else
5450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451/* end confdefs.h.  */
5452int i;
5453int
5454main ()
5455{
5456
5457  ;
5458  return 0;
5459}
5460_ACEOF
5461if ac_fn_c_try_link "$LINENO"; then :
5462  eval $cacheid=yes
5463else
5464  eval $cacheid=no
5465fi
5466rm -f core conftest.err conftest.$ac_objext \
5467    conftest$ac_exeext conftest.$ac_ext
5468fi
5469
5470
5471		CFLAGS="$xorg_testset_save_CFLAGS"
5472
5473		eval supported=\$$cacheid
5474		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5475$as_echo "$supported" >&6; }
5476		if test "$supported" = "yes" ; then
5477			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5478			found="yes"
5479		fi
5480	fi
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496xorg_testset_save_CFLAGS="$CFLAGS"
5497
5498if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5499	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5500	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5501$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5502if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5503  $as_echo_n "(cached) " >&6
5504else
5505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506/* end confdefs.h.  */
5507int i;
5508_ACEOF
5509if ac_fn_c_try_compile "$LINENO"; then :
5510  xorg_cv_cc_flag_unknown_warning_option=yes
5511else
5512  xorg_cv_cc_flag_unknown_warning_option=no
5513fi
5514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5515fi
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5517$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5518	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5519	CFLAGS="$xorg_testset_save_CFLAGS"
5520fi
5521
5522if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5523	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5524		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5525	fi
5526	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5527	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5528$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5529if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5530  $as_echo_n "(cached) " >&6
5531else
5532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533/* end confdefs.h.  */
5534int i;
5535_ACEOF
5536if ac_fn_c_try_compile "$LINENO"; then :
5537  xorg_cv_cc_flag_unused_command_line_argument=yes
5538else
5539  xorg_cv_cc_flag_unused_command_line_argument=no
5540fi
5541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5542fi
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5544$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5545	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5546	CFLAGS="$xorg_testset_save_CFLAGS"
5547fi
5548
5549found="no"
5550
5551	if test $found = "no" ; then
5552		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5553			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5554		fi
5555
5556		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5557			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5558		fi
5559
5560		CFLAGS="$CFLAGS -Wnested-externs"
5561
5562		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5563$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5564		cacheid=xorg_cv_cc_flag__Wnested_externs
5565		if eval \${$cacheid+:} false; then :
5566  $as_echo_n "(cached) " >&6
5567else
5568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569/* end confdefs.h.  */
5570int i;
5571int
5572main ()
5573{
5574
5575  ;
5576  return 0;
5577}
5578_ACEOF
5579if ac_fn_c_try_link "$LINENO"; then :
5580  eval $cacheid=yes
5581else
5582  eval $cacheid=no
5583fi
5584rm -f core conftest.err conftest.$ac_objext \
5585    conftest$ac_exeext conftest.$ac_ext
5586fi
5587
5588
5589		CFLAGS="$xorg_testset_save_CFLAGS"
5590
5591		eval supported=\$$cacheid
5592		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5593$as_echo "$supported" >&6; }
5594		if test "$supported" = "yes" ; then
5595			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5596			found="yes"
5597		fi
5598	fi
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614xorg_testset_save_CFLAGS="$CFLAGS"
5615
5616if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5617	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5618	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5619$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5620if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5621  $as_echo_n "(cached) " >&6
5622else
5623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624/* end confdefs.h.  */
5625int i;
5626_ACEOF
5627if ac_fn_c_try_compile "$LINENO"; then :
5628  xorg_cv_cc_flag_unknown_warning_option=yes
5629else
5630  xorg_cv_cc_flag_unknown_warning_option=no
5631fi
5632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5633fi
5634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5635$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5636	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5637	CFLAGS="$xorg_testset_save_CFLAGS"
5638fi
5639
5640if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5641	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5642		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5643	fi
5644	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5645	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5646$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5647if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5648  $as_echo_n "(cached) " >&6
5649else
5650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651/* end confdefs.h.  */
5652int i;
5653_ACEOF
5654if ac_fn_c_try_compile "$LINENO"; then :
5655  xorg_cv_cc_flag_unused_command_line_argument=yes
5656else
5657  xorg_cv_cc_flag_unused_command_line_argument=no
5658fi
5659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5660fi
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5662$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5663	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5664	CFLAGS="$xorg_testset_save_CFLAGS"
5665fi
5666
5667found="no"
5668
5669	if test $found = "no" ; then
5670		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5671			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5672		fi
5673
5674		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5675			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5676		fi
5677
5678		CFLAGS="$CFLAGS -Wbad-function-cast"
5679
5680		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5681$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5682		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5683		if eval \${$cacheid+:} false; then :
5684  $as_echo_n "(cached) " >&6
5685else
5686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687/* end confdefs.h.  */
5688int i;
5689int
5690main ()
5691{
5692
5693  ;
5694  return 0;
5695}
5696_ACEOF
5697if ac_fn_c_try_link "$LINENO"; then :
5698  eval $cacheid=yes
5699else
5700  eval $cacheid=no
5701fi
5702rm -f core conftest.err conftest.$ac_objext \
5703    conftest$ac_exeext conftest.$ac_ext
5704fi
5705
5706
5707		CFLAGS="$xorg_testset_save_CFLAGS"
5708
5709		eval supported=\$$cacheid
5710		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5711$as_echo "$supported" >&6; }
5712		if test "$supported" = "yes" ; then
5713			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5714			found="yes"
5715		fi
5716	fi
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732xorg_testset_save_CFLAGS="$CFLAGS"
5733
5734if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5735	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5736	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5737$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5738if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5739  $as_echo_n "(cached) " >&6
5740else
5741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742/* end confdefs.h.  */
5743int i;
5744_ACEOF
5745if ac_fn_c_try_compile "$LINENO"; then :
5746  xorg_cv_cc_flag_unknown_warning_option=yes
5747else
5748  xorg_cv_cc_flag_unknown_warning_option=no
5749fi
5750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5751fi
5752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5753$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5754	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5755	CFLAGS="$xorg_testset_save_CFLAGS"
5756fi
5757
5758if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5759	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5760		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5761	fi
5762	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5763	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5764$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5765if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5766  $as_echo_n "(cached) " >&6
5767else
5768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769/* end confdefs.h.  */
5770int i;
5771_ACEOF
5772if ac_fn_c_try_compile "$LINENO"; then :
5773  xorg_cv_cc_flag_unused_command_line_argument=yes
5774else
5775  xorg_cv_cc_flag_unused_command_line_argument=no
5776fi
5777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5778fi
5779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5780$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5781	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5782	CFLAGS="$xorg_testset_save_CFLAGS"
5783fi
5784
5785found="no"
5786
5787	if test $found = "no" ; then
5788		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5789			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5790		fi
5791
5792		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5793			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5794		fi
5795
5796		CFLAGS="$CFLAGS -Wold-style-definition"
5797
5798		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5799$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5800		cacheid=xorg_cv_cc_flag__Wold_style_definition
5801		if eval \${$cacheid+:} false; then :
5802  $as_echo_n "(cached) " >&6
5803else
5804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5805/* end confdefs.h.  */
5806int i;
5807int
5808main ()
5809{
5810
5811  ;
5812  return 0;
5813}
5814_ACEOF
5815if ac_fn_c_try_link "$LINENO"; then :
5816  eval $cacheid=yes
5817else
5818  eval $cacheid=no
5819fi
5820rm -f core conftest.err conftest.$ac_objext \
5821    conftest$ac_exeext conftest.$ac_ext
5822fi
5823
5824
5825		CFLAGS="$xorg_testset_save_CFLAGS"
5826
5827		eval supported=\$$cacheid
5828		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5829$as_echo "$supported" >&6; }
5830		if test "$supported" = "yes" ; then
5831			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5832			found="yes"
5833		fi
5834	fi
5835
5836	if test $found = "no" ; then
5837		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5838			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5839		fi
5840
5841		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5842			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5843		fi
5844
5845		CFLAGS="$CFLAGS -fd"
5846
5847		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5848$as_echo_n "checking if $CC supports -fd... " >&6; }
5849		cacheid=xorg_cv_cc_flag__fd
5850		if eval \${$cacheid+:} false; then :
5851  $as_echo_n "(cached) " >&6
5852else
5853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854/* end confdefs.h.  */
5855int i;
5856int
5857main ()
5858{
5859
5860  ;
5861  return 0;
5862}
5863_ACEOF
5864if ac_fn_c_try_link "$LINENO"; then :
5865  eval $cacheid=yes
5866else
5867  eval $cacheid=no
5868fi
5869rm -f core conftest.err conftest.$ac_objext \
5870    conftest$ac_exeext conftest.$ac_ext
5871fi
5872
5873
5874		CFLAGS="$xorg_testset_save_CFLAGS"
5875
5876		eval supported=\$$cacheid
5877		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5878$as_echo "$supported" >&6; }
5879		if test "$supported" = "yes" ; then
5880			BASE_CFLAGS="$BASE_CFLAGS -fd"
5881			found="yes"
5882		fi
5883	fi
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899xorg_testset_save_CFLAGS="$CFLAGS"
5900
5901if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5902	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5903	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5904$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5905if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5906  $as_echo_n "(cached) " >&6
5907else
5908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909/* end confdefs.h.  */
5910int i;
5911_ACEOF
5912if ac_fn_c_try_compile "$LINENO"; then :
5913  xorg_cv_cc_flag_unknown_warning_option=yes
5914else
5915  xorg_cv_cc_flag_unknown_warning_option=no
5916fi
5917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5918fi
5919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5920$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5921	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5922	CFLAGS="$xorg_testset_save_CFLAGS"
5923fi
5924
5925if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5926	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5927		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5928	fi
5929	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5930	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5931$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5932if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5933  $as_echo_n "(cached) " >&6
5934else
5935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936/* end confdefs.h.  */
5937int i;
5938_ACEOF
5939if ac_fn_c_try_compile "$LINENO"; then :
5940  xorg_cv_cc_flag_unused_command_line_argument=yes
5941else
5942  xorg_cv_cc_flag_unused_command_line_argument=no
5943fi
5944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5945fi
5946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5947$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5948	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5949	CFLAGS="$xorg_testset_save_CFLAGS"
5950fi
5951
5952found="no"
5953
5954	if test $found = "no" ; then
5955		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5956			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5957		fi
5958
5959		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5960			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5961		fi
5962
5963		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5964
5965		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5966$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5967		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5968		if eval \${$cacheid+:} false; then :
5969  $as_echo_n "(cached) " >&6
5970else
5971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972/* end confdefs.h.  */
5973int i;
5974int
5975main ()
5976{
5977
5978  ;
5979  return 0;
5980}
5981_ACEOF
5982if ac_fn_c_try_link "$LINENO"; then :
5983  eval $cacheid=yes
5984else
5985  eval $cacheid=no
5986fi
5987rm -f core conftest.err conftest.$ac_objext \
5988    conftest$ac_exeext conftest.$ac_ext
5989fi
5990
5991
5992		CFLAGS="$xorg_testset_save_CFLAGS"
5993
5994		eval supported=\$$cacheid
5995		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5996$as_echo "$supported" >&6; }
5997		if test "$supported" = "yes" ; then
5998			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5999			found="yes"
6000		fi
6001	fi
6002
6003
6004
6005
6006
6007# This chunk adds additional warnings that could catch undesired effects.
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021xorg_testset_save_CFLAGS="$CFLAGS"
6022
6023if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6024	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6025	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6026$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6027if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6028  $as_echo_n "(cached) " >&6
6029else
6030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031/* end confdefs.h.  */
6032int i;
6033_ACEOF
6034if ac_fn_c_try_compile "$LINENO"; then :
6035  xorg_cv_cc_flag_unknown_warning_option=yes
6036else
6037  xorg_cv_cc_flag_unknown_warning_option=no
6038fi
6039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6040fi
6041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6042$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6043	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6044	CFLAGS="$xorg_testset_save_CFLAGS"
6045fi
6046
6047if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6048	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6049		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6050	fi
6051	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6052	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6053$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6054if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6055  $as_echo_n "(cached) " >&6
6056else
6057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6058/* end confdefs.h.  */
6059int i;
6060_ACEOF
6061if ac_fn_c_try_compile "$LINENO"; then :
6062  xorg_cv_cc_flag_unused_command_line_argument=yes
6063else
6064  xorg_cv_cc_flag_unused_command_line_argument=no
6065fi
6066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6067fi
6068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6069$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6070	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6071	CFLAGS="$xorg_testset_save_CFLAGS"
6072fi
6073
6074found="no"
6075
6076	if test $found = "no" ; then
6077		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6078			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6079		fi
6080
6081		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6082			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6083		fi
6084
6085		CFLAGS="$CFLAGS -Wunused"
6086
6087		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6088$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6089		cacheid=xorg_cv_cc_flag__Wunused
6090		if eval \${$cacheid+:} false; then :
6091  $as_echo_n "(cached) " >&6
6092else
6093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6094/* end confdefs.h.  */
6095int i;
6096int
6097main ()
6098{
6099
6100  ;
6101  return 0;
6102}
6103_ACEOF
6104if ac_fn_c_try_link "$LINENO"; then :
6105  eval $cacheid=yes
6106else
6107  eval $cacheid=no
6108fi
6109rm -f core conftest.err conftest.$ac_objext \
6110    conftest$ac_exeext conftest.$ac_ext
6111fi
6112
6113
6114		CFLAGS="$xorg_testset_save_CFLAGS"
6115
6116		eval supported=\$$cacheid
6117		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6118$as_echo "$supported" >&6; }
6119		if test "$supported" = "yes" ; then
6120			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6121			found="yes"
6122		fi
6123	fi
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139xorg_testset_save_CFLAGS="$CFLAGS"
6140
6141if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6142	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6143	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6144$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6145if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6146  $as_echo_n "(cached) " >&6
6147else
6148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6149/* end confdefs.h.  */
6150int i;
6151_ACEOF
6152if ac_fn_c_try_compile "$LINENO"; then :
6153  xorg_cv_cc_flag_unknown_warning_option=yes
6154else
6155  xorg_cv_cc_flag_unknown_warning_option=no
6156fi
6157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6158fi
6159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6160$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6161	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6162	CFLAGS="$xorg_testset_save_CFLAGS"
6163fi
6164
6165if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6166	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6167		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6168	fi
6169	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6170	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6171$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6172if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6173  $as_echo_n "(cached) " >&6
6174else
6175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6176/* end confdefs.h.  */
6177int i;
6178_ACEOF
6179if ac_fn_c_try_compile "$LINENO"; then :
6180  xorg_cv_cc_flag_unused_command_line_argument=yes
6181else
6182  xorg_cv_cc_flag_unused_command_line_argument=no
6183fi
6184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6185fi
6186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6187$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6188	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6189	CFLAGS="$xorg_testset_save_CFLAGS"
6190fi
6191
6192found="no"
6193
6194	if test $found = "no" ; then
6195		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6196			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6197		fi
6198
6199		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6200			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6201		fi
6202
6203		CFLAGS="$CFLAGS -Wuninitialized"
6204
6205		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6206$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6207		cacheid=xorg_cv_cc_flag__Wuninitialized
6208		if eval \${$cacheid+:} false; then :
6209  $as_echo_n "(cached) " >&6
6210else
6211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212/* end confdefs.h.  */
6213int i;
6214int
6215main ()
6216{
6217
6218  ;
6219  return 0;
6220}
6221_ACEOF
6222if ac_fn_c_try_link "$LINENO"; then :
6223  eval $cacheid=yes
6224else
6225  eval $cacheid=no
6226fi
6227rm -f core conftest.err conftest.$ac_objext \
6228    conftest$ac_exeext conftest.$ac_ext
6229fi
6230
6231
6232		CFLAGS="$xorg_testset_save_CFLAGS"
6233
6234		eval supported=\$$cacheid
6235		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6236$as_echo "$supported" >&6; }
6237		if test "$supported" = "yes" ; then
6238			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6239			found="yes"
6240		fi
6241	fi
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257xorg_testset_save_CFLAGS="$CFLAGS"
6258
6259if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6260	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6261	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6262$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6263if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6264  $as_echo_n "(cached) " >&6
6265else
6266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267/* end confdefs.h.  */
6268int i;
6269_ACEOF
6270if ac_fn_c_try_compile "$LINENO"; then :
6271  xorg_cv_cc_flag_unknown_warning_option=yes
6272else
6273  xorg_cv_cc_flag_unknown_warning_option=no
6274fi
6275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6276fi
6277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6278$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6279	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6280	CFLAGS="$xorg_testset_save_CFLAGS"
6281fi
6282
6283if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6284	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6285		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6286	fi
6287	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6288	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6289$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6290if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6291  $as_echo_n "(cached) " >&6
6292else
6293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294/* end confdefs.h.  */
6295int i;
6296_ACEOF
6297if ac_fn_c_try_compile "$LINENO"; then :
6298  xorg_cv_cc_flag_unused_command_line_argument=yes
6299else
6300  xorg_cv_cc_flag_unused_command_line_argument=no
6301fi
6302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6303fi
6304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6305$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6306	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6307	CFLAGS="$xorg_testset_save_CFLAGS"
6308fi
6309
6310found="no"
6311
6312	if test $found = "no" ; then
6313		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6314			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6315		fi
6316
6317		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6318			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6319		fi
6320
6321		CFLAGS="$CFLAGS -Wshadow"
6322
6323		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6324$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6325		cacheid=xorg_cv_cc_flag__Wshadow
6326		if eval \${$cacheid+:} false; then :
6327  $as_echo_n "(cached) " >&6
6328else
6329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6330/* end confdefs.h.  */
6331int i;
6332int
6333main ()
6334{
6335
6336  ;
6337  return 0;
6338}
6339_ACEOF
6340if ac_fn_c_try_link "$LINENO"; then :
6341  eval $cacheid=yes
6342else
6343  eval $cacheid=no
6344fi
6345rm -f core conftest.err conftest.$ac_objext \
6346    conftest$ac_exeext conftest.$ac_ext
6347fi
6348
6349
6350		CFLAGS="$xorg_testset_save_CFLAGS"
6351
6352		eval supported=\$$cacheid
6353		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6354$as_echo "$supported" >&6; }
6355		if test "$supported" = "yes" ; then
6356			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6357			found="yes"
6358		fi
6359	fi
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375xorg_testset_save_CFLAGS="$CFLAGS"
6376
6377if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6378	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6379	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6380$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6381if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6382  $as_echo_n "(cached) " >&6
6383else
6384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385/* end confdefs.h.  */
6386int i;
6387_ACEOF
6388if ac_fn_c_try_compile "$LINENO"; then :
6389  xorg_cv_cc_flag_unknown_warning_option=yes
6390else
6391  xorg_cv_cc_flag_unknown_warning_option=no
6392fi
6393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6394fi
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6396$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6397	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6398	CFLAGS="$xorg_testset_save_CFLAGS"
6399fi
6400
6401if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6402	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6403		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6404	fi
6405	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6406	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6407$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6408if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6409  $as_echo_n "(cached) " >&6
6410else
6411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6412/* end confdefs.h.  */
6413int i;
6414_ACEOF
6415if ac_fn_c_try_compile "$LINENO"; then :
6416  xorg_cv_cc_flag_unused_command_line_argument=yes
6417else
6418  xorg_cv_cc_flag_unused_command_line_argument=no
6419fi
6420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421fi
6422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6423$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6424	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6425	CFLAGS="$xorg_testset_save_CFLAGS"
6426fi
6427
6428found="no"
6429
6430	if test $found = "no" ; then
6431		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6432			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6433		fi
6434
6435		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6436			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6437		fi
6438
6439		CFLAGS="$CFLAGS -Wmissing-noreturn"
6440
6441		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6442$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6443		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6444		if eval \${$cacheid+:} false; then :
6445  $as_echo_n "(cached) " >&6
6446else
6447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448/* end confdefs.h.  */
6449int i;
6450int
6451main ()
6452{
6453
6454  ;
6455  return 0;
6456}
6457_ACEOF
6458if ac_fn_c_try_link "$LINENO"; then :
6459  eval $cacheid=yes
6460else
6461  eval $cacheid=no
6462fi
6463rm -f core conftest.err conftest.$ac_objext \
6464    conftest$ac_exeext conftest.$ac_ext
6465fi
6466
6467
6468		CFLAGS="$xorg_testset_save_CFLAGS"
6469
6470		eval supported=\$$cacheid
6471		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6472$as_echo "$supported" >&6; }
6473		if test "$supported" = "yes" ; then
6474			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6475			found="yes"
6476		fi
6477	fi
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493xorg_testset_save_CFLAGS="$CFLAGS"
6494
6495if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6496	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6497	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6498$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6499if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6500  $as_echo_n "(cached) " >&6
6501else
6502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503/* end confdefs.h.  */
6504int i;
6505_ACEOF
6506if ac_fn_c_try_compile "$LINENO"; then :
6507  xorg_cv_cc_flag_unknown_warning_option=yes
6508else
6509  xorg_cv_cc_flag_unknown_warning_option=no
6510fi
6511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6512fi
6513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6514$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6515	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6516	CFLAGS="$xorg_testset_save_CFLAGS"
6517fi
6518
6519if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6520	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6521		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6522	fi
6523	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6524	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6525$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6526if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6527  $as_echo_n "(cached) " >&6
6528else
6529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530/* end confdefs.h.  */
6531int i;
6532_ACEOF
6533if ac_fn_c_try_compile "$LINENO"; then :
6534  xorg_cv_cc_flag_unused_command_line_argument=yes
6535else
6536  xorg_cv_cc_flag_unused_command_line_argument=no
6537fi
6538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6539fi
6540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6541$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6542	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6543	CFLAGS="$xorg_testset_save_CFLAGS"
6544fi
6545
6546found="no"
6547
6548	if test $found = "no" ; then
6549		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6550			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6551		fi
6552
6553		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6554			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6555		fi
6556
6557		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6558
6559		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6560$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6561		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6562		if eval \${$cacheid+:} false; then :
6563  $as_echo_n "(cached) " >&6
6564else
6565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566/* end confdefs.h.  */
6567int i;
6568int
6569main ()
6570{
6571
6572  ;
6573  return 0;
6574}
6575_ACEOF
6576if ac_fn_c_try_link "$LINENO"; then :
6577  eval $cacheid=yes
6578else
6579  eval $cacheid=no
6580fi
6581rm -f core conftest.err conftest.$ac_objext \
6582    conftest$ac_exeext conftest.$ac_ext
6583fi
6584
6585
6586		CFLAGS="$xorg_testset_save_CFLAGS"
6587
6588		eval supported=\$$cacheid
6589		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6590$as_echo "$supported" >&6; }
6591		if test "$supported" = "yes" ; then
6592			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6593			found="yes"
6594		fi
6595	fi
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611xorg_testset_save_CFLAGS="$CFLAGS"
6612
6613if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6614	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6615	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6616$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6617if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6618  $as_echo_n "(cached) " >&6
6619else
6620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621/* end confdefs.h.  */
6622int i;
6623_ACEOF
6624if ac_fn_c_try_compile "$LINENO"; then :
6625  xorg_cv_cc_flag_unknown_warning_option=yes
6626else
6627  xorg_cv_cc_flag_unknown_warning_option=no
6628fi
6629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6630fi
6631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6632$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6633	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6634	CFLAGS="$xorg_testset_save_CFLAGS"
6635fi
6636
6637if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6638	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6639		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6640	fi
6641	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6642	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6643$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6644if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6645  $as_echo_n "(cached) " >&6
6646else
6647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6648/* end confdefs.h.  */
6649int i;
6650_ACEOF
6651if ac_fn_c_try_compile "$LINENO"; then :
6652  xorg_cv_cc_flag_unused_command_line_argument=yes
6653else
6654  xorg_cv_cc_flag_unused_command_line_argument=no
6655fi
6656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6657fi
6658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6659$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6660	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6661	CFLAGS="$xorg_testset_save_CFLAGS"
6662fi
6663
6664found="no"
6665
6666	if test $found = "no" ; then
6667		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6668			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6669		fi
6670
6671		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6672			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6673		fi
6674
6675		CFLAGS="$CFLAGS -Wredundant-decls"
6676
6677		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6678$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6679		cacheid=xorg_cv_cc_flag__Wredundant_decls
6680		if eval \${$cacheid+:} false; then :
6681  $as_echo_n "(cached) " >&6
6682else
6683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684/* end confdefs.h.  */
6685int i;
6686int
6687main ()
6688{
6689
6690  ;
6691  return 0;
6692}
6693_ACEOF
6694if ac_fn_c_try_link "$LINENO"; then :
6695  eval $cacheid=yes
6696else
6697  eval $cacheid=no
6698fi
6699rm -f core conftest.err conftest.$ac_objext \
6700    conftest$ac_exeext conftest.$ac_ext
6701fi
6702
6703
6704		CFLAGS="$xorg_testset_save_CFLAGS"
6705
6706		eval supported=\$$cacheid
6707		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6708$as_echo "$supported" >&6; }
6709		if test "$supported" = "yes" ; then
6710			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6711			found="yes"
6712		fi
6713	fi
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729xorg_testset_save_CFLAGS="$CFLAGS"
6730
6731if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6732	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6733	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6734$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6735if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6736  $as_echo_n "(cached) " >&6
6737else
6738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739/* end confdefs.h.  */
6740int i;
6741_ACEOF
6742if ac_fn_c_try_compile "$LINENO"; then :
6743  xorg_cv_cc_flag_unknown_warning_option=yes
6744else
6745  xorg_cv_cc_flag_unknown_warning_option=no
6746fi
6747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6748fi
6749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6750$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6751	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6752	CFLAGS="$xorg_testset_save_CFLAGS"
6753fi
6754
6755if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6756	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6757		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6758	fi
6759	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6760	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6761$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6762if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6763  $as_echo_n "(cached) " >&6
6764else
6765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766/* end confdefs.h.  */
6767int i;
6768_ACEOF
6769if ac_fn_c_try_compile "$LINENO"; then :
6770  xorg_cv_cc_flag_unused_command_line_argument=yes
6771else
6772  xorg_cv_cc_flag_unused_command_line_argument=no
6773fi
6774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6775fi
6776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6777$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6778	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6779	CFLAGS="$xorg_testset_save_CFLAGS"
6780fi
6781
6782found="no"
6783
6784	if test $found = "no" ; then
6785		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6786			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6787		fi
6788
6789		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6790			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6791		fi
6792
6793		CFLAGS="$CFLAGS -Wlogical-op"
6794
6795		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6796$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6797		cacheid=xorg_cv_cc_flag__Wlogical_op
6798		if eval \${$cacheid+:} false; then :
6799  $as_echo_n "(cached) " >&6
6800else
6801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802/* end confdefs.h.  */
6803int i;
6804int
6805main ()
6806{
6807
6808  ;
6809  return 0;
6810}
6811_ACEOF
6812if ac_fn_c_try_link "$LINENO"; then :
6813  eval $cacheid=yes
6814else
6815  eval $cacheid=no
6816fi
6817rm -f core conftest.err conftest.$ac_objext \
6818    conftest$ac_exeext conftest.$ac_ext
6819fi
6820
6821
6822		CFLAGS="$xorg_testset_save_CFLAGS"
6823
6824		eval supported=\$$cacheid
6825		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6826$as_echo "$supported" >&6; }
6827		if test "$supported" = "yes" ; then
6828			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6829			found="yes"
6830		fi
6831	fi
6832
6833
6834
6835# These are currently disabled because they are noisy.  They will be enabled
6836# in the future once the codebase is sufficiently modernized to silence
6837# them.  For now, I don't want them to drown out the other warnings.
6838# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6839# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6840# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6841
6842# Turn some warnings into errors, so we don't accidently get successful builds
6843# when there are problems that should be fixed.
6844
6845if test "x$SELECTIVE_WERROR" = "xyes" ; then
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859xorg_testset_save_CFLAGS="$CFLAGS"
6860
6861if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6862	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6863	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6864$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6865if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6866  $as_echo_n "(cached) " >&6
6867else
6868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869/* end confdefs.h.  */
6870int i;
6871_ACEOF
6872if ac_fn_c_try_compile "$LINENO"; then :
6873  xorg_cv_cc_flag_unknown_warning_option=yes
6874else
6875  xorg_cv_cc_flag_unknown_warning_option=no
6876fi
6877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6878fi
6879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6880$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6881	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6882	CFLAGS="$xorg_testset_save_CFLAGS"
6883fi
6884
6885if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6886	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6887		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6888	fi
6889	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6890	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6891$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6892if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6893  $as_echo_n "(cached) " >&6
6894else
6895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896/* end confdefs.h.  */
6897int i;
6898_ACEOF
6899if ac_fn_c_try_compile "$LINENO"; then :
6900  xorg_cv_cc_flag_unused_command_line_argument=yes
6901else
6902  xorg_cv_cc_flag_unused_command_line_argument=no
6903fi
6904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6905fi
6906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6907$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6908	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6909	CFLAGS="$xorg_testset_save_CFLAGS"
6910fi
6911
6912found="no"
6913
6914	if test $found = "no" ; then
6915		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6916			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6917		fi
6918
6919		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6920			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6921		fi
6922
6923		CFLAGS="$CFLAGS -Werror=implicit"
6924
6925		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6926$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6927		cacheid=xorg_cv_cc_flag__Werror_implicit
6928		if eval \${$cacheid+:} false; then :
6929  $as_echo_n "(cached) " >&6
6930else
6931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6932/* end confdefs.h.  */
6933int i;
6934int
6935main ()
6936{
6937
6938  ;
6939  return 0;
6940}
6941_ACEOF
6942if ac_fn_c_try_link "$LINENO"; then :
6943  eval $cacheid=yes
6944else
6945  eval $cacheid=no
6946fi
6947rm -f core conftest.err conftest.$ac_objext \
6948    conftest$ac_exeext conftest.$ac_ext
6949fi
6950
6951
6952		CFLAGS="$xorg_testset_save_CFLAGS"
6953
6954		eval supported=\$$cacheid
6955		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6956$as_echo "$supported" >&6; }
6957		if test "$supported" = "yes" ; then
6958			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6959			found="yes"
6960		fi
6961	fi
6962
6963	if test $found = "no" ; then
6964		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6965			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6966		fi
6967
6968		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6969			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6970		fi
6971
6972		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6973
6974		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6975$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6976		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6977		if eval \${$cacheid+:} false; then :
6978  $as_echo_n "(cached) " >&6
6979else
6980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6981/* end confdefs.h.  */
6982int i;
6983int
6984main ()
6985{
6986
6987  ;
6988  return 0;
6989}
6990_ACEOF
6991if ac_fn_c_try_link "$LINENO"; then :
6992  eval $cacheid=yes
6993else
6994  eval $cacheid=no
6995fi
6996rm -f core conftest.err conftest.$ac_objext \
6997    conftest$ac_exeext conftest.$ac_ext
6998fi
6999
7000
7001		CFLAGS="$xorg_testset_save_CFLAGS"
7002
7003		eval supported=\$$cacheid
7004		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7005$as_echo "$supported" >&6; }
7006		if test "$supported" = "yes" ; then
7007			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7008			found="yes"
7009		fi
7010	fi
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026xorg_testset_save_CFLAGS="$CFLAGS"
7027
7028if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7029	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7030	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7031$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7032if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7033  $as_echo_n "(cached) " >&6
7034else
7035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7036/* end confdefs.h.  */
7037int i;
7038_ACEOF
7039if ac_fn_c_try_compile "$LINENO"; then :
7040  xorg_cv_cc_flag_unknown_warning_option=yes
7041else
7042  xorg_cv_cc_flag_unknown_warning_option=no
7043fi
7044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7045fi
7046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7047$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7048	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7049	CFLAGS="$xorg_testset_save_CFLAGS"
7050fi
7051
7052if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7053	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7054		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7055	fi
7056	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7057	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7058$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7059if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7060  $as_echo_n "(cached) " >&6
7061else
7062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063/* end confdefs.h.  */
7064int i;
7065_ACEOF
7066if ac_fn_c_try_compile "$LINENO"; then :
7067  xorg_cv_cc_flag_unused_command_line_argument=yes
7068else
7069  xorg_cv_cc_flag_unused_command_line_argument=no
7070fi
7071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7072fi
7073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7074$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7075	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7076	CFLAGS="$xorg_testset_save_CFLAGS"
7077fi
7078
7079found="no"
7080
7081	if test $found = "no" ; then
7082		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7083			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7084		fi
7085
7086		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7087			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7088		fi
7089
7090		CFLAGS="$CFLAGS -Werror=nonnull"
7091
7092		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7093$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7094		cacheid=xorg_cv_cc_flag__Werror_nonnull
7095		if eval \${$cacheid+:} false; then :
7096  $as_echo_n "(cached) " >&6
7097else
7098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099/* end confdefs.h.  */
7100int i;
7101int
7102main ()
7103{
7104
7105  ;
7106  return 0;
7107}
7108_ACEOF
7109if ac_fn_c_try_link "$LINENO"; then :
7110  eval $cacheid=yes
7111else
7112  eval $cacheid=no
7113fi
7114rm -f core conftest.err conftest.$ac_objext \
7115    conftest$ac_exeext conftest.$ac_ext
7116fi
7117
7118
7119		CFLAGS="$xorg_testset_save_CFLAGS"
7120
7121		eval supported=\$$cacheid
7122		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7123$as_echo "$supported" >&6; }
7124		if test "$supported" = "yes" ; then
7125			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7126			found="yes"
7127		fi
7128	fi
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144xorg_testset_save_CFLAGS="$CFLAGS"
7145
7146if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7147	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7148	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7149$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7150if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7151  $as_echo_n "(cached) " >&6
7152else
7153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7154/* end confdefs.h.  */
7155int i;
7156_ACEOF
7157if ac_fn_c_try_compile "$LINENO"; then :
7158  xorg_cv_cc_flag_unknown_warning_option=yes
7159else
7160  xorg_cv_cc_flag_unknown_warning_option=no
7161fi
7162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7163fi
7164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7165$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7166	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7167	CFLAGS="$xorg_testset_save_CFLAGS"
7168fi
7169
7170if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7171	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7172		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7173	fi
7174	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7175	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7176$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7177if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7178  $as_echo_n "(cached) " >&6
7179else
7180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181/* end confdefs.h.  */
7182int i;
7183_ACEOF
7184if ac_fn_c_try_compile "$LINENO"; then :
7185  xorg_cv_cc_flag_unused_command_line_argument=yes
7186else
7187  xorg_cv_cc_flag_unused_command_line_argument=no
7188fi
7189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7190fi
7191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7192$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7193	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7194	CFLAGS="$xorg_testset_save_CFLAGS"
7195fi
7196
7197found="no"
7198
7199	if test $found = "no" ; then
7200		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7201			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7202		fi
7203
7204		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7205			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7206		fi
7207
7208		CFLAGS="$CFLAGS -Werror=init-self"
7209
7210		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7211$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7212		cacheid=xorg_cv_cc_flag__Werror_init_self
7213		if eval \${$cacheid+:} false; then :
7214  $as_echo_n "(cached) " >&6
7215else
7216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7217/* end confdefs.h.  */
7218int i;
7219int
7220main ()
7221{
7222
7223  ;
7224  return 0;
7225}
7226_ACEOF
7227if ac_fn_c_try_link "$LINENO"; then :
7228  eval $cacheid=yes
7229else
7230  eval $cacheid=no
7231fi
7232rm -f core conftest.err conftest.$ac_objext \
7233    conftest$ac_exeext conftest.$ac_ext
7234fi
7235
7236
7237		CFLAGS="$xorg_testset_save_CFLAGS"
7238
7239		eval supported=\$$cacheid
7240		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7241$as_echo "$supported" >&6; }
7242		if test "$supported" = "yes" ; then
7243			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7244			found="yes"
7245		fi
7246	fi
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262xorg_testset_save_CFLAGS="$CFLAGS"
7263
7264if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7265	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7266	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7267$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7268if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7269  $as_echo_n "(cached) " >&6
7270else
7271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7272/* end confdefs.h.  */
7273int i;
7274_ACEOF
7275if ac_fn_c_try_compile "$LINENO"; then :
7276  xorg_cv_cc_flag_unknown_warning_option=yes
7277else
7278  xorg_cv_cc_flag_unknown_warning_option=no
7279fi
7280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7281fi
7282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7283$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7284	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7285	CFLAGS="$xorg_testset_save_CFLAGS"
7286fi
7287
7288if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7289	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7290		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7291	fi
7292	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7293	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7294$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7295if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7296  $as_echo_n "(cached) " >&6
7297else
7298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299/* end confdefs.h.  */
7300int i;
7301_ACEOF
7302if ac_fn_c_try_compile "$LINENO"; then :
7303  xorg_cv_cc_flag_unused_command_line_argument=yes
7304else
7305  xorg_cv_cc_flag_unused_command_line_argument=no
7306fi
7307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7308fi
7309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7310$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7311	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7312	CFLAGS="$xorg_testset_save_CFLAGS"
7313fi
7314
7315found="no"
7316
7317	if test $found = "no" ; then
7318		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7319			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7320		fi
7321
7322		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7323			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7324		fi
7325
7326		CFLAGS="$CFLAGS -Werror=main"
7327
7328		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7329$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7330		cacheid=xorg_cv_cc_flag__Werror_main
7331		if eval \${$cacheid+:} false; then :
7332  $as_echo_n "(cached) " >&6
7333else
7334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7335/* end confdefs.h.  */
7336int i;
7337int
7338main ()
7339{
7340
7341  ;
7342  return 0;
7343}
7344_ACEOF
7345if ac_fn_c_try_link "$LINENO"; then :
7346  eval $cacheid=yes
7347else
7348  eval $cacheid=no
7349fi
7350rm -f core conftest.err conftest.$ac_objext \
7351    conftest$ac_exeext conftest.$ac_ext
7352fi
7353
7354
7355		CFLAGS="$xorg_testset_save_CFLAGS"
7356
7357		eval supported=\$$cacheid
7358		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7359$as_echo "$supported" >&6; }
7360		if test "$supported" = "yes" ; then
7361			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7362			found="yes"
7363		fi
7364	fi
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380xorg_testset_save_CFLAGS="$CFLAGS"
7381
7382if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7383	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7384	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7385$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7386if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7387  $as_echo_n "(cached) " >&6
7388else
7389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7390/* end confdefs.h.  */
7391int i;
7392_ACEOF
7393if ac_fn_c_try_compile "$LINENO"; then :
7394  xorg_cv_cc_flag_unknown_warning_option=yes
7395else
7396  xorg_cv_cc_flag_unknown_warning_option=no
7397fi
7398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7399fi
7400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7401$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7402	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7403	CFLAGS="$xorg_testset_save_CFLAGS"
7404fi
7405
7406if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7407	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7408		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7409	fi
7410	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7411	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7412$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7413if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7414  $as_echo_n "(cached) " >&6
7415else
7416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7417/* end confdefs.h.  */
7418int i;
7419_ACEOF
7420if ac_fn_c_try_compile "$LINENO"; then :
7421  xorg_cv_cc_flag_unused_command_line_argument=yes
7422else
7423  xorg_cv_cc_flag_unused_command_line_argument=no
7424fi
7425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7426fi
7427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7428$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7429	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7430	CFLAGS="$xorg_testset_save_CFLAGS"
7431fi
7432
7433found="no"
7434
7435	if test $found = "no" ; then
7436		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7437			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7438		fi
7439
7440		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7441			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7442		fi
7443
7444		CFLAGS="$CFLAGS -Werror=missing-braces"
7445
7446		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7447$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7448		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7449		if eval \${$cacheid+:} false; then :
7450  $as_echo_n "(cached) " >&6
7451else
7452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453/* end confdefs.h.  */
7454int i;
7455int
7456main ()
7457{
7458
7459  ;
7460  return 0;
7461}
7462_ACEOF
7463if ac_fn_c_try_link "$LINENO"; then :
7464  eval $cacheid=yes
7465else
7466  eval $cacheid=no
7467fi
7468rm -f core conftest.err conftest.$ac_objext \
7469    conftest$ac_exeext conftest.$ac_ext
7470fi
7471
7472
7473		CFLAGS="$xorg_testset_save_CFLAGS"
7474
7475		eval supported=\$$cacheid
7476		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7477$as_echo "$supported" >&6; }
7478		if test "$supported" = "yes" ; then
7479			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7480			found="yes"
7481		fi
7482	fi
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498xorg_testset_save_CFLAGS="$CFLAGS"
7499
7500if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7501	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7502	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7503$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7504if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7505  $as_echo_n "(cached) " >&6
7506else
7507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508/* end confdefs.h.  */
7509int i;
7510_ACEOF
7511if ac_fn_c_try_compile "$LINENO"; then :
7512  xorg_cv_cc_flag_unknown_warning_option=yes
7513else
7514  xorg_cv_cc_flag_unknown_warning_option=no
7515fi
7516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7517fi
7518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7519$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7520	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7521	CFLAGS="$xorg_testset_save_CFLAGS"
7522fi
7523
7524if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7525	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7526		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7527	fi
7528	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7529	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7530$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7531if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7532  $as_echo_n "(cached) " >&6
7533else
7534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535/* end confdefs.h.  */
7536int i;
7537_ACEOF
7538if ac_fn_c_try_compile "$LINENO"; then :
7539  xorg_cv_cc_flag_unused_command_line_argument=yes
7540else
7541  xorg_cv_cc_flag_unused_command_line_argument=no
7542fi
7543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7544fi
7545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7546$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7547	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7548	CFLAGS="$xorg_testset_save_CFLAGS"
7549fi
7550
7551found="no"
7552
7553	if test $found = "no" ; then
7554		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7555			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7556		fi
7557
7558		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7559			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7560		fi
7561
7562		CFLAGS="$CFLAGS -Werror=sequence-point"
7563
7564		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7565$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7566		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7567		if eval \${$cacheid+:} false; then :
7568  $as_echo_n "(cached) " >&6
7569else
7570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571/* end confdefs.h.  */
7572int i;
7573int
7574main ()
7575{
7576
7577  ;
7578  return 0;
7579}
7580_ACEOF
7581if ac_fn_c_try_link "$LINENO"; then :
7582  eval $cacheid=yes
7583else
7584  eval $cacheid=no
7585fi
7586rm -f core conftest.err conftest.$ac_objext \
7587    conftest$ac_exeext conftest.$ac_ext
7588fi
7589
7590
7591		CFLAGS="$xorg_testset_save_CFLAGS"
7592
7593		eval supported=\$$cacheid
7594		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7595$as_echo "$supported" >&6; }
7596		if test "$supported" = "yes" ; then
7597			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7598			found="yes"
7599		fi
7600	fi
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616xorg_testset_save_CFLAGS="$CFLAGS"
7617
7618if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7619	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7620	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7621$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7622if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7623  $as_echo_n "(cached) " >&6
7624else
7625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7626/* end confdefs.h.  */
7627int i;
7628_ACEOF
7629if ac_fn_c_try_compile "$LINENO"; then :
7630  xorg_cv_cc_flag_unknown_warning_option=yes
7631else
7632  xorg_cv_cc_flag_unknown_warning_option=no
7633fi
7634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7635fi
7636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7637$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7638	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7639	CFLAGS="$xorg_testset_save_CFLAGS"
7640fi
7641
7642if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7643	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7644		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7645	fi
7646	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7647	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7648$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7649if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7650  $as_echo_n "(cached) " >&6
7651else
7652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7653/* end confdefs.h.  */
7654int i;
7655_ACEOF
7656if ac_fn_c_try_compile "$LINENO"; then :
7657  xorg_cv_cc_flag_unused_command_line_argument=yes
7658else
7659  xorg_cv_cc_flag_unused_command_line_argument=no
7660fi
7661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7662fi
7663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7664$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7665	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7666	CFLAGS="$xorg_testset_save_CFLAGS"
7667fi
7668
7669found="no"
7670
7671	if test $found = "no" ; then
7672		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7673			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7674		fi
7675
7676		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7677			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7678		fi
7679
7680		CFLAGS="$CFLAGS -Werror=return-type"
7681
7682		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7683$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7684		cacheid=xorg_cv_cc_flag__Werror_return_type
7685		if eval \${$cacheid+:} false; then :
7686  $as_echo_n "(cached) " >&6
7687else
7688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689/* end confdefs.h.  */
7690int i;
7691int
7692main ()
7693{
7694
7695  ;
7696  return 0;
7697}
7698_ACEOF
7699if ac_fn_c_try_link "$LINENO"; then :
7700  eval $cacheid=yes
7701else
7702  eval $cacheid=no
7703fi
7704rm -f core conftest.err conftest.$ac_objext \
7705    conftest$ac_exeext conftest.$ac_ext
7706fi
7707
7708
7709		CFLAGS="$xorg_testset_save_CFLAGS"
7710
7711		eval supported=\$$cacheid
7712		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7713$as_echo "$supported" >&6; }
7714		if test "$supported" = "yes" ; then
7715			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7716			found="yes"
7717		fi
7718	fi
7719
7720	if test $found = "no" ; then
7721		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7722			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7723		fi
7724
7725		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7726			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7727		fi
7728
7729		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7730
7731		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7732$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7733		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7734		if eval \${$cacheid+:} false; then :
7735  $as_echo_n "(cached) " >&6
7736else
7737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7738/* end confdefs.h.  */
7739int i;
7740int
7741main ()
7742{
7743
7744  ;
7745  return 0;
7746}
7747_ACEOF
7748if ac_fn_c_try_link "$LINENO"; then :
7749  eval $cacheid=yes
7750else
7751  eval $cacheid=no
7752fi
7753rm -f core conftest.err conftest.$ac_objext \
7754    conftest$ac_exeext conftest.$ac_ext
7755fi
7756
7757
7758		CFLAGS="$xorg_testset_save_CFLAGS"
7759
7760		eval supported=\$$cacheid
7761		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7762$as_echo "$supported" >&6; }
7763		if test "$supported" = "yes" ; then
7764			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7765			found="yes"
7766		fi
7767	fi
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783xorg_testset_save_CFLAGS="$CFLAGS"
7784
7785if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7786	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7787	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7788$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7789if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7790  $as_echo_n "(cached) " >&6
7791else
7792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7793/* end confdefs.h.  */
7794int i;
7795_ACEOF
7796if ac_fn_c_try_compile "$LINENO"; then :
7797  xorg_cv_cc_flag_unknown_warning_option=yes
7798else
7799  xorg_cv_cc_flag_unknown_warning_option=no
7800fi
7801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7802fi
7803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7804$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7805	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7806	CFLAGS="$xorg_testset_save_CFLAGS"
7807fi
7808
7809if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7810	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7811		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7812	fi
7813	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7814	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7815$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7816if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7817  $as_echo_n "(cached) " >&6
7818else
7819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7820/* end confdefs.h.  */
7821int i;
7822_ACEOF
7823if ac_fn_c_try_compile "$LINENO"; then :
7824  xorg_cv_cc_flag_unused_command_line_argument=yes
7825else
7826  xorg_cv_cc_flag_unused_command_line_argument=no
7827fi
7828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7829fi
7830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7831$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7832	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7833	CFLAGS="$xorg_testset_save_CFLAGS"
7834fi
7835
7836found="no"
7837
7838	if test $found = "no" ; then
7839		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7840			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7841		fi
7842
7843		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7844			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7845		fi
7846
7847		CFLAGS="$CFLAGS -Werror=trigraphs"
7848
7849		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7850$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7851		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7852		if eval \${$cacheid+:} false; then :
7853  $as_echo_n "(cached) " >&6
7854else
7855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856/* end confdefs.h.  */
7857int i;
7858int
7859main ()
7860{
7861
7862  ;
7863  return 0;
7864}
7865_ACEOF
7866if ac_fn_c_try_link "$LINENO"; then :
7867  eval $cacheid=yes
7868else
7869  eval $cacheid=no
7870fi
7871rm -f core conftest.err conftest.$ac_objext \
7872    conftest$ac_exeext conftest.$ac_ext
7873fi
7874
7875
7876		CFLAGS="$xorg_testset_save_CFLAGS"
7877
7878		eval supported=\$$cacheid
7879		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7880$as_echo "$supported" >&6; }
7881		if test "$supported" = "yes" ; then
7882			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7883			found="yes"
7884		fi
7885	fi
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901xorg_testset_save_CFLAGS="$CFLAGS"
7902
7903if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7904	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7905	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7906$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7907if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7908  $as_echo_n "(cached) " >&6
7909else
7910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7911/* end confdefs.h.  */
7912int i;
7913_ACEOF
7914if ac_fn_c_try_compile "$LINENO"; then :
7915  xorg_cv_cc_flag_unknown_warning_option=yes
7916else
7917  xorg_cv_cc_flag_unknown_warning_option=no
7918fi
7919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7920fi
7921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7922$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7923	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7924	CFLAGS="$xorg_testset_save_CFLAGS"
7925fi
7926
7927if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7928	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7929		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7930	fi
7931	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7932	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7933$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7934if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7935  $as_echo_n "(cached) " >&6
7936else
7937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938/* end confdefs.h.  */
7939int i;
7940_ACEOF
7941if ac_fn_c_try_compile "$LINENO"; then :
7942  xorg_cv_cc_flag_unused_command_line_argument=yes
7943else
7944  xorg_cv_cc_flag_unused_command_line_argument=no
7945fi
7946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7947fi
7948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7949$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7950	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7951	CFLAGS="$xorg_testset_save_CFLAGS"
7952fi
7953
7954found="no"
7955
7956	if test $found = "no" ; then
7957		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7958			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7959		fi
7960
7961		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7962			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7963		fi
7964
7965		CFLAGS="$CFLAGS -Werror=array-bounds"
7966
7967		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7968$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7969		cacheid=xorg_cv_cc_flag__Werror_array_bounds
7970		if eval \${$cacheid+:} false; then :
7971  $as_echo_n "(cached) " >&6
7972else
7973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974/* end confdefs.h.  */
7975int i;
7976int
7977main ()
7978{
7979
7980  ;
7981  return 0;
7982}
7983_ACEOF
7984if ac_fn_c_try_link "$LINENO"; then :
7985  eval $cacheid=yes
7986else
7987  eval $cacheid=no
7988fi
7989rm -f core conftest.err conftest.$ac_objext \
7990    conftest$ac_exeext conftest.$ac_ext
7991fi
7992
7993
7994		CFLAGS="$xorg_testset_save_CFLAGS"
7995
7996		eval supported=\$$cacheid
7997		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7998$as_echo "$supported" >&6; }
7999		if test "$supported" = "yes" ; then
8000			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8001			found="yes"
8002		fi
8003	fi
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019xorg_testset_save_CFLAGS="$CFLAGS"
8020
8021if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8022	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8023	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8024$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8025if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8026  $as_echo_n "(cached) " >&6
8027else
8028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029/* end confdefs.h.  */
8030int i;
8031_ACEOF
8032if ac_fn_c_try_compile "$LINENO"; then :
8033  xorg_cv_cc_flag_unknown_warning_option=yes
8034else
8035  xorg_cv_cc_flag_unknown_warning_option=no
8036fi
8037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8038fi
8039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8040$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8041	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8042	CFLAGS="$xorg_testset_save_CFLAGS"
8043fi
8044
8045if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8046	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8047		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8048	fi
8049	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8050	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8051$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8052if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8053  $as_echo_n "(cached) " >&6
8054else
8055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056/* end confdefs.h.  */
8057int i;
8058_ACEOF
8059if ac_fn_c_try_compile "$LINENO"; then :
8060  xorg_cv_cc_flag_unused_command_line_argument=yes
8061else
8062  xorg_cv_cc_flag_unused_command_line_argument=no
8063fi
8064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065fi
8066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8067$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8068	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8069	CFLAGS="$xorg_testset_save_CFLAGS"
8070fi
8071
8072found="no"
8073
8074	if test $found = "no" ; then
8075		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8076			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8077		fi
8078
8079		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8080			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8081		fi
8082
8083		CFLAGS="$CFLAGS -Werror=write-strings"
8084
8085		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8086$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8087		cacheid=xorg_cv_cc_flag__Werror_write_strings
8088		if eval \${$cacheid+:} false; then :
8089  $as_echo_n "(cached) " >&6
8090else
8091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092/* end confdefs.h.  */
8093int i;
8094int
8095main ()
8096{
8097
8098  ;
8099  return 0;
8100}
8101_ACEOF
8102if ac_fn_c_try_link "$LINENO"; then :
8103  eval $cacheid=yes
8104else
8105  eval $cacheid=no
8106fi
8107rm -f core conftest.err conftest.$ac_objext \
8108    conftest$ac_exeext conftest.$ac_ext
8109fi
8110
8111
8112		CFLAGS="$xorg_testset_save_CFLAGS"
8113
8114		eval supported=\$$cacheid
8115		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8116$as_echo "$supported" >&6; }
8117		if test "$supported" = "yes" ; then
8118			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8119			found="yes"
8120		fi
8121	fi
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137xorg_testset_save_CFLAGS="$CFLAGS"
8138
8139if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8140	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8141	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8142$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8143if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8144  $as_echo_n "(cached) " >&6
8145else
8146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8147/* end confdefs.h.  */
8148int i;
8149_ACEOF
8150if ac_fn_c_try_compile "$LINENO"; then :
8151  xorg_cv_cc_flag_unknown_warning_option=yes
8152else
8153  xorg_cv_cc_flag_unknown_warning_option=no
8154fi
8155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8156fi
8157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8158$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8159	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8160	CFLAGS="$xorg_testset_save_CFLAGS"
8161fi
8162
8163if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8164	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8165		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8166	fi
8167	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8168	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8169$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8170if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8171  $as_echo_n "(cached) " >&6
8172else
8173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8174/* end confdefs.h.  */
8175int i;
8176_ACEOF
8177if ac_fn_c_try_compile "$LINENO"; then :
8178  xorg_cv_cc_flag_unused_command_line_argument=yes
8179else
8180  xorg_cv_cc_flag_unused_command_line_argument=no
8181fi
8182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8183fi
8184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8185$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8186	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8187	CFLAGS="$xorg_testset_save_CFLAGS"
8188fi
8189
8190found="no"
8191
8192	if test $found = "no" ; then
8193		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8194			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8195		fi
8196
8197		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8198			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8199		fi
8200
8201		CFLAGS="$CFLAGS -Werror=address"
8202
8203		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8204$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8205		cacheid=xorg_cv_cc_flag__Werror_address
8206		if eval \${$cacheid+:} false; then :
8207  $as_echo_n "(cached) " >&6
8208else
8209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8210/* end confdefs.h.  */
8211int i;
8212int
8213main ()
8214{
8215
8216  ;
8217  return 0;
8218}
8219_ACEOF
8220if ac_fn_c_try_link "$LINENO"; then :
8221  eval $cacheid=yes
8222else
8223  eval $cacheid=no
8224fi
8225rm -f core conftest.err conftest.$ac_objext \
8226    conftest$ac_exeext conftest.$ac_ext
8227fi
8228
8229
8230		CFLAGS="$xorg_testset_save_CFLAGS"
8231
8232		eval supported=\$$cacheid
8233		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8234$as_echo "$supported" >&6; }
8235		if test "$supported" = "yes" ; then
8236			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8237			found="yes"
8238		fi
8239	fi
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255xorg_testset_save_CFLAGS="$CFLAGS"
8256
8257if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8258	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8259	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8260$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8261if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8262  $as_echo_n "(cached) " >&6
8263else
8264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8265/* end confdefs.h.  */
8266int i;
8267_ACEOF
8268if ac_fn_c_try_compile "$LINENO"; then :
8269  xorg_cv_cc_flag_unknown_warning_option=yes
8270else
8271  xorg_cv_cc_flag_unknown_warning_option=no
8272fi
8273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8274fi
8275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8276$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8277	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8278	CFLAGS="$xorg_testset_save_CFLAGS"
8279fi
8280
8281if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8282	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8283		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8284	fi
8285	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8286	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8287$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8288if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8289  $as_echo_n "(cached) " >&6
8290else
8291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8292/* end confdefs.h.  */
8293int i;
8294_ACEOF
8295if ac_fn_c_try_compile "$LINENO"; then :
8296  xorg_cv_cc_flag_unused_command_line_argument=yes
8297else
8298  xorg_cv_cc_flag_unused_command_line_argument=no
8299fi
8300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8301fi
8302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8303$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8304	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8305	CFLAGS="$xorg_testset_save_CFLAGS"
8306fi
8307
8308found="no"
8309
8310	if test $found = "no" ; then
8311		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8312			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8313		fi
8314
8315		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8316			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8317		fi
8318
8319		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8320
8321		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8322$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8323		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8324		if eval \${$cacheid+:} false; then :
8325  $as_echo_n "(cached) " >&6
8326else
8327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328/* end confdefs.h.  */
8329int i;
8330int
8331main ()
8332{
8333
8334  ;
8335  return 0;
8336}
8337_ACEOF
8338if ac_fn_c_try_link "$LINENO"; then :
8339  eval $cacheid=yes
8340else
8341  eval $cacheid=no
8342fi
8343rm -f core conftest.err conftest.$ac_objext \
8344    conftest$ac_exeext conftest.$ac_ext
8345fi
8346
8347
8348		CFLAGS="$xorg_testset_save_CFLAGS"
8349
8350		eval supported=\$$cacheid
8351		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8352$as_echo "$supported" >&6; }
8353		if test "$supported" = "yes" ; then
8354			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8355			found="yes"
8356		fi
8357	fi
8358
8359	if test $found = "no" ; then
8360		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8361			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8362		fi
8363
8364		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8365			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8366		fi
8367
8368		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8369
8370		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8371$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8372		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8373		if eval \${$cacheid+:} false; then :
8374  $as_echo_n "(cached) " >&6
8375else
8376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377/* end confdefs.h.  */
8378int i;
8379int
8380main ()
8381{
8382
8383  ;
8384  return 0;
8385}
8386_ACEOF
8387if ac_fn_c_try_link "$LINENO"; then :
8388  eval $cacheid=yes
8389else
8390  eval $cacheid=no
8391fi
8392rm -f core conftest.err conftest.$ac_objext \
8393    conftest$ac_exeext conftest.$ac_ext
8394fi
8395
8396
8397		CFLAGS="$xorg_testset_save_CFLAGS"
8398
8399		eval supported=\$$cacheid
8400		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8401$as_echo "$supported" >&6; }
8402		if test "$supported" = "yes" ; then
8403			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8404			found="yes"
8405		fi
8406	fi
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422xorg_testset_save_CFLAGS="$CFLAGS"
8423
8424if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8425	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8426	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8427$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8428if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8429  $as_echo_n "(cached) " >&6
8430else
8431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8432/* end confdefs.h.  */
8433int i;
8434_ACEOF
8435if ac_fn_c_try_compile "$LINENO"; then :
8436  xorg_cv_cc_flag_unknown_warning_option=yes
8437else
8438  xorg_cv_cc_flag_unknown_warning_option=no
8439fi
8440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8441fi
8442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8443$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8444	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8445	CFLAGS="$xorg_testset_save_CFLAGS"
8446fi
8447
8448if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8449	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8450		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8451	fi
8452	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8453	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8454$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8455if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8456  $as_echo_n "(cached) " >&6
8457else
8458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459/* end confdefs.h.  */
8460int i;
8461_ACEOF
8462if ac_fn_c_try_compile "$LINENO"; then :
8463  xorg_cv_cc_flag_unused_command_line_argument=yes
8464else
8465  xorg_cv_cc_flag_unused_command_line_argument=no
8466fi
8467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8468fi
8469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8470$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8471	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8472	CFLAGS="$xorg_testset_save_CFLAGS"
8473fi
8474
8475found="no"
8476
8477	if test $found = "no" ; then
8478		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8479			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8480		fi
8481
8482		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8483			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8484		fi
8485
8486		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8487
8488		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8489$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8490		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8491		if eval \${$cacheid+:} false; then :
8492  $as_echo_n "(cached) " >&6
8493else
8494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495/* end confdefs.h.  */
8496int i;
8497int
8498main ()
8499{
8500
8501  ;
8502  return 0;
8503}
8504_ACEOF
8505if ac_fn_c_try_link "$LINENO"; then :
8506  eval $cacheid=yes
8507else
8508  eval $cacheid=no
8509fi
8510rm -f core conftest.err conftest.$ac_objext \
8511    conftest$ac_exeext conftest.$ac_ext
8512fi
8513
8514
8515		CFLAGS="$xorg_testset_save_CFLAGS"
8516
8517		eval supported=\$$cacheid
8518		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8519$as_echo "$supported" >&6; }
8520		if test "$supported" = "yes" ; then
8521			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8522			found="yes"
8523		fi
8524	fi
8525
8526 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8527else
8528{ $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
8529$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;}
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543xorg_testset_save_CFLAGS="$CFLAGS"
8544
8545if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8546	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8547	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8548$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8549if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8550  $as_echo_n "(cached) " >&6
8551else
8552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8553/* end confdefs.h.  */
8554int i;
8555_ACEOF
8556if ac_fn_c_try_compile "$LINENO"; then :
8557  xorg_cv_cc_flag_unknown_warning_option=yes
8558else
8559  xorg_cv_cc_flag_unknown_warning_option=no
8560fi
8561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8562fi
8563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8564$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8565	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8566	CFLAGS="$xorg_testset_save_CFLAGS"
8567fi
8568
8569if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8570	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8571		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8572	fi
8573	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8574	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8575$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8576if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8577  $as_echo_n "(cached) " >&6
8578else
8579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580/* end confdefs.h.  */
8581int i;
8582_ACEOF
8583if ac_fn_c_try_compile "$LINENO"; then :
8584  xorg_cv_cc_flag_unused_command_line_argument=yes
8585else
8586  xorg_cv_cc_flag_unused_command_line_argument=no
8587fi
8588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8589fi
8590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8591$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8592	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8593	CFLAGS="$xorg_testset_save_CFLAGS"
8594fi
8595
8596found="no"
8597
8598	if test $found = "no" ; then
8599		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8600			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8601		fi
8602
8603		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8604			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8605		fi
8606
8607		CFLAGS="$CFLAGS -Wimplicit"
8608
8609		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8610$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8611		cacheid=xorg_cv_cc_flag__Wimplicit
8612		if eval \${$cacheid+:} false; then :
8613  $as_echo_n "(cached) " >&6
8614else
8615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8616/* end confdefs.h.  */
8617int i;
8618int
8619main ()
8620{
8621
8622  ;
8623  return 0;
8624}
8625_ACEOF
8626if ac_fn_c_try_link "$LINENO"; then :
8627  eval $cacheid=yes
8628else
8629  eval $cacheid=no
8630fi
8631rm -f core conftest.err conftest.$ac_objext \
8632    conftest$ac_exeext conftest.$ac_ext
8633fi
8634
8635
8636		CFLAGS="$xorg_testset_save_CFLAGS"
8637
8638		eval supported=\$$cacheid
8639		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8640$as_echo "$supported" >&6; }
8641		if test "$supported" = "yes" ; then
8642			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8643			found="yes"
8644		fi
8645	fi
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661xorg_testset_save_CFLAGS="$CFLAGS"
8662
8663if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8664	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8665	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8666$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8667if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8668  $as_echo_n "(cached) " >&6
8669else
8670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8671/* end confdefs.h.  */
8672int i;
8673_ACEOF
8674if ac_fn_c_try_compile "$LINENO"; then :
8675  xorg_cv_cc_flag_unknown_warning_option=yes
8676else
8677  xorg_cv_cc_flag_unknown_warning_option=no
8678fi
8679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8680fi
8681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8682$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8683	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8684	CFLAGS="$xorg_testset_save_CFLAGS"
8685fi
8686
8687if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8688	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8689		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8690	fi
8691	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8692	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8693$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8694if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8695  $as_echo_n "(cached) " >&6
8696else
8697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8698/* end confdefs.h.  */
8699int i;
8700_ACEOF
8701if ac_fn_c_try_compile "$LINENO"; then :
8702  xorg_cv_cc_flag_unused_command_line_argument=yes
8703else
8704  xorg_cv_cc_flag_unused_command_line_argument=no
8705fi
8706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8707fi
8708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8709$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8710	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8711	CFLAGS="$xorg_testset_save_CFLAGS"
8712fi
8713
8714found="no"
8715
8716	if test $found = "no" ; then
8717		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8718			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8719		fi
8720
8721		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8722			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8723		fi
8724
8725		CFLAGS="$CFLAGS -Wnonnull"
8726
8727		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8728$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8729		cacheid=xorg_cv_cc_flag__Wnonnull
8730		if eval \${$cacheid+:} false; then :
8731  $as_echo_n "(cached) " >&6
8732else
8733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8734/* end confdefs.h.  */
8735int i;
8736int
8737main ()
8738{
8739
8740  ;
8741  return 0;
8742}
8743_ACEOF
8744if ac_fn_c_try_link "$LINENO"; then :
8745  eval $cacheid=yes
8746else
8747  eval $cacheid=no
8748fi
8749rm -f core conftest.err conftest.$ac_objext \
8750    conftest$ac_exeext conftest.$ac_ext
8751fi
8752
8753
8754		CFLAGS="$xorg_testset_save_CFLAGS"
8755
8756		eval supported=\$$cacheid
8757		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8758$as_echo "$supported" >&6; }
8759		if test "$supported" = "yes" ; then
8760			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8761			found="yes"
8762		fi
8763	fi
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779xorg_testset_save_CFLAGS="$CFLAGS"
8780
8781if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8782	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8783	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8784$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8785if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8786  $as_echo_n "(cached) " >&6
8787else
8788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8789/* end confdefs.h.  */
8790int i;
8791_ACEOF
8792if ac_fn_c_try_compile "$LINENO"; then :
8793  xorg_cv_cc_flag_unknown_warning_option=yes
8794else
8795  xorg_cv_cc_flag_unknown_warning_option=no
8796fi
8797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8798fi
8799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8800$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8801	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8802	CFLAGS="$xorg_testset_save_CFLAGS"
8803fi
8804
8805if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8806	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8807		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8808	fi
8809	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8810	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8811$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8812if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8813  $as_echo_n "(cached) " >&6
8814else
8815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8816/* end confdefs.h.  */
8817int i;
8818_ACEOF
8819if ac_fn_c_try_compile "$LINENO"; then :
8820  xorg_cv_cc_flag_unused_command_line_argument=yes
8821else
8822  xorg_cv_cc_flag_unused_command_line_argument=no
8823fi
8824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8825fi
8826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8827$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8828	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8829	CFLAGS="$xorg_testset_save_CFLAGS"
8830fi
8831
8832found="no"
8833
8834	if test $found = "no" ; then
8835		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8836			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8837		fi
8838
8839		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8840			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8841		fi
8842
8843		CFLAGS="$CFLAGS -Winit-self"
8844
8845		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8846$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8847		cacheid=xorg_cv_cc_flag__Winit_self
8848		if eval \${$cacheid+:} false; then :
8849  $as_echo_n "(cached) " >&6
8850else
8851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8852/* end confdefs.h.  */
8853int i;
8854int
8855main ()
8856{
8857
8858  ;
8859  return 0;
8860}
8861_ACEOF
8862if ac_fn_c_try_link "$LINENO"; then :
8863  eval $cacheid=yes
8864else
8865  eval $cacheid=no
8866fi
8867rm -f core conftest.err conftest.$ac_objext \
8868    conftest$ac_exeext conftest.$ac_ext
8869fi
8870
8871
8872		CFLAGS="$xorg_testset_save_CFLAGS"
8873
8874		eval supported=\$$cacheid
8875		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8876$as_echo "$supported" >&6; }
8877		if test "$supported" = "yes" ; then
8878			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8879			found="yes"
8880		fi
8881	fi
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897xorg_testset_save_CFLAGS="$CFLAGS"
8898
8899if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8900	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8901	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8902$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8903if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8904  $as_echo_n "(cached) " >&6
8905else
8906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907/* end confdefs.h.  */
8908int i;
8909_ACEOF
8910if ac_fn_c_try_compile "$LINENO"; then :
8911  xorg_cv_cc_flag_unknown_warning_option=yes
8912else
8913  xorg_cv_cc_flag_unknown_warning_option=no
8914fi
8915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8916fi
8917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8918$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8919	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8920	CFLAGS="$xorg_testset_save_CFLAGS"
8921fi
8922
8923if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8924	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8925		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8926	fi
8927	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8928	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8929$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8930if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8931  $as_echo_n "(cached) " >&6
8932else
8933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8934/* end confdefs.h.  */
8935int i;
8936_ACEOF
8937if ac_fn_c_try_compile "$LINENO"; then :
8938  xorg_cv_cc_flag_unused_command_line_argument=yes
8939else
8940  xorg_cv_cc_flag_unused_command_line_argument=no
8941fi
8942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8943fi
8944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8945$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8946	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8947	CFLAGS="$xorg_testset_save_CFLAGS"
8948fi
8949
8950found="no"
8951
8952	if test $found = "no" ; then
8953		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8954			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8955		fi
8956
8957		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8958			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8959		fi
8960
8961		CFLAGS="$CFLAGS -Wmain"
8962
8963		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8964$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8965		cacheid=xorg_cv_cc_flag__Wmain
8966		if eval \${$cacheid+:} false; then :
8967  $as_echo_n "(cached) " >&6
8968else
8969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8970/* end confdefs.h.  */
8971int i;
8972int
8973main ()
8974{
8975
8976  ;
8977  return 0;
8978}
8979_ACEOF
8980if ac_fn_c_try_link "$LINENO"; then :
8981  eval $cacheid=yes
8982else
8983  eval $cacheid=no
8984fi
8985rm -f core conftest.err conftest.$ac_objext \
8986    conftest$ac_exeext conftest.$ac_ext
8987fi
8988
8989
8990		CFLAGS="$xorg_testset_save_CFLAGS"
8991
8992		eval supported=\$$cacheid
8993		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8994$as_echo "$supported" >&6; }
8995		if test "$supported" = "yes" ; then
8996			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8997			found="yes"
8998		fi
8999	fi
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015xorg_testset_save_CFLAGS="$CFLAGS"
9016
9017if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9018	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9019	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9020$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9021if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9022  $as_echo_n "(cached) " >&6
9023else
9024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9025/* end confdefs.h.  */
9026int i;
9027_ACEOF
9028if ac_fn_c_try_compile "$LINENO"; then :
9029  xorg_cv_cc_flag_unknown_warning_option=yes
9030else
9031  xorg_cv_cc_flag_unknown_warning_option=no
9032fi
9033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9034fi
9035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9036$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9037	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9038	CFLAGS="$xorg_testset_save_CFLAGS"
9039fi
9040
9041if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9042	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9043		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9044	fi
9045	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9046	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9047$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9048if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9049  $as_echo_n "(cached) " >&6
9050else
9051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9052/* end confdefs.h.  */
9053int i;
9054_ACEOF
9055if ac_fn_c_try_compile "$LINENO"; then :
9056  xorg_cv_cc_flag_unused_command_line_argument=yes
9057else
9058  xorg_cv_cc_flag_unused_command_line_argument=no
9059fi
9060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9061fi
9062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9063$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9064	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9065	CFLAGS="$xorg_testset_save_CFLAGS"
9066fi
9067
9068found="no"
9069
9070	if test $found = "no" ; then
9071		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9072			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9073		fi
9074
9075		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9076			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9077		fi
9078
9079		CFLAGS="$CFLAGS -Wmissing-braces"
9080
9081		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9082$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9083		cacheid=xorg_cv_cc_flag__Wmissing_braces
9084		if eval \${$cacheid+:} false; then :
9085  $as_echo_n "(cached) " >&6
9086else
9087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088/* end confdefs.h.  */
9089int i;
9090int
9091main ()
9092{
9093
9094  ;
9095  return 0;
9096}
9097_ACEOF
9098if ac_fn_c_try_link "$LINENO"; then :
9099  eval $cacheid=yes
9100else
9101  eval $cacheid=no
9102fi
9103rm -f core conftest.err conftest.$ac_objext \
9104    conftest$ac_exeext conftest.$ac_ext
9105fi
9106
9107
9108		CFLAGS="$xorg_testset_save_CFLAGS"
9109
9110		eval supported=\$$cacheid
9111		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9112$as_echo "$supported" >&6; }
9113		if test "$supported" = "yes" ; then
9114			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9115			found="yes"
9116		fi
9117	fi
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133xorg_testset_save_CFLAGS="$CFLAGS"
9134
9135if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9136	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9137	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9138$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9139if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9140  $as_echo_n "(cached) " >&6
9141else
9142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9143/* end confdefs.h.  */
9144int i;
9145_ACEOF
9146if ac_fn_c_try_compile "$LINENO"; then :
9147  xorg_cv_cc_flag_unknown_warning_option=yes
9148else
9149  xorg_cv_cc_flag_unknown_warning_option=no
9150fi
9151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9152fi
9153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9154$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9155	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9156	CFLAGS="$xorg_testset_save_CFLAGS"
9157fi
9158
9159if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9160	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9161		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9162	fi
9163	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9164	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9165$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9166if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9167  $as_echo_n "(cached) " >&6
9168else
9169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9170/* end confdefs.h.  */
9171int i;
9172_ACEOF
9173if ac_fn_c_try_compile "$LINENO"; then :
9174  xorg_cv_cc_flag_unused_command_line_argument=yes
9175else
9176  xorg_cv_cc_flag_unused_command_line_argument=no
9177fi
9178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9179fi
9180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9181$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9182	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9183	CFLAGS="$xorg_testset_save_CFLAGS"
9184fi
9185
9186found="no"
9187
9188	if test $found = "no" ; then
9189		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9190			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9191		fi
9192
9193		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9194			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9195		fi
9196
9197		CFLAGS="$CFLAGS -Wsequence-point"
9198
9199		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9200$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9201		cacheid=xorg_cv_cc_flag__Wsequence_point
9202		if eval \${$cacheid+:} false; then :
9203  $as_echo_n "(cached) " >&6
9204else
9205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206/* end confdefs.h.  */
9207int i;
9208int
9209main ()
9210{
9211
9212  ;
9213  return 0;
9214}
9215_ACEOF
9216if ac_fn_c_try_link "$LINENO"; then :
9217  eval $cacheid=yes
9218else
9219  eval $cacheid=no
9220fi
9221rm -f core conftest.err conftest.$ac_objext \
9222    conftest$ac_exeext conftest.$ac_ext
9223fi
9224
9225
9226		CFLAGS="$xorg_testset_save_CFLAGS"
9227
9228		eval supported=\$$cacheid
9229		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9230$as_echo "$supported" >&6; }
9231		if test "$supported" = "yes" ; then
9232			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9233			found="yes"
9234		fi
9235	fi
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251xorg_testset_save_CFLAGS="$CFLAGS"
9252
9253if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9254	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9255	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9256$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9257if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9258  $as_echo_n "(cached) " >&6
9259else
9260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9261/* end confdefs.h.  */
9262int i;
9263_ACEOF
9264if ac_fn_c_try_compile "$LINENO"; then :
9265  xorg_cv_cc_flag_unknown_warning_option=yes
9266else
9267  xorg_cv_cc_flag_unknown_warning_option=no
9268fi
9269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9270fi
9271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9272$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9273	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9274	CFLAGS="$xorg_testset_save_CFLAGS"
9275fi
9276
9277if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9278	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9279		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9280	fi
9281	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9282	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9283$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9284if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9285  $as_echo_n "(cached) " >&6
9286else
9287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9288/* end confdefs.h.  */
9289int i;
9290_ACEOF
9291if ac_fn_c_try_compile "$LINENO"; then :
9292  xorg_cv_cc_flag_unused_command_line_argument=yes
9293else
9294  xorg_cv_cc_flag_unused_command_line_argument=no
9295fi
9296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9297fi
9298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9299$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9300	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9301	CFLAGS="$xorg_testset_save_CFLAGS"
9302fi
9303
9304found="no"
9305
9306	if test $found = "no" ; then
9307		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9308			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9309		fi
9310
9311		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9312			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9313		fi
9314
9315		CFLAGS="$CFLAGS -Wreturn-type"
9316
9317		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9318$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9319		cacheid=xorg_cv_cc_flag__Wreturn_type
9320		if eval \${$cacheid+:} false; then :
9321  $as_echo_n "(cached) " >&6
9322else
9323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324/* end confdefs.h.  */
9325int i;
9326int
9327main ()
9328{
9329
9330  ;
9331  return 0;
9332}
9333_ACEOF
9334if ac_fn_c_try_link "$LINENO"; then :
9335  eval $cacheid=yes
9336else
9337  eval $cacheid=no
9338fi
9339rm -f core conftest.err conftest.$ac_objext \
9340    conftest$ac_exeext conftest.$ac_ext
9341fi
9342
9343
9344		CFLAGS="$xorg_testset_save_CFLAGS"
9345
9346		eval supported=\$$cacheid
9347		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9348$as_echo "$supported" >&6; }
9349		if test "$supported" = "yes" ; then
9350			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9351			found="yes"
9352		fi
9353	fi
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369xorg_testset_save_CFLAGS="$CFLAGS"
9370
9371if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9372	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9373	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9374$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9375if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9376  $as_echo_n "(cached) " >&6
9377else
9378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9379/* end confdefs.h.  */
9380int i;
9381_ACEOF
9382if ac_fn_c_try_compile "$LINENO"; then :
9383  xorg_cv_cc_flag_unknown_warning_option=yes
9384else
9385  xorg_cv_cc_flag_unknown_warning_option=no
9386fi
9387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9388fi
9389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9390$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9391	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9392	CFLAGS="$xorg_testset_save_CFLAGS"
9393fi
9394
9395if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9396	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9397		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9398	fi
9399	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9400	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9401$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9402if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9403  $as_echo_n "(cached) " >&6
9404else
9405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9406/* end confdefs.h.  */
9407int i;
9408_ACEOF
9409if ac_fn_c_try_compile "$LINENO"; then :
9410  xorg_cv_cc_flag_unused_command_line_argument=yes
9411else
9412  xorg_cv_cc_flag_unused_command_line_argument=no
9413fi
9414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9415fi
9416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9417$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9418	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9419	CFLAGS="$xorg_testset_save_CFLAGS"
9420fi
9421
9422found="no"
9423
9424	if test $found = "no" ; then
9425		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9426			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9427		fi
9428
9429		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9430			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9431		fi
9432
9433		CFLAGS="$CFLAGS -Wtrigraphs"
9434
9435		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9436$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9437		cacheid=xorg_cv_cc_flag__Wtrigraphs
9438		if eval \${$cacheid+:} false; then :
9439  $as_echo_n "(cached) " >&6
9440else
9441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9442/* end confdefs.h.  */
9443int i;
9444int
9445main ()
9446{
9447
9448  ;
9449  return 0;
9450}
9451_ACEOF
9452if ac_fn_c_try_link "$LINENO"; then :
9453  eval $cacheid=yes
9454else
9455  eval $cacheid=no
9456fi
9457rm -f core conftest.err conftest.$ac_objext \
9458    conftest$ac_exeext conftest.$ac_ext
9459fi
9460
9461
9462		CFLAGS="$xorg_testset_save_CFLAGS"
9463
9464		eval supported=\$$cacheid
9465		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9466$as_echo "$supported" >&6; }
9467		if test "$supported" = "yes" ; then
9468			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9469			found="yes"
9470		fi
9471	fi
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487xorg_testset_save_CFLAGS="$CFLAGS"
9488
9489if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9490	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9491	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9492$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9493if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9494  $as_echo_n "(cached) " >&6
9495else
9496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497/* end confdefs.h.  */
9498int i;
9499_ACEOF
9500if ac_fn_c_try_compile "$LINENO"; then :
9501  xorg_cv_cc_flag_unknown_warning_option=yes
9502else
9503  xorg_cv_cc_flag_unknown_warning_option=no
9504fi
9505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9506fi
9507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9508$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9509	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9510	CFLAGS="$xorg_testset_save_CFLAGS"
9511fi
9512
9513if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9514	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9515		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9516	fi
9517	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9518	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9519$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9520if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9521  $as_echo_n "(cached) " >&6
9522else
9523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9524/* end confdefs.h.  */
9525int i;
9526_ACEOF
9527if ac_fn_c_try_compile "$LINENO"; then :
9528  xorg_cv_cc_flag_unused_command_line_argument=yes
9529else
9530  xorg_cv_cc_flag_unused_command_line_argument=no
9531fi
9532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9533fi
9534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9535$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9536	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9537	CFLAGS="$xorg_testset_save_CFLAGS"
9538fi
9539
9540found="no"
9541
9542	if test $found = "no" ; then
9543		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9544			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9545		fi
9546
9547		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9548			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9549		fi
9550
9551		CFLAGS="$CFLAGS -Warray-bounds"
9552
9553		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9554$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9555		cacheid=xorg_cv_cc_flag__Warray_bounds
9556		if eval \${$cacheid+:} false; then :
9557  $as_echo_n "(cached) " >&6
9558else
9559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9560/* end confdefs.h.  */
9561int i;
9562int
9563main ()
9564{
9565
9566  ;
9567  return 0;
9568}
9569_ACEOF
9570if ac_fn_c_try_link "$LINENO"; then :
9571  eval $cacheid=yes
9572else
9573  eval $cacheid=no
9574fi
9575rm -f core conftest.err conftest.$ac_objext \
9576    conftest$ac_exeext conftest.$ac_ext
9577fi
9578
9579
9580		CFLAGS="$xorg_testset_save_CFLAGS"
9581
9582		eval supported=\$$cacheid
9583		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9584$as_echo "$supported" >&6; }
9585		if test "$supported" = "yes" ; then
9586			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9587			found="yes"
9588		fi
9589	fi
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605xorg_testset_save_CFLAGS="$CFLAGS"
9606
9607if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9608	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9609	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9610$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9611if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9612  $as_echo_n "(cached) " >&6
9613else
9614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9615/* end confdefs.h.  */
9616int i;
9617_ACEOF
9618if ac_fn_c_try_compile "$LINENO"; then :
9619  xorg_cv_cc_flag_unknown_warning_option=yes
9620else
9621  xorg_cv_cc_flag_unknown_warning_option=no
9622fi
9623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9624fi
9625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9626$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9627	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9628	CFLAGS="$xorg_testset_save_CFLAGS"
9629fi
9630
9631if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9632	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9633		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9634	fi
9635	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9636	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9637$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9638if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9639  $as_echo_n "(cached) " >&6
9640else
9641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9642/* end confdefs.h.  */
9643int i;
9644_ACEOF
9645if ac_fn_c_try_compile "$LINENO"; then :
9646  xorg_cv_cc_flag_unused_command_line_argument=yes
9647else
9648  xorg_cv_cc_flag_unused_command_line_argument=no
9649fi
9650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9651fi
9652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9653$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9654	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9655	CFLAGS="$xorg_testset_save_CFLAGS"
9656fi
9657
9658found="no"
9659
9660	if test $found = "no" ; then
9661		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9662			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9663		fi
9664
9665		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9666			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9667		fi
9668
9669		CFLAGS="$CFLAGS -Wwrite-strings"
9670
9671		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9672$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9673		cacheid=xorg_cv_cc_flag__Wwrite_strings
9674		if eval \${$cacheid+:} false; then :
9675  $as_echo_n "(cached) " >&6
9676else
9677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9678/* end confdefs.h.  */
9679int i;
9680int
9681main ()
9682{
9683
9684  ;
9685  return 0;
9686}
9687_ACEOF
9688if ac_fn_c_try_link "$LINENO"; then :
9689  eval $cacheid=yes
9690else
9691  eval $cacheid=no
9692fi
9693rm -f core conftest.err conftest.$ac_objext \
9694    conftest$ac_exeext conftest.$ac_ext
9695fi
9696
9697
9698		CFLAGS="$xorg_testset_save_CFLAGS"
9699
9700		eval supported=\$$cacheid
9701		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9702$as_echo "$supported" >&6; }
9703		if test "$supported" = "yes" ; then
9704			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9705			found="yes"
9706		fi
9707	fi
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723xorg_testset_save_CFLAGS="$CFLAGS"
9724
9725if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9726	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9727	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9728$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9729if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9730  $as_echo_n "(cached) " >&6
9731else
9732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9733/* end confdefs.h.  */
9734int i;
9735_ACEOF
9736if ac_fn_c_try_compile "$LINENO"; then :
9737  xorg_cv_cc_flag_unknown_warning_option=yes
9738else
9739  xorg_cv_cc_flag_unknown_warning_option=no
9740fi
9741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9742fi
9743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9744$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9745	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9746	CFLAGS="$xorg_testset_save_CFLAGS"
9747fi
9748
9749if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9750	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9751		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9752	fi
9753	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9754	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9755$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9756if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9757  $as_echo_n "(cached) " >&6
9758else
9759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9760/* end confdefs.h.  */
9761int i;
9762_ACEOF
9763if ac_fn_c_try_compile "$LINENO"; then :
9764  xorg_cv_cc_flag_unused_command_line_argument=yes
9765else
9766  xorg_cv_cc_flag_unused_command_line_argument=no
9767fi
9768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9769fi
9770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9771$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9772	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9773	CFLAGS="$xorg_testset_save_CFLAGS"
9774fi
9775
9776found="no"
9777
9778	if test $found = "no" ; then
9779		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9780			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9781		fi
9782
9783		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9784			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9785		fi
9786
9787		CFLAGS="$CFLAGS -Waddress"
9788
9789		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9790$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9791		cacheid=xorg_cv_cc_flag__Waddress
9792		if eval \${$cacheid+:} false; then :
9793  $as_echo_n "(cached) " >&6
9794else
9795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9796/* end confdefs.h.  */
9797int i;
9798int
9799main ()
9800{
9801
9802  ;
9803  return 0;
9804}
9805_ACEOF
9806if ac_fn_c_try_link "$LINENO"; then :
9807  eval $cacheid=yes
9808else
9809  eval $cacheid=no
9810fi
9811rm -f core conftest.err conftest.$ac_objext \
9812    conftest$ac_exeext conftest.$ac_ext
9813fi
9814
9815
9816		CFLAGS="$xorg_testset_save_CFLAGS"
9817
9818		eval supported=\$$cacheid
9819		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9820$as_echo "$supported" >&6; }
9821		if test "$supported" = "yes" ; then
9822			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9823			found="yes"
9824		fi
9825	fi
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841xorg_testset_save_CFLAGS="$CFLAGS"
9842
9843if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9844	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9845	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9846$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9847if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9848  $as_echo_n "(cached) " >&6
9849else
9850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851/* end confdefs.h.  */
9852int i;
9853_ACEOF
9854if ac_fn_c_try_compile "$LINENO"; then :
9855  xorg_cv_cc_flag_unknown_warning_option=yes
9856else
9857  xorg_cv_cc_flag_unknown_warning_option=no
9858fi
9859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9860fi
9861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9862$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9863	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9864	CFLAGS="$xorg_testset_save_CFLAGS"
9865fi
9866
9867if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9868	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9869		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9870	fi
9871	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9872	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9873$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9874if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9875  $as_echo_n "(cached) " >&6
9876else
9877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9878/* end confdefs.h.  */
9879int i;
9880_ACEOF
9881if ac_fn_c_try_compile "$LINENO"; then :
9882  xorg_cv_cc_flag_unused_command_line_argument=yes
9883else
9884  xorg_cv_cc_flag_unused_command_line_argument=no
9885fi
9886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9887fi
9888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9889$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9890	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9891	CFLAGS="$xorg_testset_save_CFLAGS"
9892fi
9893
9894found="no"
9895
9896	if test $found = "no" ; then
9897		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9898			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9899		fi
9900
9901		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9902			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9903		fi
9904
9905		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9906
9907		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9908$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9909		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9910		if eval \${$cacheid+:} false; then :
9911  $as_echo_n "(cached) " >&6
9912else
9913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9914/* end confdefs.h.  */
9915int i;
9916int
9917main ()
9918{
9919
9920  ;
9921  return 0;
9922}
9923_ACEOF
9924if ac_fn_c_try_link "$LINENO"; then :
9925  eval $cacheid=yes
9926else
9927  eval $cacheid=no
9928fi
9929rm -f core conftest.err conftest.$ac_objext \
9930    conftest$ac_exeext conftest.$ac_ext
9931fi
9932
9933
9934		CFLAGS="$xorg_testset_save_CFLAGS"
9935
9936		eval supported=\$$cacheid
9937		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9938$as_echo "$supported" >&6; }
9939		if test "$supported" = "yes" ; then
9940			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9941			found="yes"
9942		fi
9943	fi
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959xorg_testset_save_CFLAGS="$CFLAGS"
9960
9961if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9962	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9963	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9964$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9965if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9966  $as_echo_n "(cached) " >&6
9967else
9968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9969/* end confdefs.h.  */
9970int i;
9971_ACEOF
9972if ac_fn_c_try_compile "$LINENO"; then :
9973  xorg_cv_cc_flag_unknown_warning_option=yes
9974else
9975  xorg_cv_cc_flag_unknown_warning_option=no
9976fi
9977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9978fi
9979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9980$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9981	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9982	CFLAGS="$xorg_testset_save_CFLAGS"
9983fi
9984
9985if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9986	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9987		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9988	fi
9989	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9990	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9991$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9992if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9993  $as_echo_n "(cached) " >&6
9994else
9995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9996/* end confdefs.h.  */
9997int i;
9998_ACEOF
9999if ac_fn_c_try_compile "$LINENO"; then :
10000  xorg_cv_cc_flag_unused_command_line_argument=yes
10001else
10002  xorg_cv_cc_flag_unused_command_line_argument=no
10003fi
10004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10005fi
10006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10007$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10008	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10009	CFLAGS="$xorg_testset_save_CFLAGS"
10010fi
10011
10012found="no"
10013
10014	if test $found = "no" ; then
10015		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10016			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10017		fi
10018
10019		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10020			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10021		fi
10022
10023		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10024
10025		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10026$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10027		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10028		if eval \${$cacheid+:} false; then :
10029  $as_echo_n "(cached) " >&6
10030else
10031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10032/* end confdefs.h.  */
10033int i;
10034int
10035main ()
10036{
10037
10038  ;
10039  return 0;
10040}
10041_ACEOF
10042if ac_fn_c_try_link "$LINENO"; then :
10043  eval $cacheid=yes
10044else
10045  eval $cacheid=no
10046fi
10047rm -f core conftest.err conftest.$ac_objext \
10048    conftest$ac_exeext conftest.$ac_ext
10049fi
10050
10051
10052		CFLAGS="$xorg_testset_save_CFLAGS"
10053
10054		eval supported=\$$cacheid
10055		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10056$as_echo "$supported" >&6; }
10057		if test "$supported" = "yes" ; then
10058			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10059			found="yes"
10060		fi
10061	fi
10062
10063
10064fi
10065
10066
10067
10068
10069
10070
10071
10072		CWARNFLAGS="$BASE_CFLAGS"
10073		if  test "x$GCC" = xyes ; then
10074		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10075		fi
10076
10077
10078
10079
10080
10081
10082
10083
10084# Check whether --enable-strict-compilation was given.
10085if test "${enable_strict_compilation+set}" = set; then :
10086  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10087else
10088  STRICT_COMPILE=no
10089fi
10090
10091
10092
10093
10094
10095
10096STRICT_CFLAGS=""
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110xorg_testset_save_CFLAGS="$CFLAGS"
10111
10112if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10113	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10114	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10115$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10116if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10117  $as_echo_n "(cached) " >&6
10118else
10119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10120/* end confdefs.h.  */
10121int i;
10122_ACEOF
10123if ac_fn_c_try_compile "$LINENO"; then :
10124  xorg_cv_cc_flag_unknown_warning_option=yes
10125else
10126  xorg_cv_cc_flag_unknown_warning_option=no
10127fi
10128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10129fi
10130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10131$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10132	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10133	CFLAGS="$xorg_testset_save_CFLAGS"
10134fi
10135
10136if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10137	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10138		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10139	fi
10140	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10141	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10142$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10143if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10144  $as_echo_n "(cached) " >&6
10145else
10146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10147/* end confdefs.h.  */
10148int i;
10149_ACEOF
10150if ac_fn_c_try_compile "$LINENO"; then :
10151  xorg_cv_cc_flag_unused_command_line_argument=yes
10152else
10153  xorg_cv_cc_flag_unused_command_line_argument=no
10154fi
10155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10156fi
10157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10158$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10159	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10160	CFLAGS="$xorg_testset_save_CFLAGS"
10161fi
10162
10163found="no"
10164
10165	if test $found = "no" ; then
10166		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10167			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10168		fi
10169
10170		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10171			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10172		fi
10173
10174		CFLAGS="$CFLAGS -pedantic"
10175
10176		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10177$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10178		cacheid=xorg_cv_cc_flag__pedantic
10179		if eval \${$cacheid+:} false; then :
10180  $as_echo_n "(cached) " >&6
10181else
10182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10183/* end confdefs.h.  */
10184int i;
10185int
10186main ()
10187{
10188
10189  ;
10190  return 0;
10191}
10192_ACEOF
10193if ac_fn_c_try_link "$LINENO"; then :
10194  eval $cacheid=yes
10195else
10196  eval $cacheid=no
10197fi
10198rm -f core conftest.err conftest.$ac_objext \
10199    conftest$ac_exeext conftest.$ac_ext
10200fi
10201
10202
10203		CFLAGS="$xorg_testset_save_CFLAGS"
10204
10205		eval supported=\$$cacheid
10206		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10207$as_echo "$supported" >&6; }
10208		if test "$supported" = "yes" ; then
10209			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10210			found="yes"
10211		fi
10212	fi
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228xorg_testset_save_CFLAGS="$CFLAGS"
10229
10230if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10231	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10232	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10233$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10234if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10235  $as_echo_n "(cached) " >&6
10236else
10237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238/* end confdefs.h.  */
10239int i;
10240_ACEOF
10241if ac_fn_c_try_compile "$LINENO"; then :
10242  xorg_cv_cc_flag_unknown_warning_option=yes
10243else
10244  xorg_cv_cc_flag_unknown_warning_option=no
10245fi
10246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10247fi
10248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10249$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10250	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10251	CFLAGS="$xorg_testset_save_CFLAGS"
10252fi
10253
10254if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10255	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10256		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10257	fi
10258	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10259	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10260$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10261if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10262  $as_echo_n "(cached) " >&6
10263else
10264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10265/* end confdefs.h.  */
10266int i;
10267_ACEOF
10268if ac_fn_c_try_compile "$LINENO"; then :
10269  xorg_cv_cc_flag_unused_command_line_argument=yes
10270else
10271  xorg_cv_cc_flag_unused_command_line_argument=no
10272fi
10273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10274fi
10275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10276$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10277	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10278	CFLAGS="$xorg_testset_save_CFLAGS"
10279fi
10280
10281found="no"
10282
10283	if test $found = "no" ; then
10284		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10285			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10286		fi
10287
10288		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10289			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10290		fi
10291
10292		CFLAGS="$CFLAGS -Werror"
10293
10294		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10295$as_echo_n "checking if $CC supports -Werror... " >&6; }
10296		cacheid=xorg_cv_cc_flag__Werror
10297		if eval \${$cacheid+:} false; then :
10298  $as_echo_n "(cached) " >&6
10299else
10300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10301/* end confdefs.h.  */
10302int i;
10303int
10304main ()
10305{
10306
10307  ;
10308  return 0;
10309}
10310_ACEOF
10311if ac_fn_c_try_link "$LINENO"; then :
10312  eval $cacheid=yes
10313else
10314  eval $cacheid=no
10315fi
10316rm -f core conftest.err conftest.$ac_objext \
10317    conftest$ac_exeext conftest.$ac_ext
10318fi
10319
10320
10321		CFLAGS="$xorg_testset_save_CFLAGS"
10322
10323		eval supported=\$$cacheid
10324		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10325$as_echo "$supported" >&6; }
10326		if test "$supported" = "yes" ; then
10327			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10328			found="yes"
10329		fi
10330	fi
10331
10332	if test $found = "no" ; then
10333		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10334			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10335		fi
10336
10337		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10338			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10339		fi
10340
10341		CFLAGS="$CFLAGS -errwarn"
10342
10343		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10344$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10345		cacheid=xorg_cv_cc_flag__errwarn
10346		if eval \${$cacheid+:} false; then :
10347  $as_echo_n "(cached) " >&6
10348else
10349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10350/* end confdefs.h.  */
10351int i;
10352int
10353main ()
10354{
10355
10356  ;
10357  return 0;
10358}
10359_ACEOF
10360if ac_fn_c_try_link "$LINENO"; then :
10361  eval $cacheid=yes
10362else
10363  eval $cacheid=no
10364fi
10365rm -f core conftest.err conftest.$ac_objext \
10366    conftest$ac_exeext conftest.$ac_ext
10367fi
10368
10369
10370		CFLAGS="$xorg_testset_save_CFLAGS"
10371
10372		eval supported=\$$cacheid
10373		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10374$as_echo "$supported" >&6; }
10375		if test "$supported" = "yes" ; then
10376			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10377			found="yes"
10378		fi
10379	fi
10380
10381
10382
10383# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10384# activate it with -Werror, so we add it here explicitly.
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398xorg_testset_save_CFLAGS="$CFLAGS"
10399
10400if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10401	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10402	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10403$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10404if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10405  $as_echo_n "(cached) " >&6
10406else
10407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10408/* end confdefs.h.  */
10409int i;
10410_ACEOF
10411if ac_fn_c_try_compile "$LINENO"; then :
10412  xorg_cv_cc_flag_unknown_warning_option=yes
10413else
10414  xorg_cv_cc_flag_unknown_warning_option=no
10415fi
10416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10417fi
10418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10419$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10420	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10421	CFLAGS="$xorg_testset_save_CFLAGS"
10422fi
10423
10424if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10425	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10426		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10427	fi
10428	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10429	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10430$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10431if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10432  $as_echo_n "(cached) " >&6
10433else
10434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435/* end confdefs.h.  */
10436int i;
10437_ACEOF
10438if ac_fn_c_try_compile "$LINENO"; then :
10439  xorg_cv_cc_flag_unused_command_line_argument=yes
10440else
10441  xorg_cv_cc_flag_unused_command_line_argument=no
10442fi
10443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10444fi
10445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10446$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10447	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10448	CFLAGS="$xorg_testset_save_CFLAGS"
10449fi
10450
10451found="no"
10452
10453	if test $found = "no" ; then
10454		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10455			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10456		fi
10457
10458		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10459			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10460		fi
10461
10462		CFLAGS="$CFLAGS -Werror=attributes"
10463
10464		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10465$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10466		cacheid=xorg_cv_cc_flag__Werror_attributes
10467		if eval \${$cacheid+:} false; then :
10468  $as_echo_n "(cached) " >&6
10469else
10470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10471/* end confdefs.h.  */
10472int i;
10473int
10474main ()
10475{
10476
10477  ;
10478  return 0;
10479}
10480_ACEOF
10481if ac_fn_c_try_link "$LINENO"; then :
10482  eval $cacheid=yes
10483else
10484  eval $cacheid=no
10485fi
10486rm -f core conftest.err conftest.$ac_objext \
10487    conftest$ac_exeext conftest.$ac_ext
10488fi
10489
10490
10491		CFLAGS="$xorg_testset_save_CFLAGS"
10492
10493		eval supported=\$$cacheid
10494		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10495$as_echo "$supported" >&6; }
10496		if test "$supported" = "yes" ; then
10497			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10498			found="yes"
10499		fi
10500	fi
10501
10502
10503
10504if test "x$STRICT_COMPILE" = "xyes"; then
10505    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10506    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10507fi
10508
10509
10510
10511
10512
10513
10514cat >>confdefs.h <<_ACEOF
10515#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10516_ACEOF
10517
10518	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10519	if test "x$PVM" = "x"; then
10520		PVM="0"
10521	fi
10522
10523cat >>confdefs.h <<_ACEOF
10524#define PACKAGE_VERSION_MINOR $PVM
10525_ACEOF
10526
10527	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10528	if test "x$PVP" = "x"; then
10529		PVP="0"
10530	fi
10531
10532cat >>confdefs.h <<_ACEOF
10533#define PACKAGE_VERSION_PATCHLEVEL $PVP
10534_ACEOF
10535
10536
10537
10538CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10539mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10540|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10541echo 'git directory not found: installing possibly empty changelog.' >&2)"
10542
10543
10544
10545
10546macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10547INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10548mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10549|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10550echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10551
10552
10553
10554
10555
10556
10557if test x$APP_MAN_SUFFIX = x    ; then
10558    APP_MAN_SUFFIX=1
10559fi
10560if test x$APP_MAN_DIR = x    ; then
10561    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10562fi
10563
10564if test x$LIB_MAN_SUFFIX = x    ; then
10565    LIB_MAN_SUFFIX=3
10566fi
10567if test x$LIB_MAN_DIR = x    ; then
10568    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10569fi
10570
10571if test x$FILE_MAN_SUFFIX = x    ; then
10572    case $host_os in
10573	# Solaris 2.0 - 11 use SysV man page sections
10574	solaris2.?|solaris2.1[01])	FILE_MAN_SUFFIX=4  ;;
10575	*)				FILE_MAN_SUFFIX=5  ;;
10576    esac
10577fi
10578if test x$FILE_MAN_DIR = x    ; then
10579    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10580fi
10581
10582if test x$MISC_MAN_SUFFIX = x    ; then
10583    case $host_os in
10584	# Solaris 2.0 - 11 use SysV man page sections
10585	solaris2.?|solaris2.1[01])	MISC_MAN_SUFFIX=5  ;;
10586	*)				MISC_MAN_SUFFIX=7  ;;
10587    esac
10588fi
10589if test x$MISC_MAN_DIR = x    ; then
10590    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10591fi
10592
10593if test x$DRIVER_MAN_SUFFIX = x    ; then
10594    case $host_os in
10595	# Solaris 2.0 - 11 use SysV man page sections
10596	solaris2.?|solaris2.1[01])	DRIVER_MAN_SUFFIX=7  ;;
10597	*)				DRIVER_MAN_SUFFIX=4  ;;
10598    esac
10599fi
10600if test x$DRIVER_MAN_DIR = x    ; then
10601    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10602fi
10603
10604if test x$ADMIN_MAN_SUFFIX = x    ; then
10605    case $host_os in
10606	# Solaris 2.0 - 11 use SysV man page sections
10607	solaris2.?|solaris2.1[01])	ADMIN_MAN_SUFFIX=1m ;;
10608	*)				ADMIN_MAN_SUFFIX=8  ;;
10609    esac
10610fi
10611if test x$ADMIN_MAN_DIR = x    ; then
10612    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10613fi
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629XORG_MAN_PAGE="X Version 11"
10630
10631MAN_SUBSTS="\
10632	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10633	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10634	-e 's|__xservername__|Xorg|g' \
10635	-e 's|__xconfigfile__|xorg.conf|g' \
10636	-e 's|__projectroot__|\$(prefix)|g' \
10637	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10638	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10639	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10640	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10641	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10642	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10643	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10644
10645
10646
10647# Check whether --enable-silent-rules was given.
10648if test "${enable_silent_rules+set}" = set; then :
10649  enableval=$enable_silent_rules;
10650fi
10651
10652case $enable_silent_rules in # (((
10653  yes) AM_DEFAULT_VERBOSITY=0;;
10654   no) AM_DEFAULT_VERBOSITY=1;;
10655    *) AM_DEFAULT_VERBOSITY=0;;
10656esac
10657am_make=${MAKE-make}
10658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10659$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10660if ${am_cv_make_support_nested_variables+:} false; then :
10661  $as_echo_n "(cached) " >&6
10662else
10663  if $as_echo 'TRUE=$(BAR$(V))
10664BAR0=false
10665BAR1=true
10666V=1
10667am__doit:
10668	@$(TRUE)
10669.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10670  am_cv_make_support_nested_variables=yes
10671else
10672  am_cv_make_support_nested_variables=no
10673fi
10674fi
10675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10676$as_echo "$am_cv_make_support_nested_variables" >&6; }
10677if test $am_cv_make_support_nested_variables = yes; then
10678    AM_V='$(V)'
10679  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10680else
10681  AM_V=$AM_DEFAULT_VERBOSITY
10682  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10683fi
10684AM_BACKSLASH='\'
10685
10686
10687
10688
10689
10690
10691
10692# Check whether --with-lint was given.
10693if test "${with_lint+set}" = set; then :
10694  withval=$with_lint; use_lint=$withval
10695else
10696  use_lint=no
10697fi
10698
10699
10700# Obtain platform specific info like program name and options
10701# The lint program on FreeBSD and NetBSD is different from the one on Solaris
10702case $host_os in
10703  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
10704	lint_name=splint
10705	lint_options="-badflag"
10706	;;
10707  *freebsd* | *netbsd*)
10708	lint_name=lint
10709	lint_options="-u -b"
10710	;;
10711  *solaris*)
10712	lint_name=lint
10713	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
10714	;;
10715esac
10716
10717# Test for the presence of the program (either guessed by the code or spelled out by the user)
10718if test "x$use_lint" = x"yes" ; then
10719   # Extract the first word of "$lint_name", so it can be a program name with args.
10720set dummy $lint_name; ac_word=$2
10721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10722$as_echo_n "checking for $ac_word... " >&6; }
10723if ${ac_cv_path_LINT+:} false; then :
10724  $as_echo_n "(cached) " >&6
10725else
10726  case $LINT in
10727  [\\/]* | ?:[\\/]*)
10728  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
10729  ;;
10730  *)
10731  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10732for as_dir in $PATH
10733do
10734  IFS=$as_save_IFS
10735  test -z "$as_dir" && as_dir=.
10736    for ac_exec_ext in '' $ac_executable_extensions; do
10737  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10738    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
10739    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10740    break 2
10741  fi
10742done
10743  done
10744IFS=$as_save_IFS
10745
10746  ;;
10747esac
10748fi
10749LINT=$ac_cv_path_LINT
10750if test -n "$LINT"; then
10751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
10752$as_echo "$LINT" >&6; }
10753else
10754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10755$as_echo "no" >&6; }
10756fi
10757
10758
10759   if test "x$LINT" = "x"; then
10760        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
10761   fi
10762elif test "x$use_lint" = x"no" ; then
10763   if test "x$LINT" != "x"; then
10764      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
10765$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
10766   fi
10767else
10768   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
10769fi
10770
10771# User supplied flags override default flags
10772if test "x$LINT_FLAGS" != "x"; then
10773   lint_options=$LINT_FLAGS
10774fi
10775
10776LINT_FLAGS=$lint_options
10777
10778 if test "x$LINT" != x; then
10779  LINT_TRUE=
10780  LINT_FALSE='#'
10781else
10782  LINT_TRUE='#'
10783  LINT_FALSE=
10784fi
10785
10786
10787
10788
10789for ac_func in rename fchmod
10790do :
10791  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10792ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10793if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10794  cat >>confdefs.h <<_ACEOF
10795#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10796_ACEOF
10797
10798fi
10799done
10800
10801
10802# Check whether --enable-largefile was given.
10803if test "${enable_largefile+set}" = set; then :
10804  enableval=$enable_largefile;
10805fi
10806
10807if test "$enable_largefile" != no; then
10808
10809  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
10810$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10811if ${ac_cv_sys_largefile_CC+:} false; then :
10812  $as_echo_n "(cached) " >&6
10813else
10814  ac_cv_sys_largefile_CC=no
10815     if test "$GCC" != yes; then
10816       ac_save_CC=$CC
10817       while :; do
10818	 # IRIX 6.2 and later do not support large files by default,
10819	 # so use the C compiler's -n32 option if that helps.
10820	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10821/* end confdefs.h.  */
10822#include <sys/types.h>
10823 /* Check that off_t can represent 2**63 - 1 correctly.
10824    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10825    since some C++ compilers masquerading as C compilers
10826    incorrectly reject 9223372036854775807.  */
10827#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10828  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10829		       && LARGE_OFF_T % 2147483647 == 1)
10830		      ? 1 : -1];
10831int
10832main ()
10833{
10834
10835  ;
10836  return 0;
10837}
10838_ACEOF
10839	 if ac_fn_c_try_compile "$LINENO"; then :
10840  break
10841fi
10842rm -f core conftest.err conftest.$ac_objext
10843	 CC="$CC -n32"
10844	 if ac_fn_c_try_compile "$LINENO"; then :
10845  ac_cv_sys_largefile_CC=' -n32'; break
10846fi
10847rm -f core conftest.err conftest.$ac_objext
10848	 break
10849       done
10850       CC=$ac_save_CC
10851       rm -f conftest.$ac_ext
10852    fi
10853fi
10854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10855$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10856  if test "$ac_cv_sys_largefile_CC" != no; then
10857    CC=$CC$ac_cv_sys_largefile_CC
10858  fi
10859
10860  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10861$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10862if ${ac_cv_sys_file_offset_bits+:} false; then :
10863  $as_echo_n "(cached) " >&6
10864else
10865  while :; do
10866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10867/* end confdefs.h.  */
10868#include <sys/types.h>
10869 /* Check that off_t can represent 2**63 - 1 correctly.
10870    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10871    since some C++ compilers masquerading as C compilers
10872    incorrectly reject 9223372036854775807.  */
10873#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10874  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10875		       && LARGE_OFF_T % 2147483647 == 1)
10876		      ? 1 : -1];
10877int
10878main ()
10879{
10880
10881  ;
10882  return 0;
10883}
10884_ACEOF
10885if ac_fn_c_try_compile "$LINENO"; then :
10886  ac_cv_sys_file_offset_bits=no; break
10887fi
10888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10890/* end confdefs.h.  */
10891#define _FILE_OFFSET_BITS 64
10892#include <sys/types.h>
10893 /* Check that off_t can represent 2**63 - 1 correctly.
10894    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10895    since some C++ compilers masquerading as C compilers
10896    incorrectly reject 9223372036854775807.  */
10897#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10898  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10899		       && LARGE_OFF_T % 2147483647 == 1)
10900		      ? 1 : -1];
10901int
10902main ()
10903{
10904
10905  ;
10906  return 0;
10907}
10908_ACEOF
10909if ac_fn_c_try_compile "$LINENO"; then :
10910  ac_cv_sys_file_offset_bits=64; break
10911fi
10912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10913  ac_cv_sys_file_offset_bits=unknown
10914  break
10915done
10916fi
10917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10918$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10919case $ac_cv_sys_file_offset_bits in #(
10920  no | unknown) ;;
10921  *)
10922cat >>confdefs.h <<_ACEOF
10923#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10924_ACEOF
10925;;
10926esac
10927rm -rf conftest*
10928  if test $ac_cv_sys_file_offset_bits = unknown; then
10929    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10930$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10931if ${ac_cv_sys_large_files+:} false; then :
10932  $as_echo_n "(cached) " >&6
10933else
10934  while :; do
10935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10936/* end confdefs.h.  */
10937#include <sys/types.h>
10938 /* Check that off_t can represent 2**63 - 1 correctly.
10939    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10940    since some C++ compilers masquerading as C compilers
10941    incorrectly reject 9223372036854775807.  */
10942#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10943  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10944		       && LARGE_OFF_T % 2147483647 == 1)
10945		      ? 1 : -1];
10946int
10947main ()
10948{
10949
10950  ;
10951  return 0;
10952}
10953_ACEOF
10954if ac_fn_c_try_compile "$LINENO"; then :
10955  ac_cv_sys_large_files=no; break
10956fi
10957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10959/* end confdefs.h.  */
10960#define _LARGE_FILES 1
10961#include <sys/types.h>
10962 /* Check that off_t can represent 2**63 - 1 correctly.
10963    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10964    since some C++ compilers masquerading as C compilers
10965    incorrectly reject 9223372036854775807.  */
10966#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10967  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10968		       && LARGE_OFF_T % 2147483647 == 1)
10969		      ? 1 : -1];
10970int
10971main ()
10972{
10973
10974  ;
10975  return 0;
10976}
10977_ACEOF
10978if ac_fn_c_try_compile "$LINENO"; then :
10979  ac_cv_sys_large_files=1; break
10980fi
10981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10982  ac_cv_sys_large_files=unknown
10983  break
10984done
10985fi
10986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10987$as_echo "$ac_cv_sys_large_files" >&6; }
10988case $ac_cv_sys_large_files in #(
10989  no | unknown) ;;
10990  *)
10991cat >>confdefs.h <<_ACEOF
10992#define _LARGE_FILES $ac_cv_sys_large_files
10993_ACEOF
10994;;
10995esac
10996rm -rf conftest*
10997  fi
10998
10999
11000fi
11001
11002
11003
11004pkg_failed=no
11005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
11006$as_echo_n "checking for X... " >&6; }
11007
11008if test -n "$X_CFLAGS"; then
11009    pkg_cv_X_CFLAGS="$X_CFLAGS"
11010 elif test -n "$PKG_CONFIG"; then
11011    if test -n "$PKG_CONFIG" && \
11012    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17\""; } >&5
11013  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17") 2>&5
11014  ac_status=$?
11015  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11016  test $ac_status = 0; }; then
11017  pkg_cv_X_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17" 2>/dev/null`
11018		      test "x$?" != "x0" && pkg_failed=yes
11019else
11020  pkg_failed=yes
11021fi
11022 else
11023    pkg_failed=untried
11024fi
11025if test -n "$X_LIBS"; then
11026    pkg_cv_X_LIBS="$X_LIBS"
11027 elif test -n "$PKG_CONFIG"; then
11028    if test -n "$PKG_CONFIG" && \
11029    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17\""; } >&5
11030  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17") 2>&5
11031  ac_status=$?
11032  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11033  test $ac_status = 0; }; then
11034  pkg_cv_X_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17" 2>/dev/null`
11035		      test "x$?" != "x0" && pkg_failed=yes
11036else
11037  pkg_failed=yes
11038fi
11039 else
11040    pkg_failed=untried
11041fi
11042
11043
11044
11045if test $pkg_failed = yes; then
11046   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11047$as_echo "no" >&6; }
11048
11049if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11050        _pkg_short_errors_supported=yes
11051else
11052        _pkg_short_errors_supported=no
11053fi
11054        if test $_pkg_short_errors_supported = yes; then
11055	        X_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17" 2>&1`
11056        else
11057	        X_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17" 2>&1`
11058        fi
11059	# Put the nasty error message in config.log where it belongs
11060	echo "$X_PKG_ERRORS" >&5
11061
11062	as_fn_error $? "Package requirements (xproto >= 7.0.17) were not met:
11063
11064$X_PKG_ERRORS
11065
11066Consider adjusting the PKG_CONFIG_PATH environment variable if you
11067installed software in a non-standard prefix.
11068
11069Alternatively, you may set the environment variables X_CFLAGS
11070and X_LIBS to avoid the need to call pkg-config.
11071See the pkg-config man page for more details." "$LINENO" 5
11072elif test $pkg_failed = untried; then
11073     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11074$as_echo "no" >&6; }
11075	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11076$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11077as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11078is in your PATH or set the PKG_CONFIG environment variable to the full
11079path to pkg-config.
11080
11081Alternatively, you may set the environment variables X_CFLAGS
11082and X_LIBS to avoid the need to call pkg-config.
11083See the pkg-config man page for more details.
11084
11085To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11086See \`config.log' for more details" "$LINENO" 5; }
11087else
11088	X_CFLAGS=$pkg_cv_X_CFLAGS
11089	X_LIBS=$pkg_cv_X_LIBS
11090        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11091$as_echo "yes" >&6; }
11092
11093fi
11094
11095ac_config_files="$ac_config_files Makefile"
11096
11097cat >confcache <<\_ACEOF
11098# This file is a shell script that caches the results of configure
11099# tests run on this system so they can be shared between configure
11100# scripts and configure runs, see configure's option --config-cache.
11101# It is not useful on other systems.  If it contains results you don't
11102# want to keep, you may remove or edit it.
11103#
11104# config.status only pays attention to the cache file if you give it
11105# the --recheck option to rerun configure.
11106#
11107# `ac_cv_env_foo' variables (set or unset) will be overridden when
11108# loading this file, other *unset* `ac_cv_foo' will be assigned the
11109# following values.
11110
11111_ACEOF
11112
11113# The following way of writing the cache mishandles newlines in values,
11114# but we know of no workaround that is simple, portable, and efficient.
11115# So, we kill variables containing newlines.
11116# Ultrix sh set writes to stderr and can't be redirected directly,
11117# and sets the high bit in the cache file unless we assign to the vars.
11118(
11119  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11120    eval ac_val=\$$ac_var
11121    case $ac_val in #(
11122    *${as_nl}*)
11123      case $ac_var in #(
11124      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11125$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11126      esac
11127      case $ac_var in #(
11128      _ | IFS | as_nl) ;; #(
11129      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11130      *) { eval $ac_var=; unset $ac_var;} ;;
11131      esac ;;
11132    esac
11133  done
11134
11135  (set) 2>&1 |
11136    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11137    *${as_nl}ac_space=\ *)
11138      # `set' does not quote correctly, so add quotes: double-quote
11139      # substitution turns \\\\ into \\, and sed turns \\ into \.
11140      sed -n \
11141	"s/'/'\\\\''/g;
11142	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11143      ;; #(
11144    *)
11145      # `set' quotes correctly as required by POSIX, so do not add quotes.
11146      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11147      ;;
11148    esac |
11149    sort
11150) |
11151  sed '
11152     /^ac_cv_env_/b end
11153     t clear
11154     :clear
11155     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11156     t end
11157     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11158     :end' >>confcache
11159if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11160  if test -w "$cache_file"; then
11161    if test "x$cache_file" != "x/dev/null"; then
11162      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11163$as_echo "$as_me: updating cache $cache_file" >&6;}
11164      if test ! -f "$cache_file" || test -h "$cache_file"; then
11165	cat confcache >"$cache_file"
11166      else
11167        case $cache_file in #(
11168        */* | ?:*)
11169	  mv -f confcache "$cache_file"$$ &&
11170	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11171        *)
11172	  mv -f confcache "$cache_file" ;;
11173	esac
11174      fi
11175    fi
11176  else
11177    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11178$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11179  fi
11180fi
11181rm -f confcache
11182
11183test "x$prefix" = xNONE && prefix=$ac_default_prefix
11184# Let make expand exec_prefix.
11185test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11186
11187DEFS=-DHAVE_CONFIG_H
11188
11189ac_libobjs=
11190ac_ltlibobjs=
11191U=
11192for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11193  # 1. Remove the extension, and $U if already installed.
11194  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11195  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11196  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11197  #    will be set to the directory where LIBOBJS objects are built.
11198  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11199  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11200done
11201LIBOBJS=$ac_libobjs
11202
11203LTLIBOBJS=$ac_ltlibobjs
11204
11205
11206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11207$as_echo_n "checking that generated files are newer than configure... " >&6; }
11208   if test -n "$am_sleep_pid"; then
11209     # Hide warnings about reused PIDs.
11210     wait $am_sleep_pid 2>/dev/null
11211   fi
11212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11213$as_echo "done" >&6; }
11214 if test -n "$EXEEXT"; then
11215  am__EXEEXT_TRUE=
11216  am__EXEEXT_FALSE='#'
11217else
11218  am__EXEEXT_TRUE='#'
11219  am__EXEEXT_FALSE=
11220fi
11221
11222if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11223  as_fn_error $? "conditional \"AMDEP\" was never defined.
11224Usually this means the macro was only invoked conditionally." "$LINENO" 5
11225fi
11226if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11227  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11228Usually this means the macro was only invoked conditionally." "$LINENO" 5
11229fi
11230if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
11231  as_fn_error $? "conditional \"LINT\" was never defined.
11232Usually this means the macro was only invoked conditionally." "$LINENO" 5
11233fi
11234
11235: "${CONFIG_STATUS=./config.status}"
11236ac_write_fail=0
11237ac_clean_files_save=$ac_clean_files
11238ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11239{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11240$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11241as_write_fail=0
11242cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11243#! $SHELL
11244# Generated by $as_me.
11245# Run this file to recreate the current configuration.
11246# Compiler output produced by configure, useful for debugging
11247# configure, is in config.log if it exists.
11248
11249debug=false
11250ac_cs_recheck=false
11251ac_cs_silent=false
11252
11253SHELL=\${CONFIG_SHELL-$SHELL}
11254export SHELL
11255_ASEOF
11256cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11257## -------------------- ##
11258## M4sh Initialization. ##
11259## -------------------- ##
11260
11261# Be more Bourne compatible
11262DUALCASE=1; export DUALCASE # for MKS sh
11263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11264  emulate sh
11265  NULLCMD=:
11266  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11267  # is contrary to our usage.  Disable this feature.
11268  alias -g '${1+"$@"}'='"$@"'
11269  setopt NO_GLOB_SUBST
11270else
11271  case `(set -o) 2>/dev/null` in #(
11272  *posix*) :
11273    set -o posix ;; #(
11274  *) :
11275     ;;
11276esac
11277fi
11278
11279
11280as_nl='
11281'
11282export as_nl
11283# Printing a long string crashes Solaris 7 /usr/bin/printf.
11284as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11285as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11286as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11287# Prefer a ksh shell builtin over an external printf program on Solaris,
11288# but without wasting forks for bash or zsh.
11289if test -z "$BASH_VERSION$ZSH_VERSION" \
11290    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11291  as_echo='print -r --'
11292  as_echo_n='print -rn --'
11293elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11294  as_echo='printf %s\n'
11295  as_echo_n='printf %s'
11296else
11297  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11298    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11299    as_echo_n='/usr/ucb/echo -n'
11300  else
11301    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11302    as_echo_n_body='eval
11303      arg=$1;
11304      case $arg in #(
11305      *"$as_nl"*)
11306	expr "X$arg" : "X\\(.*\\)$as_nl";
11307	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11308      esac;
11309      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11310    '
11311    export as_echo_n_body
11312    as_echo_n='sh -c $as_echo_n_body as_echo'
11313  fi
11314  export as_echo_body
11315  as_echo='sh -c $as_echo_body as_echo'
11316fi
11317
11318# The user is always right.
11319if test "${PATH_SEPARATOR+set}" != set; then
11320  PATH_SEPARATOR=:
11321  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11322    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11323      PATH_SEPARATOR=';'
11324  }
11325fi
11326
11327
11328# IFS
11329# We need space, tab and new line, in precisely that order.  Quoting is
11330# there to prevent editors from complaining about space-tab.
11331# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11332# splitting by setting IFS to empty value.)
11333IFS=" ""	$as_nl"
11334
11335# Find who we are.  Look in the path if we contain no directory separator.
11336as_myself=
11337case $0 in #((
11338  *[\\/]* ) as_myself=$0 ;;
11339  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11340for as_dir in $PATH
11341do
11342  IFS=$as_save_IFS
11343  test -z "$as_dir" && as_dir=.
11344    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11345  done
11346IFS=$as_save_IFS
11347
11348     ;;
11349esac
11350# We did not find ourselves, most probably we were run as `sh COMMAND'
11351# in which case we are not to be found in the path.
11352if test "x$as_myself" = x; then
11353  as_myself=$0
11354fi
11355if test ! -f "$as_myself"; then
11356  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11357  exit 1
11358fi
11359
11360# Unset variables that we do not need and which cause bugs (e.g. in
11361# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11362# suppresses any "Segmentation fault" message there.  '((' could
11363# trigger a bug in pdksh 5.2.14.
11364for as_var in BASH_ENV ENV MAIL MAILPATH
11365do eval test x\${$as_var+set} = xset \
11366  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11367done
11368PS1='$ '
11369PS2='> '
11370PS4='+ '
11371
11372# NLS nuisances.
11373LC_ALL=C
11374export LC_ALL
11375LANGUAGE=C
11376export LANGUAGE
11377
11378# CDPATH.
11379(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11380
11381
11382# as_fn_error STATUS ERROR [LINENO LOG_FD]
11383# ----------------------------------------
11384# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11385# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11386# script with STATUS, using 1 if that was 0.
11387as_fn_error ()
11388{
11389  as_status=$1; test $as_status -eq 0 && as_status=1
11390  if test "$4"; then
11391    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11392    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11393  fi
11394  $as_echo "$as_me: error: $2" >&2
11395  as_fn_exit $as_status
11396} # as_fn_error
11397
11398
11399# as_fn_set_status STATUS
11400# -----------------------
11401# Set $? to STATUS, without forking.
11402as_fn_set_status ()
11403{
11404  return $1
11405} # as_fn_set_status
11406
11407# as_fn_exit STATUS
11408# -----------------
11409# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11410as_fn_exit ()
11411{
11412  set +e
11413  as_fn_set_status $1
11414  exit $1
11415} # as_fn_exit
11416
11417# as_fn_unset VAR
11418# ---------------
11419# Portably unset VAR.
11420as_fn_unset ()
11421{
11422  { eval $1=; unset $1;}
11423}
11424as_unset=as_fn_unset
11425# as_fn_append VAR VALUE
11426# ----------------------
11427# Append the text in VALUE to the end of the definition contained in VAR. Take
11428# advantage of any shell optimizations that allow amortized linear growth over
11429# repeated appends, instead of the typical quadratic growth present in naive
11430# implementations.
11431if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11432  eval 'as_fn_append ()
11433  {
11434    eval $1+=\$2
11435  }'
11436else
11437  as_fn_append ()
11438  {
11439    eval $1=\$$1\$2
11440  }
11441fi # as_fn_append
11442
11443# as_fn_arith ARG...
11444# ------------------
11445# Perform arithmetic evaluation on the ARGs, and store the result in the
11446# global $as_val. Take advantage of shells that can avoid forks. The arguments
11447# must be portable across $(()) and expr.
11448if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11449  eval 'as_fn_arith ()
11450  {
11451    as_val=$(( $* ))
11452  }'
11453else
11454  as_fn_arith ()
11455  {
11456    as_val=`expr "$@" || test $? -eq 1`
11457  }
11458fi # as_fn_arith
11459
11460
11461if expr a : '\(a\)' >/dev/null 2>&1 &&
11462   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11463  as_expr=expr
11464else
11465  as_expr=false
11466fi
11467
11468if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11469  as_basename=basename
11470else
11471  as_basename=false
11472fi
11473
11474if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11475  as_dirname=dirname
11476else
11477  as_dirname=false
11478fi
11479
11480as_me=`$as_basename -- "$0" ||
11481$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11482	 X"$0" : 'X\(//\)$' \| \
11483	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11484$as_echo X/"$0" |
11485    sed '/^.*\/\([^/][^/]*\)\/*$/{
11486	    s//\1/
11487	    q
11488	  }
11489	  /^X\/\(\/\/\)$/{
11490	    s//\1/
11491	    q
11492	  }
11493	  /^X\/\(\/\).*/{
11494	    s//\1/
11495	    q
11496	  }
11497	  s/.*/./; q'`
11498
11499# Avoid depending upon Character Ranges.
11500as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11501as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11502as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11503as_cr_digits='0123456789'
11504as_cr_alnum=$as_cr_Letters$as_cr_digits
11505
11506ECHO_C= ECHO_N= ECHO_T=
11507case `echo -n x` in #(((((
11508-n*)
11509  case `echo 'xy\c'` in
11510  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11511  xy)  ECHO_C='\c';;
11512  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11513       ECHO_T='	';;
11514  esac;;
11515*)
11516  ECHO_N='-n';;
11517esac
11518
11519rm -f conf$$ conf$$.exe conf$$.file
11520if test -d conf$$.dir; then
11521  rm -f conf$$.dir/conf$$.file
11522else
11523  rm -f conf$$.dir
11524  mkdir conf$$.dir 2>/dev/null
11525fi
11526if (echo >conf$$.file) 2>/dev/null; then
11527  if ln -s conf$$.file conf$$ 2>/dev/null; then
11528    as_ln_s='ln -s'
11529    # ... but there are two gotchas:
11530    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11531    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11532    # In both cases, we have to default to `cp -pR'.
11533    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11534      as_ln_s='cp -pR'
11535  elif ln conf$$.file conf$$ 2>/dev/null; then
11536    as_ln_s=ln
11537  else
11538    as_ln_s='cp -pR'
11539  fi
11540else
11541  as_ln_s='cp -pR'
11542fi
11543rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11544rmdir conf$$.dir 2>/dev/null
11545
11546
11547# as_fn_mkdir_p
11548# -------------
11549# Create "$as_dir" as a directory, including parents if necessary.
11550as_fn_mkdir_p ()
11551{
11552
11553  case $as_dir in #(
11554  -*) as_dir=./$as_dir;;
11555  esac
11556  test -d "$as_dir" || eval $as_mkdir_p || {
11557    as_dirs=
11558    while :; do
11559      case $as_dir in #(
11560      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11561      *) as_qdir=$as_dir;;
11562      esac
11563      as_dirs="'$as_qdir' $as_dirs"
11564      as_dir=`$as_dirname -- "$as_dir" ||
11565$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11566	 X"$as_dir" : 'X\(//\)[^/]' \| \
11567	 X"$as_dir" : 'X\(//\)$' \| \
11568	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11569$as_echo X"$as_dir" |
11570    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11571	    s//\1/
11572	    q
11573	  }
11574	  /^X\(\/\/\)[^/].*/{
11575	    s//\1/
11576	    q
11577	  }
11578	  /^X\(\/\/\)$/{
11579	    s//\1/
11580	    q
11581	  }
11582	  /^X\(\/\).*/{
11583	    s//\1/
11584	    q
11585	  }
11586	  s/.*/./; q'`
11587      test -d "$as_dir" && break
11588    done
11589    test -z "$as_dirs" || eval "mkdir $as_dirs"
11590  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11591
11592
11593} # as_fn_mkdir_p
11594if mkdir -p . 2>/dev/null; then
11595  as_mkdir_p='mkdir -p "$as_dir"'
11596else
11597  test -d ./-p && rmdir ./-p
11598  as_mkdir_p=false
11599fi
11600
11601
11602# as_fn_executable_p FILE
11603# -----------------------
11604# Test if FILE is an executable regular file.
11605as_fn_executable_p ()
11606{
11607  test -f "$1" && test -x "$1"
11608} # as_fn_executable_p
11609as_test_x='test -x'
11610as_executable_p=as_fn_executable_p
11611
11612# Sed expression to map a string onto a valid CPP name.
11613as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11614
11615# Sed expression to map a string onto a valid variable name.
11616as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11617
11618
11619exec 6>&1
11620## ----------------------------------- ##
11621## Main body of $CONFIG_STATUS script. ##
11622## ----------------------------------- ##
11623_ASEOF
11624test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11625
11626cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11627# Save the log message, to keep $0 and so on meaningful, and to
11628# report actual input values of CONFIG_FILES etc. instead of their
11629# values after options handling.
11630ac_log="
11631This file was extended by makedepend $as_me 1.0.6, which was
11632generated by GNU Autoconf 2.69.  Invocation command line was
11633
11634  CONFIG_FILES    = $CONFIG_FILES
11635  CONFIG_HEADERS  = $CONFIG_HEADERS
11636  CONFIG_LINKS    = $CONFIG_LINKS
11637  CONFIG_COMMANDS = $CONFIG_COMMANDS
11638  $ $0 $@
11639
11640on `(hostname || uname -n) 2>/dev/null | sed 1q`
11641"
11642
11643_ACEOF
11644
11645case $ac_config_files in *"
11646"*) set x $ac_config_files; shift; ac_config_files=$*;;
11647esac
11648
11649case $ac_config_headers in *"
11650"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11651esac
11652
11653
11654cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11655# Files that config.status was made for.
11656config_files="$ac_config_files"
11657config_headers="$ac_config_headers"
11658config_commands="$ac_config_commands"
11659
11660_ACEOF
11661
11662cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11663ac_cs_usage="\
11664\`$as_me' instantiates files and other configuration actions
11665from templates according to the current configuration.  Unless the files
11666and actions are specified as TAGs, all are instantiated by default.
11667
11668Usage: $0 [OPTION]... [TAG]...
11669
11670  -h, --help       print this help, then exit
11671  -V, --version    print version number and configuration settings, then exit
11672      --config     print configuration, then exit
11673  -q, --quiet, --silent
11674                   do not print progress messages
11675  -d, --debug      don't remove temporary files
11676      --recheck    update $as_me by reconfiguring in the same conditions
11677      --file=FILE[:TEMPLATE]
11678                   instantiate the configuration file FILE
11679      --header=FILE[:TEMPLATE]
11680                   instantiate the configuration header FILE
11681
11682Configuration files:
11683$config_files
11684
11685Configuration headers:
11686$config_headers
11687
11688Configuration commands:
11689$config_commands
11690
11691Report bugs to <https://gitlab.freedesktop.org/xorg/util/makedepend/issues>."
11692
11693_ACEOF
11694cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11695ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11696ac_cs_version="\\
11697makedepend config.status 1.0.6
11698configured by $0, generated by GNU Autoconf 2.69,
11699  with options \\"\$ac_cs_config\\"
11700
11701Copyright (C) 2012 Free Software Foundation, Inc.
11702This config.status script is free software; the Free Software Foundation
11703gives unlimited permission to copy, distribute and modify it."
11704
11705ac_pwd='$ac_pwd'
11706srcdir='$srcdir'
11707INSTALL='$INSTALL'
11708MKDIR_P='$MKDIR_P'
11709AWK='$AWK'
11710test -n "\$AWK" || AWK=awk
11711_ACEOF
11712
11713cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11714# The default lists apply if the user does not specify any file.
11715ac_need_defaults=:
11716while test $# != 0
11717do
11718  case $1 in
11719  --*=?*)
11720    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11721    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11722    ac_shift=:
11723    ;;
11724  --*=)
11725    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11726    ac_optarg=
11727    ac_shift=:
11728    ;;
11729  *)
11730    ac_option=$1
11731    ac_optarg=$2
11732    ac_shift=shift
11733    ;;
11734  esac
11735
11736  case $ac_option in
11737  # Handling of the options.
11738  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11739    ac_cs_recheck=: ;;
11740  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11741    $as_echo "$ac_cs_version"; exit ;;
11742  --config | --confi | --conf | --con | --co | --c )
11743    $as_echo "$ac_cs_config"; exit ;;
11744  --debug | --debu | --deb | --de | --d | -d )
11745    debug=: ;;
11746  --file | --fil | --fi | --f )
11747    $ac_shift
11748    case $ac_optarg in
11749    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11750    '') as_fn_error $? "missing file argument" ;;
11751    esac
11752    as_fn_append CONFIG_FILES " '$ac_optarg'"
11753    ac_need_defaults=false;;
11754  --header | --heade | --head | --hea )
11755    $ac_shift
11756    case $ac_optarg in
11757    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11758    esac
11759    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11760    ac_need_defaults=false;;
11761  --he | --h)
11762    # Conflict between --help and --header
11763    as_fn_error $? "ambiguous option: \`$1'
11764Try \`$0 --help' for more information.";;
11765  --help | --hel | -h )
11766    $as_echo "$ac_cs_usage"; exit ;;
11767  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11768  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11769    ac_cs_silent=: ;;
11770
11771  # This is an error.
11772  -*) as_fn_error $? "unrecognized option: \`$1'
11773Try \`$0 --help' for more information." ;;
11774
11775  *) as_fn_append ac_config_targets " $1"
11776     ac_need_defaults=false ;;
11777
11778  esac
11779  shift
11780done
11781
11782ac_configure_extra_args=
11783
11784if $ac_cs_silent; then
11785  exec 6>/dev/null
11786  ac_configure_extra_args="$ac_configure_extra_args --silent"
11787fi
11788
11789_ACEOF
11790cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11791if \$ac_cs_recheck; then
11792  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11793  shift
11794  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11795  CONFIG_SHELL='$SHELL'
11796  export CONFIG_SHELL
11797  exec "\$@"
11798fi
11799
11800_ACEOF
11801cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11802exec 5>>config.log
11803{
11804  echo
11805  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11806## Running $as_me. ##
11807_ASBOX
11808  $as_echo "$ac_log"
11809} >&5
11810
11811_ACEOF
11812cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11813#
11814# INIT-COMMANDS
11815#
11816AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11817
11818_ACEOF
11819
11820cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11821
11822# Handling of arguments.
11823for ac_config_target in $ac_config_targets
11824do
11825  case $ac_config_target in
11826    "makedepend-config.h") CONFIG_HEADERS="$CONFIG_HEADERS makedepend-config.h" ;;
11827    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11828    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11829
11830  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11831  esac
11832done
11833
11834
11835# If the user did not use the arguments to specify the items to instantiate,
11836# then the envvar interface is used.  Set only those that are not.
11837# We use the long form for the default assignment because of an extremely
11838# bizarre bug on SunOS 4.1.3.
11839if $ac_need_defaults; then
11840  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11841  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11842  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11843fi
11844
11845# Have a temporary directory for convenience.  Make it in the build tree
11846# simply because there is no reason against having it here, and in addition,
11847# creating and moving files from /tmp can sometimes cause problems.
11848# Hook for its removal unless debugging.
11849# Note that there is a small window in which the directory will not be cleaned:
11850# after its creation but before its name has been assigned to `$tmp'.
11851$debug ||
11852{
11853  tmp= ac_tmp=
11854  trap 'exit_status=$?
11855  : "${ac_tmp:=$tmp}"
11856  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11857' 0
11858  trap 'as_fn_exit 1' 1 2 13 15
11859}
11860# Create a (secure) tmp directory for tmp files.
11861
11862{
11863  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11864  test -d "$tmp"
11865}  ||
11866{
11867  tmp=./conf$$-$RANDOM
11868  (umask 077 && mkdir "$tmp")
11869} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11870ac_tmp=$tmp
11871
11872# Set up the scripts for CONFIG_FILES section.
11873# No need to generate them if there are no CONFIG_FILES.
11874# This happens for instance with `./config.status config.h'.
11875if test -n "$CONFIG_FILES"; then
11876
11877
11878ac_cr=`echo X | tr X '\015'`
11879# On cygwin, bash can eat \r inside `` if the user requested igncr.
11880# But we know of no other shell where ac_cr would be empty at this
11881# point, so we can use a bashism as a fallback.
11882if test "x$ac_cr" = x; then
11883  eval ac_cr=\$\'\\r\'
11884fi
11885ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11886if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11887  ac_cs_awk_cr='\\r'
11888else
11889  ac_cs_awk_cr=$ac_cr
11890fi
11891
11892echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11893_ACEOF
11894
11895
11896{
11897  echo "cat >conf$$subs.awk <<_ACEOF" &&
11898  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11899  echo "_ACEOF"
11900} >conf$$subs.sh ||
11901  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11902ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11903ac_delim='%!_!# '
11904for ac_last_try in false false false false false :; do
11905  . ./conf$$subs.sh ||
11906    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11907
11908  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11909  if test $ac_delim_n = $ac_delim_num; then
11910    break
11911  elif $ac_last_try; then
11912    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11913  else
11914    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11915  fi
11916done
11917rm -f conf$$subs.sh
11918
11919cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11920cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11921_ACEOF
11922sed -n '
11923h
11924s/^/S["/; s/!.*/"]=/
11925p
11926g
11927s/^[^!]*!//
11928:repl
11929t repl
11930s/'"$ac_delim"'$//
11931t delim
11932:nl
11933h
11934s/\(.\{148\}\)..*/\1/
11935t more1
11936s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11937p
11938n
11939b repl
11940:more1
11941s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11942p
11943g
11944s/.\{148\}//
11945t nl
11946:delim
11947h
11948s/\(.\{148\}\)..*/\1/
11949t more2
11950s/["\\]/\\&/g; s/^/"/; s/$/"/
11951p
11952b
11953:more2
11954s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11955p
11956g
11957s/.\{148\}//
11958t delim
11959' <conf$$subs.awk | sed '
11960/^[^""]/{
11961  N
11962  s/\n//
11963}
11964' >>$CONFIG_STATUS || ac_write_fail=1
11965rm -f conf$$subs.awk
11966cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11967_ACAWK
11968cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11969  for (key in S) S_is_set[key] = 1
11970  FS = ""
11971
11972}
11973{
11974  line = $ 0
11975  nfields = split(line, field, "@")
11976  substed = 0
11977  len = length(field[1])
11978  for (i = 2; i < nfields; i++) {
11979    key = field[i]
11980    keylen = length(key)
11981    if (S_is_set[key]) {
11982      value = S[key]
11983      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11984      len += length(value) + length(field[++i])
11985      substed = 1
11986    } else
11987      len += 1 + keylen
11988  }
11989
11990  print line
11991}
11992
11993_ACAWK
11994_ACEOF
11995cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11996if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11997  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11998else
11999  cat
12000fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12001  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12002_ACEOF
12003
12004# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12005# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12006# trailing colons and then remove the whole line if VPATH becomes empty
12007# (actually we leave an empty line to preserve line numbers).
12008if test "x$srcdir" = x.; then
12009  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12010h
12011s///
12012s/^/:/
12013s/[	 ]*$/:/
12014s/:\$(srcdir):/:/g
12015s/:\${srcdir}:/:/g
12016s/:@srcdir@:/:/g
12017s/^:*//
12018s/:*$//
12019x
12020s/\(=[	 ]*\).*/\1/
12021G
12022s/\n//
12023s/^[^=]*=[	 ]*$//
12024}'
12025fi
12026
12027cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12028fi # test -n "$CONFIG_FILES"
12029
12030# Set up the scripts for CONFIG_HEADERS section.
12031# No need to generate them if there are no CONFIG_HEADERS.
12032# This happens for instance with `./config.status Makefile'.
12033if test -n "$CONFIG_HEADERS"; then
12034cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12035BEGIN {
12036_ACEOF
12037
12038# Transform confdefs.h into an awk script `defines.awk', embedded as
12039# here-document in config.status, that substitutes the proper values into
12040# config.h.in to produce config.h.
12041
12042# Create a delimiter string that does not exist in confdefs.h, to ease
12043# handling of long lines.
12044ac_delim='%!_!# '
12045for ac_last_try in false false :; do
12046  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12047  if test -z "$ac_tt"; then
12048    break
12049  elif $ac_last_try; then
12050    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12051  else
12052    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12053  fi
12054done
12055
12056# For the awk script, D is an array of macro values keyed by name,
12057# likewise P contains macro parameters if any.  Preserve backslash
12058# newline sequences.
12059
12060ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12061sed -n '
12062s/.\{148\}/&'"$ac_delim"'/g
12063t rset
12064:rset
12065s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12066t def
12067d
12068:def
12069s/\\$//
12070t bsnl
12071s/["\\]/\\&/g
12072s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12073D["\1"]=" \3"/p
12074s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12075d
12076:bsnl
12077s/["\\]/\\&/g
12078s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12079D["\1"]=" \3\\\\\\n"\\/p
12080t cont
12081s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12082t cont
12083d
12084:cont
12085n
12086s/.\{148\}/&'"$ac_delim"'/g
12087t clear
12088:clear
12089s/\\$//
12090t bsnlc
12091s/["\\]/\\&/g; s/^/"/; s/$/"/p
12092d
12093:bsnlc
12094s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12095b cont
12096' <confdefs.h | sed '
12097s/'"$ac_delim"'/"\\\
12098"/g' >>$CONFIG_STATUS || ac_write_fail=1
12099
12100cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12101  for (key in D) D_is_set[key] = 1
12102  FS = ""
12103}
12104/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12105  line = \$ 0
12106  split(line, arg, " ")
12107  if (arg[1] == "#") {
12108    defundef = arg[2]
12109    mac1 = arg[3]
12110  } else {
12111    defundef = substr(arg[1], 2)
12112    mac1 = arg[2]
12113  }
12114  split(mac1, mac2, "(") #)
12115  macro = mac2[1]
12116  prefix = substr(line, 1, index(line, defundef) - 1)
12117  if (D_is_set[macro]) {
12118    # Preserve the white space surrounding the "#".
12119    print prefix "define", macro P[macro] D[macro]
12120    next
12121  } else {
12122    # Replace #undef with comments.  This is necessary, for example,
12123    # in the case of _POSIX_SOURCE, which is predefined and required
12124    # on some systems where configure will not decide to define it.
12125    if (defundef == "undef") {
12126      print "/*", prefix defundef, macro, "*/"
12127      next
12128    }
12129  }
12130}
12131{ print }
12132_ACAWK
12133_ACEOF
12134cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12135  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12136fi # test -n "$CONFIG_HEADERS"
12137
12138
12139eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12140shift
12141for ac_tag
12142do
12143  case $ac_tag in
12144  :[FHLC]) ac_mode=$ac_tag; continue;;
12145  esac
12146  case $ac_mode$ac_tag in
12147  :[FHL]*:*);;
12148  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12149  :[FH]-) ac_tag=-:-;;
12150  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12151  esac
12152  ac_save_IFS=$IFS
12153  IFS=:
12154  set x $ac_tag
12155  IFS=$ac_save_IFS
12156  shift
12157  ac_file=$1
12158  shift
12159
12160  case $ac_mode in
12161  :L) ac_source=$1;;
12162  :[FH])
12163    ac_file_inputs=
12164    for ac_f
12165    do
12166      case $ac_f in
12167      -) ac_f="$ac_tmp/stdin";;
12168      *) # Look for the file first in the build tree, then in the source tree
12169	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12170	 # because $ac_f cannot contain `:'.
12171	 test -f "$ac_f" ||
12172	   case $ac_f in
12173	   [\\/$]*) false;;
12174	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12175	   esac ||
12176	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12177      esac
12178      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12179      as_fn_append ac_file_inputs " '$ac_f'"
12180    done
12181
12182    # Let's still pretend it is `configure' which instantiates (i.e., don't
12183    # use $as_me), people would be surprised to read:
12184    #    /* config.h.  Generated by config.status.  */
12185    configure_input='Generated from '`
12186	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12187	`' by configure.'
12188    if test x"$ac_file" != x-; then
12189      configure_input="$ac_file.  $configure_input"
12190      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12191$as_echo "$as_me: creating $ac_file" >&6;}
12192    fi
12193    # Neutralize special characters interpreted by sed in replacement strings.
12194    case $configure_input in #(
12195    *\&* | *\|* | *\\* )
12196       ac_sed_conf_input=`$as_echo "$configure_input" |
12197       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12198    *) ac_sed_conf_input=$configure_input;;
12199    esac
12200
12201    case $ac_tag in
12202    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12203      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12204    esac
12205    ;;
12206  esac
12207
12208  ac_dir=`$as_dirname -- "$ac_file" ||
12209$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12210	 X"$ac_file" : 'X\(//\)[^/]' \| \
12211	 X"$ac_file" : 'X\(//\)$' \| \
12212	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12213$as_echo X"$ac_file" |
12214    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12215	    s//\1/
12216	    q
12217	  }
12218	  /^X\(\/\/\)[^/].*/{
12219	    s//\1/
12220	    q
12221	  }
12222	  /^X\(\/\/\)$/{
12223	    s//\1/
12224	    q
12225	  }
12226	  /^X\(\/\).*/{
12227	    s//\1/
12228	    q
12229	  }
12230	  s/.*/./; q'`
12231  as_dir="$ac_dir"; as_fn_mkdir_p
12232  ac_builddir=.
12233
12234case "$ac_dir" in
12235.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12236*)
12237  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12238  # A ".." for each directory in $ac_dir_suffix.
12239  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12240  case $ac_top_builddir_sub in
12241  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12242  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12243  esac ;;
12244esac
12245ac_abs_top_builddir=$ac_pwd
12246ac_abs_builddir=$ac_pwd$ac_dir_suffix
12247# for backward compatibility:
12248ac_top_builddir=$ac_top_build_prefix
12249
12250case $srcdir in
12251  .)  # We are building in place.
12252    ac_srcdir=.
12253    ac_top_srcdir=$ac_top_builddir_sub
12254    ac_abs_top_srcdir=$ac_pwd ;;
12255  [\\/]* | ?:[\\/]* )  # Absolute name.
12256    ac_srcdir=$srcdir$ac_dir_suffix;
12257    ac_top_srcdir=$srcdir
12258    ac_abs_top_srcdir=$srcdir ;;
12259  *) # Relative name.
12260    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12261    ac_top_srcdir=$ac_top_build_prefix$srcdir
12262    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12263esac
12264ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12265
12266
12267  case $ac_mode in
12268  :F)
12269  #
12270  # CONFIG_FILE
12271  #
12272
12273  case $INSTALL in
12274  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12275  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12276  esac
12277  ac_MKDIR_P=$MKDIR_P
12278  case $MKDIR_P in
12279  [\\/$]* | ?:[\\/]* ) ;;
12280  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12281  esac
12282_ACEOF
12283
12284cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12285# If the template does not know about datarootdir, expand it.
12286# FIXME: This hack should be removed a few years after 2.60.
12287ac_datarootdir_hack=; ac_datarootdir_seen=
12288ac_sed_dataroot='
12289/datarootdir/ {
12290  p
12291  q
12292}
12293/@datadir@/p
12294/@docdir@/p
12295/@infodir@/p
12296/@localedir@/p
12297/@mandir@/p'
12298case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12299*datarootdir*) ac_datarootdir_seen=yes;;
12300*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12301  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12302$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12303_ACEOF
12304cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12305  ac_datarootdir_hack='
12306  s&@datadir@&$datadir&g
12307  s&@docdir@&$docdir&g
12308  s&@infodir@&$infodir&g
12309  s&@localedir@&$localedir&g
12310  s&@mandir@&$mandir&g
12311  s&\\\${datarootdir}&$datarootdir&g' ;;
12312esac
12313_ACEOF
12314
12315# Neutralize VPATH when `$srcdir' = `.'.
12316# Shell code in configure.ac might set extrasub.
12317# FIXME: do we really want to maintain this feature?
12318cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12319ac_sed_extra="$ac_vpsub
12320$extrasub
12321_ACEOF
12322cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12323:t
12324/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12325s|@configure_input@|$ac_sed_conf_input|;t t
12326s&@top_builddir@&$ac_top_builddir_sub&;t t
12327s&@top_build_prefix@&$ac_top_build_prefix&;t t
12328s&@srcdir@&$ac_srcdir&;t t
12329s&@abs_srcdir@&$ac_abs_srcdir&;t t
12330s&@top_srcdir@&$ac_top_srcdir&;t t
12331s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12332s&@builddir@&$ac_builddir&;t t
12333s&@abs_builddir@&$ac_abs_builddir&;t t
12334s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12335s&@INSTALL@&$ac_INSTALL&;t t
12336s&@MKDIR_P@&$ac_MKDIR_P&;t t
12337$ac_datarootdir_hack
12338"
12339eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12340  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12341
12342test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12343  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12344  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12345      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12346  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12347which seems to be undefined.  Please make sure it is defined" >&5
12348$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12349which seems to be undefined.  Please make sure it is defined" >&2;}
12350
12351  rm -f "$ac_tmp/stdin"
12352  case $ac_file in
12353  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12354  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12355  esac \
12356  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12357 ;;
12358  :H)
12359  #
12360  # CONFIG_HEADER
12361  #
12362  if test x"$ac_file" != x-; then
12363    {
12364      $as_echo "/* $configure_input  */" \
12365      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12366    } >"$ac_tmp/config.h" \
12367      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12368    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12369      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12370$as_echo "$as_me: $ac_file is unchanged" >&6;}
12371    else
12372      rm -f "$ac_file"
12373      mv "$ac_tmp/config.h" "$ac_file" \
12374	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12375    fi
12376  else
12377    $as_echo "/* $configure_input  */" \
12378      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12379      || as_fn_error $? "could not create -" "$LINENO" 5
12380  fi
12381# Compute "$ac_file"'s index in $config_headers.
12382_am_arg="$ac_file"
12383_am_stamp_count=1
12384for _am_header in $config_headers :; do
12385  case $_am_header in
12386    $_am_arg | $_am_arg:* )
12387      break ;;
12388    * )
12389      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12390  esac
12391done
12392echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12393$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12394	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12395	 X"$_am_arg" : 'X\(//\)$' \| \
12396	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12397$as_echo X"$_am_arg" |
12398    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12399	    s//\1/
12400	    q
12401	  }
12402	  /^X\(\/\/\)[^/].*/{
12403	    s//\1/
12404	    q
12405	  }
12406	  /^X\(\/\/\)$/{
12407	    s//\1/
12408	    q
12409	  }
12410	  /^X\(\/\).*/{
12411	    s//\1/
12412	    q
12413	  }
12414	  s/.*/./; q'`/stamp-h$_am_stamp_count
12415 ;;
12416
12417  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12418$as_echo "$as_me: executing $ac_file commands" >&6;}
12419 ;;
12420  esac
12421
12422
12423  case $ac_file$ac_mode in
12424    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12425  # Older Autoconf quotes --file arguments for eval, but not when files
12426  # are listed without --file.  Let's play safe and only enable the eval
12427  # if we detect the quoting.
12428  case $CONFIG_FILES in
12429  *\'*) eval set x "$CONFIG_FILES" ;;
12430  *)   set x $CONFIG_FILES ;;
12431  esac
12432  shift
12433  for mf
12434  do
12435    # Strip MF so we end up with the name of the file.
12436    mf=`echo "$mf" | sed -e 's/:.*$//'`
12437    # Check whether this is an Automake generated Makefile or not.
12438    # We used to match only the files named 'Makefile.in', but
12439    # some people rename them; so instead we look at the file content.
12440    # Grep'ing the first line is not enough: some people post-process
12441    # each Makefile.in and add a new line on top of each file to say so.
12442    # Grep'ing the whole file is not good either: AIX grep has a line
12443    # limit of 2048, but all sed's we know have understand at least 4000.
12444    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12445      dirpart=`$as_dirname -- "$mf" ||
12446$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12447	 X"$mf" : 'X\(//\)[^/]' \| \
12448	 X"$mf" : 'X\(//\)$' \| \
12449	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12450$as_echo X"$mf" |
12451    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12452	    s//\1/
12453	    q
12454	  }
12455	  /^X\(\/\/\)[^/].*/{
12456	    s//\1/
12457	    q
12458	  }
12459	  /^X\(\/\/\)$/{
12460	    s//\1/
12461	    q
12462	  }
12463	  /^X\(\/\).*/{
12464	    s//\1/
12465	    q
12466	  }
12467	  s/.*/./; q'`
12468    else
12469      continue
12470    fi
12471    # Extract the definition of DEPDIR, am__include, and am__quote
12472    # from the Makefile without running 'make'.
12473    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12474    test -z "$DEPDIR" && continue
12475    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12476    test -z "$am__include" && continue
12477    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12478    # Find all dependency output files, they are included files with
12479    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12480    # simplest approach to changing $(DEPDIR) to its actual value in the
12481    # expansion.
12482    for file in `sed -n "
12483      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12484	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12485      # Make sure the directory exists.
12486      test -f "$dirpart/$file" && continue
12487      fdir=`$as_dirname -- "$file" ||
12488$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12489	 X"$file" : 'X\(//\)[^/]' \| \
12490	 X"$file" : 'X\(//\)$' \| \
12491	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12492$as_echo X"$file" |
12493    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12494	    s//\1/
12495	    q
12496	  }
12497	  /^X\(\/\/\)[^/].*/{
12498	    s//\1/
12499	    q
12500	  }
12501	  /^X\(\/\/\)$/{
12502	    s//\1/
12503	    q
12504	  }
12505	  /^X\(\/\).*/{
12506	    s//\1/
12507	    q
12508	  }
12509	  s/.*/./; q'`
12510      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12511      # echo "creating $dirpart/$file"
12512      echo '# dummy' > "$dirpart/$file"
12513    done
12514  done
12515}
12516 ;;
12517
12518  esac
12519done # for ac_tag
12520
12521
12522as_fn_exit 0
12523_ACEOF
12524ac_clean_files=$ac_clean_files_save
12525
12526test $ac_write_fail = 0 ||
12527  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12528
12529
12530# configure is writing to config.log, and then calls config.status.
12531# config.status does its own redirection, appending to config.log.
12532# Unfortunately, on DOS this fails, as config.log is still kept open
12533# by configure, so config.status won't be able to write to it; its
12534# output is simply discarded.  So we exec the FD to /dev/null,
12535# effectively closing config.log, so it can be properly (re)opened and
12536# appended to by config.status.  When coming back to configure, we
12537# need to make the FD available again.
12538if test "$no_create" != yes; then
12539  ac_cs_success=:
12540  ac_config_status_args=
12541  test "$silent" = yes &&
12542    ac_config_status_args="$ac_config_status_args --quiet"
12543  exec 5>/dev/null
12544  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12545  exec 5>>config.log
12546  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12547  # would make configure fail if this is the last instruction.
12548  $ac_cs_success || as_fn_exit 1
12549fi
12550if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12551  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12552$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12553fi
12554
12555