configure revision 4d9306db
11.19Sdholland#! /bin/sh
21.7Scgd# Guess values for system-dependent variables and create Makefiles.
31.4Scgd# Generated by GNU Autoconf 2.69 for xfsinfo 1.0.6.
41.5Smycroft#
51.5Smycroft# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfsinfo/issues>.
61.4Scgd#
71.4Scgd#
81.4Scgd# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
91.4Scgd#
101.4Scgd#
111.4Scgd# This configure script is free software; the Free Software Foundation
121.4Scgd# gives unlimited permission to copy, distribute and modify it.
131.4Scgd## -------------------- ##
141.4Scgd## M4sh Initialization. ##
151.4Scgd## -------------------- ##
161.4Scgd
171.4Scgd# Be more Bourne compatible
181.4ScgdDUALCASE=1; export DUALCASE # for MKS sh
191.4Scgdif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
201.14Sagc  emulate sh
211.4Scgd  NULLCMD=:
221.4Scgd  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
231.4Scgd  # is contrary to our usage.  Disable this feature.
241.4Scgd  alias -g '${1+"$@"}'='"$@"'
251.4Scgd  setopt NO_GLOB_SUBST
261.4Scgdelse
271.4Scgd  case `(set -o) 2>/dev/null` in #(
281.4Scgd  *posix*) :
291.4Scgd    set -o posix ;; #(
301.4Scgd  *) :
311.4Scgd     ;;
321.4Scgdesac
331.4Scgdfi
341.4Scgd
351.4Scgd
361.7Scgdas_nl='
371.4Scgd'
381.4Scgdexport as_nl
391.4Scgd# Printing a long string crashes Solaris 7 /usr/bin/printf.
401.4Scgdas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
411.4Scgdas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
421.4Scgdas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
431.4Scgd# Prefer a ksh shell builtin over an external printf program on Solaris,
441.15Senami# but without wasting forks for bash or zsh.
451.4Scgdif test -z "$BASH_VERSION$ZSH_VERSION" \
461.11Swiz    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
471.4Scgd  as_echo='print -r --'
481.4Scgd  as_echo_n='print -rn --'
491.4Scgdelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
501.10Schristos  as_echo='printf %s\n'
511.4Scgd  as_echo_n='printf %s'
521.17Sfredbelse
531.4Scgd  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
541.4Scgd    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
551.4Scgd    as_echo_n='/usr/ucb/echo -n'
561.4Scgd  else
571.6Smycroft    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
581.4Scgd    as_echo_n_body='eval
591.9Slukem      arg=$1;
601.9Slukem      case $arg in #(
611.9Slukem      *"$as_nl"*)
621.4Scgd	expr "X$arg" : "X\\(.*\\)$as_nl";
631.4Scgd	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
641.4Scgd      esac;
651.12Senami      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
661.4Scgd    '
671.18Schristos    export as_echo_n_body
681.4Scgd    as_echo_n='sh -c $as_echo_n_body as_echo'
691.4Scgd  fi
701.16Sbouyer  export as_echo_body
711.4Scgd  as_echo='sh -c $as_echo_body as_echo'
721.15Senamifi
731.15Senami
741.15Senami# The user is always right.
751.15Senamiif test "${PATH_SEPARATOR+set}" != set; then
761.19Sdholland  PATH_SEPARATOR=:
771.15Senami  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
781.15Senami    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
791.15Senami      PATH_SEPARATOR=';'
801.15Senami  }
811.15Senamifi
821.15Senami
831.4Scgd
841.4Scgd# IFS
851.4Scgd# We need space, tab and new line, in precisely that order.  Quoting is
861.4Scgd# there to prevent editors from complaining about space-tab.
871.4Scgd# (If _AS_PATH_WALK were called with IFS unset, it would disable word
881.4Scgd# splitting by setting IFS to empty value.)
891.4ScgdIFS=" ""	$as_nl"
901.9Slukem
911.4Scgd# Find who we are.  Look in the path if we contain no directory separator.
921.9Slukemas_myself=
931.4Scgdcase $0 in #((
941.4Scgd  *[\\/]* ) as_myself=$0 ;;
951.4Scgd  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
961.4Scgdfor as_dir in $PATH
971.4Scgddo
981.4Scgd  IFS=$as_save_IFS
991.4Scgd  test -z "$as_dir" && as_dir=.
1001.4Scgd    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1011.4Scgd  done
1021.4ScgdIFS=$as_save_IFS
1031.4Scgd
1041.4Scgd     ;;
1051.4Scgdesac
1061.4Scgd# We did not find ourselves, most probably we were run as `sh COMMAND'
1071.4Scgd# in which case we are not to be found in the path.
1081.4Scgdif test "x$as_myself" = x; then
1091.4Scgd  as_myself=$0
1101.4Scgdfi
1111.4Scgdif test ! -f "$as_myself"; then
1121.4Scgd  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1131.4Scgd  exit 1
1141.4Scgdfi
1151.4Scgd
1161.4Scgd# Unset variables that we do not need and which cause bugs (e.g. in
1171.4Scgd# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
1181.4Scgd# suppresses any "Segmentation fault" message there.  '((' could
1191.4Scgd# trigger a bug in pdksh 5.2.14.
1201.4Scgdfor as_var in BASH_ENV ENV MAIL MAILPATH
1211.4Scgddo eval test x\${$as_var+set} = xset \
1221.13Sfvdl  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1231.13Sfvdldone
1241.13SfvdlPS1='$ '
1251.13SfvdlPS2='> '
1261.13SfvdlPS4='+ '
1271.13Sfvdl
1281.13Sfvdl# NLS nuisances.
1291.13SfvdlLC_ALL=C
1301.13Sfvdlexport LC_ALL
1311.13SfvdlLANGUAGE=C
1321.13Sfvdlexport LANGUAGE
1331.13Sfvdl
1341.13Sfvdl# CDPATH.
1351.13Sfvdl(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1361.18Schristos
1371.4Scgd# Use a proper internal environment variable to ensure we don't fall
1381.4Scgd  # into an infinite loop, continuously re-executing ourselves.
1391.4Scgd  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
1401.4Scgd    _as_can_reexec=no; export _as_can_reexec;
1411.4Scgd    # We cannot yet assume a decent shell, so we have to provide a
1421.4Scgd# neutralization value for shells without unset; and this also
1431.4Scgd# works around shells that cannot unset nonexistent variables.
1441.4Scgd# Preserve -v and -x to the replacement shell.
1451.4ScgdBASH_ENV=/dev/null
1461.4ScgdENV=/dev/null
1471.4Scgd(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
1481.4Scgdcase $- in # ((((
1491.4Scgd  *v*x* | *x*v* ) as_opts=-vx ;;
1501.4Scgd  *v* ) as_opts=-v ;;
1511.4Scgd  *x* ) as_opts=-x ;;
1521.4Scgd  * ) as_opts= ;;
1531.4Scgdesac
1541.4Scgdexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
1551.4Scgd# Admittedly, this is quite paranoid, since all the known shells bail
1561.4Scgd# out after a failed `exec'.
1571.4Scgd$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
1581.6Smycroftas_fn_exit 255
1591.6Smycroft  fi
1601.4Scgd  # We don't want this to propagate to other subprocesses.
1611.4Scgd          { _as_can_reexec=; unset _as_can_reexec;}
1621.4Scgdif test "x$CONFIG_SHELL" = x; then
1631.4Scgd  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
1641.4Scgd  emulate sh
1651.4Scgd  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/app/xfsinfo/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='xfsinfo'
583PACKAGE_TARNAME='xfsinfo'
584PACKAGE_VERSION='1.0.6'
585PACKAGE_STRING='xfsinfo 1.0.6'
586PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xfsinfo/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
630XFSINFO_LIBS
631XFSINFO_CFLAGS
632MAN_SUBSTS
633XORG_MAN_PAGE
634ADMIN_MAN_DIR
635DRIVER_MAN_DIR
636MISC_MAN_DIR
637FILE_MAN_DIR
638LIB_MAN_DIR
639APP_MAN_DIR
640ADMIN_MAN_SUFFIX
641DRIVER_MAN_SUFFIX
642MISC_MAN_SUFFIX
643FILE_MAN_SUFFIX
644LIB_MAN_SUFFIX
645APP_MAN_SUFFIX
646SED
647host_os
648host_vendor
649host_cpu
650host
651build_os
652build_vendor
653build_cpu
654build
655INSTALL_CMD
656PKG_CONFIG_LIBDIR
657PKG_CONFIG_PATH
658PKG_CONFIG
659CHANGELOG_CMD
660STRICT_CFLAGS
661CWARNFLAGS
662BASE_CFLAGS
663EGREP
664GREP
665CPP
666am__fastdepCC_FALSE
667am__fastdepCC_TRUE
668CCDEPMODE
669am__nodep
670AMDEPBACKSLASH
671AMDEP_FALSE
672AMDEP_TRUE
673am__quote
674am__include
675DEPDIR
676OBJEXT
677EXEEXT
678ac_ct_CC
679CPPFLAGS
680LDFLAGS
681CFLAGS
682CC
683AM_BACKSLASH
684AM_DEFAULT_VERBOSITY
685AM_DEFAULT_V
686AM_V
687am__untar
688am__tar
689AMTAR
690am__leading_dot
691SET_MAKE
692AWK
693mkdir_p
694MKDIR_P
695INSTALL_STRIP_PROGRAM
696STRIP
697install_sh
698MAKEINFO
699AUTOHEADER
700AUTOMAKE
701AUTOCONF
702ACLOCAL
703VERSION
704PACKAGE
705CYGPATH_W
706am__isrc
707INSTALL_DATA
708INSTALL_SCRIPT
709INSTALL_PROGRAM
710target_alias
711host_alias
712build_alias
713LIBS
714ECHO_T
715ECHO_N
716ECHO_C
717DEFS
718mandir
719localedir
720libdir
721psdir
722pdfdir
723dvidir
724htmldir
725infodir
726docdir
727oldincludedir
728includedir
729localstatedir
730sharedstatedir
731sysconfdir
732datadir
733datarootdir
734libexecdir
735sbindir
736bindir
737program_transform_name
738prefix
739exec_prefix
740PACKAGE_URL
741PACKAGE_BUGREPORT
742PACKAGE_STRING
743PACKAGE_VERSION
744PACKAGE_TARNAME
745PACKAGE_NAME
746PATH_SEPARATOR
747SHELL'
748ac_subst_files=''
749ac_user_opts='
750enable_option_checking
751enable_silent_rules
752enable_dependency_tracking
753enable_selective_werror
754enable_strict_compilation
755'
756      ac_precious_vars='build_alias
757host_alias
758target_alias
759CC
760CFLAGS
761LDFLAGS
762LIBS
763CPPFLAGS
764CPP
765PKG_CONFIG
766PKG_CONFIG_PATH
767PKG_CONFIG_LIBDIR
768XFSINFO_CFLAGS
769XFSINFO_LIBS'
770
771
772# Initialize some variables set by options.
773ac_init_help=
774ac_init_version=false
775ac_unrecognized_opts=
776ac_unrecognized_sep=
777# The variables have the same names as the options, with
778# dashes changed to underlines.
779cache_file=/dev/null
780exec_prefix=NONE
781no_create=
782no_recursion=
783prefix=NONE
784program_prefix=NONE
785program_suffix=NONE
786program_transform_name=s,x,x,
787silent=
788site=
789srcdir=
790verbose=
791x_includes=NONE
792x_libraries=NONE
793
794# Installation directory options.
795# These are left unexpanded so users can "make install exec_prefix=/foo"
796# and all the variables that are supposed to be based on exec_prefix
797# by default will actually change.
798# Use braces instead of parens because sh, perl, etc. also accept them.
799# (The list follows the same order as the GNU Coding Standards.)
800bindir='${exec_prefix}/bin'
801sbindir='${exec_prefix}/sbin'
802libexecdir='${exec_prefix}/libexec'
803datarootdir='${prefix}/share'
804datadir='${datarootdir}'
805sysconfdir='${prefix}/etc'
806sharedstatedir='${prefix}/com'
807localstatedir='${prefix}/var'
808includedir='${prefix}/include'
809oldincludedir='/usr/include'
810docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
811infodir='${datarootdir}/info'
812htmldir='${docdir}'
813dvidir='${docdir}'
814pdfdir='${docdir}'
815psdir='${docdir}'
816libdir='${exec_prefix}/lib'
817localedir='${datarootdir}/locale'
818mandir='${datarootdir}/man'
819
820ac_prev=
821ac_dashdash=
822for ac_option
823do
824  # If the previous option needs an argument, assign it.
825  if test -n "$ac_prev"; then
826    eval $ac_prev=\$ac_option
827    ac_prev=
828    continue
829  fi
830
831  case $ac_option in
832  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
833  *=)   ac_optarg= ;;
834  *)    ac_optarg=yes ;;
835  esac
836
837  # Accept the important Cygnus configure options, so we can diagnose typos.
838
839  case $ac_dashdash$ac_option in
840  --)
841    ac_dashdash=yes ;;
842
843  -bindir | --bindir | --bindi | --bind | --bin | --bi)
844    ac_prev=bindir ;;
845  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
846    bindir=$ac_optarg ;;
847
848  -build | --build | --buil | --bui | --bu)
849    ac_prev=build_alias ;;
850  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
851    build_alias=$ac_optarg ;;
852
853  -cache-file | --cache-file | --cache-fil | --cache-fi \
854  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
855    ac_prev=cache_file ;;
856  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
857  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
858    cache_file=$ac_optarg ;;
859
860  --config-cache | -C)
861    cache_file=config.cache ;;
862
863  -datadir | --datadir | --datadi | --datad)
864    ac_prev=datadir ;;
865  -datadir=* | --datadir=* | --datadi=* | --datad=*)
866    datadir=$ac_optarg ;;
867
868  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
869  | --dataroo | --dataro | --datar)
870    ac_prev=datarootdir ;;
871  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
872  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
873    datarootdir=$ac_optarg ;;
874
875  -disable-* | --disable-*)
876    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877    # Reject names that are not valid shell variable names.
878    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879      as_fn_error $? "invalid feature name: $ac_useropt"
880    ac_useropt_orig=$ac_useropt
881    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882    case $ac_user_opts in
883      *"
884"enable_$ac_useropt"
885"*) ;;
886      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
887	 ac_unrecognized_sep=', ';;
888    esac
889    eval enable_$ac_useropt=no ;;
890
891  -docdir | --docdir | --docdi | --doc | --do)
892    ac_prev=docdir ;;
893  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894    docdir=$ac_optarg ;;
895
896  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897    ac_prev=dvidir ;;
898  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899    dvidir=$ac_optarg ;;
900
901  -enable-* | --enable-*)
902    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
903    # Reject names that are not valid shell variable names.
904    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905      as_fn_error $? "invalid feature name: $ac_useropt"
906    ac_useropt_orig=$ac_useropt
907    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908    case $ac_user_opts in
909      *"
910"enable_$ac_useropt"
911"*) ;;
912      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
913	 ac_unrecognized_sep=', ';;
914    esac
915    eval enable_$ac_useropt=\$ac_optarg ;;
916
917  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
918  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
919  | --exec | --exe | --ex)
920    ac_prev=exec_prefix ;;
921  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
922  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
923  | --exec=* | --exe=* | --ex=*)
924    exec_prefix=$ac_optarg ;;
925
926  -gas | --gas | --ga | --g)
927    # Obsolete; use --with-gas.
928    with_gas=yes ;;
929
930  -help | --help | --hel | --he | -h)
931    ac_init_help=long ;;
932  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
933    ac_init_help=recursive ;;
934  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
935    ac_init_help=short ;;
936
937  -host | --host | --hos | --ho)
938    ac_prev=host_alias ;;
939  -host=* | --host=* | --hos=* | --ho=*)
940    host_alias=$ac_optarg ;;
941
942  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943    ac_prev=htmldir ;;
944  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945  | --ht=*)
946    htmldir=$ac_optarg ;;
947
948  -includedir | --includedir | --includedi | --included | --include \
949  | --includ | --inclu | --incl | --inc)
950    ac_prev=includedir ;;
951  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952  | --includ=* | --inclu=* | --incl=* | --inc=*)
953    includedir=$ac_optarg ;;
954
955  -infodir | --infodir | --infodi | --infod | --info | --inf)
956    ac_prev=infodir ;;
957  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
958    infodir=$ac_optarg ;;
959
960  -libdir | --libdir | --libdi | --libd)
961    ac_prev=libdir ;;
962  -libdir=* | --libdir=* | --libdi=* | --libd=*)
963    libdir=$ac_optarg ;;
964
965  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
966  | --libexe | --libex | --libe)
967    ac_prev=libexecdir ;;
968  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
969  | --libexe=* | --libex=* | --libe=*)
970    libexecdir=$ac_optarg ;;
971
972  -localedir | --localedir | --localedi | --localed | --locale)
973    ac_prev=localedir ;;
974  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
975    localedir=$ac_optarg ;;
976
977  -localstatedir | --localstatedir | --localstatedi | --localstated \
978  | --localstate | --localstat | --localsta | --localst | --locals)
979    ac_prev=localstatedir ;;
980  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
981  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
982    localstatedir=$ac_optarg ;;
983
984  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985    ac_prev=mandir ;;
986  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
987    mandir=$ac_optarg ;;
988
989  -nfp | --nfp | --nf)
990    # Obsolete; use --without-fp.
991    with_fp=no ;;
992
993  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994  | --no-cr | --no-c | -n)
995    no_create=yes ;;
996
997  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999    no_recursion=yes ;;
1000
1001  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1002  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1003  | --oldin | --oldi | --old | --ol | --o)
1004    ac_prev=oldincludedir ;;
1005  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1006  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1007  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1008    oldincludedir=$ac_optarg ;;
1009
1010  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011    ac_prev=prefix ;;
1012  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1013    prefix=$ac_optarg ;;
1014
1015  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1016  | --program-pre | --program-pr | --program-p)
1017    ac_prev=program_prefix ;;
1018  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1019  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1020    program_prefix=$ac_optarg ;;
1021
1022  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023  | --program-suf | --program-su | --program-s)
1024    ac_prev=program_suffix ;;
1025  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1027    program_suffix=$ac_optarg ;;
1028
1029  -program-transform-name | --program-transform-name \
1030  | --program-transform-nam | --program-transform-na \
1031  | --program-transform-n | --program-transform- \
1032  | --program-transform | --program-transfor \
1033  | --program-transfo | --program-transf \
1034  | --program-trans | --program-tran \
1035  | --progr-tra | --program-tr | --program-t)
1036    ac_prev=program_transform_name ;;
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    program_transform_name=$ac_optarg ;;
1045
1046  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047    ac_prev=pdfdir ;;
1048  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1049    pdfdir=$ac_optarg ;;
1050
1051  -psdir | --psdir | --psdi | --psd | --ps)
1052    ac_prev=psdir ;;
1053  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1054    psdir=$ac_optarg ;;
1055
1056  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057  | -silent | --silent | --silen | --sile | --sil)
1058    silent=yes ;;
1059
1060  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061    ac_prev=sbindir ;;
1062  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063  | --sbi=* | --sb=*)
1064    sbindir=$ac_optarg ;;
1065
1066  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1067  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1068  | --sharedst | --shareds | --shared | --share | --shar \
1069  | --sha | --sh)
1070    ac_prev=sharedstatedir ;;
1071  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1072  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1073  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074  | --sha=* | --sh=*)
1075    sharedstatedir=$ac_optarg ;;
1076
1077  -site | --site | --sit)
1078    ac_prev=site ;;
1079  -site=* | --site=* | --sit=*)
1080    site=$ac_optarg ;;
1081
1082  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083    ac_prev=srcdir ;;
1084  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1085    srcdir=$ac_optarg ;;
1086
1087  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1088  | --syscon | --sysco | --sysc | --sys | --sy)
1089    ac_prev=sysconfdir ;;
1090  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1091  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1092    sysconfdir=$ac_optarg ;;
1093
1094  -target | --target | --targe | --targ | --tar | --ta | --t)
1095    ac_prev=target_alias ;;
1096  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1097    target_alias=$ac_optarg ;;
1098
1099  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1100    verbose=yes ;;
1101
1102  -version | --version | --versio | --versi | --vers | -V)
1103    ac_init_version=: ;;
1104
1105  -with-* | --with-*)
1106    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1107    # Reject names that are not valid shell variable names.
1108    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109      as_fn_error $? "invalid package name: $ac_useropt"
1110    ac_useropt_orig=$ac_useropt
1111    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112    case $ac_user_opts in
1113      *"
1114"with_$ac_useropt"
1115"*) ;;
1116      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1117	 ac_unrecognized_sep=', ';;
1118    esac
1119    eval with_$ac_useropt=\$ac_optarg ;;
1120
1121  -without-* | --without-*)
1122    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1123    # Reject names that are not valid shell variable names.
1124    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125      as_fn_error $? "invalid package name: $ac_useropt"
1126    ac_useropt_orig=$ac_useropt
1127    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128    case $ac_user_opts in
1129      *"
1130"with_$ac_useropt"
1131"*) ;;
1132      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1133	 ac_unrecognized_sep=', ';;
1134    esac
1135    eval with_$ac_useropt=no ;;
1136
1137  --x)
1138    # Obsolete; use --with-x.
1139    with_x=yes ;;
1140
1141  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142  | --x-incl | --x-inc | --x-in | --x-i)
1143    ac_prev=x_includes ;;
1144  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146    x_includes=$ac_optarg ;;
1147
1148  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150    ac_prev=x_libraries ;;
1151  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153    x_libraries=$ac_optarg ;;
1154
1155  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1156Try \`$0 --help' for more information"
1157    ;;
1158
1159  *=*)
1160    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1161    # Reject names that are not valid shell variable names.
1162    case $ac_envvar in #(
1163      '' | [0-9]* | *[!_$as_cr_alnum]* )
1164      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1165    esac
1166    eval $ac_envvar=\$ac_optarg
1167    export $ac_envvar ;;
1168
1169  *)
1170    # FIXME: should be removed in autoconf 3.0.
1171    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1175    ;;
1176
1177  esac
1178done
1179
1180if test -n "$ac_prev"; then
1181  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182  as_fn_error $? "missing argument to $ac_option"
1183fi
1184
1185if test -n "$ac_unrecognized_opts"; then
1186  case $enable_option_checking in
1187    no) ;;
1188    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1189    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1190  esac
1191fi
1192
1193# Check all directory arguments for consistency.
1194for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1195		datadir sysconfdir sharedstatedir localstatedir includedir \
1196		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1197		libdir localedir mandir
1198do
1199  eval ac_val=\$$ac_var
1200  # Remove trailing slashes.
1201  case $ac_val in
1202    */ )
1203      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1204      eval $ac_var=\$ac_val;;
1205  esac
1206  # Be sure to have absolute directory names.
1207  case $ac_val in
1208    [\\/$]* | ?:[\\/]* )  continue;;
1209    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210  esac
1211  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1212done
1213
1214# There might be people who depend on the old broken behavior: `$host'
1215# used to hold the argument of --host etc.
1216# FIXME: To remove some day.
1217build=$build_alias
1218host=$host_alias
1219target=$target_alias
1220
1221# FIXME: To remove some day.
1222if test "x$host_alias" != x; then
1223  if test "x$build_alias" = x; then
1224    cross_compiling=maybe
1225  elif test "x$build_alias" != "x$host_alias"; then
1226    cross_compiling=yes
1227  fi
1228fi
1229
1230ac_tool_prefix=
1231test -n "$host_alias" && ac_tool_prefix=$host_alias-
1232
1233test "$silent" = yes && exec 6>/dev/null
1234
1235
1236ac_pwd=`pwd` && test -n "$ac_pwd" &&
1237ac_ls_di=`ls -di .` &&
1238ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1239  as_fn_error $? "working directory cannot be determined"
1240test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1241  as_fn_error $? "pwd does not report name of working directory"
1242
1243
1244# Find the source files, if location was not specified.
1245if test -z "$srcdir"; then
1246  ac_srcdir_defaulted=yes
1247  # Try the directory containing this script, then the parent directory.
1248  ac_confdir=`$as_dirname -- "$as_myself" ||
1249$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1250	 X"$as_myself" : 'X\(//\)[^/]' \| \
1251	 X"$as_myself" : 'X\(//\)$' \| \
1252	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1253$as_echo X"$as_myself" |
1254    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255	    s//\1/
1256	    q
1257	  }
1258	  /^X\(\/\/\)[^/].*/{
1259	    s//\1/
1260	    q
1261	  }
1262	  /^X\(\/\/\)$/{
1263	    s//\1/
1264	    q
1265	  }
1266	  /^X\(\/\).*/{
1267	    s//\1/
1268	    q
1269	  }
1270	  s/.*/./; q'`
1271  srcdir=$ac_confdir
1272  if test ! -r "$srcdir/$ac_unique_file"; then
1273    srcdir=..
1274  fi
1275else
1276  ac_srcdir_defaulted=no
1277fi
1278if test ! -r "$srcdir/$ac_unique_file"; then
1279  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1280  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1281fi
1282ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1283ac_abs_confdir=`(
1284	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1285	pwd)`
1286# When building in place, set srcdir=.
1287if test "$ac_abs_confdir" = "$ac_pwd"; then
1288  srcdir=.
1289fi
1290# Remove unnecessary trailing slashes from srcdir.
1291# Double slashes in file names in object file debugging info
1292# mess up M-x gdb in Emacs.
1293case $srcdir in
1294*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1295esac
1296for ac_var in $ac_precious_vars; do
1297  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1298  eval ac_env_${ac_var}_value=\$${ac_var}
1299  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1300  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1301done
1302
1303#
1304# Report the --help message.
1305#
1306if test "$ac_init_help" = "long"; then
1307  # Omit some internal or obsolete options to make the list less imposing.
1308  # This message is too long to be a string in the A/UX 3.1 sh.
1309  cat <<_ACEOF
1310\`configure' configures xfsinfo 1.0.6 to adapt to many kinds of systems.
1311
1312Usage: $0 [OPTION]... [VAR=VALUE]...
1313
1314To assign environment variables (e.g., CC, CFLAGS...), specify them as
1315VAR=VALUE.  See below for descriptions of some of the useful variables.
1316
1317Defaults for the options are specified in brackets.
1318
1319Configuration:
1320  -h, --help              display this help and exit
1321      --help=short        display options specific to this package
1322      --help=recursive    display the short help of all the included packages
1323  -V, --version           display version information and exit
1324  -q, --quiet, --silent   do not print \`checking ...' messages
1325      --cache-file=FILE   cache test results in FILE [disabled]
1326  -C, --config-cache      alias for \`--cache-file=config.cache'
1327  -n, --no-create         do not create output files
1328      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1329
1330Installation directories:
1331  --prefix=PREFIX         install architecture-independent files in PREFIX
1332                          [$ac_default_prefix]
1333  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1334                          [PREFIX]
1335
1336By default, \`make install' will install all the files in
1337\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1338an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1339for instance \`--prefix=\$HOME'.
1340
1341For better control, use the options below.
1342
1343Fine tuning of the installation directories:
1344  --bindir=DIR            user executables [EPREFIX/bin]
1345  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1346  --libexecdir=DIR        program executables [EPREFIX/libexec]
1347  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1348  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1349  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1350  --libdir=DIR            object code libraries [EPREFIX/lib]
1351  --includedir=DIR        C header files [PREFIX/include]
1352  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1353  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1354  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1355  --infodir=DIR           info documentation [DATAROOTDIR/info]
1356  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1357  --mandir=DIR            man documentation [DATAROOTDIR/man]
1358  --docdir=DIR            documentation root [DATAROOTDIR/doc/xfsinfo]
1359  --htmldir=DIR           html documentation [DOCDIR]
1360  --dvidir=DIR            dvi documentation [DOCDIR]
1361  --pdfdir=DIR            pdf documentation [DOCDIR]
1362  --psdir=DIR             ps documentation [DOCDIR]
1363_ACEOF
1364
1365  cat <<\_ACEOF
1366
1367Program names:
1368  --program-prefix=PREFIX            prepend PREFIX to installed program names
1369  --program-suffix=SUFFIX            append SUFFIX to installed program names
1370  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1371
1372System types:
1373  --build=BUILD     configure for building on BUILD [guessed]
1374  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1375_ACEOF
1376fi
1377
1378if test -n "$ac_init_help"; then
1379  case $ac_init_help in
1380     short | recursive ) echo "Configuration of xfsinfo 1.0.6:";;
1381   esac
1382  cat <<\_ACEOF
1383
1384Optional Features:
1385  --disable-option-checking  ignore unrecognized --enable/--with options
1386  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1387  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1388  --enable-silent-rules   less verbose build output (undo: "make V=1")
1389  --disable-silent-rules  verbose build output (undo: "make V=0")
1390  --enable-dependency-tracking
1391                          do not reject slow dependency extractors
1392  --disable-dependency-tracking
1393                          speeds up one-time build
1394  --disable-selective-werror
1395                          Turn off selective compiler errors. (default:
1396                          enabled)
1397  --enable-strict-compilation
1398                          Enable all warnings from compiler and make them
1399                          errors (default: disabled)
1400
1401Some influential environment variables:
1402  CC          C compiler command
1403  CFLAGS      C compiler flags
1404  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1405              nonstandard directory <lib dir>
1406  LIBS        libraries to pass to the linker, e.g. -l<library>
1407  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1408              you have headers in a nonstandard directory <include dir>
1409  CPP         C preprocessor
1410  PKG_CONFIG  path to pkg-config utility
1411  PKG_CONFIG_PATH
1412              directories to add to pkg-config's search path
1413  PKG_CONFIG_LIBDIR
1414              path overriding pkg-config's built-in search path
1415  XFSINFO_CFLAGS
1416              C compiler flags for XFSINFO, overriding pkg-config
1417  XFSINFO_LIBS
1418              linker flags for XFSINFO, overriding pkg-config
1419
1420Use these variables to override the choices made by `configure' or to help
1421it to find libraries and programs with nonstandard names/locations.
1422
1423Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfsinfo/issues>.
1424_ACEOF
1425ac_status=$?
1426fi
1427
1428if test "$ac_init_help" = "recursive"; then
1429  # If there are subdirs, report their specific --help.
1430  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1431    test -d "$ac_dir" ||
1432      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1433      continue
1434    ac_builddir=.
1435
1436case "$ac_dir" in
1437.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438*)
1439  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1440  # A ".." for each directory in $ac_dir_suffix.
1441  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1442  case $ac_top_builddir_sub in
1443  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1445  esac ;;
1446esac
1447ac_abs_top_builddir=$ac_pwd
1448ac_abs_builddir=$ac_pwd$ac_dir_suffix
1449# for backward compatibility:
1450ac_top_builddir=$ac_top_build_prefix
1451
1452case $srcdir in
1453  .)  # We are building in place.
1454    ac_srcdir=.
1455    ac_top_srcdir=$ac_top_builddir_sub
1456    ac_abs_top_srcdir=$ac_pwd ;;
1457  [\\/]* | ?:[\\/]* )  # Absolute name.
1458    ac_srcdir=$srcdir$ac_dir_suffix;
1459    ac_top_srcdir=$srcdir
1460    ac_abs_top_srcdir=$srcdir ;;
1461  *) # Relative name.
1462    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1463    ac_top_srcdir=$ac_top_build_prefix$srcdir
1464    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1465esac
1466ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1467
1468    cd "$ac_dir" || { ac_status=$?; continue; }
1469    # Check for guested configure.
1470    if test -f "$ac_srcdir/configure.gnu"; then
1471      echo &&
1472      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1473    elif test -f "$ac_srcdir/configure"; then
1474      echo &&
1475      $SHELL "$ac_srcdir/configure" --help=recursive
1476    else
1477      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1478    fi || ac_status=$?
1479    cd "$ac_pwd" || { ac_status=$?; break; }
1480  done
1481fi
1482
1483test -n "$ac_init_help" && exit $ac_status
1484if $ac_init_version; then
1485  cat <<\_ACEOF
1486xfsinfo configure 1.0.6
1487generated by GNU Autoconf 2.69
1488
1489Copyright (C) 2012 Free Software Foundation, Inc.
1490This configure script is free software; the Free Software Foundation
1491gives unlimited permission to copy, distribute and modify it.
1492_ACEOF
1493  exit
1494fi
1495
1496## ------------------------ ##
1497## Autoconf initialization. ##
1498## ------------------------ ##
1499
1500# ac_fn_c_try_compile LINENO
1501# --------------------------
1502# Try to compile conftest.$ac_ext, and return whether this succeeded.
1503ac_fn_c_try_compile ()
1504{
1505  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506  rm -f conftest.$ac_objext
1507  if { { ac_try="$ac_compile"
1508case "(($ac_try" in
1509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1510  *) ac_try_echo=$ac_try;;
1511esac
1512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513$as_echo "$ac_try_echo"; } >&5
1514  (eval "$ac_compile") 2>conftest.err
1515  ac_status=$?
1516  if test -s conftest.err; then
1517    grep -v '^ *+' conftest.err >conftest.er1
1518    cat conftest.er1 >&5
1519    mv -f conftest.er1 conftest.err
1520  fi
1521  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522  test $ac_status = 0; } && {
1523	 test -z "$ac_c_werror_flag" ||
1524	 test ! -s conftest.err
1525       } && test -s conftest.$ac_objext; then :
1526  ac_retval=0
1527else
1528  $as_echo "$as_me: failed program was:" >&5
1529sed 's/^/| /' conftest.$ac_ext >&5
1530
1531	ac_retval=1
1532fi
1533  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1534  as_fn_set_status $ac_retval
1535
1536} # ac_fn_c_try_compile
1537
1538# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1539# ---------------------------------------------
1540# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1541# accordingly.
1542ac_fn_c_check_decl ()
1543{
1544  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545  as_decl_name=`echo $2|sed 's/ *(.*//'`
1546  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1547  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1548$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1549if eval \${$3+:} false; then :
1550  $as_echo_n "(cached) " >&6
1551else
1552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1553/* end confdefs.h.  */
1554$4
1555int
1556main ()
1557{
1558#ifndef $as_decl_name
1559#ifdef __cplusplus
1560  (void) $as_decl_use;
1561#else
1562  (void) $as_decl_name;
1563#endif
1564#endif
1565
1566  ;
1567  return 0;
1568}
1569_ACEOF
1570if ac_fn_c_try_compile "$LINENO"; then :
1571  eval "$3=yes"
1572else
1573  eval "$3=no"
1574fi
1575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1576fi
1577eval ac_res=\$$3
1578	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1579$as_echo "$ac_res" >&6; }
1580  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1581
1582} # ac_fn_c_check_decl
1583
1584# ac_fn_c_try_cpp LINENO
1585# ----------------------
1586# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1587ac_fn_c_try_cpp ()
1588{
1589  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590  if { { ac_try="$ac_cpp conftest.$ac_ext"
1591case "(($ac_try" in
1592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593  *) ac_try_echo=$ac_try;;
1594esac
1595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596$as_echo "$ac_try_echo"; } >&5
1597  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1598  ac_status=$?
1599  if test -s conftest.err; then
1600    grep -v '^ *+' conftest.err >conftest.er1
1601    cat conftest.er1 >&5
1602    mv -f conftest.er1 conftest.err
1603  fi
1604  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605  test $ac_status = 0; } > conftest.i && {
1606	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1607	 test ! -s conftest.err
1608       }; then :
1609  ac_retval=0
1610else
1611  $as_echo "$as_me: failed program was:" >&5
1612sed 's/^/| /' conftest.$ac_ext >&5
1613
1614    ac_retval=1
1615fi
1616  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617  as_fn_set_status $ac_retval
1618
1619} # ac_fn_c_try_cpp
1620
1621# ac_fn_c_try_run LINENO
1622# ----------------------
1623# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1624# that executables *can* be run.
1625ac_fn_c_try_run ()
1626{
1627  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628  if { { ac_try="$ac_link"
1629case "(($ac_try" in
1630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631  *) ac_try_echo=$ac_try;;
1632esac
1633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634$as_echo "$ac_try_echo"; } >&5
1635  (eval "$ac_link") 2>&5
1636  ac_status=$?
1637  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1639  { { case "(($ac_try" in
1640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641  *) ac_try_echo=$ac_try;;
1642esac
1643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644$as_echo "$ac_try_echo"; } >&5
1645  (eval "$ac_try") 2>&5
1646  ac_status=$?
1647  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648  test $ac_status = 0; }; }; then :
1649  ac_retval=0
1650else
1651  $as_echo "$as_me: program exited with status $ac_status" >&5
1652       $as_echo "$as_me: failed program was:" >&5
1653sed 's/^/| /' conftest.$ac_ext >&5
1654
1655       ac_retval=$ac_status
1656fi
1657  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1658  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659  as_fn_set_status $ac_retval
1660
1661} # ac_fn_c_try_run
1662
1663# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1664# -------------------------------------------------------
1665# Tests whether HEADER exists and can be compiled using the include files in
1666# INCLUDES, setting the cache variable VAR accordingly.
1667ac_fn_c_check_header_compile ()
1668{
1669  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671$as_echo_n "checking for $2... " >&6; }
1672if eval \${$3+:} false; then :
1673  $as_echo_n "(cached) " >&6
1674else
1675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676/* end confdefs.h.  */
1677$4
1678#include <$2>
1679_ACEOF
1680if ac_fn_c_try_compile "$LINENO"; then :
1681  eval "$3=yes"
1682else
1683  eval "$3=no"
1684fi
1685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1686fi
1687eval ac_res=\$$3
1688	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689$as_echo "$ac_res" >&6; }
1690  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691
1692} # ac_fn_c_check_header_compile
1693
1694# ac_fn_c_try_link LINENO
1695# -----------------------
1696# Try to link conftest.$ac_ext, and return whether this succeeded.
1697ac_fn_c_try_link ()
1698{
1699  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700  rm -f conftest.$ac_objext conftest$ac_exeext
1701  if { { ac_try="$ac_link"
1702case "(($ac_try" in
1703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704  *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707$as_echo "$ac_try_echo"; } >&5
1708  (eval "$ac_link") 2>conftest.err
1709  ac_status=$?
1710  if test -s conftest.err; then
1711    grep -v '^ *+' conftest.err >conftest.er1
1712    cat conftest.er1 >&5
1713    mv -f conftest.er1 conftest.err
1714  fi
1715  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716  test $ac_status = 0; } && {
1717	 test -z "$ac_c_werror_flag" ||
1718	 test ! -s conftest.err
1719       } && test -s conftest$ac_exeext && {
1720	 test "$cross_compiling" = yes ||
1721	 test -x conftest$ac_exeext
1722       }; then :
1723  ac_retval=0
1724else
1725  $as_echo "$as_me: failed program was:" >&5
1726sed 's/^/| /' conftest.$ac_ext >&5
1727
1728	ac_retval=1
1729fi
1730  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1731  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1732  # interfere with the next link command; also delete a directory that is
1733  # left behind by Apple's compiler.  We do this before executing the actions.
1734  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1735  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736  as_fn_set_status $ac_retval
1737
1738} # ac_fn_c_try_link
1739cat >config.log <<_ACEOF
1740This file contains any messages produced by compilers while
1741running configure, to aid debugging if configure makes a mistake.
1742
1743It was created by xfsinfo $as_me 1.0.6, which was
1744generated by GNU Autoconf 2.69.  Invocation command line was
1745
1746  $ $0 $@
1747
1748_ACEOF
1749exec 5>>config.log
1750{
1751cat <<_ASUNAME
1752## --------- ##
1753## Platform. ##
1754## --------- ##
1755
1756hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1757uname -m = `(uname -m) 2>/dev/null || echo unknown`
1758uname -r = `(uname -r) 2>/dev/null || echo unknown`
1759uname -s = `(uname -s) 2>/dev/null || echo unknown`
1760uname -v = `(uname -v) 2>/dev/null || echo unknown`
1761
1762/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1763/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1764
1765/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1766/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1767/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1768/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1769/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1770/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1771/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1772
1773_ASUNAME
1774
1775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1776for as_dir in $PATH
1777do
1778  IFS=$as_save_IFS
1779  test -z "$as_dir" && as_dir=.
1780    $as_echo "PATH: $as_dir"
1781  done
1782IFS=$as_save_IFS
1783
1784} >&5
1785
1786cat >&5 <<_ACEOF
1787
1788
1789## ----------- ##
1790## Core tests. ##
1791## ----------- ##
1792
1793_ACEOF
1794
1795
1796# Keep a trace of the command line.
1797# Strip out --no-create and --no-recursion so they do not pile up.
1798# Strip out --silent because we don't want to record it for future runs.
1799# Also quote any args containing shell meta-characters.
1800# Make two passes to allow for proper duplicate-argument suppression.
1801ac_configure_args=
1802ac_configure_args0=
1803ac_configure_args1=
1804ac_must_keep_next=false
1805for ac_pass in 1 2
1806do
1807  for ac_arg
1808  do
1809    case $ac_arg in
1810    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1811    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1812    | -silent | --silent | --silen | --sile | --sil)
1813      continue ;;
1814    *\'*)
1815      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1816    esac
1817    case $ac_pass in
1818    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1819    2)
1820      as_fn_append ac_configure_args1 " '$ac_arg'"
1821      if test $ac_must_keep_next = true; then
1822	ac_must_keep_next=false # Got value, back to normal.
1823      else
1824	case $ac_arg in
1825	  *=* | --config-cache | -C | -disable-* | --disable-* \
1826	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1827	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1828	  | -with-* | --with-* | -without-* | --without-* | --x)
1829	    case "$ac_configure_args0 " in
1830	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1831	    esac
1832	    ;;
1833	  -* ) ac_must_keep_next=true ;;
1834	esac
1835      fi
1836      as_fn_append ac_configure_args " '$ac_arg'"
1837      ;;
1838    esac
1839  done
1840done
1841{ ac_configure_args0=; unset ac_configure_args0;}
1842{ ac_configure_args1=; unset ac_configure_args1;}
1843
1844# When interrupted or exit'd, cleanup temporary files, and complete
1845# config.log.  We remove comments because anyway the quotes in there
1846# would cause problems or look ugly.
1847# WARNING: Use '\'' to represent an apostrophe within the trap.
1848# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1849trap 'exit_status=$?
1850  # Save into config.log some information that might help in debugging.
1851  {
1852    echo
1853
1854    $as_echo "## ---------------- ##
1855## Cache variables. ##
1856## ---------------- ##"
1857    echo
1858    # The following way of writing the cache mishandles newlines in values,
1859(
1860  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1861    eval ac_val=\$$ac_var
1862    case $ac_val in #(
1863    *${as_nl}*)
1864      case $ac_var in #(
1865      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1866$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1867      esac
1868      case $ac_var in #(
1869      _ | IFS | as_nl) ;; #(
1870      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1871      *) { eval $ac_var=; unset $ac_var;} ;;
1872      esac ;;
1873    esac
1874  done
1875  (set) 2>&1 |
1876    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1877    *${as_nl}ac_space=\ *)
1878      sed -n \
1879	"s/'\''/'\''\\\\'\'''\''/g;
1880	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1881      ;; #(
1882    *)
1883      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1884      ;;
1885    esac |
1886    sort
1887)
1888    echo
1889
1890    $as_echo "## ----------------- ##
1891## Output variables. ##
1892## ----------------- ##"
1893    echo
1894    for ac_var in $ac_subst_vars
1895    do
1896      eval ac_val=\$$ac_var
1897      case $ac_val in
1898      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1899      esac
1900      $as_echo "$ac_var='\''$ac_val'\''"
1901    done | sort
1902    echo
1903
1904    if test -n "$ac_subst_files"; then
1905      $as_echo "## ------------------- ##
1906## File substitutions. ##
1907## ------------------- ##"
1908      echo
1909      for ac_var in $ac_subst_files
1910      do
1911	eval ac_val=\$$ac_var
1912	case $ac_val in
1913	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1914	esac
1915	$as_echo "$ac_var='\''$ac_val'\''"
1916      done | sort
1917      echo
1918    fi
1919
1920    if test -s confdefs.h; then
1921      $as_echo "## ----------- ##
1922## confdefs.h. ##
1923## ----------- ##"
1924      echo
1925      cat confdefs.h
1926      echo
1927    fi
1928    test "$ac_signal" != 0 &&
1929      $as_echo "$as_me: caught signal $ac_signal"
1930    $as_echo "$as_me: exit $exit_status"
1931  } >&5
1932  rm -f core *.core core.conftest.* &&
1933    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1934    exit $exit_status
1935' 0
1936for ac_signal in 1 2 13 15; do
1937  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1938done
1939ac_signal=0
1940
1941# confdefs.h avoids OS command line length limits that DEFS can exceed.
1942rm -f -r conftest* confdefs.h
1943
1944$as_echo "/* confdefs.h */" > confdefs.h
1945
1946# Predefined preprocessor variables.
1947
1948cat >>confdefs.h <<_ACEOF
1949#define PACKAGE_NAME "$PACKAGE_NAME"
1950_ACEOF
1951
1952cat >>confdefs.h <<_ACEOF
1953#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1954_ACEOF
1955
1956cat >>confdefs.h <<_ACEOF
1957#define PACKAGE_VERSION "$PACKAGE_VERSION"
1958_ACEOF
1959
1960cat >>confdefs.h <<_ACEOF
1961#define PACKAGE_STRING "$PACKAGE_STRING"
1962_ACEOF
1963
1964cat >>confdefs.h <<_ACEOF
1965#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1966_ACEOF
1967
1968cat >>confdefs.h <<_ACEOF
1969#define PACKAGE_URL "$PACKAGE_URL"
1970_ACEOF
1971
1972
1973# Let the site file select an alternate cache file if it wants to.
1974# Prefer an explicitly selected file to automatically selected ones.
1975ac_site_file1=NONE
1976ac_site_file2=NONE
1977if test -n "$CONFIG_SITE"; then
1978  # We do not want a PATH search for config.site.
1979  case $CONFIG_SITE in #((
1980    -*)  ac_site_file1=./$CONFIG_SITE;;
1981    */*) ac_site_file1=$CONFIG_SITE;;
1982    *)   ac_site_file1=./$CONFIG_SITE;;
1983  esac
1984elif test "x$prefix" != xNONE; then
1985  ac_site_file1=$prefix/share/config.site
1986  ac_site_file2=$prefix/etc/config.site
1987else
1988  ac_site_file1=$ac_default_prefix/share/config.site
1989  ac_site_file2=$ac_default_prefix/etc/config.site
1990fi
1991for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1992do
1993  test "x$ac_site_file" = xNONE && continue
1994  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1995    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1996$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1997    sed 's/^/| /' "$ac_site_file" >&5
1998    . "$ac_site_file" \
1999      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2000$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2001as_fn_error $? "failed to load site script $ac_site_file
2002See \`config.log' for more details" "$LINENO" 5; }
2003  fi
2004done
2005
2006if test -r "$cache_file"; then
2007  # Some versions of bash will fail to source /dev/null (special files
2008  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2009  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2010    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2011$as_echo "$as_me: loading cache $cache_file" >&6;}
2012    case $cache_file in
2013      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2014      *)                      . "./$cache_file";;
2015    esac
2016  fi
2017else
2018  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2019$as_echo "$as_me: creating cache $cache_file" >&6;}
2020  >$cache_file
2021fi
2022
2023# Check that the precious variables saved in the cache have kept the same
2024# value.
2025ac_cache_corrupted=false
2026for ac_var in $ac_precious_vars; do
2027  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2028  eval ac_new_set=\$ac_env_${ac_var}_set
2029  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2030  eval ac_new_val=\$ac_env_${ac_var}_value
2031  case $ac_old_set,$ac_new_set in
2032    set,)
2033      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2034$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2035      ac_cache_corrupted=: ;;
2036    ,set)
2037      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2038$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2039      ac_cache_corrupted=: ;;
2040    ,);;
2041    *)
2042      if test "x$ac_old_val" != "x$ac_new_val"; then
2043	# differences in whitespace do not lead to failure.
2044	ac_old_val_w=`echo x $ac_old_val`
2045	ac_new_val_w=`echo x $ac_new_val`
2046	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2047	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2048$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2049	  ac_cache_corrupted=:
2050	else
2051	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2052$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2053	  eval $ac_var=\$ac_old_val
2054	fi
2055	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2056$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2057	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2058$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2059      fi;;
2060  esac
2061  # Pass precious variables to config.status.
2062  if test "$ac_new_set" = set; then
2063    case $ac_new_val in
2064    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2065    *) ac_arg=$ac_var=$ac_new_val ;;
2066    esac
2067    case " $ac_configure_args " in
2068      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2069      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2070    esac
2071  fi
2072done
2073if $ac_cache_corrupted; then
2074  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2075$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2076  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2077$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2078  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2079fi
2080## -------------------- ##
2081## Main body of script. ##
2082## -------------------- ##
2083
2084ac_ext=c
2085ac_cpp='$CPP $CPPFLAGS'
2086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2088ac_compiler_gnu=$ac_cv_c_compiler_gnu
2089
2090
2091
2092ac_config_headers="$ac_config_headers config.h"
2093
2094
2095# Initialize Automake
2096am__api_version='1.15'
2097
2098ac_aux_dir=
2099for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2100  if test -f "$ac_dir/install-sh"; then
2101    ac_aux_dir=$ac_dir
2102    ac_install_sh="$ac_aux_dir/install-sh -c"
2103    break
2104  elif test -f "$ac_dir/install.sh"; then
2105    ac_aux_dir=$ac_dir
2106    ac_install_sh="$ac_aux_dir/install.sh -c"
2107    break
2108  elif test -f "$ac_dir/shtool"; then
2109    ac_aux_dir=$ac_dir
2110    ac_install_sh="$ac_aux_dir/shtool install -c"
2111    break
2112  fi
2113done
2114if test -z "$ac_aux_dir"; then
2115  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2116fi
2117
2118# These three variables are undocumented and unsupported,
2119# and are intended to be withdrawn in a future Autoconf release.
2120# They can cause serious problems if a builder's source tree is in a directory
2121# whose full name contains unusual characters.
2122ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2123ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2124ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2125
2126
2127# Find a good install program.  We prefer a C program (faster),
2128# so one script is as good as another.  But avoid the broken or
2129# incompatible versions:
2130# SysV /etc/install, /usr/sbin/install
2131# SunOS /usr/etc/install
2132# IRIX /sbin/install
2133# AIX /bin/install
2134# AmigaOS /C/install, which installs bootblocks on floppy discs
2135# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2136# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2137# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2138# OS/2's system install, which has a completely different semantic
2139# ./install, which can be erroneously created by make from ./install.sh.
2140# Reject install programs that cannot install multiple files.
2141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2142$as_echo_n "checking for a BSD-compatible install... " >&6; }
2143if test -z "$INSTALL"; then
2144if ${ac_cv_path_install+:} false; then :
2145  $as_echo_n "(cached) " >&6
2146else
2147  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148for as_dir in $PATH
2149do
2150  IFS=$as_save_IFS
2151  test -z "$as_dir" && as_dir=.
2152    # Account for people who put trailing slashes in PATH elements.
2153case $as_dir/ in #((
2154  ./ | .// | /[cC]/* | \
2155  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2156  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2157  /usr/ucb/* ) ;;
2158  *)
2159    # OSF1 and SCO ODT 3.0 have their own names for install.
2160    # Don't use installbsd from OSF since it installs stuff as root
2161    # by default.
2162    for ac_prog in ginstall scoinst install; do
2163      for ac_exec_ext in '' $ac_executable_extensions; do
2164	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2165	  if test $ac_prog = install &&
2166	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2167	    # AIX install.  It has an incompatible calling convention.
2168	    :
2169	  elif test $ac_prog = install &&
2170	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2171	    # program-specific install script used by HP pwplus--don't use.
2172	    :
2173	  else
2174	    rm -rf conftest.one conftest.two conftest.dir
2175	    echo one > conftest.one
2176	    echo two > conftest.two
2177	    mkdir conftest.dir
2178	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2179	      test -s conftest.one && test -s conftest.two &&
2180	      test -s conftest.dir/conftest.one &&
2181	      test -s conftest.dir/conftest.two
2182	    then
2183	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2184	      break 3
2185	    fi
2186	  fi
2187	fi
2188      done
2189    done
2190    ;;
2191esac
2192
2193  done
2194IFS=$as_save_IFS
2195
2196rm -rf conftest.one conftest.two conftest.dir
2197
2198fi
2199  if test "${ac_cv_path_install+set}" = set; then
2200    INSTALL=$ac_cv_path_install
2201  else
2202    # As a last resort, use the slow shell script.  Don't cache a
2203    # value for INSTALL within a source directory, because that will
2204    # break other packages using the cache if that directory is
2205    # removed, or if the value is a relative name.
2206    INSTALL=$ac_install_sh
2207  fi
2208fi
2209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2210$as_echo "$INSTALL" >&6; }
2211
2212# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2213# It thinks the first close brace ends the variable substitution.
2214test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2215
2216test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2217
2218test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2219
2220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2221$as_echo_n "checking whether build environment is sane... " >&6; }
2222# Reject unsafe characters in $srcdir or the absolute working directory
2223# name.  Accept space and tab only in the latter.
2224am_lf='
2225'
2226case `pwd` in
2227  *[\\\"\#\$\&\'\`$am_lf]*)
2228    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2229esac
2230case $srcdir in
2231  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2232    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2233esac
2234
2235# Do 'set' in a subshell so we don't clobber the current shell's
2236# arguments.  Must try -L first in case configure is actually a
2237# symlink; some systems play weird games with the mod time of symlinks
2238# (eg FreeBSD returns the mod time of the symlink's containing
2239# directory).
2240if (
2241   am_has_slept=no
2242   for am_try in 1 2; do
2243     echo "timestamp, slept: $am_has_slept" > conftest.file
2244     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2245     if test "$*" = "X"; then
2246	# -L didn't work.
2247	set X `ls -t "$srcdir/configure" conftest.file`
2248     fi
2249     if test "$*" != "X $srcdir/configure conftest.file" \
2250	&& test "$*" != "X conftest.file $srcdir/configure"; then
2251
2252	# If neither matched, then we have a broken ls.  This can happen
2253	# if, for instance, CONFIG_SHELL is bash and it inherits a
2254	# broken ls alias from the environment.  This has actually
2255	# happened.  Such a system could not be considered "sane".
2256	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2257  alias in your environment" "$LINENO" 5
2258     fi
2259     if test "$2" = conftest.file || test $am_try -eq 2; then
2260       break
2261     fi
2262     # Just in case.
2263     sleep 1
2264     am_has_slept=yes
2265   done
2266   test "$2" = conftest.file
2267   )
2268then
2269   # Ok.
2270   :
2271else
2272   as_fn_error $? "newly created file is older than distributed files!
2273Check your system clock" "$LINENO" 5
2274fi
2275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2276$as_echo "yes" >&6; }
2277# If we didn't sleep, we still need to ensure time stamps of config.status and
2278# generated files are strictly newer.
2279am_sleep_pid=
2280if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2281  ( sleep 1 ) &
2282  am_sleep_pid=$!
2283fi
2284
2285rm -f conftest.file
2286
2287test "$program_prefix" != NONE &&
2288  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2289# Use a double $ so make ignores it.
2290test "$program_suffix" != NONE &&
2291  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2292# Double any \ or $.
2293# By default was `s,x,x', remove it if useless.
2294ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2295program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2296
2297# Expand $ac_aux_dir to an absolute path.
2298am_aux_dir=`cd "$ac_aux_dir" && pwd`
2299
2300if test x"${MISSING+set}" != xset; then
2301  case $am_aux_dir in
2302  *\ * | *\	*)
2303    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2304  *)
2305    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2306  esac
2307fi
2308# Use eval to expand $SHELL
2309if eval "$MISSING --is-lightweight"; then
2310  am_missing_run="$MISSING "
2311else
2312  am_missing_run=
2313  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2314$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2315fi
2316
2317if test x"${install_sh+set}" != xset; then
2318  case $am_aux_dir in
2319  *\ * | *\	*)
2320    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2321  *)
2322    install_sh="\${SHELL} $am_aux_dir/install-sh"
2323  esac
2324fi
2325
2326# Installed binaries are usually stripped using 'strip' when the user
2327# run "make install-strip".  However 'strip' might not be the right
2328# tool to use in cross-compilation environments, therefore Automake
2329# will honor the 'STRIP' environment variable to overrule this program.
2330if test "$cross_compiling" != no; then
2331  if test -n "$ac_tool_prefix"; then
2332  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2333set dummy ${ac_tool_prefix}strip; ac_word=$2
2334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2335$as_echo_n "checking for $ac_word... " >&6; }
2336if ${ac_cv_prog_STRIP+:} false; then :
2337  $as_echo_n "(cached) " >&6
2338else
2339  if test -n "$STRIP"; then
2340  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2341else
2342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343for as_dir in $PATH
2344do
2345  IFS=$as_save_IFS
2346  test -z "$as_dir" && as_dir=.
2347    for ac_exec_ext in '' $ac_executable_extensions; do
2348  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2349    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2350    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2351    break 2
2352  fi
2353done
2354  done
2355IFS=$as_save_IFS
2356
2357fi
2358fi
2359STRIP=$ac_cv_prog_STRIP
2360if test -n "$STRIP"; then
2361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2362$as_echo "$STRIP" >&6; }
2363else
2364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2365$as_echo "no" >&6; }
2366fi
2367
2368
2369fi
2370if test -z "$ac_cv_prog_STRIP"; then
2371  ac_ct_STRIP=$STRIP
2372  # Extract the first word of "strip", so it can be a program name with args.
2373set dummy strip; ac_word=$2
2374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2375$as_echo_n "checking for $ac_word... " >&6; }
2376if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2377  $as_echo_n "(cached) " >&6
2378else
2379  if test -n "$ac_ct_STRIP"; then
2380  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2381else
2382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383for as_dir in $PATH
2384do
2385  IFS=$as_save_IFS
2386  test -z "$as_dir" && as_dir=.
2387    for ac_exec_ext in '' $ac_executable_extensions; do
2388  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2389    ac_cv_prog_ac_ct_STRIP="strip"
2390    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2391    break 2
2392  fi
2393done
2394  done
2395IFS=$as_save_IFS
2396
2397fi
2398fi
2399ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2400if test -n "$ac_ct_STRIP"; then
2401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2402$as_echo "$ac_ct_STRIP" >&6; }
2403else
2404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2405$as_echo "no" >&6; }
2406fi
2407
2408  if test "x$ac_ct_STRIP" = x; then
2409    STRIP=":"
2410  else
2411    case $cross_compiling:$ac_tool_warned in
2412yes:)
2413{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2415ac_tool_warned=yes ;;
2416esac
2417    STRIP=$ac_ct_STRIP
2418  fi
2419else
2420  STRIP="$ac_cv_prog_STRIP"
2421fi
2422
2423fi
2424INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2425
2426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2427$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2428if test -z "$MKDIR_P"; then
2429  if ${ac_cv_path_mkdir+:} false; then :
2430  $as_echo_n "(cached) " >&6
2431else
2432  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2434do
2435  IFS=$as_save_IFS
2436  test -z "$as_dir" && as_dir=.
2437    for ac_prog in mkdir gmkdir; do
2438	 for ac_exec_ext in '' $ac_executable_extensions; do
2439	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2440	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2441	     'mkdir (GNU coreutils) '* | \
2442	     'mkdir (coreutils) '* | \
2443	     'mkdir (fileutils) '4.1*)
2444	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2445	       break 3;;
2446	   esac
2447	 done
2448       done
2449  done
2450IFS=$as_save_IFS
2451
2452fi
2453
2454  test -d ./--version && rmdir ./--version
2455  if test "${ac_cv_path_mkdir+set}" = set; then
2456    MKDIR_P="$ac_cv_path_mkdir -p"
2457  else
2458    # As a last resort, use the slow shell script.  Don't cache a
2459    # value for MKDIR_P within a source directory, because that will
2460    # break other packages using the cache if that directory is
2461    # removed, or if the value is a relative name.
2462    MKDIR_P="$ac_install_sh -d"
2463  fi
2464fi
2465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2466$as_echo "$MKDIR_P" >&6; }
2467
2468for ac_prog in gawk mawk nawk awk
2469do
2470  # Extract the first word of "$ac_prog", so it can be a program name with args.
2471set dummy $ac_prog; ac_word=$2
2472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2473$as_echo_n "checking for $ac_word... " >&6; }
2474if ${ac_cv_prog_AWK+:} false; then :
2475  $as_echo_n "(cached) " >&6
2476else
2477  if test -n "$AWK"; then
2478  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2479else
2480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481for as_dir in $PATH
2482do
2483  IFS=$as_save_IFS
2484  test -z "$as_dir" && as_dir=.
2485    for ac_exec_ext in '' $ac_executable_extensions; do
2486  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2487    ac_cv_prog_AWK="$ac_prog"
2488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2489    break 2
2490  fi
2491done
2492  done
2493IFS=$as_save_IFS
2494
2495fi
2496fi
2497AWK=$ac_cv_prog_AWK
2498if test -n "$AWK"; then
2499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2500$as_echo "$AWK" >&6; }
2501else
2502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2503$as_echo "no" >&6; }
2504fi
2505
2506
2507  test -n "$AWK" && break
2508done
2509
2510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2511$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2512set x ${MAKE-make}
2513ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2514if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2515  $as_echo_n "(cached) " >&6
2516else
2517  cat >conftest.make <<\_ACEOF
2518SHELL = /bin/sh
2519all:
2520	@echo '@@@%%%=$(MAKE)=@@@%%%'
2521_ACEOF
2522# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2523case `${MAKE-make} -f conftest.make 2>/dev/null` in
2524  *@@@%%%=?*=@@@%%%*)
2525    eval ac_cv_prog_make_${ac_make}_set=yes;;
2526  *)
2527    eval ac_cv_prog_make_${ac_make}_set=no;;
2528esac
2529rm -f conftest.make
2530fi
2531if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2533$as_echo "yes" >&6; }
2534  SET_MAKE=
2535else
2536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2537$as_echo "no" >&6; }
2538  SET_MAKE="MAKE=${MAKE-make}"
2539fi
2540
2541rm -rf .tst 2>/dev/null
2542mkdir .tst 2>/dev/null
2543if test -d .tst; then
2544  am__leading_dot=.
2545else
2546  am__leading_dot=_
2547fi
2548rmdir .tst 2>/dev/null
2549
2550# Check whether --enable-silent-rules was given.
2551if test "${enable_silent_rules+set}" = set; then :
2552  enableval=$enable_silent_rules;
2553fi
2554
2555case $enable_silent_rules in # (((
2556  yes) AM_DEFAULT_VERBOSITY=0;;
2557   no) AM_DEFAULT_VERBOSITY=1;;
2558    *) AM_DEFAULT_VERBOSITY=1;;
2559esac
2560am_make=${MAKE-make}
2561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2562$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2563if ${am_cv_make_support_nested_variables+:} false; then :
2564  $as_echo_n "(cached) " >&6
2565else
2566  if $as_echo 'TRUE=$(BAR$(V))
2567BAR0=false
2568BAR1=true
2569V=1
2570am__doit:
2571	@$(TRUE)
2572.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2573  am_cv_make_support_nested_variables=yes
2574else
2575  am_cv_make_support_nested_variables=no
2576fi
2577fi
2578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2579$as_echo "$am_cv_make_support_nested_variables" >&6; }
2580if test $am_cv_make_support_nested_variables = yes; then
2581    AM_V='$(V)'
2582  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2583else
2584  AM_V=$AM_DEFAULT_VERBOSITY
2585  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2586fi
2587AM_BACKSLASH='\'
2588
2589if test "`cd $srcdir && pwd`" != "`pwd`"; then
2590  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2591  # is not polluted with repeated "-I."
2592  am__isrc=' -I$(srcdir)'
2593  # test to see if srcdir already configured
2594  if test -f $srcdir/config.status; then
2595    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2596  fi
2597fi
2598
2599# test whether we have cygpath
2600if test -z "$CYGPATH_W"; then
2601  if (cygpath --version) >/dev/null 2>/dev/null; then
2602    CYGPATH_W='cygpath -w'
2603  else
2604    CYGPATH_W=echo
2605  fi
2606fi
2607
2608
2609# Define the identity of the package.
2610 PACKAGE='xfsinfo'
2611 VERSION='1.0.6'
2612
2613
2614cat >>confdefs.h <<_ACEOF
2615#define PACKAGE "$PACKAGE"
2616_ACEOF
2617
2618
2619cat >>confdefs.h <<_ACEOF
2620#define VERSION "$VERSION"
2621_ACEOF
2622
2623# Some tools Automake needs.
2624
2625ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2626
2627
2628AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2629
2630
2631AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2632
2633
2634AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2635
2636
2637MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2638
2639# For better backward compatibility.  To be removed once Automake 1.9.x
2640# dies out for good.  For more background, see:
2641# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2642# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2643mkdir_p='$(MKDIR_P)'
2644
2645# We need awk for the "check" target (and possibly the TAP driver).  The
2646# system "awk" is bad on some platforms.
2647# Always define AMTAR for backward compatibility.  Yes, it's still used
2648# in the wild :-(  We should find a proper way to deprecate it ...
2649AMTAR='$${TAR-tar}'
2650
2651
2652# We'll loop over all known methods to create a tar archive until one works.
2653_am_tools='gnutar  pax cpio none'
2654
2655am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2656
2657
2658
2659
2660
2661
2662# POSIX will say in a future version that running "rm -f" with no argument
2663# is OK; and we want to be able to make that assumption in our Makefile
2664# recipes.  So use an aggressive probe to check that the usage we want is
2665# actually supported "in the wild" to an acceptable degree.
2666# See automake bug#10828.
2667# To make any issue more visible, cause the running configure to be aborted
2668# by default if the 'rm' program in use doesn't match our expectations; the
2669# user can still override this though.
2670if rm -f && rm -fr && rm -rf; then : OK; else
2671  cat >&2 <<'END'
2672Oops!
2673
2674Your 'rm' program seems unable to run without file operands specified
2675on the command line, even when the '-f' option is present.  This is contrary
2676to the behaviour of most rm programs out there, and not conforming with
2677the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2678
2679Please tell bug-automake@gnu.org about your system, including the value
2680of your $PATH and any error possibly output before this message.  This
2681can help us improve future automake versions.
2682
2683END
2684  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2685    echo 'Configuration will proceed anyway, since you have set the' >&2
2686    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2687    echo >&2
2688  else
2689    cat >&2 <<'END'
2690Aborting the configuration process, to ensure you take notice of the issue.
2691
2692You can download and install GNU coreutils to get an 'rm' implementation
2693that behaves properly: <http://www.gnu.org/software/coreutils/>.
2694
2695If you want to complete the configuration process using your problematic
2696'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2697to "yes", and re-run configure.
2698
2699END
2700    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2701  fi
2702fi
2703
2704
2705# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717DEPDIR="${am__leading_dot}deps"
2718
2719ac_config_commands="$ac_config_commands depfiles"
2720
2721
2722am_make=${MAKE-make}
2723cat > confinc << 'END'
2724am__doit:
2725	@echo this is the am__doit target
2726.PHONY: am__doit
2727END
2728# If we don't find an include directive, just comment out the code.
2729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2730$as_echo_n "checking for style of include used by $am_make... " >&6; }
2731am__include="#"
2732am__quote=
2733_am_result=none
2734# First try GNU make style include.
2735echo "include confinc" > confmf
2736# Ignore all kinds of additional output from 'make'.
2737case `$am_make -s -f confmf 2> /dev/null` in #(
2738*the\ am__doit\ target*)
2739  am__include=include
2740  am__quote=
2741  _am_result=GNU
2742  ;;
2743esac
2744# Now try BSD make style include.
2745if test "$am__include" = "#"; then
2746   echo '.include "confinc"' > confmf
2747   case `$am_make -s -f confmf 2> /dev/null` in #(
2748   *the\ am__doit\ target*)
2749     am__include=.include
2750     am__quote="\""
2751     _am_result=BSD
2752     ;;
2753   esac
2754fi
2755
2756
2757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2758$as_echo "$_am_result" >&6; }
2759rm -f confinc confmf
2760
2761# Check whether --enable-dependency-tracking was given.
2762if test "${enable_dependency_tracking+set}" = set; then :
2763  enableval=$enable_dependency_tracking;
2764fi
2765
2766if test "x$enable_dependency_tracking" != xno; then
2767  am_depcomp="$ac_aux_dir/depcomp"
2768  AMDEPBACKSLASH='\'
2769  am__nodep='_no'
2770fi
2771 if test "x$enable_dependency_tracking" != xno; then
2772  AMDEP_TRUE=
2773  AMDEP_FALSE='#'
2774else
2775  AMDEP_TRUE='#'
2776  AMDEP_FALSE=
2777fi
2778
2779
2780ac_ext=c
2781ac_cpp='$CPP $CPPFLAGS'
2782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784ac_compiler_gnu=$ac_cv_c_compiler_gnu
2785if test -n "$ac_tool_prefix"; then
2786  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2787set dummy ${ac_tool_prefix}gcc; ac_word=$2
2788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2789$as_echo_n "checking for $ac_word... " >&6; }
2790if ${ac_cv_prog_CC+:} false; then :
2791  $as_echo_n "(cached) " >&6
2792else
2793  if test -n "$CC"; then
2794  ac_cv_prog_CC="$CC" # Let the user override the test.
2795else
2796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797for as_dir in $PATH
2798do
2799  IFS=$as_save_IFS
2800  test -z "$as_dir" && as_dir=.
2801    for ac_exec_ext in '' $ac_executable_extensions; do
2802  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2805    break 2
2806  fi
2807done
2808  done
2809IFS=$as_save_IFS
2810
2811fi
2812fi
2813CC=$ac_cv_prog_CC
2814if test -n "$CC"; then
2815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2816$as_echo "$CC" >&6; }
2817else
2818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819$as_echo "no" >&6; }
2820fi
2821
2822
2823fi
2824if test -z "$ac_cv_prog_CC"; then
2825  ac_ct_CC=$CC
2826  # Extract the first word of "gcc", so it can be a program name with args.
2827set dummy gcc; ac_word=$2
2828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2829$as_echo_n "checking for $ac_word... " >&6; }
2830if ${ac_cv_prog_ac_ct_CC+:} false; then :
2831  $as_echo_n "(cached) " >&6
2832else
2833  if test -n "$ac_ct_CC"; then
2834  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2835else
2836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837for as_dir in $PATH
2838do
2839  IFS=$as_save_IFS
2840  test -z "$as_dir" && as_dir=.
2841    for ac_exec_ext in '' $ac_executable_extensions; do
2842  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2843    ac_cv_prog_ac_ct_CC="gcc"
2844    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2845    break 2
2846  fi
2847done
2848  done
2849IFS=$as_save_IFS
2850
2851fi
2852fi
2853ac_ct_CC=$ac_cv_prog_ac_ct_CC
2854if test -n "$ac_ct_CC"; then
2855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2856$as_echo "$ac_ct_CC" >&6; }
2857else
2858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2859$as_echo "no" >&6; }
2860fi
2861
2862  if test "x$ac_ct_CC" = x; then
2863    CC=""
2864  else
2865    case $cross_compiling:$ac_tool_warned in
2866yes:)
2867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2869ac_tool_warned=yes ;;
2870esac
2871    CC=$ac_ct_CC
2872  fi
2873else
2874  CC="$ac_cv_prog_CC"
2875fi
2876
2877if test -z "$CC"; then
2878          if test -n "$ac_tool_prefix"; then
2879    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2880set dummy ${ac_tool_prefix}cc; ac_word=$2
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882$as_echo_n "checking for $ac_word... " >&6; }
2883if ${ac_cv_prog_CC+:} false; then :
2884  $as_echo_n "(cached) " >&6
2885else
2886  if test -n "$CC"; then
2887  ac_cv_prog_CC="$CC" # Let the user override the test.
2888else
2889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890for as_dir in $PATH
2891do
2892  IFS=$as_save_IFS
2893  test -z "$as_dir" && as_dir=.
2894    for ac_exec_ext in '' $ac_executable_extensions; do
2895  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2896    ac_cv_prog_CC="${ac_tool_prefix}cc"
2897    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898    break 2
2899  fi
2900done
2901  done
2902IFS=$as_save_IFS
2903
2904fi
2905fi
2906CC=$ac_cv_prog_CC
2907if test -n "$CC"; then
2908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2909$as_echo "$CC" >&6; }
2910else
2911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912$as_echo "no" >&6; }
2913fi
2914
2915
2916  fi
2917fi
2918if test -z "$CC"; then
2919  # Extract the first word of "cc", so it can be a program name with args.
2920set dummy cc; ac_word=$2
2921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2922$as_echo_n "checking for $ac_word... " >&6; }
2923if ${ac_cv_prog_CC+:} false; then :
2924  $as_echo_n "(cached) " >&6
2925else
2926  if test -n "$CC"; then
2927  ac_cv_prog_CC="$CC" # Let the user override the test.
2928else
2929  ac_prog_rejected=no
2930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931for as_dir in $PATH
2932do
2933  IFS=$as_save_IFS
2934  test -z "$as_dir" && as_dir=.
2935    for ac_exec_ext in '' $ac_executable_extensions; do
2936  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2937    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2938       ac_prog_rejected=yes
2939       continue
2940     fi
2941    ac_cv_prog_CC="cc"
2942    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2943    break 2
2944  fi
2945done
2946  done
2947IFS=$as_save_IFS
2948
2949if test $ac_prog_rejected = yes; then
2950  # We found a bogon in the path, so make sure we never use it.
2951  set dummy $ac_cv_prog_CC
2952  shift
2953  if test $# != 0; then
2954    # We chose a different compiler from the bogus one.
2955    # However, it has the same basename, so the bogon will be chosen
2956    # first if we set CC to just the basename; use the full file name.
2957    shift
2958    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2959  fi
2960fi
2961fi
2962fi
2963CC=$ac_cv_prog_CC
2964if test -n "$CC"; then
2965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2966$as_echo "$CC" >&6; }
2967else
2968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969$as_echo "no" >&6; }
2970fi
2971
2972
2973fi
2974if test -z "$CC"; then
2975  if test -n "$ac_tool_prefix"; then
2976  for ac_prog in cl.exe
2977  do
2978    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2979set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2981$as_echo_n "checking for $ac_word... " >&6; }
2982if ${ac_cv_prog_CC+:} false; then :
2983  $as_echo_n "(cached) " >&6
2984else
2985  if test -n "$CC"; then
2986  ac_cv_prog_CC="$CC" # Let the user override the test.
2987else
2988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989for as_dir in $PATH
2990do
2991  IFS=$as_save_IFS
2992  test -z "$as_dir" && as_dir=.
2993    for ac_exec_ext in '' $ac_executable_extensions; do
2994  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2995    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2996    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2997    break 2
2998  fi
2999done
3000  done
3001IFS=$as_save_IFS
3002
3003fi
3004fi
3005CC=$ac_cv_prog_CC
3006if test -n "$CC"; then
3007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3008$as_echo "$CC" >&6; }
3009else
3010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3011$as_echo "no" >&6; }
3012fi
3013
3014
3015    test -n "$CC" && break
3016  done
3017fi
3018if test -z "$CC"; then
3019  ac_ct_CC=$CC
3020  for ac_prog in cl.exe
3021do
3022  # Extract the first word of "$ac_prog", so it can be a program name with args.
3023set dummy $ac_prog; ac_word=$2
3024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025$as_echo_n "checking for $ac_word... " >&6; }
3026if ${ac_cv_prog_ac_ct_CC+:} false; then :
3027  $as_echo_n "(cached) " >&6
3028else
3029  if test -n "$ac_ct_CC"; then
3030  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3031else
3032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033for as_dir in $PATH
3034do
3035  IFS=$as_save_IFS
3036  test -z "$as_dir" && as_dir=.
3037    for ac_exec_ext in '' $ac_executable_extensions; do
3038  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3039    ac_cv_prog_ac_ct_CC="$ac_prog"
3040    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3041    break 2
3042  fi
3043done
3044  done
3045IFS=$as_save_IFS
3046
3047fi
3048fi
3049ac_ct_CC=$ac_cv_prog_ac_ct_CC
3050if test -n "$ac_ct_CC"; then
3051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3052$as_echo "$ac_ct_CC" >&6; }
3053else
3054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055$as_echo "no" >&6; }
3056fi
3057
3058
3059  test -n "$ac_ct_CC" && break
3060done
3061
3062  if test "x$ac_ct_CC" = x; then
3063    CC=""
3064  else
3065    case $cross_compiling:$ac_tool_warned in
3066yes:)
3067{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3069ac_tool_warned=yes ;;
3070esac
3071    CC=$ac_ct_CC
3072  fi
3073fi
3074
3075fi
3076
3077
3078test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3079$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3080as_fn_error $? "no acceptable C compiler found in \$PATH
3081See \`config.log' for more details" "$LINENO" 5; }
3082
3083# Provide some information about the compiler.
3084$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3085set X $ac_compile
3086ac_compiler=$2
3087for ac_option in --version -v -V -qversion; do
3088  { { ac_try="$ac_compiler $ac_option >&5"
3089case "(($ac_try" in
3090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091  *) ac_try_echo=$ac_try;;
3092esac
3093eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3094$as_echo "$ac_try_echo"; } >&5
3095  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3096  ac_status=$?
3097  if test -s conftest.err; then
3098    sed '10a\
3099... rest of stderr output deleted ...
3100         10q' conftest.err >conftest.er1
3101    cat conftest.er1 >&5
3102  fi
3103  rm -f conftest.er1 conftest.err
3104  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3105  test $ac_status = 0; }
3106done
3107
3108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109/* end confdefs.h.  */
3110
3111int
3112main ()
3113{
3114
3115  ;
3116  return 0;
3117}
3118_ACEOF
3119ac_clean_files_save=$ac_clean_files
3120ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3121# Try to create an executable without -o first, disregard a.out.
3122# It will help us diagnose broken compilers, and finding out an intuition
3123# of exeext.
3124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3125$as_echo_n "checking whether the C compiler works... " >&6; }
3126ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3127
3128# The possible output files:
3129ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3130
3131ac_rmfiles=
3132for ac_file in $ac_files
3133do
3134  case $ac_file in
3135    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3136    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3137  esac
3138done
3139rm -f $ac_rmfiles
3140
3141if { { ac_try="$ac_link_default"
3142case "(($ac_try" in
3143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144  *) ac_try_echo=$ac_try;;
3145esac
3146eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3147$as_echo "$ac_try_echo"; } >&5
3148  (eval "$ac_link_default") 2>&5
3149  ac_status=$?
3150  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3151  test $ac_status = 0; }; then :
3152  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3153# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3154# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3155# so that the user can short-circuit this test for compilers unknown to
3156# Autoconf.
3157for ac_file in $ac_files ''
3158do
3159  test -f "$ac_file" || continue
3160  case $ac_file in
3161    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3162	;;
3163    [ab].out )
3164	# We found the default executable, but exeext='' is most
3165	# certainly right.
3166	break;;
3167    *.* )
3168	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3169	then :; else
3170	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3171	fi
3172	# We set ac_cv_exeext here because the later test for it is not
3173	# safe: cross compilers may not add the suffix if given an `-o'
3174	# argument, so we may need to know it at that point already.
3175	# Even if this section looks crufty: it has the advantage of
3176	# actually working.
3177	break;;
3178    * )
3179	break;;
3180  esac
3181done
3182test "$ac_cv_exeext" = no && ac_cv_exeext=
3183
3184else
3185  ac_file=''
3186fi
3187if test -z "$ac_file"; then :
3188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189$as_echo "no" >&6; }
3190$as_echo "$as_me: failed program was:" >&5
3191sed 's/^/| /' conftest.$ac_ext >&5
3192
3193{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3194$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3195as_fn_error 77 "C compiler cannot create executables
3196See \`config.log' for more details" "$LINENO" 5; }
3197else
3198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3199$as_echo "yes" >&6; }
3200fi
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3202$as_echo_n "checking for C compiler default output file name... " >&6; }
3203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3204$as_echo "$ac_file" >&6; }
3205ac_exeext=$ac_cv_exeext
3206
3207rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3208ac_clean_files=$ac_clean_files_save
3209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3210$as_echo_n "checking for suffix of executables... " >&6; }
3211if { { ac_try="$ac_link"
3212case "(($ac_try" in
3213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214  *) ac_try_echo=$ac_try;;
3215esac
3216eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3217$as_echo "$ac_try_echo"; } >&5
3218  (eval "$ac_link") 2>&5
3219  ac_status=$?
3220  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3221  test $ac_status = 0; }; then :
3222  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3223# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3224# work properly (i.e., refer to `conftest.exe'), while it won't with
3225# `rm'.
3226for ac_file in conftest.exe conftest conftest.*; do
3227  test -f "$ac_file" || continue
3228  case $ac_file in
3229    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3230    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3231	  break;;
3232    * ) break;;
3233  esac
3234done
3235else
3236  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3238as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3239See \`config.log' for more details" "$LINENO" 5; }
3240fi
3241rm -f conftest conftest$ac_cv_exeext
3242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3243$as_echo "$ac_cv_exeext" >&6; }
3244
3245rm -f conftest.$ac_ext
3246EXEEXT=$ac_cv_exeext
3247ac_exeext=$EXEEXT
3248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249/* end confdefs.h.  */
3250#include <stdio.h>
3251int
3252main ()
3253{
3254FILE *f = fopen ("conftest.out", "w");
3255 return ferror (f) || fclose (f) != 0;
3256
3257  ;
3258  return 0;
3259}
3260_ACEOF
3261ac_clean_files="$ac_clean_files conftest.out"
3262# Check that the compiler produces executables we can run.  If not, either
3263# the compiler is broken, or we cross compile.
3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3265$as_echo_n "checking whether we are cross compiling... " >&6; }
3266if test "$cross_compiling" != yes; then
3267  { { ac_try="$ac_link"
3268case "(($ac_try" in
3269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270  *) ac_try_echo=$ac_try;;
3271esac
3272eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3273$as_echo "$ac_try_echo"; } >&5
3274  (eval "$ac_link") 2>&5
3275  ac_status=$?
3276  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3277  test $ac_status = 0; }
3278  if { ac_try='./conftest$ac_cv_exeext'
3279  { { case "(($ac_try" in
3280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281  *) ac_try_echo=$ac_try;;
3282esac
3283eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3284$as_echo "$ac_try_echo"; } >&5
3285  (eval "$ac_try") 2>&5
3286  ac_status=$?
3287  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3288  test $ac_status = 0; }; }; then
3289    cross_compiling=no
3290  else
3291    if test "$cross_compiling" = maybe; then
3292	cross_compiling=yes
3293    else
3294	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3295$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3296as_fn_error $? "cannot run C compiled programs.
3297If you meant to cross compile, use \`--host'.
3298See \`config.log' for more details" "$LINENO" 5; }
3299    fi
3300  fi
3301fi
3302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3303$as_echo "$cross_compiling" >&6; }
3304
3305rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3306ac_clean_files=$ac_clean_files_save
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3308$as_echo_n "checking for suffix of object files... " >&6; }
3309if ${ac_cv_objext+:} false; then :
3310  $as_echo_n "(cached) " >&6
3311else
3312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313/* end confdefs.h.  */
3314
3315int
3316main ()
3317{
3318
3319  ;
3320  return 0;
3321}
3322_ACEOF
3323rm -f conftest.o conftest.obj
3324if { { ac_try="$ac_compile"
3325case "(($ac_try" in
3326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327  *) ac_try_echo=$ac_try;;
3328esac
3329eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3330$as_echo "$ac_try_echo"; } >&5
3331  (eval "$ac_compile") 2>&5
3332  ac_status=$?
3333  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3334  test $ac_status = 0; }; then :
3335  for ac_file in conftest.o conftest.obj conftest.*; do
3336  test -f "$ac_file" || continue;
3337  case $ac_file in
3338    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3339    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3340       break;;
3341  esac
3342done
3343else
3344  $as_echo "$as_me: failed program was:" >&5
3345sed 's/^/| /' conftest.$ac_ext >&5
3346
3347{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349as_fn_error $? "cannot compute suffix of object files: cannot compile
3350See \`config.log' for more details" "$LINENO" 5; }
3351fi
3352rm -f conftest.$ac_cv_objext conftest.$ac_ext
3353fi
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3355$as_echo "$ac_cv_objext" >&6; }
3356OBJEXT=$ac_cv_objext
3357ac_objext=$OBJEXT
3358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3359$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3360if ${ac_cv_c_compiler_gnu+:} false; then :
3361  $as_echo_n "(cached) " >&6
3362else
3363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364/* end confdefs.h.  */
3365
3366int
3367main ()
3368{
3369#ifndef __GNUC__
3370       choke me
3371#endif
3372
3373  ;
3374  return 0;
3375}
3376_ACEOF
3377if ac_fn_c_try_compile "$LINENO"; then :
3378  ac_compiler_gnu=yes
3379else
3380  ac_compiler_gnu=no
3381fi
3382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3383ac_cv_c_compiler_gnu=$ac_compiler_gnu
3384
3385fi
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3387$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3388if test $ac_compiler_gnu = yes; then
3389  GCC=yes
3390else
3391  GCC=
3392fi
3393ac_test_CFLAGS=${CFLAGS+set}
3394ac_save_CFLAGS=$CFLAGS
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3396$as_echo_n "checking whether $CC accepts -g... " >&6; }
3397if ${ac_cv_prog_cc_g+:} false; then :
3398  $as_echo_n "(cached) " >&6
3399else
3400  ac_save_c_werror_flag=$ac_c_werror_flag
3401   ac_c_werror_flag=yes
3402   ac_cv_prog_cc_g=no
3403   CFLAGS="-g"
3404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3405/* end confdefs.h.  */
3406
3407int
3408main ()
3409{
3410
3411  ;
3412  return 0;
3413}
3414_ACEOF
3415if ac_fn_c_try_compile "$LINENO"; then :
3416  ac_cv_prog_cc_g=yes
3417else
3418  CFLAGS=""
3419      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420/* end confdefs.h.  */
3421
3422int
3423main ()
3424{
3425
3426  ;
3427  return 0;
3428}
3429_ACEOF
3430if ac_fn_c_try_compile "$LINENO"; then :
3431
3432else
3433  ac_c_werror_flag=$ac_save_c_werror_flag
3434	 CFLAGS="-g"
3435	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436/* end confdefs.h.  */
3437
3438int
3439main ()
3440{
3441
3442  ;
3443  return 0;
3444}
3445_ACEOF
3446if ac_fn_c_try_compile "$LINENO"; then :
3447  ac_cv_prog_cc_g=yes
3448fi
3449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3450fi
3451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452fi
3453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3454   ac_c_werror_flag=$ac_save_c_werror_flag
3455fi
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3457$as_echo "$ac_cv_prog_cc_g" >&6; }
3458if test "$ac_test_CFLAGS" = set; then
3459  CFLAGS=$ac_save_CFLAGS
3460elif test $ac_cv_prog_cc_g = yes; then
3461  if test "$GCC" = yes; then
3462    CFLAGS="-g -O2"
3463  else
3464    CFLAGS="-g"
3465  fi
3466else
3467  if test "$GCC" = yes; then
3468    CFLAGS="-O2"
3469  else
3470    CFLAGS=
3471  fi
3472fi
3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3474$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3475if ${ac_cv_prog_cc_c89+:} false; then :
3476  $as_echo_n "(cached) " >&6
3477else
3478  ac_cv_prog_cc_c89=no
3479ac_save_CC=$CC
3480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481/* end confdefs.h.  */
3482#include <stdarg.h>
3483#include <stdio.h>
3484struct stat;
3485/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3486struct buf { int x; };
3487FILE * (*rcsopen) (struct buf *, struct stat *, int);
3488static char *e (p, i)
3489     char **p;
3490     int i;
3491{
3492  return p[i];
3493}
3494static char *f (char * (*g) (char **, int), char **p, ...)
3495{
3496  char *s;
3497  va_list v;
3498  va_start (v,p);
3499  s = g (p, va_arg (v,int));
3500  va_end (v);
3501  return s;
3502}
3503
3504/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3505   function prototypes and stuff, but not '\xHH' hex character constants.
3506   These don't provoke an error unfortunately, instead are silently treated
3507   as 'x'.  The following induces an error, until -std is added to get
3508   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3509   array size at least.  It's necessary to write '\x00'==0 to get something
3510   that's true only with -std.  */
3511int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3512
3513/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3514   inside strings and character constants.  */
3515#define FOO(x) 'x'
3516int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3517
3518int test (int i, double x);
3519struct s1 {int (*f) (int a);};
3520struct s2 {int (*f) (double a);};
3521int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3522int argc;
3523char **argv;
3524int
3525main ()
3526{
3527return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3528  ;
3529  return 0;
3530}
3531_ACEOF
3532for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3533	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3534do
3535  CC="$ac_save_CC $ac_arg"
3536  if ac_fn_c_try_compile "$LINENO"; then :
3537  ac_cv_prog_cc_c89=$ac_arg
3538fi
3539rm -f core conftest.err conftest.$ac_objext
3540  test "x$ac_cv_prog_cc_c89" != "xno" && break
3541done
3542rm -f conftest.$ac_ext
3543CC=$ac_save_CC
3544
3545fi
3546# AC_CACHE_VAL
3547case "x$ac_cv_prog_cc_c89" in
3548  x)
3549    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3550$as_echo "none needed" >&6; } ;;
3551  xno)
3552    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3553$as_echo "unsupported" >&6; } ;;
3554  *)
3555    CC="$CC $ac_cv_prog_cc_c89"
3556    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3557$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3558esac
3559if test "x$ac_cv_prog_cc_c89" != xno; then :
3560
3561fi
3562
3563ac_ext=c
3564ac_cpp='$CPP $CPPFLAGS'
3565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567ac_compiler_gnu=$ac_cv_c_compiler_gnu
3568
3569ac_ext=c
3570ac_cpp='$CPP $CPPFLAGS'
3571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3573ac_compiler_gnu=$ac_cv_c_compiler_gnu
3574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3575$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3576if ${am_cv_prog_cc_c_o+:} false; then :
3577  $as_echo_n "(cached) " >&6
3578else
3579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580/* end confdefs.h.  */
3581
3582int
3583main ()
3584{
3585
3586  ;
3587  return 0;
3588}
3589_ACEOF
3590  # Make sure it works both with $CC and with simple cc.
3591  # Following AC_PROG_CC_C_O, we do the test twice because some
3592  # compilers refuse to overwrite an existing .o file with -o,
3593  # though they will create one.
3594  am_cv_prog_cc_c_o=yes
3595  for am_i in 1 2; do
3596    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3597   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3598   ac_status=$?
3599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600   (exit $ac_status); } \
3601         && test -f conftest2.$ac_objext; then
3602      : OK
3603    else
3604      am_cv_prog_cc_c_o=no
3605      break
3606    fi
3607  done
3608  rm -f core conftest*
3609  unset am_i
3610fi
3611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3612$as_echo "$am_cv_prog_cc_c_o" >&6; }
3613if test "$am_cv_prog_cc_c_o" != yes; then
3614   # Losing compiler, so override with the script.
3615   # FIXME: It is wrong to rewrite CC.
3616   # But if we don't then we get into trouble of one sort or another.
3617   # A longer-term fix would be to have automake use am__CC in this case,
3618   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3619   CC="$am_aux_dir/compile $CC"
3620fi
3621ac_ext=c
3622ac_cpp='$CPP $CPPFLAGS'
3623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3625ac_compiler_gnu=$ac_cv_c_compiler_gnu
3626
3627
3628depcc="$CC"   am_compiler_list=
3629
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3631$as_echo_n "checking dependency style of $depcc... " >&6; }
3632if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3633  $as_echo_n "(cached) " >&6
3634else
3635  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3636  # We make a subdir and do the tests there.  Otherwise we can end up
3637  # making bogus files that we don't know about and never remove.  For
3638  # instance it was reported that on HP-UX the gcc test will end up
3639  # making a dummy file named 'D' -- because '-MD' means "put the output
3640  # in D".
3641  rm -rf conftest.dir
3642  mkdir conftest.dir
3643  # Copy depcomp to subdir because otherwise we won't find it if we're
3644  # using a relative directory.
3645  cp "$am_depcomp" conftest.dir
3646  cd conftest.dir
3647  # We will build objects and dependencies in a subdirectory because
3648  # it helps to detect inapplicable dependency modes.  For instance
3649  # both Tru64's cc and ICC support -MD to output dependencies as a
3650  # side effect of compilation, but ICC will put the dependencies in
3651  # the current directory while Tru64 will put them in the object
3652  # directory.
3653  mkdir sub
3654
3655  am_cv_CC_dependencies_compiler_type=none
3656  if test "$am_compiler_list" = ""; then
3657     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3658  fi
3659  am__universal=false
3660  case " $depcc " in #(
3661     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3662     esac
3663
3664  for depmode in $am_compiler_list; do
3665    # Setup a source with many dependencies, because some compilers
3666    # like to wrap large dependency lists on column 80 (with \), and
3667    # we should not choose a depcomp mode which is confused by this.
3668    #
3669    # We need to recreate these files for each test, as the compiler may
3670    # overwrite some of them when testing with obscure command lines.
3671    # This happens at least with the AIX C compiler.
3672    : > sub/conftest.c
3673    for i in 1 2 3 4 5 6; do
3674      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3675      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3676      # Solaris 10 /bin/sh.
3677      echo '/* dummy */' > sub/conftst$i.h
3678    done
3679    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3680
3681    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3682    # mode.  It turns out that the SunPro C++ compiler does not properly
3683    # handle '-M -o', and we need to detect this.  Also, some Intel
3684    # versions had trouble with output in subdirs.
3685    am__obj=sub/conftest.${OBJEXT-o}
3686    am__minus_obj="-o $am__obj"
3687    case $depmode in
3688    gcc)
3689      # This depmode causes a compiler race in universal mode.
3690      test "$am__universal" = false || continue
3691      ;;
3692    nosideeffect)
3693      # After this tag, mechanisms are not by side-effect, so they'll
3694      # only be used when explicitly requested.
3695      if test "x$enable_dependency_tracking" = xyes; then
3696	continue
3697      else
3698	break
3699      fi
3700      ;;
3701    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3702      # This compiler won't grok '-c -o', but also, the minuso test has
3703      # not run yet.  These depmodes are late enough in the game, and
3704      # so weak that their functioning should not be impacted.
3705      am__obj=conftest.${OBJEXT-o}
3706      am__minus_obj=
3707      ;;
3708    none) break ;;
3709    esac
3710    if depmode=$depmode \
3711       source=sub/conftest.c object=$am__obj \
3712       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3713       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3714         >/dev/null 2>conftest.err &&
3715       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3716       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3717       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3718       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3719      # icc doesn't choke on unknown options, it will just issue warnings
3720      # or remarks (even with -Werror).  So we grep stderr for any message
3721      # that says an option was ignored or not supported.
3722      # When given -MP, icc 7.0 and 7.1 complain thusly:
3723      #   icc: Command line warning: ignoring option '-M'; no argument required
3724      # The diagnosis changed in icc 8.0:
3725      #   icc: Command line remark: option '-MP' not supported
3726      if (grep 'ignoring option' conftest.err ||
3727          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3728        am_cv_CC_dependencies_compiler_type=$depmode
3729        break
3730      fi
3731    fi
3732  done
3733
3734  cd ..
3735  rm -rf conftest.dir
3736else
3737  am_cv_CC_dependencies_compiler_type=none
3738fi
3739
3740fi
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3742$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3743CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3744
3745 if
3746  test "x$enable_dependency_tracking" != xno \
3747  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3748  am__fastdepCC_TRUE=
3749  am__fastdepCC_FALSE='#'
3750else
3751  am__fastdepCC_TRUE='#'
3752  am__fastdepCC_FALSE=
3753fi
3754
3755
3756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3757$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3758if ${ac_cv_prog_cc_c99+:} false; then :
3759  $as_echo_n "(cached) " >&6
3760else
3761  ac_cv_prog_cc_c99=no
3762ac_save_CC=$CC
3763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764/* end confdefs.h.  */
3765#include <stdarg.h>
3766#include <stdbool.h>
3767#include <stdlib.h>
3768#include <wchar.h>
3769#include <stdio.h>
3770
3771// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3772#define debug(...) fprintf (stderr, __VA_ARGS__)
3773#define showlist(...) puts (#__VA_ARGS__)
3774#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3775static void
3776test_varargs_macros (void)
3777{
3778  int x = 1234;
3779  int y = 5678;
3780  debug ("Flag");
3781  debug ("X = %d\n", x);
3782  showlist (The first, second, and third items.);
3783  report (x>y, "x is %d but y is %d", x, y);
3784}
3785
3786// Check long long types.
3787#define BIG64 18446744073709551615ull
3788#define BIG32 4294967295ul
3789#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3790#if !BIG_OK
3791  your preprocessor is broken;
3792#endif
3793#if BIG_OK
3794#else
3795  your preprocessor is broken;
3796#endif
3797static long long int bignum = -9223372036854775807LL;
3798static unsigned long long int ubignum = BIG64;
3799
3800struct incomplete_array
3801{
3802  int datasize;
3803  double data[];
3804};
3805
3806struct named_init {
3807  int number;
3808  const wchar_t *name;
3809  double average;
3810};
3811
3812typedef const char *ccp;
3813
3814static inline int
3815test_restrict (ccp restrict text)
3816{
3817  // See if C++-style comments work.
3818  // Iterate through items via the restricted pointer.
3819  // Also check for declarations in for loops.
3820  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3821    continue;
3822  return 0;
3823}
3824
3825// Check varargs and va_copy.
3826static void
3827test_varargs (const char *format, ...)
3828{
3829  va_list args;
3830  va_start (args, format);
3831  va_list args_copy;
3832  va_copy (args_copy, args);
3833
3834  const char *str;
3835  int number;
3836  float fnumber;
3837
3838  while (*format)
3839    {
3840      switch (*format++)
3841	{
3842	case 's': // string
3843	  str = va_arg (args_copy, const char *);
3844	  break;
3845	case 'd': // int
3846	  number = va_arg (args_copy, int);
3847	  break;
3848	case 'f': // float
3849	  fnumber = va_arg (args_copy, double);
3850	  break;
3851	default:
3852	  break;
3853	}
3854    }
3855  va_end (args_copy);
3856  va_end (args);
3857}
3858
3859int
3860main ()
3861{
3862
3863  // Check bool.
3864  _Bool success = false;
3865
3866  // Check restrict.
3867  if (test_restrict ("String literal") == 0)
3868    success = true;
3869  char *restrict newvar = "Another string";
3870
3871  // Check varargs.
3872  test_varargs ("s, d' f .", "string", 65, 34.234);
3873  test_varargs_macros ();
3874
3875  // Check flexible array members.
3876  struct incomplete_array *ia =
3877    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3878  ia->datasize = 10;
3879  for (int i = 0; i < ia->datasize; ++i)
3880    ia->data[i] = i * 1.234;
3881
3882  // Check named initializers.
3883  struct named_init ni = {
3884    .number = 34,
3885    .name = L"Test wide string",
3886    .average = 543.34343,
3887  };
3888
3889  ni.number = 58;
3890
3891  int dynamic_array[ni.number];
3892  dynamic_array[ni.number - 1] = 543;
3893
3894  // work around unused variable warnings
3895  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3896	  || dynamic_array[ni.number - 1] != 543);
3897
3898  ;
3899  return 0;
3900}
3901_ACEOF
3902for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3903do
3904  CC="$ac_save_CC $ac_arg"
3905  if ac_fn_c_try_compile "$LINENO"; then :
3906  ac_cv_prog_cc_c99=$ac_arg
3907fi
3908rm -f core conftest.err conftest.$ac_objext
3909  test "x$ac_cv_prog_cc_c99" != "xno" && break
3910done
3911rm -f conftest.$ac_ext
3912CC=$ac_save_CC
3913
3914fi
3915# AC_CACHE_VAL
3916case "x$ac_cv_prog_cc_c99" in
3917  x)
3918    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3919$as_echo "none needed" >&6; } ;;
3920  xno)
3921    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3922$as_echo "unsupported" >&6; } ;;
3923  *)
3924    CC="$CC $ac_cv_prog_cc_c99"
3925    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3926$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3927esac
3928if test "x$ac_cv_prog_cc_c99" != xno; then :
3929
3930fi
3931
3932
3933
3934ac_ext=c
3935ac_cpp='$CPP $CPPFLAGS'
3936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3938ac_compiler_gnu=$ac_cv_c_compiler_gnu
3939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3940$as_echo_n "checking how to run the C preprocessor... " >&6; }
3941# On Suns, sometimes $CPP names a directory.
3942if test -n "$CPP" && test -d "$CPP"; then
3943  CPP=
3944fi
3945if test -z "$CPP"; then
3946  if ${ac_cv_prog_CPP+:} false; then :
3947  $as_echo_n "(cached) " >&6
3948else
3949      # Double quotes because CPP needs to be expanded
3950    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3951    do
3952      ac_preproc_ok=false
3953for ac_c_preproc_warn_flag in '' yes
3954do
3955  # Use a header file that comes with gcc, so configuring glibc
3956  # with a fresh cross-compiler works.
3957  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3958  # <limits.h> exists even on freestanding compilers.
3959  # On the NeXT, cc -E runs the code through the compiler's parser,
3960  # not just through cpp. "Syntax error" is here to catch this case.
3961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962/* end confdefs.h.  */
3963#ifdef __STDC__
3964# include <limits.h>
3965#else
3966# include <assert.h>
3967#endif
3968		     Syntax error
3969_ACEOF
3970if ac_fn_c_try_cpp "$LINENO"; then :
3971
3972else
3973  # Broken: fails on valid input.
3974continue
3975fi
3976rm -f conftest.err conftest.i conftest.$ac_ext
3977
3978  # OK, works on sane cases.  Now check whether nonexistent headers
3979  # can be detected and how.
3980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981/* end confdefs.h.  */
3982#include <ac_nonexistent.h>
3983_ACEOF
3984if ac_fn_c_try_cpp "$LINENO"; then :
3985  # Broken: success on invalid input.
3986continue
3987else
3988  # Passes both tests.
3989ac_preproc_ok=:
3990break
3991fi
3992rm -f conftest.err conftest.i conftest.$ac_ext
3993
3994done
3995# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3996rm -f conftest.i conftest.err conftest.$ac_ext
3997if $ac_preproc_ok; then :
3998  break
3999fi
4000
4001    done
4002    ac_cv_prog_CPP=$CPP
4003
4004fi
4005  CPP=$ac_cv_prog_CPP
4006else
4007  ac_cv_prog_CPP=$CPP
4008fi
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4010$as_echo "$CPP" >&6; }
4011ac_preproc_ok=false
4012for ac_c_preproc_warn_flag in '' yes
4013do
4014  # Use a header file that comes with gcc, so configuring glibc
4015  # with a fresh cross-compiler works.
4016  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4017  # <limits.h> exists even on freestanding compilers.
4018  # On the NeXT, cc -E runs the code through the compiler's parser,
4019  # not just through cpp. "Syntax error" is here to catch this case.
4020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021/* end confdefs.h.  */
4022#ifdef __STDC__
4023# include <limits.h>
4024#else
4025# include <assert.h>
4026#endif
4027		     Syntax error
4028_ACEOF
4029if ac_fn_c_try_cpp "$LINENO"; then :
4030
4031else
4032  # Broken: fails on valid input.
4033continue
4034fi
4035rm -f conftest.err conftest.i conftest.$ac_ext
4036
4037  # OK, works on sane cases.  Now check whether nonexistent headers
4038  # can be detected and how.
4039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040/* end confdefs.h.  */
4041#include <ac_nonexistent.h>
4042_ACEOF
4043if ac_fn_c_try_cpp "$LINENO"; then :
4044  # Broken: success on invalid input.
4045continue
4046else
4047  # Passes both tests.
4048ac_preproc_ok=:
4049break
4050fi
4051rm -f conftest.err conftest.i conftest.$ac_ext
4052
4053done
4054# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4055rm -f conftest.i conftest.err conftest.$ac_ext
4056if $ac_preproc_ok; then :
4057
4058else
4059  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4060$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4061as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4062See \`config.log' for more details" "$LINENO" 5; }
4063fi
4064
4065ac_ext=c
4066ac_cpp='$CPP $CPPFLAGS'
4067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4069ac_compiler_gnu=$ac_cv_c_compiler_gnu
4070
4071
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4073$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4074if ${ac_cv_path_GREP+:} false; then :
4075  $as_echo_n "(cached) " >&6
4076else
4077  if test -z "$GREP"; then
4078  ac_path_GREP_found=false
4079  # Loop through the user's path and test for each of PROGNAME-LIST
4080  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4082do
4083  IFS=$as_save_IFS
4084  test -z "$as_dir" && as_dir=.
4085    for ac_prog in grep ggrep; do
4086    for ac_exec_ext in '' $ac_executable_extensions; do
4087      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4088      as_fn_executable_p "$ac_path_GREP" || continue
4089# Check for GNU ac_path_GREP and select it if it is found.
4090  # Check for GNU $ac_path_GREP
4091case `"$ac_path_GREP" --version 2>&1` in
4092*GNU*)
4093  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4094*)
4095  ac_count=0
4096  $as_echo_n 0123456789 >"conftest.in"
4097  while :
4098  do
4099    cat "conftest.in" "conftest.in" >"conftest.tmp"
4100    mv "conftest.tmp" "conftest.in"
4101    cp "conftest.in" "conftest.nl"
4102    $as_echo 'GREP' >> "conftest.nl"
4103    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4104    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4105    as_fn_arith $ac_count + 1 && ac_count=$as_val
4106    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4107      # Best one so far, save it but keep looking for a better one
4108      ac_cv_path_GREP="$ac_path_GREP"
4109      ac_path_GREP_max=$ac_count
4110    fi
4111    # 10*(2^10) chars as input seems more than enough
4112    test $ac_count -gt 10 && break
4113  done
4114  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4115esac
4116
4117      $ac_path_GREP_found && break 3
4118    done
4119  done
4120  done
4121IFS=$as_save_IFS
4122  if test -z "$ac_cv_path_GREP"; then
4123    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4124  fi
4125else
4126  ac_cv_path_GREP=$GREP
4127fi
4128
4129fi
4130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4131$as_echo "$ac_cv_path_GREP" >&6; }
4132 GREP="$ac_cv_path_GREP"
4133
4134
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4136$as_echo_n "checking for egrep... " >&6; }
4137if ${ac_cv_path_EGREP+:} false; then :
4138  $as_echo_n "(cached) " >&6
4139else
4140  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4141   then ac_cv_path_EGREP="$GREP -E"
4142   else
4143     if test -z "$EGREP"; then
4144  ac_path_EGREP_found=false
4145  # Loop through the user's path and test for each of PROGNAME-LIST
4146  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4148do
4149  IFS=$as_save_IFS
4150  test -z "$as_dir" && as_dir=.
4151    for ac_prog in egrep; do
4152    for ac_exec_ext in '' $ac_executable_extensions; do
4153      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4154      as_fn_executable_p "$ac_path_EGREP" || continue
4155# Check for GNU ac_path_EGREP and select it if it is found.
4156  # Check for GNU $ac_path_EGREP
4157case `"$ac_path_EGREP" --version 2>&1` in
4158*GNU*)
4159  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4160*)
4161  ac_count=0
4162  $as_echo_n 0123456789 >"conftest.in"
4163  while :
4164  do
4165    cat "conftest.in" "conftest.in" >"conftest.tmp"
4166    mv "conftest.tmp" "conftest.in"
4167    cp "conftest.in" "conftest.nl"
4168    $as_echo 'EGREP' >> "conftest.nl"
4169    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4170    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4171    as_fn_arith $ac_count + 1 && ac_count=$as_val
4172    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4173      # Best one so far, save it but keep looking for a better one
4174      ac_cv_path_EGREP="$ac_path_EGREP"
4175      ac_path_EGREP_max=$ac_count
4176    fi
4177    # 10*(2^10) chars as input seems more than enough
4178    test $ac_count -gt 10 && break
4179  done
4180  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4181esac
4182
4183      $ac_path_EGREP_found && break 3
4184    done
4185  done
4186  done
4187IFS=$as_save_IFS
4188  if test -z "$ac_cv_path_EGREP"; then
4189    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4190  fi
4191else
4192  ac_cv_path_EGREP=$EGREP
4193fi
4194
4195   fi
4196fi
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4198$as_echo "$ac_cv_path_EGREP" >&6; }
4199 EGREP="$ac_cv_path_EGREP"
4200
4201
4202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4203$as_echo_n "checking for ANSI C header files... " >&6; }
4204if ${ac_cv_header_stdc+:} false; then :
4205  $as_echo_n "(cached) " >&6
4206else
4207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208/* end confdefs.h.  */
4209#include <stdlib.h>
4210#include <stdarg.h>
4211#include <string.h>
4212#include <float.h>
4213
4214int
4215main ()
4216{
4217
4218  ;
4219  return 0;
4220}
4221_ACEOF
4222if ac_fn_c_try_compile "$LINENO"; then :
4223  ac_cv_header_stdc=yes
4224else
4225  ac_cv_header_stdc=no
4226fi
4227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228
4229if test $ac_cv_header_stdc = yes; then
4230  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232/* end confdefs.h.  */
4233#include <string.h>
4234
4235_ACEOF
4236if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4237  $EGREP "memchr" >/dev/null 2>&1; then :
4238
4239else
4240  ac_cv_header_stdc=no
4241fi
4242rm -f conftest*
4243
4244fi
4245
4246if test $ac_cv_header_stdc = yes; then
4247  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249/* end confdefs.h.  */
4250#include <stdlib.h>
4251
4252_ACEOF
4253if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4254  $EGREP "free" >/dev/null 2>&1; then :
4255
4256else
4257  ac_cv_header_stdc=no
4258fi
4259rm -f conftest*
4260
4261fi
4262
4263if test $ac_cv_header_stdc = yes; then
4264  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4265  if test "$cross_compiling" = yes; then :
4266  :
4267else
4268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269/* end confdefs.h.  */
4270#include <ctype.h>
4271#include <stdlib.h>
4272#if ((' ' & 0x0FF) == 0x020)
4273# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4274# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4275#else
4276# define ISLOWER(c) \
4277		   (('a' <= (c) && (c) <= 'i') \
4278		     || ('j' <= (c) && (c) <= 'r') \
4279		     || ('s' <= (c) && (c) <= 'z'))
4280# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4281#endif
4282
4283#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4284int
4285main ()
4286{
4287  int i;
4288  for (i = 0; i < 256; i++)
4289    if (XOR (islower (i), ISLOWER (i))
4290	|| toupper (i) != TOUPPER (i))
4291      return 2;
4292  return 0;
4293}
4294_ACEOF
4295if ac_fn_c_try_run "$LINENO"; then :
4296
4297else
4298  ac_cv_header_stdc=no
4299fi
4300rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4301  conftest.$ac_objext conftest.beam conftest.$ac_ext
4302fi
4303
4304fi
4305fi
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4307$as_echo "$ac_cv_header_stdc" >&6; }
4308if test $ac_cv_header_stdc = yes; then
4309
4310$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4311
4312fi
4313
4314# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4315for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4316		  inttypes.h stdint.h unistd.h
4317do :
4318  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4319ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4320"
4321if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4322  cat >>confdefs.h <<_ACEOF
4323#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4324_ACEOF
4325
4326fi
4327
4328done
4329
4330
4331
4332
4333
4334
4335ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4336if test "x$ac_cv_have_decl___clang__" = xyes; then :
4337  CLANGCC="yes"
4338else
4339  CLANGCC="no"
4340fi
4341
4342ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4343if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4344  INTELCC="yes"
4345else
4346  INTELCC="no"
4347fi
4348
4349ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4350if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4351  SUNCC="yes"
4352else
4353  SUNCC="no"
4354fi
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4365	if test -n "$ac_tool_prefix"; then
4366  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4367set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4369$as_echo_n "checking for $ac_word... " >&6; }
4370if ${ac_cv_path_PKG_CONFIG+:} false; then :
4371  $as_echo_n "(cached) " >&6
4372else
4373  case $PKG_CONFIG in
4374  [\\/]* | ?:[\\/]*)
4375  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4376  ;;
4377  *)
4378  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379for as_dir in $PATH
4380do
4381  IFS=$as_save_IFS
4382  test -z "$as_dir" && as_dir=.
4383    for ac_exec_ext in '' $ac_executable_extensions; do
4384  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4385    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4386    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4387    break 2
4388  fi
4389done
4390  done
4391IFS=$as_save_IFS
4392
4393  ;;
4394esac
4395fi
4396PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4397if test -n "$PKG_CONFIG"; then
4398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4399$as_echo "$PKG_CONFIG" >&6; }
4400else
4401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4402$as_echo "no" >&6; }
4403fi
4404
4405
4406fi
4407if test -z "$ac_cv_path_PKG_CONFIG"; then
4408  ac_pt_PKG_CONFIG=$PKG_CONFIG
4409  # Extract the first word of "pkg-config", so it can be a program name with args.
4410set dummy pkg-config; ac_word=$2
4411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4412$as_echo_n "checking for $ac_word... " >&6; }
4413if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4414  $as_echo_n "(cached) " >&6
4415else
4416  case $ac_pt_PKG_CONFIG in
4417  [\\/]* | ?:[\\/]*)
4418  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4419  ;;
4420  *)
4421  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422for as_dir in $PATH
4423do
4424  IFS=$as_save_IFS
4425  test -z "$as_dir" && as_dir=.
4426    for ac_exec_ext in '' $ac_executable_extensions; do
4427  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4428    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4429    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430    break 2
4431  fi
4432done
4433  done
4434IFS=$as_save_IFS
4435
4436  ;;
4437esac
4438fi
4439ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4440if test -n "$ac_pt_PKG_CONFIG"; then
4441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4442$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4443else
4444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445$as_echo "no" >&6; }
4446fi
4447
4448  if test "x$ac_pt_PKG_CONFIG" = x; then
4449    PKG_CONFIG=""
4450  else
4451    case $cross_compiling:$ac_tool_warned in
4452yes:)
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4455ac_tool_warned=yes ;;
4456esac
4457    PKG_CONFIG=$ac_pt_PKG_CONFIG
4458  fi
4459else
4460  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4461fi
4462
4463fi
4464if test -n "$PKG_CONFIG"; then
4465	_pkg_min_version=0.9.0
4466	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4467$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4468	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4469		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4470$as_echo "yes" >&6; }
4471	else
4472		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4473$as_echo "no" >&6; }
4474		PKG_CONFIG=""
4475	fi
4476fi
4477# Make sure we can run config.sub.
4478$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4479  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4480
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4482$as_echo_n "checking build system type... " >&6; }
4483if ${ac_cv_build+:} false; then :
4484  $as_echo_n "(cached) " >&6
4485else
4486  ac_build_alias=$build_alias
4487test "x$ac_build_alias" = x &&
4488  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4489test "x$ac_build_alias" = x &&
4490  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4491ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4492  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4493
4494fi
4495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4496$as_echo "$ac_cv_build" >&6; }
4497case $ac_cv_build in
4498*-*-*) ;;
4499*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4500esac
4501build=$ac_cv_build
4502ac_save_IFS=$IFS; IFS='-'
4503set x $ac_cv_build
4504shift
4505build_cpu=$1
4506build_vendor=$2
4507shift; shift
4508# Remember, the first character of IFS is used to create $*,
4509# except with old shells:
4510build_os=$*
4511IFS=$ac_save_IFS
4512case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4513
4514
4515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4516$as_echo_n "checking host system type... " >&6; }
4517if ${ac_cv_host+:} false; then :
4518  $as_echo_n "(cached) " >&6
4519else
4520  if test "x$host_alias" = x; then
4521  ac_cv_host=$ac_cv_build
4522else
4523  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4524    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4525fi
4526
4527fi
4528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4529$as_echo "$ac_cv_host" >&6; }
4530case $ac_cv_host in
4531*-*-*) ;;
4532*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4533esac
4534host=$ac_cv_host
4535ac_save_IFS=$IFS; IFS='-'
4536set x $ac_cv_host
4537shift
4538host_cpu=$1
4539host_vendor=$2
4540shift; shift
4541# Remember, the first character of IFS is used to create $*,
4542# except with old shells:
4543host_os=$*
4544IFS=$ac_save_IFS
4545case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4546
4547
4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4549$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4550if ${ac_cv_path_SED+:} false; then :
4551  $as_echo_n "(cached) " >&6
4552else
4553            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4554     for ac_i in 1 2 3 4 5 6 7; do
4555       ac_script="$ac_script$as_nl$ac_script"
4556     done
4557     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4558     { ac_script=; unset ac_script;}
4559     if test -z "$SED"; then
4560  ac_path_SED_found=false
4561  # Loop through the user's path and test for each of PROGNAME-LIST
4562  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563for as_dir in $PATH
4564do
4565  IFS=$as_save_IFS
4566  test -z "$as_dir" && as_dir=.
4567    for ac_prog in sed gsed; do
4568    for ac_exec_ext in '' $ac_executable_extensions; do
4569      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4570      as_fn_executable_p "$ac_path_SED" || continue
4571# Check for GNU ac_path_SED and select it if it is found.
4572  # Check for GNU $ac_path_SED
4573case `"$ac_path_SED" --version 2>&1` in
4574*GNU*)
4575  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4576*)
4577  ac_count=0
4578  $as_echo_n 0123456789 >"conftest.in"
4579  while :
4580  do
4581    cat "conftest.in" "conftest.in" >"conftest.tmp"
4582    mv "conftest.tmp" "conftest.in"
4583    cp "conftest.in" "conftest.nl"
4584    $as_echo '' >> "conftest.nl"
4585    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4586    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4587    as_fn_arith $ac_count + 1 && ac_count=$as_val
4588    if test $ac_count -gt ${ac_path_SED_max-0}; then
4589      # Best one so far, save it but keep looking for a better one
4590      ac_cv_path_SED="$ac_path_SED"
4591      ac_path_SED_max=$ac_count
4592    fi
4593    # 10*(2^10) chars as input seems more than enough
4594    test $ac_count -gt 10 && break
4595  done
4596  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4597esac
4598
4599      $ac_path_SED_found && break 3
4600    done
4601  done
4602  done
4603IFS=$as_save_IFS
4604  if test -z "$ac_cv_path_SED"; then
4605    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4606  fi
4607else
4608  ac_cv_path_SED=$SED
4609fi
4610
4611fi
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4613$as_echo "$ac_cv_path_SED" >&6; }
4614 SED="$ac_cv_path_SED"
4615  rm -f conftest.sed
4616
4617
4618
4619
4620
4621
4622# Check whether --enable-selective-werror was given.
4623if test "${enable_selective_werror+set}" = set; then :
4624  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4625else
4626  SELECTIVE_WERROR=yes
4627fi
4628
4629
4630
4631
4632
4633# -v is too short to test reliably with XORG_TESTSET_CFLAG
4634if test "x$SUNCC" = "xyes"; then
4635    BASE_CFLAGS="-v"
4636else
4637    BASE_CFLAGS=""
4638fi
4639
4640# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654xorg_testset_save_CFLAGS="$CFLAGS"
4655
4656if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4657	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4658	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4659$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4660if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4661  $as_echo_n "(cached) " >&6
4662else
4663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664/* end confdefs.h.  */
4665int i;
4666_ACEOF
4667if ac_fn_c_try_compile "$LINENO"; then :
4668  xorg_cv_cc_flag_unknown_warning_option=yes
4669else
4670  xorg_cv_cc_flag_unknown_warning_option=no
4671fi
4672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4673fi
4674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4675$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4676	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4677	CFLAGS="$xorg_testset_save_CFLAGS"
4678fi
4679
4680if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4681	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4682		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4683	fi
4684	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4685	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4686$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4687if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4688  $as_echo_n "(cached) " >&6
4689else
4690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691/* end confdefs.h.  */
4692int i;
4693_ACEOF
4694if ac_fn_c_try_compile "$LINENO"; then :
4695  xorg_cv_cc_flag_unused_command_line_argument=yes
4696else
4697  xorg_cv_cc_flag_unused_command_line_argument=no
4698fi
4699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4700fi
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4702$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4703	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4704	CFLAGS="$xorg_testset_save_CFLAGS"
4705fi
4706
4707found="no"
4708
4709	if test $found = "no" ; then
4710		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4711			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4712		fi
4713
4714		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4715			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4716		fi
4717
4718		CFLAGS="$CFLAGS -Wall"
4719
4720		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4721$as_echo_n "checking if $CC supports -Wall... " >&6; }
4722		cacheid=xorg_cv_cc_flag__Wall
4723		if eval \${$cacheid+:} false; then :
4724  $as_echo_n "(cached) " >&6
4725else
4726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727/* end confdefs.h.  */
4728int i;
4729int
4730main ()
4731{
4732
4733  ;
4734  return 0;
4735}
4736_ACEOF
4737if ac_fn_c_try_link "$LINENO"; then :
4738  eval $cacheid=yes
4739else
4740  eval $cacheid=no
4741fi
4742rm -f core conftest.err conftest.$ac_objext \
4743    conftest$ac_exeext conftest.$ac_ext
4744fi
4745
4746
4747		CFLAGS="$xorg_testset_save_CFLAGS"
4748
4749		eval supported=\$$cacheid
4750		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4751$as_echo "$supported" >&6; }
4752		if test "$supported" = "yes" ; then
4753			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4754			found="yes"
4755		fi
4756	fi
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772xorg_testset_save_CFLAGS="$CFLAGS"
4773
4774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4775	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4776	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4777$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4778if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4779  $as_echo_n "(cached) " >&6
4780else
4781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782/* end confdefs.h.  */
4783int i;
4784_ACEOF
4785if ac_fn_c_try_compile "$LINENO"; then :
4786  xorg_cv_cc_flag_unknown_warning_option=yes
4787else
4788  xorg_cv_cc_flag_unknown_warning_option=no
4789fi
4790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791fi
4792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4793$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4794	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4795	CFLAGS="$xorg_testset_save_CFLAGS"
4796fi
4797
4798if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4799	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4800		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4801	fi
4802	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4803	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4804$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4805if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4806  $as_echo_n "(cached) " >&6
4807else
4808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809/* end confdefs.h.  */
4810int i;
4811_ACEOF
4812if ac_fn_c_try_compile "$LINENO"; then :
4813  xorg_cv_cc_flag_unused_command_line_argument=yes
4814else
4815  xorg_cv_cc_flag_unused_command_line_argument=no
4816fi
4817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818fi
4819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4820$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4821	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4822	CFLAGS="$xorg_testset_save_CFLAGS"
4823fi
4824
4825found="no"
4826
4827	if test $found = "no" ; then
4828		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4829			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4830		fi
4831
4832		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4833			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4834		fi
4835
4836		CFLAGS="$CFLAGS -Wpointer-arith"
4837
4838		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4839$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4840		cacheid=xorg_cv_cc_flag__Wpointer_arith
4841		if eval \${$cacheid+:} false; then :
4842  $as_echo_n "(cached) " >&6
4843else
4844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845/* end confdefs.h.  */
4846int i;
4847int
4848main ()
4849{
4850
4851  ;
4852  return 0;
4853}
4854_ACEOF
4855if ac_fn_c_try_link "$LINENO"; then :
4856  eval $cacheid=yes
4857else
4858  eval $cacheid=no
4859fi
4860rm -f core conftest.err conftest.$ac_objext \
4861    conftest$ac_exeext conftest.$ac_ext
4862fi
4863
4864
4865		CFLAGS="$xorg_testset_save_CFLAGS"
4866
4867		eval supported=\$$cacheid
4868		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4869$as_echo "$supported" >&6; }
4870		if test "$supported" = "yes" ; then
4871			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4872			found="yes"
4873		fi
4874	fi
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890xorg_testset_save_CFLAGS="$CFLAGS"
4891
4892if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4893	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4894	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4895$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4896if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4897  $as_echo_n "(cached) " >&6
4898else
4899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900/* end confdefs.h.  */
4901int i;
4902_ACEOF
4903if ac_fn_c_try_compile "$LINENO"; then :
4904  xorg_cv_cc_flag_unknown_warning_option=yes
4905else
4906  xorg_cv_cc_flag_unknown_warning_option=no
4907fi
4908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4909fi
4910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4911$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4912	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4913	CFLAGS="$xorg_testset_save_CFLAGS"
4914fi
4915
4916if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4917	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4918		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4919	fi
4920	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4921	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4922$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4923if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4924  $as_echo_n "(cached) " >&6
4925else
4926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927/* end confdefs.h.  */
4928int i;
4929_ACEOF
4930if ac_fn_c_try_compile "$LINENO"; then :
4931  xorg_cv_cc_flag_unused_command_line_argument=yes
4932else
4933  xorg_cv_cc_flag_unused_command_line_argument=no
4934fi
4935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4936fi
4937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4938$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4939	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4940	CFLAGS="$xorg_testset_save_CFLAGS"
4941fi
4942
4943found="no"
4944
4945	if test $found = "no" ; then
4946		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4947			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4948		fi
4949
4950		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4951			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4952		fi
4953
4954		CFLAGS="$CFLAGS -Wmissing-declarations"
4955
4956		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4957$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4958		cacheid=xorg_cv_cc_flag__Wmissing_declarations
4959		if eval \${$cacheid+:} false; then :
4960  $as_echo_n "(cached) " >&6
4961else
4962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963/* end confdefs.h.  */
4964int i;
4965int
4966main ()
4967{
4968
4969  ;
4970  return 0;
4971}
4972_ACEOF
4973if ac_fn_c_try_link "$LINENO"; then :
4974  eval $cacheid=yes
4975else
4976  eval $cacheid=no
4977fi
4978rm -f core conftest.err conftest.$ac_objext \
4979    conftest$ac_exeext conftest.$ac_ext
4980fi
4981
4982
4983		CFLAGS="$xorg_testset_save_CFLAGS"
4984
4985		eval supported=\$$cacheid
4986		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4987$as_echo "$supported" >&6; }
4988		if test "$supported" = "yes" ; then
4989			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4990			found="yes"
4991		fi
4992	fi
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008xorg_testset_save_CFLAGS="$CFLAGS"
5009
5010if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5011	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5012	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5013$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5014if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5015  $as_echo_n "(cached) " >&6
5016else
5017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018/* end confdefs.h.  */
5019int i;
5020_ACEOF
5021if ac_fn_c_try_compile "$LINENO"; then :
5022  xorg_cv_cc_flag_unknown_warning_option=yes
5023else
5024  xorg_cv_cc_flag_unknown_warning_option=no
5025fi
5026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5027fi
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5029$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5030	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5031	CFLAGS="$xorg_testset_save_CFLAGS"
5032fi
5033
5034if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5035	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5036		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5037	fi
5038	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5039	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5040$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5041if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5042  $as_echo_n "(cached) " >&6
5043else
5044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045/* end confdefs.h.  */
5046int i;
5047_ACEOF
5048if ac_fn_c_try_compile "$LINENO"; then :
5049  xorg_cv_cc_flag_unused_command_line_argument=yes
5050else
5051  xorg_cv_cc_flag_unused_command_line_argument=no
5052fi
5053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5054fi
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5056$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5057	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5058	CFLAGS="$xorg_testset_save_CFLAGS"
5059fi
5060
5061found="no"
5062
5063	if test $found = "no" ; then
5064		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5065			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5066		fi
5067
5068		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5069			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5070		fi
5071
5072		CFLAGS="$CFLAGS -Wformat=2"
5073
5074		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5075$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5076		cacheid=xorg_cv_cc_flag__Wformat_2
5077		if eval \${$cacheid+:} false; then :
5078  $as_echo_n "(cached) " >&6
5079else
5080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5081/* end confdefs.h.  */
5082int i;
5083int
5084main ()
5085{
5086
5087  ;
5088  return 0;
5089}
5090_ACEOF
5091if ac_fn_c_try_link "$LINENO"; then :
5092  eval $cacheid=yes
5093else
5094  eval $cacheid=no
5095fi
5096rm -f core conftest.err conftest.$ac_objext \
5097    conftest$ac_exeext conftest.$ac_ext
5098fi
5099
5100
5101		CFLAGS="$xorg_testset_save_CFLAGS"
5102
5103		eval supported=\$$cacheid
5104		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5105$as_echo "$supported" >&6; }
5106		if test "$supported" = "yes" ; then
5107			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5108			found="yes"
5109		fi
5110	fi
5111
5112	if test $found = "no" ; then
5113		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5114			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5115		fi
5116
5117		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5118			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5119		fi
5120
5121		CFLAGS="$CFLAGS -Wformat"
5122
5123		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5124$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5125		cacheid=xorg_cv_cc_flag__Wformat
5126		if eval \${$cacheid+:} false; then :
5127  $as_echo_n "(cached) " >&6
5128else
5129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5130/* end confdefs.h.  */
5131int i;
5132int
5133main ()
5134{
5135
5136  ;
5137  return 0;
5138}
5139_ACEOF
5140if ac_fn_c_try_link "$LINENO"; then :
5141  eval $cacheid=yes
5142else
5143  eval $cacheid=no
5144fi
5145rm -f core conftest.err conftest.$ac_objext \
5146    conftest$ac_exeext conftest.$ac_ext
5147fi
5148
5149
5150		CFLAGS="$xorg_testset_save_CFLAGS"
5151
5152		eval supported=\$$cacheid
5153		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5154$as_echo "$supported" >&6; }
5155		if test "$supported" = "yes" ; then
5156			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5157			found="yes"
5158		fi
5159	fi
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177xorg_testset_save_CFLAGS="$CFLAGS"
5178
5179if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5180	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5181	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5182$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5183if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5184  $as_echo_n "(cached) " >&6
5185else
5186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187/* end confdefs.h.  */
5188int i;
5189_ACEOF
5190if ac_fn_c_try_compile "$LINENO"; then :
5191  xorg_cv_cc_flag_unknown_warning_option=yes
5192else
5193  xorg_cv_cc_flag_unknown_warning_option=no
5194fi
5195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5196fi
5197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5198$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5199	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5200	CFLAGS="$xorg_testset_save_CFLAGS"
5201fi
5202
5203if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5204	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5205		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5206	fi
5207	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5208	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5209$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5210if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5211  $as_echo_n "(cached) " >&6
5212else
5213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214/* end confdefs.h.  */
5215int i;
5216_ACEOF
5217if ac_fn_c_try_compile "$LINENO"; then :
5218  xorg_cv_cc_flag_unused_command_line_argument=yes
5219else
5220  xorg_cv_cc_flag_unused_command_line_argument=no
5221fi
5222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5223fi
5224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5225$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5226	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5227	CFLAGS="$xorg_testset_save_CFLAGS"
5228fi
5229
5230found="no"
5231
5232	if test $found = "no" ; then
5233		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5234			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5235		fi
5236
5237		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5238			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5239		fi
5240
5241		CFLAGS="$CFLAGS -Wstrict-prototypes"
5242
5243		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5244$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5245		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5246		if eval \${$cacheid+:} false; then :
5247  $as_echo_n "(cached) " >&6
5248else
5249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250/* end confdefs.h.  */
5251int i;
5252int
5253main ()
5254{
5255
5256  ;
5257  return 0;
5258}
5259_ACEOF
5260if ac_fn_c_try_link "$LINENO"; then :
5261  eval $cacheid=yes
5262else
5263  eval $cacheid=no
5264fi
5265rm -f core conftest.err conftest.$ac_objext \
5266    conftest$ac_exeext conftest.$ac_ext
5267fi
5268
5269
5270		CFLAGS="$xorg_testset_save_CFLAGS"
5271
5272		eval supported=\$$cacheid
5273		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5274$as_echo "$supported" >&6; }
5275		if test "$supported" = "yes" ; then
5276			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5277			found="yes"
5278		fi
5279	fi
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295xorg_testset_save_CFLAGS="$CFLAGS"
5296
5297if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5298	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5299	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5300$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5301if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5302  $as_echo_n "(cached) " >&6
5303else
5304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305/* end confdefs.h.  */
5306int i;
5307_ACEOF
5308if ac_fn_c_try_compile "$LINENO"; then :
5309  xorg_cv_cc_flag_unknown_warning_option=yes
5310else
5311  xorg_cv_cc_flag_unknown_warning_option=no
5312fi
5313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314fi
5315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5316$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5317	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5318	CFLAGS="$xorg_testset_save_CFLAGS"
5319fi
5320
5321if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5322	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5323		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5324	fi
5325	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5326	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5327$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5328if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5329  $as_echo_n "(cached) " >&6
5330else
5331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332/* end confdefs.h.  */
5333int i;
5334_ACEOF
5335if ac_fn_c_try_compile "$LINENO"; then :
5336  xorg_cv_cc_flag_unused_command_line_argument=yes
5337else
5338  xorg_cv_cc_flag_unused_command_line_argument=no
5339fi
5340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5341fi
5342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5343$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5344	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5345	CFLAGS="$xorg_testset_save_CFLAGS"
5346fi
5347
5348found="no"
5349
5350	if test $found = "no" ; then
5351		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5352			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5353		fi
5354
5355		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5356			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5357		fi
5358
5359		CFLAGS="$CFLAGS -Wmissing-prototypes"
5360
5361		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5362$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5363		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5364		if eval \${$cacheid+:} false; then :
5365  $as_echo_n "(cached) " >&6
5366else
5367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368/* end confdefs.h.  */
5369int i;
5370int
5371main ()
5372{
5373
5374  ;
5375  return 0;
5376}
5377_ACEOF
5378if ac_fn_c_try_link "$LINENO"; then :
5379  eval $cacheid=yes
5380else
5381  eval $cacheid=no
5382fi
5383rm -f core conftest.err conftest.$ac_objext \
5384    conftest$ac_exeext conftest.$ac_ext
5385fi
5386
5387
5388		CFLAGS="$xorg_testset_save_CFLAGS"
5389
5390		eval supported=\$$cacheid
5391		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5392$as_echo "$supported" >&6; }
5393		if test "$supported" = "yes" ; then
5394			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5395			found="yes"
5396		fi
5397	fi
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413xorg_testset_save_CFLAGS="$CFLAGS"
5414
5415if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5416	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5417	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5418$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5419if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5420  $as_echo_n "(cached) " >&6
5421else
5422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423/* end confdefs.h.  */
5424int i;
5425_ACEOF
5426if ac_fn_c_try_compile "$LINENO"; then :
5427  xorg_cv_cc_flag_unknown_warning_option=yes
5428else
5429  xorg_cv_cc_flag_unknown_warning_option=no
5430fi
5431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432fi
5433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5434$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5435	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5436	CFLAGS="$xorg_testset_save_CFLAGS"
5437fi
5438
5439if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5440	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5441		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5442	fi
5443	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5444	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5445$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5446if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5447  $as_echo_n "(cached) " >&6
5448else
5449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5450/* end confdefs.h.  */
5451int i;
5452_ACEOF
5453if ac_fn_c_try_compile "$LINENO"; then :
5454  xorg_cv_cc_flag_unused_command_line_argument=yes
5455else
5456  xorg_cv_cc_flag_unused_command_line_argument=no
5457fi
5458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5459fi
5460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5461$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5462	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5463	CFLAGS="$xorg_testset_save_CFLAGS"
5464fi
5465
5466found="no"
5467
5468	if test $found = "no" ; then
5469		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5470			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5471		fi
5472
5473		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5474			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5475		fi
5476
5477		CFLAGS="$CFLAGS -Wnested-externs"
5478
5479		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5480$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5481		cacheid=xorg_cv_cc_flag__Wnested_externs
5482		if eval \${$cacheid+:} false; then :
5483  $as_echo_n "(cached) " >&6
5484else
5485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486/* end confdefs.h.  */
5487int i;
5488int
5489main ()
5490{
5491
5492  ;
5493  return 0;
5494}
5495_ACEOF
5496if ac_fn_c_try_link "$LINENO"; then :
5497  eval $cacheid=yes
5498else
5499  eval $cacheid=no
5500fi
5501rm -f core conftest.err conftest.$ac_objext \
5502    conftest$ac_exeext conftest.$ac_ext
5503fi
5504
5505
5506		CFLAGS="$xorg_testset_save_CFLAGS"
5507
5508		eval supported=\$$cacheid
5509		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5510$as_echo "$supported" >&6; }
5511		if test "$supported" = "yes" ; then
5512			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5513			found="yes"
5514		fi
5515	fi
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531xorg_testset_save_CFLAGS="$CFLAGS"
5532
5533if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5534	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5535	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5536$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5537if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5538  $as_echo_n "(cached) " >&6
5539else
5540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541/* end confdefs.h.  */
5542int i;
5543_ACEOF
5544if ac_fn_c_try_compile "$LINENO"; then :
5545  xorg_cv_cc_flag_unknown_warning_option=yes
5546else
5547  xorg_cv_cc_flag_unknown_warning_option=no
5548fi
5549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550fi
5551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5552$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5553	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5554	CFLAGS="$xorg_testset_save_CFLAGS"
5555fi
5556
5557if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5558	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5559		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5560	fi
5561	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5562	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5563$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5564if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5565  $as_echo_n "(cached) " >&6
5566else
5567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568/* end confdefs.h.  */
5569int i;
5570_ACEOF
5571if ac_fn_c_try_compile "$LINENO"; then :
5572  xorg_cv_cc_flag_unused_command_line_argument=yes
5573else
5574  xorg_cv_cc_flag_unused_command_line_argument=no
5575fi
5576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5577fi
5578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5579$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5580	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5581	CFLAGS="$xorg_testset_save_CFLAGS"
5582fi
5583
5584found="no"
5585
5586	if test $found = "no" ; then
5587		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5588			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5589		fi
5590
5591		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5592			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5593		fi
5594
5595		CFLAGS="$CFLAGS -Wbad-function-cast"
5596
5597		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5598$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5599		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5600		if eval \${$cacheid+:} false; then :
5601  $as_echo_n "(cached) " >&6
5602else
5603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604/* end confdefs.h.  */
5605int i;
5606int
5607main ()
5608{
5609
5610  ;
5611  return 0;
5612}
5613_ACEOF
5614if ac_fn_c_try_link "$LINENO"; then :
5615  eval $cacheid=yes
5616else
5617  eval $cacheid=no
5618fi
5619rm -f core conftest.err conftest.$ac_objext \
5620    conftest$ac_exeext conftest.$ac_ext
5621fi
5622
5623
5624		CFLAGS="$xorg_testset_save_CFLAGS"
5625
5626		eval supported=\$$cacheid
5627		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5628$as_echo "$supported" >&6; }
5629		if test "$supported" = "yes" ; then
5630			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5631			found="yes"
5632		fi
5633	fi
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649xorg_testset_save_CFLAGS="$CFLAGS"
5650
5651if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5652	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5653	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5654$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5655if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5656  $as_echo_n "(cached) " >&6
5657else
5658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659/* end confdefs.h.  */
5660int i;
5661_ACEOF
5662if ac_fn_c_try_compile "$LINENO"; then :
5663  xorg_cv_cc_flag_unknown_warning_option=yes
5664else
5665  xorg_cv_cc_flag_unknown_warning_option=no
5666fi
5667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5668fi
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5670$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5671	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5672	CFLAGS="$xorg_testset_save_CFLAGS"
5673fi
5674
5675if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5676	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5677		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5678	fi
5679	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5680	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5681$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5682if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5683  $as_echo_n "(cached) " >&6
5684else
5685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686/* end confdefs.h.  */
5687int i;
5688_ACEOF
5689if ac_fn_c_try_compile "$LINENO"; then :
5690  xorg_cv_cc_flag_unused_command_line_argument=yes
5691else
5692  xorg_cv_cc_flag_unused_command_line_argument=no
5693fi
5694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5695fi
5696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5697$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5698	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5699	CFLAGS="$xorg_testset_save_CFLAGS"
5700fi
5701
5702found="no"
5703
5704	if test $found = "no" ; then
5705		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5706			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5707		fi
5708
5709		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5710			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5711		fi
5712
5713		CFLAGS="$CFLAGS -Wold-style-definition"
5714
5715		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5716$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5717		cacheid=xorg_cv_cc_flag__Wold_style_definition
5718		if eval \${$cacheid+:} false; then :
5719  $as_echo_n "(cached) " >&6
5720else
5721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722/* end confdefs.h.  */
5723int i;
5724int
5725main ()
5726{
5727
5728  ;
5729  return 0;
5730}
5731_ACEOF
5732if ac_fn_c_try_link "$LINENO"; then :
5733  eval $cacheid=yes
5734else
5735  eval $cacheid=no
5736fi
5737rm -f core conftest.err conftest.$ac_objext \
5738    conftest$ac_exeext conftest.$ac_ext
5739fi
5740
5741
5742		CFLAGS="$xorg_testset_save_CFLAGS"
5743
5744		eval supported=\$$cacheid
5745		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5746$as_echo "$supported" >&6; }
5747		if test "$supported" = "yes" ; then
5748			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5749			found="yes"
5750		fi
5751	fi
5752
5753	if test $found = "no" ; then
5754		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5755			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5756		fi
5757
5758		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5759			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5760		fi
5761
5762		CFLAGS="$CFLAGS -fd"
5763
5764		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5765$as_echo_n "checking if $CC supports -fd... " >&6; }
5766		cacheid=xorg_cv_cc_flag__fd
5767		if eval \${$cacheid+:} false; then :
5768  $as_echo_n "(cached) " >&6
5769else
5770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771/* end confdefs.h.  */
5772int i;
5773int
5774main ()
5775{
5776
5777  ;
5778  return 0;
5779}
5780_ACEOF
5781if ac_fn_c_try_link "$LINENO"; then :
5782  eval $cacheid=yes
5783else
5784  eval $cacheid=no
5785fi
5786rm -f core conftest.err conftest.$ac_objext \
5787    conftest$ac_exeext conftest.$ac_ext
5788fi
5789
5790
5791		CFLAGS="$xorg_testset_save_CFLAGS"
5792
5793		eval supported=\$$cacheid
5794		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5795$as_echo "$supported" >&6; }
5796		if test "$supported" = "yes" ; then
5797			BASE_CFLAGS="$BASE_CFLAGS -fd"
5798			found="yes"
5799		fi
5800	fi
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816xorg_testset_save_CFLAGS="$CFLAGS"
5817
5818if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5819	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5820	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5821$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5822if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5823  $as_echo_n "(cached) " >&6
5824else
5825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826/* end confdefs.h.  */
5827int i;
5828_ACEOF
5829if ac_fn_c_try_compile "$LINENO"; then :
5830  xorg_cv_cc_flag_unknown_warning_option=yes
5831else
5832  xorg_cv_cc_flag_unknown_warning_option=no
5833fi
5834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5835fi
5836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5837$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5838	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5839	CFLAGS="$xorg_testset_save_CFLAGS"
5840fi
5841
5842if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5843	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5844		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5845	fi
5846	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5847	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5848$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5849if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5850  $as_echo_n "(cached) " >&6
5851else
5852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5853/* end confdefs.h.  */
5854int i;
5855_ACEOF
5856if ac_fn_c_try_compile "$LINENO"; then :
5857  xorg_cv_cc_flag_unused_command_line_argument=yes
5858else
5859  xorg_cv_cc_flag_unused_command_line_argument=no
5860fi
5861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5862fi
5863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5864$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5865	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5866	CFLAGS="$xorg_testset_save_CFLAGS"
5867fi
5868
5869found="no"
5870
5871	if test $found = "no" ; then
5872		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5873			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5874		fi
5875
5876		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5877			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5878		fi
5879
5880		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5881
5882		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5883$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5884		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5885		if eval \${$cacheid+:} false; then :
5886  $as_echo_n "(cached) " >&6
5887else
5888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5889/* end confdefs.h.  */
5890int i;
5891int
5892main ()
5893{
5894
5895  ;
5896  return 0;
5897}
5898_ACEOF
5899if ac_fn_c_try_link "$LINENO"; then :
5900  eval $cacheid=yes
5901else
5902  eval $cacheid=no
5903fi
5904rm -f core conftest.err conftest.$ac_objext \
5905    conftest$ac_exeext conftest.$ac_ext
5906fi
5907
5908
5909		CFLAGS="$xorg_testset_save_CFLAGS"
5910
5911		eval supported=\$$cacheid
5912		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5913$as_echo "$supported" >&6; }
5914		if test "$supported" = "yes" ; then
5915			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5916			found="yes"
5917		fi
5918	fi
5919
5920
5921
5922
5923
5924# This chunk adds additional warnings that could catch undesired effects.
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938xorg_testset_save_CFLAGS="$CFLAGS"
5939
5940if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5941	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5942	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5943$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5944if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5945  $as_echo_n "(cached) " >&6
5946else
5947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948/* end confdefs.h.  */
5949int i;
5950_ACEOF
5951if ac_fn_c_try_compile "$LINENO"; then :
5952  xorg_cv_cc_flag_unknown_warning_option=yes
5953else
5954  xorg_cv_cc_flag_unknown_warning_option=no
5955fi
5956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5957fi
5958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5959$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5960	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5961	CFLAGS="$xorg_testset_save_CFLAGS"
5962fi
5963
5964if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5965	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5966		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5967	fi
5968	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5969	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5970$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5971if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5972  $as_echo_n "(cached) " >&6
5973else
5974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5975/* end confdefs.h.  */
5976int i;
5977_ACEOF
5978if ac_fn_c_try_compile "$LINENO"; then :
5979  xorg_cv_cc_flag_unused_command_line_argument=yes
5980else
5981  xorg_cv_cc_flag_unused_command_line_argument=no
5982fi
5983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5984fi
5985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5986$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5987	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5988	CFLAGS="$xorg_testset_save_CFLAGS"
5989fi
5990
5991found="no"
5992
5993	if test $found = "no" ; then
5994		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5995			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5996		fi
5997
5998		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5999			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6000		fi
6001
6002		CFLAGS="$CFLAGS -Wunused"
6003
6004		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6005$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6006		cacheid=xorg_cv_cc_flag__Wunused
6007		if eval \${$cacheid+:} false; then :
6008  $as_echo_n "(cached) " >&6
6009else
6010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011/* end confdefs.h.  */
6012int i;
6013int
6014main ()
6015{
6016
6017  ;
6018  return 0;
6019}
6020_ACEOF
6021if ac_fn_c_try_link "$LINENO"; then :
6022  eval $cacheid=yes
6023else
6024  eval $cacheid=no
6025fi
6026rm -f core conftest.err conftest.$ac_objext \
6027    conftest$ac_exeext conftest.$ac_ext
6028fi
6029
6030
6031		CFLAGS="$xorg_testset_save_CFLAGS"
6032
6033		eval supported=\$$cacheid
6034		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6035$as_echo "$supported" >&6; }
6036		if test "$supported" = "yes" ; then
6037			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6038			found="yes"
6039		fi
6040	fi
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056xorg_testset_save_CFLAGS="$CFLAGS"
6057
6058if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6059	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6060	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6061$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6062if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6063  $as_echo_n "(cached) " >&6
6064else
6065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066/* end confdefs.h.  */
6067int i;
6068_ACEOF
6069if ac_fn_c_try_compile "$LINENO"; then :
6070  xorg_cv_cc_flag_unknown_warning_option=yes
6071else
6072  xorg_cv_cc_flag_unknown_warning_option=no
6073fi
6074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6075fi
6076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6077$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6078	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6079	CFLAGS="$xorg_testset_save_CFLAGS"
6080fi
6081
6082if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6083	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6084		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6085	fi
6086	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6087	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6088$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6089if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6090  $as_echo_n "(cached) " >&6
6091else
6092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6093/* end confdefs.h.  */
6094int i;
6095_ACEOF
6096if ac_fn_c_try_compile "$LINENO"; then :
6097  xorg_cv_cc_flag_unused_command_line_argument=yes
6098else
6099  xorg_cv_cc_flag_unused_command_line_argument=no
6100fi
6101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102fi
6103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6104$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6105	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6106	CFLAGS="$xorg_testset_save_CFLAGS"
6107fi
6108
6109found="no"
6110
6111	if test $found = "no" ; then
6112		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6113			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6114		fi
6115
6116		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6117			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6118		fi
6119
6120		CFLAGS="$CFLAGS -Wuninitialized"
6121
6122		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6123$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6124		cacheid=xorg_cv_cc_flag__Wuninitialized
6125		if eval \${$cacheid+:} false; then :
6126  $as_echo_n "(cached) " >&6
6127else
6128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6129/* end confdefs.h.  */
6130int i;
6131int
6132main ()
6133{
6134
6135  ;
6136  return 0;
6137}
6138_ACEOF
6139if ac_fn_c_try_link "$LINENO"; then :
6140  eval $cacheid=yes
6141else
6142  eval $cacheid=no
6143fi
6144rm -f core conftest.err conftest.$ac_objext \
6145    conftest$ac_exeext conftest.$ac_ext
6146fi
6147
6148
6149		CFLAGS="$xorg_testset_save_CFLAGS"
6150
6151		eval supported=\$$cacheid
6152		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6153$as_echo "$supported" >&6; }
6154		if test "$supported" = "yes" ; then
6155			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6156			found="yes"
6157		fi
6158	fi
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174xorg_testset_save_CFLAGS="$CFLAGS"
6175
6176if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6177	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6178	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6179$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6180if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6181  $as_echo_n "(cached) " >&6
6182else
6183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184/* end confdefs.h.  */
6185int i;
6186_ACEOF
6187if ac_fn_c_try_compile "$LINENO"; then :
6188  xorg_cv_cc_flag_unknown_warning_option=yes
6189else
6190  xorg_cv_cc_flag_unknown_warning_option=no
6191fi
6192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6193fi
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6195$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6196	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6197	CFLAGS="$xorg_testset_save_CFLAGS"
6198fi
6199
6200if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6201	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6202		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6203	fi
6204	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6205	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6206$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6207if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6208  $as_echo_n "(cached) " >&6
6209else
6210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6211/* end confdefs.h.  */
6212int i;
6213_ACEOF
6214if ac_fn_c_try_compile "$LINENO"; then :
6215  xorg_cv_cc_flag_unused_command_line_argument=yes
6216else
6217  xorg_cv_cc_flag_unused_command_line_argument=no
6218fi
6219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6220fi
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6222$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6223	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6224	CFLAGS="$xorg_testset_save_CFLAGS"
6225fi
6226
6227found="no"
6228
6229	if test $found = "no" ; then
6230		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6231			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6232		fi
6233
6234		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6235			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6236		fi
6237
6238		CFLAGS="$CFLAGS -Wshadow"
6239
6240		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6241$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6242		cacheid=xorg_cv_cc_flag__Wshadow
6243		if eval \${$cacheid+:} false; then :
6244  $as_echo_n "(cached) " >&6
6245else
6246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6247/* end confdefs.h.  */
6248int i;
6249int
6250main ()
6251{
6252
6253  ;
6254  return 0;
6255}
6256_ACEOF
6257if ac_fn_c_try_link "$LINENO"; then :
6258  eval $cacheid=yes
6259else
6260  eval $cacheid=no
6261fi
6262rm -f core conftest.err conftest.$ac_objext \
6263    conftest$ac_exeext conftest.$ac_ext
6264fi
6265
6266
6267		CFLAGS="$xorg_testset_save_CFLAGS"
6268
6269		eval supported=\$$cacheid
6270		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6271$as_echo "$supported" >&6; }
6272		if test "$supported" = "yes" ; then
6273			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6274			found="yes"
6275		fi
6276	fi
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292xorg_testset_save_CFLAGS="$CFLAGS"
6293
6294if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6295	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6296	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6297$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6298if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6299  $as_echo_n "(cached) " >&6
6300else
6301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6302/* end confdefs.h.  */
6303int i;
6304_ACEOF
6305if ac_fn_c_try_compile "$LINENO"; then :
6306  xorg_cv_cc_flag_unknown_warning_option=yes
6307else
6308  xorg_cv_cc_flag_unknown_warning_option=no
6309fi
6310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6311fi
6312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6313$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6314	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6315	CFLAGS="$xorg_testset_save_CFLAGS"
6316fi
6317
6318if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6319	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6320		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6321	fi
6322	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6323	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6324$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6325if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6326  $as_echo_n "(cached) " >&6
6327else
6328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329/* end confdefs.h.  */
6330int i;
6331_ACEOF
6332if ac_fn_c_try_compile "$LINENO"; then :
6333  xorg_cv_cc_flag_unused_command_line_argument=yes
6334else
6335  xorg_cv_cc_flag_unused_command_line_argument=no
6336fi
6337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6338fi
6339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6340$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6341	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6342	CFLAGS="$xorg_testset_save_CFLAGS"
6343fi
6344
6345found="no"
6346
6347	if test $found = "no" ; then
6348		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6349			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6350		fi
6351
6352		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6353			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6354		fi
6355
6356		CFLAGS="$CFLAGS -Wmissing-noreturn"
6357
6358		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6359$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6360		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6361		if eval \${$cacheid+:} false; then :
6362  $as_echo_n "(cached) " >&6
6363else
6364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365/* end confdefs.h.  */
6366int i;
6367int
6368main ()
6369{
6370
6371  ;
6372  return 0;
6373}
6374_ACEOF
6375if ac_fn_c_try_link "$LINENO"; then :
6376  eval $cacheid=yes
6377else
6378  eval $cacheid=no
6379fi
6380rm -f core conftest.err conftest.$ac_objext \
6381    conftest$ac_exeext conftest.$ac_ext
6382fi
6383
6384
6385		CFLAGS="$xorg_testset_save_CFLAGS"
6386
6387		eval supported=\$$cacheid
6388		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6389$as_echo "$supported" >&6; }
6390		if test "$supported" = "yes" ; then
6391			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6392			found="yes"
6393		fi
6394	fi
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410xorg_testset_save_CFLAGS="$CFLAGS"
6411
6412if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6413	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6414	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6415$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6416if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6417  $as_echo_n "(cached) " >&6
6418else
6419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6420/* end confdefs.h.  */
6421int i;
6422_ACEOF
6423if ac_fn_c_try_compile "$LINENO"; then :
6424  xorg_cv_cc_flag_unknown_warning_option=yes
6425else
6426  xorg_cv_cc_flag_unknown_warning_option=no
6427fi
6428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429fi
6430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6431$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6432	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6433	CFLAGS="$xorg_testset_save_CFLAGS"
6434fi
6435
6436if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6437	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6438		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6439	fi
6440	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6441	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6442$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6443if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6444  $as_echo_n "(cached) " >&6
6445else
6446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447/* end confdefs.h.  */
6448int i;
6449_ACEOF
6450if ac_fn_c_try_compile "$LINENO"; then :
6451  xorg_cv_cc_flag_unused_command_line_argument=yes
6452else
6453  xorg_cv_cc_flag_unused_command_line_argument=no
6454fi
6455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6456fi
6457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6458$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6459	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6460	CFLAGS="$xorg_testset_save_CFLAGS"
6461fi
6462
6463found="no"
6464
6465	if test $found = "no" ; then
6466		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6467			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6468		fi
6469
6470		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6471			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6472		fi
6473
6474		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6475
6476		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6477$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6478		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6479		if eval \${$cacheid+:} false; then :
6480  $as_echo_n "(cached) " >&6
6481else
6482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483/* end confdefs.h.  */
6484int i;
6485int
6486main ()
6487{
6488
6489  ;
6490  return 0;
6491}
6492_ACEOF
6493if ac_fn_c_try_link "$LINENO"; then :
6494  eval $cacheid=yes
6495else
6496  eval $cacheid=no
6497fi
6498rm -f core conftest.err conftest.$ac_objext \
6499    conftest$ac_exeext conftest.$ac_ext
6500fi
6501
6502
6503		CFLAGS="$xorg_testset_save_CFLAGS"
6504
6505		eval supported=\$$cacheid
6506		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6507$as_echo "$supported" >&6; }
6508		if test "$supported" = "yes" ; then
6509			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6510			found="yes"
6511		fi
6512	fi
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528xorg_testset_save_CFLAGS="$CFLAGS"
6529
6530if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6531	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6532	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6533$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6534if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6535  $as_echo_n "(cached) " >&6
6536else
6537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538/* end confdefs.h.  */
6539int i;
6540_ACEOF
6541if ac_fn_c_try_compile "$LINENO"; then :
6542  xorg_cv_cc_flag_unknown_warning_option=yes
6543else
6544  xorg_cv_cc_flag_unknown_warning_option=no
6545fi
6546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6547fi
6548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6549$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6550	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6551	CFLAGS="$xorg_testset_save_CFLAGS"
6552fi
6553
6554if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6555	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6556		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6557	fi
6558	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6559	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6560$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6561if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6562  $as_echo_n "(cached) " >&6
6563else
6564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565/* end confdefs.h.  */
6566int i;
6567_ACEOF
6568if ac_fn_c_try_compile "$LINENO"; then :
6569  xorg_cv_cc_flag_unused_command_line_argument=yes
6570else
6571  xorg_cv_cc_flag_unused_command_line_argument=no
6572fi
6573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6574fi
6575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6576$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6577	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6578	CFLAGS="$xorg_testset_save_CFLAGS"
6579fi
6580
6581found="no"
6582
6583	if test $found = "no" ; then
6584		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6585			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6586		fi
6587
6588		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6589			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6590		fi
6591
6592		CFLAGS="$CFLAGS -Wredundant-decls"
6593
6594		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6595$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6596		cacheid=xorg_cv_cc_flag__Wredundant_decls
6597		if eval \${$cacheid+:} false; then :
6598  $as_echo_n "(cached) " >&6
6599else
6600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6601/* end confdefs.h.  */
6602int i;
6603int
6604main ()
6605{
6606
6607  ;
6608  return 0;
6609}
6610_ACEOF
6611if ac_fn_c_try_link "$LINENO"; then :
6612  eval $cacheid=yes
6613else
6614  eval $cacheid=no
6615fi
6616rm -f core conftest.err conftest.$ac_objext \
6617    conftest$ac_exeext conftest.$ac_ext
6618fi
6619
6620
6621		CFLAGS="$xorg_testset_save_CFLAGS"
6622
6623		eval supported=\$$cacheid
6624		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6625$as_echo "$supported" >&6; }
6626		if test "$supported" = "yes" ; then
6627			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6628			found="yes"
6629		fi
6630	fi
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646xorg_testset_save_CFLAGS="$CFLAGS"
6647
6648if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6649	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6650	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6651$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6652if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6653  $as_echo_n "(cached) " >&6
6654else
6655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656/* end confdefs.h.  */
6657int i;
6658_ACEOF
6659if ac_fn_c_try_compile "$LINENO"; then :
6660  xorg_cv_cc_flag_unknown_warning_option=yes
6661else
6662  xorg_cv_cc_flag_unknown_warning_option=no
6663fi
6664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6665fi
6666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6667$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6668	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6669	CFLAGS="$xorg_testset_save_CFLAGS"
6670fi
6671
6672if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6673	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6674		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6675	fi
6676	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6677	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6678$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6679if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6680  $as_echo_n "(cached) " >&6
6681else
6682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683/* end confdefs.h.  */
6684int i;
6685_ACEOF
6686if ac_fn_c_try_compile "$LINENO"; then :
6687  xorg_cv_cc_flag_unused_command_line_argument=yes
6688else
6689  xorg_cv_cc_flag_unused_command_line_argument=no
6690fi
6691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692fi
6693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6694$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6695	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6696	CFLAGS="$xorg_testset_save_CFLAGS"
6697fi
6698
6699found="no"
6700
6701	if test $found = "no" ; then
6702		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6703			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6704		fi
6705
6706		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6707			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6708		fi
6709
6710		CFLAGS="$CFLAGS -Wlogical-op"
6711
6712		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6713$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6714		cacheid=xorg_cv_cc_flag__Wlogical_op
6715		if eval \${$cacheid+:} false; then :
6716  $as_echo_n "(cached) " >&6
6717else
6718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6719/* end confdefs.h.  */
6720int i;
6721int
6722main ()
6723{
6724
6725  ;
6726  return 0;
6727}
6728_ACEOF
6729if ac_fn_c_try_link "$LINENO"; then :
6730  eval $cacheid=yes
6731else
6732  eval $cacheid=no
6733fi
6734rm -f core conftest.err conftest.$ac_objext \
6735    conftest$ac_exeext conftest.$ac_ext
6736fi
6737
6738
6739		CFLAGS="$xorg_testset_save_CFLAGS"
6740
6741		eval supported=\$$cacheid
6742		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6743$as_echo "$supported" >&6; }
6744		if test "$supported" = "yes" ; then
6745			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6746			found="yes"
6747		fi
6748	fi
6749
6750
6751
6752# These are currently disabled because they are noisy.  They will be enabled
6753# in the future once the codebase is sufficiently modernized to silence
6754# them.  For now, I don't want them to drown out the other warnings.
6755# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6756# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6757# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6758
6759# Turn some warnings into errors, so we don't accidently get successful builds
6760# when there are problems that should be fixed.
6761
6762if test "x$SELECTIVE_WERROR" = "xyes" ; then
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776xorg_testset_save_CFLAGS="$CFLAGS"
6777
6778if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6779	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6780	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6781$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6782if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6783  $as_echo_n "(cached) " >&6
6784else
6785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6786/* end confdefs.h.  */
6787int i;
6788_ACEOF
6789if ac_fn_c_try_compile "$LINENO"; then :
6790  xorg_cv_cc_flag_unknown_warning_option=yes
6791else
6792  xorg_cv_cc_flag_unknown_warning_option=no
6793fi
6794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6795fi
6796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6797$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6798	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6799	CFLAGS="$xorg_testset_save_CFLAGS"
6800fi
6801
6802if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6803	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6804		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6805	fi
6806	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6807	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6808$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6809if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6810  $as_echo_n "(cached) " >&6
6811else
6812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813/* end confdefs.h.  */
6814int i;
6815_ACEOF
6816if ac_fn_c_try_compile "$LINENO"; then :
6817  xorg_cv_cc_flag_unused_command_line_argument=yes
6818else
6819  xorg_cv_cc_flag_unused_command_line_argument=no
6820fi
6821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6822fi
6823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6824$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6825	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6826	CFLAGS="$xorg_testset_save_CFLAGS"
6827fi
6828
6829found="no"
6830
6831	if test $found = "no" ; then
6832		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6833			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6834		fi
6835
6836		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6837			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6838		fi
6839
6840		CFLAGS="$CFLAGS -Werror=implicit"
6841
6842		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6843$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6844		cacheid=xorg_cv_cc_flag__Werror_implicit
6845		if eval \${$cacheid+:} false; then :
6846  $as_echo_n "(cached) " >&6
6847else
6848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849/* end confdefs.h.  */
6850int i;
6851int
6852main ()
6853{
6854
6855  ;
6856  return 0;
6857}
6858_ACEOF
6859if ac_fn_c_try_link "$LINENO"; then :
6860  eval $cacheid=yes
6861else
6862  eval $cacheid=no
6863fi
6864rm -f core conftest.err conftest.$ac_objext \
6865    conftest$ac_exeext conftest.$ac_ext
6866fi
6867
6868
6869		CFLAGS="$xorg_testset_save_CFLAGS"
6870
6871		eval supported=\$$cacheid
6872		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6873$as_echo "$supported" >&6; }
6874		if test "$supported" = "yes" ; then
6875			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6876			found="yes"
6877		fi
6878	fi
6879
6880	if test $found = "no" ; then
6881		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6882			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6883		fi
6884
6885		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6886			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6887		fi
6888
6889		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6890
6891		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6892$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6893		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6894		if eval \${$cacheid+:} false; then :
6895  $as_echo_n "(cached) " >&6
6896else
6897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898/* end confdefs.h.  */
6899int i;
6900int
6901main ()
6902{
6903
6904  ;
6905  return 0;
6906}
6907_ACEOF
6908if ac_fn_c_try_link "$LINENO"; then :
6909  eval $cacheid=yes
6910else
6911  eval $cacheid=no
6912fi
6913rm -f core conftest.err conftest.$ac_objext \
6914    conftest$ac_exeext conftest.$ac_ext
6915fi
6916
6917
6918		CFLAGS="$xorg_testset_save_CFLAGS"
6919
6920		eval supported=\$$cacheid
6921		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6922$as_echo "$supported" >&6; }
6923		if test "$supported" = "yes" ; then
6924			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6925			found="yes"
6926		fi
6927	fi
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943xorg_testset_save_CFLAGS="$CFLAGS"
6944
6945if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6946	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6947	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6948$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6949if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6950  $as_echo_n "(cached) " >&6
6951else
6952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953/* end confdefs.h.  */
6954int i;
6955_ACEOF
6956if ac_fn_c_try_compile "$LINENO"; then :
6957  xorg_cv_cc_flag_unknown_warning_option=yes
6958else
6959  xorg_cv_cc_flag_unknown_warning_option=no
6960fi
6961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6962fi
6963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6964$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6965	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6966	CFLAGS="$xorg_testset_save_CFLAGS"
6967fi
6968
6969if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6970	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6971		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6972	fi
6973	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6974	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6975$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6976if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6977  $as_echo_n "(cached) " >&6
6978else
6979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6980/* end confdefs.h.  */
6981int i;
6982_ACEOF
6983if ac_fn_c_try_compile "$LINENO"; then :
6984  xorg_cv_cc_flag_unused_command_line_argument=yes
6985else
6986  xorg_cv_cc_flag_unused_command_line_argument=no
6987fi
6988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6989fi
6990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6991$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6992	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6993	CFLAGS="$xorg_testset_save_CFLAGS"
6994fi
6995
6996found="no"
6997
6998	if test $found = "no" ; then
6999		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7000			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7001		fi
7002
7003		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7004			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7005		fi
7006
7007		CFLAGS="$CFLAGS -Werror=nonnull"
7008
7009		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7010$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7011		cacheid=xorg_cv_cc_flag__Werror_nonnull
7012		if eval \${$cacheid+:} false; then :
7013  $as_echo_n "(cached) " >&6
7014else
7015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7016/* end confdefs.h.  */
7017int i;
7018int
7019main ()
7020{
7021
7022  ;
7023  return 0;
7024}
7025_ACEOF
7026if ac_fn_c_try_link "$LINENO"; then :
7027  eval $cacheid=yes
7028else
7029  eval $cacheid=no
7030fi
7031rm -f core conftest.err conftest.$ac_objext \
7032    conftest$ac_exeext conftest.$ac_ext
7033fi
7034
7035
7036		CFLAGS="$xorg_testset_save_CFLAGS"
7037
7038		eval supported=\$$cacheid
7039		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7040$as_echo "$supported" >&6; }
7041		if test "$supported" = "yes" ; then
7042			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7043			found="yes"
7044		fi
7045	fi
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061xorg_testset_save_CFLAGS="$CFLAGS"
7062
7063if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7064	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7065	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7066$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7067if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7068  $as_echo_n "(cached) " >&6
7069else
7070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071/* end confdefs.h.  */
7072int i;
7073_ACEOF
7074if ac_fn_c_try_compile "$LINENO"; then :
7075  xorg_cv_cc_flag_unknown_warning_option=yes
7076else
7077  xorg_cv_cc_flag_unknown_warning_option=no
7078fi
7079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7080fi
7081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7082$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7083	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7084	CFLAGS="$xorg_testset_save_CFLAGS"
7085fi
7086
7087if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7088	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7089		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7090	fi
7091	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7092	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7093$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7094if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7095  $as_echo_n "(cached) " >&6
7096else
7097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098/* end confdefs.h.  */
7099int i;
7100_ACEOF
7101if ac_fn_c_try_compile "$LINENO"; then :
7102  xorg_cv_cc_flag_unused_command_line_argument=yes
7103else
7104  xorg_cv_cc_flag_unused_command_line_argument=no
7105fi
7106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7107fi
7108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7109$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7110	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7111	CFLAGS="$xorg_testset_save_CFLAGS"
7112fi
7113
7114found="no"
7115
7116	if test $found = "no" ; then
7117		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7118			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7119		fi
7120
7121		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7122			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7123		fi
7124
7125		CFLAGS="$CFLAGS -Werror=init-self"
7126
7127		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7128$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7129		cacheid=xorg_cv_cc_flag__Werror_init_self
7130		if eval \${$cacheid+:} false; then :
7131  $as_echo_n "(cached) " >&6
7132else
7133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7134/* end confdefs.h.  */
7135int i;
7136int
7137main ()
7138{
7139
7140  ;
7141  return 0;
7142}
7143_ACEOF
7144if ac_fn_c_try_link "$LINENO"; then :
7145  eval $cacheid=yes
7146else
7147  eval $cacheid=no
7148fi
7149rm -f core conftest.err conftest.$ac_objext \
7150    conftest$ac_exeext conftest.$ac_ext
7151fi
7152
7153
7154		CFLAGS="$xorg_testset_save_CFLAGS"
7155
7156		eval supported=\$$cacheid
7157		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7158$as_echo "$supported" >&6; }
7159		if test "$supported" = "yes" ; then
7160			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7161			found="yes"
7162		fi
7163	fi
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179xorg_testset_save_CFLAGS="$CFLAGS"
7180
7181if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7182	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7183	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7184$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7185if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7186  $as_echo_n "(cached) " >&6
7187else
7188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189/* end confdefs.h.  */
7190int i;
7191_ACEOF
7192if ac_fn_c_try_compile "$LINENO"; then :
7193  xorg_cv_cc_flag_unknown_warning_option=yes
7194else
7195  xorg_cv_cc_flag_unknown_warning_option=no
7196fi
7197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7198fi
7199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7200$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7201	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7202	CFLAGS="$xorg_testset_save_CFLAGS"
7203fi
7204
7205if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7206	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7207		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7208	fi
7209	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7210	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7211$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7212if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7213  $as_echo_n "(cached) " >&6
7214else
7215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7216/* end confdefs.h.  */
7217int i;
7218_ACEOF
7219if ac_fn_c_try_compile "$LINENO"; then :
7220  xorg_cv_cc_flag_unused_command_line_argument=yes
7221else
7222  xorg_cv_cc_flag_unused_command_line_argument=no
7223fi
7224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7225fi
7226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7227$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7228	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7229	CFLAGS="$xorg_testset_save_CFLAGS"
7230fi
7231
7232found="no"
7233
7234	if test $found = "no" ; then
7235		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7236			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7237		fi
7238
7239		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7240			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7241		fi
7242
7243		CFLAGS="$CFLAGS -Werror=main"
7244
7245		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7246$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7247		cacheid=xorg_cv_cc_flag__Werror_main
7248		if eval \${$cacheid+:} false; then :
7249  $as_echo_n "(cached) " >&6
7250else
7251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7252/* end confdefs.h.  */
7253int i;
7254int
7255main ()
7256{
7257
7258  ;
7259  return 0;
7260}
7261_ACEOF
7262if ac_fn_c_try_link "$LINENO"; then :
7263  eval $cacheid=yes
7264else
7265  eval $cacheid=no
7266fi
7267rm -f core conftest.err conftest.$ac_objext \
7268    conftest$ac_exeext conftest.$ac_ext
7269fi
7270
7271
7272		CFLAGS="$xorg_testset_save_CFLAGS"
7273
7274		eval supported=\$$cacheid
7275		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7276$as_echo "$supported" >&6; }
7277		if test "$supported" = "yes" ; then
7278			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7279			found="yes"
7280		fi
7281	fi
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297xorg_testset_save_CFLAGS="$CFLAGS"
7298
7299if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7300	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7301	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7302$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7303if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7304  $as_echo_n "(cached) " >&6
7305else
7306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7307/* end confdefs.h.  */
7308int i;
7309_ACEOF
7310if ac_fn_c_try_compile "$LINENO"; then :
7311  xorg_cv_cc_flag_unknown_warning_option=yes
7312else
7313  xorg_cv_cc_flag_unknown_warning_option=no
7314fi
7315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7316fi
7317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7318$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7319	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7320	CFLAGS="$xorg_testset_save_CFLAGS"
7321fi
7322
7323if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7324	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7325		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7326	fi
7327	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7328	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7329$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7330if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7331  $as_echo_n "(cached) " >&6
7332else
7333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7334/* end confdefs.h.  */
7335int i;
7336_ACEOF
7337if ac_fn_c_try_compile "$LINENO"; then :
7338  xorg_cv_cc_flag_unused_command_line_argument=yes
7339else
7340  xorg_cv_cc_flag_unused_command_line_argument=no
7341fi
7342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7343fi
7344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7345$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7346	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7347	CFLAGS="$xorg_testset_save_CFLAGS"
7348fi
7349
7350found="no"
7351
7352	if test $found = "no" ; then
7353		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7354			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7355		fi
7356
7357		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7358			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7359		fi
7360
7361		CFLAGS="$CFLAGS -Werror=missing-braces"
7362
7363		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7364$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7365		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7366		if eval \${$cacheid+:} false; then :
7367  $as_echo_n "(cached) " >&6
7368else
7369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370/* end confdefs.h.  */
7371int i;
7372int
7373main ()
7374{
7375
7376  ;
7377  return 0;
7378}
7379_ACEOF
7380if ac_fn_c_try_link "$LINENO"; then :
7381  eval $cacheid=yes
7382else
7383  eval $cacheid=no
7384fi
7385rm -f core conftest.err conftest.$ac_objext \
7386    conftest$ac_exeext conftest.$ac_ext
7387fi
7388
7389
7390		CFLAGS="$xorg_testset_save_CFLAGS"
7391
7392		eval supported=\$$cacheid
7393		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7394$as_echo "$supported" >&6; }
7395		if test "$supported" = "yes" ; then
7396			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7397			found="yes"
7398		fi
7399	fi
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415xorg_testset_save_CFLAGS="$CFLAGS"
7416
7417if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7418	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7419	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7420$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7421if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7422  $as_echo_n "(cached) " >&6
7423else
7424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425/* end confdefs.h.  */
7426int i;
7427_ACEOF
7428if ac_fn_c_try_compile "$LINENO"; then :
7429  xorg_cv_cc_flag_unknown_warning_option=yes
7430else
7431  xorg_cv_cc_flag_unknown_warning_option=no
7432fi
7433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7434fi
7435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7436$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7437	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7438	CFLAGS="$xorg_testset_save_CFLAGS"
7439fi
7440
7441if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7442	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7443		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7444	fi
7445	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7446	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7447$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7448if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7449  $as_echo_n "(cached) " >&6
7450else
7451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452/* end confdefs.h.  */
7453int i;
7454_ACEOF
7455if ac_fn_c_try_compile "$LINENO"; then :
7456  xorg_cv_cc_flag_unused_command_line_argument=yes
7457else
7458  xorg_cv_cc_flag_unused_command_line_argument=no
7459fi
7460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7461fi
7462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7463$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7464	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7465	CFLAGS="$xorg_testset_save_CFLAGS"
7466fi
7467
7468found="no"
7469
7470	if test $found = "no" ; then
7471		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7472			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7473		fi
7474
7475		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7476			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7477		fi
7478
7479		CFLAGS="$CFLAGS -Werror=sequence-point"
7480
7481		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7482$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7483		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7484		if eval \${$cacheid+:} false; then :
7485  $as_echo_n "(cached) " >&6
7486else
7487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488/* end confdefs.h.  */
7489int i;
7490int
7491main ()
7492{
7493
7494  ;
7495  return 0;
7496}
7497_ACEOF
7498if ac_fn_c_try_link "$LINENO"; then :
7499  eval $cacheid=yes
7500else
7501  eval $cacheid=no
7502fi
7503rm -f core conftest.err conftest.$ac_objext \
7504    conftest$ac_exeext conftest.$ac_ext
7505fi
7506
7507
7508		CFLAGS="$xorg_testset_save_CFLAGS"
7509
7510		eval supported=\$$cacheid
7511		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7512$as_echo "$supported" >&6; }
7513		if test "$supported" = "yes" ; then
7514			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7515			found="yes"
7516		fi
7517	fi
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533xorg_testset_save_CFLAGS="$CFLAGS"
7534
7535if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7536	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7537	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7538$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7539if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7540  $as_echo_n "(cached) " >&6
7541else
7542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543/* end confdefs.h.  */
7544int i;
7545_ACEOF
7546if ac_fn_c_try_compile "$LINENO"; then :
7547  xorg_cv_cc_flag_unknown_warning_option=yes
7548else
7549  xorg_cv_cc_flag_unknown_warning_option=no
7550fi
7551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7552fi
7553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7554$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7555	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7556	CFLAGS="$xorg_testset_save_CFLAGS"
7557fi
7558
7559if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7560	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7561		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7562	fi
7563	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7564	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7565$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7566if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7567  $as_echo_n "(cached) " >&6
7568else
7569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570/* end confdefs.h.  */
7571int i;
7572_ACEOF
7573if ac_fn_c_try_compile "$LINENO"; then :
7574  xorg_cv_cc_flag_unused_command_line_argument=yes
7575else
7576  xorg_cv_cc_flag_unused_command_line_argument=no
7577fi
7578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7579fi
7580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7581$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7582	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7583	CFLAGS="$xorg_testset_save_CFLAGS"
7584fi
7585
7586found="no"
7587
7588	if test $found = "no" ; then
7589		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7590			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7591		fi
7592
7593		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7594			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7595		fi
7596
7597		CFLAGS="$CFLAGS -Werror=return-type"
7598
7599		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7600$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7601		cacheid=xorg_cv_cc_flag__Werror_return_type
7602		if eval \${$cacheid+:} false; then :
7603  $as_echo_n "(cached) " >&6
7604else
7605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7606/* end confdefs.h.  */
7607int i;
7608int
7609main ()
7610{
7611
7612  ;
7613  return 0;
7614}
7615_ACEOF
7616if ac_fn_c_try_link "$LINENO"; then :
7617  eval $cacheid=yes
7618else
7619  eval $cacheid=no
7620fi
7621rm -f core conftest.err conftest.$ac_objext \
7622    conftest$ac_exeext conftest.$ac_ext
7623fi
7624
7625
7626		CFLAGS="$xorg_testset_save_CFLAGS"
7627
7628		eval supported=\$$cacheid
7629		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7630$as_echo "$supported" >&6; }
7631		if test "$supported" = "yes" ; then
7632			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7633			found="yes"
7634		fi
7635	fi
7636
7637	if test $found = "no" ; then
7638		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7639			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7640		fi
7641
7642		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7643			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7644		fi
7645
7646		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7647
7648		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7649$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7650		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7651		if eval \${$cacheid+:} false; then :
7652  $as_echo_n "(cached) " >&6
7653else
7654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7655/* end confdefs.h.  */
7656int i;
7657int
7658main ()
7659{
7660
7661  ;
7662  return 0;
7663}
7664_ACEOF
7665if ac_fn_c_try_link "$LINENO"; then :
7666  eval $cacheid=yes
7667else
7668  eval $cacheid=no
7669fi
7670rm -f core conftest.err conftest.$ac_objext \
7671    conftest$ac_exeext conftest.$ac_ext
7672fi
7673
7674
7675		CFLAGS="$xorg_testset_save_CFLAGS"
7676
7677		eval supported=\$$cacheid
7678		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7679$as_echo "$supported" >&6; }
7680		if test "$supported" = "yes" ; then
7681			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7682			found="yes"
7683		fi
7684	fi
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700xorg_testset_save_CFLAGS="$CFLAGS"
7701
7702if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7703	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7704	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7705$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7706if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7707  $as_echo_n "(cached) " >&6
7708else
7709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710/* end confdefs.h.  */
7711int i;
7712_ACEOF
7713if ac_fn_c_try_compile "$LINENO"; then :
7714  xorg_cv_cc_flag_unknown_warning_option=yes
7715else
7716  xorg_cv_cc_flag_unknown_warning_option=no
7717fi
7718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7719fi
7720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7721$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7722	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7723	CFLAGS="$xorg_testset_save_CFLAGS"
7724fi
7725
7726if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7727	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7728		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7729	fi
7730	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7731	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7732$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7733if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7734  $as_echo_n "(cached) " >&6
7735else
7736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737/* end confdefs.h.  */
7738int i;
7739_ACEOF
7740if ac_fn_c_try_compile "$LINENO"; then :
7741  xorg_cv_cc_flag_unused_command_line_argument=yes
7742else
7743  xorg_cv_cc_flag_unused_command_line_argument=no
7744fi
7745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7746fi
7747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7748$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7749	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7750	CFLAGS="$xorg_testset_save_CFLAGS"
7751fi
7752
7753found="no"
7754
7755	if test $found = "no" ; then
7756		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7757			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7758		fi
7759
7760		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7761			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7762		fi
7763
7764		CFLAGS="$CFLAGS -Werror=trigraphs"
7765
7766		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7767$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7768		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7769		if eval \${$cacheid+:} false; then :
7770  $as_echo_n "(cached) " >&6
7771else
7772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7773/* end confdefs.h.  */
7774int i;
7775int
7776main ()
7777{
7778
7779  ;
7780  return 0;
7781}
7782_ACEOF
7783if ac_fn_c_try_link "$LINENO"; then :
7784  eval $cacheid=yes
7785else
7786  eval $cacheid=no
7787fi
7788rm -f core conftest.err conftest.$ac_objext \
7789    conftest$ac_exeext conftest.$ac_ext
7790fi
7791
7792
7793		CFLAGS="$xorg_testset_save_CFLAGS"
7794
7795		eval supported=\$$cacheid
7796		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7797$as_echo "$supported" >&6; }
7798		if test "$supported" = "yes" ; then
7799			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7800			found="yes"
7801		fi
7802	fi
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818xorg_testset_save_CFLAGS="$CFLAGS"
7819
7820if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7821	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7822	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7823$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7824if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7825  $as_echo_n "(cached) " >&6
7826else
7827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828/* end confdefs.h.  */
7829int i;
7830_ACEOF
7831if ac_fn_c_try_compile "$LINENO"; then :
7832  xorg_cv_cc_flag_unknown_warning_option=yes
7833else
7834  xorg_cv_cc_flag_unknown_warning_option=no
7835fi
7836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7837fi
7838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7839$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7840	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7841	CFLAGS="$xorg_testset_save_CFLAGS"
7842fi
7843
7844if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7845	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7846		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7847	fi
7848	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7849	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7850$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7851if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7852  $as_echo_n "(cached) " >&6
7853else
7854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855/* end confdefs.h.  */
7856int i;
7857_ACEOF
7858if ac_fn_c_try_compile "$LINENO"; then :
7859  xorg_cv_cc_flag_unused_command_line_argument=yes
7860else
7861  xorg_cv_cc_flag_unused_command_line_argument=no
7862fi
7863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7864fi
7865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7866$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7867	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7868	CFLAGS="$xorg_testset_save_CFLAGS"
7869fi
7870
7871found="no"
7872
7873	if test $found = "no" ; then
7874		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7875			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7876		fi
7877
7878		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7879			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7880		fi
7881
7882		CFLAGS="$CFLAGS -Werror=array-bounds"
7883
7884		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7885$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7886		cacheid=xorg_cv_cc_flag__Werror_array_bounds
7887		if eval \${$cacheid+:} false; then :
7888  $as_echo_n "(cached) " >&6
7889else
7890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7891/* end confdefs.h.  */
7892int i;
7893int
7894main ()
7895{
7896
7897  ;
7898  return 0;
7899}
7900_ACEOF
7901if ac_fn_c_try_link "$LINENO"; then :
7902  eval $cacheid=yes
7903else
7904  eval $cacheid=no
7905fi
7906rm -f core conftest.err conftest.$ac_objext \
7907    conftest$ac_exeext conftest.$ac_ext
7908fi
7909
7910
7911		CFLAGS="$xorg_testset_save_CFLAGS"
7912
7913		eval supported=\$$cacheid
7914		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7915$as_echo "$supported" >&6; }
7916		if test "$supported" = "yes" ; then
7917			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7918			found="yes"
7919		fi
7920	fi
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936xorg_testset_save_CFLAGS="$CFLAGS"
7937
7938if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7939	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7940	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7941$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7942if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7943  $as_echo_n "(cached) " >&6
7944else
7945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946/* end confdefs.h.  */
7947int i;
7948_ACEOF
7949if ac_fn_c_try_compile "$LINENO"; then :
7950  xorg_cv_cc_flag_unknown_warning_option=yes
7951else
7952  xorg_cv_cc_flag_unknown_warning_option=no
7953fi
7954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7955fi
7956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7957$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7958	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7959	CFLAGS="$xorg_testset_save_CFLAGS"
7960fi
7961
7962if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7963	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7964		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7965	fi
7966	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7967	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7968$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7969if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7970  $as_echo_n "(cached) " >&6
7971else
7972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973/* end confdefs.h.  */
7974int i;
7975_ACEOF
7976if ac_fn_c_try_compile "$LINENO"; then :
7977  xorg_cv_cc_flag_unused_command_line_argument=yes
7978else
7979  xorg_cv_cc_flag_unused_command_line_argument=no
7980fi
7981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7982fi
7983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7984$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7985	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7986	CFLAGS="$xorg_testset_save_CFLAGS"
7987fi
7988
7989found="no"
7990
7991	if test $found = "no" ; then
7992		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7993			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7994		fi
7995
7996		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7997			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7998		fi
7999
8000		CFLAGS="$CFLAGS -Werror=write-strings"
8001
8002		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8003$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8004		cacheid=xorg_cv_cc_flag__Werror_write_strings
8005		if eval \${$cacheid+:} false; then :
8006  $as_echo_n "(cached) " >&6
8007else
8008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8009/* end confdefs.h.  */
8010int i;
8011int
8012main ()
8013{
8014
8015  ;
8016  return 0;
8017}
8018_ACEOF
8019if ac_fn_c_try_link "$LINENO"; then :
8020  eval $cacheid=yes
8021else
8022  eval $cacheid=no
8023fi
8024rm -f core conftest.err conftest.$ac_objext \
8025    conftest$ac_exeext conftest.$ac_ext
8026fi
8027
8028
8029		CFLAGS="$xorg_testset_save_CFLAGS"
8030
8031		eval supported=\$$cacheid
8032		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8033$as_echo "$supported" >&6; }
8034		if test "$supported" = "yes" ; then
8035			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8036			found="yes"
8037		fi
8038	fi
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054xorg_testset_save_CFLAGS="$CFLAGS"
8055
8056if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8057	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8058	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8059$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8060if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8061  $as_echo_n "(cached) " >&6
8062else
8063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8064/* end confdefs.h.  */
8065int i;
8066_ACEOF
8067if ac_fn_c_try_compile "$LINENO"; then :
8068  xorg_cv_cc_flag_unknown_warning_option=yes
8069else
8070  xorg_cv_cc_flag_unknown_warning_option=no
8071fi
8072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8073fi
8074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8075$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8076	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8077	CFLAGS="$xorg_testset_save_CFLAGS"
8078fi
8079
8080if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8081	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8082		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8083	fi
8084	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8085	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8086$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8087if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8088  $as_echo_n "(cached) " >&6
8089else
8090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091/* end confdefs.h.  */
8092int i;
8093_ACEOF
8094if ac_fn_c_try_compile "$LINENO"; then :
8095  xorg_cv_cc_flag_unused_command_line_argument=yes
8096else
8097  xorg_cv_cc_flag_unused_command_line_argument=no
8098fi
8099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8100fi
8101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8102$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8103	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8104	CFLAGS="$xorg_testset_save_CFLAGS"
8105fi
8106
8107found="no"
8108
8109	if test $found = "no" ; then
8110		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8111			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8112		fi
8113
8114		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8115			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8116		fi
8117
8118		CFLAGS="$CFLAGS -Werror=address"
8119
8120		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8121$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8122		cacheid=xorg_cv_cc_flag__Werror_address
8123		if eval \${$cacheid+:} false; then :
8124  $as_echo_n "(cached) " >&6
8125else
8126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8127/* end confdefs.h.  */
8128int i;
8129int
8130main ()
8131{
8132
8133  ;
8134  return 0;
8135}
8136_ACEOF
8137if ac_fn_c_try_link "$LINENO"; then :
8138  eval $cacheid=yes
8139else
8140  eval $cacheid=no
8141fi
8142rm -f core conftest.err conftest.$ac_objext \
8143    conftest$ac_exeext conftest.$ac_ext
8144fi
8145
8146
8147		CFLAGS="$xorg_testset_save_CFLAGS"
8148
8149		eval supported=\$$cacheid
8150		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8151$as_echo "$supported" >&6; }
8152		if test "$supported" = "yes" ; then
8153			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8154			found="yes"
8155		fi
8156	fi
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172xorg_testset_save_CFLAGS="$CFLAGS"
8173
8174if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8175	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8176	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8177$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8178if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8179  $as_echo_n "(cached) " >&6
8180else
8181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8182/* end confdefs.h.  */
8183int i;
8184_ACEOF
8185if ac_fn_c_try_compile "$LINENO"; then :
8186  xorg_cv_cc_flag_unknown_warning_option=yes
8187else
8188  xorg_cv_cc_flag_unknown_warning_option=no
8189fi
8190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8191fi
8192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8193$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8194	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8195	CFLAGS="$xorg_testset_save_CFLAGS"
8196fi
8197
8198if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8199	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8200		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8201	fi
8202	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8203	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8204$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8205if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8206  $as_echo_n "(cached) " >&6
8207else
8208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8209/* end confdefs.h.  */
8210int i;
8211_ACEOF
8212if ac_fn_c_try_compile "$LINENO"; then :
8213  xorg_cv_cc_flag_unused_command_line_argument=yes
8214else
8215  xorg_cv_cc_flag_unused_command_line_argument=no
8216fi
8217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8218fi
8219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8220$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8221	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8222	CFLAGS="$xorg_testset_save_CFLAGS"
8223fi
8224
8225found="no"
8226
8227	if test $found = "no" ; then
8228		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8229			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8230		fi
8231
8232		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8233			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8234		fi
8235
8236		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8237
8238		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8239$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8240		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8241		if eval \${$cacheid+:} false; then :
8242  $as_echo_n "(cached) " >&6
8243else
8244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8245/* end confdefs.h.  */
8246int i;
8247int
8248main ()
8249{
8250
8251  ;
8252  return 0;
8253}
8254_ACEOF
8255if ac_fn_c_try_link "$LINENO"; then :
8256  eval $cacheid=yes
8257else
8258  eval $cacheid=no
8259fi
8260rm -f core conftest.err conftest.$ac_objext \
8261    conftest$ac_exeext conftest.$ac_ext
8262fi
8263
8264
8265		CFLAGS="$xorg_testset_save_CFLAGS"
8266
8267		eval supported=\$$cacheid
8268		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8269$as_echo "$supported" >&6; }
8270		if test "$supported" = "yes" ; then
8271			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8272			found="yes"
8273		fi
8274	fi
8275
8276	if test $found = "no" ; then
8277		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8278			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8279		fi
8280
8281		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8282			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8283		fi
8284
8285		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8286
8287		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8288$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8289		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8290		if eval \${$cacheid+:} false; then :
8291  $as_echo_n "(cached) " >&6
8292else
8293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8294/* end confdefs.h.  */
8295int i;
8296int
8297main ()
8298{
8299
8300  ;
8301  return 0;
8302}
8303_ACEOF
8304if ac_fn_c_try_link "$LINENO"; then :
8305  eval $cacheid=yes
8306else
8307  eval $cacheid=no
8308fi
8309rm -f core conftest.err conftest.$ac_objext \
8310    conftest$ac_exeext conftest.$ac_ext
8311fi
8312
8313
8314		CFLAGS="$xorg_testset_save_CFLAGS"
8315
8316		eval supported=\$$cacheid
8317		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8318$as_echo "$supported" >&6; }
8319		if test "$supported" = "yes" ; then
8320			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8321			found="yes"
8322		fi
8323	fi
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339xorg_testset_save_CFLAGS="$CFLAGS"
8340
8341if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8342	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8343	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8344$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8345if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8346  $as_echo_n "(cached) " >&6
8347else
8348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8349/* end confdefs.h.  */
8350int i;
8351_ACEOF
8352if ac_fn_c_try_compile "$LINENO"; then :
8353  xorg_cv_cc_flag_unknown_warning_option=yes
8354else
8355  xorg_cv_cc_flag_unknown_warning_option=no
8356fi
8357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8358fi
8359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8360$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8361	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8362	CFLAGS="$xorg_testset_save_CFLAGS"
8363fi
8364
8365if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8366	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8367		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8368	fi
8369	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8370	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8371$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8372if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8373  $as_echo_n "(cached) " >&6
8374else
8375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8376/* end confdefs.h.  */
8377int i;
8378_ACEOF
8379if ac_fn_c_try_compile "$LINENO"; then :
8380  xorg_cv_cc_flag_unused_command_line_argument=yes
8381else
8382  xorg_cv_cc_flag_unused_command_line_argument=no
8383fi
8384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8385fi
8386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8387$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8388	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8389	CFLAGS="$xorg_testset_save_CFLAGS"
8390fi
8391
8392found="no"
8393
8394	if test $found = "no" ; then
8395		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8396			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8397		fi
8398
8399		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8400			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8401		fi
8402
8403		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8404
8405		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8406$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8407		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8408		if eval \${$cacheid+:} false; then :
8409  $as_echo_n "(cached) " >&6
8410else
8411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8412/* end confdefs.h.  */
8413int i;
8414int
8415main ()
8416{
8417
8418  ;
8419  return 0;
8420}
8421_ACEOF
8422if ac_fn_c_try_link "$LINENO"; then :
8423  eval $cacheid=yes
8424else
8425  eval $cacheid=no
8426fi
8427rm -f core conftest.err conftest.$ac_objext \
8428    conftest$ac_exeext conftest.$ac_ext
8429fi
8430
8431
8432		CFLAGS="$xorg_testset_save_CFLAGS"
8433
8434		eval supported=\$$cacheid
8435		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8436$as_echo "$supported" >&6; }
8437		if test "$supported" = "yes" ; then
8438			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8439			found="yes"
8440		fi
8441	fi
8442
8443 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8444else
8445{ $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
8446$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;}
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460xorg_testset_save_CFLAGS="$CFLAGS"
8461
8462if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8463	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8464	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8465$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8466if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8467  $as_echo_n "(cached) " >&6
8468else
8469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8470/* end confdefs.h.  */
8471int i;
8472_ACEOF
8473if ac_fn_c_try_compile "$LINENO"; then :
8474  xorg_cv_cc_flag_unknown_warning_option=yes
8475else
8476  xorg_cv_cc_flag_unknown_warning_option=no
8477fi
8478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8479fi
8480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8481$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8482	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8483	CFLAGS="$xorg_testset_save_CFLAGS"
8484fi
8485
8486if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8487	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8488		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8489	fi
8490	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8491	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8492$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8493if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8494  $as_echo_n "(cached) " >&6
8495else
8496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8497/* end confdefs.h.  */
8498int i;
8499_ACEOF
8500if ac_fn_c_try_compile "$LINENO"; then :
8501  xorg_cv_cc_flag_unused_command_line_argument=yes
8502else
8503  xorg_cv_cc_flag_unused_command_line_argument=no
8504fi
8505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8506fi
8507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8508$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8509	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8510	CFLAGS="$xorg_testset_save_CFLAGS"
8511fi
8512
8513found="no"
8514
8515	if test $found = "no" ; then
8516		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8517			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8518		fi
8519
8520		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8521			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8522		fi
8523
8524		CFLAGS="$CFLAGS -Wimplicit"
8525
8526		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8527$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8528		cacheid=xorg_cv_cc_flag__Wimplicit
8529		if eval \${$cacheid+:} false; then :
8530  $as_echo_n "(cached) " >&6
8531else
8532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8533/* end confdefs.h.  */
8534int i;
8535int
8536main ()
8537{
8538
8539  ;
8540  return 0;
8541}
8542_ACEOF
8543if ac_fn_c_try_link "$LINENO"; then :
8544  eval $cacheid=yes
8545else
8546  eval $cacheid=no
8547fi
8548rm -f core conftest.err conftest.$ac_objext \
8549    conftest$ac_exeext conftest.$ac_ext
8550fi
8551
8552
8553		CFLAGS="$xorg_testset_save_CFLAGS"
8554
8555		eval supported=\$$cacheid
8556		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8557$as_echo "$supported" >&6; }
8558		if test "$supported" = "yes" ; then
8559			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8560			found="yes"
8561		fi
8562	fi
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578xorg_testset_save_CFLAGS="$CFLAGS"
8579
8580if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8581	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8582	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8583$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8584if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8585  $as_echo_n "(cached) " >&6
8586else
8587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8588/* end confdefs.h.  */
8589int i;
8590_ACEOF
8591if ac_fn_c_try_compile "$LINENO"; then :
8592  xorg_cv_cc_flag_unknown_warning_option=yes
8593else
8594  xorg_cv_cc_flag_unknown_warning_option=no
8595fi
8596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8597fi
8598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8599$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8600	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8601	CFLAGS="$xorg_testset_save_CFLAGS"
8602fi
8603
8604if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8605	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8606		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8607	fi
8608	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8609	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8610$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8611if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8612  $as_echo_n "(cached) " >&6
8613else
8614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8615/* end confdefs.h.  */
8616int i;
8617_ACEOF
8618if ac_fn_c_try_compile "$LINENO"; then :
8619  xorg_cv_cc_flag_unused_command_line_argument=yes
8620else
8621  xorg_cv_cc_flag_unused_command_line_argument=no
8622fi
8623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8624fi
8625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8626$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8627	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8628	CFLAGS="$xorg_testset_save_CFLAGS"
8629fi
8630
8631found="no"
8632
8633	if test $found = "no" ; then
8634		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8635			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8636		fi
8637
8638		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8639			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8640		fi
8641
8642		CFLAGS="$CFLAGS -Wnonnull"
8643
8644		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8645$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8646		cacheid=xorg_cv_cc_flag__Wnonnull
8647		if eval \${$cacheid+:} false; then :
8648  $as_echo_n "(cached) " >&6
8649else
8650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8651/* end confdefs.h.  */
8652int i;
8653int
8654main ()
8655{
8656
8657  ;
8658  return 0;
8659}
8660_ACEOF
8661if ac_fn_c_try_link "$LINENO"; then :
8662  eval $cacheid=yes
8663else
8664  eval $cacheid=no
8665fi
8666rm -f core conftest.err conftest.$ac_objext \
8667    conftest$ac_exeext conftest.$ac_ext
8668fi
8669
8670
8671		CFLAGS="$xorg_testset_save_CFLAGS"
8672
8673		eval supported=\$$cacheid
8674		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8675$as_echo "$supported" >&6; }
8676		if test "$supported" = "yes" ; then
8677			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8678			found="yes"
8679		fi
8680	fi
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696xorg_testset_save_CFLAGS="$CFLAGS"
8697
8698if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8699	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8700	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8701$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8702if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8703  $as_echo_n "(cached) " >&6
8704else
8705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8706/* end confdefs.h.  */
8707int i;
8708_ACEOF
8709if ac_fn_c_try_compile "$LINENO"; then :
8710  xorg_cv_cc_flag_unknown_warning_option=yes
8711else
8712  xorg_cv_cc_flag_unknown_warning_option=no
8713fi
8714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8715fi
8716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8717$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8718	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8719	CFLAGS="$xorg_testset_save_CFLAGS"
8720fi
8721
8722if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8723	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8724		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8725	fi
8726	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8727	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8728$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8729if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8730  $as_echo_n "(cached) " >&6
8731else
8732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8733/* end confdefs.h.  */
8734int i;
8735_ACEOF
8736if ac_fn_c_try_compile "$LINENO"; then :
8737  xorg_cv_cc_flag_unused_command_line_argument=yes
8738else
8739  xorg_cv_cc_flag_unused_command_line_argument=no
8740fi
8741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8742fi
8743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8744$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8745	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8746	CFLAGS="$xorg_testset_save_CFLAGS"
8747fi
8748
8749found="no"
8750
8751	if test $found = "no" ; then
8752		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8753			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8754		fi
8755
8756		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8757			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8758		fi
8759
8760		CFLAGS="$CFLAGS -Winit-self"
8761
8762		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8763$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8764		cacheid=xorg_cv_cc_flag__Winit_self
8765		if eval \${$cacheid+:} false; then :
8766  $as_echo_n "(cached) " >&6
8767else
8768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8769/* end confdefs.h.  */
8770int i;
8771int
8772main ()
8773{
8774
8775  ;
8776  return 0;
8777}
8778_ACEOF
8779if ac_fn_c_try_link "$LINENO"; then :
8780  eval $cacheid=yes
8781else
8782  eval $cacheid=no
8783fi
8784rm -f core conftest.err conftest.$ac_objext \
8785    conftest$ac_exeext conftest.$ac_ext
8786fi
8787
8788
8789		CFLAGS="$xorg_testset_save_CFLAGS"
8790
8791		eval supported=\$$cacheid
8792		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8793$as_echo "$supported" >&6; }
8794		if test "$supported" = "yes" ; then
8795			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8796			found="yes"
8797		fi
8798	fi
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814xorg_testset_save_CFLAGS="$CFLAGS"
8815
8816if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8817	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8818	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8819$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8820if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8821  $as_echo_n "(cached) " >&6
8822else
8823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824/* end confdefs.h.  */
8825int i;
8826_ACEOF
8827if ac_fn_c_try_compile "$LINENO"; then :
8828  xorg_cv_cc_flag_unknown_warning_option=yes
8829else
8830  xorg_cv_cc_flag_unknown_warning_option=no
8831fi
8832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8833fi
8834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8835$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8836	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8837	CFLAGS="$xorg_testset_save_CFLAGS"
8838fi
8839
8840if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8841	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8842		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8843	fi
8844	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8845	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8846$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8847if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8848  $as_echo_n "(cached) " >&6
8849else
8850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8851/* end confdefs.h.  */
8852int i;
8853_ACEOF
8854if ac_fn_c_try_compile "$LINENO"; then :
8855  xorg_cv_cc_flag_unused_command_line_argument=yes
8856else
8857  xorg_cv_cc_flag_unused_command_line_argument=no
8858fi
8859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8860fi
8861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8862$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8863	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8864	CFLAGS="$xorg_testset_save_CFLAGS"
8865fi
8866
8867found="no"
8868
8869	if test $found = "no" ; then
8870		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8871			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8872		fi
8873
8874		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8875			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8876		fi
8877
8878		CFLAGS="$CFLAGS -Wmain"
8879
8880		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8881$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8882		cacheid=xorg_cv_cc_flag__Wmain
8883		if eval \${$cacheid+:} false; then :
8884  $as_echo_n "(cached) " >&6
8885else
8886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8887/* end confdefs.h.  */
8888int i;
8889int
8890main ()
8891{
8892
8893  ;
8894  return 0;
8895}
8896_ACEOF
8897if ac_fn_c_try_link "$LINENO"; then :
8898  eval $cacheid=yes
8899else
8900  eval $cacheid=no
8901fi
8902rm -f core conftest.err conftest.$ac_objext \
8903    conftest$ac_exeext conftest.$ac_ext
8904fi
8905
8906
8907		CFLAGS="$xorg_testset_save_CFLAGS"
8908
8909		eval supported=\$$cacheid
8910		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8911$as_echo "$supported" >&6; }
8912		if test "$supported" = "yes" ; then
8913			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8914			found="yes"
8915		fi
8916	fi
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932xorg_testset_save_CFLAGS="$CFLAGS"
8933
8934if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8935	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8936	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8937$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8938if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8939  $as_echo_n "(cached) " >&6
8940else
8941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8942/* end confdefs.h.  */
8943int i;
8944_ACEOF
8945if ac_fn_c_try_compile "$LINENO"; then :
8946  xorg_cv_cc_flag_unknown_warning_option=yes
8947else
8948  xorg_cv_cc_flag_unknown_warning_option=no
8949fi
8950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8951fi
8952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8953$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8954	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8955	CFLAGS="$xorg_testset_save_CFLAGS"
8956fi
8957
8958if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8959	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8960		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8961	fi
8962	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8963	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8964$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8965if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8966  $as_echo_n "(cached) " >&6
8967else
8968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969/* end confdefs.h.  */
8970int i;
8971_ACEOF
8972if ac_fn_c_try_compile "$LINENO"; then :
8973  xorg_cv_cc_flag_unused_command_line_argument=yes
8974else
8975  xorg_cv_cc_flag_unused_command_line_argument=no
8976fi
8977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8978fi
8979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8980$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8981	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8982	CFLAGS="$xorg_testset_save_CFLAGS"
8983fi
8984
8985found="no"
8986
8987	if test $found = "no" ; then
8988		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8989			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8990		fi
8991
8992		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8993			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8994		fi
8995
8996		CFLAGS="$CFLAGS -Wmissing-braces"
8997
8998		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8999$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9000		cacheid=xorg_cv_cc_flag__Wmissing_braces
9001		if eval \${$cacheid+:} false; then :
9002  $as_echo_n "(cached) " >&6
9003else
9004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9005/* end confdefs.h.  */
9006int i;
9007int
9008main ()
9009{
9010
9011  ;
9012  return 0;
9013}
9014_ACEOF
9015if ac_fn_c_try_link "$LINENO"; then :
9016  eval $cacheid=yes
9017else
9018  eval $cacheid=no
9019fi
9020rm -f core conftest.err conftest.$ac_objext \
9021    conftest$ac_exeext conftest.$ac_ext
9022fi
9023
9024
9025		CFLAGS="$xorg_testset_save_CFLAGS"
9026
9027		eval supported=\$$cacheid
9028		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9029$as_echo "$supported" >&6; }
9030		if test "$supported" = "yes" ; then
9031			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9032			found="yes"
9033		fi
9034	fi
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050xorg_testset_save_CFLAGS="$CFLAGS"
9051
9052if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9053	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9054	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9055$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9056if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9057  $as_echo_n "(cached) " >&6
9058else
9059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9060/* end confdefs.h.  */
9061int i;
9062_ACEOF
9063if ac_fn_c_try_compile "$LINENO"; then :
9064  xorg_cv_cc_flag_unknown_warning_option=yes
9065else
9066  xorg_cv_cc_flag_unknown_warning_option=no
9067fi
9068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9069fi
9070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9071$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9072	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9073	CFLAGS="$xorg_testset_save_CFLAGS"
9074fi
9075
9076if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9077	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9078		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9079	fi
9080	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9081	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9082$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9083if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9084  $as_echo_n "(cached) " >&6
9085else
9086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087/* end confdefs.h.  */
9088int i;
9089_ACEOF
9090if ac_fn_c_try_compile "$LINENO"; then :
9091  xorg_cv_cc_flag_unused_command_line_argument=yes
9092else
9093  xorg_cv_cc_flag_unused_command_line_argument=no
9094fi
9095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9096fi
9097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9098$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9099	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9100	CFLAGS="$xorg_testset_save_CFLAGS"
9101fi
9102
9103found="no"
9104
9105	if test $found = "no" ; then
9106		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9107			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9108		fi
9109
9110		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9111			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9112		fi
9113
9114		CFLAGS="$CFLAGS -Wsequence-point"
9115
9116		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9117$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9118		cacheid=xorg_cv_cc_flag__Wsequence_point
9119		if eval \${$cacheid+:} false; then :
9120  $as_echo_n "(cached) " >&6
9121else
9122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9123/* end confdefs.h.  */
9124int i;
9125int
9126main ()
9127{
9128
9129  ;
9130  return 0;
9131}
9132_ACEOF
9133if ac_fn_c_try_link "$LINENO"; then :
9134  eval $cacheid=yes
9135else
9136  eval $cacheid=no
9137fi
9138rm -f core conftest.err conftest.$ac_objext \
9139    conftest$ac_exeext conftest.$ac_ext
9140fi
9141
9142
9143		CFLAGS="$xorg_testset_save_CFLAGS"
9144
9145		eval supported=\$$cacheid
9146		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9147$as_echo "$supported" >&6; }
9148		if test "$supported" = "yes" ; then
9149			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9150			found="yes"
9151		fi
9152	fi
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168xorg_testset_save_CFLAGS="$CFLAGS"
9169
9170if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9171	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9172	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9173$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9174if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9175  $as_echo_n "(cached) " >&6
9176else
9177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9178/* end confdefs.h.  */
9179int i;
9180_ACEOF
9181if ac_fn_c_try_compile "$LINENO"; then :
9182  xorg_cv_cc_flag_unknown_warning_option=yes
9183else
9184  xorg_cv_cc_flag_unknown_warning_option=no
9185fi
9186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9187fi
9188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9189$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9190	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9191	CFLAGS="$xorg_testset_save_CFLAGS"
9192fi
9193
9194if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9195	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9196		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9197	fi
9198	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9199	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9200$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9201if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9202  $as_echo_n "(cached) " >&6
9203else
9204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9205/* end confdefs.h.  */
9206int i;
9207_ACEOF
9208if ac_fn_c_try_compile "$LINENO"; then :
9209  xorg_cv_cc_flag_unused_command_line_argument=yes
9210else
9211  xorg_cv_cc_flag_unused_command_line_argument=no
9212fi
9213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9214fi
9215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9216$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9217	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9218	CFLAGS="$xorg_testset_save_CFLAGS"
9219fi
9220
9221found="no"
9222
9223	if test $found = "no" ; then
9224		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9225			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9226		fi
9227
9228		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9229			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9230		fi
9231
9232		CFLAGS="$CFLAGS -Wreturn-type"
9233
9234		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9235$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9236		cacheid=xorg_cv_cc_flag__Wreturn_type
9237		if eval \${$cacheid+:} false; then :
9238  $as_echo_n "(cached) " >&6
9239else
9240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9241/* end confdefs.h.  */
9242int i;
9243int
9244main ()
9245{
9246
9247  ;
9248  return 0;
9249}
9250_ACEOF
9251if ac_fn_c_try_link "$LINENO"; then :
9252  eval $cacheid=yes
9253else
9254  eval $cacheid=no
9255fi
9256rm -f core conftest.err conftest.$ac_objext \
9257    conftest$ac_exeext conftest.$ac_ext
9258fi
9259
9260
9261		CFLAGS="$xorg_testset_save_CFLAGS"
9262
9263		eval supported=\$$cacheid
9264		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9265$as_echo "$supported" >&6; }
9266		if test "$supported" = "yes" ; then
9267			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9268			found="yes"
9269		fi
9270	fi
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286xorg_testset_save_CFLAGS="$CFLAGS"
9287
9288if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9289	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9290	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9291$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9292if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9293  $as_echo_n "(cached) " >&6
9294else
9295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9296/* end confdefs.h.  */
9297int i;
9298_ACEOF
9299if ac_fn_c_try_compile "$LINENO"; then :
9300  xorg_cv_cc_flag_unknown_warning_option=yes
9301else
9302  xorg_cv_cc_flag_unknown_warning_option=no
9303fi
9304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9305fi
9306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9307$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9308	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9309	CFLAGS="$xorg_testset_save_CFLAGS"
9310fi
9311
9312if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9313	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9314		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9315	fi
9316	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9317	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9318$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9319if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9320  $as_echo_n "(cached) " >&6
9321else
9322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9323/* end confdefs.h.  */
9324int i;
9325_ACEOF
9326if ac_fn_c_try_compile "$LINENO"; then :
9327  xorg_cv_cc_flag_unused_command_line_argument=yes
9328else
9329  xorg_cv_cc_flag_unused_command_line_argument=no
9330fi
9331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9332fi
9333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9334$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9335	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9336	CFLAGS="$xorg_testset_save_CFLAGS"
9337fi
9338
9339found="no"
9340
9341	if test $found = "no" ; then
9342		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9343			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9344		fi
9345
9346		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9347			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9348		fi
9349
9350		CFLAGS="$CFLAGS -Wtrigraphs"
9351
9352		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9353$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9354		cacheid=xorg_cv_cc_flag__Wtrigraphs
9355		if eval \${$cacheid+:} false; then :
9356  $as_echo_n "(cached) " >&6
9357else
9358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359/* end confdefs.h.  */
9360int i;
9361int
9362main ()
9363{
9364
9365  ;
9366  return 0;
9367}
9368_ACEOF
9369if ac_fn_c_try_link "$LINENO"; then :
9370  eval $cacheid=yes
9371else
9372  eval $cacheid=no
9373fi
9374rm -f core conftest.err conftest.$ac_objext \
9375    conftest$ac_exeext conftest.$ac_ext
9376fi
9377
9378
9379		CFLAGS="$xorg_testset_save_CFLAGS"
9380
9381		eval supported=\$$cacheid
9382		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9383$as_echo "$supported" >&6; }
9384		if test "$supported" = "yes" ; then
9385			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9386			found="yes"
9387		fi
9388	fi
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404xorg_testset_save_CFLAGS="$CFLAGS"
9405
9406if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9407	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9408	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9409$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9410if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9411  $as_echo_n "(cached) " >&6
9412else
9413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9414/* end confdefs.h.  */
9415int i;
9416_ACEOF
9417if ac_fn_c_try_compile "$LINENO"; then :
9418  xorg_cv_cc_flag_unknown_warning_option=yes
9419else
9420  xorg_cv_cc_flag_unknown_warning_option=no
9421fi
9422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9423fi
9424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9425$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9426	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9427	CFLAGS="$xorg_testset_save_CFLAGS"
9428fi
9429
9430if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9431	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9432		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9433	fi
9434	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9435	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9436$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9437if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9438  $as_echo_n "(cached) " >&6
9439else
9440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9441/* end confdefs.h.  */
9442int i;
9443_ACEOF
9444if ac_fn_c_try_compile "$LINENO"; then :
9445  xorg_cv_cc_flag_unused_command_line_argument=yes
9446else
9447  xorg_cv_cc_flag_unused_command_line_argument=no
9448fi
9449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9450fi
9451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9452$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9453	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9454	CFLAGS="$xorg_testset_save_CFLAGS"
9455fi
9456
9457found="no"
9458
9459	if test $found = "no" ; then
9460		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9461			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9462		fi
9463
9464		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9465			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9466		fi
9467
9468		CFLAGS="$CFLAGS -Warray-bounds"
9469
9470		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9471$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9472		cacheid=xorg_cv_cc_flag__Warray_bounds
9473		if eval \${$cacheid+:} false; then :
9474  $as_echo_n "(cached) " >&6
9475else
9476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477/* end confdefs.h.  */
9478int i;
9479int
9480main ()
9481{
9482
9483  ;
9484  return 0;
9485}
9486_ACEOF
9487if ac_fn_c_try_link "$LINENO"; then :
9488  eval $cacheid=yes
9489else
9490  eval $cacheid=no
9491fi
9492rm -f core conftest.err conftest.$ac_objext \
9493    conftest$ac_exeext conftest.$ac_ext
9494fi
9495
9496
9497		CFLAGS="$xorg_testset_save_CFLAGS"
9498
9499		eval supported=\$$cacheid
9500		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9501$as_echo "$supported" >&6; }
9502		if test "$supported" = "yes" ; then
9503			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9504			found="yes"
9505		fi
9506	fi
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522xorg_testset_save_CFLAGS="$CFLAGS"
9523
9524if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9525	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9526	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9527$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9528if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9529  $as_echo_n "(cached) " >&6
9530else
9531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9532/* end confdefs.h.  */
9533int i;
9534_ACEOF
9535if ac_fn_c_try_compile "$LINENO"; then :
9536  xorg_cv_cc_flag_unknown_warning_option=yes
9537else
9538  xorg_cv_cc_flag_unknown_warning_option=no
9539fi
9540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9541fi
9542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9543$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9544	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9545	CFLAGS="$xorg_testset_save_CFLAGS"
9546fi
9547
9548if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9549	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9550		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9551	fi
9552	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9553	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9554$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9555if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9556  $as_echo_n "(cached) " >&6
9557else
9558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9559/* end confdefs.h.  */
9560int i;
9561_ACEOF
9562if ac_fn_c_try_compile "$LINENO"; then :
9563  xorg_cv_cc_flag_unused_command_line_argument=yes
9564else
9565  xorg_cv_cc_flag_unused_command_line_argument=no
9566fi
9567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9568fi
9569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9570$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9571	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9572	CFLAGS="$xorg_testset_save_CFLAGS"
9573fi
9574
9575found="no"
9576
9577	if test $found = "no" ; then
9578		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9579			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9580		fi
9581
9582		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9583			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9584		fi
9585
9586		CFLAGS="$CFLAGS -Wwrite-strings"
9587
9588		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9589$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9590		cacheid=xorg_cv_cc_flag__Wwrite_strings
9591		if eval \${$cacheid+:} false; then :
9592  $as_echo_n "(cached) " >&6
9593else
9594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9595/* end confdefs.h.  */
9596int i;
9597int
9598main ()
9599{
9600
9601  ;
9602  return 0;
9603}
9604_ACEOF
9605if ac_fn_c_try_link "$LINENO"; then :
9606  eval $cacheid=yes
9607else
9608  eval $cacheid=no
9609fi
9610rm -f core conftest.err conftest.$ac_objext \
9611    conftest$ac_exeext conftest.$ac_ext
9612fi
9613
9614
9615		CFLAGS="$xorg_testset_save_CFLAGS"
9616
9617		eval supported=\$$cacheid
9618		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9619$as_echo "$supported" >&6; }
9620		if test "$supported" = "yes" ; then
9621			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9622			found="yes"
9623		fi
9624	fi
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640xorg_testset_save_CFLAGS="$CFLAGS"
9641
9642if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9643	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9644	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9645$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9646if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9647  $as_echo_n "(cached) " >&6
9648else
9649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9650/* end confdefs.h.  */
9651int i;
9652_ACEOF
9653if ac_fn_c_try_compile "$LINENO"; then :
9654  xorg_cv_cc_flag_unknown_warning_option=yes
9655else
9656  xorg_cv_cc_flag_unknown_warning_option=no
9657fi
9658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9659fi
9660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9661$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9662	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9663	CFLAGS="$xorg_testset_save_CFLAGS"
9664fi
9665
9666if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9667	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9668		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9669	fi
9670	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9671	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9672$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9673if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9674  $as_echo_n "(cached) " >&6
9675else
9676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9677/* end confdefs.h.  */
9678int i;
9679_ACEOF
9680if ac_fn_c_try_compile "$LINENO"; then :
9681  xorg_cv_cc_flag_unused_command_line_argument=yes
9682else
9683  xorg_cv_cc_flag_unused_command_line_argument=no
9684fi
9685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9686fi
9687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9688$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9689	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9690	CFLAGS="$xorg_testset_save_CFLAGS"
9691fi
9692
9693found="no"
9694
9695	if test $found = "no" ; then
9696		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9697			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9698		fi
9699
9700		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9701			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9702		fi
9703
9704		CFLAGS="$CFLAGS -Waddress"
9705
9706		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9707$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9708		cacheid=xorg_cv_cc_flag__Waddress
9709		if eval \${$cacheid+:} false; then :
9710  $as_echo_n "(cached) " >&6
9711else
9712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9713/* end confdefs.h.  */
9714int i;
9715int
9716main ()
9717{
9718
9719  ;
9720  return 0;
9721}
9722_ACEOF
9723if ac_fn_c_try_link "$LINENO"; then :
9724  eval $cacheid=yes
9725else
9726  eval $cacheid=no
9727fi
9728rm -f core conftest.err conftest.$ac_objext \
9729    conftest$ac_exeext conftest.$ac_ext
9730fi
9731
9732
9733		CFLAGS="$xorg_testset_save_CFLAGS"
9734
9735		eval supported=\$$cacheid
9736		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9737$as_echo "$supported" >&6; }
9738		if test "$supported" = "yes" ; then
9739			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9740			found="yes"
9741		fi
9742	fi
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758xorg_testset_save_CFLAGS="$CFLAGS"
9759
9760if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9761	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9762	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9763$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9764if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9765  $as_echo_n "(cached) " >&6
9766else
9767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768/* end confdefs.h.  */
9769int i;
9770_ACEOF
9771if ac_fn_c_try_compile "$LINENO"; then :
9772  xorg_cv_cc_flag_unknown_warning_option=yes
9773else
9774  xorg_cv_cc_flag_unknown_warning_option=no
9775fi
9776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9777fi
9778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9779$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9780	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9781	CFLAGS="$xorg_testset_save_CFLAGS"
9782fi
9783
9784if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9785	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9786		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9787	fi
9788	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9789	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9790$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9791if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9792  $as_echo_n "(cached) " >&6
9793else
9794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9795/* end confdefs.h.  */
9796int i;
9797_ACEOF
9798if ac_fn_c_try_compile "$LINENO"; then :
9799  xorg_cv_cc_flag_unused_command_line_argument=yes
9800else
9801  xorg_cv_cc_flag_unused_command_line_argument=no
9802fi
9803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9804fi
9805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9806$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9807	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9808	CFLAGS="$xorg_testset_save_CFLAGS"
9809fi
9810
9811found="no"
9812
9813	if test $found = "no" ; then
9814		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9815			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9816		fi
9817
9818		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9819			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9820		fi
9821
9822		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9823
9824		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9825$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9826		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9827		if eval \${$cacheid+:} false; then :
9828  $as_echo_n "(cached) " >&6
9829else
9830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9831/* end confdefs.h.  */
9832int i;
9833int
9834main ()
9835{
9836
9837  ;
9838  return 0;
9839}
9840_ACEOF
9841if ac_fn_c_try_link "$LINENO"; then :
9842  eval $cacheid=yes
9843else
9844  eval $cacheid=no
9845fi
9846rm -f core conftest.err conftest.$ac_objext \
9847    conftest$ac_exeext conftest.$ac_ext
9848fi
9849
9850
9851		CFLAGS="$xorg_testset_save_CFLAGS"
9852
9853		eval supported=\$$cacheid
9854		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9855$as_echo "$supported" >&6; }
9856		if test "$supported" = "yes" ; then
9857			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9858			found="yes"
9859		fi
9860	fi
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876xorg_testset_save_CFLAGS="$CFLAGS"
9877
9878if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9879	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9880	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9881$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9882if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9883  $as_echo_n "(cached) " >&6
9884else
9885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9886/* end confdefs.h.  */
9887int i;
9888_ACEOF
9889if ac_fn_c_try_compile "$LINENO"; then :
9890  xorg_cv_cc_flag_unknown_warning_option=yes
9891else
9892  xorg_cv_cc_flag_unknown_warning_option=no
9893fi
9894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9895fi
9896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9897$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9898	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9899	CFLAGS="$xorg_testset_save_CFLAGS"
9900fi
9901
9902if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9903	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9904		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9905	fi
9906	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9907	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9908$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9909if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9910  $as_echo_n "(cached) " >&6
9911else
9912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9913/* end confdefs.h.  */
9914int i;
9915_ACEOF
9916if ac_fn_c_try_compile "$LINENO"; then :
9917  xorg_cv_cc_flag_unused_command_line_argument=yes
9918else
9919  xorg_cv_cc_flag_unused_command_line_argument=no
9920fi
9921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9922fi
9923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9924$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9925	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9926	CFLAGS="$xorg_testset_save_CFLAGS"
9927fi
9928
9929found="no"
9930
9931	if test $found = "no" ; then
9932		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9933			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9934		fi
9935
9936		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9937			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9938		fi
9939
9940		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9941
9942		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9943$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9944		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9945		if eval \${$cacheid+:} false; then :
9946  $as_echo_n "(cached) " >&6
9947else
9948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9949/* end confdefs.h.  */
9950int i;
9951int
9952main ()
9953{
9954
9955  ;
9956  return 0;
9957}
9958_ACEOF
9959if ac_fn_c_try_link "$LINENO"; then :
9960  eval $cacheid=yes
9961else
9962  eval $cacheid=no
9963fi
9964rm -f core conftest.err conftest.$ac_objext \
9965    conftest$ac_exeext conftest.$ac_ext
9966fi
9967
9968
9969		CFLAGS="$xorg_testset_save_CFLAGS"
9970
9971		eval supported=\$$cacheid
9972		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9973$as_echo "$supported" >&6; }
9974		if test "$supported" = "yes" ; then
9975			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9976			found="yes"
9977		fi
9978	fi
9979
9980
9981fi
9982
9983
9984
9985
9986
9987
9988
9989		CWARNFLAGS="$BASE_CFLAGS"
9990		if  test "x$GCC" = xyes ; then
9991		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9992		fi
9993
9994
9995
9996
9997
9998
9999
10000
10001# Check whether --enable-strict-compilation was given.
10002if test "${enable_strict_compilation+set}" = set; then :
10003  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10004else
10005  STRICT_COMPILE=no
10006fi
10007
10008
10009
10010
10011
10012
10013STRICT_CFLAGS=""
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027xorg_testset_save_CFLAGS="$CFLAGS"
10028
10029if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10030	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10031	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10032$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10033if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10034  $as_echo_n "(cached) " >&6
10035else
10036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10037/* end confdefs.h.  */
10038int i;
10039_ACEOF
10040if ac_fn_c_try_compile "$LINENO"; then :
10041  xorg_cv_cc_flag_unknown_warning_option=yes
10042else
10043  xorg_cv_cc_flag_unknown_warning_option=no
10044fi
10045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10046fi
10047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10048$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10049	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10050	CFLAGS="$xorg_testset_save_CFLAGS"
10051fi
10052
10053if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10054	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10055		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10056	fi
10057	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10058	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10059$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10060if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10061  $as_echo_n "(cached) " >&6
10062else
10063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10064/* end confdefs.h.  */
10065int i;
10066_ACEOF
10067if ac_fn_c_try_compile "$LINENO"; then :
10068  xorg_cv_cc_flag_unused_command_line_argument=yes
10069else
10070  xorg_cv_cc_flag_unused_command_line_argument=no
10071fi
10072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10073fi
10074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10075$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10076	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10077	CFLAGS="$xorg_testset_save_CFLAGS"
10078fi
10079
10080found="no"
10081
10082	if test $found = "no" ; then
10083		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10084			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10085		fi
10086
10087		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10088			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10089		fi
10090
10091		CFLAGS="$CFLAGS -pedantic"
10092
10093		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10094$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10095		cacheid=xorg_cv_cc_flag__pedantic
10096		if eval \${$cacheid+:} false; then :
10097  $as_echo_n "(cached) " >&6
10098else
10099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10100/* end confdefs.h.  */
10101int i;
10102int
10103main ()
10104{
10105
10106  ;
10107  return 0;
10108}
10109_ACEOF
10110if ac_fn_c_try_link "$LINENO"; then :
10111  eval $cacheid=yes
10112else
10113  eval $cacheid=no
10114fi
10115rm -f core conftest.err conftest.$ac_objext \
10116    conftest$ac_exeext conftest.$ac_ext
10117fi
10118
10119
10120		CFLAGS="$xorg_testset_save_CFLAGS"
10121
10122		eval supported=\$$cacheid
10123		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10124$as_echo "$supported" >&6; }
10125		if test "$supported" = "yes" ; then
10126			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10127			found="yes"
10128		fi
10129	fi
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145xorg_testset_save_CFLAGS="$CFLAGS"
10146
10147if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10148	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10149	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10150$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10151if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10152  $as_echo_n "(cached) " >&6
10153else
10154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10155/* end confdefs.h.  */
10156int i;
10157_ACEOF
10158if ac_fn_c_try_compile "$LINENO"; then :
10159  xorg_cv_cc_flag_unknown_warning_option=yes
10160else
10161  xorg_cv_cc_flag_unknown_warning_option=no
10162fi
10163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10164fi
10165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10166$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10167	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10168	CFLAGS="$xorg_testset_save_CFLAGS"
10169fi
10170
10171if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10172	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10173		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10174	fi
10175	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10176	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10177$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10178if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10179  $as_echo_n "(cached) " >&6
10180else
10181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10182/* end confdefs.h.  */
10183int i;
10184_ACEOF
10185if ac_fn_c_try_compile "$LINENO"; then :
10186  xorg_cv_cc_flag_unused_command_line_argument=yes
10187else
10188  xorg_cv_cc_flag_unused_command_line_argument=no
10189fi
10190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10191fi
10192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10193$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10194	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10195	CFLAGS="$xorg_testset_save_CFLAGS"
10196fi
10197
10198found="no"
10199
10200	if test $found = "no" ; then
10201		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10202			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10203		fi
10204
10205		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10206			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10207		fi
10208
10209		CFLAGS="$CFLAGS -Werror"
10210
10211		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10212$as_echo_n "checking if $CC supports -Werror... " >&6; }
10213		cacheid=xorg_cv_cc_flag__Werror
10214		if eval \${$cacheid+:} false; then :
10215  $as_echo_n "(cached) " >&6
10216else
10217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218/* end confdefs.h.  */
10219int i;
10220int
10221main ()
10222{
10223
10224  ;
10225  return 0;
10226}
10227_ACEOF
10228if ac_fn_c_try_link "$LINENO"; then :
10229  eval $cacheid=yes
10230else
10231  eval $cacheid=no
10232fi
10233rm -f core conftest.err conftest.$ac_objext \
10234    conftest$ac_exeext conftest.$ac_ext
10235fi
10236
10237
10238		CFLAGS="$xorg_testset_save_CFLAGS"
10239
10240		eval supported=\$$cacheid
10241		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10242$as_echo "$supported" >&6; }
10243		if test "$supported" = "yes" ; then
10244			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10245			found="yes"
10246		fi
10247	fi
10248
10249	if test $found = "no" ; then
10250		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10251			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10252		fi
10253
10254		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10255			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10256		fi
10257
10258		CFLAGS="$CFLAGS -errwarn"
10259
10260		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10261$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10262		cacheid=xorg_cv_cc_flag__errwarn
10263		if eval \${$cacheid+:} false; then :
10264  $as_echo_n "(cached) " >&6
10265else
10266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10267/* end confdefs.h.  */
10268int i;
10269int
10270main ()
10271{
10272
10273  ;
10274  return 0;
10275}
10276_ACEOF
10277if ac_fn_c_try_link "$LINENO"; then :
10278  eval $cacheid=yes
10279else
10280  eval $cacheid=no
10281fi
10282rm -f core conftest.err conftest.$ac_objext \
10283    conftest$ac_exeext conftest.$ac_ext
10284fi
10285
10286
10287		CFLAGS="$xorg_testset_save_CFLAGS"
10288
10289		eval supported=\$$cacheid
10290		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10291$as_echo "$supported" >&6; }
10292		if test "$supported" = "yes" ; then
10293			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10294			found="yes"
10295		fi
10296	fi
10297
10298
10299
10300# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10301# activate it with -Werror, so we add it here explicitly.
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315xorg_testset_save_CFLAGS="$CFLAGS"
10316
10317if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10318	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10319	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10320$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10321if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10322  $as_echo_n "(cached) " >&6
10323else
10324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10325/* end confdefs.h.  */
10326int i;
10327_ACEOF
10328if ac_fn_c_try_compile "$LINENO"; then :
10329  xorg_cv_cc_flag_unknown_warning_option=yes
10330else
10331  xorg_cv_cc_flag_unknown_warning_option=no
10332fi
10333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10334fi
10335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10336$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10337	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10338	CFLAGS="$xorg_testset_save_CFLAGS"
10339fi
10340
10341if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10342	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10343		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10344	fi
10345	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10346	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10347$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10348if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10349  $as_echo_n "(cached) " >&6
10350else
10351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10352/* end confdefs.h.  */
10353int i;
10354_ACEOF
10355if ac_fn_c_try_compile "$LINENO"; then :
10356  xorg_cv_cc_flag_unused_command_line_argument=yes
10357else
10358  xorg_cv_cc_flag_unused_command_line_argument=no
10359fi
10360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10361fi
10362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10363$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10364	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10365	CFLAGS="$xorg_testset_save_CFLAGS"
10366fi
10367
10368found="no"
10369
10370	if test $found = "no" ; then
10371		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10372			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10373		fi
10374
10375		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10376			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10377		fi
10378
10379		CFLAGS="$CFLAGS -Werror=attributes"
10380
10381		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10382$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10383		cacheid=xorg_cv_cc_flag__Werror_attributes
10384		if eval \${$cacheid+:} false; then :
10385  $as_echo_n "(cached) " >&6
10386else
10387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10388/* end confdefs.h.  */
10389int i;
10390int
10391main ()
10392{
10393
10394  ;
10395  return 0;
10396}
10397_ACEOF
10398if ac_fn_c_try_link "$LINENO"; then :
10399  eval $cacheid=yes
10400else
10401  eval $cacheid=no
10402fi
10403rm -f core conftest.err conftest.$ac_objext \
10404    conftest$ac_exeext conftest.$ac_ext
10405fi
10406
10407
10408		CFLAGS="$xorg_testset_save_CFLAGS"
10409
10410		eval supported=\$$cacheid
10411		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10412$as_echo "$supported" >&6; }
10413		if test "$supported" = "yes" ; then
10414			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10415			found="yes"
10416		fi
10417	fi
10418
10419
10420
10421if test "x$STRICT_COMPILE" = "xyes"; then
10422    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10423    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10424fi
10425
10426
10427
10428
10429
10430
10431cat >>confdefs.h <<_ACEOF
10432#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10433_ACEOF
10434
10435	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10436	if test "x$PVM" = "x"; then
10437		PVM="0"
10438	fi
10439
10440cat >>confdefs.h <<_ACEOF
10441#define PACKAGE_VERSION_MINOR $PVM
10442_ACEOF
10443
10444	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10445	if test "x$PVP" = "x"; then
10446		PVP="0"
10447	fi
10448
10449cat >>confdefs.h <<_ACEOF
10450#define PACKAGE_VERSION_PATCHLEVEL $PVP
10451_ACEOF
10452
10453
10454
10455CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10456mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10457|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10458echo 'git directory not found: installing possibly empty changelog.' >&2)"
10459
10460
10461
10462
10463macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10464INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10465mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10466|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10467echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10468
10469
10470
10471
10472
10473
10474if test x$APP_MAN_SUFFIX = x    ; then
10475    APP_MAN_SUFFIX=1
10476fi
10477if test x$APP_MAN_DIR = x    ; then
10478    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10479fi
10480
10481if test x$LIB_MAN_SUFFIX = x    ; then
10482    LIB_MAN_SUFFIX=3
10483fi
10484if test x$LIB_MAN_DIR = x    ; then
10485    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10486fi
10487
10488if test x$FILE_MAN_SUFFIX = x    ; then
10489    case $host_os in
10490	# Solaris 2.0 - 11 use SysV man page sections
10491	solaris2.?|solaris2.1[01])	FILE_MAN_SUFFIX=4  ;;
10492	*)				FILE_MAN_SUFFIX=5  ;;
10493    esac
10494fi
10495if test x$FILE_MAN_DIR = x    ; then
10496    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10497fi
10498
10499if test x$MISC_MAN_SUFFIX = x    ; then
10500    case $host_os in
10501	# Solaris 2.0 - 11 use SysV man page sections
10502	solaris2.?|solaris2.1[01])	MISC_MAN_SUFFIX=5  ;;
10503	*)				MISC_MAN_SUFFIX=7  ;;
10504    esac
10505fi
10506if test x$MISC_MAN_DIR = x    ; then
10507    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10508fi
10509
10510if test x$DRIVER_MAN_SUFFIX = x    ; then
10511    case $host_os in
10512	# Solaris 2.0 - 11 use SysV man page sections
10513	solaris2.?|solaris2.1[01])	DRIVER_MAN_SUFFIX=7  ;;
10514	*)				DRIVER_MAN_SUFFIX=4  ;;
10515    esac
10516fi
10517if test x$DRIVER_MAN_DIR = x    ; then
10518    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10519fi
10520
10521if test x$ADMIN_MAN_SUFFIX = x    ; then
10522    case $host_os in
10523	# Solaris 2.0 - 11 use SysV man page sections
10524	solaris2.?|solaris2.1[01])	ADMIN_MAN_SUFFIX=1m ;;
10525	*)				ADMIN_MAN_SUFFIX=8  ;;
10526    esac
10527fi
10528if test x$ADMIN_MAN_DIR = x    ; then
10529    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10530fi
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546XORG_MAN_PAGE="X Version 11"
10547
10548MAN_SUBSTS="\
10549	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10550	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10551	-e 's|__xservername__|Xorg|g' \
10552	-e 's|__xconfigfile__|xorg.conf|g' \
10553	-e 's|__projectroot__|\$(prefix)|g' \
10554	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10555	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10556	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10557	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10558	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10559	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10560	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10561
10562
10563
10564# Check whether --enable-silent-rules was given.
10565if test "${enable_silent_rules+set}" = set; then :
10566  enableval=$enable_silent_rules;
10567fi
10568
10569case $enable_silent_rules in # (((
10570  yes) AM_DEFAULT_VERBOSITY=0;;
10571   no) AM_DEFAULT_VERBOSITY=1;;
10572    *) AM_DEFAULT_VERBOSITY=0;;
10573esac
10574am_make=${MAKE-make}
10575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10576$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10577if ${am_cv_make_support_nested_variables+:} false; then :
10578  $as_echo_n "(cached) " >&6
10579else
10580  if $as_echo 'TRUE=$(BAR$(V))
10581BAR0=false
10582BAR1=true
10583V=1
10584am__doit:
10585	@$(TRUE)
10586.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10587  am_cv_make_support_nested_variables=yes
10588else
10589  am_cv_make_support_nested_variables=no
10590fi
10591fi
10592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10593$as_echo "$am_cv_make_support_nested_variables" >&6; }
10594if test $am_cv_make_support_nested_variables = yes; then
10595    AM_V='$(V)'
10596  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10597else
10598  AM_V=$AM_DEFAULT_VERBOSITY
10599  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10600fi
10601AM_BACKSLASH='\'
10602
10603
10604
10605# Checks for pkg-config packages
10606
10607pkg_failed=no
10608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFSINFO" >&5
10609$as_echo_n "checking for XFSINFO... " >&6; }
10610
10611if test -n "$XFSINFO_CFLAGS"; then
10612    pkg_cv_XFSINFO_CFLAGS="$XFSINFO_CFLAGS"
10613 elif test -n "$PKG_CONFIG"; then
10614    if test -n "$PKG_CONFIG" && \
10615    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 libfs\""; } >&5
10616  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 libfs") 2>&5
10617  ac_status=$?
10618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10619  test $ac_status = 0; }; then
10620  pkg_cv_XFSINFO_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 libfs" 2>/dev/null`
10621		      test "x$?" != "x0" && pkg_failed=yes
10622else
10623  pkg_failed=yes
10624fi
10625 else
10626    pkg_failed=untried
10627fi
10628if test -n "$XFSINFO_LIBS"; then
10629    pkg_cv_XFSINFO_LIBS="$XFSINFO_LIBS"
10630 elif test -n "$PKG_CONFIG"; then
10631    if test -n "$PKG_CONFIG" && \
10632    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 libfs\""; } >&5
10633  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 libfs") 2>&5
10634  ac_status=$?
10635  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10636  test $ac_status = 0; }; then
10637  pkg_cv_XFSINFO_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 libfs" 2>/dev/null`
10638		      test "x$?" != "x0" && pkg_failed=yes
10639else
10640  pkg_failed=yes
10641fi
10642 else
10643    pkg_failed=untried
10644fi
10645
10646
10647
10648if test $pkg_failed = yes; then
10649   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10650$as_echo "no" >&6; }
10651
10652if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10653        _pkg_short_errors_supported=yes
10654else
10655        _pkg_short_errors_supported=no
10656fi
10657        if test $_pkg_short_errors_supported = yes; then
10658	        XFSINFO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17 libfs" 2>&1`
10659        else
10660	        XFSINFO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17 libfs" 2>&1`
10661        fi
10662	# Put the nasty error message in config.log where it belongs
10663	echo "$XFSINFO_PKG_ERRORS" >&5
10664
10665	as_fn_error $? "Package requirements (xproto >= 7.0.17 libfs) were not met:
10666
10667$XFSINFO_PKG_ERRORS
10668
10669Consider adjusting the PKG_CONFIG_PATH environment variable if you
10670installed software in a non-standard prefix.
10671
10672Alternatively, you may set the environment variables XFSINFO_CFLAGS
10673and XFSINFO_LIBS to avoid the need to call pkg-config.
10674See the pkg-config man page for more details." "$LINENO" 5
10675elif test $pkg_failed = untried; then
10676     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10677$as_echo "no" >&6; }
10678	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10679$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10680as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10681is in your PATH or set the PKG_CONFIG environment variable to the full
10682path to pkg-config.
10683
10684Alternatively, you may set the environment variables XFSINFO_CFLAGS
10685and XFSINFO_LIBS to avoid the need to call pkg-config.
10686See the pkg-config man page for more details.
10687
10688To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10689See \`config.log' for more details" "$LINENO" 5; }
10690else
10691	XFSINFO_CFLAGS=$pkg_cv_XFSINFO_CFLAGS
10692	XFSINFO_LIBS=$pkg_cv_XFSINFO_LIBS
10693        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10694$as_echo "yes" >&6; }
10695
10696fi
10697
10698ac_config_files="$ac_config_files Makefile man/Makefile"
10699
10700cat >confcache <<\_ACEOF
10701# This file is a shell script that caches the results of configure
10702# tests run on this system so they can be shared between configure
10703# scripts and configure runs, see configure's option --config-cache.
10704# It is not useful on other systems.  If it contains results you don't
10705# want to keep, you may remove or edit it.
10706#
10707# config.status only pays attention to the cache file if you give it
10708# the --recheck option to rerun configure.
10709#
10710# `ac_cv_env_foo' variables (set or unset) will be overridden when
10711# loading this file, other *unset* `ac_cv_foo' will be assigned the
10712# following values.
10713
10714_ACEOF
10715
10716# The following way of writing the cache mishandles newlines in values,
10717# but we know of no workaround that is simple, portable, and efficient.
10718# So, we kill variables containing newlines.
10719# Ultrix sh set writes to stderr and can't be redirected directly,
10720# and sets the high bit in the cache file unless we assign to the vars.
10721(
10722  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10723    eval ac_val=\$$ac_var
10724    case $ac_val in #(
10725    *${as_nl}*)
10726      case $ac_var in #(
10727      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10728$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10729      esac
10730      case $ac_var in #(
10731      _ | IFS | as_nl) ;; #(
10732      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10733      *) { eval $ac_var=; unset $ac_var;} ;;
10734      esac ;;
10735    esac
10736  done
10737
10738  (set) 2>&1 |
10739    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10740    *${as_nl}ac_space=\ *)
10741      # `set' does not quote correctly, so add quotes: double-quote
10742      # substitution turns \\\\ into \\, and sed turns \\ into \.
10743      sed -n \
10744	"s/'/'\\\\''/g;
10745	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10746      ;; #(
10747    *)
10748      # `set' quotes correctly as required by POSIX, so do not add quotes.
10749      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10750      ;;
10751    esac |
10752    sort
10753) |
10754  sed '
10755     /^ac_cv_env_/b end
10756     t clear
10757     :clear
10758     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10759     t end
10760     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10761     :end' >>confcache
10762if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10763  if test -w "$cache_file"; then
10764    if test "x$cache_file" != "x/dev/null"; then
10765      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10766$as_echo "$as_me: updating cache $cache_file" >&6;}
10767      if test ! -f "$cache_file" || test -h "$cache_file"; then
10768	cat confcache >"$cache_file"
10769      else
10770        case $cache_file in #(
10771        */* | ?:*)
10772	  mv -f confcache "$cache_file"$$ &&
10773	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10774        *)
10775	  mv -f confcache "$cache_file" ;;
10776	esac
10777      fi
10778    fi
10779  else
10780    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10781$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10782  fi
10783fi
10784rm -f confcache
10785
10786test "x$prefix" = xNONE && prefix=$ac_default_prefix
10787# Let make expand exec_prefix.
10788test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10789
10790DEFS=-DHAVE_CONFIG_H
10791
10792ac_libobjs=
10793ac_ltlibobjs=
10794U=
10795for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10796  # 1. Remove the extension, and $U if already installed.
10797  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10798  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10799  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10800  #    will be set to the directory where LIBOBJS objects are built.
10801  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10802  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10803done
10804LIBOBJS=$ac_libobjs
10805
10806LTLIBOBJS=$ac_ltlibobjs
10807
10808
10809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10810$as_echo_n "checking that generated files are newer than configure... " >&6; }
10811   if test -n "$am_sleep_pid"; then
10812     # Hide warnings about reused PIDs.
10813     wait $am_sleep_pid 2>/dev/null
10814   fi
10815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10816$as_echo "done" >&6; }
10817 if test -n "$EXEEXT"; then
10818  am__EXEEXT_TRUE=
10819  am__EXEEXT_FALSE='#'
10820else
10821  am__EXEEXT_TRUE='#'
10822  am__EXEEXT_FALSE=
10823fi
10824
10825if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10826  as_fn_error $? "conditional \"AMDEP\" was never defined.
10827Usually this means the macro was only invoked conditionally." "$LINENO" 5
10828fi
10829if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10830  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10831Usually this means the macro was only invoked conditionally." "$LINENO" 5
10832fi
10833
10834: "${CONFIG_STATUS=./config.status}"
10835ac_write_fail=0
10836ac_clean_files_save=$ac_clean_files
10837ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10838{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10839$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10840as_write_fail=0
10841cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10842#! $SHELL
10843# Generated by $as_me.
10844# Run this file to recreate the current configuration.
10845# Compiler output produced by configure, useful for debugging
10846# configure, is in config.log if it exists.
10847
10848debug=false
10849ac_cs_recheck=false
10850ac_cs_silent=false
10851
10852SHELL=\${CONFIG_SHELL-$SHELL}
10853export SHELL
10854_ASEOF
10855cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10856## -------------------- ##
10857## M4sh Initialization. ##
10858## -------------------- ##
10859
10860# Be more Bourne compatible
10861DUALCASE=1; export DUALCASE # for MKS sh
10862if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10863  emulate sh
10864  NULLCMD=:
10865  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10866  # is contrary to our usage.  Disable this feature.
10867  alias -g '${1+"$@"}'='"$@"'
10868  setopt NO_GLOB_SUBST
10869else
10870  case `(set -o) 2>/dev/null` in #(
10871  *posix*) :
10872    set -o posix ;; #(
10873  *) :
10874     ;;
10875esac
10876fi
10877
10878
10879as_nl='
10880'
10881export as_nl
10882# Printing a long string crashes Solaris 7 /usr/bin/printf.
10883as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10884as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10885as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10886# Prefer a ksh shell builtin over an external printf program on Solaris,
10887# but without wasting forks for bash or zsh.
10888if test -z "$BASH_VERSION$ZSH_VERSION" \
10889    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10890  as_echo='print -r --'
10891  as_echo_n='print -rn --'
10892elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10893  as_echo='printf %s\n'
10894  as_echo_n='printf %s'
10895else
10896  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10897    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10898    as_echo_n='/usr/ucb/echo -n'
10899  else
10900    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10901    as_echo_n_body='eval
10902      arg=$1;
10903      case $arg in #(
10904      *"$as_nl"*)
10905	expr "X$arg" : "X\\(.*\\)$as_nl";
10906	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10907      esac;
10908      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10909    '
10910    export as_echo_n_body
10911    as_echo_n='sh -c $as_echo_n_body as_echo'
10912  fi
10913  export as_echo_body
10914  as_echo='sh -c $as_echo_body as_echo'
10915fi
10916
10917# The user is always right.
10918if test "${PATH_SEPARATOR+set}" != set; then
10919  PATH_SEPARATOR=:
10920  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10921    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10922      PATH_SEPARATOR=';'
10923  }
10924fi
10925
10926
10927# IFS
10928# We need space, tab and new line, in precisely that order.  Quoting is
10929# there to prevent editors from complaining about space-tab.
10930# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10931# splitting by setting IFS to empty value.)
10932IFS=" ""	$as_nl"
10933
10934# Find who we are.  Look in the path if we contain no directory separator.
10935as_myself=
10936case $0 in #((
10937  *[\\/]* ) as_myself=$0 ;;
10938  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10939for as_dir in $PATH
10940do
10941  IFS=$as_save_IFS
10942  test -z "$as_dir" && as_dir=.
10943    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10944  done
10945IFS=$as_save_IFS
10946
10947     ;;
10948esac
10949# We did not find ourselves, most probably we were run as `sh COMMAND'
10950# in which case we are not to be found in the path.
10951if test "x$as_myself" = x; then
10952  as_myself=$0
10953fi
10954if test ! -f "$as_myself"; then
10955  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10956  exit 1
10957fi
10958
10959# Unset variables that we do not need and which cause bugs (e.g. in
10960# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
10961# suppresses any "Segmentation fault" message there.  '((' could
10962# trigger a bug in pdksh 5.2.14.
10963for as_var in BASH_ENV ENV MAIL MAILPATH
10964do eval test x\${$as_var+set} = xset \
10965  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10966done
10967PS1='$ '
10968PS2='> '
10969PS4='+ '
10970
10971# NLS nuisances.
10972LC_ALL=C
10973export LC_ALL
10974LANGUAGE=C
10975export LANGUAGE
10976
10977# CDPATH.
10978(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10979
10980
10981# as_fn_error STATUS ERROR [LINENO LOG_FD]
10982# ----------------------------------------
10983# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10984# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10985# script with STATUS, using 1 if that was 0.
10986as_fn_error ()
10987{
10988  as_status=$1; test $as_status -eq 0 && as_status=1
10989  if test "$4"; then
10990    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10991    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10992  fi
10993  $as_echo "$as_me: error: $2" >&2
10994  as_fn_exit $as_status
10995} # as_fn_error
10996
10997
10998# as_fn_set_status STATUS
10999# -----------------------
11000# Set $? to STATUS, without forking.
11001as_fn_set_status ()
11002{
11003  return $1
11004} # as_fn_set_status
11005
11006# as_fn_exit STATUS
11007# -----------------
11008# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11009as_fn_exit ()
11010{
11011  set +e
11012  as_fn_set_status $1
11013  exit $1
11014} # as_fn_exit
11015
11016# as_fn_unset VAR
11017# ---------------
11018# Portably unset VAR.
11019as_fn_unset ()
11020{
11021  { eval $1=; unset $1;}
11022}
11023as_unset=as_fn_unset
11024# as_fn_append VAR VALUE
11025# ----------------------
11026# Append the text in VALUE to the end of the definition contained in VAR. Take
11027# advantage of any shell optimizations that allow amortized linear growth over
11028# repeated appends, instead of the typical quadratic growth present in naive
11029# implementations.
11030if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11031  eval 'as_fn_append ()
11032  {
11033    eval $1+=\$2
11034  }'
11035else
11036  as_fn_append ()
11037  {
11038    eval $1=\$$1\$2
11039  }
11040fi # as_fn_append
11041
11042# as_fn_arith ARG...
11043# ------------------
11044# Perform arithmetic evaluation on the ARGs, and store the result in the
11045# global $as_val. Take advantage of shells that can avoid forks. The arguments
11046# must be portable across $(()) and expr.
11047if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11048  eval 'as_fn_arith ()
11049  {
11050    as_val=$(( $* ))
11051  }'
11052else
11053  as_fn_arith ()
11054  {
11055    as_val=`expr "$@" || test $? -eq 1`
11056  }
11057fi # as_fn_arith
11058
11059
11060if expr a : '\(a\)' >/dev/null 2>&1 &&
11061   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11062  as_expr=expr
11063else
11064  as_expr=false
11065fi
11066
11067if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11068  as_basename=basename
11069else
11070  as_basename=false
11071fi
11072
11073if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11074  as_dirname=dirname
11075else
11076  as_dirname=false
11077fi
11078
11079as_me=`$as_basename -- "$0" ||
11080$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11081	 X"$0" : 'X\(//\)$' \| \
11082	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11083$as_echo X/"$0" |
11084    sed '/^.*\/\([^/][^/]*\)\/*$/{
11085	    s//\1/
11086	    q
11087	  }
11088	  /^X\/\(\/\/\)$/{
11089	    s//\1/
11090	    q
11091	  }
11092	  /^X\/\(\/\).*/{
11093	    s//\1/
11094	    q
11095	  }
11096	  s/.*/./; q'`
11097
11098# Avoid depending upon Character Ranges.
11099as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11100as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11101as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11102as_cr_digits='0123456789'
11103as_cr_alnum=$as_cr_Letters$as_cr_digits
11104
11105ECHO_C= ECHO_N= ECHO_T=
11106case `echo -n x` in #(((((
11107-n*)
11108  case `echo 'xy\c'` in
11109  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11110  xy)  ECHO_C='\c';;
11111  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11112       ECHO_T='	';;
11113  esac;;
11114*)
11115  ECHO_N='-n';;
11116esac
11117
11118rm -f conf$$ conf$$.exe conf$$.file
11119if test -d conf$$.dir; then
11120  rm -f conf$$.dir/conf$$.file
11121else
11122  rm -f conf$$.dir
11123  mkdir conf$$.dir 2>/dev/null
11124fi
11125if (echo >conf$$.file) 2>/dev/null; then
11126  if ln -s conf$$.file conf$$ 2>/dev/null; then
11127    as_ln_s='ln -s'
11128    # ... but there are two gotchas:
11129    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11130    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11131    # In both cases, we have to default to `cp -pR'.
11132    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11133      as_ln_s='cp -pR'
11134  elif ln conf$$.file conf$$ 2>/dev/null; then
11135    as_ln_s=ln
11136  else
11137    as_ln_s='cp -pR'
11138  fi
11139else
11140  as_ln_s='cp -pR'
11141fi
11142rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11143rmdir conf$$.dir 2>/dev/null
11144
11145
11146# as_fn_mkdir_p
11147# -------------
11148# Create "$as_dir" as a directory, including parents if necessary.
11149as_fn_mkdir_p ()
11150{
11151
11152  case $as_dir in #(
11153  -*) as_dir=./$as_dir;;
11154  esac
11155  test -d "$as_dir" || eval $as_mkdir_p || {
11156    as_dirs=
11157    while :; do
11158      case $as_dir in #(
11159      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11160      *) as_qdir=$as_dir;;
11161      esac
11162      as_dirs="'$as_qdir' $as_dirs"
11163      as_dir=`$as_dirname -- "$as_dir" ||
11164$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11165	 X"$as_dir" : 'X\(//\)[^/]' \| \
11166	 X"$as_dir" : 'X\(//\)$' \| \
11167	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11168$as_echo X"$as_dir" |
11169    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11170	    s//\1/
11171	    q
11172	  }
11173	  /^X\(\/\/\)[^/].*/{
11174	    s//\1/
11175	    q
11176	  }
11177	  /^X\(\/\/\)$/{
11178	    s//\1/
11179	    q
11180	  }
11181	  /^X\(\/\).*/{
11182	    s//\1/
11183	    q
11184	  }
11185	  s/.*/./; q'`
11186      test -d "$as_dir" && break
11187    done
11188    test -z "$as_dirs" || eval "mkdir $as_dirs"
11189  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11190
11191
11192} # as_fn_mkdir_p
11193if mkdir -p . 2>/dev/null; then
11194  as_mkdir_p='mkdir -p "$as_dir"'
11195else
11196  test -d ./-p && rmdir ./-p
11197  as_mkdir_p=false
11198fi
11199
11200
11201# as_fn_executable_p FILE
11202# -----------------------
11203# Test if FILE is an executable regular file.
11204as_fn_executable_p ()
11205{
11206  test -f "$1" && test -x "$1"
11207} # as_fn_executable_p
11208as_test_x='test -x'
11209as_executable_p=as_fn_executable_p
11210
11211# Sed expression to map a string onto a valid CPP name.
11212as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11213
11214# Sed expression to map a string onto a valid variable name.
11215as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11216
11217
11218exec 6>&1
11219## ----------------------------------- ##
11220## Main body of $CONFIG_STATUS script. ##
11221## ----------------------------------- ##
11222_ASEOF
11223test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11224
11225cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11226# Save the log message, to keep $0 and so on meaningful, and to
11227# report actual input values of CONFIG_FILES etc. instead of their
11228# values after options handling.
11229ac_log="
11230This file was extended by xfsinfo $as_me 1.0.6, which was
11231generated by GNU Autoconf 2.69.  Invocation command line was
11232
11233  CONFIG_FILES    = $CONFIG_FILES
11234  CONFIG_HEADERS  = $CONFIG_HEADERS
11235  CONFIG_LINKS    = $CONFIG_LINKS
11236  CONFIG_COMMANDS = $CONFIG_COMMANDS
11237  $ $0 $@
11238
11239on `(hostname || uname -n) 2>/dev/null | sed 1q`
11240"
11241
11242_ACEOF
11243
11244case $ac_config_files in *"
11245"*) set x $ac_config_files; shift; ac_config_files=$*;;
11246esac
11247
11248case $ac_config_headers in *"
11249"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11250esac
11251
11252
11253cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11254# Files that config.status was made for.
11255config_files="$ac_config_files"
11256config_headers="$ac_config_headers"
11257config_commands="$ac_config_commands"
11258
11259_ACEOF
11260
11261cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11262ac_cs_usage="\
11263\`$as_me' instantiates files and other configuration actions
11264from templates according to the current configuration.  Unless the files
11265and actions are specified as TAGs, all are instantiated by default.
11266
11267Usage: $0 [OPTION]... [TAG]...
11268
11269  -h, --help       print this help, then exit
11270  -V, --version    print version number and configuration settings, then exit
11271      --config     print configuration, then exit
11272  -q, --quiet, --silent
11273                   do not print progress messages
11274  -d, --debug      don't remove temporary files
11275      --recheck    update $as_me by reconfiguring in the same conditions
11276      --file=FILE[:TEMPLATE]
11277                   instantiate the configuration file FILE
11278      --header=FILE[:TEMPLATE]
11279                   instantiate the configuration header FILE
11280
11281Configuration files:
11282$config_files
11283
11284Configuration headers:
11285$config_headers
11286
11287Configuration commands:
11288$config_commands
11289
11290Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfsinfo/issues>."
11291
11292_ACEOF
11293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11294ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11295ac_cs_version="\\
11296xfsinfo config.status 1.0.6
11297configured by $0, generated by GNU Autoconf 2.69,
11298  with options \\"\$ac_cs_config\\"
11299
11300Copyright (C) 2012 Free Software Foundation, Inc.
11301This config.status script is free software; the Free Software Foundation
11302gives unlimited permission to copy, distribute and modify it."
11303
11304ac_pwd='$ac_pwd'
11305srcdir='$srcdir'
11306INSTALL='$INSTALL'
11307MKDIR_P='$MKDIR_P'
11308AWK='$AWK'
11309test -n "\$AWK" || AWK=awk
11310_ACEOF
11311
11312cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11313# The default lists apply if the user does not specify any file.
11314ac_need_defaults=:
11315while test $# != 0
11316do
11317  case $1 in
11318  --*=?*)
11319    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11320    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11321    ac_shift=:
11322    ;;
11323  --*=)
11324    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11325    ac_optarg=
11326    ac_shift=:
11327    ;;
11328  *)
11329    ac_option=$1
11330    ac_optarg=$2
11331    ac_shift=shift
11332    ;;
11333  esac
11334
11335  case $ac_option in
11336  # Handling of the options.
11337  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11338    ac_cs_recheck=: ;;
11339  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11340    $as_echo "$ac_cs_version"; exit ;;
11341  --config | --confi | --conf | --con | --co | --c )
11342    $as_echo "$ac_cs_config"; exit ;;
11343  --debug | --debu | --deb | --de | --d | -d )
11344    debug=: ;;
11345  --file | --fil | --fi | --f )
11346    $ac_shift
11347    case $ac_optarg in
11348    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11349    '') as_fn_error $? "missing file argument" ;;
11350    esac
11351    as_fn_append CONFIG_FILES " '$ac_optarg'"
11352    ac_need_defaults=false;;
11353  --header | --heade | --head | --hea )
11354    $ac_shift
11355    case $ac_optarg in
11356    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11357    esac
11358    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11359    ac_need_defaults=false;;
11360  --he | --h)
11361    # Conflict between --help and --header
11362    as_fn_error $? "ambiguous option: \`$1'
11363Try \`$0 --help' for more information.";;
11364  --help | --hel | -h )
11365    $as_echo "$ac_cs_usage"; exit ;;
11366  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11367  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11368    ac_cs_silent=: ;;
11369
11370  # This is an error.
11371  -*) as_fn_error $? "unrecognized option: \`$1'
11372Try \`$0 --help' for more information." ;;
11373
11374  *) as_fn_append ac_config_targets " $1"
11375     ac_need_defaults=false ;;
11376
11377  esac
11378  shift
11379done
11380
11381ac_configure_extra_args=
11382
11383if $ac_cs_silent; then
11384  exec 6>/dev/null
11385  ac_configure_extra_args="$ac_configure_extra_args --silent"
11386fi
11387
11388_ACEOF
11389cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11390if \$ac_cs_recheck; then
11391  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11392  shift
11393  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11394  CONFIG_SHELL='$SHELL'
11395  export CONFIG_SHELL
11396  exec "\$@"
11397fi
11398
11399_ACEOF
11400cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11401exec 5>>config.log
11402{
11403  echo
11404  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11405## Running $as_me. ##
11406_ASBOX
11407  $as_echo "$ac_log"
11408} >&5
11409
11410_ACEOF
11411cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11412#
11413# INIT-COMMANDS
11414#
11415AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11416
11417_ACEOF
11418
11419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11420
11421# Handling of arguments.
11422for ac_config_target in $ac_config_targets
11423do
11424  case $ac_config_target in
11425    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11426    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11427    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11428    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11429
11430  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11431  esac
11432done
11433
11434
11435# If the user did not use the arguments to specify the items to instantiate,
11436# then the envvar interface is used.  Set only those that are not.
11437# We use the long form for the default assignment because of an extremely
11438# bizarre bug on SunOS 4.1.3.
11439if $ac_need_defaults; then
11440  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11441  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11442  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11443fi
11444
11445# Have a temporary directory for convenience.  Make it in the build tree
11446# simply because there is no reason against having it here, and in addition,
11447# creating and moving files from /tmp can sometimes cause problems.
11448# Hook for its removal unless debugging.
11449# Note that there is a small window in which the directory will not be cleaned:
11450# after its creation but before its name has been assigned to `$tmp'.
11451$debug ||
11452{
11453  tmp= ac_tmp=
11454  trap 'exit_status=$?
11455  : "${ac_tmp:=$tmp}"
11456  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11457' 0
11458  trap 'as_fn_exit 1' 1 2 13 15
11459}
11460# Create a (secure) tmp directory for tmp files.
11461
11462{
11463  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11464  test -d "$tmp"
11465}  ||
11466{
11467  tmp=./conf$$-$RANDOM
11468  (umask 077 && mkdir "$tmp")
11469} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11470ac_tmp=$tmp
11471
11472# Set up the scripts for CONFIG_FILES section.
11473# No need to generate them if there are no CONFIG_FILES.
11474# This happens for instance with `./config.status config.h'.
11475if test -n "$CONFIG_FILES"; then
11476
11477
11478ac_cr=`echo X | tr X '\015'`
11479# On cygwin, bash can eat \r inside `` if the user requested igncr.
11480# But we know of no other shell where ac_cr would be empty at this
11481# point, so we can use a bashism as a fallback.
11482if test "x$ac_cr" = x; then
11483  eval ac_cr=\$\'\\r\'
11484fi
11485ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11486if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11487  ac_cs_awk_cr='\\r'
11488else
11489  ac_cs_awk_cr=$ac_cr
11490fi
11491
11492echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11493_ACEOF
11494
11495
11496{
11497  echo "cat >conf$$subs.awk <<_ACEOF" &&
11498  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11499  echo "_ACEOF"
11500} >conf$$subs.sh ||
11501  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11502ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11503ac_delim='%!_!# '
11504for ac_last_try in false false false false false :; do
11505  . ./conf$$subs.sh ||
11506    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11507
11508  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11509  if test $ac_delim_n = $ac_delim_num; then
11510    break
11511  elif $ac_last_try; then
11512    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11513  else
11514    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11515  fi
11516done
11517rm -f conf$$subs.sh
11518
11519cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11520cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11521_ACEOF
11522sed -n '
11523h
11524s/^/S["/; s/!.*/"]=/
11525p
11526g
11527s/^[^!]*!//
11528:repl
11529t repl
11530s/'"$ac_delim"'$//
11531t delim
11532:nl
11533h
11534s/\(.\{148\}\)..*/\1/
11535t more1
11536s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11537p
11538n
11539b repl
11540:more1
11541s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11542p
11543g
11544s/.\{148\}//
11545t nl
11546:delim
11547h
11548s/\(.\{148\}\)..*/\1/
11549t more2
11550s/["\\]/\\&/g; s/^/"/; s/$/"/
11551p
11552b
11553:more2
11554s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11555p
11556g
11557s/.\{148\}//
11558t delim
11559' <conf$$subs.awk | sed '
11560/^[^""]/{
11561  N
11562  s/\n//
11563}
11564' >>$CONFIG_STATUS || ac_write_fail=1
11565rm -f conf$$subs.awk
11566cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11567_ACAWK
11568cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11569  for (key in S) S_is_set[key] = 1
11570  FS = ""
11571
11572}
11573{
11574  line = $ 0
11575  nfields = split(line, field, "@")
11576  substed = 0
11577  len = length(field[1])
11578  for (i = 2; i < nfields; i++) {
11579    key = field[i]
11580    keylen = length(key)
11581    if (S_is_set[key]) {
11582      value = S[key]
11583      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11584      len += length(value) + length(field[++i])
11585      substed = 1
11586    } else
11587      len += 1 + keylen
11588  }
11589
11590  print line
11591}
11592
11593_ACAWK
11594_ACEOF
11595cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11596if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11597  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11598else
11599  cat
11600fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11601  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11602_ACEOF
11603
11604# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11605# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11606# trailing colons and then remove the whole line if VPATH becomes empty
11607# (actually we leave an empty line to preserve line numbers).
11608if test "x$srcdir" = x.; then
11609  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11610h
11611s///
11612s/^/:/
11613s/[	 ]*$/:/
11614s/:\$(srcdir):/:/g
11615s/:\${srcdir}:/:/g
11616s/:@srcdir@:/:/g
11617s/^:*//
11618s/:*$//
11619x
11620s/\(=[	 ]*\).*/\1/
11621G
11622s/\n//
11623s/^[^=]*=[	 ]*$//
11624}'
11625fi
11626
11627cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11628fi # test -n "$CONFIG_FILES"
11629
11630# Set up the scripts for CONFIG_HEADERS section.
11631# No need to generate them if there are no CONFIG_HEADERS.
11632# This happens for instance with `./config.status Makefile'.
11633if test -n "$CONFIG_HEADERS"; then
11634cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11635BEGIN {
11636_ACEOF
11637
11638# Transform confdefs.h into an awk script `defines.awk', embedded as
11639# here-document in config.status, that substitutes the proper values into
11640# config.h.in to produce config.h.
11641
11642# Create a delimiter string that does not exist in confdefs.h, to ease
11643# handling of long lines.
11644ac_delim='%!_!# '
11645for ac_last_try in false false :; do
11646  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11647  if test -z "$ac_tt"; then
11648    break
11649  elif $ac_last_try; then
11650    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11651  else
11652    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11653  fi
11654done
11655
11656# For the awk script, D is an array of macro values keyed by name,
11657# likewise P contains macro parameters if any.  Preserve backslash
11658# newline sequences.
11659
11660ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11661sed -n '
11662s/.\{148\}/&'"$ac_delim"'/g
11663t rset
11664:rset
11665s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11666t def
11667d
11668:def
11669s/\\$//
11670t bsnl
11671s/["\\]/\\&/g
11672s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11673D["\1"]=" \3"/p
11674s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11675d
11676:bsnl
11677s/["\\]/\\&/g
11678s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11679D["\1"]=" \3\\\\\\n"\\/p
11680t cont
11681s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11682t cont
11683d
11684:cont
11685n
11686s/.\{148\}/&'"$ac_delim"'/g
11687t clear
11688:clear
11689s/\\$//
11690t bsnlc
11691s/["\\]/\\&/g; s/^/"/; s/$/"/p
11692d
11693:bsnlc
11694s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11695b cont
11696' <confdefs.h | sed '
11697s/'"$ac_delim"'/"\\\
11698"/g' >>$CONFIG_STATUS || ac_write_fail=1
11699
11700cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11701  for (key in D) D_is_set[key] = 1
11702  FS = ""
11703}
11704/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11705  line = \$ 0
11706  split(line, arg, " ")
11707  if (arg[1] == "#") {
11708    defundef = arg[2]
11709    mac1 = arg[3]
11710  } else {
11711    defundef = substr(arg[1], 2)
11712    mac1 = arg[2]
11713  }
11714  split(mac1, mac2, "(") #)
11715  macro = mac2[1]
11716  prefix = substr(line, 1, index(line, defundef) - 1)
11717  if (D_is_set[macro]) {
11718    # Preserve the white space surrounding the "#".
11719    print prefix "define", macro P[macro] D[macro]
11720    next
11721  } else {
11722    # Replace #undef with comments.  This is necessary, for example,
11723    # in the case of _POSIX_SOURCE, which is predefined and required
11724    # on some systems where configure will not decide to define it.
11725    if (defundef == "undef") {
11726      print "/*", prefix defundef, macro, "*/"
11727      next
11728    }
11729  }
11730}
11731{ print }
11732_ACAWK
11733_ACEOF
11734cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11735  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11736fi # test -n "$CONFIG_HEADERS"
11737
11738
11739eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11740shift
11741for ac_tag
11742do
11743  case $ac_tag in
11744  :[FHLC]) ac_mode=$ac_tag; continue;;
11745  esac
11746  case $ac_mode$ac_tag in
11747  :[FHL]*:*);;
11748  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11749  :[FH]-) ac_tag=-:-;;
11750  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11751  esac
11752  ac_save_IFS=$IFS
11753  IFS=:
11754  set x $ac_tag
11755  IFS=$ac_save_IFS
11756  shift
11757  ac_file=$1
11758  shift
11759
11760  case $ac_mode in
11761  :L) ac_source=$1;;
11762  :[FH])
11763    ac_file_inputs=
11764    for ac_f
11765    do
11766      case $ac_f in
11767      -) ac_f="$ac_tmp/stdin";;
11768      *) # Look for the file first in the build tree, then in the source tree
11769	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11770	 # because $ac_f cannot contain `:'.
11771	 test -f "$ac_f" ||
11772	   case $ac_f in
11773	   [\\/$]*) false;;
11774	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11775	   esac ||
11776	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11777      esac
11778      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11779      as_fn_append ac_file_inputs " '$ac_f'"
11780    done
11781
11782    # Let's still pretend it is `configure' which instantiates (i.e., don't
11783    # use $as_me), people would be surprised to read:
11784    #    /* config.h.  Generated by config.status.  */
11785    configure_input='Generated from '`
11786	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11787	`' by configure.'
11788    if test x"$ac_file" != x-; then
11789      configure_input="$ac_file.  $configure_input"
11790      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11791$as_echo "$as_me: creating $ac_file" >&6;}
11792    fi
11793    # Neutralize special characters interpreted by sed in replacement strings.
11794    case $configure_input in #(
11795    *\&* | *\|* | *\\* )
11796       ac_sed_conf_input=`$as_echo "$configure_input" |
11797       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11798    *) ac_sed_conf_input=$configure_input;;
11799    esac
11800
11801    case $ac_tag in
11802    *:-:* | *:-) cat >"$ac_tmp/stdin" \
11803      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11804    esac
11805    ;;
11806  esac
11807
11808  ac_dir=`$as_dirname -- "$ac_file" ||
11809$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11810	 X"$ac_file" : 'X\(//\)[^/]' \| \
11811	 X"$ac_file" : 'X\(//\)$' \| \
11812	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11813$as_echo X"$ac_file" |
11814    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11815	    s//\1/
11816	    q
11817	  }
11818	  /^X\(\/\/\)[^/].*/{
11819	    s//\1/
11820	    q
11821	  }
11822	  /^X\(\/\/\)$/{
11823	    s//\1/
11824	    q
11825	  }
11826	  /^X\(\/\).*/{
11827	    s//\1/
11828	    q
11829	  }
11830	  s/.*/./; q'`
11831  as_dir="$ac_dir"; as_fn_mkdir_p
11832  ac_builddir=.
11833
11834case "$ac_dir" in
11835.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11836*)
11837  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11838  # A ".." for each directory in $ac_dir_suffix.
11839  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11840  case $ac_top_builddir_sub in
11841  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11842  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11843  esac ;;
11844esac
11845ac_abs_top_builddir=$ac_pwd
11846ac_abs_builddir=$ac_pwd$ac_dir_suffix
11847# for backward compatibility:
11848ac_top_builddir=$ac_top_build_prefix
11849
11850case $srcdir in
11851  .)  # We are building in place.
11852    ac_srcdir=.
11853    ac_top_srcdir=$ac_top_builddir_sub
11854    ac_abs_top_srcdir=$ac_pwd ;;
11855  [\\/]* | ?:[\\/]* )  # Absolute name.
11856    ac_srcdir=$srcdir$ac_dir_suffix;
11857    ac_top_srcdir=$srcdir
11858    ac_abs_top_srcdir=$srcdir ;;
11859  *) # Relative name.
11860    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11861    ac_top_srcdir=$ac_top_build_prefix$srcdir
11862    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11863esac
11864ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11865
11866
11867  case $ac_mode in
11868  :F)
11869  #
11870  # CONFIG_FILE
11871  #
11872
11873  case $INSTALL in
11874  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11875  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11876  esac
11877  ac_MKDIR_P=$MKDIR_P
11878  case $MKDIR_P in
11879  [\\/$]* | ?:[\\/]* ) ;;
11880  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11881  esac
11882_ACEOF
11883
11884cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11885# If the template does not know about datarootdir, expand it.
11886# FIXME: This hack should be removed a few years after 2.60.
11887ac_datarootdir_hack=; ac_datarootdir_seen=
11888ac_sed_dataroot='
11889/datarootdir/ {
11890  p
11891  q
11892}
11893/@datadir@/p
11894/@docdir@/p
11895/@infodir@/p
11896/@localedir@/p
11897/@mandir@/p'
11898case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11899*datarootdir*) ac_datarootdir_seen=yes;;
11900*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11901  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11902$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11903_ACEOF
11904cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11905  ac_datarootdir_hack='
11906  s&@datadir@&$datadir&g
11907  s&@docdir@&$docdir&g
11908  s&@infodir@&$infodir&g
11909  s&@localedir@&$localedir&g
11910  s&@mandir@&$mandir&g
11911  s&\\\${datarootdir}&$datarootdir&g' ;;
11912esac
11913_ACEOF
11914
11915# Neutralize VPATH when `$srcdir' = `.'.
11916# Shell code in configure.ac might set extrasub.
11917# FIXME: do we really want to maintain this feature?
11918cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11919ac_sed_extra="$ac_vpsub
11920$extrasub
11921_ACEOF
11922cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11923:t
11924/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11925s|@configure_input@|$ac_sed_conf_input|;t t
11926s&@top_builddir@&$ac_top_builddir_sub&;t t
11927s&@top_build_prefix@&$ac_top_build_prefix&;t t
11928s&@srcdir@&$ac_srcdir&;t t
11929s&@abs_srcdir@&$ac_abs_srcdir&;t t
11930s&@top_srcdir@&$ac_top_srcdir&;t t
11931s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11932s&@builddir@&$ac_builddir&;t t
11933s&@abs_builddir@&$ac_abs_builddir&;t t
11934s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11935s&@INSTALL@&$ac_INSTALL&;t t
11936s&@MKDIR_P@&$ac_MKDIR_P&;t t
11937$ac_datarootdir_hack
11938"
11939eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11940  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11941
11942test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11943  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11944  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
11945      "$ac_tmp/out"`; test -z "$ac_out"; } &&
11946  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11947which seems to be undefined.  Please make sure it is defined" >&5
11948$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11949which seems to be undefined.  Please make sure it is defined" >&2;}
11950
11951  rm -f "$ac_tmp/stdin"
11952  case $ac_file in
11953  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11954  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11955  esac \
11956  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11957 ;;
11958  :H)
11959  #
11960  # CONFIG_HEADER
11961  #
11962  if test x"$ac_file" != x-; then
11963    {
11964      $as_echo "/* $configure_input  */" \
11965      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11966    } >"$ac_tmp/config.h" \
11967      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11968    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11969      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11970$as_echo "$as_me: $ac_file is unchanged" >&6;}
11971    else
11972      rm -f "$ac_file"
11973      mv "$ac_tmp/config.h" "$ac_file" \
11974	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
11975    fi
11976  else
11977    $as_echo "/* $configure_input  */" \
11978      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11979      || as_fn_error $? "could not create -" "$LINENO" 5
11980  fi
11981# Compute "$ac_file"'s index in $config_headers.
11982_am_arg="$ac_file"
11983_am_stamp_count=1
11984for _am_header in $config_headers :; do
11985  case $_am_header in
11986    $_am_arg | $_am_arg:* )
11987      break ;;
11988    * )
11989      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11990  esac
11991done
11992echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11993$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11994	 X"$_am_arg" : 'X\(//\)[^/]' \| \
11995	 X"$_am_arg" : 'X\(//\)$' \| \
11996	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11997$as_echo X"$_am_arg" |
11998    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11999	    s//\1/
12000	    q
12001	  }
12002	  /^X\(\/\/\)[^/].*/{
12003	    s//\1/
12004	    q
12005	  }
12006	  /^X\(\/\/\)$/{
12007	    s//\1/
12008	    q
12009	  }
12010	  /^X\(\/\).*/{
12011	    s//\1/
12012	    q
12013	  }
12014	  s/.*/./; q'`/stamp-h$_am_stamp_count
12015 ;;
12016
12017  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12018$as_echo "$as_me: executing $ac_file commands" >&6;}
12019 ;;
12020  esac
12021
12022
12023  case $ac_file$ac_mode in
12024    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12025  # Older Autoconf quotes --file arguments for eval, but not when files
12026  # are listed without --file.  Let's play safe and only enable the eval
12027  # if we detect the quoting.
12028  case $CONFIG_FILES in
12029  *\'*) eval set x "$CONFIG_FILES" ;;
12030  *)   set x $CONFIG_FILES ;;
12031  esac
12032  shift
12033  for mf
12034  do
12035    # Strip MF so we end up with the name of the file.
12036    mf=`echo "$mf" | sed -e 's/:.*$//'`
12037    # Check whether this is an Automake generated Makefile or not.
12038    # We used to match only the files named 'Makefile.in', but
12039    # some people rename them; so instead we look at the file content.
12040    # Grep'ing the first line is not enough: some people post-process
12041    # each Makefile.in and add a new line on top of each file to say so.
12042    # Grep'ing the whole file is not good either: AIX grep has a line
12043    # limit of 2048, but all sed's we know have understand at least 4000.
12044    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12045      dirpart=`$as_dirname -- "$mf" ||
12046$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12047	 X"$mf" : 'X\(//\)[^/]' \| \
12048	 X"$mf" : 'X\(//\)$' \| \
12049	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12050$as_echo X"$mf" |
12051    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12052	    s//\1/
12053	    q
12054	  }
12055	  /^X\(\/\/\)[^/].*/{
12056	    s//\1/
12057	    q
12058	  }
12059	  /^X\(\/\/\)$/{
12060	    s//\1/
12061	    q
12062	  }
12063	  /^X\(\/\).*/{
12064	    s//\1/
12065	    q
12066	  }
12067	  s/.*/./; q'`
12068    else
12069      continue
12070    fi
12071    # Extract the definition of DEPDIR, am__include, and am__quote
12072    # from the Makefile without running 'make'.
12073    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12074    test -z "$DEPDIR" && continue
12075    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12076    test -z "$am__include" && continue
12077    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12078    # Find all dependency output files, they are included files with
12079    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12080    # simplest approach to changing $(DEPDIR) to its actual value in the
12081    # expansion.
12082    for file in `sed -n "
12083      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12084	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12085      # Make sure the directory exists.
12086      test -f "$dirpart/$file" && continue
12087      fdir=`$as_dirname -- "$file" ||
12088$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12089	 X"$file" : 'X\(//\)[^/]' \| \
12090	 X"$file" : 'X\(//\)$' \| \
12091	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12092$as_echo X"$file" |
12093    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12094	    s//\1/
12095	    q
12096	  }
12097	  /^X\(\/\/\)[^/].*/{
12098	    s//\1/
12099	    q
12100	  }
12101	  /^X\(\/\/\)$/{
12102	    s//\1/
12103	    q
12104	  }
12105	  /^X\(\/\).*/{
12106	    s//\1/
12107	    q
12108	  }
12109	  s/.*/./; q'`
12110      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12111      # echo "creating $dirpart/$file"
12112      echo '# dummy' > "$dirpart/$file"
12113    done
12114  done
12115}
12116 ;;
12117
12118  esac
12119done # for ac_tag
12120
12121
12122as_fn_exit 0
12123_ACEOF
12124ac_clean_files=$ac_clean_files_save
12125
12126test $ac_write_fail = 0 ||
12127  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12128
12129
12130# configure is writing to config.log, and then calls config.status.
12131# config.status does its own redirection, appending to config.log.
12132# Unfortunately, on DOS this fails, as config.log is still kept open
12133# by configure, so config.status won't be able to write to it; its
12134# output is simply discarded.  So we exec the FD to /dev/null,
12135# effectively closing config.log, so it can be properly (re)opened and
12136# appended to by config.status.  When coming back to configure, we
12137# need to make the FD available again.
12138if test "$no_create" != yes; then
12139  ac_cs_success=:
12140  ac_config_status_args=
12141  test "$silent" = yes &&
12142    ac_config_status_args="$ac_config_status_args --quiet"
12143  exec 5>/dev/null
12144  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12145  exec 5>>config.log
12146  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12147  # would make configure fail if this is the last instruction.
12148  $ac_cs_success || as_fn_exit 1
12149fi
12150if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12151  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12152$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12153fi
12154
12155