1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for listres 1.0.6.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/listres/-/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else case e in #(
29  e) case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as 'sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed 'exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144then :
145  emulate sh
146  NULLCMD=:
147  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148  # is contrary to our usage.  Disable this feature.
149  alias -g '\${1+\"\$@\"}'='\"\$@\"'
150  setopt NO_GLOB_SUBST
151else case e in #(
152  e) case \`(set -o) 2>/dev/null\` in #(
153  *posix*) :
154    set -o posix ;; #(
155  *) :
156     ;;
157esac ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else case e in #(
176  e) exitcode=1; echo positional parameters were not saved. ;;
177esac
178fi
179test x\$exitcode = x0 || exit 1
180blah=\$(echo \$(echo blah))
181test x\"\$blah\" = xblah || exit 1
182test -x / || exit 1"
183  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187test \$(( 1 + 1 )) = 2 || exit 1"
188  if (eval "$as_required") 2>/dev/null
189then :
190  as_have_required=yes
191else case e in #(
192  e) as_have_required=no ;;
193esac
194fi
195  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196then :
197
198else case e in #(
199  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200as_found=false
201for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202do
203  IFS=$as_save_IFS
204  case $as_dir in #(((
205    '') as_dir=./ ;;
206    */) ;;
207    *) as_dir=$as_dir/ ;;
208  esac
209  as_found=:
210  case $as_dir in #(
211	 /*)
212	   for as_base in sh bash ksh sh5; do
213	     # Try only shells that exist, to save several forks.
214	     as_shell=$as_dir$as_base
215	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217then :
218  CONFIG_SHELL=$as_shell as_have_required=yes
219		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220then :
221  break 2
222fi
223fi
224	   done;;
225       esac
226  as_found=false
227done
228IFS=$as_save_IFS
229if $as_found
230then :
231
232else case e in #(
233  e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235then :
236  CONFIG_SHELL=$SHELL as_have_required=yes
237fi ;;
238esac
239fi
240
241
242      if test "x$CONFIG_SHELL" != x
243then :
244  export CONFIG_SHELL
245             # We cannot yet assume a decent shell, so we have to provide a
246# neutralization value for shells without unset; and this also
247# works around shells that cannot unset nonexistent variables.
248# Preserve -v and -x to the replacement shell.
249BASH_ENV=/dev/null
250ENV=/dev/null
251(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252case $- in # ((((
253  *v*x* | *x*v* ) as_opts=-vx ;;
254  *v* ) as_opts=-v ;;
255  *x* ) as_opts=-x ;;
256  * ) as_opts= ;;
257esac
258exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259# Admittedly, this is quite paranoid, since all the known shells bail
260# out after a failed 'exec'.
261printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262exit 255
263fi
264
265    if test x$as_have_required = xno
266then :
267  printf "%s\n" "$0: This script requires a shell more modern than all"
268  printf "%s\n" "$0: the shells that I found on your system."
269  if test ${ZSH_VERSION+y} ; then
270    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272  else
273    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
274$0: https://gitlab.freedesktop.org/xorg/app/listres/-/issues
275$0: about your system, including any error possibly output
276$0: before this message. Then install a modern shell, or
277$0: manually run the script under such a shell if you do
278$0: have one."
279  fi
280  exit 1
281fi ;;
282esac
283fi
284fi
285SHELL=${CONFIG_SHELL-/bin/sh}
286export SHELL
287# Unset more variables known to interfere with behavior of common tools.
288CLICOLOR_FORCE= GREP_OPTIONS=
289unset CLICOLOR_FORCE GREP_OPTIONS
290
291## --------------------- ##
292## M4sh Shell Functions. ##
293## --------------------- ##
294# as_fn_unset VAR
295# ---------------
296# Portably unset VAR.
297as_fn_unset ()
298{
299  { eval $1=; unset $1;}
300}
301as_unset=as_fn_unset
302
303
304# as_fn_set_status STATUS
305# -----------------------
306# Set $? to STATUS, without forking.
307as_fn_set_status ()
308{
309  return $1
310} # as_fn_set_status
311
312# as_fn_exit STATUS
313# -----------------
314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315as_fn_exit ()
316{
317  set +e
318  as_fn_set_status $1
319  exit $1
320} # as_fn_exit
321
322# as_fn_mkdir_p
323# -------------
324# Create "$as_dir" as a directory, including parents if necessary.
325as_fn_mkdir_p ()
326{
327
328  case $as_dir in #(
329  -*) as_dir=./$as_dir;;
330  esac
331  test -d "$as_dir" || eval $as_mkdir_p || {
332    as_dirs=
333    while :; do
334      case $as_dir in #(
335      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336      *) as_qdir=$as_dir;;
337      esac
338      as_dirs="'$as_qdir' $as_dirs"
339      as_dir=`$as_dirname -- "$as_dir" ||
340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341	 X"$as_dir" : 'X\(//\)[^/]' \| \
342	 X"$as_dir" : 'X\(//\)$' \| \
343	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344printf "%s\n" X"$as_dir" |
345    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346	    s//\1/
347	    q
348	  }
349	  /^X\(\/\/\)[^/].*/{
350	    s//\1/
351	    q
352	  }
353	  /^X\(\/\/\)$/{
354	    s//\1/
355	    q
356	  }
357	  /^X\(\/\).*/{
358	    s//\1/
359	    q
360	  }
361	  s/.*/./; q'`
362      test -d "$as_dir" && break
363    done
364    test -z "$as_dirs" || eval "mkdir $as_dirs"
365  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368} # as_fn_mkdir_p
369
370# as_fn_executable_p FILE
371# -----------------------
372# Test if FILE is an executable regular file.
373as_fn_executable_p ()
374{
375  test -f "$1" && test -x "$1"
376} # as_fn_executable_p
377# as_fn_append VAR VALUE
378# ----------------------
379# Append the text in VALUE to the end of the definition contained in VAR. Take
380# advantage of any shell optimizations that allow amortized linear growth over
381# repeated appends, instead of the typical quadratic growth present in naive
382# implementations.
383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else case e in #(
390  e) as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  } ;;
394esac
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
403then :
404  eval 'as_fn_arith ()
405  {
406    as_val=$(( $* ))
407  }'
408else case e in #(
409  e) as_fn_arith ()
410  {
411    as_val=`expr "$@" || test $? -eq 1`
412  } ;;
413esac
414fi # as_fn_arith
415
416
417# as_fn_error STATUS ERROR [LINENO LOG_FD]
418# ----------------------------------------
419# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
420# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
421# script with STATUS, using 1 if that was 0.
422as_fn_error ()
423{
424  as_status=$1; test $as_status -eq 0 && as_status=1
425  if test "$4"; then
426    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
427    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
428  fi
429  printf "%s\n" "$as_me: error: $2" >&2
430  as_fn_exit $as_status
431} # as_fn_error
432
433if expr a : '\(a\)' >/dev/null 2>&1 &&
434   test "X`expr 00001 : '.*\(...\)'`" = X001; then
435  as_expr=expr
436else
437  as_expr=false
438fi
439
440if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
441  as_basename=basename
442else
443  as_basename=false
444fi
445
446if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
447  as_dirname=dirname
448else
449  as_dirname=false
450fi
451
452as_me=`$as_basename -- "$0" ||
453$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
454	 X"$0" : 'X\(//\)$' \| \
455	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
456printf "%s\n" X/"$0" |
457    sed '/^.*\/\([^/][^/]*\)\/*$/{
458	    s//\1/
459	    q
460	  }
461	  /^X\/\(\/\/\)$/{
462	    s//\1/
463	    q
464	  }
465	  /^X\/\(\/\).*/{
466	    s//\1/
467	    q
468	  }
469	  s/.*/./; q'`
470
471# Avoid depending upon Character Ranges.
472as_cr_letters='abcdefghijklmnopqrstuvwxyz'
473as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
474as_cr_Letters=$as_cr_letters$as_cr_LETTERS
475as_cr_digits='0123456789'
476as_cr_alnum=$as_cr_Letters$as_cr_digits
477
478
479  as_lineno_1=$LINENO as_lineno_1a=$LINENO
480  as_lineno_2=$LINENO as_lineno_2a=$LINENO
481  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
482  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
483  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
484  sed -n '
485    p
486    /[$]LINENO/=
487  ' <$as_myself |
488    sed '
489      t clear
490      :clear
491      s/[$]LINENO.*/&-/
492      t lineno
493      b
494      :lineno
495      N
496      :loop
497      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
498      t loop
499      s/-\n.*//
500    ' >$as_me.lineno &&
501  chmod +x "$as_me.lineno" ||
502    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
503
504  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
505  # already done that, so ensure we don't try to do so again and fall
506  # in an infinite loop.  This has already happened in practice.
507  _as_can_reexec=no; export _as_can_reexec
508  # Don't try to exec as it changes $[0], causing all sort of problems
509  # (the dirname of $[0] is not the place where we might find the
510  # original and so on.  Autoconf is especially sensitive to this).
511  . "./$as_me.lineno"
512  # Exit status is that of the last command.
513  exit
514}
515
516
517# Determine whether it's possible to make 'echo' print without a newline.
518# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
519# for compatibility with existing Makefiles.
520ECHO_C= ECHO_N= ECHO_T=
521case `echo -n x` in #(((((
522-n*)
523  case `echo 'xy\c'` in
524  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
525  xy)  ECHO_C='\c';;
526  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
527       ECHO_T='	';;
528  esac;;
529*)
530  ECHO_N='-n';;
531esac
532
533# For backward compatibility with old third-party macros, we provide
534# the shell variables $as_echo and $as_echo_n.  New code should use
535# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
536as_echo='printf %s\n'
537as_echo_n='printf %s'
538
539rm -f conf$$ conf$$.exe conf$$.file
540if test -d conf$$.dir; then
541  rm -f conf$$.dir/conf$$.file
542else
543  rm -f conf$$.dir
544  mkdir conf$$.dir 2>/dev/null
545fi
546if (echo >conf$$.file) 2>/dev/null; then
547  if ln -s conf$$.file conf$$ 2>/dev/null; then
548    as_ln_s='ln -s'
549    # ... but there are two gotchas:
550    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
551    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
552    # In both cases, we have to default to 'cp -pR'.
553    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
554      as_ln_s='cp -pR'
555  elif ln conf$$.file conf$$ 2>/dev/null; then
556    as_ln_s=ln
557  else
558    as_ln_s='cp -pR'
559  fi
560else
561  as_ln_s='cp -pR'
562fi
563rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
564rmdir conf$$.dir 2>/dev/null
565
566if mkdir -p . 2>/dev/null; then
567  as_mkdir_p='mkdir -p "$as_dir"'
568else
569  test -d ./-p && rmdir ./-p
570  as_mkdir_p=false
571fi
572
573as_test_x='test -x'
574as_executable_p=as_fn_executable_p
575
576# Sed expression to map a string onto a valid CPP name.
577as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
578as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
579
580# Sed expression to map a string onto a valid variable name.
581as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
582as_tr_sh="eval sed '$as_sed_sh'" # deprecated
583
584
585test -n "$DJDIR" || exec 7<&0 </dev/null
586exec 6>&1
587
588# Name of the host.
589# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
590# so uname gets run too.
591ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
592
593#
594# Initializations.
595#
596ac_default_prefix=/usr/local
597ac_clean_files=
598ac_config_libobj_dir=.
599LIBOBJS=
600cross_compiling=no
601subdirs=
602MFLAGS=
603MAKEFLAGS=
604
605# Identity of this package.
606PACKAGE_NAME='listres'
607PACKAGE_TARNAME='listres'
608PACKAGE_VERSION='1.0.6'
609PACKAGE_STRING='listres 1.0.6'
610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/listres/-/issues'
611PACKAGE_URL=''
612
613ac_unique_file="Makefile.am"
614# Factoring default headers for most tests.
615ac_includes_default="\
616#include <stddef.h>
617#ifdef HAVE_STDIO_H
618# include <stdio.h>
619#endif
620#ifdef HAVE_STDLIB_H
621# include <stdlib.h>
622#endif
623#ifdef HAVE_STRING_H
624# include <string.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_STRINGS_H
633# include <strings.h>
634#endif
635#ifdef HAVE_SYS_TYPES_H
636# include <sys/types.h>
637#endif
638#ifdef HAVE_SYS_STAT_H
639# include <sys/stat.h>
640#endif
641#ifdef HAVE_UNISTD_H
642# include <unistd.h>
643#endif"
644
645ac_header_c_list=
646ac_subst_vars='am__EXEEXT_FALSE
647am__EXEEXT_TRUE
648LTLIBOBJS
649LIBOBJS
650LISTRES_LIBS
651LISTRES_CFLAGS
652MAN_SUBSTS
653XORG_MAN_PAGE
654ADMIN_MAN_DIR
655DRIVER_MAN_DIR
656MISC_MAN_DIR
657FILE_MAN_DIR
658LIB_MAN_DIR
659APP_MAN_DIR
660ADMIN_MAN_SUFFIX
661DRIVER_MAN_SUFFIX
662MISC_MAN_SUFFIX
663FILE_MAN_SUFFIX
664LIB_MAN_SUFFIX
665APP_MAN_SUFFIX
666SED
667host_os
668host_vendor
669host_cpu
670host
671build_os
672build_vendor
673build_cpu
674build
675INSTALL_CMD
676PKG_CONFIG_LIBDIR
677PKG_CONFIG_PATH
678PKG_CONFIG
679CHANGELOG_CMD
680STRICT_CFLAGS
681CWARNFLAGS
682BASE_CFLAGS
683am__fastdepCC_FALSE
684am__fastdepCC_TRUE
685CCDEPMODE
686am__nodep
687AMDEPBACKSLASH
688AMDEP_FALSE
689AMDEP_TRUE
690am__include
691DEPDIR
692OBJEXT
693EXEEXT
694ac_ct_CC
695CPPFLAGS
696LDFLAGS
697CFLAGS
698CC
699AM_BACKSLASH
700AM_DEFAULT_VERBOSITY
701AM_DEFAULT_V
702AM_V
703CSCOPE
704ETAGS
705CTAGS
706am__untar
707am__tar
708AMTAR
709am__leading_dot
710SET_MAKE
711AWK
712mkdir_p
713MKDIR_P
714INSTALL_STRIP_PROGRAM
715STRIP
716install_sh
717MAKEINFO
718AUTOHEADER
719AUTOMAKE
720AUTOCONF
721ACLOCAL
722VERSION
723PACKAGE
724CYGPATH_W
725am__isrc
726INSTALL_DATA
727INSTALL_SCRIPT
728INSTALL_PROGRAM
729target_alias
730host_alias
731build_alias
732LIBS
733ECHO_T
734ECHO_N
735ECHO_C
736DEFS
737mandir
738localedir
739libdir
740psdir
741pdfdir
742dvidir
743htmldir
744infodir
745docdir
746oldincludedir
747includedir
748runstatedir
749localstatedir
750sharedstatedir
751sysconfdir
752datadir
753datarootdir
754libexecdir
755sbindir
756bindir
757program_transform_name
758prefix
759exec_prefix
760PACKAGE_URL
761PACKAGE_BUGREPORT
762PACKAGE_STRING
763PACKAGE_VERSION
764PACKAGE_TARNAME
765PACKAGE_NAME
766PATH_SEPARATOR
767SHELL
768am__quote'
769ac_subst_files=''
770ac_user_opts='
771enable_option_checking
772enable_silent_rules
773enable_dependency_tracking
774enable_selective_werror
775enable_strict_compilation
776'
777      ac_precious_vars='build_alias
778host_alias
779target_alias
780CC
781CFLAGS
782LDFLAGS
783LIBS
784CPPFLAGS
785PKG_CONFIG
786PKG_CONFIG_PATH
787PKG_CONFIG_LIBDIR
788LISTRES_CFLAGS
789LISTRES_LIBS'
790
791
792# Initialize some variables set by options.
793ac_init_help=
794ac_init_version=false
795ac_unrecognized_opts=
796ac_unrecognized_sep=
797# The variables have the same names as the options, with
798# dashes changed to underlines.
799cache_file=/dev/null
800exec_prefix=NONE
801no_create=
802no_recursion=
803prefix=NONE
804program_prefix=NONE
805program_suffix=NONE
806program_transform_name=s,x,x,
807silent=
808site=
809srcdir=
810verbose=
811x_includes=NONE
812x_libraries=NONE
813
814# Installation directory options.
815# These are left unexpanded so users can "make install exec_prefix=/foo"
816# and all the variables that are supposed to be based on exec_prefix
817# by default will actually change.
818# Use braces instead of parens because sh, perl, etc. also accept them.
819# (The list follows the same order as the GNU Coding Standards.)
820bindir='${exec_prefix}/bin'
821sbindir='${exec_prefix}/sbin'
822libexecdir='${exec_prefix}/libexec'
823datarootdir='${prefix}/share'
824datadir='${datarootdir}'
825sysconfdir='${prefix}/etc'
826sharedstatedir='${prefix}/com'
827localstatedir='${prefix}/var'
828runstatedir='${localstatedir}/run'
829includedir='${prefix}/include'
830oldincludedir='/usr/include'
831docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832infodir='${datarootdir}/info'
833htmldir='${docdir}'
834dvidir='${docdir}'
835pdfdir='${docdir}'
836psdir='${docdir}'
837libdir='${exec_prefix}/lib'
838localedir='${datarootdir}/locale'
839mandir='${datarootdir}/man'
840
841ac_prev=
842ac_dashdash=
843for ac_option
844do
845  # If the previous option needs an argument, assign it.
846  if test -n "$ac_prev"; then
847    eval $ac_prev=\$ac_option
848    ac_prev=
849    continue
850  fi
851
852  case $ac_option in
853  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854  *=)   ac_optarg= ;;
855  *)    ac_optarg=yes ;;
856  esac
857
858  case $ac_dashdash$ac_option in
859  --)
860    ac_dashdash=yes ;;
861
862  -bindir | --bindir | --bindi | --bind | --bin | --bi)
863    ac_prev=bindir ;;
864  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865    bindir=$ac_optarg ;;
866
867  -build | --build | --buil | --bui | --bu)
868    ac_prev=build_alias ;;
869  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
870    build_alias=$ac_optarg ;;
871
872  -cache-file | --cache-file | --cache-fil | --cache-fi \
873  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
874    ac_prev=cache_file ;;
875  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
876  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
877    cache_file=$ac_optarg ;;
878
879  --config-cache | -C)
880    cache_file=config.cache ;;
881
882  -datadir | --datadir | --datadi | --datad)
883    ac_prev=datadir ;;
884  -datadir=* | --datadir=* | --datadi=* | --datad=*)
885    datadir=$ac_optarg ;;
886
887  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
888  | --dataroo | --dataro | --datar)
889    ac_prev=datarootdir ;;
890  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
891  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
892    datarootdir=$ac_optarg ;;
893
894  -disable-* | --disable-*)
895    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
896    # Reject names that are not valid shell variable names.
897    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898      as_fn_error $? "invalid feature name: '$ac_useropt'"
899    ac_useropt_orig=$ac_useropt
900    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
901    case $ac_user_opts in
902      *"
903"enable_$ac_useropt"
904"*) ;;
905      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
906	 ac_unrecognized_sep=', ';;
907    esac
908    eval enable_$ac_useropt=no ;;
909
910  -docdir | --docdir | --docdi | --doc | --do)
911    ac_prev=docdir ;;
912  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913    docdir=$ac_optarg ;;
914
915  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916    ac_prev=dvidir ;;
917  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918    dvidir=$ac_optarg ;;
919
920  -enable-* | --enable-*)
921    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
922    # Reject names that are not valid shell variable names.
923    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924      as_fn_error $? "invalid feature name: '$ac_useropt'"
925    ac_useropt_orig=$ac_useropt
926    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
927    case $ac_user_opts in
928      *"
929"enable_$ac_useropt"
930"*) ;;
931      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
932	 ac_unrecognized_sep=', ';;
933    esac
934    eval enable_$ac_useropt=\$ac_optarg ;;
935
936  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
937  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
938  | --exec | --exe | --ex)
939    ac_prev=exec_prefix ;;
940  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
941  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
942  | --exec=* | --exe=* | --ex=*)
943    exec_prefix=$ac_optarg ;;
944
945  -gas | --gas | --ga | --g)
946    # Obsolete; use --with-gas.
947    with_gas=yes ;;
948
949  -help | --help | --hel | --he | -h)
950    ac_init_help=long ;;
951  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
952    ac_init_help=recursive ;;
953  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
954    ac_init_help=short ;;
955
956  -host | --host | --hos | --ho)
957    ac_prev=host_alias ;;
958  -host=* | --host=* | --hos=* | --ho=*)
959    host_alias=$ac_optarg ;;
960
961  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
962    ac_prev=htmldir ;;
963  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
964  | --ht=*)
965    htmldir=$ac_optarg ;;
966
967  -includedir | --includedir | --includedi | --included | --include \
968  | --includ | --inclu | --incl | --inc)
969    ac_prev=includedir ;;
970  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
971  | --includ=* | --inclu=* | --incl=* | --inc=*)
972    includedir=$ac_optarg ;;
973
974  -infodir | --infodir | --infodi | --infod | --info | --inf)
975    ac_prev=infodir ;;
976  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
977    infodir=$ac_optarg ;;
978
979  -libdir | --libdir | --libdi | --libd)
980    ac_prev=libdir ;;
981  -libdir=* | --libdir=* | --libdi=* | --libd=*)
982    libdir=$ac_optarg ;;
983
984  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
985  | --libexe | --libex | --libe)
986    ac_prev=libexecdir ;;
987  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
988  | --libexe=* | --libex=* | --libe=*)
989    libexecdir=$ac_optarg ;;
990
991  -localedir | --localedir | --localedi | --localed | --locale)
992    ac_prev=localedir ;;
993  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
994    localedir=$ac_optarg ;;
995
996  -localstatedir | --localstatedir | --localstatedi | --localstated \
997  | --localstate | --localstat | --localsta | --localst | --locals)
998    ac_prev=localstatedir ;;
999  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1000  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1001    localstatedir=$ac_optarg ;;
1002
1003  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1004    ac_prev=mandir ;;
1005  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1006    mandir=$ac_optarg ;;
1007
1008  -nfp | --nfp | --nf)
1009    # Obsolete; use --without-fp.
1010    with_fp=no ;;
1011
1012  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1013  | --no-cr | --no-c | -n)
1014    no_create=yes ;;
1015
1016  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1017  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1018    no_recursion=yes ;;
1019
1020  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1021  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1022  | --oldin | --oldi | --old | --ol | --o)
1023    ac_prev=oldincludedir ;;
1024  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1025  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1026  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1027    oldincludedir=$ac_optarg ;;
1028
1029  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1030    ac_prev=prefix ;;
1031  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1032    prefix=$ac_optarg ;;
1033
1034  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1035  | --program-pre | --program-pr | --program-p)
1036    ac_prev=program_prefix ;;
1037  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1038  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1039    program_prefix=$ac_optarg ;;
1040
1041  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1042  | --program-suf | --program-su | --program-s)
1043    ac_prev=program_suffix ;;
1044  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1045  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1046    program_suffix=$ac_optarg ;;
1047
1048  -program-transform-name | --program-transform-name \
1049  | --program-transform-nam | --program-transform-na \
1050  | --program-transform-n | --program-transform- \
1051  | --program-transform | --program-transfor \
1052  | --program-transfo | --program-transf \
1053  | --program-trans | --program-tran \
1054  | --progr-tra | --program-tr | --program-t)
1055    ac_prev=program_transform_name ;;
1056  -program-transform-name=* | --program-transform-name=* \
1057  | --program-transform-nam=* | --program-transform-na=* \
1058  | --program-transform-n=* | --program-transform-=* \
1059  | --program-transform=* | --program-transfor=* \
1060  | --program-transfo=* | --program-transf=* \
1061  | --program-trans=* | --program-tran=* \
1062  | --progr-tra=* | --program-tr=* | --program-t=*)
1063    program_transform_name=$ac_optarg ;;
1064
1065  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1066    ac_prev=pdfdir ;;
1067  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1068    pdfdir=$ac_optarg ;;
1069
1070  -psdir | --psdir | --psdi | --psd | --ps)
1071    ac_prev=psdir ;;
1072  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1073    psdir=$ac_optarg ;;
1074
1075  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076  | -silent | --silent | --silen | --sile | --sil)
1077    silent=yes ;;
1078
1079  -runstatedir | --runstatedir | --runstatedi | --runstated \
1080  | --runstate | --runstat | --runsta | --runst | --runs \
1081  | --run | --ru | --r)
1082    ac_prev=runstatedir ;;
1083  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1084  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1085  | --run=* | --ru=* | --r=*)
1086    runstatedir=$ac_optarg ;;
1087
1088  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089    ac_prev=sbindir ;;
1090  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091  | --sbi=* | --sb=*)
1092    sbindir=$ac_optarg ;;
1093
1094  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096  | --sharedst | --shareds | --shared | --share | --shar \
1097  | --sha | --sh)
1098    ac_prev=sharedstatedir ;;
1099  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102  | --sha=* | --sh=*)
1103    sharedstatedir=$ac_optarg ;;
1104
1105  -site | --site | --sit)
1106    ac_prev=site ;;
1107  -site=* | --site=* | --sit=*)
1108    site=$ac_optarg ;;
1109
1110  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111    ac_prev=srcdir ;;
1112  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113    srcdir=$ac_optarg ;;
1114
1115  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116  | --syscon | --sysco | --sysc | --sys | --sy)
1117    ac_prev=sysconfdir ;;
1118  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120    sysconfdir=$ac_optarg ;;
1121
1122  -target | --target | --targe | --targ | --tar | --ta | --t)
1123    ac_prev=target_alias ;;
1124  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125    target_alias=$ac_optarg ;;
1126
1127  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128    verbose=yes ;;
1129
1130  -version | --version | --versio | --versi | --vers | -V)
1131    ac_init_version=: ;;
1132
1133  -with-* | --with-*)
1134    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135    # Reject names that are not valid shell variable names.
1136    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137      as_fn_error $? "invalid package name: '$ac_useropt'"
1138    ac_useropt_orig=$ac_useropt
1139    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1140    case $ac_user_opts in
1141      *"
1142"with_$ac_useropt"
1143"*) ;;
1144      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1145	 ac_unrecognized_sep=', ';;
1146    esac
1147    eval with_$ac_useropt=\$ac_optarg ;;
1148
1149  -without-* | --without-*)
1150    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151    # Reject names that are not valid shell variable names.
1152    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153      as_fn_error $? "invalid package name: '$ac_useropt'"
1154    ac_useropt_orig=$ac_useropt
1155    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1156    case $ac_user_opts in
1157      *"
1158"with_$ac_useropt"
1159"*) ;;
1160      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1161	 ac_unrecognized_sep=', ';;
1162    esac
1163    eval with_$ac_useropt=no ;;
1164
1165  --x)
1166    # Obsolete; use --with-x.
1167    with_x=yes ;;
1168
1169  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170  | --x-incl | --x-inc | --x-in | --x-i)
1171    ac_prev=x_includes ;;
1172  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174    x_includes=$ac_optarg ;;
1175
1176  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178    ac_prev=x_libraries ;;
1179  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181    x_libraries=$ac_optarg ;;
1182
1183  -*) as_fn_error $? "unrecognized option: '$ac_option'
1184Try '$0 --help' for more information"
1185    ;;
1186
1187  *=*)
1188    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189    # Reject names that are not valid shell variable names.
1190    case $ac_envvar in #(
1191      '' | [0-9]* | *[!_$as_cr_alnum]* )
1192      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1193    esac
1194    eval $ac_envvar=\$ac_optarg
1195    export $ac_envvar ;;
1196
1197  *)
1198    # FIXME: should be removed in autoconf 3.0.
1199    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1200    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1202    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1203    ;;
1204
1205  esac
1206done
1207
1208if test -n "$ac_prev"; then
1209  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210  as_fn_error $? "missing argument to $ac_option"
1211fi
1212
1213if test -n "$ac_unrecognized_opts"; then
1214  case $enable_option_checking in
1215    no) ;;
1216    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1217    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1218  esac
1219fi
1220
1221# Check all directory arguments for consistency.
1222for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1223		datadir sysconfdir sharedstatedir localstatedir includedir \
1224		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1225		libdir localedir mandir runstatedir
1226do
1227  eval ac_val=\$$ac_var
1228  # Remove trailing slashes.
1229  case $ac_val in
1230    */ )
1231      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1232      eval $ac_var=\$ac_val;;
1233  esac
1234  # Be sure to have absolute directory names.
1235  case $ac_val in
1236    [\\/$]* | ?:[\\/]* )  continue;;
1237    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1238  esac
1239  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1240done
1241
1242# There might be people who depend on the old broken behavior: '$host'
1243# used to hold the argument of --host etc.
1244# FIXME: To remove some day.
1245build=$build_alias
1246host=$host_alias
1247target=$target_alias
1248
1249# FIXME: To remove some day.
1250if test "x$host_alias" != x; then
1251  if test "x$build_alias" = x; then
1252    cross_compiling=maybe
1253  elif test "x$build_alias" != "x$host_alias"; then
1254    cross_compiling=yes
1255  fi
1256fi
1257
1258ac_tool_prefix=
1259test -n "$host_alias" && ac_tool_prefix=$host_alias-
1260
1261test "$silent" = yes && exec 6>/dev/null
1262
1263
1264ac_pwd=`pwd` && test -n "$ac_pwd" &&
1265ac_ls_di=`ls -di .` &&
1266ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1267  as_fn_error $? "working directory cannot be determined"
1268test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1269  as_fn_error $? "pwd does not report name of working directory"
1270
1271
1272# Find the source files, if location was not specified.
1273if test -z "$srcdir"; then
1274  ac_srcdir_defaulted=yes
1275  # Try the directory containing this script, then the parent directory.
1276  ac_confdir=`$as_dirname -- "$as_myself" ||
1277$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1278	 X"$as_myself" : 'X\(//\)[^/]' \| \
1279	 X"$as_myself" : 'X\(//\)$' \| \
1280	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1281printf "%s\n" X"$as_myself" |
1282    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283	    s//\1/
1284	    q
1285	  }
1286	  /^X\(\/\/\)[^/].*/{
1287	    s//\1/
1288	    q
1289	  }
1290	  /^X\(\/\/\)$/{
1291	    s//\1/
1292	    q
1293	  }
1294	  /^X\(\/\).*/{
1295	    s//\1/
1296	    q
1297	  }
1298	  s/.*/./; q'`
1299  srcdir=$ac_confdir
1300  if test ! -r "$srcdir/$ac_unique_file"; then
1301    srcdir=..
1302  fi
1303else
1304  ac_srcdir_defaulted=no
1305fi
1306if test ! -r "$srcdir/$ac_unique_file"; then
1307  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1308  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1309fi
1310ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1311ac_abs_confdir=`(
1312	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1313	pwd)`
1314# When building in place, set srcdir=.
1315if test "$ac_abs_confdir" = "$ac_pwd"; then
1316  srcdir=.
1317fi
1318# Remove unnecessary trailing slashes from srcdir.
1319# Double slashes in file names in object file debugging info
1320# mess up M-x gdb in Emacs.
1321case $srcdir in
1322*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1323esac
1324for ac_var in $ac_precious_vars; do
1325  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1326  eval ac_env_${ac_var}_value=\$${ac_var}
1327  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1328  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1329done
1330
1331#
1332# Report the --help message.
1333#
1334if test "$ac_init_help" = "long"; then
1335  # Omit some internal or obsolete options to make the list less imposing.
1336  # This message is too long to be a string in the A/UX 3.1 sh.
1337  cat <<_ACEOF
1338'configure' configures listres 1.0.6 to adapt to many kinds of systems.
1339
1340Usage: $0 [OPTION]... [VAR=VALUE]...
1341
1342To assign environment variables (e.g., CC, CFLAGS...), specify them as
1343VAR=VALUE.  See below for descriptions of some of the useful variables.
1344
1345Defaults for the options are specified in brackets.
1346
1347Configuration:
1348  -h, --help              display this help and exit
1349      --help=short        display options specific to this package
1350      --help=recursive    display the short help of all the included packages
1351  -V, --version           display version information and exit
1352  -q, --quiet, --silent   do not print 'checking ...' messages
1353      --cache-file=FILE   cache test results in FILE [disabled]
1354  -C, --config-cache      alias for '--cache-file=config.cache'
1355  -n, --no-create         do not create output files
1356      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1357
1358Installation directories:
1359  --prefix=PREFIX         install architecture-independent files in PREFIX
1360                          [$ac_default_prefix]
1361  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1362                          [PREFIX]
1363
1364By default, 'make install' will install all the files in
1365'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1366an installation prefix other than '$ac_default_prefix' using '--prefix',
1367for instance '--prefix=\$HOME'.
1368
1369For better control, use the options below.
1370
1371Fine tuning of the installation directories:
1372  --bindir=DIR            user executables [EPREFIX/bin]
1373  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1374  --libexecdir=DIR        program executables [EPREFIX/libexec]
1375  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1376  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1377  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1378  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1379  --libdir=DIR            object code libraries [EPREFIX/lib]
1380  --includedir=DIR        C header files [PREFIX/include]
1381  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1382  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1383  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1384  --infodir=DIR           info documentation [DATAROOTDIR/info]
1385  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1386  --mandir=DIR            man documentation [DATAROOTDIR/man]
1387  --docdir=DIR            documentation root [DATAROOTDIR/doc/listres]
1388  --htmldir=DIR           html documentation [DOCDIR]
1389  --dvidir=DIR            dvi documentation [DOCDIR]
1390  --pdfdir=DIR            pdf documentation [DOCDIR]
1391  --psdir=DIR             ps documentation [DOCDIR]
1392_ACEOF
1393
1394  cat <<\_ACEOF
1395
1396Program names:
1397  --program-prefix=PREFIX            prepend PREFIX to installed program names
1398  --program-suffix=SUFFIX            append SUFFIX to installed program names
1399  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1400
1401System types:
1402  --build=BUILD     configure for building on BUILD [guessed]
1403  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1404_ACEOF
1405fi
1406
1407if test -n "$ac_init_help"; then
1408  case $ac_init_help in
1409     short | recursive ) echo "Configuration of listres 1.0.6:";;
1410   esac
1411  cat <<\_ACEOF
1412
1413Optional Features:
1414  --disable-option-checking  ignore unrecognized --enable/--with options
1415  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1416  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1417  --enable-silent-rules   less verbose build output (undo: "make V=1")
1418  --disable-silent-rules  verbose build output (undo: "make V=0")
1419  --enable-dependency-tracking
1420                          do not reject slow dependency extractors
1421  --disable-dependency-tracking
1422                          speeds up one-time build
1423  --disable-selective-werror
1424                          Turn off selective compiler errors. (default:
1425                          enabled)
1426  --enable-strict-compilation
1427                          Enable all warnings from compiler and make them
1428                          errors (default: disabled)
1429
1430Some influential environment variables:
1431  CC          C compiler command
1432  CFLAGS      C compiler flags
1433  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1434              nonstandard directory <lib dir>
1435  LIBS        libraries to pass to the linker, e.g. -l<library>
1436  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1437              you have headers in a nonstandard directory <include dir>
1438  PKG_CONFIG  path to pkg-config utility
1439  PKG_CONFIG_PATH
1440              directories to add to pkg-config's search path
1441  PKG_CONFIG_LIBDIR
1442              path overriding pkg-config's built-in search path
1443  LISTRES_CFLAGS
1444              C compiler flags for LISTRES, overriding pkg-config
1445  LISTRES_LIBS
1446              linker flags for LISTRES, overriding pkg-config
1447
1448Use these variables to override the choices made by 'configure' or to help
1449it to find libraries and programs with nonstandard names/locations.
1450
1451Report bugs to <https://gitlab.freedesktop.org/xorg/app/listres/-/issues>.
1452_ACEOF
1453ac_status=$?
1454fi
1455
1456if test "$ac_init_help" = "recursive"; then
1457  # If there are subdirs, report their specific --help.
1458  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1459    test -d "$ac_dir" ||
1460      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1461      continue
1462    ac_builddir=.
1463
1464case "$ac_dir" in
1465.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466*)
1467  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1468  # A ".." for each directory in $ac_dir_suffix.
1469  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1470  case $ac_top_builddir_sub in
1471  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1473  esac ;;
1474esac
1475ac_abs_top_builddir=$ac_pwd
1476ac_abs_builddir=$ac_pwd$ac_dir_suffix
1477# for backward compatibility:
1478ac_top_builddir=$ac_top_build_prefix
1479
1480case $srcdir in
1481  .)  # We are building in place.
1482    ac_srcdir=.
1483    ac_top_srcdir=$ac_top_builddir_sub
1484    ac_abs_top_srcdir=$ac_pwd ;;
1485  [\\/]* | ?:[\\/]* )  # Absolute name.
1486    ac_srcdir=$srcdir$ac_dir_suffix;
1487    ac_top_srcdir=$srcdir
1488    ac_abs_top_srcdir=$srcdir ;;
1489  *) # Relative name.
1490    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1491    ac_top_srcdir=$ac_top_build_prefix$srcdir
1492    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1493esac
1494ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1495
1496    cd "$ac_dir" || { ac_status=$?; continue; }
1497    # Check for configure.gnu first; this name is used for a wrapper for
1498    # Metaconfig's "Configure" on case-insensitive file systems.
1499    if test -f "$ac_srcdir/configure.gnu"; then
1500      echo &&
1501      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502    elif test -f "$ac_srcdir/configure"; then
1503      echo &&
1504      $SHELL "$ac_srcdir/configure" --help=recursive
1505    else
1506      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507    fi || ac_status=$?
1508    cd "$ac_pwd" || { ac_status=$?; break; }
1509  done
1510fi
1511
1512test -n "$ac_init_help" && exit $ac_status
1513if $ac_init_version; then
1514  cat <<\_ACEOF
1515listres configure 1.0.6
1516generated by GNU Autoconf 2.72
1517
1518Copyright (C) 2023 Free Software Foundation, Inc.
1519This configure script is free software; the Free Software Foundation
1520gives unlimited permission to copy, distribute and modify it.
1521_ACEOF
1522  exit
1523fi
1524
1525## ------------------------ ##
1526## Autoconf initialization. ##
1527## ------------------------ ##
1528
1529# ac_fn_c_try_compile LINENO
1530# --------------------------
1531# Try to compile conftest.$ac_ext, and return whether this succeeded.
1532ac_fn_c_try_compile ()
1533{
1534  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535  rm -f conftest.$ac_objext conftest.beam
1536  if { { ac_try="$ac_compile"
1537case "(($ac_try" in
1538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539  *) ac_try_echo=$ac_try;;
1540esac
1541eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542printf "%s\n" "$ac_try_echo"; } >&5
1543  (eval "$ac_compile") 2>conftest.err
1544  ac_status=$?
1545  if test -s conftest.err; then
1546    grep -v '^ *+' conftest.err >conftest.er1
1547    cat conftest.er1 >&5
1548    mv -f conftest.er1 conftest.err
1549  fi
1550  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551  test $ac_status = 0; } && {
1552	 test -z "$ac_c_werror_flag" ||
1553	 test ! -s conftest.err
1554       } && test -s conftest.$ac_objext
1555then :
1556  ac_retval=0
1557else case e in #(
1558  e) printf "%s\n" "$as_me: failed program was:" >&5
1559sed 's/^/| /' conftest.$ac_ext >&5
1560
1561	ac_retval=1 ;;
1562esac
1563fi
1564  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1565  as_fn_set_status $ac_retval
1566
1567} # ac_fn_c_try_compile
1568
1569# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1570# ------------------------------------------------------------------
1571# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1572# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1573ac_fn_check_decl ()
1574{
1575  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576  as_decl_name=`echo $2|sed 's/ *(.*//'`
1577  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1578printf %s "checking whether $as_decl_name is declared... " >&6; }
1579if eval test \${$3+y}
1580then :
1581  printf %s "(cached) " >&6
1582else case e in #(
1583  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1584  eval ac_save_FLAGS=\$$6
1585  as_fn_append $6 " $5"
1586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1587/* end confdefs.h.  */
1588$4
1589int
1590main (void)
1591{
1592#ifndef $as_decl_name
1593#ifdef __cplusplus
1594  (void) $as_decl_use;
1595#else
1596  (void) $as_decl_name;
1597#endif
1598#endif
1599
1600  ;
1601  return 0;
1602}
1603_ACEOF
1604if ac_fn_c_try_compile "$LINENO"
1605then :
1606  eval "$3=yes"
1607else case e in #(
1608  e) eval "$3=no" ;;
1609esac
1610fi
1611rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1612  eval $6=\$ac_save_FLAGS
1613 ;;
1614esac
1615fi
1616eval ac_res=\$$3
1617	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1618printf "%s\n" "$ac_res" >&6; }
1619  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620
1621} # ac_fn_check_decl
1622
1623# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1624# -------------------------------------------------------
1625# Tests whether HEADER exists and can be compiled using the include files in
1626# INCLUDES, setting the cache variable VAR accordingly.
1627ac_fn_c_check_header_compile ()
1628{
1629  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1631printf %s "checking for $2... " >&6; }
1632if eval test \${$3+y}
1633then :
1634  printf %s "(cached) " >&6
1635else case e in #(
1636  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1637/* end confdefs.h.  */
1638$4
1639#include <$2>
1640_ACEOF
1641if ac_fn_c_try_compile "$LINENO"
1642then :
1643  eval "$3=yes"
1644else case e in #(
1645  e) eval "$3=no" ;;
1646esac
1647fi
1648rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1649esac
1650fi
1651eval ac_res=\$$3
1652	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653printf "%s\n" "$ac_res" >&6; }
1654  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655
1656} # ac_fn_c_check_header_compile
1657
1658# ac_fn_c_try_link LINENO
1659# -----------------------
1660# Try to link conftest.$ac_ext, and return whether this succeeded.
1661ac_fn_c_try_link ()
1662{
1663  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1665  if { { ac_try="$ac_link"
1666case "(($ac_try" in
1667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668  *) ac_try_echo=$ac_try;;
1669esac
1670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671printf "%s\n" "$ac_try_echo"; } >&5
1672  (eval "$ac_link") 2>conftest.err
1673  ac_status=$?
1674  if test -s conftest.err; then
1675    grep -v '^ *+' conftest.err >conftest.er1
1676    cat conftest.er1 >&5
1677    mv -f conftest.er1 conftest.err
1678  fi
1679  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680  test $ac_status = 0; } && {
1681	 test -z "$ac_c_werror_flag" ||
1682	 test ! -s conftest.err
1683       } && test -s conftest$ac_exeext && {
1684	 test "$cross_compiling" = yes ||
1685	 test -x conftest$ac_exeext
1686       }
1687then :
1688  ac_retval=0
1689else case e in #(
1690  e) printf "%s\n" "$as_me: failed program was:" >&5
1691sed 's/^/| /' conftest.$ac_ext >&5
1692
1693	ac_retval=1 ;;
1694esac
1695fi
1696  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1697  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1698  # interfere with the next link command; also delete a directory that is
1699  # left behind by Apple's compiler.  We do this before executing the actions.
1700  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702  as_fn_set_status $ac_retval
1703
1704} # ac_fn_c_try_link
1705ac_configure_args_raw=
1706for ac_arg
1707do
1708  case $ac_arg in
1709  *\'*)
1710    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1711  esac
1712  as_fn_append ac_configure_args_raw " '$ac_arg'"
1713done
1714
1715case $ac_configure_args_raw in
1716  *$as_nl*)
1717    ac_safe_unquote= ;;
1718  *)
1719    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1720    ac_unsafe_a="$ac_unsafe_z#~"
1721    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1722    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1723esac
1724
1725cat >config.log <<_ACEOF
1726This file contains any messages produced by compilers while
1727running configure, to aid debugging if configure makes a mistake.
1728
1729It was created by listres $as_me 1.0.6, which was
1730generated by GNU Autoconf 2.72.  Invocation command line was
1731
1732  $ $0$ac_configure_args_raw
1733
1734_ACEOF
1735exec 5>>config.log
1736{
1737cat <<_ASUNAME
1738## --------- ##
1739## Platform. ##
1740## --------- ##
1741
1742hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1743uname -m = `(uname -m) 2>/dev/null || echo unknown`
1744uname -r = `(uname -r) 2>/dev/null || echo unknown`
1745uname -s = `(uname -s) 2>/dev/null || echo unknown`
1746uname -v = `(uname -v) 2>/dev/null || echo unknown`
1747
1748/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1749/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1750
1751/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1752/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1753/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1754/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1755/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1756/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1757/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1758
1759_ASUNAME
1760
1761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1762for as_dir in $PATH
1763do
1764  IFS=$as_save_IFS
1765  case $as_dir in #(((
1766    '') as_dir=./ ;;
1767    */) ;;
1768    *) as_dir=$as_dir/ ;;
1769  esac
1770    printf "%s\n" "PATH: $as_dir"
1771  done
1772IFS=$as_save_IFS
1773
1774} >&5
1775
1776cat >&5 <<_ACEOF
1777
1778
1779## ----------- ##
1780## Core tests. ##
1781## ----------- ##
1782
1783_ACEOF
1784
1785
1786# Keep a trace of the command line.
1787# Strip out --no-create and --no-recursion so they do not pile up.
1788# Strip out --silent because we don't want to record it for future runs.
1789# Also quote any args containing shell meta-characters.
1790# Make two passes to allow for proper duplicate-argument suppression.
1791ac_configure_args=
1792ac_configure_args0=
1793ac_configure_args1=
1794ac_must_keep_next=false
1795for ac_pass in 1 2
1796do
1797  for ac_arg
1798  do
1799    case $ac_arg in
1800    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1801    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1802    | -silent | --silent | --silen | --sile | --sil)
1803      continue ;;
1804    *\'*)
1805      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1806    esac
1807    case $ac_pass in
1808    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1809    2)
1810      as_fn_append ac_configure_args1 " '$ac_arg'"
1811      if test $ac_must_keep_next = true; then
1812	ac_must_keep_next=false # Got value, back to normal.
1813      else
1814	case $ac_arg in
1815	  *=* | --config-cache | -C | -disable-* | --disable-* \
1816	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1817	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1818	  | -with-* | --with-* | -without-* | --without-* | --x)
1819	    case "$ac_configure_args0 " in
1820	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1821	    esac
1822	    ;;
1823	  -* ) ac_must_keep_next=true ;;
1824	esac
1825      fi
1826      as_fn_append ac_configure_args " '$ac_arg'"
1827      ;;
1828    esac
1829  done
1830done
1831{ ac_configure_args0=; unset ac_configure_args0;}
1832{ ac_configure_args1=; unset ac_configure_args1;}
1833
1834# When interrupted or exit'd, cleanup temporary files, and complete
1835# config.log.  We remove comments because anyway the quotes in there
1836# would cause problems or look ugly.
1837# WARNING: Use '\'' to represent an apostrophe within the trap.
1838# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1839trap 'exit_status=$?
1840  # Sanitize IFS.
1841  IFS=" ""	$as_nl"
1842  # Save into config.log some information that might help in debugging.
1843  {
1844    echo
1845
1846    printf "%s\n" "## ---------------- ##
1847## Cache variables. ##
1848## ---------------- ##"
1849    echo
1850    # The following way of writing the cache mishandles newlines in values,
1851(
1852  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1853    eval ac_val=\$$ac_var
1854    case $ac_val in #(
1855    *${as_nl}*)
1856      case $ac_var in #(
1857      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1858printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1859      esac
1860      case $ac_var in #(
1861      _ | IFS | as_nl) ;; #(
1862      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1863      *) { eval $ac_var=; unset $ac_var;} ;;
1864      esac ;;
1865    esac
1866  done
1867  (set) 2>&1 |
1868    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1869    *${as_nl}ac_space=\ *)
1870      sed -n \
1871	"s/'\''/'\''\\\\'\'''\''/g;
1872	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1873      ;; #(
1874    *)
1875      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1876      ;;
1877    esac |
1878    sort
1879)
1880    echo
1881
1882    printf "%s\n" "## ----------------- ##
1883## Output variables. ##
1884## ----------------- ##"
1885    echo
1886    for ac_var in $ac_subst_vars
1887    do
1888      eval ac_val=\$$ac_var
1889      case $ac_val in
1890      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1891      esac
1892      printf "%s\n" "$ac_var='\''$ac_val'\''"
1893    done | sort
1894    echo
1895
1896    if test -n "$ac_subst_files"; then
1897      printf "%s\n" "## ------------------- ##
1898## File substitutions. ##
1899## ------------------- ##"
1900      echo
1901      for ac_var in $ac_subst_files
1902      do
1903	eval ac_val=\$$ac_var
1904	case $ac_val in
1905	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1906	esac
1907	printf "%s\n" "$ac_var='\''$ac_val'\''"
1908      done | sort
1909      echo
1910    fi
1911
1912    if test -s confdefs.h; then
1913      printf "%s\n" "## ----------- ##
1914## confdefs.h. ##
1915## ----------- ##"
1916      echo
1917      cat confdefs.h
1918      echo
1919    fi
1920    test "$ac_signal" != 0 &&
1921      printf "%s\n" "$as_me: caught signal $ac_signal"
1922    printf "%s\n" "$as_me: exit $exit_status"
1923  } >&5
1924  rm -f core *.core core.conftest.* &&
1925    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1926    exit $exit_status
1927' 0
1928for ac_signal in 1 2 13 15; do
1929  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1930done
1931ac_signal=0
1932
1933# confdefs.h avoids OS command line length limits that DEFS can exceed.
1934rm -f -r conftest* confdefs.h
1935
1936printf "%s\n" "/* confdefs.h */" > confdefs.h
1937
1938# Predefined preprocessor variables.
1939
1940printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1941
1942printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1943
1944printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1945
1946printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1947
1948printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1949
1950printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1951
1952
1953# Let the site file select an alternate cache file if it wants to.
1954# Prefer an explicitly selected file to automatically selected ones.
1955if test -n "$CONFIG_SITE"; then
1956  ac_site_files="$CONFIG_SITE"
1957elif test "x$prefix" != xNONE; then
1958  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1959else
1960  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1961fi
1962
1963for ac_site_file in $ac_site_files
1964do
1965  case $ac_site_file in #(
1966  */*) :
1967     ;; #(
1968  *) :
1969    ac_site_file=./$ac_site_file ;;
1970esac
1971  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1972    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1973printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1974    sed 's/^/| /' "$ac_site_file" >&5
1975    . "$ac_site_file" \
1976      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
1977printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1978as_fn_error $? "failed to load site script $ac_site_file
1979See 'config.log' for more details" "$LINENO" 5; }
1980  fi
1981done
1982
1983if test -r "$cache_file"; then
1984  # Some versions of bash will fail to source /dev/null (special files
1985  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1986  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1987    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1988printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1989    case $cache_file in
1990      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1991      *)                      . "./$cache_file";;
1992    esac
1993  fi
1994else
1995  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1996printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1997  >$cache_file
1998fi
1999
2000# Test code for whether the C compiler supports C89 (global declarations)
2001ac_c_conftest_c89_globals='
2002/* Does the compiler advertise C89 conformance?
2003   Do not test the value of __STDC__, because some compilers set it to 0
2004   while being otherwise adequately conformant. */
2005#if !defined __STDC__
2006# error "Compiler does not advertise C89 conformance"
2007#endif
2008
2009#include <stddef.h>
2010#include <stdarg.h>
2011struct stat;
2012/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2013struct buf { int x; };
2014struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2015static char *e (char **p, int i)
2016{
2017  return p[i];
2018}
2019static char *f (char * (*g) (char **, int), char **p, ...)
2020{
2021  char *s;
2022  va_list v;
2023  va_start (v,p);
2024  s = g (p, va_arg (v,int));
2025  va_end (v);
2026  return s;
2027}
2028
2029/* C89 style stringification. */
2030#define noexpand_stringify(a) #a
2031const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2032
2033/* C89 style token pasting.  Exercises some of the corner cases that
2034   e.g. old MSVC gets wrong, but not very hard. */
2035#define noexpand_concat(a,b) a##b
2036#define expand_concat(a,b) noexpand_concat(a,b)
2037extern int vA;
2038extern int vbee;
2039#define aye A
2040#define bee B
2041int *pvA = &expand_concat(v,aye);
2042int *pvbee = &noexpand_concat(v,bee);
2043
2044/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2045   function prototypes and stuff, but not \xHH hex character constants.
2046   These do not provoke an error unfortunately, instead are silently treated
2047   as an "x".  The following induces an error, until -std is added to get
2048   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2049   array size at least.  It is necessary to write \x00 == 0 to get something
2050   that is true only with -std.  */
2051int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2052
2053/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2054   inside strings and character constants.  */
2055#define FOO(x) '\''x'\''
2056int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2057
2058int test (int i, double x);
2059struct s1 {int (*f) (int a);};
2060struct s2 {int (*f) (double a);};
2061int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2062               int, int);'
2063
2064# Test code for whether the C compiler supports C89 (body of main).
2065ac_c_conftest_c89_main='
2066ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2067'
2068
2069# Test code for whether the C compiler supports C99 (global declarations)
2070ac_c_conftest_c99_globals='
2071/* Does the compiler advertise C99 conformance? */
2072#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2073# error "Compiler does not advertise C99 conformance"
2074#endif
2075
2076// See if C++-style comments work.
2077
2078#include <stdbool.h>
2079extern int puts (const char *);
2080extern int printf (const char *, ...);
2081extern int dprintf (int, const char *, ...);
2082extern void *malloc (size_t);
2083extern void free (void *);
2084
2085// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2086// dprintf is used instead of fprintf to avoid needing to declare
2087// FILE and stderr.
2088#define debug(...) dprintf (2, __VA_ARGS__)
2089#define showlist(...) puts (#__VA_ARGS__)
2090#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2091static void
2092test_varargs_macros (void)
2093{
2094  int x = 1234;
2095  int y = 5678;
2096  debug ("Flag");
2097  debug ("X = %d\n", x);
2098  showlist (The first, second, and third items.);
2099  report (x>y, "x is %d but y is %d", x, y);
2100}
2101
2102// Check long long types.
2103#define BIG64 18446744073709551615ull
2104#define BIG32 4294967295ul
2105#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2106#if !BIG_OK
2107  #error "your preprocessor is broken"
2108#endif
2109#if BIG_OK
2110#else
2111  #error "your preprocessor is broken"
2112#endif
2113static long long int bignum = -9223372036854775807LL;
2114static unsigned long long int ubignum = BIG64;
2115
2116struct incomplete_array
2117{
2118  int datasize;
2119  double data[];
2120};
2121
2122struct named_init {
2123  int number;
2124  const wchar_t *name;
2125  double average;
2126};
2127
2128typedef const char *ccp;
2129
2130static inline int
2131test_restrict (ccp restrict text)
2132{
2133  // Iterate through items via the restricted pointer.
2134  // Also check for declarations in for loops.
2135  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2136    continue;
2137  return 0;
2138}
2139
2140// Check varargs and va_copy.
2141static bool
2142test_varargs (const char *format, ...)
2143{
2144  va_list args;
2145  va_start (args, format);
2146  va_list args_copy;
2147  va_copy (args_copy, args);
2148
2149  const char *str = "";
2150  int number = 0;
2151  float fnumber = 0;
2152
2153  while (*format)
2154    {
2155      switch (*format++)
2156	{
2157	case '\''s'\'': // string
2158	  str = va_arg (args_copy, const char *);
2159	  break;
2160	case '\''d'\'': // int
2161	  number = va_arg (args_copy, int);
2162	  break;
2163	case '\''f'\'': // float
2164	  fnumber = va_arg (args_copy, double);
2165	  break;
2166	default:
2167	  break;
2168	}
2169    }
2170  va_end (args_copy);
2171  va_end (args);
2172
2173  return *str && number && fnumber;
2174}
2175'
2176
2177# Test code for whether the C compiler supports C99 (body of main).
2178ac_c_conftest_c99_main='
2179  // Check bool.
2180  _Bool success = false;
2181  success |= (argc != 0);
2182
2183  // Check restrict.
2184  if (test_restrict ("String literal") == 0)
2185    success = true;
2186  char *restrict newvar = "Another string";
2187
2188  // Check varargs.
2189  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2190  test_varargs_macros ();
2191
2192  // Check flexible array members.
2193  struct incomplete_array *ia =
2194    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2195  ia->datasize = 10;
2196  for (int i = 0; i < ia->datasize; ++i)
2197    ia->data[i] = i * 1.234;
2198  // Work around memory leak warnings.
2199  free (ia);
2200
2201  // Check named initializers.
2202  struct named_init ni = {
2203    .number = 34,
2204    .name = L"Test wide string",
2205    .average = 543.34343,
2206  };
2207
2208  ni.number = 58;
2209
2210  int dynamic_array[ni.number];
2211  dynamic_array[0] = argv[0][0];
2212  dynamic_array[ni.number - 1] = 543;
2213
2214  // work around unused variable warnings
2215  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2216	 || dynamic_array[ni.number - 1] != 543);
2217'
2218
2219# Test code for whether the C compiler supports C11 (global declarations)
2220ac_c_conftest_c11_globals='
2221/* Does the compiler advertise C11 conformance? */
2222#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2223# error "Compiler does not advertise C11 conformance"
2224#endif
2225
2226// Check _Alignas.
2227char _Alignas (double) aligned_as_double;
2228char _Alignas (0) no_special_alignment;
2229extern char aligned_as_int;
2230char _Alignas (0) _Alignas (int) aligned_as_int;
2231
2232// Check _Alignof.
2233enum
2234{
2235  int_alignment = _Alignof (int),
2236  int_array_alignment = _Alignof (int[100]),
2237  char_alignment = _Alignof (char)
2238};
2239_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2240
2241// Check _Noreturn.
2242int _Noreturn does_not_return (void) { for (;;) continue; }
2243
2244// Check _Static_assert.
2245struct test_static_assert
2246{
2247  int x;
2248  _Static_assert (sizeof (int) <= sizeof (long int),
2249                  "_Static_assert does not work in struct");
2250  long int y;
2251};
2252
2253// Check UTF-8 literals.
2254#define u8 syntax error!
2255char const utf8_literal[] = u8"happens to be ASCII" "another string";
2256
2257// Check duplicate typedefs.
2258typedef long *long_ptr;
2259typedef long int *long_ptr;
2260typedef long_ptr long_ptr;
2261
2262// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2263struct anonymous
2264{
2265  union {
2266    struct { int i; int j; };
2267    struct { int k; long int l; } w;
2268  };
2269  int m;
2270} v1;
2271'
2272
2273# Test code for whether the C compiler supports C11 (body of main).
2274ac_c_conftest_c11_main='
2275  _Static_assert ((offsetof (struct anonymous, i)
2276		   == offsetof (struct anonymous, w.k)),
2277		  "Anonymous union alignment botch");
2278  v1.i = 2;
2279  v1.w.k = 5;
2280  ok |= v1.i != 5;
2281'
2282
2283# Test code for whether the C compiler supports C11 (complete).
2284ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2285${ac_c_conftest_c99_globals}
2286${ac_c_conftest_c11_globals}
2287
2288int
2289main (int argc, char **argv)
2290{
2291  int ok = 0;
2292  ${ac_c_conftest_c89_main}
2293  ${ac_c_conftest_c99_main}
2294  ${ac_c_conftest_c11_main}
2295  return ok;
2296}
2297"
2298
2299# Test code for whether the C compiler supports C99 (complete).
2300ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2301${ac_c_conftest_c99_globals}
2302
2303int
2304main (int argc, char **argv)
2305{
2306  int ok = 0;
2307  ${ac_c_conftest_c89_main}
2308  ${ac_c_conftest_c99_main}
2309  return ok;
2310}
2311"
2312
2313# Test code for whether the C compiler supports C89 (complete).
2314ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2315
2316int
2317main (int argc, char **argv)
2318{
2319  int ok = 0;
2320  ${ac_c_conftest_c89_main}
2321  return ok;
2322}
2323"
2324
2325as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2326as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2327as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2328as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2329as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2330as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2331as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2332as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2333as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2334
2335# Auxiliary files required by this configure script.
2336ac_aux_files="config.guess config.sub compile missing install-sh"
2337
2338# Locations in which to look for auxiliary files.
2339ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2340
2341# Search for a directory containing all of the required auxiliary files,
2342# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2343# If we don't find one directory that contains all the files we need,
2344# we report the set of missing files from the *first* directory in
2345# $ac_aux_dir_candidates and give up.
2346ac_missing_aux_files=""
2347ac_first_candidate=:
2348printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350as_found=false
2351for as_dir in $ac_aux_dir_candidates
2352do
2353  IFS=$as_save_IFS
2354  case $as_dir in #(((
2355    '') as_dir=./ ;;
2356    */) ;;
2357    *) as_dir=$as_dir/ ;;
2358  esac
2359  as_found=:
2360
2361  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2362  ac_aux_dir_found=yes
2363  ac_install_sh=
2364  for ac_aux in $ac_aux_files
2365  do
2366    # As a special case, if "install-sh" is required, that requirement
2367    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2368    # and $ac_install_sh is set appropriately for whichever one is found.
2369    if test x"$ac_aux" = x"install-sh"
2370    then
2371      if test -f "${as_dir}install-sh"; then
2372        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2373        ac_install_sh="${as_dir}install-sh -c"
2374      elif test -f "${as_dir}install.sh"; then
2375        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2376        ac_install_sh="${as_dir}install.sh -c"
2377      elif test -f "${as_dir}shtool"; then
2378        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2379        ac_install_sh="${as_dir}shtool install -c"
2380      else
2381        ac_aux_dir_found=no
2382        if $ac_first_candidate; then
2383          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2384        else
2385          break
2386        fi
2387      fi
2388    else
2389      if test -f "${as_dir}${ac_aux}"; then
2390        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2391      else
2392        ac_aux_dir_found=no
2393        if $ac_first_candidate; then
2394          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2395        else
2396          break
2397        fi
2398      fi
2399    fi
2400  done
2401  if test "$ac_aux_dir_found" = yes; then
2402    ac_aux_dir="$as_dir"
2403    break
2404  fi
2405  ac_first_candidate=false
2406
2407  as_found=false
2408done
2409IFS=$as_save_IFS
2410if $as_found
2411then :
2412
2413else case e in #(
2414  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2415esac
2416fi
2417
2418
2419# These three variables are undocumented and unsupported,
2420# and are intended to be withdrawn in a future Autoconf release.
2421# They can cause serious problems if a builder's source tree is in a directory
2422# whose full name contains unusual characters.
2423if test -f "${ac_aux_dir}config.guess"; then
2424  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2425fi
2426if test -f "${ac_aux_dir}config.sub"; then
2427  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2428fi
2429if test -f "$ac_aux_dir/configure"; then
2430  ac_configure="$SHELL ${ac_aux_dir}configure"
2431fi
2432
2433# Check that the precious variables saved in the cache have kept the same
2434# value.
2435ac_cache_corrupted=false
2436for ac_var in $ac_precious_vars; do
2437  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2438  eval ac_new_set=\$ac_env_${ac_var}_set
2439  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2440  eval ac_new_val=\$ac_env_${ac_var}_value
2441  case $ac_old_set,$ac_new_set in
2442    set,)
2443      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2444printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2445      ac_cache_corrupted=: ;;
2446    ,set)
2447      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2448printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2449      ac_cache_corrupted=: ;;
2450    ,);;
2451    *)
2452      if test "x$ac_old_val" != "x$ac_new_val"; then
2453	# differences in whitespace do not lead to failure.
2454	ac_old_val_w=`echo x $ac_old_val`
2455	ac_new_val_w=`echo x $ac_new_val`
2456	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2457	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2458printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2459	  ac_cache_corrupted=:
2460	else
2461	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2462printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2463	  eval $ac_var=\$ac_old_val
2464	fi
2465	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2466printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2467	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2468printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2469      fi;;
2470  esac
2471  # Pass precious variables to config.status.
2472  if test "$ac_new_set" = set; then
2473    case $ac_new_val in
2474    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2475    *) ac_arg=$ac_var=$ac_new_val ;;
2476    esac
2477    case " $ac_configure_args " in
2478      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2479      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2480    esac
2481  fi
2482done
2483if $ac_cache_corrupted; then
2484  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2485printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2486  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2487printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2488  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2489	    and start over" "$LINENO" 5
2490fi
2491## -------------------- ##
2492## Main body of script. ##
2493## -------------------- ##
2494
2495ac_ext=c
2496ac_cpp='$CPP $CPPFLAGS'
2497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2499ac_compiler_gnu=$ac_cv_c_compiler_gnu
2500
2501
2502
2503ac_config_headers="$ac_config_headers config.h"
2504
2505
2506# Initialize Automake
2507am__api_version='1.16'
2508
2509
2510
2511  # Find a good install program.  We prefer a C program (faster),
2512# so one script is as good as another.  But avoid the broken or
2513# incompatible versions:
2514# SysV /etc/install, /usr/sbin/install
2515# SunOS /usr/etc/install
2516# IRIX /sbin/install
2517# AIX /bin/install
2518# AmigaOS /C/install, which installs bootblocks on floppy discs
2519# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2520# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2521# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2522# OS/2's system install, which has a completely different semantic
2523# ./install, which can be erroneously created by make from ./install.sh.
2524# Reject install programs that cannot install multiple files.
2525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2526printf %s "checking for a BSD-compatible install... " >&6; }
2527if test -z "$INSTALL"; then
2528if test ${ac_cv_path_install+y}
2529then :
2530  printf %s "(cached) " >&6
2531else case e in #(
2532  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533for as_dir in $PATH
2534do
2535  IFS=$as_save_IFS
2536  case $as_dir in #(((
2537    '') as_dir=./ ;;
2538    */) ;;
2539    *) as_dir=$as_dir/ ;;
2540  esac
2541    # Account for fact that we put trailing slashes in our PATH walk.
2542case $as_dir in #((
2543  ./ | /[cC]/* | \
2544  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2545  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2546  /usr/ucb/* ) ;;
2547  *)
2548    # OSF1 and SCO ODT 3.0 have their own names for install.
2549    # Don't use installbsd from OSF since it installs stuff as root
2550    # by default.
2551    for ac_prog in ginstall scoinst install; do
2552      for ac_exec_ext in '' $ac_executable_extensions; do
2553	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2554	  if test $ac_prog = install &&
2555	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2556	    # AIX install.  It has an incompatible calling convention.
2557	    :
2558	  elif test $ac_prog = install &&
2559	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2560	    # program-specific install script used by HP pwplus--don't use.
2561	    :
2562	  else
2563	    rm -rf conftest.one conftest.two conftest.dir
2564	    echo one > conftest.one
2565	    echo two > conftest.two
2566	    mkdir conftest.dir
2567	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2568	      test -s conftest.one && test -s conftest.two &&
2569	      test -s conftest.dir/conftest.one &&
2570	      test -s conftest.dir/conftest.two
2571	    then
2572	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2573	      break 3
2574	    fi
2575	  fi
2576	fi
2577      done
2578    done
2579    ;;
2580esac
2581
2582  done
2583IFS=$as_save_IFS
2584
2585rm -rf conftest.one conftest.two conftest.dir
2586 ;;
2587esac
2588fi
2589  if test ${ac_cv_path_install+y}; then
2590    INSTALL=$ac_cv_path_install
2591  else
2592    # As a last resort, use the slow shell script.  Don't cache a
2593    # value for INSTALL within a source directory, because that will
2594    # break other packages using the cache if that directory is
2595    # removed, or if the value is a relative name.
2596    INSTALL=$ac_install_sh
2597  fi
2598fi
2599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2600printf "%s\n" "$INSTALL" >&6; }
2601
2602# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2603# It thinks the first close brace ends the variable substitution.
2604test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2605
2606test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2607
2608test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2609
2610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2611printf %s "checking whether build environment is sane... " >&6; }
2612# Reject unsafe characters in $srcdir or the absolute working directory
2613# name.  Accept space and tab only in the latter.
2614am_lf='
2615'
2616case `pwd` in
2617  *[\\\"\#\$\&\'\`$am_lf]*)
2618    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2619esac
2620case $srcdir in
2621  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2622    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2623esac
2624
2625# Do 'set' in a subshell so we don't clobber the current shell's
2626# arguments.  Must try -L first in case configure is actually a
2627# symlink; some systems play weird games with the mod time of symlinks
2628# (eg FreeBSD returns the mod time of the symlink's containing
2629# directory).
2630if (
2631   am_has_slept=no
2632   for am_try in 1 2; do
2633     echo "timestamp, slept: $am_has_slept" > conftest.file
2634     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2635     if test "$*" = "X"; then
2636	# -L didn't work.
2637	set X `ls -t "$srcdir/configure" conftest.file`
2638     fi
2639     if test "$*" != "X $srcdir/configure conftest.file" \
2640	&& test "$*" != "X conftest.file $srcdir/configure"; then
2641
2642	# If neither matched, then we have a broken ls.  This can happen
2643	# if, for instance, CONFIG_SHELL is bash and it inherits a
2644	# broken ls alias from the environment.  This has actually
2645	# happened.  Such a system could not be considered "sane".
2646	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2647  alias in your environment" "$LINENO" 5
2648     fi
2649     if test "$2" = conftest.file || test $am_try -eq 2; then
2650       break
2651     fi
2652     # Just in case.
2653     sleep 1
2654     am_has_slept=yes
2655   done
2656   test "$2" = conftest.file
2657   )
2658then
2659   # Ok.
2660   :
2661else
2662   as_fn_error $? "newly created file is older than distributed files!
2663Check your system clock" "$LINENO" 5
2664fi
2665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2666printf "%s\n" "yes" >&6; }
2667# If we didn't sleep, we still need to ensure time stamps of config.status and
2668# generated files are strictly newer.
2669am_sleep_pid=
2670if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2671  ( sleep 1 ) &
2672  am_sleep_pid=$!
2673fi
2674
2675rm -f conftest.file
2676
2677test "$program_prefix" != NONE &&
2678  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2679# Use a double $ so make ignores it.
2680test "$program_suffix" != NONE &&
2681  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2682# Double any \ or $.
2683# By default was 's,x,x', remove it if useless.
2684ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2685program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2686
2687
2688# Expand $ac_aux_dir to an absolute path.
2689am_aux_dir=`cd "$ac_aux_dir" && pwd`
2690
2691
2692  if test x"${MISSING+set}" != xset; then
2693  MISSING="\${SHELL} '$am_aux_dir/missing'"
2694fi
2695# Use eval to expand $SHELL
2696if eval "$MISSING --is-lightweight"; then
2697  am_missing_run="$MISSING "
2698else
2699  am_missing_run=
2700  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2701printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2702fi
2703
2704if test x"${install_sh+set}" != xset; then
2705  case $am_aux_dir in
2706  *\ * | *\	*)
2707    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2708  *)
2709    install_sh="\${SHELL} $am_aux_dir/install-sh"
2710  esac
2711fi
2712
2713# Installed binaries are usually stripped using 'strip' when the user
2714# run "make install-strip".  However 'strip' might not be the right
2715# tool to use in cross-compilation environments, therefore Automake
2716# will honor the 'STRIP' environment variable to overrule this program.
2717if test "$cross_compiling" != no; then
2718  if test -n "$ac_tool_prefix"; then
2719  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2720set dummy ${ac_tool_prefix}strip; ac_word=$2
2721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2722printf %s "checking for $ac_word... " >&6; }
2723if test ${ac_cv_prog_STRIP+y}
2724then :
2725  printf %s "(cached) " >&6
2726else case e in #(
2727  e) if test -n "$STRIP"; then
2728  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2729else
2730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731for as_dir in $PATH
2732do
2733  IFS=$as_save_IFS
2734  case $as_dir in #(((
2735    '') as_dir=./ ;;
2736    */) ;;
2737    *) as_dir=$as_dir/ ;;
2738  esac
2739    for ac_exec_ext in '' $ac_executable_extensions; do
2740  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2741    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2742    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2743    break 2
2744  fi
2745done
2746  done
2747IFS=$as_save_IFS
2748
2749fi ;;
2750esac
2751fi
2752STRIP=$ac_cv_prog_STRIP
2753if test -n "$STRIP"; then
2754  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2755printf "%s\n" "$STRIP" >&6; }
2756else
2757  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758printf "%s\n" "no" >&6; }
2759fi
2760
2761
2762fi
2763if test -z "$ac_cv_prog_STRIP"; then
2764  ac_ct_STRIP=$STRIP
2765  # Extract the first word of "strip", so it can be a program name with args.
2766set dummy strip; ac_word=$2
2767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768printf %s "checking for $ac_word... " >&6; }
2769if test ${ac_cv_prog_ac_ct_STRIP+y}
2770then :
2771  printf %s "(cached) " >&6
2772else case e in #(
2773  e) if test -n "$ac_ct_STRIP"; then
2774  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2775else
2776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777for as_dir in $PATH
2778do
2779  IFS=$as_save_IFS
2780  case $as_dir in #(((
2781    '') as_dir=./ ;;
2782    */) ;;
2783    *) as_dir=$as_dir/ ;;
2784  esac
2785    for ac_exec_ext in '' $ac_executable_extensions; do
2786  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2787    ac_cv_prog_ac_ct_STRIP="strip"
2788    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2789    break 2
2790  fi
2791done
2792  done
2793IFS=$as_save_IFS
2794
2795fi ;;
2796esac
2797fi
2798ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2799if test -n "$ac_ct_STRIP"; then
2800  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2801printf "%s\n" "$ac_ct_STRIP" >&6; }
2802else
2803  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804printf "%s\n" "no" >&6; }
2805fi
2806
2807  if test "x$ac_ct_STRIP" = x; then
2808    STRIP=":"
2809  else
2810    case $cross_compiling:$ac_tool_warned in
2811yes:)
2812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2813printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2814ac_tool_warned=yes ;;
2815esac
2816    STRIP=$ac_ct_STRIP
2817  fi
2818else
2819  STRIP="$ac_cv_prog_STRIP"
2820fi
2821
2822fi
2823INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2824
2825
2826  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2827printf %s "checking for a race-free mkdir -p... " >&6; }
2828if test -z "$MKDIR_P"; then
2829  if test ${ac_cv_path_mkdir+y}
2830then :
2831  printf %s "(cached) " >&6
2832else case e in #(
2833  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2835do
2836  IFS=$as_save_IFS
2837  case $as_dir in #(((
2838    '') as_dir=./ ;;
2839    */) ;;
2840    *) as_dir=$as_dir/ ;;
2841  esac
2842    for ac_prog in mkdir gmkdir; do
2843	 for ac_exec_ext in '' $ac_executable_extensions; do
2844	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2845	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2846	     'mkdir ('*'coreutils) '* | \
2847	     *'BusyBox '* | \
2848	     'mkdir (fileutils) '4.1*)
2849	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2850	       break 3;;
2851	   esac
2852	 done
2853       done
2854  done
2855IFS=$as_save_IFS
2856 ;;
2857esac
2858fi
2859
2860  test -d ./--version && rmdir ./--version
2861  if test ${ac_cv_path_mkdir+y}; then
2862    MKDIR_P="$ac_cv_path_mkdir -p"
2863  else
2864    # As a last resort, use plain mkdir -p,
2865    # in the hope it doesn't have the bugs of ancient mkdir.
2866    MKDIR_P='mkdir -p'
2867  fi
2868fi
2869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2870printf "%s\n" "$MKDIR_P" >&6; }
2871
2872for ac_prog in gawk mawk nawk awk
2873do
2874  # Extract the first word of "$ac_prog", so it can be a program name with args.
2875set dummy $ac_prog; ac_word=$2
2876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877printf %s "checking for $ac_word... " >&6; }
2878if test ${ac_cv_prog_AWK+y}
2879then :
2880  printf %s "(cached) " >&6
2881else case e in #(
2882  e) if test -n "$AWK"; then
2883  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2884else
2885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886for as_dir in $PATH
2887do
2888  IFS=$as_save_IFS
2889  case $as_dir in #(((
2890    '') as_dir=./ ;;
2891    */) ;;
2892    *) as_dir=$as_dir/ ;;
2893  esac
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_AWK="$ac_prog"
2897    printf "%s\n" "$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 ;;
2905esac
2906fi
2907AWK=$ac_cv_prog_AWK
2908if test -n "$AWK"; then
2909  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2910printf "%s\n" "$AWK" >&6; }
2911else
2912  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913printf "%s\n" "no" >&6; }
2914fi
2915
2916
2917  test -n "$AWK" && break
2918done
2919
2920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2921printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2922set x ${MAKE-make}
2923ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2924if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2925then :
2926  printf %s "(cached) " >&6
2927else case e in #(
2928  e) cat >conftest.make <<\_ACEOF
2929SHELL = /bin/sh
2930all:
2931	@echo '@@@%%%=$(MAKE)=@@@%%%'
2932_ACEOF
2933# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2934case `${MAKE-make} -f conftest.make 2>/dev/null` in
2935  *@@@%%%=?*=@@@%%%*)
2936    eval ac_cv_prog_make_${ac_make}_set=yes;;
2937  *)
2938    eval ac_cv_prog_make_${ac_make}_set=no;;
2939esac
2940rm -f conftest.make ;;
2941esac
2942fi
2943if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2944  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2945printf "%s\n" "yes" >&6; }
2946  SET_MAKE=
2947else
2948  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949printf "%s\n" "no" >&6; }
2950  SET_MAKE="MAKE=${MAKE-make}"
2951fi
2952
2953rm -rf .tst 2>/dev/null
2954mkdir .tst 2>/dev/null
2955if test -d .tst; then
2956  am__leading_dot=.
2957else
2958  am__leading_dot=_
2959fi
2960rmdir .tst 2>/dev/null
2961
2962# Check whether --enable-silent-rules was given.
2963if test ${enable_silent_rules+y}
2964then :
2965  enableval=$enable_silent_rules;
2966fi
2967
2968case $enable_silent_rules in # (((
2969  yes) AM_DEFAULT_VERBOSITY=0;;
2970   no) AM_DEFAULT_VERBOSITY=1;;
2971    *) AM_DEFAULT_VERBOSITY=1;;
2972esac
2973am_make=${MAKE-make}
2974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2975printf %s "checking whether $am_make supports nested variables... " >&6; }
2976if test ${am_cv_make_support_nested_variables+y}
2977then :
2978  printf %s "(cached) " >&6
2979else case e in #(
2980  e) if printf "%s\n" 'TRUE=$(BAR$(V))
2981BAR0=false
2982BAR1=true
2983V=1
2984am__doit:
2985	@$(TRUE)
2986.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2987  am_cv_make_support_nested_variables=yes
2988else
2989  am_cv_make_support_nested_variables=no
2990fi ;;
2991esac
2992fi
2993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2994printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
2995if test $am_cv_make_support_nested_variables = yes; then
2996    AM_V='$(V)'
2997  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2998else
2999  AM_V=$AM_DEFAULT_VERBOSITY
3000  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3001fi
3002AM_BACKSLASH='\'
3003
3004if test "`cd $srcdir && pwd`" != "`pwd`"; then
3005  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3006  # is not polluted with repeated "-I."
3007  am__isrc=' -I$(srcdir)'
3008  # test to see if srcdir already configured
3009  if test -f $srcdir/config.status; then
3010    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3011  fi
3012fi
3013
3014# test whether we have cygpath
3015if test -z "$CYGPATH_W"; then
3016  if (cygpath --version) >/dev/null 2>/dev/null; then
3017    CYGPATH_W='cygpath -w'
3018  else
3019    CYGPATH_W=echo
3020  fi
3021fi
3022
3023
3024# Define the identity of the package.
3025 PACKAGE='listres'
3026 VERSION='1.0.6'
3027
3028
3029printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3030
3031
3032printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3033
3034# Some tools Automake needs.
3035
3036ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3037
3038
3039AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3040
3041
3042AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3043
3044
3045AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3046
3047
3048MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3049
3050# For better backward compatibility.  To be removed once Automake 1.9.x
3051# dies out for good.  For more background, see:
3052# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3053# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3054mkdir_p='$(MKDIR_P)'
3055
3056# We need awk for the "check" target (and possibly the TAP driver).  The
3057# system "awk" is bad on some platforms.
3058# Always define AMTAR for backward compatibility.  Yes, it's still used
3059# in the wild :-(  We should find a proper way to deprecate it ...
3060AMTAR='$${TAR-tar}'
3061
3062
3063# We'll loop over all known methods to create a tar archive until one works.
3064_am_tools='gnutar  pax cpio none'
3065
3066am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3067
3068
3069
3070
3071
3072# Variables for tags utilities; see am/tags.am
3073if test -z "$CTAGS"; then
3074  CTAGS=ctags
3075fi
3076
3077if test -z "$ETAGS"; then
3078  ETAGS=etags
3079fi
3080
3081if test -z "$CSCOPE"; then
3082  CSCOPE=cscope
3083fi
3084
3085
3086
3087# POSIX will say in a future version that running "rm -f" with no argument
3088# is OK; and we want to be able to make that assumption in our Makefile
3089# recipes.  So use an aggressive probe to check that the usage we want is
3090# actually supported "in the wild" to an acceptable degree.
3091# See automake bug#10828.
3092# To make any issue more visible, cause the running configure to be aborted
3093# by default if the 'rm' program in use doesn't match our expectations; the
3094# user can still override this though.
3095if rm -f && rm -fr && rm -rf; then : OK; else
3096  cat >&2 <<'END'
3097Oops!
3098
3099Your 'rm' program seems unable to run without file operands specified
3100on the command line, even when the '-f' option is present.  This is contrary
3101to the behaviour of most rm programs out there, and not conforming with
3102the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3103
3104Please tell bug-automake@gnu.org about your system, including the value
3105of your $PATH and any error possibly output before this message.  This
3106can help us improve future automake versions.
3107
3108END
3109  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3110    echo 'Configuration will proceed anyway, since you have set the' >&2
3111    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3112    echo >&2
3113  else
3114    cat >&2 <<'END'
3115Aborting the configuration process, to ensure you take notice of the issue.
3116
3117You can download and install GNU coreutils to get an 'rm' implementation
3118that behaves properly: <https://www.gnu.org/software/coreutils/>.
3119
3120If you want to complete the configuration process using your problematic
3121'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3122to "yes", and re-run configure.
3123
3124END
3125    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3126  fi
3127fi
3128
3129
3130# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151DEPDIR="${am__leading_dot}deps"
3152
3153ac_config_commands="$ac_config_commands depfiles"
3154
3155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3156printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3157cat > confinc.mk << 'END'
3158am__doit:
3159	@echo this is the am__doit target >confinc.out
3160.PHONY: am__doit
3161END
3162am__include="#"
3163am__quote=
3164# BSD make does it like this.
3165echo '.include "confinc.mk" # ignored' > confmf.BSD
3166# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3167echo 'include confinc.mk # ignored' > confmf.GNU
3168_am_result=no
3169for s in GNU BSD; do
3170  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3171   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3172   ac_status=$?
3173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174   (exit $ac_status); }
3175  case $?:`cat confinc.out 2>/dev/null` in #(
3176  '0:this is the am__doit target') :
3177    case $s in #(
3178  BSD) :
3179    am__include='.include' am__quote='"' ;; #(
3180  *) :
3181    am__include='include' am__quote='' ;;
3182esac ;; #(
3183  *) :
3184     ;;
3185esac
3186  if test "$am__include" != "#"; then
3187    _am_result="yes ($s style)"
3188    break
3189  fi
3190done
3191rm -f confinc.* confmf.*
3192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3193printf "%s\n" "${_am_result}" >&6; }
3194
3195# Check whether --enable-dependency-tracking was given.
3196if test ${enable_dependency_tracking+y}
3197then :
3198  enableval=$enable_dependency_tracking;
3199fi
3200
3201if test "x$enable_dependency_tracking" != xno; then
3202  am_depcomp="$ac_aux_dir/depcomp"
3203  AMDEPBACKSLASH='\'
3204  am__nodep='_no'
3205fi
3206 if test "x$enable_dependency_tracking" != xno; then
3207  AMDEP_TRUE=
3208  AMDEP_FALSE='#'
3209else
3210  AMDEP_TRUE='#'
3211  AMDEP_FALSE=
3212fi
3213
3214
3215ac_ext=c
3216ac_cpp='$CPP $CPPFLAGS'
3217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3219ac_compiler_gnu=$ac_cv_c_compiler_gnu
3220if test -n "$ac_tool_prefix"; then
3221  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3222set dummy ${ac_tool_prefix}gcc; ac_word=$2
3223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224printf %s "checking for $ac_word... " >&6; }
3225if test ${ac_cv_prog_CC+y}
3226then :
3227  printf %s "(cached) " >&6
3228else case e in #(
3229  e) if test -n "$CC"; then
3230  ac_cv_prog_CC="$CC" # Let the user override the test.
3231else
3232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233for as_dir in $PATH
3234do
3235  IFS=$as_save_IFS
3236  case $as_dir in #(((
3237    '') as_dir=./ ;;
3238    */) ;;
3239    *) as_dir=$as_dir/ ;;
3240  esac
3241    for ac_exec_ext in '' $ac_executable_extensions; do
3242  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3243    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3244    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3245    break 2
3246  fi
3247done
3248  done
3249IFS=$as_save_IFS
3250
3251fi ;;
3252esac
3253fi
3254CC=$ac_cv_prog_CC
3255if test -n "$CC"; then
3256  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3257printf "%s\n" "$CC" >&6; }
3258else
3259  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260printf "%s\n" "no" >&6; }
3261fi
3262
3263
3264fi
3265if test -z "$ac_cv_prog_CC"; then
3266  ac_ct_CC=$CC
3267  # Extract the first word of "gcc", so it can be a program name with args.
3268set dummy gcc; ac_word=$2
3269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3270printf %s "checking for $ac_word... " >&6; }
3271if test ${ac_cv_prog_ac_ct_CC+y}
3272then :
3273  printf %s "(cached) " >&6
3274else case e in #(
3275  e) if test -n "$ac_ct_CC"; then
3276  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3277else
3278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279for as_dir in $PATH
3280do
3281  IFS=$as_save_IFS
3282  case $as_dir in #(((
3283    '') as_dir=./ ;;
3284    */) ;;
3285    *) as_dir=$as_dir/ ;;
3286  esac
3287    for ac_exec_ext in '' $ac_executable_extensions; do
3288  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3289    ac_cv_prog_ac_ct_CC="gcc"
3290    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3291    break 2
3292  fi
3293done
3294  done
3295IFS=$as_save_IFS
3296
3297fi ;;
3298esac
3299fi
3300ac_ct_CC=$ac_cv_prog_ac_ct_CC
3301if test -n "$ac_ct_CC"; then
3302  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3303printf "%s\n" "$ac_ct_CC" >&6; }
3304else
3305  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306printf "%s\n" "no" >&6; }
3307fi
3308
3309  if test "x$ac_ct_CC" = x; then
3310    CC=""
3311  else
3312    case $cross_compiling:$ac_tool_warned in
3313yes:)
3314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3315printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3316ac_tool_warned=yes ;;
3317esac
3318    CC=$ac_ct_CC
3319  fi
3320else
3321  CC="$ac_cv_prog_CC"
3322fi
3323
3324if test -z "$CC"; then
3325          if test -n "$ac_tool_prefix"; then
3326    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3327set dummy ${ac_tool_prefix}cc; ac_word=$2
3328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329printf %s "checking for $ac_word... " >&6; }
3330if test ${ac_cv_prog_CC+y}
3331then :
3332  printf %s "(cached) " >&6
3333else case e in #(
3334  e) if test -n "$CC"; then
3335  ac_cv_prog_CC="$CC" # Let the user override the test.
3336else
3337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338for as_dir in $PATH
3339do
3340  IFS=$as_save_IFS
3341  case $as_dir in #(((
3342    '') as_dir=./ ;;
3343    */) ;;
3344    *) as_dir=$as_dir/ ;;
3345  esac
3346    for ac_exec_ext in '' $ac_executable_extensions; do
3347  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3348    ac_cv_prog_CC="${ac_tool_prefix}cc"
3349    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3350    break 2
3351  fi
3352done
3353  done
3354IFS=$as_save_IFS
3355
3356fi ;;
3357esac
3358fi
3359CC=$ac_cv_prog_CC
3360if test -n "$CC"; then
3361  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3362printf "%s\n" "$CC" >&6; }
3363else
3364  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365printf "%s\n" "no" >&6; }
3366fi
3367
3368
3369  fi
3370fi
3371if test -z "$CC"; then
3372  # Extract the first word of "cc", so it can be a program name with args.
3373set dummy cc; ac_word=$2
3374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3375printf %s "checking for $ac_word... " >&6; }
3376if test ${ac_cv_prog_CC+y}
3377then :
3378  printf %s "(cached) " >&6
3379else case e in #(
3380  e) if test -n "$CC"; then
3381  ac_cv_prog_CC="$CC" # Let the user override the test.
3382else
3383  ac_prog_rejected=no
3384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385for as_dir in $PATH
3386do
3387  IFS=$as_save_IFS
3388  case $as_dir in #(((
3389    '') as_dir=./ ;;
3390    */) ;;
3391    *) as_dir=$as_dir/ ;;
3392  esac
3393    for ac_exec_ext in '' $ac_executable_extensions; do
3394  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3395    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3396       ac_prog_rejected=yes
3397       continue
3398     fi
3399    ac_cv_prog_CC="cc"
3400    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3401    break 2
3402  fi
3403done
3404  done
3405IFS=$as_save_IFS
3406
3407if test $ac_prog_rejected = yes; then
3408  # We found a bogon in the path, so make sure we never use it.
3409  set dummy $ac_cv_prog_CC
3410  shift
3411  if test $# != 0; then
3412    # We chose a different compiler from the bogus one.
3413    # However, it has the same basename, so the bogon will be chosen
3414    # first if we set CC to just the basename; use the full file name.
3415    shift
3416    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3417  fi
3418fi
3419fi ;;
3420esac
3421fi
3422CC=$ac_cv_prog_CC
3423if test -n "$CC"; then
3424  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3425printf "%s\n" "$CC" >&6; }
3426else
3427  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428printf "%s\n" "no" >&6; }
3429fi
3430
3431
3432fi
3433if test -z "$CC"; then
3434  if test -n "$ac_tool_prefix"; then
3435  for ac_prog in cl.exe
3436  do
3437    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3438set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440printf %s "checking for $ac_word... " >&6; }
3441if test ${ac_cv_prog_CC+y}
3442then :
3443  printf %s "(cached) " >&6
3444else case e in #(
3445  e) if test -n "$CC"; then
3446  ac_cv_prog_CC="$CC" # Let the user override the test.
3447else
3448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449for as_dir in $PATH
3450do
3451  IFS=$as_save_IFS
3452  case $as_dir in #(((
3453    '') as_dir=./ ;;
3454    */) ;;
3455    *) as_dir=$as_dir/ ;;
3456  esac
3457    for ac_exec_ext in '' $ac_executable_extensions; do
3458  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3459    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3460    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3461    break 2
3462  fi
3463done
3464  done
3465IFS=$as_save_IFS
3466
3467fi ;;
3468esac
3469fi
3470CC=$ac_cv_prog_CC
3471if test -n "$CC"; then
3472  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3473printf "%s\n" "$CC" >&6; }
3474else
3475  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3476printf "%s\n" "no" >&6; }
3477fi
3478
3479
3480    test -n "$CC" && break
3481  done
3482fi
3483if test -z "$CC"; then
3484  ac_ct_CC=$CC
3485  for ac_prog in cl.exe
3486do
3487  # Extract the first word of "$ac_prog", so it can be a program name with args.
3488set dummy $ac_prog; ac_word=$2
3489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3490printf %s "checking for $ac_word... " >&6; }
3491if test ${ac_cv_prog_ac_ct_CC+y}
3492then :
3493  printf %s "(cached) " >&6
3494else case e in #(
3495  e) if test -n "$ac_ct_CC"; then
3496  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3497else
3498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499for as_dir in $PATH
3500do
3501  IFS=$as_save_IFS
3502  case $as_dir in #(((
3503    '') as_dir=./ ;;
3504    */) ;;
3505    *) as_dir=$as_dir/ ;;
3506  esac
3507    for ac_exec_ext in '' $ac_executable_extensions; do
3508  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3509    ac_cv_prog_ac_ct_CC="$ac_prog"
3510    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3511    break 2
3512  fi
3513done
3514  done
3515IFS=$as_save_IFS
3516
3517fi ;;
3518esac
3519fi
3520ac_ct_CC=$ac_cv_prog_ac_ct_CC
3521if test -n "$ac_ct_CC"; then
3522  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3523printf "%s\n" "$ac_ct_CC" >&6; }
3524else
3525  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526printf "%s\n" "no" >&6; }
3527fi
3528
3529
3530  test -n "$ac_ct_CC" && break
3531done
3532
3533  if test "x$ac_ct_CC" = x; then
3534    CC=""
3535  else
3536    case $cross_compiling:$ac_tool_warned in
3537yes:)
3538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3539printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3540ac_tool_warned=yes ;;
3541esac
3542    CC=$ac_ct_CC
3543  fi
3544fi
3545
3546fi
3547if test -z "$CC"; then
3548  if test -n "$ac_tool_prefix"; then
3549  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3550set dummy ${ac_tool_prefix}clang; ac_word=$2
3551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3552printf %s "checking for $ac_word... " >&6; }
3553if test ${ac_cv_prog_CC+y}
3554then :
3555  printf %s "(cached) " >&6
3556else case e in #(
3557  e) if test -n "$CC"; then
3558  ac_cv_prog_CC="$CC" # Let the user override the test.
3559else
3560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561for as_dir in $PATH
3562do
3563  IFS=$as_save_IFS
3564  case $as_dir in #(((
3565    '') as_dir=./ ;;
3566    */) ;;
3567    *) as_dir=$as_dir/ ;;
3568  esac
3569    for ac_exec_ext in '' $ac_executable_extensions; do
3570  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3571    ac_cv_prog_CC="${ac_tool_prefix}clang"
3572    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3573    break 2
3574  fi
3575done
3576  done
3577IFS=$as_save_IFS
3578
3579fi ;;
3580esac
3581fi
3582CC=$ac_cv_prog_CC
3583if test -n "$CC"; then
3584  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3585printf "%s\n" "$CC" >&6; }
3586else
3587  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588printf "%s\n" "no" >&6; }
3589fi
3590
3591
3592fi
3593if test -z "$ac_cv_prog_CC"; then
3594  ac_ct_CC=$CC
3595  # Extract the first word of "clang", so it can be a program name with args.
3596set dummy clang; ac_word=$2
3597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3598printf %s "checking for $ac_word... " >&6; }
3599if test ${ac_cv_prog_ac_ct_CC+y}
3600then :
3601  printf %s "(cached) " >&6
3602else case e in #(
3603  e) if test -n "$ac_ct_CC"; then
3604  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3605else
3606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607for as_dir in $PATH
3608do
3609  IFS=$as_save_IFS
3610  case $as_dir in #(((
3611    '') as_dir=./ ;;
3612    */) ;;
3613    *) as_dir=$as_dir/ ;;
3614  esac
3615    for ac_exec_ext in '' $ac_executable_extensions; do
3616  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3617    ac_cv_prog_ac_ct_CC="clang"
3618    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3619    break 2
3620  fi
3621done
3622  done
3623IFS=$as_save_IFS
3624
3625fi ;;
3626esac
3627fi
3628ac_ct_CC=$ac_cv_prog_ac_ct_CC
3629if test -n "$ac_ct_CC"; then
3630  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3631printf "%s\n" "$ac_ct_CC" >&6; }
3632else
3633  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3634printf "%s\n" "no" >&6; }
3635fi
3636
3637  if test "x$ac_ct_CC" = x; then
3638    CC=""
3639  else
3640    case $cross_compiling:$ac_tool_warned in
3641yes:)
3642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3643printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3644ac_tool_warned=yes ;;
3645esac
3646    CC=$ac_ct_CC
3647  fi
3648else
3649  CC="$ac_cv_prog_CC"
3650fi
3651
3652fi
3653
3654
3655test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3656printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3657as_fn_error $? "no acceptable C compiler found in \$PATH
3658See 'config.log' for more details" "$LINENO" 5; }
3659
3660# Provide some information about the compiler.
3661printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3662set X $ac_compile
3663ac_compiler=$2
3664for ac_option in --version -v -V -qversion -version; do
3665  { { ac_try="$ac_compiler $ac_option >&5"
3666case "(($ac_try" in
3667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668  *) ac_try_echo=$ac_try;;
3669esac
3670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3671printf "%s\n" "$ac_try_echo"; } >&5
3672  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3673  ac_status=$?
3674  if test -s conftest.err; then
3675    sed '10a\
3676... rest of stderr output deleted ...
3677         10q' conftest.err >conftest.er1
3678    cat conftest.er1 >&5
3679  fi
3680  rm -f conftest.er1 conftest.err
3681  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3682  test $ac_status = 0; }
3683done
3684
3685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686/* end confdefs.h.  */
3687
3688int
3689main (void)
3690{
3691
3692  ;
3693  return 0;
3694}
3695_ACEOF
3696ac_clean_files_save=$ac_clean_files
3697ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3698# Try to create an executable without -o first, disregard a.out.
3699# It will help us diagnose broken compilers, and finding out an intuition
3700# of exeext.
3701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3702printf %s "checking whether the C compiler works... " >&6; }
3703ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3704
3705# The possible output files:
3706ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3707
3708ac_rmfiles=
3709for ac_file in $ac_files
3710do
3711  case $ac_file in
3712    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3713    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3714  esac
3715done
3716rm -f $ac_rmfiles
3717
3718if { { ac_try="$ac_link_default"
3719case "(($ac_try" in
3720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721  *) ac_try_echo=$ac_try;;
3722esac
3723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3724printf "%s\n" "$ac_try_echo"; } >&5
3725  (eval "$ac_link_default") 2>&5
3726  ac_status=$?
3727  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3728  test $ac_status = 0; }
3729then :
3730  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3731# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3732# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3733# so that the user can short-circuit this test for compilers unknown to
3734# Autoconf.
3735for ac_file in $ac_files ''
3736do
3737  test -f "$ac_file" || continue
3738  case $ac_file in
3739    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3740	;;
3741    [ab].out )
3742	# We found the default executable, but exeext='' is most
3743	# certainly right.
3744	break;;
3745    *.* )
3746	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3747	then :; else
3748	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3749	fi
3750	# We set ac_cv_exeext here because the later test for it is not
3751	# safe: cross compilers may not add the suffix if given an '-o'
3752	# argument, so we may need to know it at that point already.
3753	# Even if this section looks crufty: it has the advantage of
3754	# actually working.
3755	break;;
3756    * )
3757	break;;
3758  esac
3759done
3760test "$ac_cv_exeext" = no && ac_cv_exeext=
3761
3762else case e in #(
3763  e) ac_file='' ;;
3764esac
3765fi
3766if test -z "$ac_file"
3767then :
3768  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3769printf "%s\n" "no" >&6; }
3770printf "%s\n" "$as_me: failed program was:" >&5
3771sed 's/^/| /' conftest.$ac_ext >&5
3772
3773{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3774printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3775as_fn_error 77 "C compiler cannot create executables
3776See 'config.log' for more details" "$LINENO" 5; }
3777else case e in #(
3778  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3779printf "%s\n" "yes" >&6; } ;;
3780esac
3781fi
3782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3783printf %s "checking for C compiler default output file name... " >&6; }
3784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3785printf "%s\n" "$ac_file" >&6; }
3786ac_exeext=$ac_cv_exeext
3787
3788rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3789ac_clean_files=$ac_clean_files_save
3790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3791printf %s "checking for suffix of executables... " >&6; }
3792if { { ac_try="$ac_link"
3793case "(($ac_try" in
3794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795  *) ac_try_echo=$ac_try;;
3796esac
3797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3798printf "%s\n" "$ac_try_echo"; } >&5
3799  (eval "$ac_link") 2>&5
3800  ac_status=$?
3801  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3802  test $ac_status = 0; }
3803then :
3804  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3805# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
3806# work properly (i.e., refer to 'conftest.exe'), while it won't with
3807# 'rm'.
3808for ac_file in conftest.exe conftest conftest.*; do
3809  test -f "$ac_file" || continue
3810  case $ac_file in
3811    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3812    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3813	  break;;
3814    * ) break;;
3815  esac
3816done
3817else case e in #(
3818  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3819printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3820as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3821See 'config.log' for more details" "$LINENO" 5; } ;;
3822esac
3823fi
3824rm -f conftest conftest$ac_cv_exeext
3825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3826printf "%s\n" "$ac_cv_exeext" >&6; }
3827
3828rm -f conftest.$ac_ext
3829EXEEXT=$ac_cv_exeext
3830ac_exeext=$EXEEXT
3831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832/* end confdefs.h.  */
3833#include <stdio.h>
3834int
3835main (void)
3836{
3837FILE *f = fopen ("conftest.out", "w");
3838 if (!f)
3839  return 1;
3840 return ferror (f) || fclose (f) != 0;
3841
3842  ;
3843  return 0;
3844}
3845_ACEOF
3846ac_clean_files="$ac_clean_files conftest.out"
3847# Check that the compiler produces executables we can run.  If not, either
3848# the compiler is broken, or we cross compile.
3849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3850printf %s "checking whether we are cross compiling... " >&6; }
3851if test "$cross_compiling" != yes; then
3852  { { ac_try="$ac_link"
3853case "(($ac_try" in
3854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855  *) ac_try_echo=$ac_try;;
3856esac
3857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3858printf "%s\n" "$ac_try_echo"; } >&5
3859  (eval "$ac_link") 2>&5
3860  ac_status=$?
3861  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3862  test $ac_status = 0; }
3863  if { ac_try='./conftest$ac_cv_exeext'
3864  { { case "(($ac_try" in
3865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866  *) ac_try_echo=$ac_try;;
3867esac
3868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3869printf "%s\n" "$ac_try_echo"; } >&5
3870  (eval "$ac_try") 2>&5
3871  ac_status=$?
3872  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3873  test $ac_status = 0; }; }; then
3874    cross_compiling=no
3875  else
3876    if test "$cross_compiling" = maybe; then
3877	cross_compiling=yes
3878    else
3879	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3880printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3881as_fn_error 77 "cannot run C compiled programs.
3882If you meant to cross compile, use '--host'.
3883See 'config.log' for more details" "$LINENO" 5; }
3884    fi
3885  fi
3886fi
3887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3888printf "%s\n" "$cross_compiling" >&6; }
3889
3890rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3891  conftest.o conftest.obj conftest.out
3892ac_clean_files=$ac_clean_files_save
3893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3894printf %s "checking for suffix of object files... " >&6; }
3895if test ${ac_cv_objext+y}
3896then :
3897  printf %s "(cached) " >&6
3898else case e in #(
3899  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900/* end confdefs.h.  */
3901
3902int
3903main (void)
3904{
3905
3906  ;
3907  return 0;
3908}
3909_ACEOF
3910rm -f conftest.o conftest.obj
3911if { { ac_try="$ac_compile"
3912case "(($ac_try" in
3913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914  *) ac_try_echo=$ac_try;;
3915esac
3916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3917printf "%s\n" "$ac_try_echo"; } >&5
3918  (eval "$ac_compile") 2>&5
3919  ac_status=$?
3920  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3921  test $ac_status = 0; }
3922then :
3923  for ac_file in conftest.o conftest.obj conftest.*; do
3924  test -f "$ac_file" || continue;
3925  case $ac_file in
3926    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3927    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3928       break;;
3929  esac
3930done
3931else case e in #(
3932  e) printf "%s\n" "$as_me: failed program was:" >&5
3933sed 's/^/| /' conftest.$ac_ext >&5
3934
3935{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3936printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3937as_fn_error $? "cannot compute suffix of object files: cannot compile
3938See 'config.log' for more details" "$LINENO" 5; } ;;
3939esac
3940fi
3941rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3942esac
3943fi
3944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3945printf "%s\n" "$ac_cv_objext" >&6; }
3946OBJEXT=$ac_cv_objext
3947ac_objext=$OBJEXT
3948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3949printf %s "checking whether the compiler supports GNU C... " >&6; }
3950if test ${ac_cv_c_compiler_gnu+y}
3951then :
3952  printf %s "(cached) " >&6
3953else case e in #(
3954  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955/* end confdefs.h.  */
3956
3957int
3958main (void)
3959{
3960#ifndef __GNUC__
3961       choke me
3962#endif
3963
3964  ;
3965  return 0;
3966}
3967_ACEOF
3968if ac_fn_c_try_compile "$LINENO"
3969then :
3970  ac_compiler_gnu=yes
3971else case e in #(
3972  e) ac_compiler_gnu=no ;;
3973esac
3974fi
3975rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3976ac_cv_c_compiler_gnu=$ac_compiler_gnu
3977 ;;
3978esac
3979fi
3980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3981printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3982ac_compiler_gnu=$ac_cv_c_compiler_gnu
3983
3984if test $ac_compiler_gnu = yes; then
3985  GCC=yes
3986else
3987  GCC=
3988fi
3989ac_test_CFLAGS=${CFLAGS+y}
3990ac_save_CFLAGS=$CFLAGS
3991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3992printf %s "checking whether $CC accepts -g... " >&6; }
3993if test ${ac_cv_prog_cc_g+y}
3994then :
3995  printf %s "(cached) " >&6
3996else case e in #(
3997  e) ac_save_c_werror_flag=$ac_c_werror_flag
3998   ac_c_werror_flag=yes
3999   ac_cv_prog_cc_g=no
4000   CFLAGS="-g"
4001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002/* end confdefs.h.  */
4003
4004int
4005main (void)
4006{
4007
4008  ;
4009  return 0;
4010}
4011_ACEOF
4012if ac_fn_c_try_compile "$LINENO"
4013then :
4014  ac_cv_prog_cc_g=yes
4015else case e in #(
4016  e) CFLAGS=""
4017      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018/* end confdefs.h.  */
4019
4020int
4021main (void)
4022{
4023
4024  ;
4025  return 0;
4026}
4027_ACEOF
4028if ac_fn_c_try_compile "$LINENO"
4029then :
4030
4031else case e in #(
4032  e) ac_c_werror_flag=$ac_save_c_werror_flag
4033	 CFLAGS="-g"
4034	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035/* end confdefs.h.  */
4036
4037int
4038main (void)
4039{
4040
4041  ;
4042  return 0;
4043}
4044_ACEOF
4045if ac_fn_c_try_compile "$LINENO"
4046then :
4047  ac_cv_prog_cc_g=yes
4048fi
4049rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4050esac
4051fi
4052rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4053esac
4054fi
4055rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4056   ac_c_werror_flag=$ac_save_c_werror_flag ;;
4057esac
4058fi
4059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4060printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4061if test $ac_test_CFLAGS; then
4062  CFLAGS=$ac_save_CFLAGS
4063elif test $ac_cv_prog_cc_g = yes; then
4064  if test "$GCC" = yes; then
4065    CFLAGS="-g -O2"
4066  else
4067    CFLAGS="-g"
4068  fi
4069else
4070  if test "$GCC" = yes; then
4071    CFLAGS="-O2"
4072  else
4073    CFLAGS=
4074  fi
4075fi
4076ac_prog_cc_stdc=no
4077if test x$ac_prog_cc_stdc = xno
4078then :
4079  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4080printf %s "checking for $CC option to enable C11 features... " >&6; }
4081if test ${ac_cv_prog_cc_c11+y}
4082then :
4083  printf %s "(cached) " >&6
4084else case e in #(
4085  e) ac_cv_prog_cc_c11=no
4086ac_save_CC=$CC
4087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088/* end confdefs.h.  */
4089$ac_c_conftest_c11_program
4090_ACEOF
4091for ac_arg in '' -std=gnu11
4092do
4093  CC="$ac_save_CC $ac_arg"
4094  if ac_fn_c_try_compile "$LINENO"
4095then :
4096  ac_cv_prog_cc_c11=$ac_arg
4097fi
4098rm -f core conftest.err conftest.$ac_objext conftest.beam
4099  test "x$ac_cv_prog_cc_c11" != "xno" && break
4100done
4101rm -f conftest.$ac_ext
4102CC=$ac_save_CC ;;
4103esac
4104fi
4105
4106if test "x$ac_cv_prog_cc_c11" = xno
4107then :
4108  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4109printf "%s\n" "unsupported" >&6; }
4110else case e in #(
4111  e) if test "x$ac_cv_prog_cc_c11" = x
4112then :
4113  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4114printf "%s\n" "none needed" >&6; }
4115else case e in #(
4116  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4117printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4118     CC="$CC $ac_cv_prog_cc_c11" ;;
4119esac
4120fi
4121  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4122  ac_prog_cc_stdc=c11 ;;
4123esac
4124fi
4125fi
4126if test x$ac_prog_cc_stdc = xno
4127then :
4128  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4129printf %s "checking for $CC option to enable C99 features... " >&6; }
4130if test ${ac_cv_prog_cc_c99+y}
4131then :
4132  printf %s "(cached) " >&6
4133else case e in #(
4134  e) ac_cv_prog_cc_c99=no
4135ac_save_CC=$CC
4136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137/* end confdefs.h.  */
4138$ac_c_conftest_c99_program
4139_ACEOF
4140for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4141do
4142  CC="$ac_save_CC $ac_arg"
4143  if ac_fn_c_try_compile "$LINENO"
4144then :
4145  ac_cv_prog_cc_c99=$ac_arg
4146fi
4147rm -f core conftest.err conftest.$ac_objext conftest.beam
4148  test "x$ac_cv_prog_cc_c99" != "xno" && break
4149done
4150rm -f conftest.$ac_ext
4151CC=$ac_save_CC ;;
4152esac
4153fi
4154
4155if test "x$ac_cv_prog_cc_c99" = xno
4156then :
4157  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4158printf "%s\n" "unsupported" >&6; }
4159else case e in #(
4160  e) if test "x$ac_cv_prog_cc_c99" = x
4161then :
4162  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4163printf "%s\n" "none needed" >&6; }
4164else case e in #(
4165  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4166printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4167     CC="$CC $ac_cv_prog_cc_c99" ;;
4168esac
4169fi
4170  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4171  ac_prog_cc_stdc=c99 ;;
4172esac
4173fi
4174fi
4175if test x$ac_prog_cc_stdc = xno
4176then :
4177  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4178printf %s "checking for $CC option to enable C89 features... " >&6; }
4179if test ${ac_cv_prog_cc_c89+y}
4180then :
4181  printf %s "(cached) " >&6
4182else case e in #(
4183  e) ac_cv_prog_cc_c89=no
4184ac_save_CC=$CC
4185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186/* end confdefs.h.  */
4187$ac_c_conftest_c89_program
4188_ACEOF
4189for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4190do
4191  CC="$ac_save_CC $ac_arg"
4192  if ac_fn_c_try_compile "$LINENO"
4193then :
4194  ac_cv_prog_cc_c89=$ac_arg
4195fi
4196rm -f core conftest.err conftest.$ac_objext conftest.beam
4197  test "x$ac_cv_prog_cc_c89" != "xno" && break
4198done
4199rm -f conftest.$ac_ext
4200CC=$ac_save_CC ;;
4201esac
4202fi
4203
4204if test "x$ac_cv_prog_cc_c89" = xno
4205then :
4206  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4207printf "%s\n" "unsupported" >&6; }
4208else case e in #(
4209  e) if test "x$ac_cv_prog_cc_c89" = x
4210then :
4211  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4212printf "%s\n" "none needed" >&6; }
4213else case e in #(
4214  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4215printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4216     CC="$CC $ac_cv_prog_cc_c89" ;;
4217esac
4218fi
4219  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4220  ac_prog_cc_stdc=c89 ;;
4221esac
4222fi
4223fi
4224
4225ac_ext=c
4226ac_cpp='$CPP $CPPFLAGS'
4227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4229ac_compiler_gnu=$ac_cv_c_compiler_gnu
4230
4231
4232  ac_ext=c
4233ac_cpp='$CPP $CPPFLAGS'
4234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236ac_compiler_gnu=$ac_cv_c_compiler_gnu
4237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4238printf %s "checking whether $CC understands -c and -o together... " >&6; }
4239if test ${am_cv_prog_cc_c_o+y}
4240then :
4241  printf %s "(cached) " >&6
4242else case e in #(
4243  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244/* end confdefs.h.  */
4245
4246int
4247main (void)
4248{
4249
4250  ;
4251  return 0;
4252}
4253_ACEOF
4254  # Make sure it works both with $CC and with simple cc.
4255  # Following AC_PROG_CC_C_O, we do the test twice because some
4256  # compilers refuse to overwrite an existing .o file with -o,
4257  # though they will create one.
4258  am_cv_prog_cc_c_o=yes
4259  for am_i in 1 2; do
4260    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4261   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4262   ac_status=$?
4263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264   (exit $ac_status); } \
4265         && test -f conftest2.$ac_objext; then
4266      : OK
4267    else
4268      am_cv_prog_cc_c_o=no
4269      break
4270    fi
4271  done
4272  rm -f core conftest*
4273  unset am_i ;;
4274esac
4275fi
4276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4277printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4278if test "$am_cv_prog_cc_c_o" != yes; then
4279   # Losing compiler, so override with the script.
4280   # FIXME: It is wrong to rewrite CC.
4281   # But if we don't then we get into trouble of one sort or another.
4282   # A longer-term fix would be to have automake use am__CC in this case,
4283   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4284   CC="$am_aux_dir/compile $CC"
4285fi
4286ac_ext=c
4287ac_cpp='$CPP $CPPFLAGS'
4288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290ac_compiler_gnu=$ac_cv_c_compiler_gnu
4291
4292
4293depcc="$CC"   am_compiler_list=
4294
4295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4296printf %s "checking dependency style of $depcc... " >&6; }
4297if test ${am_cv_CC_dependencies_compiler_type+y}
4298then :
4299  printf %s "(cached) " >&6
4300else case e in #(
4301  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4302  # We make a subdir and do the tests there.  Otherwise we can end up
4303  # making bogus files that we don't know about and never remove.  For
4304  # instance it was reported that on HP-UX the gcc test will end up
4305  # making a dummy file named 'D' -- because '-MD' means "put the output
4306  # in D".
4307  rm -rf conftest.dir
4308  mkdir conftest.dir
4309  # Copy depcomp to subdir because otherwise we won't find it if we're
4310  # using a relative directory.
4311  cp "$am_depcomp" conftest.dir
4312  cd conftest.dir
4313  # We will build objects and dependencies in a subdirectory because
4314  # it helps to detect inapplicable dependency modes.  For instance
4315  # both Tru64's cc and ICC support -MD to output dependencies as a
4316  # side effect of compilation, but ICC will put the dependencies in
4317  # the current directory while Tru64 will put them in the object
4318  # directory.
4319  mkdir sub
4320
4321  am_cv_CC_dependencies_compiler_type=none
4322  if test "$am_compiler_list" = ""; then
4323     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4324  fi
4325  am__universal=false
4326  case " $depcc " in #(
4327     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4328     esac
4329
4330  for depmode in $am_compiler_list; do
4331    # Setup a source with many dependencies, because some compilers
4332    # like to wrap large dependency lists on column 80 (with \), and
4333    # we should not choose a depcomp mode which is confused by this.
4334    #
4335    # We need to recreate these files for each test, as the compiler may
4336    # overwrite some of them when testing with obscure command lines.
4337    # This happens at least with the AIX C compiler.
4338    : > sub/conftest.c
4339    for i in 1 2 3 4 5 6; do
4340      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4341      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4342      # Solaris 10 /bin/sh.
4343      echo '/* dummy */' > sub/conftst$i.h
4344    done
4345    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4346
4347    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4348    # mode.  It turns out that the SunPro C++ compiler does not properly
4349    # handle '-M -o', and we need to detect this.  Also, some Intel
4350    # versions had trouble with output in subdirs.
4351    am__obj=sub/conftest.${OBJEXT-o}
4352    am__minus_obj="-o $am__obj"
4353    case $depmode in
4354    gcc)
4355      # This depmode causes a compiler race in universal mode.
4356      test "$am__universal" = false || continue
4357      ;;
4358    nosideeffect)
4359      # After this tag, mechanisms are not by side-effect, so they'll
4360      # only be used when explicitly requested.
4361      if test "x$enable_dependency_tracking" = xyes; then
4362	continue
4363      else
4364	break
4365      fi
4366      ;;
4367    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4368      # This compiler won't grok '-c -o', but also, the minuso test has
4369      # not run yet.  These depmodes are late enough in the game, and
4370      # so weak that their functioning should not be impacted.
4371      am__obj=conftest.${OBJEXT-o}
4372      am__minus_obj=
4373      ;;
4374    none) break ;;
4375    esac
4376    if depmode=$depmode \
4377       source=sub/conftest.c object=$am__obj \
4378       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4379       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4380         >/dev/null 2>conftest.err &&
4381       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4382       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4383       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4384       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4385      # icc doesn't choke on unknown options, it will just issue warnings
4386      # or remarks (even with -Werror).  So we grep stderr for any message
4387      # that says an option was ignored or not supported.
4388      # When given -MP, icc 7.0 and 7.1 complain thusly:
4389      #   icc: Command line warning: ignoring option '-M'; no argument required
4390      # The diagnosis changed in icc 8.0:
4391      #   icc: Command line remark: option '-MP' not supported
4392      if (grep 'ignoring option' conftest.err ||
4393          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4394        am_cv_CC_dependencies_compiler_type=$depmode
4395        break
4396      fi
4397    fi
4398  done
4399
4400  cd ..
4401  rm -rf conftest.dir
4402else
4403  am_cv_CC_dependencies_compiler_type=none
4404fi
4405 ;;
4406esac
4407fi
4408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4409printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4410CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4411
4412 if
4413  test "x$enable_dependency_tracking" != xno \
4414  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4415  am__fastdepCC_TRUE=
4416  am__fastdepCC_FALSE='#'
4417else
4418  am__fastdepCC_TRUE='#'
4419  am__fastdepCC_FALSE=
4420fi
4421
4422
4423
4424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4425printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4426if test ${ac_cv_c_undeclared_builtin_options+y}
4427then :
4428  printf %s "(cached) " >&6
4429else case e in #(
4430  e) ac_save_CFLAGS=$CFLAGS
4431   ac_cv_c_undeclared_builtin_options='cannot detect'
4432   for ac_arg in '' -fno-builtin; do
4433     CFLAGS="$ac_save_CFLAGS $ac_arg"
4434     # This test program should *not* compile successfully.
4435     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436/* end confdefs.h.  */
4437
4438int
4439main (void)
4440{
4441(void) strchr;
4442  ;
4443  return 0;
4444}
4445_ACEOF
4446if ac_fn_c_try_compile "$LINENO"
4447then :
4448
4449else case e in #(
4450  e) # This test program should compile successfully.
4451        # No library function is consistently available on
4452        # freestanding implementations, so test against a dummy
4453        # declaration.  Include always-available headers on the
4454        # off chance that they somehow elicit warnings.
4455        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4456/* end confdefs.h.  */
4457#include <float.h>
4458#include <limits.h>
4459#include <stdarg.h>
4460#include <stddef.h>
4461extern void ac_decl (int, char *);
4462
4463int
4464main (void)
4465{
4466(void) ac_decl (0, (char *) 0);
4467  (void) ac_decl;
4468
4469  ;
4470  return 0;
4471}
4472_ACEOF
4473if ac_fn_c_try_compile "$LINENO"
4474then :
4475  if test x"$ac_arg" = x
4476then :
4477  ac_cv_c_undeclared_builtin_options='none needed'
4478else case e in #(
4479  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4480esac
4481fi
4482          break
4483fi
4484rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4485esac
4486fi
4487rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4488    done
4489    CFLAGS=$ac_save_CFLAGS
4490   ;;
4491esac
4492fi
4493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4494printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4495  case $ac_cv_c_undeclared_builtin_options in #(
4496  'cannot detect') :
4497    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4498printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4499as_fn_error $? "cannot make $CC report undeclared builtins
4500See 'config.log' for more details" "$LINENO" 5; } ;; #(
4501  'none needed') :
4502    ac_c_undeclared_builtin_options='' ;; #(
4503  *) :
4504    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4505esac
4506
4507ac_header= ac_cache=
4508for ac_item in $ac_header_c_list
4509do
4510  if test $ac_cache; then
4511    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4512    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4513      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4514    fi
4515    ac_header= ac_cache=
4516  elif test $ac_header; then
4517    ac_cache=$ac_item
4518  else
4519    ac_header=$ac_item
4520  fi
4521done
4522
4523
4524
4525
4526
4527
4528
4529
4530if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4531then :
4532
4533printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4534
4535fi
4536
4537
4538
4539
4540ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4541if test "x$ac_cv_have_decl___clang__" = xyes
4542then :
4543  CLANGCC="yes"
4544else case e in #(
4545  e) CLANGCC="no" ;;
4546esac
4547fi
4548ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4549if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4550then :
4551  INTELCC="yes"
4552else case e in #(
4553  e) INTELCC="no" ;;
4554esac
4555fi
4556ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4557if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4558then :
4559  SUNCC="yes"
4560else case e in #(
4561  e) SUNCC="no" ;;
4562esac
4563fi
4564
4565
4566
4567
4568
4569
4570
4571
4572if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4573	if test -n "$ac_tool_prefix"; then
4574  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4575set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4577printf %s "checking for $ac_word... " >&6; }
4578if test ${ac_cv_path_PKG_CONFIG+y}
4579then :
4580  printf %s "(cached) " >&6
4581else case e in #(
4582  e) case $PKG_CONFIG in
4583  [\\/]* | ?:[\\/]*)
4584  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4585  ;;
4586  *)
4587  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588for as_dir in $PATH
4589do
4590  IFS=$as_save_IFS
4591  case $as_dir in #(((
4592    '') as_dir=./ ;;
4593    */) ;;
4594    *) as_dir=$as_dir/ ;;
4595  esac
4596    for ac_exec_ext in '' $ac_executable_extensions; do
4597  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4598    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4599    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4600    break 2
4601  fi
4602done
4603  done
4604IFS=$as_save_IFS
4605
4606  ;;
4607esac ;;
4608esac
4609fi
4610PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4611if test -n "$PKG_CONFIG"; then
4612  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4613printf "%s\n" "$PKG_CONFIG" >&6; }
4614else
4615  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4616printf "%s\n" "no" >&6; }
4617fi
4618
4619
4620fi
4621if test -z "$ac_cv_path_PKG_CONFIG"; then
4622  ac_pt_PKG_CONFIG=$PKG_CONFIG
4623  # Extract the first word of "pkg-config", so it can be a program name with args.
4624set dummy pkg-config; ac_word=$2
4625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4626printf %s "checking for $ac_word... " >&6; }
4627if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4628then :
4629  printf %s "(cached) " >&6
4630else case e in #(
4631  e) case $ac_pt_PKG_CONFIG in
4632  [\\/]* | ?:[\\/]*)
4633  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4634  ;;
4635  *)
4636  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637for as_dir in $PATH
4638do
4639  IFS=$as_save_IFS
4640  case $as_dir in #(((
4641    '') as_dir=./ ;;
4642    */) ;;
4643    *) as_dir=$as_dir/ ;;
4644  esac
4645    for ac_exec_ext in '' $ac_executable_extensions; do
4646  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4647    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4648    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4649    break 2
4650  fi
4651done
4652  done
4653IFS=$as_save_IFS
4654
4655  ;;
4656esac ;;
4657esac
4658fi
4659ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4660if test -n "$ac_pt_PKG_CONFIG"; then
4661  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4662printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4663else
4664  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665printf "%s\n" "no" >&6; }
4666fi
4667
4668  if test "x$ac_pt_PKG_CONFIG" = x; then
4669    PKG_CONFIG=""
4670  else
4671    case $cross_compiling:$ac_tool_warned in
4672yes:)
4673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4674printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4675ac_tool_warned=yes ;;
4676esac
4677    PKG_CONFIG=$ac_pt_PKG_CONFIG
4678  fi
4679else
4680  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4681fi
4682
4683fi
4684if test -n "$PKG_CONFIG"; then
4685	_pkg_min_version=0.9.0
4686	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4687printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4688	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4689		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4690printf "%s\n" "yes" >&6; }
4691	else
4692		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693printf "%s\n" "no" >&6; }
4694		PKG_CONFIG=""
4695	fi
4696fi
4697
4698
4699  # Make sure we can run config.sub.
4700$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4701  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4702
4703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4704printf %s "checking build system type... " >&6; }
4705if test ${ac_cv_build+y}
4706then :
4707  printf %s "(cached) " >&6
4708else case e in #(
4709  e) ac_build_alias=$build_alias
4710test "x$ac_build_alias" = x &&
4711  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4712test "x$ac_build_alias" = x &&
4713  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4714ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4715  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4716 ;;
4717esac
4718fi
4719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4720printf "%s\n" "$ac_cv_build" >&6; }
4721case $ac_cv_build in
4722*-*-*) ;;
4723*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4724esac
4725build=$ac_cv_build
4726ac_save_IFS=$IFS; IFS='-'
4727set x $ac_cv_build
4728shift
4729build_cpu=$1
4730build_vendor=$2
4731shift; shift
4732# Remember, the first character of IFS is used to create $*,
4733# except with old shells:
4734build_os=$*
4735IFS=$ac_save_IFS
4736case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4737
4738
4739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4740printf %s "checking host system type... " >&6; }
4741if test ${ac_cv_host+y}
4742then :
4743  printf %s "(cached) " >&6
4744else case e in #(
4745  e) if test "x$host_alias" = x; then
4746  ac_cv_host=$ac_cv_build
4747else
4748  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4749    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4750fi
4751 ;;
4752esac
4753fi
4754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4755printf "%s\n" "$ac_cv_host" >&6; }
4756case $ac_cv_host in
4757*-*-*) ;;
4758*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4759esac
4760host=$ac_cv_host
4761ac_save_IFS=$IFS; IFS='-'
4762set x $ac_cv_host
4763shift
4764host_cpu=$1
4765host_vendor=$2
4766shift; shift
4767# Remember, the first character of IFS is used to create $*,
4768# except with old shells:
4769host_os=$*
4770IFS=$ac_save_IFS
4771case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4772
4773
4774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4775printf %s "checking for a sed that does not truncate output... " >&6; }
4776if test ${ac_cv_path_SED+y}
4777then :
4778  printf %s "(cached) " >&6
4779else case e in #(
4780  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4781     for ac_i in 1 2 3 4 5 6 7; do
4782       ac_script="$ac_script$as_nl$ac_script"
4783     done
4784     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4785     { ac_script=; unset ac_script;}
4786     if test -z "$SED"; then
4787  ac_path_SED_found=false
4788  # Loop through the user's path and test for each of PROGNAME-LIST
4789  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790for as_dir in $PATH
4791do
4792  IFS=$as_save_IFS
4793  case $as_dir in #(((
4794    '') as_dir=./ ;;
4795    */) ;;
4796    *) as_dir=$as_dir/ ;;
4797  esac
4798    for ac_prog in sed gsed
4799   do
4800    for ac_exec_ext in '' $ac_executable_extensions; do
4801      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4802      as_fn_executable_p "$ac_path_SED" || continue
4803# Check for GNU ac_path_SED and select it if it is found.
4804  # Check for GNU $ac_path_SED
4805case `"$ac_path_SED" --version 2>&1` in #(
4806*GNU*)
4807  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4808#(
4809*)
4810  ac_count=0
4811  printf %s 0123456789 >"conftest.in"
4812  while :
4813  do
4814    cat "conftest.in" "conftest.in" >"conftest.tmp"
4815    mv "conftest.tmp" "conftest.in"
4816    cp "conftest.in" "conftest.nl"
4817    printf "%s\n" '' >> "conftest.nl"
4818    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4819    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4820    as_fn_arith $ac_count + 1 && ac_count=$as_val
4821    if test $ac_count -gt ${ac_path_SED_max-0}; then
4822      # Best one so far, save it but keep looking for a better one
4823      ac_cv_path_SED="$ac_path_SED"
4824      ac_path_SED_max=$ac_count
4825    fi
4826    # 10*(2^10) chars as input seems more than enough
4827    test $ac_count -gt 10 && break
4828  done
4829  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4830esac
4831
4832      $ac_path_SED_found && break 3
4833    done
4834  done
4835  done
4836IFS=$as_save_IFS
4837  if test -z "$ac_cv_path_SED"; then
4838    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4839  fi
4840else
4841  ac_cv_path_SED=$SED
4842fi
4843 ;;
4844esac
4845fi
4846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4847printf "%s\n" "$ac_cv_path_SED" >&6; }
4848 SED="$ac_cv_path_SED"
4849  rm -f conftest.sed
4850
4851
4852
4853
4854
4855
4856# Check whether --enable-selective-werror was given.
4857if test ${enable_selective_werror+y}
4858then :
4859  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4860else case e in #(
4861  e) SELECTIVE_WERROR=yes ;;
4862esac
4863fi
4864
4865
4866
4867
4868
4869# -v is too short to test reliably with XORG_TESTSET_CFLAG
4870if test "x$SUNCC" = "xyes"; then
4871    BASE_CFLAGS="-v"
4872else
4873    BASE_CFLAGS=""
4874fi
4875
4876# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890xorg_testset_save_CFLAGS="$CFLAGS"
4891
4892if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4893	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4894	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4895printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4896if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4897then :
4898  printf %s "(cached) " >&6
4899else case e in #(
4900  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901/* end confdefs.h.  */
4902int i;
4903_ACEOF
4904if ac_fn_c_try_compile "$LINENO"
4905then :
4906  xorg_cv_cc_flag_unknown_warning_option=yes
4907else case e in #(
4908  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
4909esac
4910fi
4911rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4912esac
4913fi
4914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4915printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4916	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4917	CFLAGS="$xorg_testset_save_CFLAGS"
4918fi
4919
4920if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4921	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4922		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4923	fi
4924	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4925	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4926printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4927if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4928then :
4929  printf %s "(cached) " >&6
4930else case e in #(
4931  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932/* end confdefs.h.  */
4933int i;
4934_ACEOF
4935if ac_fn_c_try_compile "$LINENO"
4936then :
4937  xorg_cv_cc_flag_unused_command_line_argument=yes
4938else case e in #(
4939  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
4940esac
4941fi
4942rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4943esac
4944fi
4945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4946printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4947	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4948	CFLAGS="$xorg_testset_save_CFLAGS"
4949fi
4950
4951found="no"
4952
4953	if test $found = "no" ; then
4954		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4955			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4956		fi
4957
4958		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4959			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4960		fi
4961
4962		CFLAGS="$CFLAGS -Wall"
4963
4964		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4965printf %s "checking if $CC supports -Wall... " >&6; }
4966		cacheid=xorg_cv_cc_flag__Wall
4967		if eval test \${$cacheid+y}
4968then :
4969  printf %s "(cached) " >&6
4970else case e in #(
4971  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972/* end confdefs.h.  */
4973int i;
4974int
4975main (void)
4976{
4977
4978  ;
4979  return 0;
4980}
4981_ACEOF
4982if ac_fn_c_try_link "$LINENO"
4983then :
4984  eval $cacheid=yes
4985else case e in #(
4986  e) eval $cacheid=no ;;
4987esac
4988fi
4989rm -f core conftest.err conftest.$ac_objext conftest.beam \
4990    conftest$ac_exeext conftest.$ac_ext ;;
4991esac
4992fi
4993
4994
4995		CFLAGS="$xorg_testset_save_CFLAGS"
4996
4997		eval supported=\$$cacheid
4998		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4999printf "%s\n" "$supported" >&6; }
5000		if test "$supported" = "yes" ; then
5001			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5002			found="yes"
5003		fi
5004	fi
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020xorg_testset_save_CFLAGS="$CFLAGS"
5021
5022if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5023	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5024	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5025printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5026if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5027then :
5028  printf %s "(cached) " >&6
5029else case e in #(
5030  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031/* end confdefs.h.  */
5032int i;
5033_ACEOF
5034if ac_fn_c_try_compile "$LINENO"
5035then :
5036  xorg_cv_cc_flag_unknown_warning_option=yes
5037else case e in #(
5038  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5039esac
5040fi
5041rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5042esac
5043fi
5044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5045printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5046	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5047	CFLAGS="$xorg_testset_save_CFLAGS"
5048fi
5049
5050if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5051	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5052		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5053	fi
5054	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5055	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5056printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5057if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5058then :
5059  printf %s "(cached) " >&6
5060else case e in #(
5061  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062/* end confdefs.h.  */
5063int i;
5064_ACEOF
5065if ac_fn_c_try_compile "$LINENO"
5066then :
5067  xorg_cv_cc_flag_unused_command_line_argument=yes
5068else case e in #(
5069  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5070esac
5071fi
5072rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5073esac
5074fi
5075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5076printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5077	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5078	CFLAGS="$xorg_testset_save_CFLAGS"
5079fi
5080
5081found="no"
5082
5083	if test $found = "no" ; then
5084		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5085			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5086		fi
5087
5088		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5089			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5090		fi
5091
5092		CFLAGS="$CFLAGS -Wpointer-arith"
5093
5094		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5095printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5096		cacheid=xorg_cv_cc_flag__Wpointer_arith
5097		if eval test \${$cacheid+y}
5098then :
5099  printf %s "(cached) " >&6
5100else case e in #(
5101  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102/* end confdefs.h.  */
5103int i;
5104int
5105main (void)
5106{
5107
5108  ;
5109  return 0;
5110}
5111_ACEOF
5112if ac_fn_c_try_link "$LINENO"
5113then :
5114  eval $cacheid=yes
5115else case e in #(
5116  e) eval $cacheid=no ;;
5117esac
5118fi
5119rm -f core conftest.err conftest.$ac_objext conftest.beam \
5120    conftest$ac_exeext conftest.$ac_ext ;;
5121esac
5122fi
5123
5124
5125		CFLAGS="$xorg_testset_save_CFLAGS"
5126
5127		eval supported=\$$cacheid
5128		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5129printf "%s\n" "$supported" >&6; }
5130		if test "$supported" = "yes" ; then
5131			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5132			found="yes"
5133		fi
5134	fi
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150xorg_testset_save_CFLAGS="$CFLAGS"
5151
5152if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5153	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5154	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5155printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5156if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5157then :
5158  printf %s "(cached) " >&6
5159else case e in #(
5160  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161/* end confdefs.h.  */
5162int i;
5163_ACEOF
5164if ac_fn_c_try_compile "$LINENO"
5165then :
5166  xorg_cv_cc_flag_unknown_warning_option=yes
5167else case e in #(
5168  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5169esac
5170fi
5171rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5172esac
5173fi
5174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5175printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5176	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5177	CFLAGS="$xorg_testset_save_CFLAGS"
5178fi
5179
5180if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5181	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5182		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5183	fi
5184	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5185	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5186printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5187if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5188then :
5189  printf %s "(cached) " >&6
5190else case e in #(
5191  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192/* end confdefs.h.  */
5193int i;
5194_ACEOF
5195if ac_fn_c_try_compile "$LINENO"
5196then :
5197  xorg_cv_cc_flag_unused_command_line_argument=yes
5198else case e in #(
5199  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5200esac
5201fi
5202rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5203esac
5204fi
5205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5206printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5207	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5208	CFLAGS="$xorg_testset_save_CFLAGS"
5209fi
5210
5211found="no"
5212
5213	if test $found = "no" ; then
5214		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5215			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5216		fi
5217
5218		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5219			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5220		fi
5221
5222		CFLAGS="$CFLAGS -Wmissing-declarations"
5223
5224		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5225printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5226		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5227		if eval test \${$cacheid+y}
5228then :
5229  printf %s "(cached) " >&6
5230else case e in #(
5231  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232/* end confdefs.h.  */
5233int i;
5234int
5235main (void)
5236{
5237
5238  ;
5239  return 0;
5240}
5241_ACEOF
5242if ac_fn_c_try_link "$LINENO"
5243then :
5244  eval $cacheid=yes
5245else case e in #(
5246  e) eval $cacheid=no ;;
5247esac
5248fi
5249rm -f core conftest.err conftest.$ac_objext conftest.beam \
5250    conftest$ac_exeext conftest.$ac_ext ;;
5251esac
5252fi
5253
5254
5255		CFLAGS="$xorg_testset_save_CFLAGS"
5256
5257		eval supported=\$$cacheid
5258		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5259printf "%s\n" "$supported" >&6; }
5260		if test "$supported" = "yes" ; then
5261			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5262			found="yes"
5263		fi
5264	fi
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280xorg_testset_save_CFLAGS="$CFLAGS"
5281
5282if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5283	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5284	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5285printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5286if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5287then :
5288  printf %s "(cached) " >&6
5289else case e in #(
5290  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291/* end confdefs.h.  */
5292int i;
5293_ACEOF
5294if ac_fn_c_try_compile "$LINENO"
5295then :
5296  xorg_cv_cc_flag_unknown_warning_option=yes
5297else case e in #(
5298  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5299esac
5300fi
5301rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5302esac
5303fi
5304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5305printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5306	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5307	CFLAGS="$xorg_testset_save_CFLAGS"
5308fi
5309
5310if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5311	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5312		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5313	fi
5314	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5315	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5316printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5317if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5318then :
5319  printf %s "(cached) " >&6
5320else case e in #(
5321  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322/* end confdefs.h.  */
5323int i;
5324_ACEOF
5325if ac_fn_c_try_compile "$LINENO"
5326then :
5327  xorg_cv_cc_flag_unused_command_line_argument=yes
5328else case e in #(
5329  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5330esac
5331fi
5332rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5333esac
5334fi
5335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5336printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5337	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5338	CFLAGS="$xorg_testset_save_CFLAGS"
5339fi
5340
5341found="no"
5342
5343	if test $found = "no" ; then
5344		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5345			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5346		fi
5347
5348		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5349			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5350		fi
5351
5352		CFLAGS="$CFLAGS -Wformat=2"
5353
5354		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5355printf %s "checking if $CC supports -Wformat=2... " >&6; }
5356		cacheid=xorg_cv_cc_flag__Wformat_2
5357		if eval test \${$cacheid+y}
5358then :
5359  printf %s "(cached) " >&6
5360else case e in #(
5361  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5362/* end confdefs.h.  */
5363int i;
5364int
5365main (void)
5366{
5367
5368  ;
5369  return 0;
5370}
5371_ACEOF
5372if ac_fn_c_try_link "$LINENO"
5373then :
5374  eval $cacheid=yes
5375else case e in #(
5376  e) eval $cacheid=no ;;
5377esac
5378fi
5379rm -f core conftest.err conftest.$ac_objext conftest.beam \
5380    conftest$ac_exeext conftest.$ac_ext ;;
5381esac
5382fi
5383
5384
5385		CFLAGS="$xorg_testset_save_CFLAGS"
5386
5387		eval supported=\$$cacheid
5388		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5389printf "%s\n" "$supported" >&6; }
5390		if test "$supported" = "yes" ; then
5391			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5392			found="yes"
5393		fi
5394	fi
5395
5396	if test $found = "no" ; then
5397		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5398			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5399		fi
5400
5401		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5402			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5403		fi
5404
5405		CFLAGS="$CFLAGS -Wformat"
5406
5407		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5408printf %s "checking if $CC supports -Wformat... " >&6; }
5409		cacheid=xorg_cv_cc_flag__Wformat
5410		if eval test \${$cacheid+y}
5411then :
5412  printf %s "(cached) " >&6
5413else case e in #(
5414  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415/* end confdefs.h.  */
5416int i;
5417int
5418main (void)
5419{
5420
5421  ;
5422  return 0;
5423}
5424_ACEOF
5425if ac_fn_c_try_link "$LINENO"
5426then :
5427  eval $cacheid=yes
5428else case e in #(
5429  e) eval $cacheid=no ;;
5430esac
5431fi
5432rm -f core conftest.err conftest.$ac_objext conftest.beam \
5433    conftest$ac_exeext conftest.$ac_ext ;;
5434esac
5435fi
5436
5437
5438		CFLAGS="$xorg_testset_save_CFLAGS"
5439
5440		eval supported=\$$cacheid
5441		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5442printf "%s\n" "$supported" >&6; }
5443		if test "$supported" = "yes" ; then
5444			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5445			found="yes"
5446		fi
5447	fi
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465xorg_testset_save_CFLAGS="$CFLAGS"
5466
5467if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5468	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5469	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5470printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5471if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5472then :
5473  printf %s "(cached) " >&6
5474else case e in #(
5475  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476/* end confdefs.h.  */
5477int i;
5478_ACEOF
5479if ac_fn_c_try_compile "$LINENO"
5480then :
5481  xorg_cv_cc_flag_unknown_warning_option=yes
5482else case e in #(
5483  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5484esac
5485fi
5486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5487esac
5488fi
5489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5490printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5491	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5492	CFLAGS="$xorg_testset_save_CFLAGS"
5493fi
5494
5495if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5496	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5497		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5498	fi
5499	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5500	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5501printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5502if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5503then :
5504  printf %s "(cached) " >&6
5505else case e in #(
5506  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507/* end confdefs.h.  */
5508int i;
5509_ACEOF
5510if ac_fn_c_try_compile "$LINENO"
5511then :
5512  xorg_cv_cc_flag_unused_command_line_argument=yes
5513else case e in #(
5514  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5515esac
5516fi
5517rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5518esac
5519fi
5520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5521printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5522	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5523	CFLAGS="$xorg_testset_save_CFLAGS"
5524fi
5525
5526found="no"
5527
5528	if test $found = "no" ; then
5529		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5530			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5531		fi
5532
5533		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5534			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5535		fi
5536
5537		CFLAGS="$CFLAGS -Wstrict-prototypes"
5538
5539		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5540printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5541		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5542		if eval test \${$cacheid+y}
5543then :
5544  printf %s "(cached) " >&6
5545else case e in #(
5546  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547/* end confdefs.h.  */
5548int i;
5549int
5550main (void)
5551{
5552
5553  ;
5554  return 0;
5555}
5556_ACEOF
5557if ac_fn_c_try_link "$LINENO"
5558then :
5559  eval $cacheid=yes
5560else case e in #(
5561  e) eval $cacheid=no ;;
5562esac
5563fi
5564rm -f core conftest.err conftest.$ac_objext conftest.beam \
5565    conftest$ac_exeext conftest.$ac_ext ;;
5566esac
5567fi
5568
5569
5570		CFLAGS="$xorg_testset_save_CFLAGS"
5571
5572		eval supported=\$$cacheid
5573		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5574printf "%s\n" "$supported" >&6; }
5575		if test "$supported" = "yes" ; then
5576			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5577			found="yes"
5578		fi
5579	fi
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595xorg_testset_save_CFLAGS="$CFLAGS"
5596
5597if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5598	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5599	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5600printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5601if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5602then :
5603  printf %s "(cached) " >&6
5604else case e in #(
5605  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606/* end confdefs.h.  */
5607int i;
5608_ACEOF
5609if ac_fn_c_try_compile "$LINENO"
5610then :
5611  xorg_cv_cc_flag_unknown_warning_option=yes
5612else case e in #(
5613  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5614esac
5615fi
5616rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5617esac
5618fi
5619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5620printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5621	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5622	CFLAGS="$xorg_testset_save_CFLAGS"
5623fi
5624
5625if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5626	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5627		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5628	fi
5629	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5630	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5631printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5632if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5633then :
5634  printf %s "(cached) " >&6
5635else case e in #(
5636  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637/* end confdefs.h.  */
5638int i;
5639_ACEOF
5640if ac_fn_c_try_compile "$LINENO"
5641then :
5642  xorg_cv_cc_flag_unused_command_line_argument=yes
5643else case e in #(
5644  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5645esac
5646fi
5647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5648esac
5649fi
5650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5651printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5652	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5653	CFLAGS="$xorg_testset_save_CFLAGS"
5654fi
5655
5656found="no"
5657
5658	if test $found = "no" ; then
5659		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5660			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5661		fi
5662
5663		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5664			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5665		fi
5666
5667		CFLAGS="$CFLAGS -Wmissing-prototypes"
5668
5669		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5670printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5671		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5672		if eval test \${$cacheid+y}
5673then :
5674  printf %s "(cached) " >&6
5675else case e in #(
5676  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677/* end confdefs.h.  */
5678int i;
5679int
5680main (void)
5681{
5682
5683  ;
5684  return 0;
5685}
5686_ACEOF
5687if ac_fn_c_try_link "$LINENO"
5688then :
5689  eval $cacheid=yes
5690else case e in #(
5691  e) eval $cacheid=no ;;
5692esac
5693fi
5694rm -f core conftest.err conftest.$ac_objext conftest.beam \
5695    conftest$ac_exeext conftest.$ac_ext ;;
5696esac
5697fi
5698
5699
5700		CFLAGS="$xorg_testset_save_CFLAGS"
5701
5702		eval supported=\$$cacheid
5703		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5704printf "%s\n" "$supported" >&6; }
5705		if test "$supported" = "yes" ; then
5706			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5707			found="yes"
5708		fi
5709	fi
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725xorg_testset_save_CFLAGS="$CFLAGS"
5726
5727if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5728	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5729	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5730printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5731if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5732then :
5733  printf %s "(cached) " >&6
5734else case e in #(
5735  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5736/* end confdefs.h.  */
5737int i;
5738_ACEOF
5739if ac_fn_c_try_compile "$LINENO"
5740then :
5741  xorg_cv_cc_flag_unknown_warning_option=yes
5742else case e in #(
5743  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5744esac
5745fi
5746rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5747esac
5748fi
5749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5750printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5751	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5752	CFLAGS="$xorg_testset_save_CFLAGS"
5753fi
5754
5755if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5756	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5757		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5758	fi
5759	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5760	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5761printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5762if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5763then :
5764  printf %s "(cached) " >&6
5765else case e in #(
5766  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767/* end confdefs.h.  */
5768int i;
5769_ACEOF
5770if ac_fn_c_try_compile "$LINENO"
5771then :
5772  xorg_cv_cc_flag_unused_command_line_argument=yes
5773else case e in #(
5774  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5775esac
5776fi
5777rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5778esac
5779fi
5780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5781printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5782	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5783	CFLAGS="$xorg_testset_save_CFLAGS"
5784fi
5785
5786found="no"
5787
5788	if test $found = "no" ; then
5789		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5790			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5791		fi
5792
5793		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5794			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5795		fi
5796
5797		CFLAGS="$CFLAGS -Wnested-externs"
5798
5799		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5800printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5801		cacheid=xorg_cv_cc_flag__Wnested_externs
5802		if eval test \${$cacheid+y}
5803then :
5804  printf %s "(cached) " >&6
5805else case e in #(
5806  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5807/* end confdefs.h.  */
5808int i;
5809int
5810main (void)
5811{
5812
5813  ;
5814  return 0;
5815}
5816_ACEOF
5817if ac_fn_c_try_link "$LINENO"
5818then :
5819  eval $cacheid=yes
5820else case e in #(
5821  e) eval $cacheid=no ;;
5822esac
5823fi
5824rm -f core conftest.err conftest.$ac_objext conftest.beam \
5825    conftest$ac_exeext conftest.$ac_ext ;;
5826esac
5827fi
5828
5829
5830		CFLAGS="$xorg_testset_save_CFLAGS"
5831
5832		eval supported=\$$cacheid
5833		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5834printf "%s\n" "$supported" >&6; }
5835		if test "$supported" = "yes" ; then
5836			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5837			found="yes"
5838		fi
5839	fi
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855xorg_testset_save_CFLAGS="$CFLAGS"
5856
5857if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5858	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5859	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5860printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5861if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5862then :
5863  printf %s "(cached) " >&6
5864else case e in #(
5865  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866/* end confdefs.h.  */
5867int i;
5868_ACEOF
5869if ac_fn_c_try_compile "$LINENO"
5870then :
5871  xorg_cv_cc_flag_unknown_warning_option=yes
5872else case e in #(
5873  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5874esac
5875fi
5876rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5877esac
5878fi
5879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5880printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5881	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5882	CFLAGS="$xorg_testset_save_CFLAGS"
5883fi
5884
5885if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5886	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5887		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5888	fi
5889	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5890	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5891printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5892if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5893then :
5894  printf %s "(cached) " >&6
5895else case e in #(
5896  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897/* end confdefs.h.  */
5898int i;
5899_ACEOF
5900if ac_fn_c_try_compile "$LINENO"
5901then :
5902  xorg_cv_cc_flag_unused_command_line_argument=yes
5903else case e in #(
5904  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5905esac
5906fi
5907rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5908esac
5909fi
5910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5911printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5912	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5913	CFLAGS="$xorg_testset_save_CFLAGS"
5914fi
5915
5916found="no"
5917
5918	if test $found = "no" ; then
5919		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5920			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5921		fi
5922
5923		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5924			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5925		fi
5926
5927		CFLAGS="$CFLAGS -Wbad-function-cast"
5928
5929		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5930printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5931		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5932		if eval test \${$cacheid+y}
5933then :
5934  printf %s "(cached) " >&6
5935else case e in #(
5936  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5937/* end confdefs.h.  */
5938int i;
5939int
5940main (void)
5941{
5942
5943  ;
5944  return 0;
5945}
5946_ACEOF
5947if ac_fn_c_try_link "$LINENO"
5948then :
5949  eval $cacheid=yes
5950else case e in #(
5951  e) eval $cacheid=no ;;
5952esac
5953fi
5954rm -f core conftest.err conftest.$ac_objext conftest.beam \
5955    conftest$ac_exeext conftest.$ac_ext ;;
5956esac
5957fi
5958
5959
5960		CFLAGS="$xorg_testset_save_CFLAGS"
5961
5962		eval supported=\$$cacheid
5963		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5964printf "%s\n" "$supported" >&6; }
5965		if test "$supported" = "yes" ; then
5966			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5967			found="yes"
5968		fi
5969	fi
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985xorg_testset_save_CFLAGS="$CFLAGS"
5986
5987if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5988	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5989	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5990printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5991if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5992then :
5993  printf %s "(cached) " >&6
5994else case e in #(
5995  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996/* end confdefs.h.  */
5997int i;
5998_ACEOF
5999if ac_fn_c_try_compile "$LINENO"
6000then :
6001  xorg_cv_cc_flag_unknown_warning_option=yes
6002else case e in #(
6003  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6004esac
6005fi
6006rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6007esac
6008fi
6009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6010printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6011	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6012	CFLAGS="$xorg_testset_save_CFLAGS"
6013fi
6014
6015if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6016	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6017		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6018	fi
6019	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6020	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6021printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6022if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6023then :
6024  printf %s "(cached) " >&6
6025else case e in #(
6026  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6027/* end confdefs.h.  */
6028int i;
6029_ACEOF
6030if ac_fn_c_try_compile "$LINENO"
6031then :
6032  xorg_cv_cc_flag_unused_command_line_argument=yes
6033else case e in #(
6034  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6035esac
6036fi
6037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6038esac
6039fi
6040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6041printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6042	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6043	CFLAGS="$xorg_testset_save_CFLAGS"
6044fi
6045
6046found="no"
6047
6048	if test $found = "no" ; then
6049		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6050			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6051		fi
6052
6053		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6054			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6055		fi
6056
6057		CFLAGS="$CFLAGS -Wold-style-definition"
6058
6059		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6060printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6061		cacheid=xorg_cv_cc_flag__Wold_style_definition
6062		if eval test \${$cacheid+y}
6063then :
6064  printf %s "(cached) " >&6
6065else case e in #(
6066  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6067/* end confdefs.h.  */
6068int i;
6069int
6070main (void)
6071{
6072
6073  ;
6074  return 0;
6075}
6076_ACEOF
6077if ac_fn_c_try_link "$LINENO"
6078then :
6079  eval $cacheid=yes
6080else case e in #(
6081  e) eval $cacheid=no ;;
6082esac
6083fi
6084rm -f core conftest.err conftest.$ac_objext conftest.beam \
6085    conftest$ac_exeext conftest.$ac_ext ;;
6086esac
6087fi
6088
6089
6090		CFLAGS="$xorg_testset_save_CFLAGS"
6091
6092		eval supported=\$$cacheid
6093		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6094printf "%s\n" "$supported" >&6; }
6095		if test "$supported" = "yes" ; then
6096			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6097			found="yes"
6098		fi
6099	fi
6100
6101	if test $found = "no" ; then
6102		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6103			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6104		fi
6105
6106		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6107			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6108		fi
6109
6110		CFLAGS="$CFLAGS -fd"
6111
6112		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6113printf %s "checking if $CC supports -fd... " >&6; }
6114		cacheid=xorg_cv_cc_flag__fd
6115		if eval test \${$cacheid+y}
6116then :
6117  printf %s "(cached) " >&6
6118else case e in #(
6119  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6120/* end confdefs.h.  */
6121int i;
6122int
6123main (void)
6124{
6125
6126  ;
6127  return 0;
6128}
6129_ACEOF
6130if ac_fn_c_try_link "$LINENO"
6131then :
6132  eval $cacheid=yes
6133else case e in #(
6134  e) eval $cacheid=no ;;
6135esac
6136fi
6137rm -f core conftest.err conftest.$ac_objext conftest.beam \
6138    conftest$ac_exeext conftest.$ac_ext ;;
6139esac
6140fi
6141
6142
6143		CFLAGS="$xorg_testset_save_CFLAGS"
6144
6145		eval supported=\$$cacheid
6146		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6147printf "%s\n" "$supported" >&6; }
6148		if test "$supported" = "yes" ; then
6149			BASE_CFLAGS="$BASE_CFLAGS -fd"
6150			found="yes"
6151		fi
6152	fi
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168xorg_testset_save_CFLAGS="$CFLAGS"
6169
6170if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6171	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6172	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6173printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6174if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6175then :
6176  printf %s "(cached) " >&6
6177else case e in #(
6178  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6179/* end confdefs.h.  */
6180int i;
6181_ACEOF
6182if ac_fn_c_try_compile "$LINENO"
6183then :
6184  xorg_cv_cc_flag_unknown_warning_option=yes
6185else case e in #(
6186  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6187esac
6188fi
6189rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6190esac
6191fi
6192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6193printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6194	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6195	CFLAGS="$xorg_testset_save_CFLAGS"
6196fi
6197
6198if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6199	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6200		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6201	fi
6202	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6203	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6204printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6205if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6206then :
6207  printf %s "(cached) " >&6
6208else case e in #(
6209  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210/* end confdefs.h.  */
6211int i;
6212_ACEOF
6213if ac_fn_c_try_compile "$LINENO"
6214then :
6215  xorg_cv_cc_flag_unused_command_line_argument=yes
6216else case e in #(
6217  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6218esac
6219fi
6220rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6221esac
6222fi
6223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6224printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6225	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6226	CFLAGS="$xorg_testset_save_CFLAGS"
6227fi
6228
6229found="no"
6230
6231	if test $found = "no" ; then
6232		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6233			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6234		fi
6235
6236		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6237			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6238		fi
6239
6240		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6241
6242		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6243printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6244		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6245		if eval test \${$cacheid+y}
6246then :
6247  printf %s "(cached) " >&6
6248else case e in #(
6249  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250/* end confdefs.h.  */
6251int i;
6252int
6253main (void)
6254{
6255
6256  ;
6257  return 0;
6258}
6259_ACEOF
6260if ac_fn_c_try_link "$LINENO"
6261then :
6262  eval $cacheid=yes
6263else case e in #(
6264  e) eval $cacheid=no ;;
6265esac
6266fi
6267rm -f core conftest.err conftest.$ac_objext conftest.beam \
6268    conftest$ac_exeext conftest.$ac_ext ;;
6269esac
6270fi
6271
6272
6273		CFLAGS="$xorg_testset_save_CFLAGS"
6274
6275		eval supported=\$$cacheid
6276		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6277printf "%s\n" "$supported" >&6; }
6278		if test "$supported" = "yes" ; then
6279			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6280			found="yes"
6281		fi
6282	fi
6283
6284
6285
6286
6287
6288# This chunk adds additional warnings that could catch undesired effects.
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302xorg_testset_save_CFLAGS="$CFLAGS"
6303
6304if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6305	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6306	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6307printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6308if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6309then :
6310  printf %s "(cached) " >&6
6311else case e in #(
6312  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313/* end confdefs.h.  */
6314int i;
6315_ACEOF
6316if ac_fn_c_try_compile "$LINENO"
6317then :
6318  xorg_cv_cc_flag_unknown_warning_option=yes
6319else case e in #(
6320  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6321esac
6322fi
6323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6324esac
6325fi
6326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6327printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6328	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6329	CFLAGS="$xorg_testset_save_CFLAGS"
6330fi
6331
6332if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6333	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6334		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6335	fi
6336	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6337	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6338printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6339if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6340then :
6341  printf %s "(cached) " >&6
6342else case e in #(
6343  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344/* end confdefs.h.  */
6345int i;
6346_ACEOF
6347if ac_fn_c_try_compile "$LINENO"
6348then :
6349  xorg_cv_cc_flag_unused_command_line_argument=yes
6350else case e in #(
6351  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6352esac
6353fi
6354rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6355esac
6356fi
6357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6358printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6359	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6360	CFLAGS="$xorg_testset_save_CFLAGS"
6361fi
6362
6363found="no"
6364
6365	if test $found = "no" ; then
6366		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6367			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6368		fi
6369
6370		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6371			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6372		fi
6373
6374		CFLAGS="$CFLAGS -Wunused"
6375
6376		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6377printf %s "checking if $CC supports -Wunused... " >&6; }
6378		cacheid=xorg_cv_cc_flag__Wunused
6379		if eval test \${$cacheid+y}
6380then :
6381  printf %s "(cached) " >&6
6382else case e in #(
6383  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384/* end confdefs.h.  */
6385int i;
6386int
6387main (void)
6388{
6389
6390  ;
6391  return 0;
6392}
6393_ACEOF
6394if ac_fn_c_try_link "$LINENO"
6395then :
6396  eval $cacheid=yes
6397else case e in #(
6398  e) eval $cacheid=no ;;
6399esac
6400fi
6401rm -f core conftest.err conftest.$ac_objext conftest.beam \
6402    conftest$ac_exeext conftest.$ac_ext ;;
6403esac
6404fi
6405
6406
6407		CFLAGS="$xorg_testset_save_CFLAGS"
6408
6409		eval supported=\$$cacheid
6410		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6411printf "%s\n" "$supported" >&6; }
6412		if test "$supported" = "yes" ; then
6413			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6414			found="yes"
6415		fi
6416	fi
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432xorg_testset_save_CFLAGS="$CFLAGS"
6433
6434if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6435	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6436	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6437printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6438if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6439then :
6440  printf %s "(cached) " >&6
6441else case e in #(
6442  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443/* end confdefs.h.  */
6444int i;
6445_ACEOF
6446if ac_fn_c_try_compile "$LINENO"
6447then :
6448  xorg_cv_cc_flag_unknown_warning_option=yes
6449else case e in #(
6450  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6451esac
6452fi
6453rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6454esac
6455fi
6456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6457printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6458	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6459	CFLAGS="$xorg_testset_save_CFLAGS"
6460fi
6461
6462if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6463	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6464		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6465	fi
6466	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6467	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6468printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6469if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6470then :
6471  printf %s "(cached) " >&6
6472else case e in #(
6473  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474/* end confdefs.h.  */
6475int i;
6476_ACEOF
6477if ac_fn_c_try_compile "$LINENO"
6478then :
6479  xorg_cv_cc_flag_unused_command_line_argument=yes
6480else case e in #(
6481  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6482esac
6483fi
6484rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6485esac
6486fi
6487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6488printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6489	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6490	CFLAGS="$xorg_testset_save_CFLAGS"
6491fi
6492
6493found="no"
6494
6495	if test $found = "no" ; then
6496		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6497			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6498		fi
6499
6500		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6501			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6502		fi
6503
6504		CFLAGS="$CFLAGS -Wuninitialized"
6505
6506		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6507printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6508		cacheid=xorg_cv_cc_flag__Wuninitialized
6509		if eval test \${$cacheid+y}
6510then :
6511  printf %s "(cached) " >&6
6512else case e in #(
6513  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514/* end confdefs.h.  */
6515int i;
6516int
6517main (void)
6518{
6519
6520  ;
6521  return 0;
6522}
6523_ACEOF
6524if ac_fn_c_try_link "$LINENO"
6525then :
6526  eval $cacheid=yes
6527else case e in #(
6528  e) eval $cacheid=no ;;
6529esac
6530fi
6531rm -f core conftest.err conftest.$ac_objext conftest.beam \
6532    conftest$ac_exeext conftest.$ac_ext ;;
6533esac
6534fi
6535
6536
6537		CFLAGS="$xorg_testset_save_CFLAGS"
6538
6539		eval supported=\$$cacheid
6540		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6541printf "%s\n" "$supported" >&6; }
6542		if test "$supported" = "yes" ; then
6543			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6544			found="yes"
6545		fi
6546	fi
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562xorg_testset_save_CFLAGS="$CFLAGS"
6563
6564if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6565	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6566	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6567printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6568if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6569then :
6570  printf %s "(cached) " >&6
6571else case e in #(
6572  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573/* end confdefs.h.  */
6574int i;
6575_ACEOF
6576if ac_fn_c_try_compile "$LINENO"
6577then :
6578  xorg_cv_cc_flag_unknown_warning_option=yes
6579else case e in #(
6580  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6581esac
6582fi
6583rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6584esac
6585fi
6586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6587printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6588	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6589	CFLAGS="$xorg_testset_save_CFLAGS"
6590fi
6591
6592if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6593	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6594		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6595	fi
6596	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6597	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6598printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6599if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6600then :
6601  printf %s "(cached) " >&6
6602else case e in #(
6603  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604/* end confdefs.h.  */
6605int i;
6606_ACEOF
6607if ac_fn_c_try_compile "$LINENO"
6608then :
6609  xorg_cv_cc_flag_unused_command_line_argument=yes
6610else case e in #(
6611  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6612esac
6613fi
6614rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6615esac
6616fi
6617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6618printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6619	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6620	CFLAGS="$xorg_testset_save_CFLAGS"
6621fi
6622
6623found="no"
6624
6625	if test $found = "no" ; then
6626		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6627			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6628		fi
6629
6630		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6631			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6632		fi
6633
6634		CFLAGS="$CFLAGS -Wshadow"
6635
6636		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6637printf %s "checking if $CC supports -Wshadow... " >&6; }
6638		cacheid=xorg_cv_cc_flag__Wshadow
6639		if eval test \${$cacheid+y}
6640then :
6641  printf %s "(cached) " >&6
6642else case e in #(
6643  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6644/* end confdefs.h.  */
6645int i;
6646int
6647main (void)
6648{
6649
6650  ;
6651  return 0;
6652}
6653_ACEOF
6654if ac_fn_c_try_link "$LINENO"
6655then :
6656  eval $cacheid=yes
6657else case e in #(
6658  e) eval $cacheid=no ;;
6659esac
6660fi
6661rm -f core conftest.err conftest.$ac_objext conftest.beam \
6662    conftest$ac_exeext conftest.$ac_ext ;;
6663esac
6664fi
6665
6666
6667		CFLAGS="$xorg_testset_save_CFLAGS"
6668
6669		eval supported=\$$cacheid
6670		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6671printf "%s\n" "$supported" >&6; }
6672		if test "$supported" = "yes" ; then
6673			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6674			found="yes"
6675		fi
6676	fi
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692xorg_testset_save_CFLAGS="$CFLAGS"
6693
6694if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6695	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6696	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6697printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6698if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6699then :
6700  printf %s "(cached) " >&6
6701else case e in #(
6702  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703/* end confdefs.h.  */
6704int i;
6705_ACEOF
6706if ac_fn_c_try_compile "$LINENO"
6707then :
6708  xorg_cv_cc_flag_unknown_warning_option=yes
6709else case e in #(
6710  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6711esac
6712fi
6713rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6714esac
6715fi
6716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6717printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6718	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6719	CFLAGS="$xorg_testset_save_CFLAGS"
6720fi
6721
6722if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6723	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6724		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6725	fi
6726	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6727	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6728printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6729if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6730then :
6731  printf %s "(cached) " >&6
6732else case e in #(
6733  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734/* end confdefs.h.  */
6735int i;
6736_ACEOF
6737if ac_fn_c_try_compile "$LINENO"
6738then :
6739  xorg_cv_cc_flag_unused_command_line_argument=yes
6740else case e in #(
6741  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6742esac
6743fi
6744rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6745esac
6746fi
6747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6748printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6749	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6750	CFLAGS="$xorg_testset_save_CFLAGS"
6751fi
6752
6753found="no"
6754
6755	if test $found = "no" ; then
6756		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6757			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6758		fi
6759
6760		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6761			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6762		fi
6763
6764		CFLAGS="$CFLAGS -Wmissing-noreturn"
6765
6766		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6767printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6768		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6769		if eval test \${$cacheid+y}
6770then :
6771  printf %s "(cached) " >&6
6772else case e in #(
6773  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6774/* end confdefs.h.  */
6775int i;
6776int
6777main (void)
6778{
6779
6780  ;
6781  return 0;
6782}
6783_ACEOF
6784if ac_fn_c_try_link "$LINENO"
6785then :
6786  eval $cacheid=yes
6787else case e in #(
6788  e) eval $cacheid=no ;;
6789esac
6790fi
6791rm -f core conftest.err conftest.$ac_objext conftest.beam \
6792    conftest$ac_exeext conftest.$ac_ext ;;
6793esac
6794fi
6795
6796
6797		CFLAGS="$xorg_testset_save_CFLAGS"
6798
6799		eval supported=\$$cacheid
6800		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6801printf "%s\n" "$supported" >&6; }
6802		if test "$supported" = "yes" ; then
6803			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6804			found="yes"
6805		fi
6806	fi
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822xorg_testset_save_CFLAGS="$CFLAGS"
6823
6824if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6825	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6826	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6827printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6828if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6829then :
6830  printf %s "(cached) " >&6
6831else case e in #(
6832  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833/* end confdefs.h.  */
6834int i;
6835_ACEOF
6836if ac_fn_c_try_compile "$LINENO"
6837then :
6838  xorg_cv_cc_flag_unknown_warning_option=yes
6839else case e in #(
6840  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6841esac
6842fi
6843rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6844esac
6845fi
6846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6847printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6848	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6849	CFLAGS="$xorg_testset_save_CFLAGS"
6850fi
6851
6852if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6853	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6854		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6855	fi
6856	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6857	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6858printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6859if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6860then :
6861  printf %s "(cached) " >&6
6862else case e in #(
6863  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864/* end confdefs.h.  */
6865int i;
6866_ACEOF
6867if ac_fn_c_try_compile "$LINENO"
6868then :
6869  xorg_cv_cc_flag_unused_command_line_argument=yes
6870else case e in #(
6871  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6872esac
6873fi
6874rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6875esac
6876fi
6877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6878printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6879	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6880	CFLAGS="$xorg_testset_save_CFLAGS"
6881fi
6882
6883found="no"
6884
6885	if test $found = "no" ; then
6886		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6887			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6888		fi
6889
6890		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6891			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6892		fi
6893
6894		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6895
6896		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6897printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6898		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6899		if eval test \${$cacheid+y}
6900then :
6901  printf %s "(cached) " >&6
6902else case e in #(
6903  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904/* end confdefs.h.  */
6905int i;
6906int
6907main (void)
6908{
6909
6910  ;
6911  return 0;
6912}
6913_ACEOF
6914if ac_fn_c_try_link "$LINENO"
6915then :
6916  eval $cacheid=yes
6917else case e in #(
6918  e) eval $cacheid=no ;;
6919esac
6920fi
6921rm -f core conftest.err conftest.$ac_objext conftest.beam \
6922    conftest$ac_exeext conftest.$ac_ext ;;
6923esac
6924fi
6925
6926
6927		CFLAGS="$xorg_testset_save_CFLAGS"
6928
6929		eval supported=\$$cacheid
6930		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6931printf "%s\n" "$supported" >&6; }
6932		if test "$supported" = "yes" ; then
6933			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6934			found="yes"
6935		fi
6936	fi
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952xorg_testset_save_CFLAGS="$CFLAGS"
6953
6954if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6955	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6956	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6957printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6958if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6959then :
6960  printf %s "(cached) " >&6
6961else case e in #(
6962  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963/* end confdefs.h.  */
6964int i;
6965_ACEOF
6966if ac_fn_c_try_compile "$LINENO"
6967then :
6968  xorg_cv_cc_flag_unknown_warning_option=yes
6969else case e in #(
6970  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6971esac
6972fi
6973rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6974esac
6975fi
6976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6977printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6978	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6979	CFLAGS="$xorg_testset_save_CFLAGS"
6980fi
6981
6982if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6983	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6984		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6985	fi
6986	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6987	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6988printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6989if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6990then :
6991  printf %s "(cached) " >&6
6992else case e in #(
6993  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994/* end confdefs.h.  */
6995int i;
6996_ACEOF
6997if ac_fn_c_try_compile "$LINENO"
6998then :
6999  xorg_cv_cc_flag_unused_command_line_argument=yes
7000else case e in #(
7001  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7002esac
7003fi
7004rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7005esac
7006fi
7007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7008printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7009	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7010	CFLAGS="$xorg_testset_save_CFLAGS"
7011fi
7012
7013found="no"
7014
7015	if test $found = "no" ; then
7016		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7017			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7018		fi
7019
7020		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7021			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7022		fi
7023
7024		CFLAGS="$CFLAGS -Wredundant-decls"
7025
7026		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7027printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7028		cacheid=xorg_cv_cc_flag__Wredundant_decls
7029		if eval test \${$cacheid+y}
7030then :
7031  printf %s "(cached) " >&6
7032else case e in #(
7033  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034/* end confdefs.h.  */
7035int i;
7036int
7037main (void)
7038{
7039
7040  ;
7041  return 0;
7042}
7043_ACEOF
7044if ac_fn_c_try_link "$LINENO"
7045then :
7046  eval $cacheid=yes
7047else case e in #(
7048  e) eval $cacheid=no ;;
7049esac
7050fi
7051rm -f core conftest.err conftest.$ac_objext conftest.beam \
7052    conftest$ac_exeext conftest.$ac_ext ;;
7053esac
7054fi
7055
7056
7057		CFLAGS="$xorg_testset_save_CFLAGS"
7058
7059		eval supported=\$$cacheid
7060		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7061printf "%s\n" "$supported" >&6; }
7062		if test "$supported" = "yes" ; then
7063			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7064			found="yes"
7065		fi
7066	fi
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082xorg_testset_save_CFLAGS="$CFLAGS"
7083
7084if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7085	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7086	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7087printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7088if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7089then :
7090  printf %s "(cached) " >&6
7091else case e in #(
7092  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093/* end confdefs.h.  */
7094int i;
7095_ACEOF
7096if ac_fn_c_try_compile "$LINENO"
7097then :
7098  xorg_cv_cc_flag_unknown_warning_option=yes
7099else case e in #(
7100  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7101esac
7102fi
7103rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7104esac
7105fi
7106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7107printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7108	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7109	CFLAGS="$xorg_testset_save_CFLAGS"
7110fi
7111
7112if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7113	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7114		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7115	fi
7116	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7117	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7118printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7119if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7120then :
7121  printf %s "(cached) " >&6
7122else case e in #(
7123  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124/* end confdefs.h.  */
7125int i;
7126_ACEOF
7127if ac_fn_c_try_compile "$LINENO"
7128then :
7129  xorg_cv_cc_flag_unused_command_line_argument=yes
7130else case e in #(
7131  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7132esac
7133fi
7134rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7135esac
7136fi
7137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7138printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7139	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7140	CFLAGS="$xorg_testset_save_CFLAGS"
7141fi
7142
7143found="no"
7144
7145	if test $found = "no" ; then
7146		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7147			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7148		fi
7149
7150		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7151			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7152		fi
7153
7154		CFLAGS="$CFLAGS -Wlogical-op"
7155
7156		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7157printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7158		cacheid=xorg_cv_cc_flag__Wlogical_op
7159		if eval test \${$cacheid+y}
7160then :
7161  printf %s "(cached) " >&6
7162else case e in #(
7163  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164/* end confdefs.h.  */
7165int i;
7166int
7167main (void)
7168{
7169
7170  ;
7171  return 0;
7172}
7173_ACEOF
7174if ac_fn_c_try_link "$LINENO"
7175then :
7176  eval $cacheid=yes
7177else case e in #(
7178  e) eval $cacheid=no ;;
7179esac
7180fi
7181rm -f core conftest.err conftest.$ac_objext conftest.beam \
7182    conftest$ac_exeext conftest.$ac_ext ;;
7183esac
7184fi
7185
7186
7187		CFLAGS="$xorg_testset_save_CFLAGS"
7188
7189		eval supported=\$$cacheid
7190		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7191printf "%s\n" "$supported" >&6; }
7192		if test "$supported" = "yes" ; then
7193			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7194			found="yes"
7195		fi
7196	fi
7197
7198
7199
7200# These are currently disabled because they are noisy.  They will be enabled
7201# in the future once the codebase is sufficiently modernized to silence
7202# them.  For now, I don't want them to drown out the other warnings.
7203# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7204# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7205# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7206
7207# Turn some warnings into errors, so we don't accidentally get successful builds
7208# when there are problems that should be fixed.
7209
7210if test "x$SELECTIVE_WERROR" = "xyes" ; then
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224xorg_testset_save_CFLAGS="$CFLAGS"
7225
7226if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7227	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7228	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7229printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7230if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7231then :
7232  printf %s "(cached) " >&6
7233else case e in #(
7234  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235/* end confdefs.h.  */
7236int i;
7237_ACEOF
7238if ac_fn_c_try_compile "$LINENO"
7239then :
7240  xorg_cv_cc_flag_unknown_warning_option=yes
7241else case e in #(
7242  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7243esac
7244fi
7245rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7246esac
7247fi
7248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7249printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7250	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7251	CFLAGS="$xorg_testset_save_CFLAGS"
7252fi
7253
7254if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7255	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7256		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7257	fi
7258	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7259	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7260printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7261if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7262then :
7263  printf %s "(cached) " >&6
7264else case e in #(
7265  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266/* end confdefs.h.  */
7267int i;
7268_ACEOF
7269if ac_fn_c_try_compile "$LINENO"
7270then :
7271  xorg_cv_cc_flag_unused_command_line_argument=yes
7272else case e in #(
7273  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7274esac
7275fi
7276rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7277esac
7278fi
7279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7280printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7281	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7282	CFLAGS="$xorg_testset_save_CFLAGS"
7283fi
7284
7285found="no"
7286
7287	if test $found = "no" ; then
7288		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7289			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7290		fi
7291
7292		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7293			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7294		fi
7295
7296		CFLAGS="$CFLAGS -Werror=implicit"
7297
7298		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7299printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7300		cacheid=xorg_cv_cc_flag__Werror_implicit
7301		if eval test \${$cacheid+y}
7302then :
7303  printf %s "(cached) " >&6
7304else case e in #(
7305  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306/* end confdefs.h.  */
7307int i;
7308int
7309main (void)
7310{
7311
7312  ;
7313  return 0;
7314}
7315_ACEOF
7316if ac_fn_c_try_link "$LINENO"
7317then :
7318  eval $cacheid=yes
7319else case e in #(
7320  e) eval $cacheid=no ;;
7321esac
7322fi
7323rm -f core conftest.err conftest.$ac_objext conftest.beam \
7324    conftest$ac_exeext conftest.$ac_ext ;;
7325esac
7326fi
7327
7328
7329		CFLAGS="$xorg_testset_save_CFLAGS"
7330
7331		eval supported=\$$cacheid
7332		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7333printf "%s\n" "$supported" >&6; }
7334		if test "$supported" = "yes" ; then
7335			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7336			found="yes"
7337		fi
7338	fi
7339
7340	if test $found = "no" ; then
7341		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7342			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7343		fi
7344
7345		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7346			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7347		fi
7348
7349		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7350
7351		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7352printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7353		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7354		if eval test \${$cacheid+y}
7355then :
7356  printf %s "(cached) " >&6
7357else case e in #(
7358  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7359/* end confdefs.h.  */
7360int i;
7361int
7362main (void)
7363{
7364
7365  ;
7366  return 0;
7367}
7368_ACEOF
7369if ac_fn_c_try_link "$LINENO"
7370then :
7371  eval $cacheid=yes
7372else case e in #(
7373  e) eval $cacheid=no ;;
7374esac
7375fi
7376rm -f core conftest.err conftest.$ac_objext conftest.beam \
7377    conftest$ac_exeext conftest.$ac_ext ;;
7378esac
7379fi
7380
7381
7382		CFLAGS="$xorg_testset_save_CFLAGS"
7383
7384		eval supported=\$$cacheid
7385		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7386printf "%s\n" "$supported" >&6; }
7387		if test "$supported" = "yes" ; then
7388			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7389			found="yes"
7390		fi
7391	fi
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407xorg_testset_save_CFLAGS="$CFLAGS"
7408
7409if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7410	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7411	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7412printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7413if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7414then :
7415  printf %s "(cached) " >&6
7416else case e in #(
7417  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7418/* end confdefs.h.  */
7419int i;
7420_ACEOF
7421if ac_fn_c_try_compile "$LINENO"
7422then :
7423  xorg_cv_cc_flag_unknown_warning_option=yes
7424else case e in #(
7425  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7426esac
7427fi
7428rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7429esac
7430fi
7431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7432printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7433	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7434	CFLAGS="$xorg_testset_save_CFLAGS"
7435fi
7436
7437if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7438	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7439		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7440	fi
7441	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7442	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7443printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7444if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7445then :
7446  printf %s "(cached) " >&6
7447else case e in #(
7448  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449/* end confdefs.h.  */
7450int i;
7451_ACEOF
7452if ac_fn_c_try_compile "$LINENO"
7453then :
7454  xorg_cv_cc_flag_unused_command_line_argument=yes
7455else case e in #(
7456  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7457esac
7458fi
7459rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7460esac
7461fi
7462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7463printf "%s\n" "$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=nonnull"
7480
7481		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7482printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7483		cacheid=xorg_cv_cc_flag__Werror_nonnull
7484		if eval test \${$cacheid+y}
7485then :
7486  printf %s "(cached) " >&6
7487else case e in #(
7488  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489/* end confdefs.h.  */
7490int i;
7491int
7492main (void)
7493{
7494
7495  ;
7496  return 0;
7497}
7498_ACEOF
7499if ac_fn_c_try_link "$LINENO"
7500then :
7501  eval $cacheid=yes
7502else case e in #(
7503  e) eval $cacheid=no ;;
7504esac
7505fi
7506rm -f core conftest.err conftest.$ac_objext conftest.beam \
7507    conftest$ac_exeext conftest.$ac_ext ;;
7508esac
7509fi
7510
7511
7512		CFLAGS="$xorg_testset_save_CFLAGS"
7513
7514		eval supported=\$$cacheid
7515		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7516printf "%s\n" "$supported" >&6; }
7517		if test "$supported" = "yes" ; then
7518			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7519			found="yes"
7520		fi
7521	fi
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537xorg_testset_save_CFLAGS="$CFLAGS"
7538
7539if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7540	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7541	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7542printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7543if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7544then :
7545  printf %s "(cached) " >&6
7546else case e in #(
7547  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548/* end confdefs.h.  */
7549int i;
7550_ACEOF
7551if ac_fn_c_try_compile "$LINENO"
7552then :
7553  xorg_cv_cc_flag_unknown_warning_option=yes
7554else case e in #(
7555  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7556esac
7557fi
7558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7559esac
7560fi
7561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7562printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7563	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7564	CFLAGS="$xorg_testset_save_CFLAGS"
7565fi
7566
7567if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7568	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7569		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7570	fi
7571	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7572	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7573printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7574if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7575then :
7576  printf %s "(cached) " >&6
7577else case e in #(
7578  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7579/* end confdefs.h.  */
7580int i;
7581_ACEOF
7582if ac_fn_c_try_compile "$LINENO"
7583then :
7584  xorg_cv_cc_flag_unused_command_line_argument=yes
7585else case e in #(
7586  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7587esac
7588fi
7589rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7590esac
7591fi
7592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7593printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7594	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7595	CFLAGS="$xorg_testset_save_CFLAGS"
7596fi
7597
7598found="no"
7599
7600	if test $found = "no" ; then
7601		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7602			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7603		fi
7604
7605		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7606			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7607		fi
7608
7609		CFLAGS="$CFLAGS -Werror=init-self"
7610
7611		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7612printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7613		cacheid=xorg_cv_cc_flag__Werror_init_self
7614		if eval test \${$cacheid+y}
7615then :
7616  printf %s "(cached) " >&6
7617else case e in #(
7618  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619/* end confdefs.h.  */
7620int i;
7621int
7622main (void)
7623{
7624
7625  ;
7626  return 0;
7627}
7628_ACEOF
7629if ac_fn_c_try_link "$LINENO"
7630then :
7631  eval $cacheid=yes
7632else case e in #(
7633  e) eval $cacheid=no ;;
7634esac
7635fi
7636rm -f core conftest.err conftest.$ac_objext conftest.beam \
7637    conftest$ac_exeext conftest.$ac_ext ;;
7638esac
7639fi
7640
7641
7642		CFLAGS="$xorg_testset_save_CFLAGS"
7643
7644		eval supported=\$$cacheid
7645		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7646printf "%s\n" "$supported" >&6; }
7647		if test "$supported" = "yes" ; then
7648			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7649			found="yes"
7650		fi
7651	fi
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667xorg_testset_save_CFLAGS="$CFLAGS"
7668
7669if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7670	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7671	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7672printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7673if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7674then :
7675  printf %s "(cached) " >&6
7676else case e in #(
7677  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7678/* end confdefs.h.  */
7679int i;
7680_ACEOF
7681if ac_fn_c_try_compile "$LINENO"
7682then :
7683  xorg_cv_cc_flag_unknown_warning_option=yes
7684else case e in #(
7685  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7686esac
7687fi
7688rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7689esac
7690fi
7691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7692printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7693	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7694	CFLAGS="$xorg_testset_save_CFLAGS"
7695fi
7696
7697if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7698	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7699		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7700	fi
7701	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7702	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7703printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7704if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7705then :
7706  printf %s "(cached) " >&6
7707else case e in #(
7708  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709/* end confdefs.h.  */
7710int i;
7711_ACEOF
7712if ac_fn_c_try_compile "$LINENO"
7713then :
7714  xorg_cv_cc_flag_unused_command_line_argument=yes
7715else case e in #(
7716  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7717esac
7718fi
7719rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7720esac
7721fi
7722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7723printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7724	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7725	CFLAGS="$xorg_testset_save_CFLAGS"
7726fi
7727
7728found="no"
7729
7730	if test $found = "no" ; then
7731		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7732			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7733		fi
7734
7735		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7736			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7737		fi
7738
7739		CFLAGS="$CFLAGS -Werror=main"
7740
7741		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7742printf %s "checking if $CC supports -Werror=main... " >&6; }
7743		cacheid=xorg_cv_cc_flag__Werror_main
7744		if eval test \${$cacheid+y}
7745then :
7746  printf %s "(cached) " >&6
7747else case e in #(
7748  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7749/* end confdefs.h.  */
7750int i;
7751int
7752main (void)
7753{
7754
7755  ;
7756  return 0;
7757}
7758_ACEOF
7759if ac_fn_c_try_link "$LINENO"
7760then :
7761  eval $cacheid=yes
7762else case e in #(
7763  e) eval $cacheid=no ;;
7764esac
7765fi
7766rm -f core conftest.err conftest.$ac_objext conftest.beam \
7767    conftest$ac_exeext conftest.$ac_ext ;;
7768esac
7769fi
7770
7771
7772		CFLAGS="$xorg_testset_save_CFLAGS"
7773
7774		eval supported=\$$cacheid
7775		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7776printf "%s\n" "$supported" >&6; }
7777		if test "$supported" = "yes" ; then
7778			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7779			found="yes"
7780		fi
7781	fi
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797xorg_testset_save_CFLAGS="$CFLAGS"
7798
7799if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7800	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7801	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7802printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7803if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7804then :
7805  printf %s "(cached) " >&6
7806else case e in #(
7807  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808/* end confdefs.h.  */
7809int i;
7810_ACEOF
7811if ac_fn_c_try_compile "$LINENO"
7812then :
7813  xorg_cv_cc_flag_unknown_warning_option=yes
7814else case e in #(
7815  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7816esac
7817fi
7818rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7819esac
7820fi
7821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7822printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7823	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7824	CFLAGS="$xorg_testset_save_CFLAGS"
7825fi
7826
7827if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7828	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7829		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7830	fi
7831	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7832	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7833printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7834if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7835then :
7836  printf %s "(cached) " >&6
7837else case e in #(
7838  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7839/* end confdefs.h.  */
7840int i;
7841_ACEOF
7842if ac_fn_c_try_compile "$LINENO"
7843then :
7844  xorg_cv_cc_flag_unused_command_line_argument=yes
7845else case e in #(
7846  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7847esac
7848fi
7849rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7850esac
7851fi
7852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7853printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7854	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7855	CFLAGS="$xorg_testset_save_CFLAGS"
7856fi
7857
7858found="no"
7859
7860	if test $found = "no" ; then
7861		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7862			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7863		fi
7864
7865		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7866			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7867		fi
7868
7869		CFLAGS="$CFLAGS -Werror=missing-braces"
7870
7871		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7872printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7873		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7874		if eval test \${$cacheid+y}
7875then :
7876  printf %s "(cached) " >&6
7877else case e in #(
7878  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879/* end confdefs.h.  */
7880int i;
7881int
7882main (void)
7883{
7884
7885  ;
7886  return 0;
7887}
7888_ACEOF
7889if ac_fn_c_try_link "$LINENO"
7890then :
7891  eval $cacheid=yes
7892else case e in #(
7893  e) eval $cacheid=no ;;
7894esac
7895fi
7896rm -f core conftest.err conftest.$ac_objext conftest.beam \
7897    conftest$ac_exeext conftest.$ac_ext ;;
7898esac
7899fi
7900
7901
7902		CFLAGS="$xorg_testset_save_CFLAGS"
7903
7904		eval supported=\$$cacheid
7905		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7906printf "%s\n" "$supported" >&6; }
7907		if test "$supported" = "yes" ; then
7908			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7909			found="yes"
7910		fi
7911	fi
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927xorg_testset_save_CFLAGS="$CFLAGS"
7928
7929if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7930	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7931	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7932printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7933if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7934then :
7935  printf %s "(cached) " >&6
7936else case e in #(
7937  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938/* end confdefs.h.  */
7939int i;
7940_ACEOF
7941if ac_fn_c_try_compile "$LINENO"
7942then :
7943  xorg_cv_cc_flag_unknown_warning_option=yes
7944else case e in #(
7945  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7946esac
7947fi
7948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7949esac
7950fi
7951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7952printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7953	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7954	CFLAGS="$xorg_testset_save_CFLAGS"
7955fi
7956
7957if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7958	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7959		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7960	fi
7961	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7962	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7963printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7964if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7965then :
7966  printf %s "(cached) " >&6
7967else case e in #(
7968  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7969/* end confdefs.h.  */
7970int i;
7971_ACEOF
7972if ac_fn_c_try_compile "$LINENO"
7973then :
7974  xorg_cv_cc_flag_unused_command_line_argument=yes
7975else case e in #(
7976  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7977esac
7978fi
7979rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7980esac
7981fi
7982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7983printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7984	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7985	CFLAGS="$xorg_testset_save_CFLAGS"
7986fi
7987
7988found="no"
7989
7990	if test $found = "no" ; then
7991		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7992			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7993		fi
7994
7995		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7996			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7997		fi
7998
7999		CFLAGS="$CFLAGS -Werror=sequence-point"
8000
8001		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8002printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8003		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8004		if eval test \${$cacheid+y}
8005then :
8006  printf %s "(cached) " >&6
8007else case e in #(
8008  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8009/* end confdefs.h.  */
8010int i;
8011int
8012main (void)
8013{
8014
8015  ;
8016  return 0;
8017}
8018_ACEOF
8019if ac_fn_c_try_link "$LINENO"
8020then :
8021  eval $cacheid=yes
8022else case e in #(
8023  e) eval $cacheid=no ;;
8024esac
8025fi
8026rm -f core conftest.err conftest.$ac_objext conftest.beam \
8027    conftest$ac_exeext conftest.$ac_ext ;;
8028esac
8029fi
8030
8031
8032		CFLAGS="$xorg_testset_save_CFLAGS"
8033
8034		eval supported=\$$cacheid
8035		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8036printf "%s\n" "$supported" >&6; }
8037		if test "$supported" = "yes" ; then
8038			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8039			found="yes"
8040		fi
8041	fi
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057xorg_testset_save_CFLAGS="$CFLAGS"
8058
8059if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8060	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8061	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8062printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8063if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8064then :
8065  printf %s "(cached) " >&6
8066else case e in #(
8067  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068/* end confdefs.h.  */
8069int i;
8070_ACEOF
8071if ac_fn_c_try_compile "$LINENO"
8072then :
8073  xorg_cv_cc_flag_unknown_warning_option=yes
8074else case e in #(
8075  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8076esac
8077fi
8078rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8079esac
8080fi
8081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8082printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8083	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8084	CFLAGS="$xorg_testset_save_CFLAGS"
8085fi
8086
8087if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8088	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8089		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8090	fi
8091	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8092	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8093printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8094if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8095then :
8096  printf %s "(cached) " >&6
8097else case e in #(
8098  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099/* end confdefs.h.  */
8100int i;
8101_ACEOF
8102if ac_fn_c_try_compile "$LINENO"
8103then :
8104  xorg_cv_cc_flag_unused_command_line_argument=yes
8105else case e in #(
8106  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8107esac
8108fi
8109rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8110esac
8111fi
8112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8113printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8114	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8115	CFLAGS="$xorg_testset_save_CFLAGS"
8116fi
8117
8118found="no"
8119
8120	if test $found = "no" ; then
8121		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8122			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8123		fi
8124
8125		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8126			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8127		fi
8128
8129		CFLAGS="$CFLAGS -Werror=return-type"
8130
8131		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8132printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8133		cacheid=xorg_cv_cc_flag__Werror_return_type
8134		if eval test \${$cacheid+y}
8135then :
8136  printf %s "(cached) " >&6
8137else case e in #(
8138  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139/* end confdefs.h.  */
8140int i;
8141int
8142main (void)
8143{
8144
8145  ;
8146  return 0;
8147}
8148_ACEOF
8149if ac_fn_c_try_link "$LINENO"
8150then :
8151  eval $cacheid=yes
8152else case e in #(
8153  e) eval $cacheid=no ;;
8154esac
8155fi
8156rm -f core conftest.err conftest.$ac_objext conftest.beam \
8157    conftest$ac_exeext conftest.$ac_ext ;;
8158esac
8159fi
8160
8161
8162		CFLAGS="$xorg_testset_save_CFLAGS"
8163
8164		eval supported=\$$cacheid
8165		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8166printf "%s\n" "$supported" >&6; }
8167		if test "$supported" = "yes" ; then
8168			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8169			found="yes"
8170		fi
8171	fi
8172
8173	if test $found = "no" ; then
8174		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8175			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8176		fi
8177
8178		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8179			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8180		fi
8181
8182		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8183
8184		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8185printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8186		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8187		if eval test \${$cacheid+y}
8188then :
8189  printf %s "(cached) " >&6
8190else case e in #(
8191  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8192/* end confdefs.h.  */
8193int i;
8194int
8195main (void)
8196{
8197
8198  ;
8199  return 0;
8200}
8201_ACEOF
8202if ac_fn_c_try_link "$LINENO"
8203then :
8204  eval $cacheid=yes
8205else case e in #(
8206  e) eval $cacheid=no ;;
8207esac
8208fi
8209rm -f core conftest.err conftest.$ac_objext conftest.beam \
8210    conftest$ac_exeext conftest.$ac_ext ;;
8211esac
8212fi
8213
8214
8215		CFLAGS="$xorg_testset_save_CFLAGS"
8216
8217		eval supported=\$$cacheid
8218		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8219printf "%s\n" "$supported" >&6; }
8220		if test "$supported" = "yes" ; then
8221			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8222			found="yes"
8223		fi
8224	fi
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240xorg_testset_save_CFLAGS="$CFLAGS"
8241
8242if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8243	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8244	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8245printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8246if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8247then :
8248  printf %s "(cached) " >&6
8249else case e in #(
8250  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251/* end confdefs.h.  */
8252int i;
8253_ACEOF
8254if ac_fn_c_try_compile "$LINENO"
8255then :
8256  xorg_cv_cc_flag_unknown_warning_option=yes
8257else case e in #(
8258  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8259esac
8260fi
8261rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8262esac
8263fi
8264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8265printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8266	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8267	CFLAGS="$xorg_testset_save_CFLAGS"
8268fi
8269
8270if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8271	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8272		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8273	fi
8274	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8275	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8276printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8277if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8278then :
8279  printf %s "(cached) " >&6
8280else case e in #(
8281  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8282/* end confdefs.h.  */
8283int i;
8284_ACEOF
8285if ac_fn_c_try_compile "$LINENO"
8286then :
8287  xorg_cv_cc_flag_unused_command_line_argument=yes
8288else case e in #(
8289  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8290esac
8291fi
8292rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8293esac
8294fi
8295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8296printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8297	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8298	CFLAGS="$xorg_testset_save_CFLAGS"
8299fi
8300
8301found="no"
8302
8303	if test $found = "no" ; then
8304		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8305			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8306		fi
8307
8308		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8309			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8310		fi
8311
8312		CFLAGS="$CFLAGS -Werror=trigraphs"
8313
8314		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8315printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8316		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8317		if eval test \${$cacheid+y}
8318then :
8319  printf %s "(cached) " >&6
8320else case e in #(
8321  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322/* end confdefs.h.  */
8323int i;
8324int
8325main (void)
8326{
8327
8328  ;
8329  return 0;
8330}
8331_ACEOF
8332if ac_fn_c_try_link "$LINENO"
8333then :
8334  eval $cacheid=yes
8335else case e in #(
8336  e) eval $cacheid=no ;;
8337esac
8338fi
8339rm -f core conftest.err conftest.$ac_objext conftest.beam \
8340    conftest$ac_exeext conftest.$ac_ext ;;
8341esac
8342fi
8343
8344
8345		CFLAGS="$xorg_testset_save_CFLAGS"
8346
8347		eval supported=\$$cacheid
8348		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8349printf "%s\n" "$supported" >&6; }
8350		if test "$supported" = "yes" ; then
8351			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8352			found="yes"
8353		fi
8354	fi
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370xorg_testset_save_CFLAGS="$CFLAGS"
8371
8372if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8373	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8374	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8375printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8376if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8377then :
8378  printf %s "(cached) " >&6
8379else case e in #(
8380  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8381/* end confdefs.h.  */
8382int i;
8383_ACEOF
8384if ac_fn_c_try_compile "$LINENO"
8385then :
8386  xorg_cv_cc_flag_unknown_warning_option=yes
8387else case e in #(
8388  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8389esac
8390fi
8391rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8392esac
8393fi
8394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8395printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8396	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8397	CFLAGS="$xorg_testset_save_CFLAGS"
8398fi
8399
8400if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8401	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8402		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8403	fi
8404	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8405	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8406printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8407if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8408then :
8409  printf %s "(cached) " >&6
8410else case e in #(
8411  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8412/* end confdefs.h.  */
8413int i;
8414_ACEOF
8415if ac_fn_c_try_compile "$LINENO"
8416then :
8417  xorg_cv_cc_flag_unused_command_line_argument=yes
8418else case e in #(
8419  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8420esac
8421fi
8422rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8423esac
8424fi
8425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8426printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8427	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8428	CFLAGS="$xorg_testset_save_CFLAGS"
8429fi
8430
8431found="no"
8432
8433	if test $found = "no" ; then
8434		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8435			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8436		fi
8437
8438		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8439			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8440		fi
8441
8442		CFLAGS="$CFLAGS -Werror=array-bounds"
8443
8444		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8445printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8446		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8447		if eval test \${$cacheid+y}
8448then :
8449  printf %s "(cached) " >&6
8450else case e in #(
8451  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452/* end confdefs.h.  */
8453int i;
8454int
8455main (void)
8456{
8457
8458  ;
8459  return 0;
8460}
8461_ACEOF
8462if ac_fn_c_try_link "$LINENO"
8463then :
8464  eval $cacheid=yes
8465else case e in #(
8466  e) eval $cacheid=no ;;
8467esac
8468fi
8469rm -f core conftest.err conftest.$ac_objext conftest.beam \
8470    conftest$ac_exeext conftest.$ac_ext ;;
8471esac
8472fi
8473
8474
8475		CFLAGS="$xorg_testset_save_CFLAGS"
8476
8477		eval supported=\$$cacheid
8478		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8479printf "%s\n" "$supported" >&6; }
8480		if test "$supported" = "yes" ; then
8481			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8482			found="yes"
8483		fi
8484	fi
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500xorg_testset_save_CFLAGS="$CFLAGS"
8501
8502if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8503	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8504	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8505printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8506if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8507then :
8508  printf %s "(cached) " >&6
8509else case e in #(
8510  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511/* end confdefs.h.  */
8512int i;
8513_ACEOF
8514if ac_fn_c_try_compile "$LINENO"
8515then :
8516  xorg_cv_cc_flag_unknown_warning_option=yes
8517else case e in #(
8518  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8519esac
8520fi
8521rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8522esac
8523fi
8524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8525printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8526	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8527	CFLAGS="$xorg_testset_save_CFLAGS"
8528fi
8529
8530if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8531	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8532		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8533	fi
8534	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8535	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8536printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8537if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8538then :
8539  printf %s "(cached) " >&6
8540else case e in #(
8541  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542/* end confdefs.h.  */
8543int i;
8544_ACEOF
8545if ac_fn_c_try_compile "$LINENO"
8546then :
8547  xorg_cv_cc_flag_unused_command_line_argument=yes
8548else case e in #(
8549  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8550esac
8551fi
8552rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8553esac
8554fi
8555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8556printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8557	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8558	CFLAGS="$xorg_testset_save_CFLAGS"
8559fi
8560
8561found="no"
8562
8563	if test $found = "no" ; then
8564		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8565			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8566		fi
8567
8568		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8569			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8570		fi
8571
8572		CFLAGS="$CFLAGS -Werror=write-strings"
8573
8574		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8575printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8576		cacheid=xorg_cv_cc_flag__Werror_write_strings
8577		if eval test \${$cacheid+y}
8578then :
8579  printf %s "(cached) " >&6
8580else case e in #(
8581  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8582/* end confdefs.h.  */
8583int i;
8584int
8585main (void)
8586{
8587
8588  ;
8589  return 0;
8590}
8591_ACEOF
8592if ac_fn_c_try_link "$LINENO"
8593then :
8594  eval $cacheid=yes
8595else case e in #(
8596  e) eval $cacheid=no ;;
8597esac
8598fi
8599rm -f core conftest.err conftest.$ac_objext conftest.beam \
8600    conftest$ac_exeext conftest.$ac_ext ;;
8601esac
8602fi
8603
8604
8605		CFLAGS="$xorg_testset_save_CFLAGS"
8606
8607		eval supported=\$$cacheid
8608		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8609printf "%s\n" "$supported" >&6; }
8610		if test "$supported" = "yes" ; then
8611			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8612			found="yes"
8613		fi
8614	fi
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630xorg_testset_save_CFLAGS="$CFLAGS"
8631
8632if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8633	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8634	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8635printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8636if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8637then :
8638  printf %s "(cached) " >&6
8639else case e in #(
8640  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641/* end confdefs.h.  */
8642int i;
8643_ACEOF
8644if ac_fn_c_try_compile "$LINENO"
8645then :
8646  xorg_cv_cc_flag_unknown_warning_option=yes
8647else case e in #(
8648  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8649esac
8650fi
8651rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8652esac
8653fi
8654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8655printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8656	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8657	CFLAGS="$xorg_testset_save_CFLAGS"
8658fi
8659
8660if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8661	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8662		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8663	fi
8664	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8665	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8666printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8667if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8668then :
8669  printf %s "(cached) " >&6
8670else case e in #(
8671  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672/* end confdefs.h.  */
8673int i;
8674_ACEOF
8675if ac_fn_c_try_compile "$LINENO"
8676then :
8677  xorg_cv_cc_flag_unused_command_line_argument=yes
8678else case e in #(
8679  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8680esac
8681fi
8682rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8683esac
8684fi
8685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8686printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8687	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8688	CFLAGS="$xorg_testset_save_CFLAGS"
8689fi
8690
8691found="no"
8692
8693	if test $found = "no" ; then
8694		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8695			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8696		fi
8697
8698		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8699			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8700		fi
8701
8702		CFLAGS="$CFLAGS -Werror=address"
8703
8704		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8705printf %s "checking if $CC supports -Werror=address... " >&6; }
8706		cacheid=xorg_cv_cc_flag__Werror_address
8707		if eval test \${$cacheid+y}
8708then :
8709  printf %s "(cached) " >&6
8710else case e in #(
8711  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8712/* end confdefs.h.  */
8713int i;
8714int
8715main (void)
8716{
8717
8718  ;
8719  return 0;
8720}
8721_ACEOF
8722if ac_fn_c_try_link "$LINENO"
8723then :
8724  eval $cacheid=yes
8725else case e in #(
8726  e) eval $cacheid=no ;;
8727esac
8728fi
8729rm -f core conftest.err conftest.$ac_objext conftest.beam \
8730    conftest$ac_exeext conftest.$ac_ext ;;
8731esac
8732fi
8733
8734
8735		CFLAGS="$xorg_testset_save_CFLAGS"
8736
8737		eval supported=\$$cacheid
8738		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8739printf "%s\n" "$supported" >&6; }
8740		if test "$supported" = "yes" ; then
8741			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8742			found="yes"
8743		fi
8744	fi
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760xorg_testset_save_CFLAGS="$CFLAGS"
8761
8762if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8763	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8764	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8765printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8766if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8767then :
8768  printf %s "(cached) " >&6
8769else case e in #(
8770  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8771/* end confdefs.h.  */
8772int i;
8773_ACEOF
8774if ac_fn_c_try_compile "$LINENO"
8775then :
8776  xorg_cv_cc_flag_unknown_warning_option=yes
8777else case e in #(
8778  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8779esac
8780fi
8781rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8782esac
8783fi
8784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8785printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8786	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8787	CFLAGS="$xorg_testset_save_CFLAGS"
8788fi
8789
8790if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8791	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8792		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8793	fi
8794	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8795	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8796printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8797if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8798then :
8799  printf %s "(cached) " >&6
8800else case e in #(
8801  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8802/* end confdefs.h.  */
8803int i;
8804_ACEOF
8805if ac_fn_c_try_compile "$LINENO"
8806then :
8807  xorg_cv_cc_flag_unused_command_line_argument=yes
8808else case e in #(
8809  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8810esac
8811fi
8812rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8813esac
8814fi
8815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8816printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8817	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8818	CFLAGS="$xorg_testset_save_CFLAGS"
8819fi
8820
8821found="no"
8822
8823	if test $found = "no" ; then
8824		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8825			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8826		fi
8827
8828		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8829			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8830		fi
8831
8832		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8833
8834		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8835printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8836		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8837		if eval test \${$cacheid+y}
8838then :
8839  printf %s "(cached) " >&6
8840else case e in #(
8841  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8842/* end confdefs.h.  */
8843int i;
8844int
8845main (void)
8846{
8847
8848  ;
8849  return 0;
8850}
8851_ACEOF
8852if ac_fn_c_try_link "$LINENO"
8853then :
8854  eval $cacheid=yes
8855else case e in #(
8856  e) eval $cacheid=no ;;
8857esac
8858fi
8859rm -f core conftest.err conftest.$ac_objext conftest.beam \
8860    conftest$ac_exeext conftest.$ac_ext ;;
8861esac
8862fi
8863
8864
8865		CFLAGS="$xorg_testset_save_CFLAGS"
8866
8867		eval supported=\$$cacheid
8868		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8869printf "%s\n" "$supported" >&6; }
8870		if test "$supported" = "yes" ; then
8871			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8872			found="yes"
8873		fi
8874	fi
8875
8876	if test $found = "no" ; then
8877		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8878			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8879		fi
8880
8881		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8882			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8883		fi
8884
8885		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8886
8887		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8888printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8889		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8890		if eval test \${$cacheid+y}
8891then :
8892  printf %s "(cached) " >&6
8893else case e in #(
8894  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8895/* end confdefs.h.  */
8896int i;
8897int
8898main (void)
8899{
8900
8901  ;
8902  return 0;
8903}
8904_ACEOF
8905if ac_fn_c_try_link "$LINENO"
8906then :
8907  eval $cacheid=yes
8908else case e in #(
8909  e) eval $cacheid=no ;;
8910esac
8911fi
8912rm -f core conftest.err conftest.$ac_objext conftest.beam \
8913    conftest$ac_exeext conftest.$ac_ext ;;
8914esac
8915fi
8916
8917
8918		CFLAGS="$xorg_testset_save_CFLAGS"
8919
8920		eval supported=\$$cacheid
8921		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8922printf "%s\n" "$supported" >&6; }
8923		if test "$supported" = "yes" ; then
8924			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8925			found="yes"
8926		fi
8927	fi
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943xorg_testset_save_CFLAGS="$CFLAGS"
8944
8945if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8946	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8947	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8948printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8949if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8950then :
8951  printf %s "(cached) " >&6
8952else case e in #(
8953  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8954/* end confdefs.h.  */
8955int i;
8956_ACEOF
8957if ac_fn_c_try_compile "$LINENO"
8958then :
8959  xorg_cv_cc_flag_unknown_warning_option=yes
8960else case e in #(
8961  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8962esac
8963fi
8964rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8965esac
8966fi
8967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8968printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8969	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8970	CFLAGS="$xorg_testset_save_CFLAGS"
8971fi
8972
8973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8974	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8975		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8976	fi
8977	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8978	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8979printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8980if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8981then :
8982  printf %s "(cached) " >&6
8983else case e in #(
8984  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8985/* end confdefs.h.  */
8986int i;
8987_ACEOF
8988if ac_fn_c_try_compile "$LINENO"
8989then :
8990  xorg_cv_cc_flag_unused_command_line_argument=yes
8991else case e in #(
8992  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8993esac
8994fi
8995rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8996esac
8997fi
8998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8999printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9000	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9001	CFLAGS="$xorg_testset_save_CFLAGS"
9002fi
9003
9004found="no"
9005
9006	if test $found = "no" ; then
9007		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9008			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9009		fi
9010
9011		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9012			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9013		fi
9014
9015		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9016
9017		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9018printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9019		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9020		if eval test \${$cacheid+y}
9021then :
9022  printf %s "(cached) " >&6
9023else case e in #(
9024  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9025/* end confdefs.h.  */
9026int i;
9027int
9028main (void)
9029{
9030
9031  ;
9032  return 0;
9033}
9034_ACEOF
9035if ac_fn_c_try_link "$LINENO"
9036then :
9037  eval $cacheid=yes
9038else case e in #(
9039  e) eval $cacheid=no ;;
9040esac
9041fi
9042rm -f core conftest.err conftest.$ac_objext conftest.beam \
9043    conftest$ac_exeext conftest.$ac_ext ;;
9044esac
9045fi
9046
9047
9048		CFLAGS="$xorg_testset_save_CFLAGS"
9049
9050		eval supported=\$$cacheid
9051		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9052printf "%s\n" "$supported" >&6; }
9053		if test "$supported" = "yes" ; then
9054			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9055			found="yes"
9056		fi
9057	fi
9058
9059 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9060else
9061{ printf "%s\n" "$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
9062printf "%s\n" "$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;}
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076xorg_testset_save_CFLAGS="$CFLAGS"
9077
9078if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9079	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9080	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9081printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9082if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9083then :
9084  printf %s "(cached) " >&6
9085else case e in #(
9086  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087/* end confdefs.h.  */
9088int i;
9089_ACEOF
9090if ac_fn_c_try_compile "$LINENO"
9091then :
9092  xorg_cv_cc_flag_unknown_warning_option=yes
9093else case e in #(
9094  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9095esac
9096fi
9097rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9098esac
9099fi
9100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9101printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9102	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9103	CFLAGS="$xorg_testset_save_CFLAGS"
9104fi
9105
9106if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9107	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9108		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9109	fi
9110	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9111	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9112printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9113if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9114then :
9115  printf %s "(cached) " >&6
9116else case e in #(
9117  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9118/* end confdefs.h.  */
9119int i;
9120_ACEOF
9121if ac_fn_c_try_compile "$LINENO"
9122then :
9123  xorg_cv_cc_flag_unused_command_line_argument=yes
9124else case e in #(
9125  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9126esac
9127fi
9128rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9129esac
9130fi
9131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9132printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9133	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9134	CFLAGS="$xorg_testset_save_CFLAGS"
9135fi
9136
9137found="no"
9138
9139	if test $found = "no" ; then
9140		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9141			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9142		fi
9143
9144		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9145			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9146		fi
9147
9148		CFLAGS="$CFLAGS -Wimplicit"
9149
9150		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9151printf %s "checking if $CC supports -Wimplicit... " >&6; }
9152		cacheid=xorg_cv_cc_flag__Wimplicit
9153		if eval test \${$cacheid+y}
9154then :
9155  printf %s "(cached) " >&6
9156else case e in #(
9157  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9158/* end confdefs.h.  */
9159int i;
9160int
9161main (void)
9162{
9163
9164  ;
9165  return 0;
9166}
9167_ACEOF
9168if ac_fn_c_try_link "$LINENO"
9169then :
9170  eval $cacheid=yes
9171else case e in #(
9172  e) eval $cacheid=no ;;
9173esac
9174fi
9175rm -f core conftest.err conftest.$ac_objext conftest.beam \
9176    conftest$ac_exeext conftest.$ac_ext ;;
9177esac
9178fi
9179
9180
9181		CFLAGS="$xorg_testset_save_CFLAGS"
9182
9183		eval supported=\$$cacheid
9184		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9185printf "%s\n" "$supported" >&6; }
9186		if test "$supported" = "yes" ; then
9187			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9188			found="yes"
9189		fi
9190	fi
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206xorg_testset_save_CFLAGS="$CFLAGS"
9207
9208if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9209	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9210	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9211printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9212if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9213then :
9214  printf %s "(cached) " >&6
9215else case e in #(
9216  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9217/* end confdefs.h.  */
9218int i;
9219_ACEOF
9220if ac_fn_c_try_compile "$LINENO"
9221then :
9222  xorg_cv_cc_flag_unknown_warning_option=yes
9223else case e in #(
9224  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9225esac
9226fi
9227rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9228esac
9229fi
9230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9231printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9232	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9233	CFLAGS="$xorg_testset_save_CFLAGS"
9234fi
9235
9236if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9237	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9238		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9239	fi
9240	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9241	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9242printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9243if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9244then :
9245  printf %s "(cached) " >&6
9246else case e in #(
9247  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9248/* end confdefs.h.  */
9249int i;
9250_ACEOF
9251if ac_fn_c_try_compile "$LINENO"
9252then :
9253  xorg_cv_cc_flag_unused_command_line_argument=yes
9254else case e in #(
9255  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9256esac
9257fi
9258rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9259esac
9260fi
9261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9262printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9263	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9264	CFLAGS="$xorg_testset_save_CFLAGS"
9265fi
9266
9267found="no"
9268
9269	if test $found = "no" ; then
9270		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9271			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9272		fi
9273
9274		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9275			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9276		fi
9277
9278		CFLAGS="$CFLAGS -Wnonnull"
9279
9280		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9281printf %s "checking if $CC supports -Wnonnull... " >&6; }
9282		cacheid=xorg_cv_cc_flag__Wnonnull
9283		if eval test \${$cacheid+y}
9284then :
9285  printf %s "(cached) " >&6
9286else case e in #(
9287  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9288/* end confdefs.h.  */
9289int i;
9290int
9291main (void)
9292{
9293
9294  ;
9295  return 0;
9296}
9297_ACEOF
9298if ac_fn_c_try_link "$LINENO"
9299then :
9300  eval $cacheid=yes
9301else case e in #(
9302  e) eval $cacheid=no ;;
9303esac
9304fi
9305rm -f core conftest.err conftest.$ac_objext conftest.beam \
9306    conftest$ac_exeext conftest.$ac_ext ;;
9307esac
9308fi
9309
9310
9311		CFLAGS="$xorg_testset_save_CFLAGS"
9312
9313		eval supported=\$$cacheid
9314		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9315printf "%s\n" "$supported" >&6; }
9316		if test "$supported" = "yes" ; then
9317			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9318			found="yes"
9319		fi
9320	fi
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336xorg_testset_save_CFLAGS="$CFLAGS"
9337
9338if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9339	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9340	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9341printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9342if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9343then :
9344  printf %s "(cached) " >&6
9345else case e in #(
9346  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9347/* end confdefs.h.  */
9348int i;
9349_ACEOF
9350if ac_fn_c_try_compile "$LINENO"
9351then :
9352  xorg_cv_cc_flag_unknown_warning_option=yes
9353else case e in #(
9354  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9355esac
9356fi
9357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9358esac
9359fi
9360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9361printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9362	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9363	CFLAGS="$xorg_testset_save_CFLAGS"
9364fi
9365
9366if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9367	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9368		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9369	fi
9370	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9371	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9372printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9373if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9374then :
9375  printf %s "(cached) " >&6
9376else case e in #(
9377  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9378/* end confdefs.h.  */
9379int i;
9380_ACEOF
9381if ac_fn_c_try_compile "$LINENO"
9382then :
9383  xorg_cv_cc_flag_unused_command_line_argument=yes
9384else case e in #(
9385  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9386esac
9387fi
9388rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9389esac
9390fi
9391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9392printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9393	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9394	CFLAGS="$xorg_testset_save_CFLAGS"
9395fi
9396
9397found="no"
9398
9399	if test $found = "no" ; then
9400		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9401			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9402		fi
9403
9404		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9405			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9406		fi
9407
9408		CFLAGS="$CFLAGS -Winit-self"
9409
9410		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9411printf %s "checking if $CC supports -Winit-self... " >&6; }
9412		cacheid=xorg_cv_cc_flag__Winit_self
9413		if eval test \${$cacheid+y}
9414then :
9415  printf %s "(cached) " >&6
9416else case e in #(
9417  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9418/* end confdefs.h.  */
9419int i;
9420int
9421main (void)
9422{
9423
9424  ;
9425  return 0;
9426}
9427_ACEOF
9428if ac_fn_c_try_link "$LINENO"
9429then :
9430  eval $cacheid=yes
9431else case e in #(
9432  e) eval $cacheid=no ;;
9433esac
9434fi
9435rm -f core conftest.err conftest.$ac_objext conftest.beam \
9436    conftest$ac_exeext conftest.$ac_ext ;;
9437esac
9438fi
9439
9440
9441		CFLAGS="$xorg_testset_save_CFLAGS"
9442
9443		eval supported=\$$cacheid
9444		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9445printf "%s\n" "$supported" >&6; }
9446		if test "$supported" = "yes" ; then
9447			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9448			found="yes"
9449		fi
9450	fi
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466xorg_testset_save_CFLAGS="$CFLAGS"
9467
9468if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9469	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9470	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9471printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9472if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9473then :
9474  printf %s "(cached) " >&6
9475else case e in #(
9476  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477/* end confdefs.h.  */
9478int i;
9479_ACEOF
9480if ac_fn_c_try_compile "$LINENO"
9481then :
9482  xorg_cv_cc_flag_unknown_warning_option=yes
9483else case e in #(
9484  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9485esac
9486fi
9487rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9488esac
9489fi
9490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9491printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9492	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9493	CFLAGS="$xorg_testset_save_CFLAGS"
9494fi
9495
9496if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9497	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9498		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9499	fi
9500	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9501	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9502printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9503if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9504then :
9505  printf %s "(cached) " >&6
9506else case e in #(
9507  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9508/* end confdefs.h.  */
9509int i;
9510_ACEOF
9511if ac_fn_c_try_compile "$LINENO"
9512then :
9513  xorg_cv_cc_flag_unused_command_line_argument=yes
9514else case e in #(
9515  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9516esac
9517fi
9518rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9519esac
9520fi
9521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9522printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9523	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9524	CFLAGS="$xorg_testset_save_CFLAGS"
9525fi
9526
9527found="no"
9528
9529	if test $found = "no" ; then
9530		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9531			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9532		fi
9533
9534		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9535			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9536		fi
9537
9538		CFLAGS="$CFLAGS -Wmain"
9539
9540		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9541printf %s "checking if $CC supports -Wmain... " >&6; }
9542		cacheid=xorg_cv_cc_flag__Wmain
9543		if eval test \${$cacheid+y}
9544then :
9545  printf %s "(cached) " >&6
9546else case e in #(
9547  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9548/* end confdefs.h.  */
9549int i;
9550int
9551main (void)
9552{
9553
9554  ;
9555  return 0;
9556}
9557_ACEOF
9558if ac_fn_c_try_link "$LINENO"
9559then :
9560  eval $cacheid=yes
9561else case e in #(
9562  e) eval $cacheid=no ;;
9563esac
9564fi
9565rm -f core conftest.err conftest.$ac_objext conftest.beam \
9566    conftest$ac_exeext conftest.$ac_ext ;;
9567esac
9568fi
9569
9570
9571		CFLAGS="$xorg_testset_save_CFLAGS"
9572
9573		eval supported=\$$cacheid
9574		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9575printf "%s\n" "$supported" >&6; }
9576		if test "$supported" = "yes" ; then
9577			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9578			found="yes"
9579		fi
9580	fi
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596xorg_testset_save_CFLAGS="$CFLAGS"
9597
9598if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9599	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9600	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9601printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9602if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9603then :
9604  printf %s "(cached) " >&6
9605else case e in #(
9606  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607/* end confdefs.h.  */
9608int i;
9609_ACEOF
9610if ac_fn_c_try_compile "$LINENO"
9611then :
9612  xorg_cv_cc_flag_unknown_warning_option=yes
9613else case e in #(
9614  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9615esac
9616fi
9617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9618esac
9619fi
9620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9621printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9622	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9623	CFLAGS="$xorg_testset_save_CFLAGS"
9624fi
9625
9626if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9627	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9628		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9629	fi
9630	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9631	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9632printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9633if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9634then :
9635  printf %s "(cached) " >&6
9636else case e in #(
9637  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9638/* end confdefs.h.  */
9639int i;
9640_ACEOF
9641if ac_fn_c_try_compile "$LINENO"
9642then :
9643  xorg_cv_cc_flag_unused_command_line_argument=yes
9644else case e in #(
9645  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9646esac
9647fi
9648rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9649esac
9650fi
9651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9652printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9653	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9654	CFLAGS="$xorg_testset_save_CFLAGS"
9655fi
9656
9657found="no"
9658
9659	if test $found = "no" ; then
9660		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9661			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9662		fi
9663
9664		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9665			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9666		fi
9667
9668		CFLAGS="$CFLAGS -Wmissing-braces"
9669
9670		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9671printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9672		cacheid=xorg_cv_cc_flag__Wmissing_braces
9673		if eval test \${$cacheid+y}
9674then :
9675  printf %s "(cached) " >&6
9676else case e in #(
9677  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9678/* end confdefs.h.  */
9679int i;
9680int
9681main (void)
9682{
9683
9684  ;
9685  return 0;
9686}
9687_ACEOF
9688if ac_fn_c_try_link "$LINENO"
9689then :
9690  eval $cacheid=yes
9691else case e in #(
9692  e) eval $cacheid=no ;;
9693esac
9694fi
9695rm -f core conftest.err conftest.$ac_objext conftest.beam \
9696    conftest$ac_exeext conftest.$ac_ext ;;
9697esac
9698fi
9699
9700
9701		CFLAGS="$xorg_testset_save_CFLAGS"
9702
9703		eval supported=\$$cacheid
9704		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9705printf "%s\n" "$supported" >&6; }
9706		if test "$supported" = "yes" ; then
9707			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9708			found="yes"
9709		fi
9710	fi
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726xorg_testset_save_CFLAGS="$CFLAGS"
9727
9728if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9729	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9730	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9731printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9732if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9733then :
9734  printf %s "(cached) " >&6
9735else case e in #(
9736  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9737/* end confdefs.h.  */
9738int i;
9739_ACEOF
9740if ac_fn_c_try_compile "$LINENO"
9741then :
9742  xorg_cv_cc_flag_unknown_warning_option=yes
9743else case e in #(
9744  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9745esac
9746fi
9747rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9748esac
9749fi
9750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9751printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9752	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9753	CFLAGS="$xorg_testset_save_CFLAGS"
9754fi
9755
9756if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9757	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9758		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9759	fi
9760	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9761	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9762printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9763if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9764then :
9765  printf %s "(cached) " >&6
9766else case e in #(
9767  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768/* end confdefs.h.  */
9769int i;
9770_ACEOF
9771if ac_fn_c_try_compile "$LINENO"
9772then :
9773  xorg_cv_cc_flag_unused_command_line_argument=yes
9774else case e in #(
9775  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9776esac
9777fi
9778rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9779esac
9780fi
9781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9782printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9783	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9784	CFLAGS="$xorg_testset_save_CFLAGS"
9785fi
9786
9787found="no"
9788
9789	if test $found = "no" ; then
9790		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9791			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9792		fi
9793
9794		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9795			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9796		fi
9797
9798		CFLAGS="$CFLAGS -Wsequence-point"
9799
9800		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9801printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9802		cacheid=xorg_cv_cc_flag__Wsequence_point
9803		if eval test \${$cacheid+y}
9804then :
9805  printf %s "(cached) " >&6
9806else case e in #(
9807  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9808/* end confdefs.h.  */
9809int i;
9810int
9811main (void)
9812{
9813
9814  ;
9815  return 0;
9816}
9817_ACEOF
9818if ac_fn_c_try_link "$LINENO"
9819then :
9820  eval $cacheid=yes
9821else case e in #(
9822  e) eval $cacheid=no ;;
9823esac
9824fi
9825rm -f core conftest.err conftest.$ac_objext conftest.beam \
9826    conftest$ac_exeext conftest.$ac_ext ;;
9827esac
9828fi
9829
9830
9831		CFLAGS="$xorg_testset_save_CFLAGS"
9832
9833		eval supported=\$$cacheid
9834		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9835printf "%s\n" "$supported" >&6; }
9836		if test "$supported" = "yes" ; then
9837			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9838			found="yes"
9839		fi
9840	fi
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856xorg_testset_save_CFLAGS="$CFLAGS"
9857
9858if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9859	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9860	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9861printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9862if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9863then :
9864  printf %s "(cached) " >&6
9865else case e in #(
9866  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867/* end confdefs.h.  */
9868int i;
9869_ACEOF
9870if ac_fn_c_try_compile "$LINENO"
9871then :
9872  xorg_cv_cc_flag_unknown_warning_option=yes
9873else case e in #(
9874  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9875esac
9876fi
9877rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9878esac
9879fi
9880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9881printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9882	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9883	CFLAGS="$xorg_testset_save_CFLAGS"
9884fi
9885
9886if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9887	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9888		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9889	fi
9890	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9891	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9892printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9893if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9894then :
9895  printf %s "(cached) " >&6
9896else case e in #(
9897  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898/* end confdefs.h.  */
9899int i;
9900_ACEOF
9901if ac_fn_c_try_compile "$LINENO"
9902then :
9903  xorg_cv_cc_flag_unused_command_line_argument=yes
9904else case e in #(
9905  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9906esac
9907fi
9908rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9909esac
9910fi
9911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9912printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9913	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9914	CFLAGS="$xorg_testset_save_CFLAGS"
9915fi
9916
9917found="no"
9918
9919	if test $found = "no" ; then
9920		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9921			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9922		fi
9923
9924		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9925			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9926		fi
9927
9928		CFLAGS="$CFLAGS -Wreturn-type"
9929
9930		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9931printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9932		cacheid=xorg_cv_cc_flag__Wreturn_type
9933		if eval test \${$cacheid+y}
9934then :
9935  printf %s "(cached) " >&6
9936else case e in #(
9937  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9938/* end confdefs.h.  */
9939int i;
9940int
9941main (void)
9942{
9943
9944  ;
9945  return 0;
9946}
9947_ACEOF
9948if ac_fn_c_try_link "$LINENO"
9949then :
9950  eval $cacheid=yes
9951else case e in #(
9952  e) eval $cacheid=no ;;
9953esac
9954fi
9955rm -f core conftest.err conftest.$ac_objext conftest.beam \
9956    conftest$ac_exeext conftest.$ac_ext ;;
9957esac
9958fi
9959
9960
9961		CFLAGS="$xorg_testset_save_CFLAGS"
9962
9963		eval supported=\$$cacheid
9964		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9965printf "%s\n" "$supported" >&6; }
9966		if test "$supported" = "yes" ; then
9967			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9968			found="yes"
9969		fi
9970	fi
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986xorg_testset_save_CFLAGS="$CFLAGS"
9987
9988if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9989	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9990	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9991printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9992if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9993then :
9994  printf %s "(cached) " >&6
9995else case e in #(
9996  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9997/* end confdefs.h.  */
9998int i;
9999_ACEOF
10000if ac_fn_c_try_compile "$LINENO"
10001then :
10002  xorg_cv_cc_flag_unknown_warning_option=yes
10003else case e in #(
10004  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10005esac
10006fi
10007rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10008esac
10009fi
10010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10011printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10012	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10013	CFLAGS="$xorg_testset_save_CFLAGS"
10014fi
10015
10016if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10017	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10018		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10019	fi
10020	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10021	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10022printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10023if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10024then :
10025  printf %s "(cached) " >&6
10026else case e in #(
10027  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10028/* end confdefs.h.  */
10029int i;
10030_ACEOF
10031if ac_fn_c_try_compile "$LINENO"
10032then :
10033  xorg_cv_cc_flag_unused_command_line_argument=yes
10034else case e in #(
10035  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10036esac
10037fi
10038rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10039esac
10040fi
10041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10042printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10043	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10044	CFLAGS="$xorg_testset_save_CFLAGS"
10045fi
10046
10047found="no"
10048
10049	if test $found = "no" ; then
10050		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10051			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10052		fi
10053
10054		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10055			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10056		fi
10057
10058		CFLAGS="$CFLAGS -Wtrigraphs"
10059
10060		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10061printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10062		cacheid=xorg_cv_cc_flag__Wtrigraphs
10063		if eval test \${$cacheid+y}
10064then :
10065  printf %s "(cached) " >&6
10066else case e in #(
10067  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10068/* end confdefs.h.  */
10069int i;
10070int
10071main (void)
10072{
10073
10074  ;
10075  return 0;
10076}
10077_ACEOF
10078if ac_fn_c_try_link "$LINENO"
10079then :
10080  eval $cacheid=yes
10081else case e in #(
10082  e) eval $cacheid=no ;;
10083esac
10084fi
10085rm -f core conftest.err conftest.$ac_objext conftest.beam \
10086    conftest$ac_exeext conftest.$ac_ext ;;
10087esac
10088fi
10089
10090
10091		CFLAGS="$xorg_testset_save_CFLAGS"
10092
10093		eval supported=\$$cacheid
10094		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10095printf "%s\n" "$supported" >&6; }
10096		if test "$supported" = "yes" ; then
10097			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10098			found="yes"
10099		fi
10100	fi
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116xorg_testset_save_CFLAGS="$CFLAGS"
10117
10118if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10119	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10120	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10121printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10122if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10123then :
10124  printf %s "(cached) " >&6
10125else case e in #(
10126  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127/* end confdefs.h.  */
10128int i;
10129_ACEOF
10130if ac_fn_c_try_compile "$LINENO"
10131then :
10132  xorg_cv_cc_flag_unknown_warning_option=yes
10133else case e in #(
10134  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10135esac
10136fi
10137rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10138esac
10139fi
10140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10141printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10142	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10143	CFLAGS="$xorg_testset_save_CFLAGS"
10144fi
10145
10146if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10147	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10148		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10149	fi
10150	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10151	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10152printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10153if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10154then :
10155  printf %s "(cached) " >&6
10156else case e in #(
10157  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10158/* end confdefs.h.  */
10159int i;
10160_ACEOF
10161if ac_fn_c_try_compile "$LINENO"
10162then :
10163  xorg_cv_cc_flag_unused_command_line_argument=yes
10164else case e in #(
10165  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10166esac
10167fi
10168rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10169esac
10170fi
10171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10172printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10173	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10174	CFLAGS="$xorg_testset_save_CFLAGS"
10175fi
10176
10177found="no"
10178
10179	if test $found = "no" ; then
10180		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10181			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10182		fi
10183
10184		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10185			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10186		fi
10187
10188		CFLAGS="$CFLAGS -Warray-bounds"
10189
10190		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10191printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10192		cacheid=xorg_cv_cc_flag__Warray_bounds
10193		if eval test \${$cacheid+y}
10194then :
10195  printf %s "(cached) " >&6
10196else case e in #(
10197  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10198/* end confdefs.h.  */
10199int i;
10200int
10201main (void)
10202{
10203
10204  ;
10205  return 0;
10206}
10207_ACEOF
10208if ac_fn_c_try_link "$LINENO"
10209then :
10210  eval $cacheid=yes
10211else case e in #(
10212  e) eval $cacheid=no ;;
10213esac
10214fi
10215rm -f core conftest.err conftest.$ac_objext conftest.beam \
10216    conftest$ac_exeext conftest.$ac_ext ;;
10217esac
10218fi
10219
10220
10221		CFLAGS="$xorg_testset_save_CFLAGS"
10222
10223		eval supported=\$$cacheid
10224		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10225printf "%s\n" "$supported" >&6; }
10226		if test "$supported" = "yes" ; then
10227			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10228			found="yes"
10229		fi
10230	fi
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246xorg_testset_save_CFLAGS="$CFLAGS"
10247
10248if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10249	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10250	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10251printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10252if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10253then :
10254  printf %s "(cached) " >&6
10255else case e in #(
10256  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10257/* end confdefs.h.  */
10258int i;
10259_ACEOF
10260if ac_fn_c_try_compile "$LINENO"
10261then :
10262  xorg_cv_cc_flag_unknown_warning_option=yes
10263else case e in #(
10264  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10265esac
10266fi
10267rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10268esac
10269fi
10270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10271printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10272	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10273	CFLAGS="$xorg_testset_save_CFLAGS"
10274fi
10275
10276if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10277	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10278		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10279	fi
10280	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10281	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10282printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10283if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10284then :
10285  printf %s "(cached) " >&6
10286else case e in #(
10287  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10288/* end confdefs.h.  */
10289int i;
10290_ACEOF
10291if ac_fn_c_try_compile "$LINENO"
10292then :
10293  xorg_cv_cc_flag_unused_command_line_argument=yes
10294else case e in #(
10295  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10296esac
10297fi
10298rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10299esac
10300fi
10301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10302printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10303	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10304	CFLAGS="$xorg_testset_save_CFLAGS"
10305fi
10306
10307found="no"
10308
10309	if test $found = "no" ; then
10310		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10311			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10312		fi
10313
10314		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10315			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10316		fi
10317
10318		CFLAGS="$CFLAGS -Wwrite-strings"
10319
10320		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10321printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10322		cacheid=xorg_cv_cc_flag__Wwrite_strings
10323		if eval test \${$cacheid+y}
10324then :
10325  printf %s "(cached) " >&6
10326else case e in #(
10327  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10328/* end confdefs.h.  */
10329int i;
10330int
10331main (void)
10332{
10333
10334  ;
10335  return 0;
10336}
10337_ACEOF
10338if ac_fn_c_try_link "$LINENO"
10339then :
10340  eval $cacheid=yes
10341else case e in #(
10342  e) eval $cacheid=no ;;
10343esac
10344fi
10345rm -f core conftest.err conftest.$ac_objext conftest.beam \
10346    conftest$ac_exeext conftest.$ac_ext ;;
10347esac
10348fi
10349
10350
10351		CFLAGS="$xorg_testset_save_CFLAGS"
10352
10353		eval supported=\$$cacheid
10354		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10355printf "%s\n" "$supported" >&6; }
10356		if test "$supported" = "yes" ; then
10357			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10358			found="yes"
10359		fi
10360	fi
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376xorg_testset_save_CFLAGS="$CFLAGS"
10377
10378if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10379	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10380	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10381printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10382if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10383then :
10384  printf %s "(cached) " >&6
10385else case e in #(
10386  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387/* end confdefs.h.  */
10388int i;
10389_ACEOF
10390if ac_fn_c_try_compile "$LINENO"
10391then :
10392  xorg_cv_cc_flag_unknown_warning_option=yes
10393else case e in #(
10394  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10395esac
10396fi
10397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10398esac
10399fi
10400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10401printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10402	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10403	CFLAGS="$xorg_testset_save_CFLAGS"
10404fi
10405
10406if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10407	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10408		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10409	fi
10410	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10411	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10412printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10413if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10414then :
10415  printf %s "(cached) " >&6
10416else case e in #(
10417  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10418/* end confdefs.h.  */
10419int i;
10420_ACEOF
10421if ac_fn_c_try_compile "$LINENO"
10422then :
10423  xorg_cv_cc_flag_unused_command_line_argument=yes
10424else case e in #(
10425  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10426esac
10427fi
10428rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10429esac
10430fi
10431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10432printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10433	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10434	CFLAGS="$xorg_testset_save_CFLAGS"
10435fi
10436
10437found="no"
10438
10439	if test $found = "no" ; then
10440		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10441			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10442		fi
10443
10444		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10445			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10446		fi
10447
10448		CFLAGS="$CFLAGS -Waddress"
10449
10450		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10451printf %s "checking if $CC supports -Waddress... " >&6; }
10452		cacheid=xorg_cv_cc_flag__Waddress
10453		if eval test \${$cacheid+y}
10454then :
10455  printf %s "(cached) " >&6
10456else case e in #(
10457  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10458/* end confdefs.h.  */
10459int i;
10460int
10461main (void)
10462{
10463
10464  ;
10465  return 0;
10466}
10467_ACEOF
10468if ac_fn_c_try_link "$LINENO"
10469then :
10470  eval $cacheid=yes
10471else case e in #(
10472  e) eval $cacheid=no ;;
10473esac
10474fi
10475rm -f core conftest.err conftest.$ac_objext conftest.beam \
10476    conftest$ac_exeext conftest.$ac_ext ;;
10477esac
10478fi
10479
10480
10481		CFLAGS="$xorg_testset_save_CFLAGS"
10482
10483		eval supported=\$$cacheid
10484		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10485printf "%s\n" "$supported" >&6; }
10486		if test "$supported" = "yes" ; then
10487			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10488			found="yes"
10489		fi
10490	fi
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506xorg_testset_save_CFLAGS="$CFLAGS"
10507
10508if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10509	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10510	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10511printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10512if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10513then :
10514  printf %s "(cached) " >&6
10515else case e in #(
10516  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10517/* end confdefs.h.  */
10518int i;
10519_ACEOF
10520if ac_fn_c_try_compile "$LINENO"
10521then :
10522  xorg_cv_cc_flag_unknown_warning_option=yes
10523else case e in #(
10524  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10525esac
10526fi
10527rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10528esac
10529fi
10530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10531printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10532	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10533	CFLAGS="$xorg_testset_save_CFLAGS"
10534fi
10535
10536if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10537	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10538		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10539	fi
10540	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10541	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10542printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10543if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10544then :
10545  printf %s "(cached) " >&6
10546else case e in #(
10547  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10548/* end confdefs.h.  */
10549int i;
10550_ACEOF
10551if ac_fn_c_try_compile "$LINENO"
10552then :
10553  xorg_cv_cc_flag_unused_command_line_argument=yes
10554else case e in #(
10555  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10556esac
10557fi
10558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10559esac
10560fi
10561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10562printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10563	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10564	CFLAGS="$xorg_testset_save_CFLAGS"
10565fi
10566
10567found="no"
10568
10569	if test $found = "no" ; then
10570		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10571			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10572		fi
10573
10574		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10575			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10576		fi
10577
10578		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10579
10580		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10581printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10582		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10583		if eval test \${$cacheid+y}
10584then :
10585  printf %s "(cached) " >&6
10586else case e in #(
10587  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10588/* end confdefs.h.  */
10589int i;
10590int
10591main (void)
10592{
10593
10594  ;
10595  return 0;
10596}
10597_ACEOF
10598if ac_fn_c_try_link "$LINENO"
10599then :
10600  eval $cacheid=yes
10601else case e in #(
10602  e) eval $cacheid=no ;;
10603esac
10604fi
10605rm -f core conftest.err conftest.$ac_objext conftest.beam \
10606    conftest$ac_exeext conftest.$ac_ext ;;
10607esac
10608fi
10609
10610
10611		CFLAGS="$xorg_testset_save_CFLAGS"
10612
10613		eval supported=\$$cacheid
10614		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10615printf "%s\n" "$supported" >&6; }
10616		if test "$supported" = "yes" ; then
10617			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10618			found="yes"
10619		fi
10620	fi
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636xorg_testset_save_CFLAGS="$CFLAGS"
10637
10638if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10639	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10640	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10641printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10642if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10643then :
10644  printf %s "(cached) " >&6
10645else case e in #(
10646  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10647/* end confdefs.h.  */
10648int i;
10649_ACEOF
10650if ac_fn_c_try_compile "$LINENO"
10651then :
10652  xorg_cv_cc_flag_unknown_warning_option=yes
10653else case e in #(
10654  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10655esac
10656fi
10657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10658esac
10659fi
10660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10661printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10662	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10663	CFLAGS="$xorg_testset_save_CFLAGS"
10664fi
10665
10666if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10667	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10668		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10669	fi
10670	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10671	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10672printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10673if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10674then :
10675  printf %s "(cached) " >&6
10676else case e in #(
10677  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10678/* end confdefs.h.  */
10679int i;
10680_ACEOF
10681if ac_fn_c_try_compile "$LINENO"
10682then :
10683  xorg_cv_cc_flag_unused_command_line_argument=yes
10684else case e in #(
10685  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10686esac
10687fi
10688rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10689esac
10690fi
10691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10692printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10693	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10694	CFLAGS="$xorg_testset_save_CFLAGS"
10695fi
10696
10697found="no"
10698
10699	if test $found = "no" ; then
10700		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10701			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10702		fi
10703
10704		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10705			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10706		fi
10707
10708		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10709
10710		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10711printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10712		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10713		if eval test \${$cacheid+y}
10714then :
10715  printf %s "(cached) " >&6
10716else case e in #(
10717  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10718/* end confdefs.h.  */
10719int i;
10720int
10721main (void)
10722{
10723
10724  ;
10725  return 0;
10726}
10727_ACEOF
10728if ac_fn_c_try_link "$LINENO"
10729then :
10730  eval $cacheid=yes
10731else case e in #(
10732  e) eval $cacheid=no ;;
10733esac
10734fi
10735rm -f core conftest.err conftest.$ac_objext conftest.beam \
10736    conftest$ac_exeext conftest.$ac_ext ;;
10737esac
10738fi
10739
10740
10741		CFLAGS="$xorg_testset_save_CFLAGS"
10742
10743		eval supported=\$$cacheid
10744		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10745printf "%s\n" "$supported" >&6; }
10746		if test "$supported" = "yes" ; then
10747			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10748			found="yes"
10749		fi
10750	fi
10751
10752
10753fi
10754
10755
10756
10757
10758
10759
10760
10761		CWARNFLAGS="$BASE_CFLAGS"
10762		if  test "x$GCC" = xyes ; then
10763		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10764		fi
10765
10766
10767
10768
10769
10770
10771
10772
10773# Check whether --enable-strict-compilation was given.
10774if test ${enable_strict_compilation+y}
10775then :
10776  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10777else case e in #(
10778  e) STRICT_COMPILE=no ;;
10779esac
10780fi
10781
10782
10783
10784
10785
10786
10787STRICT_CFLAGS=""
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801xorg_testset_save_CFLAGS="$CFLAGS"
10802
10803if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10804	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10805	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10806printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10807if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10808then :
10809  printf %s "(cached) " >&6
10810else case e in #(
10811  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10812/* end confdefs.h.  */
10813int i;
10814_ACEOF
10815if ac_fn_c_try_compile "$LINENO"
10816then :
10817  xorg_cv_cc_flag_unknown_warning_option=yes
10818else case e in #(
10819  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10820esac
10821fi
10822rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10823esac
10824fi
10825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10826printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10827	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10828	CFLAGS="$xorg_testset_save_CFLAGS"
10829fi
10830
10831if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10832	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10833		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10834	fi
10835	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10836	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10837printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10838if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10839then :
10840  printf %s "(cached) " >&6
10841else case e in #(
10842  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10843/* end confdefs.h.  */
10844int i;
10845_ACEOF
10846if ac_fn_c_try_compile "$LINENO"
10847then :
10848  xorg_cv_cc_flag_unused_command_line_argument=yes
10849else case e in #(
10850  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10851esac
10852fi
10853rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10854esac
10855fi
10856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10857printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10858	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10859	CFLAGS="$xorg_testset_save_CFLAGS"
10860fi
10861
10862found="no"
10863
10864	if test $found = "no" ; then
10865		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10866			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10867		fi
10868
10869		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10870			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10871		fi
10872
10873		CFLAGS="$CFLAGS -pedantic"
10874
10875		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10876printf %s "checking if $CC supports -pedantic... " >&6; }
10877		cacheid=xorg_cv_cc_flag__pedantic
10878		if eval test \${$cacheid+y}
10879then :
10880  printf %s "(cached) " >&6
10881else case e in #(
10882  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10883/* end confdefs.h.  */
10884int i;
10885int
10886main (void)
10887{
10888
10889  ;
10890  return 0;
10891}
10892_ACEOF
10893if ac_fn_c_try_link "$LINENO"
10894then :
10895  eval $cacheid=yes
10896else case e in #(
10897  e) eval $cacheid=no ;;
10898esac
10899fi
10900rm -f core conftest.err conftest.$ac_objext conftest.beam \
10901    conftest$ac_exeext conftest.$ac_ext ;;
10902esac
10903fi
10904
10905
10906		CFLAGS="$xorg_testset_save_CFLAGS"
10907
10908		eval supported=\$$cacheid
10909		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10910printf "%s\n" "$supported" >&6; }
10911		if test "$supported" = "yes" ; then
10912			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10913			found="yes"
10914		fi
10915	fi
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931xorg_testset_save_CFLAGS="$CFLAGS"
10932
10933if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10934	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10935	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10936printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10937if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10938then :
10939  printf %s "(cached) " >&6
10940else case e in #(
10941  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10942/* end confdefs.h.  */
10943int i;
10944_ACEOF
10945if ac_fn_c_try_compile "$LINENO"
10946then :
10947  xorg_cv_cc_flag_unknown_warning_option=yes
10948else case e in #(
10949  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10950esac
10951fi
10952rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10953esac
10954fi
10955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10956printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10957	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10958	CFLAGS="$xorg_testset_save_CFLAGS"
10959fi
10960
10961if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10962	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10963		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10964	fi
10965	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10966	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10967printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10968if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10969then :
10970  printf %s "(cached) " >&6
10971else case e in #(
10972  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10973/* end confdefs.h.  */
10974int i;
10975_ACEOF
10976if ac_fn_c_try_compile "$LINENO"
10977then :
10978  xorg_cv_cc_flag_unused_command_line_argument=yes
10979else case e in #(
10980  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10981esac
10982fi
10983rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10984esac
10985fi
10986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10987printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10988	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10989	CFLAGS="$xorg_testset_save_CFLAGS"
10990fi
10991
10992found="no"
10993
10994	if test $found = "no" ; then
10995		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10996			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10997		fi
10998
10999		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11000			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11001		fi
11002
11003		CFLAGS="$CFLAGS -Werror"
11004
11005		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11006printf %s "checking if $CC supports -Werror... " >&6; }
11007		cacheid=xorg_cv_cc_flag__Werror
11008		if eval test \${$cacheid+y}
11009then :
11010  printf %s "(cached) " >&6
11011else case e in #(
11012  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11013/* end confdefs.h.  */
11014int i;
11015int
11016main (void)
11017{
11018
11019  ;
11020  return 0;
11021}
11022_ACEOF
11023if ac_fn_c_try_link "$LINENO"
11024then :
11025  eval $cacheid=yes
11026else case e in #(
11027  e) eval $cacheid=no ;;
11028esac
11029fi
11030rm -f core conftest.err conftest.$ac_objext conftest.beam \
11031    conftest$ac_exeext conftest.$ac_ext ;;
11032esac
11033fi
11034
11035
11036		CFLAGS="$xorg_testset_save_CFLAGS"
11037
11038		eval supported=\$$cacheid
11039		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11040printf "%s\n" "$supported" >&6; }
11041		if test "$supported" = "yes" ; then
11042			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11043			found="yes"
11044		fi
11045	fi
11046
11047	if test $found = "no" ; then
11048		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11049			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11050		fi
11051
11052		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11053			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11054		fi
11055
11056		CFLAGS="$CFLAGS -errwarn"
11057
11058		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11059printf %s "checking if $CC supports -errwarn... " >&6; }
11060		cacheid=xorg_cv_cc_flag__errwarn
11061		if eval test \${$cacheid+y}
11062then :
11063  printf %s "(cached) " >&6
11064else case e in #(
11065  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066/* end confdefs.h.  */
11067int i;
11068int
11069main (void)
11070{
11071
11072  ;
11073  return 0;
11074}
11075_ACEOF
11076if ac_fn_c_try_link "$LINENO"
11077then :
11078  eval $cacheid=yes
11079else case e in #(
11080  e) eval $cacheid=no ;;
11081esac
11082fi
11083rm -f core conftest.err conftest.$ac_objext conftest.beam \
11084    conftest$ac_exeext conftest.$ac_ext ;;
11085esac
11086fi
11087
11088
11089		CFLAGS="$xorg_testset_save_CFLAGS"
11090
11091		eval supported=\$$cacheid
11092		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11093printf "%s\n" "$supported" >&6; }
11094		if test "$supported" = "yes" ; then
11095			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11096			found="yes"
11097		fi
11098	fi
11099
11100
11101
11102# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11103# activate it with -Werror, so we add it here explicitly.
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117xorg_testset_save_CFLAGS="$CFLAGS"
11118
11119if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11120	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11121	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11122printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11123if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11124then :
11125  printf %s "(cached) " >&6
11126else case e in #(
11127  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11128/* end confdefs.h.  */
11129int i;
11130_ACEOF
11131if ac_fn_c_try_compile "$LINENO"
11132then :
11133  xorg_cv_cc_flag_unknown_warning_option=yes
11134else case e in #(
11135  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11136esac
11137fi
11138rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11139esac
11140fi
11141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11142printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11143	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11144	CFLAGS="$xorg_testset_save_CFLAGS"
11145fi
11146
11147if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11148	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11149		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11150	fi
11151	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11152	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11153printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11154if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11155then :
11156  printf %s "(cached) " >&6
11157else case e in #(
11158  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11159/* end confdefs.h.  */
11160int i;
11161_ACEOF
11162if ac_fn_c_try_compile "$LINENO"
11163then :
11164  xorg_cv_cc_flag_unused_command_line_argument=yes
11165else case e in #(
11166  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11167esac
11168fi
11169rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11170esac
11171fi
11172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11173printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11174	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11175	CFLAGS="$xorg_testset_save_CFLAGS"
11176fi
11177
11178found="no"
11179
11180	if test $found = "no" ; then
11181		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11182			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11183		fi
11184
11185		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11186			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11187		fi
11188
11189		CFLAGS="$CFLAGS -Werror=attributes"
11190
11191		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11192printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11193		cacheid=xorg_cv_cc_flag__Werror_attributes
11194		if eval test \${$cacheid+y}
11195then :
11196  printf %s "(cached) " >&6
11197else case e in #(
11198  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11199/* end confdefs.h.  */
11200int i;
11201int
11202main (void)
11203{
11204
11205  ;
11206  return 0;
11207}
11208_ACEOF
11209if ac_fn_c_try_link "$LINENO"
11210then :
11211  eval $cacheid=yes
11212else case e in #(
11213  e) eval $cacheid=no ;;
11214esac
11215fi
11216rm -f core conftest.err conftest.$ac_objext conftest.beam \
11217    conftest$ac_exeext conftest.$ac_ext ;;
11218esac
11219fi
11220
11221
11222		CFLAGS="$xorg_testset_save_CFLAGS"
11223
11224		eval supported=\$$cacheid
11225		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11226printf "%s\n" "$supported" >&6; }
11227		if test "$supported" = "yes" ; then
11228			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11229			found="yes"
11230		fi
11231	fi
11232
11233
11234
11235if test "x$STRICT_COMPILE" = "xyes"; then
11236    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11237    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11238fi
11239
11240
11241
11242
11243
11244
11245
11246
11247cat >>confdefs.h <<_ACEOF
11248#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11249_ACEOF
11250
11251	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11252	if test "x$PVM" = "x"; then
11253		PVM="0"
11254	fi
11255
11256printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11257
11258	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11259	if test "x$PVP" = "x"; then
11260		PVP="0"
11261	fi
11262
11263printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11264
11265
11266
11267CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11268mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11269|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11270touch \$(top_srcdir)/ChangeLog; \
11271echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11272
11273
11274
11275
11276macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11277INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11278mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11279|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11280touch \$(top_srcdir)/INSTALL; \
11281echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11282
11283
11284
11285
11286
11287
11288case $host_os in
11289    solaris*)
11290        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11291        # check for a man page file found in later versions that use
11292        # traditional section numbers instead
11293        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11294printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11295if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11296then :
11297  printf %s "(cached) " >&6
11298else case e in #(
11299  e) test "$cross_compiling" = yes &&
11300  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11301if test -r "/usr/share/man/man7/attributes.7"; then
11302  ac_cv_file__usr_share_man_man7_attributes_7=yes
11303else
11304  ac_cv_file__usr_share_man_man7_attributes_7=no
11305fi ;;
11306esac
11307fi
11308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11309printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11310if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11311then :
11312  SYSV_MAN_SECTIONS=false
11313else case e in #(
11314  e) SYSV_MAN_SECTIONS=true ;;
11315esac
11316fi
11317
11318        ;;
11319    *) SYSV_MAN_SECTIONS=false ;;
11320esac
11321
11322if test x$APP_MAN_SUFFIX = x    ; then
11323    APP_MAN_SUFFIX=1
11324fi
11325if test x$APP_MAN_DIR = x    ; then
11326    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11327fi
11328
11329if test x$LIB_MAN_SUFFIX = x    ; then
11330    LIB_MAN_SUFFIX=3
11331fi
11332if test x$LIB_MAN_DIR = x    ; then
11333    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11334fi
11335
11336if test x$FILE_MAN_SUFFIX = x    ; then
11337    case $SYSV_MAN_SECTIONS in
11338	true)				FILE_MAN_SUFFIX=4  ;;
11339	*)				FILE_MAN_SUFFIX=5  ;;
11340    esac
11341fi
11342if test x$FILE_MAN_DIR = x    ; then
11343    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11344fi
11345
11346if test x$MISC_MAN_SUFFIX = x    ; then
11347    case $SYSV_MAN_SECTIONS in
11348	true)				MISC_MAN_SUFFIX=5  ;;
11349	*)				MISC_MAN_SUFFIX=7  ;;
11350    esac
11351fi
11352if test x$MISC_MAN_DIR = x    ; then
11353    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11354fi
11355
11356if test x$DRIVER_MAN_SUFFIX = x    ; then
11357    case $SYSV_MAN_SECTIONS in
11358	true)				DRIVER_MAN_SUFFIX=7  ;;
11359	*)				DRIVER_MAN_SUFFIX=4  ;;
11360    esac
11361fi
11362if test x$DRIVER_MAN_DIR = x    ; then
11363    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11364fi
11365
11366if test x$ADMIN_MAN_SUFFIX = x    ; then
11367    case $SYSV_MAN_SECTIONS in
11368	true)				ADMIN_MAN_SUFFIX=1m ;;
11369	*)				ADMIN_MAN_SUFFIX=8  ;;
11370    esac
11371fi
11372if test x$ADMIN_MAN_DIR = x    ; then
11373    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11374fi
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390XORG_MAN_PAGE="X Version 11"
11391
11392MAN_SUBSTS="\
11393	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11394	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11395	-e 's|__xservername__|Xorg|g' \
11396	-e 's|__xconfigfile__|xorg.conf|g' \
11397	-e 's|__projectroot__|\$(prefix)|g' \
11398	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11399	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11400	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11401	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11402	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11403	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11404	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11405
11406
11407
11408# Check whether --enable-silent-rules was given.
11409if test ${enable_silent_rules+y}
11410then :
11411  enableval=$enable_silent_rules;
11412fi
11413
11414case $enable_silent_rules in # (((
11415  yes) AM_DEFAULT_VERBOSITY=0;;
11416   no) AM_DEFAULT_VERBOSITY=1;;
11417    *) AM_DEFAULT_VERBOSITY=0;;
11418esac
11419am_make=${MAKE-make}
11420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11421printf %s "checking whether $am_make supports nested variables... " >&6; }
11422if test ${am_cv_make_support_nested_variables+y}
11423then :
11424  printf %s "(cached) " >&6
11425else case e in #(
11426  e) if printf "%s\n" 'TRUE=$(BAR$(V))
11427BAR0=false
11428BAR1=true
11429V=1
11430am__doit:
11431	@$(TRUE)
11432.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11433  am_cv_make_support_nested_variables=yes
11434else
11435  am_cv_make_support_nested_variables=no
11436fi ;;
11437esac
11438fi
11439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11440printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11441if test $am_cv_make_support_nested_variables = yes; then
11442    AM_V='$(V)'
11443  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11444else
11445  AM_V=$AM_DEFAULT_VERBOSITY
11446  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11447fi
11448AM_BACKSLASH='\'
11449
11450
11451
11452
11453# Checks for pkg-config packages
11454
11455pkg_failed=no
11456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LISTRES" >&5
11457printf %s "checking for LISTRES... " >&6; }
11458
11459if test -n "$LISTRES_CFLAGS"; then
11460    pkg_cv_LISTRES_CFLAGS="$LISTRES_CFLAGS"
11461 elif test -n "$PKG_CONFIG"; then
11462    if test -n "$PKG_CONFIG" && \
11463    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xproto xt xmu\""; } >&5
11464  ($PKG_CONFIG --exists --print-errors "xaw7 xproto xt xmu") 2>&5
11465  ac_status=$?
11466  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11467  test $ac_status = 0; }; then
11468  pkg_cv_LISTRES_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xproto xt xmu" 2>/dev/null`
11469		      test "x$?" != "x0" && pkg_failed=yes
11470else
11471  pkg_failed=yes
11472fi
11473 else
11474    pkg_failed=untried
11475fi
11476if test -n "$LISTRES_LIBS"; then
11477    pkg_cv_LISTRES_LIBS="$LISTRES_LIBS"
11478 elif test -n "$PKG_CONFIG"; then
11479    if test -n "$PKG_CONFIG" && \
11480    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xproto xt xmu\""; } >&5
11481  ($PKG_CONFIG --exists --print-errors "xaw7 xproto xt xmu") 2>&5
11482  ac_status=$?
11483  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11484  test $ac_status = 0; }; then
11485  pkg_cv_LISTRES_LIBS=`$PKG_CONFIG --libs "xaw7 xproto xt xmu" 2>/dev/null`
11486		      test "x$?" != "x0" && pkg_failed=yes
11487else
11488  pkg_failed=yes
11489fi
11490 else
11491    pkg_failed=untried
11492fi
11493
11494
11495
11496if test $pkg_failed = yes; then
11497   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11498printf "%s\n" "no" >&6; }
11499
11500if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11501        _pkg_short_errors_supported=yes
11502else
11503        _pkg_short_errors_supported=no
11504fi
11505        if test $_pkg_short_errors_supported = yes; then
11506	        LISTRES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xproto xt xmu" 2>&1`
11507        else
11508	        LISTRES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xproto xt xmu" 2>&1`
11509        fi
11510	# Put the nasty error message in config.log where it belongs
11511	echo "$LISTRES_PKG_ERRORS" >&5
11512
11513	as_fn_error $? "Package requirements (xaw7 xproto xt xmu) were not met:
11514
11515$LISTRES_PKG_ERRORS
11516
11517Consider adjusting the PKG_CONFIG_PATH environment variable if you
11518installed software in a non-standard prefix.
11519
11520Alternatively, you may set the environment variables LISTRES_CFLAGS
11521and LISTRES_LIBS to avoid the need to call pkg-config.
11522See the pkg-config man page for more details." "$LINENO" 5
11523elif test $pkg_failed = untried; then
11524     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11525printf "%s\n" "no" >&6; }
11526	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11527printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11528as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11529is in your PATH or set the PKG_CONFIG environment variable to the full
11530path to pkg-config.
11531
11532Alternatively, you may set the environment variables LISTRES_CFLAGS
11533and LISTRES_LIBS to avoid the need to call pkg-config.
11534See the pkg-config man page for more details.
11535
11536To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11537See 'config.log' for more details" "$LINENO" 5; }
11538else
11539	LISTRES_CFLAGS=$pkg_cv_LISTRES_CFLAGS
11540	LISTRES_LIBS=$pkg_cv_LISTRES_LIBS
11541        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11542printf "%s\n" "yes" >&6; }
11543
11544fi
11545
11546ac_config_files="$ac_config_files Makefile man/Makefile"
11547
11548cat >confcache <<\_ACEOF
11549# This file is a shell script that caches the results of configure
11550# tests run on this system so they can be shared between configure
11551# scripts and configure runs, see configure's option --config-cache.
11552# It is not useful on other systems.  If it contains results you don't
11553# want to keep, you may remove or edit it.
11554#
11555# config.status only pays attention to the cache file if you give it
11556# the --recheck option to rerun configure.
11557#
11558# 'ac_cv_env_foo' variables (set or unset) will be overridden when
11559# loading this file, other *unset* 'ac_cv_foo' will be assigned the
11560# following values.
11561
11562_ACEOF
11563
11564# The following way of writing the cache mishandles newlines in values,
11565# but we know of no workaround that is simple, portable, and efficient.
11566# So, we kill variables containing newlines.
11567# Ultrix sh set writes to stderr and can't be redirected directly,
11568# and sets the high bit in the cache file unless we assign to the vars.
11569(
11570  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11571    eval ac_val=\$$ac_var
11572    case $ac_val in #(
11573    *${as_nl}*)
11574      case $ac_var in #(
11575      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11576printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11577      esac
11578      case $ac_var in #(
11579      _ | IFS | as_nl) ;; #(
11580      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11581      *) { eval $ac_var=; unset $ac_var;} ;;
11582      esac ;;
11583    esac
11584  done
11585
11586  (set) 2>&1 |
11587    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11588    *${as_nl}ac_space=\ *)
11589      # 'set' does not quote correctly, so add quotes: double-quote
11590      # substitution turns \\\\ into \\, and sed turns \\ into \.
11591      sed -n \
11592	"s/'/'\\\\''/g;
11593	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11594      ;; #(
11595    *)
11596      # 'set' quotes correctly as required by POSIX, so do not add quotes.
11597      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11598      ;;
11599    esac |
11600    sort
11601) |
11602  sed '
11603     /^ac_cv_env_/b end
11604     t clear
11605     :clear
11606     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11607     t end
11608     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11609     :end' >>confcache
11610if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11611  if test -w "$cache_file"; then
11612    if test "x$cache_file" != "x/dev/null"; then
11613      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11614printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11615      if test ! -f "$cache_file" || test -h "$cache_file"; then
11616	cat confcache >"$cache_file"
11617      else
11618        case $cache_file in #(
11619        */* | ?:*)
11620	  mv -f confcache "$cache_file"$$ &&
11621	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11622        *)
11623	  mv -f confcache "$cache_file" ;;
11624	esac
11625      fi
11626    fi
11627  else
11628    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11629printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11630  fi
11631fi
11632rm -f confcache
11633
11634test "x$prefix" = xNONE && prefix=$ac_default_prefix
11635# Let make expand exec_prefix.
11636test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11637
11638DEFS=-DHAVE_CONFIG_H
11639
11640ac_libobjs=
11641ac_ltlibobjs=
11642U=
11643for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11644  # 1. Remove the extension, and $U if already installed.
11645  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11646  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11647  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11648  #    will be set to the directory where LIBOBJS objects are built.
11649  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11650  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11651done
11652LIBOBJS=$ac_libobjs
11653
11654LTLIBOBJS=$ac_ltlibobjs
11655
11656
11657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11658printf %s "checking that generated files are newer than configure... " >&6; }
11659   if test -n "$am_sleep_pid"; then
11660     # Hide warnings about reused PIDs.
11661     wait $am_sleep_pid 2>/dev/null
11662   fi
11663   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11664printf "%s\n" "done" >&6; }
11665 if test -n "$EXEEXT"; then
11666  am__EXEEXT_TRUE=
11667  am__EXEEXT_FALSE='#'
11668else
11669  am__EXEEXT_TRUE='#'
11670  am__EXEEXT_FALSE=
11671fi
11672
11673if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11674  as_fn_error $? "conditional \"AMDEP\" was never defined.
11675Usually this means the macro was only invoked conditionally." "$LINENO" 5
11676fi
11677if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11678  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11679Usually this means the macro was only invoked conditionally." "$LINENO" 5
11680fi
11681
11682: "${CONFIG_STATUS=./config.status}"
11683ac_write_fail=0
11684ac_clean_files_save=$ac_clean_files
11685ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11687printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11688as_write_fail=0
11689cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11690#! $SHELL
11691# Generated by $as_me.
11692# Run this file to recreate the current configuration.
11693# Compiler output produced by configure, useful for debugging
11694# configure, is in config.log if it exists.
11695
11696debug=false
11697ac_cs_recheck=false
11698ac_cs_silent=false
11699
11700SHELL=\${CONFIG_SHELL-$SHELL}
11701export SHELL
11702_ASEOF
11703cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11704## -------------------- ##
11705## M4sh Initialization. ##
11706## -------------------- ##
11707
11708# Be more Bourne compatible
11709DUALCASE=1; export DUALCASE # for MKS sh
11710if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11711then :
11712  emulate sh
11713  NULLCMD=:
11714  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11715  # is contrary to our usage.  Disable this feature.
11716  alias -g '${1+"$@"}'='"$@"'
11717  setopt NO_GLOB_SUBST
11718else case e in #(
11719  e) case `(set -o) 2>/dev/null` in #(
11720  *posix*) :
11721    set -o posix ;; #(
11722  *) :
11723     ;;
11724esac ;;
11725esac
11726fi
11727
11728
11729
11730# Reset variables that may have inherited troublesome values from
11731# the environment.
11732
11733# IFS needs to be set, to space, tab, and newline, in precisely that order.
11734# (If _AS_PATH_WALK were called with IFS unset, it would have the
11735# side effect of setting IFS to empty, thus disabling word splitting.)
11736# Quoting is to prevent editors from complaining about space-tab.
11737as_nl='
11738'
11739export as_nl
11740IFS=" ""	$as_nl"
11741
11742PS1='$ '
11743PS2='> '
11744PS4='+ '
11745
11746# Ensure predictable behavior from utilities with locale-dependent output.
11747LC_ALL=C
11748export LC_ALL
11749LANGUAGE=C
11750export LANGUAGE
11751
11752# We cannot yet rely on "unset" to work, but we need these variables
11753# to be unset--not just set to an empty or harmless value--now, to
11754# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11755# also avoids known problems related to "unset" and subshell syntax
11756# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11757for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11758do eval test \${$as_var+y} \
11759  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11760done
11761
11762# Ensure that fds 0, 1, and 2 are open.
11763if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11764if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11765if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
11766
11767# The user is always right.
11768if ${PATH_SEPARATOR+false} :; then
11769  PATH_SEPARATOR=:
11770  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11771    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11772      PATH_SEPARATOR=';'
11773  }
11774fi
11775
11776
11777# Find who we are.  Look in the path if we contain no directory separator.
11778as_myself=
11779case $0 in #((
11780  *[\\/]* ) as_myself=$0 ;;
11781  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11782for as_dir in $PATH
11783do
11784  IFS=$as_save_IFS
11785  case $as_dir in #(((
11786    '') as_dir=./ ;;
11787    */) ;;
11788    *) as_dir=$as_dir/ ;;
11789  esac
11790    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11791  done
11792IFS=$as_save_IFS
11793
11794     ;;
11795esac
11796# We did not find ourselves, most probably we were run as 'sh COMMAND'
11797# in which case we are not to be found in the path.
11798if test "x$as_myself" = x; then
11799  as_myself=$0
11800fi
11801if test ! -f "$as_myself"; then
11802  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11803  exit 1
11804fi
11805
11806
11807
11808# as_fn_error STATUS ERROR [LINENO LOG_FD]
11809# ----------------------------------------
11810# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11811# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11812# script with STATUS, using 1 if that was 0.
11813as_fn_error ()
11814{
11815  as_status=$1; test $as_status -eq 0 && as_status=1
11816  if test "$4"; then
11817    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11818    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11819  fi
11820  printf "%s\n" "$as_me: error: $2" >&2
11821  as_fn_exit $as_status
11822} # as_fn_error
11823
11824
11825# as_fn_set_status STATUS
11826# -----------------------
11827# Set $? to STATUS, without forking.
11828as_fn_set_status ()
11829{
11830  return $1
11831} # as_fn_set_status
11832
11833# as_fn_exit STATUS
11834# -----------------
11835# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11836as_fn_exit ()
11837{
11838  set +e
11839  as_fn_set_status $1
11840  exit $1
11841} # as_fn_exit
11842
11843# as_fn_unset VAR
11844# ---------------
11845# Portably unset VAR.
11846as_fn_unset ()
11847{
11848  { eval $1=; unset $1;}
11849}
11850as_unset=as_fn_unset
11851
11852# as_fn_append VAR VALUE
11853# ----------------------
11854# Append the text in VALUE to the end of the definition contained in VAR. Take
11855# advantage of any shell optimizations that allow amortized linear growth over
11856# repeated appends, instead of the typical quadratic growth present in naive
11857# implementations.
11858if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11859then :
11860  eval 'as_fn_append ()
11861  {
11862    eval $1+=\$2
11863  }'
11864else case e in #(
11865  e) as_fn_append ()
11866  {
11867    eval $1=\$$1\$2
11868  } ;;
11869esac
11870fi # as_fn_append
11871
11872# as_fn_arith ARG...
11873# ------------------
11874# Perform arithmetic evaluation on the ARGs, and store the result in the
11875# global $as_val. Take advantage of shells that can avoid forks. The arguments
11876# must be portable across $(()) and expr.
11877if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11878then :
11879  eval 'as_fn_arith ()
11880  {
11881    as_val=$(( $* ))
11882  }'
11883else case e in #(
11884  e) as_fn_arith ()
11885  {
11886    as_val=`expr "$@" || test $? -eq 1`
11887  } ;;
11888esac
11889fi # as_fn_arith
11890
11891
11892if expr a : '\(a\)' >/dev/null 2>&1 &&
11893   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11894  as_expr=expr
11895else
11896  as_expr=false
11897fi
11898
11899if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11900  as_basename=basename
11901else
11902  as_basename=false
11903fi
11904
11905if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11906  as_dirname=dirname
11907else
11908  as_dirname=false
11909fi
11910
11911as_me=`$as_basename -- "$0" ||
11912$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11913	 X"$0" : 'X\(//\)$' \| \
11914	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11915printf "%s\n" X/"$0" |
11916    sed '/^.*\/\([^/][^/]*\)\/*$/{
11917	    s//\1/
11918	    q
11919	  }
11920	  /^X\/\(\/\/\)$/{
11921	    s//\1/
11922	    q
11923	  }
11924	  /^X\/\(\/\).*/{
11925	    s//\1/
11926	    q
11927	  }
11928	  s/.*/./; q'`
11929
11930# Avoid depending upon Character Ranges.
11931as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11932as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11933as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11934as_cr_digits='0123456789'
11935as_cr_alnum=$as_cr_Letters$as_cr_digits
11936
11937
11938# Determine whether it's possible to make 'echo' print without a newline.
11939# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11940# for compatibility with existing Makefiles.
11941ECHO_C= ECHO_N= ECHO_T=
11942case `echo -n x` in #(((((
11943-n*)
11944  case `echo 'xy\c'` in
11945  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11946  xy)  ECHO_C='\c';;
11947  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11948       ECHO_T='	';;
11949  esac;;
11950*)
11951  ECHO_N='-n';;
11952esac
11953
11954# For backward compatibility with old third-party macros, we provide
11955# the shell variables $as_echo and $as_echo_n.  New code should use
11956# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11957as_echo='printf %s\n'
11958as_echo_n='printf %s'
11959
11960rm -f conf$$ conf$$.exe conf$$.file
11961if test -d conf$$.dir; then
11962  rm -f conf$$.dir/conf$$.file
11963else
11964  rm -f conf$$.dir
11965  mkdir conf$$.dir 2>/dev/null
11966fi
11967if (echo >conf$$.file) 2>/dev/null; then
11968  if ln -s conf$$.file conf$$ 2>/dev/null; then
11969    as_ln_s='ln -s'
11970    # ... but there are two gotchas:
11971    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
11972    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
11973    # In both cases, we have to default to 'cp -pR'.
11974    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11975      as_ln_s='cp -pR'
11976  elif ln conf$$.file conf$$ 2>/dev/null; then
11977    as_ln_s=ln
11978  else
11979    as_ln_s='cp -pR'
11980  fi
11981else
11982  as_ln_s='cp -pR'
11983fi
11984rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11985rmdir conf$$.dir 2>/dev/null
11986
11987
11988# as_fn_mkdir_p
11989# -------------
11990# Create "$as_dir" as a directory, including parents if necessary.
11991as_fn_mkdir_p ()
11992{
11993
11994  case $as_dir in #(
11995  -*) as_dir=./$as_dir;;
11996  esac
11997  test -d "$as_dir" || eval $as_mkdir_p || {
11998    as_dirs=
11999    while :; do
12000      case $as_dir in #(
12001      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12002      *) as_qdir=$as_dir;;
12003      esac
12004      as_dirs="'$as_qdir' $as_dirs"
12005      as_dir=`$as_dirname -- "$as_dir" ||
12006$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12007	 X"$as_dir" : 'X\(//\)[^/]' \| \
12008	 X"$as_dir" : 'X\(//\)$' \| \
12009	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12010printf "%s\n" X"$as_dir" |
12011    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12012	    s//\1/
12013	    q
12014	  }
12015	  /^X\(\/\/\)[^/].*/{
12016	    s//\1/
12017	    q
12018	  }
12019	  /^X\(\/\/\)$/{
12020	    s//\1/
12021	    q
12022	  }
12023	  /^X\(\/\).*/{
12024	    s//\1/
12025	    q
12026	  }
12027	  s/.*/./; q'`
12028      test -d "$as_dir" && break
12029    done
12030    test -z "$as_dirs" || eval "mkdir $as_dirs"
12031  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12032
12033
12034} # as_fn_mkdir_p
12035if mkdir -p . 2>/dev/null; then
12036  as_mkdir_p='mkdir -p "$as_dir"'
12037else
12038  test -d ./-p && rmdir ./-p
12039  as_mkdir_p=false
12040fi
12041
12042
12043# as_fn_executable_p FILE
12044# -----------------------
12045# Test if FILE is an executable regular file.
12046as_fn_executable_p ()
12047{
12048  test -f "$1" && test -x "$1"
12049} # as_fn_executable_p
12050as_test_x='test -x'
12051as_executable_p=as_fn_executable_p
12052
12053# Sed expression to map a string onto a valid CPP name.
12054as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12055as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12056
12057# Sed expression to map a string onto a valid variable name.
12058as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12059as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12060
12061
12062exec 6>&1
12063## ----------------------------------- ##
12064## Main body of $CONFIG_STATUS script. ##
12065## ----------------------------------- ##
12066_ASEOF
12067test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12068
12069cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12070# Save the log message, to keep $0 and so on meaningful, and to
12071# report actual input values of CONFIG_FILES etc. instead of their
12072# values after options handling.
12073ac_log="
12074This file was extended by listres $as_me 1.0.6, which was
12075generated by GNU Autoconf 2.72.  Invocation command line was
12076
12077  CONFIG_FILES    = $CONFIG_FILES
12078  CONFIG_HEADERS  = $CONFIG_HEADERS
12079  CONFIG_LINKS    = $CONFIG_LINKS
12080  CONFIG_COMMANDS = $CONFIG_COMMANDS
12081  $ $0 $@
12082
12083on `(hostname || uname -n) 2>/dev/null | sed 1q`
12084"
12085
12086_ACEOF
12087
12088case $ac_config_files in *"
12089"*) set x $ac_config_files; shift; ac_config_files=$*;;
12090esac
12091
12092case $ac_config_headers in *"
12093"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12094esac
12095
12096
12097cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12098# Files that config.status was made for.
12099config_files="$ac_config_files"
12100config_headers="$ac_config_headers"
12101config_commands="$ac_config_commands"
12102
12103_ACEOF
12104
12105cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12106ac_cs_usage="\
12107'$as_me' instantiates files and other configuration actions
12108from templates according to the current configuration.  Unless the files
12109and actions are specified as TAGs, all are instantiated by default.
12110
12111Usage: $0 [OPTION]... [TAG]...
12112
12113  -h, --help       print this help, then exit
12114  -V, --version    print version number and configuration settings, then exit
12115      --config     print configuration, then exit
12116  -q, --quiet, --silent
12117                   do not print progress messages
12118  -d, --debug      don't remove temporary files
12119      --recheck    update $as_me by reconfiguring in the same conditions
12120      --file=FILE[:TEMPLATE]
12121                   instantiate the configuration file FILE
12122      --header=FILE[:TEMPLATE]
12123                   instantiate the configuration header FILE
12124
12125Configuration files:
12126$config_files
12127
12128Configuration headers:
12129$config_headers
12130
12131Configuration commands:
12132$config_commands
12133
12134Report bugs to <https://gitlab.freedesktop.org/xorg/app/listres/-/issues>."
12135
12136_ACEOF
12137ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12138ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12139cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12140ac_cs_config='$ac_cs_config_escaped'
12141ac_cs_version="\\
12142listres config.status 1.0.6
12143configured by $0, generated by GNU Autoconf 2.72,
12144  with options \\"\$ac_cs_config\\"
12145
12146Copyright (C) 2023 Free Software Foundation, Inc.
12147This config.status script is free software; the Free Software Foundation
12148gives unlimited permission to copy, distribute and modify it."
12149
12150ac_pwd='$ac_pwd'
12151srcdir='$srcdir'
12152INSTALL='$INSTALL'
12153MKDIR_P='$MKDIR_P'
12154AWK='$AWK'
12155test -n "\$AWK" || AWK=awk
12156_ACEOF
12157
12158cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12159# The default lists apply if the user does not specify any file.
12160ac_need_defaults=:
12161while test $# != 0
12162do
12163  case $1 in
12164  --*=?*)
12165    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12166    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12167    ac_shift=:
12168    ;;
12169  --*=)
12170    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12171    ac_optarg=
12172    ac_shift=:
12173    ;;
12174  *)
12175    ac_option=$1
12176    ac_optarg=$2
12177    ac_shift=shift
12178    ;;
12179  esac
12180
12181  case $ac_option in
12182  # Handling of the options.
12183  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12184    ac_cs_recheck=: ;;
12185  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12186    printf "%s\n" "$ac_cs_version"; exit ;;
12187  --config | --confi | --conf | --con | --co | --c )
12188    printf "%s\n" "$ac_cs_config"; exit ;;
12189  --debug | --debu | --deb | --de | --d | -d )
12190    debug=: ;;
12191  --file | --fil | --fi | --f )
12192    $ac_shift
12193    case $ac_optarg in
12194    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12195    '') as_fn_error $? "missing file argument" ;;
12196    esac
12197    as_fn_append CONFIG_FILES " '$ac_optarg'"
12198    ac_need_defaults=false;;
12199  --header | --heade | --head | --hea )
12200    $ac_shift
12201    case $ac_optarg in
12202    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12203    esac
12204    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12205    ac_need_defaults=false;;
12206  --he | --h)
12207    # Conflict between --help and --header
12208    as_fn_error $? "ambiguous option: '$1'
12209Try '$0 --help' for more information.";;
12210  --help | --hel | -h )
12211    printf "%s\n" "$ac_cs_usage"; exit ;;
12212  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12213  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12214    ac_cs_silent=: ;;
12215
12216  # This is an error.
12217  -*) as_fn_error $? "unrecognized option: '$1'
12218Try '$0 --help' for more information." ;;
12219
12220  *) as_fn_append ac_config_targets " $1"
12221     ac_need_defaults=false ;;
12222
12223  esac
12224  shift
12225done
12226
12227ac_configure_extra_args=
12228
12229if $ac_cs_silent; then
12230  exec 6>/dev/null
12231  ac_configure_extra_args="$ac_configure_extra_args --silent"
12232fi
12233
12234_ACEOF
12235cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12236if \$ac_cs_recheck; then
12237  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12238  shift
12239  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12240  CONFIG_SHELL='$SHELL'
12241  export CONFIG_SHELL
12242  exec "\$@"
12243fi
12244
12245_ACEOF
12246cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12247exec 5>>config.log
12248{
12249  echo
12250  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12251## Running $as_me. ##
12252_ASBOX
12253  printf "%s\n" "$ac_log"
12254} >&5
12255
12256_ACEOF
12257cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12258#
12259# INIT-COMMANDS
12260#
12261AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12262
12263_ACEOF
12264
12265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12266
12267# Handling of arguments.
12268for ac_config_target in $ac_config_targets
12269do
12270  case $ac_config_target in
12271    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12272    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12273    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12274    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12275
12276  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12277  esac
12278done
12279
12280
12281# If the user did not use the arguments to specify the items to instantiate,
12282# then the envvar interface is used.  Set only those that are not.
12283# We use the long form for the default assignment because of an extremely
12284# bizarre bug on SunOS 4.1.3.
12285if $ac_need_defaults; then
12286  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12287  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12288  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12289fi
12290
12291# Have a temporary directory for convenience.  Make it in the build tree
12292# simply because there is no reason against having it here, and in addition,
12293# creating and moving files from /tmp can sometimes cause problems.
12294# Hook for its removal unless debugging.
12295# Note that there is a small window in which the directory will not be cleaned:
12296# after its creation but before its name has been assigned to '$tmp'.
12297$debug ||
12298{
12299  tmp= ac_tmp=
12300  trap 'exit_status=$?
12301  : "${ac_tmp:=$tmp}"
12302  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12303' 0
12304  trap 'as_fn_exit 1' 1 2 13 15
12305}
12306# Create a (secure) tmp directory for tmp files.
12307
12308{
12309  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12310  test -d "$tmp"
12311}  ||
12312{
12313  tmp=./conf$$-$RANDOM
12314  (umask 077 && mkdir "$tmp")
12315} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12316ac_tmp=$tmp
12317
12318# Set up the scripts for CONFIG_FILES section.
12319# No need to generate them if there are no CONFIG_FILES.
12320# This happens for instance with './config.status config.h'.
12321if test -n "$CONFIG_FILES"; then
12322
12323
12324ac_cr=`echo X | tr X '\015'`
12325# On cygwin, bash can eat \r inside `` if the user requested igncr.
12326# But we know of no other shell where ac_cr would be empty at this
12327# point, so we can use a bashism as a fallback.
12328if test "x$ac_cr" = x; then
12329  eval ac_cr=\$\'\\r\'
12330fi
12331ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12332if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12333  ac_cs_awk_cr='\\r'
12334else
12335  ac_cs_awk_cr=$ac_cr
12336fi
12337
12338echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12339_ACEOF
12340
12341
12342{
12343  echo "cat >conf$$subs.awk <<_ACEOF" &&
12344  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12345  echo "_ACEOF"
12346} >conf$$subs.sh ||
12347  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12348ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12349ac_delim='%!_!# '
12350for ac_last_try in false false false false false :; do
12351  . ./conf$$subs.sh ||
12352    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12353
12354  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12355  if test $ac_delim_n = $ac_delim_num; then
12356    break
12357  elif $ac_last_try; then
12358    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12359  else
12360    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12361  fi
12362done
12363rm -f conf$$subs.sh
12364
12365cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12366cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12367_ACEOF
12368sed -n '
12369h
12370s/^/S["/; s/!.*/"]=/
12371p
12372g
12373s/^[^!]*!//
12374:repl
12375t repl
12376s/'"$ac_delim"'$//
12377t delim
12378:nl
12379h
12380s/\(.\{148\}\)..*/\1/
12381t more1
12382s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12383p
12384n
12385b repl
12386:more1
12387s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12388p
12389g
12390s/.\{148\}//
12391t nl
12392:delim
12393h
12394s/\(.\{148\}\)..*/\1/
12395t more2
12396s/["\\]/\\&/g; s/^/"/; s/$/"/
12397p
12398b
12399:more2
12400s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12401p
12402g
12403s/.\{148\}//
12404t delim
12405' <conf$$subs.awk | sed '
12406/^[^""]/{
12407  N
12408  s/\n//
12409}
12410' >>$CONFIG_STATUS || ac_write_fail=1
12411rm -f conf$$subs.awk
12412cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12413_ACAWK
12414cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12415  for (key in S) S_is_set[key] = 1
12416  FS = ""
12417
12418}
12419{
12420  line = $ 0
12421  nfields = split(line, field, "@")
12422  substed = 0
12423  len = length(field[1])
12424  for (i = 2; i < nfields; i++) {
12425    key = field[i]
12426    keylen = length(key)
12427    if (S_is_set[key]) {
12428      value = S[key]
12429      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12430      len += length(value) + length(field[++i])
12431      substed = 1
12432    } else
12433      len += 1 + keylen
12434  }
12435
12436  print line
12437}
12438
12439_ACAWK
12440_ACEOF
12441cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12442if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12443  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12444else
12445  cat
12446fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12447  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12448_ACEOF
12449
12450# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12451# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12452# trailing colons and then remove the whole line if VPATH becomes empty
12453# (actually we leave an empty line to preserve line numbers).
12454if test "x$srcdir" = x.; then
12455  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12456h
12457s///
12458s/^/:/
12459s/[	 ]*$/:/
12460s/:\$(srcdir):/:/g
12461s/:\${srcdir}:/:/g
12462s/:@srcdir@:/:/g
12463s/^:*//
12464s/:*$//
12465x
12466s/\(=[	 ]*\).*/\1/
12467G
12468s/\n//
12469s/^[^=]*=[	 ]*$//
12470}'
12471fi
12472
12473cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12474fi # test -n "$CONFIG_FILES"
12475
12476# Set up the scripts for CONFIG_HEADERS section.
12477# No need to generate them if there are no CONFIG_HEADERS.
12478# This happens for instance with './config.status Makefile'.
12479if test -n "$CONFIG_HEADERS"; then
12480cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12481BEGIN {
12482_ACEOF
12483
12484# Transform confdefs.h into an awk script 'defines.awk', embedded as
12485# here-document in config.status, that substitutes the proper values into
12486# config.h.in to produce config.h.
12487
12488# Create a delimiter string that does not exist in confdefs.h, to ease
12489# handling of long lines.
12490ac_delim='%!_!# '
12491for ac_last_try in false false :; do
12492  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12493  if test -z "$ac_tt"; then
12494    break
12495  elif $ac_last_try; then
12496    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12497  else
12498    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12499  fi
12500done
12501
12502# For the awk script, D is an array of macro values keyed by name,
12503# likewise P contains macro parameters if any.  Preserve backslash
12504# newline sequences.
12505
12506ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12507sed -n '
12508s/.\{148\}/&'"$ac_delim"'/g
12509t rset
12510:rset
12511s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12512t def
12513d
12514:def
12515s/\\$//
12516t bsnl
12517s/["\\]/\\&/g
12518s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12519D["\1"]=" \3"/p
12520s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12521d
12522:bsnl
12523s/["\\]/\\&/g
12524s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12525D["\1"]=" \3\\\\\\n"\\/p
12526t cont
12527s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12528t cont
12529d
12530:cont
12531n
12532s/.\{148\}/&'"$ac_delim"'/g
12533t clear
12534:clear
12535s/\\$//
12536t bsnlc
12537s/["\\]/\\&/g; s/^/"/; s/$/"/p
12538d
12539:bsnlc
12540s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12541b cont
12542' <confdefs.h | sed '
12543s/'"$ac_delim"'/"\\\
12544"/g' >>$CONFIG_STATUS || ac_write_fail=1
12545
12546cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12547  for (key in D) D_is_set[key] = 1
12548  FS = ""
12549}
12550/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12551  line = \$ 0
12552  split(line, arg, " ")
12553  if (arg[1] == "#") {
12554    defundef = arg[2]
12555    mac1 = arg[3]
12556  } else {
12557    defundef = substr(arg[1], 2)
12558    mac1 = arg[2]
12559  }
12560  split(mac1, mac2, "(") #)
12561  macro = mac2[1]
12562  prefix = substr(line, 1, index(line, defundef) - 1)
12563  if (D_is_set[macro]) {
12564    # Preserve the white space surrounding the "#".
12565    print prefix "define", macro P[macro] D[macro]
12566    next
12567  } else {
12568    # Replace #undef with comments.  This is necessary, for example,
12569    # in the case of _POSIX_SOURCE, which is predefined and required
12570    # on some systems where configure will not decide to define it.
12571    if (defundef == "undef") {
12572      print "/*", prefix defundef, macro, "*/"
12573      next
12574    }
12575  }
12576}
12577{ print }
12578_ACAWK
12579_ACEOF
12580cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12581  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12582fi # test -n "$CONFIG_HEADERS"
12583
12584
12585eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12586shift
12587for ac_tag
12588do
12589  case $ac_tag in
12590  :[FHLC]) ac_mode=$ac_tag; continue;;
12591  esac
12592  case $ac_mode$ac_tag in
12593  :[FHL]*:*);;
12594  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
12595  :[FH]-) ac_tag=-:-;;
12596  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12597  esac
12598  ac_save_IFS=$IFS
12599  IFS=:
12600  set x $ac_tag
12601  IFS=$ac_save_IFS
12602  shift
12603  ac_file=$1
12604  shift
12605
12606  case $ac_mode in
12607  :L) ac_source=$1;;
12608  :[FH])
12609    ac_file_inputs=
12610    for ac_f
12611    do
12612      case $ac_f in
12613      -) ac_f="$ac_tmp/stdin";;
12614      *) # Look for the file first in the build tree, then in the source tree
12615	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12616	 # because $ac_f cannot contain ':'.
12617	 test -f "$ac_f" ||
12618	   case $ac_f in
12619	   [\\/$]*) false;;
12620	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12621	   esac ||
12622	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
12623      esac
12624      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12625      as_fn_append ac_file_inputs " '$ac_f'"
12626    done
12627
12628    # Let's still pretend it is 'configure' which instantiates (i.e., don't
12629    # use $as_me), people would be surprised to read:
12630    #    /* config.h.  Generated by config.status.  */
12631    configure_input='Generated from '`
12632	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12633	`' by configure.'
12634    if test x"$ac_file" != x-; then
12635      configure_input="$ac_file.  $configure_input"
12636      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12637printf "%s\n" "$as_me: creating $ac_file" >&6;}
12638    fi
12639    # Neutralize special characters interpreted by sed in replacement strings.
12640    case $configure_input in #(
12641    *\&* | *\|* | *\\* )
12642       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12643       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12644    *) ac_sed_conf_input=$configure_input;;
12645    esac
12646
12647    case $ac_tag in
12648    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12649      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12650    esac
12651    ;;
12652  esac
12653
12654  ac_dir=`$as_dirname -- "$ac_file" ||
12655$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12656	 X"$ac_file" : 'X\(//\)[^/]' \| \
12657	 X"$ac_file" : 'X\(//\)$' \| \
12658	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12659printf "%s\n" X"$ac_file" |
12660    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12661	    s//\1/
12662	    q
12663	  }
12664	  /^X\(\/\/\)[^/].*/{
12665	    s//\1/
12666	    q
12667	  }
12668	  /^X\(\/\/\)$/{
12669	    s//\1/
12670	    q
12671	  }
12672	  /^X\(\/\).*/{
12673	    s//\1/
12674	    q
12675	  }
12676	  s/.*/./; q'`
12677  as_dir="$ac_dir"; as_fn_mkdir_p
12678  ac_builddir=.
12679
12680case "$ac_dir" in
12681.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12682*)
12683  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12684  # A ".." for each directory in $ac_dir_suffix.
12685  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12686  case $ac_top_builddir_sub in
12687  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12688  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12689  esac ;;
12690esac
12691ac_abs_top_builddir=$ac_pwd
12692ac_abs_builddir=$ac_pwd$ac_dir_suffix
12693# for backward compatibility:
12694ac_top_builddir=$ac_top_build_prefix
12695
12696case $srcdir in
12697  .)  # We are building in place.
12698    ac_srcdir=.
12699    ac_top_srcdir=$ac_top_builddir_sub
12700    ac_abs_top_srcdir=$ac_pwd ;;
12701  [\\/]* | ?:[\\/]* )  # Absolute name.
12702    ac_srcdir=$srcdir$ac_dir_suffix;
12703    ac_top_srcdir=$srcdir
12704    ac_abs_top_srcdir=$srcdir ;;
12705  *) # Relative name.
12706    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12707    ac_top_srcdir=$ac_top_build_prefix$srcdir
12708    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12709esac
12710ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12711
12712
12713  case $ac_mode in
12714  :F)
12715  #
12716  # CONFIG_FILE
12717  #
12718
12719  case $INSTALL in
12720  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12721  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12722  esac
12723  ac_MKDIR_P=$MKDIR_P
12724  case $MKDIR_P in
12725  [\\/$]* | ?:[\\/]* ) ;;
12726  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12727  esac
12728_ACEOF
12729
12730cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12731# If the template does not know about datarootdir, expand it.
12732# FIXME: This hack should be removed a few years after 2.60.
12733ac_datarootdir_hack=; ac_datarootdir_seen=
12734ac_sed_dataroot='
12735/datarootdir/ {
12736  p
12737  q
12738}
12739/@datadir@/p
12740/@docdir@/p
12741/@infodir@/p
12742/@localedir@/p
12743/@mandir@/p'
12744case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12745*datarootdir*) ac_datarootdir_seen=yes;;
12746*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12747  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12748printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12749_ACEOF
12750cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12751  ac_datarootdir_hack='
12752  s&@datadir@&$datadir&g
12753  s&@docdir@&$docdir&g
12754  s&@infodir@&$infodir&g
12755  s&@localedir@&$localedir&g
12756  s&@mandir@&$mandir&g
12757  s&\\\${datarootdir}&$datarootdir&g' ;;
12758esac
12759_ACEOF
12760
12761# Neutralize VPATH when '$srcdir' = '.'.
12762# Shell code in configure.ac might set extrasub.
12763# FIXME: do we really want to maintain this feature?
12764cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12765ac_sed_extra="$ac_vpsub
12766$extrasub
12767_ACEOF
12768cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12769:t
12770/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12771s|@configure_input@|$ac_sed_conf_input|;t t
12772s&@top_builddir@&$ac_top_builddir_sub&;t t
12773s&@top_build_prefix@&$ac_top_build_prefix&;t t
12774s&@srcdir@&$ac_srcdir&;t t
12775s&@abs_srcdir@&$ac_abs_srcdir&;t t
12776s&@top_srcdir@&$ac_top_srcdir&;t t
12777s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12778s&@builddir@&$ac_builddir&;t t
12779s&@abs_builddir@&$ac_abs_builddir&;t t
12780s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12781s&@INSTALL@&$ac_INSTALL&;t t
12782s&@MKDIR_P@&$ac_MKDIR_P&;t t
12783$ac_datarootdir_hack
12784"
12785eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12786  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12787
12788test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12789  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12790  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12791      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12792  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12793which seems to be undefined.  Please make sure it is defined" >&5
12794printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12795which seems to be undefined.  Please make sure it is defined" >&2;}
12796
12797  rm -f "$ac_tmp/stdin"
12798  case $ac_file in
12799  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12800  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12801  esac \
12802  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12803 ;;
12804  :H)
12805  #
12806  # CONFIG_HEADER
12807  #
12808  if test x"$ac_file" != x-; then
12809    {
12810      printf "%s\n" "/* $configure_input  */" >&1 \
12811      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12812    } >"$ac_tmp/config.h" \
12813      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12814    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12815      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12816printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12817    else
12818      rm -f "$ac_file"
12819      mv "$ac_tmp/config.h" "$ac_file" \
12820	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12821    fi
12822  else
12823    printf "%s\n" "/* $configure_input  */" >&1 \
12824      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12825      || as_fn_error $? "could not create -" "$LINENO" 5
12826  fi
12827# Compute "$ac_file"'s index in $config_headers.
12828_am_arg="$ac_file"
12829_am_stamp_count=1
12830for _am_header in $config_headers :; do
12831  case $_am_header in
12832    $_am_arg | $_am_arg:* )
12833      break ;;
12834    * )
12835      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12836  esac
12837done
12838echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12839$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12840	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12841	 X"$_am_arg" : 'X\(//\)$' \| \
12842	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12843printf "%s\n" X"$_am_arg" |
12844    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12845	    s//\1/
12846	    q
12847	  }
12848	  /^X\(\/\/\)[^/].*/{
12849	    s//\1/
12850	    q
12851	  }
12852	  /^X\(\/\/\)$/{
12853	    s//\1/
12854	    q
12855	  }
12856	  /^X\(\/\).*/{
12857	    s//\1/
12858	    q
12859	  }
12860	  s/.*/./; q'`/stamp-h$_am_stamp_count
12861 ;;
12862
12863  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12864printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12865 ;;
12866  esac
12867
12868
12869  case $ac_file$ac_mode in
12870    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12871  # Older Autoconf quotes --file arguments for eval, but not when files
12872  # are listed without --file.  Let's play safe and only enable the eval
12873  # if we detect the quoting.
12874  # TODO: see whether this extra hack can be removed once we start
12875  # requiring Autoconf 2.70 or later.
12876  case $CONFIG_FILES in #(
12877  *\'*) :
12878    eval set x "$CONFIG_FILES" ;; #(
12879  *) :
12880    set x $CONFIG_FILES ;; #(
12881  *) :
12882     ;;
12883esac
12884  shift
12885  # Used to flag and report bootstrapping failures.
12886  am_rc=0
12887  for am_mf
12888  do
12889    # Strip MF so we end up with the name of the file.
12890    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12891    # Check whether this is an Automake generated Makefile which includes
12892    # dependency-tracking related rules and includes.
12893    # Grep'ing the whole file directly is not great: AIX grep has a line
12894    # limit of 2048, but all sed's we know have understand at least 4000.
12895    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12896      || continue
12897    am_dirpart=`$as_dirname -- "$am_mf" ||
12898$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12899	 X"$am_mf" : 'X\(//\)[^/]' \| \
12900	 X"$am_mf" : 'X\(//\)$' \| \
12901	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12902printf "%s\n" X"$am_mf" |
12903    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12904	    s//\1/
12905	    q
12906	  }
12907	  /^X\(\/\/\)[^/].*/{
12908	    s//\1/
12909	    q
12910	  }
12911	  /^X\(\/\/\)$/{
12912	    s//\1/
12913	    q
12914	  }
12915	  /^X\(\/\).*/{
12916	    s//\1/
12917	    q
12918	  }
12919	  s/.*/./; q'`
12920    am_filepart=`$as_basename -- "$am_mf" ||
12921$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12922	 X"$am_mf" : 'X\(//\)$' \| \
12923	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12924printf "%s\n" X/"$am_mf" |
12925    sed '/^.*\/\([^/][^/]*\)\/*$/{
12926	    s//\1/
12927	    q
12928	  }
12929	  /^X\/\(\/\/\)$/{
12930	    s//\1/
12931	    q
12932	  }
12933	  /^X\/\(\/\).*/{
12934	    s//\1/
12935	    q
12936	  }
12937	  s/.*/./; q'`
12938    { echo "$as_me:$LINENO: cd "$am_dirpart" \
12939      && sed -e '/# am--include-marker/d' "$am_filepart" \
12940        | $MAKE -f - am--depfiles" >&5
12941   (cd "$am_dirpart" \
12942      && sed -e '/# am--include-marker/d' "$am_filepart" \
12943        | $MAKE -f - am--depfiles) >&5 2>&5
12944   ac_status=$?
12945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946   (exit $ac_status); } || am_rc=$?
12947  done
12948  if test $am_rc -ne 0; then
12949    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12950printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12951as_fn_error $? "Something went wrong bootstrapping makefile fragments
12952    for automatic dependency tracking.  If GNU make was not used, consider
12953    re-running the configure script with MAKE=\"gmake\" (or whatever is
12954    necessary).  You can also try re-running configure with the
12955    '--disable-dependency-tracking' option to at least be able to build
12956    the package (albeit without support for automatic dependency tracking).
12957See 'config.log' for more details" "$LINENO" 5; }
12958  fi
12959  { am_dirpart=; unset am_dirpart;}
12960  { am_filepart=; unset am_filepart;}
12961  { am_mf=; unset am_mf;}
12962  { am_rc=; unset am_rc;}
12963  rm -f conftest-deps.mk
12964}
12965 ;;
12966
12967  esac
12968done # for ac_tag
12969
12970
12971as_fn_exit 0
12972_ACEOF
12973ac_clean_files=$ac_clean_files_save
12974
12975test $ac_write_fail = 0 ||
12976  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12977
12978
12979# configure is writing to config.log, and then calls config.status.
12980# config.status does its own redirection, appending to config.log.
12981# Unfortunately, on DOS this fails, as config.log is still kept open
12982# by configure, so config.status won't be able to write to it; its
12983# output is simply discarded.  So we exec the FD to /dev/null,
12984# effectively closing config.log, so it can be properly (re)opened and
12985# appended to by config.status.  When coming back to configure, we
12986# need to make the FD available again.
12987if test "$no_create" != yes; then
12988  ac_cs_success=:
12989  ac_config_status_args=
12990  test "$silent" = yes &&
12991    ac_config_status_args="$ac_config_status_args --quiet"
12992  exec 5>/dev/null
12993  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12994  exec 5>>config.log
12995  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12996  # would make configure fail if this is the last instruction.
12997  $ac_cs_success || as_fn_exit 1
12998fi
12999if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13000  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13001printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13002fi
13003
13004
13005