1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for editres 1.0.9.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/editres/-/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/editres/-/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='editres'
607PACKAGE_TARNAME='editres'
608PACKAGE_VERSION='1.0.9'
609PACKAGE_STRING='editres 1.0.9'
610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/editres/-/issues'
611PACKAGE_URL=''
612
613ac_unique_file="Makefile.am"
614# Factoring default headers for most tests.
615ac_includes_default="\
616#include <stddef.h>
617#ifdef HAVE_STDIO_H
618# include <stdio.h>
619#endif
620#ifdef HAVE_STDLIB_H
621# include <stdlib.h>
622#endif
623#ifdef HAVE_STRING_H
624# include <string.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_STRINGS_H
633# include <strings.h>
634#endif
635#ifdef HAVE_SYS_TYPES_H
636# include <sys/types.h>
637#endif
638#ifdef HAVE_SYS_STAT_H
639# include <sys/stat.h>
640#endif
641#ifdef HAVE_UNISTD_H
642# include <unistd.h>
643#endif"
644
645ac_header_c_list=
646ac_subst_vars='am__EXEEXT_FALSE
647am__EXEEXT_TRUE
648LTLIBOBJS
649LIBOBJS
650appdefaultdir
651APPDEFS_LIBS
652APPDEFS_CFLAGS
653EDITRES_LIBS
654EDITRES_CFLAGS
655MAN_SUBSTS
656XORG_MAN_PAGE
657ADMIN_MAN_DIR
658DRIVER_MAN_DIR
659MISC_MAN_DIR
660FILE_MAN_DIR
661LIB_MAN_DIR
662APP_MAN_DIR
663ADMIN_MAN_SUFFIX
664DRIVER_MAN_SUFFIX
665MISC_MAN_SUFFIX
666FILE_MAN_SUFFIX
667LIB_MAN_SUFFIX
668APP_MAN_SUFFIX
669SED
670host_os
671host_vendor
672host_cpu
673host
674build_os
675build_vendor
676build_cpu
677build
678INSTALL_CMD
679PKG_CONFIG_LIBDIR
680PKG_CONFIG_PATH
681PKG_CONFIG
682CHANGELOG_CMD
683STRICT_CFLAGS
684CWARNFLAGS
685BASE_CFLAGS
686am__fastdepCC_FALSE
687am__fastdepCC_TRUE
688CCDEPMODE
689am__nodep
690AMDEPBACKSLASH
691AMDEP_FALSE
692AMDEP_TRUE
693am__include
694DEPDIR
695OBJEXT
696EXEEXT
697ac_ct_CC
698CPPFLAGS
699LDFLAGS
700CFLAGS
701CC
702AM_BACKSLASH
703AM_DEFAULT_VERBOSITY
704AM_DEFAULT_V
705AM_V
706CSCOPE
707ETAGS
708CTAGS
709am__untar
710am__tar
711AMTAR
712am__leading_dot
713SET_MAKE
714AWK
715mkdir_p
716MKDIR_P
717INSTALL_STRIP_PROGRAM
718STRIP
719install_sh
720MAKEINFO
721AUTOHEADER
722AUTOMAKE
723AUTOCONF
724ACLOCAL
725VERSION
726PACKAGE
727CYGPATH_W
728am__isrc
729INSTALL_DATA
730INSTALL_SCRIPT
731INSTALL_PROGRAM
732target_alias
733host_alias
734build_alias
735LIBS
736ECHO_T
737ECHO_N
738ECHO_C
739DEFS
740mandir
741localedir
742libdir
743psdir
744pdfdir
745dvidir
746htmldir
747infodir
748docdir
749oldincludedir
750includedir
751runstatedir
752localstatedir
753sharedstatedir
754sysconfdir
755datadir
756datarootdir
757libexecdir
758sbindir
759bindir
760program_transform_name
761prefix
762exec_prefix
763PACKAGE_URL
764PACKAGE_BUGREPORT
765PACKAGE_STRING
766PACKAGE_VERSION
767PACKAGE_TARNAME
768PACKAGE_NAME
769PATH_SEPARATOR
770SHELL
771am__quote'
772ac_subst_files=''
773ac_user_opts='
774enable_option_checking
775enable_silent_rules
776enable_dependency_tracking
777enable_selective_werror
778enable_strict_compilation
779with_xkb
780with_appdefaultdir
781'
782      ac_precious_vars='build_alias
783host_alias
784target_alias
785CC
786CFLAGS
787LDFLAGS
788LIBS
789CPPFLAGS
790PKG_CONFIG
791PKG_CONFIG_PATH
792PKG_CONFIG_LIBDIR
793EDITRES_CFLAGS
794EDITRES_LIBS
795APPDEFS_CFLAGS
796APPDEFS_LIBS'
797
798
799# Initialize some variables set by options.
800ac_init_help=
801ac_init_version=false
802ac_unrecognized_opts=
803ac_unrecognized_sep=
804# The variables have the same names as the options, with
805# dashes changed to underlines.
806cache_file=/dev/null
807exec_prefix=NONE
808no_create=
809no_recursion=
810prefix=NONE
811program_prefix=NONE
812program_suffix=NONE
813program_transform_name=s,x,x,
814silent=
815site=
816srcdir=
817verbose=
818x_includes=NONE
819x_libraries=NONE
820
821# Installation directory options.
822# These are left unexpanded so users can "make install exec_prefix=/foo"
823# and all the variables that are supposed to be based on exec_prefix
824# by default will actually change.
825# Use braces instead of parens because sh, perl, etc. also accept them.
826# (The list follows the same order as the GNU Coding Standards.)
827bindir='${exec_prefix}/bin'
828sbindir='${exec_prefix}/sbin'
829libexecdir='${exec_prefix}/libexec'
830datarootdir='${prefix}/share'
831datadir='${datarootdir}'
832sysconfdir='${prefix}/etc'
833sharedstatedir='${prefix}/com'
834localstatedir='${prefix}/var'
835runstatedir='${localstatedir}/run'
836includedir='${prefix}/include'
837oldincludedir='/usr/include'
838docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839infodir='${datarootdir}/info'
840htmldir='${docdir}'
841dvidir='${docdir}'
842pdfdir='${docdir}'
843psdir='${docdir}'
844libdir='${exec_prefix}/lib'
845localedir='${datarootdir}/locale'
846mandir='${datarootdir}/man'
847
848ac_prev=
849ac_dashdash=
850for ac_option
851do
852  # If the previous option needs an argument, assign it.
853  if test -n "$ac_prev"; then
854    eval $ac_prev=\$ac_option
855    ac_prev=
856    continue
857  fi
858
859  case $ac_option in
860  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861  *=)   ac_optarg= ;;
862  *)    ac_optarg=yes ;;
863  esac
864
865  case $ac_dashdash$ac_option in
866  --)
867    ac_dashdash=yes ;;
868
869  -bindir | --bindir | --bindi | --bind | --bin | --bi)
870    ac_prev=bindir ;;
871  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
872    bindir=$ac_optarg ;;
873
874  -build | --build | --buil | --bui | --bu)
875    ac_prev=build_alias ;;
876  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
877    build_alias=$ac_optarg ;;
878
879  -cache-file | --cache-file | --cache-fil | --cache-fi \
880  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881    ac_prev=cache_file ;;
882  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
884    cache_file=$ac_optarg ;;
885
886  --config-cache | -C)
887    cache_file=config.cache ;;
888
889  -datadir | --datadir | --datadi | --datad)
890    ac_prev=datadir ;;
891  -datadir=* | --datadir=* | --datadi=* | --datad=*)
892    datadir=$ac_optarg ;;
893
894  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895  | --dataroo | --dataro | --datar)
896    ac_prev=datarootdir ;;
897  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899    datarootdir=$ac_optarg ;;
900
901  -disable-* | --disable-*)
902    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
903    # Reject names that are not valid shell variable names.
904    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905      as_fn_error $? "invalid feature name: '$ac_useropt'"
906    ac_useropt_orig=$ac_useropt
907    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
908    case $ac_user_opts in
909      *"
910"enable_$ac_useropt"
911"*) ;;
912      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
913	 ac_unrecognized_sep=', ';;
914    esac
915    eval enable_$ac_useropt=no ;;
916
917  -docdir | --docdir | --docdi | --doc | --do)
918    ac_prev=docdir ;;
919  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920    docdir=$ac_optarg ;;
921
922  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
923    ac_prev=dvidir ;;
924  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925    dvidir=$ac_optarg ;;
926
927  -enable-* | --enable-*)
928    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
929    # Reject names that are not valid shell variable names.
930    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931      as_fn_error $? "invalid feature name: '$ac_useropt'"
932    ac_useropt_orig=$ac_useropt
933    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
934    case $ac_user_opts in
935      *"
936"enable_$ac_useropt"
937"*) ;;
938      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
939	 ac_unrecognized_sep=', ';;
940    esac
941    eval enable_$ac_useropt=\$ac_optarg ;;
942
943  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945  | --exec | --exe | --ex)
946    ac_prev=exec_prefix ;;
947  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949  | --exec=* | --exe=* | --ex=*)
950    exec_prefix=$ac_optarg ;;
951
952  -gas | --gas | --ga | --g)
953    # Obsolete; use --with-gas.
954    with_gas=yes ;;
955
956  -help | --help | --hel | --he | -h)
957    ac_init_help=long ;;
958  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959    ac_init_help=recursive ;;
960  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961    ac_init_help=short ;;
962
963  -host | --host | --hos | --ho)
964    ac_prev=host_alias ;;
965  -host=* | --host=* | --hos=* | --ho=*)
966    host_alias=$ac_optarg ;;
967
968  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969    ac_prev=htmldir ;;
970  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971  | --ht=*)
972    htmldir=$ac_optarg ;;
973
974  -includedir | --includedir | --includedi | --included | --include \
975  | --includ | --inclu | --incl | --inc)
976    ac_prev=includedir ;;
977  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978  | --includ=* | --inclu=* | --incl=* | --inc=*)
979    includedir=$ac_optarg ;;
980
981  -infodir | --infodir | --infodi | --infod | --info | --inf)
982    ac_prev=infodir ;;
983  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984    infodir=$ac_optarg ;;
985
986  -libdir | --libdir | --libdi | --libd)
987    ac_prev=libdir ;;
988  -libdir=* | --libdir=* | --libdi=* | --libd=*)
989    libdir=$ac_optarg ;;
990
991  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992  | --libexe | --libex | --libe)
993    ac_prev=libexecdir ;;
994  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995  | --libexe=* | --libex=* | --libe=*)
996    libexecdir=$ac_optarg ;;
997
998  -localedir | --localedir | --localedi | --localed | --locale)
999    ac_prev=localedir ;;
1000  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001    localedir=$ac_optarg ;;
1002
1003  -localstatedir | --localstatedir | --localstatedi | --localstated \
1004  | --localstate | --localstat | --localsta | --localst | --locals)
1005    ac_prev=localstatedir ;;
1006  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1008    localstatedir=$ac_optarg ;;
1009
1010  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1011    ac_prev=mandir ;;
1012  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013    mandir=$ac_optarg ;;
1014
1015  -nfp | --nfp | --nf)
1016    # Obsolete; use --without-fp.
1017    with_fp=no ;;
1018
1019  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020  | --no-cr | --no-c | -n)
1021    no_create=yes ;;
1022
1023  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025    no_recursion=yes ;;
1026
1027  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029  | --oldin | --oldi | --old | --ol | --o)
1030    ac_prev=oldincludedir ;;
1031  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034    oldincludedir=$ac_optarg ;;
1035
1036  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1037    ac_prev=prefix ;;
1038  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039    prefix=$ac_optarg ;;
1040
1041  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042  | --program-pre | --program-pr | --program-p)
1043    ac_prev=program_prefix ;;
1044  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046    program_prefix=$ac_optarg ;;
1047
1048  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049  | --program-suf | --program-su | --program-s)
1050    ac_prev=program_suffix ;;
1051  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053    program_suffix=$ac_optarg ;;
1054
1055  -program-transform-name | --program-transform-name \
1056  | --program-transform-nam | --program-transform-na \
1057  | --program-transform-n | --program-transform- \
1058  | --program-transform | --program-transfor \
1059  | --program-transfo | --program-transf \
1060  | --program-trans | --program-tran \
1061  | --progr-tra | --program-tr | --program-t)
1062    ac_prev=program_transform_name ;;
1063  -program-transform-name=* | --program-transform-name=* \
1064  | --program-transform-nam=* | --program-transform-na=* \
1065  | --program-transform-n=* | --program-transform-=* \
1066  | --program-transform=* | --program-transfor=* \
1067  | --program-transfo=* | --program-transf=* \
1068  | --program-trans=* | --program-tran=* \
1069  | --progr-tra=* | --program-tr=* | --program-t=*)
1070    program_transform_name=$ac_optarg ;;
1071
1072  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073    ac_prev=pdfdir ;;
1074  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075    pdfdir=$ac_optarg ;;
1076
1077  -psdir | --psdir | --psdi | --psd | --ps)
1078    ac_prev=psdir ;;
1079  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080    psdir=$ac_optarg ;;
1081
1082  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083  | -silent | --silent | --silen | --sile | --sil)
1084    silent=yes ;;
1085
1086  -runstatedir | --runstatedir | --runstatedi | --runstated \
1087  | --runstate | --runstat | --runsta | --runst | --runs \
1088  | --run | --ru | --r)
1089    ac_prev=runstatedir ;;
1090  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1091  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1092  | --run=* | --ru=* | --r=*)
1093    runstatedir=$ac_optarg ;;
1094
1095  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096    ac_prev=sbindir ;;
1097  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098  | --sbi=* | --sb=*)
1099    sbindir=$ac_optarg ;;
1100
1101  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103  | --sharedst | --shareds | --shared | --share | --shar \
1104  | --sha | --sh)
1105    ac_prev=sharedstatedir ;;
1106  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109  | --sha=* | --sh=*)
1110    sharedstatedir=$ac_optarg ;;
1111
1112  -site | --site | --sit)
1113    ac_prev=site ;;
1114  -site=* | --site=* | --sit=*)
1115    site=$ac_optarg ;;
1116
1117  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118    ac_prev=srcdir ;;
1119  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120    srcdir=$ac_optarg ;;
1121
1122  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123  | --syscon | --sysco | --sysc | --sys | --sy)
1124    ac_prev=sysconfdir ;;
1125  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127    sysconfdir=$ac_optarg ;;
1128
1129  -target | --target | --targe | --targ | --tar | --ta | --t)
1130    ac_prev=target_alias ;;
1131  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132    target_alias=$ac_optarg ;;
1133
1134  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135    verbose=yes ;;
1136
1137  -version | --version | --versio | --versi | --vers | -V)
1138    ac_init_version=: ;;
1139
1140  -with-* | --with-*)
1141    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142    # Reject names that are not valid shell variable names.
1143    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144      as_fn_error $? "invalid package name: '$ac_useropt'"
1145    ac_useropt_orig=$ac_useropt
1146    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1147    case $ac_user_opts in
1148      *"
1149"with_$ac_useropt"
1150"*) ;;
1151      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152	 ac_unrecognized_sep=', ';;
1153    esac
1154    eval with_$ac_useropt=\$ac_optarg ;;
1155
1156  -without-* | --without-*)
1157    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158    # Reject names that are not valid shell variable names.
1159    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160      as_fn_error $? "invalid package name: '$ac_useropt'"
1161    ac_useropt_orig=$ac_useropt
1162    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1163    case $ac_user_opts in
1164      *"
1165"with_$ac_useropt"
1166"*) ;;
1167      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168	 ac_unrecognized_sep=', ';;
1169    esac
1170    eval with_$ac_useropt=no ;;
1171
1172  --x)
1173    # Obsolete; use --with-x.
1174    with_x=yes ;;
1175
1176  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1177  | --x-incl | --x-inc | --x-in | --x-i)
1178    ac_prev=x_includes ;;
1179  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1180  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1181    x_includes=$ac_optarg ;;
1182
1183  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1184  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1185    ac_prev=x_libraries ;;
1186  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1187  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1188    x_libraries=$ac_optarg ;;
1189
1190  -*) as_fn_error $? "unrecognized option: '$ac_option'
1191Try '$0 --help' for more information"
1192    ;;
1193
1194  *=*)
1195    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196    # Reject names that are not valid shell variable names.
1197    case $ac_envvar in #(
1198      '' | [0-9]* | *[!_$as_cr_alnum]* )
1199      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1200    esac
1201    eval $ac_envvar=\$ac_optarg
1202    export $ac_envvar ;;
1203
1204  *)
1205    # FIXME: should be removed in autoconf 3.0.
1206    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1207    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1209    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1210    ;;
1211
1212  esac
1213done
1214
1215if test -n "$ac_prev"; then
1216  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1217  as_fn_error $? "missing argument to $ac_option"
1218fi
1219
1220if test -n "$ac_unrecognized_opts"; then
1221  case $enable_option_checking in
1222    no) ;;
1223    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1224    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225  esac
1226fi
1227
1228# Check all directory arguments for consistency.
1229for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230		datadir sysconfdir sharedstatedir localstatedir includedir \
1231		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232		libdir localedir mandir runstatedir
1233do
1234  eval ac_val=\$$ac_var
1235  # Remove trailing slashes.
1236  case $ac_val in
1237    */ )
1238      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239      eval $ac_var=\$ac_val;;
1240  esac
1241  # Be sure to have absolute directory names.
1242  case $ac_val in
1243    [\\/$]* | ?:[\\/]* )  continue;;
1244    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245  esac
1246  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1247done
1248
1249# There might be people who depend on the old broken behavior: '$host'
1250# used to hold the argument of --host etc.
1251# FIXME: To remove some day.
1252build=$build_alias
1253host=$host_alias
1254target=$target_alias
1255
1256# FIXME: To remove some day.
1257if test "x$host_alias" != x; then
1258  if test "x$build_alias" = x; then
1259    cross_compiling=maybe
1260  elif test "x$build_alias" != "x$host_alias"; then
1261    cross_compiling=yes
1262  fi
1263fi
1264
1265ac_tool_prefix=
1266test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267
1268test "$silent" = yes && exec 6>/dev/null
1269
1270
1271ac_pwd=`pwd` && test -n "$ac_pwd" &&
1272ac_ls_di=`ls -di .` &&
1273ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274  as_fn_error $? "working directory cannot be determined"
1275test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276  as_fn_error $? "pwd does not report name of working directory"
1277
1278
1279# Find the source files, if location was not specified.
1280if test -z "$srcdir"; then
1281  ac_srcdir_defaulted=yes
1282  # Try the directory containing this script, then the parent directory.
1283  ac_confdir=`$as_dirname -- "$as_myself" ||
1284$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285	 X"$as_myself" : 'X\(//\)[^/]' \| \
1286	 X"$as_myself" : 'X\(//\)$' \| \
1287	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288printf "%s\n" X"$as_myself" |
1289    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290	    s//\1/
1291	    q
1292	  }
1293	  /^X\(\/\/\)[^/].*/{
1294	    s//\1/
1295	    q
1296	  }
1297	  /^X\(\/\/\)$/{
1298	    s//\1/
1299	    q
1300	  }
1301	  /^X\(\/\).*/{
1302	    s//\1/
1303	    q
1304	  }
1305	  s/.*/./; q'`
1306  srcdir=$ac_confdir
1307  if test ! -r "$srcdir/$ac_unique_file"; then
1308    srcdir=..
1309  fi
1310else
1311  ac_srcdir_defaulted=no
1312fi
1313if test ! -r "$srcdir/$ac_unique_file"; then
1314  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316fi
1317ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1318ac_abs_confdir=`(
1319	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320	pwd)`
1321# When building in place, set srcdir=.
1322if test "$ac_abs_confdir" = "$ac_pwd"; then
1323  srcdir=.
1324fi
1325# Remove unnecessary trailing slashes from srcdir.
1326# Double slashes in file names in object file debugging info
1327# mess up M-x gdb in Emacs.
1328case $srcdir in
1329*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330esac
1331for ac_var in $ac_precious_vars; do
1332  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333  eval ac_env_${ac_var}_value=\$${ac_var}
1334  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1336done
1337
1338#
1339# Report the --help message.
1340#
1341if test "$ac_init_help" = "long"; then
1342  # Omit some internal or obsolete options to make the list less imposing.
1343  # This message is too long to be a string in the A/UX 3.1 sh.
1344  cat <<_ACEOF
1345'configure' configures editres 1.0.9 to adapt to many kinds of systems.
1346
1347Usage: $0 [OPTION]... [VAR=VALUE]...
1348
1349To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350VAR=VALUE.  See below for descriptions of some of the useful variables.
1351
1352Defaults for the options are specified in brackets.
1353
1354Configuration:
1355  -h, --help              display this help and exit
1356      --help=short        display options specific to this package
1357      --help=recursive    display the short help of all the included packages
1358  -V, --version           display version information and exit
1359  -q, --quiet, --silent   do not print 'checking ...' messages
1360      --cache-file=FILE   cache test results in FILE [disabled]
1361  -C, --config-cache      alias for '--cache-file=config.cache'
1362  -n, --no-create         do not create output files
1363      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1364
1365Installation directories:
1366  --prefix=PREFIX         install architecture-independent files in PREFIX
1367                          [$ac_default_prefix]
1368  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1369                          [PREFIX]
1370
1371By default, 'make install' will install all the files in
1372'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1373an installation prefix other than '$ac_default_prefix' using '--prefix',
1374for instance '--prefix=\$HOME'.
1375
1376For better control, use the options below.
1377
1378Fine tuning of the installation directories:
1379  --bindir=DIR            user executables [EPREFIX/bin]
1380  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1381  --libexecdir=DIR        program executables [EPREFIX/libexec]
1382  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1383  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1384  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1385  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1386  --libdir=DIR            object code libraries [EPREFIX/lib]
1387  --includedir=DIR        C header files [PREFIX/include]
1388  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1389  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1390  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1391  --infodir=DIR           info documentation [DATAROOTDIR/info]
1392  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1393  --mandir=DIR            man documentation [DATAROOTDIR/man]
1394  --docdir=DIR            documentation root [DATAROOTDIR/doc/editres]
1395  --htmldir=DIR           html documentation [DOCDIR]
1396  --dvidir=DIR            dvi documentation [DOCDIR]
1397  --pdfdir=DIR            pdf documentation [DOCDIR]
1398  --psdir=DIR             ps documentation [DOCDIR]
1399_ACEOF
1400
1401  cat <<\_ACEOF
1402
1403Program names:
1404  --program-prefix=PREFIX            prepend PREFIX to installed program names
1405  --program-suffix=SUFFIX            append SUFFIX to installed program names
1406  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1407
1408System types:
1409  --build=BUILD     configure for building on BUILD [guessed]
1410  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1411_ACEOF
1412fi
1413
1414if test -n "$ac_init_help"; then
1415  case $ac_init_help in
1416     short | recursive ) echo "Configuration of editres 1.0.9:";;
1417   esac
1418  cat <<\_ACEOF
1419
1420Optional Features:
1421  --disable-option-checking  ignore unrecognized --enable/--with options
1422  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1423  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1424  --enable-silent-rules   less verbose build output (undo: "make V=1")
1425  --disable-silent-rules  verbose build output (undo: "make V=0")
1426  --enable-dependency-tracking
1427                          do not reject slow dependency extractors
1428  --disable-dependency-tracking
1429                          speeds up one-time build
1430  --disable-selective-werror
1431                          Turn off selective compiler errors. (default:
1432                          enabled)
1433  --enable-strict-compilation
1434                          Enable all warnings from compiler and make them
1435                          errors (default: disabled)
1436
1437Optional Packages:
1438  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1439  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1440  --without-xkb           Disable use of XKB to sound bells (Default is
1441                          with-xkb)
1442  --with-appdefaultdir=<pathname>
1443                          specify directory for app-defaults files (default is
1444                          autodetected)
1445
1446Some influential environment variables:
1447  CC          C compiler command
1448  CFLAGS      C compiler flags
1449  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1450              nonstandard directory <lib dir>
1451  LIBS        libraries to pass to the linker, e.g. -l<library>
1452  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1453              you have headers in a nonstandard directory <include dir>
1454  PKG_CONFIG  path to pkg-config utility
1455  PKG_CONFIG_PATH
1456              directories to add to pkg-config's search path
1457  PKG_CONFIG_LIBDIR
1458              path overriding pkg-config's built-in search path
1459  EDITRES_CFLAGS
1460              C compiler flags for EDITRES, overriding pkg-config
1461  EDITRES_LIBS
1462              linker flags for EDITRES, overriding pkg-config
1463  APPDEFS_CFLAGS
1464              C compiler flags for APPDEFS, overriding pkg-config
1465  APPDEFS_LIBS
1466              linker flags for APPDEFS, overriding pkg-config
1467
1468Use these variables to override the choices made by 'configure' or to help
1469it to find libraries and programs with nonstandard names/locations.
1470
1471Report bugs to <https://gitlab.freedesktop.org/xorg/app/editres/-/issues>.
1472_ACEOF
1473ac_status=$?
1474fi
1475
1476if test "$ac_init_help" = "recursive"; then
1477  # If there are subdirs, report their specific --help.
1478  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479    test -d "$ac_dir" ||
1480      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1481      continue
1482    ac_builddir=.
1483
1484case "$ac_dir" in
1485.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486*)
1487  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1488  # A ".." for each directory in $ac_dir_suffix.
1489  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1490  case $ac_top_builddir_sub in
1491  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493  esac ;;
1494esac
1495ac_abs_top_builddir=$ac_pwd
1496ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497# for backward compatibility:
1498ac_top_builddir=$ac_top_build_prefix
1499
1500case $srcdir in
1501  .)  # We are building in place.
1502    ac_srcdir=.
1503    ac_top_srcdir=$ac_top_builddir_sub
1504    ac_abs_top_srcdir=$ac_pwd ;;
1505  [\\/]* | ?:[\\/]* )  # Absolute name.
1506    ac_srcdir=$srcdir$ac_dir_suffix;
1507    ac_top_srcdir=$srcdir
1508    ac_abs_top_srcdir=$srcdir ;;
1509  *) # Relative name.
1510    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511    ac_top_srcdir=$ac_top_build_prefix$srcdir
1512    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513esac
1514ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515
1516    cd "$ac_dir" || { ac_status=$?; continue; }
1517    # Check for configure.gnu first; this name is used for a wrapper for
1518    # Metaconfig's "Configure" on case-insensitive file systems.
1519    if test -f "$ac_srcdir/configure.gnu"; then
1520      echo &&
1521      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1522    elif test -f "$ac_srcdir/configure"; then
1523      echo &&
1524      $SHELL "$ac_srcdir/configure" --help=recursive
1525    else
1526      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1527    fi || ac_status=$?
1528    cd "$ac_pwd" || { ac_status=$?; break; }
1529  done
1530fi
1531
1532test -n "$ac_init_help" && exit $ac_status
1533if $ac_init_version; then
1534  cat <<\_ACEOF
1535editres configure 1.0.9
1536generated by GNU Autoconf 2.72
1537
1538Copyright (C) 2023 Free Software Foundation, Inc.
1539This configure script is free software; the Free Software Foundation
1540gives unlimited permission to copy, distribute and modify it.
1541_ACEOF
1542  exit
1543fi
1544
1545## ------------------------ ##
1546## Autoconf initialization. ##
1547## ------------------------ ##
1548
1549# ac_fn_c_try_compile LINENO
1550# --------------------------
1551# Try to compile conftest.$ac_ext, and return whether this succeeded.
1552ac_fn_c_try_compile ()
1553{
1554  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555  rm -f conftest.$ac_objext conftest.beam
1556  if { { ac_try="$ac_compile"
1557case "(($ac_try" in
1558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559  *) ac_try_echo=$ac_try;;
1560esac
1561eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562printf "%s\n" "$ac_try_echo"; } >&5
1563  (eval "$ac_compile") 2>conftest.err
1564  ac_status=$?
1565  if test -s conftest.err; then
1566    grep -v '^ *+' conftest.err >conftest.er1
1567    cat conftest.er1 >&5
1568    mv -f conftest.er1 conftest.err
1569  fi
1570  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571  test $ac_status = 0; } && {
1572	 test -z "$ac_c_werror_flag" ||
1573	 test ! -s conftest.err
1574       } && test -s conftest.$ac_objext
1575then :
1576  ac_retval=0
1577else case e in #(
1578  e) printf "%s\n" "$as_me: failed program was:" >&5
1579sed 's/^/| /' conftest.$ac_ext >&5
1580
1581	ac_retval=1 ;;
1582esac
1583fi
1584  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585  as_fn_set_status $ac_retval
1586
1587} # ac_fn_c_try_compile
1588
1589# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1590# ------------------------------------------------------------------
1591# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1592# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1593ac_fn_check_decl ()
1594{
1595  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596  as_decl_name=`echo $2|sed 's/ *(.*//'`
1597  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1598printf %s "checking whether $as_decl_name is declared... " >&6; }
1599if eval test \${$3+y}
1600then :
1601  printf %s "(cached) " >&6
1602else case e in #(
1603  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1604  eval ac_save_FLAGS=\$$6
1605  as_fn_append $6 " $5"
1606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1607/* end confdefs.h.  */
1608$4
1609int
1610main (void)
1611{
1612#ifndef $as_decl_name
1613#ifdef __cplusplus
1614  (void) $as_decl_use;
1615#else
1616  (void) $as_decl_name;
1617#endif
1618#endif
1619
1620  ;
1621  return 0;
1622}
1623_ACEOF
1624if ac_fn_c_try_compile "$LINENO"
1625then :
1626  eval "$3=yes"
1627else case e in #(
1628  e) eval "$3=no" ;;
1629esac
1630fi
1631rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1632  eval $6=\$ac_save_FLAGS
1633 ;;
1634esac
1635fi
1636eval ac_res=\$$3
1637	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638printf "%s\n" "$ac_res" >&6; }
1639  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640
1641} # ac_fn_check_decl
1642
1643# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1644# -------------------------------------------------------
1645# Tests whether HEADER exists and can be compiled using the include files in
1646# INCLUDES, setting the cache variable VAR accordingly.
1647ac_fn_c_check_header_compile ()
1648{
1649  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1651printf %s "checking for $2... " >&6; }
1652if eval test \${$3+y}
1653then :
1654  printf %s "(cached) " >&6
1655else case e in #(
1656  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657/* end confdefs.h.  */
1658$4
1659#include <$2>
1660_ACEOF
1661if ac_fn_c_try_compile "$LINENO"
1662then :
1663  eval "$3=yes"
1664else case e in #(
1665  e) eval "$3=no" ;;
1666esac
1667fi
1668rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1669esac
1670fi
1671eval ac_res=\$$3
1672	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1673printf "%s\n" "$ac_res" >&6; }
1674  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675
1676} # ac_fn_c_check_header_compile
1677
1678# ac_fn_c_try_link LINENO
1679# -----------------------
1680# Try to link conftest.$ac_ext, and return whether this succeeded.
1681ac_fn_c_try_link ()
1682{
1683  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1685  if { { ac_try="$ac_link"
1686case "(($ac_try" in
1687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688  *) ac_try_echo=$ac_try;;
1689esac
1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691printf "%s\n" "$ac_try_echo"; } >&5
1692  (eval "$ac_link") 2>conftest.err
1693  ac_status=$?
1694  if test -s conftest.err; then
1695    grep -v '^ *+' conftest.err >conftest.er1
1696    cat conftest.er1 >&5
1697    mv -f conftest.er1 conftest.err
1698  fi
1699  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700  test $ac_status = 0; } && {
1701	 test -z "$ac_c_werror_flag" ||
1702	 test ! -s conftest.err
1703       } && test -s conftest$ac_exeext && {
1704	 test "$cross_compiling" = yes ||
1705	 test -x conftest$ac_exeext
1706       }
1707then :
1708  ac_retval=0
1709else case e in #(
1710  e) printf "%s\n" "$as_me: failed program was:" >&5
1711sed 's/^/| /' conftest.$ac_ext >&5
1712
1713	ac_retval=1 ;;
1714esac
1715fi
1716  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1717  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1718  # interfere with the next link command; also delete a directory that is
1719  # left behind by Apple's compiler.  We do this before executing the actions.
1720  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722  as_fn_set_status $ac_retval
1723
1724} # ac_fn_c_try_link
1725ac_configure_args_raw=
1726for ac_arg
1727do
1728  case $ac_arg in
1729  *\'*)
1730    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1731  esac
1732  as_fn_append ac_configure_args_raw " '$ac_arg'"
1733done
1734
1735case $ac_configure_args_raw in
1736  *$as_nl*)
1737    ac_safe_unquote= ;;
1738  *)
1739    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1740    ac_unsafe_a="$ac_unsafe_z#~"
1741    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1742    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1743esac
1744
1745cat >config.log <<_ACEOF
1746This file contains any messages produced by compilers while
1747running configure, to aid debugging if configure makes a mistake.
1748
1749It was created by editres $as_me 1.0.9, which was
1750generated by GNU Autoconf 2.72.  Invocation command line was
1751
1752  $ $0$ac_configure_args_raw
1753
1754_ACEOF
1755exec 5>>config.log
1756{
1757cat <<_ASUNAME
1758## --------- ##
1759## Platform. ##
1760## --------- ##
1761
1762hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1763uname -m = `(uname -m) 2>/dev/null || echo unknown`
1764uname -r = `(uname -r) 2>/dev/null || echo unknown`
1765uname -s = `(uname -s) 2>/dev/null || echo unknown`
1766uname -v = `(uname -v) 2>/dev/null || echo unknown`
1767
1768/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1769/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1770
1771/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1772/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1773/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1774/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1775/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1776/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1777/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1778
1779_ASUNAME
1780
1781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1782for as_dir in $PATH
1783do
1784  IFS=$as_save_IFS
1785  case $as_dir in #(((
1786    '') as_dir=./ ;;
1787    */) ;;
1788    *) as_dir=$as_dir/ ;;
1789  esac
1790    printf "%s\n" "PATH: $as_dir"
1791  done
1792IFS=$as_save_IFS
1793
1794} >&5
1795
1796cat >&5 <<_ACEOF
1797
1798
1799## ----------- ##
1800## Core tests. ##
1801## ----------- ##
1802
1803_ACEOF
1804
1805
1806# Keep a trace of the command line.
1807# Strip out --no-create and --no-recursion so they do not pile up.
1808# Strip out --silent because we don't want to record it for future runs.
1809# Also quote any args containing shell meta-characters.
1810# Make two passes to allow for proper duplicate-argument suppression.
1811ac_configure_args=
1812ac_configure_args0=
1813ac_configure_args1=
1814ac_must_keep_next=false
1815for ac_pass in 1 2
1816do
1817  for ac_arg
1818  do
1819    case $ac_arg in
1820    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1821    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1822    | -silent | --silent | --silen | --sile | --sil)
1823      continue ;;
1824    *\'*)
1825      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1826    esac
1827    case $ac_pass in
1828    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1829    2)
1830      as_fn_append ac_configure_args1 " '$ac_arg'"
1831      if test $ac_must_keep_next = true; then
1832	ac_must_keep_next=false # Got value, back to normal.
1833      else
1834	case $ac_arg in
1835	  *=* | --config-cache | -C | -disable-* | --disable-* \
1836	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1837	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1838	  | -with-* | --with-* | -without-* | --without-* | --x)
1839	    case "$ac_configure_args0 " in
1840	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1841	    esac
1842	    ;;
1843	  -* ) ac_must_keep_next=true ;;
1844	esac
1845      fi
1846      as_fn_append ac_configure_args " '$ac_arg'"
1847      ;;
1848    esac
1849  done
1850done
1851{ ac_configure_args0=; unset ac_configure_args0;}
1852{ ac_configure_args1=; unset ac_configure_args1;}
1853
1854# When interrupted or exit'd, cleanup temporary files, and complete
1855# config.log.  We remove comments because anyway the quotes in there
1856# would cause problems or look ugly.
1857# WARNING: Use '\'' to represent an apostrophe within the trap.
1858# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1859trap 'exit_status=$?
1860  # Sanitize IFS.
1861  IFS=" ""	$as_nl"
1862  # Save into config.log some information that might help in debugging.
1863  {
1864    echo
1865
1866    printf "%s\n" "## ---------------- ##
1867## Cache variables. ##
1868## ---------------- ##"
1869    echo
1870    # The following way of writing the cache mishandles newlines in values,
1871(
1872  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1873    eval ac_val=\$$ac_var
1874    case $ac_val in #(
1875    *${as_nl}*)
1876      case $ac_var in #(
1877      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1878printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1879      esac
1880      case $ac_var in #(
1881      _ | IFS | as_nl) ;; #(
1882      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1883      *) { eval $ac_var=; unset $ac_var;} ;;
1884      esac ;;
1885    esac
1886  done
1887  (set) 2>&1 |
1888    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1889    *${as_nl}ac_space=\ *)
1890      sed -n \
1891	"s/'\''/'\''\\\\'\'''\''/g;
1892	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1893      ;; #(
1894    *)
1895      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1896      ;;
1897    esac |
1898    sort
1899)
1900    echo
1901
1902    printf "%s\n" "## ----------------- ##
1903## Output variables. ##
1904## ----------------- ##"
1905    echo
1906    for ac_var in $ac_subst_vars
1907    do
1908      eval ac_val=\$$ac_var
1909      case $ac_val in
1910      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1911      esac
1912      printf "%s\n" "$ac_var='\''$ac_val'\''"
1913    done | sort
1914    echo
1915
1916    if test -n "$ac_subst_files"; then
1917      printf "%s\n" "## ------------------- ##
1918## File substitutions. ##
1919## ------------------- ##"
1920      echo
1921      for ac_var in $ac_subst_files
1922      do
1923	eval ac_val=\$$ac_var
1924	case $ac_val in
1925	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1926	esac
1927	printf "%s\n" "$ac_var='\''$ac_val'\''"
1928      done | sort
1929      echo
1930    fi
1931
1932    if test -s confdefs.h; then
1933      printf "%s\n" "## ----------- ##
1934## confdefs.h. ##
1935## ----------- ##"
1936      echo
1937      cat confdefs.h
1938      echo
1939    fi
1940    test "$ac_signal" != 0 &&
1941      printf "%s\n" "$as_me: caught signal $ac_signal"
1942    printf "%s\n" "$as_me: exit $exit_status"
1943  } >&5
1944  rm -f core *.core core.conftest.* &&
1945    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1946    exit $exit_status
1947' 0
1948for ac_signal in 1 2 13 15; do
1949  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1950done
1951ac_signal=0
1952
1953# confdefs.h avoids OS command line length limits that DEFS can exceed.
1954rm -f -r conftest* confdefs.h
1955
1956printf "%s\n" "/* confdefs.h */" > confdefs.h
1957
1958# Predefined preprocessor variables.
1959
1960printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1961
1962printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1963
1964printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1965
1966printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1967
1968printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1969
1970printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1971
1972
1973# Let the site file select an alternate cache file if it wants to.
1974# Prefer an explicitly selected file to automatically selected ones.
1975if test -n "$CONFIG_SITE"; then
1976  ac_site_files="$CONFIG_SITE"
1977elif test "x$prefix" != xNONE; then
1978  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1979else
1980  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1981fi
1982
1983for ac_site_file in $ac_site_files
1984do
1985  case $ac_site_file in #(
1986  */*) :
1987     ;; #(
1988  *) :
1989    ac_site_file=./$ac_site_file ;;
1990esac
1991  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1992    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1993printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1994    sed 's/^/| /' "$ac_site_file" >&5
1995    . "$ac_site_file" \
1996      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
1997printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1998as_fn_error $? "failed to load site script $ac_site_file
1999See 'config.log' for more details" "$LINENO" 5; }
2000  fi
2001done
2002
2003if test -r "$cache_file"; then
2004  # Some versions of bash will fail to source /dev/null (special files
2005  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2006  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2007    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2008printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2009    case $cache_file in
2010      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2011      *)                      . "./$cache_file";;
2012    esac
2013  fi
2014else
2015  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2016printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2017  >$cache_file
2018fi
2019
2020# Test code for whether the C compiler supports C89 (global declarations)
2021ac_c_conftest_c89_globals='
2022/* Does the compiler advertise C89 conformance?
2023   Do not test the value of __STDC__, because some compilers set it to 0
2024   while being otherwise adequately conformant. */
2025#if !defined __STDC__
2026# error "Compiler does not advertise C89 conformance"
2027#endif
2028
2029#include <stddef.h>
2030#include <stdarg.h>
2031struct stat;
2032/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2033struct buf { int x; };
2034struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2035static char *e (char **p, int i)
2036{
2037  return p[i];
2038}
2039static char *f (char * (*g) (char **, int), char **p, ...)
2040{
2041  char *s;
2042  va_list v;
2043  va_start (v,p);
2044  s = g (p, va_arg (v,int));
2045  va_end (v);
2046  return s;
2047}
2048
2049/* C89 style stringification. */
2050#define noexpand_stringify(a) #a
2051const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2052
2053/* C89 style token pasting.  Exercises some of the corner cases that
2054   e.g. old MSVC gets wrong, but not very hard. */
2055#define noexpand_concat(a,b) a##b
2056#define expand_concat(a,b) noexpand_concat(a,b)
2057extern int vA;
2058extern int vbee;
2059#define aye A
2060#define bee B
2061int *pvA = &expand_concat(v,aye);
2062int *pvbee = &noexpand_concat(v,bee);
2063
2064/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2065   function prototypes and stuff, but not \xHH hex character constants.
2066   These do not provoke an error unfortunately, instead are silently treated
2067   as an "x".  The following induces an error, until -std is added to get
2068   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2069   array size at least.  It is necessary to write \x00 == 0 to get something
2070   that is true only with -std.  */
2071int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2072
2073/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2074   inside strings and character constants.  */
2075#define FOO(x) '\''x'\''
2076int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2077
2078int test (int i, double x);
2079struct s1 {int (*f) (int a);};
2080struct s2 {int (*f) (double a);};
2081int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2082               int, int);'
2083
2084# Test code for whether the C compiler supports C89 (body of main).
2085ac_c_conftest_c89_main='
2086ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2087'
2088
2089# Test code for whether the C compiler supports C99 (global declarations)
2090ac_c_conftest_c99_globals='
2091/* Does the compiler advertise C99 conformance? */
2092#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2093# error "Compiler does not advertise C99 conformance"
2094#endif
2095
2096// See if C++-style comments work.
2097
2098#include <stdbool.h>
2099extern int puts (const char *);
2100extern int printf (const char *, ...);
2101extern int dprintf (int, const char *, ...);
2102extern void *malloc (size_t);
2103extern void free (void *);
2104
2105// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2106// dprintf is used instead of fprintf to avoid needing to declare
2107// FILE and stderr.
2108#define debug(...) dprintf (2, __VA_ARGS__)
2109#define showlist(...) puts (#__VA_ARGS__)
2110#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2111static void
2112test_varargs_macros (void)
2113{
2114  int x = 1234;
2115  int y = 5678;
2116  debug ("Flag");
2117  debug ("X = %d\n", x);
2118  showlist (The first, second, and third items.);
2119  report (x>y, "x is %d but y is %d", x, y);
2120}
2121
2122// Check long long types.
2123#define BIG64 18446744073709551615ull
2124#define BIG32 4294967295ul
2125#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2126#if !BIG_OK
2127  #error "your preprocessor is broken"
2128#endif
2129#if BIG_OK
2130#else
2131  #error "your preprocessor is broken"
2132#endif
2133static long long int bignum = -9223372036854775807LL;
2134static unsigned long long int ubignum = BIG64;
2135
2136struct incomplete_array
2137{
2138  int datasize;
2139  double data[];
2140};
2141
2142struct named_init {
2143  int number;
2144  const wchar_t *name;
2145  double average;
2146};
2147
2148typedef const char *ccp;
2149
2150static inline int
2151test_restrict (ccp restrict text)
2152{
2153  // Iterate through items via the restricted pointer.
2154  // Also check for declarations in for loops.
2155  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2156    continue;
2157  return 0;
2158}
2159
2160// Check varargs and va_copy.
2161static bool
2162test_varargs (const char *format, ...)
2163{
2164  va_list args;
2165  va_start (args, format);
2166  va_list args_copy;
2167  va_copy (args_copy, args);
2168
2169  const char *str = "";
2170  int number = 0;
2171  float fnumber = 0;
2172
2173  while (*format)
2174    {
2175      switch (*format++)
2176	{
2177	case '\''s'\'': // string
2178	  str = va_arg (args_copy, const char *);
2179	  break;
2180	case '\''d'\'': // int
2181	  number = va_arg (args_copy, int);
2182	  break;
2183	case '\''f'\'': // float
2184	  fnumber = va_arg (args_copy, double);
2185	  break;
2186	default:
2187	  break;
2188	}
2189    }
2190  va_end (args_copy);
2191  va_end (args);
2192
2193  return *str && number && fnumber;
2194}
2195'
2196
2197# Test code for whether the C compiler supports C99 (body of main).
2198ac_c_conftest_c99_main='
2199  // Check bool.
2200  _Bool success = false;
2201  success |= (argc != 0);
2202
2203  // Check restrict.
2204  if (test_restrict ("String literal") == 0)
2205    success = true;
2206  char *restrict newvar = "Another string";
2207
2208  // Check varargs.
2209  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2210  test_varargs_macros ();
2211
2212  // Check flexible array members.
2213  struct incomplete_array *ia =
2214    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2215  ia->datasize = 10;
2216  for (int i = 0; i < ia->datasize; ++i)
2217    ia->data[i] = i * 1.234;
2218  // Work around memory leak warnings.
2219  free (ia);
2220
2221  // Check named initializers.
2222  struct named_init ni = {
2223    .number = 34,
2224    .name = L"Test wide string",
2225    .average = 543.34343,
2226  };
2227
2228  ni.number = 58;
2229
2230  int dynamic_array[ni.number];
2231  dynamic_array[0] = argv[0][0];
2232  dynamic_array[ni.number - 1] = 543;
2233
2234  // work around unused variable warnings
2235  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2236	 || dynamic_array[ni.number - 1] != 543);
2237'
2238
2239# Test code for whether the C compiler supports C11 (global declarations)
2240ac_c_conftest_c11_globals='
2241/* Does the compiler advertise C11 conformance? */
2242#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2243# error "Compiler does not advertise C11 conformance"
2244#endif
2245
2246// Check _Alignas.
2247char _Alignas (double) aligned_as_double;
2248char _Alignas (0) no_special_alignment;
2249extern char aligned_as_int;
2250char _Alignas (0) _Alignas (int) aligned_as_int;
2251
2252// Check _Alignof.
2253enum
2254{
2255  int_alignment = _Alignof (int),
2256  int_array_alignment = _Alignof (int[100]),
2257  char_alignment = _Alignof (char)
2258};
2259_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2260
2261// Check _Noreturn.
2262int _Noreturn does_not_return (void) { for (;;) continue; }
2263
2264// Check _Static_assert.
2265struct test_static_assert
2266{
2267  int x;
2268  _Static_assert (sizeof (int) <= sizeof (long int),
2269                  "_Static_assert does not work in struct");
2270  long int y;
2271};
2272
2273// Check UTF-8 literals.
2274#define u8 syntax error!
2275char const utf8_literal[] = u8"happens to be ASCII" "another string";
2276
2277// Check duplicate typedefs.
2278typedef long *long_ptr;
2279typedef long int *long_ptr;
2280typedef long_ptr long_ptr;
2281
2282// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2283struct anonymous
2284{
2285  union {
2286    struct { int i; int j; };
2287    struct { int k; long int l; } w;
2288  };
2289  int m;
2290} v1;
2291'
2292
2293# Test code for whether the C compiler supports C11 (body of main).
2294ac_c_conftest_c11_main='
2295  _Static_assert ((offsetof (struct anonymous, i)
2296		   == offsetof (struct anonymous, w.k)),
2297		  "Anonymous union alignment botch");
2298  v1.i = 2;
2299  v1.w.k = 5;
2300  ok |= v1.i != 5;
2301'
2302
2303# Test code for whether the C compiler supports C11 (complete).
2304ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2305${ac_c_conftest_c99_globals}
2306${ac_c_conftest_c11_globals}
2307
2308int
2309main (int argc, char **argv)
2310{
2311  int ok = 0;
2312  ${ac_c_conftest_c89_main}
2313  ${ac_c_conftest_c99_main}
2314  ${ac_c_conftest_c11_main}
2315  return ok;
2316}
2317"
2318
2319# Test code for whether the C compiler supports C99 (complete).
2320ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2321${ac_c_conftest_c99_globals}
2322
2323int
2324main (int argc, char **argv)
2325{
2326  int ok = 0;
2327  ${ac_c_conftest_c89_main}
2328  ${ac_c_conftest_c99_main}
2329  return ok;
2330}
2331"
2332
2333# Test code for whether the C compiler supports C89 (complete).
2334ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2335
2336int
2337main (int argc, char **argv)
2338{
2339  int ok = 0;
2340  ${ac_c_conftest_c89_main}
2341  return ok;
2342}
2343"
2344
2345as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2346as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2347as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2348as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2349as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2350as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2351as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2352as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2353as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2354
2355# Auxiliary files required by this configure script.
2356ac_aux_files="config.guess config.sub compile missing install-sh"
2357
2358# Locations in which to look for auxiliary files.
2359ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2360
2361# Search for a directory containing all of the required auxiliary files,
2362# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2363# If we don't find one directory that contains all the files we need,
2364# we report the set of missing files from the *first* directory in
2365# $ac_aux_dir_candidates and give up.
2366ac_missing_aux_files=""
2367ac_first_candidate=:
2368printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370as_found=false
2371for as_dir in $ac_aux_dir_candidates
2372do
2373  IFS=$as_save_IFS
2374  case $as_dir in #(((
2375    '') as_dir=./ ;;
2376    */) ;;
2377    *) as_dir=$as_dir/ ;;
2378  esac
2379  as_found=:
2380
2381  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2382  ac_aux_dir_found=yes
2383  ac_install_sh=
2384  for ac_aux in $ac_aux_files
2385  do
2386    # As a special case, if "install-sh" is required, that requirement
2387    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2388    # and $ac_install_sh is set appropriately for whichever one is found.
2389    if test x"$ac_aux" = x"install-sh"
2390    then
2391      if test -f "${as_dir}install-sh"; then
2392        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2393        ac_install_sh="${as_dir}install-sh -c"
2394      elif test -f "${as_dir}install.sh"; then
2395        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2396        ac_install_sh="${as_dir}install.sh -c"
2397      elif test -f "${as_dir}shtool"; then
2398        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2399        ac_install_sh="${as_dir}shtool install -c"
2400      else
2401        ac_aux_dir_found=no
2402        if $ac_first_candidate; then
2403          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2404        else
2405          break
2406        fi
2407      fi
2408    else
2409      if test -f "${as_dir}${ac_aux}"; then
2410        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2411      else
2412        ac_aux_dir_found=no
2413        if $ac_first_candidate; then
2414          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2415        else
2416          break
2417        fi
2418      fi
2419    fi
2420  done
2421  if test "$ac_aux_dir_found" = yes; then
2422    ac_aux_dir="$as_dir"
2423    break
2424  fi
2425  ac_first_candidate=false
2426
2427  as_found=false
2428done
2429IFS=$as_save_IFS
2430if $as_found
2431then :
2432
2433else case e in #(
2434  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2435esac
2436fi
2437
2438
2439# These three variables are undocumented and unsupported,
2440# and are intended to be withdrawn in a future Autoconf release.
2441# They can cause serious problems if a builder's source tree is in a directory
2442# whose full name contains unusual characters.
2443if test -f "${ac_aux_dir}config.guess"; then
2444  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2445fi
2446if test -f "${ac_aux_dir}config.sub"; then
2447  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2448fi
2449if test -f "$ac_aux_dir/configure"; then
2450  ac_configure="$SHELL ${ac_aux_dir}configure"
2451fi
2452
2453# Check that the precious variables saved in the cache have kept the same
2454# value.
2455ac_cache_corrupted=false
2456for ac_var in $ac_precious_vars; do
2457  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2458  eval ac_new_set=\$ac_env_${ac_var}_set
2459  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2460  eval ac_new_val=\$ac_env_${ac_var}_value
2461  case $ac_old_set,$ac_new_set in
2462    set,)
2463      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2464printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2465      ac_cache_corrupted=: ;;
2466    ,set)
2467      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2468printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2469      ac_cache_corrupted=: ;;
2470    ,);;
2471    *)
2472      if test "x$ac_old_val" != "x$ac_new_val"; then
2473	# differences in whitespace do not lead to failure.
2474	ac_old_val_w=`echo x $ac_old_val`
2475	ac_new_val_w=`echo x $ac_new_val`
2476	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2477	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2478printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2479	  ac_cache_corrupted=:
2480	else
2481	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2482printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2483	  eval $ac_var=\$ac_old_val
2484	fi
2485	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2486printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2487	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2488printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2489      fi;;
2490  esac
2491  # Pass precious variables to config.status.
2492  if test "$ac_new_set" = set; then
2493    case $ac_new_val in
2494    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2495    *) ac_arg=$ac_var=$ac_new_val ;;
2496    esac
2497    case " $ac_configure_args " in
2498      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2499      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2500    esac
2501  fi
2502done
2503if $ac_cache_corrupted; then
2504  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2505printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2506  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2507printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2508  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2509	    and start over" "$LINENO" 5
2510fi
2511## -------------------- ##
2512## Main body of script. ##
2513## -------------------- ##
2514
2515ac_ext=c
2516ac_cpp='$CPP $CPPFLAGS'
2517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2519ac_compiler_gnu=$ac_cv_c_compiler_gnu
2520
2521
2522
2523ac_config_headers="$ac_config_headers config.h"
2524
2525
2526# Initialize Automake
2527am__api_version='1.16'
2528
2529
2530
2531  # Find a good install program.  We prefer a C program (faster),
2532# so one script is as good as another.  But avoid the broken or
2533# incompatible versions:
2534# SysV /etc/install, /usr/sbin/install
2535# SunOS /usr/etc/install
2536# IRIX /sbin/install
2537# AIX /bin/install
2538# AmigaOS /C/install, which installs bootblocks on floppy discs
2539# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2540# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2541# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2542# OS/2's system install, which has a completely different semantic
2543# ./install, which can be erroneously created by make from ./install.sh.
2544# Reject install programs that cannot install multiple files.
2545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2546printf %s "checking for a BSD-compatible install... " >&6; }
2547if test -z "$INSTALL"; then
2548if test ${ac_cv_path_install+y}
2549then :
2550  printf %s "(cached) " >&6
2551else case e in #(
2552  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553for as_dir in $PATH
2554do
2555  IFS=$as_save_IFS
2556  case $as_dir in #(((
2557    '') as_dir=./ ;;
2558    */) ;;
2559    *) as_dir=$as_dir/ ;;
2560  esac
2561    # Account for fact that we put trailing slashes in our PATH walk.
2562case $as_dir in #((
2563  ./ | /[cC]/* | \
2564  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2565  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2566  /usr/ucb/* ) ;;
2567  *)
2568    # OSF1 and SCO ODT 3.0 have their own names for install.
2569    # Don't use installbsd from OSF since it installs stuff as root
2570    # by default.
2571    for ac_prog in ginstall scoinst install; do
2572      for ac_exec_ext in '' $ac_executable_extensions; do
2573	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2574	  if test $ac_prog = install &&
2575	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2576	    # AIX install.  It has an incompatible calling convention.
2577	    :
2578	  elif test $ac_prog = install &&
2579	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2580	    # program-specific install script used by HP pwplus--don't use.
2581	    :
2582	  else
2583	    rm -rf conftest.one conftest.two conftest.dir
2584	    echo one > conftest.one
2585	    echo two > conftest.two
2586	    mkdir conftest.dir
2587	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2588	      test -s conftest.one && test -s conftest.two &&
2589	      test -s conftest.dir/conftest.one &&
2590	      test -s conftest.dir/conftest.two
2591	    then
2592	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2593	      break 3
2594	    fi
2595	  fi
2596	fi
2597      done
2598    done
2599    ;;
2600esac
2601
2602  done
2603IFS=$as_save_IFS
2604
2605rm -rf conftest.one conftest.two conftest.dir
2606 ;;
2607esac
2608fi
2609  if test ${ac_cv_path_install+y}; then
2610    INSTALL=$ac_cv_path_install
2611  else
2612    # As a last resort, use the slow shell script.  Don't cache a
2613    # value for INSTALL within a source directory, because that will
2614    # break other packages using the cache if that directory is
2615    # removed, or if the value is a relative name.
2616    INSTALL=$ac_install_sh
2617  fi
2618fi
2619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2620printf "%s\n" "$INSTALL" >&6; }
2621
2622# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2623# It thinks the first close brace ends the variable substitution.
2624test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2625
2626test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2627
2628test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2629
2630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2631printf %s "checking whether build environment is sane... " >&6; }
2632# Reject unsafe characters in $srcdir or the absolute working directory
2633# name.  Accept space and tab only in the latter.
2634am_lf='
2635'
2636case `pwd` in
2637  *[\\\"\#\$\&\'\`$am_lf]*)
2638    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2639esac
2640case $srcdir in
2641  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2642    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2643esac
2644
2645# Do 'set' in a subshell so we don't clobber the current shell's
2646# arguments.  Must try -L first in case configure is actually a
2647# symlink; some systems play weird games with the mod time of symlinks
2648# (eg FreeBSD returns the mod time of the symlink's containing
2649# directory).
2650if (
2651   am_has_slept=no
2652   for am_try in 1 2; do
2653     echo "timestamp, slept: $am_has_slept" > conftest.file
2654     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2655     if test "$*" = "X"; then
2656	# -L didn't work.
2657	set X `ls -t "$srcdir/configure" conftest.file`
2658     fi
2659     if test "$*" != "X $srcdir/configure conftest.file" \
2660	&& test "$*" != "X conftest.file $srcdir/configure"; then
2661
2662	# If neither matched, then we have a broken ls.  This can happen
2663	# if, for instance, CONFIG_SHELL is bash and it inherits a
2664	# broken ls alias from the environment.  This has actually
2665	# happened.  Such a system could not be considered "sane".
2666	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2667  alias in your environment" "$LINENO" 5
2668     fi
2669     if test "$2" = conftest.file || test $am_try -eq 2; then
2670       break
2671     fi
2672     # Just in case.
2673     sleep 1
2674     am_has_slept=yes
2675   done
2676   test "$2" = conftest.file
2677   )
2678then
2679   # Ok.
2680   :
2681else
2682   as_fn_error $? "newly created file is older than distributed files!
2683Check your system clock" "$LINENO" 5
2684fi
2685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2686printf "%s\n" "yes" >&6; }
2687# If we didn't sleep, we still need to ensure time stamps of config.status and
2688# generated files are strictly newer.
2689am_sleep_pid=
2690if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2691  ( sleep 1 ) &
2692  am_sleep_pid=$!
2693fi
2694
2695rm -f conftest.file
2696
2697test "$program_prefix" != NONE &&
2698  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2699# Use a double $ so make ignores it.
2700test "$program_suffix" != NONE &&
2701  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2702# Double any \ or $.
2703# By default was 's,x,x', remove it if useless.
2704ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2705program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2706
2707
2708# Expand $ac_aux_dir to an absolute path.
2709am_aux_dir=`cd "$ac_aux_dir" && pwd`
2710
2711
2712  if test x"${MISSING+set}" != xset; then
2713  MISSING="\${SHELL} '$am_aux_dir/missing'"
2714fi
2715# Use eval to expand $SHELL
2716if eval "$MISSING --is-lightweight"; then
2717  am_missing_run="$MISSING "
2718else
2719  am_missing_run=
2720  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2721printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2722fi
2723
2724if test x"${install_sh+set}" != xset; then
2725  case $am_aux_dir in
2726  *\ * | *\	*)
2727    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2728  *)
2729    install_sh="\${SHELL} $am_aux_dir/install-sh"
2730  esac
2731fi
2732
2733# Installed binaries are usually stripped using 'strip' when the user
2734# run "make install-strip".  However 'strip' might not be the right
2735# tool to use in cross-compilation environments, therefore Automake
2736# will honor the 'STRIP' environment variable to overrule this program.
2737if test "$cross_compiling" != no; then
2738  if test -n "$ac_tool_prefix"; then
2739  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2740set dummy ${ac_tool_prefix}strip; ac_word=$2
2741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742printf %s "checking for $ac_word... " >&6; }
2743if test ${ac_cv_prog_STRIP+y}
2744then :
2745  printf %s "(cached) " >&6
2746else case e in #(
2747  e) if test -n "$STRIP"; then
2748  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2749else
2750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751for as_dir in $PATH
2752do
2753  IFS=$as_save_IFS
2754  case $as_dir in #(((
2755    '') as_dir=./ ;;
2756    */) ;;
2757    *) as_dir=$as_dir/ ;;
2758  esac
2759    for ac_exec_ext in '' $ac_executable_extensions; do
2760  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2761    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2762    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2763    break 2
2764  fi
2765done
2766  done
2767IFS=$as_save_IFS
2768
2769fi ;;
2770esac
2771fi
2772STRIP=$ac_cv_prog_STRIP
2773if test -n "$STRIP"; then
2774  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2775printf "%s\n" "$STRIP" >&6; }
2776else
2777  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2778printf "%s\n" "no" >&6; }
2779fi
2780
2781
2782fi
2783if test -z "$ac_cv_prog_STRIP"; then
2784  ac_ct_STRIP=$STRIP
2785  # Extract the first word of "strip", so it can be a program name with args.
2786set dummy strip; ac_word=$2
2787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2788printf %s "checking for $ac_word... " >&6; }
2789if test ${ac_cv_prog_ac_ct_STRIP+y}
2790then :
2791  printf %s "(cached) " >&6
2792else case e in #(
2793  e) if test -n "$ac_ct_STRIP"; then
2794  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2795else
2796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797for as_dir in $PATH
2798do
2799  IFS=$as_save_IFS
2800  case $as_dir in #(((
2801    '') as_dir=./ ;;
2802    */) ;;
2803    *) as_dir=$as_dir/ ;;
2804  esac
2805    for ac_exec_ext in '' $ac_executable_extensions; do
2806  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2807    ac_cv_prog_ac_ct_STRIP="strip"
2808    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2809    break 2
2810  fi
2811done
2812  done
2813IFS=$as_save_IFS
2814
2815fi ;;
2816esac
2817fi
2818ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2819if test -n "$ac_ct_STRIP"; then
2820  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2821printf "%s\n" "$ac_ct_STRIP" >&6; }
2822else
2823  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824printf "%s\n" "no" >&6; }
2825fi
2826
2827  if test "x$ac_ct_STRIP" = x; then
2828    STRIP=":"
2829  else
2830    case $cross_compiling:$ac_tool_warned in
2831yes:)
2832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2833printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2834ac_tool_warned=yes ;;
2835esac
2836    STRIP=$ac_ct_STRIP
2837  fi
2838else
2839  STRIP="$ac_cv_prog_STRIP"
2840fi
2841
2842fi
2843INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2844
2845
2846  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2847printf %s "checking for a race-free mkdir -p... " >&6; }
2848if test -z "$MKDIR_P"; then
2849  if test ${ac_cv_path_mkdir+y}
2850then :
2851  printf %s "(cached) " >&6
2852else case e in #(
2853  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2855do
2856  IFS=$as_save_IFS
2857  case $as_dir in #(((
2858    '') as_dir=./ ;;
2859    */) ;;
2860    *) as_dir=$as_dir/ ;;
2861  esac
2862    for ac_prog in mkdir gmkdir; do
2863	 for ac_exec_ext in '' $ac_executable_extensions; do
2864	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2865	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2866	     'mkdir ('*'coreutils) '* | \
2867	     *'BusyBox '* | \
2868	     'mkdir (fileutils) '4.1*)
2869	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2870	       break 3;;
2871	   esac
2872	 done
2873       done
2874  done
2875IFS=$as_save_IFS
2876 ;;
2877esac
2878fi
2879
2880  test -d ./--version && rmdir ./--version
2881  if test ${ac_cv_path_mkdir+y}; then
2882    MKDIR_P="$ac_cv_path_mkdir -p"
2883  else
2884    # As a last resort, use plain mkdir -p,
2885    # in the hope it doesn't have the bugs of ancient mkdir.
2886    MKDIR_P='mkdir -p'
2887  fi
2888fi
2889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2890printf "%s\n" "$MKDIR_P" >&6; }
2891
2892for ac_prog in gawk mawk nawk awk
2893do
2894  # Extract the first word of "$ac_prog", so it can be a program name with args.
2895set dummy $ac_prog; ac_word=$2
2896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897printf %s "checking for $ac_word... " >&6; }
2898if test ${ac_cv_prog_AWK+y}
2899then :
2900  printf %s "(cached) " >&6
2901else case e in #(
2902  e) if test -n "$AWK"; then
2903  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2904else
2905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906for as_dir in $PATH
2907do
2908  IFS=$as_save_IFS
2909  case $as_dir in #(((
2910    '') as_dir=./ ;;
2911    */) ;;
2912    *) as_dir=$as_dir/ ;;
2913  esac
2914    for ac_exec_ext in '' $ac_executable_extensions; do
2915  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2916    ac_cv_prog_AWK="$ac_prog"
2917    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2918    break 2
2919  fi
2920done
2921  done
2922IFS=$as_save_IFS
2923
2924fi ;;
2925esac
2926fi
2927AWK=$ac_cv_prog_AWK
2928if test -n "$AWK"; then
2929  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2930printf "%s\n" "$AWK" >&6; }
2931else
2932  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933printf "%s\n" "no" >&6; }
2934fi
2935
2936
2937  test -n "$AWK" && break
2938done
2939
2940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2941printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2942set x ${MAKE-make}
2943ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2944if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2945then :
2946  printf %s "(cached) " >&6
2947else case e in #(
2948  e) cat >conftest.make <<\_ACEOF
2949SHELL = /bin/sh
2950all:
2951	@echo '@@@%%%=$(MAKE)=@@@%%%'
2952_ACEOF
2953# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2954case `${MAKE-make} -f conftest.make 2>/dev/null` in
2955  *@@@%%%=?*=@@@%%%*)
2956    eval ac_cv_prog_make_${ac_make}_set=yes;;
2957  *)
2958    eval ac_cv_prog_make_${ac_make}_set=no;;
2959esac
2960rm -f conftest.make ;;
2961esac
2962fi
2963if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2964  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2965printf "%s\n" "yes" >&6; }
2966  SET_MAKE=
2967else
2968  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969printf "%s\n" "no" >&6; }
2970  SET_MAKE="MAKE=${MAKE-make}"
2971fi
2972
2973rm -rf .tst 2>/dev/null
2974mkdir .tst 2>/dev/null
2975if test -d .tst; then
2976  am__leading_dot=.
2977else
2978  am__leading_dot=_
2979fi
2980rmdir .tst 2>/dev/null
2981
2982# Check whether --enable-silent-rules was given.
2983if test ${enable_silent_rules+y}
2984then :
2985  enableval=$enable_silent_rules;
2986fi
2987
2988case $enable_silent_rules in # (((
2989  yes) AM_DEFAULT_VERBOSITY=0;;
2990   no) AM_DEFAULT_VERBOSITY=1;;
2991    *) AM_DEFAULT_VERBOSITY=1;;
2992esac
2993am_make=${MAKE-make}
2994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2995printf %s "checking whether $am_make supports nested variables... " >&6; }
2996if test ${am_cv_make_support_nested_variables+y}
2997then :
2998  printf %s "(cached) " >&6
2999else case e in #(
3000  e) if printf "%s\n" 'TRUE=$(BAR$(V))
3001BAR0=false
3002BAR1=true
3003V=1
3004am__doit:
3005	@$(TRUE)
3006.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3007  am_cv_make_support_nested_variables=yes
3008else
3009  am_cv_make_support_nested_variables=no
3010fi ;;
3011esac
3012fi
3013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3014printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3015if test $am_cv_make_support_nested_variables = yes; then
3016    AM_V='$(V)'
3017  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3018else
3019  AM_V=$AM_DEFAULT_VERBOSITY
3020  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3021fi
3022AM_BACKSLASH='\'
3023
3024if test "`cd $srcdir && pwd`" != "`pwd`"; then
3025  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3026  # is not polluted with repeated "-I."
3027  am__isrc=' -I$(srcdir)'
3028  # test to see if srcdir already configured
3029  if test -f $srcdir/config.status; then
3030    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3031  fi
3032fi
3033
3034# test whether we have cygpath
3035if test -z "$CYGPATH_W"; then
3036  if (cygpath --version) >/dev/null 2>/dev/null; then
3037    CYGPATH_W='cygpath -w'
3038  else
3039    CYGPATH_W=echo
3040  fi
3041fi
3042
3043
3044# Define the identity of the package.
3045 PACKAGE='editres'
3046 VERSION='1.0.9'
3047
3048
3049printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3050
3051
3052printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3053
3054# Some tools Automake needs.
3055
3056ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3057
3058
3059AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3060
3061
3062AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3063
3064
3065AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3066
3067
3068MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3069
3070# For better backward compatibility.  To be removed once Automake 1.9.x
3071# dies out for good.  For more background, see:
3072# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3073# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3074mkdir_p='$(MKDIR_P)'
3075
3076# We need awk for the "check" target (and possibly the TAP driver).  The
3077# system "awk" is bad on some platforms.
3078# Always define AMTAR for backward compatibility.  Yes, it's still used
3079# in the wild :-(  We should find a proper way to deprecate it ...
3080AMTAR='$${TAR-tar}'
3081
3082
3083# We'll loop over all known methods to create a tar archive until one works.
3084_am_tools='gnutar  pax cpio none'
3085
3086am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3087
3088
3089
3090
3091
3092# Variables for tags utilities; see am/tags.am
3093if test -z "$CTAGS"; then
3094  CTAGS=ctags
3095fi
3096
3097if test -z "$ETAGS"; then
3098  ETAGS=etags
3099fi
3100
3101if test -z "$CSCOPE"; then
3102  CSCOPE=cscope
3103fi
3104
3105
3106
3107# POSIX will say in a future version that running "rm -f" with no argument
3108# is OK; and we want to be able to make that assumption in our Makefile
3109# recipes.  So use an aggressive probe to check that the usage we want is
3110# actually supported "in the wild" to an acceptable degree.
3111# See automake bug#10828.
3112# To make any issue more visible, cause the running configure to be aborted
3113# by default if the 'rm' program in use doesn't match our expectations; the
3114# user can still override this though.
3115if rm -f && rm -fr && rm -rf; then : OK; else
3116  cat >&2 <<'END'
3117Oops!
3118
3119Your 'rm' program seems unable to run without file operands specified
3120on the command line, even when the '-f' option is present.  This is contrary
3121to the behaviour of most rm programs out there, and not conforming with
3122the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3123
3124Please tell bug-automake@gnu.org about your system, including the value
3125of your $PATH and any error possibly output before this message.  This
3126can help us improve future automake versions.
3127
3128END
3129  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3130    echo 'Configuration will proceed anyway, since you have set the' >&2
3131    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3132    echo >&2
3133  else
3134    cat >&2 <<'END'
3135Aborting the configuration process, to ensure you take notice of the issue.
3136
3137You can download and install GNU coreutils to get an 'rm' implementation
3138that behaves properly: <https://www.gnu.org/software/coreutils/>.
3139
3140If you want to complete the configuration process using your problematic
3141'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3142to "yes", and re-run configure.
3143
3144END
3145    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3146  fi
3147fi
3148
3149
3150# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171DEPDIR="${am__leading_dot}deps"
3172
3173ac_config_commands="$ac_config_commands depfiles"
3174
3175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3176printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3177cat > confinc.mk << 'END'
3178am__doit:
3179	@echo this is the am__doit target >confinc.out
3180.PHONY: am__doit
3181END
3182am__include="#"
3183am__quote=
3184# BSD make does it like this.
3185echo '.include "confinc.mk" # ignored' > confmf.BSD
3186# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3187echo 'include confinc.mk # ignored' > confmf.GNU
3188_am_result=no
3189for s in GNU BSD; do
3190  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3191   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3192   ac_status=$?
3193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194   (exit $ac_status); }
3195  case $?:`cat confinc.out 2>/dev/null` in #(
3196  '0:this is the am__doit target') :
3197    case $s in #(
3198  BSD) :
3199    am__include='.include' am__quote='"' ;; #(
3200  *) :
3201    am__include='include' am__quote='' ;;
3202esac ;; #(
3203  *) :
3204     ;;
3205esac
3206  if test "$am__include" != "#"; then
3207    _am_result="yes ($s style)"
3208    break
3209  fi
3210done
3211rm -f confinc.* confmf.*
3212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3213printf "%s\n" "${_am_result}" >&6; }
3214
3215# Check whether --enable-dependency-tracking was given.
3216if test ${enable_dependency_tracking+y}
3217then :
3218  enableval=$enable_dependency_tracking;
3219fi
3220
3221if test "x$enable_dependency_tracking" != xno; then
3222  am_depcomp="$ac_aux_dir/depcomp"
3223  AMDEPBACKSLASH='\'
3224  am__nodep='_no'
3225fi
3226 if test "x$enable_dependency_tracking" != xno; then
3227  AMDEP_TRUE=
3228  AMDEP_FALSE='#'
3229else
3230  AMDEP_TRUE='#'
3231  AMDEP_FALSE=
3232fi
3233
3234
3235ac_ext=c
3236ac_cpp='$CPP $CPPFLAGS'
3237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239ac_compiler_gnu=$ac_cv_c_compiler_gnu
3240if test -n "$ac_tool_prefix"; then
3241  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3242set dummy ${ac_tool_prefix}gcc; ac_word=$2
3243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244printf %s "checking for $ac_word... " >&6; }
3245if test ${ac_cv_prog_CC+y}
3246then :
3247  printf %s "(cached) " >&6
3248else case e in #(
3249  e) if test -n "$CC"; then
3250  ac_cv_prog_CC="$CC" # Let the user override the test.
3251else
3252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253for as_dir in $PATH
3254do
3255  IFS=$as_save_IFS
3256  case $as_dir in #(((
3257    '') as_dir=./ ;;
3258    */) ;;
3259    *) as_dir=$as_dir/ ;;
3260  esac
3261    for ac_exec_ext in '' $ac_executable_extensions; do
3262  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3263    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3264    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3265    break 2
3266  fi
3267done
3268  done
3269IFS=$as_save_IFS
3270
3271fi ;;
3272esac
3273fi
3274CC=$ac_cv_prog_CC
3275if test -n "$CC"; then
3276  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3277printf "%s\n" "$CC" >&6; }
3278else
3279  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280printf "%s\n" "no" >&6; }
3281fi
3282
3283
3284fi
3285if test -z "$ac_cv_prog_CC"; then
3286  ac_ct_CC=$CC
3287  # Extract the first word of "gcc", so it can be a program name with args.
3288set dummy gcc; ac_word=$2
3289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3290printf %s "checking for $ac_word... " >&6; }
3291if test ${ac_cv_prog_ac_ct_CC+y}
3292then :
3293  printf %s "(cached) " >&6
3294else case e in #(
3295  e) if test -n "$ac_ct_CC"; then
3296  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3297else
3298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299for as_dir in $PATH
3300do
3301  IFS=$as_save_IFS
3302  case $as_dir in #(((
3303    '') as_dir=./ ;;
3304    */) ;;
3305    *) as_dir=$as_dir/ ;;
3306  esac
3307    for ac_exec_ext in '' $ac_executable_extensions; do
3308  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3309    ac_cv_prog_ac_ct_CC="gcc"
3310    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3311    break 2
3312  fi
3313done
3314  done
3315IFS=$as_save_IFS
3316
3317fi ;;
3318esac
3319fi
3320ac_ct_CC=$ac_cv_prog_ac_ct_CC
3321if test -n "$ac_ct_CC"; then
3322  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3323printf "%s\n" "$ac_ct_CC" >&6; }
3324else
3325  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326printf "%s\n" "no" >&6; }
3327fi
3328
3329  if test "x$ac_ct_CC" = x; then
3330    CC=""
3331  else
3332    case $cross_compiling:$ac_tool_warned in
3333yes:)
3334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3335printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3336ac_tool_warned=yes ;;
3337esac
3338    CC=$ac_ct_CC
3339  fi
3340else
3341  CC="$ac_cv_prog_CC"
3342fi
3343
3344if test -z "$CC"; then
3345          if test -n "$ac_tool_prefix"; then
3346    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3347set dummy ${ac_tool_prefix}cc; ac_word=$2
3348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3349printf %s "checking for $ac_word... " >&6; }
3350if test ${ac_cv_prog_CC+y}
3351then :
3352  printf %s "(cached) " >&6
3353else case e in #(
3354  e) if test -n "$CC"; then
3355  ac_cv_prog_CC="$CC" # Let the user override the test.
3356else
3357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358for as_dir in $PATH
3359do
3360  IFS=$as_save_IFS
3361  case $as_dir in #(((
3362    '') as_dir=./ ;;
3363    */) ;;
3364    *) as_dir=$as_dir/ ;;
3365  esac
3366    for ac_exec_ext in '' $ac_executable_extensions; do
3367  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3368    ac_cv_prog_CC="${ac_tool_prefix}cc"
3369    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3370    break 2
3371  fi
3372done
3373  done
3374IFS=$as_save_IFS
3375
3376fi ;;
3377esac
3378fi
3379CC=$ac_cv_prog_CC
3380if test -n "$CC"; then
3381  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3382printf "%s\n" "$CC" >&6; }
3383else
3384  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385printf "%s\n" "no" >&6; }
3386fi
3387
3388
3389  fi
3390fi
3391if test -z "$CC"; then
3392  # Extract the first word of "cc", so it can be a program name with args.
3393set dummy cc; ac_word=$2
3394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395printf %s "checking for $ac_word... " >&6; }
3396if test ${ac_cv_prog_CC+y}
3397then :
3398  printf %s "(cached) " >&6
3399else case e in #(
3400  e) if test -n "$CC"; then
3401  ac_cv_prog_CC="$CC" # Let the user override the test.
3402else
3403  ac_prog_rejected=no
3404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405for as_dir in $PATH
3406do
3407  IFS=$as_save_IFS
3408  case $as_dir in #(((
3409    '') as_dir=./ ;;
3410    */) ;;
3411    *) as_dir=$as_dir/ ;;
3412  esac
3413    for ac_exec_ext in '' $ac_executable_extensions; do
3414  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3415    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3416       ac_prog_rejected=yes
3417       continue
3418     fi
3419    ac_cv_prog_CC="cc"
3420    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3421    break 2
3422  fi
3423done
3424  done
3425IFS=$as_save_IFS
3426
3427if test $ac_prog_rejected = yes; then
3428  # We found a bogon in the path, so make sure we never use it.
3429  set dummy $ac_cv_prog_CC
3430  shift
3431  if test $# != 0; then
3432    # We chose a different compiler from the bogus one.
3433    # However, it has the same basename, so the bogon will be chosen
3434    # first if we set CC to just the basename; use the full file name.
3435    shift
3436    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3437  fi
3438fi
3439fi ;;
3440esac
3441fi
3442CC=$ac_cv_prog_CC
3443if test -n "$CC"; then
3444  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3445printf "%s\n" "$CC" >&6; }
3446else
3447  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448printf "%s\n" "no" >&6; }
3449fi
3450
3451
3452fi
3453if test -z "$CC"; then
3454  if test -n "$ac_tool_prefix"; then
3455  for ac_prog in cl.exe
3456  do
3457    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3458set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3460printf %s "checking for $ac_word... " >&6; }
3461if test ${ac_cv_prog_CC+y}
3462then :
3463  printf %s "(cached) " >&6
3464else case e in #(
3465  e) if test -n "$CC"; then
3466  ac_cv_prog_CC="$CC" # Let the user override the test.
3467else
3468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469for as_dir in $PATH
3470do
3471  IFS=$as_save_IFS
3472  case $as_dir in #(((
3473    '') as_dir=./ ;;
3474    */) ;;
3475    *) as_dir=$as_dir/ ;;
3476  esac
3477    for ac_exec_ext in '' $ac_executable_extensions; do
3478  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3479    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3480    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3481    break 2
3482  fi
3483done
3484  done
3485IFS=$as_save_IFS
3486
3487fi ;;
3488esac
3489fi
3490CC=$ac_cv_prog_CC
3491if test -n "$CC"; then
3492  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3493printf "%s\n" "$CC" >&6; }
3494else
3495  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496printf "%s\n" "no" >&6; }
3497fi
3498
3499
3500    test -n "$CC" && break
3501  done
3502fi
3503if test -z "$CC"; then
3504  ac_ct_CC=$CC
3505  for ac_prog in cl.exe
3506do
3507  # Extract the first word of "$ac_prog", so it can be a program name with args.
3508set dummy $ac_prog; ac_word=$2
3509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510printf %s "checking for $ac_word... " >&6; }
3511if test ${ac_cv_prog_ac_ct_CC+y}
3512then :
3513  printf %s "(cached) " >&6
3514else case e in #(
3515  e) if test -n "$ac_ct_CC"; then
3516  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3517else
3518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519for as_dir in $PATH
3520do
3521  IFS=$as_save_IFS
3522  case $as_dir in #(((
3523    '') as_dir=./ ;;
3524    */) ;;
3525    *) as_dir=$as_dir/ ;;
3526  esac
3527    for ac_exec_ext in '' $ac_executable_extensions; do
3528  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3529    ac_cv_prog_ac_ct_CC="$ac_prog"
3530    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3531    break 2
3532  fi
3533done
3534  done
3535IFS=$as_save_IFS
3536
3537fi ;;
3538esac
3539fi
3540ac_ct_CC=$ac_cv_prog_ac_ct_CC
3541if test -n "$ac_ct_CC"; then
3542  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3543printf "%s\n" "$ac_ct_CC" >&6; }
3544else
3545  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546printf "%s\n" "no" >&6; }
3547fi
3548
3549
3550  test -n "$ac_ct_CC" && break
3551done
3552
3553  if test "x$ac_ct_CC" = x; then
3554    CC=""
3555  else
3556    case $cross_compiling:$ac_tool_warned in
3557yes:)
3558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3559printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3560ac_tool_warned=yes ;;
3561esac
3562    CC=$ac_ct_CC
3563  fi
3564fi
3565
3566fi
3567if test -z "$CC"; then
3568  if test -n "$ac_tool_prefix"; then
3569  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3570set dummy ${ac_tool_prefix}clang; ac_word=$2
3571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3572printf %s "checking for $ac_word... " >&6; }
3573if test ${ac_cv_prog_CC+y}
3574then :
3575  printf %s "(cached) " >&6
3576else case e in #(
3577  e) if test -n "$CC"; then
3578  ac_cv_prog_CC="$CC" # Let the user override the test.
3579else
3580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581for as_dir in $PATH
3582do
3583  IFS=$as_save_IFS
3584  case $as_dir in #(((
3585    '') as_dir=./ ;;
3586    */) ;;
3587    *) as_dir=$as_dir/ ;;
3588  esac
3589    for ac_exec_ext in '' $ac_executable_extensions; do
3590  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3591    ac_cv_prog_CC="${ac_tool_prefix}clang"
3592    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3593    break 2
3594  fi
3595done
3596  done
3597IFS=$as_save_IFS
3598
3599fi ;;
3600esac
3601fi
3602CC=$ac_cv_prog_CC
3603if test -n "$CC"; then
3604  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3605printf "%s\n" "$CC" >&6; }
3606else
3607  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608printf "%s\n" "no" >&6; }
3609fi
3610
3611
3612fi
3613if test -z "$ac_cv_prog_CC"; then
3614  ac_ct_CC=$CC
3615  # Extract the first word of "clang", so it can be a program name with args.
3616set dummy clang; ac_word=$2
3617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3618printf %s "checking for $ac_word... " >&6; }
3619if test ${ac_cv_prog_ac_ct_CC+y}
3620then :
3621  printf %s "(cached) " >&6
3622else case e in #(
3623  e) if test -n "$ac_ct_CC"; then
3624  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3625else
3626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627for as_dir in $PATH
3628do
3629  IFS=$as_save_IFS
3630  case $as_dir in #(((
3631    '') as_dir=./ ;;
3632    */) ;;
3633    *) as_dir=$as_dir/ ;;
3634  esac
3635    for ac_exec_ext in '' $ac_executable_extensions; do
3636  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3637    ac_cv_prog_ac_ct_CC="clang"
3638    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3639    break 2
3640  fi
3641done
3642  done
3643IFS=$as_save_IFS
3644
3645fi ;;
3646esac
3647fi
3648ac_ct_CC=$ac_cv_prog_ac_ct_CC
3649if test -n "$ac_ct_CC"; then
3650  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3651printf "%s\n" "$ac_ct_CC" >&6; }
3652else
3653  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3654printf "%s\n" "no" >&6; }
3655fi
3656
3657  if test "x$ac_ct_CC" = x; then
3658    CC=""
3659  else
3660    case $cross_compiling:$ac_tool_warned in
3661yes:)
3662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3663printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3664ac_tool_warned=yes ;;
3665esac
3666    CC=$ac_ct_CC
3667  fi
3668else
3669  CC="$ac_cv_prog_CC"
3670fi
3671
3672fi
3673
3674
3675test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3676printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3677as_fn_error $? "no acceptable C compiler found in \$PATH
3678See 'config.log' for more details" "$LINENO" 5; }
3679
3680# Provide some information about the compiler.
3681printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3682set X $ac_compile
3683ac_compiler=$2
3684for ac_option in --version -v -V -qversion -version; do
3685  { { ac_try="$ac_compiler $ac_option >&5"
3686case "(($ac_try" in
3687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688  *) ac_try_echo=$ac_try;;
3689esac
3690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3691printf "%s\n" "$ac_try_echo"; } >&5
3692  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3693  ac_status=$?
3694  if test -s conftest.err; then
3695    sed '10a\
3696... rest of stderr output deleted ...
3697         10q' conftest.err >conftest.er1
3698    cat conftest.er1 >&5
3699  fi
3700  rm -f conftest.er1 conftest.err
3701  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3702  test $ac_status = 0; }
3703done
3704
3705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706/* end confdefs.h.  */
3707
3708int
3709main (void)
3710{
3711
3712  ;
3713  return 0;
3714}
3715_ACEOF
3716ac_clean_files_save=$ac_clean_files
3717ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3718# Try to create an executable without -o first, disregard a.out.
3719# It will help us diagnose broken compilers, and finding out an intuition
3720# of exeext.
3721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3722printf %s "checking whether the C compiler works... " >&6; }
3723ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3724
3725# The possible output files:
3726ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3727
3728ac_rmfiles=
3729for ac_file in $ac_files
3730do
3731  case $ac_file in
3732    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3733    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3734  esac
3735done
3736rm -f $ac_rmfiles
3737
3738if { { ac_try="$ac_link_default"
3739case "(($ac_try" in
3740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741  *) ac_try_echo=$ac_try;;
3742esac
3743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3744printf "%s\n" "$ac_try_echo"; } >&5
3745  (eval "$ac_link_default") 2>&5
3746  ac_status=$?
3747  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3748  test $ac_status = 0; }
3749then :
3750  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3751# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3752# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3753# so that the user can short-circuit this test for compilers unknown to
3754# Autoconf.
3755for ac_file in $ac_files ''
3756do
3757  test -f "$ac_file" || continue
3758  case $ac_file in
3759    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3760	;;
3761    [ab].out )
3762	# We found the default executable, but exeext='' is most
3763	# certainly right.
3764	break;;
3765    *.* )
3766	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3767	then :; else
3768	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3769	fi
3770	# We set ac_cv_exeext here because the later test for it is not
3771	# safe: cross compilers may not add the suffix if given an '-o'
3772	# argument, so we may need to know it at that point already.
3773	# Even if this section looks crufty: it has the advantage of
3774	# actually working.
3775	break;;
3776    * )
3777	break;;
3778  esac
3779done
3780test "$ac_cv_exeext" = no && ac_cv_exeext=
3781
3782else case e in #(
3783  e) ac_file='' ;;
3784esac
3785fi
3786if test -z "$ac_file"
3787then :
3788  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789printf "%s\n" "no" >&6; }
3790printf "%s\n" "$as_me: failed program was:" >&5
3791sed 's/^/| /' conftest.$ac_ext >&5
3792
3793{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3794printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3795as_fn_error 77 "C compiler cannot create executables
3796See 'config.log' for more details" "$LINENO" 5; }
3797else case e in #(
3798  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3799printf "%s\n" "yes" >&6; } ;;
3800esac
3801fi
3802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3803printf %s "checking for C compiler default output file name... " >&6; }
3804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3805printf "%s\n" "$ac_file" >&6; }
3806ac_exeext=$ac_cv_exeext
3807
3808rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3809ac_clean_files=$ac_clean_files_save
3810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3811printf %s "checking for suffix of executables... " >&6; }
3812if { { ac_try="$ac_link"
3813case "(($ac_try" in
3814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815  *) ac_try_echo=$ac_try;;
3816esac
3817eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3818printf "%s\n" "$ac_try_echo"; } >&5
3819  (eval "$ac_link") 2>&5
3820  ac_status=$?
3821  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3822  test $ac_status = 0; }
3823then :
3824  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3825# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
3826# work properly (i.e., refer to 'conftest.exe'), while it won't with
3827# 'rm'.
3828for ac_file in conftest.exe conftest conftest.*; do
3829  test -f "$ac_file" || continue
3830  case $ac_file in
3831    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3832    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3833	  break;;
3834    * ) break;;
3835  esac
3836done
3837else case e in #(
3838  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3839printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3840as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3841See 'config.log' for more details" "$LINENO" 5; } ;;
3842esac
3843fi
3844rm -f conftest conftest$ac_cv_exeext
3845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3846printf "%s\n" "$ac_cv_exeext" >&6; }
3847
3848rm -f conftest.$ac_ext
3849EXEEXT=$ac_cv_exeext
3850ac_exeext=$EXEEXT
3851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852/* end confdefs.h.  */
3853#include <stdio.h>
3854int
3855main (void)
3856{
3857FILE *f = fopen ("conftest.out", "w");
3858 if (!f)
3859  return 1;
3860 return ferror (f) || fclose (f) != 0;
3861
3862  ;
3863  return 0;
3864}
3865_ACEOF
3866ac_clean_files="$ac_clean_files conftest.out"
3867# Check that the compiler produces executables we can run.  If not, either
3868# the compiler is broken, or we cross compile.
3869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3870printf %s "checking whether we are cross compiling... " >&6; }
3871if test "$cross_compiling" != yes; then
3872  { { ac_try="$ac_link"
3873case "(($ac_try" in
3874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875  *) ac_try_echo=$ac_try;;
3876esac
3877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3878printf "%s\n" "$ac_try_echo"; } >&5
3879  (eval "$ac_link") 2>&5
3880  ac_status=$?
3881  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3882  test $ac_status = 0; }
3883  if { ac_try='./conftest$ac_cv_exeext'
3884  { { case "(($ac_try" in
3885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886  *) ac_try_echo=$ac_try;;
3887esac
3888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3889printf "%s\n" "$ac_try_echo"; } >&5
3890  (eval "$ac_try") 2>&5
3891  ac_status=$?
3892  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893  test $ac_status = 0; }; }; then
3894    cross_compiling=no
3895  else
3896    if test "$cross_compiling" = maybe; then
3897	cross_compiling=yes
3898    else
3899	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3900printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3901as_fn_error 77 "cannot run C compiled programs.
3902If you meant to cross compile, use '--host'.
3903See 'config.log' for more details" "$LINENO" 5; }
3904    fi
3905  fi
3906fi
3907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3908printf "%s\n" "$cross_compiling" >&6; }
3909
3910rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3911  conftest.o conftest.obj conftest.out
3912ac_clean_files=$ac_clean_files_save
3913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3914printf %s "checking for suffix of object files... " >&6; }
3915if test ${ac_cv_objext+y}
3916then :
3917  printf %s "(cached) " >&6
3918else case e in #(
3919  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920/* end confdefs.h.  */
3921
3922int
3923main (void)
3924{
3925
3926  ;
3927  return 0;
3928}
3929_ACEOF
3930rm -f conftest.o conftest.obj
3931if { { ac_try="$ac_compile"
3932case "(($ac_try" in
3933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934  *) ac_try_echo=$ac_try;;
3935esac
3936eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3937printf "%s\n" "$ac_try_echo"; } >&5
3938  (eval "$ac_compile") 2>&5
3939  ac_status=$?
3940  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3941  test $ac_status = 0; }
3942then :
3943  for ac_file in conftest.o conftest.obj conftest.*; do
3944  test -f "$ac_file" || continue;
3945  case $ac_file in
3946    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3947    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3948       break;;
3949  esac
3950done
3951else case e in #(
3952  e) printf "%s\n" "$as_me: failed program was:" >&5
3953sed 's/^/| /' conftest.$ac_ext >&5
3954
3955{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3956printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3957as_fn_error $? "cannot compute suffix of object files: cannot compile
3958See 'config.log' for more details" "$LINENO" 5; } ;;
3959esac
3960fi
3961rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3962esac
3963fi
3964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3965printf "%s\n" "$ac_cv_objext" >&6; }
3966OBJEXT=$ac_cv_objext
3967ac_objext=$OBJEXT
3968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3969printf %s "checking whether the compiler supports GNU C... " >&6; }
3970if test ${ac_cv_c_compiler_gnu+y}
3971then :
3972  printf %s "(cached) " >&6
3973else case e in #(
3974  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975/* end confdefs.h.  */
3976
3977int
3978main (void)
3979{
3980#ifndef __GNUC__
3981       choke me
3982#endif
3983
3984  ;
3985  return 0;
3986}
3987_ACEOF
3988if ac_fn_c_try_compile "$LINENO"
3989then :
3990  ac_compiler_gnu=yes
3991else case e in #(
3992  e) ac_compiler_gnu=no ;;
3993esac
3994fi
3995rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3996ac_cv_c_compiler_gnu=$ac_compiler_gnu
3997 ;;
3998esac
3999fi
4000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4001printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4002ac_compiler_gnu=$ac_cv_c_compiler_gnu
4003
4004if test $ac_compiler_gnu = yes; then
4005  GCC=yes
4006else
4007  GCC=
4008fi
4009ac_test_CFLAGS=${CFLAGS+y}
4010ac_save_CFLAGS=$CFLAGS
4011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4012printf %s "checking whether $CC accepts -g... " >&6; }
4013if test ${ac_cv_prog_cc_g+y}
4014then :
4015  printf %s "(cached) " >&6
4016else case e in #(
4017  e) ac_save_c_werror_flag=$ac_c_werror_flag
4018   ac_c_werror_flag=yes
4019   ac_cv_prog_cc_g=no
4020   CFLAGS="-g"
4021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022/* end confdefs.h.  */
4023
4024int
4025main (void)
4026{
4027
4028  ;
4029  return 0;
4030}
4031_ACEOF
4032if ac_fn_c_try_compile "$LINENO"
4033then :
4034  ac_cv_prog_cc_g=yes
4035else case e in #(
4036  e) CFLAGS=""
4037      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038/* end confdefs.h.  */
4039
4040int
4041main (void)
4042{
4043
4044  ;
4045  return 0;
4046}
4047_ACEOF
4048if ac_fn_c_try_compile "$LINENO"
4049then :
4050
4051else case e in #(
4052  e) ac_c_werror_flag=$ac_save_c_werror_flag
4053	 CFLAGS="-g"
4054	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055/* end confdefs.h.  */
4056
4057int
4058main (void)
4059{
4060
4061  ;
4062  return 0;
4063}
4064_ACEOF
4065if ac_fn_c_try_compile "$LINENO"
4066then :
4067  ac_cv_prog_cc_g=yes
4068fi
4069rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4070esac
4071fi
4072rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4073esac
4074fi
4075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4076   ac_c_werror_flag=$ac_save_c_werror_flag ;;
4077esac
4078fi
4079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4080printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4081if test $ac_test_CFLAGS; then
4082  CFLAGS=$ac_save_CFLAGS
4083elif test $ac_cv_prog_cc_g = yes; then
4084  if test "$GCC" = yes; then
4085    CFLAGS="-g -O2"
4086  else
4087    CFLAGS="-g"
4088  fi
4089else
4090  if test "$GCC" = yes; then
4091    CFLAGS="-O2"
4092  else
4093    CFLAGS=
4094  fi
4095fi
4096ac_prog_cc_stdc=no
4097if test x$ac_prog_cc_stdc = xno
4098then :
4099  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4100printf %s "checking for $CC option to enable C11 features... " >&6; }
4101if test ${ac_cv_prog_cc_c11+y}
4102then :
4103  printf %s "(cached) " >&6
4104else case e in #(
4105  e) ac_cv_prog_cc_c11=no
4106ac_save_CC=$CC
4107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108/* end confdefs.h.  */
4109$ac_c_conftest_c11_program
4110_ACEOF
4111for ac_arg in '' -std=gnu11
4112do
4113  CC="$ac_save_CC $ac_arg"
4114  if ac_fn_c_try_compile "$LINENO"
4115then :
4116  ac_cv_prog_cc_c11=$ac_arg
4117fi
4118rm -f core conftest.err conftest.$ac_objext conftest.beam
4119  test "x$ac_cv_prog_cc_c11" != "xno" && break
4120done
4121rm -f conftest.$ac_ext
4122CC=$ac_save_CC ;;
4123esac
4124fi
4125
4126if test "x$ac_cv_prog_cc_c11" = xno
4127then :
4128  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4129printf "%s\n" "unsupported" >&6; }
4130else case e in #(
4131  e) if test "x$ac_cv_prog_cc_c11" = x
4132then :
4133  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4134printf "%s\n" "none needed" >&6; }
4135else case e in #(
4136  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4137printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4138     CC="$CC $ac_cv_prog_cc_c11" ;;
4139esac
4140fi
4141  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4142  ac_prog_cc_stdc=c11 ;;
4143esac
4144fi
4145fi
4146if test x$ac_prog_cc_stdc = xno
4147then :
4148  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4149printf %s "checking for $CC option to enable C99 features... " >&6; }
4150if test ${ac_cv_prog_cc_c99+y}
4151then :
4152  printf %s "(cached) " >&6
4153else case e in #(
4154  e) ac_cv_prog_cc_c99=no
4155ac_save_CC=$CC
4156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157/* end confdefs.h.  */
4158$ac_c_conftest_c99_program
4159_ACEOF
4160for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4161do
4162  CC="$ac_save_CC $ac_arg"
4163  if ac_fn_c_try_compile "$LINENO"
4164then :
4165  ac_cv_prog_cc_c99=$ac_arg
4166fi
4167rm -f core conftest.err conftest.$ac_objext conftest.beam
4168  test "x$ac_cv_prog_cc_c99" != "xno" && break
4169done
4170rm -f conftest.$ac_ext
4171CC=$ac_save_CC ;;
4172esac
4173fi
4174
4175if test "x$ac_cv_prog_cc_c99" = xno
4176then :
4177  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4178printf "%s\n" "unsupported" >&6; }
4179else case e in #(
4180  e) if test "x$ac_cv_prog_cc_c99" = x
4181then :
4182  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4183printf "%s\n" "none needed" >&6; }
4184else case e in #(
4185  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4186printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4187     CC="$CC $ac_cv_prog_cc_c99" ;;
4188esac
4189fi
4190  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4191  ac_prog_cc_stdc=c99 ;;
4192esac
4193fi
4194fi
4195if test x$ac_prog_cc_stdc = xno
4196then :
4197  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4198printf %s "checking for $CC option to enable C89 features... " >&6; }
4199if test ${ac_cv_prog_cc_c89+y}
4200then :
4201  printf %s "(cached) " >&6
4202else case e in #(
4203  e) ac_cv_prog_cc_c89=no
4204ac_save_CC=$CC
4205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206/* end confdefs.h.  */
4207$ac_c_conftest_c89_program
4208_ACEOF
4209for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4210do
4211  CC="$ac_save_CC $ac_arg"
4212  if ac_fn_c_try_compile "$LINENO"
4213then :
4214  ac_cv_prog_cc_c89=$ac_arg
4215fi
4216rm -f core conftest.err conftest.$ac_objext conftest.beam
4217  test "x$ac_cv_prog_cc_c89" != "xno" && break
4218done
4219rm -f conftest.$ac_ext
4220CC=$ac_save_CC ;;
4221esac
4222fi
4223
4224if test "x$ac_cv_prog_cc_c89" = xno
4225then :
4226  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4227printf "%s\n" "unsupported" >&6; }
4228else case e in #(
4229  e) if test "x$ac_cv_prog_cc_c89" = x
4230then :
4231  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4232printf "%s\n" "none needed" >&6; }
4233else case e in #(
4234  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4235printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4236     CC="$CC $ac_cv_prog_cc_c89" ;;
4237esac
4238fi
4239  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4240  ac_prog_cc_stdc=c89 ;;
4241esac
4242fi
4243fi
4244
4245ac_ext=c
4246ac_cpp='$CPP $CPPFLAGS'
4247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4249ac_compiler_gnu=$ac_cv_c_compiler_gnu
4250
4251
4252  ac_ext=c
4253ac_cpp='$CPP $CPPFLAGS'
4254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4256ac_compiler_gnu=$ac_cv_c_compiler_gnu
4257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4258printf %s "checking whether $CC understands -c and -o together... " >&6; }
4259if test ${am_cv_prog_cc_c_o+y}
4260then :
4261  printf %s "(cached) " >&6
4262else case e in #(
4263  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264/* end confdefs.h.  */
4265
4266int
4267main (void)
4268{
4269
4270  ;
4271  return 0;
4272}
4273_ACEOF
4274  # Make sure it works both with $CC and with simple cc.
4275  # Following AC_PROG_CC_C_O, we do the test twice because some
4276  # compilers refuse to overwrite an existing .o file with -o,
4277  # though they will create one.
4278  am_cv_prog_cc_c_o=yes
4279  for am_i in 1 2; do
4280    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4281   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4282   ac_status=$?
4283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284   (exit $ac_status); } \
4285         && test -f conftest2.$ac_objext; then
4286      : OK
4287    else
4288      am_cv_prog_cc_c_o=no
4289      break
4290    fi
4291  done
4292  rm -f core conftest*
4293  unset am_i ;;
4294esac
4295fi
4296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4297printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4298if test "$am_cv_prog_cc_c_o" != yes; then
4299   # Losing compiler, so override with the script.
4300   # FIXME: It is wrong to rewrite CC.
4301   # But if we don't then we get into trouble of one sort or another.
4302   # A longer-term fix would be to have automake use am__CC in this case,
4303   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4304   CC="$am_aux_dir/compile $CC"
4305fi
4306ac_ext=c
4307ac_cpp='$CPP $CPPFLAGS'
4308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310ac_compiler_gnu=$ac_cv_c_compiler_gnu
4311
4312
4313depcc="$CC"   am_compiler_list=
4314
4315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4316printf %s "checking dependency style of $depcc... " >&6; }
4317if test ${am_cv_CC_dependencies_compiler_type+y}
4318then :
4319  printf %s "(cached) " >&6
4320else case e in #(
4321  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4322  # We make a subdir and do the tests there.  Otherwise we can end up
4323  # making bogus files that we don't know about and never remove.  For
4324  # instance it was reported that on HP-UX the gcc test will end up
4325  # making a dummy file named 'D' -- because '-MD' means "put the output
4326  # in D".
4327  rm -rf conftest.dir
4328  mkdir conftest.dir
4329  # Copy depcomp to subdir because otherwise we won't find it if we're
4330  # using a relative directory.
4331  cp "$am_depcomp" conftest.dir
4332  cd conftest.dir
4333  # We will build objects and dependencies in a subdirectory because
4334  # it helps to detect inapplicable dependency modes.  For instance
4335  # both Tru64's cc and ICC support -MD to output dependencies as a
4336  # side effect of compilation, but ICC will put the dependencies in
4337  # the current directory while Tru64 will put them in the object
4338  # directory.
4339  mkdir sub
4340
4341  am_cv_CC_dependencies_compiler_type=none
4342  if test "$am_compiler_list" = ""; then
4343     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4344  fi
4345  am__universal=false
4346  case " $depcc " in #(
4347     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4348     esac
4349
4350  for depmode in $am_compiler_list; do
4351    # Setup a source with many dependencies, because some compilers
4352    # like to wrap large dependency lists on column 80 (with \), and
4353    # we should not choose a depcomp mode which is confused by this.
4354    #
4355    # We need to recreate these files for each test, as the compiler may
4356    # overwrite some of them when testing with obscure command lines.
4357    # This happens at least with the AIX C compiler.
4358    : > sub/conftest.c
4359    for i in 1 2 3 4 5 6; do
4360      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4361      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4362      # Solaris 10 /bin/sh.
4363      echo '/* dummy */' > sub/conftst$i.h
4364    done
4365    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4366
4367    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4368    # mode.  It turns out that the SunPro C++ compiler does not properly
4369    # handle '-M -o', and we need to detect this.  Also, some Intel
4370    # versions had trouble with output in subdirs.
4371    am__obj=sub/conftest.${OBJEXT-o}
4372    am__minus_obj="-o $am__obj"
4373    case $depmode in
4374    gcc)
4375      # This depmode causes a compiler race in universal mode.
4376      test "$am__universal" = false || continue
4377      ;;
4378    nosideeffect)
4379      # After this tag, mechanisms are not by side-effect, so they'll
4380      # only be used when explicitly requested.
4381      if test "x$enable_dependency_tracking" = xyes; then
4382	continue
4383      else
4384	break
4385      fi
4386      ;;
4387    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4388      # This compiler won't grok '-c -o', but also, the minuso test has
4389      # not run yet.  These depmodes are late enough in the game, and
4390      # so weak that their functioning should not be impacted.
4391      am__obj=conftest.${OBJEXT-o}
4392      am__minus_obj=
4393      ;;
4394    none) break ;;
4395    esac
4396    if depmode=$depmode \
4397       source=sub/conftest.c object=$am__obj \
4398       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4399       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4400         >/dev/null 2>conftest.err &&
4401       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4402       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4403       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4404       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4405      # icc doesn't choke on unknown options, it will just issue warnings
4406      # or remarks (even with -Werror).  So we grep stderr for any message
4407      # that says an option was ignored or not supported.
4408      # When given -MP, icc 7.0 and 7.1 complain thusly:
4409      #   icc: Command line warning: ignoring option '-M'; no argument required
4410      # The diagnosis changed in icc 8.0:
4411      #   icc: Command line remark: option '-MP' not supported
4412      if (grep 'ignoring option' conftest.err ||
4413          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4414        am_cv_CC_dependencies_compiler_type=$depmode
4415        break
4416      fi
4417    fi
4418  done
4419
4420  cd ..
4421  rm -rf conftest.dir
4422else
4423  am_cv_CC_dependencies_compiler_type=none
4424fi
4425 ;;
4426esac
4427fi
4428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4429printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4430CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4431
4432 if
4433  test "x$enable_dependency_tracking" != xno \
4434  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4435  am__fastdepCC_TRUE=
4436  am__fastdepCC_FALSE='#'
4437else
4438  am__fastdepCC_TRUE='#'
4439  am__fastdepCC_FALSE=
4440fi
4441
4442
4443
4444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4445printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4446if test ${ac_cv_c_undeclared_builtin_options+y}
4447then :
4448  printf %s "(cached) " >&6
4449else case e in #(
4450  e) ac_save_CFLAGS=$CFLAGS
4451   ac_cv_c_undeclared_builtin_options='cannot detect'
4452   for ac_arg in '' -fno-builtin; do
4453     CFLAGS="$ac_save_CFLAGS $ac_arg"
4454     # This test program should *not* compile successfully.
4455     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4456/* end confdefs.h.  */
4457
4458int
4459main (void)
4460{
4461(void) strchr;
4462  ;
4463  return 0;
4464}
4465_ACEOF
4466if ac_fn_c_try_compile "$LINENO"
4467then :
4468
4469else case e in #(
4470  e) # This test program should compile successfully.
4471        # No library function is consistently available on
4472        # freestanding implementations, so test against a dummy
4473        # declaration.  Include always-available headers on the
4474        # off chance that they somehow elicit warnings.
4475        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476/* end confdefs.h.  */
4477#include <float.h>
4478#include <limits.h>
4479#include <stdarg.h>
4480#include <stddef.h>
4481extern void ac_decl (int, char *);
4482
4483int
4484main (void)
4485{
4486(void) ac_decl (0, (char *) 0);
4487  (void) ac_decl;
4488
4489  ;
4490  return 0;
4491}
4492_ACEOF
4493if ac_fn_c_try_compile "$LINENO"
4494then :
4495  if test x"$ac_arg" = x
4496then :
4497  ac_cv_c_undeclared_builtin_options='none needed'
4498else case e in #(
4499  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4500esac
4501fi
4502          break
4503fi
4504rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4505esac
4506fi
4507rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4508    done
4509    CFLAGS=$ac_save_CFLAGS
4510   ;;
4511esac
4512fi
4513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4514printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4515  case $ac_cv_c_undeclared_builtin_options in #(
4516  'cannot detect') :
4517    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4518printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4519as_fn_error $? "cannot make $CC report undeclared builtins
4520See 'config.log' for more details" "$LINENO" 5; } ;; #(
4521  'none needed') :
4522    ac_c_undeclared_builtin_options='' ;; #(
4523  *) :
4524    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4525esac
4526
4527ac_header= ac_cache=
4528for ac_item in $ac_header_c_list
4529do
4530  if test $ac_cache; then
4531    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4532    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4533      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4534    fi
4535    ac_header= ac_cache=
4536  elif test $ac_header; then
4537    ac_cache=$ac_item
4538  else
4539    ac_header=$ac_item
4540  fi
4541done
4542
4543
4544
4545
4546
4547
4548
4549
4550if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4551then :
4552
4553printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4554
4555fi
4556
4557
4558
4559
4560ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4561if test "x$ac_cv_have_decl___clang__" = xyes
4562then :
4563  CLANGCC="yes"
4564else case e in #(
4565  e) CLANGCC="no" ;;
4566esac
4567fi
4568ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4569if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4570then :
4571  INTELCC="yes"
4572else case e in #(
4573  e) INTELCC="no" ;;
4574esac
4575fi
4576ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4577if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4578then :
4579  SUNCC="yes"
4580else case e in #(
4581  e) SUNCC="no" ;;
4582esac
4583fi
4584
4585
4586
4587
4588
4589
4590
4591
4592if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4593	if test -n "$ac_tool_prefix"; then
4594  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4595set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597printf %s "checking for $ac_word... " >&6; }
4598if test ${ac_cv_path_PKG_CONFIG+y}
4599then :
4600  printf %s "(cached) " >&6
4601else case e in #(
4602  e) case $PKG_CONFIG in
4603  [\\/]* | ?:[\\/]*)
4604  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4605  ;;
4606  *)
4607  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608for as_dir in $PATH
4609do
4610  IFS=$as_save_IFS
4611  case $as_dir in #(((
4612    '') as_dir=./ ;;
4613    */) ;;
4614    *) as_dir=$as_dir/ ;;
4615  esac
4616    for ac_exec_ext in '' $ac_executable_extensions; do
4617  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4618    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4619    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4620    break 2
4621  fi
4622done
4623  done
4624IFS=$as_save_IFS
4625
4626  ;;
4627esac ;;
4628esac
4629fi
4630PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4631if test -n "$PKG_CONFIG"; then
4632  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4633printf "%s\n" "$PKG_CONFIG" >&6; }
4634else
4635  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636printf "%s\n" "no" >&6; }
4637fi
4638
4639
4640fi
4641if test -z "$ac_cv_path_PKG_CONFIG"; then
4642  ac_pt_PKG_CONFIG=$PKG_CONFIG
4643  # Extract the first word of "pkg-config", so it can be a program name with args.
4644set dummy pkg-config; ac_word=$2
4645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646printf %s "checking for $ac_word... " >&6; }
4647if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4648then :
4649  printf %s "(cached) " >&6
4650else case e in #(
4651  e) case $ac_pt_PKG_CONFIG in
4652  [\\/]* | ?:[\\/]*)
4653  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4654  ;;
4655  *)
4656  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657for as_dir in $PATH
4658do
4659  IFS=$as_save_IFS
4660  case $as_dir in #(((
4661    '') as_dir=./ ;;
4662    */) ;;
4663    *) as_dir=$as_dir/ ;;
4664  esac
4665    for ac_exec_ext in '' $ac_executable_extensions; do
4666  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4667    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4668    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4669    break 2
4670  fi
4671done
4672  done
4673IFS=$as_save_IFS
4674
4675  ;;
4676esac ;;
4677esac
4678fi
4679ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4680if test -n "$ac_pt_PKG_CONFIG"; then
4681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4682printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4683else
4684  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685printf "%s\n" "no" >&6; }
4686fi
4687
4688  if test "x$ac_pt_PKG_CONFIG" = x; then
4689    PKG_CONFIG=""
4690  else
4691    case $cross_compiling:$ac_tool_warned in
4692yes:)
4693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4694printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4695ac_tool_warned=yes ;;
4696esac
4697    PKG_CONFIG=$ac_pt_PKG_CONFIG
4698  fi
4699else
4700  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4701fi
4702
4703fi
4704if test -n "$PKG_CONFIG"; then
4705	_pkg_min_version=0.9.0
4706	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4707printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4708	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4709		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4710printf "%s\n" "yes" >&6; }
4711	else
4712		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713printf "%s\n" "no" >&6; }
4714		PKG_CONFIG=""
4715	fi
4716fi
4717
4718
4719  # Make sure we can run config.sub.
4720$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4721  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4722
4723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4724printf %s "checking build system type... " >&6; }
4725if test ${ac_cv_build+y}
4726then :
4727  printf %s "(cached) " >&6
4728else case e in #(
4729  e) ac_build_alias=$build_alias
4730test "x$ac_build_alias" = x &&
4731  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4732test "x$ac_build_alias" = x &&
4733  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4734ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4735  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4736 ;;
4737esac
4738fi
4739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4740printf "%s\n" "$ac_cv_build" >&6; }
4741case $ac_cv_build in
4742*-*-*) ;;
4743*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4744esac
4745build=$ac_cv_build
4746ac_save_IFS=$IFS; IFS='-'
4747set x $ac_cv_build
4748shift
4749build_cpu=$1
4750build_vendor=$2
4751shift; shift
4752# Remember, the first character of IFS is used to create $*,
4753# except with old shells:
4754build_os=$*
4755IFS=$ac_save_IFS
4756case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4757
4758
4759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4760printf %s "checking host system type... " >&6; }
4761if test ${ac_cv_host+y}
4762then :
4763  printf %s "(cached) " >&6
4764else case e in #(
4765  e) if test "x$host_alias" = x; then
4766  ac_cv_host=$ac_cv_build
4767else
4768  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4769    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4770fi
4771 ;;
4772esac
4773fi
4774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4775printf "%s\n" "$ac_cv_host" >&6; }
4776case $ac_cv_host in
4777*-*-*) ;;
4778*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4779esac
4780host=$ac_cv_host
4781ac_save_IFS=$IFS; IFS='-'
4782set x $ac_cv_host
4783shift
4784host_cpu=$1
4785host_vendor=$2
4786shift; shift
4787# Remember, the first character of IFS is used to create $*,
4788# except with old shells:
4789host_os=$*
4790IFS=$ac_save_IFS
4791case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4792
4793
4794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4795printf %s "checking for a sed that does not truncate output... " >&6; }
4796if test ${ac_cv_path_SED+y}
4797then :
4798  printf %s "(cached) " >&6
4799else case e in #(
4800  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4801     for ac_i in 1 2 3 4 5 6 7; do
4802       ac_script="$ac_script$as_nl$ac_script"
4803     done
4804     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4805     { ac_script=; unset ac_script;}
4806     if test -z "$SED"; then
4807  ac_path_SED_found=false
4808  # Loop through the user's path and test for each of PROGNAME-LIST
4809  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810for as_dir in $PATH
4811do
4812  IFS=$as_save_IFS
4813  case $as_dir in #(((
4814    '') as_dir=./ ;;
4815    */) ;;
4816    *) as_dir=$as_dir/ ;;
4817  esac
4818    for ac_prog in sed gsed
4819   do
4820    for ac_exec_ext in '' $ac_executable_extensions; do
4821      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4822      as_fn_executable_p "$ac_path_SED" || continue
4823# Check for GNU ac_path_SED and select it if it is found.
4824  # Check for GNU $ac_path_SED
4825case `"$ac_path_SED" --version 2>&1` in #(
4826*GNU*)
4827  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4828#(
4829*)
4830  ac_count=0
4831  printf %s 0123456789 >"conftest.in"
4832  while :
4833  do
4834    cat "conftest.in" "conftest.in" >"conftest.tmp"
4835    mv "conftest.tmp" "conftest.in"
4836    cp "conftest.in" "conftest.nl"
4837    printf "%s\n" '' >> "conftest.nl"
4838    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4839    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4840    as_fn_arith $ac_count + 1 && ac_count=$as_val
4841    if test $ac_count -gt ${ac_path_SED_max-0}; then
4842      # Best one so far, save it but keep looking for a better one
4843      ac_cv_path_SED="$ac_path_SED"
4844      ac_path_SED_max=$ac_count
4845    fi
4846    # 10*(2^10) chars as input seems more than enough
4847    test $ac_count -gt 10 && break
4848  done
4849  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4850esac
4851
4852      $ac_path_SED_found && break 3
4853    done
4854  done
4855  done
4856IFS=$as_save_IFS
4857  if test -z "$ac_cv_path_SED"; then
4858    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4859  fi
4860else
4861  ac_cv_path_SED=$SED
4862fi
4863 ;;
4864esac
4865fi
4866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4867printf "%s\n" "$ac_cv_path_SED" >&6; }
4868 SED="$ac_cv_path_SED"
4869  rm -f conftest.sed
4870
4871
4872
4873
4874
4875
4876# Check whether --enable-selective-werror was given.
4877if test ${enable_selective_werror+y}
4878then :
4879  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4880else case e in #(
4881  e) SELECTIVE_WERROR=yes ;;
4882esac
4883fi
4884
4885
4886
4887
4888
4889# -v is too short to test reliably with XORG_TESTSET_CFLAG
4890if test "x$SUNCC" = "xyes"; then
4891    BASE_CFLAGS="-v"
4892else
4893    BASE_CFLAGS=""
4894fi
4895
4896# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910xorg_testset_save_CFLAGS="$CFLAGS"
4911
4912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4913	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4914	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4915printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4916if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4917then :
4918  printf %s "(cached) " >&6
4919else case e in #(
4920  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921/* end confdefs.h.  */
4922int i;
4923_ACEOF
4924if ac_fn_c_try_compile "$LINENO"
4925then :
4926  xorg_cv_cc_flag_unknown_warning_option=yes
4927else case e in #(
4928  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
4929esac
4930fi
4931rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4932esac
4933fi
4934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4935printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4936	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4937	CFLAGS="$xorg_testset_save_CFLAGS"
4938fi
4939
4940if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4941	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4942		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4943	fi
4944	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4945	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4946printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4947if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4948then :
4949  printf %s "(cached) " >&6
4950else case e in #(
4951  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4952/* end confdefs.h.  */
4953int i;
4954_ACEOF
4955if ac_fn_c_try_compile "$LINENO"
4956then :
4957  xorg_cv_cc_flag_unused_command_line_argument=yes
4958else case e in #(
4959  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
4960esac
4961fi
4962rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4963esac
4964fi
4965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4966printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4967	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4968	CFLAGS="$xorg_testset_save_CFLAGS"
4969fi
4970
4971found="no"
4972
4973	if test $found = "no" ; then
4974		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4975			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4976		fi
4977
4978		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4979			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4980		fi
4981
4982		CFLAGS="$CFLAGS -Wall"
4983
4984		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4985printf %s "checking if $CC supports -Wall... " >&6; }
4986		cacheid=xorg_cv_cc_flag__Wall
4987		if eval test \${$cacheid+y}
4988then :
4989  printf %s "(cached) " >&6
4990else case e in #(
4991  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992/* end confdefs.h.  */
4993int i;
4994int
4995main (void)
4996{
4997
4998  ;
4999  return 0;
5000}
5001_ACEOF
5002if ac_fn_c_try_link "$LINENO"
5003then :
5004  eval $cacheid=yes
5005else case e in #(
5006  e) eval $cacheid=no ;;
5007esac
5008fi
5009rm -f core conftest.err conftest.$ac_objext conftest.beam \
5010    conftest$ac_exeext conftest.$ac_ext ;;
5011esac
5012fi
5013
5014
5015		CFLAGS="$xorg_testset_save_CFLAGS"
5016
5017		eval supported=\$$cacheid
5018		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5019printf "%s\n" "$supported" >&6; }
5020		if test "$supported" = "yes" ; then
5021			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5022			found="yes"
5023		fi
5024	fi
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040xorg_testset_save_CFLAGS="$CFLAGS"
5041
5042if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5043	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5044	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5045printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5046if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5047then :
5048  printf %s "(cached) " >&6
5049else case e in #(
5050  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051/* end confdefs.h.  */
5052int i;
5053_ACEOF
5054if ac_fn_c_try_compile "$LINENO"
5055then :
5056  xorg_cv_cc_flag_unknown_warning_option=yes
5057else case e in #(
5058  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5059esac
5060fi
5061rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5062esac
5063fi
5064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5065printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5066	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5067	CFLAGS="$xorg_testset_save_CFLAGS"
5068fi
5069
5070if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5071	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5072		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5073	fi
5074	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5075	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5076printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5077if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5078then :
5079  printf %s "(cached) " >&6
5080else case e in #(
5081  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082/* end confdefs.h.  */
5083int i;
5084_ACEOF
5085if ac_fn_c_try_compile "$LINENO"
5086then :
5087  xorg_cv_cc_flag_unused_command_line_argument=yes
5088else case e in #(
5089  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5090esac
5091fi
5092rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5093esac
5094fi
5095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5096printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5097	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5098	CFLAGS="$xorg_testset_save_CFLAGS"
5099fi
5100
5101found="no"
5102
5103	if test $found = "no" ; then
5104		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5105			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5106		fi
5107
5108		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5109			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5110		fi
5111
5112		CFLAGS="$CFLAGS -Wpointer-arith"
5113
5114		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5115printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5116		cacheid=xorg_cv_cc_flag__Wpointer_arith
5117		if eval test \${$cacheid+y}
5118then :
5119  printf %s "(cached) " >&6
5120else case e in #(
5121  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122/* end confdefs.h.  */
5123int i;
5124int
5125main (void)
5126{
5127
5128  ;
5129  return 0;
5130}
5131_ACEOF
5132if ac_fn_c_try_link "$LINENO"
5133then :
5134  eval $cacheid=yes
5135else case e in #(
5136  e) eval $cacheid=no ;;
5137esac
5138fi
5139rm -f core conftest.err conftest.$ac_objext conftest.beam \
5140    conftest$ac_exeext conftest.$ac_ext ;;
5141esac
5142fi
5143
5144
5145		CFLAGS="$xorg_testset_save_CFLAGS"
5146
5147		eval supported=\$$cacheid
5148		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5149printf "%s\n" "$supported" >&6; }
5150		if test "$supported" = "yes" ; then
5151			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5152			found="yes"
5153		fi
5154	fi
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170xorg_testset_save_CFLAGS="$CFLAGS"
5171
5172if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5173	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5174	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5175printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5176if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5177then :
5178  printf %s "(cached) " >&6
5179else case e in #(
5180  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181/* end confdefs.h.  */
5182int i;
5183_ACEOF
5184if ac_fn_c_try_compile "$LINENO"
5185then :
5186  xorg_cv_cc_flag_unknown_warning_option=yes
5187else case e in #(
5188  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5189esac
5190fi
5191rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5192esac
5193fi
5194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5195printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5196	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5197	CFLAGS="$xorg_testset_save_CFLAGS"
5198fi
5199
5200if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5201	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5202		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5203	fi
5204	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5205	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5206printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5207if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5208then :
5209  printf %s "(cached) " >&6
5210else case e in #(
5211  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212/* end confdefs.h.  */
5213int i;
5214_ACEOF
5215if ac_fn_c_try_compile "$LINENO"
5216then :
5217  xorg_cv_cc_flag_unused_command_line_argument=yes
5218else case e in #(
5219  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5220esac
5221fi
5222rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5223esac
5224fi
5225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5226printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5227	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5228	CFLAGS="$xorg_testset_save_CFLAGS"
5229fi
5230
5231found="no"
5232
5233	if test $found = "no" ; then
5234		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5235			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5236		fi
5237
5238		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5239			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5240		fi
5241
5242		CFLAGS="$CFLAGS -Wmissing-declarations"
5243
5244		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5245printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5246		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5247		if eval test \${$cacheid+y}
5248then :
5249  printf %s "(cached) " >&6
5250else case e in #(
5251  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252/* end confdefs.h.  */
5253int i;
5254int
5255main (void)
5256{
5257
5258  ;
5259  return 0;
5260}
5261_ACEOF
5262if ac_fn_c_try_link "$LINENO"
5263then :
5264  eval $cacheid=yes
5265else case e in #(
5266  e) eval $cacheid=no ;;
5267esac
5268fi
5269rm -f core conftest.err conftest.$ac_objext conftest.beam \
5270    conftest$ac_exeext conftest.$ac_ext ;;
5271esac
5272fi
5273
5274
5275		CFLAGS="$xorg_testset_save_CFLAGS"
5276
5277		eval supported=\$$cacheid
5278		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5279printf "%s\n" "$supported" >&6; }
5280		if test "$supported" = "yes" ; then
5281			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5282			found="yes"
5283		fi
5284	fi
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300xorg_testset_save_CFLAGS="$CFLAGS"
5301
5302if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5303	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5304	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5305printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5306if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5307then :
5308  printf %s "(cached) " >&6
5309else case e in #(
5310  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311/* end confdefs.h.  */
5312int i;
5313_ACEOF
5314if ac_fn_c_try_compile "$LINENO"
5315then :
5316  xorg_cv_cc_flag_unknown_warning_option=yes
5317else case e in #(
5318  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5319esac
5320fi
5321rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5322esac
5323fi
5324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5325printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5326	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5327	CFLAGS="$xorg_testset_save_CFLAGS"
5328fi
5329
5330if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5331	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5332		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5333	fi
5334	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5335	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5336printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5337if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5338then :
5339  printf %s "(cached) " >&6
5340else case e in #(
5341  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342/* end confdefs.h.  */
5343int i;
5344_ACEOF
5345if ac_fn_c_try_compile "$LINENO"
5346then :
5347  xorg_cv_cc_flag_unused_command_line_argument=yes
5348else case e in #(
5349  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5350esac
5351fi
5352rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5353esac
5354fi
5355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5356printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5357	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5358	CFLAGS="$xorg_testset_save_CFLAGS"
5359fi
5360
5361found="no"
5362
5363	if test $found = "no" ; then
5364		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5365			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5366		fi
5367
5368		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5369			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5370		fi
5371
5372		CFLAGS="$CFLAGS -Wformat=2"
5373
5374		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5375printf %s "checking if $CC supports -Wformat=2... " >&6; }
5376		cacheid=xorg_cv_cc_flag__Wformat_2
5377		if eval test \${$cacheid+y}
5378then :
5379  printf %s "(cached) " >&6
5380else case e in #(
5381  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382/* end confdefs.h.  */
5383int i;
5384int
5385main (void)
5386{
5387
5388  ;
5389  return 0;
5390}
5391_ACEOF
5392if ac_fn_c_try_link "$LINENO"
5393then :
5394  eval $cacheid=yes
5395else case e in #(
5396  e) eval $cacheid=no ;;
5397esac
5398fi
5399rm -f core conftest.err conftest.$ac_objext conftest.beam \
5400    conftest$ac_exeext conftest.$ac_ext ;;
5401esac
5402fi
5403
5404
5405		CFLAGS="$xorg_testset_save_CFLAGS"
5406
5407		eval supported=\$$cacheid
5408		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5409printf "%s\n" "$supported" >&6; }
5410		if test "$supported" = "yes" ; then
5411			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5412			found="yes"
5413		fi
5414	fi
5415
5416	if test $found = "no" ; then
5417		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5418			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5419		fi
5420
5421		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5422			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5423		fi
5424
5425		CFLAGS="$CFLAGS -Wformat"
5426
5427		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5428printf %s "checking if $CC supports -Wformat... " >&6; }
5429		cacheid=xorg_cv_cc_flag__Wformat
5430		if eval test \${$cacheid+y}
5431then :
5432  printf %s "(cached) " >&6
5433else case e in #(
5434  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435/* end confdefs.h.  */
5436int i;
5437int
5438main (void)
5439{
5440
5441  ;
5442  return 0;
5443}
5444_ACEOF
5445if ac_fn_c_try_link "$LINENO"
5446then :
5447  eval $cacheid=yes
5448else case e in #(
5449  e) eval $cacheid=no ;;
5450esac
5451fi
5452rm -f core conftest.err conftest.$ac_objext conftest.beam \
5453    conftest$ac_exeext conftest.$ac_ext ;;
5454esac
5455fi
5456
5457
5458		CFLAGS="$xorg_testset_save_CFLAGS"
5459
5460		eval supported=\$$cacheid
5461		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5462printf "%s\n" "$supported" >&6; }
5463		if test "$supported" = "yes" ; then
5464			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5465			found="yes"
5466		fi
5467	fi
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485xorg_testset_save_CFLAGS="$CFLAGS"
5486
5487if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5488	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5489	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5490printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5491if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5492then :
5493  printf %s "(cached) " >&6
5494else case e in #(
5495  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496/* end confdefs.h.  */
5497int i;
5498_ACEOF
5499if ac_fn_c_try_compile "$LINENO"
5500then :
5501  xorg_cv_cc_flag_unknown_warning_option=yes
5502else case e in #(
5503  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5504esac
5505fi
5506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5507esac
5508fi
5509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5510printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5511	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5512	CFLAGS="$xorg_testset_save_CFLAGS"
5513fi
5514
5515if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5516	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5517		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5518	fi
5519	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5520	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5521printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5522if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5523then :
5524  printf %s "(cached) " >&6
5525else case e in #(
5526  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527/* end confdefs.h.  */
5528int i;
5529_ACEOF
5530if ac_fn_c_try_compile "$LINENO"
5531then :
5532  xorg_cv_cc_flag_unused_command_line_argument=yes
5533else case e in #(
5534  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5535esac
5536fi
5537rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5538esac
5539fi
5540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5541printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5542	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5543	CFLAGS="$xorg_testset_save_CFLAGS"
5544fi
5545
5546found="no"
5547
5548	if test $found = "no" ; then
5549		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5550			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5551		fi
5552
5553		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5554			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5555		fi
5556
5557		CFLAGS="$CFLAGS -Wstrict-prototypes"
5558
5559		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5560printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5561		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5562		if eval test \${$cacheid+y}
5563then :
5564  printf %s "(cached) " >&6
5565else case e in #(
5566  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567/* end confdefs.h.  */
5568int i;
5569int
5570main (void)
5571{
5572
5573  ;
5574  return 0;
5575}
5576_ACEOF
5577if ac_fn_c_try_link "$LINENO"
5578then :
5579  eval $cacheid=yes
5580else case e in #(
5581  e) eval $cacheid=no ;;
5582esac
5583fi
5584rm -f core conftest.err conftest.$ac_objext conftest.beam \
5585    conftest$ac_exeext conftest.$ac_ext ;;
5586esac
5587fi
5588
5589
5590		CFLAGS="$xorg_testset_save_CFLAGS"
5591
5592		eval supported=\$$cacheid
5593		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5594printf "%s\n" "$supported" >&6; }
5595		if test "$supported" = "yes" ; then
5596			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5597			found="yes"
5598		fi
5599	fi
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615xorg_testset_save_CFLAGS="$CFLAGS"
5616
5617if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5618	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5619	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5620printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5621if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5622then :
5623  printf %s "(cached) " >&6
5624else case e in #(
5625  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626/* end confdefs.h.  */
5627int i;
5628_ACEOF
5629if ac_fn_c_try_compile "$LINENO"
5630then :
5631  xorg_cv_cc_flag_unknown_warning_option=yes
5632else case e in #(
5633  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5634esac
5635fi
5636rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5637esac
5638fi
5639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5640printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5641	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5642	CFLAGS="$xorg_testset_save_CFLAGS"
5643fi
5644
5645if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5646	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5647		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5648	fi
5649	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5650	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5651printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5652if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5653then :
5654  printf %s "(cached) " >&6
5655else case e in #(
5656  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657/* end confdefs.h.  */
5658int i;
5659_ACEOF
5660if ac_fn_c_try_compile "$LINENO"
5661then :
5662  xorg_cv_cc_flag_unused_command_line_argument=yes
5663else case e in #(
5664  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5665esac
5666fi
5667rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5668esac
5669fi
5670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5671printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5672	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5673	CFLAGS="$xorg_testset_save_CFLAGS"
5674fi
5675
5676found="no"
5677
5678	if test $found = "no" ; then
5679		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5680			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5681		fi
5682
5683		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5684			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5685		fi
5686
5687		CFLAGS="$CFLAGS -Wmissing-prototypes"
5688
5689		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5690printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5691		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5692		if eval test \${$cacheid+y}
5693then :
5694  printf %s "(cached) " >&6
5695else case e in #(
5696  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697/* end confdefs.h.  */
5698int i;
5699int
5700main (void)
5701{
5702
5703  ;
5704  return 0;
5705}
5706_ACEOF
5707if ac_fn_c_try_link "$LINENO"
5708then :
5709  eval $cacheid=yes
5710else case e in #(
5711  e) eval $cacheid=no ;;
5712esac
5713fi
5714rm -f core conftest.err conftest.$ac_objext conftest.beam \
5715    conftest$ac_exeext conftest.$ac_ext ;;
5716esac
5717fi
5718
5719
5720		CFLAGS="$xorg_testset_save_CFLAGS"
5721
5722		eval supported=\$$cacheid
5723		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5724printf "%s\n" "$supported" >&6; }
5725		if test "$supported" = "yes" ; then
5726			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5727			found="yes"
5728		fi
5729	fi
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745xorg_testset_save_CFLAGS="$CFLAGS"
5746
5747if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5748	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5749	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5750printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5751if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5752then :
5753  printf %s "(cached) " >&6
5754else case e in #(
5755  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756/* end confdefs.h.  */
5757int i;
5758_ACEOF
5759if ac_fn_c_try_compile "$LINENO"
5760then :
5761  xorg_cv_cc_flag_unknown_warning_option=yes
5762else case e in #(
5763  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5764esac
5765fi
5766rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5767esac
5768fi
5769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5770printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5771	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5772	CFLAGS="$xorg_testset_save_CFLAGS"
5773fi
5774
5775if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5776	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5777		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5778	fi
5779	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5780	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5781printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5782if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5783then :
5784  printf %s "(cached) " >&6
5785else case e in #(
5786  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787/* end confdefs.h.  */
5788int i;
5789_ACEOF
5790if ac_fn_c_try_compile "$LINENO"
5791then :
5792  xorg_cv_cc_flag_unused_command_line_argument=yes
5793else case e in #(
5794  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5795esac
5796fi
5797rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5798esac
5799fi
5800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5801printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5802	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5803	CFLAGS="$xorg_testset_save_CFLAGS"
5804fi
5805
5806found="no"
5807
5808	if test $found = "no" ; then
5809		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5810			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5811		fi
5812
5813		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5814			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5815		fi
5816
5817		CFLAGS="$CFLAGS -Wnested-externs"
5818
5819		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5820printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5821		cacheid=xorg_cv_cc_flag__Wnested_externs
5822		if eval test \${$cacheid+y}
5823then :
5824  printf %s "(cached) " >&6
5825else case e in #(
5826  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827/* end confdefs.h.  */
5828int i;
5829int
5830main (void)
5831{
5832
5833  ;
5834  return 0;
5835}
5836_ACEOF
5837if ac_fn_c_try_link "$LINENO"
5838then :
5839  eval $cacheid=yes
5840else case e in #(
5841  e) eval $cacheid=no ;;
5842esac
5843fi
5844rm -f core conftest.err conftest.$ac_objext conftest.beam \
5845    conftest$ac_exeext conftest.$ac_ext ;;
5846esac
5847fi
5848
5849
5850		CFLAGS="$xorg_testset_save_CFLAGS"
5851
5852		eval supported=\$$cacheid
5853		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5854printf "%s\n" "$supported" >&6; }
5855		if test "$supported" = "yes" ; then
5856			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5857			found="yes"
5858		fi
5859	fi
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875xorg_testset_save_CFLAGS="$CFLAGS"
5876
5877if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5878	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5879	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5880printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5881if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5882then :
5883  printf %s "(cached) " >&6
5884else case e in #(
5885  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5886/* end confdefs.h.  */
5887int i;
5888_ACEOF
5889if ac_fn_c_try_compile "$LINENO"
5890then :
5891  xorg_cv_cc_flag_unknown_warning_option=yes
5892else case e in #(
5893  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5894esac
5895fi
5896rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5897esac
5898fi
5899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5900printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5901	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5902	CFLAGS="$xorg_testset_save_CFLAGS"
5903fi
5904
5905if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5906	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5907		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5908	fi
5909	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5910	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5911printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5912if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5913then :
5914  printf %s "(cached) " >&6
5915else case e in #(
5916  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5917/* end confdefs.h.  */
5918int i;
5919_ACEOF
5920if ac_fn_c_try_compile "$LINENO"
5921then :
5922  xorg_cv_cc_flag_unused_command_line_argument=yes
5923else case e in #(
5924  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5925esac
5926fi
5927rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5928esac
5929fi
5930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5931printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5932	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5933	CFLAGS="$xorg_testset_save_CFLAGS"
5934fi
5935
5936found="no"
5937
5938	if test $found = "no" ; then
5939		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5940			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5941		fi
5942
5943		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5944			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5945		fi
5946
5947		CFLAGS="$CFLAGS -Wbad-function-cast"
5948
5949		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5950printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5951		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5952		if eval test \${$cacheid+y}
5953then :
5954  printf %s "(cached) " >&6
5955else case e in #(
5956  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5957/* end confdefs.h.  */
5958int i;
5959int
5960main (void)
5961{
5962
5963  ;
5964  return 0;
5965}
5966_ACEOF
5967if ac_fn_c_try_link "$LINENO"
5968then :
5969  eval $cacheid=yes
5970else case e in #(
5971  e) eval $cacheid=no ;;
5972esac
5973fi
5974rm -f core conftest.err conftest.$ac_objext conftest.beam \
5975    conftest$ac_exeext conftest.$ac_ext ;;
5976esac
5977fi
5978
5979
5980		CFLAGS="$xorg_testset_save_CFLAGS"
5981
5982		eval supported=\$$cacheid
5983		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5984printf "%s\n" "$supported" >&6; }
5985		if test "$supported" = "yes" ; then
5986			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5987			found="yes"
5988		fi
5989	fi
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005xorg_testset_save_CFLAGS="$CFLAGS"
6006
6007if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6008	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6009	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6010printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6011if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6012then :
6013  printf %s "(cached) " >&6
6014else case e in #(
6015  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6016/* end confdefs.h.  */
6017int i;
6018_ACEOF
6019if ac_fn_c_try_compile "$LINENO"
6020then :
6021  xorg_cv_cc_flag_unknown_warning_option=yes
6022else case e in #(
6023  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6024esac
6025fi
6026rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6027esac
6028fi
6029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6030printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6031	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6032	CFLAGS="$xorg_testset_save_CFLAGS"
6033fi
6034
6035if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6036	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6037		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6038	fi
6039	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6040	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6041printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6042if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6043then :
6044  printf %s "(cached) " >&6
6045else case e in #(
6046  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047/* end confdefs.h.  */
6048int i;
6049_ACEOF
6050if ac_fn_c_try_compile "$LINENO"
6051then :
6052  xorg_cv_cc_flag_unused_command_line_argument=yes
6053else case e in #(
6054  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6055esac
6056fi
6057rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6058esac
6059fi
6060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6061printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6062	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6063	CFLAGS="$xorg_testset_save_CFLAGS"
6064fi
6065
6066found="no"
6067
6068	if test $found = "no" ; then
6069		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6070			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6071		fi
6072
6073		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6074			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6075		fi
6076
6077		CFLAGS="$CFLAGS -Wold-style-definition"
6078
6079		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6080printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6081		cacheid=xorg_cv_cc_flag__Wold_style_definition
6082		if eval test \${$cacheid+y}
6083then :
6084  printf %s "(cached) " >&6
6085else case e in #(
6086  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087/* end confdefs.h.  */
6088int i;
6089int
6090main (void)
6091{
6092
6093  ;
6094  return 0;
6095}
6096_ACEOF
6097if ac_fn_c_try_link "$LINENO"
6098then :
6099  eval $cacheid=yes
6100else case e in #(
6101  e) eval $cacheid=no ;;
6102esac
6103fi
6104rm -f core conftest.err conftest.$ac_objext conftest.beam \
6105    conftest$ac_exeext conftest.$ac_ext ;;
6106esac
6107fi
6108
6109
6110		CFLAGS="$xorg_testset_save_CFLAGS"
6111
6112		eval supported=\$$cacheid
6113		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6114printf "%s\n" "$supported" >&6; }
6115		if test "$supported" = "yes" ; then
6116			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6117			found="yes"
6118		fi
6119	fi
6120
6121	if test $found = "no" ; then
6122		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6123			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6124		fi
6125
6126		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6127			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6128		fi
6129
6130		CFLAGS="$CFLAGS -fd"
6131
6132		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6133printf %s "checking if $CC supports -fd... " >&6; }
6134		cacheid=xorg_cv_cc_flag__fd
6135		if eval test \${$cacheid+y}
6136then :
6137  printf %s "(cached) " >&6
6138else case e in #(
6139  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6140/* end confdefs.h.  */
6141int i;
6142int
6143main (void)
6144{
6145
6146  ;
6147  return 0;
6148}
6149_ACEOF
6150if ac_fn_c_try_link "$LINENO"
6151then :
6152  eval $cacheid=yes
6153else case e in #(
6154  e) eval $cacheid=no ;;
6155esac
6156fi
6157rm -f core conftest.err conftest.$ac_objext conftest.beam \
6158    conftest$ac_exeext conftest.$ac_ext ;;
6159esac
6160fi
6161
6162
6163		CFLAGS="$xorg_testset_save_CFLAGS"
6164
6165		eval supported=\$$cacheid
6166		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6167printf "%s\n" "$supported" >&6; }
6168		if test "$supported" = "yes" ; then
6169			BASE_CFLAGS="$BASE_CFLAGS -fd"
6170			found="yes"
6171		fi
6172	fi
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188xorg_testset_save_CFLAGS="$CFLAGS"
6189
6190if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6191	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6192	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6193printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6194if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6195then :
6196  printf %s "(cached) " >&6
6197else case e in #(
6198  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6199/* end confdefs.h.  */
6200int i;
6201_ACEOF
6202if ac_fn_c_try_compile "$LINENO"
6203then :
6204  xorg_cv_cc_flag_unknown_warning_option=yes
6205else case e in #(
6206  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6207esac
6208fi
6209rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6210esac
6211fi
6212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6213printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6214	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6215	CFLAGS="$xorg_testset_save_CFLAGS"
6216fi
6217
6218if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6219	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6220		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6221	fi
6222	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6223	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6224printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6225if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6226then :
6227  printf %s "(cached) " >&6
6228else case e in #(
6229  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6230/* end confdefs.h.  */
6231int i;
6232_ACEOF
6233if ac_fn_c_try_compile "$LINENO"
6234then :
6235  xorg_cv_cc_flag_unused_command_line_argument=yes
6236else case e in #(
6237  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6238esac
6239fi
6240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6241esac
6242fi
6243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6244printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6245	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6246	CFLAGS="$xorg_testset_save_CFLAGS"
6247fi
6248
6249found="no"
6250
6251	if test $found = "no" ; then
6252		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6253			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6254		fi
6255
6256		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6257			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6258		fi
6259
6260		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6261
6262		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6263printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6264		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6265		if eval test \${$cacheid+y}
6266then :
6267  printf %s "(cached) " >&6
6268else case e in #(
6269  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270/* end confdefs.h.  */
6271int i;
6272int
6273main (void)
6274{
6275
6276  ;
6277  return 0;
6278}
6279_ACEOF
6280if ac_fn_c_try_link "$LINENO"
6281then :
6282  eval $cacheid=yes
6283else case e in #(
6284  e) eval $cacheid=no ;;
6285esac
6286fi
6287rm -f core conftest.err conftest.$ac_objext conftest.beam \
6288    conftest$ac_exeext conftest.$ac_ext ;;
6289esac
6290fi
6291
6292
6293		CFLAGS="$xorg_testset_save_CFLAGS"
6294
6295		eval supported=\$$cacheid
6296		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6297printf "%s\n" "$supported" >&6; }
6298		if test "$supported" = "yes" ; then
6299			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6300			found="yes"
6301		fi
6302	fi
6303
6304
6305
6306
6307
6308# This chunk adds additional warnings that could catch undesired effects.
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322xorg_testset_save_CFLAGS="$CFLAGS"
6323
6324if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6325	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6326	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6327printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6328if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6329then :
6330  printf %s "(cached) " >&6
6331else case e in #(
6332  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333/* end confdefs.h.  */
6334int i;
6335_ACEOF
6336if ac_fn_c_try_compile "$LINENO"
6337then :
6338  xorg_cv_cc_flag_unknown_warning_option=yes
6339else case e in #(
6340  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6341esac
6342fi
6343rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6344esac
6345fi
6346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6347printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6348	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6349	CFLAGS="$xorg_testset_save_CFLAGS"
6350fi
6351
6352if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6353	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6354		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6355	fi
6356	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6357	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6358printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6359if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6360then :
6361  printf %s "(cached) " >&6
6362else case e in #(
6363  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364/* end confdefs.h.  */
6365int i;
6366_ACEOF
6367if ac_fn_c_try_compile "$LINENO"
6368then :
6369  xorg_cv_cc_flag_unused_command_line_argument=yes
6370else case e in #(
6371  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6372esac
6373fi
6374rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6375esac
6376fi
6377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6378printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6379	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6380	CFLAGS="$xorg_testset_save_CFLAGS"
6381fi
6382
6383found="no"
6384
6385	if test $found = "no" ; then
6386		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6387			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6388		fi
6389
6390		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6391			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6392		fi
6393
6394		CFLAGS="$CFLAGS -Wunused"
6395
6396		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6397printf %s "checking if $CC supports -Wunused... " >&6; }
6398		cacheid=xorg_cv_cc_flag__Wunused
6399		if eval test \${$cacheid+y}
6400then :
6401  printf %s "(cached) " >&6
6402else case e in #(
6403  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404/* end confdefs.h.  */
6405int i;
6406int
6407main (void)
6408{
6409
6410  ;
6411  return 0;
6412}
6413_ACEOF
6414if ac_fn_c_try_link "$LINENO"
6415then :
6416  eval $cacheid=yes
6417else case e in #(
6418  e) eval $cacheid=no ;;
6419esac
6420fi
6421rm -f core conftest.err conftest.$ac_objext conftest.beam \
6422    conftest$ac_exeext conftest.$ac_ext ;;
6423esac
6424fi
6425
6426
6427		CFLAGS="$xorg_testset_save_CFLAGS"
6428
6429		eval supported=\$$cacheid
6430		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6431printf "%s\n" "$supported" >&6; }
6432		if test "$supported" = "yes" ; then
6433			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6434			found="yes"
6435		fi
6436	fi
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452xorg_testset_save_CFLAGS="$CFLAGS"
6453
6454if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6455	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6456	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6457printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6458if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6459then :
6460  printf %s "(cached) " >&6
6461else case e in #(
6462  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463/* end confdefs.h.  */
6464int i;
6465_ACEOF
6466if ac_fn_c_try_compile "$LINENO"
6467then :
6468  xorg_cv_cc_flag_unknown_warning_option=yes
6469else case e in #(
6470  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6471esac
6472fi
6473rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6474esac
6475fi
6476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6477printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6478	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6479	CFLAGS="$xorg_testset_save_CFLAGS"
6480fi
6481
6482if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6483	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6484		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6485	fi
6486	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6487	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6488printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6489if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6490then :
6491  printf %s "(cached) " >&6
6492else case e in #(
6493  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6494/* end confdefs.h.  */
6495int i;
6496_ACEOF
6497if ac_fn_c_try_compile "$LINENO"
6498then :
6499  xorg_cv_cc_flag_unused_command_line_argument=yes
6500else case e in #(
6501  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6502esac
6503fi
6504rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6505esac
6506fi
6507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6508printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6509	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6510	CFLAGS="$xorg_testset_save_CFLAGS"
6511fi
6512
6513found="no"
6514
6515	if test $found = "no" ; then
6516		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6517			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6518		fi
6519
6520		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6521			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6522		fi
6523
6524		CFLAGS="$CFLAGS -Wuninitialized"
6525
6526		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6527printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6528		cacheid=xorg_cv_cc_flag__Wuninitialized
6529		if eval test \${$cacheid+y}
6530then :
6531  printf %s "(cached) " >&6
6532else case e in #(
6533  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534/* end confdefs.h.  */
6535int i;
6536int
6537main (void)
6538{
6539
6540  ;
6541  return 0;
6542}
6543_ACEOF
6544if ac_fn_c_try_link "$LINENO"
6545then :
6546  eval $cacheid=yes
6547else case e in #(
6548  e) eval $cacheid=no ;;
6549esac
6550fi
6551rm -f core conftest.err conftest.$ac_objext conftest.beam \
6552    conftest$ac_exeext conftest.$ac_ext ;;
6553esac
6554fi
6555
6556
6557		CFLAGS="$xorg_testset_save_CFLAGS"
6558
6559		eval supported=\$$cacheid
6560		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6561printf "%s\n" "$supported" >&6; }
6562		if test "$supported" = "yes" ; then
6563			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6564			found="yes"
6565		fi
6566	fi
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582xorg_testset_save_CFLAGS="$CFLAGS"
6583
6584if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6585	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6586	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6587printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6588if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6589then :
6590  printf %s "(cached) " >&6
6591else case e in #(
6592  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593/* end confdefs.h.  */
6594int i;
6595_ACEOF
6596if ac_fn_c_try_compile "$LINENO"
6597then :
6598  xorg_cv_cc_flag_unknown_warning_option=yes
6599else case e in #(
6600  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6601esac
6602fi
6603rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6604esac
6605fi
6606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6607printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6608	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6609	CFLAGS="$xorg_testset_save_CFLAGS"
6610fi
6611
6612if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6613	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6614		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6615	fi
6616	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6617	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6618printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6619if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6620then :
6621  printf %s "(cached) " >&6
6622else case e in #(
6623  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624/* end confdefs.h.  */
6625int i;
6626_ACEOF
6627if ac_fn_c_try_compile "$LINENO"
6628then :
6629  xorg_cv_cc_flag_unused_command_line_argument=yes
6630else case e in #(
6631  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6632esac
6633fi
6634rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6635esac
6636fi
6637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6638printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6639	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6640	CFLAGS="$xorg_testset_save_CFLAGS"
6641fi
6642
6643found="no"
6644
6645	if test $found = "no" ; then
6646		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6647			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6648		fi
6649
6650		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6651			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6652		fi
6653
6654		CFLAGS="$CFLAGS -Wshadow"
6655
6656		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6657printf %s "checking if $CC supports -Wshadow... " >&6; }
6658		cacheid=xorg_cv_cc_flag__Wshadow
6659		if eval test \${$cacheid+y}
6660then :
6661  printf %s "(cached) " >&6
6662else case e in #(
6663  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664/* end confdefs.h.  */
6665int i;
6666int
6667main (void)
6668{
6669
6670  ;
6671  return 0;
6672}
6673_ACEOF
6674if ac_fn_c_try_link "$LINENO"
6675then :
6676  eval $cacheid=yes
6677else case e in #(
6678  e) eval $cacheid=no ;;
6679esac
6680fi
6681rm -f core conftest.err conftest.$ac_objext conftest.beam \
6682    conftest$ac_exeext conftest.$ac_ext ;;
6683esac
6684fi
6685
6686
6687		CFLAGS="$xorg_testset_save_CFLAGS"
6688
6689		eval supported=\$$cacheid
6690		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6691printf "%s\n" "$supported" >&6; }
6692		if test "$supported" = "yes" ; then
6693			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6694			found="yes"
6695		fi
6696	fi
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712xorg_testset_save_CFLAGS="$CFLAGS"
6713
6714if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6715	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6716	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6717printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6718if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6719then :
6720  printf %s "(cached) " >&6
6721else case e in #(
6722  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6723/* end confdefs.h.  */
6724int i;
6725_ACEOF
6726if ac_fn_c_try_compile "$LINENO"
6727then :
6728  xorg_cv_cc_flag_unknown_warning_option=yes
6729else case e in #(
6730  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6731esac
6732fi
6733rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6734esac
6735fi
6736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6737printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6738	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6739	CFLAGS="$xorg_testset_save_CFLAGS"
6740fi
6741
6742if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6743	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6744		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6745	fi
6746	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6747	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6748printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6749if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6750then :
6751  printf %s "(cached) " >&6
6752else case e in #(
6753  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754/* end confdefs.h.  */
6755int i;
6756_ACEOF
6757if ac_fn_c_try_compile "$LINENO"
6758then :
6759  xorg_cv_cc_flag_unused_command_line_argument=yes
6760else case e in #(
6761  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6762esac
6763fi
6764rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6765esac
6766fi
6767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6768printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6769	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6770	CFLAGS="$xorg_testset_save_CFLAGS"
6771fi
6772
6773found="no"
6774
6775	if test $found = "no" ; then
6776		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6777			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6778		fi
6779
6780		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6781			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6782		fi
6783
6784		CFLAGS="$CFLAGS -Wmissing-noreturn"
6785
6786		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6787printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6788		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6789		if eval test \${$cacheid+y}
6790then :
6791  printf %s "(cached) " >&6
6792else case e in #(
6793  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794/* end confdefs.h.  */
6795int i;
6796int
6797main (void)
6798{
6799
6800  ;
6801  return 0;
6802}
6803_ACEOF
6804if ac_fn_c_try_link "$LINENO"
6805then :
6806  eval $cacheid=yes
6807else case e in #(
6808  e) eval $cacheid=no ;;
6809esac
6810fi
6811rm -f core conftest.err conftest.$ac_objext conftest.beam \
6812    conftest$ac_exeext conftest.$ac_ext ;;
6813esac
6814fi
6815
6816
6817		CFLAGS="$xorg_testset_save_CFLAGS"
6818
6819		eval supported=\$$cacheid
6820		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6821printf "%s\n" "$supported" >&6; }
6822		if test "$supported" = "yes" ; then
6823			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6824			found="yes"
6825		fi
6826	fi
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842xorg_testset_save_CFLAGS="$CFLAGS"
6843
6844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6845	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6846	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6847printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6848if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6849then :
6850  printf %s "(cached) " >&6
6851else case e in #(
6852  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853/* end confdefs.h.  */
6854int i;
6855_ACEOF
6856if ac_fn_c_try_compile "$LINENO"
6857then :
6858  xorg_cv_cc_flag_unknown_warning_option=yes
6859else case e in #(
6860  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6861esac
6862fi
6863rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6864esac
6865fi
6866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6867printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6868	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6869	CFLAGS="$xorg_testset_save_CFLAGS"
6870fi
6871
6872if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6873	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6874		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6875	fi
6876	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6877	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6878printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6879if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6880then :
6881  printf %s "(cached) " >&6
6882else case e in #(
6883  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884/* end confdefs.h.  */
6885int i;
6886_ACEOF
6887if ac_fn_c_try_compile "$LINENO"
6888then :
6889  xorg_cv_cc_flag_unused_command_line_argument=yes
6890else case e in #(
6891  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6892esac
6893fi
6894rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6895esac
6896fi
6897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6898printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6899	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6900	CFLAGS="$xorg_testset_save_CFLAGS"
6901fi
6902
6903found="no"
6904
6905	if test $found = "no" ; then
6906		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6907			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6908		fi
6909
6910		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6911			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6912		fi
6913
6914		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6915
6916		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6917printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6918		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6919		if eval test \${$cacheid+y}
6920then :
6921  printf %s "(cached) " >&6
6922else case e in #(
6923  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924/* end confdefs.h.  */
6925int i;
6926int
6927main (void)
6928{
6929
6930  ;
6931  return 0;
6932}
6933_ACEOF
6934if ac_fn_c_try_link "$LINENO"
6935then :
6936  eval $cacheid=yes
6937else case e in #(
6938  e) eval $cacheid=no ;;
6939esac
6940fi
6941rm -f core conftest.err conftest.$ac_objext conftest.beam \
6942    conftest$ac_exeext conftest.$ac_ext ;;
6943esac
6944fi
6945
6946
6947		CFLAGS="$xorg_testset_save_CFLAGS"
6948
6949		eval supported=\$$cacheid
6950		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6951printf "%s\n" "$supported" >&6; }
6952		if test "$supported" = "yes" ; then
6953			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6954			found="yes"
6955		fi
6956	fi
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972xorg_testset_save_CFLAGS="$CFLAGS"
6973
6974if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6975	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6976	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6977printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6978if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6979then :
6980  printf %s "(cached) " >&6
6981else case e in #(
6982  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6983/* end confdefs.h.  */
6984int i;
6985_ACEOF
6986if ac_fn_c_try_compile "$LINENO"
6987then :
6988  xorg_cv_cc_flag_unknown_warning_option=yes
6989else case e in #(
6990  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6991esac
6992fi
6993rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6994esac
6995fi
6996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6997printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6998	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6999	CFLAGS="$xorg_testset_save_CFLAGS"
7000fi
7001
7002if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7003	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7004		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7005	fi
7006	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7007	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7008printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7009if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7010then :
7011  printf %s "(cached) " >&6
7012else case e in #(
7013  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7014/* end confdefs.h.  */
7015int i;
7016_ACEOF
7017if ac_fn_c_try_compile "$LINENO"
7018then :
7019  xorg_cv_cc_flag_unused_command_line_argument=yes
7020else case e in #(
7021  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7022esac
7023fi
7024rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7025esac
7026fi
7027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7028printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7029	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7030	CFLAGS="$xorg_testset_save_CFLAGS"
7031fi
7032
7033found="no"
7034
7035	if test $found = "no" ; then
7036		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7037			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7038		fi
7039
7040		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7041			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7042		fi
7043
7044		CFLAGS="$CFLAGS -Wredundant-decls"
7045
7046		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7047printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7048		cacheid=xorg_cv_cc_flag__Wredundant_decls
7049		if eval test \${$cacheid+y}
7050then :
7051  printf %s "(cached) " >&6
7052else case e in #(
7053  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054/* end confdefs.h.  */
7055int i;
7056int
7057main (void)
7058{
7059
7060  ;
7061  return 0;
7062}
7063_ACEOF
7064if ac_fn_c_try_link "$LINENO"
7065then :
7066  eval $cacheid=yes
7067else case e in #(
7068  e) eval $cacheid=no ;;
7069esac
7070fi
7071rm -f core conftest.err conftest.$ac_objext conftest.beam \
7072    conftest$ac_exeext conftest.$ac_ext ;;
7073esac
7074fi
7075
7076
7077		CFLAGS="$xorg_testset_save_CFLAGS"
7078
7079		eval supported=\$$cacheid
7080		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7081printf "%s\n" "$supported" >&6; }
7082		if test "$supported" = "yes" ; then
7083			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7084			found="yes"
7085		fi
7086	fi
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102xorg_testset_save_CFLAGS="$CFLAGS"
7103
7104if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7105	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7106	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7107printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7108if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7109then :
7110  printf %s "(cached) " >&6
7111else case e in #(
7112  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113/* end confdefs.h.  */
7114int i;
7115_ACEOF
7116if ac_fn_c_try_compile "$LINENO"
7117then :
7118  xorg_cv_cc_flag_unknown_warning_option=yes
7119else case e in #(
7120  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7121esac
7122fi
7123rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7124esac
7125fi
7126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7127printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7128	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7129	CFLAGS="$xorg_testset_save_CFLAGS"
7130fi
7131
7132if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7133	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7134		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7135	fi
7136	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7137	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7138printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7139if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7140then :
7141  printf %s "(cached) " >&6
7142else case e in #(
7143  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144/* end confdefs.h.  */
7145int i;
7146_ACEOF
7147if ac_fn_c_try_compile "$LINENO"
7148then :
7149  xorg_cv_cc_flag_unused_command_line_argument=yes
7150else case e in #(
7151  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7152esac
7153fi
7154rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7155esac
7156fi
7157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7158printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7159	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7160	CFLAGS="$xorg_testset_save_CFLAGS"
7161fi
7162
7163found="no"
7164
7165	if test $found = "no" ; then
7166		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7167			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7168		fi
7169
7170		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7171			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7172		fi
7173
7174		CFLAGS="$CFLAGS -Wlogical-op"
7175
7176		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7177printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7178		cacheid=xorg_cv_cc_flag__Wlogical_op
7179		if eval test \${$cacheid+y}
7180then :
7181  printf %s "(cached) " >&6
7182else case e in #(
7183  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184/* end confdefs.h.  */
7185int i;
7186int
7187main (void)
7188{
7189
7190  ;
7191  return 0;
7192}
7193_ACEOF
7194if ac_fn_c_try_link "$LINENO"
7195then :
7196  eval $cacheid=yes
7197else case e in #(
7198  e) eval $cacheid=no ;;
7199esac
7200fi
7201rm -f core conftest.err conftest.$ac_objext conftest.beam \
7202    conftest$ac_exeext conftest.$ac_ext ;;
7203esac
7204fi
7205
7206
7207		CFLAGS="$xorg_testset_save_CFLAGS"
7208
7209		eval supported=\$$cacheid
7210		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7211printf "%s\n" "$supported" >&6; }
7212		if test "$supported" = "yes" ; then
7213			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7214			found="yes"
7215		fi
7216	fi
7217
7218
7219
7220# These are currently disabled because they are noisy.  They will be enabled
7221# in the future once the codebase is sufficiently modernized to silence
7222# them.  For now, I don't want them to drown out the other warnings.
7223# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7224# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7225# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7226
7227# Turn some warnings into errors, so we don't accidentally get successful builds
7228# when there are problems that should be fixed.
7229
7230if test "x$SELECTIVE_WERROR" = "xyes" ; then
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244xorg_testset_save_CFLAGS="$CFLAGS"
7245
7246if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7247	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7248	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7249printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7250if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7251then :
7252  printf %s "(cached) " >&6
7253else case e in #(
7254  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255/* end confdefs.h.  */
7256int i;
7257_ACEOF
7258if ac_fn_c_try_compile "$LINENO"
7259then :
7260  xorg_cv_cc_flag_unknown_warning_option=yes
7261else case e in #(
7262  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7263esac
7264fi
7265rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7266esac
7267fi
7268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7269printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7270	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7271	CFLAGS="$xorg_testset_save_CFLAGS"
7272fi
7273
7274if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7275	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7276		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7277	fi
7278	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7279	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7280printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7281if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7282then :
7283  printf %s "(cached) " >&6
7284else case e in #(
7285  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7286/* end confdefs.h.  */
7287int i;
7288_ACEOF
7289if ac_fn_c_try_compile "$LINENO"
7290then :
7291  xorg_cv_cc_flag_unused_command_line_argument=yes
7292else case e in #(
7293  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7294esac
7295fi
7296rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7297esac
7298fi
7299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7300printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7301	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7302	CFLAGS="$xorg_testset_save_CFLAGS"
7303fi
7304
7305found="no"
7306
7307	if test $found = "no" ; then
7308		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7309			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7310		fi
7311
7312		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7313			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7314		fi
7315
7316		CFLAGS="$CFLAGS -Werror=implicit"
7317
7318		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7319printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7320		cacheid=xorg_cv_cc_flag__Werror_implicit
7321		if eval test \${$cacheid+y}
7322then :
7323  printf %s "(cached) " >&6
7324else case e in #(
7325  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326/* end confdefs.h.  */
7327int i;
7328int
7329main (void)
7330{
7331
7332  ;
7333  return 0;
7334}
7335_ACEOF
7336if ac_fn_c_try_link "$LINENO"
7337then :
7338  eval $cacheid=yes
7339else case e in #(
7340  e) eval $cacheid=no ;;
7341esac
7342fi
7343rm -f core conftest.err conftest.$ac_objext conftest.beam \
7344    conftest$ac_exeext conftest.$ac_ext ;;
7345esac
7346fi
7347
7348
7349		CFLAGS="$xorg_testset_save_CFLAGS"
7350
7351		eval supported=\$$cacheid
7352		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7353printf "%s\n" "$supported" >&6; }
7354		if test "$supported" = "yes" ; then
7355			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7356			found="yes"
7357		fi
7358	fi
7359
7360	if test $found = "no" ; then
7361		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7362			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7363		fi
7364
7365		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7366			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7367		fi
7368
7369		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7370
7371		{ 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
7372printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7373		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7374		if eval test \${$cacheid+y}
7375then :
7376  printf %s "(cached) " >&6
7377else case e in #(
7378  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7379/* end confdefs.h.  */
7380int i;
7381int
7382main (void)
7383{
7384
7385  ;
7386  return 0;
7387}
7388_ACEOF
7389if ac_fn_c_try_link "$LINENO"
7390then :
7391  eval $cacheid=yes
7392else case e in #(
7393  e) eval $cacheid=no ;;
7394esac
7395fi
7396rm -f core conftest.err conftest.$ac_objext conftest.beam \
7397    conftest$ac_exeext conftest.$ac_ext ;;
7398esac
7399fi
7400
7401
7402		CFLAGS="$xorg_testset_save_CFLAGS"
7403
7404		eval supported=\$$cacheid
7405		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7406printf "%s\n" "$supported" >&6; }
7407		if test "$supported" = "yes" ; then
7408			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7409			found="yes"
7410		fi
7411	fi
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427xorg_testset_save_CFLAGS="$CFLAGS"
7428
7429if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7430	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7431	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7432printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7433if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7434then :
7435  printf %s "(cached) " >&6
7436else case e in #(
7437  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7438/* end confdefs.h.  */
7439int i;
7440_ACEOF
7441if ac_fn_c_try_compile "$LINENO"
7442then :
7443  xorg_cv_cc_flag_unknown_warning_option=yes
7444else case e in #(
7445  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7446esac
7447fi
7448rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7449esac
7450fi
7451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7452printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7453	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7454	CFLAGS="$xorg_testset_save_CFLAGS"
7455fi
7456
7457if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7458	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7459		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7460	fi
7461	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7462	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7463printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7464if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7465then :
7466  printf %s "(cached) " >&6
7467else case e in #(
7468  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469/* end confdefs.h.  */
7470int i;
7471_ACEOF
7472if ac_fn_c_try_compile "$LINENO"
7473then :
7474  xorg_cv_cc_flag_unused_command_line_argument=yes
7475else case e in #(
7476  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7477esac
7478fi
7479rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7480esac
7481fi
7482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7483printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7484	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7485	CFLAGS="$xorg_testset_save_CFLAGS"
7486fi
7487
7488found="no"
7489
7490	if test $found = "no" ; then
7491		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7492			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7493		fi
7494
7495		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7496			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7497		fi
7498
7499		CFLAGS="$CFLAGS -Werror=nonnull"
7500
7501		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7502printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7503		cacheid=xorg_cv_cc_flag__Werror_nonnull
7504		if eval test \${$cacheid+y}
7505then :
7506  printf %s "(cached) " >&6
7507else case e in #(
7508  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7509/* end confdefs.h.  */
7510int i;
7511int
7512main (void)
7513{
7514
7515  ;
7516  return 0;
7517}
7518_ACEOF
7519if ac_fn_c_try_link "$LINENO"
7520then :
7521  eval $cacheid=yes
7522else case e in #(
7523  e) eval $cacheid=no ;;
7524esac
7525fi
7526rm -f core conftest.err conftest.$ac_objext conftest.beam \
7527    conftest$ac_exeext conftest.$ac_ext ;;
7528esac
7529fi
7530
7531
7532		CFLAGS="$xorg_testset_save_CFLAGS"
7533
7534		eval supported=\$$cacheid
7535		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7536printf "%s\n" "$supported" >&6; }
7537		if test "$supported" = "yes" ; then
7538			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7539			found="yes"
7540		fi
7541	fi
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557xorg_testset_save_CFLAGS="$CFLAGS"
7558
7559if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7560	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7561	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7562printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7563if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7564then :
7565  printf %s "(cached) " >&6
7566else case e in #(
7567  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7568/* end confdefs.h.  */
7569int i;
7570_ACEOF
7571if ac_fn_c_try_compile "$LINENO"
7572then :
7573  xorg_cv_cc_flag_unknown_warning_option=yes
7574else case e in #(
7575  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7576esac
7577fi
7578rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7579esac
7580fi
7581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7582printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7583	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7584	CFLAGS="$xorg_testset_save_CFLAGS"
7585fi
7586
7587if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7588	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7589		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7590	fi
7591	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7592	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7593printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7594if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7595then :
7596  printf %s "(cached) " >&6
7597else case e in #(
7598  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599/* end confdefs.h.  */
7600int i;
7601_ACEOF
7602if ac_fn_c_try_compile "$LINENO"
7603then :
7604  xorg_cv_cc_flag_unused_command_line_argument=yes
7605else case e in #(
7606  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7607esac
7608fi
7609rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7610esac
7611fi
7612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7613printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7614	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7615	CFLAGS="$xorg_testset_save_CFLAGS"
7616fi
7617
7618found="no"
7619
7620	if test $found = "no" ; then
7621		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7622			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7623		fi
7624
7625		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7626			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7627		fi
7628
7629		CFLAGS="$CFLAGS -Werror=init-self"
7630
7631		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7632printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7633		cacheid=xorg_cv_cc_flag__Werror_init_self
7634		if eval test \${$cacheid+y}
7635then :
7636  printf %s "(cached) " >&6
7637else case e in #(
7638  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639/* end confdefs.h.  */
7640int i;
7641int
7642main (void)
7643{
7644
7645  ;
7646  return 0;
7647}
7648_ACEOF
7649if ac_fn_c_try_link "$LINENO"
7650then :
7651  eval $cacheid=yes
7652else case e in #(
7653  e) eval $cacheid=no ;;
7654esac
7655fi
7656rm -f core conftest.err conftest.$ac_objext conftest.beam \
7657    conftest$ac_exeext conftest.$ac_ext ;;
7658esac
7659fi
7660
7661
7662		CFLAGS="$xorg_testset_save_CFLAGS"
7663
7664		eval supported=\$$cacheid
7665		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7666printf "%s\n" "$supported" >&6; }
7667		if test "$supported" = "yes" ; then
7668			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7669			found="yes"
7670		fi
7671	fi
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687xorg_testset_save_CFLAGS="$CFLAGS"
7688
7689if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7690	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7691	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7692printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7693if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7694then :
7695  printf %s "(cached) " >&6
7696else case e in #(
7697  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698/* end confdefs.h.  */
7699int i;
7700_ACEOF
7701if ac_fn_c_try_compile "$LINENO"
7702then :
7703  xorg_cv_cc_flag_unknown_warning_option=yes
7704else case e in #(
7705  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7706esac
7707fi
7708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7709esac
7710fi
7711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7712printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7713	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7714	CFLAGS="$xorg_testset_save_CFLAGS"
7715fi
7716
7717if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7718	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7719		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7720	fi
7721	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7722	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7723printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7724if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7725then :
7726  printf %s "(cached) " >&6
7727else case e in #(
7728  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7729/* end confdefs.h.  */
7730int i;
7731_ACEOF
7732if ac_fn_c_try_compile "$LINENO"
7733then :
7734  xorg_cv_cc_flag_unused_command_line_argument=yes
7735else case e in #(
7736  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7737esac
7738fi
7739rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7740esac
7741fi
7742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7743printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7744	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7745	CFLAGS="$xorg_testset_save_CFLAGS"
7746fi
7747
7748found="no"
7749
7750	if test $found = "no" ; then
7751		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7752			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7753		fi
7754
7755		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7756			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7757		fi
7758
7759		CFLAGS="$CFLAGS -Werror=main"
7760
7761		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7762printf %s "checking if $CC supports -Werror=main... " >&6; }
7763		cacheid=xorg_cv_cc_flag__Werror_main
7764		if eval test \${$cacheid+y}
7765then :
7766  printf %s "(cached) " >&6
7767else case e in #(
7768  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7769/* end confdefs.h.  */
7770int i;
7771int
7772main (void)
7773{
7774
7775  ;
7776  return 0;
7777}
7778_ACEOF
7779if ac_fn_c_try_link "$LINENO"
7780then :
7781  eval $cacheid=yes
7782else case e in #(
7783  e) eval $cacheid=no ;;
7784esac
7785fi
7786rm -f core conftest.err conftest.$ac_objext conftest.beam \
7787    conftest$ac_exeext conftest.$ac_ext ;;
7788esac
7789fi
7790
7791
7792		CFLAGS="$xorg_testset_save_CFLAGS"
7793
7794		eval supported=\$$cacheid
7795		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7796printf "%s\n" "$supported" >&6; }
7797		if test "$supported" = "yes" ; then
7798			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7799			found="yes"
7800		fi
7801	fi
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817xorg_testset_save_CFLAGS="$CFLAGS"
7818
7819if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7820	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7821	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7822printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7823if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7824then :
7825  printf %s "(cached) " >&6
7826else case e in #(
7827  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828/* end confdefs.h.  */
7829int i;
7830_ACEOF
7831if ac_fn_c_try_compile "$LINENO"
7832then :
7833  xorg_cv_cc_flag_unknown_warning_option=yes
7834else case e in #(
7835  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7836esac
7837fi
7838rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7839esac
7840fi
7841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7842printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7843	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7844	CFLAGS="$xorg_testset_save_CFLAGS"
7845fi
7846
7847if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7848	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7849		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7850	fi
7851	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7852	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7853printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7854if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7855then :
7856  printf %s "(cached) " >&6
7857else case e in #(
7858  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7859/* end confdefs.h.  */
7860int i;
7861_ACEOF
7862if ac_fn_c_try_compile "$LINENO"
7863then :
7864  xorg_cv_cc_flag_unused_command_line_argument=yes
7865else case e in #(
7866  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7867esac
7868fi
7869rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7870esac
7871fi
7872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7873printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7874	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7875	CFLAGS="$xorg_testset_save_CFLAGS"
7876fi
7877
7878found="no"
7879
7880	if test $found = "no" ; then
7881		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7882			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7883		fi
7884
7885		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7886			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7887		fi
7888
7889		CFLAGS="$CFLAGS -Werror=missing-braces"
7890
7891		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7892printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7893		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7894		if eval test \${$cacheid+y}
7895then :
7896  printf %s "(cached) " >&6
7897else case e in #(
7898  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899/* end confdefs.h.  */
7900int i;
7901int
7902main (void)
7903{
7904
7905  ;
7906  return 0;
7907}
7908_ACEOF
7909if ac_fn_c_try_link "$LINENO"
7910then :
7911  eval $cacheid=yes
7912else case e in #(
7913  e) eval $cacheid=no ;;
7914esac
7915fi
7916rm -f core conftest.err conftest.$ac_objext conftest.beam \
7917    conftest$ac_exeext conftest.$ac_ext ;;
7918esac
7919fi
7920
7921
7922		CFLAGS="$xorg_testset_save_CFLAGS"
7923
7924		eval supported=\$$cacheid
7925		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7926printf "%s\n" "$supported" >&6; }
7927		if test "$supported" = "yes" ; then
7928			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7929			found="yes"
7930		fi
7931	fi
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947xorg_testset_save_CFLAGS="$CFLAGS"
7948
7949if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7950	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7951	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7952printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7953if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7954then :
7955  printf %s "(cached) " >&6
7956else case e in #(
7957  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958/* end confdefs.h.  */
7959int i;
7960_ACEOF
7961if ac_fn_c_try_compile "$LINENO"
7962then :
7963  xorg_cv_cc_flag_unknown_warning_option=yes
7964else case e in #(
7965  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7966esac
7967fi
7968rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7969esac
7970fi
7971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7972printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7973	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7974	CFLAGS="$xorg_testset_save_CFLAGS"
7975fi
7976
7977if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7978	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7979		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7980	fi
7981	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7982	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7983printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7984if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7985then :
7986  printf %s "(cached) " >&6
7987else case e in #(
7988  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7989/* end confdefs.h.  */
7990int i;
7991_ACEOF
7992if ac_fn_c_try_compile "$LINENO"
7993then :
7994  xorg_cv_cc_flag_unused_command_line_argument=yes
7995else case e in #(
7996  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7997esac
7998fi
7999rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8000esac
8001fi
8002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8003printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8004	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8005	CFLAGS="$xorg_testset_save_CFLAGS"
8006fi
8007
8008found="no"
8009
8010	if test $found = "no" ; then
8011		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8012			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8013		fi
8014
8015		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8016			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8017		fi
8018
8019		CFLAGS="$CFLAGS -Werror=sequence-point"
8020
8021		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8022printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8023		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8024		if eval test \${$cacheid+y}
8025then :
8026  printf %s "(cached) " >&6
8027else case e in #(
8028  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029/* end confdefs.h.  */
8030int i;
8031int
8032main (void)
8033{
8034
8035  ;
8036  return 0;
8037}
8038_ACEOF
8039if ac_fn_c_try_link "$LINENO"
8040then :
8041  eval $cacheid=yes
8042else case e in #(
8043  e) eval $cacheid=no ;;
8044esac
8045fi
8046rm -f core conftest.err conftest.$ac_objext conftest.beam \
8047    conftest$ac_exeext conftest.$ac_ext ;;
8048esac
8049fi
8050
8051
8052		CFLAGS="$xorg_testset_save_CFLAGS"
8053
8054		eval supported=\$$cacheid
8055		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8056printf "%s\n" "$supported" >&6; }
8057		if test "$supported" = "yes" ; then
8058			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8059			found="yes"
8060		fi
8061	fi
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077xorg_testset_save_CFLAGS="$CFLAGS"
8078
8079if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8080	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8081	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8082printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8083if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8084then :
8085  printf %s "(cached) " >&6
8086else case e in #(
8087  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088/* end confdefs.h.  */
8089int i;
8090_ACEOF
8091if ac_fn_c_try_compile "$LINENO"
8092then :
8093  xorg_cv_cc_flag_unknown_warning_option=yes
8094else case e in #(
8095  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8096esac
8097fi
8098rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8099esac
8100fi
8101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8102printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8103	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8104	CFLAGS="$xorg_testset_save_CFLAGS"
8105fi
8106
8107if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8108	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8109		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8110	fi
8111	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8112	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8113printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8114if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8115then :
8116  printf %s "(cached) " >&6
8117else case e in #(
8118  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119/* end confdefs.h.  */
8120int i;
8121_ACEOF
8122if ac_fn_c_try_compile "$LINENO"
8123then :
8124  xorg_cv_cc_flag_unused_command_line_argument=yes
8125else case e in #(
8126  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8127esac
8128fi
8129rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8130esac
8131fi
8132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8133printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8134	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8135	CFLAGS="$xorg_testset_save_CFLAGS"
8136fi
8137
8138found="no"
8139
8140	if test $found = "no" ; then
8141		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8142			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8143		fi
8144
8145		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8146			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8147		fi
8148
8149		CFLAGS="$CFLAGS -Werror=return-type"
8150
8151		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8152printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8153		cacheid=xorg_cv_cc_flag__Werror_return_type
8154		if eval test \${$cacheid+y}
8155then :
8156  printf %s "(cached) " >&6
8157else case e in #(
8158  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159/* end confdefs.h.  */
8160int i;
8161int
8162main (void)
8163{
8164
8165  ;
8166  return 0;
8167}
8168_ACEOF
8169if ac_fn_c_try_link "$LINENO"
8170then :
8171  eval $cacheid=yes
8172else case e in #(
8173  e) eval $cacheid=no ;;
8174esac
8175fi
8176rm -f core conftest.err conftest.$ac_objext conftest.beam \
8177    conftest$ac_exeext conftest.$ac_ext ;;
8178esac
8179fi
8180
8181
8182		CFLAGS="$xorg_testset_save_CFLAGS"
8183
8184		eval supported=\$$cacheid
8185		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8186printf "%s\n" "$supported" >&6; }
8187		if test "$supported" = "yes" ; then
8188			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8189			found="yes"
8190		fi
8191	fi
8192
8193	if test $found = "no" ; then
8194		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8195			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8196		fi
8197
8198		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8199			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8200		fi
8201
8202		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8203
8204		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8205printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8206		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8207		if eval test \${$cacheid+y}
8208then :
8209  printf %s "(cached) " >&6
8210else case e in #(
8211  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8212/* end confdefs.h.  */
8213int i;
8214int
8215main (void)
8216{
8217
8218  ;
8219  return 0;
8220}
8221_ACEOF
8222if ac_fn_c_try_link "$LINENO"
8223then :
8224  eval $cacheid=yes
8225else case e in #(
8226  e) eval $cacheid=no ;;
8227esac
8228fi
8229rm -f core conftest.err conftest.$ac_objext conftest.beam \
8230    conftest$ac_exeext conftest.$ac_ext ;;
8231esac
8232fi
8233
8234
8235		CFLAGS="$xorg_testset_save_CFLAGS"
8236
8237		eval supported=\$$cacheid
8238		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8239printf "%s\n" "$supported" >&6; }
8240		if test "$supported" = "yes" ; then
8241			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8242			found="yes"
8243		fi
8244	fi
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260xorg_testset_save_CFLAGS="$CFLAGS"
8261
8262if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8263	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8264	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8265printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8266if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8267then :
8268  printf %s "(cached) " >&6
8269else case e in #(
8270  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271/* end confdefs.h.  */
8272int i;
8273_ACEOF
8274if ac_fn_c_try_compile "$LINENO"
8275then :
8276  xorg_cv_cc_flag_unknown_warning_option=yes
8277else case e in #(
8278  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8279esac
8280fi
8281rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8282esac
8283fi
8284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8285printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8286	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8287	CFLAGS="$xorg_testset_save_CFLAGS"
8288fi
8289
8290if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8291	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8292		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8293	fi
8294	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8295	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8296printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8297if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8298then :
8299  printf %s "(cached) " >&6
8300else case e in #(
8301  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302/* end confdefs.h.  */
8303int i;
8304_ACEOF
8305if ac_fn_c_try_compile "$LINENO"
8306then :
8307  xorg_cv_cc_flag_unused_command_line_argument=yes
8308else case e in #(
8309  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8310esac
8311fi
8312rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8313esac
8314fi
8315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8316printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8317	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8318	CFLAGS="$xorg_testset_save_CFLAGS"
8319fi
8320
8321found="no"
8322
8323	if test $found = "no" ; then
8324		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8325			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8326		fi
8327
8328		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8329			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8330		fi
8331
8332		CFLAGS="$CFLAGS -Werror=trigraphs"
8333
8334		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8335printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8336		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8337		if eval test \${$cacheid+y}
8338then :
8339  printf %s "(cached) " >&6
8340else case e in #(
8341  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342/* end confdefs.h.  */
8343int i;
8344int
8345main (void)
8346{
8347
8348  ;
8349  return 0;
8350}
8351_ACEOF
8352if ac_fn_c_try_link "$LINENO"
8353then :
8354  eval $cacheid=yes
8355else case e in #(
8356  e) eval $cacheid=no ;;
8357esac
8358fi
8359rm -f core conftest.err conftest.$ac_objext conftest.beam \
8360    conftest$ac_exeext conftest.$ac_ext ;;
8361esac
8362fi
8363
8364
8365		CFLAGS="$xorg_testset_save_CFLAGS"
8366
8367		eval supported=\$$cacheid
8368		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8369printf "%s\n" "$supported" >&6; }
8370		if test "$supported" = "yes" ; then
8371			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8372			found="yes"
8373		fi
8374	fi
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390xorg_testset_save_CFLAGS="$CFLAGS"
8391
8392if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8393	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8394	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8395printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8396if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8397then :
8398  printf %s "(cached) " >&6
8399else case e in #(
8400  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401/* end confdefs.h.  */
8402int i;
8403_ACEOF
8404if ac_fn_c_try_compile "$LINENO"
8405then :
8406  xorg_cv_cc_flag_unknown_warning_option=yes
8407else case e in #(
8408  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8409esac
8410fi
8411rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8412esac
8413fi
8414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8415printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8416	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8417	CFLAGS="$xorg_testset_save_CFLAGS"
8418fi
8419
8420if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8421	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8422		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8423	fi
8424	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8425	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8426printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8427if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8428then :
8429  printf %s "(cached) " >&6
8430else case e in #(
8431  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8432/* end confdefs.h.  */
8433int i;
8434_ACEOF
8435if ac_fn_c_try_compile "$LINENO"
8436then :
8437  xorg_cv_cc_flag_unused_command_line_argument=yes
8438else case e in #(
8439  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8440esac
8441fi
8442rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8443esac
8444fi
8445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8446printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8447	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8448	CFLAGS="$xorg_testset_save_CFLAGS"
8449fi
8450
8451found="no"
8452
8453	if test $found = "no" ; then
8454		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8455			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8456		fi
8457
8458		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8459			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8460		fi
8461
8462		CFLAGS="$CFLAGS -Werror=array-bounds"
8463
8464		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8465printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8466		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8467		if eval test \${$cacheid+y}
8468then :
8469  printf %s "(cached) " >&6
8470else case e in #(
8471  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8472/* end confdefs.h.  */
8473int i;
8474int
8475main (void)
8476{
8477
8478  ;
8479  return 0;
8480}
8481_ACEOF
8482if ac_fn_c_try_link "$LINENO"
8483then :
8484  eval $cacheid=yes
8485else case e in #(
8486  e) eval $cacheid=no ;;
8487esac
8488fi
8489rm -f core conftest.err conftest.$ac_objext conftest.beam \
8490    conftest$ac_exeext conftest.$ac_ext ;;
8491esac
8492fi
8493
8494
8495		CFLAGS="$xorg_testset_save_CFLAGS"
8496
8497		eval supported=\$$cacheid
8498		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8499printf "%s\n" "$supported" >&6; }
8500		if test "$supported" = "yes" ; then
8501			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8502			found="yes"
8503		fi
8504	fi
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520xorg_testset_save_CFLAGS="$CFLAGS"
8521
8522if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8523	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8524	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8525printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8526if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8527then :
8528  printf %s "(cached) " >&6
8529else case e in #(
8530  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8531/* end confdefs.h.  */
8532int i;
8533_ACEOF
8534if ac_fn_c_try_compile "$LINENO"
8535then :
8536  xorg_cv_cc_flag_unknown_warning_option=yes
8537else case e in #(
8538  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8539esac
8540fi
8541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8542esac
8543fi
8544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8545printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8546	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8547	CFLAGS="$xorg_testset_save_CFLAGS"
8548fi
8549
8550if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8551	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8552		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8553	fi
8554	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8555	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8556printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8557if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8558then :
8559  printf %s "(cached) " >&6
8560else case e in #(
8561  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562/* end confdefs.h.  */
8563int i;
8564_ACEOF
8565if ac_fn_c_try_compile "$LINENO"
8566then :
8567  xorg_cv_cc_flag_unused_command_line_argument=yes
8568else case e in #(
8569  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8570esac
8571fi
8572rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8573esac
8574fi
8575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8576printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8577	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8578	CFLAGS="$xorg_testset_save_CFLAGS"
8579fi
8580
8581found="no"
8582
8583	if test $found = "no" ; then
8584		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8585			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8586		fi
8587
8588		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8589			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8590		fi
8591
8592		CFLAGS="$CFLAGS -Werror=write-strings"
8593
8594		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8595printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8596		cacheid=xorg_cv_cc_flag__Werror_write_strings
8597		if eval test \${$cacheid+y}
8598then :
8599  printf %s "(cached) " >&6
8600else case e in #(
8601  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8602/* end confdefs.h.  */
8603int i;
8604int
8605main (void)
8606{
8607
8608  ;
8609  return 0;
8610}
8611_ACEOF
8612if ac_fn_c_try_link "$LINENO"
8613then :
8614  eval $cacheid=yes
8615else case e in #(
8616  e) eval $cacheid=no ;;
8617esac
8618fi
8619rm -f core conftest.err conftest.$ac_objext conftest.beam \
8620    conftest$ac_exeext conftest.$ac_ext ;;
8621esac
8622fi
8623
8624
8625		CFLAGS="$xorg_testset_save_CFLAGS"
8626
8627		eval supported=\$$cacheid
8628		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8629printf "%s\n" "$supported" >&6; }
8630		if test "$supported" = "yes" ; then
8631			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8632			found="yes"
8633		fi
8634	fi
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650xorg_testset_save_CFLAGS="$CFLAGS"
8651
8652if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8653	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8654	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8655printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8656if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8657then :
8658  printf %s "(cached) " >&6
8659else case e in #(
8660  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661/* end confdefs.h.  */
8662int i;
8663_ACEOF
8664if ac_fn_c_try_compile "$LINENO"
8665then :
8666  xorg_cv_cc_flag_unknown_warning_option=yes
8667else case e in #(
8668  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8669esac
8670fi
8671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8672esac
8673fi
8674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8675printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8676	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8677	CFLAGS="$xorg_testset_save_CFLAGS"
8678fi
8679
8680if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8681	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8682		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8683	fi
8684	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8685	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8686printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8687if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8688then :
8689  printf %s "(cached) " >&6
8690else case e in #(
8691  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8692/* end confdefs.h.  */
8693int i;
8694_ACEOF
8695if ac_fn_c_try_compile "$LINENO"
8696then :
8697  xorg_cv_cc_flag_unused_command_line_argument=yes
8698else case e in #(
8699  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8700esac
8701fi
8702rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8703esac
8704fi
8705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8706printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8707	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8708	CFLAGS="$xorg_testset_save_CFLAGS"
8709fi
8710
8711found="no"
8712
8713	if test $found = "no" ; then
8714		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8715			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8716		fi
8717
8718		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8719			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8720		fi
8721
8722		CFLAGS="$CFLAGS -Werror=address"
8723
8724		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8725printf %s "checking if $CC supports -Werror=address... " >&6; }
8726		cacheid=xorg_cv_cc_flag__Werror_address
8727		if eval test \${$cacheid+y}
8728then :
8729  printf %s "(cached) " >&6
8730else case e in #(
8731  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732/* end confdefs.h.  */
8733int i;
8734int
8735main (void)
8736{
8737
8738  ;
8739  return 0;
8740}
8741_ACEOF
8742if ac_fn_c_try_link "$LINENO"
8743then :
8744  eval $cacheid=yes
8745else case e in #(
8746  e) eval $cacheid=no ;;
8747esac
8748fi
8749rm -f core conftest.err conftest.$ac_objext conftest.beam \
8750    conftest$ac_exeext conftest.$ac_ext ;;
8751esac
8752fi
8753
8754
8755		CFLAGS="$xorg_testset_save_CFLAGS"
8756
8757		eval supported=\$$cacheid
8758		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8759printf "%s\n" "$supported" >&6; }
8760		if test "$supported" = "yes" ; then
8761			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8762			found="yes"
8763		fi
8764	fi
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780xorg_testset_save_CFLAGS="$CFLAGS"
8781
8782if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8783	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8784	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8785printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8786if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8787then :
8788  printf %s "(cached) " >&6
8789else case e in #(
8790  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8791/* end confdefs.h.  */
8792int i;
8793_ACEOF
8794if ac_fn_c_try_compile "$LINENO"
8795then :
8796  xorg_cv_cc_flag_unknown_warning_option=yes
8797else case e in #(
8798  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8799esac
8800fi
8801rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8802esac
8803fi
8804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8805printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8806	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8807	CFLAGS="$xorg_testset_save_CFLAGS"
8808fi
8809
8810if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8811	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8812		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8813	fi
8814	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8815	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8816printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8817if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8818then :
8819  printf %s "(cached) " >&6
8820else case e in #(
8821  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8822/* end confdefs.h.  */
8823int i;
8824_ACEOF
8825if ac_fn_c_try_compile "$LINENO"
8826then :
8827  xorg_cv_cc_flag_unused_command_line_argument=yes
8828else case e in #(
8829  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8830esac
8831fi
8832rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8833esac
8834fi
8835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8836printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8837	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8838	CFLAGS="$xorg_testset_save_CFLAGS"
8839fi
8840
8841found="no"
8842
8843	if test $found = "no" ; then
8844		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8845			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8846		fi
8847
8848		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8849			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8850		fi
8851
8852		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8853
8854		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8855printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8856		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8857		if eval test \${$cacheid+y}
8858then :
8859  printf %s "(cached) " >&6
8860else case e in #(
8861  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862/* end confdefs.h.  */
8863int i;
8864int
8865main (void)
8866{
8867
8868  ;
8869  return 0;
8870}
8871_ACEOF
8872if ac_fn_c_try_link "$LINENO"
8873then :
8874  eval $cacheid=yes
8875else case e in #(
8876  e) eval $cacheid=no ;;
8877esac
8878fi
8879rm -f core conftest.err conftest.$ac_objext conftest.beam \
8880    conftest$ac_exeext conftest.$ac_ext ;;
8881esac
8882fi
8883
8884
8885		CFLAGS="$xorg_testset_save_CFLAGS"
8886
8887		eval supported=\$$cacheid
8888		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8889printf "%s\n" "$supported" >&6; }
8890		if test "$supported" = "yes" ; then
8891			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8892			found="yes"
8893		fi
8894	fi
8895
8896	if test $found = "no" ; then
8897		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8898			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8899		fi
8900
8901		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8902			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8903		fi
8904
8905		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8906
8907		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8908printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8909		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8910		if eval test \${$cacheid+y}
8911then :
8912  printf %s "(cached) " >&6
8913else case e in #(
8914  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8915/* end confdefs.h.  */
8916int i;
8917int
8918main (void)
8919{
8920
8921  ;
8922  return 0;
8923}
8924_ACEOF
8925if ac_fn_c_try_link "$LINENO"
8926then :
8927  eval $cacheid=yes
8928else case e in #(
8929  e) eval $cacheid=no ;;
8930esac
8931fi
8932rm -f core conftest.err conftest.$ac_objext conftest.beam \
8933    conftest$ac_exeext conftest.$ac_ext ;;
8934esac
8935fi
8936
8937
8938		CFLAGS="$xorg_testset_save_CFLAGS"
8939
8940		eval supported=\$$cacheid
8941		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8942printf "%s\n" "$supported" >&6; }
8943		if test "$supported" = "yes" ; then
8944			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8945			found="yes"
8946		fi
8947	fi
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963xorg_testset_save_CFLAGS="$CFLAGS"
8964
8965if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8966	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8967	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8968printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8969if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8970then :
8971  printf %s "(cached) " >&6
8972else case e in #(
8973  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8974/* end confdefs.h.  */
8975int i;
8976_ACEOF
8977if ac_fn_c_try_compile "$LINENO"
8978then :
8979  xorg_cv_cc_flag_unknown_warning_option=yes
8980else case e in #(
8981  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8982esac
8983fi
8984rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8985esac
8986fi
8987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8988printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8989	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8990	CFLAGS="$xorg_testset_save_CFLAGS"
8991fi
8992
8993if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8994	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8995		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8996	fi
8997	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8998	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8999printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9000if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9001then :
9002  printf %s "(cached) " >&6
9003else case e in #(
9004  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9005/* end confdefs.h.  */
9006int i;
9007_ACEOF
9008if ac_fn_c_try_compile "$LINENO"
9009then :
9010  xorg_cv_cc_flag_unused_command_line_argument=yes
9011else case e in #(
9012  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9013esac
9014fi
9015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9016esac
9017fi
9018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9019printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9020	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9021	CFLAGS="$xorg_testset_save_CFLAGS"
9022fi
9023
9024found="no"
9025
9026	if test $found = "no" ; then
9027		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9028			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9029		fi
9030
9031		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9032			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9033		fi
9034
9035		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9036
9037		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9038printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9039		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9040		if eval test \${$cacheid+y}
9041then :
9042  printf %s "(cached) " >&6
9043else case e in #(
9044  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9045/* end confdefs.h.  */
9046int i;
9047int
9048main (void)
9049{
9050
9051  ;
9052  return 0;
9053}
9054_ACEOF
9055if ac_fn_c_try_link "$LINENO"
9056then :
9057  eval $cacheid=yes
9058else case e in #(
9059  e) eval $cacheid=no ;;
9060esac
9061fi
9062rm -f core conftest.err conftest.$ac_objext conftest.beam \
9063    conftest$ac_exeext conftest.$ac_ext ;;
9064esac
9065fi
9066
9067
9068		CFLAGS="$xorg_testset_save_CFLAGS"
9069
9070		eval supported=\$$cacheid
9071		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9072printf "%s\n" "$supported" >&6; }
9073		if test "$supported" = "yes" ; then
9074			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9075			found="yes"
9076		fi
9077	fi
9078
9079 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9080else
9081{ 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
9082printf "%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;}
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096xorg_testset_save_CFLAGS="$CFLAGS"
9097
9098if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9099	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9100	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9101printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9102if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9103then :
9104  printf %s "(cached) " >&6
9105else case e in #(
9106  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9107/* end confdefs.h.  */
9108int i;
9109_ACEOF
9110if ac_fn_c_try_compile "$LINENO"
9111then :
9112  xorg_cv_cc_flag_unknown_warning_option=yes
9113else case e in #(
9114  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9115esac
9116fi
9117rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9118esac
9119fi
9120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9121printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9122	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9123	CFLAGS="$xorg_testset_save_CFLAGS"
9124fi
9125
9126if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9127	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9128		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9129	fi
9130	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9131	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9132printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9133if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9134then :
9135  printf %s "(cached) " >&6
9136else case e in #(
9137  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9138/* end confdefs.h.  */
9139int i;
9140_ACEOF
9141if ac_fn_c_try_compile "$LINENO"
9142then :
9143  xorg_cv_cc_flag_unused_command_line_argument=yes
9144else case e in #(
9145  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9146esac
9147fi
9148rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9149esac
9150fi
9151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9152printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9153	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9154	CFLAGS="$xorg_testset_save_CFLAGS"
9155fi
9156
9157found="no"
9158
9159	if test $found = "no" ; then
9160		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9161			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9162		fi
9163
9164		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9165			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9166		fi
9167
9168		CFLAGS="$CFLAGS -Wimplicit"
9169
9170		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9171printf %s "checking if $CC supports -Wimplicit... " >&6; }
9172		cacheid=xorg_cv_cc_flag__Wimplicit
9173		if eval test \${$cacheid+y}
9174then :
9175  printf %s "(cached) " >&6
9176else case e in #(
9177  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9178/* end confdefs.h.  */
9179int i;
9180int
9181main (void)
9182{
9183
9184  ;
9185  return 0;
9186}
9187_ACEOF
9188if ac_fn_c_try_link "$LINENO"
9189then :
9190  eval $cacheid=yes
9191else case e in #(
9192  e) eval $cacheid=no ;;
9193esac
9194fi
9195rm -f core conftest.err conftest.$ac_objext conftest.beam \
9196    conftest$ac_exeext conftest.$ac_ext ;;
9197esac
9198fi
9199
9200
9201		CFLAGS="$xorg_testset_save_CFLAGS"
9202
9203		eval supported=\$$cacheid
9204		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9205printf "%s\n" "$supported" >&6; }
9206		if test "$supported" = "yes" ; then
9207			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9208			found="yes"
9209		fi
9210	fi
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226xorg_testset_save_CFLAGS="$CFLAGS"
9227
9228if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9229	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9230	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9231printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9232if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9233then :
9234  printf %s "(cached) " >&6
9235else case e in #(
9236  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237/* end confdefs.h.  */
9238int i;
9239_ACEOF
9240if ac_fn_c_try_compile "$LINENO"
9241then :
9242  xorg_cv_cc_flag_unknown_warning_option=yes
9243else case e in #(
9244  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9245esac
9246fi
9247rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9248esac
9249fi
9250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9251printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9252	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9253	CFLAGS="$xorg_testset_save_CFLAGS"
9254fi
9255
9256if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9257	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9258		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9259	fi
9260	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9261	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9262printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9263if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9264then :
9265  printf %s "(cached) " >&6
9266else case e in #(
9267  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9268/* end confdefs.h.  */
9269int i;
9270_ACEOF
9271if ac_fn_c_try_compile "$LINENO"
9272then :
9273  xorg_cv_cc_flag_unused_command_line_argument=yes
9274else case e in #(
9275  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9276esac
9277fi
9278rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9279esac
9280fi
9281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9282printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9283	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9284	CFLAGS="$xorg_testset_save_CFLAGS"
9285fi
9286
9287found="no"
9288
9289	if test $found = "no" ; then
9290		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9291			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9292		fi
9293
9294		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9295			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9296		fi
9297
9298		CFLAGS="$CFLAGS -Wnonnull"
9299
9300		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9301printf %s "checking if $CC supports -Wnonnull... " >&6; }
9302		cacheid=xorg_cv_cc_flag__Wnonnull
9303		if eval test \${$cacheid+y}
9304then :
9305  printf %s "(cached) " >&6
9306else case e in #(
9307  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9308/* end confdefs.h.  */
9309int i;
9310int
9311main (void)
9312{
9313
9314  ;
9315  return 0;
9316}
9317_ACEOF
9318if ac_fn_c_try_link "$LINENO"
9319then :
9320  eval $cacheid=yes
9321else case e in #(
9322  e) eval $cacheid=no ;;
9323esac
9324fi
9325rm -f core conftest.err conftest.$ac_objext conftest.beam \
9326    conftest$ac_exeext conftest.$ac_ext ;;
9327esac
9328fi
9329
9330
9331		CFLAGS="$xorg_testset_save_CFLAGS"
9332
9333		eval supported=\$$cacheid
9334		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9335printf "%s\n" "$supported" >&6; }
9336		if test "$supported" = "yes" ; then
9337			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9338			found="yes"
9339		fi
9340	fi
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356xorg_testset_save_CFLAGS="$CFLAGS"
9357
9358if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9359	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9360	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9361printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9362if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9363then :
9364  printf %s "(cached) " >&6
9365else case e in #(
9366  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367/* end confdefs.h.  */
9368int i;
9369_ACEOF
9370if ac_fn_c_try_compile "$LINENO"
9371then :
9372  xorg_cv_cc_flag_unknown_warning_option=yes
9373else case e in #(
9374  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9375esac
9376fi
9377rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9378esac
9379fi
9380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9381printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9382	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9383	CFLAGS="$xorg_testset_save_CFLAGS"
9384fi
9385
9386if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9387	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9388		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9389	fi
9390	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9391	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9392printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9393if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9394then :
9395  printf %s "(cached) " >&6
9396else case e in #(
9397  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398/* end confdefs.h.  */
9399int i;
9400_ACEOF
9401if ac_fn_c_try_compile "$LINENO"
9402then :
9403  xorg_cv_cc_flag_unused_command_line_argument=yes
9404else case e in #(
9405  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9406esac
9407fi
9408rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9409esac
9410fi
9411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9412printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9413	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9414	CFLAGS="$xorg_testset_save_CFLAGS"
9415fi
9416
9417found="no"
9418
9419	if test $found = "no" ; then
9420		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9421			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9422		fi
9423
9424		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9425			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9426		fi
9427
9428		CFLAGS="$CFLAGS -Winit-self"
9429
9430		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9431printf %s "checking if $CC supports -Winit-self... " >&6; }
9432		cacheid=xorg_cv_cc_flag__Winit_self
9433		if eval test \${$cacheid+y}
9434then :
9435  printf %s "(cached) " >&6
9436else case e in #(
9437  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438/* end confdefs.h.  */
9439int i;
9440int
9441main (void)
9442{
9443
9444  ;
9445  return 0;
9446}
9447_ACEOF
9448if ac_fn_c_try_link "$LINENO"
9449then :
9450  eval $cacheid=yes
9451else case e in #(
9452  e) eval $cacheid=no ;;
9453esac
9454fi
9455rm -f core conftest.err conftest.$ac_objext conftest.beam \
9456    conftest$ac_exeext conftest.$ac_ext ;;
9457esac
9458fi
9459
9460
9461		CFLAGS="$xorg_testset_save_CFLAGS"
9462
9463		eval supported=\$$cacheid
9464		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9465printf "%s\n" "$supported" >&6; }
9466		if test "$supported" = "yes" ; then
9467			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9468			found="yes"
9469		fi
9470	fi
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486xorg_testset_save_CFLAGS="$CFLAGS"
9487
9488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9489	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9490	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9491printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9492if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9493then :
9494  printf %s "(cached) " >&6
9495else case e in #(
9496  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497/* end confdefs.h.  */
9498int i;
9499_ACEOF
9500if ac_fn_c_try_compile "$LINENO"
9501then :
9502  xorg_cv_cc_flag_unknown_warning_option=yes
9503else case e in #(
9504  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9505esac
9506fi
9507rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9508esac
9509fi
9510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9511printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9512	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9513	CFLAGS="$xorg_testset_save_CFLAGS"
9514fi
9515
9516if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9517	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9518		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9519	fi
9520	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9521	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9522printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9523if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9524then :
9525  printf %s "(cached) " >&6
9526else case e in #(
9527  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9528/* end confdefs.h.  */
9529int i;
9530_ACEOF
9531if ac_fn_c_try_compile "$LINENO"
9532then :
9533  xorg_cv_cc_flag_unused_command_line_argument=yes
9534else case e in #(
9535  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9536esac
9537fi
9538rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9539esac
9540fi
9541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9542printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9543	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9544	CFLAGS="$xorg_testset_save_CFLAGS"
9545fi
9546
9547found="no"
9548
9549	if test $found = "no" ; then
9550		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9551			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9552		fi
9553
9554		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9555			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9556		fi
9557
9558		CFLAGS="$CFLAGS -Wmain"
9559
9560		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9561printf %s "checking if $CC supports -Wmain... " >&6; }
9562		cacheid=xorg_cv_cc_flag__Wmain
9563		if eval test \${$cacheid+y}
9564then :
9565  printf %s "(cached) " >&6
9566else case e in #(
9567  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9568/* end confdefs.h.  */
9569int i;
9570int
9571main (void)
9572{
9573
9574  ;
9575  return 0;
9576}
9577_ACEOF
9578if ac_fn_c_try_link "$LINENO"
9579then :
9580  eval $cacheid=yes
9581else case e in #(
9582  e) eval $cacheid=no ;;
9583esac
9584fi
9585rm -f core conftest.err conftest.$ac_objext conftest.beam \
9586    conftest$ac_exeext conftest.$ac_ext ;;
9587esac
9588fi
9589
9590
9591		CFLAGS="$xorg_testset_save_CFLAGS"
9592
9593		eval supported=\$$cacheid
9594		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9595printf "%s\n" "$supported" >&6; }
9596		if test "$supported" = "yes" ; then
9597			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9598			found="yes"
9599		fi
9600	fi
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616xorg_testset_save_CFLAGS="$CFLAGS"
9617
9618if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9619	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9620	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9621printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9622if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9623then :
9624  printf %s "(cached) " >&6
9625else case e in #(
9626  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627/* end confdefs.h.  */
9628int i;
9629_ACEOF
9630if ac_fn_c_try_compile "$LINENO"
9631then :
9632  xorg_cv_cc_flag_unknown_warning_option=yes
9633else case e in #(
9634  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9635esac
9636fi
9637rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9638esac
9639fi
9640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9641printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9642	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9643	CFLAGS="$xorg_testset_save_CFLAGS"
9644fi
9645
9646if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9647	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9648		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9649	fi
9650	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9651	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9652printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9653if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9654then :
9655  printf %s "(cached) " >&6
9656else case e in #(
9657  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9658/* end confdefs.h.  */
9659int i;
9660_ACEOF
9661if ac_fn_c_try_compile "$LINENO"
9662then :
9663  xorg_cv_cc_flag_unused_command_line_argument=yes
9664else case e in #(
9665  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9666esac
9667fi
9668rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9669esac
9670fi
9671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9672printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9673	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9674	CFLAGS="$xorg_testset_save_CFLAGS"
9675fi
9676
9677found="no"
9678
9679	if test $found = "no" ; then
9680		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9681			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9682		fi
9683
9684		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9685			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9686		fi
9687
9688		CFLAGS="$CFLAGS -Wmissing-braces"
9689
9690		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9691printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9692		cacheid=xorg_cv_cc_flag__Wmissing_braces
9693		if eval test \${$cacheid+y}
9694then :
9695  printf %s "(cached) " >&6
9696else case e in #(
9697  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698/* end confdefs.h.  */
9699int i;
9700int
9701main (void)
9702{
9703
9704  ;
9705  return 0;
9706}
9707_ACEOF
9708if ac_fn_c_try_link "$LINENO"
9709then :
9710  eval $cacheid=yes
9711else case e in #(
9712  e) eval $cacheid=no ;;
9713esac
9714fi
9715rm -f core conftest.err conftest.$ac_objext conftest.beam \
9716    conftest$ac_exeext conftest.$ac_ext ;;
9717esac
9718fi
9719
9720
9721		CFLAGS="$xorg_testset_save_CFLAGS"
9722
9723		eval supported=\$$cacheid
9724		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9725printf "%s\n" "$supported" >&6; }
9726		if test "$supported" = "yes" ; then
9727			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9728			found="yes"
9729		fi
9730	fi
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746xorg_testset_save_CFLAGS="$CFLAGS"
9747
9748if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9749	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9750	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9751printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9752if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9753then :
9754  printf %s "(cached) " >&6
9755else case e in #(
9756  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9757/* end confdefs.h.  */
9758int i;
9759_ACEOF
9760if ac_fn_c_try_compile "$LINENO"
9761then :
9762  xorg_cv_cc_flag_unknown_warning_option=yes
9763else case e in #(
9764  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9765esac
9766fi
9767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9768esac
9769fi
9770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9771printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9772	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9773	CFLAGS="$xorg_testset_save_CFLAGS"
9774fi
9775
9776if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9777	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9778		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9779	fi
9780	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9781	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9782printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9783if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9784then :
9785  printf %s "(cached) " >&6
9786else case e in #(
9787  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9788/* end confdefs.h.  */
9789int i;
9790_ACEOF
9791if ac_fn_c_try_compile "$LINENO"
9792then :
9793  xorg_cv_cc_flag_unused_command_line_argument=yes
9794else case e in #(
9795  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9796esac
9797fi
9798rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9799esac
9800fi
9801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9802printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9803	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9804	CFLAGS="$xorg_testset_save_CFLAGS"
9805fi
9806
9807found="no"
9808
9809	if test $found = "no" ; then
9810		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9811			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9812		fi
9813
9814		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9815			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9816		fi
9817
9818		CFLAGS="$CFLAGS -Wsequence-point"
9819
9820		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9821printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9822		cacheid=xorg_cv_cc_flag__Wsequence_point
9823		if eval test \${$cacheid+y}
9824then :
9825  printf %s "(cached) " >&6
9826else case e in #(
9827  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9828/* end confdefs.h.  */
9829int i;
9830int
9831main (void)
9832{
9833
9834  ;
9835  return 0;
9836}
9837_ACEOF
9838if ac_fn_c_try_link "$LINENO"
9839then :
9840  eval $cacheid=yes
9841else case e in #(
9842  e) eval $cacheid=no ;;
9843esac
9844fi
9845rm -f core conftest.err conftest.$ac_objext conftest.beam \
9846    conftest$ac_exeext conftest.$ac_ext ;;
9847esac
9848fi
9849
9850
9851		CFLAGS="$xorg_testset_save_CFLAGS"
9852
9853		eval supported=\$$cacheid
9854		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9855printf "%s\n" "$supported" >&6; }
9856		if test "$supported" = "yes" ; then
9857			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9858			found="yes"
9859		fi
9860	fi
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876xorg_testset_save_CFLAGS="$CFLAGS"
9877
9878if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9879	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9880	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9881printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9882if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9883then :
9884  printf %s "(cached) " >&6
9885else case e in #(
9886  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9887/* end confdefs.h.  */
9888int i;
9889_ACEOF
9890if ac_fn_c_try_compile "$LINENO"
9891then :
9892  xorg_cv_cc_flag_unknown_warning_option=yes
9893else case e in #(
9894  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9895esac
9896fi
9897rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9898esac
9899fi
9900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9901printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9902	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9903	CFLAGS="$xorg_testset_save_CFLAGS"
9904fi
9905
9906if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9907	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9908		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9909	fi
9910	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9911	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9912printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9913if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9914then :
9915  printf %s "(cached) " >&6
9916else case e in #(
9917  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9918/* end confdefs.h.  */
9919int i;
9920_ACEOF
9921if ac_fn_c_try_compile "$LINENO"
9922then :
9923  xorg_cv_cc_flag_unused_command_line_argument=yes
9924else case e in #(
9925  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9926esac
9927fi
9928rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9929esac
9930fi
9931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9932printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9933	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9934	CFLAGS="$xorg_testset_save_CFLAGS"
9935fi
9936
9937found="no"
9938
9939	if test $found = "no" ; then
9940		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9941			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9942		fi
9943
9944		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9945			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9946		fi
9947
9948		CFLAGS="$CFLAGS -Wreturn-type"
9949
9950		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9951printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9952		cacheid=xorg_cv_cc_flag__Wreturn_type
9953		if eval test \${$cacheid+y}
9954then :
9955  printf %s "(cached) " >&6
9956else case e in #(
9957  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9958/* end confdefs.h.  */
9959int i;
9960int
9961main (void)
9962{
9963
9964  ;
9965  return 0;
9966}
9967_ACEOF
9968if ac_fn_c_try_link "$LINENO"
9969then :
9970  eval $cacheid=yes
9971else case e in #(
9972  e) eval $cacheid=no ;;
9973esac
9974fi
9975rm -f core conftest.err conftest.$ac_objext conftest.beam \
9976    conftest$ac_exeext conftest.$ac_ext ;;
9977esac
9978fi
9979
9980
9981		CFLAGS="$xorg_testset_save_CFLAGS"
9982
9983		eval supported=\$$cacheid
9984		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9985printf "%s\n" "$supported" >&6; }
9986		if test "$supported" = "yes" ; then
9987			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9988			found="yes"
9989		fi
9990	fi
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006xorg_testset_save_CFLAGS="$CFLAGS"
10007
10008if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10009	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10010	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10011printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10012if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10013then :
10014  printf %s "(cached) " >&6
10015else case e in #(
10016  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10017/* end confdefs.h.  */
10018int i;
10019_ACEOF
10020if ac_fn_c_try_compile "$LINENO"
10021then :
10022  xorg_cv_cc_flag_unknown_warning_option=yes
10023else case e in #(
10024  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10025esac
10026fi
10027rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10028esac
10029fi
10030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10031printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10032	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10033	CFLAGS="$xorg_testset_save_CFLAGS"
10034fi
10035
10036if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10037	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10038		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10039	fi
10040	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10041	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10042printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10043if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10044then :
10045  printf %s "(cached) " >&6
10046else case e in #(
10047  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048/* end confdefs.h.  */
10049int i;
10050_ACEOF
10051if ac_fn_c_try_compile "$LINENO"
10052then :
10053  xorg_cv_cc_flag_unused_command_line_argument=yes
10054else case e in #(
10055  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10056esac
10057fi
10058rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10059esac
10060fi
10061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10062printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10063	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10064	CFLAGS="$xorg_testset_save_CFLAGS"
10065fi
10066
10067found="no"
10068
10069	if test $found = "no" ; then
10070		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10071			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10072		fi
10073
10074		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10075			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10076		fi
10077
10078		CFLAGS="$CFLAGS -Wtrigraphs"
10079
10080		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10081printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10082		cacheid=xorg_cv_cc_flag__Wtrigraphs
10083		if eval test \${$cacheid+y}
10084then :
10085  printf %s "(cached) " >&6
10086else case e in #(
10087  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10088/* end confdefs.h.  */
10089int i;
10090int
10091main (void)
10092{
10093
10094  ;
10095  return 0;
10096}
10097_ACEOF
10098if ac_fn_c_try_link "$LINENO"
10099then :
10100  eval $cacheid=yes
10101else case e in #(
10102  e) eval $cacheid=no ;;
10103esac
10104fi
10105rm -f core conftest.err conftest.$ac_objext conftest.beam \
10106    conftest$ac_exeext conftest.$ac_ext ;;
10107esac
10108fi
10109
10110
10111		CFLAGS="$xorg_testset_save_CFLAGS"
10112
10113		eval supported=\$$cacheid
10114		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10115printf "%s\n" "$supported" >&6; }
10116		if test "$supported" = "yes" ; then
10117			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10118			found="yes"
10119		fi
10120	fi
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136xorg_testset_save_CFLAGS="$CFLAGS"
10137
10138if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10139	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10140	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10141printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10142if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10143then :
10144  printf %s "(cached) " >&6
10145else case e in #(
10146  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10147/* end confdefs.h.  */
10148int i;
10149_ACEOF
10150if ac_fn_c_try_compile "$LINENO"
10151then :
10152  xorg_cv_cc_flag_unknown_warning_option=yes
10153else case e in #(
10154  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10155esac
10156fi
10157rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10158esac
10159fi
10160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10161printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10162	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10163	CFLAGS="$xorg_testset_save_CFLAGS"
10164fi
10165
10166if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10167	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10168		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10169	fi
10170	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10171	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10172printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10173if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10174then :
10175  printf %s "(cached) " >&6
10176else case e in #(
10177  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10178/* end confdefs.h.  */
10179int i;
10180_ACEOF
10181if ac_fn_c_try_compile "$LINENO"
10182then :
10183  xorg_cv_cc_flag_unused_command_line_argument=yes
10184else case e in #(
10185  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10186esac
10187fi
10188rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10189esac
10190fi
10191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10192printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10193	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10194	CFLAGS="$xorg_testset_save_CFLAGS"
10195fi
10196
10197found="no"
10198
10199	if test $found = "no" ; then
10200		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10201			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10202		fi
10203
10204		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10205			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10206		fi
10207
10208		CFLAGS="$CFLAGS -Warray-bounds"
10209
10210		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10211printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10212		cacheid=xorg_cv_cc_flag__Warray_bounds
10213		if eval test \${$cacheid+y}
10214then :
10215  printf %s "(cached) " >&6
10216else case e in #(
10217  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218/* end confdefs.h.  */
10219int i;
10220int
10221main (void)
10222{
10223
10224  ;
10225  return 0;
10226}
10227_ACEOF
10228if ac_fn_c_try_link "$LINENO"
10229then :
10230  eval $cacheid=yes
10231else case e in #(
10232  e) eval $cacheid=no ;;
10233esac
10234fi
10235rm -f core conftest.err conftest.$ac_objext conftest.beam \
10236    conftest$ac_exeext conftest.$ac_ext ;;
10237esac
10238fi
10239
10240
10241		CFLAGS="$xorg_testset_save_CFLAGS"
10242
10243		eval supported=\$$cacheid
10244		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10245printf "%s\n" "$supported" >&6; }
10246		if test "$supported" = "yes" ; then
10247			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10248			found="yes"
10249		fi
10250	fi
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266xorg_testset_save_CFLAGS="$CFLAGS"
10267
10268if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10269	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10270	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10271printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10272if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10273then :
10274  printf %s "(cached) " >&6
10275else case e in #(
10276  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10277/* end confdefs.h.  */
10278int i;
10279_ACEOF
10280if ac_fn_c_try_compile "$LINENO"
10281then :
10282  xorg_cv_cc_flag_unknown_warning_option=yes
10283else case e in #(
10284  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10285esac
10286fi
10287rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10288esac
10289fi
10290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10291printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10292	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10293	CFLAGS="$xorg_testset_save_CFLAGS"
10294fi
10295
10296if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10297	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10298		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10299	fi
10300	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10301	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10302printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10303if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10304then :
10305  printf %s "(cached) " >&6
10306else case e in #(
10307  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308/* end confdefs.h.  */
10309int i;
10310_ACEOF
10311if ac_fn_c_try_compile "$LINENO"
10312then :
10313  xorg_cv_cc_flag_unused_command_line_argument=yes
10314else case e in #(
10315  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10316esac
10317fi
10318rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10319esac
10320fi
10321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10322printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10323	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10324	CFLAGS="$xorg_testset_save_CFLAGS"
10325fi
10326
10327found="no"
10328
10329	if test $found = "no" ; then
10330		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10331			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10332		fi
10333
10334		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10335			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10336		fi
10337
10338		CFLAGS="$CFLAGS -Wwrite-strings"
10339
10340		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10341printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10342		cacheid=xorg_cv_cc_flag__Wwrite_strings
10343		if eval test \${$cacheid+y}
10344then :
10345  printf %s "(cached) " >&6
10346else case e in #(
10347  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348/* end confdefs.h.  */
10349int i;
10350int
10351main (void)
10352{
10353
10354  ;
10355  return 0;
10356}
10357_ACEOF
10358if ac_fn_c_try_link "$LINENO"
10359then :
10360  eval $cacheid=yes
10361else case e in #(
10362  e) eval $cacheid=no ;;
10363esac
10364fi
10365rm -f core conftest.err conftest.$ac_objext conftest.beam \
10366    conftest$ac_exeext conftest.$ac_ext ;;
10367esac
10368fi
10369
10370
10371		CFLAGS="$xorg_testset_save_CFLAGS"
10372
10373		eval supported=\$$cacheid
10374		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10375printf "%s\n" "$supported" >&6; }
10376		if test "$supported" = "yes" ; then
10377			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10378			found="yes"
10379		fi
10380	fi
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396xorg_testset_save_CFLAGS="$CFLAGS"
10397
10398if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10399	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10400	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10401printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10402if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10403then :
10404  printf %s "(cached) " >&6
10405else case e in #(
10406  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10407/* end confdefs.h.  */
10408int i;
10409_ACEOF
10410if ac_fn_c_try_compile "$LINENO"
10411then :
10412  xorg_cv_cc_flag_unknown_warning_option=yes
10413else case e in #(
10414  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10415esac
10416fi
10417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10418esac
10419fi
10420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10421printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10422	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10423	CFLAGS="$xorg_testset_save_CFLAGS"
10424fi
10425
10426if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10427	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10428		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10429	fi
10430	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10431	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10432printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10433if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10434then :
10435  printf %s "(cached) " >&6
10436else case e in #(
10437  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10438/* end confdefs.h.  */
10439int i;
10440_ACEOF
10441if ac_fn_c_try_compile "$LINENO"
10442then :
10443  xorg_cv_cc_flag_unused_command_line_argument=yes
10444else case e in #(
10445  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10446esac
10447fi
10448rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10449esac
10450fi
10451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10452printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10453	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10454	CFLAGS="$xorg_testset_save_CFLAGS"
10455fi
10456
10457found="no"
10458
10459	if test $found = "no" ; then
10460		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10461			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10462		fi
10463
10464		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10465			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10466		fi
10467
10468		CFLAGS="$CFLAGS -Waddress"
10469
10470		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10471printf %s "checking if $CC supports -Waddress... " >&6; }
10472		cacheid=xorg_cv_cc_flag__Waddress
10473		if eval test \${$cacheid+y}
10474then :
10475  printf %s "(cached) " >&6
10476else case e in #(
10477  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10478/* end confdefs.h.  */
10479int i;
10480int
10481main (void)
10482{
10483
10484  ;
10485  return 0;
10486}
10487_ACEOF
10488if ac_fn_c_try_link "$LINENO"
10489then :
10490  eval $cacheid=yes
10491else case e in #(
10492  e) eval $cacheid=no ;;
10493esac
10494fi
10495rm -f core conftest.err conftest.$ac_objext conftest.beam \
10496    conftest$ac_exeext conftest.$ac_ext ;;
10497esac
10498fi
10499
10500
10501		CFLAGS="$xorg_testset_save_CFLAGS"
10502
10503		eval supported=\$$cacheid
10504		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10505printf "%s\n" "$supported" >&6; }
10506		if test "$supported" = "yes" ; then
10507			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10508			found="yes"
10509		fi
10510	fi
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526xorg_testset_save_CFLAGS="$CFLAGS"
10527
10528if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10529	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10530	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10531printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10532if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10533then :
10534  printf %s "(cached) " >&6
10535else case e in #(
10536  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10537/* end confdefs.h.  */
10538int i;
10539_ACEOF
10540if ac_fn_c_try_compile "$LINENO"
10541then :
10542  xorg_cv_cc_flag_unknown_warning_option=yes
10543else case e in #(
10544  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10545esac
10546fi
10547rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10548esac
10549fi
10550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10551printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10552	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10553	CFLAGS="$xorg_testset_save_CFLAGS"
10554fi
10555
10556if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10557	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10558		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10559	fi
10560	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10561	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10562printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10563if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10564then :
10565  printf %s "(cached) " >&6
10566else case e in #(
10567  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10568/* end confdefs.h.  */
10569int i;
10570_ACEOF
10571if ac_fn_c_try_compile "$LINENO"
10572then :
10573  xorg_cv_cc_flag_unused_command_line_argument=yes
10574else case e in #(
10575  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10576esac
10577fi
10578rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10579esac
10580fi
10581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10582printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10583	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10584	CFLAGS="$xorg_testset_save_CFLAGS"
10585fi
10586
10587found="no"
10588
10589	if test $found = "no" ; then
10590		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10591			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10592		fi
10593
10594		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10595			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10596		fi
10597
10598		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10599
10600		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10601printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10602		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10603		if eval test \${$cacheid+y}
10604then :
10605  printf %s "(cached) " >&6
10606else case e in #(
10607  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10608/* end confdefs.h.  */
10609int i;
10610int
10611main (void)
10612{
10613
10614  ;
10615  return 0;
10616}
10617_ACEOF
10618if ac_fn_c_try_link "$LINENO"
10619then :
10620  eval $cacheid=yes
10621else case e in #(
10622  e) eval $cacheid=no ;;
10623esac
10624fi
10625rm -f core conftest.err conftest.$ac_objext conftest.beam \
10626    conftest$ac_exeext conftest.$ac_ext ;;
10627esac
10628fi
10629
10630
10631		CFLAGS="$xorg_testset_save_CFLAGS"
10632
10633		eval supported=\$$cacheid
10634		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10635printf "%s\n" "$supported" >&6; }
10636		if test "$supported" = "yes" ; then
10637			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10638			found="yes"
10639		fi
10640	fi
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656xorg_testset_save_CFLAGS="$CFLAGS"
10657
10658if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10659	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10660	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10661printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10662if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10663then :
10664  printf %s "(cached) " >&6
10665else case e in #(
10666  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10667/* end confdefs.h.  */
10668int i;
10669_ACEOF
10670if ac_fn_c_try_compile "$LINENO"
10671then :
10672  xorg_cv_cc_flag_unknown_warning_option=yes
10673else case e in #(
10674  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10675esac
10676fi
10677rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10678esac
10679fi
10680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10681printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10682	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10683	CFLAGS="$xorg_testset_save_CFLAGS"
10684fi
10685
10686if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10687	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10688		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10689	fi
10690	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10691	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10692printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10693if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10694then :
10695  printf %s "(cached) " >&6
10696else case e in #(
10697  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10698/* end confdefs.h.  */
10699int i;
10700_ACEOF
10701if ac_fn_c_try_compile "$LINENO"
10702then :
10703  xorg_cv_cc_flag_unused_command_line_argument=yes
10704else case e in #(
10705  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10706esac
10707fi
10708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10709esac
10710fi
10711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10712printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10713	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10714	CFLAGS="$xorg_testset_save_CFLAGS"
10715fi
10716
10717found="no"
10718
10719	if test $found = "no" ; then
10720		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10721			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10722		fi
10723
10724		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10725			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10726		fi
10727
10728		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10729
10730		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10731printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10732		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10733		if eval test \${$cacheid+y}
10734then :
10735  printf %s "(cached) " >&6
10736else case e in #(
10737  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10738/* end confdefs.h.  */
10739int i;
10740int
10741main (void)
10742{
10743
10744  ;
10745  return 0;
10746}
10747_ACEOF
10748if ac_fn_c_try_link "$LINENO"
10749then :
10750  eval $cacheid=yes
10751else case e in #(
10752  e) eval $cacheid=no ;;
10753esac
10754fi
10755rm -f core conftest.err conftest.$ac_objext conftest.beam \
10756    conftest$ac_exeext conftest.$ac_ext ;;
10757esac
10758fi
10759
10760
10761		CFLAGS="$xorg_testset_save_CFLAGS"
10762
10763		eval supported=\$$cacheid
10764		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10765printf "%s\n" "$supported" >&6; }
10766		if test "$supported" = "yes" ; then
10767			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10768			found="yes"
10769		fi
10770	fi
10771
10772
10773fi
10774
10775
10776
10777
10778
10779
10780
10781		CWARNFLAGS="$BASE_CFLAGS"
10782		if  test "x$GCC" = xyes ; then
10783		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10784		fi
10785
10786
10787
10788
10789
10790
10791
10792
10793# Check whether --enable-strict-compilation was given.
10794if test ${enable_strict_compilation+y}
10795then :
10796  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10797else case e in #(
10798  e) STRICT_COMPILE=no ;;
10799esac
10800fi
10801
10802
10803
10804
10805
10806
10807STRICT_CFLAGS=""
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821xorg_testset_save_CFLAGS="$CFLAGS"
10822
10823if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10824	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10825	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10826printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10827if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10828then :
10829  printf %s "(cached) " >&6
10830else case e in #(
10831  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10832/* end confdefs.h.  */
10833int i;
10834_ACEOF
10835if ac_fn_c_try_compile "$LINENO"
10836then :
10837  xorg_cv_cc_flag_unknown_warning_option=yes
10838else case e in #(
10839  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10840esac
10841fi
10842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10843esac
10844fi
10845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10846printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10847	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10848	CFLAGS="$xorg_testset_save_CFLAGS"
10849fi
10850
10851if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10852	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10853		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10854	fi
10855	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10856	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10857printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10858if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10859then :
10860  printf %s "(cached) " >&6
10861else case e in #(
10862  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10863/* end confdefs.h.  */
10864int i;
10865_ACEOF
10866if ac_fn_c_try_compile "$LINENO"
10867then :
10868  xorg_cv_cc_flag_unused_command_line_argument=yes
10869else case e in #(
10870  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10871esac
10872fi
10873rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10874esac
10875fi
10876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10877printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10878	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10879	CFLAGS="$xorg_testset_save_CFLAGS"
10880fi
10881
10882found="no"
10883
10884	if test $found = "no" ; then
10885		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10886			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10887		fi
10888
10889		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10890			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10891		fi
10892
10893		CFLAGS="$CFLAGS -pedantic"
10894
10895		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10896printf %s "checking if $CC supports -pedantic... " >&6; }
10897		cacheid=xorg_cv_cc_flag__pedantic
10898		if eval test \${$cacheid+y}
10899then :
10900  printf %s "(cached) " >&6
10901else case e in #(
10902  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10903/* end confdefs.h.  */
10904int i;
10905int
10906main (void)
10907{
10908
10909  ;
10910  return 0;
10911}
10912_ACEOF
10913if ac_fn_c_try_link "$LINENO"
10914then :
10915  eval $cacheid=yes
10916else case e in #(
10917  e) eval $cacheid=no ;;
10918esac
10919fi
10920rm -f core conftest.err conftest.$ac_objext conftest.beam \
10921    conftest$ac_exeext conftest.$ac_ext ;;
10922esac
10923fi
10924
10925
10926		CFLAGS="$xorg_testset_save_CFLAGS"
10927
10928		eval supported=\$$cacheid
10929		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10930printf "%s\n" "$supported" >&6; }
10931		if test "$supported" = "yes" ; then
10932			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10933			found="yes"
10934		fi
10935	fi
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951xorg_testset_save_CFLAGS="$CFLAGS"
10952
10953if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10954	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10955	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10956printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10957if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10958then :
10959  printf %s "(cached) " >&6
10960else case e in #(
10961  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10962/* end confdefs.h.  */
10963int i;
10964_ACEOF
10965if ac_fn_c_try_compile "$LINENO"
10966then :
10967  xorg_cv_cc_flag_unknown_warning_option=yes
10968else case e in #(
10969  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10970esac
10971fi
10972rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10973esac
10974fi
10975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10976printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10977	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10978	CFLAGS="$xorg_testset_save_CFLAGS"
10979fi
10980
10981if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10982	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10983		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10984	fi
10985	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10986	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10987printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10988if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10989then :
10990  printf %s "(cached) " >&6
10991else case e in #(
10992  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10993/* end confdefs.h.  */
10994int i;
10995_ACEOF
10996if ac_fn_c_try_compile "$LINENO"
10997then :
10998  xorg_cv_cc_flag_unused_command_line_argument=yes
10999else case e in #(
11000  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11001esac
11002fi
11003rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11004esac
11005fi
11006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11007printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11008	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11009	CFLAGS="$xorg_testset_save_CFLAGS"
11010fi
11011
11012found="no"
11013
11014	if test $found = "no" ; then
11015		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11016			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11017		fi
11018
11019		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11020			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11021		fi
11022
11023		CFLAGS="$CFLAGS -Werror"
11024
11025		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11026printf %s "checking if $CC supports -Werror... " >&6; }
11027		cacheid=xorg_cv_cc_flag__Werror
11028		if eval test \${$cacheid+y}
11029then :
11030  printf %s "(cached) " >&6
11031else case e in #(
11032  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11033/* end confdefs.h.  */
11034int i;
11035int
11036main (void)
11037{
11038
11039  ;
11040  return 0;
11041}
11042_ACEOF
11043if ac_fn_c_try_link "$LINENO"
11044then :
11045  eval $cacheid=yes
11046else case e in #(
11047  e) eval $cacheid=no ;;
11048esac
11049fi
11050rm -f core conftest.err conftest.$ac_objext conftest.beam \
11051    conftest$ac_exeext conftest.$ac_ext ;;
11052esac
11053fi
11054
11055
11056		CFLAGS="$xorg_testset_save_CFLAGS"
11057
11058		eval supported=\$$cacheid
11059		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11060printf "%s\n" "$supported" >&6; }
11061		if test "$supported" = "yes" ; then
11062			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11063			found="yes"
11064		fi
11065	fi
11066
11067	if test $found = "no" ; then
11068		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11069			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11070		fi
11071
11072		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11073			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11074		fi
11075
11076		CFLAGS="$CFLAGS -errwarn"
11077
11078		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11079printf %s "checking if $CC supports -errwarn... " >&6; }
11080		cacheid=xorg_cv_cc_flag__errwarn
11081		if eval test \${$cacheid+y}
11082then :
11083  printf %s "(cached) " >&6
11084else case e in #(
11085  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11086/* end confdefs.h.  */
11087int i;
11088int
11089main (void)
11090{
11091
11092  ;
11093  return 0;
11094}
11095_ACEOF
11096if ac_fn_c_try_link "$LINENO"
11097then :
11098  eval $cacheid=yes
11099else case e in #(
11100  e) eval $cacheid=no ;;
11101esac
11102fi
11103rm -f core conftest.err conftest.$ac_objext conftest.beam \
11104    conftest$ac_exeext conftest.$ac_ext ;;
11105esac
11106fi
11107
11108
11109		CFLAGS="$xorg_testset_save_CFLAGS"
11110
11111		eval supported=\$$cacheid
11112		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11113printf "%s\n" "$supported" >&6; }
11114		if test "$supported" = "yes" ; then
11115			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11116			found="yes"
11117		fi
11118	fi
11119
11120
11121
11122# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11123# activate it with -Werror, so we add it here explicitly.
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137xorg_testset_save_CFLAGS="$CFLAGS"
11138
11139if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11140	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11141	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11142printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11143if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11144then :
11145  printf %s "(cached) " >&6
11146else case e in #(
11147  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11148/* end confdefs.h.  */
11149int i;
11150_ACEOF
11151if ac_fn_c_try_compile "$LINENO"
11152then :
11153  xorg_cv_cc_flag_unknown_warning_option=yes
11154else case e in #(
11155  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11156esac
11157fi
11158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11159esac
11160fi
11161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11162printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11163	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11164	CFLAGS="$xorg_testset_save_CFLAGS"
11165fi
11166
11167if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11168	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11169		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11170	fi
11171	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11172	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11173printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11174if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11175then :
11176  printf %s "(cached) " >&6
11177else case e in #(
11178  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11179/* end confdefs.h.  */
11180int i;
11181_ACEOF
11182if ac_fn_c_try_compile "$LINENO"
11183then :
11184  xorg_cv_cc_flag_unused_command_line_argument=yes
11185else case e in #(
11186  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11187esac
11188fi
11189rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11190esac
11191fi
11192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11193printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11194	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11195	CFLAGS="$xorg_testset_save_CFLAGS"
11196fi
11197
11198found="no"
11199
11200	if test $found = "no" ; then
11201		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11202			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11203		fi
11204
11205		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11206			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11207		fi
11208
11209		CFLAGS="$CFLAGS -Werror=attributes"
11210
11211		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11212printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11213		cacheid=xorg_cv_cc_flag__Werror_attributes
11214		if eval test \${$cacheid+y}
11215then :
11216  printf %s "(cached) " >&6
11217else case e in #(
11218  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11219/* end confdefs.h.  */
11220int i;
11221int
11222main (void)
11223{
11224
11225  ;
11226  return 0;
11227}
11228_ACEOF
11229if ac_fn_c_try_link "$LINENO"
11230then :
11231  eval $cacheid=yes
11232else case e in #(
11233  e) eval $cacheid=no ;;
11234esac
11235fi
11236rm -f core conftest.err conftest.$ac_objext conftest.beam \
11237    conftest$ac_exeext conftest.$ac_ext ;;
11238esac
11239fi
11240
11241
11242		CFLAGS="$xorg_testset_save_CFLAGS"
11243
11244		eval supported=\$$cacheid
11245		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11246printf "%s\n" "$supported" >&6; }
11247		if test "$supported" = "yes" ; then
11248			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11249			found="yes"
11250		fi
11251	fi
11252
11253
11254
11255if test "x$STRICT_COMPILE" = "xyes"; then
11256    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11257    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11258fi
11259
11260
11261
11262
11263
11264
11265
11266
11267cat >>confdefs.h <<_ACEOF
11268#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11269_ACEOF
11270
11271	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11272	if test "x$PVM" = "x"; then
11273		PVM="0"
11274	fi
11275
11276printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11277
11278	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11279	if test "x$PVP" = "x"; then
11280		PVP="0"
11281	fi
11282
11283printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11284
11285
11286
11287CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11288mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11289|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11290touch \$(top_srcdir)/ChangeLog; \
11291echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11292
11293
11294
11295
11296macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11297INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11298mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11299|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11300touch \$(top_srcdir)/INSTALL; \
11301echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11302
11303
11304
11305
11306
11307
11308case $host_os in
11309    solaris*)
11310        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11311        # check for a man page file found in later versions that use
11312        # traditional section numbers instead
11313        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11314printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11315if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11316then :
11317  printf %s "(cached) " >&6
11318else case e in #(
11319  e) test "$cross_compiling" = yes &&
11320  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11321if test -r "/usr/share/man/man7/attributes.7"; then
11322  ac_cv_file__usr_share_man_man7_attributes_7=yes
11323else
11324  ac_cv_file__usr_share_man_man7_attributes_7=no
11325fi ;;
11326esac
11327fi
11328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11329printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11330if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11331then :
11332  SYSV_MAN_SECTIONS=false
11333else case e in #(
11334  e) SYSV_MAN_SECTIONS=true ;;
11335esac
11336fi
11337
11338        ;;
11339    *) SYSV_MAN_SECTIONS=false ;;
11340esac
11341
11342if test x$APP_MAN_SUFFIX = x    ; then
11343    APP_MAN_SUFFIX=1
11344fi
11345if test x$APP_MAN_DIR = x    ; then
11346    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11347fi
11348
11349if test x$LIB_MAN_SUFFIX = x    ; then
11350    LIB_MAN_SUFFIX=3
11351fi
11352if test x$LIB_MAN_DIR = x    ; then
11353    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11354fi
11355
11356if test x$FILE_MAN_SUFFIX = x    ; then
11357    case $SYSV_MAN_SECTIONS in
11358	true)				FILE_MAN_SUFFIX=4  ;;
11359	*)				FILE_MAN_SUFFIX=5  ;;
11360    esac
11361fi
11362if test x$FILE_MAN_DIR = x    ; then
11363    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11364fi
11365
11366if test x$MISC_MAN_SUFFIX = x    ; then
11367    case $SYSV_MAN_SECTIONS in
11368	true)				MISC_MAN_SUFFIX=5  ;;
11369	*)				MISC_MAN_SUFFIX=7  ;;
11370    esac
11371fi
11372if test x$MISC_MAN_DIR = x    ; then
11373    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11374fi
11375
11376if test x$DRIVER_MAN_SUFFIX = x    ; then
11377    case $SYSV_MAN_SECTIONS in
11378	true)				DRIVER_MAN_SUFFIX=7  ;;
11379	*)				DRIVER_MAN_SUFFIX=4  ;;
11380    esac
11381fi
11382if test x$DRIVER_MAN_DIR = x    ; then
11383    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11384fi
11385
11386if test x$ADMIN_MAN_SUFFIX = x    ; then
11387    case $SYSV_MAN_SECTIONS in
11388	true)				ADMIN_MAN_SUFFIX=1m ;;
11389	*)				ADMIN_MAN_SUFFIX=8  ;;
11390    esac
11391fi
11392if test x$ADMIN_MAN_DIR = x    ; then
11393    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11394fi
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410XORG_MAN_PAGE="X Version 11"
11411
11412MAN_SUBSTS="\
11413	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11414	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11415	-e 's|__xservername__|Xorg|g' \
11416	-e 's|__xconfigfile__|xorg.conf|g' \
11417	-e 's|__projectroot__|\$(prefix)|g' \
11418	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11419	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11420	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11421	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11422	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11423	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11424	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11425
11426
11427
11428# Check whether --enable-silent-rules was given.
11429if test ${enable_silent_rules+y}
11430then :
11431  enableval=$enable_silent_rules;
11432fi
11433
11434case $enable_silent_rules in # (((
11435  yes) AM_DEFAULT_VERBOSITY=0;;
11436   no) AM_DEFAULT_VERBOSITY=1;;
11437    *) AM_DEFAULT_VERBOSITY=0;;
11438esac
11439am_make=${MAKE-make}
11440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11441printf %s "checking whether $am_make supports nested variables... " >&6; }
11442if test ${am_cv_make_support_nested_variables+y}
11443then :
11444  printf %s "(cached) " >&6
11445else case e in #(
11446  e) if printf "%s\n" 'TRUE=$(BAR$(V))
11447BAR0=false
11448BAR1=true
11449V=1
11450am__doit:
11451	@$(TRUE)
11452.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11453  am_cv_make_support_nested_variables=yes
11454else
11455  am_cv_make_support_nested_variables=no
11456fi ;;
11457esac
11458fi
11459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11460printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11461if test $am_cv_make_support_nested_variables = yes; then
11462    AM_V='$(V)'
11463  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11464else
11465  AM_V=$AM_DEFAULT_VERBOSITY
11466  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11467fi
11468AM_BACKSLASH='\'
11469
11470
11471
11472
11473# Optional dependencies
11474
11475# Check whether --with-xkb was given.
11476if test ${with_xkb+y}
11477then :
11478  withval=$with_xkb; use_xkb="$withval"
11479else case e in #(
11480  e) use_xkb="yes" ;;
11481esac
11482fi
11483
11484if test x$use_xkb != xno ; then
11485        XKBMODULE="xkbfile"
11486
11487printf "%s\n" "#define XKB 1" >>confdefs.h
11488
11489fi
11490
11491# Obtain compiler/linker options from dependencies
11492
11493pkg_failed=no
11494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EDITRES" >&5
11495printf %s "checking for EDITRES... " >&6; }
11496
11497if test -n "$EDITRES_CFLAGS"; then
11498    pkg_cv_EDITRES_CFLAGS="$EDITRES_CFLAGS"
11499 elif test -n "$PKG_CONFIG"; then
11500    if test -n "$PKG_CONFIG" && \
11501    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 \${XKBMODULE}\""; } >&5
11502  ($PKG_CONFIG --exists --print-errors "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 ${XKBMODULE}") 2>&5
11503  ac_status=$?
11504  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11505  test $ac_status = 0; }; then
11506  pkg_cv_EDITRES_CFLAGS=`$PKG_CONFIG --cflags "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 ${XKBMODULE}" 2>/dev/null`
11507		      test "x$?" != "x0" && pkg_failed=yes
11508else
11509  pkg_failed=yes
11510fi
11511 else
11512    pkg_failed=untried
11513fi
11514if test -n "$EDITRES_LIBS"; then
11515    pkg_cv_EDITRES_LIBS="$EDITRES_LIBS"
11516 elif test -n "$PKG_CONFIG"; then
11517    if test -n "$PKG_CONFIG" && \
11518    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 \${XKBMODULE}\""; } >&5
11519  ($PKG_CONFIG --exists --print-errors "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 ${XKBMODULE}") 2>&5
11520  ac_status=$?
11521  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11522  test $ac_status = 0; }; then
11523  pkg_cv_EDITRES_LIBS=`$PKG_CONFIG --libs "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 ${XKBMODULE}" 2>/dev/null`
11524		      test "x$?" != "x0" && pkg_failed=yes
11525else
11526  pkg_failed=yes
11527fi
11528 else
11529    pkg_failed=untried
11530fi
11531
11532
11533
11534if test $pkg_failed = yes; then
11535   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536printf "%s\n" "no" >&6; }
11537
11538if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11539        _pkg_short_errors_supported=yes
11540else
11541        _pkg_short_errors_supported=no
11542fi
11543        if test $_pkg_short_errors_supported = yes; then
11544	        EDITRES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 ${XKBMODULE}" 2>&1`
11545        else
11546	        EDITRES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 ${XKBMODULE}" 2>&1`
11547        fi
11548	# Put the nasty error message in config.log where it belongs
11549	echo "$EDITRES_PKG_ERRORS" >&5
11550
11551	as_fn_error $? "Package requirements (xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 ${XKBMODULE}) were not met:
11552
11553$EDITRES_PKG_ERRORS
11554
11555Consider adjusting the PKG_CONFIG_PATH environment variable if you
11556installed software in a non-standard prefix.
11557
11558Alternatively, you may set the environment variables EDITRES_CFLAGS
11559and EDITRES_LIBS to avoid the need to call pkg-config.
11560See the pkg-config man page for more details." "$LINENO" 5
11561elif test $pkg_failed = untried; then
11562     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11563printf "%s\n" "no" >&6; }
11564	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11565printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11566as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11567is in your PATH or set the PKG_CONFIG environment variable to the full
11568path to pkg-config.
11569
11570Alternatively, you may set the environment variables EDITRES_CFLAGS
11571and EDITRES_LIBS to avoid the need to call pkg-config.
11572See the pkg-config man page for more details.
11573
11574To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11575See 'config.log' for more details" "$LINENO" 5; }
11576else
11577	EDITRES_CFLAGS=$pkg_cv_EDITRES_CFLAGS
11578	EDITRES_LIBS=$pkg_cv_EDITRES_LIBS
11579        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11580printf "%s\n" "yes" >&6; }
11581
11582fi
11583
11584
11585pkg_failed=no
11586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
11587printf %s "checking for APPDEFS... " >&6; }
11588
11589if test -n "$APPDEFS_CFLAGS"; then
11590    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
11591 elif test -n "$PKG_CONFIG"; then
11592    if test -n "$PKG_CONFIG" && \
11593    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11594  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11595  ac_status=$?
11596  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11597  test $ac_status = 0; }; then
11598  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
11599		      test "x$?" != "x0" && pkg_failed=yes
11600else
11601  pkg_failed=yes
11602fi
11603 else
11604    pkg_failed=untried
11605fi
11606if test -n "$APPDEFS_LIBS"; then
11607    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
11608 elif test -n "$PKG_CONFIG"; then
11609    if test -n "$PKG_CONFIG" && \
11610    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11611  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11612  ac_status=$?
11613  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11614  test $ac_status = 0; }; then
11615  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
11616		      test "x$?" != "x0" && pkg_failed=yes
11617else
11618  pkg_failed=yes
11619fi
11620 else
11621    pkg_failed=untried
11622fi
11623
11624
11625
11626if test $pkg_failed = yes; then
11627   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11628printf "%s\n" "no" >&6; }
11629
11630if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11631        _pkg_short_errors_supported=yes
11632else
11633        _pkg_short_errors_supported=no
11634fi
11635        if test $_pkg_short_errors_supported = yes; then
11636	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
11637        else
11638	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
11639        fi
11640	# Put the nasty error message in config.log where it belongs
11641	echo "$APPDEFS_PKG_ERRORS" >&5
11642
11643	as_fn_error $? "Package requirements (xt) were not met:
11644
11645$APPDEFS_PKG_ERRORS
11646
11647Consider adjusting the PKG_CONFIG_PATH environment variable if you
11648installed software in a non-standard prefix.
11649
11650Alternatively, you may set the environment variables APPDEFS_CFLAGS
11651and APPDEFS_LIBS to avoid the need to call pkg-config.
11652See the pkg-config man page for more details." "$LINENO" 5
11653elif test $pkg_failed = untried; then
11654     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655printf "%s\n" "no" >&6; }
11656	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11657printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11658as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11659is in your PATH or set the PKG_CONFIG environment variable to the full
11660path to pkg-config.
11661
11662Alternatively, you may set the environment variables APPDEFS_CFLAGS
11663and APPDEFS_LIBS to avoid the need to call pkg-config.
11664See the pkg-config man page for more details.
11665
11666To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11667See 'config.log' for more details" "$LINENO" 5; }
11668else
11669	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
11670	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
11671        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11672printf "%s\n" "yes" >&6; }
11673
11674fi
11675xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11676
11677# Check whether --with-appdefaultdir was given.
11678if test ${with_appdefaultdir+y}
11679then :
11680  withval=$with_appdefaultdir; appdefaultdir="$withval"
11681else case e in #(
11682  e) appdefaultdir="${xt_appdefaultdir}" ;;
11683esac
11684fi
11685
11686
11687
11688ac_config_files="$ac_config_files Makefile man/Makefile"
11689
11690cat >confcache <<\_ACEOF
11691# This file is a shell script that caches the results of configure
11692# tests run on this system so they can be shared between configure
11693# scripts and configure runs, see configure's option --config-cache.
11694# It is not useful on other systems.  If it contains results you don't
11695# want to keep, you may remove or edit it.
11696#
11697# config.status only pays attention to the cache file if you give it
11698# the --recheck option to rerun configure.
11699#
11700# 'ac_cv_env_foo' variables (set or unset) will be overridden when
11701# loading this file, other *unset* 'ac_cv_foo' will be assigned the
11702# following values.
11703
11704_ACEOF
11705
11706# The following way of writing the cache mishandles newlines in values,
11707# but we know of no workaround that is simple, portable, and efficient.
11708# So, we kill variables containing newlines.
11709# Ultrix sh set writes to stderr and can't be redirected directly,
11710# and sets the high bit in the cache file unless we assign to the vars.
11711(
11712  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11713    eval ac_val=\$$ac_var
11714    case $ac_val in #(
11715    *${as_nl}*)
11716      case $ac_var in #(
11717      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11718printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11719      esac
11720      case $ac_var in #(
11721      _ | IFS | as_nl) ;; #(
11722      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11723      *) { eval $ac_var=; unset $ac_var;} ;;
11724      esac ;;
11725    esac
11726  done
11727
11728  (set) 2>&1 |
11729    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11730    *${as_nl}ac_space=\ *)
11731      # 'set' does not quote correctly, so add quotes: double-quote
11732      # substitution turns \\\\ into \\, and sed turns \\ into \.
11733      sed -n \
11734	"s/'/'\\\\''/g;
11735	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11736      ;; #(
11737    *)
11738      # 'set' quotes correctly as required by POSIX, so do not add quotes.
11739      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11740      ;;
11741    esac |
11742    sort
11743) |
11744  sed '
11745     /^ac_cv_env_/b end
11746     t clear
11747     :clear
11748     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11749     t end
11750     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11751     :end' >>confcache
11752if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11753  if test -w "$cache_file"; then
11754    if test "x$cache_file" != "x/dev/null"; then
11755      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11756printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11757      if test ! -f "$cache_file" || test -h "$cache_file"; then
11758	cat confcache >"$cache_file"
11759      else
11760        case $cache_file in #(
11761        */* | ?:*)
11762	  mv -f confcache "$cache_file"$$ &&
11763	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11764        *)
11765	  mv -f confcache "$cache_file" ;;
11766	esac
11767      fi
11768    fi
11769  else
11770    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11771printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11772  fi
11773fi
11774rm -f confcache
11775
11776test "x$prefix" = xNONE && prefix=$ac_default_prefix
11777# Let make expand exec_prefix.
11778test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11779
11780DEFS=-DHAVE_CONFIG_H
11781
11782ac_libobjs=
11783ac_ltlibobjs=
11784U=
11785for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11786  # 1. Remove the extension, and $U if already installed.
11787  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11788  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11789  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11790  #    will be set to the directory where LIBOBJS objects are built.
11791  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11792  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11793done
11794LIBOBJS=$ac_libobjs
11795
11796LTLIBOBJS=$ac_ltlibobjs
11797
11798
11799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11800printf %s "checking that generated files are newer than configure... " >&6; }
11801   if test -n "$am_sleep_pid"; then
11802     # Hide warnings about reused PIDs.
11803     wait $am_sleep_pid 2>/dev/null
11804   fi
11805   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11806printf "%s\n" "done" >&6; }
11807 if test -n "$EXEEXT"; then
11808  am__EXEEXT_TRUE=
11809  am__EXEEXT_FALSE='#'
11810else
11811  am__EXEEXT_TRUE='#'
11812  am__EXEEXT_FALSE=
11813fi
11814
11815if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11816  as_fn_error $? "conditional \"AMDEP\" was never defined.
11817Usually this means the macro was only invoked conditionally." "$LINENO" 5
11818fi
11819if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11820  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11821Usually this means the macro was only invoked conditionally." "$LINENO" 5
11822fi
11823
11824: "${CONFIG_STATUS=./config.status}"
11825ac_write_fail=0
11826ac_clean_files_save=$ac_clean_files
11827ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11829printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11830as_write_fail=0
11831cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11832#! $SHELL
11833# Generated by $as_me.
11834# Run this file to recreate the current configuration.
11835# Compiler output produced by configure, useful for debugging
11836# configure, is in config.log if it exists.
11837
11838debug=false
11839ac_cs_recheck=false
11840ac_cs_silent=false
11841
11842SHELL=\${CONFIG_SHELL-$SHELL}
11843export SHELL
11844_ASEOF
11845cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11846## -------------------- ##
11847## M4sh Initialization. ##
11848## -------------------- ##
11849
11850# Be more Bourne compatible
11851DUALCASE=1; export DUALCASE # for MKS sh
11852if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11853then :
11854  emulate sh
11855  NULLCMD=:
11856  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11857  # is contrary to our usage.  Disable this feature.
11858  alias -g '${1+"$@"}'='"$@"'
11859  setopt NO_GLOB_SUBST
11860else case e in #(
11861  e) case `(set -o) 2>/dev/null` in #(
11862  *posix*) :
11863    set -o posix ;; #(
11864  *) :
11865     ;;
11866esac ;;
11867esac
11868fi
11869
11870
11871
11872# Reset variables that may have inherited troublesome values from
11873# the environment.
11874
11875# IFS needs to be set, to space, tab, and newline, in precisely that order.
11876# (If _AS_PATH_WALK were called with IFS unset, it would have the
11877# side effect of setting IFS to empty, thus disabling word splitting.)
11878# Quoting is to prevent editors from complaining about space-tab.
11879as_nl='
11880'
11881export as_nl
11882IFS=" ""	$as_nl"
11883
11884PS1='$ '
11885PS2='> '
11886PS4='+ '
11887
11888# Ensure predictable behavior from utilities with locale-dependent output.
11889LC_ALL=C
11890export LC_ALL
11891LANGUAGE=C
11892export LANGUAGE
11893
11894# We cannot yet rely on "unset" to work, but we need these variables
11895# to be unset--not just set to an empty or harmless value--now, to
11896# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11897# also avoids known problems related to "unset" and subshell syntax
11898# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11899for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11900do eval test \${$as_var+y} \
11901  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11902done
11903
11904# Ensure that fds 0, 1, and 2 are open.
11905if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11906if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11907if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
11908
11909# The user is always right.
11910if ${PATH_SEPARATOR+false} :; then
11911  PATH_SEPARATOR=:
11912  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11913    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11914      PATH_SEPARATOR=';'
11915  }
11916fi
11917
11918
11919# Find who we are.  Look in the path if we contain no directory separator.
11920as_myself=
11921case $0 in #((
11922  *[\\/]* ) as_myself=$0 ;;
11923  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11924for as_dir in $PATH
11925do
11926  IFS=$as_save_IFS
11927  case $as_dir in #(((
11928    '') as_dir=./ ;;
11929    */) ;;
11930    *) as_dir=$as_dir/ ;;
11931  esac
11932    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11933  done
11934IFS=$as_save_IFS
11935
11936     ;;
11937esac
11938# We did not find ourselves, most probably we were run as 'sh COMMAND'
11939# in which case we are not to be found in the path.
11940if test "x$as_myself" = x; then
11941  as_myself=$0
11942fi
11943if test ! -f "$as_myself"; then
11944  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11945  exit 1
11946fi
11947
11948
11949
11950# as_fn_error STATUS ERROR [LINENO LOG_FD]
11951# ----------------------------------------
11952# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11953# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11954# script with STATUS, using 1 if that was 0.
11955as_fn_error ()
11956{
11957  as_status=$1; test $as_status -eq 0 && as_status=1
11958  if test "$4"; then
11959    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11960    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11961  fi
11962  printf "%s\n" "$as_me: error: $2" >&2
11963  as_fn_exit $as_status
11964} # as_fn_error
11965
11966
11967# as_fn_set_status STATUS
11968# -----------------------
11969# Set $? to STATUS, without forking.
11970as_fn_set_status ()
11971{
11972  return $1
11973} # as_fn_set_status
11974
11975# as_fn_exit STATUS
11976# -----------------
11977# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11978as_fn_exit ()
11979{
11980  set +e
11981  as_fn_set_status $1
11982  exit $1
11983} # as_fn_exit
11984
11985# as_fn_unset VAR
11986# ---------------
11987# Portably unset VAR.
11988as_fn_unset ()
11989{
11990  { eval $1=; unset $1;}
11991}
11992as_unset=as_fn_unset
11993
11994# as_fn_append VAR VALUE
11995# ----------------------
11996# Append the text in VALUE to the end of the definition contained in VAR. Take
11997# advantage of any shell optimizations that allow amortized linear growth over
11998# repeated appends, instead of the typical quadratic growth present in naive
11999# implementations.
12000if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12001then :
12002  eval 'as_fn_append ()
12003  {
12004    eval $1+=\$2
12005  }'
12006else case e in #(
12007  e) as_fn_append ()
12008  {
12009    eval $1=\$$1\$2
12010  } ;;
12011esac
12012fi # as_fn_append
12013
12014# as_fn_arith ARG...
12015# ------------------
12016# Perform arithmetic evaluation on the ARGs, and store the result in the
12017# global $as_val. Take advantage of shells that can avoid forks. The arguments
12018# must be portable across $(()) and expr.
12019if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12020then :
12021  eval 'as_fn_arith ()
12022  {
12023    as_val=$(( $* ))
12024  }'
12025else case e in #(
12026  e) as_fn_arith ()
12027  {
12028    as_val=`expr "$@" || test $? -eq 1`
12029  } ;;
12030esac
12031fi # as_fn_arith
12032
12033
12034if expr a : '\(a\)' >/dev/null 2>&1 &&
12035   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12036  as_expr=expr
12037else
12038  as_expr=false
12039fi
12040
12041if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12042  as_basename=basename
12043else
12044  as_basename=false
12045fi
12046
12047if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12048  as_dirname=dirname
12049else
12050  as_dirname=false
12051fi
12052
12053as_me=`$as_basename -- "$0" ||
12054$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12055	 X"$0" : 'X\(//\)$' \| \
12056	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12057printf "%s\n" X/"$0" |
12058    sed '/^.*\/\([^/][^/]*\)\/*$/{
12059	    s//\1/
12060	    q
12061	  }
12062	  /^X\/\(\/\/\)$/{
12063	    s//\1/
12064	    q
12065	  }
12066	  /^X\/\(\/\).*/{
12067	    s//\1/
12068	    q
12069	  }
12070	  s/.*/./; q'`
12071
12072# Avoid depending upon Character Ranges.
12073as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12074as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12075as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12076as_cr_digits='0123456789'
12077as_cr_alnum=$as_cr_Letters$as_cr_digits
12078
12079
12080# Determine whether it's possible to make 'echo' print without a newline.
12081# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12082# for compatibility with existing Makefiles.
12083ECHO_C= ECHO_N= ECHO_T=
12084case `echo -n x` in #(((((
12085-n*)
12086  case `echo 'xy\c'` in
12087  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12088  xy)  ECHO_C='\c';;
12089  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12090       ECHO_T='	';;
12091  esac;;
12092*)
12093  ECHO_N='-n';;
12094esac
12095
12096# For backward compatibility with old third-party macros, we provide
12097# the shell variables $as_echo and $as_echo_n.  New code should use
12098# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12099as_echo='printf %s\n'
12100as_echo_n='printf %s'
12101
12102rm -f conf$$ conf$$.exe conf$$.file
12103if test -d conf$$.dir; then
12104  rm -f conf$$.dir/conf$$.file
12105else
12106  rm -f conf$$.dir
12107  mkdir conf$$.dir 2>/dev/null
12108fi
12109if (echo >conf$$.file) 2>/dev/null; then
12110  if ln -s conf$$.file conf$$ 2>/dev/null; then
12111    as_ln_s='ln -s'
12112    # ... but there are two gotchas:
12113    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12114    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12115    # In both cases, we have to default to 'cp -pR'.
12116    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12117      as_ln_s='cp -pR'
12118  elif ln conf$$.file conf$$ 2>/dev/null; then
12119    as_ln_s=ln
12120  else
12121    as_ln_s='cp -pR'
12122  fi
12123else
12124  as_ln_s='cp -pR'
12125fi
12126rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12127rmdir conf$$.dir 2>/dev/null
12128
12129
12130# as_fn_mkdir_p
12131# -------------
12132# Create "$as_dir" as a directory, including parents if necessary.
12133as_fn_mkdir_p ()
12134{
12135
12136  case $as_dir in #(
12137  -*) as_dir=./$as_dir;;
12138  esac
12139  test -d "$as_dir" || eval $as_mkdir_p || {
12140    as_dirs=
12141    while :; do
12142      case $as_dir in #(
12143      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12144      *) as_qdir=$as_dir;;
12145      esac
12146      as_dirs="'$as_qdir' $as_dirs"
12147      as_dir=`$as_dirname -- "$as_dir" ||
12148$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12149	 X"$as_dir" : 'X\(//\)[^/]' \| \
12150	 X"$as_dir" : 'X\(//\)$' \| \
12151	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12152printf "%s\n" X"$as_dir" |
12153    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12154	    s//\1/
12155	    q
12156	  }
12157	  /^X\(\/\/\)[^/].*/{
12158	    s//\1/
12159	    q
12160	  }
12161	  /^X\(\/\/\)$/{
12162	    s//\1/
12163	    q
12164	  }
12165	  /^X\(\/\).*/{
12166	    s//\1/
12167	    q
12168	  }
12169	  s/.*/./; q'`
12170      test -d "$as_dir" && break
12171    done
12172    test -z "$as_dirs" || eval "mkdir $as_dirs"
12173  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12174
12175
12176} # as_fn_mkdir_p
12177if mkdir -p . 2>/dev/null; then
12178  as_mkdir_p='mkdir -p "$as_dir"'
12179else
12180  test -d ./-p && rmdir ./-p
12181  as_mkdir_p=false
12182fi
12183
12184
12185# as_fn_executable_p FILE
12186# -----------------------
12187# Test if FILE is an executable regular file.
12188as_fn_executable_p ()
12189{
12190  test -f "$1" && test -x "$1"
12191} # as_fn_executable_p
12192as_test_x='test -x'
12193as_executable_p=as_fn_executable_p
12194
12195# Sed expression to map a string onto a valid CPP name.
12196as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12197as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12198
12199# Sed expression to map a string onto a valid variable name.
12200as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12201as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12202
12203
12204exec 6>&1
12205## ----------------------------------- ##
12206## Main body of $CONFIG_STATUS script. ##
12207## ----------------------------------- ##
12208_ASEOF
12209test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12210
12211cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12212# Save the log message, to keep $0 and so on meaningful, and to
12213# report actual input values of CONFIG_FILES etc. instead of their
12214# values after options handling.
12215ac_log="
12216This file was extended by editres $as_me 1.0.9, which was
12217generated by GNU Autoconf 2.72.  Invocation command line was
12218
12219  CONFIG_FILES    = $CONFIG_FILES
12220  CONFIG_HEADERS  = $CONFIG_HEADERS
12221  CONFIG_LINKS    = $CONFIG_LINKS
12222  CONFIG_COMMANDS = $CONFIG_COMMANDS
12223  $ $0 $@
12224
12225on `(hostname || uname -n) 2>/dev/null | sed 1q`
12226"
12227
12228_ACEOF
12229
12230case $ac_config_files in *"
12231"*) set x $ac_config_files; shift; ac_config_files=$*;;
12232esac
12233
12234case $ac_config_headers in *"
12235"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12236esac
12237
12238
12239cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12240# Files that config.status was made for.
12241config_files="$ac_config_files"
12242config_headers="$ac_config_headers"
12243config_commands="$ac_config_commands"
12244
12245_ACEOF
12246
12247cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12248ac_cs_usage="\
12249'$as_me' instantiates files and other configuration actions
12250from templates according to the current configuration.  Unless the files
12251and actions are specified as TAGs, all are instantiated by default.
12252
12253Usage: $0 [OPTION]... [TAG]...
12254
12255  -h, --help       print this help, then exit
12256  -V, --version    print version number and configuration settings, then exit
12257      --config     print configuration, then exit
12258  -q, --quiet, --silent
12259                   do not print progress messages
12260  -d, --debug      don't remove temporary files
12261      --recheck    update $as_me by reconfiguring in the same conditions
12262      --file=FILE[:TEMPLATE]
12263                   instantiate the configuration file FILE
12264      --header=FILE[:TEMPLATE]
12265                   instantiate the configuration header FILE
12266
12267Configuration files:
12268$config_files
12269
12270Configuration headers:
12271$config_headers
12272
12273Configuration commands:
12274$config_commands
12275
12276Report bugs to <https://gitlab.freedesktop.org/xorg/app/editres/-/issues>."
12277
12278_ACEOF
12279ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12280ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12282ac_cs_config='$ac_cs_config_escaped'
12283ac_cs_version="\\
12284editres config.status 1.0.9
12285configured by $0, generated by GNU Autoconf 2.72,
12286  with options \\"\$ac_cs_config\\"
12287
12288Copyright (C) 2023 Free Software Foundation, Inc.
12289This config.status script is free software; the Free Software Foundation
12290gives unlimited permission to copy, distribute and modify it."
12291
12292ac_pwd='$ac_pwd'
12293srcdir='$srcdir'
12294INSTALL='$INSTALL'
12295MKDIR_P='$MKDIR_P'
12296AWK='$AWK'
12297test -n "\$AWK" || AWK=awk
12298_ACEOF
12299
12300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12301# The default lists apply if the user does not specify any file.
12302ac_need_defaults=:
12303while test $# != 0
12304do
12305  case $1 in
12306  --*=?*)
12307    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12308    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12309    ac_shift=:
12310    ;;
12311  --*=)
12312    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12313    ac_optarg=
12314    ac_shift=:
12315    ;;
12316  *)
12317    ac_option=$1
12318    ac_optarg=$2
12319    ac_shift=shift
12320    ;;
12321  esac
12322
12323  case $ac_option in
12324  # Handling of the options.
12325  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12326    ac_cs_recheck=: ;;
12327  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12328    printf "%s\n" "$ac_cs_version"; exit ;;
12329  --config | --confi | --conf | --con | --co | --c )
12330    printf "%s\n" "$ac_cs_config"; exit ;;
12331  --debug | --debu | --deb | --de | --d | -d )
12332    debug=: ;;
12333  --file | --fil | --fi | --f )
12334    $ac_shift
12335    case $ac_optarg in
12336    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12337    '') as_fn_error $? "missing file argument" ;;
12338    esac
12339    as_fn_append CONFIG_FILES " '$ac_optarg'"
12340    ac_need_defaults=false;;
12341  --header | --heade | --head | --hea )
12342    $ac_shift
12343    case $ac_optarg in
12344    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12345    esac
12346    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12347    ac_need_defaults=false;;
12348  --he | --h)
12349    # Conflict between --help and --header
12350    as_fn_error $? "ambiguous option: '$1'
12351Try '$0 --help' for more information.";;
12352  --help | --hel | -h )
12353    printf "%s\n" "$ac_cs_usage"; exit ;;
12354  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12355  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12356    ac_cs_silent=: ;;
12357
12358  # This is an error.
12359  -*) as_fn_error $? "unrecognized option: '$1'
12360Try '$0 --help' for more information." ;;
12361
12362  *) as_fn_append ac_config_targets " $1"
12363     ac_need_defaults=false ;;
12364
12365  esac
12366  shift
12367done
12368
12369ac_configure_extra_args=
12370
12371if $ac_cs_silent; then
12372  exec 6>/dev/null
12373  ac_configure_extra_args="$ac_configure_extra_args --silent"
12374fi
12375
12376_ACEOF
12377cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12378if \$ac_cs_recheck; then
12379  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12380  shift
12381  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12382  CONFIG_SHELL='$SHELL'
12383  export CONFIG_SHELL
12384  exec "\$@"
12385fi
12386
12387_ACEOF
12388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12389exec 5>>config.log
12390{
12391  echo
12392  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12393## Running $as_me. ##
12394_ASBOX
12395  printf "%s\n" "$ac_log"
12396} >&5
12397
12398_ACEOF
12399cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12400#
12401# INIT-COMMANDS
12402#
12403AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12404
12405_ACEOF
12406
12407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12408
12409# Handling of arguments.
12410for ac_config_target in $ac_config_targets
12411do
12412  case $ac_config_target in
12413    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12414    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12415    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12416    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12417
12418  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12419  esac
12420done
12421
12422
12423# If the user did not use the arguments to specify the items to instantiate,
12424# then the envvar interface is used.  Set only those that are not.
12425# We use the long form for the default assignment because of an extremely
12426# bizarre bug on SunOS 4.1.3.
12427if $ac_need_defaults; then
12428  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12429  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12430  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12431fi
12432
12433# Have a temporary directory for convenience.  Make it in the build tree
12434# simply because there is no reason against having it here, and in addition,
12435# creating and moving files from /tmp can sometimes cause problems.
12436# Hook for its removal unless debugging.
12437# Note that there is a small window in which the directory will not be cleaned:
12438# after its creation but before its name has been assigned to '$tmp'.
12439$debug ||
12440{
12441  tmp= ac_tmp=
12442  trap 'exit_status=$?
12443  : "${ac_tmp:=$tmp}"
12444  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12445' 0
12446  trap 'as_fn_exit 1' 1 2 13 15
12447}
12448# Create a (secure) tmp directory for tmp files.
12449
12450{
12451  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12452  test -d "$tmp"
12453}  ||
12454{
12455  tmp=./conf$$-$RANDOM
12456  (umask 077 && mkdir "$tmp")
12457} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12458ac_tmp=$tmp
12459
12460# Set up the scripts for CONFIG_FILES section.
12461# No need to generate them if there are no CONFIG_FILES.
12462# This happens for instance with './config.status config.h'.
12463if test -n "$CONFIG_FILES"; then
12464
12465
12466ac_cr=`echo X | tr X '\015'`
12467# On cygwin, bash can eat \r inside `` if the user requested igncr.
12468# But we know of no other shell where ac_cr would be empty at this
12469# point, so we can use a bashism as a fallback.
12470if test "x$ac_cr" = x; then
12471  eval ac_cr=\$\'\\r\'
12472fi
12473ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12474if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12475  ac_cs_awk_cr='\\r'
12476else
12477  ac_cs_awk_cr=$ac_cr
12478fi
12479
12480echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12481_ACEOF
12482
12483
12484{
12485  echo "cat >conf$$subs.awk <<_ACEOF" &&
12486  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12487  echo "_ACEOF"
12488} >conf$$subs.sh ||
12489  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12490ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12491ac_delim='%!_!# '
12492for ac_last_try in false false false false false :; do
12493  . ./conf$$subs.sh ||
12494    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12495
12496  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12497  if test $ac_delim_n = $ac_delim_num; then
12498    break
12499  elif $ac_last_try; then
12500    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12501  else
12502    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12503  fi
12504done
12505rm -f conf$$subs.sh
12506
12507cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12508cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12509_ACEOF
12510sed -n '
12511h
12512s/^/S["/; s/!.*/"]=/
12513p
12514g
12515s/^[^!]*!//
12516:repl
12517t repl
12518s/'"$ac_delim"'$//
12519t delim
12520:nl
12521h
12522s/\(.\{148\}\)..*/\1/
12523t more1
12524s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12525p
12526n
12527b repl
12528:more1
12529s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12530p
12531g
12532s/.\{148\}//
12533t nl
12534:delim
12535h
12536s/\(.\{148\}\)..*/\1/
12537t more2
12538s/["\\]/\\&/g; s/^/"/; s/$/"/
12539p
12540b
12541:more2
12542s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12543p
12544g
12545s/.\{148\}//
12546t delim
12547' <conf$$subs.awk | sed '
12548/^[^""]/{
12549  N
12550  s/\n//
12551}
12552' >>$CONFIG_STATUS || ac_write_fail=1
12553rm -f conf$$subs.awk
12554cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12555_ACAWK
12556cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12557  for (key in S) S_is_set[key] = 1
12558  FS = ""
12559
12560}
12561{
12562  line = $ 0
12563  nfields = split(line, field, "@")
12564  substed = 0
12565  len = length(field[1])
12566  for (i = 2; i < nfields; i++) {
12567    key = field[i]
12568    keylen = length(key)
12569    if (S_is_set[key]) {
12570      value = S[key]
12571      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12572      len += length(value) + length(field[++i])
12573      substed = 1
12574    } else
12575      len += 1 + keylen
12576  }
12577
12578  print line
12579}
12580
12581_ACAWK
12582_ACEOF
12583cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12584if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12585  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12586else
12587  cat
12588fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12589  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12590_ACEOF
12591
12592# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12593# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12594# trailing colons and then remove the whole line if VPATH becomes empty
12595# (actually we leave an empty line to preserve line numbers).
12596if test "x$srcdir" = x.; then
12597  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12598h
12599s///
12600s/^/:/
12601s/[	 ]*$/:/
12602s/:\$(srcdir):/:/g
12603s/:\${srcdir}:/:/g
12604s/:@srcdir@:/:/g
12605s/^:*//
12606s/:*$//
12607x
12608s/\(=[	 ]*\).*/\1/
12609G
12610s/\n//
12611s/^[^=]*=[	 ]*$//
12612}'
12613fi
12614
12615cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12616fi # test -n "$CONFIG_FILES"
12617
12618# Set up the scripts for CONFIG_HEADERS section.
12619# No need to generate them if there are no CONFIG_HEADERS.
12620# This happens for instance with './config.status Makefile'.
12621if test -n "$CONFIG_HEADERS"; then
12622cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12623BEGIN {
12624_ACEOF
12625
12626# Transform confdefs.h into an awk script 'defines.awk', embedded as
12627# here-document in config.status, that substitutes the proper values into
12628# config.h.in to produce config.h.
12629
12630# Create a delimiter string that does not exist in confdefs.h, to ease
12631# handling of long lines.
12632ac_delim='%!_!# '
12633for ac_last_try in false false :; do
12634  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12635  if test -z "$ac_tt"; then
12636    break
12637  elif $ac_last_try; then
12638    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12639  else
12640    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12641  fi
12642done
12643
12644# For the awk script, D is an array of macro values keyed by name,
12645# likewise P contains macro parameters if any.  Preserve backslash
12646# newline sequences.
12647
12648ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12649sed -n '
12650s/.\{148\}/&'"$ac_delim"'/g
12651t rset
12652:rset
12653s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12654t def
12655d
12656:def
12657s/\\$//
12658t bsnl
12659s/["\\]/\\&/g
12660s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12661D["\1"]=" \3"/p
12662s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12663d
12664:bsnl
12665s/["\\]/\\&/g
12666s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12667D["\1"]=" \3\\\\\\n"\\/p
12668t cont
12669s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12670t cont
12671d
12672:cont
12673n
12674s/.\{148\}/&'"$ac_delim"'/g
12675t clear
12676:clear
12677s/\\$//
12678t bsnlc
12679s/["\\]/\\&/g; s/^/"/; s/$/"/p
12680d
12681:bsnlc
12682s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12683b cont
12684' <confdefs.h | sed '
12685s/'"$ac_delim"'/"\\\
12686"/g' >>$CONFIG_STATUS || ac_write_fail=1
12687
12688cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12689  for (key in D) D_is_set[key] = 1
12690  FS = ""
12691}
12692/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12693  line = \$ 0
12694  split(line, arg, " ")
12695  if (arg[1] == "#") {
12696    defundef = arg[2]
12697    mac1 = arg[3]
12698  } else {
12699    defundef = substr(arg[1], 2)
12700    mac1 = arg[2]
12701  }
12702  split(mac1, mac2, "(") #)
12703  macro = mac2[1]
12704  prefix = substr(line, 1, index(line, defundef) - 1)
12705  if (D_is_set[macro]) {
12706    # Preserve the white space surrounding the "#".
12707    print prefix "define", macro P[macro] D[macro]
12708    next
12709  } else {
12710    # Replace #undef with comments.  This is necessary, for example,
12711    # in the case of _POSIX_SOURCE, which is predefined and required
12712    # on some systems where configure will not decide to define it.
12713    if (defundef == "undef") {
12714      print "/*", prefix defundef, macro, "*/"
12715      next
12716    }
12717  }
12718}
12719{ print }
12720_ACAWK
12721_ACEOF
12722cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12723  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12724fi # test -n "$CONFIG_HEADERS"
12725
12726
12727eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12728shift
12729for ac_tag
12730do
12731  case $ac_tag in
12732  :[FHLC]) ac_mode=$ac_tag; continue;;
12733  esac
12734  case $ac_mode$ac_tag in
12735  :[FHL]*:*);;
12736  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
12737  :[FH]-) ac_tag=-:-;;
12738  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12739  esac
12740  ac_save_IFS=$IFS
12741  IFS=:
12742  set x $ac_tag
12743  IFS=$ac_save_IFS
12744  shift
12745  ac_file=$1
12746  shift
12747
12748  case $ac_mode in
12749  :L) ac_source=$1;;
12750  :[FH])
12751    ac_file_inputs=
12752    for ac_f
12753    do
12754      case $ac_f in
12755      -) ac_f="$ac_tmp/stdin";;
12756      *) # Look for the file first in the build tree, then in the source tree
12757	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12758	 # because $ac_f cannot contain ':'.
12759	 test -f "$ac_f" ||
12760	   case $ac_f in
12761	   [\\/$]*) false;;
12762	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12763	   esac ||
12764	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
12765      esac
12766      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12767      as_fn_append ac_file_inputs " '$ac_f'"
12768    done
12769
12770    # Let's still pretend it is 'configure' which instantiates (i.e., don't
12771    # use $as_me), people would be surprised to read:
12772    #    /* config.h.  Generated by config.status.  */
12773    configure_input='Generated from '`
12774	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12775	`' by configure.'
12776    if test x"$ac_file" != x-; then
12777      configure_input="$ac_file.  $configure_input"
12778      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12779printf "%s\n" "$as_me: creating $ac_file" >&6;}
12780    fi
12781    # Neutralize special characters interpreted by sed in replacement strings.
12782    case $configure_input in #(
12783    *\&* | *\|* | *\\* )
12784       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12785       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12786    *) ac_sed_conf_input=$configure_input;;
12787    esac
12788
12789    case $ac_tag in
12790    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12791      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12792    esac
12793    ;;
12794  esac
12795
12796  ac_dir=`$as_dirname -- "$ac_file" ||
12797$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12798	 X"$ac_file" : 'X\(//\)[^/]' \| \
12799	 X"$ac_file" : 'X\(//\)$' \| \
12800	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12801printf "%s\n" X"$ac_file" |
12802    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12803	    s//\1/
12804	    q
12805	  }
12806	  /^X\(\/\/\)[^/].*/{
12807	    s//\1/
12808	    q
12809	  }
12810	  /^X\(\/\/\)$/{
12811	    s//\1/
12812	    q
12813	  }
12814	  /^X\(\/\).*/{
12815	    s//\1/
12816	    q
12817	  }
12818	  s/.*/./; q'`
12819  as_dir="$ac_dir"; as_fn_mkdir_p
12820  ac_builddir=.
12821
12822case "$ac_dir" in
12823.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12824*)
12825  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12826  # A ".." for each directory in $ac_dir_suffix.
12827  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12828  case $ac_top_builddir_sub in
12829  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12830  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12831  esac ;;
12832esac
12833ac_abs_top_builddir=$ac_pwd
12834ac_abs_builddir=$ac_pwd$ac_dir_suffix
12835# for backward compatibility:
12836ac_top_builddir=$ac_top_build_prefix
12837
12838case $srcdir in
12839  .)  # We are building in place.
12840    ac_srcdir=.
12841    ac_top_srcdir=$ac_top_builddir_sub
12842    ac_abs_top_srcdir=$ac_pwd ;;
12843  [\\/]* | ?:[\\/]* )  # Absolute name.
12844    ac_srcdir=$srcdir$ac_dir_suffix;
12845    ac_top_srcdir=$srcdir
12846    ac_abs_top_srcdir=$srcdir ;;
12847  *) # Relative name.
12848    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12849    ac_top_srcdir=$ac_top_build_prefix$srcdir
12850    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12851esac
12852ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12853
12854
12855  case $ac_mode in
12856  :F)
12857  #
12858  # CONFIG_FILE
12859  #
12860
12861  case $INSTALL in
12862  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12863  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12864  esac
12865  ac_MKDIR_P=$MKDIR_P
12866  case $MKDIR_P in
12867  [\\/$]* | ?:[\\/]* ) ;;
12868  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12869  esac
12870_ACEOF
12871
12872cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12873# If the template does not know about datarootdir, expand it.
12874# FIXME: This hack should be removed a few years after 2.60.
12875ac_datarootdir_hack=; ac_datarootdir_seen=
12876ac_sed_dataroot='
12877/datarootdir/ {
12878  p
12879  q
12880}
12881/@datadir@/p
12882/@docdir@/p
12883/@infodir@/p
12884/@localedir@/p
12885/@mandir@/p'
12886case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12887*datarootdir*) ac_datarootdir_seen=yes;;
12888*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12889  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12890printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12891_ACEOF
12892cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12893  ac_datarootdir_hack='
12894  s&@datadir@&$datadir&g
12895  s&@docdir@&$docdir&g
12896  s&@infodir@&$infodir&g
12897  s&@localedir@&$localedir&g
12898  s&@mandir@&$mandir&g
12899  s&\\\${datarootdir}&$datarootdir&g' ;;
12900esac
12901_ACEOF
12902
12903# Neutralize VPATH when '$srcdir' = '.'.
12904# Shell code in configure.ac might set extrasub.
12905# FIXME: do we really want to maintain this feature?
12906cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12907ac_sed_extra="$ac_vpsub
12908$extrasub
12909_ACEOF
12910cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12911:t
12912/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12913s|@configure_input@|$ac_sed_conf_input|;t t
12914s&@top_builddir@&$ac_top_builddir_sub&;t t
12915s&@top_build_prefix@&$ac_top_build_prefix&;t t
12916s&@srcdir@&$ac_srcdir&;t t
12917s&@abs_srcdir@&$ac_abs_srcdir&;t t
12918s&@top_srcdir@&$ac_top_srcdir&;t t
12919s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12920s&@builddir@&$ac_builddir&;t t
12921s&@abs_builddir@&$ac_abs_builddir&;t t
12922s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12923s&@INSTALL@&$ac_INSTALL&;t t
12924s&@MKDIR_P@&$ac_MKDIR_P&;t t
12925$ac_datarootdir_hack
12926"
12927eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12928  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12929
12930test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12931  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12932  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12933      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12934  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12935which seems to be undefined.  Please make sure it is defined" >&5
12936printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12937which seems to be undefined.  Please make sure it is defined" >&2;}
12938
12939  rm -f "$ac_tmp/stdin"
12940  case $ac_file in
12941  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12942  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12943  esac \
12944  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12945 ;;
12946  :H)
12947  #
12948  # CONFIG_HEADER
12949  #
12950  if test x"$ac_file" != x-; then
12951    {
12952      printf "%s\n" "/* $configure_input  */" >&1 \
12953      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12954    } >"$ac_tmp/config.h" \
12955      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12956    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12957      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12958printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12959    else
12960      rm -f "$ac_file"
12961      mv "$ac_tmp/config.h" "$ac_file" \
12962	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12963    fi
12964  else
12965    printf "%s\n" "/* $configure_input  */" >&1 \
12966      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12967      || as_fn_error $? "could not create -" "$LINENO" 5
12968  fi
12969# Compute "$ac_file"'s index in $config_headers.
12970_am_arg="$ac_file"
12971_am_stamp_count=1
12972for _am_header in $config_headers :; do
12973  case $_am_header in
12974    $_am_arg | $_am_arg:* )
12975      break ;;
12976    * )
12977      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12978  esac
12979done
12980echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12981$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12982	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12983	 X"$_am_arg" : 'X\(//\)$' \| \
12984	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12985printf "%s\n" X"$_am_arg" |
12986    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12987	    s//\1/
12988	    q
12989	  }
12990	  /^X\(\/\/\)[^/].*/{
12991	    s//\1/
12992	    q
12993	  }
12994	  /^X\(\/\/\)$/{
12995	    s//\1/
12996	    q
12997	  }
12998	  /^X\(\/\).*/{
12999	    s//\1/
13000	    q
13001	  }
13002	  s/.*/./; q'`/stamp-h$_am_stamp_count
13003 ;;
13004
13005  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13006printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13007 ;;
13008  esac
13009
13010
13011  case $ac_file$ac_mode in
13012    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13013  # Older Autoconf quotes --file arguments for eval, but not when files
13014  # are listed without --file.  Let's play safe and only enable the eval
13015  # if we detect the quoting.
13016  # TODO: see whether this extra hack can be removed once we start
13017  # requiring Autoconf 2.70 or later.
13018  case $CONFIG_FILES in #(
13019  *\'*) :
13020    eval set x "$CONFIG_FILES" ;; #(
13021  *) :
13022    set x $CONFIG_FILES ;; #(
13023  *) :
13024     ;;
13025esac
13026  shift
13027  # Used to flag and report bootstrapping failures.
13028  am_rc=0
13029  for am_mf
13030  do
13031    # Strip MF so we end up with the name of the file.
13032    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13033    # Check whether this is an Automake generated Makefile which includes
13034    # dependency-tracking related rules and includes.
13035    # Grep'ing the whole file directly is not great: AIX grep has a line
13036    # limit of 2048, but all sed's we know have understand at least 4000.
13037    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13038      || continue
13039    am_dirpart=`$as_dirname -- "$am_mf" ||
13040$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13041	 X"$am_mf" : 'X\(//\)[^/]' \| \
13042	 X"$am_mf" : 'X\(//\)$' \| \
13043	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13044printf "%s\n" X"$am_mf" |
13045    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13046	    s//\1/
13047	    q
13048	  }
13049	  /^X\(\/\/\)[^/].*/{
13050	    s//\1/
13051	    q
13052	  }
13053	  /^X\(\/\/\)$/{
13054	    s//\1/
13055	    q
13056	  }
13057	  /^X\(\/\).*/{
13058	    s//\1/
13059	    q
13060	  }
13061	  s/.*/./; q'`
13062    am_filepart=`$as_basename -- "$am_mf" ||
13063$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13064	 X"$am_mf" : 'X\(//\)$' \| \
13065	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13066printf "%s\n" X/"$am_mf" |
13067    sed '/^.*\/\([^/][^/]*\)\/*$/{
13068	    s//\1/
13069	    q
13070	  }
13071	  /^X\/\(\/\/\)$/{
13072	    s//\1/
13073	    q
13074	  }
13075	  /^X\/\(\/\).*/{
13076	    s//\1/
13077	    q
13078	  }
13079	  s/.*/./; q'`
13080    { echo "$as_me:$LINENO: cd "$am_dirpart" \
13081      && sed -e '/# am--include-marker/d' "$am_filepart" \
13082        | $MAKE -f - am--depfiles" >&5
13083   (cd "$am_dirpart" \
13084      && sed -e '/# am--include-marker/d' "$am_filepart" \
13085        | $MAKE -f - am--depfiles) >&5 2>&5
13086   ac_status=$?
13087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088   (exit $ac_status); } || am_rc=$?
13089  done
13090  if test $am_rc -ne 0; then
13091    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13092printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13093as_fn_error $? "Something went wrong bootstrapping makefile fragments
13094    for automatic dependency tracking.  If GNU make was not used, consider
13095    re-running the configure script with MAKE=\"gmake\" (or whatever is
13096    necessary).  You can also try re-running configure with the
13097    '--disable-dependency-tracking' option to at least be able to build
13098    the package (albeit without support for automatic dependency tracking).
13099See 'config.log' for more details" "$LINENO" 5; }
13100  fi
13101  { am_dirpart=; unset am_dirpart;}
13102  { am_filepart=; unset am_filepart;}
13103  { am_mf=; unset am_mf;}
13104  { am_rc=; unset am_rc;}
13105  rm -f conftest-deps.mk
13106}
13107 ;;
13108
13109  esac
13110done # for ac_tag
13111
13112
13113as_fn_exit 0
13114_ACEOF
13115ac_clean_files=$ac_clean_files_save
13116
13117test $ac_write_fail = 0 ||
13118  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13119
13120
13121# configure is writing to config.log, and then calls config.status.
13122# config.status does its own redirection, appending to config.log.
13123# Unfortunately, on DOS this fails, as config.log is still kept open
13124# by configure, so config.status won't be able to write to it; its
13125# output is simply discarded.  So we exec the FD to /dev/null,
13126# effectively closing config.log, so it can be properly (re)opened and
13127# appended to by config.status.  When coming back to configure, we
13128# need to make the FD available again.
13129if test "$no_create" != yes; then
13130  ac_cs_success=:
13131  ac_config_status_args=
13132  test "$silent" = yes &&
13133    ac_config_status_args="$ac_config_status_args --quiet"
13134  exec 5>/dev/null
13135  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13136  exec 5>>config.log
13137  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13138  # would make configure fail if this is the last instruction.
13139  $ac_cs_success || as_fn_exit 1
13140fi
13141if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13142  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13143printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13144fi
13145
13146
13147