1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for xfontsel 1.1.1.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfontsel/-/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/xfontsel/-/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='xfontsel'
607PACKAGE_TARNAME='xfontsel'
608PACKAGE_VERSION='1.1.1'
609PACKAGE_STRING='xfontsel 1.1.1'
610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xfontsel/-/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
650USE_GETTEXT_FALSE
651USE_GETTEXT_TRUE
652LOCALEDIR
653appdefaultdir
654APPDEFS_LIBS
655APPDEFS_CFLAGS
656XFONTSEL_LIBS
657XFONTSEL_CFLAGS
658MAN_SUBSTS
659XORG_MAN_PAGE
660ADMIN_MAN_DIR
661DRIVER_MAN_DIR
662MISC_MAN_DIR
663FILE_MAN_DIR
664LIB_MAN_DIR
665APP_MAN_DIR
666ADMIN_MAN_SUFFIX
667DRIVER_MAN_SUFFIX
668MISC_MAN_SUFFIX
669FILE_MAN_SUFFIX
670LIB_MAN_SUFFIX
671APP_MAN_SUFFIX
672SED
673host_os
674host_vendor
675host_cpu
676host
677build_os
678build_vendor
679build_cpu
680build
681INSTALL_CMD
682PKG_CONFIG_LIBDIR
683PKG_CONFIG_PATH
684PKG_CONFIG
685CHANGELOG_CMD
686STRICT_CFLAGS
687CWARNFLAGS
688BASE_CFLAGS
689am__fastdepCC_FALSE
690am__fastdepCC_TRUE
691CCDEPMODE
692am__nodep
693AMDEPBACKSLASH
694AMDEP_FALSE
695AMDEP_TRUE
696am__include
697DEPDIR
698OBJEXT
699EXEEXT
700ac_ct_CC
701CPPFLAGS
702LDFLAGS
703CFLAGS
704CC
705AM_BACKSLASH
706AM_DEFAULT_VERBOSITY
707AM_DEFAULT_V
708AM_V
709CSCOPE
710ETAGS
711CTAGS
712am__untar
713am__tar
714AMTAR
715am__leading_dot
716SET_MAKE
717AWK
718mkdir_p
719MKDIR_P
720INSTALL_STRIP_PROGRAM
721STRIP
722install_sh
723MAKEINFO
724AUTOHEADER
725AUTOMAKE
726AUTOCONF
727ACLOCAL
728VERSION
729PACKAGE
730CYGPATH_W
731am__isrc
732INSTALL_DATA
733INSTALL_SCRIPT
734INSTALL_PROGRAM
735target_alias
736host_alias
737build_alias
738LIBS
739ECHO_T
740ECHO_N
741ECHO_C
742DEFS
743mandir
744localedir
745libdir
746psdir
747pdfdir
748dvidir
749htmldir
750infodir
751docdir
752oldincludedir
753includedir
754runstatedir
755localstatedir
756sharedstatedir
757sysconfdir
758datadir
759datarootdir
760libexecdir
761sbindir
762bindir
763program_transform_name
764prefix
765exec_prefix
766PACKAGE_URL
767PACKAGE_BUGREPORT
768PACKAGE_STRING
769PACKAGE_VERSION
770PACKAGE_TARNAME
771PACKAGE_NAME
772PATH_SEPARATOR
773SHELL
774am__quote'
775ac_subst_files=''
776ac_user_opts='
777enable_option_checking
778enable_silent_rules
779enable_dependency_tracking
780enable_selective_werror
781enable_strict_compilation
782with_appdefaultdir
783with_localedir
784'
785      ac_precious_vars='build_alias
786host_alias
787target_alias
788CC
789CFLAGS
790LDFLAGS
791LIBS
792CPPFLAGS
793PKG_CONFIG
794PKG_CONFIG_PATH
795PKG_CONFIG_LIBDIR
796XFONTSEL_CFLAGS
797XFONTSEL_LIBS
798APPDEFS_CFLAGS
799APPDEFS_LIBS'
800
801
802# Initialize some variables set by options.
803ac_init_help=
804ac_init_version=false
805ac_unrecognized_opts=
806ac_unrecognized_sep=
807# The variables have the same names as the options, with
808# dashes changed to underlines.
809cache_file=/dev/null
810exec_prefix=NONE
811no_create=
812no_recursion=
813prefix=NONE
814program_prefix=NONE
815program_suffix=NONE
816program_transform_name=s,x,x,
817silent=
818site=
819srcdir=
820verbose=
821x_includes=NONE
822x_libraries=NONE
823
824# Installation directory options.
825# These are left unexpanded so users can "make install exec_prefix=/foo"
826# and all the variables that are supposed to be based on exec_prefix
827# by default will actually change.
828# Use braces instead of parens because sh, perl, etc. also accept them.
829# (The list follows the same order as the GNU Coding Standards.)
830bindir='${exec_prefix}/bin'
831sbindir='${exec_prefix}/sbin'
832libexecdir='${exec_prefix}/libexec'
833datarootdir='${prefix}/share'
834datadir='${datarootdir}'
835sysconfdir='${prefix}/etc'
836sharedstatedir='${prefix}/com'
837localstatedir='${prefix}/var'
838runstatedir='${localstatedir}/run'
839includedir='${prefix}/include'
840oldincludedir='/usr/include'
841docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842infodir='${datarootdir}/info'
843htmldir='${docdir}'
844dvidir='${docdir}'
845pdfdir='${docdir}'
846psdir='${docdir}'
847libdir='${exec_prefix}/lib'
848localedir='${datarootdir}/locale'
849mandir='${datarootdir}/man'
850
851ac_prev=
852ac_dashdash=
853for ac_option
854do
855  # If the previous option needs an argument, assign it.
856  if test -n "$ac_prev"; then
857    eval $ac_prev=\$ac_option
858    ac_prev=
859    continue
860  fi
861
862  case $ac_option in
863  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864  *=)   ac_optarg= ;;
865  *)    ac_optarg=yes ;;
866  esac
867
868  case $ac_dashdash$ac_option in
869  --)
870    ac_dashdash=yes ;;
871
872  -bindir | --bindir | --bindi | --bind | --bin | --bi)
873    ac_prev=bindir ;;
874  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875    bindir=$ac_optarg ;;
876
877  -build | --build | --buil | --bui | --bu)
878    ac_prev=build_alias ;;
879  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880    build_alias=$ac_optarg ;;
881
882  -cache-file | --cache-file | --cache-fil | --cache-fi \
883  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884    ac_prev=cache_file ;;
885  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887    cache_file=$ac_optarg ;;
888
889  --config-cache | -C)
890    cache_file=config.cache ;;
891
892  -datadir | --datadir | --datadi | --datad)
893    ac_prev=datadir ;;
894  -datadir=* | --datadir=* | --datadi=* | --datad=*)
895    datadir=$ac_optarg ;;
896
897  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898  | --dataroo | --dataro | --datar)
899    ac_prev=datarootdir ;;
900  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902    datarootdir=$ac_optarg ;;
903
904  -disable-* | --disable-*)
905    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906    # Reject names that are not valid shell variable names.
907    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908      as_fn_error $? "invalid feature name: '$ac_useropt'"
909    ac_useropt_orig=$ac_useropt
910    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
911    case $ac_user_opts in
912      *"
913"enable_$ac_useropt"
914"*) ;;
915      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
916	 ac_unrecognized_sep=', ';;
917    esac
918    eval enable_$ac_useropt=no ;;
919
920  -docdir | --docdir | --docdi | --doc | --do)
921    ac_prev=docdir ;;
922  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
923    docdir=$ac_optarg ;;
924
925  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
926    ac_prev=dvidir ;;
927  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
928    dvidir=$ac_optarg ;;
929
930  -enable-* | --enable-*)
931    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
932    # Reject names that are not valid shell variable names.
933    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934      as_fn_error $? "invalid feature name: '$ac_useropt'"
935    ac_useropt_orig=$ac_useropt
936    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
937    case $ac_user_opts in
938      *"
939"enable_$ac_useropt"
940"*) ;;
941      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
942	 ac_unrecognized_sep=', ';;
943    esac
944    eval enable_$ac_useropt=\$ac_optarg ;;
945
946  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948  | --exec | --exe | --ex)
949    ac_prev=exec_prefix ;;
950  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952  | --exec=* | --exe=* | --ex=*)
953    exec_prefix=$ac_optarg ;;
954
955  -gas | --gas | --ga | --g)
956    # Obsolete; use --with-gas.
957    with_gas=yes ;;
958
959  -help | --help | --hel | --he | -h)
960    ac_init_help=long ;;
961  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962    ac_init_help=recursive ;;
963  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964    ac_init_help=short ;;
965
966  -host | --host | --hos | --ho)
967    ac_prev=host_alias ;;
968  -host=* | --host=* | --hos=* | --ho=*)
969    host_alias=$ac_optarg ;;
970
971  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972    ac_prev=htmldir ;;
973  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974  | --ht=*)
975    htmldir=$ac_optarg ;;
976
977  -includedir | --includedir | --includedi | --included | --include \
978  | --includ | --inclu | --incl | --inc)
979    ac_prev=includedir ;;
980  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981  | --includ=* | --inclu=* | --incl=* | --inc=*)
982    includedir=$ac_optarg ;;
983
984  -infodir | --infodir | --infodi | --infod | --info | --inf)
985    ac_prev=infodir ;;
986  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987    infodir=$ac_optarg ;;
988
989  -libdir | --libdir | --libdi | --libd)
990    ac_prev=libdir ;;
991  -libdir=* | --libdir=* | --libdi=* | --libd=*)
992    libdir=$ac_optarg ;;
993
994  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995  | --libexe | --libex | --libe)
996    ac_prev=libexecdir ;;
997  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998  | --libexe=* | --libex=* | --libe=*)
999    libexecdir=$ac_optarg ;;
1000
1001  -localedir | --localedir | --localedi | --localed | --locale)
1002    ac_prev=localedir ;;
1003  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004    localedir=$ac_optarg ;;
1005
1006  -localstatedir | --localstatedir | --localstatedi | --localstated \
1007  | --localstate | --localstat | --localsta | --localst | --locals)
1008    ac_prev=localstatedir ;;
1009  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011    localstatedir=$ac_optarg ;;
1012
1013  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014    ac_prev=mandir ;;
1015  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016    mandir=$ac_optarg ;;
1017
1018  -nfp | --nfp | --nf)
1019    # Obsolete; use --without-fp.
1020    with_fp=no ;;
1021
1022  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023  | --no-cr | --no-c | -n)
1024    no_create=yes ;;
1025
1026  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028    no_recursion=yes ;;
1029
1030  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032  | --oldin | --oldi | --old | --ol | --o)
1033    ac_prev=oldincludedir ;;
1034  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037    oldincludedir=$ac_optarg ;;
1038
1039  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040    ac_prev=prefix ;;
1041  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042    prefix=$ac_optarg ;;
1043
1044  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045  | --program-pre | --program-pr | --program-p)
1046    ac_prev=program_prefix ;;
1047  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049    program_prefix=$ac_optarg ;;
1050
1051  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052  | --program-suf | --program-su | --program-s)
1053    ac_prev=program_suffix ;;
1054  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056    program_suffix=$ac_optarg ;;
1057
1058  -program-transform-name | --program-transform-name \
1059  | --program-transform-nam | --program-transform-na \
1060  | --program-transform-n | --program-transform- \
1061  | --program-transform | --program-transfor \
1062  | --program-transfo | --program-transf \
1063  | --program-trans | --program-tran \
1064  | --progr-tra | --program-tr | --program-t)
1065    ac_prev=program_transform_name ;;
1066  -program-transform-name=* | --program-transform-name=* \
1067  | --program-transform-nam=* | --program-transform-na=* \
1068  | --program-transform-n=* | --program-transform-=* \
1069  | --program-transform=* | --program-transfor=* \
1070  | --program-transfo=* | --program-transf=* \
1071  | --program-trans=* | --program-tran=* \
1072  | --progr-tra=* | --program-tr=* | --program-t=*)
1073    program_transform_name=$ac_optarg ;;
1074
1075  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076    ac_prev=pdfdir ;;
1077  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078    pdfdir=$ac_optarg ;;
1079
1080  -psdir | --psdir | --psdi | --psd | --ps)
1081    ac_prev=psdir ;;
1082  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083    psdir=$ac_optarg ;;
1084
1085  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086  | -silent | --silent | --silen | --sile | --sil)
1087    silent=yes ;;
1088
1089  -runstatedir | --runstatedir | --runstatedi | --runstated \
1090  | --runstate | --runstat | --runsta | --runst | --runs \
1091  | --run | --ru | --r)
1092    ac_prev=runstatedir ;;
1093  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1094  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1095  | --run=* | --ru=* | --r=*)
1096    runstatedir=$ac_optarg ;;
1097
1098  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099    ac_prev=sbindir ;;
1100  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101  | --sbi=* | --sb=*)
1102    sbindir=$ac_optarg ;;
1103
1104  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106  | --sharedst | --shareds | --shared | --share | --shar \
1107  | --sha | --sh)
1108    ac_prev=sharedstatedir ;;
1109  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112  | --sha=* | --sh=*)
1113    sharedstatedir=$ac_optarg ;;
1114
1115  -site | --site | --sit)
1116    ac_prev=site ;;
1117  -site=* | --site=* | --sit=*)
1118    site=$ac_optarg ;;
1119
1120  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121    ac_prev=srcdir ;;
1122  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123    srcdir=$ac_optarg ;;
1124
1125  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126  | --syscon | --sysco | --sysc | --sys | --sy)
1127    ac_prev=sysconfdir ;;
1128  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130    sysconfdir=$ac_optarg ;;
1131
1132  -target | --target | --targe | --targ | --tar | --ta | --t)
1133    ac_prev=target_alias ;;
1134  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135    target_alias=$ac_optarg ;;
1136
1137  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138    verbose=yes ;;
1139
1140  -version | --version | --versio | --versi | --vers | -V)
1141    ac_init_version=: ;;
1142
1143  -with-* | --with-*)
1144    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145    # Reject names that are not valid shell variable names.
1146    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147      as_fn_error $? "invalid package name: '$ac_useropt'"
1148    ac_useropt_orig=$ac_useropt
1149    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1150    case $ac_user_opts in
1151      *"
1152"with_$ac_useropt"
1153"*) ;;
1154      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155	 ac_unrecognized_sep=', ';;
1156    esac
1157    eval with_$ac_useropt=\$ac_optarg ;;
1158
1159  -without-* | --without-*)
1160    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161    # Reject names that are not valid shell variable names.
1162    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163      as_fn_error $? "invalid package name: '$ac_useropt'"
1164    ac_useropt_orig=$ac_useropt
1165    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1166    case $ac_user_opts in
1167      *"
1168"with_$ac_useropt"
1169"*) ;;
1170      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171	 ac_unrecognized_sep=', ';;
1172    esac
1173    eval with_$ac_useropt=no ;;
1174
1175  --x)
1176    # Obsolete; use --with-x.
1177    with_x=yes ;;
1178
1179  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180  | --x-incl | --x-inc | --x-in | --x-i)
1181    ac_prev=x_includes ;;
1182  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1184    x_includes=$ac_optarg ;;
1185
1186  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188    ac_prev=x_libraries ;;
1189  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1191    x_libraries=$ac_optarg ;;
1192
1193  -*) as_fn_error $? "unrecognized option: '$ac_option'
1194Try '$0 --help' for more information"
1195    ;;
1196
1197  *=*)
1198    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199    # Reject names that are not valid shell variable names.
1200    case $ac_envvar in #(
1201      '' | [0-9]* | *[!_$as_cr_alnum]* )
1202      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1203    esac
1204    eval $ac_envvar=\$ac_optarg
1205    export $ac_envvar ;;
1206
1207  *)
1208    # FIXME: should be removed in autoconf 3.0.
1209    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1210    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1212    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1213    ;;
1214
1215  esac
1216done
1217
1218if test -n "$ac_prev"; then
1219  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1220  as_fn_error $? "missing argument to $ac_option"
1221fi
1222
1223if test -n "$ac_unrecognized_opts"; then
1224  case $enable_option_checking in
1225    no) ;;
1226    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1227    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1228  esac
1229fi
1230
1231# Check all directory arguments for consistency.
1232for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233		datadir sysconfdir sharedstatedir localstatedir includedir \
1234		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235		libdir localedir mandir runstatedir
1236do
1237  eval ac_val=\$$ac_var
1238  # Remove trailing slashes.
1239  case $ac_val in
1240    */ )
1241      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242      eval $ac_var=\$ac_val;;
1243  esac
1244  # Be sure to have absolute directory names.
1245  case $ac_val in
1246    [\\/$]* | ?:[\\/]* )  continue;;
1247    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248  esac
1249  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1250done
1251
1252# There might be people who depend on the old broken behavior: '$host'
1253# used to hold the argument of --host etc.
1254# FIXME: To remove some day.
1255build=$build_alias
1256host=$host_alias
1257target=$target_alias
1258
1259# FIXME: To remove some day.
1260if test "x$host_alias" != x; then
1261  if test "x$build_alias" = x; then
1262    cross_compiling=maybe
1263  elif test "x$build_alias" != "x$host_alias"; then
1264    cross_compiling=yes
1265  fi
1266fi
1267
1268ac_tool_prefix=
1269test -n "$host_alias" && ac_tool_prefix=$host_alias-
1270
1271test "$silent" = yes && exec 6>/dev/null
1272
1273
1274ac_pwd=`pwd` && test -n "$ac_pwd" &&
1275ac_ls_di=`ls -di .` &&
1276ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1277  as_fn_error $? "working directory cannot be determined"
1278test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1279  as_fn_error $? "pwd does not report name of working directory"
1280
1281
1282# Find the source files, if location was not specified.
1283if test -z "$srcdir"; then
1284  ac_srcdir_defaulted=yes
1285  # Try the directory containing this script, then the parent directory.
1286  ac_confdir=`$as_dirname -- "$as_myself" ||
1287$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1288	 X"$as_myself" : 'X\(//\)[^/]' \| \
1289	 X"$as_myself" : 'X\(//\)$' \| \
1290	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1291printf "%s\n" X"$as_myself" |
1292    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1293	    s//\1/
1294	    q
1295	  }
1296	  /^X\(\/\/\)[^/].*/{
1297	    s//\1/
1298	    q
1299	  }
1300	  /^X\(\/\/\)$/{
1301	    s//\1/
1302	    q
1303	  }
1304	  /^X\(\/\).*/{
1305	    s//\1/
1306	    q
1307	  }
1308	  s/.*/./; q'`
1309  srcdir=$ac_confdir
1310  if test ! -r "$srcdir/$ac_unique_file"; then
1311    srcdir=..
1312  fi
1313else
1314  ac_srcdir_defaulted=no
1315fi
1316if test ! -r "$srcdir/$ac_unique_file"; then
1317  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1318  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1319fi
1320ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1321ac_abs_confdir=`(
1322	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1323	pwd)`
1324# When building in place, set srcdir=.
1325if test "$ac_abs_confdir" = "$ac_pwd"; then
1326  srcdir=.
1327fi
1328# Remove unnecessary trailing slashes from srcdir.
1329# Double slashes in file names in object file debugging info
1330# mess up M-x gdb in Emacs.
1331case $srcdir in
1332*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1333esac
1334for ac_var in $ac_precious_vars; do
1335  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1336  eval ac_env_${ac_var}_value=\$${ac_var}
1337  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1338  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1339done
1340
1341#
1342# Report the --help message.
1343#
1344if test "$ac_init_help" = "long"; then
1345  # Omit some internal or obsolete options to make the list less imposing.
1346  # This message is too long to be a string in the A/UX 3.1 sh.
1347  cat <<_ACEOF
1348'configure' configures xfontsel 1.1.1 to adapt to many kinds of systems.
1349
1350Usage: $0 [OPTION]... [VAR=VALUE]...
1351
1352To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353VAR=VALUE.  See below for descriptions of some of the useful variables.
1354
1355Defaults for the options are specified in brackets.
1356
1357Configuration:
1358  -h, --help              display this help and exit
1359      --help=short        display options specific to this package
1360      --help=recursive    display the short help of all the included packages
1361  -V, --version           display version information and exit
1362  -q, --quiet, --silent   do not print 'checking ...' messages
1363      --cache-file=FILE   cache test results in FILE [disabled]
1364  -C, --config-cache      alias for '--cache-file=config.cache'
1365  -n, --no-create         do not create output files
1366      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1367
1368Installation directories:
1369  --prefix=PREFIX         install architecture-independent files in PREFIX
1370                          [$ac_default_prefix]
1371  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1372                          [PREFIX]
1373
1374By default, 'make install' will install all the files in
1375'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1376an installation prefix other than '$ac_default_prefix' using '--prefix',
1377for instance '--prefix=\$HOME'.
1378
1379For better control, use the options below.
1380
1381Fine tuning of the installation directories:
1382  --bindir=DIR            user executables [EPREFIX/bin]
1383  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1384  --libexecdir=DIR        program executables [EPREFIX/libexec]
1385  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1386  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1387  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1388  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1389  --libdir=DIR            object code libraries [EPREFIX/lib]
1390  --includedir=DIR        C header files [PREFIX/include]
1391  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1392  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1393  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1394  --infodir=DIR           info documentation [DATAROOTDIR/info]
1395  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1396  --mandir=DIR            man documentation [DATAROOTDIR/man]
1397  --docdir=DIR            documentation root [DATAROOTDIR/doc/xfontsel]
1398  --htmldir=DIR           html documentation [DOCDIR]
1399  --dvidir=DIR            dvi documentation [DOCDIR]
1400  --pdfdir=DIR            pdf documentation [DOCDIR]
1401  --psdir=DIR             ps documentation [DOCDIR]
1402_ACEOF
1403
1404  cat <<\_ACEOF
1405
1406Program names:
1407  --program-prefix=PREFIX            prepend PREFIX to installed program names
1408  --program-suffix=SUFFIX            append SUFFIX to installed program names
1409  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1410
1411System types:
1412  --build=BUILD     configure for building on BUILD [guessed]
1413  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1414_ACEOF
1415fi
1416
1417if test -n "$ac_init_help"; then
1418  case $ac_init_help in
1419     short | recursive ) echo "Configuration of xfontsel 1.1.1:";;
1420   esac
1421  cat <<\_ACEOF
1422
1423Optional Features:
1424  --disable-option-checking  ignore unrecognized --enable/--with options
1425  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1426  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1427  --enable-silent-rules   less verbose build output (undo: "make V=1")
1428  --disable-silent-rules  verbose build output (undo: "make V=0")
1429  --enable-dependency-tracking
1430                          do not reject slow dependency extractors
1431  --disable-dependency-tracking
1432                          speeds up one-time build
1433  --disable-selective-werror
1434                          Turn off selective compiler errors. (default:
1435                          enabled)
1436  --enable-strict-compilation
1437                          Enable all warnings from compiler and make them
1438                          errors (default: disabled)
1439
1440Optional Packages:
1441  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1442  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1443  --with-appdefaultdir=<pathname>
1444                          specify directory for app-defaults files (default is
1445                          autodetected)
1446  --with-localedir=<path> Path to install message files in (default:
1447                          datadir/locale)
1448
1449Some influential environment variables:
1450  CC          C compiler command
1451  CFLAGS      C compiler flags
1452  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1453              nonstandard directory <lib dir>
1454  LIBS        libraries to pass to the linker, e.g. -l<library>
1455  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1456              you have headers in a nonstandard directory <include dir>
1457  PKG_CONFIG  path to pkg-config utility
1458  PKG_CONFIG_PATH
1459              directories to add to pkg-config's search path
1460  PKG_CONFIG_LIBDIR
1461              path overriding pkg-config's built-in search path
1462  XFONTSEL_CFLAGS
1463              C compiler flags for XFONTSEL, overriding pkg-config
1464  XFONTSEL_LIBS
1465              linker flags for XFONTSEL, overriding pkg-config
1466  APPDEFS_CFLAGS
1467              C compiler flags for APPDEFS, overriding pkg-config
1468  APPDEFS_LIBS
1469              linker flags for APPDEFS, overriding pkg-config
1470
1471Use these variables to override the choices made by 'configure' or to help
1472it to find libraries and programs with nonstandard names/locations.
1473
1474Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfontsel/-/issues>.
1475_ACEOF
1476ac_status=$?
1477fi
1478
1479if test "$ac_init_help" = "recursive"; then
1480  # If there are subdirs, report their specific --help.
1481  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1482    test -d "$ac_dir" ||
1483      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1484      continue
1485    ac_builddir=.
1486
1487case "$ac_dir" in
1488.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489*)
1490  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1491  # A ".." for each directory in $ac_dir_suffix.
1492  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1493  case $ac_top_builddir_sub in
1494  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496  esac ;;
1497esac
1498ac_abs_top_builddir=$ac_pwd
1499ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500# for backward compatibility:
1501ac_top_builddir=$ac_top_build_prefix
1502
1503case $srcdir in
1504  .)  # We are building in place.
1505    ac_srcdir=.
1506    ac_top_srcdir=$ac_top_builddir_sub
1507    ac_abs_top_srcdir=$ac_pwd ;;
1508  [\\/]* | ?:[\\/]* )  # Absolute name.
1509    ac_srcdir=$srcdir$ac_dir_suffix;
1510    ac_top_srcdir=$srcdir
1511    ac_abs_top_srcdir=$srcdir ;;
1512  *) # Relative name.
1513    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514    ac_top_srcdir=$ac_top_build_prefix$srcdir
1515    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516esac
1517ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518
1519    cd "$ac_dir" || { ac_status=$?; continue; }
1520    # Check for configure.gnu first; this name is used for a wrapper for
1521    # Metaconfig's "Configure" on case-insensitive file systems.
1522    if test -f "$ac_srcdir/configure.gnu"; then
1523      echo &&
1524      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525    elif test -f "$ac_srcdir/configure"; then
1526      echo &&
1527      $SHELL "$ac_srcdir/configure" --help=recursive
1528    else
1529      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530    fi || ac_status=$?
1531    cd "$ac_pwd" || { ac_status=$?; break; }
1532  done
1533fi
1534
1535test -n "$ac_init_help" && exit $ac_status
1536if $ac_init_version; then
1537  cat <<\_ACEOF
1538xfontsel configure 1.1.1
1539generated by GNU Autoconf 2.72
1540
1541Copyright (C) 2023 Free Software Foundation, Inc.
1542This configure script is free software; the Free Software Foundation
1543gives unlimited permission to copy, distribute and modify it.
1544_ACEOF
1545  exit
1546fi
1547
1548## ------------------------ ##
1549## Autoconf initialization. ##
1550## ------------------------ ##
1551
1552# ac_fn_c_try_compile LINENO
1553# --------------------------
1554# Try to compile conftest.$ac_ext, and return whether this succeeded.
1555ac_fn_c_try_compile ()
1556{
1557  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558  rm -f conftest.$ac_objext conftest.beam
1559  if { { ac_try="$ac_compile"
1560case "(($ac_try" in
1561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562  *) ac_try_echo=$ac_try;;
1563esac
1564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565printf "%s\n" "$ac_try_echo"; } >&5
1566  (eval "$ac_compile") 2>conftest.err
1567  ac_status=$?
1568  if test -s conftest.err; then
1569    grep -v '^ *+' conftest.err >conftest.er1
1570    cat conftest.er1 >&5
1571    mv -f conftest.er1 conftest.err
1572  fi
1573  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574  test $ac_status = 0; } && {
1575	 test -z "$ac_c_werror_flag" ||
1576	 test ! -s conftest.err
1577       } && test -s conftest.$ac_objext
1578then :
1579  ac_retval=0
1580else case e in #(
1581  e) printf "%s\n" "$as_me: failed program was:" >&5
1582sed 's/^/| /' conftest.$ac_ext >&5
1583
1584	ac_retval=1 ;;
1585esac
1586fi
1587  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588  as_fn_set_status $ac_retval
1589
1590} # ac_fn_c_try_compile
1591
1592# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1593# ------------------------------------------------------------------
1594# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1595# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1596ac_fn_check_decl ()
1597{
1598  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599  as_decl_name=`echo $2|sed 's/ *(.*//'`
1600  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1601printf %s "checking whether $as_decl_name is declared... " >&6; }
1602if eval test \${$3+y}
1603then :
1604  printf %s "(cached) " >&6
1605else case e in #(
1606  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1607  eval ac_save_FLAGS=\$$6
1608  as_fn_append $6 " $5"
1609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1610/* end confdefs.h.  */
1611$4
1612int
1613main (void)
1614{
1615#ifndef $as_decl_name
1616#ifdef __cplusplus
1617  (void) $as_decl_use;
1618#else
1619  (void) $as_decl_name;
1620#endif
1621#endif
1622
1623  ;
1624  return 0;
1625}
1626_ACEOF
1627if ac_fn_c_try_compile "$LINENO"
1628then :
1629  eval "$3=yes"
1630else case e in #(
1631  e) eval "$3=no" ;;
1632esac
1633fi
1634rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1635  eval $6=\$ac_save_FLAGS
1636 ;;
1637esac
1638fi
1639eval ac_res=\$$3
1640	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1641printf "%s\n" "$ac_res" >&6; }
1642  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643
1644} # ac_fn_check_decl
1645
1646# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1647# -------------------------------------------------------
1648# Tests whether HEADER exists and can be compiled using the include files in
1649# INCLUDES, setting the cache variable VAR accordingly.
1650ac_fn_c_check_header_compile ()
1651{
1652  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1654printf %s "checking for $2... " >&6; }
1655if eval test \${$3+y}
1656then :
1657  printf %s "(cached) " >&6
1658else case e in #(
1659  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1660/* end confdefs.h.  */
1661$4
1662#include <$2>
1663_ACEOF
1664if ac_fn_c_try_compile "$LINENO"
1665then :
1666  eval "$3=yes"
1667else case e in #(
1668  e) eval "$3=no" ;;
1669esac
1670fi
1671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1672esac
1673fi
1674eval ac_res=\$$3
1675	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1676printf "%s\n" "$ac_res" >&6; }
1677  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678
1679} # ac_fn_c_check_header_compile
1680
1681# ac_fn_c_try_link LINENO
1682# -----------------------
1683# Try to link conftest.$ac_ext, and return whether this succeeded.
1684ac_fn_c_try_link ()
1685{
1686  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1688  if { { ac_try="$ac_link"
1689case "(($ac_try" in
1690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691  *) ac_try_echo=$ac_try;;
1692esac
1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694printf "%s\n" "$ac_try_echo"; } >&5
1695  (eval "$ac_link") 2>conftest.err
1696  ac_status=$?
1697  if test -s conftest.err; then
1698    grep -v '^ *+' conftest.err >conftest.er1
1699    cat conftest.er1 >&5
1700    mv -f conftest.er1 conftest.err
1701  fi
1702  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703  test $ac_status = 0; } && {
1704	 test -z "$ac_c_werror_flag" ||
1705	 test ! -s conftest.err
1706       } && test -s conftest$ac_exeext && {
1707	 test "$cross_compiling" = yes ||
1708	 test -x conftest$ac_exeext
1709       }
1710then :
1711  ac_retval=0
1712else case e in #(
1713  e) printf "%s\n" "$as_me: failed program was:" >&5
1714sed 's/^/| /' conftest.$ac_ext >&5
1715
1716	ac_retval=1 ;;
1717esac
1718fi
1719  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1720  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1721  # interfere with the next link command; also delete a directory that is
1722  # left behind by Apple's compiler.  We do this before executing the actions.
1723  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1724  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725  as_fn_set_status $ac_retval
1726
1727} # ac_fn_c_try_link
1728ac_configure_args_raw=
1729for ac_arg
1730do
1731  case $ac_arg in
1732  *\'*)
1733    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1734  esac
1735  as_fn_append ac_configure_args_raw " '$ac_arg'"
1736done
1737
1738case $ac_configure_args_raw in
1739  *$as_nl*)
1740    ac_safe_unquote= ;;
1741  *)
1742    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1743    ac_unsafe_a="$ac_unsafe_z#~"
1744    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1745    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1746esac
1747
1748cat >config.log <<_ACEOF
1749This file contains any messages produced by compilers while
1750running configure, to aid debugging if configure makes a mistake.
1751
1752It was created by xfontsel $as_me 1.1.1, which was
1753generated by GNU Autoconf 2.72.  Invocation command line was
1754
1755  $ $0$ac_configure_args_raw
1756
1757_ACEOF
1758exec 5>>config.log
1759{
1760cat <<_ASUNAME
1761## --------- ##
1762## Platform. ##
1763## --------- ##
1764
1765hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1766uname -m = `(uname -m) 2>/dev/null || echo unknown`
1767uname -r = `(uname -r) 2>/dev/null || echo unknown`
1768uname -s = `(uname -s) 2>/dev/null || echo unknown`
1769uname -v = `(uname -v) 2>/dev/null || echo unknown`
1770
1771/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1772/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1773
1774/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1775/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1776/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1777/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1778/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1779/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1780/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1781
1782_ASUNAME
1783
1784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1785for as_dir in $PATH
1786do
1787  IFS=$as_save_IFS
1788  case $as_dir in #(((
1789    '') as_dir=./ ;;
1790    */) ;;
1791    *) as_dir=$as_dir/ ;;
1792  esac
1793    printf "%s\n" "PATH: $as_dir"
1794  done
1795IFS=$as_save_IFS
1796
1797} >&5
1798
1799cat >&5 <<_ACEOF
1800
1801
1802## ----------- ##
1803## Core tests. ##
1804## ----------- ##
1805
1806_ACEOF
1807
1808
1809# Keep a trace of the command line.
1810# Strip out --no-create and --no-recursion so they do not pile up.
1811# Strip out --silent because we don't want to record it for future runs.
1812# Also quote any args containing shell meta-characters.
1813# Make two passes to allow for proper duplicate-argument suppression.
1814ac_configure_args=
1815ac_configure_args0=
1816ac_configure_args1=
1817ac_must_keep_next=false
1818for ac_pass in 1 2
1819do
1820  for ac_arg
1821  do
1822    case $ac_arg in
1823    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1824    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1825    | -silent | --silent | --silen | --sile | --sil)
1826      continue ;;
1827    *\'*)
1828      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1829    esac
1830    case $ac_pass in
1831    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1832    2)
1833      as_fn_append ac_configure_args1 " '$ac_arg'"
1834      if test $ac_must_keep_next = true; then
1835	ac_must_keep_next=false # Got value, back to normal.
1836      else
1837	case $ac_arg in
1838	  *=* | --config-cache | -C | -disable-* | --disable-* \
1839	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1840	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1841	  | -with-* | --with-* | -without-* | --without-* | --x)
1842	    case "$ac_configure_args0 " in
1843	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1844	    esac
1845	    ;;
1846	  -* ) ac_must_keep_next=true ;;
1847	esac
1848      fi
1849      as_fn_append ac_configure_args " '$ac_arg'"
1850      ;;
1851    esac
1852  done
1853done
1854{ ac_configure_args0=; unset ac_configure_args0;}
1855{ ac_configure_args1=; unset ac_configure_args1;}
1856
1857# When interrupted or exit'd, cleanup temporary files, and complete
1858# config.log.  We remove comments because anyway the quotes in there
1859# would cause problems or look ugly.
1860# WARNING: Use '\'' to represent an apostrophe within the trap.
1861# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1862trap 'exit_status=$?
1863  # Sanitize IFS.
1864  IFS=" ""	$as_nl"
1865  # Save into config.log some information that might help in debugging.
1866  {
1867    echo
1868
1869    printf "%s\n" "## ---------------- ##
1870## Cache variables. ##
1871## ---------------- ##"
1872    echo
1873    # The following way of writing the cache mishandles newlines in values,
1874(
1875  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1876    eval ac_val=\$$ac_var
1877    case $ac_val in #(
1878    *${as_nl}*)
1879      case $ac_var in #(
1880      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1881printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1882      esac
1883      case $ac_var in #(
1884      _ | IFS | as_nl) ;; #(
1885      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1886      *) { eval $ac_var=; unset $ac_var;} ;;
1887      esac ;;
1888    esac
1889  done
1890  (set) 2>&1 |
1891    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1892    *${as_nl}ac_space=\ *)
1893      sed -n \
1894	"s/'\''/'\''\\\\'\'''\''/g;
1895	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1896      ;; #(
1897    *)
1898      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1899      ;;
1900    esac |
1901    sort
1902)
1903    echo
1904
1905    printf "%s\n" "## ----------------- ##
1906## Output variables. ##
1907## ----------------- ##"
1908    echo
1909    for ac_var in $ac_subst_vars
1910    do
1911      eval ac_val=\$$ac_var
1912      case $ac_val in
1913      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1914      esac
1915      printf "%s\n" "$ac_var='\''$ac_val'\''"
1916    done | sort
1917    echo
1918
1919    if test -n "$ac_subst_files"; then
1920      printf "%s\n" "## ------------------- ##
1921## File substitutions. ##
1922## ------------------- ##"
1923      echo
1924      for ac_var in $ac_subst_files
1925      do
1926	eval ac_val=\$$ac_var
1927	case $ac_val in
1928	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1929	esac
1930	printf "%s\n" "$ac_var='\''$ac_val'\''"
1931      done | sort
1932      echo
1933    fi
1934
1935    if test -s confdefs.h; then
1936      printf "%s\n" "## ----------- ##
1937## confdefs.h. ##
1938## ----------- ##"
1939      echo
1940      cat confdefs.h
1941      echo
1942    fi
1943    test "$ac_signal" != 0 &&
1944      printf "%s\n" "$as_me: caught signal $ac_signal"
1945    printf "%s\n" "$as_me: exit $exit_status"
1946  } >&5
1947  rm -f core *.core core.conftest.* &&
1948    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1949    exit $exit_status
1950' 0
1951for ac_signal in 1 2 13 15; do
1952  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1953done
1954ac_signal=0
1955
1956# confdefs.h avoids OS command line length limits that DEFS can exceed.
1957rm -f -r conftest* confdefs.h
1958
1959printf "%s\n" "/* confdefs.h */" > confdefs.h
1960
1961# Predefined preprocessor variables.
1962
1963printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1964
1965printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1966
1967printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1968
1969printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1970
1971printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1972
1973printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1974
1975
1976# Let the site file select an alternate cache file if it wants to.
1977# Prefer an explicitly selected file to automatically selected ones.
1978if test -n "$CONFIG_SITE"; then
1979  ac_site_files="$CONFIG_SITE"
1980elif test "x$prefix" != xNONE; then
1981  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1982else
1983  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1984fi
1985
1986for ac_site_file in $ac_site_files
1987do
1988  case $ac_site_file in #(
1989  */*) :
1990     ;; #(
1991  *) :
1992    ac_site_file=./$ac_site_file ;;
1993esac
1994  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1995    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1996printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1997    sed 's/^/| /' "$ac_site_file" >&5
1998    . "$ac_site_file" \
1999      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2000printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2001as_fn_error $? "failed to load site script $ac_site_file
2002See 'config.log' for more details" "$LINENO" 5; }
2003  fi
2004done
2005
2006if test -r "$cache_file"; then
2007  # Some versions of bash will fail to source /dev/null (special files
2008  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2009  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2010    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2011printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2012    case $cache_file in
2013      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2014      *)                      . "./$cache_file";;
2015    esac
2016  fi
2017else
2018  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2019printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2020  >$cache_file
2021fi
2022
2023# Test code for whether the C compiler supports C89 (global declarations)
2024ac_c_conftest_c89_globals='
2025/* Does the compiler advertise C89 conformance?
2026   Do not test the value of __STDC__, because some compilers set it to 0
2027   while being otherwise adequately conformant. */
2028#if !defined __STDC__
2029# error "Compiler does not advertise C89 conformance"
2030#endif
2031
2032#include <stddef.h>
2033#include <stdarg.h>
2034struct stat;
2035/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2036struct buf { int x; };
2037struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2038static char *e (char **p, int i)
2039{
2040  return p[i];
2041}
2042static char *f (char * (*g) (char **, int), char **p, ...)
2043{
2044  char *s;
2045  va_list v;
2046  va_start (v,p);
2047  s = g (p, va_arg (v,int));
2048  va_end (v);
2049  return s;
2050}
2051
2052/* C89 style stringification. */
2053#define noexpand_stringify(a) #a
2054const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2055
2056/* C89 style token pasting.  Exercises some of the corner cases that
2057   e.g. old MSVC gets wrong, but not very hard. */
2058#define noexpand_concat(a,b) a##b
2059#define expand_concat(a,b) noexpand_concat(a,b)
2060extern int vA;
2061extern int vbee;
2062#define aye A
2063#define bee B
2064int *pvA = &expand_concat(v,aye);
2065int *pvbee = &noexpand_concat(v,bee);
2066
2067/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2068   function prototypes and stuff, but not \xHH hex character constants.
2069   These do not provoke an error unfortunately, instead are silently treated
2070   as an "x".  The following induces an error, until -std is added to get
2071   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2072   array size at least.  It is necessary to write \x00 == 0 to get something
2073   that is true only with -std.  */
2074int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2075
2076/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2077   inside strings and character constants.  */
2078#define FOO(x) '\''x'\''
2079int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2080
2081int test (int i, double x);
2082struct s1 {int (*f) (int a);};
2083struct s2 {int (*f) (double a);};
2084int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2085               int, int);'
2086
2087# Test code for whether the C compiler supports C89 (body of main).
2088ac_c_conftest_c89_main='
2089ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2090'
2091
2092# Test code for whether the C compiler supports C99 (global declarations)
2093ac_c_conftest_c99_globals='
2094/* Does the compiler advertise C99 conformance? */
2095#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2096# error "Compiler does not advertise C99 conformance"
2097#endif
2098
2099// See if C++-style comments work.
2100
2101#include <stdbool.h>
2102extern int puts (const char *);
2103extern int printf (const char *, ...);
2104extern int dprintf (int, const char *, ...);
2105extern void *malloc (size_t);
2106extern void free (void *);
2107
2108// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2109// dprintf is used instead of fprintf to avoid needing to declare
2110// FILE and stderr.
2111#define debug(...) dprintf (2, __VA_ARGS__)
2112#define showlist(...) puts (#__VA_ARGS__)
2113#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2114static void
2115test_varargs_macros (void)
2116{
2117  int x = 1234;
2118  int y = 5678;
2119  debug ("Flag");
2120  debug ("X = %d\n", x);
2121  showlist (The first, second, and third items.);
2122  report (x>y, "x is %d but y is %d", x, y);
2123}
2124
2125// Check long long types.
2126#define BIG64 18446744073709551615ull
2127#define BIG32 4294967295ul
2128#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2129#if !BIG_OK
2130  #error "your preprocessor is broken"
2131#endif
2132#if BIG_OK
2133#else
2134  #error "your preprocessor is broken"
2135#endif
2136static long long int bignum = -9223372036854775807LL;
2137static unsigned long long int ubignum = BIG64;
2138
2139struct incomplete_array
2140{
2141  int datasize;
2142  double data[];
2143};
2144
2145struct named_init {
2146  int number;
2147  const wchar_t *name;
2148  double average;
2149};
2150
2151typedef const char *ccp;
2152
2153static inline int
2154test_restrict (ccp restrict text)
2155{
2156  // Iterate through items via the restricted pointer.
2157  // Also check for declarations in for loops.
2158  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2159    continue;
2160  return 0;
2161}
2162
2163// Check varargs and va_copy.
2164static bool
2165test_varargs (const char *format, ...)
2166{
2167  va_list args;
2168  va_start (args, format);
2169  va_list args_copy;
2170  va_copy (args_copy, args);
2171
2172  const char *str = "";
2173  int number = 0;
2174  float fnumber = 0;
2175
2176  while (*format)
2177    {
2178      switch (*format++)
2179	{
2180	case '\''s'\'': // string
2181	  str = va_arg (args_copy, const char *);
2182	  break;
2183	case '\''d'\'': // int
2184	  number = va_arg (args_copy, int);
2185	  break;
2186	case '\''f'\'': // float
2187	  fnumber = va_arg (args_copy, double);
2188	  break;
2189	default:
2190	  break;
2191	}
2192    }
2193  va_end (args_copy);
2194  va_end (args);
2195
2196  return *str && number && fnumber;
2197}
2198'
2199
2200# Test code for whether the C compiler supports C99 (body of main).
2201ac_c_conftest_c99_main='
2202  // Check bool.
2203  _Bool success = false;
2204  success |= (argc != 0);
2205
2206  // Check restrict.
2207  if (test_restrict ("String literal") == 0)
2208    success = true;
2209  char *restrict newvar = "Another string";
2210
2211  // Check varargs.
2212  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2213  test_varargs_macros ();
2214
2215  // Check flexible array members.
2216  struct incomplete_array *ia =
2217    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2218  ia->datasize = 10;
2219  for (int i = 0; i < ia->datasize; ++i)
2220    ia->data[i] = i * 1.234;
2221  // Work around memory leak warnings.
2222  free (ia);
2223
2224  // Check named initializers.
2225  struct named_init ni = {
2226    .number = 34,
2227    .name = L"Test wide string",
2228    .average = 543.34343,
2229  };
2230
2231  ni.number = 58;
2232
2233  int dynamic_array[ni.number];
2234  dynamic_array[0] = argv[0][0];
2235  dynamic_array[ni.number - 1] = 543;
2236
2237  // work around unused variable warnings
2238  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2239	 || dynamic_array[ni.number - 1] != 543);
2240'
2241
2242# Test code for whether the C compiler supports C11 (global declarations)
2243ac_c_conftest_c11_globals='
2244/* Does the compiler advertise C11 conformance? */
2245#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2246# error "Compiler does not advertise C11 conformance"
2247#endif
2248
2249// Check _Alignas.
2250char _Alignas (double) aligned_as_double;
2251char _Alignas (0) no_special_alignment;
2252extern char aligned_as_int;
2253char _Alignas (0) _Alignas (int) aligned_as_int;
2254
2255// Check _Alignof.
2256enum
2257{
2258  int_alignment = _Alignof (int),
2259  int_array_alignment = _Alignof (int[100]),
2260  char_alignment = _Alignof (char)
2261};
2262_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2263
2264// Check _Noreturn.
2265int _Noreturn does_not_return (void) { for (;;) continue; }
2266
2267// Check _Static_assert.
2268struct test_static_assert
2269{
2270  int x;
2271  _Static_assert (sizeof (int) <= sizeof (long int),
2272                  "_Static_assert does not work in struct");
2273  long int y;
2274};
2275
2276// Check UTF-8 literals.
2277#define u8 syntax error!
2278char const utf8_literal[] = u8"happens to be ASCII" "another string";
2279
2280// Check duplicate typedefs.
2281typedef long *long_ptr;
2282typedef long int *long_ptr;
2283typedef long_ptr long_ptr;
2284
2285// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2286struct anonymous
2287{
2288  union {
2289    struct { int i; int j; };
2290    struct { int k; long int l; } w;
2291  };
2292  int m;
2293} v1;
2294'
2295
2296# Test code for whether the C compiler supports C11 (body of main).
2297ac_c_conftest_c11_main='
2298  _Static_assert ((offsetof (struct anonymous, i)
2299		   == offsetof (struct anonymous, w.k)),
2300		  "Anonymous union alignment botch");
2301  v1.i = 2;
2302  v1.w.k = 5;
2303  ok |= v1.i != 5;
2304'
2305
2306# Test code for whether the C compiler supports C11 (complete).
2307ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2308${ac_c_conftest_c99_globals}
2309${ac_c_conftest_c11_globals}
2310
2311int
2312main (int argc, char **argv)
2313{
2314  int ok = 0;
2315  ${ac_c_conftest_c89_main}
2316  ${ac_c_conftest_c99_main}
2317  ${ac_c_conftest_c11_main}
2318  return ok;
2319}
2320"
2321
2322# Test code for whether the C compiler supports C99 (complete).
2323ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2324${ac_c_conftest_c99_globals}
2325
2326int
2327main (int argc, char **argv)
2328{
2329  int ok = 0;
2330  ${ac_c_conftest_c89_main}
2331  ${ac_c_conftest_c99_main}
2332  return ok;
2333}
2334"
2335
2336# Test code for whether the C compiler supports C89 (complete).
2337ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2338
2339int
2340main (int argc, char **argv)
2341{
2342  int ok = 0;
2343  ${ac_c_conftest_c89_main}
2344  return ok;
2345}
2346"
2347
2348as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2349as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2350as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2351as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2352as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2353as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2354as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2355as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2356as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2357
2358# Auxiliary files required by this configure script.
2359ac_aux_files="config.guess config.sub compile missing install-sh"
2360
2361# Locations in which to look for auxiliary files.
2362ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2363
2364# Search for a directory containing all of the required auxiliary files,
2365# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2366# If we don't find one directory that contains all the files we need,
2367# we report the set of missing files from the *first* directory in
2368# $ac_aux_dir_candidates and give up.
2369ac_missing_aux_files=""
2370ac_first_candidate=:
2371printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373as_found=false
2374for as_dir in $ac_aux_dir_candidates
2375do
2376  IFS=$as_save_IFS
2377  case $as_dir in #(((
2378    '') as_dir=./ ;;
2379    */) ;;
2380    *) as_dir=$as_dir/ ;;
2381  esac
2382  as_found=:
2383
2384  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2385  ac_aux_dir_found=yes
2386  ac_install_sh=
2387  for ac_aux in $ac_aux_files
2388  do
2389    # As a special case, if "install-sh" is required, that requirement
2390    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2391    # and $ac_install_sh is set appropriately for whichever one is found.
2392    if test x"$ac_aux" = x"install-sh"
2393    then
2394      if test -f "${as_dir}install-sh"; then
2395        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2396        ac_install_sh="${as_dir}install-sh -c"
2397      elif test -f "${as_dir}install.sh"; then
2398        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2399        ac_install_sh="${as_dir}install.sh -c"
2400      elif test -f "${as_dir}shtool"; then
2401        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2402        ac_install_sh="${as_dir}shtool install -c"
2403      else
2404        ac_aux_dir_found=no
2405        if $ac_first_candidate; then
2406          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2407        else
2408          break
2409        fi
2410      fi
2411    else
2412      if test -f "${as_dir}${ac_aux}"; then
2413        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2414      else
2415        ac_aux_dir_found=no
2416        if $ac_first_candidate; then
2417          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2418        else
2419          break
2420        fi
2421      fi
2422    fi
2423  done
2424  if test "$ac_aux_dir_found" = yes; then
2425    ac_aux_dir="$as_dir"
2426    break
2427  fi
2428  ac_first_candidate=false
2429
2430  as_found=false
2431done
2432IFS=$as_save_IFS
2433if $as_found
2434then :
2435
2436else case e in #(
2437  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2438esac
2439fi
2440
2441
2442# These three variables are undocumented and unsupported,
2443# and are intended to be withdrawn in a future Autoconf release.
2444# They can cause serious problems if a builder's source tree is in a directory
2445# whose full name contains unusual characters.
2446if test -f "${ac_aux_dir}config.guess"; then
2447  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2448fi
2449if test -f "${ac_aux_dir}config.sub"; then
2450  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2451fi
2452if test -f "$ac_aux_dir/configure"; then
2453  ac_configure="$SHELL ${ac_aux_dir}configure"
2454fi
2455
2456# Check that the precious variables saved in the cache have kept the same
2457# value.
2458ac_cache_corrupted=false
2459for ac_var in $ac_precious_vars; do
2460  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2461  eval ac_new_set=\$ac_env_${ac_var}_set
2462  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2463  eval ac_new_val=\$ac_env_${ac_var}_value
2464  case $ac_old_set,$ac_new_set in
2465    set,)
2466      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2467printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2468      ac_cache_corrupted=: ;;
2469    ,set)
2470      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2471printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2472      ac_cache_corrupted=: ;;
2473    ,);;
2474    *)
2475      if test "x$ac_old_val" != "x$ac_new_val"; then
2476	# differences in whitespace do not lead to failure.
2477	ac_old_val_w=`echo x $ac_old_val`
2478	ac_new_val_w=`echo x $ac_new_val`
2479	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2480	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2481printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2482	  ac_cache_corrupted=:
2483	else
2484	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2485printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2486	  eval $ac_var=\$ac_old_val
2487	fi
2488	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2489printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2490	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2491printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2492      fi;;
2493  esac
2494  # Pass precious variables to config.status.
2495  if test "$ac_new_set" = set; then
2496    case $ac_new_val in
2497    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2498    *) ac_arg=$ac_var=$ac_new_val ;;
2499    esac
2500    case " $ac_configure_args " in
2501      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2502      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2503    esac
2504  fi
2505done
2506if $ac_cache_corrupted; then
2507  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2508printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2509  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2510printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2511  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2512	    and start over" "$LINENO" 5
2513fi
2514## -------------------- ##
2515## Main body of script. ##
2516## -------------------- ##
2517
2518ac_ext=c
2519ac_cpp='$CPP $CPPFLAGS'
2520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2522ac_compiler_gnu=$ac_cv_c_compiler_gnu
2523
2524
2525
2526ac_config_headers="$ac_config_headers config.h"
2527
2528
2529# Initialize Automake
2530am__api_version='1.16'
2531
2532
2533
2534  # Find a good install program.  We prefer a C program (faster),
2535# so one script is as good as another.  But avoid the broken or
2536# incompatible versions:
2537# SysV /etc/install, /usr/sbin/install
2538# SunOS /usr/etc/install
2539# IRIX /sbin/install
2540# AIX /bin/install
2541# AmigaOS /C/install, which installs bootblocks on floppy discs
2542# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2543# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2544# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2545# OS/2's system install, which has a completely different semantic
2546# ./install, which can be erroneously created by make from ./install.sh.
2547# Reject install programs that cannot install multiple files.
2548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2549printf %s "checking for a BSD-compatible install... " >&6; }
2550if test -z "$INSTALL"; then
2551if test ${ac_cv_path_install+y}
2552then :
2553  printf %s "(cached) " >&6
2554else case e in #(
2555  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556for as_dir in $PATH
2557do
2558  IFS=$as_save_IFS
2559  case $as_dir in #(((
2560    '') as_dir=./ ;;
2561    */) ;;
2562    *) as_dir=$as_dir/ ;;
2563  esac
2564    # Account for fact that we put trailing slashes in our PATH walk.
2565case $as_dir in #((
2566  ./ | /[cC]/* | \
2567  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2568  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2569  /usr/ucb/* ) ;;
2570  *)
2571    # OSF1 and SCO ODT 3.0 have their own names for install.
2572    # Don't use installbsd from OSF since it installs stuff as root
2573    # by default.
2574    for ac_prog in ginstall scoinst install; do
2575      for ac_exec_ext in '' $ac_executable_extensions; do
2576	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2577	  if test $ac_prog = install &&
2578	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2579	    # AIX install.  It has an incompatible calling convention.
2580	    :
2581	  elif test $ac_prog = install &&
2582	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2583	    # program-specific install script used by HP pwplus--don't use.
2584	    :
2585	  else
2586	    rm -rf conftest.one conftest.two conftest.dir
2587	    echo one > conftest.one
2588	    echo two > conftest.two
2589	    mkdir conftest.dir
2590	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2591	      test -s conftest.one && test -s conftest.two &&
2592	      test -s conftest.dir/conftest.one &&
2593	      test -s conftest.dir/conftest.two
2594	    then
2595	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2596	      break 3
2597	    fi
2598	  fi
2599	fi
2600      done
2601    done
2602    ;;
2603esac
2604
2605  done
2606IFS=$as_save_IFS
2607
2608rm -rf conftest.one conftest.two conftest.dir
2609 ;;
2610esac
2611fi
2612  if test ${ac_cv_path_install+y}; then
2613    INSTALL=$ac_cv_path_install
2614  else
2615    # As a last resort, use the slow shell script.  Don't cache a
2616    # value for INSTALL within a source directory, because that will
2617    # break other packages using the cache if that directory is
2618    # removed, or if the value is a relative name.
2619    INSTALL=$ac_install_sh
2620  fi
2621fi
2622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2623printf "%s\n" "$INSTALL" >&6; }
2624
2625# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2626# It thinks the first close brace ends the variable substitution.
2627test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2628
2629test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2630
2631test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2632
2633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2634printf %s "checking whether build environment is sane... " >&6; }
2635# Reject unsafe characters in $srcdir or the absolute working directory
2636# name.  Accept space and tab only in the latter.
2637am_lf='
2638'
2639case `pwd` in
2640  *[\\\"\#\$\&\'\`$am_lf]*)
2641    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2642esac
2643case $srcdir in
2644  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2645    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2646esac
2647
2648# Do 'set' in a subshell so we don't clobber the current shell's
2649# arguments.  Must try -L first in case configure is actually a
2650# symlink; some systems play weird games with the mod time of symlinks
2651# (eg FreeBSD returns the mod time of the symlink's containing
2652# directory).
2653if (
2654   am_has_slept=no
2655   for am_try in 1 2; do
2656     echo "timestamp, slept: $am_has_slept" > conftest.file
2657     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2658     if test "$*" = "X"; then
2659	# -L didn't work.
2660	set X `ls -t "$srcdir/configure" conftest.file`
2661     fi
2662     if test "$*" != "X $srcdir/configure conftest.file" \
2663	&& test "$*" != "X conftest.file $srcdir/configure"; then
2664
2665	# If neither matched, then we have a broken ls.  This can happen
2666	# if, for instance, CONFIG_SHELL is bash and it inherits a
2667	# broken ls alias from the environment.  This has actually
2668	# happened.  Such a system could not be considered "sane".
2669	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2670  alias in your environment" "$LINENO" 5
2671     fi
2672     if test "$2" = conftest.file || test $am_try -eq 2; then
2673       break
2674     fi
2675     # Just in case.
2676     sleep 1
2677     am_has_slept=yes
2678   done
2679   test "$2" = conftest.file
2680   )
2681then
2682   # Ok.
2683   :
2684else
2685   as_fn_error $? "newly created file is older than distributed files!
2686Check your system clock" "$LINENO" 5
2687fi
2688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2689printf "%s\n" "yes" >&6; }
2690# If we didn't sleep, we still need to ensure time stamps of config.status and
2691# generated files are strictly newer.
2692am_sleep_pid=
2693if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2694  ( sleep 1 ) &
2695  am_sleep_pid=$!
2696fi
2697
2698rm -f conftest.file
2699
2700test "$program_prefix" != NONE &&
2701  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2702# Use a double $ so make ignores it.
2703test "$program_suffix" != NONE &&
2704  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2705# Double any \ or $.
2706# By default was 's,x,x', remove it if useless.
2707ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2708program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2709
2710
2711# Expand $ac_aux_dir to an absolute path.
2712am_aux_dir=`cd "$ac_aux_dir" && pwd`
2713
2714
2715  if test x"${MISSING+set}" != xset; then
2716  MISSING="\${SHELL} '$am_aux_dir/missing'"
2717fi
2718# Use eval to expand $SHELL
2719if eval "$MISSING --is-lightweight"; then
2720  am_missing_run="$MISSING "
2721else
2722  am_missing_run=
2723  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2724printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2725fi
2726
2727if test x"${install_sh+set}" != xset; then
2728  case $am_aux_dir in
2729  *\ * | *\	*)
2730    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2731  *)
2732    install_sh="\${SHELL} $am_aux_dir/install-sh"
2733  esac
2734fi
2735
2736# Installed binaries are usually stripped using 'strip' when the user
2737# run "make install-strip".  However 'strip' might not be the right
2738# tool to use in cross-compilation environments, therefore Automake
2739# will honor the 'STRIP' environment variable to overrule this program.
2740if test "$cross_compiling" != no; then
2741  if test -n "$ac_tool_prefix"; then
2742  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2743set dummy ${ac_tool_prefix}strip; ac_word=$2
2744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2745printf %s "checking for $ac_word... " >&6; }
2746if test ${ac_cv_prog_STRIP+y}
2747then :
2748  printf %s "(cached) " >&6
2749else case e in #(
2750  e) if test -n "$STRIP"; then
2751  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2752else
2753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754for as_dir in $PATH
2755do
2756  IFS=$as_save_IFS
2757  case $as_dir in #(((
2758    '') as_dir=./ ;;
2759    */) ;;
2760    *) as_dir=$as_dir/ ;;
2761  esac
2762    for ac_exec_ext in '' $ac_executable_extensions; do
2763  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2764    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2765    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2766    break 2
2767  fi
2768done
2769  done
2770IFS=$as_save_IFS
2771
2772fi ;;
2773esac
2774fi
2775STRIP=$ac_cv_prog_STRIP
2776if test -n "$STRIP"; then
2777  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2778printf "%s\n" "$STRIP" >&6; }
2779else
2780  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781printf "%s\n" "no" >&6; }
2782fi
2783
2784
2785fi
2786if test -z "$ac_cv_prog_STRIP"; then
2787  ac_ct_STRIP=$STRIP
2788  # Extract the first word of "strip", so it can be a program name with args.
2789set dummy strip; ac_word=$2
2790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791printf %s "checking for $ac_word... " >&6; }
2792if test ${ac_cv_prog_ac_ct_STRIP+y}
2793then :
2794  printf %s "(cached) " >&6
2795else case e in #(
2796  e) if test -n "$ac_ct_STRIP"; then
2797  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2798else
2799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800for as_dir in $PATH
2801do
2802  IFS=$as_save_IFS
2803  case $as_dir in #(((
2804    '') as_dir=./ ;;
2805    */) ;;
2806    *) as_dir=$as_dir/ ;;
2807  esac
2808    for ac_exec_ext in '' $ac_executable_extensions; do
2809  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2810    ac_cv_prog_ac_ct_STRIP="strip"
2811    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2812    break 2
2813  fi
2814done
2815  done
2816IFS=$as_save_IFS
2817
2818fi ;;
2819esac
2820fi
2821ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2822if test -n "$ac_ct_STRIP"; then
2823  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2824printf "%s\n" "$ac_ct_STRIP" >&6; }
2825else
2826  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827printf "%s\n" "no" >&6; }
2828fi
2829
2830  if test "x$ac_ct_STRIP" = x; then
2831    STRIP=":"
2832  else
2833    case $cross_compiling:$ac_tool_warned in
2834yes:)
2835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2836printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2837ac_tool_warned=yes ;;
2838esac
2839    STRIP=$ac_ct_STRIP
2840  fi
2841else
2842  STRIP="$ac_cv_prog_STRIP"
2843fi
2844
2845fi
2846INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2847
2848
2849  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2850printf %s "checking for a race-free mkdir -p... " >&6; }
2851if test -z "$MKDIR_P"; then
2852  if test ${ac_cv_path_mkdir+y}
2853then :
2854  printf %s "(cached) " >&6
2855else case e in #(
2856  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2858do
2859  IFS=$as_save_IFS
2860  case $as_dir in #(((
2861    '') as_dir=./ ;;
2862    */) ;;
2863    *) as_dir=$as_dir/ ;;
2864  esac
2865    for ac_prog in mkdir gmkdir; do
2866	 for ac_exec_ext in '' $ac_executable_extensions; do
2867	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2868	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2869	     'mkdir ('*'coreutils) '* | \
2870	     *'BusyBox '* | \
2871	     'mkdir (fileutils) '4.1*)
2872	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2873	       break 3;;
2874	   esac
2875	 done
2876       done
2877  done
2878IFS=$as_save_IFS
2879 ;;
2880esac
2881fi
2882
2883  test -d ./--version && rmdir ./--version
2884  if test ${ac_cv_path_mkdir+y}; then
2885    MKDIR_P="$ac_cv_path_mkdir -p"
2886  else
2887    # As a last resort, use plain mkdir -p,
2888    # in the hope it doesn't have the bugs of ancient mkdir.
2889    MKDIR_P='mkdir -p'
2890  fi
2891fi
2892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2893printf "%s\n" "$MKDIR_P" >&6; }
2894
2895for ac_prog in gawk mawk nawk awk
2896do
2897  # Extract the first word of "$ac_prog", so it can be a program name with args.
2898set dummy $ac_prog; ac_word=$2
2899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900printf %s "checking for $ac_word... " >&6; }
2901if test ${ac_cv_prog_AWK+y}
2902then :
2903  printf %s "(cached) " >&6
2904else case e in #(
2905  e) if test -n "$AWK"; then
2906  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2907else
2908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909for as_dir in $PATH
2910do
2911  IFS=$as_save_IFS
2912  case $as_dir in #(((
2913    '') as_dir=./ ;;
2914    */) ;;
2915    *) as_dir=$as_dir/ ;;
2916  esac
2917    for ac_exec_ext in '' $ac_executable_extensions; do
2918  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2919    ac_cv_prog_AWK="$ac_prog"
2920    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2921    break 2
2922  fi
2923done
2924  done
2925IFS=$as_save_IFS
2926
2927fi ;;
2928esac
2929fi
2930AWK=$ac_cv_prog_AWK
2931if test -n "$AWK"; then
2932  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2933printf "%s\n" "$AWK" >&6; }
2934else
2935  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936printf "%s\n" "no" >&6; }
2937fi
2938
2939
2940  test -n "$AWK" && break
2941done
2942
2943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2944printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2945set x ${MAKE-make}
2946ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2947if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2948then :
2949  printf %s "(cached) " >&6
2950else case e in #(
2951  e) cat >conftest.make <<\_ACEOF
2952SHELL = /bin/sh
2953all:
2954	@echo '@@@%%%=$(MAKE)=@@@%%%'
2955_ACEOF
2956# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2957case `${MAKE-make} -f conftest.make 2>/dev/null` in
2958  *@@@%%%=?*=@@@%%%*)
2959    eval ac_cv_prog_make_${ac_make}_set=yes;;
2960  *)
2961    eval ac_cv_prog_make_${ac_make}_set=no;;
2962esac
2963rm -f conftest.make ;;
2964esac
2965fi
2966if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2967  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2968printf "%s\n" "yes" >&6; }
2969  SET_MAKE=
2970else
2971  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972printf "%s\n" "no" >&6; }
2973  SET_MAKE="MAKE=${MAKE-make}"
2974fi
2975
2976rm -rf .tst 2>/dev/null
2977mkdir .tst 2>/dev/null
2978if test -d .tst; then
2979  am__leading_dot=.
2980else
2981  am__leading_dot=_
2982fi
2983rmdir .tst 2>/dev/null
2984
2985# Check whether --enable-silent-rules was given.
2986if test ${enable_silent_rules+y}
2987then :
2988  enableval=$enable_silent_rules;
2989fi
2990
2991case $enable_silent_rules in # (((
2992  yes) AM_DEFAULT_VERBOSITY=0;;
2993   no) AM_DEFAULT_VERBOSITY=1;;
2994    *) AM_DEFAULT_VERBOSITY=1;;
2995esac
2996am_make=${MAKE-make}
2997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2998printf %s "checking whether $am_make supports nested variables... " >&6; }
2999if test ${am_cv_make_support_nested_variables+y}
3000then :
3001  printf %s "(cached) " >&6
3002else case e in #(
3003  e) if printf "%s\n" 'TRUE=$(BAR$(V))
3004BAR0=false
3005BAR1=true
3006V=1
3007am__doit:
3008	@$(TRUE)
3009.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3010  am_cv_make_support_nested_variables=yes
3011else
3012  am_cv_make_support_nested_variables=no
3013fi ;;
3014esac
3015fi
3016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3017printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3018if test $am_cv_make_support_nested_variables = yes; then
3019    AM_V='$(V)'
3020  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3021else
3022  AM_V=$AM_DEFAULT_VERBOSITY
3023  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3024fi
3025AM_BACKSLASH='\'
3026
3027if test "`cd $srcdir && pwd`" != "`pwd`"; then
3028  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3029  # is not polluted with repeated "-I."
3030  am__isrc=' -I$(srcdir)'
3031  # test to see if srcdir already configured
3032  if test -f $srcdir/config.status; then
3033    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3034  fi
3035fi
3036
3037# test whether we have cygpath
3038if test -z "$CYGPATH_W"; then
3039  if (cygpath --version) >/dev/null 2>/dev/null; then
3040    CYGPATH_W='cygpath -w'
3041  else
3042    CYGPATH_W=echo
3043  fi
3044fi
3045
3046
3047# Define the identity of the package.
3048 PACKAGE='xfontsel'
3049 VERSION='1.1.1'
3050
3051
3052printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3053
3054
3055printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3056
3057# Some tools Automake needs.
3058
3059ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3060
3061
3062AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3063
3064
3065AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3066
3067
3068AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3069
3070
3071MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3072
3073# For better backward compatibility.  To be removed once Automake 1.9.x
3074# dies out for good.  For more background, see:
3075# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3076# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3077mkdir_p='$(MKDIR_P)'
3078
3079# We need awk for the "check" target (and possibly the TAP driver).  The
3080# system "awk" is bad on some platforms.
3081# Always define AMTAR for backward compatibility.  Yes, it's still used
3082# in the wild :-(  We should find a proper way to deprecate it ...
3083AMTAR='$${TAR-tar}'
3084
3085
3086# We'll loop over all known methods to create a tar archive until one works.
3087_am_tools='gnutar  pax cpio none'
3088
3089am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3090
3091
3092
3093
3094
3095# Variables for tags utilities; see am/tags.am
3096if test -z "$CTAGS"; then
3097  CTAGS=ctags
3098fi
3099
3100if test -z "$ETAGS"; then
3101  ETAGS=etags
3102fi
3103
3104if test -z "$CSCOPE"; then
3105  CSCOPE=cscope
3106fi
3107
3108
3109
3110# POSIX will say in a future version that running "rm -f" with no argument
3111# is OK; and we want to be able to make that assumption in our Makefile
3112# recipes.  So use an aggressive probe to check that the usage we want is
3113# actually supported "in the wild" to an acceptable degree.
3114# See automake bug#10828.
3115# To make any issue more visible, cause the running configure to be aborted
3116# by default if the 'rm' program in use doesn't match our expectations; the
3117# user can still override this though.
3118if rm -f && rm -fr && rm -rf; then : OK; else
3119  cat >&2 <<'END'
3120Oops!
3121
3122Your 'rm' program seems unable to run without file operands specified
3123on the command line, even when the '-f' option is present.  This is contrary
3124to the behaviour of most rm programs out there, and not conforming with
3125the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3126
3127Please tell bug-automake@gnu.org about your system, including the value
3128of your $PATH and any error possibly output before this message.  This
3129can help us improve future automake versions.
3130
3131END
3132  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3133    echo 'Configuration will proceed anyway, since you have set the' >&2
3134    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3135    echo >&2
3136  else
3137    cat >&2 <<'END'
3138Aborting the configuration process, to ensure you take notice of the issue.
3139
3140You can download and install GNU coreutils to get an 'rm' implementation
3141that behaves properly: <https://www.gnu.org/software/coreutils/>.
3142
3143If you want to complete the configuration process using your problematic
3144'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3145to "yes", and re-run configure.
3146
3147END
3148    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3149  fi
3150fi
3151
3152
3153# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174DEPDIR="${am__leading_dot}deps"
3175
3176ac_config_commands="$ac_config_commands depfiles"
3177
3178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3179printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3180cat > confinc.mk << 'END'
3181am__doit:
3182	@echo this is the am__doit target >confinc.out
3183.PHONY: am__doit
3184END
3185am__include="#"
3186am__quote=
3187# BSD make does it like this.
3188echo '.include "confinc.mk" # ignored' > confmf.BSD
3189# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3190echo 'include confinc.mk # ignored' > confmf.GNU
3191_am_result=no
3192for s in GNU BSD; do
3193  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3194   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3195   ac_status=$?
3196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197   (exit $ac_status); }
3198  case $?:`cat confinc.out 2>/dev/null` in #(
3199  '0:this is the am__doit target') :
3200    case $s in #(
3201  BSD) :
3202    am__include='.include' am__quote='"' ;; #(
3203  *) :
3204    am__include='include' am__quote='' ;;
3205esac ;; #(
3206  *) :
3207     ;;
3208esac
3209  if test "$am__include" != "#"; then
3210    _am_result="yes ($s style)"
3211    break
3212  fi
3213done
3214rm -f confinc.* confmf.*
3215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3216printf "%s\n" "${_am_result}" >&6; }
3217
3218# Check whether --enable-dependency-tracking was given.
3219if test ${enable_dependency_tracking+y}
3220then :
3221  enableval=$enable_dependency_tracking;
3222fi
3223
3224if test "x$enable_dependency_tracking" != xno; then
3225  am_depcomp="$ac_aux_dir/depcomp"
3226  AMDEPBACKSLASH='\'
3227  am__nodep='_no'
3228fi
3229 if test "x$enable_dependency_tracking" != xno; then
3230  AMDEP_TRUE=
3231  AMDEP_FALSE='#'
3232else
3233  AMDEP_TRUE='#'
3234  AMDEP_FALSE=
3235fi
3236
3237
3238ac_ext=c
3239ac_cpp='$CPP $CPPFLAGS'
3240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243if test -n "$ac_tool_prefix"; then
3244  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3245set dummy ${ac_tool_prefix}gcc; ac_word=$2
3246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3247printf %s "checking for $ac_word... " >&6; }
3248if test ${ac_cv_prog_CC+y}
3249then :
3250  printf %s "(cached) " >&6
3251else case e in #(
3252  e) if test -n "$CC"; then
3253  ac_cv_prog_CC="$CC" # Let the user override the test.
3254else
3255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256for as_dir in $PATH
3257do
3258  IFS=$as_save_IFS
3259  case $as_dir in #(((
3260    '') as_dir=./ ;;
3261    */) ;;
3262    *) as_dir=$as_dir/ ;;
3263  esac
3264    for ac_exec_ext in '' $ac_executable_extensions; do
3265  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3266    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3267    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3268    break 2
3269  fi
3270done
3271  done
3272IFS=$as_save_IFS
3273
3274fi ;;
3275esac
3276fi
3277CC=$ac_cv_prog_CC
3278if test -n "$CC"; then
3279  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3280printf "%s\n" "$CC" >&6; }
3281else
3282  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283printf "%s\n" "no" >&6; }
3284fi
3285
3286
3287fi
3288if test -z "$ac_cv_prog_CC"; then
3289  ac_ct_CC=$CC
3290  # Extract the first word of "gcc", so it can be a program name with args.
3291set dummy gcc; ac_word=$2
3292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3293printf %s "checking for $ac_word... " >&6; }
3294if test ${ac_cv_prog_ac_ct_CC+y}
3295then :
3296  printf %s "(cached) " >&6
3297else case e in #(
3298  e) if test -n "$ac_ct_CC"; then
3299  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3300else
3301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302for as_dir in $PATH
3303do
3304  IFS=$as_save_IFS
3305  case $as_dir in #(((
3306    '') as_dir=./ ;;
3307    */) ;;
3308    *) as_dir=$as_dir/ ;;
3309  esac
3310    for ac_exec_ext in '' $ac_executable_extensions; do
3311  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3312    ac_cv_prog_ac_ct_CC="gcc"
3313    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3314    break 2
3315  fi
3316done
3317  done
3318IFS=$as_save_IFS
3319
3320fi ;;
3321esac
3322fi
3323ac_ct_CC=$ac_cv_prog_ac_ct_CC
3324if test -n "$ac_ct_CC"; then
3325  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3326printf "%s\n" "$ac_ct_CC" >&6; }
3327else
3328  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329printf "%s\n" "no" >&6; }
3330fi
3331
3332  if test "x$ac_ct_CC" = x; then
3333    CC=""
3334  else
3335    case $cross_compiling:$ac_tool_warned in
3336yes:)
3337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3338printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3339ac_tool_warned=yes ;;
3340esac
3341    CC=$ac_ct_CC
3342  fi
3343else
3344  CC="$ac_cv_prog_CC"
3345fi
3346
3347if test -z "$CC"; then
3348          if test -n "$ac_tool_prefix"; then
3349    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3350set dummy ${ac_tool_prefix}cc; ac_word=$2
3351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3352printf %s "checking for $ac_word... " >&6; }
3353if test ${ac_cv_prog_CC+y}
3354then :
3355  printf %s "(cached) " >&6
3356else case e in #(
3357  e) if test -n "$CC"; then
3358  ac_cv_prog_CC="$CC" # Let the user override the test.
3359else
3360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361for as_dir in $PATH
3362do
3363  IFS=$as_save_IFS
3364  case $as_dir in #(((
3365    '') as_dir=./ ;;
3366    */) ;;
3367    *) as_dir=$as_dir/ ;;
3368  esac
3369    for ac_exec_ext in '' $ac_executable_extensions; do
3370  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3371    ac_cv_prog_CC="${ac_tool_prefix}cc"
3372    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3373    break 2
3374  fi
3375done
3376  done
3377IFS=$as_save_IFS
3378
3379fi ;;
3380esac
3381fi
3382CC=$ac_cv_prog_CC
3383if test -n "$CC"; then
3384  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3385printf "%s\n" "$CC" >&6; }
3386else
3387  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388printf "%s\n" "no" >&6; }
3389fi
3390
3391
3392  fi
3393fi
3394if test -z "$CC"; then
3395  # Extract the first word of "cc", so it can be a program name with args.
3396set dummy cc; ac_word=$2
3397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3398printf %s "checking for $ac_word... " >&6; }
3399if test ${ac_cv_prog_CC+y}
3400then :
3401  printf %s "(cached) " >&6
3402else case e in #(
3403  e) if test -n "$CC"; then
3404  ac_cv_prog_CC="$CC" # Let the user override the test.
3405else
3406  ac_prog_rejected=no
3407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408for as_dir in $PATH
3409do
3410  IFS=$as_save_IFS
3411  case $as_dir in #(((
3412    '') as_dir=./ ;;
3413    */) ;;
3414    *) as_dir=$as_dir/ ;;
3415  esac
3416    for ac_exec_ext in '' $ac_executable_extensions; do
3417  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3418    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3419       ac_prog_rejected=yes
3420       continue
3421     fi
3422    ac_cv_prog_CC="cc"
3423    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3424    break 2
3425  fi
3426done
3427  done
3428IFS=$as_save_IFS
3429
3430if test $ac_prog_rejected = yes; then
3431  # We found a bogon in the path, so make sure we never use it.
3432  set dummy $ac_cv_prog_CC
3433  shift
3434  if test $# != 0; then
3435    # We chose a different compiler from the bogus one.
3436    # However, it has the same basename, so the bogon will be chosen
3437    # first if we set CC to just the basename; use the full file name.
3438    shift
3439    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3440  fi
3441fi
3442fi ;;
3443esac
3444fi
3445CC=$ac_cv_prog_CC
3446if test -n "$CC"; then
3447  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3448printf "%s\n" "$CC" >&6; }
3449else
3450  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451printf "%s\n" "no" >&6; }
3452fi
3453
3454
3455fi
3456if test -z "$CC"; then
3457  if test -n "$ac_tool_prefix"; then
3458  for ac_prog in cl.exe
3459  do
3460    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3461set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463printf %s "checking for $ac_word... " >&6; }
3464if test ${ac_cv_prog_CC+y}
3465then :
3466  printf %s "(cached) " >&6
3467else case e in #(
3468  e) if test -n "$CC"; then
3469  ac_cv_prog_CC="$CC" # Let the user override the test.
3470else
3471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472for as_dir in $PATH
3473do
3474  IFS=$as_save_IFS
3475  case $as_dir in #(((
3476    '') as_dir=./ ;;
3477    */) ;;
3478    *) as_dir=$as_dir/ ;;
3479  esac
3480    for ac_exec_ext in '' $ac_executable_extensions; do
3481  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3482    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3483    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3484    break 2
3485  fi
3486done
3487  done
3488IFS=$as_save_IFS
3489
3490fi ;;
3491esac
3492fi
3493CC=$ac_cv_prog_CC
3494if test -n "$CC"; then
3495  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3496printf "%s\n" "$CC" >&6; }
3497else
3498  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3499printf "%s\n" "no" >&6; }
3500fi
3501
3502
3503    test -n "$CC" && break
3504  done
3505fi
3506if test -z "$CC"; then
3507  ac_ct_CC=$CC
3508  for ac_prog in cl.exe
3509do
3510  # Extract the first word of "$ac_prog", so it can be a program name with args.
3511set dummy $ac_prog; ac_word=$2
3512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3513printf %s "checking for $ac_word... " >&6; }
3514if test ${ac_cv_prog_ac_ct_CC+y}
3515then :
3516  printf %s "(cached) " >&6
3517else case e in #(
3518  e) if test -n "$ac_ct_CC"; then
3519  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3520else
3521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522for as_dir in $PATH
3523do
3524  IFS=$as_save_IFS
3525  case $as_dir in #(((
3526    '') as_dir=./ ;;
3527    */) ;;
3528    *) as_dir=$as_dir/ ;;
3529  esac
3530    for ac_exec_ext in '' $ac_executable_extensions; do
3531  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3532    ac_cv_prog_ac_ct_CC="$ac_prog"
3533    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3534    break 2
3535  fi
3536done
3537  done
3538IFS=$as_save_IFS
3539
3540fi ;;
3541esac
3542fi
3543ac_ct_CC=$ac_cv_prog_ac_ct_CC
3544if test -n "$ac_ct_CC"; then
3545  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3546printf "%s\n" "$ac_ct_CC" >&6; }
3547else
3548  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3549printf "%s\n" "no" >&6; }
3550fi
3551
3552
3553  test -n "$ac_ct_CC" && break
3554done
3555
3556  if test "x$ac_ct_CC" = x; then
3557    CC=""
3558  else
3559    case $cross_compiling:$ac_tool_warned in
3560yes:)
3561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3562printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3563ac_tool_warned=yes ;;
3564esac
3565    CC=$ac_ct_CC
3566  fi
3567fi
3568
3569fi
3570if test -z "$CC"; then
3571  if test -n "$ac_tool_prefix"; then
3572  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3573set dummy ${ac_tool_prefix}clang; ac_word=$2
3574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3575printf %s "checking for $ac_word... " >&6; }
3576if test ${ac_cv_prog_CC+y}
3577then :
3578  printf %s "(cached) " >&6
3579else case e in #(
3580  e) if test -n "$CC"; then
3581  ac_cv_prog_CC="$CC" # Let the user override the test.
3582else
3583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584for as_dir in $PATH
3585do
3586  IFS=$as_save_IFS
3587  case $as_dir in #(((
3588    '') as_dir=./ ;;
3589    */) ;;
3590    *) as_dir=$as_dir/ ;;
3591  esac
3592    for ac_exec_ext in '' $ac_executable_extensions; do
3593  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3594    ac_cv_prog_CC="${ac_tool_prefix}clang"
3595    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3596    break 2
3597  fi
3598done
3599  done
3600IFS=$as_save_IFS
3601
3602fi ;;
3603esac
3604fi
3605CC=$ac_cv_prog_CC
3606if test -n "$CC"; then
3607  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3608printf "%s\n" "$CC" >&6; }
3609else
3610  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3611printf "%s\n" "no" >&6; }
3612fi
3613
3614
3615fi
3616if test -z "$ac_cv_prog_CC"; then
3617  ac_ct_CC=$CC
3618  # Extract the first word of "clang", so it can be a program name with args.
3619set dummy clang; ac_word=$2
3620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3621printf %s "checking for $ac_word... " >&6; }
3622if test ${ac_cv_prog_ac_ct_CC+y}
3623then :
3624  printf %s "(cached) " >&6
3625else case e in #(
3626  e) if test -n "$ac_ct_CC"; then
3627  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3628else
3629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630for as_dir in $PATH
3631do
3632  IFS=$as_save_IFS
3633  case $as_dir in #(((
3634    '') as_dir=./ ;;
3635    */) ;;
3636    *) as_dir=$as_dir/ ;;
3637  esac
3638    for ac_exec_ext in '' $ac_executable_extensions; do
3639  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3640    ac_cv_prog_ac_ct_CC="clang"
3641    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3642    break 2
3643  fi
3644done
3645  done
3646IFS=$as_save_IFS
3647
3648fi ;;
3649esac
3650fi
3651ac_ct_CC=$ac_cv_prog_ac_ct_CC
3652if test -n "$ac_ct_CC"; then
3653  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3654printf "%s\n" "$ac_ct_CC" >&6; }
3655else
3656  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657printf "%s\n" "no" >&6; }
3658fi
3659
3660  if test "x$ac_ct_CC" = x; then
3661    CC=""
3662  else
3663    case $cross_compiling:$ac_tool_warned in
3664yes:)
3665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3666printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3667ac_tool_warned=yes ;;
3668esac
3669    CC=$ac_ct_CC
3670  fi
3671else
3672  CC="$ac_cv_prog_CC"
3673fi
3674
3675fi
3676
3677
3678test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3679printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3680as_fn_error $? "no acceptable C compiler found in \$PATH
3681See 'config.log' for more details" "$LINENO" 5; }
3682
3683# Provide some information about the compiler.
3684printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3685set X $ac_compile
3686ac_compiler=$2
3687for ac_option in --version -v -V -qversion -version; do
3688  { { ac_try="$ac_compiler $ac_option >&5"
3689case "(($ac_try" in
3690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691  *) ac_try_echo=$ac_try;;
3692esac
3693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3694printf "%s\n" "$ac_try_echo"; } >&5
3695  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3696  ac_status=$?
3697  if test -s conftest.err; then
3698    sed '10a\
3699... rest of stderr output deleted ...
3700         10q' conftest.err >conftest.er1
3701    cat conftest.er1 >&5
3702  fi
3703  rm -f conftest.er1 conftest.err
3704  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3705  test $ac_status = 0; }
3706done
3707
3708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709/* end confdefs.h.  */
3710
3711int
3712main (void)
3713{
3714
3715  ;
3716  return 0;
3717}
3718_ACEOF
3719ac_clean_files_save=$ac_clean_files
3720ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3721# Try to create an executable without -o first, disregard a.out.
3722# It will help us diagnose broken compilers, and finding out an intuition
3723# of exeext.
3724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3725printf %s "checking whether the C compiler works... " >&6; }
3726ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3727
3728# The possible output files:
3729ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3730
3731ac_rmfiles=
3732for ac_file in $ac_files
3733do
3734  case $ac_file in
3735    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3736    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3737  esac
3738done
3739rm -f $ac_rmfiles
3740
3741if { { ac_try="$ac_link_default"
3742case "(($ac_try" in
3743  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744  *) ac_try_echo=$ac_try;;
3745esac
3746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3747printf "%s\n" "$ac_try_echo"; } >&5
3748  (eval "$ac_link_default") 2>&5
3749  ac_status=$?
3750  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3751  test $ac_status = 0; }
3752then :
3753  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3754# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3755# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3756# so that the user can short-circuit this test for compilers unknown to
3757# Autoconf.
3758for ac_file in $ac_files ''
3759do
3760  test -f "$ac_file" || continue
3761  case $ac_file in
3762    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3763	;;
3764    [ab].out )
3765	# We found the default executable, but exeext='' is most
3766	# certainly right.
3767	break;;
3768    *.* )
3769	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3770	then :; else
3771	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3772	fi
3773	# We set ac_cv_exeext here because the later test for it is not
3774	# safe: cross compilers may not add the suffix if given an '-o'
3775	# argument, so we may need to know it at that point already.
3776	# Even if this section looks crufty: it has the advantage of
3777	# actually working.
3778	break;;
3779    * )
3780	break;;
3781  esac
3782done
3783test "$ac_cv_exeext" = no && ac_cv_exeext=
3784
3785else case e in #(
3786  e) ac_file='' ;;
3787esac
3788fi
3789if test -z "$ac_file"
3790then :
3791  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792printf "%s\n" "no" >&6; }
3793printf "%s\n" "$as_me: failed program was:" >&5
3794sed 's/^/| /' conftest.$ac_ext >&5
3795
3796{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3797printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3798as_fn_error 77 "C compiler cannot create executables
3799See 'config.log' for more details" "$LINENO" 5; }
3800else case e in #(
3801  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3802printf "%s\n" "yes" >&6; } ;;
3803esac
3804fi
3805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3806printf %s "checking for C compiler default output file name... " >&6; }
3807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3808printf "%s\n" "$ac_file" >&6; }
3809ac_exeext=$ac_cv_exeext
3810
3811rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3812ac_clean_files=$ac_clean_files_save
3813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3814printf %s "checking for suffix of executables... " >&6; }
3815if { { ac_try="$ac_link"
3816case "(($ac_try" in
3817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818  *) ac_try_echo=$ac_try;;
3819esac
3820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3821printf "%s\n" "$ac_try_echo"; } >&5
3822  (eval "$ac_link") 2>&5
3823  ac_status=$?
3824  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3825  test $ac_status = 0; }
3826then :
3827  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3828# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
3829# work properly (i.e., refer to 'conftest.exe'), while it won't with
3830# 'rm'.
3831for ac_file in conftest.exe conftest conftest.*; do
3832  test -f "$ac_file" || continue
3833  case $ac_file in
3834    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3835    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3836	  break;;
3837    * ) break;;
3838  esac
3839done
3840else case e in #(
3841  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3842printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3843as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3844See 'config.log' for more details" "$LINENO" 5; } ;;
3845esac
3846fi
3847rm -f conftest conftest$ac_cv_exeext
3848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3849printf "%s\n" "$ac_cv_exeext" >&6; }
3850
3851rm -f conftest.$ac_ext
3852EXEEXT=$ac_cv_exeext
3853ac_exeext=$EXEEXT
3854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855/* end confdefs.h.  */
3856#include <stdio.h>
3857int
3858main (void)
3859{
3860FILE *f = fopen ("conftest.out", "w");
3861 if (!f)
3862  return 1;
3863 return ferror (f) || fclose (f) != 0;
3864
3865  ;
3866  return 0;
3867}
3868_ACEOF
3869ac_clean_files="$ac_clean_files conftest.out"
3870# Check that the compiler produces executables we can run.  If not, either
3871# the compiler is broken, or we cross compile.
3872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3873printf %s "checking whether we are cross compiling... " >&6; }
3874if test "$cross_compiling" != yes; then
3875  { { ac_try="$ac_link"
3876case "(($ac_try" in
3877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878  *) ac_try_echo=$ac_try;;
3879esac
3880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3881printf "%s\n" "$ac_try_echo"; } >&5
3882  (eval "$ac_link") 2>&5
3883  ac_status=$?
3884  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3885  test $ac_status = 0; }
3886  if { ac_try='./conftest$ac_cv_exeext'
3887  { { case "(($ac_try" in
3888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889  *) ac_try_echo=$ac_try;;
3890esac
3891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3892printf "%s\n" "$ac_try_echo"; } >&5
3893  (eval "$ac_try") 2>&5
3894  ac_status=$?
3895  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3896  test $ac_status = 0; }; }; then
3897    cross_compiling=no
3898  else
3899    if test "$cross_compiling" = maybe; then
3900	cross_compiling=yes
3901    else
3902	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3903printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3904as_fn_error 77 "cannot run C compiled programs.
3905If you meant to cross compile, use '--host'.
3906See 'config.log' for more details" "$LINENO" 5; }
3907    fi
3908  fi
3909fi
3910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3911printf "%s\n" "$cross_compiling" >&6; }
3912
3913rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3914  conftest.o conftest.obj conftest.out
3915ac_clean_files=$ac_clean_files_save
3916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3917printf %s "checking for suffix of object files... " >&6; }
3918if test ${ac_cv_objext+y}
3919then :
3920  printf %s "(cached) " >&6
3921else case e in #(
3922  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923/* end confdefs.h.  */
3924
3925int
3926main (void)
3927{
3928
3929  ;
3930  return 0;
3931}
3932_ACEOF
3933rm -f conftest.o conftest.obj
3934if { { ac_try="$ac_compile"
3935case "(($ac_try" in
3936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937  *) ac_try_echo=$ac_try;;
3938esac
3939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3940printf "%s\n" "$ac_try_echo"; } >&5
3941  (eval "$ac_compile") 2>&5
3942  ac_status=$?
3943  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3944  test $ac_status = 0; }
3945then :
3946  for ac_file in conftest.o conftest.obj conftest.*; do
3947  test -f "$ac_file" || continue;
3948  case $ac_file in
3949    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3950    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3951       break;;
3952  esac
3953done
3954else case e in #(
3955  e) printf "%s\n" "$as_me: failed program was:" >&5
3956sed 's/^/| /' conftest.$ac_ext >&5
3957
3958{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3959printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3960as_fn_error $? "cannot compute suffix of object files: cannot compile
3961See 'config.log' for more details" "$LINENO" 5; } ;;
3962esac
3963fi
3964rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3965esac
3966fi
3967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3968printf "%s\n" "$ac_cv_objext" >&6; }
3969OBJEXT=$ac_cv_objext
3970ac_objext=$OBJEXT
3971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3972printf %s "checking whether the compiler supports GNU C... " >&6; }
3973if test ${ac_cv_c_compiler_gnu+y}
3974then :
3975  printf %s "(cached) " >&6
3976else case e in #(
3977  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978/* end confdefs.h.  */
3979
3980int
3981main (void)
3982{
3983#ifndef __GNUC__
3984       choke me
3985#endif
3986
3987  ;
3988  return 0;
3989}
3990_ACEOF
3991if ac_fn_c_try_compile "$LINENO"
3992then :
3993  ac_compiler_gnu=yes
3994else case e in #(
3995  e) ac_compiler_gnu=no ;;
3996esac
3997fi
3998rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3999ac_cv_c_compiler_gnu=$ac_compiler_gnu
4000 ;;
4001esac
4002fi
4003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4004printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4005ac_compiler_gnu=$ac_cv_c_compiler_gnu
4006
4007if test $ac_compiler_gnu = yes; then
4008  GCC=yes
4009else
4010  GCC=
4011fi
4012ac_test_CFLAGS=${CFLAGS+y}
4013ac_save_CFLAGS=$CFLAGS
4014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4015printf %s "checking whether $CC accepts -g... " >&6; }
4016if test ${ac_cv_prog_cc_g+y}
4017then :
4018  printf %s "(cached) " >&6
4019else case e in #(
4020  e) ac_save_c_werror_flag=$ac_c_werror_flag
4021   ac_c_werror_flag=yes
4022   ac_cv_prog_cc_g=no
4023   CFLAGS="-g"
4024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025/* end confdefs.h.  */
4026
4027int
4028main (void)
4029{
4030
4031  ;
4032  return 0;
4033}
4034_ACEOF
4035if ac_fn_c_try_compile "$LINENO"
4036then :
4037  ac_cv_prog_cc_g=yes
4038else case e in #(
4039  e) CFLAGS=""
4040      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041/* end confdefs.h.  */
4042
4043int
4044main (void)
4045{
4046
4047  ;
4048  return 0;
4049}
4050_ACEOF
4051if ac_fn_c_try_compile "$LINENO"
4052then :
4053
4054else case e in #(
4055  e) ac_c_werror_flag=$ac_save_c_werror_flag
4056	 CFLAGS="-g"
4057	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058/* end confdefs.h.  */
4059
4060int
4061main (void)
4062{
4063
4064  ;
4065  return 0;
4066}
4067_ACEOF
4068if ac_fn_c_try_compile "$LINENO"
4069then :
4070  ac_cv_prog_cc_g=yes
4071fi
4072rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4073esac
4074fi
4075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4076esac
4077fi
4078rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4079   ac_c_werror_flag=$ac_save_c_werror_flag ;;
4080esac
4081fi
4082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4083printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4084if test $ac_test_CFLAGS; then
4085  CFLAGS=$ac_save_CFLAGS
4086elif test $ac_cv_prog_cc_g = yes; then
4087  if test "$GCC" = yes; then
4088    CFLAGS="-g -O2"
4089  else
4090    CFLAGS="-g"
4091  fi
4092else
4093  if test "$GCC" = yes; then
4094    CFLAGS="-O2"
4095  else
4096    CFLAGS=
4097  fi
4098fi
4099ac_prog_cc_stdc=no
4100if test x$ac_prog_cc_stdc = xno
4101then :
4102  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4103printf %s "checking for $CC option to enable C11 features... " >&6; }
4104if test ${ac_cv_prog_cc_c11+y}
4105then :
4106  printf %s "(cached) " >&6
4107else case e in #(
4108  e) ac_cv_prog_cc_c11=no
4109ac_save_CC=$CC
4110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111/* end confdefs.h.  */
4112$ac_c_conftest_c11_program
4113_ACEOF
4114for ac_arg in '' -std=gnu11
4115do
4116  CC="$ac_save_CC $ac_arg"
4117  if ac_fn_c_try_compile "$LINENO"
4118then :
4119  ac_cv_prog_cc_c11=$ac_arg
4120fi
4121rm -f core conftest.err conftest.$ac_objext conftest.beam
4122  test "x$ac_cv_prog_cc_c11" != "xno" && break
4123done
4124rm -f conftest.$ac_ext
4125CC=$ac_save_CC ;;
4126esac
4127fi
4128
4129if test "x$ac_cv_prog_cc_c11" = xno
4130then :
4131  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4132printf "%s\n" "unsupported" >&6; }
4133else case e in #(
4134  e) if test "x$ac_cv_prog_cc_c11" = x
4135then :
4136  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4137printf "%s\n" "none needed" >&6; }
4138else case e in #(
4139  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4140printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4141     CC="$CC $ac_cv_prog_cc_c11" ;;
4142esac
4143fi
4144  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4145  ac_prog_cc_stdc=c11 ;;
4146esac
4147fi
4148fi
4149if test x$ac_prog_cc_stdc = xno
4150then :
4151  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4152printf %s "checking for $CC option to enable C99 features... " >&6; }
4153if test ${ac_cv_prog_cc_c99+y}
4154then :
4155  printf %s "(cached) " >&6
4156else case e in #(
4157  e) ac_cv_prog_cc_c99=no
4158ac_save_CC=$CC
4159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160/* end confdefs.h.  */
4161$ac_c_conftest_c99_program
4162_ACEOF
4163for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4164do
4165  CC="$ac_save_CC $ac_arg"
4166  if ac_fn_c_try_compile "$LINENO"
4167then :
4168  ac_cv_prog_cc_c99=$ac_arg
4169fi
4170rm -f core conftest.err conftest.$ac_objext conftest.beam
4171  test "x$ac_cv_prog_cc_c99" != "xno" && break
4172done
4173rm -f conftest.$ac_ext
4174CC=$ac_save_CC ;;
4175esac
4176fi
4177
4178if test "x$ac_cv_prog_cc_c99" = xno
4179then :
4180  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4181printf "%s\n" "unsupported" >&6; }
4182else case e in #(
4183  e) if test "x$ac_cv_prog_cc_c99" = x
4184then :
4185  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4186printf "%s\n" "none needed" >&6; }
4187else case e in #(
4188  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4189printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4190     CC="$CC $ac_cv_prog_cc_c99" ;;
4191esac
4192fi
4193  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4194  ac_prog_cc_stdc=c99 ;;
4195esac
4196fi
4197fi
4198if test x$ac_prog_cc_stdc = xno
4199then :
4200  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4201printf %s "checking for $CC option to enable C89 features... " >&6; }
4202if test ${ac_cv_prog_cc_c89+y}
4203then :
4204  printf %s "(cached) " >&6
4205else case e in #(
4206  e) ac_cv_prog_cc_c89=no
4207ac_save_CC=$CC
4208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209/* end confdefs.h.  */
4210$ac_c_conftest_c89_program
4211_ACEOF
4212for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4213do
4214  CC="$ac_save_CC $ac_arg"
4215  if ac_fn_c_try_compile "$LINENO"
4216then :
4217  ac_cv_prog_cc_c89=$ac_arg
4218fi
4219rm -f core conftest.err conftest.$ac_objext conftest.beam
4220  test "x$ac_cv_prog_cc_c89" != "xno" && break
4221done
4222rm -f conftest.$ac_ext
4223CC=$ac_save_CC ;;
4224esac
4225fi
4226
4227if test "x$ac_cv_prog_cc_c89" = xno
4228then :
4229  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4230printf "%s\n" "unsupported" >&6; }
4231else case e in #(
4232  e) if test "x$ac_cv_prog_cc_c89" = x
4233then :
4234  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4235printf "%s\n" "none needed" >&6; }
4236else case e in #(
4237  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4238printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4239     CC="$CC $ac_cv_prog_cc_c89" ;;
4240esac
4241fi
4242  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4243  ac_prog_cc_stdc=c89 ;;
4244esac
4245fi
4246fi
4247
4248ac_ext=c
4249ac_cpp='$CPP $CPPFLAGS'
4250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4252ac_compiler_gnu=$ac_cv_c_compiler_gnu
4253
4254
4255  ac_ext=c
4256ac_cpp='$CPP $CPPFLAGS'
4257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4259ac_compiler_gnu=$ac_cv_c_compiler_gnu
4260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4261printf %s "checking whether $CC understands -c and -o together... " >&6; }
4262if test ${am_cv_prog_cc_c_o+y}
4263then :
4264  printf %s "(cached) " >&6
4265else case e in #(
4266  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267/* end confdefs.h.  */
4268
4269int
4270main (void)
4271{
4272
4273  ;
4274  return 0;
4275}
4276_ACEOF
4277  # Make sure it works both with $CC and with simple cc.
4278  # Following AC_PROG_CC_C_O, we do the test twice because some
4279  # compilers refuse to overwrite an existing .o file with -o,
4280  # though they will create one.
4281  am_cv_prog_cc_c_o=yes
4282  for am_i in 1 2; do
4283    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4284   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4285   ac_status=$?
4286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287   (exit $ac_status); } \
4288         && test -f conftest2.$ac_objext; then
4289      : OK
4290    else
4291      am_cv_prog_cc_c_o=no
4292      break
4293    fi
4294  done
4295  rm -f core conftest*
4296  unset am_i ;;
4297esac
4298fi
4299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4300printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4301if test "$am_cv_prog_cc_c_o" != yes; then
4302   # Losing compiler, so override with the script.
4303   # FIXME: It is wrong to rewrite CC.
4304   # But if we don't then we get into trouble of one sort or another.
4305   # A longer-term fix would be to have automake use am__CC in this case,
4306   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4307   CC="$am_aux_dir/compile $CC"
4308fi
4309ac_ext=c
4310ac_cpp='$CPP $CPPFLAGS'
4311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4313ac_compiler_gnu=$ac_cv_c_compiler_gnu
4314
4315
4316depcc="$CC"   am_compiler_list=
4317
4318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4319printf %s "checking dependency style of $depcc... " >&6; }
4320if test ${am_cv_CC_dependencies_compiler_type+y}
4321then :
4322  printf %s "(cached) " >&6
4323else case e in #(
4324  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4325  # We make a subdir and do the tests there.  Otherwise we can end up
4326  # making bogus files that we don't know about and never remove.  For
4327  # instance it was reported that on HP-UX the gcc test will end up
4328  # making a dummy file named 'D' -- because '-MD' means "put the output
4329  # in D".
4330  rm -rf conftest.dir
4331  mkdir conftest.dir
4332  # Copy depcomp to subdir because otherwise we won't find it if we're
4333  # using a relative directory.
4334  cp "$am_depcomp" conftest.dir
4335  cd conftest.dir
4336  # We will build objects and dependencies in a subdirectory because
4337  # it helps to detect inapplicable dependency modes.  For instance
4338  # both Tru64's cc and ICC support -MD to output dependencies as a
4339  # side effect of compilation, but ICC will put the dependencies in
4340  # the current directory while Tru64 will put them in the object
4341  # directory.
4342  mkdir sub
4343
4344  am_cv_CC_dependencies_compiler_type=none
4345  if test "$am_compiler_list" = ""; then
4346     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4347  fi
4348  am__universal=false
4349  case " $depcc " in #(
4350     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4351     esac
4352
4353  for depmode in $am_compiler_list; do
4354    # Setup a source with many dependencies, because some compilers
4355    # like to wrap large dependency lists on column 80 (with \), and
4356    # we should not choose a depcomp mode which is confused by this.
4357    #
4358    # We need to recreate these files for each test, as the compiler may
4359    # overwrite some of them when testing with obscure command lines.
4360    # This happens at least with the AIX C compiler.
4361    : > sub/conftest.c
4362    for i in 1 2 3 4 5 6; do
4363      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4364      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4365      # Solaris 10 /bin/sh.
4366      echo '/* dummy */' > sub/conftst$i.h
4367    done
4368    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4369
4370    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4371    # mode.  It turns out that the SunPro C++ compiler does not properly
4372    # handle '-M -o', and we need to detect this.  Also, some Intel
4373    # versions had trouble with output in subdirs.
4374    am__obj=sub/conftest.${OBJEXT-o}
4375    am__minus_obj="-o $am__obj"
4376    case $depmode in
4377    gcc)
4378      # This depmode causes a compiler race in universal mode.
4379      test "$am__universal" = false || continue
4380      ;;
4381    nosideeffect)
4382      # After this tag, mechanisms are not by side-effect, so they'll
4383      # only be used when explicitly requested.
4384      if test "x$enable_dependency_tracking" = xyes; then
4385	continue
4386      else
4387	break
4388      fi
4389      ;;
4390    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4391      # This compiler won't grok '-c -o', but also, the minuso test has
4392      # not run yet.  These depmodes are late enough in the game, and
4393      # so weak that their functioning should not be impacted.
4394      am__obj=conftest.${OBJEXT-o}
4395      am__minus_obj=
4396      ;;
4397    none) break ;;
4398    esac
4399    if depmode=$depmode \
4400       source=sub/conftest.c object=$am__obj \
4401       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4402       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4403         >/dev/null 2>conftest.err &&
4404       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4405       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4406       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4407       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4408      # icc doesn't choke on unknown options, it will just issue warnings
4409      # or remarks (even with -Werror).  So we grep stderr for any message
4410      # that says an option was ignored or not supported.
4411      # When given -MP, icc 7.0 and 7.1 complain thusly:
4412      #   icc: Command line warning: ignoring option '-M'; no argument required
4413      # The diagnosis changed in icc 8.0:
4414      #   icc: Command line remark: option '-MP' not supported
4415      if (grep 'ignoring option' conftest.err ||
4416          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4417        am_cv_CC_dependencies_compiler_type=$depmode
4418        break
4419      fi
4420    fi
4421  done
4422
4423  cd ..
4424  rm -rf conftest.dir
4425else
4426  am_cv_CC_dependencies_compiler_type=none
4427fi
4428 ;;
4429esac
4430fi
4431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4432printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4433CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4434
4435 if
4436  test "x$enable_dependency_tracking" != xno \
4437  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4438  am__fastdepCC_TRUE=
4439  am__fastdepCC_FALSE='#'
4440else
4441  am__fastdepCC_TRUE='#'
4442  am__fastdepCC_FALSE=
4443fi
4444
4445
4446
4447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4448printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4449if test ${ac_cv_c_undeclared_builtin_options+y}
4450then :
4451  printf %s "(cached) " >&6
4452else case e in #(
4453  e) ac_save_CFLAGS=$CFLAGS
4454   ac_cv_c_undeclared_builtin_options='cannot detect'
4455   for ac_arg in '' -fno-builtin; do
4456     CFLAGS="$ac_save_CFLAGS $ac_arg"
4457     # This test program should *not* compile successfully.
4458     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459/* end confdefs.h.  */
4460
4461int
4462main (void)
4463{
4464(void) strchr;
4465  ;
4466  return 0;
4467}
4468_ACEOF
4469if ac_fn_c_try_compile "$LINENO"
4470then :
4471
4472else case e in #(
4473  e) # This test program should compile successfully.
4474        # No library function is consistently available on
4475        # freestanding implementations, so test against a dummy
4476        # declaration.  Include always-available headers on the
4477        # off chance that they somehow elicit warnings.
4478        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479/* end confdefs.h.  */
4480#include <float.h>
4481#include <limits.h>
4482#include <stdarg.h>
4483#include <stddef.h>
4484extern void ac_decl (int, char *);
4485
4486int
4487main (void)
4488{
4489(void) ac_decl (0, (char *) 0);
4490  (void) ac_decl;
4491
4492  ;
4493  return 0;
4494}
4495_ACEOF
4496if ac_fn_c_try_compile "$LINENO"
4497then :
4498  if test x"$ac_arg" = x
4499then :
4500  ac_cv_c_undeclared_builtin_options='none needed'
4501else case e in #(
4502  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4503esac
4504fi
4505          break
4506fi
4507rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4508esac
4509fi
4510rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4511    done
4512    CFLAGS=$ac_save_CFLAGS
4513   ;;
4514esac
4515fi
4516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4517printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4518  case $ac_cv_c_undeclared_builtin_options in #(
4519  'cannot detect') :
4520    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4521printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4522as_fn_error $? "cannot make $CC report undeclared builtins
4523See 'config.log' for more details" "$LINENO" 5; } ;; #(
4524  'none needed') :
4525    ac_c_undeclared_builtin_options='' ;; #(
4526  *) :
4527    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4528esac
4529
4530ac_header= ac_cache=
4531for ac_item in $ac_header_c_list
4532do
4533  if test $ac_cache; then
4534    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4535    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4536      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4537    fi
4538    ac_header= ac_cache=
4539  elif test $ac_header; then
4540    ac_cache=$ac_item
4541  else
4542    ac_header=$ac_item
4543  fi
4544done
4545
4546
4547
4548
4549
4550
4551
4552
4553if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4554then :
4555
4556printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4557
4558fi
4559
4560
4561
4562
4563ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4564if test "x$ac_cv_have_decl___clang__" = xyes
4565then :
4566  CLANGCC="yes"
4567else case e in #(
4568  e) CLANGCC="no" ;;
4569esac
4570fi
4571ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4572if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4573then :
4574  INTELCC="yes"
4575else case e in #(
4576  e) INTELCC="no" ;;
4577esac
4578fi
4579ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4580if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4581then :
4582  SUNCC="yes"
4583else case e in #(
4584  e) SUNCC="no" ;;
4585esac
4586fi
4587
4588
4589
4590
4591
4592
4593
4594
4595if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4596	if test -n "$ac_tool_prefix"; then
4597  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4598set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600printf %s "checking for $ac_word... " >&6; }
4601if test ${ac_cv_path_PKG_CONFIG+y}
4602then :
4603  printf %s "(cached) " >&6
4604else case e in #(
4605  e) case $PKG_CONFIG in
4606  [\\/]* | ?:[\\/]*)
4607  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4608  ;;
4609  *)
4610  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611for as_dir in $PATH
4612do
4613  IFS=$as_save_IFS
4614  case $as_dir in #(((
4615    '') as_dir=./ ;;
4616    */) ;;
4617    *) as_dir=$as_dir/ ;;
4618  esac
4619    for ac_exec_ext in '' $ac_executable_extensions; do
4620  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4621    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4622    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4623    break 2
4624  fi
4625done
4626  done
4627IFS=$as_save_IFS
4628
4629  ;;
4630esac ;;
4631esac
4632fi
4633PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4634if test -n "$PKG_CONFIG"; then
4635  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4636printf "%s\n" "$PKG_CONFIG" >&6; }
4637else
4638  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4639printf "%s\n" "no" >&6; }
4640fi
4641
4642
4643fi
4644if test -z "$ac_cv_path_PKG_CONFIG"; then
4645  ac_pt_PKG_CONFIG=$PKG_CONFIG
4646  # Extract the first word of "pkg-config", so it can be a program name with args.
4647set dummy pkg-config; ac_word=$2
4648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4649printf %s "checking for $ac_word... " >&6; }
4650if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4651then :
4652  printf %s "(cached) " >&6
4653else case e in #(
4654  e) case $ac_pt_PKG_CONFIG in
4655  [\\/]* | ?:[\\/]*)
4656  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4657  ;;
4658  *)
4659  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660for as_dir in $PATH
4661do
4662  IFS=$as_save_IFS
4663  case $as_dir in #(((
4664    '') as_dir=./ ;;
4665    */) ;;
4666    *) as_dir=$as_dir/ ;;
4667  esac
4668    for ac_exec_ext in '' $ac_executable_extensions; do
4669  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4670    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4671    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4672    break 2
4673  fi
4674done
4675  done
4676IFS=$as_save_IFS
4677
4678  ;;
4679esac ;;
4680esac
4681fi
4682ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4683if test -n "$ac_pt_PKG_CONFIG"; then
4684  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4685printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4686else
4687  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688printf "%s\n" "no" >&6; }
4689fi
4690
4691  if test "x$ac_pt_PKG_CONFIG" = x; then
4692    PKG_CONFIG=""
4693  else
4694    case $cross_compiling:$ac_tool_warned in
4695yes:)
4696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4697printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4698ac_tool_warned=yes ;;
4699esac
4700    PKG_CONFIG=$ac_pt_PKG_CONFIG
4701  fi
4702else
4703  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4704fi
4705
4706fi
4707if test -n "$PKG_CONFIG"; then
4708	_pkg_min_version=0.9.0
4709	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4710printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4711	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4712		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4713printf "%s\n" "yes" >&6; }
4714	else
4715		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716printf "%s\n" "no" >&6; }
4717		PKG_CONFIG=""
4718	fi
4719fi
4720
4721
4722  # Make sure we can run config.sub.
4723$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4724  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4725
4726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4727printf %s "checking build system type... " >&6; }
4728if test ${ac_cv_build+y}
4729then :
4730  printf %s "(cached) " >&6
4731else case e in #(
4732  e) ac_build_alias=$build_alias
4733test "x$ac_build_alias" = x &&
4734  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4735test "x$ac_build_alias" = x &&
4736  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4737ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4738  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4739 ;;
4740esac
4741fi
4742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4743printf "%s\n" "$ac_cv_build" >&6; }
4744case $ac_cv_build in
4745*-*-*) ;;
4746*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4747esac
4748build=$ac_cv_build
4749ac_save_IFS=$IFS; IFS='-'
4750set x $ac_cv_build
4751shift
4752build_cpu=$1
4753build_vendor=$2
4754shift; shift
4755# Remember, the first character of IFS is used to create $*,
4756# except with old shells:
4757build_os=$*
4758IFS=$ac_save_IFS
4759case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4760
4761
4762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4763printf %s "checking host system type... " >&6; }
4764if test ${ac_cv_host+y}
4765then :
4766  printf %s "(cached) " >&6
4767else case e in #(
4768  e) if test "x$host_alias" = x; then
4769  ac_cv_host=$ac_cv_build
4770else
4771  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4772    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4773fi
4774 ;;
4775esac
4776fi
4777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4778printf "%s\n" "$ac_cv_host" >&6; }
4779case $ac_cv_host in
4780*-*-*) ;;
4781*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4782esac
4783host=$ac_cv_host
4784ac_save_IFS=$IFS; IFS='-'
4785set x $ac_cv_host
4786shift
4787host_cpu=$1
4788host_vendor=$2
4789shift; shift
4790# Remember, the first character of IFS is used to create $*,
4791# except with old shells:
4792host_os=$*
4793IFS=$ac_save_IFS
4794case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4795
4796
4797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4798printf %s "checking for a sed that does not truncate output... " >&6; }
4799if test ${ac_cv_path_SED+y}
4800then :
4801  printf %s "(cached) " >&6
4802else case e in #(
4803  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4804     for ac_i in 1 2 3 4 5 6 7; do
4805       ac_script="$ac_script$as_nl$ac_script"
4806     done
4807     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4808     { ac_script=; unset ac_script;}
4809     if test -z "$SED"; then
4810  ac_path_SED_found=false
4811  # Loop through the user's path and test for each of PROGNAME-LIST
4812  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813for as_dir in $PATH
4814do
4815  IFS=$as_save_IFS
4816  case $as_dir in #(((
4817    '') as_dir=./ ;;
4818    */) ;;
4819    *) as_dir=$as_dir/ ;;
4820  esac
4821    for ac_prog in sed gsed
4822   do
4823    for ac_exec_ext in '' $ac_executable_extensions; do
4824      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4825      as_fn_executable_p "$ac_path_SED" || continue
4826# Check for GNU ac_path_SED and select it if it is found.
4827  # Check for GNU $ac_path_SED
4828case `"$ac_path_SED" --version 2>&1` in #(
4829*GNU*)
4830  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4831#(
4832*)
4833  ac_count=0
4834  printf %s 0123456789 >"conftest.in"
4835  while :
4836  do
4837    cat "conftest.in" "conftest.in" >"conftest.tmp"
4838    mv "conftest.tmp" "conftest.in"
4839    cp "conftest.in" "conftest.nl"
4840    printf "%s\n" '' >> "conftest.nl"
4841    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4842    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4843    as_fn_arith $ac_count + 1 && ac_count=$as_val
4844    if test $ac_count -gt ${ac_path_SED_max-0}; then
4845      # Best one so far, save it but keep looking for a better one
4846      ac_cv_path_SED="$ac_path_SED"
4847      ac_path_SED_max=$ac_count
4848    fi
4849    # 10*(2^10) chars as input seems more than enough
4850    test $ac_count -gt 10 && break
4851  done
4852  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4853esac
4854
4855      $ac_path_SED_found && break 3
4856    done
4857  done
4858  done
4859IFS=$as_save_IFS
4860  if test -z "$ac_cv_path_SED"; then
4861    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4862  fi
4863else
4864  ac_cv_path_SED=$SED
4865fi
4866 ;;
4867esac
4868fi
4869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4870printf "%s\n" "$ac_cv_path_SED" >&6; }
4871 SED="$ac_cv_path_SED"
4872  rm -f conftest.sed
4873
4874
4875
4876
4877
4878
4879# Check whether --enable-selective-werror was given.
4880if test ${enable_selective_werror+y}
4881then :
4882  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4883else case e in #(
4884  e) SELECTIVE_WERROR=yes ;;
4885esac
4886fi
4887
4888
4889
4890
4891
4892# -v is too short to test reliably with XORG_TESTSET_CFLAG
4893if test "x$SUNCC" = "xyes"; then
4894    BASE_CFLAGS="-v"
4895else
4896    BASE_CFLAGS=""
4897fi
4898
4899# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913xorg_testset_save_CFLAGS="$CFLAGS"
4914
4915if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4916	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4917	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4918printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4919if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4920then :
4921  printf %s "(cached) " >&6
4922else case e in #(
4923  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924/* end confdefs.h.  */
4925int i;
4926_ACEOF
4927if ac_fn_c_try_compile "$LINENO"
4928then :
4929  xorg_cv_cc_flag_unknown_warning_option=yes
4930else case e in #(
4931  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
4932esac
4933fi
4934rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4935esac
4936fi
4937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4938printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4939	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4940	CFLAGS="$xorg_testset_save_CFLAGS"
4941fi
4942
4943if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4944	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4945		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4946	fi
4947	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4948	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4949printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4950if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4951then :
4952  printf %s "(cached) " >&6
4953else case e in #(
4954  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955/* end confdefs.h.  */
4956int i;
4957_ACEOF
4958if ac_fn_c_try_compile "$LINENO"
4959then :
4960  xorg_cv_cc_flag_unused_command_line_argument=yes
4961else case e in #(
4962  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
4963esac
4964fi
4965rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4966esac
4967fi
4968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4969printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4970	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4971	CFLAGS="$xorg_testset_save_CFLAGS"
4972fi
4973
4974found="no"
4975
4976	if test $found = "no" ; then
4977		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4978			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4979		fi
4980
4981		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4982			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4983		fi
4984
4985		CFLAGS="$CFLAGS -Wall"
4986
4987		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4988printf %s "checking if $CC supports -Wall... " >&6; }
4989		cacheid=xorg_cv_cc_flag__Wall
4990		if eval test \${$cacheid+y}
4991then :
4992  printf %s "(cached) " >&6
4993else case e in #(
4994  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995/* end confdefs.h.  */
4996int i;
4997int
4998main (void)
4999{
5000
5001  ;
5002  return 0;
5003}
5004_ACEOF
5005if ac_fn_c_try_link "$LINENO"
5006then :
5007  eval $cacheid=yes
5008else case e in #(
5009  e) eval $cacheid=no ;;
5010esac
5011fi
5012rm -f core conftest.err conftest.$ac_objext conftest.beam \
5013    conftest$ac_exeext conftest.$ac_ext ;;
5014esac
5015fi
5016
5017
5018		CFLAGS="$xorg_testset_save_CFLAGS"
5019
5020		eval supported=\$$cacheid
5021		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5022printf "%s\n" "$supported" >&6; }
5023		if test "$supported" = "yes" ; then
5024			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5025			found="yes"
5026		fi
5027	fi
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043xorg_testset_save_CFLAGS="$CFLAGS"
5044
5045if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5046	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5047	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5048printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5049if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5050then :
5051  printf %s "(cached) " >&6
5052else case e in #(
5053  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5054/* end confdefs.h.  */
5055int i;
5056_ACEOF
5057if ac_fn_c_try_compile "$LINENO"
5058then :
5059  xorg_cv_cc_flag_unknown_warning_option=yes
5060else case e in #(
5061  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5062esac
5063fi
5064rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5065esac
5066fi
5067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5068printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5069	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5070	CFLAGS="$xorg_testset_save_CFLAGS"
5071fi
5072
5073if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5074	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5075		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5076	fi
5077	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5078	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5079printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5080if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5081then :
5082  printf %s "(cached) " >&6
5083else case e in #(
5084  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5085/* end confdefs.h.  */
5086int i;
5087_ACEOF
5088if ac_fn_c_try_compile "$LINENO"
5089then :
5090  xorg_cv_cc_flag_unused_command_line_argument=yes
5091else case e in #(
5092  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5093esac
5094fi
5095rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5096esac
5097fi
5098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5099printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5100	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5101	CFLAGS="$xorg_testset_save_CFLAGS"
5102fi
5103
5104found="no"
5105
5106	if test $found = "no" ; then
5107		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5108			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5109		fi
5110
5111		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5112			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5113		fi
5114
5115		CFLAGS="$CFLAGS -Wpointer-arith"
5116
5117		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5118printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5119		cacheid=xorg_cv_cc_flag__Wpointer_arith
5120		if eval test \${$cacheid+y}
5121then :
5122  printf %s "(cached) " >&6
5123else case e in #(
5124  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5125/* end confdefs.h.  */
5126int i;
5127int
5128main (void)
5129{
5130
5131  ;
5132  return 0;
5133}
5134_ACEOF
5135if ac_fn_c_try_link "$LINENO"
5136then :
5137  eval $cacheid=yes
5138else case e in #(
5139  e) eval $cacheid=no ;;
5140esac
5141fi
5142rm -f core conftest.err conftest.$ac_objext conftest.beam \
5143    conftest$ac_exeext conftest.$ac_ext ;;
5144esac
5145fi
5146
5147
5148		CFLAGS="$xorg_testset_save_CFLAGS"
5149
5150		eval supported=\$$cacheid
5151		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5152printf "%s\n" "$supported" >&6; }
5153		if test "$supported" = "yes" ; then
5154			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5155			found="yes"
5156		fi
5157	fi
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173xorg_testset_save_CFLAGS="$CFLAGS"
5174
5175if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5176	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5177	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5178printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5179if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5180then :
5181  printf %s "(cached) " >&6
5182else case e in #(
5183  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184/* end confdefs.h.  */
5185int i;
5186_ACEOF
5187if ac_fn_c_try_compile "$LINENO"
5188then :
5189  xorg_cv_cc_flag_unknown_warning_option=yes
5190else case e in #(
5191  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5192esac
5193fi
5194rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5195esac
5196fi
5197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5198printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5199	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5200	CFLAGS="$xorg_testset_save_CFLAGS"
5201fi
5202
5203if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5204	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5205		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5206	fi
5207	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5208	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5209printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5210if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5211then :
5212  printf %s "(cached) " >&6
5213else case e in #(
5214  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215/* end confdefs.h.  */
5216int i;
5217_ACEOF
5218if ac_fn_c_try_compile "$LINENO"
5219then :
5220  xorg_cv_cc_flag_unused_command_line_argument=yes
5221else case e in #(
5222  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5223esac
5224fi
5225rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5226esac
5227fi
5228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5229printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5230	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5231	CFLAGS="$xorg_testset_save_CFLAGS"
5232fi
5233
5234found="no"
5235
5236	if test $found = "no" ; then
5237		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5238			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5239		fi
5240
5241		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5242			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5243		fi
5244
5245		CFLAGS="$CFLAGS -Wmissing-declarations"
5246
5247		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5248printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5249		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5250		if eval test \${$cacheid+y}
5251then :
5252  printf %s "(cached) " >&6
5253else case e in #(
5254  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5255/* end confdefs.h.  */
5256int i;
5257int
5258main (void)
5259{
5260
5261  ;
5262  return 0;
5263}
5264_ACEOF
5265if ac_fn_c_try_link "$LINENO"
5266then :
5267  eval $cacheid=yes
5268else case e in #(
5269  e) eval $cacheid=no ;;
5270esac
5271fi
5272rm -f core conftest.err conftest.$ac_objext conftest.beam \
5273    conftest$ac_exeext conftest.$ac_ext ;;
5274esac
5275fi
5276
5277
5278		CFLAGS="$xorg_testset_save_CFLAGS"
5279
5280		eval supported=\$$cacheid
5281		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5282printf "%s\n" "$supported" >&6; }
5283		if test "$supported" = "yes" ; then
5284			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5285			found="yes"
5286		fi
5287	fi
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303xorg_testset_save_CFLAGS="$CFLAGS"
5304
5305if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5306	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5307	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5308printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5309if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5310then :
5311  printf %s "(cached) " >&6
5312else case e in #(
5313  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314/* end confdefs.h.  */
5315int i;
5316_ACEOF
5317if ac_fn_c_try_compile "$LINENO"
5318then :
5319  xorg_cv_cc_flag_unknown_warning_option=yes
5320else case e in #(
5321  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5322esac
5323fi
5324rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5325esac
5326fi
5327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5328printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5329	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5330	CFLAGS="$xorg_testset_save_CFLAGS"
5331fi
5332
5333if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5334	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5335		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5336	fi
5337	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5338	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5339printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5340if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5341then :
5342  printf %s "(cached) " >&6
5343else case e in #(
5344  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345/* end confdefs.h.  */
5346int i;
5347_ACEOF
5348if ac_fn_c_try_compile "$LINENO"
5349then :
5350  xorg_cv_cc_flag_unused_command_line_argument=yes
5351else case e in #(
5352  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5353esac
5354fi
5355rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5356esac
5357fi
5358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5359printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5360	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5361	CFLAGS="$xorg_testset_save_CFLAGS"
5362fi
5363
5364found="no"
5365
5366	if test $found = "no" ; then
5367		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5368			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5369		fi
5370
5371		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5372			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5373		fi
5374
5375		CFLAGS="$CFLAGS -Wformat=2"
5376
5377		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5378printf %s "checking if $CC supports -Wformat=2... " >&6; }
5379		cacheid=xorg_cv_cc_flag__Wformat_2
5380		if eval test \${$cacheid+y}
5381then :
5382  printf %s "(cached) " >&6
5383else case e in #(
5384  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385/* end confdefs.h.  */
5386int i;
5387int
5388main (void)
5389{
5390
5391  ;
5392  return 0;
5393}
5394_ACEOF
5395if ac_fn_c_try_link "$LINENO"
5396then :
5397  eval $cacheid=yes
5398else case e in #(
5399  e) eval $cacheid=no ;;
5400esac
5401fi
5402rm -f core conftest.err conftest.$ac_objext conftest.beam \
5403    conftest$ac_exeext conftest.$ac_ext ;;
5404esac
5405fi
5406
5407
5408		CFLAGS="$xorg_testset_save_CFLAGS"
5409
5410		eval supported=\$$cacheid
5411		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5412printf "%s\n" "$supported" >&6; }
5413		if test "$supported" = "yes" ; then
5414			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5415			found="yes"
5416		fi
5417	fi
5418
5419	if test $found = "no" ; then
5420		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5421			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5422		fi
5423
5424		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5425			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5426		fi
5427
5428		CFLAGS="$CFLAGS -Wformat"
5429
5430		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5431printf %s "checking if $CC supports -Wformat... " >&6; }
5432		cacheid=xorg_cv_cc_flag__Wformat
5433		if eval test \${$cacheid+y}
5434then :
5435  printf %s "(cached) " >&6
5436else case e in #(
5437  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438/* end confdefs.h.  */
5439int i;
5440int
5441main (void)
5442{
5443
5444  ;
5445  return 0;
5446}
5447_ACEOF
5448if ac_fn_c_try_link "$LINENO"
5449then :
5450  eval $cacheid=yes
5451else case e in #(
5452  e) eval $cacheid=no ;;
5453esac
5454fi
5455rm -f core conftest.err conftest.$ac_objext conftest.beam \
5456    conftest$ac_exeext conftest.$ac_ext ;;
5457esac
5458fi
5459
5460
5461		CFLAGS="$xorg_testset_save_CFLAGS"
5462
5463		eval supported=\$$cacheid
5464		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5465printf "%s\n" "$supported" >&6; }
5466		if test "$supported" = "yes" ; then
5467			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5468			found="yes"
5469		fi
5470	fi
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488xorg_testset_save_CFLAGS="$CFLAGS"
5489
5490if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5491	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5492	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5493printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5494if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5495then :
5496  printf %s "(cached) " >&6
5497else case e in #(
5498  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499/* end confdefs.h.  */
5500int i;
5501_ACEOF
5502if ac_fn_c_try_compile "$LINENO"
5503then :
5504  xorg_cv_cc_flag_unknown_warning_option=yes
5505else case e in #(
5506  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5507esac
5508fi
5509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5510esac
5511fi
5512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5513printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5514	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5515	CFLAGS="$xorg_testset_save_CFLAGS"
5516fi
5517
5518if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5519	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5520		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5521	fi
5522	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5523	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5524printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5525if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5526then :
5527  printf %s "(cached) " >&6
5528else case e in #(
5529  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530/* end confdefs.h.  */
5531int i;
5532_ACEOF
5533if ac_fn_c_try_compile "$LINENO"
5534then :
5535  xorg_cv_cc_flag_unused_command_line_argument=yes
5536else case e in #(
5537  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5538esac
5539fi
5540rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5541esac
5542fi
5543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5544printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5545	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5546	CFLAGS="$xorg_testset_save_CFLAGS"
5547fi
5548
5549found="no"
5550
5551	if test $found = "no" ; then
5552		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5553			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5554		fi
5555
5556		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5557			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5558		fi
5559
5560		CFLAGS="$CFLAGS -Wstrict-prototypes"
5561
5562		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5563printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5564		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5565		if eval test \${$cacheid+y}
5566then :
5567  printf %s "(cached) " >&6
5568else case e in #(
5569  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570/* end confdefs.h.  */
5571int i;
5572int
5573main (void)
5574{
5575
5576  ;
5577  return 0;
5578}
5579_ACEOF
5580if ac_fn_c_try_link "$LINENO"
5581then :
5582  eval $cacheid=yes
5583else case e in #(
5584  e) eval $cacheid=no ;;
5585esac
5586fi
5587rm -f core conftest.err conftest.$ac_objext conftest.beam \
5588    conftest$ac_exeext conftest.$ac_ext ;;
5589esac
5590fi
5591
5592
5593		CFLAGS="$xorg_testset_save_CFLAGS"
5594
5595		eval supported=\$$cacheid
5596		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5597printf "%s\n" "$supported" >&6; }
5598		if test "$supported" = "yes" ; then
5599			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5600			found="yes"
5601		fi
5602	fi
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618xorg_testset_save_CFLAGS="$CFLAGS"
5619
5620if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5621	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5622	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5623printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5624if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5625then :
5626  printf %s "(cached) " >&6
5627else case e in #(
5628  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629/* end confdefs.h.  */
5630int i;
5631_ACEOF
5632if ac_fn_c_try_compile "$LINENO"
5633then :
5634  xorg_cv_cc_flag_unknown_warning_option=yes
5635else case e in #(
5636  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5637esac
5638fi
5639rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5640esac
5641fi
5642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5643printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5644	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5645	CFLAGS="$xorg_testset_save_CFLAGS"
5646fi
5647
5648if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5649	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5650		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5651	fi
5652	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5653	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5654printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5655if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5656then :
5657  printf %s "(cached) " >&6
5658else case e in #(
5659  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660/* end confdefs.h.  */
5661int i;
5662_ACEOF
5663if ac_fn_c_try_compile "$LINENO"
5664then :
5665  xorg_cv_cc_flag_unused_command_line_argument=yes
5666else case e in #(
5667  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5668esac
5669fi
5670rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5671esac
5672fi
5673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5674printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5675	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5676	CFLAGS="$xorg_testset_save_CFLAGS"
5677fi
5678
5679found="no"
5680
5681	if test $found = "no" ; then
5682		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5683			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5684		fi
5685
5686		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5687			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5688		fi
5689
5690		CFLAGS="$CFLAGS -Wmissing-prototypes"
5691
5692		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5693printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5694		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5695		if eval test \${$cacheid+y}
5696then :
5697  printf %s "(cached) " >&6
5698else case e in #(
5699  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700/* end confdefs.h.  */
5701int i;
5702int
5703main (void)
5704{
5705
5706  ;
5707  return 0;
5708}
5709_ACEOF
5710if ac_fn_c_try_link "$LINENO"
5711then :
5712  eval $cacheid=yes
5713else case e in #(
5714  e) eval $cacheid=no ;;
5715esac
5716fi
5717rm -f core conftest.err conftest.$ac_objext conftest.beam \
5718    conftest$ac_exeext conftest.$ac_ext ;;
5719esac
5720fi
5721
5722
5723		CFLAGS="$xorg_testset_save_CFLAGS"
5724
5725		eval supported=\$$cacheid
5726		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5727printf "%s\n" "$supported" >&6; }
5728		if test "$supported" = "yes" ; then
5729			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5730			found="yes"
5731		fi
5732	fi
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748xorg_testset_save_CFLAGS="$CFLAGS"
5749
5750if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5751	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5752	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5753printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5754if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5755then :
5756  printf %s "(cached) " >&6
5757else case e in #(
5758  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759/* end confdefs.h.  */
5760int i;
5761_ACEOF
5762if ac_fn_c_try_compile "$LINENO"
5763then :
5764  xorg_cv_cc_flag_unknown_warning_option=yes
5765else case e in #(
5766  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5767esac
5768fi
5769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5770esac
5771fi
5772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5773printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5774	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5775	CFLAGS="$xorg_testset_save_CFLAGS"
5776fi
5777
5778if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5779	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5780		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5781	fi
5782	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5783	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5784printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5785if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5786then :
5787  printf %s "(cached) " >&6
5788else case e in #(
5789  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790/* end confdefs.h.  */
5791int i;
5792_ACEOF
5793if ac_fn_c_try_compile "$LINENO"
5794then :
5795  xorg_cv_cc_flag_unused_command_line_argument=yes
5796else case e in #(
5797  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5798esac
5799fi
5800rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5801esac
5802fi
5803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5804printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5805	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5806	CFLAGS="$xorg_testset_save_CFLAGS"
5807fi
5808
5809found="no"
5810
5811	if test $found = "no" ; then
5812		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5813			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5814		fi
5815
5816		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5817			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5818		fi
5819
5820		CFLAGS="$CFLAGS -Wnested-externs"
5821
5822		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5823printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5824		cacheid=xorg_cv_cc_flag__Wnested_externs
5825		if eval test \${$cacheid+y}
5826then :
5827  printf %s "(cached) " >&6
5828else case e in #(
5829  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5830/* end confdefs.h.  */
5831int i;
5832int
5833main (void)
5834{
5835
5836  ;
5837  return 0;
5838}
5839_ACEOF
5840if ac_fn_c_try_link "$LINENO"
5841then :
5842  eval $cacheid=yes
5843else case e in #(
5844  e) eval $cacheid=no ;;
5845esac
5846fi
5847rm -f core conftest.err conftest.$ac_objext conftest.beam \
5848    conftest$ac_exeext conftest.$ac_ext ;;
5849esac
5850fi
5851
5852
5853		CFLAGS="$xorg_testset_save_CFLAGS"
5854
5855		eval supported=\$$cacheid
5856		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5857printf "%s\n" "$supported" >&6; }
5858		if test "$supported" = "yes" ; then
5859			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5860			found="yes"
5861		fi
5862	fi
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878xorg_testset_save_CFLAGS="$CFLAGS"
5879
5880if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5881	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5882	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5883printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5884if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5885then :
5886  printf %s "(cached) " >&6
5887else case e in #(
5888  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5889/* end confdefs.h.  */
5890int i;
5891_ACEOF
5892if ac_fn_c_try_compile "$LINENO"
5893then :
5894  xorg_cv_cc_flag_unknown_warning_option=yes
5895else case e in #(
5896  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5897esac
5898fi
5899rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5900esac
5901fi
5902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5903printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5904	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5905	CFLAGS="$xorg_testset_save_CFLAGS"
5906fi
5907
5908if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5909	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5910		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5911	fi
5912	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5913	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5914printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5915if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5916then :
5917  printf %s "(cached) " >&6
5918else case e in #(
5919  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920/* end confdefs.h.  */
5921int i;
5922_ACEOF
5923if ac_fn_c_try_compile "$LINENO"
5924then :
5925  xorg_cv_cc_flag_unused_command_line_argument=yes
5926else case e in #(
5927  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5928esac
5929fi
5930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5931esac
5932fi
5933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5934printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5935	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5936	CFLAGS="$xorg_testset_save_CFLAGS"
5937fi
5938
5939found="no"
5940
5941	if test $found = "no" ; then
5942		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5943			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5944		fi
5945
5946		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5947			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5948		fi
5949
5950		CFLAGS="$CFLAGS -Wbad-function-cast"
5951
5952		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5953printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5954		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5955		if eval test \${$cacheid+y}
5956then :
5957  printf %s "(cached) " >&6
5958else case e in #(
5959  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5960/* end confdefs.h.  */
5961int i;
5962int
5963main (void)
5964{
5965
5966  ;
5967  return 0;
5968}
5969_ACEOF
5970if ac_fn_c_try_link "$LINENO"
5971then :
5972  eval $cacheid=yes
5973else case e in #(
5974  e) eval $cacheid=no ;;
5975esac
5976fi
5977rm -f core conftest.err conftest.$ac_objext conftest.beam \
5978    conftest$ac_exeext conftest.$ac_ext ;;
5979esac
5980fi
5981
5982
5983		CFLAGS="$xorg_testset_save_CFLAGS"
5984
5985		eval supported=\$$cacheid
5986		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5987printf "%s\n" "$supported" >&6; }
5988		if test "$supported" = "yes" ; then
5989			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5990			found="yes"
5991		fi
5992	fi
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008xorg_testset_save_CFLAGS="$CFLAGS"
6009
6010if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6011	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6012	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6013printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6014if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6015then :
6016  printf %s "(cached) " >&6
6017else case e in #(
6018  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6019/* end confdefs.h.  */
6020int i;
6021_ACEOF
6022if ac_fn_c_try_compile "$LINENO"
6023then :
6024  xorg_cv_cc_flag_unknown_warning_option=yes
6025else case e in #(
6026  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6027esac
6028fi
6029rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6030esac
6031fi
6032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6033printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6034	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6035	CFLAGS="$xorg_testset_save_CFLAGS"
6036fi
6037
6038if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6039	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6040		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6041	fi
6042	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6043	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6044printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6045if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6046then :
6047  printf %s "(cached) " >&6
6048else case e in #(
6049  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050/* end confdefs.h.  */
6051int i;
6052_ACEOF
6053if ac_fn_c_try_compile "$LINENO"
6054then :
6055  xorg_cv_cc_flag_unused_command_line_argument=yes
6056else case e in #(
6057  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6058esac
6059fi
6060rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6061esac
6062fi
6063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6064printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6065	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6066	CFLAGS="$xorg_testset_save_CFLAGS"
6067fi
6068
6069found="no"
6070
6071	if test $found = "no" ; then
6072		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6073			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6074		fi
6075
6076		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6077			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6078		fi
6079
6080		CFLAGS="$CFLAGS -Wold-style-definition"
6081
6082		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6083printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6084		cacheid=xorg_cv_cc_flag__Wold_style_definition
6085		if eval test \${$cacheid+y}
6086then :
6087  printf %s "(cached) " >&6
6088else case e in #(
6089  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090/* end confdefs.h.  */
6091int i;
6092int
6093main (void)
6094{
6095
6096  ;
6097  return 0;
6098}
6099_ACEOF
6100if ac_fn_c_try_link "$LINENO"
6101then :
6102  eval $cacheid=yes
6103else case e in #(
6104  e) eval $cacheid=no ;;
6105esac
6106fi
6107rm -f core conftest.err conftest.$ac_objext conftest.beam \
6108    conftest$ac_exeext conftest.$ac_ext ;;
6109esac
6110fi
6111
6112
6113		CFLAGS="$xorg_testset_save_CFLAGS"
6114
6115		eval supported=\$$cacheid
6116		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6117printf "%s\n" "$supported" >&6; }
6118		if test "$supported" = "yes" ; then
6119			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6120			found="yes"
6121		fi
6122	fi
6123
6124	if test $found = "no" ; then
6125		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6126			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6127		fi
6128
6129		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6130			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6131		fi
6132
6133		CFLAGS="$CFLAGS -fd"
6134
6135		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6136printf %s "checking if $CC supports -fd... " >&6; }
6137		cacheid=xorg_cv_cc_flag__fd
6138		if eval test \${$cacheid+y}
6139then :
6140  printf %s "(cached) " >&6
6141else case e in #(
6142  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6143/* end confdefs.h.  */
6144int i;
6145int
6146main (void)
6147{
6148
6149  ;
6150  return 0;
6151}
6152_ACEOF
6153if ac_fn_c_try_link "$LINENO"
6154then :
6155  eval $cacheid=yes
6156else case e in #(
6157  e) eval $cacheid=no ;;
6158esac
6159fi
6160rm -f core conftest.err conftest.$ac_objext conftest.beam \
6161    conftest$ac_exeext conftest.$ac_ext ;;
6162esac
6163fi
6164
6165
6166		CFLAGS="$xorg_testset_save_CFLAGS"
6167
6168		eval supported=\$$cacheid
6169		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6170printf "%s\n" "$supported" >&6; }
6171		if test "$supported" = "yes" ; then
6172			BASE_CFLAGS="$BASE_CFLAGS -fd"
6173			found="yes"
6174		fi
6175	fi
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191xorg_testset_save_CFLAGS="$CFLAGS"
6192
6193if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6194	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6195	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6196printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6197if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6198then :
6199  printf %s "(cached) " >&6
6200else case e in #(
6201  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6202/* end confdefs.h.  */
6203int i;
6204_ACEOF
6205if ac_fn_c_try_compile "$LINENO"
6206then :
6207  xorg_cv_cc_flag_unknown_warning_option=yes
6208else case e in #(
6209  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6210esac
6211fi
6212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6213esac
6214fi
6215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6216printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6217	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6218	CFLAGS="$xorg_testset_save_CFLAGS"
6219fi
6220
6221if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6222	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6223		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6224	fi
6225	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6226	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6227printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6228if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6229then :
6230  printf %s "(cached) " >&6
6231else case e in #(
6232  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233/* end confdefs.h.  */
6234int i;
6235_ACEOF
6236if ac_fn_c_try_compile "$LINENO"
6237then :
6238  xorg_cv_cc_flag_unused_command_line_argument=yes
6239else case e in #(
6240  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6241esac
6242fi
6243rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6244esac
6245fi
6246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6247printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6248	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6249	CFLAGS="$xorg_testset_save_CFLAGS"
6250fi
6251
6252found="no"
6253
6254	if test $found = "no" ; then
6255		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6256			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6257		fi
6258
6259		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6260			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6261		fi
6262
6263		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6264
6265		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6266printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6267		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6268		if eval test \${$cacheid+y}
6269then :
6270  printf %s "(cached) " >&6
6271else case e in #(
6272  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273/* end confdefs.h.  */
6274int i;
6275int
6276main (void)
6277{
6278
6279  ;
6280  return 0;
6281}
6282_ACEOF
6283if ac_fn_c_try_link "$LINENO"
6284then :
6285  eval $cacheid=yes
6286else case e in #(
6287  e) eval $cacheid=no ;;
6288esac
6289fi
6290rm -f core conftest.err conftest.$ac_objext conftest.beam \
6291    conftest$ac_exeext conftest.$ac_ext ;;
6292esac
6293fi
6294
6295
6296		CFLAGS="$xorg_testset_save_CFLAGS"
6297
6298		eval supported=\$$cacheid
6299		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6300printf "%s\n" "$supported" >&6; }
6301		if test "$supported" = "yes" ; then
6302			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6303			found="yes"
6304		fi
6305	fi
6306
6307
6308
6309
6310
6311# This chunk adds additional warnings that could catch undesired effects.
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325xorg_testset_save_CFLAGS="$CFLAGS"
6326
6327if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6328	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6329	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6330printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6331if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6332then :
6333  printf %s "(cached) " >&6
6334else case e in #(
6335  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6336/* end confdefs.h.  */
6337int i;
6338_ACEOF
6339if ac_fn_c_try_compile "$LINENO"
6340then :
6341  xorg_cv_cc_flag_unknown_warning_option=yes
6342else case e in #(
6343  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6344esac
6345fi
6346rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6347esac
6348fi
6349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6350printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6351	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6352	CFLAGS="$xorg_testset_save_CFLAGS"
6353fi
6354
6355if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6356	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6357		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6358	fi
6359	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6360	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6361printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6362if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6363then :
6364  printf %s "(cached) " >&6
6365else case e in #(
6366  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367/* end confdefs.h.  */
6368int i;
6369_ACEOF
6370if ac_fn_c_try_compile "$LINENO"
6371then :
6372  xorg_cv_cc_flag_unused_command_line_argument=yes
6373else case e in #(
6374  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6375esac
6376fi
6377rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6378esac
6379fi
6380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6381printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6382	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6383	CFLAGS="$xorg_testset_save_CFLAGS"
6384fi
6385
6386found="no"
6387
6388	if test $found = "no" ; then
6389		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6390			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6391		fi
6392
6393		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6394			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6395		fi
6396
6397		CFLAGS="$CFLAGS -Wunused"
6398
6399		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6400printf %s "checking if $CC supports -Wunused... " >&6; }
6401		cacheid=xorg_cv_cc_flag__Wunused
6402		if eval test \${$cacheid+y}
6403then :
6404  printf %s "(cached) " >&6
6405else case e in #(
6406  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407/* end confdefs.h.  */
6408int i;
6409int
6410main (void)
6411{
6412
6413  ;
6414  return 0;
6415}
6416_ACEOF
6417if ac_fn_c_try_link "$LINENO"
6418then :
6419  eval $cacheid=yes
6420else case e in #(
6421  e) eval $cacheid=no ;;
6422esac
6423fi
6424rm -f core conftest.err conftest.$ac_objext conftest.beam \
6425    conftest$ac_exeext conftest.$ac_ext ;;
6426esac
6427fi
6428
6429
6430		CFLAGS="$xorg_testset_save_CFLAGS"
6431
6432		eval supported=\$$cacheid
6433		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6434printf "%s\n" "$supported" >&6; }
6435		if test "$supported" = "yes" ; then
6436			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6437			found="yes"
6438		fi
6439	fi
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455xorg_testset_save_CFLAGS="$CFLAGS"
6456
6457if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6458	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6459	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6460printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6461if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6462then :
6463  printf %s "(cached) " >&6
6464else case e in #(
6465  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466/* end confdefs.h.  */
6467int i;
6468_ACEOF
6469if ac_fn_c_try_compile "$LINENO"
6470then :
6471  xorg_cv_cc_flag_unknown_warning_option=yes
6472else case e in #(
6473  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6474esac
6475fi
6476rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6477esac
6478fi
6479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6480printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6481	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6482	CFLAGS="$xorg_testset_save_CFLAGS"
6483fi
6484
6485if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6486	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6487		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6488	fi
6489	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6490	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6491printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6492if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6493then :
6494  printf %s "(cached) " >&6
6495else case e in #(
6496  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6497/* end confdefs.h.  */
6498int i;
6499_ACEOF
6500if ac_fn_c_try_compile "$LINENO"
6501then :
6502  xorg_cv_cc_flag_unused_command_line_argument=yes
6503else case e in #(
6504  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6505esac
6506fi
6507rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6508esac
6509fi
6510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6511printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6512	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6513	CFLAGS="$xorg_testset_save_CFLAGS"
6514fi
6515
6516found="no"
6517
6518	if test $found = "no" ; then
6519		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6520			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6521		fi
6522
6523		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6524			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6525		fi
6526
6527		CFLAGS="$CFLAGS -Wuninitialized"
6528
6529		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6530printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6531		cacheid=xorg_cv_cc_flag__Wuninitialized
6532		if eval test \${$cacheid+y}
6533then :
6534  printf %s "(cached) " >&6
6535else case e in #(
6536  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537/* end confdefs.h.  */
6538int i;
6539int
6540main (void)
6541{
6542
6543  ;
6544  return 0;
6545}
6546_ACEOF
6547if ac_fn_c_try_link "$LINENO"
6548then :
6549  eval $cacheid=yes
6550else case e in #(
6551  e) eval $cacheid=no ;;
6552esac
6553fi
6554rm -f core conftest.err conftest.$ac_objext conftest.beam \
6555    conftest$ac_exeext conftest.$ac_ext ;;
6556esac
6557fi
6558
6559
6560		CFLAGS="$xorg_testset_save_CFLAGS"
6561
6562		eval supported=\$$cacheid
6563		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6564printf "%s\n" "$supported" >&6; }
6565		if test "$supported" = "yes" ; then
6566			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6567			found="yes"
6568		fi
6569	fi
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585xorg_testset_save_CFLAGS="$CFLAGS"
6586
6587if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6588	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6589	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6590printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6591if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6592then :
6593  printf %s "(cached) " >&6
6594else case e in #(
6595  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6596/* end confdefs.h.  */
6597int i;
6598_ACEOF
6599if ac_fn_c_try_compile "$LINENO"
6600then :
6601  xorg_cv_cc_flag_unknown_warning_option=yes
6602else case e in #(
6603  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6604esac
6605fi
6606rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6607esac
6608fi
6609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6610printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6611	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6612	CFLAGS="$xorg_testset_save_CFLAGS"
6613fi
6614
6615if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6616	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6617		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6618	fi
6619	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6620	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6621printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6622if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6623then :
6624  printf %s "(cached) " >&6
6625else case e in #(
6626  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6627/* end confdefs.h.  */
6628int i;
6629_ACEOF
6630if ac_fn_c_try_compile "$LINENO"
6631then :
6632  xorg_cv_cc_flag_unused_command_line_argument=yes
6633else case e in #(
6634  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6635esac
6636fi
6637rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6638esac
6639fi
6640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6641printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6642	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6643	CFLAGS="$xorg_testset_save_CFLAGS"
6644fi
6645
6646found="no"
6647
6648	if test $found = "no" ; then
6649		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6650			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6651		fi
6652
6653		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6654			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6655		fi
6656
6657		CFLAGS="$CFLAGS -Wshadow"
6658
6659		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6660printf %s "checking if $CC supports -Wshadow... " >&6; }
6661		cacheid=xorg_cv_cc_flag__Wshadow
6662		if eval test \${$cacheid+y}
6663then :
6664  printf %s "(cached) " >&6
6665else case e in #(
6666  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667/* end confdefs.h.  */
6668int i;
6669int
6670main (void)
6671{
6672
6673  ;
6674  return 0;
6675}
6676_ACEOF
6677if ac_fn_c_try_link "$LINENO"
6678then :
6679  eval $cacheid=yes
6680else case e in #(
6681  e) eval $cacheid=no ;;
6682esac
6683fi
6684rm -f core conftest.err conftest.$ac_objext conftest.beam \
6685    conftest$ac_exeext conftest.$ac_ext ;;
6686esac
6687fi
6688
6689
6690		CFLAGS="$xorg_testset_save_CFLAGS"
6691
6692		eval supported=\$$cacheid
6693		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6694printf "%s\n" "$supported" >&6; }
6695		if test "$supported" = "yes" ; then
6696			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6697			found="yes"
6698		fi
6699	fi
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715xorg_testset_save_CFLAGS="$CFLAGS"
6716
6717if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6718	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6719	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6720printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6721if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6722then :
6723  printf %s "(cached) " >&6
6724else case e in #(
6725  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6726/* end confdefs.h.  */
6727int i;
6728_ACEOF
6729if ac_fn_c_try_compile "$LINENO"
6730then :
6731  xorg_cv_cc_flag_unknown_warning_option=yes
6732else case e in #(
6733  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6734esac
6735fi
6736rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6737esac
6738fi
6739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6740printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6741	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6742	CFLAGS="$xorg_testset_save_CFLAGS"
6743fi
6744
6745if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6746	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6747		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6748	fi
6749	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6750	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6751printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6752if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6753then :
6754  printf %s "(cached) " >&6
6755else case e in #(
6756  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757/* end confdefs.h.  */
6758int i;
6759_ACEOF
6760if ac_fn_c_try_compile "$LINENO"
6761then :
6762  xorg_cv_cc_flag_unused_command_line_argument=yes
6763else case e in #(
6764  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6765esac
6766fi
6767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6768esac
6769fi
6770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6771printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6772	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6773	CFLAGS="$xorg_testset_save_CFLAGS"
6774fi
6775
6776found="no"
6777
6778	if test $found = "no" ; then
6779		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6780			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6781		fi
6782
6783		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6784			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6785		fi
6786
6787		CFLAGS="$CFLAGS -Wmissing-noreturn"
6788
6789		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6790printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6791		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6792		if eval test \${$cacheid+y}
6793then :
6794  printf %s "(cached) " >&6
6795else case e in #(
6796  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797/* end confdefs.h.  */
6798int i;
6799int
6800main (void)
6801{
6802
6803  ;
6804  return 0;
6805}
6806_ACEOF
6807if ac_fn_c_try_link "$LINENO"
6808then :
6809  eval $cacheid=yes
6810else case e in #(
6811  e) eval $cacheid=no ;;
6812esac
6813fi
6814rm -f core conftest.err conftest.$ac_objext conftest.beam \
6815    conftest$ac_exeext conftest.$ac_ext ;;
6816esac
6817fi
6818
6819
6820		CFLAGS="$xorg_testset_save_CFLAGS"
6821
6822		eval supported=\$$cacheid
6823		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6824printf "%s\n" "$supported" >&6; }
6825		if test "$supported" = "yes" ; then
6826			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6827			found="yes"
6828		fi
6829	fi
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845xorg_testset_save_CFLAGS="$CFLAGS"
6846
6847if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6848	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6849	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6850printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6851if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6852then :
6853  printf %s "(cached) " >&6
6854else case e in #(
6855  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856/* end confdefs.h.  */
6857int i;
6858_ACEOF
6859if ac_fn_c_try_compile "$LINENO"
6860then :
6861  xorg_cv_cc_flag_unknown_warning_option=yes
6862else case e in #(
6863  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6864esac
6865fi
6866rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6867esac
6868fi
6869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6870printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6871	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6872	CFLAGS="$xorg_testset_save_CFLAGS"
6873fi
6874
6875if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6876	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6877		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6878	fi
6879	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6880	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6881printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6882if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6883then :
6884  printf %s "(cached) " >&6
6885else case e in #(
6886  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887/* end confdefs.h.  */
6888int i;
6889_ACEOF
6890if ac_fn_c_try_compile "$LINENO"
6891then :
6892  xorg_cv_cc_flag_unused_command_line_argument=yes
6893else case e in #(
6894  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6895esac
6896fi
6897rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6898esac
6899fi
6900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6901printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6902	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6903	CFLAGS="$xorg_testset_save_CFLAGS"
6904fi
6905
6906found="no"
6907
6908	if test $found = "no" ; then
6909		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6910			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6911		fi
6912
6913		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6914			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6915		fi
6916
6917		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6918
6919		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6920printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6921		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6922		if eval test \${$cacheid+y}
6923then :
6924  printf %s "(cached) " >&6
6925else case e in #(
6926  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927/* end confdefs.h.  */
6928int i;
6929int
6930main (void)
6931{
6932
6933  ;
6934  return 0;
6935}
6936_ACEOF
6937if ac_fn_c_try_link "$LINENO"
6938then :
6939  eval $cacheid=yes
6940else case e in #(
6941  e) eval $cacheid=no ;;
6942esac
6943fi
6944rm -f core conftest.err conftest.$ac_objext conftest.beam \
6945    conftest$ac_exeext conftest.$ac_ext ;;
6946esac
6947fi
6948
6949
6950		CFLAGS="$xorg_testset_save_CFLAGS"
6951
6952		eval supported=\$$cacheid
6953		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6954printf "%s\n" "$supported" >&6; }
6955		if test "$supported" = "yes" ; then
6956			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6957			found="yes"
6958		fi
6959	fi
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975xorg_testset_save_CFLAGS="$CFLAGS"
6976
6977if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6978	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6979	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6980printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6981if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6982then :
6983  printf %s "(cached) " >&6
6984else case e in #(
6985  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6986/* end confdefs.h.  */
6987int i;
6988_ACEOF
6989if ac_fn_c_try_compile "$LINENO"
6990then :
6991  xorg_cv_cc_flag_unknown_warning_option=yes
6992else case e in #(
6993  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6994esac
6995fi
6996rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6997esac
6998fi
6999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7000printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7001	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7002	CFLAGS="$xorg_testset_save_CFLAGS"
7003fi
7004
7005if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7006	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7007		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7008	fi
7009	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7010	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7011printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7012if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7013then :
7014  printf %s "(cached) " >&6
7015else case e in #(
7016  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017/* end confdefs.h.  */
7018int i;
7019_ACEOF
7020if ac_fn_c_try_compile "$LINENO"
7021then :
7022  xorg_cv_cc_flag_unused_command_line_argument=yes
7023else case e in #(
7024  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7025esac
7026fi
7027rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7028esac
7029fi
7030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7031printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7032	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7033	CFLAGS="$xorg_testset_save_CFLAGS"
7034fi
7035
7036found="no"
7037
7038	if test $found = "no" ; then
7039		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7040			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7041		fi
7042
7043		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7044			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7045		fi
7046
7047		CFLAGS="$CFLAGS -Wredundant-decls"
7048
7049		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7050printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7051		cacheid=xorg_cv_cc_flag__Wredundant_decls
7052		if eval test \${$cacheid+y}
7053then :
7054  printf %s "(cached) " >&6
7055else case e in #(
7056  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057/* end confdefs.h.  */
7058int i;
7059int
7060main (void)
7061{
7062
7063  ;
7064  return 0;
7065}
7066_ACEOF
7067if ac_fn_c_try_link "$LINENO"
7068then :
7069  eval $cacheid=yes
7070else case e in #(
7071  e) eval $cacheid=no ;;
7072esac
7073fi
7074rm -f core conftest.err conftest.$ac_objext conftest.beam \
7075    conftest$ac_exeext conftest.$ac_ext ;;
7076esac
7077fi
7078
7079
7080		CFLAGS="$xorg_testset_save_CFLAGS"
7081
7082		eval supported=\$$cacheid
7083		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7084printf "%s\n" "$supported" >&6; }
7085		if test "$supported" = "yes" ; then
7086			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7087			found="yes"
7088		fi
7089	fi
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105xorg_testset_save_CFLAGS="$CFLAGS"
7106
7107if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7108	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7109	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7110printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7111if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7112then :
7113  printf %s "(cached) " >&6
7114else case e in #(
7115  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116/* end confdefs.h.  */
7117int i;
7118_ACEOF
7119if ac_fn_c_try_compile "$LINENO"
7120then :
7121  xorg_cv_cc_flag_unknown_warning_option=yes
7122else case e in #(
7123  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7124esac
7125fi
7126rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7127esac
7128fi
7129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7130printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7131	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7132	CFLAGS="$xorg_testset_save_CFLAGS"
7133fi
7134
7135if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7136	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7137		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7138	fi
7139	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7140	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7141printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7142if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7143then :
7144  printf %s "(cached) " >&6
7145else case e in #(
7146  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147/* end confdefs.h.  */
7148int i;
7149_ACEOF
7150if ac_fn_c_try_compile "$LINENO"
7151then :
7152  xorg_cv_cc_flag_unused_command_line_argument=yes
7153else case e in #(
7154  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7155esac
7156fi
7157rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7158esac
7159fi
7160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7161printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7162	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7163	CFLAGS="$xorg_testset_save_CFLAGS"
7164fi
7165
7166found="no"
7167
7168	if test $found = "no" ; then
7169		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7170			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7171		fi
7172
7173		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7174			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7175		fi
7176
7177		CFLAGS="$CFLAGS -Wlogical-op"
7178
7179		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7180printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7181		cacheid=xorg_cv_cc_flag__Wlogical_op
7182		if eval test \${$cacheid+y}
7183then :
7184  printf %s "(cached) " >&6
7185else case e in #(
7186  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187/* end confdefs.h.  */
7188int i;
7189int
7190main (void)
7191{
7192
7193  ;
7194  return 0;
7195}
7196_ACEOF
7197if ac_fn_c_try_link "$LINENO"
7198then :
7199  eval $cacheid=yes
7200else case e in #(
7201  e) eval $cacheid=no ;;
7202esac
7203fi
7204rm -f core conftest.err conftest.$ac_objext conftest.beam \
7205    conftest$ac_exeext conftest.$ac_ext ;;
7206esac
7207fi
7208
7209
7210		CFLAGS="$xorg_testset_save_CFLAGS"
7211
7212		eval supported=\$$cacheid
7213		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7214printf "%s\n" "$supported" >&6; }
7215		if test "$supported" = "yes" ; then
7216			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7217			found="yes"
7218		fi
7219	fi
7220
7221
7222
7223# These are currently disabled because they are noisy.  They will be enabled
7224# in the future once the codebase is sufficiently modernized to silence
7225# them.  For now, I don't want them to drown out the other warnings.
7226# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7227# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7228# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7229
7230# Turn some warnings into errors, so we don't accidentally get successful builds
7231# when there are problems that should be fixed.
7232
7233if test "x$SELECTIVE_WERROR" = "xyes" ; then
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247xorg_testset_save_CFLAGS="$CFLAGS"
7248
7249if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7250	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7251	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7252printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7253if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7254then :
7255  printf %s "(cached) " >&6
7256else case e in #(
7257  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258/* end confdefs.h.  */
7259int i;
7260_ACEOF
7261if ac_fn_c_try_compile "$LINENO"
7262then :
7263  xorg_cv_cc_flag_unknown_warning_option=yes
7264else case e in #(
7265  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7266esac
7267fi
7268rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7269esac
7270fi
7271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7272printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7273	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7274	CFLAGS="$xorg_testset_save_CFLAGS"
7275fi
7276
7277if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7278	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7279		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7280	fi
7281	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7282	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7283printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7284if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7285then :
7286  printf %s "(cached) " >&6
7287else case e in #(
7288  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289/* end confdefs.h.  */
7290int i;
7291_ACEOF
7292if ac_fn_c_try_compile "$LINENO"
7293then :
7294  xorg_cv_cc_flag_unused_command_line_argument=yes
7295else case e in #(
7296  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7297esac
7298fi
7299rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7300esac
7301fi
7302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7303printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7304	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7305	CFLAGS="$xorg_testset_save_CFLAGS"
7306fi
7307
7308found="no"
7309
7310	if test $found = "no" ; then
7311		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7312			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7313		fi
7314
7315		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7316			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7317		fi
7318
7319		CFLAGS="$CFLAGS -Werror=implicit"
7320
7321		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7322printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7323		cacheid=xorg_cv_cc_flag__Werror_implicit
7324		if eval test \${$cacheid+y}
7325then :
7326  printf %s "(cached) " >&6
7327else case e in #(
7328  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329/* end confdefs.h.  */
7330int i;
7331int
7332main (void)
7333{
7334
7335  ;
7336  return 0;
7337}
7338_ACEOF
7339if ac_fn_c_try_link "$LINENO"
7340then :
7341  eval $cacheid=yes
7342else case e in #(
7343  e) eval $cacheid=no ;;
7344esac
7345fi
7346rm -f core conftest.err conftest.$ac_objext conftest.beam \
7347    conftest$ac_exeext conftest.$ac_ext ;;
7348esac
7349fi
7350
7351
7352		CFLAGS="$xorg_testset_save_CFLAGS"
7353
7354		eval supported=\$$cacheid
7355		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7356printf "%s\n" "$supported" >&6; }
7357		if test "$supported" = "yes" ; then
7358			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7359			found="yes"
7360		fi
7361	fi
7362
7363	if test $found = "no" ; then
7364		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7365			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7366		fi
7367
7368		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7369			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7370		fi
7371
7372		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7373
7374		{ 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
7375printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7376		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7377		if eval test \${$cacheid+y}
7378then :
7379  printf %s "(cached) " >&6
7380else case e in #(
7381  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7382/* end confdefs.h.  */
7383int i;
7384int
7385main (void)
7386{
7387
7388  ;
7389  return 0;
7390}
7391_ACEOF
7392if ac_fn_c_try_link "$LINENO"
7393then :
7394  eval $cacheid=yes
7395else case e in #(
7396  e) eval $cacheid=no ;;
7397esac
7398fi
7399rm -f core conftest.err conftest.$ac_objext conftest.beam \
7400    conftest$ac_exeext conftest.$ac_ext ;;
7401esac
7402fi
7403
7404
7405		CFLAGS="$xorg_testset_save_CFLAGS"
7406
7407		eval supported=\$$cacheid
7408		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7409printf "%s\n" "$supported" >&6; }
7410		if test "$supported" = "yes" ; then
7411			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7412			found="yes"
7413		fi
7414	fi
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430xorg_testset_save_CFLAGS="$CFLAGS"
7431
7432if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7433	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7434	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7435printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7436if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7437then :
7438  printf %s "(cached) " >&6
7439else case e in #(
7440  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441/* end confdefs.h.  */
7442int i;
7443_ACEOF
7444if ac_fn_c_try_compile "$LINENO"
7445then :
7446  xorg_cv_cc_flag_unknown_warning_option=yes
7447else case e in #(
7448  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7449esac
7450fi
7451rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7452esac
7453fi
7454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7455printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7456	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7457	CFLAGS="$xorg_testset_save_CFLAGS"
7458fi
7459
7460if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7461	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7462		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7463	fi
7464	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7465	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7466printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7467if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7468then :
7469  printf %s "(cached) " >&6
7470else case e in #(
7471  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472/* end confdefs.h.  */
7473int i;
7474_ACEOF
7475if ac_fn_c_try_compile "$LINENO"
7476then :
7477  xorg_cv_cc_flag_unused_command_line_argument=yes
7478else case e in #(
7479  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7480esac
7481fi
7482rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7483esac
7484fi
7485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7486printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7487	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7488	CFLAGS="$xorg_testset_save_CFLAGS"
7489fi
7490
7491found="no"
7492
7493	if test $found = "no" ; then
7494		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7495			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7496		fi
7497
7498		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7499			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7500		fi
7501
7502		CFLAGS="$CFLAGS -Werror=nonnull"
7503
7504		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7505printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7506		cacheid=xorg_cv_cc_flag__Werror_nonnull
7507		if eval test \${$cacheid+y}
7508then :
7509  printf %s "(cached) " >&6
7510else case e in #(
7511  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512/* end confdefs.h.  */
7513int i;
7514int
7515main (void)
7516{
7517
7518  ;
7519  return 0;
7520}
7521_ACEOF
7522if ac_fn_c_try_link "$LINENO"
7523then :
7524  eval $cacheid=yes
7525else case e in #(
7526  e) eval $cacheid=no ;;
7527esac
7528fi
7529rm -f core conftest.err conftest.$ac_objext conftest.beam \
7530    conftest$ac_exeext conftest.$ac_ext ;;
7531esac
7532fi
7533
7534
7535		CFLAGS="$xorg_testset_save_CFLAGS"
7536
7537		eval supported=\$$cacheid
7538		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7539printf "%s\n" "$supported" >&6; }
7540		if test "$supported" = "yes" ; then
7541			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7542			found="yes"
7543		fi
7544	fi
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560xorg_testset_save_CFLAGS="$CFLAGS"
7561
7562if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7563	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7564	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7565printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7566if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7567then :
7568  printf %s "(cached) " >&6
7569else case e in #(
7570  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571/* end confdefs.h.  */
7572int i;
7573_ACEOF
7574if ac_fn_c_try_compile "$LINENO"
7575then :
7576  xorg_cv_cc_flag_unknown_warning_option=yes
7577else case e in #(
7578  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7579esac
7580fi
7581rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7582esac
7583fi
7584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7585printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7586	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7587	CFLAGS="$xorg_testset_save_CFLAGS"
7588fi
7589
7590if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7591	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7592		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7593	fi
7594	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7595	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7596printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7597if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7598then :
7599  printf %s "(cached) " >&6
7600else case e in #(
7601  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602/* end confdefs.h.  */
7603int i;
7604_ACEOF
7605if ac_fn_c_try_compile "$LINENO"
7606then :
7607  xorg_cv_cc_flag_unused_command_line_argument=yes
7608else case e in #(
7609  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7610esac
7611fi
7612rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7613esac
7614fi
7615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7616printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7617	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7618	CFLAGS="$xorg_testset_save_CFLAGS"
7619fi
7620
7621found="no"
7622
7623	if test $found = "no" ; then
7624		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7625			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7626		fi
7627
7628		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7629			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7630		fi
7631
7632		CFLAGS="$CFLAGS -Werror=init-self"
7633
7634		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7635printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7636		cacheid=xorg_cv_cc_flag__Werror_init_self
7637		if eval test \${$cacheid+y}
7638then :
7639  printf %s "(cached) " >&6
7640else case e in #(
7641  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642/* end confdefs.h.  */
7643int i;
7644int
7645main (void)
7646{
7647
7648  ;
7649  return 0;
7650}
7651_ACEOF
7652if ac_fn_c_try_link "$LINENO"
7653then :
7654  eval $cacheid=yes
7655else case e in #(
7656  e) eval $cacheid=no ;;
7657esac
7658fi
7659rm -f core conftest.err conftest.$ac_objext conftest.beam \
7660    conftest$ac_exeext conftest.$ac_ext ;;
7661esac
7662fi
7663
7664
7665		CFLAGS="$xorg_testset_save_CFLAGS"
7666
7667		eval supported=\$$cacheid
7668		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7669printf "%s\n" "$supported" >&6; }
7670		if test "$supported" = "yes" ; then
7671			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7672			found="yes"
7673		fi
7674	fi
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690xorg_testset_save_CFLAGS="$CFLAGS"
7691
7692if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7693	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7694	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7695printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7696if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7697then :
7698  printf %s "(cached) " >&6
7699else case e in #(
7700  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7701/* end confdefs.h.  */
7702int i;
7703_ACEOF
7704if ac_fn_c_try_compile "$LINENO"
7705then :
7706  xorg_cv_cc_flag_unknown_warning_option=yes
7707else case e in #(
7708  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7709esac
7710fi
7711rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7712esac
7713fi
7714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7715printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7716	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7717	CFLAGS="$xorg_testset_save_CFLAGS"
7718fi
7719
7720if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7721	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7722		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7723	fi
7724	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7725	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7726printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7727if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7728then :
7729  printf %s "(cached) " >&6
7730else case e in #(
7731  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732/* end confdefs.h.  */
7733int i;
7734_ACEOF
7735if ac_fn_c_try_compile "$LINENO"
7736then :
7737  xorg_cv_cc_flag_unused_command_line_argument=yes
7738else case e in #(
7739  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7740esac
7741fi
7742rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7743esac
7744fi
7745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7746printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7747	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7748	CFLAGS="$xorg_testset_save_CFLAGS"
7749fi
7750
7751found="no"
7752
7753	if test $found = "no" ; then
7754		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7755			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7756		fi
7757
7758		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7759			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7760		fi
7761
7762		CFLAGS="$CFLAGS -Werror=main"
7763
7764		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7765printf %s "checking if $CC supports -Werror=main... " >&6; }
7766		cacheid=xorg_cv_cc_flag__Werror_main
7767		if eval test \${$cacheid+y}
7768then :
7769  printf %s "(cached) " >&6
7770else case e in #(
7771  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7772/* end confdefs.h.  */
7773int i;
7774int
7775main (void)
7776{
7777
7778  ;
7779  return 0;
7780}
7781_ACEOF
7782if ac_fn_c_try_link "$LINENO"
7783then :
7784  eval $cacheid=yes
7785else case e in #(
7786  e) eval $cacheid=no ;;
7787esac
7788fi
7789rm -f core conftest.err conftest.$ac_objext conftest.beam \
7790    conftest$ac_exeext conftest.$ac_ext ;;
7791esac
7792fi
7793
7794
7795		CFLAGS="$xorg_testset_save_CFLAGS"
7796
7797		eval supported=\$$cacheid
7798		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7799printf "%s\n" "$supported" >&6; }
7800		if test "$supported" = "yes" ; then
7801			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7802			found="yes"
7803		fi
7804	fi
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820xorg_testset_save_CFLAGS="$CFLAGS"
7821
7822if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7823	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7824	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7825printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7826if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7827then :
7828  printf %s "(cached) " >&6
7829else case e in #(
7830  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831/* end confdefs.h.  */
7832int i;
7833_ACEOF
7834if ac_fn_c_try_compile "$LINENO"
7835then :
7836  xorg_cv_cc_flag_unknown_warning_option=yes
7837else case e in #(
7838  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7839esac
7840fi
7841rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7842esac
7843fi
7844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7845printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7846	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7847	CFLAGS="$xorg_testset_save_CFLAGS"
7848fi
7849
7850if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7851	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7852		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7853	fi
7854	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7855	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7856printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7857if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7858then :
7859  printf %s "(cached) " >&6
7860else case e in #(
7861  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7862/* end confdefs.h.  */
7863int i;
7864_ACEOF
7865if ac_fn_c_try_compile "$LINENO"
7866then :
7867  xorg_cv_cc_flag_unused_command_line_argument=yes
7868else case e in #(
7869  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7870esac
7871fi
7872rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7873esac
7874fi
7875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7876printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7877	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7878	CFLAGS="$xorg_testset_save_CFLAGS"
7879fi
7880
7881found="no"
7882
7883	if test $found = "no" ; then
7884		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7885			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7886		fi
7887
7888		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7889			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7890		fi
7891
7892		CFLAGS="$CFLAGS -Werror=missing-braces"
7893
7894		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7895printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7896		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7897		if eval test \${$cacheid+y}
7898then :
7899  printf %s "(cached) " >&6
7900else case e in #(
7901  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902/* end confdefs.h.  */
7903int i;
7904int
7905main (void)
7906{
7907
7908  ;
7909  return 0;
7910}
7911_ACEOF
7912if ac_fn_c_try_link "$LINENO"
7913then :
7914  eval $cacheid=yes
7915else case e in #(
7916  e) eval $cacheid=no ;;
7917esac
7918fi
7919rm -f core conftest.err conftest.$ac_objext conftest.beam \
7920    conftest$ac_exeext conftest.$ac_ext ;;
7921esac
7922fi
7923
7924
7925		CFLAGS="$xorg_testset_save_CFLAGS"
7926
7927		eval supported=\$$cacheid
7928		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7929printf "%s\n" "$supported" >&6; }
7930		if test "$supported" = "yes" ; then
7931			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7932			found="yes"
7933		fi
7934	fi
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950xorg_testset_save_CFLAGS="$CFLAGS"
7951
7952if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7953	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7954	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7955printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7956if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7957then :
7958  printf %s "(cached) " >&6
7959else case e in #(
7960  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7961/* end confdefs.h.  */
7962int i;
7963_ACEOF
7964if ac_fn_c_try_compile "$LINENO"
7965then :
7966  xorg_cv_cc_flag_unknown_warning_option=yes
7967else case e in #(
7968  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7969esac
7970fi
7971rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7972esac
7973fi
7974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7975printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7976	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7977	CFLAGS="$xorg_testset_save_CFLAGS"
7978fi
7979
7980if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7981	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7982		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7983	fi
7984	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7985	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7986printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7987if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7988then :
7989  printf %s "(cached) " >&6
7990else case e in #(
7991  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992/* end confdefs.h.  */
7993int i;
7994_ACEOF
7995if ac_fn_c_try_compile "$LINENO"
7996then :
7997  xorg_cv_cc_flag_unused_command_line_argument=yes
7998else case e in #(
7999  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8000esac
8001fi
8002rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8003esac
8004fi
8005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8006printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8007	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8008	CFLAGS="$xorg_testset_save_CFLAGS"
8009fi
8010
8011found="no"
8012
8013	if test $found = "no" ; then
8014		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8015			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8016		fi
8017
8018		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8019			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8020		fi
8021
8022		CFLAGS="$CFLAGS -Werror=sequence-point"
8023
8024		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8025printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8026		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8027		if eval test \${$cacheid+y}
8028then :
8029  printf %s "(cached) " >&6
8030else case e in #(
8031  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8032/* end confdefs.h.  */
8033int i;
8034int
8035main (void)
8036{
8037
8038  ;
8039  return 0;
8040}
8041_ACEOF
8042if ac_fn_c_try_link "$LINENO"
8043then :
8044  eval $cacheid=yes
8045else case e in #(
8046  e) eval $cacheid=no ;;
8047esac
8048fi
8049rm -f core conftest.err conftest.$ac_objext conftest.beam \
8050    conftest$ac_exeext conftest.$ac_ext ;;
8051esac
8052fi
8053
8054
8055		CFLAGS="$xorg_testset_save_CFLAGS"
8056
8057		eval supported=\$$cacheid
8058		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8059printf "%s\n" "$supported" >&6; }
8060		if test "$supported" = "yes" ; then
8061			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8062			found="yes"
8063		fi
8064	fi
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080xorg_testset_save_CFLAGS="$CFLAGS"
8081
8082if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8083	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8084	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8085printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8086if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8087then :
8088  printf %s "(cached) " >&6
8089else case e in #(
8090  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091/* end confdefs.h.  */
8092int i;
8093_ACEOF
8094if ac_fn_c_try_compile "$LINENO"
8095then :
8096  xorg_cv_cc_flag_unknown_warning_option=yes
8097else case e in #(
8098  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8099esac
8100fi
8101rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8102esac
8103fi
8104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8105printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8106	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8107	CFLAGS="$xorg_testset_save_CFLAGS"
8108fi
8109
8110if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8111	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8112		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8113	fi
8114	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8115	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8116printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8117if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8118then :
8119  printf %s "(cached) " >&6
8120else case e in #(
8121  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8122/* end confdefs.h.  */
8123int i;
8124_ACEOF
8125if ac_fn_c_try_compile "$LINENO"
8126then :
8127  xorg_cv_cc_flag_unused_command_line_argument=yes
8128else case e in #(
8129  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8130esac
8131fi
8132rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8133esac
8134fi
8135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8136printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8137	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8138	CFLAGS="$xorg_testset_save_CFLAGS"
8139fi
8140
8141found="no"
8142
8143	if test $found = "no" ; then
8144		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8145			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8146		fi
8147
8148		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8149			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8150		fi
8151
8152		CFLAGS="$CFLAGS -Werror=return-type"
8153
8154		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8155printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8156		cacheid=xorg_cv_cc_flag__Werror_return_type
8157		if eval test \${$cacheid+y}
8158then :
8159  printf %s "(cached) " >&6
8160else case e in #(
8161  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162/* end confdefs.h.  */
8163int i;
8164int
8165main (void)
8166{
8167
8168  ;
8169  return 0;
8170}
8171_ACEOF
8172if ac_fn_c_try_link "$LINENO"
8173then :
8174  eval $cacheid=yes
8175else case e in #(
8176  e) eval $cacheid=no ;;
8177esac
8178fi
8179rm -f core conftest.err conftest.$ac_objext conftest.beam \
8180    conftest$ac_exeext conftest.$ac_ext ;;
8181esac
8182fi
8183
8184
8185		CFLAGS="$xorg_testset_save_CFLAGS"
8186
8187		eval supported=\$$cacheid
8188		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8189printf "%s\n" "$supported" >&6; }
8190		if test "$supported" = "yes" ; then
8191			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8192			found="yes"
8193		fi
8194	fi
8195
8196	if test $found = "no" ; then
8197		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8198			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8199		fi
8200
8201		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8202			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8203		fi
8204
8205		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8206
8207		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8208printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8209		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8210		if eval test \${$cacheid+y}
8211then :
8212  printf %s "(cached) " >&6
8213else case e in #(
8214  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8215/* end confdefs.h.  */
8216int i;
8217int
8218main (void)
8219{
8220
8221  ;
8222  return 0;
8223}
8224_ACEOF
8225if ac_fn_c_try_link "$LINENO"
8226then :
8227  eval $cacheid=yes
8228else case e in #(
8229  e) eval $cacheid=no ;;
8230esac
8231fi
8232rm -f core conftest.err conftest.$ac_objext conftest.beam \
8233    conftest$ac_exeext conftest.$ac_ext ;;
8234esac
8235fi
8236
8237
8238		CFLAGS="$xorg_testset_save_CFLAGS"
8239
8240		eval supported=\$$cacheid
8241		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8242printf "%s\n" "$supported" >&6; }
8243		if test "$supported" = "yes" ; then
8244			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8245			found="yes"
8246		fi
8247	fi
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263xorg_testset_save_CFLAGS="$CFLAGS"
8264
8265if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8266	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8267	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8268printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8269if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8270then :
8271  printf %s "(cached) " >&6
8272else case e in #(
8273  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8274/* end confdefs.h.  */
8275int i;
8276_ACEOF
8277if ac_fn_c_try_compile "$LINENO"
8278then :
8279  xorg_cv_cc_flag_unknown_warning_option=yes
8280else case e in #(
8281  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8282esac
8283fi
8284rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8285esac
8286fi
8287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8288printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8289	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8290	CFLAGS="$xorg_testset_save_CFLAGS"
8291fi
8292
8293if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8294	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8295		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8296	fi
8297	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8298	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8299printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8300if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8301then :
8302  printf %s "(cached) " >&6
8303else case e in #(
8304  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305/* end confdefs.h.  */
8306int i;
8307_ACEOF
8308if ac_fn_c_try_compile "$LINENO"
8309then :
8310  xorg_cv_cc_flag_unused_command_line_argument=yes
8311else case e in #(
8312  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8313esac
8314fi
8315rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8316esac
8317fi
8318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8319printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8320	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8321	CFLAGS="$xorg_testset_save_CFLAGS"
8322fi
8323
8324found="no"
8325
8326	if test $found = "no" ; then
8327		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8328			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8329		fi
8330
8331		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8332			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8333		fi
8334
8335		CFLAGS="$CFLAGS -Werror=trigraphs"
8336
8337		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8338printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8339		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8340		if eval test \${$cacheid+y}
8341then :
8342  printf %s "(cached) " >&6
8343else case e in #(
8344  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8345/* end confdefs.h.  */
8346int i;
8347int
8348main (void)
8349{
8350
8351  ;
8352  return 0;
8353}
8354_ACEOF
8355if ac_fn_c_try_link "$LINENO"
8356then :
8357  eval $cacheid=yes
8358else case e in #(
8359  e) eval $cacheid=no ;;
8360esac
8361fi
8362rm -f core conftest.err conftest.$ac_objext conftest.beam \
8363    conftest$ac_exeext conftest.$ac_ext ;;
8364esac
8365fi
8366
8367
8368		CFLAGS="$xorg_testset_save_CFLAGS"
8369
8370		eval supported=\$$cacheid
8371		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8372printf "%s\n" "$supported" >&6; }
8373		if test "$supported" = "yes" ; then
8374			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8375			found="yes"
8376		fi
8377	fi
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393xorg_testset_save_CFLAGS="$CFLAGS"
8394
8395if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8396	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8397	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8398printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8399if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8400then :
8401  printf %s "(cached) " >&6
8402else case e in #(
8403  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8404/* end confdefs.h.  */
8405int i;
8406_ACEOF
8407if ac_fn_c_try_compile "$LINENO"
8408then :
8409  xorg_cv_cc_flag_unknown_warning_option=yes
8410else case e in #(
8411  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8412esac
8413fi
8414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8415esac
8416fi
8417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8418printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8419	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8420	CFLAGS="$xorg_testset_save_CFLAGS"
8421fi
8422
8423if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8424	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8425		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8426	fi
8427	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8428	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8429printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8430if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8431then :
8432  printf %s "(cached) " >&6
8433else case e in #(
8434  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8435/* end confdefs.h.  */
8436int i;
8437_ACEOF
8438if ac_fn_c_try_compile "$LINENO"
8439then :
8440  xorg_cv_cc_flag_unused_command_line_argument=yes
8441else case e in #(
8442  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8443esac
8444fi
8445rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8446esac
8447fi
8448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8449printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8450	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8451	CFLAGS="$xorg_testset_save_CFLAGS"
8452fi
8453
8454found="no"
8455
8456	if test $found = "no" ; then
8457		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8458			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8459		fi
8460
8461		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8462			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8463		fi
8464
8465		CFLAGS="$CFLAGS -Werror=array-bounds"
8466
8467		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8468printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8469		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8470		if eval test \${$cacheid+y}
8471then :
8472  printf %s "(cached) " >&6
8473else case e in #(
8474  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475/* end confdefs.h.  */
8476int i;
8477int
8478main (void)
8479{
8480
8481  ;
8482  return 0;
8483}
8484_ACEOF
8485if ac_fn_c_try_link "$LINENO"
8486then :
8487  eval $cacheid=yes
8488else case e in #(
8489  e) eval $cacheid=no ;;
8490esac
8491fi
8492rm -f core conftest.err conftest.$ac_objext conftest.beam \
8493    conftest$ac_exeext conftest.$ac_ext ;;
8494esac
8495fi
8496
8497
8498		CFLAGS="$xorg_testset_save_CFLAGS"
8499
8500		eval supported=\$$cacheid
8501		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8502printf "%s\n" "$supported" >&6; }
8503		if test "$supported" = "yes" ; then
8504			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8505			found="yes"
8506		fi
8507	fi
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523xorg_testset_save_CFLAGS="$CFLAGS"
8524
8525if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8526	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8527	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8528printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8529if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8530then :
8531  printf %s "(cached) " >&6
8532else case e in #(
8533  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8534/* end confdefs.h.  */
8535int i;
8536_ACEOF
8537if ac_fn_c_try_compile "$LINENO"
8538then :
8539  xorg_cv_cc_flag_unknown_warning_option=yes
8540else case e in #(
8541  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8542esac
8543fi
8544rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8545esac
8546fi
8547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8548printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8549	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8550	CFLAGS="$xorg_testset_save_CFLAGS"
8551fi
8552
8553if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8554	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8555		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8556	fi
8557	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8558	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8559printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8560if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8561then :
8562  printf %s "(cached) " >&6
8563else case e in #(
8564  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8565/* end confdefs.h.  */
8566int i;
8567_ACEOF
8568if ac_fn_c_try_compile "$LINENO"
8569then :
8570  xorg_cv_cc_flag_unused_command_line_argument=yes
8571else case e in #(
8572  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8573esac
8574fi
8575rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8576esac
8577fi
8578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8579printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8580	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8581	CFLAGS="$xorg_testset_save_CFLAGS"
8582fi
8583
8584found="no"
8585
8586	if test $found = "no" ; then
8587		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8588			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8589		fi
8590
8591		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8592			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8593		fi
8594
8595		CFLAGS="$CFLAGS -Werror=write-strings"
8596
8597		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8598printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8599		cacheid=xorg_cv_cc_flag__Werror_write_strings
8600		if eval test \${$cacheid+y}
8601then :
8602  printf %s "(cached) " >&6
8603else case e in #(
8604  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605/* end confdefs.h.  */
8606int i;
8607int
8608main (void)
8609{
8610
8611  ;
8612  return 0;
8613}
8614_ACEOF
8615if ac_fn_c_try_link "$LINENO"
8616then :
8617  eval $cacheid=yes
8618else case e in #(
8619  e) eval $cacheid=no ;;
8620esac
8621fi
8622rm -f core conftest.err conftest.$ac_objext conftest.beam \
8623    conftest$ac_exeext conftest.$ac_ext ;;
8624esac
8625fi
8626
8627
8628		CFLAGS="$xorg_testset_save_CFLAGS"
8629
8630		eval supported=\$$cacheid
8631		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8632printf "%s\n" "$supported" >&6; }
8633		if test "$supported" = "yes" ; then
8634			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8635			found="yes"
8636		fi
8637	fi
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653xorg_testset_save_CFLAGS="$CFLAGS"
8654
8655if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8656	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8657	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8658printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8659if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8660then :
8661  printf %s "(cached) " >&6
8662else case e in #(
8663  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8664/* end confdefs.h.  */
8665int i;
8666_ACEOF
8667if ac_fn_c_try_compile "$LINENO"
8668then :
8669  xorg_cv_cc_flag_unknown_warning_option=yes
8670else case e in #(
8671  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8672esac
8673fi
8674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8675esac
8676fi
8677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8678printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8679	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8680	CFLAGS="$xorg_testset_save_CFLAGS"
8681fi
8682
8683if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8684	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8685		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8686	fi
8687	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8688	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8689printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8690if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8691then :
8692  printf %s "(cached) " >&6
8693else case e in #(
8694  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8695/* end confdefs.h.  */
8696int i;
8697_ACEOF
8698if ac_fn_c_try_compile "$LINENO"
8699then :
8700  xorg_cv_cc_flag_unused_command_line_argument=yes
8701else case e in #(
8702  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8703esac
8704fi
8705rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8706esac
8707fi
8708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8709printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8710	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8711	CFLAGS="$xorg_testset_save_CFLAGS"
8712fi
8713
8714found="no"
8715
8716	if test $found = "no" ; then
8717		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8718			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8719		fi
8720
8721		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8722			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8723		fi
8724
8725		CFLAGS="$CFLAGS -Werror=address"
8726
8727		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8728printf %s "checking if $CC supports -Werror=address... " >&6; }
8729		cacheid=xorg_cv_cc_flag__Werror_address
8730		if eval test \${$cacheid+y}
8731then :
8732  printf %s "(cached) " >&6
8733else case e in #(
8734  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8735/* end confdefs.h.  */
8736int i;
8737int
8738main (void)
8739{
8740
8741  ;
8742  return 0;
8743}
8744_ACEOF
8745if ac_fn_c_try_link "$LINENO"
8746then :
8747  eval $cacheid=yes
8748else case e in #(
8749  e) eval $cacheid=no ;;
8750esac
8751fi
8752rm -f core conftest.err conftest.$ac_objext conftest.beam \
8753    conftest$ac_exeext conftest.$ac_ext ;;
8754esac
8755fi
8756
8757
8758		CFLAGS="$xorg_testset_save_CFLAGS"
8759
8760		eval supported=\$$cacheid
8761		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8762printf "%s\n" "$supported" >&6; }
8763		if test "$supported" = "yes" ; then
8764			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8765			found="yes"
8766		fi
8767	fi
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783xorg_testset_save_CFLAGS="$CFLAGS"
8784
8785if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8786	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8787	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8788printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8789if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8790then :
8791  printf %s "(cached) " >&6
8792else case e in #(
8793  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8794/* end confdefs.h.  */
8795int i;
8796_ACEOF
8797if ac_fn_c_try_compile "$LINENO"
8798then :
8799  xorg_cv_cc_flag_unknown_warning_option=yes
8800else case e in #(
8801  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8802esac
8803fi
8804rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8805esac
8806fi
8807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8808printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8809	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8810	CFLAGS="$xorg_testset_save_CFLAGS"
8811fi
8812
8813if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8814	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8815		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8816	fi
8817	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8818	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8819printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8820if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8821then :
8822  printf %s "(cached) " >&6
8823else case e in #(
8824  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8825/* end confdefs.h.  */
8826int i;
8827_ACEOF
8828if ac_fn_c_try_compile "$LINENO"
8829then :
8830  xorg_cv_cc_flag_unused_command_line_argument=yes
8831else case e in #(
8832  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8833esac
8834fi
8835rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8836esac
8837fi
8838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8839printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8840	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8841	CFLAGS="$xorg_testset_save_CFLAGS"
8842fi
8843
8844found="no"
8845
8846	if test $found = "no" ; then
8847		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8848			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8849		fi
8850
8851		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8852			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8853		fi
8854
8855		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8856
8857		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8858printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8859		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8860		if eval test \${$cacheid+y}
8861then :
8862  printf %s "(cached) " >&6
8863else case e in #(
8864  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8865/* end confdefs.h.  */
8866int i;
8867int
8868main (void)
8869{
8870
8871  ;
8872  return 0;
8873}
8874_ACEOF
8875if ac_fn_c_try_link "$LINENO"
8876then :
8877  eval $cacheid=yes
8878else case e in #(
8879  e) eval $cacheid=no ;;
8880esac
8881fi
8882rm -f core conftest.err conftest.$ac_objext conftest.beam \
8883    conftest$ac_exeext conftest.$ac_ext ;;
8884esac
8885fi
8886
8887
8888		CFLAGS="$xorg_testset_save_CFLAGS"
8889
8890		eval supported=\$$cacheid
8891		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8892printf "%s\n" "$supported" >&6; }
8893		if test "$supported" = "yes" ; then
8894			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8895			found="yes"
8896		fi
8897	fi
8898
8899	if test $found = "no" ; then
8900		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8901			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8902		fi
8903
8904		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8905			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8906		fi
8907
8908		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8909
8910		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8911printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8912		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8913		if eval test \${$cacheid+y}
8914then :
8915  printf %s "(cached) " >&6
8916else case e in #(
8917  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8918/* end confdefs.h.  */
8919int i;
8920int
8921main (void)
8922{
8923
8924  ;
8925  return 0;
8926}
8927_ACEOF
8928if ac_fn_c_try_link "$LINENO"
8929then :
8930  eval $cacheid=yes
8931else case e in #(
8932  e) eval $cacheid=no ;;
8933esac
8934fi
8935rm -f core conftest.err conftest.$ac_objext conftest.beam \
8936    conftest$ac_exeext conftest.$ac_ext ;;
8937esac
8938fi
8939
8940
8941		CFLAGS="$xorg_testset_save_CFLAGS"
8942
8943		eval supported=\$$cacheid
8944		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8945printf "%s\n" "$supported" >&6; }
8946		if test "$supported" = "yes" ; then
8947			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8948			found="yes"
8949		fi
8950	fi
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966xorg_testset_save_CFLAGS="$CFLAGS"
8967
8968if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8969	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8970	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8971printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8972if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8973then :
8974  printf %s "(cached) " >&6
8975else case e in #(
8976  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977/* end confdefs.h.  */
8978int i;
8979_ACEOF
8980if ac_fn_c_try_compile "$LINENO"
8981then :
8982  xorg_cv_cc_flag_unknown_warning_option=yes
8983else case e in #(
8984  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8985esac
8986fi
8987rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8988esac
8989fi
8990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8991printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8992	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8993	CFLAGS="$xorg_testset_save_CFLAGS"
8994fi
8995
8996if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8997	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8998		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8999	fi
9000	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9001	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9002printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9003if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9004then :
9005  printf %s "(cached) " >&6
9006else case e in #(
9007  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008/* end confdefs.h.  */
9009int i;
9010_ACEOF
9011if ac_fn_c_try_compile "$LINENO"
9012then :
9013  xorg_cv_cc_flag_unused_command_line_argument=yes
9014else case e in #(
9015  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9016esac
9017fi
9018rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9019esac
9020fi
9021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9022printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9023	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9024	CFLAGS="$xorg_testset_save_CFLAGS"
9025fi
9026
9027found="no"
9028
9029	if test $found = "no" ; then
9030		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9031			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9032		fi
9033
9034		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9035			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9036		fi
9037
9038		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9039
9040		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9041printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9042		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9043		if eval test \${$cacheid+y}
9044then :
9045  printf %s "(cached) " >&6
9046else case e in #(
9047  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9048/* end confdefs.h.  */
9049int i;
9050int
9051main (void)
9052{
9053
9054  ;
9055  return 0;
9056}
9057_ACEOF
9058if ac_fn_c_try_link "$LINENO"
9059then :
9060  eval $cacheid=yes
9061else case e in #(
9062  e) eval $cacheid=no ;;
9063esac
9064fi
9065rm -f core conftest.err conftest.$ac_objext conftest.beam \
9066    conftest$ac_exeext conftest.$ac_ext ;;
9067esac
9068fi
9069
9070
9071		CFLAGS="$xorg_testset_save_CFLAGS"
9072
9073		eval supported=\$$cacheid
9074		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9075printf "%s\n" "$supported" >&6; }
9076		if test "$supported" = "yes" ; then
9077			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9078			found="yes"
9079		fi
9080	fi
9081
9082 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9083else
9084{ 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
9085printf "%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;}
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099xorg_testset_save_CFLAGS="$CFLAGS"
9100
9101if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9102	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9103	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9104printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9105if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9106then :
9107  printf %s "(cached) " >&6
9108else case e in #(
9109  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110/* end confdefs.h.  */
9111int i;
9112_ACEOF
9113if ac_fn_c_try_compile "$LINENO"
9114then :
9115  xorg_cv_cc_flag_unknown_warning_option=yes
9116else case e in #(
9117  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9118esac
9119fi
9120rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9121esac
9122fi
9123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9124printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9125	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9126	CFLAGS="$xorg_testset_save_CFLAGS"
9127fi
9128
9129if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9130	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9131		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9132	fi
9133	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9134	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9135printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9136if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9137then :
9138  printf %s "(cached) " >&6
9139else case e in #(
9140  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9141/* end confdefs.h.  */
9142int i;
9143_ACEOF
9144if ac_fn_c_try_compile "$LINENO"
9145then :
9146  xorg_cv_cc_flag_unused_command_line_argument=yes
9147else case e in #(
9148  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9149esac
9150fi
9151rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9152esac
9153fi
9154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9155printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9156	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9157	CFLAGS="$xorg_testset_save_CFLAGS"
9158fi
9159
9160found="no"
9161
9162	if test $found = "no" ; then
9163		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9164			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9165		fi
9166
9167		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9168			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9169		fi
9170
9171		CFLAGS="$CFLAGS -Wimplicit"
9172
9173		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9174printf %s "checking if $CC supports -Wimplicit... " >&6; }
9175		cacheid=xorg_cv_cc_flag__Wimplicit
9176		if eval test \${$cacheid+y}
9177then :
9178  printf %s "(cached) " >&6
9179else case e in #(
9180  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9181/* end confdefs.h.  */
9182int i;
9183int
9184main (void)
9185{
9186
9187  ;
9188  return 0;
9189}
9190_ACEOF
9191if ac_fn_c_try_link "$LINENO"
9192then :
9193  eval $cacheid=yes
9194else case e in #(
9195  e) eval $cacheid=no ;;
9196esac
9197fi
9198rm -f core conftest.err conftest.$ac_objext conftest.beam \
9199    conftest$ac_exeext conftest.$ac_ext ;;
9200esac
9201fi
9202
9203
9204		CFLAGS="$xorg_testset_save_CFLAGS"
9205
9206		eval supported=\$$cacheid
9207		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9208printf "%s\n" "$supported" >&6; }
9209		if test "$supported" = "yes" ; then
9210			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9211			found="yes"
9212		fi
9213	fi
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229xorg_testset_save_CFLAGS="$CFLAGS"
9230
9231if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9232	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9233	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9234printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9235if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9236then :
9237  printf %s "(cached) " >&6
9238else case e in #(
9239  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9240/* end confdefs.h.  */
9241int i;
9242_ACEOF
9243if ac_fn_c_try_compile "$LINENO"
9244then :
9245  xorg_cv_cc_flag_unknown_warning_option=yes
9246else case e in #(
9247  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9248esac
9249fi
9250rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9251esac
9252fi
9253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9254printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9255	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9256	CFLAGS="$xorg_testset_save_CFLAGS"
9257fi
9258
9259if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9260	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9261		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9262	fi
9263	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9264	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9265printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9266if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9267then :
9268  printf %s "(cached) " >&6
9269else case e in #(
9270  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9271/* end confdefs.h.  */
9272int i;
9273_ACEOF
9274if ac_fn_c_try_compile "$LINENO"
9275then :
9276  xorg_cv_cc_flag_unused_command_line_argument=yes
9277else case e in #(
9278  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9279esac
9280fi
9281rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9282esac
9283fi
9284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9285printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9286	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9287	CFLAGS="$xorg_testset_save_CFLAGS"
9288fi
9289
9290found="no"
9291
9292	if test $found = "no" ; then
9293		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9294			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9295		fi
9296
9297		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9298			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9299		fi
9300
9301		CFLAGS="$CFLAGS -Wnonnull"
9302
9303		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9304printf %s "checking if $CC supports -Wnonnull... " >&6; }
9305		cacheid=xorg_cv_cc_flag__Wnonnull
9306		if eval test \${$cacheid+y}
9307then :
9308  printf %s "(cached) " >&6
9309else case e in #(
9310  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9311/* end confdefs.h.  */
9312int i;
9313int
9314main (void)
9315{
9316
9317  ;
9318  return 0;
9319}
9320_ACEOF
9321if ac_fn_c_try_link "$LINENO"
9322then :
9323  eval $cacheid=yes
9324else case e in #(
9325  e) eval $cacheid=no ;;
9326esac
9327fi
9328rm -f core conftest.err conftest.$ac_objext conftest.beam \
9329    conftest$ac_exeext conftest.$ac_ext ;;
9330esac
9331fi
9332
9333
9334		CFLAGS="$xorg_testset_save_CFLAGS"
9335
9336		eval supported=\$$cacheid
9337		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9338printf "%s\n" "$supported" >&6; }
9339		if test "$supported" = "yes" ; then
9340			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9341			found="yes"
9342		fi
9343	fi
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359xorg_testset_save_CFLAGS="$CFLAGS"
9360
9361if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9362	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9363	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9364printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9365if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9366then :
9367  printf %s "(cached) " >&6
9368else case e in #(
9369  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9370/* end confdefs.h.  */
9371int i;
9372_ACEOF
9373if ac_fn_c_try_compile "$LINENO"
9374then :
9375  xorg_cv_cc_flag_unknown_warning_option=yes
9376else case e in #(
9377  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9378esac
9379fi
9380rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9381esac
9382fi
9383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9384printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9385	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9386	CFLAGS="$xorg_testset_save_CFLAGS"
9387fi
9388
9389if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9390	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9391		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9392	fi
9393	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9394	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9395printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9396if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9397then :
9398  printf %s "(cached) " >&6
9399else case e in #(
9400  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9401/* end confdefs.h.  */
9402int i;
9403_ACEOF
9404if ac_fn_c_try_compile "$LINENO"
9405then :
9406  xorg_cv_cc_flag_unused_command_line_argument=yes
9407else case e in #(
9408  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9409esac
9410fi
9411rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9412esac
9413fi
9414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9415printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9416	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9417	CFLAGS="$xorg_testset_save_CFLAGS"
9418fi
9419
9420found="no"
9421
9422	if test $found = "no" ; then
9423		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9424			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9425		fi
9426
9427		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9428			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9429		fi
9430
9431		CFLAGS="$CFLAGS -Winit-self"
9432
9433		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9434printf %s "checking if $CC supports -Winit-self... " >&6; }
9435		cacheid=xorg_cv_cc_flag__Winit_self
9436		if eval test \${$cacheid+y}
9437then :
9438  printf %s "(cached) " >&6
9439else case e in #(
9440  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9441/* end confdefs.h.  */
9442int i;
9443int
9444main (void)
9445{
9446
9447  ;
9448  return 0;
9449}
9450_ACEOF
9451if ac_fn_c_try_link "$LINENO"
9452then :
9453  eval $cacheid=yes
9454else case e in #(
9455  e) eval $cacheid=no ;;
9456esac
9457fi
9458rm -f core conftest.err conftest.$ac_objext conftest.beam \
9459    conftest$ac_exeext conftest.$ac_ext ;;
9460esac
9461fi
9462
9463
9464		CFLAGS="$xorg_testset_save_CFLAGS"
9465
9466		eval supported=\$$cacheid
9467		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9468printf "%s\n" "$supported" >&6; }
9469		if test "$supported" = "yes" ; then
9470			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9471			found="yes"
9472		fi
9473	fi
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489xorg_testset_save_CFLAGS="$CFLAGS"
9490
9491if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9492	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9493	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9494printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9495if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9496then :
9497  printf %s "(cached) " >&6
9498else case e in #(
9499  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9500/* end confdefs.h.  */
9501int i;
9502_ACEOF
9503if ac_fn_c_try_compile "$LINENO"
9504then :
9505  xorg_cv_cc_flag_unknown_warning_option=yes
9506else case e in #(
9507  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9508esac
9509fi
9510rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9511esac
9512fi
9513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9514printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9515	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9516	CFLAGS="$xorg_testset_save_CFLAGS"
9517fi
9518
9519if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9520	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9521		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9522	fi
9523	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9524	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9525printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9526if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9527then :
9528  printf %s "(cached) " >&6
9529else case e in #(
9530  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9531/* end confdefs.h.  */
9532int i;
9533_ACEOF
9534if ac_fn_c_try_compile "$LINENO"
9535then :
9536  xorg_cv_cc_flag_unused_command_line_argument=yes
9537else case e in #(
9538  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9539esac
9540fi
9541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9542esac
9543fi
9544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9545printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9546	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9547	CFLAGS="$xorg_testset_save_CFLAGS"
9548fi
9549
9550found="no"
9551
9552	if test $found = "no" ; then
9553		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9554			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9555		fi
9556
9557		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9558			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9559		fi
9560
9561		CFLAGS="$CFLAGS -Wmain"
9562
9563		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9564printf %s "checking if $CC supports -Wmain... " >&6; }
9565		cacheid=xorg_cv_cc_flag__Wmain
9566		if eval test \${$cacheid+y}
9567then :
9568  printf %s "(cached) " >&6
9569else case e in #(
9570  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571/* end confdefs.h.  */
9572int i;
9573int
9574main (void)
9575{
9576
9577  ;
9578  return 0;
9579}
9580_ACEOF
9581if ac_fn_c_try_link "$LINENO"
9582then :
9583  eval $cacheid=yes
9584else case e in #(
9585  e) eval $cacheid=no ;;
9586esac
9587fi
9588rm -f core conftest.err conftest.$ac_objext conftest.beam \
9589    conftest$ac_exeext conftest.$ac_ext ;;
9590esac
9591fi
9592
9593
9594		CFLAGS="$xorg_testset_save_CFLAGS"
9595
9596		eval supported=\$$cacheid
9597		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9598printf "%s\n" "$supported" >&6; }
9599		if test "$supported" = "yes" ; then
9600			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9601			found="yes"
9602		fi
9603	fi
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619xorg_testset_save_CFLAGS="$CFLAGS"
9620
9621if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9622	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9623	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9624printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9625if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9626then :
9627  printf %s "(cached) " >&6
9628else case e in #(
9629  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630/* end confdefs.h.  */
9631int i;
9632_ACEOF
9633if ac_fn_c_try_compile "$LINENO"
9634then :
9635  xorg_cv_cc_flag_unknown_warning_option=yes
9636else case e in #(
9637  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9638esac
9639fi
9640rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9641esac
9642fi
9643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9644printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9645	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9646	CFLAGS="$xorg_testset_save_CFLAGS"
9647fi
9648
9649if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9650	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9651		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9652	fi
9653	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9654	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9655printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9656if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9657then :
9658  printf %s "(cached) " >&6
9659else case e in #(
9660  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9661/* end confdefs.h.  */
9662int i;
9663_ACEOF
9664if ac_fn_c_try_compile "$LINENO"
9665then :
9666  xorg_cv_cc_flag_unused_command_line_argument=yes
9667else case e in #(
9668  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9669esac
9670fi
9671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9672esac
9673fi
9674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9675printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9676	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9677	CFLAGS="$xorg_testset_save_CFLAGS"
9678fi
9679
9680found="no"
9681
9682	if test $found = "no" ; then
9683		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9684			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9685		fi
9686
9687		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9688			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9689		fi
9690
9691		CFLAGS="$CFLAGS -Wmissing-braces"
9692
9693		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9694printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9695		cacheid=xorg_cv_cc_flag__Wmissing_braces
9696		if eval test \${$cacheid+y}
9697then :
9698  printf %s "(cached) " >&6
9699else case e in #(
9700  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9701/* end confdefs.h.  */
9702int i;
9703int
9704main (void)
9705{
9706
9707  ;
9708  return 0;
9709}
9710_ACEOF
9711if ac_fn_c_try_link "$LINENO"
9712then :
9713  eval $cacheid=yes
9714else case e in #(
9715  e) eval $cacheid=no ;;
9716esac
9717fi
9718rm -f core conftest.err conftest.$ac_objext conftest.beam \
9719    conftest$ac_exeext conftest.$ac_ext ;;
9720esac
9721fi
9722
9723
9724		CFLAGS="$xorg_testset_save_CFLAGS"
9725
9726		eval supported=\$$cacheid
9727		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9728printf "%s\n" "$supported" >&6; }
9729		if test "$supported" = "yes" ; then
9730			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9731			found="yes"
9732		fi
9733	fi
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749xorg_testset_save_CFLAGS="$CFLAGS"
9750
9751if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9752	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9753	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9754printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9755if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9756then :
9757  printf %s "(cached) " >&6
9758else case e in #(
9759  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9760/* end confdefs.h.  */
9761int i;
9762_ACEOF
9763if ac_fn_c_try_compile "$LINENO"
9764then :
9765  xorg_cv_cc_flag_unknown_warning_option=yes
9766else case e in #(
9767  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9768esac
9769fi
9770rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9771esac
9772fi
9773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9774printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9775	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9776	CFLAGS="$xorg_testset_save_CFLAGS"
9777fi
9778
9779if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9780	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9781		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9782	fi
9783	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9784	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9785printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9786if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9787then :
9788  printf %s "(cached) " >&6
9789else case e in #(
9790  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791/* end confdefs.h.  */
9792int i;
9793_ACEOF
9794if ac_fn_c_try_compile "$LINENO"
9795then :
9796  xorg_cv_cc_flag_unused_command_line_argument=yes
9797else case e in #(
9798  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9799esac
9800fi
9801rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9802esac
9803fi
9804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9805printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9806	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9807	CFLAGS="$xorg_testset_save_CFLAGS"
9808fi
9809
9810found="no"
9811
9812	if test $found = "no" ; then
9813		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9814			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9815		fi
9816
9817		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9818			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9819		fi
9820
9821		CFLAGS="$CFLAGS -Wsequence-point"
9822
9823		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9824printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9825		cacheid=xorg_cv_cc_flag__Wsequence_point
9826		if eval test \${$cacheid+y}
9827then :
9828  printf %s "(cached) " >&6
9829else case e in #(
9830  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9831/* end confdefs.h.  */
9832int i;
9833int
9834main (void)
9835{
9836
9837  ;
9838  return 0;
9839}
9840_ACEOF
9841if ac_fn_c_try_link "$LINENO"
9842then :
9843  eval $cacheid=yes
9844else case e in #(
9845  e) eval $cacheid=no ;;
9846esac
9847fi
9848rm -f core conftest.err conftest.$ac_objext conftest.beam \
9849    conftest$ac_exeext conftest.$ac_ext ;;
9850esac
9851fi
9852
9853
9854		CFLAGS="$xorg_testset_save_CFLAGS"
9855
9856		eval supported=\$$cacheid
9857		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9858printf "%s\n" "$supported" >&6; }
9859		if test "$supported" = "yes" ; then
9860			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9861			found="yes"
9862		fi
9863	fi
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879xorg_testset_save_CFLAGS="$CFLAGS"
9880
9881if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9882	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9883	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9884printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9885if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9886then :
9887  printf %s "(cached) " >&6
9888else case e in #(
9889  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9890/* end confdefs.h.  */
9891int i;
9892_ACEOF
9893if ac_fn_c_try_compile "$LINENO"
9894then :
9895  xorg_cv_cc_flag_unknown_warning_option=yes
9896else case e in #(
9897  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9898esac
9899fi
9900rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9901esac
9902fi
9903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9904printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9905	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9906	CFLAGS="$xorg_testset_save_CFLAGS"
9907fi
9908
9909if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9910	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9911		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9912	fi
9913	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9914	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9915printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9916if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9917then :
9918  printf %s "(cached) " >&6
9919else case e in #(
9920  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921/* end confdefs.h.  */
9922int i;
9923_ACEOF
9924if ac_fn_c_try_compile "$LINENO"
9925then :
9926  xorg_cv_cc_flag_unused_command_line_argument=yes
9927else case e in #(
9928  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9929esac
9930fi
9931rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9932esac
9933fi
9934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9935printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9936	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9937	CFLAGS="$xorg_testset_save_CFLAGS"
9938fi
9939
9940found="no"
9941
9942	if test $found = "no" ; then
9943		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9944			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9945		fi
9946
9947		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9948			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9949		fi
9950
9951		CFLAGS="$CFLAGS -Wreturn-type"
9952
9953		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9954printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9955		cacheid=xorg_cv_cc_flag__Wreturn_type
9956		if eval test \${$cacheid+y}
9957then :
9958  printf %s "(cached) " >&6
9959else case e in #(
9960  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9961/* end confdefs.h.  */
9962int i;
9963int
9964main (void)
9965{
9966
9967  ;
9968  return 0;
9969}
9970_ACEOF
9971if ac_fn_c_try_link "$LINENO"
9972then :
9973  eval $cacheid=yes
9974else case e in #(
9975  e) eval $cacheid=no ;;
9976esac
9977fi
9978rm -f core conftest.err conftest.$ac_objext conftest.beam \
9979    conftest$ac_exeext conftest.$ac_ext ;;
9980esac
9981fi
9982
9983
9984		CFLAGS="$xorg_testset_save_CFLAGS"
9985
9986		eval supported=\$$cacheid
9987		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9988printf "%s\n" "$supported" >&6; }
9989		if test "$supported" = "yes" ; then
9990			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9991			found="yes"
9992		fi
9993	fi
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009xorg_testset_save_CFLAGS="$CFLAGS"
10010
10011if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10012	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10013	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10014printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10015if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10016then :
10017  printf %s "(cached) " >&6
10018else case e in #(
10019  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10020/* end confdefs.h.  */
10021int i;
10022_ACEOF
10023if ac_fn_c_try_compile "$LINENO"
10024then :
10025  xorg_cv_cc_flag_unknown_warning_option=yes
10026else case e in #(
10027  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10028esac
10029fi
10030rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10031esac
10032fi
10033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10034printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10035	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10036	CFLAGS="$xorg_testset_save_CFLAGS"
10037fi
10038
10039if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10040	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10041		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10042	fi
10043	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10044	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10045printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10046if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10047then :
10048  printf %s "(cached) " >&6
10049else case e in #(
10050  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10051/* end confdefs.h.  */
10052int i;
10053_ACEOF
10054if ac_fn_c_try_compile "$LINENO"
10055then :
10056  xorg_cv_cc_flag_unused_command_line_argument=yes
10057else case e in #(
10058  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10059esac
10060fi
10061rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10062esac
10063fi
10064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10065printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10066	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10067	CFLAGS="$xorg_testset_save_CFLAGS"
10068fi
10069
10070found="no"
10071
10072	if test $found = "no" ; then
10073		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10074			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10075		fi
10076
10077		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10078			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10079		fi
10080
10081		CFLAGS="$CFLAGS -Wtrigraphs"
10082
10083		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10084printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10085		cacheid=xorg_cv_cc_flag__Wtrigraphs
10086		if eval test \${$cacheid+y}
10087then :
10088  printf %s "(cached) " >&6
10089else case e in #(
10090  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10091/* end confdefs.h.  */
10092int i;
10093int
10094main (void)
10095{
10096
10097  ;
10098  return 0;
10099}
10100_ACEOF
10101if ac_fn_c_try_link "$LINENO"
10102then :
10103  eval $cacheid=yes
10104else case e in #(
10105  e) eval $cacheid=no ;;
10106esac
10107fi
10108rm -f core conftest.err conftest.$ac_objext conftest.beam \
10109    conftest$ac_exeext conftest.$ac_ext ;;
10110esac
10111fi
10112
10113
10114		CFLAGS="$xorg_testset_save_CFLAGS"
10115
10116		eval supported=\$$cacheid
10117		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10118printf "%s\n" "$supported" >&6; }
10119		if test "$supported" = "yes" ; then
10120			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10121			found="yes"
10122		fi
10123	fi
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139xorg_testset_save_CFLAGS="$CFLAGS"
10140
10141if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10142	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10143	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10144printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10145if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10146then :
10147  printf %s "(cached) " >&6
10148else case e in #(
10149  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10150/* end confdefs.h.  */
10151int i;
10152_ACEOF
10153if ac_fn_c_try_compile "$LINENO"
10154then :
10155  xorg_cv_cc_flag_unknown_warning_option=yes
10156else case e in #(
10157  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10158esac
10159fi
10160rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10161esac
10162fi
10163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10164printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10165	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10166	CFLAGS="$xorg_testset_save_CFLAGS"
10167fi
10168
10169if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10170	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10171		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10172	fi
10173	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10174	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10175printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10176if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10177then :
10178  printf %s "(cached) " >&6
10179else case e in #(
10180  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181/* end confdefs.h.  */
10182int i;
10183_ACEOF
10184if ac_fn_c_try_compile "$LINENO"
10185then :
10186  xorg_cv_cc_flag_unused_command_line_argument=yes
10187else case e in #(
10188  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10189esac
10190fi
10191rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10192esac
10193fi
10194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10195printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10196	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10197	CFLAGS="$xorg_testset_save_CFLAGS"
10198fi
10199
10200found="no"
10201
10202	if test $found = "no" ; then
10203		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10204			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10205		fi
10206
10207		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10208			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10209		fi
10210
10211		CFLAGS="$CFLAGS -Warray-bounds"
10212
10213		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10214printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10215		cacheid=xorg_cv_cc_flag__Warray_bounds
10216		if eval test \${$cacheid+y}
10217then :
10218  printf %s "(cached) " >&6
10219else case e in #(
10220  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10221/* end confdefs.h.  */
10222int i;
10223int
10224main (void)
10225{
10226
10227  ;
10228  return 0;
10229}
10230_ACEOF
10231if ac_fn_c_try_link "$LINENO"
10232then :
10233  eval $cacheid=yes
10234else case e in #(
10235  e) eval $cacheid=no ;;
10236esac
10237fi
10238rm -f core conftest.err conftest.$ac_objext conftest.beam \
10239    conftest$ac_exeext conftest.$ac_ext ;;
10240esac
10241fi
10242
10243
10244		CFLAGS="$xorg_testset_save_CFLAGS"
10245
10246		eval supported=\$$cacheid
10247		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10248printf "%s\n" "$supported" >&6; }
10249		if test "$supported" = "yes" ; then
10250			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10251			found="yes"
10252		fi
10253	fi
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269xorg_testset_save_CFLAGS="$CFLAGS"
10270
10271if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10272	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10273	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10274printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10275if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10276then :
10277  printf %s "(cached) " >&6
10278else case e in #(
10279  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10280/* end confdefs.h.  */
10281int i;
10282_ACEOF
10283if ac_fn_c_try_compile "$LINENO"
10284then :
10285  xorg_cv_cc_flag_unknown_warning_option=yes
10286else case e in #(
10287  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10288esac
10289fi
10290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10291esac
10292fi
10293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10294printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10295	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10296	CFLAGS="$xorg_testset_save_CFLAGS"
10297fi
10298
10299if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10300	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10301		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10302	fi
10303	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10304	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10305printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10306if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10307then :
10308  printf %s "(cached) " >&6
10309else case e in #(
10310  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10311/* end confdefs.h.  */
10312int i;
10313_ACEOF
10314if ac_fn_c_try_compile "$LINENO"
10315then :
10316  xorg_cv_cc_flag_unused_command_line_argument=yes
10317else case e in #(
10318  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10319esac
10320fi
10321rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10322esac
10323fi
10324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10325printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10326	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10327	CFLAGS="$xorg_testset_save_CFLAGS"
10328fi
10329
10330found="no"
10331
10332	if test $found = "no" ; then
10333		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10334			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10335		fi
10336
10337		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10338			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10339		fi
10340
10341		CFLAGS="$CFLAGS -Wwrite-strings"
10342
10343		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10344printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10345		cacheid=xorg_cv_cc_flag__Wwrite_strings
10346		if eval test \${$cacheid+y}
10347then :
10348  printf %s "(cached) " >&6
10349else case e in #(
10350  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10351/* end confdefs.h.  */
10352int i;
10353int
10354main (void)
10355{
10356
10357  ;
10358  return 0;
10359}
10360_ACEOF
10361if ac_fn_c_try_link "$LINENO"
10362then :
10363  eval $cacheid=yes
10364else case e in #(
10365  e) eval $cacheid=no ;;
10366esac
10367fi
10368rm -f core conftest.err conftest.$ac_objext conftest.beam \
10369    conftest$ac_exeext conftest.$ac_ext ;;
10370esac
10371fi
10372
10373
10374		CFLAGS="$xorg_testset_save_CFLAGS"
10375
10376		eval supported=\$$cacheid
10377		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10378printf "%s\n" "$supported" >&6; }
10379		if test "$supported" = "yes" ; then
10380			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10381			found="yes"
10382		fi
10383	fi
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399xorg_testset_save_CFLAGS="$CFLAGS"
10400
10401if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10402	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10403	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10404printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10405if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10406then :
10407  printf %s "(cached) " >&6
10408else case e in #(
10409  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10410/* end confdefs.h.  */
10411int i;
10412_ACEOF
10413if ac_fn_c_try_compile "$LINENO"
10414then :
10415  xorg_cv_cc_flag_unknown_warning_option=yes
10416else case e in #(
10417  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10418esac
10419fi
10420rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10421esac
10422fi
10423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10424printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10425	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10426	CFLAGS="$xorg_testset_save_CFLAGS"
10427fi
10428
10429if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10430	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10431		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10432	fi
10433	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10434	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10435printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10436if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10437then :
10438  printf %s "(cached) " >&6
10439else case e in #(
10440  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10441/* end confdefs.h.  */
10442int i;
10443_ACEOF
10444if ac_fn_c_try_compile "$LINENO"
10445then :
10446  xorg_cv_cc_flag_unused_command_line_argument=yes
10447else case e in #(
10448  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10449esac
10450fi
10451rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10452esac
10453fi
10454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10455printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10456	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10457	CFLAGS="$xorg_testset_save_CFLAGS"
10458fi
10459
10460found="no"
10461
10462	if test $found = "no" ; then
10463		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10464			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10465		fi
10466
10467		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10468			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10469		fi
10470
10471		CFLAGS="$CFLAGS -Waddress"
10472
10473		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10474printf %s "checking if $CC supports -Waddress... " >&6; }
10475		cacheid=xorg_cv_cc_flag__Waddress
10476		if eval test \${$cacheid+y}
10477then :
10478  printf %s "(cached) " >&6
10479else case e in #(
10480  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10481/* end confdefs.h.  */
10482int i;
10483int
10484main (void)
10485{
10486
10487  ;
10488  return 0;
10489}
10490_ACEOF
10491if ac_fn_c_try_link "$LINENO"
10492then :
10493  eval $cacheid=yes
10494else case e in #(
10495  e) eval $cacheid=no ;;
10496esac
10497fi
10498rm -f core conftest.err conftest.$ac_objext conftest.beam \
10499    conftest$ac_exeext conftest.$ac_ext ;;
10500esac
10501fi
10502
10503
10504		CFLAGS="$xorg_testset_save_CFLAGS"
10505
10506		eval supported=\$$cacheid
10507		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10508printf "%s\n" "$supported" >&6; }
10509		if test "$supported" = "yes" ; then
10510			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10511			found="yes"
10512		fi
10513	fi
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529xorg_testset_save_CFLAGS="$CFLAGS"
10530
10531if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10532	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10533	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10534printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10535if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10536then :
10537  printf %s "(cached) " >&6
10538else case e in #(
10539  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10540/* end confdefs.h.  */
10541int i;
10542_ACEOF
10543if ac_fn_c_try_compile "$LINENO"
10544then :
10545  xorg_cv_cc_flag_unknown_warning_option=yes
10546else case e in #(
10547  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10548esac
10549fi
10550rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10551esac
10552fi
10553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10554printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10555	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10556	CFLAGS="$xorg_testset_save_CFLAGS"
10557fi
10558
10559if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10560	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10561		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10562	fi
10563	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10564	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10565printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10566if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10567then :
10568  printf %s "(cached) " >&6
10569else case e in #(
10570  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10571/* end confdefs.h.  */
10572int i;
10573_ACEOF
10574if ac_fn_c_try_compile "$LINENO"
10575then :
10576  xorg_cv_cc_flag_unused_command_line_argument=yes
10577else case e in #(
10578  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10579esac
10580fi
10581rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10582esac
10583fi
10584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10585printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10586	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10587	CFLAGS="$xorg_testset_save_CFLAGS"
10588fi
10589
10590found="no"
10591
10592	if test $found = "no" ; then
10593		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10594			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10595		fi
10596
10597		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10598			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10599		fi
10600
10601		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10602
10603		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10604printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10605		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10606		if eval test \${$cacheid+y}
10607then :
10608  printf %s "(cached) " >&6
10609else case e in #(
10610  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10611/* end confdefs.h.  */
10612int i;
10613int
10614main (void)
10615{
10616
10617  ;
10618  return 0;
10619}
10620_ACEOF
10621if ac_fn_c_try_link "$LINENO"
10622then :
10623  eval $cacheid=yes
10624else case e in #(
10625  e) eval $cacheid=no ;;
10626esac
10627fi
10628rm -f core conftest.err conftest.$ac_objext conftest.beam \
10629    conftest$ac_exeext conftest.$ac_ext ;;
10630esac
10631fi
10632
10633
10634		CFLAGS="$xorg_testset_save_CFLAGS"
10635
10636		eval supported=\$$cacheid
10637		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10638printf "%s\n" "$supported" >&6; }
10639		if test "$supported" = "yes" ; then
10640			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10641			found="yes"
10642		fi
10643	fi
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659xorg_testset_save_CFLAGS="$CFLAGS"
10660
10661if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10662	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10663	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10664printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10665if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10666then :
10667  printf %s "(cached) " >&6
10668else case e in #(
10669  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670/* end confdefs.h.  */
10671int i;
10672_ACEOF
10673if ac_fn_c_try_compile "$LINENO"
10674then :
10675  xorg_cv_cc_flag_unknown_warning_option=yes
10676else case e in #(
10677  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10678esac
10679fi
10680rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10681esac
10682fi
10683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10684printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10685	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10686	CFLAGS="$xorg_testset_save_CFLAGS"
10687fi
10688
10689if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10690	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10691		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10692	fi
10693	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10694	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10695printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10696if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10697then :
10698  printf %s "(cached) " >&6
10699else case e in #(
10700  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10701/* end confdefs.h.  */
10702int i;
10703_ACEOF
10704if ac_fn_c_try_compile "$LINENO"
10705then :
10706  xorg_cv_cc_flag_unused_command_line_argument=yes
10707else case e in #(
10708  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10709esac
10710fi
10711rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10712esac
10713fi
10714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10715printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10716	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10717	CFLAGS="$xorg_testset_save_CFLAGS"
10718fi
10719
10720found="no"
10721
10722	if test $found = "no" ; then
10723		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10724			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10725		fi
10726
10727		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10728			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10729		fi
10730
10731		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10732
10733		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10734printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10735		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10736		if eval test \${$cacheid+y}
10737then :
10738  printf %s "(cached) " >&6
10739else case e in #(
10740  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10741/* end confdefs.h.  */
10742int i;
10743int
10744main (void)
10745{
10746
10747  ;
10748  return 0;
10749}
10750_ACEOF
10751if ac_fn_c_try_link "$LINENO"
10752then :
10753  eval $cacheid=yes
10754else case e in #(
10755  e) eval $cacheid=no ;;
10756esac
10757fi
10758rm -f core conftest.err conftest.$ac_objext conftest.beam \
10759    conftest$ac_exeext conftest.$ac_ext ;;
10760esac
10761fi
10762
10763
10764		CFLAGS="$xorg_testset_save_CFLAGS"
10765
10766		eval supported=\$$cacheid
10767		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10768printf "%s\n" "$supported" >&6; }
10769		if test "$supported" = "yes" ; then
10770			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10771			found="yes"
10772		fi
10773	fi
10774
10775
10776fi
10777
10778
10779
10780
10781
10782
10783
10784		CWARNFLAGS="$BASE_CFLAGS"
10785		if  test "x$GCC" = xyes ; then
10786		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10787		fi
10788
10789
10790
10791
10792
10793
10794
10795
10796# Check whether --enable-strict-compilation was given.
10797if test ${enable_strict_compilation+y}
10798then :
10799  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10800else case e in #(
10801  e) STRICT_COMPILE=no ;;
10802esac
10803fi
10804
10805
10806
10807
10808
10809
10810STRICT_CFLAGS=""
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824xorg_testset_save_CFLAGS="$CFLAGS"
10825
10826if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10827	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10828	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10829printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10830if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10831then :
10832  printf %s "(cached) " >&6
10833else case e in #(
10834  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10835/* end confdefs.h.  */
10836int i;
10837_ACEOF
10838if ac_fn_c_try_compile "$LINENO"
10839then :
10840  xorg_cv_cc_flag_unknown_warning_option=yes
10841else case e in #(
10842  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10843esac
10844fi
10845rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10846esac
10847fi
10848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10849printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10850	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10851	CFLAGS="$xorg_testset_save_CFLAGS"
10852fi
10853
10854if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10855	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10856		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10857	fi
10858	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10859	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10860printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10861if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10862then :
10863  printf %s "(cached) " >&6
10864else case e in #(
10865  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10866/* end confdefs.h.  */
10867int i;
10868_ACEOF
10869if ac_fn_c_try_compile "$LINENO"
10870then :
10871  xorg_cv_cc_flag_unused_command_line_argument=yes
10872else case e in #(
10873  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10874esac
10875fi
10876rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10877esac
10878fi
10879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10880printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10881	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10882	CFLAGS="$xorg_testset_save_CFLAGS"
10883fi
10884
10885found="no"
10886
10887	if test $found = "no" ; then
10888		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10889			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10890		fi
10891
10892		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10893			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10894		fi
10895
10896		CFLAGS="$CFLAGS -pedantic"
10897
10898		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10899printf %s "checking if $CC supports -pedantic... " >&6; }
10900		cacheid=xorg_cv_cc_flag__pedantic
10901		if eval test \${$cacheid+y}
10902then :
10903  printf %s "(cached) " >&6
10904else case e in #(
10905  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10906/* end confdefs.h.  */
10907int i;
10908int
10909main (void)
10910{
10911
10912  ;
10913  return 0;
10914}
10915_ACEOF
10916if ac_fn_c_try_link "$LINENO"
10917then :
10918  eval $cacheid=yes
10919else case e in #(
10920  e) eval $cacheid=no ;;
10921esac
10922fi
10923rm -f core conftest.err conftest.$ac_objext conftest.beam \
10924    conftest$ac_exeext conftest.$ac_ext ;;
10925esac
10926fi
10927
10928
10929		CFLAGS="$xorg_testset_save_CFLAGS"
10930
10931		eval supported=\$$cacheid
10932		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10933printf "%s\n" "$supported" >&6; }
10934		if test "$supported" = "yes" ; then
10935			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10936			found="yes"
10937		fi
10938	fi
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954xorg_testset_save_CFLAGS="$CFLAGS"
10955
10956if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10957	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10958	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10959printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10960if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10961then :
10962  printf %s "(cached) " >&6
10963else case e in #(
10964  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10965/* end confdefs.h.  */
10966int i;
10967_ACEOF
10968if ac_fn_c_try_compile "$LINENO"
10969then :
10970  xorg_cv_cc_flag_unknown_warning_option=yes
10971else case e in #(
10972  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10973esac
10974fi
10975rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10976esac
10977fi
10978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10979printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10980	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10981	CFLAGS="$xorg_testset_save_CFLAGS"
10982fi
10983
10984if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10985	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10986		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10987	fi
10988	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10989	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10990printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10991if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10992then :
10993  printf %s "(cached) " >&6
10994else case e in #(
10995  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10996/* end confdefs.h.  */
10997int i;
10998_ACEOF
10999if ac_fn_c_try_compile "$LINENO"
11000then :
11001  xorg_cv_cc_flag_unused_command_line_argument=yes
11002else case e in #(
11003  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11004esac
11005fi
11006rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11007esac
11008fi
11009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11010printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11011	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11012	CFLAGS="$xorg_testset_save_CFLAGS"
11013fi
11014
11015found="no"
11016
11017	if test $found = "no" ; then
11018		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11019			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11020		fi
11021
11022		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11023			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11024		fi
11025
11026		CFLAGS="$CFLAGS -Werror"
11027
11028		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11029printf %s "checking if $CC supports -Werror... " >&6; }
11030		cacheid=xorg_cv_cc_flag__Werror
11031		if eval test \${$cacheid+y}
11032then :
11033  printf %s "(cached) " >&6
11034else case e in #(
11035  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036/* end confdefs.h.  */
11037int i;
11038int
11039main (void)
11040{
11041
11042  ;
11043  return 0;
11044}
11045_ACEOF
11046if ac_fn_c_try_link "$LINENO"
11047then :
11048  eval $cacheid=yes
11049else case e in #(
11050  e) eval $cacheid=no ;;
11051esac
11052fi
11053rm -f core conftest.err conftest.$ac_objext conftest.beam \
11054    conftest$ac_exeext conftest.$ac_ext ;;
11055esac
11056fi
11057
11058
11059		CFLAGS="$xorg_testset_save_CFLAGS"
11060
11061		eval supported=\$$cacheid
11062		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11063printf "%s\n" "$supported" >&6; }
11064		if test "$supported" = "yes" ; then
11065			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11066			found="yes"
11067		fi
11068	fi
11069
11070	if test $found = "no" ; then
11071		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11072			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11073		fi
11074
11075		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11076			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11077		fi
11078
11079		CFLAGS="$CFLAGS -errwarn"
11080
11081		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11082printf %s "checking if $CC supports -errwarn... " >&6; }
11083		cacheid=xorg_cv_cc_flag__errwarn
11084		if eval test \${$cacheid+y}
11085then :
11086  printf %s "(cached) " >&6
11087else case e in #(
11088  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11089/* end confdefs.h.  */
11090int i;
11091int
11092main (void)
11093{
11094
11095  ;
11096  return 0;
11097}
11098_ACEOF
11099if ac_fn_c_try_link "$LINENO"
11100then :
11101  eval $cacheid=yes
11102else case e in #(
11103  e) eval $cacheid=no ;;
11104esac
11105fi
11106rm -f core conftest.err conftest.$ac_objext conftest.beam \
11107    conftest$ac_exeext conftest.$ac_ext ;;
11108esac
11109fi
11110
11111
11112		CFLAGS="$xorg_testset_save_CFLAGS"
11113
11114		eval supported=\$$cacheid
11115		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11116printf "%s\n" "$supported" >&6; }
11117		if test "$supported" = "yes" ; then
11118			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11119			found="yes"
11120		fi
11121	fi
11122
11123
11124
11125# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11126# activate it with -Werror, so we add it here explicitly.
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140xorg_testset_save_CFLAGS="$CFLAGS"
11141
11142if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11143	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11144	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11145printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11146if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11147then :
11148  printf %s "(cached) " >&6
11149else case e in #(
11150  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11151/* end confdefs.h.  */
11152int i;
11153_ACEOF
11154if ac_fn_c_try_compile "$LINENO"
11155then :
11156  xorg_cv_cc_flag_unknown_warning_option=yes
11157else case e in #(
11158  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11159esac
11160fi
11161rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11162esac
11163fi
11164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11165printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11166	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11167	CFLAGS="$xorg_testset_save_CFLAGS"
11168fi
11169
11170if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11171	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11172		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11173	fi
11174	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11175	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11176printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11177if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11178then :
11179  printf %s "(cached) " >&6
11180else case e in #(
11181  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11182/* end confdefs.h.  */
11183int i;
11184_ACEOF
11185if ac_fn_c_try_compile "$LINENO"
11186then :
11187  xorg_cv_cc_flag_unused_command_line_argument=yes
11188else case e in #(
11189  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11190esac
11191fi
11192rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11193esac
11194fi
11195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11196printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11197	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11198	CFLAGS="$xorg_testset_save_CFLAGS"
11199fi
11200
11201found="no"
11202
11203	if test $found = "no" ; then
11204		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11205			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11206		fi
11207
11208		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11209			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11210		fi
11211
11212		CFLAGS="$CFLAGS -Werror=attributes"
11213
11214		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11215printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11216		cacheid=xorg_cv_cc_flag__Werror_attributes
11217		if eval test \${$cacheid+y}
11218then :
11219  printf %s "(cached) " >&6
11220else case e in #(
11221  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11222/* end confdefs.h.  */
11223int i;
11224int
11225main (void)
11226{
11227
11228  ;
11229  return 0;
11230}
11231_ACEOF
11232if ac_fn_c_try_link "$LINENO"
11233then :
11234  eval $cacheid=yes
11235else case e in #(
11236  e) eval $cacheid=no ;;
11237esac
11238fi
11239rm -f core conftest.err conftest.$ac_objext conftest.beam \
11240    conftest$ac_exeext conftest.$ac_ext ;;
11241esac
11242fi
11243
11244
11245		CFLAGS="$xorg_testset_save_CFLAGS"
11246
11247		eval supported=\$$cacheid
11248		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11249printf "%s\n" "$supported" >&6; }
11250		if test "$supported" = "yes" ; then
11251			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11252			found="yes"
11253		fi
11254	fi
11255
11256
11257
11258if test "x$STRICT_COMPILE" = "xyes"; then
11259    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11260    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11261fi
11262
11263
11264
11265
11266
11267
11268
11269
11270cat >>confdefs.h <<_ACEOF
11271#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11272_ACEOF
11273
11274	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11275	if test "x$PVM" = "x"; then
11276		PVM="0"
11277	fi
11278
11279printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11280
11281	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11282	if test "x$PVP" = "x"; then
11283		PVP="0"
11284	fi
11285
11286printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11287
11288
11289
11290CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11291mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11292|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11293touch \$(top_srcdir)/ChangeLog; \
11294echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11295
11296
11297
11298
11299macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11300INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11301mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11302|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11303touch \$(top_srcdir)/INSTALL; \
11304echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11305
11306
11307
11308
11309
11310
11311case $host_os in
11312    solaris*)
11313        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11314        # check for a man page file found in later versions that use
11315        # traditional section numbers instead
11316        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11317printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11318if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11319then :
11320  printf %s "(cached) " >&6
11321else case e in #(
11322  e) test "$cross_compiling" = yes &&
11323  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11324if test -r "/usr/share/man/man7/attributes.7"; then
11325  ac_cv_file__usr_share_man_man7_attributes_7=yes
11326else
11327  ac_cv_file__usr_share_man_man7_attributes_7=no
11328fi ;;
11329esac
11330fi
11331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11332printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11333if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11334then :
11335  SYSV_MAN_SECTIONS=false
11336else case e in #(
11337  e) SYSV_MAN_SECTIONS=true ;;
11338esac
11339fi
11340
11341        ;;
11342    *) SYSV_MAN_SECTIONS=false ;;
11343esac
11344
11345if test x$APP_MAN_SUFFIX = x    ; then
11346    APP_MAN_SUFFIX=1
11347fi
11348if test x$APP_MAN_DIR = x    ; then
11349    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11350fi
11351
11352if test x$LIB_MAN_SUFFIX = x    ; then
11353    LIB_MAN_SUFFIX=3
11354fi
11355if test x$LIB_MAN_DIR = x    ; then
11356    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11357fi
11358
11359if test x$FILE_MAN_SUFFIX = x    ; then
11360    case $SYSV_MAN_SECTIONS in
11361	true)				FILE_MAN_SUFFIX=4  ;;
11362	*)				FILE_MAN_SUFFIX=5  ;;
11363    esac
11364fi
11365if test x$FILE_MAN_DIR = x    ; then
11366    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11367fi
11368
11369if test x$MISC_MAN_SUFFIX = x    ; then
11370    case $SYSV_MAN_SECTIONS in
11371	true)				MISC_MAN_SUFFIX=5  ;;
11372	*)				MISC_MAN_SUFFIX=7  ;;
11373    esac
11374fi
11375if test x$MISC_MAN_DIR = x    ; then
11376    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11377fi
11378
11379if test x$DRIVER_MAN_SUFFIX = x    ; then
11380    case $SYSV_MAN_SECTIONS in
11381	true)				DRIVER_MAN_SUFFIX=7  ;;
11382	*)				DRIVER_MAN_SUFFIX=4  ;;
11383    esac
11384fi
11385if test x$DRIVER_MAN_DIR = x    ; then
11386    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11387fi
11388
11389if test x$ADMIN_MAN_SUFFIX = x    ; then
11390    case $SYSV_MAN_SECTIONS in
11391	true)				ADMIN_MAN_SUFFIX=1m ;;
11392	*)				ADMIN_MAN_SUFFIX=8  ;;
11393    esac
11394fi
11395if test x$ADMIN_MAN_DIR = x    ; then
11396    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11397fi
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413XORG_MAN_PAGE="X Version 11"
11414
11415MAN_SUBSTS="\
11416	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11417	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11418	-e 's|__xservername__|Xorg|g' \
11419	-e 's|__xconfigfile__|xorg.conf|g' \
11420	-e 's|__projectroot__|\$(prefix)|g' \
11421	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11422	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11423	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11424	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11425	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11426	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11427	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11428
11429
11430
11431# Check whether --enable-silent-rules was given.
11432if test ${enable_silent_rules+y}
11433then :
11434  enableval=$enable_silent_rules;
11435fi
11436
11437case $enable_silent_rules in # (((
11438  yes) AM_DEFAULT_VERBOSITY=0;;
11439   no) AM_DEFAULT_VERBOSITY=1;;
11440    *) AM_DEFAULT_VERBOSITY=0;;
11441esac
11442am_make=${MAKE-make}
11443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11444printf %s "checking whether $am_make supports nested variables... " >&6; }
11445if test ${am_cv_make_support_nested_variables+y}
11446then :
11447  printf %s "(cached) " >&6
11448else case e in #(
11449  e) if printf "%s\n" 'TRUE=$(BAR$(V))
11450BAR0=false
11451BAR1=true
11452V=1
11453am__doit:
11454	@$(TRUE)
11455.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11456  am_cv_make_support_nested_variables=yes
11457else
11458  am_cv_make_support_nested_variables=no
11459fi ;;
11460esac
11461fi
11462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11463printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11464if test $am_cv_make_support_nested_variables = yes; then
11465    AM_V='$(V)'
11466  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11467else
11468  AM_V=$AM_DEFAULT_VERBOSITY
11469  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11470fi
11471AM_BACKSLASH='\'
11472
11473
11474
11475
11476
11477pkg_failed=no
11478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFONTSEL" >&5
11479printf %s "checking for XFONTSEL... " >&6; }
11480
11481if test -n "$XFONTSEL_CFLAGS"; then
11482    pkg_cv_XFONTSEL_CFLAGS="$XFONTSEL_CFLAGS"
11483 elif test -n "$PKG_CONFIG"; then
11484    if test -n "$PKG_CONFIG" && \
11485    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11 xproto >= 7.0.17\""; } >&5
11486  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11 xproto >= 7.0.17") 2>&5
11487  ac_status=$?
11488  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11489  test $ac_status = 0; }; then
11490  pkg_cv_XFONTSEL_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt x11 xproto >= 7.0.17" 2>/dev/null`
11491		      test "x$?" != "x0" && pkg_failed=yes
11492else
11493  pkg_failed=yes
11494fi
11495 else
11496    pkg_failed=untried
11497fi
11498if test -n "$XFONTSEL_LIBS"; then
11499    pkg_cv_XFONTSEL_LIBS="$XFONTSEL_LIBS"
11500 elif test -n "$PKG_CONFIG"; then
11501    if test -n "$PKG_CONFIG" && \
11502    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11 xproto >= 7.0.17\""; } >&5
11503  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11 xproto >= 7.0.17") 2>&5
11504  ac_status=$?
11505  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11506  test $ac_status = 0; }; then
11507  pkg_cv_XFONTSEL_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt x11 xproto >= 7.0.17" 2>/dev/null`
11508		      test "x$?" != "x0" && pkg_failed=yes
11509else
11510  pkg_failed=yes
11511fi
11512 else
11513    pkg_failed=untried
11514fi
11515
11516
11517
11518if test $pkg_failed = yes; then
11519   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11520printf "%s\n" "no" >&6; }
11521
11522if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11523        _pkg_short_errors_supported=yes
11524else
11525        _pkg_short_errors_supported=no
11526fi
11527        if test $_pkg_short_errors_supported = yes; then
11528	        XFONTSEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt x11 xproto >= 7.0.17" 2>&1`
11529        else
11530	        XFONTSEL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt x11 xproto >= 7.0.17" 2>&1`
11531        fi
11532	# Put the nasty error message in config.log where it belongs
11533	echo "$XFONTSEL_PKG_ERRORS" >&5
11534
11535	as_fn_error $? "Package requirements (xaw7 xmu xt x11 xproto >= 7.0.17) were not met:
11536
11537$XFONTSEL_PKG_ERRORS
11538
11539Consider adjusting the PKG_CONFIG_PATH environment variable if you
11540installed software in a non-standard prefix.
11541
11542Alternatively, you may set the environment variables XFONTSEL_CFLAGS
11543and XFONTSEL_LIBS to avoid the need to call pkg-config.
11544See the pkg-config man page for more details." "$LINENO" 5
11545elif test $pkg_failed = untried; then
11546     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11547printf "%s\n" "no" >&6; }
11548	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11549printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11550as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11551is in your PATH or set the PKG_CONFIG environment variable to the full
11552path to pkg-config.
11553
11554Alternatively, you may set the environment variables XFONTSEL_CFLAGS
11555and XFONTSEL_LIBS to avoid the need to call pkg-config.
11556See the pkg-config man page for more details.
11557
11558To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11559See 'config.log' for more details" "$LINENO" 5; }
11560else
11561	XFONTSEL_CFLAGS=$pkg_cv_XFONTSEL_CFLAGS
11562	XFONTSEL_LIBS=$pkg_cv_XFONTSEL_LIBS
11563        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11564printf "%s\n" "yes" >&6; }
11565
11566fi
11567
11568
11569pkg_failed=no
11570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
11571printf %s "checking for APPDEFS... " >&6; }
11572
11573if test -n "$APPDEFS_CFLAGS"; then
11574    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
11575 elif test -n "$PKG_CONFIG"; then
11576    if test -n "$PKG_CONFIG" && \
11577    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11578  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11579  ac_status=$?
11580  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11581  test $ac_status = 0; }; then
11582  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
11583		      test "x$?" != "x0" && pkg_failed=yes
11584else
11585  pkg_failed=yes
11586fi
11587 else
11588    pkg_failed=untried
11589fi
11590if test -n "$APPDEFS_LIBS"; then
11591    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
11592 elif test -n "$PKG_CONFIG"; then
11593    if test -n "$PKG_CONFIG" && \
11594    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11595  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11596  ac_status=$?
11597  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11598  test $ac_status = 0; }; then
11599  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
11600		      test "x$?" != "x0" && pkg_failed=yes
11601else
11602  pkg_failed=yes
11603fi
11604 else
11605    pkg_failed=untried
11606fi
11607
11608
11609
11610if test $pkg_failed = yes; then
11611   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11612printf "%s\n" "no" >&6; }
11613
11614if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11615        _pkg_short_errors_supported=yes
11616else
11617        _pkg_short_errors_supported=no
11618fi
11619        if test $_pkg_short_errors_supported = yes; then
11620	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
11621        else
11622	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
11623        fi
11624	# Put the nasty error message in config.log where it belongs
11625	echo "$APPDEFS_PKG_ERRORS" >&5
11626
11627	as_fn_error $? "Package requirements (xt) were not met:
11628
11629$APPDEFS_PKG_ERRORS
11630
11631Consider adjusting the PKG_CONFIG_PATH environment variable if you
11632installed software in a non-standard prefix.
11633
11634Alternatively, you may set the environment variables APPDEFS_CFLAGS
11635and APPDEFS_LIBS to avoid the need to call pkg-config.
11636See the pkg-config man page for more details." "$LINENO" 5
11637elif test $pkg_failed = untried; then
11638     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11639printf "%s\n" "no" >&6; }
11640	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11641printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11642as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11643is in your PATH or set the PKG_CONFIG environment variable to the full
11644path to pkg-config.
11645
11646Alternatively, you may set the environment variables APPDEFS_CFLAGS
11647and APPDEFS_LIBS to avoid the need to call pkg-config.
11648See the pkg-config man page for more details.
11649
11650To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11651See 'config.log' for more details" "$LINENO" 5; }
11652else
11653	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
11654	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
11655        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11656printf "%s\n" "yes" >&6; }
11657
11658fi
11659xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11660
11661# Check whether --with-appdefaultdir was given.
11662if test ${with_appdefaultdir+y}
11663then :
11664  withval=$with_appdefaultdir; appdefaultdir="$withval"
11665else case e in #(
11666  e) appdefaultdir="${xt_appdefaultdir}" ;;
11667esac
11668fi
11669
11670
11671
11672# Internationalization & localization support
11673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5
11674printf %s "checking for library containing gettext... " >&6; }
11675if test ${ac_cv_search_gettext+y}
11676then :
11677  printf %s "(cached) " >&6
11678else case e in #(
11679  e) ac_func_search_save_LIBS=$LIBS
11680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11681/* end confdefs.h.  */
11682
11683/* Override any GCC internal prototype to avoid an error.
11684   Use char because int might match the return type of a GCC
11685   builtin and then its argument prototype would still apply.
11686   The 'extern "C"' is for builds by C++ compilers;
11687   although this is not generally supported in C code supporting it here
11688   has little cost and some practical benefit (sr 110532).  */
11689#ifdef __cplusplus
11690extern "C"
11691#endif
11692char gettext (void);
11693int
11694main (void)
11695{
11696return gettext ();
11697  ;
11698  return 0;
11699}
11700_ACEOF
11701for ac_lib in '' intl
11702do
11703  if test -z "$ac_lib"; then
11704    ac_res="none required"
11705  else
11706    ac_res=-l$ac_lib
11707    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11708  fi
11709  if ac_fn_c_try_link "$LINENO"
11710then :
11711  ac_cv_search_gettext=$ac_res
11712fi
11713rm -f core conftest.err conftest.$ac_objext conftest.beam \
11714    conftest$ac_exeext
11715  if test ${ac_cv_search_gettext+y}
11716then :
11717  break
11718fi
11719done
11720if test ${ac_cv_search_gettext+y}
11721then :
11722
11723else case e in #(
11724  e) ac_cv_search_gettext=no ;;
11725esac
11726fi
11727rm conftest.$ac_ext
11728LIBS=$ac_func_search_save_LIBS ;;
11729esac
11730fi
11731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5
11732printf "%s\n" "$ac_cv_search_gettext" >&6; }
11733ac_res=$ac_cv_search_gettext
11734if test "$ac_res" != no
11735then :
11736  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11737  USE_GETTEXT="yes"
11738else case e in #(
11739  e) USE_GETTEXT="no" ;;
11740esac
11741fi
11742
11743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to install localized messages" >&5
11744printf %s "checking where to install localized messages... " >&6; }
11745
11746# Check whether --with-localedir was given.
11747if test ${with_localedir+y}
11748then :
11749  withval=$with_localedir; LOCALEDIR=${withval}
11750else case e in #(
11751  e) LOCALEDIR=${datadir}/locale ;;
11752esac
11753fi
11754
11755if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then
11756        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5
11757printf "%s\n" "nowhere" >&6; }
11758        USE_GETTEXT="no"
11759else
11760
11761        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALEDIR" >&5
11762printf "%s\n" "$LOCALEDIR" >&6; }
11763fi
11764
11765if test "x$USE_GETTEXT" = "xyes" ; then
11766
11767printf "%s\n" "#define USE_GETTEXT 1" >>confdefs.h
11768
11769fi
11770 if test "x$USE_GETTEXT" = "xyes"; then
11771  USE_GETTEXT_TRUE=
11772  USE_GETTEXT_FALSE='#'
11773else
11774  USE_GETTEXT_TRUE='#'
11775  USE_GETTEXT_FALSE=
11776fi
11777
11778
11779
11780ac_config_files="$ac_config_files Makefile man/Makefile"
11781
11782cat >confcache <<\_ACEOF
11783# This file is a shell script that caches the results of configure
11784# tests run on this system so they can be shared between configure
11785# scripts and configure runs, see configure's option --config-cache.
11786# It is not useful on other systems.  If it contains results you don't
11787# want to keep, you may remove or edit it.
11788#
11789# config.status only pays attention to the cache file if you give it
11790# the --recheck option to rerun configure.
11791#
11792# 'ac_cv_env_foo' variables (set or unset) will be overridden when
11793# loading this file, other *unset* 'ac_cv_foo' will be assigned the
11794# following values.
11795
11796_ACEOF
11797
11798# The following way of writing the cache mishandles newlines in values,
11799# but we know of no workaround that is simple, portable, and efficient.
11800# So, we kill variables containing newlines.
11801# Ultrix sh set writes to stderr and can't be redirected directly,
11802# and sets the high bit in the cache file unless we assign to the vars.
11803(
11804  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11805    eval ac_val=\$$ac_var
11806    case $ac_val in #(
11807    *${as_nl}*)
11808      case $ac_var in #(
11809      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11810printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11811      esac
11812      case $ac_var in #(
11813      _ | IFS | as_nl) ;; #(
11814      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11815      *) { eval $ac_var=; unset $ac_var;} ;;
11816      esac ;;
11817    esac
11818  done
11819
11820  (set) 2>&1 |
11821    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11822    *${as_nl}ac_space=\ *)
11823      # 'set' does not quote correctly, so add quotes: double-quote
11824      # substitution turns \\\\ into \\, and sed turns \\ into \.
11825      sed -n \
11826	"s/'/'\\\\''/g;
11827	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11828      ;; #(
11829    *)
11830      # 'set' quotes correctly as required by POSIX, so do not add quotes.
11831      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11832      ;;
11833    esac |
11834    sort
11835) |
11836  sed '
11837     /^ac_cv_env_/b end
11838     t clear
11839     :clear
11840     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11841     t end
11842     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11843     :end' >>confcache
11844if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11845  if test -w "$cache_file"; then
11846    if test "x$cache_file" != "x/dev/null"; then
11847      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11848printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11849      if test ! -f "$cache_file" || test -h "$cache_file"; then
11850	cat confcache >"$cache_file"
11851      else
11852        case $cache_file in #(
11853        */* | ?:*)
11854	  mv -f confcache "$cache_file"$$ &&
11855	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11856        *)
11857	  mv -f confcache "$cache_file" ;;
11858	esac
11859      fi
11860    fi
11861  else
11862    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11863printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11864  fi
11865fi
11866rm -f confcache
11867
11868test "x$prefix" = xNONE && prefix=$ac_default_prefix
11869# Let make expand exec_prefix.
11870test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11871
11872DEFS=-DHAVE_CONFIG_H
11873
11874ac_libobjs=
11875ac_ltlibobjs=
11876U=
11877for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11878  # 1. Remove the extension, and $U if already installed.
11879  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11880  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11881  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11882  #    will be set to the directory where LIBOBJS objects are built.
11883  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11884  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11885done
11886LIBOBJS=$ac_libobjs
11887
11888LTLIBOBJS=$ac_ltlibobjs
11889
11890
11891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11892printf %s "checking that generated files are newer than configure... " >&6; }
11893   if test -n "$am_sleep_pid"; then
11894     # Hide warnings about reused PIDs.
11895     wait $am_sleep_pid 2>/dev/null
11896   fi
11897   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11898printf "%s\n" "done" >&6; }
11899 if test -n "$EXEEXT"; then
11900  am__EXEEXT_TRUE=
11901  am__EXEEXT_FALSE='#'
11902else
11903  am__EXEEXT_TRUE='#'
11904  am__EXEEXT_FALSE=
11905fi
11906
11907if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11908  as_fn_error $? "conditional \"AMDEP\" was never defined.
11909Usually this means the macro was only invoked conditionally." "$LINENO" 5
11910fi
11911if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11912  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11913Usually this means the macro was only invoked conditionally." "$LINENO" 5
11914fi
11915if test -z "${USE_GETTEXT_TRUE}" && test -z "${USE_GETTEXT_FALSE}"; then
11916  as_fn_error $? "conditional \"USE_GETTEXT\" was never defined.
11917Usually this means the macro was only invoked conditionally." "$LINENO" 5
11918fi
11919
11920: "${CONFIG_STATUS=./config.status}"
11921ac_write_fail=0
11922ac_clean_files_save=$ac_clean_files
11923ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11925printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11926as_write_fail=0
11927cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11928#! $SHELL
11929# Generated by $as_me.
11930# Run this file to recreate the current configuration.
11931# Compiler output produced by configure, useful for debugging
11932# configure, is in config.log if it exists.
11933
11934debug=false
11935ac_cs_recheck=false
11936ac_cs_silent=false
11937
11938SHELL=\${CONFIG_SHELL-$SHELL}
11939export SHELL
11940_ASEOF
11941cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11942## -------------------- ##
11943## M4sh Initialization. ##
11944## -------------------- ##
11945
11946# Be more Bourne compatible
11947DUALCASE=1; export DUALCASE # for MKS sh
11948if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11949then :
11950  emulate sh
11951  NULLCMD=:
11952  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11953  # is contrary to our usage.  Disable this feature.
11954  alias -g '${1+"$@"}'='"$@"'
11955  setopt NO_GLOB_SUBST
11956else case e in #(
11957  e) case `(set -o) 2>/dev/null` in #(
11958  *posix*) :
11959    set -o posix ;; #(
11960  *) :
11961     ;;
11962esac ;;
11963esac
11964fi
11965
11966
11967
11968# Reset variables that may have inherited troublesome values from
11969# the environment.
11970
11971# IFS needs to be set, to space, tab, and newline, in precisely that order.
11972# (If _AS_PATH_WALK were called with IFS unset, it would have the
11973# side effect of setting IFS to empty, thus disabling word splitting.)
11974# Quoting is to prevent editors from complaining about space-tab.
11975as_nl='
11976'
11977export as_nl
11978IFS=" ""	$as_nl"
11979
11980PS1='$ '
11981PS2='> '
11982PS4='+ '
11983
11984# Ensure predictable behavior from utilities with locale-dependent output.
11985LC_ALL=C
11986export LC_ALL
11987LANGUAGE=C
11988export LANGUAGE
11989
11990# We cannot yet rely on "unset" to work, but we need these variables
11991# to be unset--not just set to an empty or harmless value--now, to
11992# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11993# also avoids known problems related to "unset" and subshell syntax
11994# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11995for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11996do eval test \${$as_var+y} \
11997  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11998done
11999
12000# Ensure that fds 0, 1, and 2 are open.
12001if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12002if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12003if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
12004
12005# The user is always right.
12006if ${PATH_SEPARATOR+false} :; then
12007  PATH_SEPARATOR=:
12008  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12009    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12010      PATH_SEPARATOR=';'
12011  }
12012fi
12013
12014
12015# Find who we are.  Look in the path if we contain no directory separator.
12016as_myself=
12017case $0 in #((
12018  *[\\/]* ) as_myself=$0 ;;
12019  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12020for as_dir in $PATH
12021do
12022  IFS=$as_save_IFS
12023  case $as_dir in #(((
12024    '') as_dir=./ ;;
12025    */) ;;
12026    *) as_dir=$as_dir/ ;;
12027  esac
12028    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12029  done
12030IFS=$as_save_IFS
12031
12032     ;;
12033esac
12034# We did not find ourselves, most probably we were run as 'sh COMMAND'
12035# in which case we are not to be found in the path.
12036if test "x$as_myself" = x; then
12037  as_myself=$0
12038fi
12039if test ! -f "$as_myself"; then
12040  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12041  exit 1
12042fi
12043
12044
12045
12046# as_fn_error STATUS ERROR [LINENO LOG_FD]
12047# ----------------------------------------
12048# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12049# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12050# script with STATUS, using 1 if that was 0.
12051as_fn_error ()
12052{
12053  as_status=$1; test $as_status -eq 0 && as_status=1
12054  if test "$4"; then
12055    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12056    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12057  fi
12058  printf "%s\n" "$as_me: error: $2" >&2
12059  as_fn_exit $as_status
12060} # as_fn_error
12061
12062
12063# as_fn_set_status STATUS
12064# -----------------------
12065# Set $? to STATUS, without forking.
12066as_fn_set_status ()
12067{
12068  return $1
12069} # as_fn_set_status
12070
12071# as_fn_exit STATUS
12072# -----------------
12073# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12074as_fn_exit ()
12075{
12076  set +e
12077  as_fn_set_status $1
12078  exit $1
12079} # as_fn_exit
12080
12081# as_fn_unset VAR
12082# ---------------
12083# Portably unset VAR.
12084as_fn_unset ()
12085{
12086  { eval $1=; unset $1;}
12087}
12088as_unset=as_fn_unset
12089
12090# as_fn_append VAR VALUE
12091# ----------------------
12092# Append the text in VALUE to the end of the definition contained in VAR. Take
12093# advantage of any shell optimizations that allow amortized linear growth over
12094# repeated appends, instead of the typical quadratic growth present in naive
12095# implementations.
12096if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12097then :
12098  eval 'as_fn_append ()
12099  {
12100    eval $1+=\$2
12101  }'
12102else case e in #(
12103  e) as_fn_append ()
12104  {
12105    eval $1=\$$1\$2
12106  } ;;
12107esac
12108fi # as_fn_append
12109
12110# as_fn_arith ARG...
12111# ------------------
12112# Perform arithmetic evaluation on the ARGs, and store the result in the
12113# global $as_val. Take advantage of shells that can avoid forks. The arguments
12114# must be portable across $(()) and expr.
12115if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12116then :
12117  eval 'as_fn_arith ()
12118  {
12119    as_val=$(( $* ))
12120  }'
12121else case e in #(
12122  e) as_fn_arith ()
12123  {
12124    as_val=`expr "$@" || test $? -eq 1`
12125  } ;;
12126esac
12127fi # as_fn_arith
12128
12129
12130if expr a : '\(a\)' >/dev/null 2>&1 &&
12131   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12132  as_expr=expr
12133else
12134  as_expr=false
12135fi
12136
12137if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12138  as_basename=basename
12139else
12140  as_basename=false
12141fi
12142
12143if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12144  as_dirname=dirname
12145else
12146  as_dirname=false
12147fi
12148
12149as_me=`$as_basename -- "$0" ||
12150$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12151	 X"$0" : 'X\(//\)$' \| \
12152	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12153printf "%s\n" X/"$0" |
12154    sed '/^.*\/\([^/][^/]*\)\/*$/{
12155	    s//\1/
12156	    q
12157	  }
12158	  /^X\/\(\/\/\)$/{
12159	    s//\1/
12160	    q
12161	  }
12162	  /^X\/\(\/\).*/{
12163	    s//\1/
12164	    q
12165	  }
12166	  s/.*/./; q'`
12167
12168# Avoid depending upon Character Ranges.
12169as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12170as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12171as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12172as_cr_digits='0123456789'
12173as_cr_alnum=$as_cr_Letters$as_cr_digits
12174
12175
12176# Determine whether it's possible to make 'echo' print without a newline.
12177# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12178# for compatibility with existing Makefiles.
12179ECHO_C= ECHO_N= ECHO_T=
12180case `echo -n x` in #(((((
12181-n*)
12182  case `echo 'xy\c'` in
12183  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12184  xy)  ECHO_C='\c';;
12185  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12186       ECHO_T='	';;
12187  esac;;
12188*)
12189  ECHO_N='-n';;
12190esac
12191
12192# For backward compatibility with old third-party macros, we provide
12193# the shell variables $as_echo and $as_echo_n.  New code should use
12194# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12195as_echo='printf %s\n'
12196as_echo_n='printf %s'
12197
12198rm -f conf$$ conf$$.exe conf$$.file
12199if test -d conf$$.dir; then
12200  rm -f conf$$.dir/conf$$.file
12201else
12202  rm -f conf$$.dir
12203  mkdir conf$$.dir 2>/dev/null
12204fi
12205if (echo >conf$$.file) 2>/dev/null; then
12206  if ln -s conf$$.file conf$$ 2>/dev/null; then
12207    as_ln_s='ln -s'
12208    # ... but there are two gotchas:
12209    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12210    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12211    # In both cases, we have to default to 'cp -pR'.
12212    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12213      as_ln_s='cp -pR'
12214  elif ln conf$$.file conf$$ 2>/dev/null; then
12215    as_ln_s=ln
12216  else
12217    as_ln_s='cp -pR'
12218  fi
12219else
12220  as_ln_s='cp -pR'
12221fi
12222rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12223rmdir conf$$.dir 2>/dev/null
12224
12225
12226# as_fn_mkdir_p
12227# -------------
12228# Create "$as_dir" as a directory, including parents if necessary.
12229as_fn_mkdir_p ()
12230{
12231
12232  case $as_dir in #(
12233  -*) as_dir=./$as_dir;;
12234  esac
12235  test -d "$as_dir" || eval $as_mkdir_p || {
12236    as_dirs=
12237    while :; do
12238      case $as_dir in #(
12239      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12240      *) as_qdir=$as_dir;;
12241      esac
12242      as_dirs="'$as_qdir' $as_dirs"
12243      as_dir=`$as_dirname -- "$as_dir" ||
12244$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12245	 X"$as_dir" : 'X\(//\)[^/]' \| \
12246	 X"$as_dir" : 'X\(//\)$' \| \
12247	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12248printf "%s\n" X"$as_dir" |
12249    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12250	    s//\1/
12251	    q
12252	  }
12253	  /^X\(\/\/\)[^/].*/{
12254	    s//\1/
12255	    q
12256	  }
12257	  /^X\(\/\/\)$/{
12258	    s//\1/
12259	    q
12260	  }
12261	  /^X\(\/\).*/{
12262	    s//\1/
12263	    q
12264	  }
12265	  s/.*/./; q'`
12266      test -d "$as_dir" && break
12267    done
12268    test -z "$as_dirs" || eval "mkdir $as_dirs"
12269  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12270
12271
12272} # as_fn_mkdir_p
12273if mkdir -p . 2>/dev/null; then
12274  as_mkdir_p='mkdir -p "$as_dir"'
12275else
12276  test -d ./-p && rmdir ./-p
12277  as_mkdir_p=false
12278fi
12279
12280
12281# as_fn_executable_p FILE
12282# -----------------------
12283# Test if FILE is an executable regular file.
12284as_fn_executable_p ()
12285{
12286  test -f "$1" && test -x "$1"
12287} # as_fn_executable_p
12288as_test_x='test -x'
12289as_executable_p=as_fn_executable_p
12290
12291# Sed expression to map a string onto a valid CPP name.
12292as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12293as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12294
12295# Sed expression to map a string onto a valid variable name.
12296as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12297as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12298
12299
12300exec 6>&1
12301## ----------------------------------- ##
12302## Main body of $CONFIG_STATUS script. ##
12303## ----------------------------------- ##
12304_ASEOF
12305test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12306
12307cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12308# Save the log message, to keep $0 and so on meaningful, and to
12309# report actual input values of CONFIG_FILES etc. instead of their
12310# values after options handling.
12311ac_log="
12312This file was extended by xfontsel $as_me 1.1.1, which was
12313generated by GNU Autoconf 2.72.  Invocation command line was
12314
12315  CONFIG_FILES    = $CONFIG_FILES
12316  CONFIG_HEADERS  = $CONFIG_HEADERS
12317  CONFIG_LINKS    = $CONFIG_LINKS
12318  CONFIG_COMMANDS = $CONFIG_COMMANDS
12319  $ $0 $@
12320
12321on `(hostname || uname -n) 2>/dev/null | sed 1q`
12322"
12323
12324_ACEOF
12325
12326case $ac_config_files in *"
12327"*) set x $ac_config_files; shift; ac_config_files=$*;;
12328esac
12329
12330case $ac_config_headers in *"
12331"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12332esac
12333
12334
12335cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12336# Files that config.status was made for.
12337config_files="$ac_config_files"
12338config_headers="$ac_config_headers"
12339config_commands="$ac_config_commands"
12340
12341_ACEOF
12342
12343cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12344ac_cs_usage="\
12345'$as_me' instantiates files and other configuration actions
12346from templates according to the current configuration.  Unless the files
12347and actions are specified as TAGs, all are instantiated by default.
12348
12349Usage: $0 [OPTION]... [TAG]...
12350
12351  -h, --help       print this help, then exit
12352  -V, --version    print version number and configuration settings, then exit
12353      --config     print configuration, then exit
12354  -q, --quiet, --silent
12355                   do not print progress messages
12356  -d, --debug      don't remove temporary files
12357      --recheck    update $as_me by reconfiguring in the same conditions
12358      --file=FILE[:TEMPLATE]
12359                   instantiate the configuration file FILE
12360      --header=FILE[:TEMPLATE]
12361                   instantiate the configuration header FILE
12362
12363Configuration files:
12364$config_files
12365
12366Configuration headers:
12367$config_headers
12368
12369Configuration commands:
12370$config_commands
12371
12372Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfontsel/-/issues>."
12373
12374_ACEOF
12375ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12376ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12377cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12378ac_cs_config='$ac_cs_config_escaped'
12379ac_cs_version="\\
12380xfontsel config.status 1.1.1
12381configured by $0, generated by GNU Autoconf 2.72,
12382  with options \\"\$ac_cs_config\\"
12383
12384Copyright (C) 2023 Free Software Foundation, Inc.
12385This config.status script is free software; the Free Software Foundation
12386gives unlimited permission to copy, distribute and modify it."
12387
12388ac_pwd='$ac_pwd'
12389srcdir='$srcdir'
12390INSTALL='$INSTALL'
12391MKDIR_P='$MKDIR_P'
12392AWK='$AWK'
12393test -n "\$AWK" || AWK=awk
12394_ACEOF
12395
12396cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12397# The default lists apply if the user does not specify any file.
12398ac_need_defaults=:
12399while test $# != 0
12400do
12401  case $1 in
12402  --*=?*)
12403    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12404    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12405    ac_shift=:
12406    ;;
12407  --*=)
12408    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12409    ac_optarg=
12410    ac_shift=:
12411    ;;
12412  *)
12413    ac_option=$1
12414    ac_optarg=$2
12415    ac_shift=shift
12416    ;;
12417  esac
12418
12419  case $ac_option in
12420  # Handling of the options.
12421  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12422    ac_cs_recheck=: ;;
12423  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12424    printf "%s\n" "$ac_cs_version"; exit ;;
12425  --config | --confi | --conf | --con | --co | --c )
12426    printf "%s\n" "$ac_cs_config"; exit ;;
12427  --debug | --debu | --deb | --de | --d | -d )
12428    debug=: ;;
12429  --file | --fil | --fi | --f )
12430    $ac_shift
12431    case $ac_optarg in
12432    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12433    '') as_fn_error $? "missing file argument" ;;
12434    esac
12435    as_fn_append CONFIG_FILES " '$ac_optarg'"
12436    ac_need_defaults=false;;
12437  --header | --heade | --head | --hea )
12438    $ac_shift
12439    case $ac_optarg in
12440    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12441    esac
12442    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12443    ac_need_defaults=false;;
12444  --he | --h)
12445    # Conflict between --help and --header
12446    as_fn_error $? "ambiguous option: '$1'
12447Try '$0 --help' for more information.";;
12448  --help | --hel | -h )
12449    printf "%s\n" "$ac_cs_usage"; exit ;;
12450  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12451  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12452    ac_cs_silent=: ;;
12453
12454  # This is an error.
12455  -*) as_fn_error $? "unrecognized option: '$1'
12456Try '$0 --help' for more information." ;;
12457
12458  *) as_fn_append ac_config_targets " $1"
12459     ac_need_defaults=false ;;
12460
12461  esac
12462  shift
12463done
12464
12465ac_configure_extra_args=
12466
12467if $ac_cs_silent; then
12468  exec 6>/dev/null
12469  ac_configure_extra_args="$ac_configure_extra_args --silent"
12470fi
12471
12472_ACEOF
12473cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12474if \$ac_cs_recheck; then
12475  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12476  shift
12477  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12478  CONFIG_SHELL='$SHELL'
12479  export CONFIG_SHELL
12480  exec "\$@"
12481fi
12482
12483_ACEOF
12484cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12485exec 5>>config.log
12486{
12487  echo
12488  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12489## Running $as_me. ##
12490_ASBOX
12491  printf "%s\n" "$ac_log"
12492} >&5
12493
12494_ACEOF
12495cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12496#
12497# INIT-COMMANDS
12498#
12499AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12500
12501_ACEOF
12502
12503cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12504
12505# Handling of arguments.
12506for ac_config_target in $ac_config_targets
12507do
12508  case $ac_config_target in
12509    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12510    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12511    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12512    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12513
12514  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12515  esac
12516done
12517
12518
12519# If the user did not use the arguments to specify the items to instantiate,
12520# then the envvar interface is used.  Set only those that are not.
12521# We use the long form for the default assignment because of an extremely
12522# bizarre bug on SunOS 4.1.3.
12523if $ac_need_defaults; then
12524  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12525  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12526  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12527fi
12528
12529# Have a temporary directory for convenience.  Make it in the build tree
12530# simply because there is no reason against having it here, and in addition,
12531# creating and moving files from /tmp can sometimes cause problems.
12532# Hook for its removal unless debugging.
12533# Note that there is a small window in which the directory will not be cleaned:
12534# after its creation but before its name has been assigned to '$tmp'.
12535$debug ||
12536{
12537  tmp= ac_tmp=
12538  trap 'exit_status=$?
12539  : "${ac_tmp:=$tmp}"
12540  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12541' 0
12542  trap 'as_fn_exit 1' 1 2 13 15
12543}
12544# Create a (secure) tmp directory for tmp files.
12545
12546{
12547  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12548  test -d "$tmp"
12549}  ||
12550{
12551  tmp=./conf$$-$RANDOM
12552  (umask 077 && mkdir "$tmp")
12553} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12554ac_tmp=$tmp
12555
12556# Set up the scripts for CONFIG_FILES section.
12557# No need to generate them if there are no CONFIG_FILES.
12558# This happens for instance with './config.status config.h'.
12559if test -n "$CONFIG_FILES"; then
12560
12561
12562ac_cr=`echo X | tr X '\015'`
12563# On cygwin, bash can eat \r inside `` if the user requested igncr.
12564# But we know of no other shell where ac_cr would be empty at this
12565# point, so we can use a bashism as a fallback.
12566if test "x$ac_cr" = x; then
12567  eval ac_cr=\$\'\\r\'
12568fi
12569ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12570if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12571  ac_cs_awk_cr='\\r'
12572else
12573  ac_cs_awk_cr=$ac_cr
12574fi
12575
12576echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12577_ACEOF
12578
12579
12580{
12581  echo "cat >conf$$subs.awk <<_ACEOF" &&
12582  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12583  echo "_ACEOF"
12584} >conf$$subs.sh ||
12585  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12586ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12587ac_delim='%!_!# '
12588for ac_last_try in false false false false false :; do
12589  . ./conf$$subs.sh ||
12590    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12591
12592  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12593  if test $ac_delim_n = $ac_delim_num; then
12594    break
12595  elif $ac_last_try; then
12596    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12597  else
12598    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12599  fi
12600done
12601rm -f conf$$subs.sh
12602
12603cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12604cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12605_ACEOF
12606sed -n '
12607h
12608s/^/S["/; s/!.*/"]=/
12609p
12610g
12611s/^[^!]*!//
12612:repl
12613t repl
12614s/'"$ac_delim"'$//
12615t delim
12616:nl
12617h
12618s/\(.\{148\}\)..*/\1/
12619t more1
12620s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12621p
12622n
12623b repl
12624:more1
12625s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12626p
12627g
12628s/.\{148\}//
12629t nl
12630:delim
12631h
12632s/\(.\{148\}\)..*/\1/
12633t more2
12634s/["\\]/\\&/g; s/^/"/; s/$/"/
12635p
12636b
12637:more2
12638s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12639p
12640g
12641s/.\{148\}//
12642t delim
12643' <conf$$subs.awk | sed '
12644/^[^""]/{
12645  N
12646  s/\n//
12647}
12648' >>$CONFIG_STATUS || ac_write_fail=1
12649rm -f conf$$subs.awk
12650cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12651_ACAWK
12652cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12653  for (key in S) S_is_set[key] = 1
12654  FS = ""
12655
12656}
12657{
12658  line = $ 0
12659  nfields = split(line, field, "@")
12660  substed = 0
12661  len = length(field[1])
12662  for (i = 2; i < nfields; i++) {
12663    key = field[i]
12664    keylen = length(key)
12665    if (S_is_set[key]) {
12666      value = S[key]
12667      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12668      len += length(value) + length(field[++i])
12669      substed = 1
12670    } else
12671      len += 1 + keylen
12672  }
12673
12674  print line
12675}
12676
12677_ACAWK
12678_ACEOF
12679cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12680if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12681  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12682else
12683  cat
12684fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12685  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12686_ACEOF
12687
12688# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12689# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12690# trailing colons and then remove the whole line if VPATH becomes empty
12691# (actually we leave an empty line to preserve line numbers).
12692if test "x$srcdir" = x.; then
12693  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12694h
12695s///
12696s/^/:/
12697s/[	 ]*$/:/
12698s/:\$(srcdir):/:/g
12699s/:\${srcdir}:/:/g
12700s/:@srcdir@:/:/g
12701s/^:*//
12702s/:*$//
12703x
12704s/\(=[	 ]*\).*/\1/
12705G
12706s/\n//
12707s/^[^=]*=[	 ]*$//
12708}'
12709fi
12710
12711cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12712fi # test -n "$CONFIG_FILES"
12713
12714# Set up the scripts for CONFIG_HEADERS section.
12715# No need to generate them if there are no CONFIG_HEADERS.
12716# This happens for instance with './config.status Makefile'.
12717if test -n "$CONFIG_HEADERS"; then
12718cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12719BEGIN {
12720_ACEOF
12721
12722# Transform confdefs.h into an awk script 'defines.awk', embedded as
12723# here-document in config.status, that substitutes the proper values into
12724# config.h.in to produce config.h.
12725
12726# Create a delimiter string that does not exist in confdefs.h, to ease
12727# handling of long lines.
12728ac_delim='%!_!# '
12729for ac_last_try in false false :; do
12730  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12731  if test -z "$ac_tt"; then
12732    break
12733  elif $ac_last_try; then
12734    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12735  else
12736    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12737  fi
12738done
12739
12740# For the awk script, D is an array of macro values keyed by name,
12741# likewise P contains macro parameters if any.  Preserve backslash
12742# newline sequences.
12743
12744ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12745sed -n '
12746s/.\{148\}/&'"$ac_delim"'/g
12747t rset
12748:rset
12749s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12750t def
12751d
12752:def
12753s/\\$//
12754t bsnl
12755s/["\\]/\\&/g
12756s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12757D["\1"]=" \3"/p
12758s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12759d
12760:bsnl
12761s/["\\]/\\&/g
12762s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12763D["\1"]=" \3\\\\\\n"\\/p
12764t cont
12765s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12766t cont
12767d
12768:cont
12769n
12770s/.\{148\}/&'"$ac_delim"'/g
12771t clear
12772:clear
12773s/\\$//
12774t bsnlc
12775s/["\\]/\\&/g; s/^/"/; s/$/"/p
12776d
12777:bsnlc
12778s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12779b cont
12780' <confdefs.h | sed '
12781s/'"$ac_delim"'/"\\\
12782"/g' >>$CONFIG_STATUS || ac_write_fail=1
12783
12784cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12785  for (key in D) D_is_set[key] = 1
12786  FS = ""
12787}
12788/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12789  line = \$ 0
12790  split(line, arg, " ")
12791  if (arg[1] == "#") {
12792    defundef = arg[2]
12793    mac1 = arg[3]
12794  } else {
12795    defundef = substr(arg[1], 2)
12796    mac1 = arg[2]
12797  }
12798  split(mac1, mac2, "(") #)
12799  macro = mac2[1]
12800  prefix = substr(line, 1, index(line, defundef) - 1)
12801  if (D_is_set[macro]) {
12802    # Preserve the white space surrounding the "#".
12803    print prefix "define", macro P[macro] D[macro]
12804    next
12805  } else {
12806    # Replace #undef with comments.  This is necessary, for example,
12807    # in the case of _POSIX_SOURCE, which is predefined and required
12808    # on some systems where configure will not decide to define it.
12809    if (defundef == "undef") {
12810      print "/*", prefix defundef, macro, "*/"
12811      next
12812    }
12813  }
12814}
12815{ print }
12816_ACAWK
12817_ACEOF
12818cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12819  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12820fi # test -n "$CONFIG_HEADERS"
12821
12822
12823eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12824shift
12825for ac_tag
12826do
12827  case $ac_tag in
12828  :[FHLC]) ac_mode=$ac_tag; continue;;
12829  esac
12830  case $ac_mode$ac_tag in
12831  :[FHL]*:*);;
12832  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
12833  :[FH]-) ac_tag=-:-;;
12834  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12835  esac
12836  ac_save_IFS=$IFS
12837  IFS=:
12838  set x $ac_tag
12839  IFS=$ac_save_IFS
12840  shift
12841  ac_file=$1
12842  shift
12843
12844  case $ac_mode in
12845  :L) ac_source=$1;;
12846  :[FH])
12847    ac_file_inputs=
12848    for ac_f
12849    do
12850      case $ac_f in
12851      -) ac_f="$ac_tmp/stdin";;
12852      *) # Look for the file first in the build tree, then in the source tree
12853	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12854	 # because $ac_f cannot contain ':'.
12855	 test -f "$ac_f" ||
12856	   case $ac_f in
12857	   [\\/$]*) false;;
12858	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12859	   esac ||
12860	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
12861      esac
12862      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12863      as_fn_append ac_file_inputs " '$ac_f'"
12864    done
12865
12866    # Let's still pretend it is 'configure' which instantiates (i.e., don't
12867    # use $as_me), people would be surprised to read:
12868    #    /* config.h.  Generated by config.status.  */
12869    configure_input='Generated from '`
12870	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12871	`' by configure.'
12872    if test x"$ac_file" != x-; then
12873      configure_input="$ac_file.  $configure_input"
12874      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12875printf "%s\n" "$as_me: creating $ac_file" >&6;}
12876    fi
12877    # Neutralize special characters interpreted by sed in replacement strings.
12878    case $configure_input in #(
12879    *\&* | *\|* | *\\* )
12880       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12881       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12882    *) ac_sed_conf_input=$configure_input;;
12883    esac
12884
12885    case $ac_tag in
12886    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12887      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12888    esac
12889    ;;
12890  esac
12891
12892  ac_dir=`$as_dirname -- "$ac_file" ||
12893$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12894	 X"$ac_file" : 'X\(//\)[^/]' \| \
12895	 X"$ac_file" : 'X\(//\)$' \| \
12896	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12897printf "%s\n" X"$ac_file" |
12898    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12899	    s//\1/
12900	    q
12901	  }
12902	  /^X\(\/\/\)[^/].*/{
12903	    s//\1/
12904	    q
12905	  }
12906	  /^X\(\/\/\)$/{
12907	    s//\1/
12908	    q
12909	  }
12910	  /^X\(\/\).*/{
12911	    s//\1/
12912	    q
12913	  }
12914	  s/.*/./; q'`
12915  as_dir="$ac_dir"; as_fn_mkdir_p
12916  ac_builddir=.
12917
12918case "$ac_dir" in
12919.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12920*)
12921  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12922  # A ".." for each directory in $ac_dir_suffix.
12923  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12924  case $ac_top_builddir_sub in
12925  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12926  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12927  esac ;;
12928esac
12929ac_abs_top_builddir=$ac_pwd
12930ac_abs_builddir=$ac_pwd$ac_dir_suffix
12931# for backward compatibility:
12932ac_top_builddir=$ac_top_build_prefix
12933
12934case $srcdir in
12935  .)  # We are building in place.
12936    ac_srcdir=.
12937    ac_top_srcdir=$ac_top_builddir_sub
12938    ac_abs_top_srcdir=$ac_pwd ;;
12939  [\\/]* | ?:[\\/]* )  # Absolute name.
12940    ac_srcdir=$srcdir$ac_dir_suffix;
12941    ac_top_srcdir=$srcdir
12942    ac_abs_top_srcdir=$srcdir ;;
12943  *) # Relative name.
12944    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12945    ac_top_srcdir=$ac_top_build_prefix$srcdir
12946    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12947esac
12948ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12949
12950
12951  case $ac_mode in
12952  :F)
12953  #
12954  # CONFIG_FILE
12955  #
12956
12957  case $INSTALL in
12958  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12959  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12960  esac
12961  ac_MKDIR_P=$MKDIR_P
12962  case $MKDIR_P in
12963  [\\/$]* | ?:[\\/]* ) ;;
12964  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12965  esac
12966_ACEOF
12967
12968cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12969# If the template does not know about datarootdir, expand it.
12970# FIXME: This hack should be removed a few years after 2.60.
12971ac_datarootdir_hack=; ac_datarootdir_seen=
12972ac_sed_dataroot='
12973/datarootdir/ {
12974  p
12975  q
12976}
12977/@datadir@/p
12978/@docdir@/p
12979/@infodir@/p
12980/@localedir@/p
12981/@mandir@/p'
12982case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12983*datarootdir*) ac_datarootdir_seen=yes;;
12984*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12985  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12986printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12987_ACEOF
12988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12989  ac_datarootdir_hack='
12990  s&@datadir@&$datadir&g
12991  s&@docdir@&$docdir&g
12992  s&@infodir@&$infodir&g
12993  s&@localedir@&$localedir&g
12994  s&@mandir@&$mandir&g
12995  s&\\\${datarootdir}&$datarootdir&g' ;;
12996esac
12997_ACEOF
12998
12999# Neutralize VPATH when '$srcdir' = '.'.
13000# Shell code in configure.ac might set extrasub.
13001# FIXME: do we really want to maintain this feature?
13002cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13003ac_sed_extra="$ac_vpsub
13004$extrasub
13005_ACEOF
13006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13007:t
13008/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13009s|@configure_input@|$ac_sed_conf_input|;t t
13010s&@top_builddir@&$ac_top_builddir_sub&;t t
13011s&@top_build_prefix@&$ac_top_build_prefix&;t t
13012s&@srcdir@&$ac_srcdir&;t t
13013s&@abs_srcdir@&$ac_abs_srcdir&;t t
13014s&@top_srcdir@&$ac_top_srcdir&;t t
13015s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13016s&@builddir@&$ac_builddir&;t t
13017s&@abs_builddir@&$ac_abs_builddir&;t t
13018s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13019s&@INSTALL@&$ac_INSTALL&;t t
13020s&@MKDIR_P@&$ac_MKDIR_P&;t t
13021$ac_datarootdir_hack
13022"
13023eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13024  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13025
13026test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13027  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13028  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13029      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13030  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13031which seems to be undefined.  Please make sure it is defined" >&5
13032printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13033which seems to be undefined.  Please make sure it is defined" >&2;}
13034
13035  rm -f "$ac_tmp/stdin"
13036  case $ac_file in
13037  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13038  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13039  esac \
13040  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13041 ;;
13042  :H)
13043  #
13044  # CONFIG_HEADER
13045  #
13046  if test x"$ac_file" != x-; then
13047    {
13048      printf "%s\n" "/* $configure_input  */" >&1 \
13049      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13050    } >"$ac_tmp/config.h" \
13051      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13052    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13053      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13054printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13055    else
13056      rm -f "$ac_file"
13057      mv "$ac_tmp/config.h" "$ac_file" \
13058	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13059    fi
13060  else
13061    printf "%s\n" "/* $configure_input  */" >&1 \
13062      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13063      || as_fn_error $? "could not create -" "$LINENO" 5
13064  fi
13065# Compute "$ac_file"'s index in $config_headers.
13066_am_arg="$ac_file"
13067_am_stamp_count=1
13068for _am_header in $config_headers :; do
13069  case $_am_header in
13070    $_am_arg | $_am_arg:* )
13071      break ;;
13072    * )
13073      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13074  esac
13075done
13076echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13077$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13078	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13079	 X"$_am_arg" : 'X\(//\)$' \| \
13080	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13081printf "%s\n" X"$_am_arg" |
13082    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13083	    s//\1/
13084	    q
13085	  }
13086	  /^X\(\/\/\)[^/].*/{
13087	    s//\1/
13088	    q
13089	  }
13090	  /^X\(\/\/\)$/{
13091	    s//\1/
13092	    q
13093	  }
13094	  /^X\(\/\).*/{
13095	    s//\1/
13096	    q
13097	  }
13098	  s/.*/./; q'`/stamp-h$_am_stamp_count
13099 ;;
13100
13101  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13102printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13103 ;;
13104  esac
13105
13106
13107  case $ac_file$ac_mode in
13108    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13109  # Older Autoconf quotes --file arguments for eval, but not when files
13110  # are listed without --file.  Let's play safe and only enable the eval
13111  # if we detect the quoting.
13112  # TODO: see whether this extra hack can be removed once we start
13113  # requiring Autoconf 2.70 or later.
13114  case $CONFIG_FILES in #(
13115  *\'*) :
13116    eval set x "$CONFIG_FILES" ;; #(
13117  *) :
13118    set x $CONFIG_FILES ;; #(
13119  *) :
13120     ;;
13121esac
13122  shift
13123  # Used to flag and report bootstrapping failures.
13124  am_rc=0
13125  for am_mf
13126  do
13127    # Strip MF so we end up with the name of the file.
13128    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13129    # Check whether this is an Automake generated Makefile which includes
13130    # dependency-tracking related rules and includes.
13131    # Grep'ing the whole file directly is not great: AIX grep has a line
13132    # limit of 2048, but all sed's we know have understand at least 4000.
13133    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13134      || continue
13135    am_dirpart=`$as_dirname -- "$am_mf" ||
13136$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13137	 X"$am_mf" : 'X\(//\)[^/]' \| \
13138	 X"$am_mf" : 'X\(//\)$' \| \
13139	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13140printf "%s\n" X"$am_mf" |
13141    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13142	    s//\1/
13143	    q
13144	  }
13145	  /^X\(\/\/\)[^/].*/{
13146	    s//\1/
13147	    q
13148	  }
13149	  /^X\(\/\/\)$/{
13150	    s//\1/
13151	    q
13152	  }
13153	  /^X\(\/\).*/{
13154	    s//\1/
13155	    q
13156	  }
13157	  s/.*/./; q'`
13158    am_filepart=`$as_basename -- "$am_mf" ||
13159$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13160	 X"$am_mf" : 'X\(//\)$' \| \
13161	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13162printf "%s\n" X/"$am_mf" |
13163    sed '/^.*\/\([^/][^/]*\)\/*$/{
13164	    s//\1/
13165	    q
13166	  }
13167	  /^X\/\(\/\/\)$/{
13168	    s//\1/
13169	    q
13170	  }
13171	  /^X\/\(\/\).*/{
13172	    s//\1/
13173	    q
13174	  }
13175	  s/.*/./; q'`
13176    { echo "$as_me:$LINENO: cd "$am_dirpart" \
13177      && sed -e '/# am--include-marker/d' "$am_filepart" \
13178        | $MAKE -f - am--depfiles" >&5
13179   (cd "$am_dirpart" \
13180      && sed -e '/# am--include-marker/d' "$am_filepart" \
13181        | $MAKE -f - am--depfiles) >&5 2>&5
13182   ac_status=$?
13183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184   (exit $ac_status); } || am_rc=$?
13185  done
13186  if test $am_rc -ne 0; then
13187    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13188printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13189as_fn_error $? "Something went wrong bootstrapping makefile fragments
13190    for automatic dependency tracking.  If GNU make was not used, consider
13191    re-running the configure script with MAKE=\"gmake\" (or whatever is
13192    necessary).  You can also try re-running configure with the
13193    '--disable-dependency-tracking' option to at least be able to build
13194    the package (albeit without support for automatic dependency tracking).
13195See 'config.log' for more details" "$LINENO" 5; }
13196  fi
13197  { am_dirpart=; unset am_dirpart;}
13198  { am_filepart=; unset am_filepart;}
13199  { am_mf=; unset am_mf;}
13200  { am_rc=; unset am_rc;}
13201  rm -f conftest-deps.mk
13202}
13203 ;;
13204
13205  esac
13206done # for ac_tag
13207
13208
13209as_fn_exit 0
13210_ACEOF
13211ac_clean_files=$ac_clean_files_save
13212
13213test $ac_write_fail = 0 ||
13214  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13215
13216
13217# configure is writing to config.log, and then calls config.status.
13218# config.status does its own redirection, appending to config.log.
13219# Unfortunately, on DOS this fails, as config.log is still kept open
13220# by configure, so config.status won't be able to write to it; its
13221# output is simply discarded.  So we exec the FD to /dev/null,
13222# effectively closing config.log, so it can be properly (re)opened and
13223# appended to by config.status.  When coming back to configure, we
13224# need to make the FD available again.
13225if test "$no_create" != yes; then
13226  ac_cs_success=:
13227  ac_config_status_args=
13228  test "$silent" = yes &&
13229    ac_config_status_args="$ac_config_status_args --quiet"
13230  exec 5>/dev/null
13231  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13232  exec 5>>config.log
13233  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13234  # would make configure fail if this is the last instruction.
13235  $ac_cs_success || as_fn_exit 1
13236fi
13237if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13238  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13239printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13240fi
13241
13242
13243