1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for mkfontscale 1.2.3.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/mkfontscale/-/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/mkfontscale/-/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='mkfontscale'
607PACKAGE_TARNAME='mkfontscale'
608PACKAGE_VERSION='1.2.3'
609PACKAGE_STRING='mkfontscale 1.2.3'
610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/mkfontscale/-/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=
646enable_year2038=no
647ac_subst_vars='am__EXEEXT_FALSE
648am__EXEEXT_TRUE
649LTLIBOBJS
650LIBOBJS
651LINT_FALSE
652LINT_TRUE
653LINT_FLAGS
654LINT
655X11_LIBS
656X11_CFLAGS
657ZLIB_LIBS
658ZLIB_CFLAGS
659MKFONTSCALE_LIBS
660MKFONTSCALE_CFLAGS
661MAN_SUBSTS
662XORG_MAN_PAGE
663ADMIN_MAN_DIR
664DRIVER_MAN_DIR
665MISC_MAN_DIR
666FILE_MAN_DIR
667LIB_MAN_DIR
668APP_MAN_DIR
669ADMIN_MAN_SUFFIX
670DRIVER_MAN_SUFFIX
671MISC_MAN_SUFFIX
672FILE_MAN_SUFFIX
673LIB_MAN_SUFFIX
674APP_MAN_SUFFIX
675SED
676host_os
677host_vendor
678host_cpu
679host
680build_os
681build_vendor
682build_cpu
683build
684INSTALL_CMD
685PKG_CONFIG_LIBDIR
686PKG_CONFIG_PATH
687PKG_CONFIG
688CHANGELOG_CMD
689STRICT_CFLAGS
690CWARNFLAGS
691BASE_CFLAGS
692AM_BACKSLASH
693AM_DEFAULT_VERBOSITY
694AM_DEFAULT_V
695AM_V
696CSCOPE
697ETAGS
698CTAGS
699am__fastdepCC_FALSE
700am__fastdepCC_TRUE
701CCDEPMODE
702am__nodep
703AMDEPBACKSLASH
704AMDEP_FALSE
705AMDEP_TRUE
706am__include
707DEPDIR
708am__untar
709am__tar
710AMTAR
711am__leading_dot
712SET_MAKE
713AWK
714mkdir_p
715MKDIR_P
716INSTALL_STRIP_PROGRAM
717STRIP
718install_sh
719MAKEINFO
720AUTOHEADER
721AUTOMAKE
722AUTOCONF
723ACLOCAL
724VERSION
725PACKAGE
726CYGPATH_W
727am__isrc
728INSTALL_DATA
729INSTALL_SCRIPT
730INSTALL_PROGRAM
731OBJEXT
732EXEEXT
733ac_ct_CC
734CPPFLAGS
735LDFLAGS
736CFLAGS
737CC
738target_alias
739host_alias
740build_alias
741LIBS
742ECHO_T
743ECHO_N
744ECHO_C
745DEFS
746mandir
747localedir
748libdir
749psdir
750pdfdir
751dvidir
752htmldir
753infodir
754docdir
755oldincludedir
756includedir
757runstatedir
758localstatedir
759sharedstatedir
760sysconfdir
761datadir
762datarootdir
763libexecdir
764sbindir
765bindir
766program_transform_name
767prefix
768exec_prefix
769PACKAGE_URL
770PACKAGE_BUGREPORT
771PACKAGE_STRING
772PACKAGE_VERSION
773PACKAGE_TARNAME
774PACKAGE_NAME
775PATH_SEPARATOR
776SHELL
777am__quote'
778ac_subst_files=''
779ac_user_opts='
780enable_option_checking
781enable_dependency_tracking
782enable_silent_rules
783enable_selective_werror
784enable_strict_compilation
785with_bzip2
786enable_largefile
787with_lint
788enable_year2038
789'
790      ac_precious_vars='build_alias
791host_alias
792target_alias
793CC
794CFLAGS
795LDFLAGS
796LIBS
797CPPFLAGS
798PKG_CONFIG
799PKG_CONFIG_PATH
800PKG_CONFIG_LIBDIR
801MKFONTSCALE_CFLAGS
802MKFONTSCALE_LIBS
803ZLIB_CFLAGS
804ZLIB_LIBS
805X11_CFLAGS
806X11_LIBS
807LINT
808LINT_FLAGS'
809
810
811# Initialize some variables set by options.
812ac_init_help=
813ac_init_version=false
814ac_unrecognized_opts=
815ac_unrecognized_sep=
816# The variables have the same names as the options, with
817# dashes changed to underlines.
818cache_file=/dev/null
819exec_prefix=NONE
820no_create=
821no_recursion=
822prefix=NONE
823program_prefix=NONE
824program_suffix=NONE
825program_transform_name=s,x,x,
826silent=
827site=
828srcdir=
829verbose=
830x_includes=NONE
831x_libraries=NONE
832
833# Installation directory options.
834# These are left unexpanded so users can "make install exec_prefix=/foo"
835# and all the variables that are supposed to be based on exec_prefix
836# by default will actually change.
837# Use braces instead of parens because sh, perl, etc. also accept them.
838# (The list follows the same order as the GNU Coding Standards.)
839bindir='${exec_prefix}/bin'
840sbindir='${exec_prefix}/sbin'
841libexecdir='${exec_prefix}/libexec'
842datarootdir='${prefix}/share'
843datadir='${datarootdir}'
844sysconfdir='${prefix}/etc'
845sharedstatedir='${prefix}/com'
846localstatedir='${prefix}/var'
847runstatedir='${localstatedir}/run'
848includedir='${prefix}/include'
849oldincludedir='/usr/include'
850docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
851infodir='${datarootdir}/info'
852htmldir='${docdir}'
853dvidir='${docdir}'
854pdfdir='${docdir}'
855psdir='${docdir}'
856libdir='${exec_prefix}/lib'
857localedir='${datarootdir}/locale'
858mandir='${datarootdir}/man'
859
860ac_prev=
861ac_dashdash=
862for ac_option
863do
864  # If the previous option needs an argument, assign it.
865  if test -n "$ac_prev"; then
866    eval $ac_prev=\$ac_option
867    ac_prev=
868    continue
869  fi
870
871  case $ac_option in
872  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873  *=)   ac_optarg= ;;
874  *)    ac_optarg=yes ;;
875  esac
876
877  case $ac_dashdash$ac_option in
878  --)
879    ac_dashdash=yes ;;
880
881  -bindir | --bindir | --bindi | --bind | --bin | --bi)
882    ac_prev=bindir ;;
883  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
884    bindir=$ac_optarg ;;
885
886  -build | --build | --buil | --bui | --bu)
887    ac_prev=build_alias ;;
888  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889    build_alias=$ac_optarg ;;
890
891  -cache-file | --cache-file | --cache-fil | --cache-fi \
892  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893    ac_prev=cache_file ;;
894  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896    cache_file=$ac_optarg ;;
897
898  --config-cache | -C)
899    cache_file=config.cache ;;
900
901  -datadir | --datadir | --datadi | --datad)
902    ac_prev=datadir ;;
903  -datadir=* | --datadir=* | --datadi=* | --datad=*)
904    datadir=$ac_optarg ;;
905
906  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907  | --dataroo | --dataro | --datar)
908    ac_prev=datarootdir ;;
909  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911    datarootdir=$ac_optarg ;;
912
913  -disable-* | --disable-*)
914    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915    # Reject names that are not valid shell variable names.
916    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917      as_fn_error $? "invalid feature name: '$ac_useropt'"
918    ac_useropt_orig=$ac_useropt
919    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
920    case $ac_user_opts in
921      *"
922"enable_$ac_useropt"
923"*) ;;
924      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925	 ac_unrecognized_sep=', ';;
926    esac
927    eval enable_$ac_useropt=no ;;
928
929  -docdir | --docdir | --docdi | --doc | --do)
930    ac_prev=docdir ;;
931  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932    docdir=$ac_optarg ;;
933
934  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935    ac_prev=dvidir ;;
936  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937    dvidir=$ac_optarg ;;
938
939  -enable-* | --enable-*)
940    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941    # Reject names that are not valid shell variable names.
942    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943      as_fn_error $? "invalid feature name: '$ac_useropt'"
944    ac_useropt_orig=$ac_useropt
945    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
946    case $ac_user_opts in
947      *"
948"enable_$ac_useropt"
949"*) ;;
950      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951	 ac_unrecognized_sep=', ';;
952    esac
953    eval enable_$ac_useropt=\$ac_optarg ;;
954
955  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957  | --exec | --exe | --ex)
958    ac_prev=exec_prefix ;;
959  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961  | --exec=* | --exe=* | --ex=*)
962    exec_prefix=$ac_optarg ;;
963
964  -gas | --gas | --ga | --g)
965    # Obsolete; use --with-gas.
966    with_gas=yes ;;
967
968  -help | --help | --hel | --he | -h)
969    ac_init_help=long ;;
970  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971    ac_init_help=recursive ;;
972  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973    ac_init_help=short ;;
974
975  -host | --host | --hos | --ho)
976    ac_prev=host_alias ;;
977  -host=* | --host=* | --hos=* | --ho=*)
978    host_alias=$ac_optarg ;;
979
980  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981    ac_prev=htmldir ;;
982  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983  | --ht=*)
984    htmldir=$ac_optarg ;;
985
986  -includedir | --includedir | --includedi | --included | --include \
987  | --includ | --inclu | --incl | --inc)
988    ac_prev=includedir ;;
989  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990  | --includ=* | --inclu=* | --incl=* | --inc=*)
991    includedir=$ac_optarg ;;
992
993  -infodir | --infodir | --infodi | --infod | --info | --inf)
994    ac_prev=infodir ;;
995  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996    infodir=$ac_optarg ;;
997
998  -libdir | --libdir | --libdi | --libd)
999    ac_prev=libdir ;;
1000  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001    libdir=$ac_optarg ;;
1002
1003  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004  | --libexe | --libex | --libe)
1005    ac_prev=libexecdir ;;
1006  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007  | --libexe=* | --libex=* | --libe=*)
1008    libexecdir=$ac_optarg ;;
1009
1010  -localedir | --localedir | --localedi | --localed | --locale)
1011    ac_prev=localedir ;;
1012  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013    localedir=$ac_optarg ;;
1014
1015  -localstatedir | --localstatedir | --localstatedi | --localstated \
1016  | --localstate | --localstat | --localsta | --localst | --locals)
1017    ac_prev=localstatedir ;;
1018  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020    localstatedir=$ac_optarg ;;
1021
1022  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023    ac_prev=mandir ;;
1024  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025    mandir=$ac_optarg ;;
1026
1027  -nfp | --nfp | --nf)
1028    # Obsolete; use --without-fp.
1029    with_fp=no ;;
1030
1031  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032  | --no-cr | --no-c | -n)
1033    no_create=yes ;;
1034
1035  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037    no_recursion=yes ;;
1038
1039  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041  | --oldin | --oldi | --old | --ol | --o)
1042    ac_prev=oldincludedir ;;
1043  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046    oldincludedir=$ac_optarg ;;
1047
1048  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049    ac_prev=prefix ;;
1050  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051    prefix=$ac_optarg ;;
1052
1053  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054  | --program-pre | --program-pr | --program-p)
1055    ac_prev=program_prefix ;;
1056  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058    program_prefix=$ac_optarg ;;
1059
1060  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061  | --program-suf | --program-su | --program-s)
1062    ac_prev=program_suffix ;;
1063  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065    program_suffix=$ac_optarg ;;
1066
1067  -program-transform-name | --program-transform-name \
1068  | --program-transform-nam | --program-transform-na \
1069  | --program-transform-n | --program-transform- \
1070  | --program-transform | --program-transfor \
1071  | --program-transfo | --program-transf \
1072  | --program-trans | --program-tran \
1073  | --progr-tra | --program-tr | --program-t)
1074    ac_prev=program_transform_name ;;
1075  -program-transform-name=* | --program-transform-name=* \
1076  | --program-transform-nam=* | --program-transform-na=* \
1077  | --program-transform-n=* | --program-transform-=* \
1078  | --program-transform=* | --program-transfor=* \
1079  | --program-transfo=* | --program-transf=* \
1080  | --program-trans=* | --program-tran=* \
1081  | --progr-tra=* | --program-tr=* | --program-t=*)
1082    program_transform_name=$ac_optarg ;;
1083
1084  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085    ac_prev=pdfdir ;;
1086  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087    pdfdir=$ac_optarg ;;
1088
1089  -psdir | --psdir | --psdi | --psd | --ps)
1090    ac_prev=psdir ;;
1091  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092    psdir=$ac_optarg ;;
1093
1094  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095  | -silent | --silent | --silen | --sile | --sil)
1096    silent=yes ;;
1097
1098  -runstatedir | --runstatedir | --runstatedi | --runstated \
1099  | --runstate | --runstat | --runsta | --runst | --runs \
1100  | --run | --ru | --r)
1101    ac_prev=runstatedir ;;
1102  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1103  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1104  | --run=* | --ru=* | --r=*)
1105    runstatedir=$ac_optarg ;;
1106
1107  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108    ac_prev=sbindir ;;
1109  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110  | --sbi=* | --sb=*)
1111    sbindir=$ac_optarg ;;
1112
1113  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115  | --sharedst | --shareds | --shared | --share | --shar \
1116  | --sha | --sh)
1117    ac_prev=sharedstatedir ;;
1118  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121  | --sha=* | --sh=*)
1122    sharedstatedir=$ac_optarg ;;
1123
1124  -site | --site | --sit)
1125    ac_prev=site ;;
1126  -site=* | --site=* | --sit=*)
1127    site=$ac_optarg ;;
1128
1129  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130    ac_prev=srcdir ;;
1131  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132    srcdir=$ac_optarg ;;
1133
1134  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135  | --syscon | --sysco | --sysc | --sys | --sy)
1136    ac_prev=sysconfdir ;;
1137  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139    sysconfdir=$ac_optarg ;;
1140
1141  -target | --target | --targe | --targ | --tar | --ta | --t)
1142    ac_prev=target_alias ;;
1143  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144    target_alias=$ac_optarg ;;
1145
1146  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147    verbose=yes ;;
1148
1149  -version | --version | --versio | --versi | --vers | -V)
1150    ac_init_version=: ;;
1151
1152  -with-* | --with-*)
1153    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154    # Reject names that are not valid shell variable names.
1155    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156      as_fn_error $? "invalid package name: '$ac_useropt'"
1157    ac_useropt_orig=$ac_useropt
1158    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1159    case $ac_user_opts in
1160      *"
1161"with_$ac_useropt"
1162"*) ;;
1163      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1164	 ac_unrecognized_sep=', ';;
1165    esac
1166    eval with_$ac_useropt=\$ac_optarg ;;
1167
1168  -without-* | --without-*)
1169    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1170    # Reject names that are not valid shell variable names.
1171    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172      as_fn_error $? "invalid package name: '$ac_useropt'"
1173    ac_useropt_orig=$ac_useropt
1174    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1175    case $ac_user_opts in
1176      *"
1177"with_$ac_useropt"
1178"*) ;;
1179      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1180	 ac_unrecognized_sep=', ';;
1181    esac
1182    eval with_$ac_useropt=no ;;
1183
1184  --x)
1185    # Obsolete; use --with-x.
1186    with_x=yes ;;
1187
1188  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1189  | --x-incl | --x-inc | --x-in | --x-i)
1190    ac_prev=x_includes ;;
1191  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1192  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1193    x_includes=$ac_optarg ;;
1194
1195  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1196  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1197    ac_prev=x_libraries ;;
1198  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1199  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1200    x_libraries=$ac_optarg ;;
1201
1202  -*) as_fn_error $? "unrecognized option: '$ac_option'
1203Try '$0 --help' for more information"
1204    ;;
1205
1206  *=*)
1207    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1208    # Reject names that are not valid shell variable names.
1209    case $ac_envvar in #(
1210      '' | [0-9]* | *[!_$as_cr_alnum]* )
1211      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1212    esac
1213    eval $ac_envvar=\$ac_optarg
1214    export $ac_envvar ;;
1215
1216  *)
1217    # FIXME: should be removed in autoconf 3.0.
1218    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1219    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1221    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1222    ;;
1223
1224  esac
1225done
1226
1227if test -n "$ac_prev"; then
1228  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1229  as_fn_error $? "missing argument to $ac_option"
1230fi
1231
1232if test -n "$ac_unrecognized_opts"; then
1233  case $enable_option_checking in
1234    no) ;;
1235    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1236    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237  esac
1238fi
1239
1240# Check all directory arguments for consistency.
1241for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242		datadir sysconfdir sharedstatedir localstatedir includedir \
1243		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244		libdir localedir mandir runstatedir
1245do
1246  eval ac_val=\$$ac_var
1247  # Remove trailing slashes.
1248  case $ac_val in
1249    */ )
1250      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251      eval $ac_var=\$ac_val;;
1252  esac
1253  # Be sure to have absolute directory names.
1254  case $ac_val in
1255    [\\/$]* | ?:[\\/]* )  continue;;
1256    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1257  esac
1258  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1259done
1260
1261# There might be people who depend on the old broken behavior: '$host'
1262# used to hold the argument of --host etc.
1263# FIXME: To remove some day.
1264build=$build_alias
1265host=$host_alias
1266target=$target_alias
1267
1268# FIXME: To remove some day.
1269if test "x$host_alias" != x; then
1270  if test "x$build_alias" = x; then
1271    cross_compiling=maybe
1272  elif test "x$build_alias" != "x$host_alias"; then
1273    cross_compiling=yes
1274  fi
1275fi
1276
1277ac_tool_prefix=
1278test -n "$host_alias" && ac_tool_prefix=$host_alias-
1279
1280test "$silent" = yes && exec 6>/dev/null
1281
1282
1283ac_pwd=`pwd` && test -n "$ac_pwd" &&
1284ac_ls_di=`ls -di .` &&
1285ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1286  as_fn_error $? "working directory cannot be determined"
1287test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1288  as_fn_error $? "pwd does not report name of working directory"
1289
1290
1291# Find the source files, if location was not specified.
1292if test -z "$srcdir"; then
1293  ac_srcdir_defaulted=yes
1294  # Try the directory containing this script, then the parent directory.
1295  ac_confdir=`$as_dirname -- "$as_myself" ||
1296$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297	 X"$as_myself" : 'X\(//\)[^/]' \| \
1298	 X"$as_myself" : 'X\(//\)$' \| \
1299	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1300printf "%s\n" X"$as_myself" |
1301    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302	    s//\1/
1303	    q
1304	  }
1305	  /^X\(\/\/\)[^/].*/{
1306	    s//\1/
1307	    q
1308	  }
1309	  /^X\(\/\/\)$/{
1310	    s//\1/
1311	    q
1312	  }
1313	  /^X\(\/\).*/{
1314	    s//\1/
1315	    q
1316	  }
1317	  s/.*/./; q'`
1318  srcdir=$ac_confdir
1319  if test ! -r "$srcdir/$ac_unique_file"; then
1320    srcdir=..
1321  fi
1322else
1323  ac_srcdir_defaulted=no
1324fi
1325if test ! -r "$srcdir/$ac_unique_file"; then
1326  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1327  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1328fi
1329ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1330ac_abs_confdir=`(
1331	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1332	pwd)`
1333# When building in place, set srcdir=.
1334if test "$ac_abs_confdir" = "$ac_pwd"; then
1335  srcdir=.
1336fi
1337# Remove unnecessary trailing slashes from srcdir.
1338# Double slashes in file names in object file debugging info
1339# mess up M-x gdb in Emacs.
1340case $srcdir in
1341*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342esac
1343for ac_var in $ac_precious_vars; do
1344  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1345  eval ac_env_${ac_var}_value=\$${ac_var}
1346  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1347  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1348done
1349
1350#
1351# Report the --help message.
1352#
1353if test "$ac_init_help" = "long"; then
1354  # Omit some internal or obsolete options to make the list less imposing.
1355  # This message is too long to be a string in the A/UX 3.1 sh.
1356  cat <<_ACEOF
1357'configure' configures mkfontscale 1.2.3 to adapt to many kinds of systems.
1358
1359Usage: $0 [OPTION]... [VAR=VALUE]...
1360
1361To assign environment variables (e.g., CC, CFLAGS...), specify them as
1362VAR=VALUE.  See below for descriptions of some of the useful variables.
1363
1364Defaults for the options are specified in brackets.
1365
1366Configuration:
1367  -h, --help              display this help and exit
1368      --help=short        display options specific to this package
1369      --help=recursive    display the short help of all the included packages
1370  -V, --version           display version information and exit
1371  -q, --quiet, --silent   do not print 'checking ...' messages
1372      --cache-file=FILE   cache test results in FILE [disabled]
1373  -C, --config-cache      alias for '--cache-file=config.cache'
1374  -n, --no-create         do not create output files
1375      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1376
1377Installation directories:
1378  --prefix=PREFIX         install architecture-independent files in PREFIX
1379                          [$ac_default_prefix]
1380  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1381                          [PREFIX]
1382
1383By default, 'make install' will install all the files in
1384'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1385an installation prefix other than '$ac_default_prefix' using '--prefix',
1386for instance '--prefix=\$HOME'.
1387
1388For better control, use the options below.
1389
1390Fine tuning of the installation directories:
1391  --bindir=DIR            user executables [EPREFIX/bin]
1392  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1393  --libexecdir=DIR        program executables [EPREFIX/libexec]
1394  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1395  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1396  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1397  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1398  --libdir=DIR            object code libraries [EPREFIX/lib]
1399  --includedir=DIR        C header files [PREFIX/include]
1400  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1401  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1402  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1403  --infodir=DIR           info documentation [DATAROOTDIR/info]
1404  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1405  --mandir=DIR            man documentation [DATAROOTDIR/man]
1406  --docdir=DIR            documentation root [DATAROOTDIR/doc/mkfontscale]
1407  --htmldir=DIR           html documentation [DOCDIR]
1408  --dvidir=DIR            dvi documentation [DOCDIR]
1409  --pdfdir=DIR            pdf documentation [DOCDIR]
1410  --psdir=DIR             ps documentation [DOCDIR]
1411_ACEOF
1412
1413  cat <<\_ACEOF
1414
1415Program names:
1416  --program-prefix=PREFIX            prepend PREFIX to installed program names
1417  --program-suffix=SUFFIX            append SUFFIX to installed program names
1418  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1419
1420System types:
1421  --build=BUILD     configure for building on BUILD [guessed]
1422  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1423_ACEOF
1424fi
1425
1426if test -n "$ac_init_help"; then
1427  case $ac_init_help in
1428     short | recursive ) echo "Configuration of mkfontscale 1.2.3:";;
1429   esac
1430  cat <<\_ACEOF
1431
1432Optional Features:
1433  --disable-option-checking  ignore unrecognized --enable/--with options
1434  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1435  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1436  --enable-dependency-tracking
1437                          do not reject slow dependency extractors
1438  --disable-dependency-tracking
1439                          speeds up one-time build
1440  --enable-silent-rules   less verbose build output (undo: "make V=1")
1441  --disable-silent-rules  verbose build output (undo: "make V=0")
1442  --disable-selective-werror
1443                          Turn off selective compiler errors. (default:
1444                          enabled)
1445  --enable-strict-compilation
1446                          Enable all warnings from compiler and make them
1447                          errors (default: disabled)
1448  --disable-largefile     omit support for large files
1449  --enable-year2038       support timestamps after 2038
1450
1451Optional Packages:
1452  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1453  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1454  --with-bzip2            Support bzip2 compressed bitmap fonts
1455  --with-lint             Use a lint-style source code checker (default:
1456                          disabled)
1457
1458Some influential environment variables:
1459  CC          C compiler command
1460  CFLAGS      C compiler flags
1461  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1462              nonstandard directory <lib dir>
1463  LIBS        libraries to pass to the linker, e.g. -l<library>
1464  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1465              you have headers in a nonstandard directory <include dir>
1466  PKG_CONFIG  path to pkg-config utility
1467  PKG_CONFIG_PATH
1468              directories to add to pkg-config's search path
1469  PKG_CONFIG_LIBDIR
1470              path overriding pkg-config's built-in search path
1471  MKFONTSCALE_CFLAGS
1472              C compiler flags for MKFONTSCALE, overriding pkg-config
1473  MKFONTSCALE_LIBS
1474              linker flags for MKFONTSCALE, overriding pkg-config
1475  ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1476  ZLIB_LIBS   linker flags for ZLIB, overriding pkg-config
1477  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1478  X11_LIBS    linker flags for X11, overriding pkg-config
1479  LINT        Path to a lint-style command
1480  LINT_FLAGS  Flags for the lint-style command
1481
1482Use these variables to override the choices made by 'configure' or to help
1483it to find libraries and programs with nonstandard names/locations.
1484
1485Report bugs to <https://gitlab.freedesktop.org/xorg/app/mkfontscale/-/issues>.
1486_ACEOF
1487ac_status=$?
1488fi
1489
1490if test "$ac_init_help" = "recursive"; then
1491  # If there are subdirs, report their specific --help.
1492  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1493    test -d "$ac_dir" ||
1494      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1495      continue
1496    ac_builddir=.
1497
1498case "$ac_dir" in
1499.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500*)
1501  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1502  # A ".." for each directory in $ac_dir_suffix.
1503  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1504  case $ac_top_builddir_sub in
1505  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1507  esac ;;
1508esac
1509ac_abs_top_builddir=$ac_pwd
1510ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511# for backward compatibility:
1512ac_top_builddir=$ac_top_build_prefix
1513
1514case $srcdir in
1515  .)  # We are building in place.
1516    ac_srcdir=.
1517    ac_top_srcdir=$ac_top_builddir_sub
1518    ac_abs_top_srcdir=$ac_pwd ;;
1519  [\\/]* | ?:[\\/]* )  # Absolute name.
1520    ac_srcdir=$srcdir$ac_dir_suffix;
1521    ac_top_srcdir=$srcdir
1522    ac_abs_top_srcdir=$srcdir ;;
1523  *) # Relative name.
1524    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525    ac_top_srcdir=$ac_top_build_prefix$srcdir
1526    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1527esac
1528ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1529
1530    cd "$ac_dir" || { ac_status=$?; continue; }
1531    # Check for configure.gnu first; this name is used for a wrapper for
1532    # Metaconfig's "Configure" on case-insensitive file systems.
1533    if test -f "$ac_srcdir/configure.gnu"; then
1534      echo &&
1535      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536    elif test -f "$ac_srcdir/configure"; then
1537      echo &&
1538      $SHELL "$ac_srcdir/configure" --help=recursive
1539    else
1540      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541    fi || ac_status=$?
1542    cd "$ac_pwd" || { ac_status=$?; break; }
1543  done
1544fi
1545
1546test -n "$ac_init_help" && exit $ac_status
1547if $ac_init_version; then
1548  cat <<\_ACEOF
1549mkfontscale configure 1.2.3
1550generated by GNU Autoconf 2.72
1551
1552Copyright (C) 2023 Free Software Foundation, Inc.
1553This configure script is free software; the Free Software Foundation
1554gives unlimited permission to copy, distribute and modify it.
1555_ACEOF
1556  exit
1557fi
1558
1559## ------------------------ ##
1560## Autoconf initialization. ##
1561## ------------------------ ##
1562
1563# ac_fn_c_try_compile LINENO
1564# --------------------------
1565# Try to compile conftest.$ac_ext, and return whether this succeeded.
1566ac_fn_c_try_compile ()
1567{
1568  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569  rm -f conftest.$ac_objext conftest.beam
1570  if { { ac_try="$ac_compile"
1571case "(($ac_try" in
1572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573  *) ac_try_echo=$ac_try;;
1574esac
1575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576printf "%s\n" "$ac_try_echo"; } >&5
1577  (eval "$ac_compile") 2>conftest.err
1578  ac_status=$?
1579  if test -s conftest.err; then
1580    grep -v '^ *+' conftest.err >conftest.er1
1581    cat conftest.er1 >&5
1582    mv -f conftest.er1 conftest.err
1583  fi
1584  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585  test $ac_status = 0; } && {
1586	 test -z "$ac_c_werror_flag" ||
1587	 test ! -s conftest.err
1588       } && test -s conftest.$ac_objext
1589then :
1590  ac_retval=0
1591else case e in #(
1592  e) printf "%s\n" "$as_me: failed program was:" >&5
1593sed 's/^/| /' conftest.$ac_ext >&5
1594
1595	ac_retval=1 ;;
1596esac
1597fi
1598  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1599  as_fn_set_status $ac_retval
1600
1601} # ac_fn_c_try_compile
1602
1603# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1604# -------------------------------------------------------
1605# Tests whether HEADER exists and can be compiled using the include files in
1606# INCLUDES, setting the cache variable VAR accordingly.
1607ac_fn_c_check_header_compile ()
1608{
1609  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1611printf %s "checking for $2... " >&6; }
1612if eval test \${$3+y}
1613then :
1614  printf %s "(cached) " >&6
1615else case e in #(
1616  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1617/* end confdefs.h.  */
1618$4
1619#include <$2>
1620_ACEOF
1621if ac_fn_c_try_compile "$LINENO"
1622then :
1623  eval "$3=yes"
1624else case e in #(
1625  e) eval "$3=no" ;;
1626esac
1627fi
1628rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1629esac
1630fi
1631eval ac_res=\$$3
1632	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1633printf "%s\n" "$ac_res" >&6; }
1634  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635
1636} # ac_fn_c_check_header_compile
1637
1638# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1639# ------------------------------------------------------------------
1640# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1641# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1642ac_fn_check_decl ()
1643{
1644  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645  as_decl_name=`echo $2|sed 's/ *(.*//'`
1646  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1647printf %s "checking whether $as_decl_name is declared... " >&6; }
1648if eval test \${$3+y}
1649then :
1650  printf %s "(cached) " >&6
1651else case e in #(
1652  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1653  eval ac_save_FLAGS=\$$6
1654  as_fn_append $6 " $5"
1655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1656/* end confdefs.h.  */
1657$4
1658int
1659main (void)
1660{
1661#ifndef $as_decl_name
1662#ifdef __cplusplus
1663  (void) $as_decl_use;
1664#else
1665  (void) $as_decl_name;
1666#endif
1667#endif
1668
1669  ;
1670  return 0;
1671}
1672_ACEOF
1673if ac_fn_c_try_compile "$LINENO"
1674then :
1675  eval "$3=yes"
1676else case e in #(
1677  e) eval "$3=no" ;;
1678esac
1679fi
1680rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1681  eval $6=\$ac_save_FLAGS
1682 ;;
1683esac
1684fi
1685eval ac_res=\$$3
1686	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687printf "%s\n" "$ac_res" >&6; }
1688  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689
1690} # ac_fn_check_decl
1691
1692# ac_fn_c_try_link LINENO
1693# -----------------------
1694# Try to link conftest.$ac_ext, and return whether this succeeded.
1695ac_fn_c_try_link ()
1696{
1697  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1699  if { { ac_try="$ac_link"
1700case "(($ac_try" in
1701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702  *) ac_try_echo=$ac_try;;
1703esac
1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705printf "%s\n" "$ac_try_echo"; } >&5
1706  (eval "$ac_link") 2>conftest.err
1707  ac_status=$?
1708  if test -s conftest.err; then
1709    grep -v '^ *+' conftest.err >conftest.er1
1710    cat conftest.er1 >&5
1711    mv -f conftest.er1 conftest.err
1712  fi
1713  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714  test $ac_status = 0; } && {
1715	 test -z "$ac_c_werror_flag" ||
1716	 test ! -s conftest.err
1717       } && test -s conftest$ac_exeext && {
1718	 test "$cross_compiling" = yes ||
1719	 test -x conftest$ac_exeext
1720       }
1721then :
1722  ac_retval=0
1723else case e in #(
1724  e) printf "%s\n" "$as_me: failed program was:" >&5
1725sed 's/^/| /' conftest.$ac_ext >&5
1726
1727	ac_retval=1 ;;
1728esac
1729fi
1730  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1731  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1732  # interfere with the next link command; also delete a directory that is
1733  # left behind by Apple's compiler.  We do this before executing the actions.
1734  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1735  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736  as_fn_set_status $ac_retval
1737
1738} # ac_fn_c_try_link
1739
1740# ac_fn_c_check_func LINENO FUNC VAR
1741# ----------------------------------
1742# Tests whether FUNC exists, setting the cache variable VAR accordingly
1743ac_fn_c_check_func ()
1744{
1745  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1747printf %s "checking for $2... " >&6; }
1748if eval test \${$3+y}
1749then :
1750  printf %s "(cached) " >&6
1751else case e in #(
1752  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753/* end confdefs.h.  */
1754/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1755   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1756#define $2 innocuous_$2
1757
1758/* System header to define __stub macros and hopefully few prototypes,
1759   which can conflict with char $2 (void); below.  */
1760
1761#include <limits.h>
1762#undef $2
1763
1764/* Override any GCC internal prototype to avoid an error.
1765   Use char because int might match the return type of a GCC
1766   builtin and then its argument prototype would still apply.  */
1767#ifdef __cplusplus
1768extern "C"
1769#endif
1770char $2 (void);
1771/* The GNU C library defines this for functions which it implements
1772    to always fail with ENOSYS.  Some functions are actually named
1773    something starting with __ and the normal name is an alias.  */
1774#if defined __stub_$2 || defined __stub___$2
1775choke me
1776#endif
1777
1778int
1779main (void)
1780{
1781return $2 ();
1782  ;
1783  return 0;
1784}
1785_ACEOF
1786if ac_fn_c_try_link "$LINENO"
1787then :
1788  eval "$3=yes"
1789else case e in #(
1790  e) eval "$3=no" ;;
1791esac
1792fi
1793rm -f core conftest.err conftest.$ac_objext conftest.beam \
1794    conftest$ac_exeext conftest.$ac_ext ;;
1795esac
1796fi
1797eval ac_res=\$$3
1798	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799printf "%s\n" "$ac_res" >&6; }
1800  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801
1802} # ac_fn_c_check_func
1803ac_configure_args_raw=
1804for ac_arg
1805do
1806  case $ac_arg in
1807  *\'*)
1808    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1809  esac
1810  as_fn_append ac_configure_args_raw " '$ac_arg'"
1811done
1812
1813case $ac_configure_args_raw in
1814  *$as_nl*)
1815    ac_safe_unquote= ;;
1816  *)
1817    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1818    ac_unsafe_a="$ac_unsafe_z#~"
1819    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1820    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1821esac
1822
1823cat >config.log <<_ACEOF
1824This file contains any messages produced by compilers while
1825running configure, to aid debugging if configure makes a mistake.
1826
1827It was created by mkfontscale $as_me 1.2.3, which was
1828generated by GNU Autoconf 2.72.  Invocation command line was
1829
1830  $ $0$ac_configure_args_raw
1831
1832_ACEOF
1833exec 5>>config.log
1834{
1835cat <<_ASUNAME
1836## --------- ##
1837## Platform. ##
1838## --------- ##
1839
1840hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1841uname -m = `(uname -m) 2>/dev/null || echo unknown`
1842uname -r = `(uname -r) 2>/dev/null || echo unknown`
1843uname -s = `(uname -s) 2>/dev/null || echo unknown`
1844uname -v = `(uname -v) 2>/dev/null || echo unknown`
1845
1846/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1847/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1848
1849/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1850/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1851/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1852/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1853/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1854/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1855/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1856
1857_ASUNAME
1858
1859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860for as_dir in $PATH
1861do
1862  IFS=$as_save_IFS
1863  case $as_dir in #(((
1864    '') as_dir=./ ;;
1865    */) ;;
1866    *) as_dir=$as_dir/ ;;
1867  esac
1868    printf "%s\n" "PATH: $as_dir"
1869  done
1870IFS=$as_save_IFS
1871
1872} >&5
1873
1874cat >&5 <<_ACEOF
1875
1876
1877## ----------- ##
1878## Core tests. ##
1879## ----------- ##
1880
1881_ACEOF
1882
1883
1884# Keep a trace of the command line.
1885# Strip out --no-create and --no-recursion so they do not pile up.
1886# Strip out --silent because we don't want to record it for future runs.
1887# Also quote any args containing shell meta-characters.
1888# Make two passes to allow for proper duplicate-argument suppression.
1889ac_configure_args=
1890ac_configure_args0=
1891ac_configure_args1=
1892ac_must_keep_next=false
1893for ac_pass in 1 2
1894do
1895  for ac_arg
1896  do
1897    case $ac_arg in
1898    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1899    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1900    | -silent | --silent | --silen | --sile | --sil)
1901      continue ;;
1902    *\'*)
1903      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1904    esac
1905    case $ac_pass in
1906    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1907    2)
1908      as_fn_append ac_configure_args1 " '$ac_arg'"
1909      if test $ac_must_keep_next = true; then
1910	ac_must_keep_next=false # Got value, back to normal.
1911      else
1912	case $ac_arg in
1913	  *=* | --config-cache | -C | -disable-* | --disable-* \
1914	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1915	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1916	  | -with-* | --with-* | -without-* | --without-* | --x)
1917	    case "$ac_configure_args0 " in
1918	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1919	    esac
1920	    ;;
1921	  -* ) ac_must_keep_next=true ;;
1922	esac
1923      fi
1924      as_fn_append ac_configure_args " '$ac_arg'"
1925      ;;
1926    esac
1927  done
1928done
1929{ ac_configure_args0=; unset ac_configure_args0;}
1930{ ac_configure_args1=; unset ac_configure_args1;}
1931
1932# When interrupted or exit'd, cleanup temporary files, and complete
1933# config.log.  We remove comments because anyway the quotes in there
1934# would cause problems or look ugly.
1935# WARNING: Use '\'' to represent an apostrophe within the trap.
1936# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1937trap 'exit_status=$?
1938  # Sanitize IFS.
1939  IFS=" ""	$as_nl"
1940  # Save into config.log some information that might help in debugging.
1941  {
1942    echo
1943
1944    printf "%s\n" "## ---------------- ##
1945## Cache variables. ##
1946## ---------------- ##"
1947    echo
1948    # The following way of writing the cache mishandles newlines in values,
1949(
1950  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1951    eval ac_val=\$$ac_var
1952    case $ac_val in #(
1953    *${as_nl}*)
1954      case $ac_var in #(
1955      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1956printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1957      esac
1958      case $ac_var in #(
1959      _ | IFS | as_nl) ;; #(
1960      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1961      *) { eval $ac_var=; unset $ac_var;} ;;
1962      esac ;;
1963    esac
1964  done
1965  (set) 2>&1 |
1966    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1967    *${as_nl}ac_space=\ *)
1968      sed -n \
1969	"s/'\''/'\''\\\\'\'''\''/g;
1970	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1971      ;; #(
1972    *)
1973      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1974      ;;
1975    esac |
1976    sort
1977)
1978    echo
1979
1980    printf "%s\n" "## ----------------- ##
1981## Output variables. ##
1982## ----------------- ##"
1983    echo
1984    for ac_var in $ac_subst_vars
1985    do
1986      eval ac_val=\$$ac_var
1987      case $ac_val in
1988      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1989      esac
1990      printf "%s\n" "$ac_var='\''$ac_val'\''"
1991    done | sort
1992    echo
1993
1994    if test -n "$ac_subst_files"; then
1995      printf "%s\n" "## ------------------- ##
1996## File substitutions. ##
1997## ------------------- ##"
1998      echo
1999      for ac_var in $ac_subst_files
2000      do
2001	eval ac_val=\$$ac_var
2002	case $ac_val in
2003	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2004	esac
2005	printf "%s\n" "$ac_var='\''$ac_val'\''"
2006      done | sort
2007      echo
2008    fi
2009
2010    if test -s confdefs.h; then
2011      printf "%s\n" "## ----------- ##
2012## confdefs.h. ##
2013## ----------- ##"
2014      echo
2015      cat confdefs.h
2016      echo
2017    fi
2018    test "$ac_signal" != 0 &&
2019      printf "%s\n" "$as_me: caught signal $ac_signal"
2020    printf "%s\n" "$as_me: exit $exit_status"
2021  } >&5
2022  rm -f core *.core core.conftest.* &&
2023    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2024    exit $exit_status
2025' 0
2026for ac_signal in 1 2 13 15; do
2027  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2028done
2029ac_signal=0
2030
2031# confdefs.h avoids OS command line length limits that DEFS can exceed.
2032rm -f -r conftest* confdefs.h
2033
2034printf "%s\n" "/* confdefs.h */" > confdefs.h
2035
2036# Predefined preprocessor variables.
2037
2038printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2039
2040printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2041
2042printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2043
2044printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2045
2046printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2047
2048printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2049
2050
2051# Let the site file select an alternate cache file if it wants to.
2052# Prefer an explicitly selected file to automatically selected ones.
2053if test -n "$CONFIG_SITE"; then
2054  ac_site_files="$CONFIG_SITE"
2055elif test "x$prefix" != xNONE; then
2056  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2057else
2058  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2059fi
2060
2061for ac_site_file in $ac_site_files
2062do
2063  case $ac_site_file in #(
2064  */*) :
2065     ;; #(
2066  *) :
2067    ac_site_file=./$ac_site_file ;;
2068esac
2069  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2070    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2071printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2072    sed 's/^/| /' "$ac_site_file" >&5
2073    . "$ac_site_file" \
2074      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2075printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2076as_fn_error $? "failed to load site script $ac_site_file
2077See 'config.log' for more details" "$LINENO" 5; }
2078  fi
2079done
2080
2081if test -r "$cache_file"; then
2082  # Some versions of bash will fail to source /dev/null (special files
2083  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2084  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2085    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2086printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2087    case $cache_file in
2088      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2089      *)                      . "./$cache_file";;
2090    esac
2091  fi
2092else
2093  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2094printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2095  >$cache_file
2096fi
2097
2098as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2099# Test code for whether the C compiler supports C89 (global declarations)
2100ac_c_conftest_c89_globals='
2101/* Does the compiler advertise C89 conformance?
2102   Do not test the value of __STDC__, because some compilers set it to 0
2103   while being otherwise adequately conformant. */
2104#if !defined __STDC__
2105# error "Compiler does not advertise C89 conformance"
2106#endif
2107
2108#include <stddef.h>
2109#include <stdarg.h>
2110struct stat;
2111/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2112struct buf { int x; };
2113struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2114static char *e (char **p, int i)
2115{
2116  return p[i];
2117}
2118static char *f (char * (*g) (char **, int), char **p, ...)
2119{
2120  char *s;
2121  va_list v;
2122  va_start (v,p);
2123  s = g (p, va_arg (v,int));
2124  va_end (v);
2125  return s;
2126}
2127
2128/* C89 style stringification. */
2129#define noexpand_stringify(a) #a
2130const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2131
2132/* C89 style token pasting.  Exercises some of the corner cases that
2133   e.g. old MSVC gets wrong, but not very hard. */
2134#define noexpand_concat(a,b) a##b
2135#define expand_concat(a,b) noexpand_concat(a,b)
2136extern int vA;
2137extern int vbee;
2138#define aye A
2139#define bee B
2140int *pvA = &expand_concat(v,aye);
2141int *pvbee = &noexpand_concat(v,bee);
2142
2143/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2144   function prototypes and stuff, but not \xHH hex character constants.
2145   These do not provoke an error unfortunately, instead are silently treated
2146   as an "x".  The following induces an error, until -std is added to get
2147   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2148   array size at least.  It is necessary to write \x00 == 0 to get something
2149   that is true only with -std.  */
2150int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2151
2152/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2153   inside strings and character constants.  */
2154#define FOO(x) '\''x'\''
2155int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2156
2157int test (int i, double x);
2158struct s1 {int (*f) (int a);};
2159struct s2 {int (*f) (double a);};
2160int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2161               int, int);'
2162
2163# Test code for whether the C compiler supports C89 (body of main).
2164ac_c_conftest_c89_main='
2165ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2166'
2167
2168# Test code for whether the C compiler supports C99 (global declarations)
2169ac_c_conftest_c99_globals='
2170/* Does the compiler advertise C99 conformance? */
2171#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2172# error "Compiler does not advertise C99 conformance"
2173#endif
2174
2175// See if C++-style comments work.
2176
2177#include <stdbool.h>
2178extern int puts (const char *);
2179extern int printf (const char *, ...);
2180extern int dprintf (int, const char *, ...);
2181extern void *malloc (size_t);
2182extern void free (void *);
2183
2184// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2185// dprintf is used instead of fprintf to avoid needing to declare
2186// FILE and stderr.
2187#define debug(...) dprintf (2, __VA_ARGS__)
2188#define showlist(...) puts (#__VA_ARGS__)
2189#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2190static void
2191test_varargs_macros (void)
2192{
2193  int x = 1234;
2194  int y = 5678;
2195  debug ("Flag");
2196  debug ("X = %d\n", x);
2197  showlist (The first, second, and third items.);
2198  report (x>y, "x is %d but y is %d", x, y);
2199}
2200
2201// Check long long types.
2202#define BIG64 18446744073709551615ull
2203#define BIG32 4294967295ul
2204#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2205#if !BIG_OK
2206  #error "your preprocessor is broken"
2207#endif
2208#if BIG_OK
2209#else
2210  #error "your preprocessor is broken"
2211#endif
2212static long long int bignum = -9223372036854775807LL;
2213static unsigned long long int ubignum = BIG64;
2214
2215struct incomplete_array
2216{
2217  int datasize;
2218  double data[];
2219};
2220
2221struct named_init {
2222  int number;
2223  const wchar_t *name;
2224  double average;
2225};
2226
2227typedef const char *ccp;
2228
2229static inline int
2230test_restrict (ccp restrict text)
2231{
2232  // Iterate through items via the restricted pointer.
2233  // Also check for declarations in for loops.
2234  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2235    continue;
2236  return 0;
2237}
2238
2239// Check varargs and va_copy.
2240static bool
2241test_varargs (const char *format, ...)
2242{
2243  va_list args;
2244  va_start (args, format);
2245  va_list args_copy;
2246  va_copy (args_copy, args);
2247
2248  const char *str = "";
2249  int number = 0;
2250  float fnumber = 0;
2251
2252  while (*format)
2253    {
2254      switch (*format++)
2255	{
2256	case '\''s'\'': // string
2257	  str = va_arg (args_copy, const char *);
2258	  break;
2259	case '\''d'\'': // int
2260	  number = va_arg (args_copy, int);
2261	  break;
2262	case '\''f'\'': // float
2263	  fnumber = va_arg (args_copy, double);
2264	  break;
2265	default:
2266	  break;
2267	}
2268    }
2269  va_end (args_copy);
2270  va_end (args);
2271
2272  return *str && number && fnumber;
2273}
2274'
2275
2276# Test code for whether the C compiler supports C99 (body of main).
2277ac_c_conftest_c99_main='
2278  // Check bool.
2279  _Bool success = false;
2280  success |= (argc != 0);
2281
2282  // Check restrict.
2283  if (test_restrict ("String literal") == 0)
2284    success = true;
2285  char *restrict newvar = "Another string";
2286
2287  // Check varargs.
2288  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2289  test_varargs_macros ();
2290
2291  // Check flexible array members.
2292  struct incomplete_array *ia =
2293    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2294  ia->datasize = 10;
2295  for (int i = 0; i < ia->datasize; ++i)
2296    ia->data[i] = i * 1.234;
2297  // Work around memory leak warnings.
2298  free (ia);
2299
2300  // Check named initializers.
2301  struct named_init ni = {
2302    .number = 34,
2303    .name = L"Test wide string",
2304    .average = 543.34343,
2305  };
2306
2307  ni.number = 58;
2308
2309  int dynamic_array[ni.number];
2310  dynamic_array[0] = argv[0][0];
2311  dynamic_array[ni.number - 1] = 543;
2312
2313  // work around unused variable warnings
2314  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2315	 || dynamic_array[ni.number - 1] != 543);
2316'
2317
2318# Test code for whether the C compiler supports C11 (global declarations)
2319ac_c_conftest_c11_globals='
2320/* Does the compiler advertise C11 conformance? */
2321#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2322# error "Compiler does not advertise C11 conformance"
2323#endif
2324
2325// Check _Alignas.
2326char _Alignas (double) aligned_as_double;
2327char _Alignas (0) no_special_alignment;
2328extern char aligned_as_int;
2329char _Alignas (0) _Alignas (int) aligned_as_int;
2330
2331// Check _Alignof.
2332enum
2333{
2334  int_alignment = _Alignof (int),
2335  int_array_alignment = _Alignof (int[100]),
2336  char_alignment = _Alignof (char)
2337};
2338_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2339
2340// Check _Noreturn.
2341int _Noreturn does_not_return (void) { for (;;) continue; }
2342
2343// Check _Static_assert.
2344struct test_static_assert
2345{
2346  int x;
2347  _Static_assert (sizeof (int) <= sizeof (long int),
2348                  "_Static_assert does not work in struct");
2349  long int y;
2350};
2351
2352// Check UTF-8 literals.
2353#define u8 syntax error!
2354char const utf8_literal[] = u8"happens to be ASCII" "another string";
2355
2356// Check duplicate typedefs.
2357typedef long *long_ptr;
2358typedef long int *long_ptr;
2359typedef long_ptr long_ptr;
2360
2361// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2362struct anonymous
2363{
2364  union {
2365    struct { int i; int j; };
2366    struct { int k; long int l; } w;
2367  };
2368  int m;
2369} v1;
2370'
2371
2372# Test code for whether the C compiler supports C11 (body of main).
2373ac_c_conftest_c11_main='
2374  _Static_assert ((offsetof (struct anonymous, i)
2375		   == offsetof (struct anonymous, w.k)),
2376		  "Anonymous union alignment botch");
2377  v1.i = 2;
2378  v1.w.k = 5;
2379  ok |= v1.i != 5;
2380'
2381
2382# Test code for whether the C compiler supports C11 (complete).
2383ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2384${ac_c_conftest_c99_globals}
2385${ac_c_conftest_c11_globals}
2386
2387int
2388main (int argc, char **argv)
2389{
2390  int ok = 0;
2391  ${ac_c_conftest_c89_main}
2392  ${ac_c_conftest_c99_main}
2393  ${ac_c_conftest_c11_main}
2394  return ok;
2395}
2396"
2397
2398# Test code for whether the C compiler supports C99 (complete).
2399ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2400${ac_c_conftest_c99_globals}
2401
2402int
2403main (int argc, char **argv)
2404{
2405  int ok = 0;
2406  ${ac_c_conftest_c89_main}
2407  ${ac_c_conftest_c99_main}
2408  return ok;
2409}
2410"
2411
2412# Test code for whether the C compiler supports C89 (complete).
2413ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2414
2415int
2416main (int argc, char **argv)
2417{
2418  int ok = 0;
2419  ${ac_c_conftest_c89_main}
2420  return ok;
2421}
2422"
2423
2424as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2425as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2426as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2427as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2428as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2429as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2430as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2431as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2432as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2433as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2434
2435# Auxiliary files required by this configure script.
2436ac_aux_files="config.guess config.sub missing install-sh compile"
2437
2438# Locations in which to look for auxiliary files.
2439ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2440
2441# Search for a directory containing all of the required auxiliary files,
2442# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2443# If we don't find one directory that contains all the files we need,
2444# we report the set of missing files from the *first* directory in
2445# $ac_aux_dir_candidates and give up.
2446ac_missing_aux_files=""
2447ac_first_candidate=:
2448printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450as_found=false
2451for as_dir in $ac_aux_dir_candidates
2452do
2453  IFS=$as_save_IFS
2454  case $as_dir in #(((
2455    '') as_dir=./ ;;
2456    */) ;;
2457    *) as_dir=$as_dir/ ;;
2458  esac
2459  as_found=:
2460
2461  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2462  ac_aux_dir_found=yes
2463  ac_install_sh=
2464  for ac_aux in $ac_aux_files
2465  do
2466    # As a special case, if "install-sh" is required, that requirement
2467    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2468    # and $ac_install_sh is set appropriately for whichever one is found.
2469    if test x"$ac_aux" = x"install-sh"
2470    then
2471      if test -f "${as_dir}install-sh"; then
2472        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2473        ac_install_sh="${as_dir}install-sh -c"
2474      elif test -f "${as_dir}install.sh"; then
2475        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2476        ac_install_sh="${as_dir}install.sh -c"
2477      elif test -f "${as_dir}shtool"; then
2478        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2479        ac_install_sh="${as_dir}shtool install -c"
2480      else
2481        ac_aux_dir_found=no
2482        if $ac_first_candidate; then
2483          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2484        else
2485          break
2486        fi
2487      fi
2488    else
2489      if test -f "${as_dir}${ac_aux}"; then
2490        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2491      else
2492        ac_aux_dir_found=no
2493        if $ac_first_candidate; then
2494          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2495        else
2496          break
2497        fi
2498      fi
2499    fi
2500  done
2501  if test "$ac_aux_dir_found" = yes; then
2502    ac_aux_dir="$as_dir"
2503    break
2504  fi
2505  ac_first_candidate=false
2506
2507  as_found=false
2508done
2509IFS=$as_save_IFS
2510if $as_found
2511then :
2512
2513else case e in #(
2514  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2515esac
2516fi
2517
2518
2519# These three variables are undocumented and unsupported,
2520# and are intended to be withdrawn in a future Autoconf release.
2521# They can cause serious problems if a builder's source tree is in a directory
2522# whose full name contains unusual characters.
2523if test -f "${ac_aux_dir}config.guess"; then
2524  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2525fi
2526if test -f "${ac_aux_dir}config.sub"; then
2527  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2528fi
2529if test -f "$ac_aux_dir/configure"; then
2530  ac_configure="$SHELL ${ac_aux_dir}configure"
2531fi
2532
2533# Check that the precious variables saved in the cache have kept the same
2534# value.
2535ac_cache_corrupted=false
2536for ac_var in $ac_precious_vars; do
2537  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2538  eval ac_new_set=\$ac_env_${ac_var}_set
2539  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2540  eval ac_new_val=\$ac_env_${ac_var}_value
2541  case $ac_old_set,$ac_new_set in
2542    set,)
2543      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2544printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2545      ac_cache_corrupted=: ;;
2546    ,set)
2547      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2548printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2549      ac_cache_corrupted=: ;;
2550    ,);;
2551    *)
2552      if test "x$ac_old_val" != "x$ac_new_val"; then
2553	# differences in whitespace do not lead to failure.
2554	ac_old_val_w=`echo x $ac_old_val`
2555	ac_new_val_w=`echo x $ac_new_val`
2556	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2557	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2558printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2559	  ac_cache_corrupted=:
2560	else
2561	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2562printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2563	  eval $ac_var=\$ac_old_val
2564	fi
2565	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2566printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2567	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2568printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2569      fi;;
2570  esac
2571  # Pass precious variables to config.status.
2572  if test "$ac_new_set" = set; then
2573    case $ac_new_val in
2574    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2575    *) ac_arg=$ac_var=$ac_new_val ;;
2576    esac
2577    case " $ac_configure_args " in
2578      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2579      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2580    esac
2581  fi
2582done
2583if $ac_cache_corrupted; then
2584  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2585printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2586  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2587printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2588  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2589	    and start over" "$LINENO" 5
2590fi
2591## -------------------- ##
2592## Main body of script. ##
2593## -------------------- ##
2594
2595ac_ext=c
2596ac_cpp='$CPP $CPPFLAGS'
2597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2599ac_compiler_gnu=$ac_cv_c_compiler_gnu
2600
2601
2602
2603ac_config_headers="$ac_config_headers config.h"
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616# Expand $ac_aux_dir to an absolute path.
2617am_aux_dir=`cd "$ac_aux_dir" && pwd`
2618
2619ac_ext=c
2620ac_cpp='$CPP $CPPFLAGS'
2621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2623ac_compiler_gnu=$ac_cv_c_compiler_gnu
2624if test -n "$ac_tool_prefix"; then
2625  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2626set dummy ${ac_tool_prefix}gcc; ac_word=$2
2627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2628printf %s "checking for $ac_word... " >&6; }
2629if test ${ac_cv_prog_CC+y}
2630then :
2631  printf %s "(cached) " >&6
2632else case e in #(
2633  e) if test -n "$CC"; then
2634  ac_cv_prog_CC="$CC" # Let the user override the test.
2635else
2636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637for as_dir in $PATH
2638do
2639  IFS=$as_save_IFS
2640  case $as_dir in #(((
2641    '') as_dir=./ ;;
2642    */) ;;
2643    *) as_dir=$as_dir/ ;;
2644  esac
2645    for ac_exec_ext in '' $ac_executable_extensions; do
2646  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2647    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2648    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2649    break 2
2650  fi
2651done
2652  done
2653IFS=$as_save_IFS
2654
2655fi ;;
2656esac
2657fi
2658CC=$ac_cv_prog_CC
2659if test -n "$CC"; then
2660  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2661printf "%s\n" "$CC" >&6; }
2662else
2663  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2664printf "%s\n" "no" >&6; }
2665fi
2666
2667
2668fi
2669if test -z "$ac_cv_prog_CC"; then
2670  ac_ct_CC=$CC
2671  # Extract the first word of "gcc", so it can be a program name with args.
2672set dummy gcc; ac_word=$2
2673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674printf %s "checking for $ac_word... " >&6; }
2675if test ${ac_cv_prog_ac_ct_CC+y}
2676then :
2677  printf %s "(cached) " >&6
2678else case e in #(
2679  e) if test -n "$ac_ct_CC"; then
2680  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2681else
2682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683for as_dir in $PATH
2684do
2685  IFS=$as_save_IFS
2686  case $as_dir in #(((
2687    '') as_dir=./ ;;
2688    */) ;;
2689    *) as_dir=$as_dir/ ;;
2690  esac
2691    for ac_exec_ext in '' $ac_executable_extensions; do
2692  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2693    ac_cv_prog_ac_ct_CC="gcc"
2694    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2695    break 2
2696  fi
2697done
2698  done
2699IFS=$as_save_IFS
2700
2701fi ;;
2702esac
2703fi
2704ac_ct_CC=$ac_cv_prog_ac_ct_CC
2705if test -n "$ac_ct_CC"; then
2706  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2707printf "%s\n" "$ac_ct_CC" >&6; }
2708else
2709  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2710printf "%s\n" "no" >&6; }
2711fi
2712
2713  if test "x$ac_ct_CC" = x; then
2714    CC=""
2715  else
2716    case $cross_compiling:$ac_tool_warned in
2717yes:)
2718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2719printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2720ac_tool_warned=yes ;;
2721esac
2722    CC=$ac_ct_CC
2723  fi
2724else
2725  CC="$ac_cv_prog_CC"
2726fi
2727
2728if test -z "$CC"; then
2729          if test -n "$ac_tool_prefix"; then
2730    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2731set dummy ${ac_tool_prefix}cc; ac_word=$2
2732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2733printf %s "checking for $ac_word... " >&6; }
2734if test ${ac_cv_prog_CC+y}
2735then :
2736  printf %s "(cached) " >&6
2737else case e in #(
2738  e) if test -n "$CC"; then
2739  ac_cv_prog_CC="$CC" # Let the user override the test.
2740else
2741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742for as_dir in $PATH
2743do
2744  IFS=$as_save_IFS
2745  case $as_dir in #(((
2746    '') as_dir=./ ;;
2747    */) ;;
2748    *) as_dir=$as_dir/ ;;
2749  esac
2750    for ac_exec_ext in '' $ac_executable_extensions; do
2751  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2752    ac_cv_prog_CC="${ac_tool_prefix}cc"
2753    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2754    break 2
2755  fi
2756done
2757  done
2758IFS=$as_save_IFS
2759
2760fi ;;
2761esac
2762fi
2763CC=$ac_cv_prog_CC
2764if test -n "$CC"; then
2765  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2766printf "%s\n" "$CC" >&6; }
2767else
2768  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769printf "%s\n" "no" >&6; }
2770fi
2771
2772
2773  fi
2774fi
2775if test -z "$CC"; then
2776  # Extract the first word of "cc", so it can be a program name with args.
2777set dummy cc; ac_word=$2
2778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779printf %s "checking for $ac_word... " >&6; }
2780if test ${ac_cv_prog_CC+y}
2781then :
2782  printf %s "(cached) " >&6
2783else case e in #(
2784  e) if test -n "$CC"; then
2785  ac_cv_prog_CC="$CC" # Let the user override the test.
2786else
2787  ac_prog_rejected=no
2788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789for as_dir in $PATH
2790do
2791  IFS=$as_save_IFS
2792  case $as_dir in #(((
2793    '') as_dir=./ ;;
2794    */) ;;
2795    *) as_dir=$as_dir/ ;;
2796  esac
2797    for ac_exec_ext in '' $ac_executable_extensions; do
2798  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2799    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2800       ac_prog_rejected=yes
2801       continue
2802     fi
2803    ac_cv_prog_CC="cc"
2804    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2805    break 2
2806  fi
2807done
2808  done
2809IFS=$as_save_IFS
2810
2811if test $ac_prog_rejected = yes; then
2812  # We found a bogon in the path, so make sure we never use it.
2813  set dummy $ac_cv_prog_CC
2814  shift
2815  if test $# != 0; then
2816    # We chose a different compiler from the bogus one.
2817    # However, it has the same basename, so the bogon will be chosen
2818    # first if we set CC to just the basename; use the full file name.
2819    shift
2820    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2821  fi
2822fi
2823fi ;;
2824esac
2825fi
2826CC=$ac_cv_prog_CC
2827if test -n "$CC"; then
2828  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2829printf "%s\n" "$CC" >&6; }
2830else
2831  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832printf "%s\n" "no" >&6; }
2833fi
2834
2835
2836fi
2837if test -z "$CC"; then
2838  if test -n "$ac_tool_prefix"; then
2839  for ac_prog in cl.exe
2840  do
2841    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2842set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844printf %s "checking for $ac_word... " >&6; }
2845if test ${ac_cv_prog_CC+y}
2846then :
2847  printf %s "(cached) " >&6
2848else case e in #(
2849  e) if test -n "$CC"; then
2850  ac_cv_prog_CC="$CC" # Let the user override the test.
2851else
2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853for as_dir in $PATH
2854do
2855  IFS=$as_save_IFS
2856  case $as_dir in #(((
2857    '') as_dir=./ ;;
2858    */) ;;
2859    *) as_dir=$as_dir/ ;;
2860  esac
2861    for ac_exec_ext in '' $ac_executable_extensions; do
2862  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2863    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2864    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2865    break 2
2866  fi
2867done
2868  done
2869IFS=$as_save_IFS
2870
2871fi ;;
2872esac
2873fi
2874CC=$ac_cv_prog_CC
2875if test -n "$CC"; then
2876  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2877printf "%s\n" "$CC" >&6; }
2878else
2879  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2880printf "%s\n" "no" >&6; }
2881fi
2882
2883
2884    test -n "$CC" && break
2885  done
2886fi
2887if test -z "$CC"; then
2888  ac_ct_CC=$CC
2889  for ac_prog in cl.exe
2890do
2891  # Extract the first word of "$ac_prog", so it can be a program name with args.
2892set dummy $ac_prog; ac_word=$2
2893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894printf %s "checking for $ac_word... " >&6; }
2895if test ${ac_cv_prog_ac_ct_CC+y}
2896then :
2897  printf %s "(cached) " >&6
2898else case e in #(
2899  e) if test -n "$ac_ct_CC"; then
2900  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2901else
2902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903for as_dir in $PATH
2904do
2905  IFS=$as_save_IFS
2906  case $as_dir in #(((
2907    '') as_dir=./ ;;
2908    */) ;;
2909    *) as_dir=$as_dir/ ;;
2910  esac
2911    for ac_exec_ext in '' $ac_executable_extensions; do
2912  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2913    ac_cv_prog_ac_ct_CC="$ac_prog"
2914    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2915    break 2
2916  fi
2917done
2918  done
2919IFS=$as_save_IFS
2920
2921fi ;;
2922esac
2923fi
2924ac_ct_CC=$ac_cv_prog_ac_ct_CC
2925if test -n "$ac_ct_CC"; then
2926  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2927printf "%s\n" "$ac_ct_CC" >&6; }
2928else
2929  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930printf "%s\n" "no" >&6; }
2931fi
2932
2933
2934  test -n "$ac_ct_CC" && break
2935done
2936
2937  if test "x$ac_ct_CC" = x; then
2938    CC=""
2939  else
2940    case $cross_compiling:$ac_tool_warned in
2941yes:)
2942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2943printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2944ac_tool_warned=yes ;;
2945esac
2946    CC=$ac_ct_CC
2947  fi
2948fi
2949
2950fi
2951if test -z "$CC"; then
2952  if test -n "$ac_tool_prefix"; then
2953  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2954set dummy ${ac_tool_prefix}clang; ac_word=$2
2955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2956printf %s "checking for $ac_word... " >&6; }
2957if test ${ac_cv_prog_CC+y}
2958then :
2959  printf %s "(cached) " >&6
2960else case e in #(
2961  e) if test -n "$CC"; then
2962  ac_cv_prog_CC="$CC" # Let the user override the test.
2963else
2964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965for as_dir in $PATH
2966do
2967  IFS=$as_save_IFS
2968  case $as_dir in #(((
2969    '') as_dir=./ ;;
2970    */) ;;
2971    *) as_dir=$as_dir/ ;;
2972  esac
2973    for ac_exec_ext in '' $ac_executable_extensions; do
2974  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2975    ac_cv_prog_CC="${ac_tool_prefix}clang"
2976    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2977    break 2
2978  fi
2979done
2980  done
2981IFS=$as_save_IFS
2982
2983fi ;;
2984esac
2985fi
2986CC=$ac_cv_prog_CC
2987if test -n "$CC"; then
2988  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2989printf "%s\n" "$CC" >&6; }
2990else
2991  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992printf "%s\n" "no" >&6; }
2993fi
2994
2995
2996fi
2997if test -z "$ac_cv_prog_CC"; then
2998  ac_ct_CC=$CC
2999  # Extract the first word of "clang", so it can be a program name with args.
3000set dummy clang; ac_word=$2
3001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3002printf %s "checking for $ac_word... " >&6; }
3003if test ${ac_cv_prog_ac_ct_CC+y}
3004then :
3005  printf %s "(cached) " >&6
3006else case e in #(
3007  e) if test -n "$ac_ct_CC"; then
3008  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3009else
3010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011for as_dir in $PATH
3012do
3013  IFS=$as_save_IFS
3014  case $as_dir in #(((
3015    '') as_dir=./ ;;
3016    */) ;;
3017    *) as_dir=$as_dir/ ;;
3018  esac
3019    for ac_exec_ext in '' $ac_executable_extensions; do
3020  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3021    ac_cv_prog_ac_ct_CC="clang"
3022    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3023    break 2
3024  fi
3025done
3026  done
3027IFS=$as_save_IFS
3028
3029fi ;;
3030esac
3031fi
3032ac_ct_CC=$ac_cv_prog_ac_ct_CC
3033if test -n "$ac_ct_CC"; then
3034  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3035printf "%s\n" "$ac_ct_CC" >&6; }
3036else
3037  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038printf "%s\n" "no" >&6; }
3039fi
3040
3041  if test "x$ac_ct_CC" = x; then
3042    CC=""
3043  else
3044    case $cross_compiling:$ac_tool_warned in
3045yes:)
3046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3047printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3048ac_tool_warned=yes ;;
3049esac
3050    CC=$ac_ct_CC
3051  fi
3052else
3053  CC="$ac_cv_prog_CC"
3054fi
3055
3056fi
3057
3058
3059test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3060printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3061as_fn_error $? "no acceptable C compiler found in \$PATH
3062See 'config.log' for more details" "$LINENO" 5; }
3063
3064# Provide some information about the compiler.
3065printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3066set X $ac_compile
3067ac_compiler=$2
3068for ac_option in --version -v -V -qversion -version; do
3069  { { ac_try="$ac_compiler $ac_option >&5"
3070case "(($ac_try" in
3071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072  *) ac_try_echo=$ac_try;;
3073esac
3074eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3075printf "%s\n" "$ac_try_echo"; } >&5
3076  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3077  ac_status=$?
3078  if test -s conftest.err; then
3079    sed '10a\
3080... rest of stderr output deleted ...
3081         10q' conftest.err >conftest.er1
3082    cat conftest.er1 >&5
3083  fi
3084  rm -f conftest.er1 conftest.err
3085  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3086  test $ac_status = 0; }
3087done
3088
3089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3090/* end confdefs.h.  */
3091
3092int
3093main (void)
3094{
3095
3096  ;
3097  return 0;
3098}
3099_ACEOF
3100ac_clean_files_save=$ac_clean_files
3101ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3102# Try to create an executable without -o first, disregard a.out.
3103# It will help us diagnose broken compilers, and finding out an intuition
3104# of exeext.
3105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3106printf %s "checking whether the C compiler works... " >&6; }
3107ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3108
3109# The possible output files:
3110ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3111
3112ac_rmfiles=
3113for ac_file in $ac_files
3114do
3115  case $ac_file in
3116    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3117    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3118  esac
3119done
3120rm -f $ac_rmfiles
3121
3122if { { ac_try="$ac_link_default"
3123case "(($ac_try" in
3124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125  *) ac_try_echo=$ac_try;;
3126esac
3127eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3128printf "%s\n" "$ac_try_echo"; } >&5
3129  (eval "$ac_link_default") 2>&5
3130  ac_status=$?
3131  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3132  test $ac_status = 0; }
3133then :
3134  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3135# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3136# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3137# so that the user can short-circuit this test for compilers unknown to
3138# Autoconf.
3139for ac_file in $ac_files ''
3140do
3141  test -f "$ac_file" || continue
3142  case $ac_file in
3143    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3144	;;
3145    [ab].out )
3146	# We found the default executable, but exeext='' is most
3147	# certainly right.
3148	break;;
3149    *.* )
3150	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3151	then :; else
3152	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3153	fi
3154	# We set ac_cv_exeext here because the later test for it is not
3155	# safe: cross compilers may not add the suffix if given an '-o'
3156	# argument, so we may need to know it at that point already.
3157	# Even if this section looks crufty: it has the advantage of
3158	# actually working.
3159	break;;
3160    * )
3161	break;;
3162  esac
3163done
3164test "$ac_cv_exeext" = no && ac_cv_exeext=
3165
3166else case e in #(
3167  e) ac_file='' ;;
3168esac
3169fi
3170if test -z "$ac_file"
3171then :
3172  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173printf "%s\n" "no" >&6; }
3174printf "%s\n" "$as_me: failed program was:" >&5
3175sed 's/^/| /' conftest.$ac_ext >&5
3176
3177{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3178printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3179as_fn_error 77 "C compiler cannot create executables
3180See 'config.log' for more details" "$LINENO" 5; }
3181else case e in #(
3182  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3183printf "%s\n" "yes" >&6; } ;;
3184esac
3185fi
3186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3187printf %s "checking for C compiler default output file name... " >&6; }
3188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3189printf "%s\n" "$ac_file" >&6; }
3190ac_exeext=$ac_cv_exeext
3191
3192rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3193ac_clean_files=$ac_clean_files_save
3194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3195printf %s "checking for suffix of executables... " >&6; }
3196if { { ac_try="$ac_link"
3197case "(($ac_try" in
3198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199  *) ac_try_echo=$ac_try;;
3200esac
3201eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3202printf "%s\n" "$ac_try_echo"; } >&5
3203  (eval "$ac_link") 2>&5
3204  ac_status=$?
3205  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3206  test $ac_status = 0; }
3207then :
3208  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3209# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
3210# work properly (i.e., refer to 'conftest.exe'), while it won't with
3211# 'rm'.
3212for ac_file in conftest.exe conftest conftest.*; do
3213  test -f "$ac_file" || continue
3214  case $ac_file in
3215    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3216    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3217	  break;;
3218    * ) break;;
3219  esac
3220done
3221else case e in #(
3222  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3223printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3224as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3225See 'config.log' for more details" "$LINENO" 5; } ;;
3226esac
3227fi
3228rm -f conftest conftest$ac_cv_exeext
3229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3230printf "%s\n" "$ac_cv_exeext" >&6; }
3231
3232rm -f conftest.$ac_ext
3233EXEEXT=$ac_cv_exeext
3234ac_exeext=$EXEEXT
3235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3236/* end confdefs.h.  */
3237#include <stdio.h>
3238int
3239main (void)
3240{
3241FILE *f = fopen ("conftest.out", "w");
3242 if (!f)
3243  return 1;
3244 return ferror (f) || fclose (f) != 0;
3245
3246  ;
3247  return 0;
3248}
3249_ACEOF
3250ac_clean_files="$ac_clean_files conftest.out"
3251# Check that the compiler produces executables we can run.  If not, either
3252# the compiler is broken, or we cross compile.
3253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3254printf %s "checking whether we are cross compiling... " >&6; }
3255if test "$cross_compiling" != yes; then
3256  { { ac_try="$ac_link"
3257case "(($ac_try" in
3258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259  *) ac_try_echo=$ac_try;;
3260esac
3261eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3262printf "%s\n" "$ac_try_echo"; } >&5
3263  (eval "$ac_link") 2>&5
3264  ac_status=$?
3265  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266  test $ac_status = 0; }
3267  if { ac_try='./conftest$ac_cv_exeext'
3268  { { case "(($ac_try" in
3269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270  *) ac_try_echo=$ac_try;;
3271esac
3272eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3273printf "%s\n" "$ac_try_echo"; } >&5
3274  (eval "$ac_try") 2>&5
3275  ac_status=$?
3276  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3277  test $ac_status = 0; }; }; then
3278    cross_compiling=no
3279  else
3280    if test "$cross_compiling" = maybe; then
3281	cross_compiling=yes
3282    else
3283	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3284printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3285as_fn_error 77 "cannot run C compiled programs.
3286If you meant to cross compile, use '--host'.
3287See 'config.log' for more details" "$LINENO" 5; }
3288    fi
3289  fi
3290fi
3291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3292printf "%s\n" "$cross_compiling" >&6; }
3293
3294rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3295  conftest.o conftest.obj conftest.out
3296ac_clean_files=$ac_clean_files_save
3297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3298printf %s "checking for suffix of object files... " >&6; }
3299if test ${ac_cv_objext+y}
3300then :
3301  printf %s "(cached) " >&6
3302else case e in #(
3303  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304/* end confdefs.h.  */
3305
3306int
3307main (void)
3308{
3309
3310  ;
3311  return 0;
3312}
3313_ACEOF
3314rm -f conftest.o conftest.obj
3315if { { ac_try="$ac_compile"
3316case "(($ac_try" in
3317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318  *) ac_try_echo=$ac_try;;
3319esac
3320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321printf "%s\n" "$ac_try_echo"; } >&5
3322  (eval "$ac_compile") 2>&5
3323  ac_status=$?
3324  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325  test $ac_status = 0; }
3326then :
3327  for ac_file in conftest.o conftest.obj conftest.*; do
3328  test -f "$ac_file" || continue;
3329  case $ac_file in
3330    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3331    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3332       break;;
3333  esac
3334done
3335else case e in #(
3336  e) printf "%s\n" "$as_me: failed program was:" >&5
3337sed 's/^/| /' conftest.$ac_ext >&5
3338
3339{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3340printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3341as_fn_error $? "cannot compute suffix of object files: cannot compile
3342See 'config.log' for more details" "$LINENO" 5; } ;;
3343esac
3344fi
3345rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3346esac
3347fi
3348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3349printf "%s\n" "$ac_cv_objext" >&6; }
3350OBJEXT=$ac_cv_objext
3351ac_objext=$OBJEXT
3352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3353printf %s "checking whether the compiler supports GNU C... " >&6; }
3354if test ${ac_cv_c_compiler_gnu+y}
3355then :
3356  printf %s "(cached) " >&6
3357else case e in #(
3358  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359/* end confdefs.h.  */
3360
3361int
3362main (void)
3363{
3364#ifndef __GNUC__
3365       choke me
3366#endif
3367
3368  ;
3369  return 0;
3370}
3371_ACEOF
3372if ac_fn_c_try_compile "$LINENO"
3373then :
3374  ac_compiler_gnu=yes
3375else case e in #(
3376  e) ac_compiler_gnu=no ;;
3377esac
3378fi
3379rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3380ac_cv_c_compiler_gnu=$ac_compiler_gnu
3381 ;;
3382esac
3383fi
3384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3385printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3386ac_compiler_gnu=$ac_cv_c_compiler_gnu
3387
3388if test $ac_compiler_gnu = yes; then
3389  GCC=yes
3390else
3391  GCC=
3392fi
3393ac_test_CFLAGS=${CFLAGS+y}
3394ac_save_CFLAGS=$CFLAGS
3395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3396printf %s "checking whether $CC accepts -g... " >&6; }
3397if test ${ac_cv_prog_cc_g+y}
3398then :
3399  printf %s "(cached) " >&6
3400else case e in #(
3401  e) ac_save_c_werror_flag=$ac_c_werror_flag
3402   ac_c_werror_flag=yes
3403   ac_cv_prog_cc_g=no
3404   CFLAGS="-g"
3405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406/* end confdefs.h.  */
3407
3408int
3409main (void)
3410{
3411
3412  ;
3413  return 0;
3414}
3415_ACEOF
3416if ac_fn_c_try_compile "$LINENO"
3417then :
3418  ac_cv_prog_cc_g=yes
3419else case e in #(
3420  e) CFLAGS=""
3421      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422/* end confdefs.h.  */
3423
3424int
3425main (void)
3426{
3427
3428  ;
3429  return 0;
3430}
3431_ACEOF
3432if ac_fn_c_try_compile "$LINENO"
3433then :
3434
3435else case e in #(
3436  e) ac_c_werror_flag=$ac_save_c_werror_flag
3437	 CFLAGS="-g"
3438	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439/* end confdefs.h.  */
3440
3441int
3442main (void)
3443{
3444
3445  ;
3446  return 0;
3447}
3448_ACEOF
3449if ac_fn_c_try_compile "$LINENO"
3450then :
3451  ac_cv_prog_cc_g=yes
3452fi
3453rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3454esac
3455fi
3456rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3457esac
3458fi
3459rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3460   ac_c_werror_flag=$ac_save_c_werror_flag ;;
3461esac
3462fi
3463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3464printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3465if test $ac_test_CFLAGS; then
3466  CFLAGS=$ac_save_CFLAGS
3467elif test $ac_cv_prog_cc_g = yes; then
3468  if test "$GCC" = yes; then
3469    CFLAGS="-g -O2"
3470  else
3471    CFLAGS="-g"
3472  fi
3473else
3474  if test "$GCC" = yes; then
3475    CFLAGS="-O2"
3476  else
3477    CFLAGS=
3478  fi
3479fi
3480ac_prog_cc_stdc=no
3481if test x$ac_prog_cc_stdc = xno
3482then :
3483  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3484printf %s "checking for $CC option to enable C11 features... " >&6; }
3485if test ${ac_cv_prog_cc_c11+y}
3486then :
3487  printf %s "(cached) " >&6
3488else case e in #(
3489  e) ac_cv_prog_cc_c11=no
3490ac_save_CC=$CC
3491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492/* end confdefs.h.  */
3493$ac_c_conftest_c11_program
3494_ACEOF
3495for ac_arg in '' -std=gnu11
3496do
3497  CC="$ac_save_CC $ac_arg"
3498  if ac_fn_c_try_compile "$LINENO"
3499then :
3500  ac_cv_prog_cc_c11=$ac_arg
3501fi
3502rm -f core conftest.err conftest.$ac_objext conftest.beam
3503  test "x$ac_cv_prog_cc_c11" != "xno" && break
3504done
3505rm -f conftest.$ac_ext
3506CC=$ac_save_CC ;;
3507esac
3508fi
3509
3510if test "x$ac_cv_prog_cc_c11" = xno
3511then :
3512  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3513printf "%s\n" "unsupported" >&6; }
3514else case e in #(
3515  e) if test "x$ac_cv_prog_cc_c11" = x
3516then :
3517  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3518printf "%s\n" "none needed" >&6; }
3519else case e in #(
3520  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3521printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3522     CC="$CC $ac_cv_prog_cc_c11" ;;
3523esac
3524fi
3525  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3526  ac_prog_cc_stdc=c11 ;;
3527esac
3528fi
3529fi
3530if test x$ac_prog_cc_stdc = xno
3531then :
3532  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3533printf %s "checking for $CC option to enable C99 features... " >&6; }
3534if test ${ac_cv_prog_cc_c99+y}
3535then :
3536  printf %s "(cached) " >&6
3537else case e in #(
3538  e) ac_cv_prog_cc_c99=no
3539ac_save_CC=$CC
3540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541/* end confdefs.h.  */
3542$ac_c_conftest_c99_program
3543_ACEOF
3544for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3545do
3546  CC="$ac_save_CC $ac_arg"
3547  if ac_fn_c_try_compile "$LINENO"
3548then :
3549  ac_cv_prog_cc_c99=$ac_arg
3550fi
3551rm -f core conftest.err conftest.$ac_objext conftest.beam
3552  test "x$ac_cv_prog_cc_c99" != "xno" && break
3553done
3554rm -f conftest.$ac_ext
3555CC=$ac_save_CC ;;
3556esac
3557fi
3558
3559if test "x$ac_cv_prog_cc_c99" = xno
3560then :
3561  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3562printf "%s\n" "unsupported" >&6; }
3563else case e in #(
3564  e) if test "x$ac_cv_prog_cc_c99" = x
3565then :
3566  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3567printf "%s\n" "none needed" >&6; }
3568else case e in #(
3569  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3570printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3571     CC="$CC $ac_cv_prog_cc_c99" ;;
3572esac
3573fi
3574  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3575  ac_prog_cc_stdc=c99 ;;
3576esac
3577fi
3578fi
3579if test x$ac_prog_cc_stdc = xno
3580then :
3581  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3582printf %s "checking for $CC option to enable C89 features... " >&6; }
3583if test ${ac_cv_prog_cc_c89+y}
3584then :
3585  printf %s "(cached) " >&6
3586else case e in #(
3587  e) ac_cv_prog_cc_c89=no
3588ac_save_CC=$CC
3589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590/* end confdefs.h.  */
3591$ac_c_conftest_c89_program
3592_ACEOF
3593for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3594do
3595  CC="$ac_save_CC $ac_arg"
3596  if ac_fn_c_try_compile "$LINENO"
3597then :
3598  ac_cv_prog_cc_c89=$ac_arg
3599fi
3600rm -f core conftest.err conftest.$ac_objext conftest.beam
3601  test "x$ac_cv_prog_cc_c89" != "xno" && break
3602done
3603rm -f conftest.$ac_ext
3604CC=$ac_save_CC ;;
3605esac
3606fi
3607
3608if test "x$ac_cv_prog_cc_c89" = xno
3609then :
3610  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3611printf "%s\n" "unsupported" >&6; }
3612else case e in #(
3613  e) if test "x$ac_cv_prog_cc_c89" = x
3614then :
3615  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3616printf "%s\n" "none needed" >&6; }
3617else case e in #(
3618  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3619printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3620     CC="$CC $ac_cv_prog_cc_c89" ;;
3621esac
3622fi
3623  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3624  ac_prog_cc_stdc=c89 ;;
3625esac
3626fi
3627fi
3628
3629ac_ext=c
3630ac_cpp='$CPP $CPPFLAGS'
3631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3633ac_compiler_gnu=$ac_cv_c_compiler_gnu
3634
3635
3636  ac_ext=c
3637ac_cpp='$CPP $CPPFLAGS'
3638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3640ac_compiler_gnu=$ac_cv_c_compiler_gnu
3641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3642printf %s "checking whether $CC understands -c and -o together... " >&6; }
3643if test ${am_cv_prog_cc_c_o+y}
3644then :
3645  printf %s "(cached) " >&6
3646else case e in #(
3647  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648/* end confdefs.h.  */
3649
3650int
3651main (void)
3652{
3653
3654  ;
3655  return 0;
3656}
3657_ACEOF
3658  # Make sure it works both with $CC and with simple cc.
3659  # Following AC_PROG_CC_C_O, we do the test twice because some
3660  # compilers refuse to overwrite an existing .o file with -o,
3661  # though they will create one.
3662  am_cv_prog_cc_c_o=yes
3663  for am_i in 1 2; do
3664    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3665   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3666   ac_status=$?
3667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668   (exit $ac_status); } \
3669         && test -f conftest2.$ac_objext; then
3670      : OK
3671    else
3672      am_cv_prog_cc_c_o=no
3673      break
3674    fi
3675  done
3676  rm -f core conftest*
3677  unset am_i ;;
3678esac
3679fi
3680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3681printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3682if test "$am_cv_prog_cc_c_o" != yes; then
3683   # Losing compiler, so override with the script.
3684   # FIXME: It is wrong to rewrite CC.
3685   # But if we don't then we get into trouble of one sort or another.
3686   # A longer-term fix would be to have automake use am__CC in this case,
3687   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3688   CC="$am_aux_dir/compile $CC"
3689fi
3690ac_ext=c
3691ac_cpp='$CPP $CPPFLAGS'
3692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3694ac_compiler_gnu=$ac_cv_c_compiler_gnu
3695
3696
3697
3698ac_header= ac_cache=
3699for ac_item in $ac_header_c_list
3700do
3701  if test $ac_cache; then
3702    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3703    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3704      printf "%s\n" "#define $ac_item 1" >> confdefs.h
3705    fi
3706    ac_header= ac_cache=
3707  elif test $ac_header; then
3708    ac_cache=$ac_item
3709  else
3710    ac_header=$ac_item
3711  fi
3712done
3713
3714
3715
3716
3717
3718
3719
3720
3721if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3722then :
3723
3724printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3725
3726fi
3727
3728
3729
3730
3731
3732
3733  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3734printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3735if test ${ac_cv_safe_to_define___extensions__+y}
3736then :
3737  printf %s "(cached) " >&6
3738else case e in #(
3739  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740/* end confdefs.h.  */
3741
3742#         define __EXTENSIONS__ 1
3743          $ac_includes_default
3744int
3745main (void)
3746{
3747
3748  ;
3749  return 0;
3750}
3751_ACEOF
3752if ac_fn_c_try_compile "$LINENO"
3753then :
3754  ac_cv_safe_to_define___extensions__=yes
3755else case e in #(
3756  e) ac_cv_safe_to_define___extensions__=no ;;
3757esac
3758fi
3759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3760esac
3761fi
3762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3763printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3764
3765  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3766printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3767if test ${ac_cv_should_define__xopen_source+y}
3768then :
3769  printf %s "(cached) " >&6
3770else case e in #(
3771  e) ac_cv_should_define__xopen_source=no
3772    if test $ac_cv_header_wchar_h = yes
3773then :
3774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775/* end confdefs.h.  */
3776
3777          #include <wchar.h>
3778          mbstate_t x;
3779int
3780main (void)
3781{
3782
3783  ;
3784  return 0;
3785}
3786_ACEOF
3787if ac_fn_c_try_compile "$LINENO"
3788then :
3789
3790else case e in #(
3791  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792/* end confdefs.h.  */
3793
3794            #define _XOPEN_SOURCE 500
3795            #include <wchar.h>
3796            mbstate_t x;
3797int
3798main (void)
3799{
3800
3801  ;
3802  return 0;
3803}
3804_ACEOF
3805if ac_fn_c_try_compile "$LINENO"
3806then :
3807  ac_cv_should_define__xopen_source=yes
3808fi
3809rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3810esac
3811fi
3812rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3813fi ;;
3814esac
3815fi
3816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3817printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3818
3819  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3820
3821  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3822
3823  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3824
3825  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3826
3827  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3828
3829  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3830
3831  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3832
3833  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3834
3835  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3836
3837  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3838
3839  printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3840
3841  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3842
3843  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3844
3845  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3846
3847  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3848
3849  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3850
3851  if test $ac_cv_header_minix_config_h = yes
3852then :
3853  MINIX=yes
3854    printf "%s\n" "#define _MINIX 1" >>confdefs.h
3855
3856    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3857
3858    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3859
3860else case e in #(
3861  e) MINIX= ;;
3862esac
3863fi
3864  if test $ac_cv_safe_to_define___extensions__ = yes
3865then :
3866  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3867
3868fi
3869  if test $ac_cv_should_define__xopen_source = yes
3870then :
3871  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3872
3873fi
3874
3875
3876# Initialize Automake
3877am__api_version='1.16'
3878
3879
3880  # Find a good install program.  We prefer a C program (faster),
3881# so one script is as good as another.  But avoid the broken or
3882# incompatible versions:
3883# SysV /etc/install, /usr/sbin/install
3884# SunOS /usr/etc/install
3885# IRIX /sbin/install
3886# AIX /bin/install
3887# AmigaOS /C/install, which installs bootblocks on floppy discs
3888# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3889# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3890# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3891# OS/2's system install, which has a completely different semantic
3892# ./install, which can be erroneously created by make from ./install.sh.
3893# Reject install programs that cannot install multiple files.
3894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3895printf %s "checking for a BSD-compatible install... " >&6; }
3896if test -z "$INSTALL"; then
3897if test ${ac_cv_path_install+y}
3898then :
3899  printf %s "(cached) " >&6
3900else case e in #(
3901  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902for as_dir in $PATH
3903do
3904  IFS=$as_save_IFS
3905  case $as_dir in #(((
3906    '') as_dir=./ ;;
3907    */) ;;
3908    *) as_dir=$as_dir/ ;;
3909  esac
3910    # Account for fact that we put trailing slashes in our PATH walk.
3911case $as_dir in #((
3912  ./ | /[cC]/* | \
3913  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3914  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3915  /usr/ucb/* ) ;;
3916  *)
3917    # OSF1 and SCO ODT 3.0 have their own names for install.
3918    # Don't use installbsd from OSF since it installs stuff as root
3919    # by default.
3920    for ac_prog in ginstall scoinst install; do
3921      for ac_exec_ext in '' $ac_executable_extensions; do
3922	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3923	  if test $ac_prog = install &&
3924	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3925	    # AIX install.  It has an incompatible calling convention.
3926	    :
3927	  elif test $ac_prog = install &&
3928	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3929	    # program-specific install script used by HP pwplus--don't use.
3930	    :
3931	  else
3932	    rm -rf conftest.one conftest.two conftest.dir
3933	    echo one > conftest.one
3934	    echo two > conftest.two
3935	    mkdir conftest.dir
3936	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3937	      test -s conftest.one && test -s conftest.two &&
3938	      test -s conftest.dir/conftest.one &&
3939	      test -s conftest.dir/conftest.two
3940	    then
3941	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3942	      break 3
3943	    fi
3944	  fi
3945	fi
3946      done
3947    done
3948    ;;
3949esac
3950
3951  done
3952IFS=$as_save_IFS
3953
3954rm -rf conftest.one conftest.two conftest.dir
3955 ;;
3956esac
3957fi
3958  if test ${ac_cv_path_install+y}; then
3959    INSTALL=$ac_cv_path_install
3960  else
3961    # As a last resort, use the slow shell script.  Don't cache a
3962    # value for INSTALL within a source directory, because that will
3963    # break other packages using the cache if that directory is
3964    # removed, or if the value is a relative name.
3965    INSTALL=$ac_install_sh
3966  fi
3967fi
3968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3969printf "%s\n" "$INSTALL" >&6; }
3970
3971# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3972# It thinks the first close brace ends the variable substitution.
3973test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3974
3975test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3976
3977test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3978
3979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3980printf %s "checking whether build environment is sane... " >&6; }
3981# Reject unsafe characters in $srcdir or the absolute working directory
3982# name.  Accept space and tab only in the latter.
3983am_lf='
3984'
3985case `pwd` in
3986  *[\\\"\#\$\&\'\`$am_lf]*)
3987    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3988esac
3989case $srcdir in
3990  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3991    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3992esac
3993
3994# Do 'set' in a subshell so we don't clobber the current shell's
3995# arguments.  Must try -L first in case configure is actually a
3996# symlink; some systems play weird games with the mod time of symlinks
3997# (eg FreeBSD returns the mod time of the symlink's containing
3998# directory).
3999if (
4000   am_has_slept=no
4001   for am_try in 1 2; do
4002     echo "timestamp, slept: $am_has_slept" > conftest.file
4003     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4004     if test "$*" = "X"; then
4005	# -L didn't work.
4006	set X `ls -t "$srcdir/configure" conftest.file`
4007     fi
4008     if test "$*" != "X $srcdir/configure conftest.file" \
4009	&& test "$*" != "X conftest.file $srcdir/configure"; then
4010
4011	# If neither matched, then we have a broken ls.  This can happen
4012	# if, for instance, CONFIG_SHELL is bash and it inherits a
4013	# broken ls alias from the environment.  This has actually
4014	# happened.  Such a system could not be considered "sane".
4015	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4016  alias in your environment" "$LINENO" 5
4017     fi
4018     if test "$2" = conftest.file || test $am_try -eq 2; then
4019       break
4020     fi
4021     # Just in case.
4022     sleep 1
4023     am_has_slept=yes
4024   done
4025   test "$2" = conftest.file
4026   )
4027then
4028   # Ok.
4029   :
4030else
4031   as_fn_error $? "newly created file is older than distributed files!
4032Check your system clock" "$LINENO" 5
4033fi
4034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4035printf "%s\n" "yes" >&6; }
4036# If we didn't sleep, we still need to ensure time stamps of config.status and
4037# generated files are strictly newer.
4038am_sleep_pid=
4039if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4040  ( sleep 1 ) &
4041  am_sleep_pid=$!
4042fi
4043
4044rm -f conftest.file
4045
4046test "$program_prefix" != NONE &&
4047  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4048# Use a double $ so make ignores it.
4049test "$program_suffix" != NONE &&
4050  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4051# Double any \ or $.
4052# By default was 's,x,x', remove it if useless.
4053ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4054program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4055
4056
4057  if test x"${MISSING+set}" != xset; then
4058  MISSING="\${SHELL} '$am_aux_dir/missing'"
4059fi
4060# Use eval to expand $SHELL
4061if eval "$MISSING --is-lightweight"; then
4062  am_missing_run="$MISSING "
4063else
4064  am_missing_run=
4065  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4066printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4067fi
4068
4069if test x"${install_sh+set}" != xset; then
4070  case $am_aux_dir in
4071  *\ * | *\	*)
4072    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4073  *)
4074    install_sh="\${SHELL} $am_aux_dir/install-sh"
4075  esac
4076fi
4077
4078# Installed binaries are usually stripped using 'strip' when the user
4079# run "make install-strip".  However 'strip' might not be the right
4080# tool to use in cross-compilation environments, therefore Automake
4081# will honor the 'STRIP' environment variable to overrule this program.
4082if test "$cross_compiling" != no; then
4083  if test -n "$ac_tool_prefix"; then
4084  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4085set dummy ${ac_tool_prefix}strip; ac_word=$2
4086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4087printf %s "checking for $ac_word... " >&6; }
4088if test ${ac_cv_prog_STRIP+y}
4089then :
4090  printf %s "(cached) " >&6
4091else case e in #(
4092  e) if test -n "$STRIP"; then
4093  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4094else
4095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096for as_dir in $PATH
4097do
4098  IFS=$as_save_IFS
4099  case $as_dir in #(((
4100    '') as_dir=./ ;;
4101    */) ;;
4102    *) as_dir=$as_dir/ ;;
4103  esac
4104    for ac_exec_ext in '' $ac_executable_extensions; do
4105  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4106    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4107    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4108    break 2
4109  fi
4110done
4111  done
4112IFS=$as_save_IFS
4113
4114fi ;;
4115esac
4116fi
4117STRIP=$ac_cv_prog_STRIP
4118if test -n "$STRIP"; then
4119  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4120printf "%s\n" "$STRIP" >&6; }
4121else
4122  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4123printf "%s\n" "no" >&6; }
4124fi
4125
4126
4127fi
4128if test -z "$ac_cv_prog_STRIP"; then
4129  ac_ct_STRIP=$STRIP
4130  # Extract the first word of "strip", so it can be a program name with args.
4131set dummy strip; ac_word=$2
4132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4133printf %s "checking for $ac_word... " >&6; }
4134if test ${ac_cv_prog_ac_ct_STRIP+y}
4135then :
4136  printf %s "(cached) " >&6
4137else case e in #(
4138  e) if test -n "$ac_ct_STRIP"; then
4139  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4140else
4141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142for as_dir in $PATH
4143do
4144  IFS=$as_save_IFS
4145  case $as_dir in #(((
4146    '') as_dir=./ ;;
4147    */) ;;
4148    *) as_dir=$as_dir/ ;;
4149  esac
4150    for ac_exec_ext in '' $ac_executable_extensions; do
4151  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4152    ac_cv_prog_ac_ct_STRIP="strip"
4153    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4154    break 2
4155  fi
4156done
4157  done
4158IFS=$as_save_IFS
4159
4160fi ;;
4161esac
4162fi
4163ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4164if test -n "$ac_ct_STRIP"; then
4165  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4166printf "%s\n" "$ac_ct_STRIP" >&6; }
4167else
4168  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4169printf "%s\n" "no" >&6; }
4170fi
4171
4172  if test "x$ac_ct_STRIP" = x; then
4173    STRIP=":"
4174  else
4175    case $cross_compiling:$ac_tool_warned in
4176yes:)
4177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4178printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4179ac_tool_warned=yes ;;
4180esac
4181    STRIP=$ac_ct_STRIP
4182  fi
4183else
4184  STRIP="$ac_cv_prog_STRIP"
4185fi
4186
4187fi
4188INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4189
4190
4191  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4192printf %s "checking for a race-free mkdir -p... " >&6; }
4193if test -z "$MKDIR_P"; then
4194  if test ${ac_cv_path_mkdir+y}
4195then :
4196  printf %s "(cached) " >&6
4197else case e in #(
4198  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4200do
4201  IFS=$as_save_IFS
4202  case $as_dir in #(((
4203    '') as_dir=./ ;;
4204    */) ;;
4205    *) as_dir=$as_dir/ ;;
4206  esac
4207    for ac_prog in mkdir gmkdir; do
4208	 for ac_exec_ext in '' $ac_executable_extensions; do
4209	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4210	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4211	     'mkdir ('*'coreutils) '* | \
4212	     *'BusyBox '* | \
4213	     'mkdir (fileutils) '4.1*)
4214	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4215	       break 3;;
4216	   esac
4217	 done
4218       done
4219  done
4220IFS=$as_save_IFS
4221 ;;
4222esac
4223fi
4224
4225  test -d ./--version && rmdir ./--version
4226  if test ${ac_cv_path_mkdir+y}; then
4227    MKDIR_P="$ac_cv_path_mkdir -p"
4228  else
4229    # As a last resort, use plain mkdir -p,
4230    # in the hope it doesn't have the bugs of ancient mkdir.
4231    MKDIR_P='mkdir -p'
4232  fi
4233fi
4234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4235printf "%s\n" "$MKDIR_P" >&6; }
4236
4237for ac_prog in gawk mawk nawk awk
4238do
4239  # Extract the first word of "$ac_prog", so it can be a program name with args.
4240set dummy $ac_prog; ac_word=$2
4241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4242printf %s "checking for $ac_word... " >&6; }
4243if test ${ac_cv_prog_AWK+y}
4244then :
4245  printf %s "(cached) " >&6
4246else case e in #(
4247  e) if test -n "$AWK"; then
4248  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4249else
4250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251for as_dir in $PATH
4252do
4253  IFS=$as_save_IFS
4254  case $as_dir in #(((
4255    '') as_dir=./ ;;
4256    */) ;;
4257    *) as_dir=$as_dir/ ;;
4258  esac
4259    for ac_exec_ext in '' $ac_executable_extensions; do
4260  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4261    ac_cv_prog_AWK="$ac_prog"
4262    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4263    break 2
4264  fi
4265done
4266  done
4267IFS=$as_save_IFS
4268
4269fi ;;
4270esac
4271fi
4272AWK=$ac_cv_prog_AWK
4273if test -n "$AWK"; then
4274  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4275printf "%s\n" "$AWK" >&6; }
4276else
4277  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4278printf "%s\n" "no" >&6; }
4279fi
4280
4281
4282  test -n "$AWK" && break
4283done
4284
4285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4286printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4287set x ${MAKE-make}
4288ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4289if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4290then :
4291  printf %s "(cached) " >&6
4292else case e in #(
4293  e) cat >conftest.make <<\_ACEOF
4294SHELL = /bin/sh
4295all:
4296	@echo '@@@%%%=$(MAKE)=@@@%%%'
4297_ACEOF
4298# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4299case `${MAKE-make} -f conftest.make 2>/dev/null` in
4300  *@@@%%%=?*=@@@%%%*)
4301    eval ac_cv_prog_make_${ac_make}_set=yes;;
4302  *)
4303    eval ac_cv_prog_make_${ac_make}_set=no;;
4304esac
4305rm -f conftest.make ;;
4306esac
4307fi
4308if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4309  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4310printf "%s\n" "yes" >&6; }
4311  SET_MAKE=
4312else
4313  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314printf "%s\n" "no" >&6; }
4315  SET_MAKE="MAKE=${MAKE-make}"
4316fi
4317
4318rm -rf .tst 2>/dev/null
4319mkdir .tst 2>/dev/null
4320if test -d .tst; then
4321  am__leading_dot=.
4322else
4323  am__leading_dot=_
4324fi
4325rmdir .tst 2>/dev/null
4326
4327DEPDIR="${am__leading_dot}deps"
4328
4329ac_config_commands="$ac_config_commands depfiles"
4330
4331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4332printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4333cat > confinc.mk << 'END'
4334am__doit:
4335	@echo this is the am__doit target >confinc.out
4336.PHONY: am__doit
4337END
4338am__include="#"
4339am__quote=
4340# BSD make does it like this.
4341echo '.include "confinc.mk" # ignored' > confmf.BSD
4342# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4343echo 'include confinc.mk # ignored' > confmf.GNU
4344_am_result=no
4345for s in GNU BSD; do
4346  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4347   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4348   ac_status=$?
4349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350   (exit $ac_status); }
4351  case $?:`cat confinc.out 2>/dev/null` in #(
4352  '0:this is the am__doit target') :
4353    case $s in #(
4354  BSD) :
4355    am__include='.include' am__quote='"' ;; #(
4356  *) :
4357    am__include='include' am__quote='' ;;
4358esac ;; #(
4359  *) :
4360     ;;
4361esac
4362  if test "$am__include" != "#"; then
4363    _am_result="yes ($s style)"
4364    break
4365  fi
4366done
4367rm -f confinc.* confmf.*
4368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4369printf "%s\n" "${_am_result}" >&6; }
4370
4371# Check whether --enable-dependency-tracking was given.
4372if test ${enable_dependency_tracking+y}
4373then :
4374  enableval=$enable_dependency_tracking;
4375fi
4376
4377if test "x$enable_dependency_tracking" != xno; then
4378  am_depcomp="$ac_aux_dir/depcomp"
4379  AMDEPBACKSLASH='\'
4380  am__nodep='_no'
4381fi
4382 if test "x$enable_dependency_tracking" != xno; then
4383  AMDEP_TRUE=
4384  AMDEP_FALSE='#'
4385else
4386  AMDEP_TRUE='#'
4387  AMDEP_FALSE=
4388fi
4389
4390
4391# Check whether --enable-silent-rules was given.
4392if test ${enable_silent_rules+y}
4393then :
4394  enableval=$enable_silent_rules;
4395fi
4396
4397case $enable_silent_rules in # (((
4398  yes) AM_DEFAULT_VERBOSITY=0;;
4399   no) AM_DEFAULT_VERBOSITY=1;;
4400    *) AM_DEFAULT_VERBOSITY=1;;
4401esac
4402am_make=${MAKE-make}
4403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4404printf %s "checking whether $am_make supports nested variables... " >&6; }
4405if test ${am_cv_make_support_nested_variables+y}
4406then :
4407  printf %s "(cached) " >&6
4408else case e in #(
4409  e) if printf "%s\n" 'TRUE=$(BAR$(V))
4410BAR0=false
4411BAR1=true
4412V=1
4413am__doit:
4414	@$(TRUE)
4415.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4416  am_cv_make_support_nested_variables=yes
4417else
4418  am_cv_make_support_nested_variables=no
4419fi ;;
4420esac
4421fi
4422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4423printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4424if test $am_cv_make_support_nested_variables = yes; then
4425    AM_V='$(V)'
4426  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4427else
4428  AM_V=$AM_DEFAULT_VERBOSITY
4429  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4430fi
4431AM_BACKSLASH='\'
4432
4433if test "`cd $srcdir && pwd`" != "`pwd`"; then
4434  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4435  # is not polluted with repeated "-I."
4436  am__isrc=' -I$(srcdir)'
4437  # test to see if srcdir already configured
4438  if test -f $srcdir/config.status; then
4439    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4440  fi
4441fi
4442
4443# test whether we have cygpath
4444if test -z "$CYGPATH_W"; then
4445  if (cygpath --version) >/dev/null 2>/dev/null; then
4446    CYGPATH_W='cygpath -w'
4447  else
4448    CYGPATH_W=echo
4449  fi
4450fi
4451
4452
4453# Define the identity of the package.
4454 PACKAGE='mkfontscale'
4455 VERSION='1.2.3'
4456
4457
4458printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4459
4460
4461printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4462
4463# Some tools Automake needs.
4464
4465ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4466
4467
4468AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4469
4470
4471AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4472
4473
4474AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4475
4476
4477MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4478
4479# For better backward compatibility.  To be removed once Automake 1.9.x
4480# dies out for good.  For more background, see:
4481# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4482# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4483mkdir_p='$(MKDIR_P)'
4484
4485# We need awk for the "check" target (and possibly the TAP driver).  The
4486# system "awk" is bad on some platforms.
4487# Always define AMTAR for backward compatibility.  Yes, it's still used
4488# in the wild :-(  We should find a proper way to deprecate it ...
4489AMTAR='$${TAR-tar}'
4490
4491
4492# We'll loop over all known methods to create a tar archive until one works.
4493_am_tools='gnutar  pax cpio none'
4494
4495am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4496
4497
4498
4499
4500
4501depcc="$CC"   am_compiler_list=
4502
4503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4504printf %s "checking dependency style of $depcc... " >&6; }
4505if test ${am_cv_CC_dependencies_compiler_type+y}
4506then :
4507  printf %s "(cached) " >&6
4508else case e in #(
4509  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4510  # We make a subdir and do the tests there.  Otherwise we can end up
4511  # making bogus files that we don't know about and never remove.  For
4512  # instance it was reported that on HP-UX the gcc test will end up
4513  # making a dummy file named 'D' -- because '-MD' means "put the output
4514  # in D".
4515  rm -rf conftest.dir
4516  mkdir conftest.dir
4517  # Copy depcomp to subdir because otherwise we won't find it if we're
4518  # using a relative directory.
4519  cp "$am_depcomp" conftest.dir
4520  cd conftest.dir
4521  # We will build objects and dependencies in a subdirectory because
4522  # it helps to detect inapplicable dependency modes.  For instance
4523  # both Tru64's cc and ICC support -MD to output dependencies as a
4524  # side effect of compilation, but ICC will put the dependencies in
4525  # the current directory while Tru64 will put them in the object
4526  # directory.
4527  mkdir sub
4528
4529  am_cv_CC_dependencies_compiler_type=none
4530  if test "$am_compiler_list" = ""; then
4531     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4532  fi
4533  am__universal=false
4534  case " $depcc " in #(
4535     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4536     esac
4537
4538  for depmode in $am_compiler_list; do
4539    # Setup a source with many dependencies, because some compilers
4540    # like to wrap large dependency lists on column 80 (with \), and
4541    # we should not choose a depcomp mode which is confused by this.
4542    #
4543    # We need to recreate these files for each test, as the compiler may
4544    # overwrite some of them when testing with obscure command lines.
4545    # This happens at least with the AIX C compiler.
4546    : > sub/conftest.c
4547    for i in 1 2 3 4 5 6; do
4548      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4549      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4550      # Solaris 10 /bin/sh.
4551      echo '/* dummy */' > sub/conftst$i.h
4552    done
4553    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4554
4555    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4556    # mode.  It turns out that the SunPro C++ compiler does not properly
4557    # handle '-M -o', and we need to detect this.  Also, some Intel
4558    # versions had trouble with output in subdirs.
4559    am__obj=sub/conftest.${OBJEXT-o}
4560    am__minus_obj="-o $am__obj"
4561    case $depmode in
4562    gcc)
4563      # This depmode causes a compiler race in universal mode.
4564      test "$am__universal" = false || continue
4565      ;;
4566    nosideeffect)
4567      # After this tag, mechanisms are not by side-effect, so they'll
4568      # only be used when explicitly requested.
4569      if test "x$enable_dependency_tracking" = xyes; then
4570	continue
4571      else
4572	break
4573      fi
4574      ;;
4575    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4576      # This compiler won't grok '-c -o', but also, the minuso test has
4577      # not run yet.  These depmodes are late enough in the game, and
4578      # so weak that their functioning should not be impacted.
4579      am__obj=conftest.${OBJEXT-o}
4580      am__minus_obj=
4581      ;;
4582    none) break ;;
4583    esac
4584    if depmode=$depmode \
4585       source=sub/conftest.c object=$am__obj \
4586       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4587       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4588         >/dev/null 2>conftest.err &&
4589       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4590       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4591       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4592       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4593      # icc doesn't choke on unknown options, it will just issue warnings
4594      # or remarks (even with -Werror).  So we grep stderr for any message
4595      # that says an option was ignored or not supported.
4596      # When given -MP, icc 7.0 and 7.1 complain thusly:
4597      #   icc: Command line warning: ignoring option '-M'; no argument required
4598      # The diagnosis changed in icc 8.0:
4599      #   icc: Command line remark: option '-MP' not supported
4600      if (grep 'ignoring option' conftest.err ||
4601          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4602        am_cv_CC_dependencies_compiler_type=$depmode
4603        break
4604      fi
4605    fi
4606  done
4607
4608  cd ..
4609  rm -rf conftest.dir
4610else
4611  am_cv_CC_dependencies_compiler_type=none
4612fi
4613 ;;
4614esac
4615fi
4616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4617printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4618CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4619
4620 if
4621  test "x$enable_dependency_tracking" != xno \
4622  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4623  am__fastdepCC_TRUE=
4624  am__fastdepCC_FALSE='#'
4625else
4626  am__fastdepCC_TRUE='#'
4627  am__fastdepCC_FALSE=
4628fi
4629
4630
4631# Variables for tags utilities; see am/tags.am
4632if test -z "$CTAGS"; then
4633  CTAGS=ctags
4634fi
4635
4636if test -z "$ETAGS"; then
4637  ETAGS=etags
4638fi
4639
4640if test -z "$CSCOPE"; then
4641  CSCOPE=cscope
4642fi
4643
4644
4645
4646# POSIX will say in a future version that running "rm -f" with no argument
4647# is OK; and we want to be able to make that assumption in our Makefile
4648# recipes.  So use an aggressive probe to check that the usage we want is
4649# actually supported "in the wild" to an acceptable degree.
4650# See automake bug#10828.
4651# To make any issue more visible, cause the running configure to be aborted
4652# by default if the 'rm' program in use doesn't match our expectations; the
4653# user can still override this though.
4654if rm -f && rm -fr && rm -rf; then : OK; else
4655  cat >&2 <<'END'
4656Oops!
4657
4658Your 'rm' program seems unable to run without file operands specified
4659on the command line, even when the '-f' option is present.  This is contrary
4660to the behaviour of most rm programs out there, and not conforming with
4661the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4662
4663Please tell bug-automake@gnu.org about your system, including the value
4664of your $PATH and any error possibly output before this message.  This
4665can help us improve future automake versions.
4666
4667END
4668  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4669    echo 'Configuration will proceed anyway, since you have set the' >&2
4670    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4671    echo >&2
4672  else
4673    cat >&2 <<'END'
4674Aborting the configuration process, to ensure you take notice of the issue.
4675
4676You can download and install GNU coreutils to get an 'rm' implementation
4677that behaves properly: <https://www.gnu.org/software/coreutils/>.
4678
4679If you want to complete the configuration process using your problematic
4680'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4681to "yes", and re-run configure.
4682
4683END
4684    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4685  fi
4686fi
4687
4688
4689# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4702printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4703if test ${ac_cv_c_undeclared_builtin_options+y}
4704then :
4705  printf %s "(cached) " >&6
4706else case e in #(
4707  e) ac_save_CFLAGS=$CFLAGS
4708   ac_cv_c_undeclared_builtin_options='cannot detect'
4709   for ac_arg in '' -fno-builtin; do
4710     CFLAGS="$ac_save_CFLAGS $ac_arg"
4711     # This test program should *not* compile successfully.
4712     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713/* end confdefs.h.  */
4714
4715int
4716main (void)
4717{
4718(void) strchr;
4719  ;
4720  return 0;
4721}
4722_ACEOF
4723if ac_fn_c_try_compile "$LINENO"
4724then :
4725
4726else case e in #(
4727  e) # This test program should compile successfully.
4728        # No library function is consistently available on
4729        # freestanding implementations, so test against a dummy
4730        # declaration.  Include always-available headers on the
4731        # off chance that they somehow elicit warnings.
4732        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733/* end confdefs.h.  */
4734#include <float.h>
4735#include <limits.h>
4736#include <stdarg.h>
4737#include <stddef.h>
4738extern void ac_decl (int, char *);
4739
4740int
4741main (void)
4742{
4743(void) ac_decl (0, (char *) 0);
4744  (void) ac_decl;
4745
4746  ;
4747  return 0;
4748}
4749_ACEOF
4750if ac_fn_c_try_compile "$LINENO"
4751then :
4752  if test x"$ac_arg" = x
4753then :
4754  ac_cv_c_undeclared_builtin_options='none needed'
4755else case e in #(
4756  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4757esac
4758fi
4759          break
4760fi
4761rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4762esac
4763fi
4764rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4765    done
4766    CFLAGS=$ac_save_CFLAGS
4767   ;;
4768esac
4769fi
4770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4771printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4772  case $ac_cv_c_undeclared_builtin_options in #(
4773  'cannot detect') :
4774    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4775printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4776as_fn_error $? "cannot make $CC report undeclared builtins
4777See 'config.log' for more details" "$LINENO" 5; } ;; #(
4778  'none needed') :
4779    ac_c_undeclared_builtin_options='' ;; #(
4780  *) :
4781    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4782esac
4783
4784
4785
4786
4787
4788ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4789if test "x$ac_cv_have_decl___clang__" = xyes
4790then :
4791  CLANGCC="yes"
4792else case e in #(
4793  e) CLANGCC="no" ;;
4794esac
4795fi
4796ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4797if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4798then :
4799  INTELCC="yes"
4800else case e in #(
4801  e) INTELCC="no" ;;
4802esac
4803fi
4804ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4805if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4806then :
4807  SUNCC="yes"
4808else case e in #(
4809  e) SUNCC="no" ;;
4810esac
4811fi
4812
4813
4814
4815
4816
4817
4818
4819
4820if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4821	if test -n "$ac_tool_prefix"; then
4822  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4823set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4825printf %s "checking for $ac_word... " >&6; }
4826if test ${ac_cv_path_PKG_CONFIG+y}
4827then :
4828  printf %s "(cached) " >&6
4829else case e in #(
4830  e) case $PKG_CONFIG in
4831  [\\/]* | ?:[\\/]*)
4832  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4833  ;;
4834  *)
4835  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836for as_dir in $PATH
4837do
4838  IFS=$as_save_IFS
4839  case $as_dir in #(((
4840    '') as_dir=./ ;;
4841    */) ;;
4842    *) as_dir=$as_dir/ ;;
4843  esac
4844    for ac_exec_ext in '' $ac_executable_extensions; do
4845  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4846    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4847    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4848    break 2
4849  fi
4850done
4851  done
4852IFS=$as_save_IFS
4853
4854  ;;
4855esac ;;
4856esac
4857fi
4858PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4859if test -n "$PKG_CONFIG"; then
4860  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4861printf "%s\n" "$PKG_CONFIG" >&6; }
4862else
4863  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4864printf "%s\n" "no" >&6; }
4865fi
4866
4867
4868fi
4869if test -z "$ac_cv_path_PKG_CONFIG"; then
4870  ac_pt_PKG_CONFIG=$PKG_CONFIG
4871  # Extract the first word of "pkg-config", so it can be a program name with args.
4872set dummy pkg-config; ac_word=$2
4873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4874printf %s "checking for $ac_word... " >&6; }
4875if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4876then :
4877  printf %s "(cached) " >&6
4878else case e in #(
4879  e) case $ac_pt_PKG_CONFIG in
4880  [\\/]* | ?:[\\/]*)
4881  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4882  ;;
4883  *)
4884  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885for as_dir in $PATH
4886do
4887  IFS=$as_save_IFS
4888  case $as_dir in #(((
4889    '') as_dir=./ ;;
4890    */) ;;
4891    *) as_dir=$as_dir/ ;;
4892  esac
4893    for ac_exec_ext in '' $ac_executable_extensions; do
4894  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4895    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4896    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4897    break 2
4898  fi
4899done
4900  done
4901IFS=$as_save_IFS
4902
4903  ;;
4904esac ;;
4905esac
4906fi
4907ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4908if test -n "$ac_pt_PKG_CONFIG"; then
4909  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4910printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4911else
4912  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4913printf "%s\n" "no" >&6; }
4914fi
4915
4916  if test "x$ac_pt_PKG_CONFIG" = x; then
4917    PKG_CONFIG=""
4918  else
4919    case $cross_compiling:$ac_tool_warned in
4920yes:)
4921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4922printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4923ac_tool_warned=yes ;;
4924esac
4925    PKG_CONFIG=$ac_pt_PKG_CONFIG
4926  fi
4927else
4928  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4929fi
4930
4931fi
4932if test -n "$PKG_CONFIG"; then
4933	_pkg_min_version=0.9.0
4934	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4935printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4936	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4937		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4938printf "%s\n" "yes" >&6; }
4939	else
4940		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4941printf "%s\n" "no" >&6; }
4942		PKG_CONFIG=""
4943	fi
4944fi
4945
4946
4947  # Make sure we can run config.sub.
4948$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4949  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4950
4951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4952printf %s "checking build system type... " >&6; }
4953if test ${ac_cv_build+y}
4954then :
4955  printf %s "(cached) " >&6
4956else case e in #(
4957  e) ac_build_alias=$build_alias
4958test "x$ac_build_alias" = x &&
4959  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4960test "x$ac_build_alias" = x &&
4961  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4962ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4963  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4964 ;;
4965esac
4966fi
4967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4968printf "%s\n" "$ac_cv_build" >&6; }
4969case $ac_cv_build in
4970*-*-*) ;;
4971*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4972esac
4973build=$ac_cv_build
4974ac_save_IFS=$IFS; IFS='-'
4975set x $ac_cv_build
4976shift
4977build_cpu=$1
4978build_vendor=$2
4979shift; shift
4980# Remember, the first character of IFS is used to create $*,
4981# except with old shells:
4982build_os=$*
4983IFS=$ac_save_IFS
4984case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4985
4986
4987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4988printf %s "checking host system type... " >&6; }
4989if test ${ac_cv_host+y}
4990then :
4991  printf %s "(cached) " >&6
4992else case e in #(
4993  e) if test "x$host_alias" = x; then
4994  ac_cv_host=$ac_cv_build
4995else
4996  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4997    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4998fi
4999 ;;
5000esac
5001fi
5002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5003printf "%s\n" "$ac_cv_host" >&6; }
5004case $ac_cv_host in
5005*-*-*) ;;
5006*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5007esac
5008host=$ac_cv_host
5009ac_save_IFS=$IFS; IFS='-'
5010set x $ac_cv_host
5011shift
5012host_cpu=$1
5013host_vendor=$2
5014shift; shift
5015# Remember, the first character of IFS is used to create $*,
5016# except with old shells:
5017host_os=$*
5018IFS=$ac_save_IFS
5019case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5020
5021
5022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5023printf %s "checking for a sed that does not truncate output... " >&6; }
5024if test ${ac_cv_path_SED+y}
5025then :
5026  printf %s "(cached) " >&6
5027else case e in #(
5028  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5029     for ac_i in 1 2 3 4 5 6 7; do
5030       ac_script="$ac_script$as_nl$ac_script"
5031     done
5032     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5033     { ac_script=; unset ac_script;}
5034     if test -z "$SED"; then
5035  ac_path_SED_found=false
5036  # Loop through the user's path and test for each of PROGNAME-LIST
5037  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038for as_dir in $PATH
5039do
5040  IFS=$as_save_IFS
5041  case $as_dir in #(((
5042    '') as_dir=./ ;;
5043    */) ;;
5044    *) as_dir=$as_dir/ ;;
5045  esac
5046    for ac_prog in sed gsed
5047   do
5048    for ac_exec_ext in '' $ac_executable_extensions; do
5049      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5050      as_fn_executable_p "$ac_path_SED" || continue
5051# Check for GNU ac_path_SED and select it if it is found.
5052  # Check for GNU $ac_path_SED
5053case `"$ac_path_SED" --version 2>&1` in #(
5054*GNU*)
5055  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5056#(
5057*)
5058  ac_count=0
5059  printf %s 0123456789 >"conftest.in"
5060  while :
5061  do
5062    cat "conftest.in" "conftest.in" >"conftest.tmp"
5063    mv "conftest.tmp" "conftest.in"
5064    cp "conftest.in" "conftest.nl"
5065    printf "%s\n" '' >> "conftest.nl"
5066    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5067    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5068    as_fn_arith $ac_count + 1 && ac_count=$as_val
5069    if test $ac_count -gt ${ac_path_SED_max-0}; then
5070      # Best one so far, save it but keep looking for a better one
5071      ac_cv_path_SED="$ac_path_SED"
5072      ac_path_SED_max=$ac_count
5073    fi
5074    # 10*(2^10) chars as input seems more than enough
5075    test $ac_count -gt 10 && break
5076  done
5077  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5078esac
5079
5080      $ac_path_SED_found && break 3
5081    done
5082  done
5083  done
5084IFS=$as_save_IFS
5085  if test -z "$ac_cv_path_SED"; then
5086    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5087  fi
5088else
5089  ac_cv_path_SED=$SED
5090fi
5091 ;;
5092esac
5093fi
5094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5095printf "%s\n" "$ac_cv_path_SED" >&6; }
5096 SED="$ac_cv_path_SED"
5097  rm -f conftest.sed
5098
5099
5100
5101
5102
5103
5104# Check whether --enable-selective-werror was given.
5105if test ${enable_selective_werror+y}
5106then :
5107  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5108else case e in #(
5109  e) SELECTIVE_WERROR=yes ;;
5110esac
5111fi
5112
5113
5114
5115
5116
5117# -v is too short to test reliably with XORG_TESTSET_CFLAG
5118if test "x$SUNCC" = "xyes"; then
5119    BASE_CFLAGS="-v"
5120else
5121    BASE_CFLAGS=""
5122fi
5123
5124# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138xorg_testset_save_CFLAGS="$CFLAGS"
5139
5140if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5141	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5142	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5143printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5144if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5145then :
5146  printf %s "(cached) " >&6
5147else case e in #(
5148  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5149/* end confdefs.h.  */
5150int i;
5151_ACEOF
5152if ac_fn_c_try_compile "$LINENO"
5153then :
5154  xorg_cv_cc_flag_unknown_warning_option=yes
5155else case e in #(
5156  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5157esac
5158fi
5159rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5160esac
5161fi
5162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5163printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5164	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5165	CFLAGS="$xorg_testset_save_CFLAGS"
5166fi
5167
5168if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5169	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5170		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5171	fi
5172	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5173	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5174printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5175if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5176then :
5177  printf %s "(cached) " >&6
5178else case e in #(
5179  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180/* end confdefs.h.  */
5181int i;
5182_ACEOF
5183if ac_fn_c_try_compile "$LINENO"
5184then :
5185  xorg_cv_cc_flag_unused_command_line_argument=yes
5186else case e in #(
5187  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5188esac
5189fi
5190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5191esac
5192fi
5193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5194printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5195	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5196	CFLAGS="$xorg_testset_save_CFLAGS"
5197fi
5198
5199found="no"
5200
5201	if test $found = "no" ; then
5202		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5203			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5204		fi
5205
5206		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5207			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5208		fi
5209
5210		CFLAGS="$CFLAGS -Wall"
5211
5212		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5213printf %s "checking if $CC supports -Wall... " >&6; }
5214		cacheid=xorg_cv_cc_flag__Wall
5215		if eval test \${$cacheid+y}
5216then :
5217  printf %s "(cached) " >&6
5218else case e in #(
5219  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220/* end confdefs.h.  */
5221int i;
5222int
5223main (void)
5224{
5225
5226  ;
5227  return 0;
5228}
5229_ACEOF
5230if ac_fn_c_try_link "$LINENO"
5231then :
5232  eval $cacheid=yes
5233else case e in #(
5234  e) eval $cacheid=no ;;
5235esac
5236fi
5237rm -f core conftest.err conftest.$ac_objext conftest.beam \
5238    conftest$ac_exeext conftest.$ac_ext ;;
5239esac
5240fi
5241
5242
5243		CFLAGS="$xorg_testset_save_CFLAGS"
5244
5245		eval supported=\$$cacheid
5246		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5247printf "%s\n" "$supported" >&6; }
5248		if test "$supported" = "yes" ; then
5249			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5250			found="yes"
5251		fi
5252	fi
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268xorg_testset_save_CFLAGS="$CFLAGS"
5269
5270if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5271	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5272	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5273printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5274if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5275then :
5276  printf %s "(cached) " >&6
5277else case e in #(
5278  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279/* end confdefs.h.  */
5280int i;
5281_ACEOF
5282if ac_fn_c_try_compile "$LINENO"
5283then :
5284  xorg_cv_cc_flag_unknown_warning_option=yes
5285else case e in #(
5286  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5287esac
5288fi
5289rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5290esac
5291fi
5292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5293printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5294	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5295	CFLAGS="$xorg_testset_save_CFLAGS"
5296fi
5297
5298if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5299	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5300		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5301	fi
5302	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5303	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5304printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5305if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5306then :
5307  printf %s "(cached) " >&6
5308else case e in #(
5309  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310/* end confdefs.h.  */
5311int i;
5312_ACEOF
5313if ac_fn_c_try_compile "$LINENO"
5314then :
5315  xorg_cv_cc_flag_unused_command_line_argument=yes
5316else case e in #(
5317  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5318esac
5319fi
5320rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5321esac
5322fi
5323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5324printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5325	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5326	CFLAGS="$xorg_testset_save_CFLAGS"
5327fi
5328
5329found="no"
5330
5331	if test $found = "no" ; then
5332		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5333			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5334		fi
5335
5336		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5337			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5338		fi
5339
5340		CFLAGS="$CFLAGS -Wpointer-arith"
5341
5342		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5343printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5344		cacheid=xorg_cv_cc_flag__Wpointer_arith
5345		if eval test \${$cacheid+y}
5346then :
5347  printf %s "(cached) " >&6
5348else case e in #(
5349  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350/* end confdefs.h.  */
5351int i;
5352int
5353main (void)
5354{
5355
5356  ;
5357  return 0;
5358}
5359_ACEOF
5360if ac_fn_c_try_link "$LINENO"
5361then :
5362  eval $cacheid=yes
5363else case e in #(
5364  e) eval $cacheid=no ;;
5365esac
5366fi
5367rm -f core conftest.err conftest.$ac_objext conftest.beam \
5368    conftest$ac_exeext conftest.$ac_ext ;;
5369esac
5370fi
5371
5372
5373		CFLAGS="$xorg_testset_save_CFLAGS"
5374
5375		eval supported=\$$cacheid
5376		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5377printf "%s\n" "$supported" >&6; }
5378		if test "$supported" = "yes" ; then
5379			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5380			found="yes"
5381		fi
5382	fi
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398xorg_testset_save_CFLAGS="$CFLAGS"
5399
5400if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5401	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5402	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5403printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5404if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5405then :
5406  printf %s "(cached) " >&6
5407else case e in #(
5408  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409/* end confdefs.h.  */
5410int i;
5411_ACEOF
5412if ac_fn_c_try_compile "$LINENO"
5413then :
5414  xorg_cv_cc_flag_unknown_warning_option=yes
5415else case e in #(
5416  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5417esac
5418fi
5419rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5420esac
5421fi
5422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5423printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5424	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5425	CFLAGS="$xorg_testset_save_CFLAGS"
5426fi
5427
5428if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5429	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5430		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5431	fi
5432	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5433	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5434printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5435if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5436then :
5437  printf %s "(cached) " >&6
5438else case e in #(
5439  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440/* end confdefs.h.  */
5441int i;
5442_ACEOF
5443if ac_fn_c_try_compile "$LINENO"
5444then :
5445  xorg_cv_cc_flag_unused_command_line_argument=yes
5446else case e in #(
5447  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5448esac
5449fi
5450rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5451esac
5452fi
5453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5454printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5455	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5456	CFLAGS="$xorg_testset_save_CFLAGS"
5457fi
5458
5459found="no"
5460
5461	if test $found = "no" ; then
5462		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5463			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5464		fi
5465
5466		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5467			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5468		fi
5469
5470		CFLAGS="$CFLAGS -Wmissing-declarations"
5471
5472		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5473printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5474		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5475		if eval test \${$cacheid+y}
5476then :
5477  printf %s "(cached) " >&6
5478else case e in #(
5479  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480/* end confdefs.h.  */
5481int i;
5482int
5483main (void)
5484{
5485
5486  ;
5487  return 0;
5488}
5489_ACEOF
5490if ac_fn_c_try_link "$LINENO"
5491then :
5492  eval $cacheid=yes
5493else case e in #(
5494  e) eval $cacheid=no ;;
5495esac
5496fi
5497rm -f core conftest.err conftest.$ac_objext conftest.beam \
5498    conftest$ac_exeext conftest.$ac_ext ;;
5499esac
5500fi
5501
5502
5503		CFLAGS="$xorg_testset_save_CFLAGS"
5504
5505		eval supported=\$$cacheid
5506		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5507printf "%s\n" "$supported" >&6; }
5508		if test "$supported" = "yes" ; then
5509			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5510			found="yes"
5511		fi
5512	fi
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528xorg_testset_save_CFLAGS="$CFLAGS"
5529
5530if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5531	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5532	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5533printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5534if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5535then :
5536  printf %s "(cached) " >&6
5537else case e in #(
5538  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539/* end confdefs.h.  */
5540int i;
5541_ACEOF
5542if ac_fn_c_try_compile "$LINENO"
5543then :
5544  xorg_cv_cc_flag_unknown_warning_option=yes
5545else case e in #(
5546  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5547esac
5548fi
5549rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5550esac
5551fi
5552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5553printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5554	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5555	CFLAGS="$xorg_testset_save_CFLAGS"
5556fi
5557
5558if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5559	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5560		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5561	fi
5562	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5563	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5564printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5565if test ${xorg_cv_cc_flag_unused_command_line_argument+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;
5572_ACEOF
5573if ac_fn_c_try_compile "$LINENO"
5574then :
5575  xorg_cv_cc_flag_unused_command_line_argument=yes
5576else case e in #(
5577  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5578esac
5579fi
5580rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5581esac
5582fi
5583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5584printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5585	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5586	CFLAGS="$xorg_testset_save_CFLAGS"
5587fi
5588
5589found="no"
5590
5591	if test $found = "no" ; then
5592		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5593			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5594		fi
5595
5596		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5597			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5598		fi
5599
5600		CFLAGS="$CFLAGS -Wformat=2"
5601
5602		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5603printf %s "checking if $CC supports -Wformat=2... " >&6; }
5604		cacheid=xorg_cv_cc_flag__Wformat_2
5605		if eval test \${$cacheid+y}
5606then :
5607  printf %s "(cached) " >&6
5608else case e in #(
5609  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610/* end confdefs.h.  */
5611int i;
5612int
5613main (void)
5614{
5615
5616  ;
5617  return 0;
5618}
5619_ACEOF
5620if ac_fn_c_try_link "$LINENO"
5621then :
5622  eval $cacheid=yes
5623else case e in #(
5624  e) eval $cacheid=no ;;
5625esac
5626fi
5627rm -f core conftest.err conftest.$ac_objext conftest.beam \
5628    conftest$ac_exeext conftest.$ac_ext ;;
5629esac
5630fi
5631
5632
5633		CFLAGS="$xorg_testset_save_CFLAGS"
5634
5635		eval supported=\$$cacheid
5636		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5637printf "%s\n" "$supported" >&6; }
5638		if test "$supported" = "yes" ; then
5639			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5640			found="yes"
5641		fi
5642	fi
5643
5644	if test $found = "no" ; then
5645		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5646			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5647		fi
5648
5649		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5650			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5651		fi
5652
5653		CFLAGS="$CFLAGS -Wformat"
5654
5655		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5656printf %s "checking if $CC supports -Wformat... " >&6; }
5657		cacheid=xorg_cv_cc_flag__Wformat
5658		if eval test \${$cacheid+y}
5659then :
5660  printf %s "(cached) " >&6
5661else case e in #(
5662  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663/* end confdefs.h.  */
5664int i;
5665int
5666main (void)
5667{
5668
5669  ;
5670  return 0;
5671}
5672_ACEOF
5673if ac_fn_c_try_link "$LINENO"
5674then :
5675  eval $cacheid=yes
5676else case e in #(
5677  e) eval $cacheid=no ;;
5678esac
5679fi
5680rm -f core conftest.err conftest.$ac_objext conftest.beam \
5681    conftest$ac_exeext conftest.$ac_ext ;;
5682esac
5683fi
5684
5685
5686		CFLAGS="$xorg_testset_save_CFLAGS"
5687
5688		eval supported=\$$cacheid
5689		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5690printf "%s\n" "$supported" >&6; }
5691		if test "$supported" = "yes" ; then
5692			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5693			found="yes"
5694		fi
5695	fi
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713xorg_testset_save_CFLAGS="$CFLAGS"
5714
5715if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5716	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5717	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5718printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5719if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5720then :
5721  printf %s "(cached) " >&6
5722else case e in #(
5723  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724/* end confdefs.h.  */
5725int i;
5726_ACEOF
5727if ac_fn_c_try_compile "$LINENO"
5728then :
5729  xorg_cv_cc_flag_unknown_warning_option=yes
5730else case e in #(
5731  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5732esac
5733fi
5734rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5735esac
5736fi
5737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5738printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5739	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5740	CFLAGS="$xorg_testset_save_CFLAGS"
5741fi
5742
5743if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5744	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5745		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5746	fi
5747	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5748	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5749printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5750if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5751then :
5752  printf %s "(cached) " >&6
5753else case e in #(
5754  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5755/* end confdefs.h.  */
5756int i;
5757_ACEOF
5758if ac_fn_c_try_compile "$LINENO"
5759then :
5760  xorg_cv_cc_flag_unused_command_line_argument=yes
5761else case e in #(
5762  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5763esac
5764fi
5765rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5766esac
5767fi
5768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5769printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5770	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5771	CFLAGS="$xorg_testset_save_CFLAGS"
5772fi
5773
5774found="no"
5775
5776	if test $found = "no" ; then
5777		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5778			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5779		fi
5780
5781		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5782			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5783		fi
5784
5785		CFLAGS="$CFLAGS -Wstrict-prototypes"
5786
5787		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5788printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5789		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5790		if eval test \${$cacheid+y}
5791then :
5792  printf %s "(cached) " >&6
5793else case e in #(
5794  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795/* end confdefs.h.  */
5796int i;
5797int
5798main (void)
5799{
5800
5801  ;
5802  return 0;
5803}
5804_ACEOF
5805if ac_fn_c_try_link "$LINENO"
5806then :
5807  eval $cacheid=yes
5808else case e in #(
5809  e) eval $cacheid=no ;;
5810esac
5811fi
5812rm -f core conftest.err conftest.$ac_objext conftest.beam \
5813    conftest$ac_exeext conftest.$ac_ext ;;
5814esac
5815fi
5816
5817
5818		CFLAGS="$xorg_testset_save_CFLAGS"
5819
5820		eval supported=\$$cacheid
5821		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5822printf "%s\n" "$supported" >&6; }
5823		if test "$supported" = "yes" ; then
5824			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5825			found="yes"
5826		fi
5827	fi
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843xorg_testset_save_CFLAGS="$CFLAGS"
5844
5845if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5846	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5847	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5848printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5849if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5850then :
5851  printf %s "(cached) " >&6
5852else case e in #(
5853  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854/* end confdefs.h.  */
5855int i;
5856_ACEOF
5857if ac_fn_c_try_compile "$LINENO"
5858then :
5859  xorg_cv_cc_flag_unknown_warning_option=yes
5860else case e in #(
5861  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5862esac
5863fi
5864rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5865esac
5866fi
5867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5868printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5869	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5870	CFLAGS="$xorg_testset_save_CFLAGS"
5871fi
5872
5873if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5874	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5875		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5876	fi
5877	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5878	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5879printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5880if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5881then :
5882  printf %s "(cached) " >&6
5883else case e in #(
5884  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885/* end confdefs.h.  */
5886int i;
5887_ACEOF
5888if ac_fn_c_try_compile "$LINENO"
5889then :
5890  xorg_cv_cc_flag_unused_command_line_argument=yes
5891else case e in #(
5892  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5893esac
5894fi
5895rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5896esac
5897fi
5898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5899printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5900	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5901	CFLAGS="$xorg_testset_save_CFLAGS"
5902fi
5903
5904found="no"
5905
5906	if test $found = "no" ; then
5907		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5908			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5909		fi
5910
5911		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5912			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5913		fi
5914
5915		CFLAGS="$CFLAGS -Wmissing-prototypes"
5916
5917		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5918printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5919		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5920		if eval test \${$cacheid+y}
5921then :
5922  printf %s "(cached) " >&6
5923else case e in #(
5924  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925/* end confdefs.h.  */
5926int i;
5927int
5928main (void)
5929{
5930
5931  ;
5932  return 0;
5933}
5934_ACEOF
5935if ac_fn_c_try_link "$LINENO"
5936then :
5937  eval $cacheid=yes
5938else case e in #(
5939  e) eval $cacheid=no ;;
5940esac
5941fi
5942rm -f core conftest.err conftest.$ac_objext conftest.beam \
5943    conftest$ac_exeext conftest.$ac_ext ;;
5944esac
5945fi
5946
5947
5948		CFLAGS="$xorg_testset_save_CFLAGS"
5949
5950		eval supported=\$$cacheid
5951		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5952printf "%s\n" "$supported" >&6; }
5953		if test "$supported" = "yes" ; then
5954			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5955			found="yes"
5956		fi
5957	fi
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973xorg_testset_save_CFLAGS="$CFLAGS"
5974
5975if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5976	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5977	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5978printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5979if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5980then :
5981  printf %s "(cached) " >&6
5982else case e in #(
5983  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984/* end confdefs.h.  */
5985int i;
5986_ACEOF
5987if ac_fn_c_try_compile "$LINENO"
5988then :
5989  xorg_cv_cc_flag_unknown_warning_option=yes
5990else case e in #(
5991  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5992esac
5993fi
5994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5995esac
5996fi
5997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5998printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5999	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6000	CFLAGS="$xorg_testset_save_CFLAGS"
6001fi
6002
6003if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6004	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6005		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6006	fi
6007	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6008	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6009printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6010if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6011then :
6012  printf %s "(cached) " >&6
6013else case e in #(
6014  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015/* end confdefs.h.  */
6016int i;
6017_ACEOF
6018if ac_fn_c_try_compile "$LINENO"
6019then :
6020  xorg_cv_cc_flag_unused_command_line_argument=yes
6021else case e in #(
6022  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6023esac
6024fi
6025rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6026esac
6027fi
6028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6029printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6030	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6031	CFLAGS="$xorg_testset_save_CFLAGS"
6032fi
6033
6034found="no"
6035
6036	if test $found = "no" ; then
6037		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6038			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6039		fi
6040
6041		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6042			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6043		fi
6044
6045		CFLAGS="$CFLAGS -Wnested-externs"
6046
6047		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6048printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6049		cacheid=xorg_cv_cc_flag__Wnested_externs
6050		if eval test \${$cacheid+y}
6051then :
6052  printf %s "(cached) " >&6
6053else case e in #(
6054  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055/* end confdefs.h.  */
6056int i;
6057int
6058main (void)
6059{
6060
6061  ;
6062  return 0;
6063}
6064_ACEOF
6065if ac_fn_c_try_link "$LINENO"
6066then :
6067  eval $cacheid=yes
6068else case e in #(
6069  e) eval $cacheid=no ;;
6070esac
6071fi
6072rm -f core conftest.err conftest.$ac_objext conftest.beam \
6073    conftest$ac_exeext conftest.$ac_ext ;;
6074esac
6075fi
6076
6077
6078		CFLAGS="$xorg_testset_save_CFLAGS"
6079
6080		eval supported=\$$cacheid
6081		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6082printf "%s\n" "$supported" >&6; }
6083		if test "$supported" = "yes" ; then
6084			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6085			found="yes"
6086		fi
6087	fi
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103xorg_testset_save_CFLAGS="$CFLAGS"
6104
6105if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6106	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6107	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6108printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6109if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6110then :
6111  printf %s "(cached) " >&6
6112else case e in #(
6113  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114/* end confdefs.h.  */
6115int i;
6116_ACEOF
6117if ac_fn_c_try_compile "$LINENO"
6118then :
6119  xorg_cv_cc_flag_unknown_warning_option=yes
6120else case e in #(
6121  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6122esac
6123fi
6124rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6125esac
6126fi
6127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6128printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6129	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6130	CFLAGS="$xorg_testset_save_CFLAGS"
6131fi
6132
6133if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6134	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6135		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6136	fi
6137	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6138	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6139printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6140if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6141then :
6142  printf %s "(cached) " >&6
6143else case e in #(
6144  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145/* end confdefs.h.  */
6146int i;
6147_ACEOF
6148if ac_fn_c_try_compile "$LINENO"
6149then :
6150  xorg_cv_cc_flag_unused_command_line_argument=yes
6151else case e in #(
6152  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6153esac
6154fi
6155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6156esac
6157fi
6158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6159printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6160	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6161	CFLAGS="$xorg_testset_save_CFLAGS"
6162fi
6163
6164found="no"
6165
6166	if test $found = "no" ; then
6167		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6168			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6169		fi
6170
6171		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6172			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6173		fi
6174
6175		CFLAGS="$CFLAGS -Wbad-function-cast"
6176
6177		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6178printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6179		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6180		if eval test \${$cacheid+y}
6181then :
6182  printf %s "(cached) " >&6
6183else case e in #(
6184  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185/* end confdefs.h.  */
6186int i;
6187int
6188main (void)
6189{
6190
6191  ;
6192  return 0;
6193}
6194_ACEOF
6195if ac_fn_c_try_link "$LINENO"
6196then :
6197  eval $cacheid=yes
6198else case e in #(
6199  e) eval $cacheid=no ;;
6200esac
6201fi
6202rm -f core conftest.err conftest.$ac_objext conftest.beam \
6203    conftest$ac_exeext conftest.$ac_ext ;;
6204esac
6205fi
6206
6207
6208		CFLAGS="$xorg_testset_save_CFLAGS"
6209
6210		eval supported=\$$cacheid
6211		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6212printf "%s\n" "$supported" >&6; }
6213		if test "$supported" = "yes" ; then
6214			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6215			found="yes"
6216		fi
6217	fi
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233xorg_testset_save_CFLAGS="$CFLAGS"
6234
6235if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6236	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6237	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6238printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6239if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6240then :
6241  printf %s "(cached) " >&6
6242else case e in #(
6243  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6244/* end confdefs.h.  */
6245int i;
6246_ACEOF
6247if ac_fn_c_try_compile "$LINENO"
6248then :
6249  xorg_cv_cc_flag_unknown_warning_option=yes
6250else case e in #(
6251  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6252esac
6253fi
6254rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6255esac
6256fi
6257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6258printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6259	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6260	CFLAGS="$xorg_testset_save_CFLAGS"
6261fi
6262
6263if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6264	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6265		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6266	fi
6267	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6268	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6269printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6270if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6271then :
6272  printf %s "(cached) " >&6
6273else case e in #(
6274  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275/* end confdefs.h.  */
6276int i;
6277_ACEOF
6278if ac_fn_c_try_compile "$LINENO"
6279then :
6280  xorg_cv_cc_flag_unused_command_line_argument=yes
6281else case e in #(
6282  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6283esac
6284fi
6285rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6286esac
6287fi
6288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6289printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6290	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6291	CFLAGS="$xorg_testset_save_CFLAGS"
6292fi
6293
6294found="no"
6295
6296	if test $found = "no" ; then
6297		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6298			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6299		fi
6300
6301		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6302			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6303		fi
6304
6305		CFLAGS="$CFLAGS -Wold-style-definition"
6306
6307		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6308printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6309		cacheid=xorg_cv_cc_flag__Wold_style_definition
6310		if eval test \${$cacheid+y}
6311then :
6312  printf %s "(cached) " >&6
6313else case e in #(
6314  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6315/* end confdefs.h.  */
6316int i;
6317int
6318main (void)
6319{
6320
6321  ;
6322  return 0;
6323}
6324_ACEOF
6325if ac_fn_c_try_link "$LINENO"
6326then :
6327  eval $cacheid=yes
6328else case e in #(
6329  e) eval $cacheid=no ;;
6330esac
6331fi
6332rm -f core conftest.err conftest.$ac_objext conftest.beam \
6333    conftest$ac_exeext conftest.$ac_ext ;;
6334esac
6335fi
6336
6337
6338		CFLAGS="$xorg_testset_save_CFLAGS"
6339
6340		eval supported=\$$cacheid
6341		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6342printf "%s\n" "$supported" >&6; }
6343		if test "$supported" = "yes" ; then
6344			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6345			found="yes"
6346		fi
6347	fi
6348
6349	if test $found = "no" ; then
6350		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6351			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6352		fi
6353
6354		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6355			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6356		fi
6357
6358		CFLAGS="$CFLAGS -fd"
6359
6360		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6361printf %s "checking if $CC supports -fd... " >&6; }
6362		cacheid=xorg_cv_cc_flag__fd
6363		if eval test \${$cacheid+y}
6364then :
6365  printf %s "(cached) " >&6
6366else case e in #(
6367  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6368/* end confdefs.h.  */
6369int i;
6370int
6371main (void)
6372{
6373
6374  ;
6375  return 0;
6376}
6377_ACEOF
6378if ac_fn_c_try_link "$LINENO"
6379then :
6380  eval $cacheid=yes
6381else case e in #(
6382  e) eval $cacheid=no ;;
6383esac
6384fi
6385rm -f core conftest.err conftest.$ac_objext conftest.beam \
6386    conftest$ac_exeext conftest.$ac_ext ;;
6387esac
6388fi
6389
6390
6391		CFLAGS="$xorg_testset_save_CFLAGS"
6392
6393		eval supported=\$$cacheid
6394		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6395printf "%s\n" "$supported" >&6; }
6396		if test "$supported" = "yes" ; then
6397			BASE_CFLAGS="$BASE_CFLAGS -fd"
6398			found="yes"
6399		fi
6400	fi
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416xorg_testset_save_CFLAGS="$CFLAGS"
6417
6418if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6419	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6420	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6421printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6422if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6423then :
6424  printf %s "(cached) " >&6
6425else case e in #(
6426  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6427/* end confdefs.h.  */
6428int i;
6429_ACEOF
6430if ac_fn_c_try_compile "$LINENO"
6431then :
6432  xorg_cv_cc_flag_unknown_warning_option=yes
6433else case e in #(
6434  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6435esac
6436fi
6437rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6438esac
6439fi
6440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6441printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6442	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6443	CFLAGS="$xorg_testset_save_CFLAGS"
6444fi
6445
6446if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6447	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6448		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6449	fi
6450	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6451	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6452printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6453if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6454then :
6455  printf %s "(cached) " >&6
6456else case e in #(
6457  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458/* end confdefs.h.  */
6459int i;
6460_ACEOF
6461if ac_fn_c_try_compile "$LINENO"
6462then :
6463  xorg_cv_cc_flag_unused_command_line_argument=yes
6464else case e in #(
6465  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6466esac
6467fi
6468rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6469esac
6470fi
6471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6472printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6473	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6474	CFLAGS="$xorg_testset_save_CFLAGS"
6475fi
6476
6477found="no"
6478
6479	if test $found = "no" ; then
6480		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6481			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6482		fi
6483
6484		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6485			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6486		fi
6487
6488		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6489
6490		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6491printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6492		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6493		if eval test \${$cacheid+y}
6494then :
6495  printf %s "(cached) " >&6
6496else case e in #(
6497  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498/* end confdefs.h.  */
6499int i;
6500int
6501main (void)
6502{
6503
6504  ;
6505  return 0;
6506}
6507_ACEOF
6508if ac_fn_c_try_link "$LINENO"
6509then :
6510  eval $cacheid=yes
6511else case e in #(
6512  e) eval $cacheid=no ;;
6513esac
6514fi
6515rm -f core conftest.err conftest.$ac_objext conftest.beam \
6516    conftest$ac_exeext conftest.$ac_ext ;;
6517esac
6518fi
6519
6520
6521		CFLAGS="$xorg_testset_save_CFLAGS"
6522
6523		eval supported=\$$cacheid
6524		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6525printf "%s\n" "$supported" >&6; }
6526		if test "$supported" = "yes" ; then
6527			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6528			found="yes"
6529		fi
6530	fi
6531
6532
6533
6534
6535
6536# This chunk adds additional warnings that could catch undesired effects.
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550xorg_testset_save_CFLAGS="$CFLAGS"
6551
6552if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6553	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6554	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6555printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6556if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6557then :
6558  printf %s "(cached) " >&6
6559else case e in #(
6560  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561/* end confdefs.h.  */
6562int i;
6563_ACEOF
6564if ac_fn_c_try_compile "$LINENO"
6565then :
6566  xorg_cv_cc_flag_unknown_warning_option=yes
6567else case e in #(
6568  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6569esac
6570fi
6571rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6572esac
6573fi
6574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6575printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6576	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6577	CFLAGS="$xorg_testset_save_CFLAGS"
6578fi
6579
6580if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6581	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6582		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6583	fi
6584	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6585	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6586printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6587if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6588then :
6589  printf %s "(cached) " >&6
6590else case e in #(
6591  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6592/* end confdefs.h.  */
6593int i;
6594_ACEOF
6595if ac_fn_c_try_compile "$LINENO"
6596then :
6597  xorg_cv_cc_flag_unused_command_line_argument=yes
6598else case e in #(
6599  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6600esac
6601fi
6602rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6603esac
6604fi
6605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6606printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6607	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6608	CFLAGS="$xorg_testset_save_CFLAGS"
6609fi
6610
6611found="no"
6612
6613	if test $found = "no" ; then
6614		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6615			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6616		fi
6617
6618		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6619			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6620		fi
6621
6622		CFLAGS="$CFLAGS -Wunused"
6623
6624		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6625printf %s "checking if $CC supports -Wunused... " >&6; }
6626		cacheid=xorg_cv_cc_flag__Wunused
6627		if eval test \${$cacheid+y}
6628then :
6629  printf %s "(cached) " >&6
6630else case e in #(
6631  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6632/* end confdefs.h.  */
6633int i;
6634int
6635main (void)
6636{
6637
6638  ;
6639  return 0;
6640}
6641_ACEOF
6642if ac_fn_c_try_link "$LINENO"
6643then :
6644  eval $cacheid=yes
6645else case e in #(
6646  e) eval $cacheid=no ;;
6647esac
6648fi
6649rm -f core conftest.err conftest.$ac_objext conftest.beam \
6650    conftest$ac_exeext conftest.$ac_ext ;;
6651esac
6652fi
6653
6654
6655		CFLAGS="$xorg_testset_save_CFLAGS"
6656
6657		eval supported=\$$cacheid
6658		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6659printf "%s\n" "$supported" >&6; }
6660		if test "$supported" = "yes" ; then
6661			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6662			found="yes"
6663		fi
6664	fi
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680xorg_testset_save_CFLAGS="$CFLAGS"
6681
6682if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6683	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6684	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6685printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6686if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6687then :
6688  printf %s "(cached) " >&6
6689else case e in #(
6690  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691/* end confdefs.h.  */
6692int i;
6693_ACEOF
6694if ac_fn_c_try_compile "$LINENO"
6695then :
6696  xorg_cv_cc_flag_unknown_warning_option=yes
6697else case e in #(
6698  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6699esac
6700fi
6701rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6702esac
6703fi
6704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6705printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6706	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6707	CFLAGS="$xorg_testset_save_CFLAGS"
6708fi
6709
6710if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6711	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6712		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6713	fi
6714	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6715	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6716printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6717if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6718then :
6719  printf %s "(cached) " >&6
6720else case e in #(
6721  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722/* end confdefs.h.  */
6723int i;
6724_ACEOF
6725if ac_fn_c_try_compile "$LINENO"
6726then :
6727  xorg_cv_cc_flag_unused_command_line_argument=yes
6728else case e in #(
6729  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6730esac
6731fi
6732rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6733esac
6734fi
6735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6736printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6737	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6738	CFLAGS="$xorg_testset_save_CFLAGS"
6739fi
6740
6741found="no"
6742
6743	if test $found = "no" ; then
6744		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6745			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6746		fi
6747
6748		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6749			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6750		fi
6751
6752		CFLAGS="$CFLAGS -Wuninitialized"
6753
6754		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6755printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6756		cacheid=xorg_cv_cc_flag__Wuninitialized
6757		if eval test \${$cacheid+y}
6758then :
6759  printf %s "(cached) " >&6
6760else case e in #(
6761  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762/* end confdefs.h.  */
6763int i;
6764int
6765main (void)
6766{
6767
6768  ;
6769  return 0;
6770}
6771_ACEOF
6772if ac_fn_c_try_link "$LINENO"
6773then :
6774  eval $cacheid=yes
6775else case e in #(
6776  e) eval $cacheid=no ;;
6777esac
6778fi
6779rm -f core conftest.err conftest.$ac_objext conftest.beam \
6780    conftest$ac_exeext conftest.$ac_ext ;;
6781esac
6782fi
6783
6784
6785		CFLAGS="$xorg_testset_save_CFLAGS"
6786
6787		eval supported=\$$cacheid
6788		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6789printf "%s\n" "$supported" >&6; }
6790		if test "$supported" = "yes" ; then
6791			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6792			found="yes"
6793		fi
6794	fi
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810xorg_testset_save_CFLAGS="$CFLAGS"
6811
6812if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6813	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6814	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6815printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6816if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6817then :
6818  printf %s "(cached) " >&6
6819else case e in #(
6820  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821/* end confdefs.h.  */
6822int i;
6823_ACEOF
6824if ac_fn_c_try_compile "$LINENO"
6825then :
6826  xorg_cv_cc_flag_unknown_warning_option=yes
6827else case e in #(
6828  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6829esac
6830fi
6831rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6832esac
6833fi
6834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6835printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6836	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6837	CFLAGS="$xorg_testset_save_CFLAGS"
6838fi
6839
6840if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6841	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6842		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6843	fi
6844	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6845	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6846printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6847if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6848then :
6849  printf %s "(cached) " >&6
6850else case e in #(
6851  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852/* end confdefs.h.  */
6853int i;
6854_ACEOF
6855if ac_fn_c_try_compile "$LINENO"
6856then :
6857  xorg_cv_cc_flag_unused_command_line_argument=yes
6858else case e in #(
6859  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6860esac
6861fi
6862rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6863esac
6864fi
6865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6866printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6867	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6868	CFLAGS="$xorg_testset_save_CFLAGS"
6869fi
6870
6871found="no"
6872
6873	if test $found = "no" ; then
6874		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6875			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6876		fi
6877
6878		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6879			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6880		fi
6881
6882		CFLAGS="$CFLAGS -Wshadow"
6883
6884		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6885printf %s "checking if $CC supports -Wshadow... " >&6; }
6886		cacheid=xorg_cv_cc_flag__Wshadow
6887		if eval test \${$cacheid+y}
6888then :
6889  printf %s "(cached) " >&6
6890else case e in #(
6891  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892/* end confdefs.h.  */
6893int i;
6894int
6895main (void)
6896{
6897
6898  ;
6899  return 0;
6900}
6901_ACEOF
6902if ac_fn_c_try_link "$LINENO"
6903then :
6904  eval $cacheid=yes
6905else case e in #(
6906  e) eval $cacheid=no ;;
6907esac
6908fi
6909rm -f core conftest.err conftest.$ac_objext conftest.beam \
6910    conftest$ac_exeext conftest.$ac_ext ;;
6911esac
6912fi
6913
6914
6915		CFLAGS="$xorg_testset_save_CFLAGS"
6916
6917		eval supported=\$$cacheid
6918		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6919printf "%s\n" "$supported" >&6; }
6920		if test "$supported" = "yes" ; then
6921			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6922			found="yes"
6923		fi
6924	fi
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940xorg_testset_save_CFLAGS="$CFLAGS"
6941
6942if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6943	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6944	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6945printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6946if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6947then :
6948  printf %s "(cached) " >&6
6949else case e in #(
6950  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6951/* end confdefs.h.  */
6952int i;
6953_ACEOF
6954if ac_fn_c_try_compile "$LINENO"
6955then :
6956  xorg_cv_cc_flag_unknown_warning_option=yes
6957else case e in #(
6958  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6959esac
6960fi
6961rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6962esac
6963fi
6964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6965printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6966	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6967	CFLAGS="$xorg_testset_save_CFLAGS"
6968fi
6969
6970if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6971	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6972		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6973	fi
6974	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6975	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6976printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6977if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6978then :
6979  printf %s "(cached) " >&6
6980else case e in #(
6981  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982/* end confdefs.h.  */
6983int i;
6984_ACEOF
6985if ac_fn_c_try_compile "$LINENO"
6986then :
6987  xorg_cv_cc_flag_unused_command_line_argument=yes
6988else case e in #(
6989  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6990esac
6991fi
6992rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6993esac
6994fi
6995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6996printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6997	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6998	CFLAGS="$xorg_testset_save_CFLAGS"
6999fi
7000
7001found="no"
7002
7003	if test $found = "no" ; then
7004		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7005			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7006		fi
7007
7008		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7009			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7010		fi
7011
7012		CFLAGS="$CFLAGS -Wmissing-noreturn"
7013
7014		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
7015printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
7016		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
7017		if eval test \${$cacheid+y}
7018then :
7019  printf %s "(cached) " >&6
7020else case e in #(
7021  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022/* end confdefs.h.  */
7023int i;
7024int
7025main (void)
7026{
7027
7028  ;
7029  return 0;
7030}
7031_ACEOF
7032if ac_fn_c_try_link "$LINENO"
7033then :
7034  eval $cacheid=yes
7035else case e in #(
7036  e) eval $cacheid=no ;;
7037esac
7038fi
7039rm -f core conftest.err conftest.$ac_objext conftest.beam \
7040    conftest$ac_exeext conftest.$ac_ext ;;
7041esac
7042fi
7043
7044
7045		CFLAGS="$xorg_testset_save_CFLAGS"
7046
7047		eval supported=\$$cacheid
7048		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7049printf "%s\n" "$supported" >&6; }
7050		if test "$supported" = "yes" ; then
7051			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7052			found="yes"
7053		fi
7054	fi
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070xorg_testset_save_CFLAGS="$CFLAGS"
7071
7072if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7073	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7074	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7075printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7076if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7077then :
7078  printf %s "(cached) " >&6
7079else case e in #(
7080  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081/* end confdefs.h.  */
7082int i;
7083_ACEOF
7084if ac_fn_c_try_compile "$LINENO"
7085then :
7086  xorg_cv_cc_flag_unknown_warning_option=yes
7087else case e in #(
7088  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7089esac
7090fi
7091rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7092esac
7093fi
7094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7095printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7096	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7097	CFLAGS="$xorg_testset_save_CFLAGS"
7098fi
7099
7100if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7101	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7102		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7103	fi
7104	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7105	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7106printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7107if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7108then :
7109  printf %s "(cached) " >&6
7110else case e in #(
7111  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112/* end confdefs.h.  */
7113int i;
7114_ACEOF
7115if ac_fn_c_try_compile "$LINENO"
7116then :
7117  xorg_cv_cc_flag_unused_command_line_argument=yes
7118else case e in #(
7119  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7120esac
7121fi
7122rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7123esac
7124fi
7125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7126printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7127	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7128	CFLAGS="$xorg_testset_save_CFLAGS"
7129fi
7130
7131found="no"
7132
7133	if test $found = "no" ; then
7134		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7135			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7136		fi
7137
7138		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7139			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7140		fi
7141
7142		CFLAGS="$CFLAGS -Wmissing-format-attribute"
7143
7144		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7145printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7146		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7147		if eval test \${$cacheid+y}
7148then :
7149  printf %s "(cached) " >&6
7150else case e in #(
7151  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152/* end confdefs.h.  */
7153int i;
7154int
7155main (void)
7156{
7157
7158  ;
7159  return 0;
7160}
7161_ACEOF
7162if ac_fn_c_try_link "$LINENO"
7163then :
7164  eval $cacheid=yes
7165else case e in #(
7166  e) eval $cacheid=no ;;
7167esac
7168fi
7169rm -f core conftest.err conftest.$ac_objext conftest.beam \
7170    conftest$ac_exeext conftest.$ac_ext ;;
7171esac
7172fi
7173
7174
7175		CFLAGS="$xorg_testset_save_CFLAGS"
7176
7177		eval supported=\$$cacheid
7178		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7179printf "%s\n" "$supported" >&6; }
7180		if test "$supported" = "yes" ; then
7181			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7182			found="yes"
7183		fi
7184	fi
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200xorg_testset_save_CFLAGS="$CFLAGS"
7201
7202if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7203	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7204	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7205printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7206if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7207then :
7208  printf %s "(cached) " >&6
7209else case e in #(
7210  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211/* end confdefs.h.  */
7212int i;
7213_ACEOF
7214if ac_fn_c_try_compile "$LINENO"
7215then :
7216  xorg_cv_cc_flag_unknown_warning_option=yes
7217else case e in #(
7218  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7219esac
7220fi
7221rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7222esac
7223fi
7224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7225printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7226	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7227	CFLAGS="$xorg_testset_save_CFLAGS"
7228fi
7229
7230if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7231	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7232		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7233	fi
7234	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7235	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7236printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7237if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7238then :
7239  printf %s "(cached) " >&6
7240else case e in #(
7241  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242/* end confdefs.h.  */
7243int i;
7244_ACEOF
7245if ac_fn_c_try_compile "$LINENO"
7246then :
7247  xorg_cv_cc_flag_unused_command_line_argument=yes
7248else case e in #(
7249  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7250esac
7251fi
7252rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7253esac
7254fi
7255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7256printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7257	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7258	CFLAGS="$xorg_testset_save_CFLAGS"
7259fi
7260
7261found="no"
7262
7263	if test $found = "no" ; then
7264		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7265			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7266		fi
7267
7268		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7269			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7270		fi
7271
7272		CFLAGS="$CFLAGS -Wredundant-decls"
7273
7274		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7275printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7276		cacheid=xorg_cv_cc_flag__Wredundant_decls
7277		if eval test \${$cacheid+y}
7278then :
7279  printf %s "(cached) " >&6
7280else case e in #(
7281  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7282/* end confdefs.h.  */
7283int i;
7284int
7285main (void)
7286{
7287
7288  ;
7289  return 0;
7290}
7291_ACEOF
7292if ac_fn_c_try_link "$LINENO"
7293then :
7294  eval $cacheid=yes
7295else case e in #(
7296  e) eval $cacheid=no ;;
7297esac
7298fi
7299rm -f core conftest.err conftest.$ac_objext conftest.beam \
7300    conftest$ac_exeext conftest.$ac_ext ;;
7301esac
7302fi
7303
7304
7305		CFLAGS="$xorg_testset_save_CFLAGS"
7306
7307		eval supported=\$$cacheid
7308		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7309printf "%s\n" "$supported" >&6; }
7310		if test "$supported" = "yes" ; then
7311			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7312			found="yes"
7313		fi
7314	fi
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330xorg_testset_save_CFLAGS="$CFLAGS"
7331
7332if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7333	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7334	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7335printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7336if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7337then :
7338  printf %s "(cached) " >&6
7339else case e in #(
7340  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341/* end confdefs.h.  */
7342int i;
7343_ACEOF
7344if ac_fn_c_try_compile "$LINENO"
7345then :
7346  xorg_cv_cc_flag_unknown_warning_option=yes
7347else case e in #(
7348  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7349esac
7350fi
7351rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7352esac
7353fi
7354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7355printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7356	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7357	CFLAGS="$xorg_testset_save_CFLAGS"
7358fi
7359
7360if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7361	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7362		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7363	fi
7364	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7365	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7366printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7367if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7368then :
7369  printf %s "(cached) " >&6
7370else case e in #(
7371  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372/* end confdefs.h.  */
7373int i;
7374_ACEOF
7375if ac_fn_c_try_compile "$LINENO"
7376then :
7377  xorg_cv_cc_flag_unused_command_line_argument=yes
7378else case e in #(
7379  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7380esac
7381fi
7382rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7383esac
7384fi
7385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7386printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7387	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7388	CFLAGS="$xorg_testset_save_CFLAGS"
7389fi
7390
7391found="no"
7392
7393	if test $found = "no" ; then
7394		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7395			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7396		fi
7397
7398		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7399			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7400		fi
7401
7402		CFLAGS="$CFLAGS -Wlogical-op"
7403
7404		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7405printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7406		cacheid=xorg_cv_cc_flag__Wlogical_op
7407		if eval test \${$cacheid+y}
7408then :
7409  printf %s "(cached) " >&6
7410else case e in #(
7411  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412/* end confdefs.h.  */
7413int i;
7414int
7415main (void)
7416{
7417
7418  ;
7419  return 0;
7420}
7421_ACEOF
7422if ac_fn_c_try_link "$LINENO"
7423then :
7424  eval $cacheid=yes
7425else case e in #(
7426  e) eval $cacheid=no ;;
7427esac
7428fi
7429rm -f core conftest.err conftest.$ac_objext conftest.beam \
7430    conftest$ac_exeext conftest.$ac_ext ;;
7431esac
7432fi
7433
7434
7435		CFLAGS="$xorg_testset_save_CFLAGS"
7436
7437		eval supported=\$$cacheid
7438		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7439printf "%s\n" "$supported" >&6; }
7440		if test "$supported" = "yes" ; then
7441			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7442			found="yes"
7443		fi
7444	fi
7445
7446
7447
7448# These are currently disabled because they are noisy.  They will be enabled
7449# in the future once the codebase is sufficiently modernized to silence
7450# them.  For now, I don't want them to drown out the other warnings.
7451# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7452# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7453# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7454
7455# Turn some warnings into errors, so we don't accidentally get successful builds
7456# when there are problems that should be fixed.
7457
7458if test "x$SELECTIVE_WERROR" = "xyes" ; then
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472xorg_testset_save_CFLAGS="$CFLAGS"
7473
7474if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7475	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7476	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7477printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7478if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7479then :
7480  printf %s "(cached) " >&6
7481else case e in #(
7482  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483/* end confdefs.h.  */
7484int i;
7485_ACEOF
7486if ac_fn_c_try_compile "$LINENO"
7487then :
7488  xorg_cv_cc_flag_unknown_warning_option=yes
7489else case e in #(
7490  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7491esac
7492fi
7493rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7494esac
7495fi
7496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7497printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7498	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7499	CFLAGS="$xorg_testset_save_CFLAGS"
7500fi
7501
7502if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7503	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7504		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7505	fi
7506	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7507	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7508printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7509if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7510then :
7511  printf %s "(cached) " >&6
7512else case e in #(
7513  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7514/* end confdefs.h.  */
7515int i;
7516_ACEOF
7517if ac_fn_c_try_compile "$LINENO"
7518then :
7519  xorg_cv_cc_flag_unused_command_line_argument=yes
7520else case e in #(
7521  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7522esac
7523fi
7524rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7525esac
7526fi
7527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7528printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7529	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7530	CFLAGS="$xorg_testset_save_CFLAGS"
7531fi
7532
7533found="no"
7534
7535	if test $found = "no" ; then
7536		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7537			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7538		fi
7539
7540		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7541			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7542		fi
7543
7544		CFLAGS="$CFLAGS -Werror=implicit"
7545
7546		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7547printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7548		cacheid=xorg_cv_cc_flag__Werror_implicit
7549		if eval test \${$cacheid+y}
7550then :
7551  printf %s "(cached) " >&6
7552else case e in #(
7553  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554/* end confdefs.h.  */
7555int i;
7556int
7557main (void)
7558{
7559
7560  ;
7561  return 0;
7562}
7563_ACEOF
7564if ac_fn_c_try_link "$LINENO"
7565then :
7566  eval $cacheid=yes
7567else case e in #(
7568  e) eval $cacheid=no ;;
7569esac
7570fi
7571rm -f core conftest.err conftest.$ac_objext conftest.beam \
7572    conftest$ac_exeext conftest.$ac_ext ;;
7573esac
7574fi
7575
7576
7577		CFLAGS="$xorg_testset_save_CFLAGS"
7578
7579		eval supported=\$$cacheid
7580		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7581printf "%s\n" "$supported" >&6; }
7582		if test "$supported" = "yes" ; then
7583			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7584			found="yes"
7585		fi
7586	fi
7587
7588	if test $found = "no" ; then
7589		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7590			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7591		fi
7592
7593		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7594			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7595		fi
7596
7597		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7598
7599		{ 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
7600printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7601		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7602		if eval test \${$cacheid+y}
7603then :
7604  printf %s "(cached) " >&6
7605else case e in #(
7606  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607/* end confdefs.h.  */
7608int i;
7609int
7610main (void)
7611{
7612
7613  ;
7614  return 0;
7615}
7616_ACEOF
7617if ac_fn_c_try_link "$LINENO"
7618then :
7619  eval $cacheid=yes
7620else case e in #(
7621  e) eval $cacheid=no ;;
7622esac
7623fi
7624rm -f core conftest.err conftest.$ac_objext conftest.beam \
7625    conftest$ac_exeext conftest.$ac_ext ;;
7626esac
7627fi
7628
7629
7630		CFLAGS="$xorg_testset_save_CFLAGS"
7631
7632		eval supported=\$$cacheid
7633		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7634printf "%s\n" "$supported" >&6; }
7635		if test "$supported" = "yes" ; then
7636			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7637			found="yes"
7638		fi
7639	fi
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655xorg_testset_save_CFLAGS="$CFLAGS"
7656
7657if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7658	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7659	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7660printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7661if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7662then :
7663  printf %s "(cached) " >&6
7664else case e in #(
7665  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666/* end confdefs.h.  */
7667int i;
7668_ACEOF
7669if ac_fn_c_try_compile "$LINENO"
7670then :
7671  xorg_cv_cc_flag_unknown_warning_option=yes
7672else case e in #(
7673  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7674esac
7675fi
7676rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7677esac
7678fi
7679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7680printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7681	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7682	CFLAGS="$xorg_testset_save_CFLAGS"
7683fi
7684
7685if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7686	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7687		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7688	fi
7689	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7690	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7691printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7692if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7693then :
7694  printf %s "(cached) " >&6
7695else case e in #(
7696  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697/* end confdefs.h.  */
7698int i;
7699_ACEOF
7700if ac_fn_c_try_compile "$LINENO"
7701then :
7702  xorg_cv_cc_flag_unused_command_line_argument=yes
7703else case e in #(
7704  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7705esac
7706fi
7707rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7708esac
7709fi
7710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7711printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7712	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7713	CFLAGS="$xorg_testset_save_CFLAGS"
7714fi
7715
7716found="no"
7717
7718	if test $found = "no" ; then
7719		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7720			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7721		fi
7722
7723		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7724			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7725		fi
7726
7727		CFLAGS="$CFLAGS -Werror=nonnull"
7728
7729		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7730printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7731		cacheid=xorg_cv_cc_flag__Werror_nonnull
7732		if eval test \${$cacheid+y}
7733then :
7734  printf %s "(cached) " >&6
7735else case e in #(
7736  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737/* end confdefs.h.  */
7738int i;
7739int
7740main (void)
7741{
7742
7743  ;
7744  return 0;
7745}
7746_ACEOF
7747if ac_fn_c_try_link "$LINENO"
7748then :
7749  eval $cacheid=yes
7750else case e in #(
7751  e) eval $cacheid=no ;;
7752esac
7753fi
7754rm -f core conftest.err conftest.$ac_objext conftest.beam \
7755    conftest$ac_exeext conftest.$ac_ext ;;
7756esac
7757fi
7758
7759
7760		CFLAGS="$xorg_testset_save_CFLAGS"
7761
7762		eval supported=\$$cacheid
7763		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7764printf "%s\n" "$supported" >&6; }
7765		if test "$supported" = "yes" ; then
7766			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7767			found="yes"
7768		fi
7769	fi
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785xorg_testset_save_CFLAGS="$CFLAGS"
7786
7787if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7788	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7789	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7790printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7791if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7792then :
7793  printf %s "(cached) " >&6
7794else case e in #(
7795  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796/* end confdefs.h.  */
7797int i;
7798_ACEOF
7799if ac_fn_c_try_compile "$LINENO"
7800then :
7801  xorg_cv_cc_flag_unknown_warning_option=yes
7802else case e in #(
7803  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7804esac
7805fi
7806rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7807esac
7808fi
7809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7810printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7811	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7812	CFLAGS="$xorg_testset_save_CFLAGS"
7813fi
7814
7815if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7816	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7817		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7818	fi
7819	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7820	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7821printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7822if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7823then :
7824  printf %s "(cached) " >&6
7825else case e in #(
7826  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827/* end confdefs.h.  */
7828int i;
7829_ACEOF
7830if ac_fn_c_try_compile "$LINENO"
7831then :
7832  xorg_cv_cc_flag_unused_command_line_argument=yes
7833else case e in #(
7834  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7835esac
7836fi
7837rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7838esac
7839fi
7840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7841printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7842	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7843	CFLAGS="$xorg_testset_save_CFLAGS"
7844fi
7845
7846found="no"
7847
7848	if test $found = "no" ; then
7849		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7850			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7851		fi
7852
7853		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7854			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7855		fi
7856
7857		CFLAGS="$CFLAGS -Werror=init-self"
7858
7859		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7860printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7861		cacheid=xorg_cv_cc_flag__Werror_init_self
7862		if eval test \${$cacheid+y}
7863then :
7864  printf %s "(cached) " >&6
7865else case e in #(
7866  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867/* end confdefs.h.  */
7868int i;
7869int
7870main (void)
7871{
7872
7873  ;
7874  return 0;
7875}
7876_ACEOF
7877if ac_fn_c_try_link "$LINENO"
7878then :
7879  eval $cacheid=yes
7880else case e in #(
7881  e) eval $cacheid=no ;;
7882esac
7883fi
7884rm -f core conftest.err conftest.$ac_objext conftest.beam \
7885    conftest$ac_exeext conftest.$ac_ext ;;
7886esac
7887fi
7888
7889
7890		CFLAGS="$xorg_testset_save_CFLAGS"
7891
7892		eval supported=\$$cacheid
7893		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7894printf "%s\n" "$supported" >&6; }
7895		if test "$supported" = "yes" ; then
7896			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7897			found="yes"
7898		fi
7899	fi
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915xorg_testset_save_CFLAGS="$CFLAGS"
7916
7917if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7918	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7919	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7920printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7921if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7922then :
7923  printf %s "(cached) " >&6
7924else case e in #(
7925  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7926/* end confdefs.h.  */
7927int i;
7928_ACEOF
7929if ac_fn_c_try_compile "$LINENO"
7930then :
7931  xorg_cv_cc_flag_unknown_warning_option=yes
7932else case e in #(
7933  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7934esac
7935fi
7936rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7937esac
7938fi
7939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7940printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7941	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7942	CFLAGS="$xorg_testset_save_CFLAGS"
7943fi
7944
7945if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7946	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7947		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7948	fi
7949	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7950	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7951printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7952if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7953then :
7954  printf %s "(cached) " >&6
7955else case e in #(
7956  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957/* end confdefs.h.  */
7958int i;
7959_ACEOF
7960if ac_fn_c_try_compile "$LINENO"
7961then :
7962  xorg_cv_cc_flag_unused_command_line_argument=yes
7963else case e in #(
7964  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7965esac
7966fi
7967rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7968esac
7969fi
7970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7971printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7972	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7973	CFLAGS="$xorg_testset_save_CFLAGS"
7974fi
7975
7976found="no"
7977
7978	if test $found = "no" ; then
7979		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7980			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7981		fi
7982
7983		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7984			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7985		fi
7986
7987		CFLAGS="$CFLAGS -Werror=main"
7988
7989		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7990printf %s "checking if $CC supports -Werror=main... " >&6; }
7991		cacheid=xorg_cv_cc_flag__Werror_main
7992		if eval test \${$cacheid+y}
7993then :
7994  printf %s "(cached) " >&6
7995else case e in #(
7996  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7997/* end confdefs.h.  */
7998int i;
7999int
8000main (void)
8001{
8002
8003  ;
8004  return 0;
8005}
8006_ACEOF
8007if ac_fn_c_try_link "$LINENO"
8008then :
8009  eval $cacheid=yes
8010else case e in #(
8011  e) eval $cacheid=no ;;
8012esac
8013fi
8014rm -f core conftest.err conftest.$ac_objext conftest.beam \
8015    conftest$ac_exeext conftest.$ac_ext ;;
8016esac
8017fi
8018
8019
8020		CFLAGS="$xorg_testset_save_CFLAGS"
8021
8022		eval supported=\$$cacheid
8023		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8024printf "%s\n" "$supported" >&6; }
8025		if test "$supported" = "yes" ; then
8026			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
8027			found="yes"
8028		fi
8029	fi
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045xorg_testset_save_CFLAGS="$CFLAGS"
8046
8047if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8048	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8049	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8050printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8051if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8052then :
8053  printf %s "(cached) " >&6
8054else case e in #(
8055  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056/* end confdefs.h.  */
8057int i;
8058_ACEOF
8059if ac_fn_c_try_compile "$LINENO"
8060then :
8061  xorg_cv_cc_flag_unknown_warning_option=yes
8062else case e in #(
8063  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8064esac
8065fi
8066rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8067esac
8068fi
8069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8070printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8071	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8072	CFLAGS="$xorg_testset_save_CFLAGS"
8073fi
8074
8075if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8076	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8077		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8078	fi
8079	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8080	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8081printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8082if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8083then :
8084  printf %s "(cached) " >&6
8085else case e in #(
8086  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8087/* end confdefs.h.  */
8088int i;
8089_ACEOF
8090if ac_fn_c_try_compile "$LINENO"
8091then :
8092  xorg_cv_cc_flag_unused_command_line_argument=yes
8093else case e in #(
8094  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8095esac
8096fi
8097rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8098esac
8099fi
8100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8101printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8102	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8103	CFLAGS="$xorg_testset_save_CFLAGS"
8104fi
8105
8106found="no"
8107
8108	if test $found = "no" ; then
8109		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8110			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8111		fi
8112
8113		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8114			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8115		fi
8116
8117		CFLAGS="$CFLAGS -Werror=missing-braces"
8118
8119		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8120printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8121		cacheid=xorg_cv_cc_flag__Werror_missing_braces
8122		if eval test \${$cacheid+y}
8123then :
8124  printf %s "(cached) " >&6
8125else case e in #(
8126  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8127/* end confdefs.h.  */
8128int i;
8129int
8130main (void)
8131{
8132
8133  ;
8134  return 0;
8135}
8136_ACEOF
8137if ac_fn_c_try_link "$LINENO"
8138then :
8139  eval $cacheid=yes
8140else case e in #(
8141  e) eval $cacheid=no ;;
8142esac
8143fi
8144rm -f core conftest.err conftest.$ac_objext conftest.beam \
8145    conftest$ac_exeext conftest.$ac_ext ;;
8146esac
8147fi
8148
8149
8150		CFLAGS="$xorg_testset_save_CFLAGS"
8151
8152		eval supported=\$$cacheid
8153		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8154printf "%s\n" "$supported" >&6; }
8155		if test "$supported" = "yes" ; then
8156			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8157			found="yes"
8158		fi
8159	fi
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175xorg_testset_save_CFLAGS="$CFLAGS"
8176
8177if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8178	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8179	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8180printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8181if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8182then :
8183  printf %s "(cached) " >&6
8184else case e in #(
8185  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8186/* end confdefs.h.  */
8187int i;
8188_ACEOF
8189if ac_fn_c_try_compile "$LINENO"
8190then :
8191  xorg_cv_cc_flag_unknown_warning_option=yes
8192else case e in #(
8193  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8194esac
8195fi
8196rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8197esac
8198fi
8199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8200printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8201	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8202	CFLAGS="$xorg_testset_save_CFLAGS"
8203fi
8204
8205if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8206	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8207		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8208	fi
8209	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8210	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8211printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8212if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8213then :
8214  printf %s "(cached) " >&6
8215else case e in #(
8216  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217/* end confdefs.h.  */
8218int i;
8219_ACEOF
8220if ac_fn_c_try_compile "$LINENO"
8221then :
8222  xorg_cv_cc_flag_unused_command_line_argument=yes
8223else case e in #(
8224  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8225esac
8226fi
8227rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8228esac
8229fi
8230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8231printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8232	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8233	CFLAGS="$xorg_testset_save_CFLAGS"
8234fi
8235
8236found="no"
8237
8238	if test $found = "no" ; then
8239		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8240			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8241		fi
8242
8243		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8244			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8245		fi
8246
8247		CFLAGS="$CFLAGS -Werror=sequence-point"
8248
8249		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8250printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8251		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8252		if eval test \${$cacheid+y}
8253then :
8254  printf %s "(cached) " >&6
8255else case e in #(
8256  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257/* end confdefs.h.  */
8258int i;
8259int
8260main (void)
8261{
8262
8263  ;
8264  return 0;
8265}
8266_ACEOF
8267if ac_fn_c_try_link "$LINENO"
8268then :
8269  eval $cacheid=yes
8270else case e in #(
8271  e) eval $cacheid=no ;;
8272esac
8273fi
8274rm -f core conftest.err conftest.$ac_objext conftest.beam \
8275    conftest$ac_exeext conftest.$ac_ext ;;
8276esac
8277fi
8278
8279
8280		CFLAGS="$xorg_testset_save_CFLAGS"
8281
8282		eval supported=\$$cacheid
8283		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8284printf "%s\n" "$supported" >&6; }
8285		if test "$supported" = "yes" ; then
8286			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8287			found="yes"
8288		fi
8289	fi
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305xorg_testset_save_CFLAGS="$CFLAGS"
8306
8307if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8308	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8309	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8310printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8311if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8312then :
8313  printf %s "(cached) " >&6
8314else case e in #(
8315  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8316/* end confdefs.h.  */
8317int i;
8318_ACEOF
8319if ac_fn_c_try_compile "$LINENO"
8320then :
8321  xorg_cv_cc_flag_unknown_warning_option=yes
8322else case e in #(
8323  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8324esac
8325fi
8326rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8327esac
8328fi
8329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8330printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8331	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8332	CFLAGS="$xorg_testset_save_CFLAGS"
8333fi
8334
8335if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8336	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8337		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8338	fi
8339	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8340	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8341printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8342if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8343then :
8344  printf %s "(cached) " >&6
8345else case e in #(
8346  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8347/* end confdefs.h.  */
8348int i;
8349_ACEOF
8350if ac_fn_c_try_compile "$LINENO"
8351then :
8352  xorg_cv_cc_flag_unused_command_line_argument=yes
8353else case e in #(
8354  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8355esac
8356fi
8357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8358esac
8359fi
8360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8361printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8362	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8363	CFLAGS="$xorg_testset_save_CFLAGS"
8364fi
8365
8366found="no"
8367
8368	if test $found = "no" ; then
8369		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8370			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8371		fi
8372
8373		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8374			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8375		fi
8376
8377		CFLAGS="$CFLAGS -Werror=return-type"
8378
8379		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8380printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8381		cacheid=xorg_cv_cc_flag__Werror_return_type
8382		if eval test \${$cacheid+y}
8383then :
8384  printf %s "(cached) " >&6
8385else case e in #(
8386  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8387/* end confdefs.h.  */
8388int i;
8389int
8390main (void)
8391{
8392
8393  ;
8394  return 0;
8395}
8396_ACEOF
8397if ac_fn_c_try_link "$LINENO"
8398then :
8399  eval $cacheid=yes
8400else case e in #(
8401  e) eval $cacheid=no ;;
8402esac
8403fi
8404rm -f core conftest.err conftest.$ac_objext conftest.beam \
8405    conftest$ac_exeext conftest.$ac_ext ;;
8406esac
8407fi
8408
8409
8410		CFLAGS="$xorg_testset_save_CFLAGS"
8411
8412		eval supported=\$$cacheid
8413		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8414printf "%s\n" "$supported" >&6; }
8415		if test "$supported" = "yes" ; then
8416			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8417			found="yes"
8418		fi
8419	fi
8420
8421	if test $found = "no" ; then
8422		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8423			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8424		fi
8425
8426		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8427			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8428		fi
8429
8430		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8431
8432		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8433printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8434		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8435		if eval test \${$cacheid+y}
8436then :
8437  printf %s "(cached) " >&6
8438else case e in #(
8439  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8440/* end confdefs.h.  */
8441int i;
8442int
8443main (void)
8444{
8445
8446  ;
8447  return 0;
8448}
8449_ACEOF
8450if ac_fn_c_try_link "$LINENO"
8451then :
8452  eval $cacheid=yes
8453else case e in #(
8454  e) eval $cacheid=no ;;
8455esac
8456fi
8457rm -f core conftest.err conftest.$ac_objext conftest.beam \
8458    conftest$ac_exeext conftest.$ac_ext ;;
8459esac
8460fi
8461
8462
8463		CFLAGS="$xorg_testset_save_CFLAGS"
8464
8465		eval supported=\$$cacheid
8466		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8467printf "%s\n" "$supported" >&6; }
8468		if test "$supported" = "yes" ; then
8469			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8470			found="yes"
8471		fi
8472	fi
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488xorg_testset_save_CFLAGS="$CFLAGS"
8489
8490if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8491	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8492	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8493printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8494if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8495then :
8496  printf %s "(cached) " >&6
8497else case e in #(
8498  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499/* end confdefs.h.  */
8500int i;
8501_ACEOF
8502if ac_fn_c_try_compile "$LINENO"
8503then :
8504  xorg_cv_cc_flag_unknown_warning_option=yes
8505else case e in #(
8506  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8507esac
8508fi
8509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8510esac
8511fi
8512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8513printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8514	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8515	CFLAGS="$xorg_testset_save_CFLAGS"
8516fi
8517
8518if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8519	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8520		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8521	fi
8522	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8523	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8524printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8525if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8526then :
8527  printf %s "(cached) " >&6
8528else case e in #(
8529  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8530/* end confdefs.h.  */
8531int i;
8532_ACEOF
8533if ac_fn_c_try_compile "$LINENO"
8534then :
8535  xorg_cv_cc_flag_unused_command_line_argument=yes
8536else case e in #(
8537  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8538esac
8539fi
8540rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8541esac
8542fi
8543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8544printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8545	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8546	CFLAGS="$xorg_testset_save_CFLAGS"
8547fi
8548
8549found="no"
8550
8551	if test $found = "no" ; then
8552		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8553			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8554		fi
8555
8556		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8557			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8558		fi
8559
8560		CFLAGS="$CFLAGS -Werror=trigraphs"
8561
8562		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8563printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8564		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8565		if eval test \${$cacheid+y}
8566then :
8567  printf %s "(cached) " >&6
8568else case e in #(
8569  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8570/* end confdefs.h.  */
8571int i;
8572int
8573main (void)
8574{
8575
8576  ;
8577  return 0;
8578}
8579_ACEOF
8580if ac_fn_c_try_link "$LINENO"
8581then :
8582  eval $cacheid=yes
8583else case e in #(
8584  e) eval $cacheid=no ;;
8585esac
8586fi
8587rm -f core conftest.err conftest.$ac_objext conftest.beam \
8588    conftest$ac_exeext conftest.$ac_ext ;;
8589esac
8590fi
8591
8592
8593		CFLAGS="$xorg_testset_save_CFLAGS"
8594
8595		eval supported=\$$cacheid
8596		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8597printf "%s\n" "$supported" >&6; }
8598		if test "$supported" = "yes" ; then
8599			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8600			found="yes"
8601		fi
8602	fi
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618xorg_testset_save_CFLAGS="$CFLAGS"
8619
8620if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8621	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8622	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8623printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8624if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8625then :
8626  printf %s "(cached) " >&6
8627else case e in #(
8628  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8629/* end confdefs.h.  */
8630int i;
8631_ACEOF
8632if ac_fn_c_try_compile "$LINENO"
8633then :
8634  xorg_cv_cc_flag_unknown_warning_option=yes
8635else case e in #(
8636  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8637esac
8638fi
8639rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8640esac
8641fi
8642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8643printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8644	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8645	CFLAGS="$xorg_testset_save_CFLAGS"
8646fi
8647
8648if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8649	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8650		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8651	fi
8652	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8653	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8654printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8655if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8656then :
8657  printf %s "(cached) " >&6
8658else case e in #(
8659  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8660/* end confdefs.h.  */
8661int i;
8662_ACEOF
8663if ac_fn_c_try_compile "$LINENO"
8664then :
8665  xorg_cv_cc_flag_unused_command_line_argument=yes
8666else case e in #(
8667  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8668esac
8669fi
8670rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8671esac
8672fi
8673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8674printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8675	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8676	CFLAGS="$xorg_testset_save_CFLAGS"
8677fi
8678
8679found="no"
8680
8681	if test $found = "no" ; then
8682		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8683			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8684		fi
8685
8686		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8687			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8688		fi
8689
8690		CFLAGS="$CFLAGS -Werror=array-bounds"
8691
8692		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8693printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8694		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8695		if eval test \${$cacheid+y}
8696then :
8697  printf %s "(cached) " >&6
8698else case e in #(
8699  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8700/* end confdefs.h.  */
8701int i;
8702int
8703main (void)
8704{
8705
8706  ;
8707  return 0;
8708}
8709_ACEOF
8710if ac_fn_c_try_link "$LINENO"
8711then :
8712  eval $cacheid=yes
8713else case e in #(
8714  e) eval $cacheid=no ;;
8715esac
8716fi
8717rm -f core conftest.err conftest.$ac_objext conftest.beam \
8718    conftest$ac_exeext conftest.$ac_ext ;;
8719esac
8720fi
8721
8722
8723		CFLAGS="$xorg_testset_save_CFLAGS"
8724
8725		eval supported=\$$cacheid
8726		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8727printf "%s\n" "$supported" >&6; }
8728		if test "$supported" = "yes" ; then
8729			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8730			found="yes"
8731		fi
8732	fi
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748xorg_testset_save_CFLAGS="$CFLAGS"
8749
8750if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8751	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8752	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8753printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8754if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8755then :
8756  printf %s "(cached) " >&6
8757else case e in #(
8758  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8759/* end confdefs.h.  */
8760int i;
8761_ACEOF
8762if ac_fn_c_try_compile "$LINENO"
8763then :
8764  xorg_cv_cc_flag_unknown_warning_option=yes
8765else case e in #(
8766  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8767esac
8768fi
8769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8770esac
8771fi
8772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8773printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8774	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8775	CFLAGS="$xorg_testset_save_CFLAGS"
8776fi
8777
8778if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8779	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8780		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8781	fi
8782	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8783	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8784printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8785if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8786then :
8787  printf %s "(cached) " >&6
8788else case e in #(
8789  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790/* end confdefs.h.  */
8791int i;
8792_ACEOF
8793if ac_fn_c_try_compile "$LINENO"
8794then :
8795  xorg_cv_cc_flag_unused_command_line_argument=yes
8796else case e in #(
8797  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8798esac
8799fi
8800rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8801esac
8802fi
8803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8804printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8805	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8806	CFLAGS="$xorg_testset_save_CFLAGS"
8807fi
8808
8809found="no"
8810
8811	if test $found = "no" ; then
8812		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8813			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8814		fi
8815
8816		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8817			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8818		fi
8819
8820		CFLAGS="$CFLAGS -Werror=write-strings"
8821
8822		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8823printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8824		cacheid=xorg_cv_cc_flag__Werror_write_strings
8825		if eval test \${$cacheid+y}
8826then :
8827  printf %s "(cached) " >&6
8828else case e in #(
8829  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8830/* end confdefs.h.  */
8831int i;
8832int
8833main (void)
8834{
8835
8836  ;
8837  return 0;
8838}
8839_ACEOF
8840if ac_fn_c_try_link "$LINENO"
8841then :
8842  eval $cacheid=yes
8843else case e in #(
8844  e) eval $cacheid=no ;;
8845esac
8846fi
8847rm -f core conftest.err conftest.$ac_objext conftest.beam \
8848    conftest$ac_exeext conftest.$ac_ext ;;
8849esac
8850fi
8851
8852
8853		CFLAGS="$xorg_testset_save_CFLAGS"
8854
8855		eval supported=\$$cacheid
8856		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8857printf "%s\n" "$supported" >&6; }
8858		if test "$supported" = "yes" ; then
8859			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8860			found="yes"
8861		fi
8862	fi
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878xorg_testset_save_CFLAGS="$CFLAGS"
8879
8880if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8881	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8882	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8883printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8884if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8885then :
8886  printf %s "(cached) " >&6
8887else case e in #(
8888  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8889/* end confdefs.h.  */
8890int i;
8891_ACEOF
8892if ac_fn_c_try_compile "$LINENO"
8893then :
8894  xorg_cv_cc_flag_unknown_warning_option=yes
8895else case e in #(
8896  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8897esac
8898fi
8899rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8900esac
8901fi
8902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8903printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8904	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8905	CFLAGS="$xorg_testset_save_CFLAGS"
8906fi
8907
8908if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8909	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8910		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8911	fi
8912	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8913	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8914printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8915if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8916then :
8917  printf %s "(cached) " >&6
8918else case e in #(
8919  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8920/* end confdefs.h.  */
8921int i;
8922_ACEOF
8923if ac_fn_c_try_compile "$LINENO"
8924then :
8925  xorg_cv_cc_flag_unused_command_line_argument=yes
8926else case e in #(
8927  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8928esac
8929fi
8930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8931esac
8932fi
8933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8934printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8935	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8936	CFLAGS="$xorg_testset_save_CFLAGS"
8937fi
8938
8939found="no"
8940
8941	if test $found = "no" ; then
8942		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8943			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8944		fi
8945
8946		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8947			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8948		fi
8949
8950		CFLAGS="$CFLAGS -Werror=address"
8951
8952		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8953printf %s "checking if $CC supports -Werror=address... " >&6; }
8954		cacheid=xorg_cv_cc_flag__Werror_address
8955		if eval test \${$cacheid+y}
8956then :
8957  printf %s "(cached) " >&6
8958else case e in #(
8959  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8960/* end confdefs.h.  */
8961int i;
8962int
8963main (void)
8964{
8965
8966  ;
8967  return 0;
8968}
8969_ACEOF
8970if ac_fn_c_try_link "$LINENO"
8971then :
8972  eval $cacheid=yes
8973else case e in #(
8974  e) eval $cacheid=no ;;
8975esac
8976fi
8977rm -f core conftest.err conftest.$ac_objext conftest.beam \
8978    conftest$ac_exeext conftest.$ac_ext ;;
8979esac
8980fi
8981
8982
8983		CFLAGS="$xorg_testset_save_CFLAGS"
8984
8985		eval supported=\$$cacheid
8986		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8987printf "%s\n" "$supported" >&6; }
8988		if test "$supported" = "yes" ; then
8989			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8990			found="yes"
8991		fi
8992	fi
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008xorg_testset_save_CFLAGS="$CFLAGS"
9009
9010if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9011	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9012	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9013printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9014if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9015then :
9016  printf %s "(cached) " >&6
9017else case e in #(
9018  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9019/* end confdefs.h.  */
9020int i;
9021_ACEOF
9022if ac_fn_c_try_compile "$LINENO"
9023then :
9024  xorg_cv_cc_flag_unknown_warning_option=yes
9025else case e in #(
9026  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9027esac
9028fi
9029rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9030esac
9031fi
9032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9033printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9034	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9035	CFLAGS="$xorg_testset_save_CFLAGS"
9036fi
9037
9038if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9039	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9040		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9041	fi
9042	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9043	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9044printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9045if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9046then :
9047  printf %s "(cached) " >&6
9048else case e in #(
9049  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050/* end confdefs.h.  */
9051int i;
9052_ACEOF
9053if ac_fn_c_try_compile "$LINENO"
9054then :
9055  xorg_cv_cc_flag_unused_command_line_argument=yes
9056else case e in #(
9057  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9058esac
9059fi
9060rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9061esac
9062fi
9063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9064printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9065	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9066	CFLAGS="$xorg_testset_save_CFLAGS"
9067fi
9068
9069found="no"
9070
9071	if test $found = "no" ; then
9072		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9073			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9074		fi
9075
9076		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9077			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9078		fi
9079
9080		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9081
9082		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9083printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9084		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9085		if eval test \${$cacheid+y}
9086then :
9087  printf %s "(cached) " >&6
9088else case e in #(
9089  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9090/* end confdefs.h.  */
9091int i;
9092int
9093main (void)
9094{
9095
9096  ;
9097  return 0;
9098}
9099_ACEOF
9100if ac_fn_c_try_link "$LINENO"
9101then :
9102  eval $cacheid=yes
9103else case e in #(
9104  e) eval $cacheid=no ;;
9105esac
9106fi
9107rm -f core conftest.err conftest.$ac_objext conftest.beam \
9108    conftest$ac_exeext conftest.$ac_ext ;;
9109esac
9110fi
9111
9112
9113		CFLAGS="$xorg_testset_save_CFLAGS"
9114
9115		eval supported=\$$cacheid
9116		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9117printf "%s\n" "$supported" >&6; }
9118		if test "$supported" = "yes" ; then
9119			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9120			found="yes"
9121		fi
9122	fi
9123
9124	if test $found = "no" ; then
9125		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9126			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9127		fi
9128
9129		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9130			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9131		fi
9132
9133		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9134
9135		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9136printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9137		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9138		if eval test \${$cacheid+y}
9139then :
9140  printf %s "(cached) " >&6
9141else case e in #(
9142  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9143/* end confdefs.h.  */
9144int i;
9145int
9146main (void)
9147{
9148
9149  ;
9150  return 0;
9151}
9152_ACEOF
9153if ac_fn_c_try_link "$LINENO"
9154then :
9155  eval $cacheid=yes
9156else case e in #(
9157  e) eval $cacheid=no ;;
9158esac
9159fi
9160rm -f core conftest.err conftest.$ac_objext conftest.beam \
9161    conftest$ac_exeext conftest.$ac_ext ;;
9162esac
9163fi
9164
9165
9166		CFLAGS="$xorg_testset_save_CFLAGS"
9167
9168		eval supported=\$$cacheid
9169		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9170printf "%s\n" "$supported" >&6; }
9171		if test "$supported" = "yes" ; then
9172			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9173			found="yes"
9174		fi
9175	fi
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191xorg_testset_save_CFLAGS="$CFLAGS"
9192
9193if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9194	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9195	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9196printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9197if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9198then :
9199  printf %s "(cached) " >&6
9200else case e in #(
9201  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202/* end confdefs.h.  */
9203int i;
9204_ACEOF
9205if ac_fn_c_try_compile "$LINENO"
9206then :
9207  xorg_cv_cc_flag_unknown_warning_option=yes
9208else case e in #(
9209  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9210esac
9211fi
9212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9213esac
9214fi
9215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9216printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9217	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9218	CFLAGS="$xorg_testset_save_CFLAGS"
9219fi
9220
9221if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9222	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9223		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9224	fi
9225	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9226	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9227printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9228if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9229then :
9230  printf %s "(cached) " >&6
9231else case e in #(
9232  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9233/* end confdefs.h.  */
9234int i;
9235_ACEOF
9236if ac_fn_c_try_compile "$LINENO"
9237then :
9238  xorg_cv_cc_flag_unused_command_line_argument=yes
9239else case e in #(
9240  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9241esac
9242fi
9243rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9244esac
9245fi
9246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9247printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9248	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9249	CFLAGS="$xorg_testset_save_CFLAGS"
9250fi
9251
9252found="no"
9253
9254	if test $found = "no" ; then
9255		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9256			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9257		fi
9258
9259		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9260			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9261		fi
9262
9263		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9264
9265		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9266printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9267		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9268		if eval test \${$cacheid+y}
9269then :
9270  printf %s "(cached) " >&6
9271else case e in #(
9272  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9273/* end confdefs.h.  */
9274int i;
9275int
9276main (void)
9277{
9278
9279  ;
9280  return 0;
9281}
9282_ACEOF
9283if ac_fn_c_try_link "$LINENO"
9284then :
9285  eval $cacheid=yes
9286else case e in #(
9287  e) eval $cacheid=no ;;
9288esac
9289fi
9290rm -f core conftest.err conftest.$ac_objext conftest.beam \
9291    conftest$ac_exeext conftest.$ac_ext ;;
9292esac
9293fi
9294
9295
9296		CFLAGS="$xorg_testset_save_CFLAGS"
9297
9298		eval supported=\$$cacheid
9299		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9300printf "%s\n" "$supported" >&6; }
9301		if test "$supported" = "yes" ; then
9302			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9303			found="yes"
9304		fi
9305	fi
9306
9307 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9308else
9309{ 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
9310printf "%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;}
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324xorg_testset_save_CFLAGS="$CFLAGS"
9325
9326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9327	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9328	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9329printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9330if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9331then :
9332  printf %s "(cached) " >&6
9333else case e in #(
9334  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335/* end confdefs.h.  */
9336int i;
9337_ACEOF
9338if ac_fn_c_try_compile "$LINENO"
9339then :
9340  xorg_cv_cc_flag_unknown_warning_option=yes
9341else case e in #(
9342  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9343esac
9344fi
9345rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9346esac
9347fi
9348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9349printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9350	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9351	CFLAGS="$xorg_testset_save_CFLAGS"
9352fi
9353
9354if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9355	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9356		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9357	fi
9358	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9359	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9360printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9361if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9362then :
9363  printf %s "(cached) " >&6
9364else case e in #(
9365  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9366/* end confdefs.h.  */
9367int i;
9368_ACEOF
9369if ac_fn_c_try_compile "$LINENO"
9370then :
9371  xorg_cv_cc_flag_unused_command_line_argument=yes
9372else case e in #(
9373  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9374esac
9375fi
9376rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9377esac
9378fi
9379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9380printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9381	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9382	CFLAGS="$xorg_testset_save_CFLAGS"
9383fi
9384
9385found="no"
9386
9387	if test $found = "no" ; then
9388		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9389			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9390		fi
9391
9392		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9393			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9394		fi
9395
9396		CFLAGS="$CFLAGS -Wimplicit"
9397
9398		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9399printf %s "checking if $CC supports -Wimplicit... " >&6; }
9400		cacheid=xorg_cv_cc_flag__Wimplicit
9401		if eval test \${$cacheid+y}
9402then :
9403  printf %s "(cached) " >&6
9404else case e in #(
9405  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9406/* end confdefs.h.  */
9407int i;
9408int
9409main (void)
9410{
9411
9412  ;
9413  return 0;
9414}
9415_ACEOF
9416if ac_fn_c_try_link "$LINENO"
9417then :
9418  eval $cacheid=yes
9419else case e in #(
9420  e) eval $cacheid=no ;;
9421esac
9422fi
9423rm -f core conftest.err conftest.$ac_objext conftest.beam \
9424    conftest$ac_exeext conftest.$ac_ext ;;
9425esac
9426fi
9427
9428
9429		CFLAGS="$xorg_testset_save_CFLAGS"
9430
9431		eval supported=\$$cacheid
9432		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9433printf "%s\n" "$supported" >&6; }
9434		if test "$supported" = "yes" ; then
9435			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9436			found="yes"
9437		fi
9438	fi
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454xorg_testset_save_CFLAGS="$CFLAGS"
9455
9456if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9457	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9458	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9459printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9460if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9461then :
9462  printf %s "(cached) " >&6
9463else case e in #(
9464  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9465/* end confdefs.h.  */
9466int i;
9467_ACEOF
9468if ac_fn_c_try_compile "$LINENO"
9469then :
9470  xorg_cv_cc_flag_unknown_warning_option=yes
9471else case e in #(
9472  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9473esac
9474fi
9475rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9476esac
9477fi
9478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9479printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9480	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9481	CFLAGS="$xorg_testset_save_CFLAGS"
9482fi
9483
9484if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9485	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9486		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9487	fi
9488	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9489	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9490printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9491if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9492then :
9493  printf %s "(cached) " >&6
9494else case e in #(
9495  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9496/* end confdefs.h.  */
9497int i;
9498_ACEOF
9499if ac_fn_c_try_compile "$LINENO"
9500then :
9501  xorg_cv_cc_flag_unused_command_line_argument=yes
9502else case e in #(
9503  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9504esac
9505fi
9506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9507esac
9508fi
9509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9510printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9511	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9512	CFLAGS="$xorg_testset_save_CFLAGS"
9513fi
9514
9515found="no"
9516
9517	if test $found = "no" ; then
9518		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9519			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9520		fi
9521
9522		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9523			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9524		fi
9525
9526		CFLAGS="$CFLAGS -Wnonnull"
9527
9528		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9529printf %s "checking if $CC supports -Wnonnull... " >&6; }
9530		cacheid=xorg_cv_cc_flag__Wnonnull
9531		if eval test \${$cacheid+y}
9532then :
9533  printf %s "(cached) " >&6
9534else case e in #(
9535  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9536/* end confdefs.h.  */
9537int i;
9538int
9539main (void)
9540{
9541
9542  ;
9543  return 0;
9544}
9545_ACEOF
9546if ac_fn_c_try_link "$LINENO"
9547then :
9548  eval $cacheid=yes
9549else case e in #(
9550  e) eval $cacheid=no ;;
9551esac
9552fi
9553rm -f core conftest.err conftest.$ac_objext conftest.beam \
9554    conftest$ac_exeext conftest.$ac_ext ;;
9555esac
9556fi
9557
9558
9559		CFLAGS="$xorg_testset_save_CFLAGS"
9560
9561		eval supported=\$$cacheid
9562		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9563printf "%s\n" "$supported" >&6; }
9564		if test "$supported" = "yes" ; then
9565			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9566			found="yes"
9567		fi
9568	fi
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584xorg_testset_save_CFLAGS="$CFLAGS"
9585
9586if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9587	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9588	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9589printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9590if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9591then :
9592  printf %s "(cached) " >&6
9593else case e in #(
9594  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9595/* end confdefs.h.  */
9596int i;
9597_ACEOF
9598if ac_fn_c_try_compile "$LINENO"
9599then :
9600  xorg_cv_cc_flag_unknown_warning_option=yes
9601else case e in #(
9602  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9603esac
9604fi
9605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9606esac
9607fi
9608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9609printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9610	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9611	CFLAGS="$xorg_testset_save_CFLAGS"
9612fi
9613
9614if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9615	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9616		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9617	fi
9618	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9619	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9620printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9621if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9622then :
9623  printf %s "(cached) " >&6
9624else case e in #(
9625  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9626/* end confdefs.h.  */
9627int i;
9628_ACEOF
9629if ac_fn_c_try_compile "$LINENO"
9630then :
9631  xorg_cv_cc_flag_unused_command_line_argument=yes
9632else case e in #(
9633  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9634esac
9635fi
9636rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9637esac
9638fi
9639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9640printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9641	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9642	CFLAGS="$xorg_testset_save_CFLAGS"
9643fi
9644
9645found="no"
9646
9647	if test $found = "no" ; then
9648		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9649			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9650		fi
9651
9652		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9653			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9654		fi
9655
9656		CFLAGS="$CFLAGS -Winit-self"
9657
9658		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9659printf %s "checking if $CC supports -Winit-self... " >&6; }
9660		cacheid=xorg_cv_cc_flag__Winit_self
9661		if eval test \${$cacheid+y}
9662then :
9663  printf %s "(cached) " >&6
9664else case e in #(
9665  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9666/* end confdefs.h.  */
9667int i;
9668int
9669main (void)
9670{
9671
9672  ;
9673  return 0;
9674}
9675_ACEOF
9676if ac_fn_c_try_link "$LINENO"
9677then :
9678  eval $cacheid=yes
9679else case e in #(
9680  e) eval $cacheid=no ;;
9681esac
9682fi
9683rm -f core conftest.err conftest.$ac_objext conftest.beam \
9684    conftest$ac_exeext conftest.$ac_ext ;;
9685esac
9686fi
9687
9688
9689		CFLAGS="$xorg_testset_save_CFLAGS"
9690
9691		eval supported=\$$cacheid
9692		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9693printf "%s\n" "$supported" >&6; }
9694		if test "$supported" = "yes" ; then
9695			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9696			found="yes"
9697		fi
9698	fi
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714xorg_testset_save_CFLAGS="$CFLAGS"
9715
9716if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9717	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9718	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9719printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9720if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9721then :
9722  printf %s "(cached) " >&6
9723else case e in #(
9724  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9725/* end confdefs.h.  */
9726int i;
9727_ACEOF
9728if ac_fn_c_try_compile "$LINENO"
9729then :
9730  xorg_cv_cc_flag_unknown_warning_option=yes
9731else case e in #(
9732  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9733esac
9734fi
9735rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9736esac
9737fi
9738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9739printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9740	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9741	CFLAGS="$xorg_testset_save_CFLAGS"
9742fi
9743
9744if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9745	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9746		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9747	fi
9748	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9749	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9750printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9751if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9752then :
9753  printf %s "(cached) " >&6
9754else case e in #(
9755  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9756/* end confdefs.h.  */
9757int i;
9758_ACEOF
9759if ac_fn_c_try_compile "$LINENO"
9760then :
9761  xorg_cv_cc_flag_unused_command_line_argument=yes
9762else case e in #(
9763  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9764esac
9765fi
9766rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9767esac
9768fi
9769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9770printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9771	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9772	CFLAGS="$xorg_testset_save_CFLAGS"
9773fi
9774
9775found="no"
9776
9777	if test $found = "no" ; then
9778		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9779			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9780		fi
9781
9782		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9783			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9784		fi
9785
9786		CFLAGS="$CFLAGS -Wmain"
9787
9788		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9789printf %s "checking if $CC supports -Wmain... " >&6; }
9790		cacheid=xorg_cv_cc_flag__Wmain
9791		if eval test \${$cacheid+y}
9792then :
9793  printf %s "(cached) " >&6
9794else case e in #(
9795  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9796/* end confdefs.h.  */
9797int i;
9798int
9799main (void)
9800{
9801
9802  ;
9803  return 0;
9804}
9805_ACEOF
9806if ac_fn_c_try_link "$LINENO"
9807then :
9808  eval $cacheid=yes
9809else case e in #(
9810  e) eval $cacheid=no ;;
9811esac
9812fi
9813rm -f core conftest.err conftest.$ac_objext conftest.beam \
9814    conftest$ac_exeext conftest.$ac_ext ;;
9815esac
9816fi
9817
9818
9819		CFLAGS="$xorg_testset_save_CFLAGS"
9820
9821		eval supported=\$$cacheid
9822		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9823printf "%s\n" "$supported" >&6; }
9824		if test "$supported" = "yes" ; then
9825			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9826			found="yes"
9827		fi
9828	fi
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844xorg_testset_save_CFLAGS="$CFLAGS"
9845
9846if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9847	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9848	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9849printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9850if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9851then :
9852  printf %s "(cached) " >&6
9853else case e in #(
9854  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9855/* end confdefs.h.  */
9856int i;
9857_ACEOF
9858if ac_fn_c_try_compile "$LINENO"
9859then :
9860  xorg_cv_cc_flag_unknown_warning_option=yes
9861else case e in #(
9862  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9863esac
9864fi
9865rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9866esac
9867fi
9868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9869printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9870	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9871	CFLAGS="$xorg_testset_save_CFLAGS"
9872fi
9873
9874if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9875	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9876		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9877	fi
9878	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9879	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9880printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9881if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9882then :
9883  printf %s "(cached) " >&6
9884else case e in #(
9885  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9886/* end confdefs.h.  */
9887int i;
9888_ACEOF
9889if ac_fn_c_try_compile "$LINENO"
9890then :
9891  xorg_cv_cc_flag_unused_command_line_argument=yes
9892else case e in #(
9893  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9894esac
9895fi
9896rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9897esac
9898fi
9899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9900printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9901	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9902	CFLAGS="$xorg_testset_save_CFLAGS"
9903fi
9904
9905found="no"
9906
9907	if test $found = "no" ; then
9908		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9909			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9910		fi
9911
9912		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9913			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9914		fi
9915
9916		CFLAGS="$CFLAGS -Wmissing-braces"
9917
9918		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9919printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9920		cacheid=xorg_cv_cc_flag__Wmissing_braces
9921		if eval test \${$cacheid+y}
9922then :
9923  printf %s "(cached) " >&6
9924else case e in #(
9925  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9926/* end confdefs.h.  */
9927int i;
9928int
9929main (void)
9930{
9931
9932  ;
9933  return 0;
9934}
9935_ACEOF
9936if ac_fn_c_try_link "$LINENO"
9937then :
9938  eval $cacheid=yes
9939else case e in #(
9940  e) eval $cacheid=no ;;
9941esac
9942fi
9943rm -f core conftest.err conftest.$ac_objext conftest.beam \
9944    conftest$ac_exeext conftest.$ac_ext ;;
9945esac
9946fi
9947
9948
9949		CFLAGS="$xorg_testset_save_CFLAGS"
9950
9951		eval supported=\$$cacheid
9952		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9953printf "%s\n" "$supported" >&6; }
9954		if test "$supported" = "yes" ; then
9955			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9956			found="yes"
9957		fi
9958	fi
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974xorg_testset_save_CFLAGS="$CFLAGS"
9975
9976if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9977	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9978	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9979printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9980if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9981then :
9982  printf %s "(cached) " >&6
9983else case e in #(
9984  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9985/* end confdefs.h.  */
9986int i;
9987_ACEOF
9988if ac_fn_c_try_compile "$LINENO"
9989then :
9990  xorg_cv_cc_flag_unknown_warning_option=yes
9991else case e in #(
9992  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9993esac
9994fi
9995rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9996esac
9997fi
9998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9999printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10000	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10001	CFLAGS="$xorg_testset_save_CFLAGS"
10002fi
10003
10004if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10005	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10006		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10007	fi
10008	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10009	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10010printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10011if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10012then :
10013  printf %s "(cached) " >&6
10014else case e in #(
10015  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016/* end confdefs.h.  */
10017int i;
10018_ACEOF
10019if ac_fn_c_try_compile "$LINENO"
10020then :
10021  xorg_cv_cc_flag_unused_command_line_argument=yes
10022else case e in #(
10023  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10024esac
10025fi
10026rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10027esac
10028fi
10029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10030printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10031	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10032	CFLAGS="$xorg_testset_save_CFLAGS"
10033fi
10034
10035found="no"
10036
10037	if test $found = "no" ; then
10038		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10039			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10040		fi
10041
10042		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10043			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10044		fi
10045
10046		CFLAGS="$CFLAGS -Wsequence-point"
10047
10048		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
10049printf %s "checking if $CC supports -Wsequence-point... " >&6; }
10050		cacheid=xorg_cv_cc_flag__Wsequence_point
10051		if eval test \${$cacheid+y}
10052then :
10053  printf %s "(cached) " >&6
10054else case e in #(
10055  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10056/* end confdefs.h.  */
10057int i;
10058int
10059main (void)
10060{
10061
10062  ;
10063  return 0;
10064}
10065_ACEOF
10066if ac_fn_c_try_link "$LINENO"
10067then :
10068  eval $cacheid=yes
10069else case e in #(
10070  e) eval $cacheid=no ;;
10071esac
10072fi
10073rm -f core conftest.err conftest.$ac_objext conftest.beam \
10074    conftest$ac_exeext conftest.$ac_ext ;;
10075esac
10076fi
10077
10078
10079		CFLAGS="$xorg_testset_save_CFLAGS"
10080
10081		eval supported=\$$cacheid
10082		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10083printf "%s\n" "$supported" >&6; }
10084		if test "$supported" = "yes" ; then
10085			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
10086			found="yes"
10087		fi
10088	fi
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104xorg_testset_save_CFLAGS="$CFLAGS"
10105
10106if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10107	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10108	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10109printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10110if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10111then :
10112  printf %s "(cached) " >&6
10113else case e in #(
10114  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10115/* end confdefs.h.  */
10116int i;
10117_ACEOF
10118if ac_fn_c_try_compile "$LINENO"
10119then :
10120  xorg_cv_cc_flag_unknown_warning_option=yes
10121else case e in #(
10122  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10123esac
10124fi
10125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10126esac
10127fi
10128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10129printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10130	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10131	CFLAGS="$xorg_testset_save_CFLAGS"
10132fi
10133
10134if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10135	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10136		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10137	fi
10138	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10139	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10140printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10141if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10142then :
10143  printf %s "(cached) " >&6
10144else case e in #(
10145  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10146/* end confdefs.h.  */
10147int i;
10148_ACEOF
10149if ac_fn_c_try_compile "$LINENO"
10150then :
10151  xorg_cv_cc_flag_unused_command_line_argument=yes
10152else case e in #(
10153  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10154esac
10155fi
10156rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10157esac
10158fi
10159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10160printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10161	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10162	CFLAGS="$xorg_testset_save_CFLAGS"
10163fi
10164
10165found="no"
10166
10167	if test $found = "no" ; then
10168		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10169			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10170		fi
10171
10172		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10173			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10174		fi
10175
10176		CFLAGS="$CFLAGS -Wreturn-type"
10177
10178		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10179printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10180		cacheid=xorg_cv_cc_flag__Wreturn_type
10181		if eval test \${$cacheid+y}
10182then :
10183  printf %s "(cached) " >&6
10184else case e in #(
10185  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186/* end confdefs.h.  */
10187int i;
10188int
10189main (void)
10190{
10191
10192  ;
10193  return 0;
10194}
10195_ACEOF
10196if ac_fn_c_try_link "$LINENO"
10197then :
10198  eval $cacheid=yes
10199else case e in #(
10200  e) eval $cacheid=no ;;
10201esac
10202fi
10203rm -f core conftest.err conftest.$ac_objext conftest.beam \
10204    conftest$ac_exeext conftest.$ac_ext ;;
10205esac
10206fi
10207
10208
10209		CFLAGS="$xorg_testset_save_CFLAGS"
10210
10211		eval supported=\$$cacheid
10212		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10213printf "%s\n" "$supported" >&6; }
10214		if test "$supported" = "yes" ; then
10215			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10216			found="yes"
10217		fi
10218	fi
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234xorg_testset_save_CFLAGS="$CFLAGS"
10235
10236if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10237	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10238	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10239printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10240if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10241then :
10242  printf %s "(cached) " >&6
10243else case e in #(
10244  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10245/* end confdefs.h.  */
10246int i;
10247_ACEOF
10248if ac_fn_c_try_compile "$LINENO"
10249then :
10250  xorg_cv_cc_flag_unknown_warning_option=yes
10251else case e in #(
10252  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10253esac
10254fi
10255rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10256esac
10257fi
10258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10259printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10260	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10261	CFLAGS="$xorg_testset_save_CFLAGS"
10262fi
10263
10264if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10265	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10266		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10267	fi
10268	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10269	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10270printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10271if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10272then :
10273  printf %s "(cached) " >&6
10274else case e in #(
10275  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10276/* end confdefs.h.  */
10277int i;
10278_ACEOF
10279if ac_fn_c_try_compile "$LINENO"
10280then :
10281  xorg_cv_cc_flag_unused_command_line_argument=yes
10282else case e in #(
10283  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10284esac
10285fi
10286rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10287esac
10288fi
10289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10290printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10291	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10292	CFLAGS="$xorg_testset_save_CFLAGS"
10293fi
10294
10295found="no"
10296
10297	if test $found = "no" ; then
10298		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10299			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10300		fi
10301
10302		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10303			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10304		fi
10305
10306		CFLAGS="$CFLAGS -Wtrigraphs"
10307
10308		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10309printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10310		cacheid=xorg_cv_cc_flag__Wtrigraphs
10311		if eval test \${$cacheid+y}
10312then :
10313  printf %s "(cached) " >&6
10314else case e in #(
10315  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10316/* end confdefs.h.  */
10317int i;
10318int
10319main (void)
10320{
10321
10322  ;
10323  return 0;
10324}
10325_ACEOF
10326if ac_fn_c_try_link "$LINENO"
10327then :
10328  eval $cacheid=yes
10329else case e in #(
10330  e) eval $cacheid=no ;;
10331esac
10332fi
10333rm -f core conftest.err conftest.$ac_objext conftest.beam \
10334    conftest$ac_exeext conftest.$ac_ext ;;
10335esac
10336fi
10337
10338
10339		CFLAGS="$xorg_testset_save_CFLAGS"
10340
10341		eval supported=\$$cacheid
10342		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10343printf "%s\n" "$supported" >&6; }
10344		if test "$supported" = "yes" ; then
10345			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10346			found="yes"
10347		fi
10348	fi
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364xorg_testset_save_CFLAGS="$CFLAGS"
10365
10366if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10367	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10368	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10369printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10370if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10371then :
10372  printf %s "(cached) " >&6
10373else case e in #(
10374  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10375/* end confdefs.h.  */
10376int i;
10377_ACEOF
10378if ac_fn_c_try_compile "$LINENO"
10379then :
10380  xorg_cv_cc_flag_unknown_warning_option=yes
10381else case e in #(
10382  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10383esac
10384fi
10385rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10386esac
10387fi
10388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10389printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10390	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10391	CFLAGS="$xorg_testset_save_CFLAGS"
10392fi
10393
10394if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10395	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10396		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10397	fi
10398	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10399	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10400printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10401if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10402then :
10403  printf %s "(cached) " >&6
10404else case e in #(
10405  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10406/* end confdefs.h.  */
10407int i;
10408_ACEOF
10409if ac_fn_c_try_compile "$LINENO"
10410then :
10411  xorg_cv_cc_flag_unused_command_line_argument=yes
10412else case e in #(
10413  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10414esac
10415fi
10416rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10417esac
10418fi
10419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10420printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10421	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10422	CFLAGS="$xorg_testset_save_CFLAGS"
10423fi
10424
10425found="no"
10426
10427	if test $found = "no" ; then
10428		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10429			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10430		fi
10431
10432		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10433			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10434		fi
10435
10436		CFLAGS="$CFLAGS -Warray-bounds"
10437
10438		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10439printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10440		cacheid=xorg_cv_cc_flag__Warray_bounds
10441		if eval test \${$cacheid+y}
10442then :
10443  printf %s "(cached) " >&6
10444else case e in #(
10445  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10446/* end confdefs.h.  */
10447int i;
10448int
10449main (void)
10450{
10451
10452  ;
10453  return 0;
10454}
10455_ACEOF
10456if ac_fn_c_try_link "$LINENO"
10457then :
10458  eval $cacheid=yes
10459else case e in #(
10460  e) eval $cacheid=no ;;
10461esac
10462fi
10463rm -f core conftest.err conftest.$ac_objext conftest.beam \
10464    conftest$ac_exeext conftest.$ac_ext ;;
10465esac
10466fi
10467
10468
10469		CFLAGS="$xorg_testset_save_CFLAGS"
10470
10471		eval supported=\$$cacheid
10472		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10473printf "%s\n" "$supported" >&6; }
10474		if test "$supported" = "yes" ; then
10475			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10476			found="yes"
10477		fi
10478	fi
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494xorg_testset_save_CFLAGS="$CFLAGS"
10495
10496if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10497	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10498	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10499printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10500if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10501then :
10502  printf %s "(cached) " >&6
10503else case e in #(
10504  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10505/* end confdefs.h.  */
10506int i;
10507_ACEOF
10508if ac_fn_c_try_compile "$LINENO"
10509then :
10510  xorg_cv_cc_flag_unknown_warning_option=yes
10511else case e in #(
10512  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10513esac
10514fi
10515rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10516esac
10517fi
10518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10519printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10520	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10521	CFLAGS="$xorg_testset_save_CFLAGS"
10522fi
10523
10524if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10525	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10526		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10527	fi
10528	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10529	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10530printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10531if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10532then :
10533  printf %s "(cached) " >&6
10534else case e in #(
10535  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10536/* end confdefs.h.  */
10537int i;
10538_ACEOF
10539if ac_fn_c_try_compile "$LINENO"
10540then :
10541  xorg_cv_cc_flag_unused_command_line_argument=yes
10542else case e in #(
10543  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10544esac
10545fi
10546rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10547esac
10548fi
10549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10550printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10551	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10552	CFLAGS="$xorg_testset_save_CFLAGS"
10553fi
10554
10555found="no"
10556
10557	if test $found = "no" ; then
10558		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10559			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10560		fi
10561
10562		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10563			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10564		fi
10565
10566		CFLAGS="$CFLAGS -Wwrite-strings"
10567
10568		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10569printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10570		cacheid=xorg_cv_cc_flag__Wwrite_strings
10571		if eval test \${$cacheid+y}
10572then :
10573  printf %s "(cached) " >&6
10574else case e in #(
10575  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10576/* end confdefs.h.  */
10577int i;
10578int
10579main (void)
10580{
10581
10582  ;
10583  return 0;
10584}
10585_ACEOF
10586if ac_fn_c_try_link "$LINENO"
10587then :
10588  eval $cacheid=yes
10589else case e in #(
10590  e) eval $cacheid=no ;;
10591esac
10592fi
10593rm -f core conftest.err conftest.$ac_objext conftest.beam \
10594    conftest$ac_exeext conftest.$ac_ext ;;
10595esac
10596fi
10597
10598
10599		CFLAGS="$xorg_testset_save_CFLAGS"
10600
10601		eval supported=\$$cacheid
10602		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10603printf "%s\n" "$supported" >&6; }
10604		if test "$supported" = "yes" ; then
10605			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10606			found="yes"
10607		fi
10608	fi
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624xorg_testset_save_CFLAGS="$CFLAGS"
10625
10626if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10627	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10628	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10629printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10630if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10631then :
10632  printf %s "(cached) " >&6
10633else case e in #(
10634  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10635/* end confdefs.h.  */
10636int i;
10637_ACEOF
10638if ac_fn_c_try_compile "$LINENO"
10639then :
10640  xorg_cv_cc_flag_unknown_warning_option=yes
10641else case e in #(
10642  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10643esac
10644fi
10645rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10646esac
10647fi
10648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10649printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10650	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10651	CFLAGS="$xorg_testset_save_CFLAGS"
10652fi
10653
10654if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10655	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10656		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10657	fi
10658	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10659	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10660printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10661if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10662then :
10663  printf %s "(cached) " >&6
10664else case e in #(
10665  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10666/* end confdefs.h.  */
10667int i;
10668_ACEOF
10669if ac_fn_c_try_compile "$LINENO"
10670then :
10671  xorg_cv_cc_flag_unused_command_line_argument=yes
10672else case e in #(
10673  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10674esac
10675fi
10676rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10677esac
10678fi
10679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10680printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10681	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10682	CFLAGS="$xorg_testset_save_CFLAGS"
10683fi
10684
10685found="no"
10686
10687	if test $found = "no" ; then
10688		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10689			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10690		fi
10691
10692		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10693			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10694		fi
10695
10696		CFLAGS="$CFLAGS -Waddress"
10697
10698		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10699printf %s "checking if $CC supports -Waddress... " >&6; }
10700		cacheid=xorg_cv_cc_flag__Waddress
10701		if eval test \${$cacheid+y}
10702then :
10703  printf %s "(cached) " >&6
10704else case e in #(
10705  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10706/* end confdefs.h.  */
10707int i;
10708int
10709main (void)
10710{
10711
10712  ;
10713  return 0;
10714}
10715_ACEOF
10716if ac_fn_c_try_link "$LINENO"
10717then :
10718  eval $cacheid=yes
10719else case e in #(
10720  e) eval $cacheid=no ;;
10721esac
10722fi
10723rm -f core conftest.err conftest.$ac_objext conftest.beam \
10724    conftest$ac_exeext conftest.$ac_ext ;;
10725esac
10726fi
10727
10728
10729		CFLAGS="$xorg_testset_save_CFLAGS"
10730
10731		eval supported=\$$cacheid
10732		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10733printf "%s\n" "$supported" >&6; }
10734		if test "$supported" = "yes" ; then
10735			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10736			found="yes"
10737		fi
10738	fi
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754xorg_testset_save_CFLAGS="$CFLAGS"
10755
10756if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10757	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10758	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10759printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10760if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10761then :
10762  printf %s "(cached) " >&6
10763else case e in #(
10764  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10765/* end confdefs.h.  */
10766int i;
10767_ACEOF
10768if ac_fn_c_try_compile "$LINENO"
10769then :
10770  xorg_cv_cc_flag_unknown_warning_option=yes
10771else case e in #(
10772  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10773esac
10774fi
10775rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10776esac
10777fi
10778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10779printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10780	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10781	CFLAGS="$xorg_testset_save_CFLAGS"
10782fi
10783
10784if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10785	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10786		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10787	fi
10788	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10789	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10790printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10791if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10792then :
10793  printf %s "(cached) " >&6
10794else case e in #(
10795  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10796/* end confdefs.h.  */
10797int i;
10798_ACEOF
10799if ac_fn_c_try_compile "$LINENO"
10800then :
10801  xorg_cv_cc_flag_unused_command_line_argument=yes
10802else case e in #(
10803  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10804esac
10805fi
10806rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10807esac
10808fi
10809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10810printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10811	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10812	CFLAGS="$xorg_testset_save_CFLAGS"
10813fi
10814
10815found="no"
10816
10817	if test $found = "no" ; then
10818		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10819			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10820		fi
10821
10822		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10823			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10824		fi
10825
10826		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10827
10828		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10829printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10830		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10831		if eval test \${$cacheid+y}
10832then :
10833  printf %s "(cached) " >&6
10834else case e in #(
10835  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836/* end confdefs.h.  */
10837int i;
10838int
10839main (void)
10840{
10841
10842  ;
10843  return 0;
10844}
10845_ACEOF
10846if ac_fn_c_try_link "$LINENO"
10847then :
10848  eval $cacheid=yes
10849else case e in #(
10850  e) eval $cacheid=no ;;
10851esac
10852fi
10853rm -f core conftest.err conftest.$ac_objext conftest.beam \
10854    conftest$ac_exeext conftest.$ac_ext ;;
10855esac
10856fi
10857
10858
10859		CFLAGS="$xorg_testset_save_CFLAGS"
10860
10861		eval supported=\$$cacheid
10862		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10863printf "%s\n" "$supported" >&6; }
10864		if test "$supported" = "yes" ; then
10865			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10866			found="yes"
10867		fi
10868	fi
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884xorg_testset_save_CFLAGS="$CFLAGS"
10885
10886if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10887	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10888	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10889printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10890if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10891then :
10892  printf %s "(cached) " >&6
10893else case e in #(
10894  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895/* end confdefs.h.  */
10896int i;
10897_ACEOF
10898if ac_fn_c_try_compile "$LINENO"
10899then :
10900  xorg_cv_cc_flag_unknown_warning_option=yes
10901else case e in #(
10902  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10903esac
10904fi
10905rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10906esac
10907fi
10908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10909printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10910	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10911	CFLAGS="$xorg_testset_save_CFLAGS"
10912fi
10913
10914if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10915	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10916		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10917	fi
10918	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10919	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10920printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10921if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10922then :
10923  printf %s "(cached) " >&6
10924else case e in #(
10925  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10926/* end confdefs.h.  */
10927int i;
10928_ACEOF
10929if ac_fn_c_try_compile "$LINENO"
10930then :
10931  xorg_cv_cc_flag_unused_command_line_argument=yes
10932else case e in #(
10933  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10934esac
10935fi
10936rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10937esac
10938fi
10939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10940printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10941	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10942	CFLAGS="$xorg_testset_save_CFLAGS"
10943fi
10944
10945found="no"
10946
10947	if test $found = "no" ; then
10948		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10949			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10950		fi
10951
10952		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10953			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10954		fi
10955
10956		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10957
10958		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10959printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10960		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10961		if eval test \${$cacheid+y}
10962then :
10963  printf %s "(cached) " >&6
10964else case e in #(
10965  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10966/* end confdefs.h.  */
10967int i;
10968int
10969main (void)
10970{
10971
10972  ;
10973  return 0;
10974}
10975_ACEOF
10976if ac_fn_c_try_link "$LINENO"
10977then :
10978  eval $cacheid=yes
10979else case e in #(
10980  e) eval $cacheid=no ;;
10981esac
10982fi
10983rm -f core conftest.err conftest.$ac_objext conftest.beam \
10984    conftest$ac_exeext conftest.$ac_ext ;;
10985esac
10986fi
10987
10988
10989		CFLAGS="$xorg_testset_save_CFLAGS"
10990
10991		eval supported=\$$cacheid
10992		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10993printf "%s\n" "$supported" >&6; }
10994		if test "$supported" = "yes" ; then
10995			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10996			found="yes"
10997		fi
10998	fi
10999
11000
11001fi
11002
11003
11004
11005
11006
11007
11008
11009		CWARNFLAGS="$BASE_CFLAGS"
11010		if  test "x$GCC" = xyes ; then
11011		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
11012		fi
11013
11014
11015
11016
11017
11018
11019
11020
11021# Check whether --enable-strict-compilation was given.
11022if test ${enable_strict_compilation+y}
11023then :
11024  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11025else case e in #(
11026  e) STRICT_COMPILE=no ;;
11027esac
11028fi
11029
11030
11031
11032
11033
11034
11035STRICT_CFLAGS=""
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049xorg_testset_save_CFLAGS="$CFLAGS"
11050
11051if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11052	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11053	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11054printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11055if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11056then :
11057  printf %s "(cached) " >&6
11058else case e in #(
11059  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11060/* end confdefs.h.  */
11061int i;
11062_ACEOF
11063if ac_fn_c_try_compile "$LINENO"
11064then :
11065  xorg_cv_cc_flag_unknown_warning_option=yes
11066else case e in #(
11067  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11068esac
11069fi
11070rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11071esac
11072fi
11073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11074printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11075	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11076	CFLAGS="$xorg_testset_save_CFLAGS"
11077fi
11078
11079if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11080	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11081		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11082	fi
11083	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11084	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11085printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11086if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11087then :
11088  printf %s "(cached) " >&6
11089else case e in #(
11090  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11091/* end confdefs.h.  */
11092int i;
11093_ACEOF
11094if ac_fn_c_try_compile "$LINENO"
11095then :
11096  xorg_cv_cc_flag_unused_command_line_argument=yes
11097else case e in #(
11098  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11099esac
11100fi
11101rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11102esac
11103fi
11104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11105printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11106	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11107	CFLAGS="$xorg_testset_save_CFLAGS"
11108fi
11109
11110found="no"
11111
11112	if test $found = "no" ; then
11113		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11114			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11115		fi
11116
11117		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11118			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11119		fi
11120
11121		CFLAGS="$CFLAGS -pedantic"
11122
11123		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11124printf %s "checking if $CC supports -pedantic... " >&6; }
11125		cacheid=xorg_cv_cc_flag__pedantic
11126		if eval test \${$cacheid+y}
11127then :
11128  printf %s "(cached) " >&6
11129else case e in #(
11130  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11131/* end confdefs.h.  */
11132int i;
11133int
11134main (void)
11135{
11136
11137  ;
11138  return 0;
11139}
11140_ACEOF
11141if ac_fn_c_try_link "$LINENO"
11142then :
11143  eval $cacheid=yes
11144else case e in #(
11145  e) eval $cacheid=no ;;
11146esac
11147fi
11148rm -f core conftest.err conftest.$ac_objext conftest.beam \
11149    conftest$ac_exeext conftest.$ac_ext ;;
11150esac
11151fi
11152
11153
11154		CFLAGS="$xorg_testset_save_CFLAGS"
11155
11156		eval supported=\$$cacheid
11157		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11158printf "%s\n" "$supported" >&6; }
11159		if test "$supported" = "yes" ; then
11160			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11161			found="yes"
11162		fi
11163	fi
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179xorg_testset_save_CFLAGS="$CFLAGS"
11180
11181if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11182	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11183	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11184printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11185if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11186then :
11187  printf %s "(cached) " >&6
11188else case e in #(
11189  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11190/* end confdefs.h.  */
11191int i;
11192_ACEOF
11193if ac_fn_c_try_compile "$LINENO"
11194then :
11195  xorg_cv_cc_flag_unknown_warning_option=yes
11196else case e in #(
11197  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11198esac
11199fi
11200rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11201esac
11202fi
11203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11204printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11205	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11206	CFLAGS="$xorg_testset_save_CFLAGS"
11207fi
11208
11209if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11210	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11211		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11212	fi
11213	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11214	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11215printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11216if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11217then :
11218  printf %s "(cached) " >&6
11219else case e in #(
11220  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11221/* end confdefs.h.  */
11222int i;
11223_ACEOF
11224if ac_fn_c_try_compile "$LINENO"
11225then :
11226  xorg_cv_cc_flag_unused_command_line_argument=yes
11227else case e in #(
11228  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11229esac
11230fi
11231rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11232esac
11233fi
11234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11235printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11236	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11237	CFLAGS="$xorg_testset_save_CFLAGS"
11238fi
11239
11240found="no"
11241
11242	if test $found = "no" ; then
11243		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11244			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11245		fi
11246
11247		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11248			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11249		fi
11250
11251		CFLAGS="$CFLAGS -Werror"
11252
11253		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11254printf %s "checking if $CC supports -Werror... " >&6; }
11255		cacheid=xorg_cv_cc_flag__Werror
11256		if eval test \${$cacheid+y}
11257then :
11258  printf %s "(cached) " >&6
11259else case e in #(
11260  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11261/* end confdefs.h.  */
11262int i;
11263int
11264main (void)
11265{
11266
11267  ;
11268  return 0;
11269}
11270_ACEOF
11271if ac_fn_c_try_link "$LINENO"
11272then :
11273  eval $cacheid=yes
11274else case e in #(
11275  e) eval $cacheid=no ;;
11276esac
11277fi
11278rm -f core conftest.err conftest.$ac_objext conftest.beam \
11279    conftest$ac_exeext conftest.$ac_ext ;;
11280esac
11281fi
11282
11283
11284		CFLAGS="$xorg_testset_save_CFLAGS"
11285
11286		eval supported=\$$cacheid
11287		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11288printf "%s\n" "$supported" >&6; }
11289		if test "$supported" = "yes" ; then
11290			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11291			found="yes"
11292		fi
11293	fi
11294
11295	if test $found = "no" ; then
11296		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11297			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11298		fi
11299
11300		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11301			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11302		fi
11303
11304		CFLAGS="$CFLAGS -errwarn"
11305
11306		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11307printf %s "checking if $CC supports -errwarn... " >&6; }
11308		cacheid=xorg_cv_cc_flag__errwarn
11309		if eval test \${$cacheid+y}
11310then :
11311  printf %s "(cached) " >&6
11312else case e in #(
11313  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11314/* end confdefs.h.  */
11315int i;
11316int
11317main (void)
11318{
11319
11320  ;
11321  return 0;
11322}
11323_ACEOF
11324if ac_fn_c_try_link "$LINENO"
11325then :
11326  eval $cacheid=yes
11327else case e in #(
11328  e) eval $cacheid=no ;;
11329esac
11330fi
11331rm -f core conftest.err conftest.$ac_objext conftest.beam \
11332    conftest$ac_exeext conftest.$ac_ext ;;
11333esac
11334fi
11335
11336
11337		CFLAGS="$xorg_testset_save_CFLAGS"
11338
11339		eval supported=\$$cacheid
11340		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11341printf "%s\n" "$supported" >&6; }
11342		if test "$supported" = "yes" ; then
11343			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11344			found="yes"
11345		fi
11346	fi
11347
11348
11349
11350# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11351# activate it with -Werror, so we add it here explicitly.
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365xorg_testset_save_CFLAGS="$CFLAGS"
11366
11367if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11368	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11369	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11370printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11371if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11372then :
11373  printf %s "(cached) " >&6
11374else case e in #(
11375  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11376/* end confdefs.h.  */
11377int i;
11378_ACEOF
11379if ac_fn_c_try_compile "$LINENO"
11380then :
11381  xorg_cv_cc_flag_unknown_warning_option=yes
11382else case e in #(
11383  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11384esac
11385fi
11386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11387esac
11388fi
11389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11390printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11391	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11392	CFLAGS="$xorg_testset_save_CFLAGS"
11393fi
11394
11395if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11396	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11397		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11398	fi
11399	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11400	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11401printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11402if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11403then :
11404  printf %s "(cached) " >&6
11405else case e in #(
11406  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11407/* end confdefs.h.  */
11408int i;
11409_ACEOF
11410if ac_fn_c_try_compile "$LINENO"
11411then :
11412  xorg_cv_cc_flag_unused_command_line_argument=yes
11413else case e in #(
11414  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11415esac
11416fi
11417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11418esac
11419fi
11420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11421printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11422	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11423	CFLAGS="$xorg_testset_save_CFLAGS"
11424fi
11425
11426found="no"
11427
11428	if test $found = "no" ; then
11429		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11430			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11431		fi
11432
11433		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11434			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11435		fi
11436
11437		CFLAGS="$CFLAGS -Werror=attributes"
11438
11439		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11440printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11441		cacheid=xorg_cv_cc_flag__Werror_attributes
11442		if eval test \${$cacheid+y}
11443then :
11444  printf %s "(cached) " >&6
11445else case e in #(
11446  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11447/* end confdefs.h.  */
11448int i;
11449int
11450main (void)
11451{
11452
11453  ;
11454  return 0;
11455}
11456_ACEOF
11457if ac_fn_c_try_link "$LINENO"
11458then :
11459  eval $cacheid=yes
11460else case e in #(
11461  e) eval $cacheid=no ;;
11462esac
11463fi
11464rm -f core conftest.err conftest.$ac_objext conftest.beam \
11465    conftest$ac_exeext conftest.$ac_ext ;;
11466esac
11467fi
11468
11469
11470		CFLAGS="$xorg_testset_save_CFLAGS"
11471
11472		eval supported=\$$cacheid
11473		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11474printf "%s\n" "$supported" >&6; }
11475		if test "$supported" = "yes" ; then
11476			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11477			found="yes"
11478		fi
11479	fi
11480
11481
11482
11483if test "x$STRICT_COMPILE" = "xyes"; then
11484    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11485    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11486fi
11487
11488
11489
11490
11491
11492
11493
11494
11495cat >>confdefs.h <<_ACEOF
11496#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11497_ACEOF
11498
11499	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11500	if test "x$PVM" = "x"; then
11501		PVM="0"
11502	fi
11503
11504printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11505
11506	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11507	if test "x$PVP" = "x"; then
11508		PVP="0"
11509	fi
11510
11511printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11512
11513
11514
11515CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11516mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11517|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11518touch \$(top_srcdir)/ChangeLog; \
11519echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11520
11521
11522
11523
11524macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11525INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11526mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11527|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11528touch \$(top_srcdir)/INSTALL; \
11529echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11530
11531
11532
11533
11534
11535
11536case $host_os in
11537    solaris*)
11538        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11539        # check for a man page file found in later versions that use
11540        # traditional section numbers instead
11541        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11542printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11543if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11544then :
11545  printf %s "(cached) " >&6
11546else case e in #(
11547  e) test "$cross_compiling" = yes &&
11548  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11549if test -r "/usr/share/man/man7/attributes.7"; then
11550  ac_cv_file__usr_share_man_man7_attributes_7=yes
11551else
11552  ac_cv_file__usr_share_man_man7_attributes_7=no
11553fi ;;
11554esac
11555fi
11556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11557printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11558if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11559then :
11560  SYSV_MAN_SECTIONS=false
11561else case e in #(
11562  e) SYSV_MAN_SECTIONS=true ;;
11563esac
11564fi
11565
11566        ;;
11567    *) SYSV_MAN_SECTIONS=false ;;
11568esac
11569
11570if test x$APP_MAN_SUFFIX = x    ; then
11571    APP_MAN_SUFFIX=1
11572fi
11573if test x$APP_MAN_DIR = x    ; then
11574    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11575fi
11576
11577if test x$LIB_MAN_SUFFIX = x    ; then
11578    LIB_MAN_SUFFIX=3
11579fi
11580if test x$LIB_MAN_DIR = x    ; then
11581    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11582fi
11583
11584if test x$FILE_MAN_SUFFIX = x    ; then
11585    case $SYSV_MAN_SECTIONS in
11586	true)				FILE_MAN_SUFFIX=4  ;;
11587	*)				FILE_MAN_SUFFIX=5  ;;
11588    esac
11589fi
11590if test x$FILE_MAN_DIR = x    ; then
11591    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11592fi
11593
11594if test x$MISC_MAN_SUFFIX = x    ; then
11595    case $SYSV_MAN_SECTIONS in
11596	true)				MISC_MAN_SUFFIX=5  ;;
11597	*)				MISC_MAN_SUFFIX=7  ;;
11598    esac
11599fi
11600if test x$MISC_MAN_DIR = x    ; then
11601    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11602fi
11603
11604if test x$DRIVER_MAN_SUFFIX = x    ; then
11605    case $SYSV_MAN_SECTIONS in
11606	true)				DRIVER_MAN_SUFFIX=7  ;;
11607	*)				DRIVER_MAN_SUFFIX=4  ;;
11608    esac
11609fi
11610if test x$DRIVER_MAN_DIR = x    ; then
11611    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11612fi
11613
11614if test x$ADMIN_MAN_SUFFIX = x    ; then
11615    case $SYSV_MAN_SECTIONS in
11616	true)				ADMIN_MAN_SUFFIX=1m ;;
11617	*)				ADMIN_MAN_SUFFIX=8  ;;
11618    esac
11619fi
11620if test x$ADMIN_MAN_DIR = x    ; then
11621    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11622fi
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638XORG_MAN_PAGE="X Version 11"
11639
11640MAN_SUBSTS="\
11641	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11642	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11643	-e 's|__xservername__|Xorg|g' \
11644	-e 's|__xconfigfile__|xorg.conf|g' \
11645	-e 's|__projectroot__|\$(prefix)|g' \
11646	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11647	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11648	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11649	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11650	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11651	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11652	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11653
11654
11655
11656# Check whether --enable-silent-rules was given.
11657if test ${enable_silent_rules+y}
11658then :
11659  enableval=$enable_silent_rules;
11660fi
11661
11662case $enable_silent_rules in # (((
11663  yes) AM_DEFAULT_VERBOSITY=0;;
11664   no) AM_DEFAULT_VERBOSITY=1;;
11665    *) AM_DEFAULT_VERBOSITY=0;;
11666esac
11667am_make=${MAKE-make}
11668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11669printf %s "checking whether $am_make supports nested variables... " >&6; }
11670if test ${am_cv_make_support_nested_variables+y}
11671then :
11672  printf %s "(cached) " >&6
11673else case e in #(
11674  e) if printf "%s\n" 'TRUE=$(BAR$(V))
11675BAR0=false
11676BAR1=true
11677V=1
11678am__doit:
11679	@$(TRUE)
11680.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11681  am_cv_make_support_nested_variables=yes
11682else
11683  am_cv_make_support_nested_variables=no
11684fi ;;
11685esac
11686fi
11687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11688printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11689if test $am_cv_make_support_nested_variables = yes; then
11690    AM_V='$(V)'
11691  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11692else
11693  AM_V=$AM_DEFAULT_VERBOSITY
11694  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11695fi
11696AM_BACKSLASH='\'
11697
11698
11699
11700
11701
11702# Check whether --with-bzip2 was given.
11703if test ${with_bzip2+y}
11704then :
11705  withval=$with_bzip2;
11706else case e in #(
11707  e) with_bzip2=no ;;
11708esac
11709fi
11710
11711if test "x$with_bzip2" = xyes; then
11712	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzopen in -lbz2" >&5
11713printf %s "checking for BZ2_bzopen in -lbz2... " >&6; }
11714if test ${ac_cv_lib_bz2_BZ2_bzopen+y}
11715then :
11716  printf %s "(cached) " >&6
11717else case e in #(
11718  e) ac_check_lib_save_LIBS=$LIBS
11719LIBS="-lbz2  $LIBS"
11720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11721/* end confdefs.h.  */
11722
11723/* Override any GCC internal prototype to avoid an error.
11724   Use char because int might match the return type of a GCC
11725   builtin and then its argument prototype would still apply.
11726   The 'extern "C"' is for builds by C++ compilers;
11727   although this is not generally supported in C code supporting it here
11728   has little cost and some practical benefit (sr 110532).  */
11729#ifdef __cplusplus
11730extern "C"
11731#endif
11732char BZ2_bzopen (void);
11733int
11734main (void)
11735{
11736return BZ2_bzopen ();
11737  ;
11738  return 0;
11739}
11740_ACEOF
11741if ac_fn_c_try_link "$LINENO"
11742then :
11743  ac_cv_lib_bz2_BZ2_bzopen=yes
11744else case e in #(
11745  e) ac_cv_lib_bz2_BZ2_bzopen=no ;;
11746esac
11747fi
11748rm -f core conftest.err conftest.$ac_objext conftest.beam \
11749    conftest$ac_exeext conftest.$ac_ext
11750LIBS=$ac_check_lib_save_LIBS ;;
11751esac
11752fi
11753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5
11754printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzopen" >&6; }
11755if test "x$ac_cv_lib_bz2_BZ2_bzopen" = xyes
11756then :
11757  printf "%s\n" "#define HAVE_LIBBZ2 1" >>confdefs.h
11758
11759  LIBS="-lbz2 $LIBS"
11760
11761else case e in #(
11762  e) as_fn_error $? "*** libbz2 is required for bzip2 support" "$LINENO" 5 ;;
11763esac
11764fi
11765
11766
11767printf "%s\n" "#define X_BZIP2_FONT_COMPRESSION 1" >>confdefs.h
11768
11769fi
11770
11771# Checks for typedefs, structures, and compiler characteristics.
11772# Check whether --enable-largefile was given.
11773if test ${enable_largefile+y}
11774then :
11775  enableval=$enable_largefile;
11776fi
11777if test "$enable_largefile,$enable_year2038" != no,no
11778then :
11779  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
11780printf %s "checking for $CC option to enable large file support... " >&6; }
11781if test ${ac_cv_sys_largefile_opts+y}
11782then :
11783  printf %s "(cached) " >&6
11784else case e in #(
11785  e) ac_save_CC="$CC"
11786  ac_opt_found=no
11787  for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
11788    if test x"$ac_opt" != x"none needed"
11789then :
11790  CC="$ac_save_CC $ac_opt"
11791fi
11792    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11793/* end confdefs.h.  */
11794#include <sys/types.h>
11795#ifndef FTYPE
11796# define FTYPE off_t
11797#endif
11798 /* Check that FTYPE can represent 2**63 - 1 correctly.
11799    We can't simply define LARGE_FTYPE to be 9223372036854775807,
11800    since some C++ compilers masquerading as C compilers
11801    incorrectly reject 9223372036854775807.  */
11802#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
11803  int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
11804		       && LARGE_FTYPE % 2147483647 == 1)
11805		      ? 1 : -1];
11806int
11807main (void)
11808{
11809
11810  ;
11811  return 0;
11812}
11813_ACEOF
11814if ac_fn_c_try_compile "$LINENO"
11815then :
11816  if test x"$ac_opt" = x"none needed"
11817then :
11818  # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
11819	 CC="$CC -DFTYPE=ino_t"
11820	 if ac_fn_c_try_compile "$LINENO"
11821then :
11822
11823else case e in #(
11824  e) CC="$CC -D_FILE_OFFSET_BITS=64"
11825	    if ac_fn_c_try_compile "$LINENO"
11826then :
11827  ac_opt='-D_FILE_OFFSET_BITS=64'
11828fi
11829rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
11830esac
11831fi
11832rm -f core conftest.err conftest.$ac_objext conftest.beam
11833fi
11834      ac_cv_sys_largefile_opts=$ac_opt
11835      ac_opt_found=yes
11836fi
11837rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11838    test $ac_opt_found = no || break
11839  done
11840  CC="$ac_save_CC"
11841
11842  test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
11843esac
11844fi
11845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
11846printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
11847
11848ac_have_largefile=yes
11849case $ac_cv_sys_largefile_opts in #(
11850  "none needed") :
11851     ;; #(
11852  "supported through gnulib") :
11853     ;; #(
11854  "support not detected") :
11855    ac_have_largefile=no ;; #(
11856  "-D_FILE_OFFSET_BITS=64") :
11857
11858printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
11859 ;; #(
11860  "-D_LARGE_FILES=1") :
11861
11862printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
11863 ;; #(
11864  "-n32") :
11865    CC="$CC -n32" ;; #(
11866  *) :
11867    as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
11868esac
11869
11870if test "$enable_year2038" != no
11871then :
11872  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
11873printf %s "checking for $CC option for timestamps after 2038... " >&6; }
11874if test ${ac_cv_sys_year2038_opts+y}
11875then :
11876  printf %s "(cached) " >&6
11877else case e in #(
11878  e) ac_save_CPPFLAGS="$CPPFLAGS"
11879  ac_opt_found=no
11880  for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
11881    if test x"$ac_opt" != x"none needed"
11882then :
11883  CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
11884fi
11885    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11886/* end confdefs.h.  */
11887
11888  #include <time.h>
11889  /* Check that time_t can represent 2**32 - 1 correctly.  */
11890  #define LARGE_TIME_T \\
11891    ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
11892  int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
11893                           && LARGE_TIME_T % 65537 == 0)
11894                          ? 1 : -1];
11895
11896int
11897main (void)
11898{
11899
11900  ;
11901  return 0;
11902}
11903_ACEOF
11904if ac_fn_c_try_compile "$LINENO"
11905then :
11906  ac_cv_sys_year2038_opts="$ac_opt"
11907      ac_opt_found=yes
11908fi
11909rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11910    test $ac_opt_found = no || break
11911  done
11912  CPPFLAGS="$ac_save_CPPFLAGS"
11913  test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
11914esac
11915fi
11916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
11917printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
11918
11919ac_have_year2038=yes
11920case $ac_cv_sys_year2038_opts in #(
11921  "none needed") :
11922     ;; #(
11923  "support not detected") :
11924    ac_have_year2038=no ;; #(
11925  "-D_TIME_BITS=64") :
11926
11927printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
11928 ;; #(
11929  "-D__MINGW_USE_VC2005_COMPAT") :
11930
11931printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
11932 ;; #(
11933  "-U_USE_32_BIT_TIME_T"*) :
11934    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11935printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11936as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
11937will stop working after mid-January 2038. Remove
11938_USE_32BIT_TIME_T from the compiler flags.
11939See 'config.log' for more details" "$LINENO" 5; } ;; #(
11940  *) :
11941    as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
11942esac
11943
11944fi
11945
11946fi
11947
11948# Checks for system functions / libraries
11949ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
11950if test "x$ac_cv_func_vasprintf" = xyes
11951then :
11952  printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
11953
11954fi
11955
11956
11957# Checks for pkg-config packages
11958
11959pkg_failed=no
11960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MKFONTSCALE" >&5
11961printf %s "checking for MKFONTSCALE... " >&6; }
11962
11963if test -n "$MKFONTSCALE_CFLAGS"; then
11964    pkg_cv_MKFONTSCALE_CFLAGS="$MKFONTSCALE_CFLAGS"
11965 elif test -n "$PKG_CONFIG"; then
11966    if test -n "$PKG_CONFIG" && \
11967    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontenc freetype2\""; } >&5
11968  ($PKG_CONFIG --exists --print-errors "fontenc freetype2") 2>&5
11969  ac_status=$?
11970  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11971  test $ac_status = 0; }; then
11972  pkg_cv_MKFONTSCALE_CFLAGS=`$PKG_CONFIG --cflags "fontenc freetype2" 2>/dev/null`
11973		      test "x$?" != "x0" && pkg_failed=yes
11974else
11975  pkg_failed=yes
11976fi
11977 else
11978    pkg_failed=untried
11979fi
11980if test -n "$MKFONTSCALE_LIBS"; then
11981    pkg_cv_MKFONTSCALE_LIBS="$MKFONTSCALE_LIBS"
11982 elif test -n "$PKG_CONFIG"; then
11983    if test -n "$PKG_CONFIG" && \
11984    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontenc freetype2\""; } >&5
11985  ($PKG_CONFIG --exists --print-errors "fontenc freetype2") 2>&5
11986  ac_status=$?
11987  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11988  test $ac_status = 0; }; then
11989  pkg_cv_MKFONTSCALE_LIBS=`$PKG_CONFIG --libs "fontenc freetype2" 2>/dev/null`
11990		      test "x$?" != "x0" && pkg_failed=yes
11991else
11992  pkg_failed=yes
11993fi
11994 else
11995    pkg_failed=untried
11996fi
11997
11998
11999
12000if test $pkg_failed = yes; then
12001   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12002printf "%s\n" "no" >&6; }
12003
12004if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12005        _pkg_short_errors_supported=yes
12006else
12007        _pkg_short_errors_supported=no
12008fi
12009        if test $_pkg_short_errors_supported = yes; then
12010	        MKFONTSCALE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontenc freetype2" 2>&1`
12011        else
12012	        MKFONTSCALE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontenc freetype2" 2>&1`
12013        fi
12014	# Put the nasty error message in config.log where it belongs
12015	echo "$MKFONTSCALE_PKG_ERRORS" >&5
12016
12017	as_fn_error $? "Package requirements (fontenc freetype2) were not met:
12018
12019$MKFONTSCALE_PKG_ERRORS
12020
12021Consider adjusting the PKG_CONFIG_PATH environment variable if you
12022installed software in a non-standard prefix.
12023
12024Alternatively, you may set the environment variables MKFONTSCALE_CFLAGS
12025and MKFONTSCALE_LIBS to avoid the need to call pkg-config.
12026See the pkg-config man page for more details." "$LINENO" 5
12027elif test $pkg_failed = untried; then
12028     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12029printf "%s\n" "no" >&6; }
12030	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12031printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12032as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12033is in your PATH or set the PKG_CONFIG environment variable to the full
12034path to pkg-config.
12035
12036Alternatively, you may set the environment variables MKFONTSCALE_CFLAGS
12037and MKFONTSCALE_LIBS to avoid the need to call pkg-config.
12038See the pkg-config man page for more details.
12039
12040To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12041See 'config.log' for more details" "$LINENO" 5; }
12042else
12043	MKFONTSCALE_CFLAGS=$pkg_cv_MKFONTSCALE_CFLAGS
12044	MKFONTSCALE_LIBS=$pkg_cv_MKFONTSCALE_LIBS
12045        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12046printf "%s\n" "yes" >&6; }
12047
12048fi
12049
12050pkg_failed=no
12051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
12052printf %s "checking for ZLIB... " >&6; }
12053
12054if test -n "$ZLIB_CFLAGS"; then
12055    pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
12056 elif test -n "$PKG_CONFIG"; then
12057    if test -n "$PKG_CONFIG" && \
12058    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
12059  ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
12060  ac_status=$?
12061  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12062  test $ac_status = 0; }; then
12063  pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
12064		      test "x$?" != "x0" && pkg_failed=yes
12065else
12066  pkg_failed=yes
12067fi
12068 else
12069    pkg_failed=untried
12070fi
12071if test -n "$ZLIB_LIBS"; then
12072    pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
12073 elif test -n "$PKG_CONFIG"; then
12074    if test -n "$PKG_CONFIG" && \
12075    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
12076  ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
12077  ac_status=$?
12078  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12079  test $ac_status = 0; }; then
12080  pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
12081		      test "x$?" != "x0" && pkg_failed=yes
12082else
12083  pkg_failed=yes
12084fi
12085 else
12086    pkg_failed=untried
12087fi
12088
12089
12090
12091if test $pkg_failed = yes; then
12092   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12093printf "%s\n" "no" >&6; }
12094
12095if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12096        _pkg_short_errors_supported=yes
12097else
12098        _pkg_short_errors_supported=no
12099fi
12100        if test $_pkg_short_errors_supported = yes; then
12101	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
12102        else
12103	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
12104        fi
12105	# Put the nasty error message in config.log where it belongs
12106	echo "$ZLIB_PKG_ERRORS" >&5
12107
12108	as_fn_error $? "Package requirements (zlib) were not met:
12109
12110$ZLIB_PKG_ERRORS
12111
12112Consider adjusting the PKG_CONFIG_PATH environment variable if you
12113installed software in a non-standard prefix.
12114
12115Alternatively, you may set the environment variables ZLIB_CFLAGS
12116and ZLIB_LIBS to avoid the need to call pkg-config.
12117See the pkg-config man page for more details." "$LINENO" 5
12118elif test $pkg_failed = untried; then
12119     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12120printf "%s\n" "no" >&6; }
12121	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12122printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12123as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12124is in your PATH or set the PKG_CONFIG environment variable to the full
12125path to pkg-config.
12126
12127Alternatively, you may set the environment variables ZLIB_CFLAGS
12128and ZLIB_LIBS to avoid the need to call pkg-config.
12129See the pkg-config man page for more details.
12130
12131To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12132See 'config.log' for more details" "$LINENO" 5; }
12133else
12134	ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
12135	ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
12136        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12137printf "%s\n" "yes" >&6; }
12138
12139fi
12140
12141pkg_failed=no
12142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
12143printf %s "checking for X11... " >&6; }
12144
12145if test -n "$X11_CFLAGS"; then
12146    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
12147 elif test -n "$PKG_CONFIG"; then
12148    if test -n "$PKG_CONFIG" && \
12149    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5
12150  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5
12151  ac_status=$?
12152  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12153  test $ac_status = 0; }; then
12154  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.25" 2>/dev/null`
12155		      test "x$?" != "x0" && pkg_failed=yes
12156else
12157  pkg_failed=yes
12158fi
12159 else
12160    pkg_failed=untried
12161fi
12162if test -n "$X11_LIBS"; then
12163    pkg_cv_X11_LIBS="$X11_LIBS"
12164 elif test -n "$PKG_CONFIG"; then
12165    if test -n "$PKG_CONFIG" && \
12166    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5
12167  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5
12168  ac_status=$?
12169  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12170  test $ac_status = 0; }; then
12171  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.25" 2>/dev/null`
12172		      test "x$?" != "x0" && pkg_failed=yes
12173else
12174  pkg_failed=yes
12175fi
12176 else
12177    pkg_failed=untried
12178fi
12179
12180
12181
12182if test $pkg_failed = yes; then
12183   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12184printf "%s\n" "no" >&6; }
12185
12186if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12187        _pkg_short_errors_supported=yes
12188else
12189        _pkg_short_errors_supported=no
12190fi
12191        if test $_pkg_short_errors_supported = yes; then
12192	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.25" 2>&1`
12193        else
12194	        X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.25" 2>&1`
12195        fi
12196	# Put the nasty error message in config.log where it belongs
12197	echo "$X11_PKG_ERRORS" >&5
12198
12199	as_fn_error $? "Package requirements (xproto >= 7.0.25) were not met:
12200
12201$X11_PKG_ERRORS
12202
12203Consider adjusting the PKG_CONFIG_PATH environment variable if you
12204installed software in a non-standard prefix.
12205
12206Alternatively, you may set the environment variables X11_CFLAGS
12207and X11_LIBS to avoid the need to call pkg-config.
12208See the pkg-config man page for more details." "$LINENO" 5
12209elif test $pkg_failed = untried; then
12210     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12211printf "%s\n" "no" >&6; }
12212	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12213printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12214as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12215is in your PATH or set the PKG_CONFIG environment variable to the full
12216path to pkg-config.
12217
12218Alternatively, you may set the environment variables X11_CFLAGS
12219and X11_LIBS to avoid the need to call pkg-config.
12220See the pkg-config man page for more details.
12221
12222To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12223See 'config.log' for more details" "$LINENO" 5; }
12224else
12225	X11_CFLAGS=$pkg_cv_X11_CFLAGS
12226	X11_LIBS=$pkg_cv_X11_LIBS
12227        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12228printf "%s\n" "yes" >&6; }
12229
12230fi
12231
12232
12233
12234
12235
12236
12237# Check whether --with-lint was given.
12238if test ${with_lint+y}
12239then :
12240  withval=$with_lint; use_lint=$withval
12241else case e in #(
12242  e) use_lint=no ;;
12243esac
12244fi
12245
12246
12247# Obtain platform specific info like program name and options
12248# The lint program on FreeBSD and NetBSD is different from the one on Solaris
12249case $host_os in
12250  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
12251	lint_name=splint
12252	lint_options="-badflag"
12253	;;
12254  *freebsd* | *netbsd*)
12255	lint_name=lint
12256	lint_options="-u -b"
12257	;;
12258  *solaris*)
12259	lint_name=lint
12260	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
12261	;;
12262esac
12263
12264# Test for the presence of the program (either guessed by the code or spelled out by the user)
12265if test "x$use_lint" = x"yes" ; then
12266   # Extract the first word of "$lint_name", so it can be a program name with args.
12267set dummy $lint_name; ac_word=$2
12268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12269printf %s "checking for $ac_word... " >&6; }
12270if test ${ac_cv_path_LINT+y}
12271then :
12272  printf %s "(cached) " >&6
12273else case e in #(
12274  e) case $LINT in
12275  [\\/]* | ?:[\\/]*)
12276  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
12277  ;;
12278  *)
12279  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280for as_dir in $PATH
12281do
12282  IFS=$as_save_IFS
12283  case $as_dir in #(((
12284    '') as_dir=./ ;;
12285    */) ;;
12286    *) as_dir=$as_dir/ ;;
12287  esac
12288    for ac_exec_ext in '' $ac_executable_extensions; do
12289  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12290    ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
12291    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12292    break 2
12293  fi
12294done
12295  done
12296IFS=$as_save_IFS
12297
12298  ;;
12299esac ;;
12300esac
12301fi
12302LINT=$ac_cv_path_LINT
12303if test -n "$LINT"; then
12304  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
12305printf "%s\n" "$LINT" >&6; }
12306else
12307  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12308printf "%s\n" "no" >&6; }
12309fi
12310
12311
12312   if test "x$LINT" = "x"; then
12313        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
12314   fi
12315elif test "x$use_lint" = x"no" ; then
12316   if test "x$LINT" != "x"; then
12317      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
12318printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
12319   fi
12320else
12321   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
12322fi
12323
12324# User supplied flags override default flags
12325if test "x$LINT_FLAGS" != "x"; then
12326   lint_options=$LINT_FLAGS
12327fi
12328
12329LINT_FLAGS=$lint_options
12330
12331 if test "x$LINT" != x; then
12332  LINT_TRUE=
12333  LINT_FALSE='#'
12334else
12335  LINT_TRUE='#'
12336  LINT_FALSE=
12337fi
12338
12339
12340
12341
12342ac_config_files="$ac_config_files Makefile man/Makefile"
12343
12344cat >confcache <<\_ACEOF
12345# This file is a shell script that caches the results of configure
12346# tests run on this system so they can be shared between configure
12347# scripts and configure runs, see configure's option --config-cache.
12348# It is not useful on other systems.  If it contains results you don't
12349# want to keep, you may remove or edit it.
12350#
12351# config.status only pays attention to the cache file if you give it
12352# the --recheck option to rerun configure.
12353#
12354# 'ac_cv_env_foo' variables (set or unset) will be overridden when
12355# loading this file, other *unset* 'ac_cv_foo' will be assigned the
12356# following values.
12357
12358_ACEOF
12359
12360# The following way of writing the cache mishandles newlines in values,
12361# but we know of no workaround that is simple, portable, and efficient.
12362# So, we kill variables containing newlines.
12363# Ultrix sh set writes to stderr and can't be redirected directly,
12364# and sets the high bit in the cache file unless we assign to the vars.
12365(
12366  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12367    eval ac_val=\$$ac_var
12368    case $ac_val in #(
12369    *${as_nl}*)
12370      case $ac_var in #(
12371      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12372printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12373      esac
12374      case $ac_var in #(
12375      _ | IFS | as_nl) ;; #(
12376      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12377      *) { eval $ac_var=; unset $ac_var;} ;;
12378      esac ;;
12379    esac
12380  done
12381
12382  (set) 2>&1 |
12383    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12384    *${as_nl}ac_space=\ *)
12385      # 'set' does not quote correctly, so add quotes: double-quote
12386      # substitution turns \\\\ into \\, and sed turns \\ into \.
12387      sed -n \
12388	"s/'/'\\\\''/g;
12389	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12390      ;; #(
12391    *)
12392      # 'set' quotes correctly as required by POSIX, so do not add quotes.
12393      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12394      ;;
12395    esac |
12396    sort
12397) |
12398  sed '
12399     /^ac_cv_env_/b end
12400     t clear
12401     :clear
12402     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12403     t end
12404     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12405     :end' >>confcache
12406if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12407  if test -w "$cache_file"; then
12408    if test "x$cache_file" != "x/dev/null"; then
12409      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12410printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12411      if test ! -f "$cache_file" || test -h "$cache_file"; then
12412	cat confcache >"$cache_file"
12413      else
12414        case $cache_file in #(
12415        */* | ?:*)
12416	  mv -f confcache "$cache_file"$$ &&
12417	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12418        *)
12419	  mv -f confcache "$cache_file" ;;
12420	esac
12421      fi
12422    fi
12423  else
12424    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12425printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12426  fi
12427fi
12428rm -f confcache
12429
12430test "x$prefix" = xNONE && prefix=$ac_default_prefix
12431# Let make expand exec_prefix.
12432test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12433
12434DEFS=-DHAVE_CONFIG_H
12435
12436ac_libobjs=
12437ac_ltlibobjs=
12438U=
12439for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12440  # 1. Remove the extension, and $U if already installed.
12441  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12442  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12443  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12444  #    will be set to the directory where LIBOBJS objects are built.
12445  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12446  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12447done
12448LIBOBJS=$ac_libobjs
12449
12450LTLIBOBJS=$ac_ltlibobjs
12451
12452
12453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12454printf %s "checking that generated files are newer than configure... " >&6; }
12455   if test -n "$am_sleep_pid"; then
12456     # Hide warnings about reused PIDs.
12457     wait $am_sleep_pid 2>/dev/null
12458   fi
12459   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12460printf "%s\n" "done" >&6; }
12461if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12462  as_fn_error $? "conditional \"AMDEP\" was never defined.
12463Usually this means the macro was only invoked conditionally." "$LINENO" 5
12464fi
12465if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12466  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12467Usually this means the macro was only invoked conditionally." "$LINENO" 5
12468fi
12469 if test -n "$EXEEXT"; then
12470  am__EXEEXT_TRUE=
12471  am__EXEEXT_FALSE='#'
12472else
12473  am__EXEEXT_TRUE='#'
12474  am__EXEEXT_FALSE=
12475fi
12476
12477# Check whether --enable-year2038 was given.
12478if test ${enable_year2038+y}
12479then :
12480  enableval=$enable_year2038;
12481fi
12482
12483if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
12484  as_fn_error $? "conditional \"LINT\" was never defined.
12485Usually this means the macro was only invoked conditionally." "$LINENO" 5
12486fi
12487
12488: "${CONFIG_STATUS=./config.status}"
12489ac_write_fail=0
12490ac_clean_files_save=$ac_clean_files
12491ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12493printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12494as_write_fail=0
12495cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12496#! $SHELL
12497# Generated by $as_me.
12498# Run this file to recreate the current configuration.
12499# Compiler output produced by configure, useful for debugging
12500# configure, is in config.log if it exists.
12501
12502debug=false
12503ac_cs_recheck=false
12504ac_cs_silent=false
12505
12506SHELL=\${CONFIG_SHELL-$SHELL}
12507export SHELL
12508_ASEOF
12509cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12510## -------------------- ##
12511## M4sh Initialization. ##
12512## -------------------- ##
12513
12514# Be more Bourne compatible
12515DUALCASE=1; export DUALCASE # for MKS sh
12516if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12517then :
12518  emulate sh
12519  NULLCMD=:
12520  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12521  # is contrary to our usage.  Disable this feature.
12522  alias -g '${1+"$@"}'='"$@"'
12523  setopt NO_GLOB_SUBST
12524else case e in #(
12525  e) case `(set -o) 2>/dev/null` in #(
12526  *posix*) :
12527    set -o posix ;; #(
12528  *) :
12529     ;;
12530esac ;;
12531esac
12532fi
12533
12534
12535
12536# Reset variables that may have inherited troublesome values from
12537# the environment.
12538
12539# IFS needs to be set, to space, tab, and newline, in precisely that order.
12540# (If _AS_PATH_WALK were called with IFS unset, it would have the
12541# side effect of setting IFS to empty, thus disabling word splitting.)
12542# Quoting is to prevent editors from complaining about space-tab.
12543as_nl='
12544'
12545export as_nl
12546IFS=" ""	$as_nl"
12547
12548PS1='$ '
12549PS2='> '
12550PS4='+ '
12551
12552# Ensure predictable behavior from utilities with locale-dependent output.
12553LC_ALL=C
12554export LC_ALL
12555LANGUAGE=C
12556export LANGUAGE
12557
12558# We cannot yet rely on "unset" to work, but we need these variables
12559# to be unset--not just set to an empty or harmless value--now, to
12560# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
12561# also avoids known problems related to "unset" and subshell syntax
12562# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12563for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12564do eval test \${$as_var+y} \
12565  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12566done
12567
12568# Ensure that fds 0, 1, and 2 are open.
12569if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12570if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12571if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
12572
12573# The user is always right.
12574if ${PATH_SEPARATOR+false} :; then
12575  PATH_SEPARATOR=:
12576  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12577    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12578      PATH_SEPARATOR=';'
12579  }
12580fi
12581
12582
12583# Find who we are.  Look in the path if we contain no directory separator.
12584as_myself=
12585case $0 in #((
12586  *[\\/]* ) as_myself=$0 ;;
12587  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12588for as_dir in $PATH
12589do
12590  IFS=$as_save_IFS
12591  case $as_dir in #(((
12592    '') as_dir=./ ;;
12593    */) ;;
12594    *) as_dir=$as_dir/ ;;
12595  esac
12596    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12597  done
12598IFS=$as_save_IFS
12599
12600     ;;
12601esac
12602# We did not find ourselves, most probably we were run as 'sh COMMAND'
12603# in which case we are not to be found in the path.
12604if test "x$as_myself" = x; then
12605  as_myself=$0
12606fi
12607if test ! -f "$as_myself"; then
12608  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12609  exit 1
12610fi
12611
12612
12613
12614# as_fn_error STATUS ERROR [LINENO LOG_FD]
12615# ----------------------------------------
12616# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12617# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12618# script with STATUS, using 1 if that was 0.
12619as_fn_error ()
12620{
12621  as_status=$1; test $as_status -eq 0 && as_status=1
12622  if test "$4"; then
12623    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12624    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12625  fi
12626  printf "%s\n" "$as_me: error: $2" >&2
12627  as_fn_exit $as_status
12628} # as_fn_error
12629
12630
12631# as_fn_set_status STATUS
12632# -----------------------
12633# Set $? to STATUS, without forking.
12634as_fn_set_status ()
12635{
12636  return $1
12637} # as_fn_set_status
12638
12639# as_fn_exit STATUS
12640# -----------------
12641# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12642as_fn_exit ()
12643{
12644  set +e
12645  as_fn_set_status $1
12646  exit $1
12647} # as_fn_exit
12648
12649# as_fn_unset VAR
12650# ---------------
12651# Portably unset VAR.
12652as_fn_unset ()
12653{
12654  { eval $1=; unset $1;}
12655}
12656as_unset=as_fn_unset
12657
12658# as_fn_append VAR VALUE
12659# ----------------------
12660# Append the text in VALUE to the end of the definition contained in VAR. Take
12661# advantage of any shell optimizations that allow amortized linear growth over
12662# repeated appends, instead of the typical quadratic growth present in naive
12663# implementations.
12664if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12665then :
12666  eval 'as_fn_append ()
12667  {
12668    eval $1+=\$2
12669  }'
12670else case e in #(
12671  e) as_fn_append ()
12672  {
12673    eval $1=\$$1\$2
12674  } ;;
12675esac
12676fi # as_fn_append
12677
12678# as_fn_arith ARG...
12679# ------------------
12680# Perform arithmetic evaluation on the ARGs, and store the result in the
12681# global $as_val. Take advantage of shells that can avoid forks. The arguments
12682# must be portable across $(()) and expr.
12683if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12684then :
12685  eval 'as_fn_arith ()
12686  {
12687    as_val=$(( $* ))
12688  }'
12689else case e in #(
12690  e) as_fn_arith ()
12691  {
12692    as_val=`expr "$@" || test $? -eq 1`
12693  } ;;
12694esac
12695fi # as_fn_arith
12696
12697
12698if expr a : '\(a\)' >/dev/null 2>&1 &&
12699   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12700  as_expr=expr
12701else
12702  as_expr=false
12703fi
12704
12705if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12706  as_basename=basename
12707else
12708  as_basename=false
12709fi
12710
12711if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12712  as_dirname=dirname
12713else
12714  as_dirname=false
12715fi
12716
12717as_me=`$as_basename -- "$0" ||
12718$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12719	 X"$0" : 'X\(//\)$' \| \
12720	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12721printf "%s\n" X/"$0" |
12722    sed '/^.*\/\([^/][^/]*\)\/*$/{
12723	    s//\1/
12724	    q
12725	  }
12726	  /^X\/\(\/\/\)$/{
12727	    s//\1/
12728	    q
12729	  }
12730	  /^X\/\(\/\).*/{
12731	    s//\1/
12732	    q
12733	  }
12734	  s/.*/./; q'`
12735
12736# Avoid depending upon Character Ranges.
12737as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12738as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12739as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12740as_cr_digits='0123456789'
12741as_cr_alnum=$as_cr_Letters$as_cr_digits
12742
12743
12744# Determine whether it's possible to make 'echo' print without a newline.
12745# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12746# for compatibility with existing Makefiles.
12747ECHO_C= ECHO_N= ECHO_T=
12748case `echo -n x` in #(((((
12749-n*)
12750  case `echo 'xy\c'` in
12751  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12752  xy)  ECHO_C='\c';;
12753  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12754       ECHO_T='	';;
12755  esac;;
12756*)
12757  ECHO_N='-n';;
12758esac
12759
12760# For backward compatibility with old third-party macros, we provide
12761# the shell variables $as_echo and $as_echo_n.  New code should use
12762# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12763as_echo='printf %s\n'
12764as_echo_n='printf %s'
12765
12766rm -f conf$$ conf$$.exe conf$$.file
12767if test -d conf$$.dir; then
12768  rm -f conf$$.dir/conf$$.file
12769else
12770  rm -f conf$$.dir
12771  mkdir conf$$.dir 2>/dev/null
12772fi
12773if (echo >conf$$.file) 2>/dev/null; then
12774  if ln -s conf$$.file conf$$ 2>/dev/null; then
12775    as_ln_s='ln -s'
12776    # ... but there are two gotchas:
12777    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12778    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12779    # In both cases, we have to default to 'cp -pR'.
12780    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12781      as_ln_s='cp -pR'
12782  elif ln conf$$.file conf$$ 2>/dev/null; then
12783    as_ln_s=ln
12784  else
12785    as_ln_s='cp -pR'
12786  fi
12787else
12788  as_ln_s='cp -pR'
12789fi
12790rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12791rmdir conf$$.dir 2>/dev/null
12792
12793
12794# as_fn_mkdir_p
12795# -------------
12796# Create "$as_dir" as a directory, including parents if necessary.
12797as_fn_mkdir_p ()
12798{
12799
12800  case $as_dir in #(
12801  -*) as_dir=./$as_dir;;
12802  esac
12803  test -d "$as_dir" || eval $as_mkdir_p || {
12804    as_dirs=
12805    while :; do
12806      case $as_dir in #(
12807      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12808      *) as_qdir=$as_dir;;
12809      esac
12810      as_dirs="'$as_qdir' $as_dirs"
12811      as_dir=`$as_dirname -- "$as_dir" ||
12812$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12813	 X"$as_dir" : 'X\(//\)[^/]' \| \
12814	 X"$as_dir" : 'X\(//\)$' \| \
12815	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12816printf "%s\n" X"$as_dir" |
12817    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12818	    s//\1/
12819	    q
12820	  }
12821	  /^X\(\/\/\)[^/].*/{
12822	    s//\1/
12823	    q
12824	  }
12825	  /^X\(\/\/\)$/{
12826	    s//\1/
12827	    q
12828	  }
12829	  /^X\(\/\).*/{
12830	    s//\1/
12831	    q
12832	  }
12833	  s/.*/./; q'`
12834      test -d "$as_dir" && break
12835    done
12836    test -z "$as_dirs" || eval "mkdir $as_dirs"
12837  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12838
12839
12840} # as_fn_mkdir_p
12841if mkdir -p . 2>/dev/null; then
12842  as_mkdir_p='mkdir -p "$as_dir"'
12843else
12844  test -d ./-p && rmdir ./-p
12845  as_mkdir_p=false
12846fi
12847
12848
12849# as_fn_executable_p FILE
12850# -----------------------
12851# Test if FILE is an executable regular file.
12852as_fn_executable_p ()
12853{
12854  test -f "$1" && test -x "$1"
12855} # as_fn_executable_p
12856as_test_x='test -x'
12857as_executable_p=as_fn_executable_p
12858
12859# Sed expression to map a string onto a valid CPP name.
12860as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12861as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12862
12863# Sed expression to map a string onto a valid variable name.
12864as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12865as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12866
12867
12868exec 6>&1
12869## ----------------------------------- ##
12870## Main body of $CONFIG_STATUS script. ##
12871## ----------------------------------- ##
12872_ASEOF
12873test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12874
12875cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12876# Save the log message, to keep $0 and so on meaningful, and to
12877# report actual input values of CONFIG_FILES etc. instead of their
12878# values after options handling.
12879ac_log="
12880This file was extended by mkfontscale $as_me 1.2.3, which was
12881generated by GNU Autoconf 2.72.  Invocation command line was
12882
12883  CONFIG_FILES    = $CONFIG_FILES
12884  CONFIG_HEADERS  = $CONFIG_HEADERS
12885  CONFIG_LINKS    = $CONFIG_LINKS
12886  CONFIG_COMMANDS = $CONFIG_COMMANDS
12887  $ $0 $@
12888
12889on `(hostname || uname -n) 2>/dev/null | sed 1q`
12890"
12891
12892_ACEOF
12893
12894case $ac_config_files in *"
12895"*) set x $ac_config_files; shift; ac_config_files=$*;;
12896esac
12897
12898case $ac_config_headers in *"
12899"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12900esac
12901
12902
12903cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12904# Files that config.status was made for.
12905config_files="$ac_config_files"
12906config_headers="$ac_config_headers"
12907config_commands="$ac_config_commands"
12908
12909_ACEOF
12910
12911cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12912ac_cs_usage="\
12913'$as_me' instantiates files and other configuration actions
12914from templates according to the current configuration.  Unless the files
12915and actions are specified as TAGs, all are instantiated by default.
12916
12917Usage: $0 [OPTION]... [TAG]...
12918
12919  -h, --help       print this help, then exit
12920  -V, --version    print version number and configuration settings, then exit
12921      --config     print configuration, then exit
12922  -q, --quiet, --silent
12923                   do not print progress messages
12924  -d, --debug      don't remove temporary files
12925      --recheck    update $as_me by reconfiguring in the same conditions
12926      --file=FILE[:TEMPLATE]
12927                   instantiate the configuration file FILE
12928      --header=FILE[:TEMPLATE]
12929                   instantiate the configuration header FILE
12930
12931Configuration files:
12932$config_files
12933
12934Configuration headers:
12935$config_headers
12936
12937Configuration commands:
12938$config_commands
12939
12940Report bugs to <https://gitlab.freedesktop.org/xorg/app/mkfontscale/-/issues>."
12941
12942_ACEOF
12943ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12944ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12945cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12946ac_cs_config='$ac_cs_config_escaped'
12947ac_cs_version="\\
12948mkfontscale config.status 1.2.3
12949configured by $0, generated by GNU Autoconf 2.72,
12950  with options \\"\$ac_cs_config\\"
12951
12952Copyright (C) 2023 Free Software Foundation, Inc.
12953This config.status script is free software; the Free Software Foundation
12954gives unlimited permission to copy, distribute and modify it."
12955
12956ac_pwd='$ac_pwd'
12957srcdir='$srcdir'
12958INSTALL='$INSTALL'
12959MKDIR_P='$MKDIR_P'
12960AWK='$AWK'
12961test -n "\$AWK" || AWK=awk
12962_ACEOF
12963
12964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12965# The default lists apply if the user does not specify any file.
12966ac_need_defaults=:
12967while test $# != 0
12968do
12969  case $1 in
12970  --*=?*)
12971    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12972    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12973    ac_shift=:
12974    ;;
12975  --*=)
12976    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12977    ac_optarg=
12978    ac_shift=:
12979    ;;
12980  *)
12981    ac_option=$1
12982    ac_optarg=$2
12983    ac_shift=shift
12984    ;;
12985  esac
12986
12987  case $ac_option in
12988  # Handling of the options.
12989  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12990    ac_cs_recheck=: ;;
12991  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12992    printf "%s\n" "$ac_cs_version"; exit ;;
12993  --config | --confi | --conf | --con | --co | --c )
12994    printf "%s\n" "$ac_cs_config"; exit ;;
12995  --debug | --debu | --deb | --de | --d | -d )
12996    debug=: ;;
12997  --file | --fil | --fi | --f )
12998    $ac_shift
12999    case $ac_optarg in
13000    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13001    '') as_fn_error $? "missing file argument" ;;
13002    esac
13003    as_fn_append CONFIG_FILES " '$ac_optarg'"
13004    ac_need_defaults=false;;
13005  --header | --heade | --head | --hea )
13006    $ac_shift
13007    case $ac_optarg in
13008    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13009    esac
13010    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13011    ac_need_defaults=false;;
13012  --he | --h)
13013    # Conflict between --help and --header
13014    as_fn_error $? "ambiguous option: '$1'
13015Try '$0 --help' for more information.";;
13016  --help | --hel | -h )
13017    printf "%s\n" "$ac_cs_usage"; exit ;;
13018  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13019  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13020    ac_cs_silent=: ;;
13021
13022  # This is an error.
13023  -*) as_fn_error $? "unrecognized option: '$1'
13024Try '$0 --help' for more information." ;;
13025
13026  *) as_fn_append ac_config_targets " $1"
13027     ac_need_defaults=false ;;
13028
13029  esac
13030  shift
13031done
13032
13033ac_configure_extra_args=
13034
13035if $ac_cs_silent; then
13036  exec 6>/dev/null
13037  ac_configure_extra_args="$ac_configure_extra_args --silent"
13038fi
13039
13040_ACEOF
13041cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13042if \$ac_cs_recheck; then
13043  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13044  shift
13045  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
13046  CONFIG_SHELL='$SHELL'
13047  export CONFIG_SHELL
13048  exec "\$@"
13049fi
13050
13051_ACEOF
13052cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13053exec 5>>config.log
13054{
13055  echo
13056  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13057## Running $as_me. ##
13058_ASBOX
13059  printf "%s\n" "$ac_log"
13060} >&5
13061
13062_ACEOF
13063cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13064#
13065# INIT-COMMANDS
13066#
13067AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13068
13069_ACEOF
13070
13071cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13072
13073# Handling of arguments.
13074for ac_config_target in $ac_config_targets
13075do
13076  case $ac_config_target in
13077    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13078    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13079    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13080    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13081
13082  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
13083  esac
13084done
13085
13086
13087# If the user did not use the arguments to specify the items to instantiate,
13088# then the envvar interface is used.  Set only those that are not.
13089# We use the long form for the default assignment because of an extremely
13090# bizarre bug on SunOS 4.1.3.
13091if $ac_need_defaults; then
13092  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
13093  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
13094  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
13095fi
13096
13097# Have a temporary directory for convenience.  Make it in the build tree
13098# simply because there is no reason against having it here, and in addition,
13099# creating and moving files from /tmp can sometimes cause problems.
13100# Hook for its removal unless debugging.
13101# Note that there is a small window in which the directory will not be cleaned:
13102# after its creation but before its name has been assigned to '$tmp'.
13103$debug ||
13104{
13105  tmp= ac_tmp=
13106  trap 'exit_status=$?
13107  : "${ac_tmp:=$tmp}"
13108  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13109' 0
13110  trap 'as_fn_exit 1' 1 2 13 15
13111}
13112# Create a (secure) tmp directory for tmp files.
13113
13114{
13115  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13116  test -d "$tmp"
13117}  ||
13118{
13119  tmp=./conf$$-$RANDOM
13120  (umask 077 && mkdir "$tmp")
13121} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13122ac_tmp=$tmp
13123
13124# Set up the scripts for CONFIG_FILES section.
13125# No need to generate them if there are no CONFIG_FILES.
13126# This happens for instance with './config.status config.h'.
13127if test -n "$CONFIG_FILES"; then
13128
13129
13130ac_cr=`echo X | tr X '\015'`
13131# On cygwin, bash can eat \r inside `` if the user requested igncr.
13132# But we know of no other shell where ac_cr would be empty at this
13133# point, so we can use a bashism as a fallback.
13134if test "x$ac_cr" = x; then
13135  eval ac_cr=\$\'\\r\'
13136fi
13137ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13138if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13139  ac_cs_awk_cr='\\r'
13140else
13141  ac_cs_awk_cr=$ac_cr
13142fi
13143
13144echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13145_ACEOF
13146
13147
13148{
13149  echo "cat >conf$$subs.awk <<_ACEOF" &&
13150  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13151  echo "_ACEOF"
13152} >conf$$subs.sh ||
13153  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13154ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13155ac_delim='%!_!# '
13156for ac_last_try in false false false false false :; do
13157  . ./conf$$subs.sh ||
13158    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13159
13160  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13161  if test $ac_delim_n = $ac_delim_num; then
13162    break
13163  elif $ac_last_try; then
13164    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13165  else
13166    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13167  fi
13168done
13169rm -f conf$$subs.sh
13170
13171cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13172cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13173_ACEOF
13174sed -n '
13175h
13176s/^/S["/; s/!.*/"]=/
13177p
13178g
13179s/^[^!]*!//
13180:repl
13181t repl
13182s/'"$ac_delim"'$//
13183t delim
13184:nl
13185h
13186s/\(.\{148\}\)..*/\1/
13187t more1
13188s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13189p
13190n
13191b repl
13192:more1
13193s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13194p
13195g
13196s/.\{148\}//
13197t nl
13198:delim
13199h
13200s/\(.\{148\}\)..*/\1/
13201t more2
13202s/["\\]/\\&/g; s/^/"/; s/$/"/
13203p
13204b
13205:more2
13206s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13207p
13208g
13209s/.\{148\}//
13210t delim
13211' <conf$$subs.awk | sed '
13212/^[^""]/{
13213  N
13214  s/\n//
13215}
13216' >>$CONFIG_STATUS || ac_write_fail=1
13217rm -f conf$$subs.awk
13218cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13219_ACAWK
13220cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13221  for (key in S) S_is_set[key] = 1
13222  FS = ""
13223
13224}
13225{
13226  line = $ 0
13227  nfields = split(line, field, "@")
13228  substed = 0
13229  len = length(field[1])
13230  for (i = 2; i < nfields; i++) {
13231    key = field[i]
13232    keylen = length(key)
13233    if (S_is_set[key]) {
13234      value = S[key]
13235      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13236      len += length(value) + length(field[++i])
13237      substed = 1
13238    } else
13239      len += 1 + keylen
13240  }
13241
13242  print line
13243}
13244
13245_ACAWK
13246_ACEOF
13247cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13248if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13249  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13250else
13251  cat
13252fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13253  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13254_ACEOF
13255
13256# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13257# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13258# trailing colons and then remove the whole line if VPATH becomes empty
13259# (actually we leave an empty line to preserve line numbers).
13260if test "x$srcdir" = x.; then
13261  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13262h
13263s///
13264s/^/:/
13265s/[	 ]*$/:/
13266s/:\$(srcdir):/:/g
13267s/:\${srcdir}:/:/g
13268s/:@srcdir@:/:/g
13269s/^:*//
13270s/:*$//
13271x
13272s/\(=[	 ]*\).*/\1/
13273G
13274s/\n//
13275s/^[^=]*=[	 ]*$//
13276}'
13277fi
13278
13279cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13280fi # test -n "$CONFIG_FILES"
13281
13282# Set up the scripts for CONFIG_HEADERS section.
13283# No need to generate them if there are no CONFIG_HEADERS.
13284# This happens for instance with './config.status Makefile'.
13285if test -n "$CONFIG_HEADERS"; then
13286cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13287BEGIN {
13288_ACEOF
13289
13290# Transform confdefs.h into an awk script 'defines.awk', embedded as
13291# here-document in config.status, that substitutes the proper values into
13292# config.h.in to produce config.h.
13293
13294# Create a delimiter string that does not exist in confdefs.h, to ease
13295# handling of long lines.
13296ac_delim='%!_!# '
13297for ac_last_try in false false :; do
13298  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13299  if test -z "$ac_tt"; then
13300    break
13301  elif $ac_last_try; then
13302    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13303  else
13304    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13305  fi
13306done
13307
13308# For the awk script, D is an array of macro values keyed by name,
13309# likewise P contains macro parameters if any.  Preserve backslash
13310# newline sequences.
13311
13312ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13313sed -n '
13314s/.\{148\}/&'"$ac_delim"'/g
13315t rset
13316:rset
13317s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13318t def
13319d
13320:def
13321s/\\$//
13322t bsnl
13323s/["\\]/\\&/g
13324s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13325D["\1"]=" \3"/p
13326s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13327d
13328:bsnl
13329s/["\\]/\\&/g
13330s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13331D["\1"]=" \3\\\\\\n"\\/p
13332t cont
13333s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13334t cont
13335d
13336:cont
13337n
13338s/.\{148\}/&'"$ac_delim"'/g
13339t clear
13340:clear
13341s/\\$//
13342t bsnlc
13343s/["\\]/\\&/g; s/^/"/; s/$/"/p
13344d
13345:bsnlc
13346s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13347b cont
13348' <confdefs.h | sed '
13349s/'"$ac_delim"'/"\\\
13350"/g' >>$CONFIG_STATUS || ac_write_fail=1
13351
13352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13353  for (key in D) D_is_set[key] = 1
13354  FS = ""
13355}
13356/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13357  line = \$ 0
13358  split(line, arg, " ")
13359  if (arg[1] == "#") {
13360    defundef = arg[2]
13361    mac1 = arg[3]
13362  } else {
13363    defundef = substr(arg[1], 2)
13364    mac1 = arg[2]
13365  }
13366  split(mac1, mac2, "(") #)
13367  macro = mac2[1]
13368  prefix = substr(line, 1, index(line, defundef) - 1)
13369  if (D_is_set[macro]) {
13370    # Preserve the white space surrounding the "#".
13371    print prefix "define", macro P[macro] D[macro]
13372    next
13373  } else {
13374    # Replace #undef with comments.  This is necessary, for example,
13375    # in the case of _POSIX_SOURCE, which is predefined and required
13376    # on some systems where configure will not decide to define it.
13377    if (defundef == "undef") {
13378      print "/*", prefix defundef, macro, "*/"
13379      next
13380    }
13381  }
13382}
13383{ print }
13384_ACAWK
13385_ACEOF
13386cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13387  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13388fi # test -n "$CONFIG_HEADERS"
13389
13390
13391eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13392shift
13393for ac_tag
13394do
13395  case $ac_tag in
13396  :[FHLC]) ac_mode=$ac_tag; continue;;
13397  esac
13398  case $ac_mode$ac_tag in
13399  :[FHL]*:*);;
13400  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
13401  :[FH]-) ac_tag=-:-;;
13402  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13403  esac
13404  ac_save_IFS=$IFS
13405  IFS=:
13406  set x $ac_tag
13407  IFS=$ac_save_IFS
13408  shift
13409  ac_file=$1
13410  shift
13411
13412  case $ac_mode in
13413  :L) ac_source=$1;;
13414  :[FH])
13415    ac_file_inputs=
13416    for ac_f
13417    do
13418      case $ac_f in
13419      -) ac_f="$ac_tmp/stdin";;
13420      *) # Look for the file first in the build tree, then in the source tree
13421	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13422	 # because $ac_f cannot contain ':'.
13423	 test -f "$ac_f" ||
13424	   case $ac_f in
13425	   [\\/$]*) false;;
13426	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13427	   esac ||
13428	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
13429      esac
13430      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13431      as_fn_append ac_file_inputs " '$ac_f'"
13432    done
13433
13434    # Let's still pretend it is 'configure' which instantiates (i.e., don't
13435    # use $as_me), people would be surprised to read:
13436    #    /* config.h.  Generated by config.status.  */
13437    configure_input='Generated from '`
13438	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13439	`' by configure.'
13440    if test x"$ac_file" != x-; then
13441      configure_input="$ac_file.  $configure_input"
13442      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13443printf "%s\n" "$as_me: creating $ac_file" >&6;}
13444    fi
13445    # Neutralize special characters interpreted by sed in replacement strings.
13446    case $configure_input in #(
13447    *\&* | *\|* | *\\* )
13448       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13449       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13450    *) ac_sed_conf_input=$configure_input;;
13451    esac
13452
13453    case $ac_tag in
13454    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13455      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13456    esac
13457    ;;
13458  esac
13459
13460  ac_dir=`$as_dirname -- "$ac_file" ||
13461$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13462	 X"$ac_file" : 'X\(//\)[^/]' \| \
13463	 X"$ac_file" : 'X\(//\)$' \| \
13464	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13465printf "%s\n" X"$ac_file" |
13466    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13467	    s//\1/
13468	    q
13469	  }
13470	  /^X\(\/\/\)[^/].*/{
13471	    s//\1/
13472	    q
13473	  }
13474	  /^X\(\/\/\)$/{
13475	    s//\1/
13476	    q
13477	  }
13478	  /^X\(\/\).*/{
13479	    s//\1/
13480	    q
13481	  }
13482	  s/.*/./; q'`
13483  as_dir="$ac_dir"; as_fn_mkdir_p
13484  ac_builddir=.
13485
13486case "$ac_dir" in
13487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13488*)
13489  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13490  # A ".." for each directory in $ac_dir_suffix.
13491  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13492  case $ac_top_builddir_sub in
13493  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13494  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13495  esac ;;
13496esac
13497ac_abs_top_builddir=$ac_pwd
13498ac_abs_builddir=$ac_pwd$ac_dir_suffix
13499# for backward compatibility:
13500ac_top_builddir=$ac_top_build_prefix
13501
13502case $srcdir in
13503  .)  # We are building in place.
13504    ac_srcdir=.
13505    ac_top_srcdir=$ac_top_builddir_sub
13506    ac_abs_top_srcdir=$ac_pwd ;;
13507  [\\/]* | ?:[\\/]* )  # Absolute name.
13508    ac_srcdir=$srcdir$ac_dir_suffix;
13509    ac_top_srcdir=$srcdir
13510    ac_abs_top_srcdir=$srcdir ;;
13511  *) # Relative name.
13512    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13513    ac_top_srcdir=$ac_top_build_prefix$srcdir
13514    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13515esac
13516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13517
13518
13519  case $ac_mode in
13520  :F)
13521  #
13522  # CONFIG_FILE
13523  #
13524
13525  case $INSTALL in
13526  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13527  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13528  esac
13529  ac_MKDIR_P=$MKDIR_P
13530  case $MKDIR_P in
13531  [\\/$]* | ?:[\\/]* ) ;;
13532  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13533  esac
13534_ACEOF
13535
13536cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13537# If the template does not know about datarootdir, expand it.
13538# FIXME: This hack should be removed a few years after 2.60.
13539ac_datarootdir_hack=; ac_datarootdir_seen=
13540ac_sed_dataroot='
13541/datarootdir/ {
13542  p
13543  q
13544}
13545/@datadir@/p
13546/@docdir@/p
13547/@infodir@/p
13548/@localedir@/p
13549/@mandir@/p'
13550case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13551*datarootdir*) ac_datarootdir_seen=yes;;
13552*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13553  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13554printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13555_ACEOF
13556cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13557  ac_datarootdir_hack='
13558  s&@datadir@&$datadir&g
13559  s&@docdir@&$docdir&g
13560  s&@infodir@&$infodir&g
13561  s&@localedir@&$localedir&g
13562  s&@mandir@&$mandir&g
13563  s&\\\${datarootdir}&$datarootdir&g' ;;
13564esac
13565_ACEOF
13566
13567# Neutralize VPATH when '$srcdir' = '.'.
13568# Shell code in configure.ac might set extrasub.
13569# FIXME: do we really want to maintain this feature?
13570cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13571ac_sed_extra="$ac_vpsub
13572$extrasub
13573_ACEOF
13574cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13575:t
13576/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13577s|@configure_input@|$ac_sed_conf_input|;t t
13578s&@top_builddir@&$ac_top_builddir_sub&;t t
13579s&@top_build_prefix@&$ac_top_build_prefix&;t t
13580s&@srcdir@&$ac_srcdir&;t t
13581s&@abs_srcdir@&$ac_abs_srcdir&;t t
13582s&@top_srcdir@&$ac_top_srcdir&;t t
13583s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13584s&@builddir@&$ac_builddir&;t t
13585s&@abs_builddir@&$ac_abs_builddir&;t t
13586s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13587s&@INSTALL@&$ac_INSTALL&;t t
13588s&@MKDIR_P@&$ac_MKDIR_P&;t t
13589$ac_datarootdir_hack
13590"
13591eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13592  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13593
13594test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13595  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13596  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13597      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13598  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13599which seems to be undefined.  Please make sure it is defined" >&5
13600printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13601which seems to be undefined.  Please make sure it is defined" >&2;}
13602
13603  rm -f "$ac_tmp/stdin"
13604  case $ac_file in
13605  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13606  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13607  esac \
13608  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13609 ;;
13610  :H)
13611  #
13612  # CONFIG_HEADER
13613  #
13614  if test x"$ac_file" != x-; then
13615    {
13616      printf "%s\n" "/* $configure_input  */" >&1 \
13617      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13618    } >"$ac_tmp/config.h" \
13619      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13620    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13621      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13622printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13623    else
13624      rm -f "$ac_file"
13625      mv "$ac_tmp/config.h" "$ac_file" \
13626	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13627    fi
13628  else
13629    printf "%s\n" "/* $configure_input  */" >&1 \
13630      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13631      || as_fn_error $? "could not create -" "$LINENO" 5
13632  fi
13633# Compute "$ac_file"'s index in $config_headers.
13634_am_arg="$ac_file"
13635_am_stamp_count=1
13636for _am_header in $config_headers :; do
13637  case $_am_header in
13638    $_am_arg | $_am_arg:* )
13639      break ;;
13640    * )
13641      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13642  esac
13643done
13644echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13645$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13646	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13647	 X"$_am_arg" : 'X\(//\)$' \| \
13648	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13649printf "%s\n" X"$_am_arg" |
13650    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13651	    s//\1/
13652	    q
13653	  }
13654	  /^X\(\/\/\)[^/].*/{
13655	    s//\1/
13656	    q
13657	  }
13658	  /^X\(\/\/\)$/{
13659	    s//\1/
13660	    q
13661	  }
13662	  /^X\(\/\).*/{
13663	    s//\1/
13664	    q
13665	  }
13666	  s/.*/./; q'`/stamp-h$_am_stamp_count
13667 ;;
13668
13669  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13670printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13671 ;;
13672  esac
13673
13674
13675  case $ac_file$ac_mode in
13676    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13677  # Older Autoconf quotes --file arguments for eval, but not when files
13678  # are listed without --file.  Let's play safe and only enable the eval
13679  # if we detect the quoting.
13680  # TODO: see whether this extra hack can be removed once we start
13681  # requiring Autoconf 2.70 or later.
13682  case $CONFIG_FILES in #(
13683  *\'*) :
13684    eval set x "$CONFIG_FILES" ;; #(
13685  *) :
13686    set x $CONFIG_FILES ;; #(
13687  *) :
13688     ;;
13689esac
13690  shift
13691  # Used to flag and report bootstrapping failures.
13692  am_rc=0
13693  for am_mf
13694  do
13695    # Strip MF so we end up with the name of the file.
13696    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13697    # Check whether this is an Automake generated Makefile which includes
13698    # dependency-tracking related rules and includes.
13699    # Grep'ing the whole file directly is not great: AIX grep has a line
13700    # limit of 2048, but all sed's we know have understand at least 4000.
13701    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13702      || continue
13703    am_dirpart=`$as_dirname -- "$am_mf" ||
13704$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13705	 X"$am_mf" : 'X\(//\)[^/]' \| \
13706	 X"$am_mf" : 'X\(//\)$' \| \
13707	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13708printf "%s\n" X"$am_mf" |
13709    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13710	    s//\1/
13711	    q
13712	  }
13713	  /^X\(\/\/\)[^/].*/{
13714	    s//\1/
13715	    q
13716	  }
13717	  /^X\(\/\/\)$/{
13718	    s//\1/
13719	    q
13720	  }
13721	  /^X\(\/\).*/{
13722	    s//\1/
13723	    q
13724	  }
13725	  s/.*/./; q'`
13726    am_filepart=`$as_basename -- "$am_mf" ||
13727$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13728	 X"$am_mf" : 'X\(//\)$' \| \
13729	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13730printf "%s\n" X/"$am_mf" |
13731    sed '/^.*\/\([^/][^/]*\)\/*$/{
13732	    s//\1/
13733	    q
13734	  }
13735	  /^X\/\(\/\/\)$/{
13736	    s//\1/
13737	    q
13738	  }
13739	  /^X\/\(\/\).*/{
13740	    s//\1/
13741	    q
13742	  }
13743	  s/.*/./; q'`
13744    { echo "$as_me:$LINENO: cd "$am_dirpart" \
13745      && sed -e '/# am--include-marker/d' "$am_filepart" \
13746        | $MAKE -f - am--depfiles" >&5
13747   (cd "$am_dirpart" \
13748      && sed -e '/# am--include-marker/d' "$am_filepart" \
13749        | $MAKE -f - am--depfiles) >&5 2>&5
13750   ac_status=$?
13751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752   (exit $ac_status); } || am_rc=$?
13753  done
13754  if test $am_rc -ne 0; then
13755    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13756printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13757as_fn_error $? "Something went wrong bootstrapping makefile fragments
13758    for automatic dependency tracking.  If GNU make was not used, consider
13759    re-running the configure script with MAKE=\"gmake\" (or whatever is
13760    necessary).  You can also try re-running configure with the
13761    '--disable-dependency-tracking' option to at least be able to build
13762    the package (albeit without support for automatic dependency tracking).
13763See 'config.log' for more details" "$LINENO" 5; }
13764  fi
13765  { am_dirpart=; unset am_dirpart;}
13766  { am_filepart=; unset am_filepart;}
13767  { am_mf=; unset am_mf;}
13768  { am_rc=; unset am_rc;}
13769  rm -f conftest-deps.mk
13770}
13771 ;;
13772
13773  esac
13774done # for ac_tag
13775
13776
13777as_fn_exit 0
13778_ACEOF
13779ac_clean_files=$ac_clean_files_save
13780
13781test $ac_write_fail = 0 ||
13782  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13783
13784
13785# configure is writing to config.log, and then calls config.status.
13786# config.status does its own redirection, appending to config.log.
13787# Unfortunately, on DOS this fails, as config.log is still kept open
13788# by configure, so config.status won't be able to write to it; its
13789# output is simply discarded.  So we exec the FD to /dev/null,
13790# effectively closing config.log, so it can be properly (re)opened and
13791# appended to by config.status.  When coming back to configure, we
13792# need to make the FD available again.
13793if test "$no_create" != yes; then
13794  ac_cs_success=:
13795  ac_config_status_args=
13796  test "$silent" = yes &&
13797    ac_config_status_args="$ac_config_status_args --quiet"
13798  exec 5>/dev/null
13799  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13800  exec 5>>config.log
13801  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13802  # would make configure fail if this is the last instruction.
13803  $ac_cs_success || as_fn_exit 1
13804fi
13805if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13806  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13807printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13808fi
13809
13810
13811