1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for xcmsdb 1.0.7.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xcmsdb/-/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/xcmsdb/-/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='xcmsdb'
607PACKAGE_TARNAME='xcmsdb'
608PACKAGE_VERSION='1.0.7'
609PACKAGE_STRING='xcmsdb 1.0.7'
610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xcmsdb/-/issues'
611PACKAGE_URL=''
612
613ac_unique_file="Makefile.am"
614# Factoring default headers for most tests.
615ac_includes_default="\
616#include <stddef.h>
617#ifdef HAVE_STDIO_H
618# include <stdio.h>
619#endif
620#ifdef HAVE_STDLIB_H
621# include <stdlib.h>
622#endif
623#ifdef HAVE_STRING_H
624# include <string.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_STRINGS_H
633# include <strings.h>
634#endif
635#ifdef HAVE_SYS_TYPES_H
636# include <sys/types.h>
637#endif
638#ifdef HAVE_SYS_STAT_H
639# include <sys/stat.h>
640#endif
641#ifdef HAVE_UNISTD_H
642# include <unistd.h>
643#endif"
644
645ac_header_c_list=
646enable_year2038=no
647ac_subst_vars='am__EXEEXT_FALSE
648am__EXEEXT_TRUE
649LTLIBOBJS
650LIBOBJS
651XCMSDB_LIBS
652XCMSDB_CFLAGS
653MAN_SUBSTS
654XORG_MAN_PAGE
655ADMIN_MAN_DIR
656DRIVER_MAN_DIR
657MISC_MAN_DIR
658FILE_MAN_DIR
659LIB_MAN_DIR
660APP_MAN_DIR
661ADMIN_MAN_SUFFIX
662DRIVER_MAN_SUFFIX
663MISC_MAN_SUFFIX
664FILE_MAN_SUFFIX
665LIB_MAN_SUFFIX
666APP_MAN_SUFFIX
667SED
668host_os
669host_vendor
670host_cpu
671host
672build_os
673build_vendor
674build_cpu
675build
676INSTALL_CMD
677PKG_CONFIG_LIBDIR
678PKG_CONFIG_PATH
679PKG_CONFIG
680CHANGELOG_CMD
681STRICT_CFLAGS
682CWARNFLAGS
683BASE_CFLAGS
684am__fastdepCC_FALSE
685am__fastdepCC_TRUE
686CCDEPMODE
687am__nodep
688AMDEPBACKSLASH
689AMDEP_FALSE
690AMDEP_TRUE
691am__include
692DEPDIR
693OBJEXT
694EXEEXT
695ac_ct_CC
696CPPFLAGS
697LDFLAGS
698CFLAGS
699CC
700am__xargs_n
701am__rm_f_notfound
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
779enable_largefile
780enable_year2038
781'
782      ac_precious_vars='build_alias
783host_alias
784target_alias
785CC
786CFLAGS
787LDFLAGS
788LIBS
789CPPFLAGS
790PKG_CONFIG
791PKG_CONFIG_PATH
792PKG_CONFIG_LIBDIR
793XCMSDB_CFLAGS
794XCMSDB_LIBS'
795
796
797# Initialize some variables set by options.
798ac_init_help=
799ac_init_version=false
800ac_unrecognized_opts=
801ac_unrecognized_sep=
802# The variables have the same names as the options, with
803# dashes changed to underlines.
804cache_file=/dev/null
805exec_prefix=NONE
806no_create=
807no_recursion=
808prefix=NONE
809program_prefix=NONE
810program_suffix=NONE
811program_transform_name=s,x,x,
812silent=
813site=
814srcdir=
815verbose=
816x_includes=NONE
817x_libraries=NONE
818
819# Installation directory options.
820# These are left unexpanded so users can "make install exec_prefix=/foo"
821# and all the variables that are supposed to be based on exec_prefix
822# by default will actually change.
823# Use braces instead of parens because sh, perl, etc. also accept them.
824# (The list follows the same order as the GNU Coding Standards.)
825bindir='${exec_prefix}/bin'
826sbindir='${exec_prefix}/sbin'
827libexecdir='${exec_prefix}/libexec'
828datarootdir='${prefix}/share'
829datadir='${datarootdir}'
830sysconfdir='${prefix}/etc'
831sharedstatedir='${prefix}/com'
832localstatedir='${prefix}/var'
833runstatedir='${localstatedir}/run'
834includedir='${prefix}/include'
835oldincludedir='/usr/include'
836docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
837infodir='${datarootdir}/info'
838htmldir='${docdir}'
839dvidir='${docdir}'
840pdfdir='${docdir}'
841psdir='${docdir}'
842libdir='${exec_prefix}/lib'
843localedir='${datarootdir}/locale'
844mandir='${datarootdir}/man'
845
846ac_prev=
847ac_dashdash=
848for ac_option
849do
850  # If the previous option needs an argument, assign it.
851  if test -n "$ac_prev"; then
852    eval $ac_prev=\$ac_option
853    ac_prev=
854    continue
855  fi
856
857  case $ac_option in
858  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
859  *=)   ac_optarg= ;;
860  *)    ac_optarg=yes ;;
861  esac
862
863  case $ac_dashdash$ac_option in
864  --)
865    ac_dashdash=yes ;;
866
867  -bindir | --bindir | --bindi | --bind | --bin | --bi)
868    ac_prev=bindir ;;
869  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
870    bindir=$ac_optarg ;;
871
872  -build | --build | --buil | --bui | --bu)
873    ac_prev=build_alias ;;
874  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
875    build_alias=$ac_optarg ;;
876
877  -cache-file | --cache-file | --cache-fil | --cache-fi \
878  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
879    ac_prev=cache_file ;;
880  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
881  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
882    cache_file=$ac_optarg ;;
883
884  --config-cache | -C)
885    cache_file=config.cache ;;
886
887  -datadir | --datadir | --datadi | --datad)
888    ac_prev=datadir ;;
889  -datadir=* | --datadir=* | --datadi=* | --datad=*)
890    datadir=$ac_optarg ;;
891
892  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
893  | --dataroo | --dataro | --datar)
894    ac_prev=datarootdir ;;
895  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
896  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
897    datarootdir=$ac_optarg ;;
898
899  -disable-* | --disable-*)
900    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
901    # Reject names that are not valid shell variable names.
902    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903      as_fn_error $? "invalid feature name: '$ac_useropt'"
904    ac_useropt_orig=$ac_useropt
905    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
906    case $ac_user_opts in
907      *"
908"enable_$ac_useropt"
909"*) ;;
910      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
911	 ac_unrecognized_sep=', ';;
912    esac
913    eval enable_$ac_useropt=no ;;
914
915  -docdir | --docdir | --docdi | --doc | --do)
916    ac_prev=docdir ;;
917  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918    docdir=$ac_optarg ;;
919
920  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921    ac_prev=dvidir ;;
922  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923    dvidir=$ac_optarg ;;
924
925  -enable-* | --enable-*)
926    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
927    # Reject names that are not valid shell variable names.
928    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929      as_fn_error $? "invalid feature name: '$ac_useropt'"
930    ac_useropt_orig=$ac_useropt
931    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
932    case $ac_user_opts in
933      *"
934"enable_$ac_useropt"
935"*) ;;
936      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
937	 ac_unrecognized_sep=', ';;
938    esac
939    eval enable_$ac_useropt=\$ac_optarg ;;
940
941  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
942  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
943  | --exec | --exe | --ex)
944    ac_prev=exec_prefix ;;
945  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
946  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
947  | --exec=* | --exe=* | --ex=*)
948    exec_prefix=$ac_optarg ;;
949
950  -gas | --gas | --ga | --g)
951    # Obsolete; use --with-gas.
952    with_gas=yes ;;
953
954  -help | --help | --hel | --he | -h)
955    ac_init_help=long ;;
956  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
957    ac_init_help=recursive ;;
958  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
959    ac_init_help=short ;;
960
961  -host | --host | --hos | --ho)
962    ac_prev=host_alias ;;
963  -host=* | --host=* | --hos=* | --ho=*)
964    host_alias=$ac_optarg ;;
965
966  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
967    ac_prev=htmldir ;;
968  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
969  | --ht=*)
970    htmldir=$ac_optarg ;;
971
972  -includedir | --includedir | --includedi | --included | --include \
973  | --includ | --inclu | --incl | --inc)
974    ac_prev=includedir ;;
975  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
976  | --includ=* | --inclu=* | --incl=* | --inc=*)
977    includedir=$ac_optarg ;;
978
979  -infodir | --infodir | --infodi | --infod | --info | --inf)
980    ac_prev=infodir ;;
981  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
982    infodir=$ac_optarg ;;
983
984  -libdir | --libdir | --libdi | --libd)
985    ac_prev=libdir ;;
986  -libdir=* | --libdir=* | --libdi=* | --libd=*)
987    libdir=$ac_optarg ;;
988
989  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
990  | --libexe | --libex | --libe)
991    ac_prev=libexecdir ;;
992  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
993  | --libexe=* | --libex=* | --libe=*)
994    libexecdir=$ac_optarg ;;
995
996  -localedir | --localedir | --localedi | --localed | --locale)
997    ac_prev=localedir ;;
998  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999    localedir=$ac_optarg ;;
1000
1001  -localstatedir | --localstatedir | --localstatedi | --localstated \
1002  | --localstate | --localstat | --localsta | --localst | --locals)
1003    ac_prev=localstatedir ;;
1004  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1005  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1006    localstatedir=$ac_optarg ;;
1007
1008  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1009    ac_prev=mandir ;;
1010  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1011    mandir=$ac_optarg ;;
1012
1013  -nfp | --nfp | --nf)
1014    # Obsolete; use --without-fp.
1015    with_fp=no ;;
1016
1017  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1018  | --no-cr | --no-c | -n)
1019    no_create=yes ;;
1020
1021  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1022  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1023    no_recursion=yes ;;
1024
1025  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1026  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1027  | --oldin | --oldi | --old | --ol | --o)
1028    ac_prev=oldincludedir ;;
1029  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1030  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1031  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1032    oldincludedir=$ac_optarg ;;
1033
1034  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1035    ac_prev=prefix ;;
1036  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1037    prefix=$ac_optarg ;;
1038
1039  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1040  | --program-pre | --program-pr | --program-p)
1041    ac_prev=program_prefix ;;
1042  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1043  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1044    program_prefix=$ac_optarg ;;
1045
1046  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1047  | --program-suf | --program-su | --program-s)
1048    ac_prev=program_suffix ;;
1049  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1050  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1051    program_suffix=$ac_optarg ;;
1052
1053  -program-transform-name | --program-transform-name \
1054  | --program-transform-nam | --program-transform-na \
1055  | --program-transform-n | --program-transform- \
1056  | --program-transform | --program-transfor \
1057  | --program-transfo | --program-transf \
1058  | --program-trans | --program-tran \
1059  | --progr-tra | --program-tr | --program-t)
1060    ac_prev=program_transform_name ;;
1061  -program-transform-name=* | --program-transform-name=* \
1062  | --program-transform-nam=* | --program-transform-na=* \
1063  | --program-transform-n=* | --program-transform-=* \
1064  | --program-transform=* | --program-transfor=* \
1065  | --program-transfo=* | --program-transf=* \
1066  | --program-trans=* | --program-tran=* \
1067  | --progr-tra=* | --program-tr=* | --program-t=*)
1068    program_transform_name=$ac_optarg ;;
1069
1070  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1071    ac_prev=pdfdir ;;
1072  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073    pdfdir=$ac_optarg ;;
1074
1075  -psdir | --psdir | --psdi | --psd | --ps)
1076    ac_prev=psdir ;;
1077  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1078    psdir=$ac_optarg ;;
1079
1080  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081  | -silent | --silent | --silen | --sile | --sil)
1082    silent=yes ;;
1083
1084  -runstatedir | --runstatedir | --runstatedi | --runstated \
1085  | --runstate | --runstat | --runsta | --runst | --runs \
1086  | --run | --ru | --r)
1087    ac_prev=runstatedir ;;
1088  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1089  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1090  | --run=* | --ru=* | --r=*)
1091    runstatedir=$ac_optarg ;;
1092
1093  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094    ac_prev=sbindir ;;
1095  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096  | --sbi=* | --sb=*)
1097    sbindir=$ac_optarg ;;
1098
1099  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101  | --sharedst | --shareds | --shared | --share | --shar \
1102  | --sha | --sh)
1103    ac_prev=sharedstatedir ;;
1104  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107  | --sha=* | --sh=*)
1108    sharedstatedir=$ac_optarg ;;
1109
1110  -site | --site | --sit)
1111    ac_prev=site ;;
1112  -site=* | --site=* | --sit=*)
1113    site=$ac_optarg ;;
1114
1115  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116    ac_prev=srcdir ;;
1117  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118    srcdir=$ac_optarg ;;
1119
1120  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121  | --syscon | --sysco | --sysc | --sys | --sy)
1122    ac_prev=sysconfdir ;;
1123  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125    sysconfdir=$ac_optarg ;;
1126
1127  -target | --target | --targe | --targ | --tar | --ta | --t)
1128    ac_prev=target_alias ;;
1129  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130    target_alias=$ac_optarg ;;
1131
1132  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133    verbose=yes ;;
1134
1135  -version | --version | --versio | --versi | --vers | -V)
1136    ac_init_version=: ;;
1137
1138  -with-* | --with-*)
1139    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140    # Reject names that are not valid shell variable names.
1141    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142      as_fn_error $? "invalid package name: '$ac_useropt'"
1143    ac_useropt_orig=$ac_useropt
1144    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1145    case $ac_user_opts in
1146      *"
1147"with_$ac_useropt"
1148"*) ;;
1149      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1150	 ac_unrecognized_sep=', ';;
1151    esac
1152    eval with_$ac_useropt=\$ac_optarg ;;
1153
1154  -without-* | --without-*)
1155    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156    # Reject names that are not valid shell variable names.
1157    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158      as_fn_error $? "invalid package name: '$ac_useropt'"
1159    ac_useropt_orig=$ac_useropt
1160    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1161    case $ac_user_opts in
1162      *"
1163"with_$ac_useropt"
1164"*) ;;
1165      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1166	 ac_unrecognized_sep=', ';;
1167    esac
1168    eval with_$ac_useropt=no ;;
1169
1170  --x)
1171    # Obsolete; use --with-x.
1172    with_x=yes ;;
1173
1174  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175  | --x-incl | --x-inc | --x-in | --x-i)
1176    ac_prev=x_includes ;;
1177  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179    x_includes=$ac_optarg ;;
1180
1181  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183    ac_prev=x_libraries ;;
1184  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186    x_libraries=$ac_optarg ;;
1187
1188  -*) as_fn_error $? "unrecognized option: '$ac_option'
1189Try '$0 --help' for more information"
1190    ;;
1191
1192  *=*)
1193    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194    # Reject names that are not valid shell variable names.
1195    case $ac_envvar in #(
1196      '' | [0-9]* | *[!_$as_cr_alnum]* )
1197      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1198    esac
1199    eval $ac_envvar=\$ac_optarg
1200    export $ac_envvar ;;
1201
1202  *)
1203    # FIXME: should be removed in autoconf 3.0.
1204    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1205    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1207    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1208    ;;
1209
1210  esac
1211done
1212
1213if test -n "$ac_prev"; then
1214  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215  as_fn_error $? "missing argument to $ac_option"
1216fi
1217
1218if test -n "$ac_unrecognized_opts"; then
1219  case $enable_option_checking in
1220    no) ;;
1221    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1222    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1223  esac
1224fi
1225
1226# Check all directory arguments for consistency.
1227for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1228		datadir sysconfdir sharedstatedir localstatedir includedir \
1229		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1230		libdir localedir mandir runstatedir
1231do
1232  eval ac_val=\$$ac_var
1233  # Remove trailing slashes.
1234  case $ac_val in
1235    */ )
1236      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1237      eval $ac_var=\$ac_val;;
1238  esac
1239  # Be sure to have absolute directory names.
1240  case $ac_val in
1241    [\\/$]* | ?:[\\/]* )  continue;;
1242    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1243  esac
1244  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1245done
1246
1247# There might be people who depend on the old broken behavior: '$host'
1248# used to hold the argument of --host etc.
1249# FIXME: To remove some day.
1250build=$build_alias
1251host=$host_alias
1252target=$target_alias
1253
1254# FIXME: To remove some day.
1255if test "x$host_alias" != x; then
1256  if test "x$build_alias" = x; then
1257    cross_compiling=maybe
1258  elif test "x$build_alias" != "x$host_alias"; then
1259    cross_compiling=yes
1260  fi
1261fi
1262
1263ac_tool_prefix=
1264test -n "$host_alias" && ac_tool_prefix=$host_alias-
1265
1266test "$silent" = yes && exec 6>/dev/null
1267
1268
1269ac_pwd=`pwd` && test -n "$ac_pwd" &&
1270ac_ls_di=`ls -di .` &&
1271ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1272  as_fn_error $? "working directory cannot be determined"
1273test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1274  as_fn_error $? "pwd does not report name of working directory"
1275
1276
1277# Find the source files, if location was not specified.
1278if test -z "$srcdir"; then
1279  ac_srcdir_defaulted=yes
1280  # Try the directory containing this script, then the parent directory.
1281  ac_confdir=`$as_dirname -- "$as_myself" ||
1282$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283	 X"$as_myself" : 'X\(//\)[^/]' \| \
1284	 X"$as_myself" : 'X\(//\)$' \| \
1285	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1286printf "%s\n" X"$as_myself" |
1287    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288	    s//\1/
1289	    q
1290	  }
1291	  /^X\(\/\/\)[^/].*/{
1292	    s//\1/
1293	    q
1294	  }
1295	  /^X\(\/\/\)$/{
1296	    s//\1/
1297	    q
1298	  }
1299	  /^X\(\/\).*/{
1300	    s//\1/
1301	    q
1302	  }
1303	  s/.*/./; q'`
1304  srcdir=$ac_confdir
1305  if test ! -r "$srcdir/$ac_unique_file"; then
1306    srcdir=..
1307  fi
1308else
1309  ac_srcdir_defaulted=no
1310fi
1311if test ! -r "$srcdir/$ac_unique_file"; then
1312  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1313  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1314fi
1315ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1316ac_abs_confdir=`(
1317	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1318	pwd)`
1319# When building in place, set srcdir=.
1320if test "$ac_abs_confdir" = "$ac_pwd"; then
1321  srcdir=.
1322fi
1323# Remove unnecessary trailing slashes from srcdir.
1324# Double slashes in file names in object file debugging info
1325# mess up M-x gdb in Emacs.
1326case $srcdir in
1327*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1328esac
1329for ac_var in $ac_precious_vars; do
1330  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1331  eval ac_env_${ac_var}_value=\$${ac_var}
1332  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1333  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1334done
1335
1336#
1337# Report the --help message.
1338#
1339if test "$ac_init_help" = "long"; then
1340  # Omit some internal or obsolete options to make the list less imposing.
1341  # This message is too long to be a string in the A/UX 3.1 sh.
1342  cat <<_ACEOF
1343'configure' configures xcmsdb 1.0.7 to adapt to many kinds of systems.
1344
1345Usage: $0 [OPTION]... [VAR=VALUE]...
1346
1347To assign environment variables (e.g., CC, CFLAGS...), specify them as
1348VAR=VALUE.  See below for descriptions of some of the useful variables.
1349
1350Defaults for the options are specified in brackets.
1351
1352Configuration:
1353  -h, --help              display this help and exit
1354      --help=short        display options specific to this package
1355      --help=recursive    display the short help of all the included packages
1356  -V, --version           display version information and exit
1357  -q, --quiet, --silent   do not print 'checking ...' messages
1358      --cache-file=FILE   cache test results in FILE [disabled]
1359  -C, --config-cache      alias for '--cache-file=config.cache'
1360  -n, --no-create         do not create output files
1361      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1362
1363Installation directories:
1364  --prefix=PREFIX         install architecture-independent files in PREFIX
1365                          [$ac_default_prefix]
1366  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1367                          [PREFIX]
1368
1369By default, 'make install' will install all the files in
1370'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1371an installation prefix other than '$ac_default_prefix' using '--prefix',
1372for instance '--prefix=\$HOME'.
1373
1374For better control, use the options below.
1375
1376Fine tuning of the installation directories:
1377  --bindir=DIR            user executables [EPREFIX/bin]
1378  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1379  --libexecdir=DIR        program executables [EPREFIX/libexec]
1380  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1381  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1382  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1383  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1384  --libdir=DIR            object code libraries [EPREFIX/lib]
1385  --includedir=DIR        C header files [PREFIX/include]
1386  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1387  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1388  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1389  --infodir=DIR           info documentation [DATAROOTDIR/info]
1390  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1391  --mandir=DIR            man documentation [DATAROOTDIR/man]
1392  --docdir=DIR            documentation root [DATAROOTDIR/doc/xcmsdb]
1393  --htmldir=DIR           html documentation [DOCDIR]
1394  --dvidir=DIR            dvi documentation [DOCDIR]
1395  --pdfdir=DIR            pdf documentation [DOCDIR]
1396  --psdir=DIR             ps documentation [DOCDIR]
1397_ACEOF
1398
1399  cat <<\_ACEOF
1400
1401Program names:
1402  --program-prefix=PREFIX            prepend PREFIX to installed program names
1403  --program-suffix=SUFFIX            append SUFFIX to installed program names
1404  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1405
1406System types:
1407  --build=BUILD     configure for building on BUILD [guessed]
1408  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1409_ACEOF
1410fi
1411
1412if test -n "$ac_init_help"; then
1413  case $ac_init_help in
1414     short | recursive ) echo "Configuration of xcmsdb 1.0.7:";;
1415   esac
1416  cat <<\_ACEOF
1417
1418Optional Features:
1419  --disable-option-checking  ignore unrecognized --enable/--with options
1420  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1421  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1422  --enable-silent-rules   less verbose build output (undo: "make V=1")
1423  --disable-silent-rules  verbose build output (undo: "make V=0")
1424  --enable-dependency-tracking
1425                          do not reject slow dependency extractors
1426  --disable-dependency-tracking
1427                          speeds up one-time build
1428  --disable-selective-werror
1429                          Turn off selective compiler errors. (default:
1430                          enabled)
1431  --enable-strict-compilation
1432                          Enable all warnings from compiler and make them
1433                          errors (default: disabled)
1434  --disable-largefile     omit support for large files
1435  --enable-year2038       support timestamps after 2038
1436
1437Some influential environment variables:
1438  CC          C compiler command
1439  CFLAGS      C compiler flags
1440  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1441              nonstandard directory <lib dir>
1442  LIBS        libraries to pass to the linker, e.g. -l<library>
1443  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1444              you have headers in a nonstandard directory <include dir>
1445  PKG_CONFIG  path to pkg-config utility
1446  PKG_CONFIG_PATH
1447              directories to add to pkg-config's search path
1448  PKG_CONFIG_LIBDIR
1449              path overriding pkg-config's built-in search path
1450  XCMSDB_CFLAGS
1451              C compiler flags for XCMSDB, overriding pkg-config
1452  XCMSDB_LIBS linker flags for XCMSDB, overriding pkg-config
1453
1454Use these variables to override the choices made by 'configure' or to help
1455it to find libraries and programs with nonstandard names/locations.
1456
1457Report bugs to <https://gitlab.freedesktop.org/xorg/app/xcmsdb/-/issues>.
1458_ACEOF
1459ac_status=$?
1460fi
1461
1462if test "$ac_init_help" = "recursive"; then
1463  # If there are subdirs, report their specific --help.
1464  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1465    test -d "$ac_dir" ||
1466      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1467      continue
1468    ac_builddir=.
1469
1470case "$ac_dir" in
1471.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472*)
1473  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1474  # A ".." for each directory in $ac_dir_suffix.
1475  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1476  case $ac_top_builddir_sub in
1477  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1479  esac ;;
1480esac
1481ac_abs_top_builddir=$ac_pwd
1482ac_abs_builddir=$ac_pwd$ac_dir_suffix
1483# for backward compatibility:
1484ac_top_builddir=$ac_top_build_prefix
1485
1486case $srcdir in
1487  .)  # We are building in place.
1488    ac_srcdir=.
1489    ac_top_srcdir=$ac_top_builddir_sub
1490    ac_abs_top_srcdir=$ac_pwd ;;
1491  [\\/]* | ?:[\\/]* )  # Absolute name.
1492    ac_srcdir=$srcdir$ac_dir_suffix;
1493    ac_top_srcdir=$srcdir
1494    ac_abs_top_srcdir=$srcdir ;;
1495  *) # Relative name.
1496    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1497    ac_top_srcdir=$ac_top_build_prefix$srcdir
1498    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1499esac
1500ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1501
1502    cd "$ac_dir" || { ac_status=$?; continue; }
1503    # Check for configure.gnu first; this name is used for a wrapper for
1504    # Metaconfig's "Configure" on case-insensitive file systems.
1505    if test -f "$ac_srcdir/configure.gnu"; then
1506      echo &&
1507      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1508    elif test -f "$ac_srcdir/configure"; then
1509      echo &&
1510      $SHELL "$ac_srcdir/configure" --help=recursive
1511    else
1512      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1513    fi || ac_status=$?
1514    cd "$ac_pwd" || { ac_status=$?; break; }
1515  done
1516fi
1517
1518test -n "$ac_init_help" && exit $ac_status
1519if $ac_init_version; then
1520  cat <<\_ACEOF
1521xcmsdb configure 1.0.7
1522generated by GNU Autoconf 2.72
1523
1524Copyright (C) 2023 Free Software Foundation, Inc.
1525This configure script is free software; the Free Software Foundation
1526gives unlimited permission to copy, distribute and modify it.
1527_ACEOF
1528  exit
1529fi
1530
1531## ------------------------ ##
1532## Autoconf initialization. ##
1533## ------------------------ ##
1534
1535# ac_fn_c_try_compile LINENO
1536# --------------------------
1537# Try to compile conftest.$ac_ext, and return whether this succeeded.
1538ac_fn_c_try_compile ()
1539{
1540  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541  rm -f conftest.$ac_objext conftest.beam
1542  if { { ac_try="$ac_compile"
1543case "(($ac_try" in
1544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1545  *) ac_try_echo=$ac_try;;
1546esac
1547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548printf "%s\n" "$ac_try_echo"; } >&5
1549  (eval "$ac_compile") 2>conftest.err
1550  ac_status=$?
1551  if test -s conftest.err; then
1552    grep -v '^ *+' conftest.err >conftest.er1
1553    cat conftest.er1 >&5
1554    mv -f conftest.er1 conftest.err
1555  fi
1556  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557  test $ac_status = 0; } && {
1558	 test -z "$ac_c_werror_flag" ||
1559	 test ! -s conftest.err
1560       } && test -s conftest.$ac_objext
1561then :
1562  ac_retval=0
1563else case e in #(
1564  e) printf "%s\n" "$as_me: failed program was:" >&5
1565sed 's/^/| /' conftest.$ac_ext >&5
1566
1567	ac_retval=1 ;;
1568esac
1569fi
1570  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571  as_fn_set_status $ac_retval
1572
1573} # ac_fn_c_try_compile
1574
1575# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1576# ------------------------------------------------------------------
1577# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1578# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1579ac_fn_check_decl ()
1580{
1581  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582  as_decl_name=`echo $2|sed 's/ *(.*//'`
1583  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1584printf %s "checking whether $as_decl_name is declared... " >&6; }
1585if eval test \${$3+y}
1586then :
1587  printf %s "(cached) " >&6
1588else case e in #(
1589  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1590  eval ac_save_FLAGS=\$$6
1591  as_fn_append $6 " $5"
1592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1593/* end confdefs.h.  */
1594$4
1595int
1596main (void)
1597{
1598#ifndef $as_decl_name
1599#ifdef __cplusplus
1600  (void) $as_decl_use;
1601#else
1602  (void) $as_decl_name;
1603#endif
1604#endif
1605
1606  ;
1607  return 0;
1608}
1609_ACEOF
1610if ac_fn_c_try_compile "$LINENO"
1611then :
1612  eval "$3=yes"
1613else case e in #(
1614  e) eval "$3=no" ;;
1615esac
1616fi
1617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1618  eval $6=\$ac_save_FLAGS
1619 ;;
1620esac
1621fi
1622eval ac_res=\$$3
1623	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1624printf "%s\n" "$ac_res" >&6; }
1625  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626
1627} # ac_fn_check_decl
1628
1629# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1630# -------------------------------------------------------
1631# Tests whether HEADER exists and can be compiled using the include files in
1632# INCLUDES, setting the cache variable VAR accordingly.
1633ac_fn_c_check_header_compile ()
1634{
1635  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1637printf %s "checking for $2... " >&6; }
1638if eval test \${$3+y}
1639then :
1640  printf %s "(cached) " >&6
1641else case e in #(
1642  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1643/* end confdefs.h.  */
1644$4
1645#include <$2>
1646_ACEOF
1647if ac_fn_c_try_compile "$LINENO"
1648then :
1649  eval "$3=yes"
1650else case e in #(
1651  e) eval "$3=no" ;;
1652esac
1653fi
1654rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1655esac
1656fi
1657eval ac_res=\$$3
1658	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1659printf "%s\n" "$ac_res" >&6; }
1660  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661
1662} # ac_fn_c_check_header_compile
1663
1664# ac_fn_c_try_link LINENO
1665# -----------------------
1666# Try to link conftest.$ac_ext, and return whether this succeeded.
1667ac_fn_c_try_link ()
1668{
1669  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1671  if { { ac_try="$ac_link"
1672case "(($ac_try" in
1673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674  *) ac_try_echo=$ac_try;;
1675esac
1676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677printf "%s\n" "$ac_try_echo"; } >&5
1678  (eval "$ac_link") 2>conftest.err
1679  ac_status=$?
1680  if test -s conftest.err; then
1681    grep -v '^ *+' conftest.err >conftest.er1
1682    cat conftest.er1 >&5
1683    mv -f conftest.er1 conftest.err
1684  fi
1685  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686  test $ac_status = 0; } && {
1687	 test -z "$ac_c_werror_flag" ||
1688	 test ! -s conftest.err
1689       } && test -s conftest$ac_exeext && {
1690	 test "$cross_compiling" = yes ||
1691	 test -x conftest$ac_exeext
1692       }
1693then :
1694  ac_retval=0
1695else case e in #(
1696  e) printf "%s\n" "$as_me: failed program was:" >&5
1697sed 's/^/| /' conftest.$ac_ext >&5
1698
1699	ac_retval=1 ;;
1700esac
1701fi
1702  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1703  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1704  # interfere with the next link command; also delete a directory that is
1705  # left behind by Apple's compiler.  We do this before executing the actions.
1706  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1707  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708  as_fn_set_status $ac_retval
1709
1710} # ac_fn_c_try_link
1711ac_configure_args_raw=
1712for ac_arg
1713do
1714  case $ac_arg in
1715  *\'*)
1716    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1717  esac
1718  as_fn_append ac_configure_args_raw " '$ac_arg'"
1719done
1720
1721case $ac_configure_args_raw in
1722  *$as_nl*)
1723    ac_safe_unquote= ;;
1724  *)
1725    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1726    ac_unsafe_a="$ac_unsafe_z#~"
1727    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1728    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1729esac
1730
1731cat >config.log <<_ACEOF
1732This file contains any messages produced by compilers while
1733running configure, to aid debugging if configure makes a mistake.
1734
1735It was created by xcmsdb $as_me 1.0.7, which was
1736generated by GNU Autoconf 2.72.  Invocation command line was
1737
1738  $ $0$ac_configure_args_raw
1739
1740_ACEOF
1741exec 5>>config.log
1742{
1743cat <<_ASUNAME
1744## --------- ##
1745## Platform. ##
1746## --------- ##
1747
1748hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1749uname -m = `(uname -m) 2>/dev/null || echo unknown`
1750uname -r = `(uname -r) 2>/dev/null || echo unknown`
1751uname -s = `(uname -s) 2>/dev/null || echo unknown`
1752uname -v = `(uname -v) 2>/dev/null || echo unknown`
1753
1754/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1755/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1756
1757/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1758/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1759/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1760/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1761/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1762/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1763/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1764
1765_ASUNAME
1766
1767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1768for as_dir in $PATH
1769do
1770  IFS=$as_save_IFS
1771  case $as_dir in #(((
1772    '') as_dir=./ ;;
1773    */) ;;
1774    *) as_dir=$as_dir/ ;;
1775  esac
1776    printf "%s\n" "PATH: $as_dir"
1777  done
1778IFS=$as_save_IFS
1779
1780} >&5
1781
1782cat >&5 <<_ACEOF
1783
1784
1785## ----------- ##
1786## Core tests. ##
1787## ----------- ##
1788
1789_ACEOF
1790
1791
1792# Keep a trace of the command line.
1793# Strip out --no-create and --no-recursion so they do not pile up.
1794# Strip out --silent because we don't want to record it for future runs.
1795# Also quote any args containing shell meta-characters.
1796# Make two passes to allow for proper duplicate-argument suppression.
1797ac_configure_args=
1798ac_configure_args0=
1799ac_configure_args1=
1800ac_must_keep_next=false
1801for ac_pass in 1 2
1802do
1803  for ac_arg
1804  do
1805    case $ac_arg in
1806    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1807    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1808    | -silent | --silent | --silen | --sile | --sil)
1809      continue ;;
1810    *\'*)
1811      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1812    esac
1813    case $ac_pass in
1814    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1815    2)
1816      as_fn_append ac_configure_args1 " '$ac_arg'"
1817      if test $ac_must_keep_next = true; then
1818	ac_must_keep_next=false # Got value, back to normal.
1819      else
1820	case $ac_arg in
1821	  *=* | --config-cache | -C | -disable-* | --disable-* \
1822	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1823	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1824	  | -with-* | --with-* | -without-* | --without-* | --x)
1825	    case "$ac_configure_args0 " in
1826	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1827	    esac
1828	    ;;
1829	  -* ) ac_must_keep_next=true ;;
1830	esac
1831      fi
1832      as_fn_append ac_configure_args " '$ac_arg'"
1833      ;;
1834    esac
1835  done
1836done
1837{ ac_configure_args0=; unset ac_configure_args0;}
1838{ ac_configure_args1=; unset ac_configure_args1;}
1839
1840# When interrupted or exit'd, cleanup temporary files, and complete
1841# config.log.  We remove comments because anyway the quotes in there
1842# would cause problems or look ugly.
1843# WARNING: Use '\'' to represent an apostrophe within the trap.
1844# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1845trap 'exit_status=$?
1846  # Sanitize IFS.
1847  IFS=" ""	$as_nl"
1848  # Save into config.log some information that might help in debugging.
1849  {
1850    echo
1851
1852    printf "%s\n" "## ---------------- ##
1853## Cache variables. ##
1854## ---------------- ##"
1855    echo
1856    # The following way of writing the cache mishandles newlines in values,
1857(
1858  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1859    eval ac_val=\$$ac_var
1860    case $ac_val in #(
1861    *${as_nl}*)
1862      case $ac_var in #(
1863      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1864printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1865      esac
1866      case $ac_var in #(
1867      _ | IFS | as_nl) ;; #(
1868      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1869      *) { eval $ac_var=; unset $ac_var;} ;;
1870      esac ;;
1871    esac
1872  done
1873  (set) 2>&1 |
1874    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1875    *${as_nl}ac_space=\ *)
1876      sed -n \
1877	"s/'\''/'\''\\\\'\'''\''/g;
1878	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1879      ;; #(
1880    *)
1881      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1882      ;;
1883    esac |
1884    sort
1885)
1886    echo
1887
1888    printf "%s\n" "## ----------------- ##
1889## Output variables. ##
1890## ----------------- ##"
1891    echo
1892    for ac_var in $ac_subst_vars
1893    do
1894      eval ac_val=\$$ac_var
1895      case $ac_val in
1896      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1897      esac
1898      printf "%s\n" "$ac_var='\''$ac_val'\''"
1899    done | sort
1900    echo
1901
1902    if test -n "$ac_subst_files"; then
1903      printf "%s\n" "## ------------------- ##
1904## File substitutions. ##
1905## ------------------- ##"
1906      echo
1907      for ac_var in $ac_subst_files
1908      do
1909	eval ac_val=\$$ac_var
1910	case $ac_val in
1911	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1912	esac
1913	printf "%s\n" "$ac_var='\''$ac_val'\''"
1914      done | sort
1915      echo
1916    fi
1917
1918    if test -s confdefs.h; then
1919      printf "%s\n" "## ----------- ##
1920## confdefs.h. ##
1921## ----------- ##"
1922      echo
1923      cat confdefs.h
1924      echo
1925    fi
1926    test "$ac_signal" != 0 &&
1927      printf "%s\n" "$as_me: caught signal $ac_signal"
1928    printf "%s\n" "$as_me: exit $exit_status"
1929  } >&5
1930  rm -f core *.core core.conftest.* &&
1931    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1932    exit $exit_status
1933' 0
1934for ac_signal in 1 2 13 15; do
1935  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1936done
1937ac_signal=0
1938
1939# confdefs.h avoids OS command line length limits that DEFS can exceed.
1940rm -f -r conftest* confdefs.h
1941
1942printf "%s\n" "/* confdefs.h */" > confdefs.h
1943
1944# Predefined preprocessor variables.
1945
1946printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1947
1948printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1949
1950printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1951
1952printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1953
1954printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1955
1956printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1957
1958
1959# Let the site file select an alternate cache file if it wants to.
1960# Prefer an explicitly selected file to automatically selected ones.
1961if test -n "$CONFIG_SITE"; then
1962  ac_site_files="$CONFIG_SITE"
1963elif test "x$prefix" != xNONE; then
1964  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1965else
1966  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1967fi
1968
1969for ac_site_file in $ac_site_files
1970do
1971  case $ac_site_file in #(
1972  */*) :
1973     ;; #(
1974  *) :
1975    ac_site_file=./$ac_site_file ;;
1976esac
1977  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1978    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1979printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1980    sed 's/^/| /' "$ac_site_file" >&5
1981    . "$ac_site_file" \
1982      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
1983printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1984as_fn_error $? "failed to load site script $ac_site_file
1985See 'config.log' for more details" "$LINENO" 5; }
1986  fi
1987done
1988
1989if test -r "$cache_file"; then
1990  # Some versions of bash will fail to source /dev/null (special files
1991  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1992  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1993    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1994printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1995    case $cache_file in
1996      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1997      *)                      . "./$cache_file";;
1998    esac
1999  fi
2000else
2001  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2002printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2003  >$cache_file
2004fi
2005
2006# Test code for whether the C compiler supports C89 (global declarations)
2007ac_c_conftest_c89_globals='
2008/* Does the compiler advertise C89 conformance?
2009   Do not test the value of __STDC__, because some compilers set it to 0
2010   while being otherwise adequately conformant. */
2011#if !defined __STDC__
2012# error "Compiler does not advertise C89 conformance"
2013#endif
2014
2015#include <stddef.h>
2016#include <stdarg.h>
2017struct stat;
2018/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2019struct buf { int x; };
2020struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2021static char *e (char **p, int i)
2022{
2023  return p[i];
2024}
2025static char *f (char * (*g) (char **, int), char **p, ...)
2026{
2027  char *s;
2028  va_list v;
2029  va_start (v,p);
2030  s = g (p, va_arg (v,int));
2031  va_end (v);
2032  return s;
2033}
2034
2035/* C89 style stringification. */
2036#define noexpand_stringify(a) #a
2037const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2038
2039/* C89 style token pasting.  Exercises some of the corner cases that
2040   e.g. old MSVC gets wrong, but not very hard. */
2041#define noexpand_concat(a,b) a##b
2042#define expand_concat(a,b) noexpand_concat(a,b)
2043extern int vA;
2044extern int vbee;
2045#define aye A
2046#define bee B
2047int *pvA = &expand_concat(v,aye);
2048int *pvbee = &noexpand_concat(v,bee);
2049
2050/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2051   function prototypes and stuff, but not \xHH hex character constants.
2052   These do not provoke an error unfortunately, instead are silently treated
2053   as an "x".  The following induces an error, until -std is added to get
2054   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2055   array size at least.  It is necessary to write \x00 == 0 to get something
2056   that is true only with -std.  */
2057int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2058
2059/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2060   inside strings and character constants.  */
2061#define FOO(x) '\''x'\''
2062int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2063
2064int test (int i, double x);
2065struct s1 {int (*f) (int a);};
2066struct s2 {int (*f) (double a);};
2067int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2068               int, int);'
2069
2070# Test code for whether the C compiler supports C89 (body of main).
2071ac_c_conftest_c89_main='
2072ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2073'
2074
2075# Test code for whether the C compiler supports C99 (global declarations)
2076ac_c_conftest_c99_globals='
2077/* Does the compiler advertise C99 conformance? */
2078#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2079# error "Compiler does not advertise C99 conformance"
2080#endif
2081
2082// See if C++-style comments work.
2083
2084#include <stdbool.h>
2085extern int puts (const char *);
2086extern int printf (const char *, ...);
2087extern int dprintf (int, const char *, ...);
2088extern void *malloc (size_t);
2089extern void free (void *);
2090
2091// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2092// dprintf is used instead of fprintf to avoid needing to declare
2093// FILE and stderr.
2094#define debug(...) dprintf (2, __VA_ARGS__)
2095#define showlist(...) puts (#__VA_ARGS__)
2096#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2097static void
2098test_varargs_macros (void)
2099{
2100  int x = 1234;
2101  int y = 5678;
2102  debug ("Flag");
2103  debug ("X = %d\n", x);
2104  showlist (The first, second, and third items.);
2105  report (x>y, "x is %d but y is %d", x, y);
2106}
2107
2108// Check long long types.
2109#define BIG64 18446744073709551615ull
2110#define BIG32 4294967295ul
2111#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2112#if !BIG_OK
2113  #error "your preprocessor is broken"
2114#endif
2115#if BIG_OK
2116#else
2117  #error "your preprocessor is broken"
2118#endif
2119static long long int bignum = -9223372036854775807LL;
2120static unsigned long long int ubignum = BIG64;
2121
2122struct incomplete_array
2123{
2124  int datasize;
2125  double data[];
2126};
2127
2128struct named_init {
2129  int number;
2130  const wchar_t *name;
2131  double average;
2132};
2133
2134typedef const char *ccp;
2135
2136static inline int
2137test_restrict (ccp restrict text)
2138{
2139  // Iterate through items via the restricted pointer.
2140  // Also check for declarations in for loops.
2141  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2142    continue;
2143  return 0;
2144}
2145
2146// Check varargs and va_copy.
2147static bool
2148test_varargs (const char *format, ...)
2149{
2150  va_list args;
2151  va_start (args, format);
2152  va_list args_copy;
2153  va_copy (args_copy, args);
2154
2155  const char *str = "";
2156  int number = 0;
2157  float fnumber = 0;
2158
2159  while (*format)
2160    {
2161      switch (*format++)
2162	{
2163	case '\''s'\'': // string
2164	  str = va_arg (args_copy, const char *);
2165	  break;
2166	case '\''d'\'': // int
2167	  number = va_arg (args_copy, int);
2168	  break;
2169	case '\''f'\'': // float
2170	  fnumber = va_arg (args_copy, double);
2171	  break;
2172	default:
2173	  break;
2174	}
2175    }
2176  va_end (args_copy);
2177  va_end (args);
2178
2179  return *str && number && fnumber;
2180}
2181'
2182
2183# Test code for whether the C compiler supports C99 (body of main).
2184ac_c_conftest_c99_main='
2185  // Check bool.
2186  _Bool success = false;
2187  success |= (argc != 0);
2188
2189  // Check restrict.
2190  if (test_restrict ("String literal") == 0)
2191    success = true;
2192  char *restrict newvar = "Another string";
2193
2194  // Check varargs.
2195  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2196  test_varargs_macros ();
2197
2198  // Check flexible array members.
2199  struct incomplete_array *ia =
2200    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2201  ia->datasize = 10;
2202  for (int i = 0; i < ia->datasize; ++i)
2203    ia->data[i] = i * 1.234;
2204  // Work around memory leak warnings.
2205  free (ia);
2206
2207  // Check named initializers.
2208  struct named_init ni = {
2209    .number = 34,
2210    .name = L"Test wide string",
2211    .average = 543.34343,
2212  };
2213
2214  ni.number = 58;
2215
2216  int dynamic_array[ni.number];
2217  dynamic_array[0] = argv[0][0];
2218  dynamic_array[ni.number - 1] = 543;
2219
2220  // work around unused variable warnings
2221  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2222	 || dynamic_array[ni.number - 1] != 543);
2223'
2224
2225# Test code for whether the C compiler supports C11 (global declarations)
2226ac_c_conftest_c11_globals='
2227/* Does the compiler advertise C11 conformance? */
2228#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2229# error "Compiler does not advertise C11 conformance"
2230#endif
2231
2232// Check _Alignas.
2233char _Alignas (double) aligned_as_double;
2234char _Alignas (0) no_special_alignment;
2235extern char aligned_as_int;
2236char _Alignas (0) _Alignas (int) aligned_as_int;
2237
2238// Check _Alignof.
2239enum
2240{
2241  int_alignment = _Alignof (int),
2242  int_array_alignment = _Alignof (int[100]),
2243  char_alignment = _Alignof (char)
2244};
2245_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2246
2247// Check _Noreturn.
2248int _Noreturn does_not_return (void) { for (;;) continue; }
2249
2250// Check _Static_assert.
2251struct test_static_assert
2252{
2253  int x;
2254  _Static_assert (sizeof (int) <= sizeof (long int),
2255                  "_Static_assert does not work in struct");
2256  long int y;
2257};
2258
2259// Check UTF-8 literals.
2260#define u8 syntax error!
2261char const utf8_literal[] = u8"happens to be ASCII" "another string";
2262
2263// Check duplicate typedefs.
2264typedef long *long_ptr;
2265typedef long int *long_ptr;
2266typedef long_ptr long_ptr;
2267
2268// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2269struct anonymous
2270{
2271  union {
2272    struct { int i; int j; };
2273    struct { int k; long int l; } w;
2274  };
2275  int m;
2276} v1;
2277'
2278
2279# Test code for whether the C compiler supports C11 (body of main).
2280ac_c_conftest_c11_main='
2281  _Static_assert ((offsetof (struct anonymous, i)
2282		   == offsetof (struct anonymous, w.k)),
2283		  "Anonymous union alignment botch");
2284  v1.i = 2;
2285  v1.w.k = 5;
2286  ok |= v1.i != 5;
2287'
2288
2289# Test code for whether the C compiler supports C11 (complete).
2290ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2291${ac_c_conftest_c99_globals}
2292${ac_c_conftest_c11_globals}
2293
2294int
2295main (int argc, char **argv)
2296{
2297  int ok = 0;
2298  ${ac_c_conftest_c89_main}
2299  ${ac_c_conftest_c99_main}
2300  ${ac_c_conftest_c11_main}
2301  return ok;
2302}
2303"
2304
2305# Test code for whether the C compiler supports C99 (complete).
2306ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2307${ac_c_conftest_c99_globals}
2308
2309int
2310main (int argc, char **argv)
2311{
2312  int ok = 0;
2313  ${ac_c_conftest_c89_main}
2314  ${ac_c_conftest_c99_main}
2315  return ok;
2316}
2317"
2318
2319# Test code for whether the C compiler supports C89 (complete).
2320ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2321
2322int
2323main (int argc, char **argv)
2324{
2325  int ok = 0;
2326  ${ac_c_conftest_c89_main}
2327  return ok;
2328}
2329"
2330
2331as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2332as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2333as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2334as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2335as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2336as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2337as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2338as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2339as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2340
2341# Auxiliary files required by this configure script.
2342ac_aux_files="config.guess config.sub compile missing install-sh"
2343
2344# Locations in which to look for auxiliary files.
2345ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2346
2347# Search for a directory containing all of the required auxiliary files,
2348# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2349# If we don't find one directory that contains all the files we need,
2350# we report the set of missing files from the *first* directory in
2351# $ac_aux_dir_candidates and give up.
2352ac_missing_aux_files=""
2353ac_first_candidate=:
2354printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356as_found=false
2357for as_dir in $ac_aux_dir_candidates
2358do
2359  IFS=$as_save_IFS
2360  case $as_dir in #(((
2361    '') as_dir=./ ;;
2362    */) ;;
2363    *) as_dir=$as_dir/ ;;
2364  esac
2365  as_found=:
2366
2367  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2368  ac_aux_dir_found=yes
2369  ac_install_sh=
2370  for ac_aux in $ac_aux_files
2371  do
2372    # As a special case, if "install-sh" is required, that requirement
2373    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2374    # and $ac_install_sh is set appropriately for whichever one is found.
2375    if test x"$ac_aux" = x"install-sh"
2376    then
2377      if test -f "${as_dir}install-sh"; then
2378        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2379        ac_install_sh="${as_dir}install-sh -c"
2380      elif test -f "${as_dir}install.sh"; then
2381        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2382        ac_install_sh="${as_dir}install.sh -c"
2383      elif test -f "${as_dir}shtool"; then
2384        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2385        ac_install_sh="${as_dir}shtool install -c"
2386      else
2387        ac_aux_dir_found=no
2388        if $ac_first_candidate; then
2389          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2390        else
2391          break
2392        fi
2393      fi
2394    else
2395      if test -f "${as_dir}${ac_aux}"; then
2396        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2397      else
2398        ac_aux_dir_found=no
2399        if $ac_first_candidate; then
2400          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2401        else
2402          break
2403        fi
2404      fi
2405    fi
2406  done
2407  if test "$ac_aux_dir_found" = yes; then
2408    ac_aux_dir="$as_dir"
2409    break
2410  fi
2411  ac_first_candidate=false
2412
2413  as_found=false
2414done
2415IFS=$as_save_IFS
2416if $as_found
2417then :
2418
2419else case e in #(
2420  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2421esac
2422fi
2423
2424
2425# These three variables are undocumented and unsupported,
2426# and are intended to be withdrawn in a future Autoconf release.
2427# They can cause serious problems if a builder's source tree is in a directory
2428# whose full name contains unusual characters.
2429if test -f "${ac_aux_dir}config.guess"; then
2430  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2431fi
2432if test -f "${ac_aux_dir}config.sub"; then
2433  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2434fi
2435if test -f "$ac_aux_dir/configure"; then
2436  ac_configure="$SHELL ${ac_aux_dir}configure"
2437fi
2438
2439# Check that the precious variables saved in the cache have kept the same
2440# value.
2441ac_cache_corrupted=false
2442for ac_var in $ac_precious_vars; do
2443  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2444  eval ac_new_set=\$ac_env_${ac_var}_set
2445  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2446  eval ac_new_val=\$ac_env_${ac_var}_value
2447  case $ac_old_set,$ac_new_set in
2448    set,)
2449      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2450printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2451      ac_cache_corrupted=: ;;
2452    ,set)
2453      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2454printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2455      ac_cache_corrupted=: ;;
2456    ,);;
2457    *)
2458      if test "x$ac_old_val" != "x$ac_new_val"; then
2459	# differences in whitespace do not lead to failure.
2460	ac_old_val_w=`echo x $ac_old_val`
2461	ac_new_val_w=`echo x $ac_new_val`
2462	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2463	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2464printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2465	  ac_cache_corrupted=:
2466	else
2467	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2468printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2469	  eval $ac_var=\$ac_old_val
2470	fi
2471	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2472printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2473	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2474printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2475      fi;;
2476  esac
2477  # Pass precious variables to config.status.
2478  if test "$ac_new_set" = set; then
2479    case $ac_new_val in
2480    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2481    *) ac_arg=$ac_var=$ac_new_val ;;
2482    esac
2483    case " $ac_configure_args " in
2484      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2485      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2486    esac
2487  fi
2488done
2489if $ac_cache_corrupted; then
2490  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2491printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2492  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2493printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2494  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2495	    and start over" "$LINENO" 5
2496fi
2497## -------------------- ##
2498## Main body of script. ##
2499## -------------------- ##
2500
2501ac_ext=c
2502ac_cpp='$CPP $CPPFLAGS'
2503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2505ac_compiler_gnu=$ac_cv_c_compiler_gnu
2506
2507
2508ac_config_headers="$ac_config_headers config.h"
2509
2510
2511
2512# Initialize Automake
2513am__api_version='1.17'
2514
2515
2516
2517  # Find a good install program.  We prefer a C program (faster),
2518# so one script is as good as another.  But avoid the broken or
2519# incompatible versions:
2520# SysV /etc/install, /usr/sbin/install
2521# SunOS /usr/etc/install
2522# IRIX /sbin/install
2523# AIX /bin/install
2524# AmigaOS /C/install, which installs bootblocks on floppy discs
2525# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2526# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2527# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2528# OS/2's system install, which has a completely different semantic
2529# ./install, which can be erroneously created by make from ./install.sh.
2530# Reject install programs that cannot install multiple files.
2531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2532printf %s "checking for a BSD-compatible install... " >&6; }
2533if test -z "$INSTALL"; then
2534if test ${ac_cv_path_install+y}
2535then :
2536  printf %s "(cached) " >&6
2537else case e in #(
2538  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539for as_dir in $PATH
2540do
2541  IFS=$as_save_IFS
2542  case $as_dir in #(((
2543    '') as_dir=./ ;;
2544    */) ;;
2545    *) as_dir=$as_dir/ ;;
2546  esac
2547    # Account for fact that we put trailing slashes in our PATH walk.
2548case $as_dir in #((
2549  ./ | /[cC]/* | \
2550  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2551  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2552  /usr/ucb/* ) ;;
2553  *)
2554    # OSF1 and SCO ODT 3.0 have their own names for install.
2555    # Don't use installbsd from OSF since it installs stuff as root
2556    # by default.
2557    for ac_prog in ginstall scoinst install; do
2558      for ac_exec_ext in '' $ac_executable_extensions; do
2559	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2560	  if test $ac_prog = install &&
2561	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2562	    # AIX install.  It has an incompatible calling convention.
2563	    :
2564	  elif test $ac_prog = install &&
2565	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2566	    # program-specific install script used by HP pwplus--don't use.
2567	    :
2568	  else
2569	    rm -rf conftest.one conftest.two conftest.dir
2570	    echo one > conftest.one
2571	    echo two > conftest.two
2572	    mkdir conftest.dir
2573	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2574	      test -s conftest.one && test -s conftest.two &&
2575	      test -s conftest.dir/conftest.one &&
2576	      test -s conftest.dir/conftest.two
2577	    then
2578	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2579	      break 3
2580	    fi
2581	  fi
2582	fi
2583      done
2584    done
2585    ;;
2586esac
2587
2588  done
2589IFS=$as_save_IFS
2590
2591rm -rf conftest.one conftest.two conftest.dir
2592 ;;
2593esac
2594fi
2595  if test ${ac_cv_path_install+y}; then
2596    INSTALL=$ac_cv_path_install
2597  else
2598    # As a last resort, use the slow shell script.  Don't cache a
2599    # value for INSTALL within a source directory, because that will
2600    # break other packages using the cache if that directory is
2601    # removed, or if the value is a relative name.
2602    INSTALL=$ac_install_sh
2603  fi
2604fi
2605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2606printf "%s\n" "$INSTALL" >&6; }
2607
2608# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2609# It thinks the first close brace ends the variable substitution.
2610test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2611
2612test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2613
2614test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2615
2616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2617printf %s "checking whether sleep supports fractional seconds... " >&6; }
2618if test ${am_cv_sleep_fractional_seconds+y}
2619then :
2620  printf %s "(cached) " >&6
2621else case e in #(
2622  e) if sleep 0.001 2>/dev/null
2623then :
2624  am_cv_sleep_fractional_seconds=yes
2625else case e in #(
2626  e) am_cv_sleep_fractional_seconds=no ;;
2627esac
2628fi
2629 ;;
2630esac
2631fi
2632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2633printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2634
2635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2636printf %s "checking filesystem timestamp resolution... " >&6; }
2637if test ${am_cv_filesystem_timestamp_resolution+y}
2638then :
2639  printf %s "(cached) " >&6
2640else case e in #(
2641  e) # Default to the worst case.
2642am_cv_filesystem_timestamp_resolution=2
2643
2644# Only try to go finer than 1 sec if sleep can do it.
2645# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2646# - 1 sec is not much of a win compared to 2 sec, and
2647# - it takes 2 seconds to perform the test whether 1 sec works.
2648#
2649# Instead, just use the default 2s on platforms that have 1s resolution,
2650# accept the extra 1s delay when using $sleep in the Automake tests, in
2651# exchange for not incurring the 2s delay for running the test for all
2652# packages.
2653#
2654am_try_resolutions=
2655if test "$am_cv_sleep_fractional_seconds" = yes; then
2656  # Even a millisecond often causes a bunch of false positives,
2657  # so just try a hundredth of a second. The time saved between .001 and
2658  # .01 is not terribly consequential.
2659  am_try_resolutions="0.01 0.1 $am_try_resolutions"
2660fi
2661
2662# In order to catch current-generation FAT out, we must *modify* files
2663# that already exist; the *creation* timestamp is finer.  Use names
2664# that make ls -t sort them differently when they have equal
2665# timestamps than when they have distinct timestamps, keeping
2666# in mind that ls -t prints the *newest* file first.
2667rm -f conftest.ts?
2668: > conftest.ts1
2669: > conftest.ts2
2670: > conftest.ts3
2671
2672# Make sure ls -t actually works.  Do 'set' in a subshell so we don't
2673# clobber the current shell's arguments. (Outer-level square brackets
2674# are removed by m4; they're present so that m4 does not expand
2675# <dollar><star>; be careful, easy to get confused.)
2676if (
2677     set X `ls -t conftest.ts[12]` &&
2678     {
2679       test "$*" != "X conftest.ts1 conftest.ts2" ||
2680       test "$*" != "X conftest.ts2 conftest.ts1";
2681     }
2682); then :; else
2683  # If neither matched, then we have a broken ls.  This can happen
2684  # if, for instance, CONFIG_SHELL is bash and it inherits a
2685  # broken ls alias from the environment.  This has actually
2686  # happened.  Such a system could not be considered "sane".
2687  printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2688  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2689printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2690as_fn_error $? "ls -t produces unexpected output.
2691Make sure there is not a broken ls alias in your environment.
2692See 'config.log' for more details" "$LINENO" 5; }
2693fi
2694
2695for am_try_res in $am_try_resolutions; do
2696  # Any one fine-grained sleep might happen to cross the boundary
2697  # between two values of a coarser actual resolution, but if we do
2698  # two fine-grained sleeps in a row, at least one of them will fall
2699  # entirely within a coarse interval.
2700  echo alpha > conftest.ts1
2701  sleep $am_try_res
2702  echo beta > conftest.ts2
2703  sleep $am_try_res
2704  echo gamma > conftest.ts3
2705
2706  # We assume that 'ls -t' will make use of high-resolution
2707  # timestamps if the operating system supports them at all.
2708  if (set X `ls -t conftest.ts?` &&
2709      test "$2" = conftest.ts3 &&
2710      test "$3" = conftest.ts2 &&
2711      test "$4" = conftest.ts1); then
2712    #
2713    # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2714    # because we don't need to test make.
2715    make_ok=true
2716    if test $am_try_res != 1; then
2717      # But if we've succeeded so far with a subsecond resolution, we
2718      # have one more thing to check: make. It can happen that
2719      # everything else supports the subsecond mtimes, but make doesn't;
2720      # notably on macOS, which ships make 3.81 from 2006 (the last one
2721      # released under GPLv2). https://bugs.gnu.org/68808
2722      #
2723      # We test $MAKE if it is defined in the environment, else "make".
2724      # It might get overridden later, but our hope is that in practice
2725      # it does not matter: it is the system "make" which is (by far)
2726      # the most likely to be broken, whereas if the user overrides it,
2727      # probably they did so with a better, or at least not worse, make.
2728      # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2729      #
2730      # Create a Makefile (real tab character here):
2731      rm -f conftest.mk
2732      echo 'conftest.ts1: conftest.ts2' >conftest.mk
2733      echo '	touch conftest.ts2' >>conftest.mk
2734      #
2735      # Now, running
2736      #   touch conftest.ts1; touch conftest.ts2; make
2737      # should touch ts1 because ts2 is newer. This could happen by luck,
2738      # but most often, it will fail if make's support is insufficient. So
2739      # test for several consecutive successes.
2740      #
2741      # (We reuse conftest.ts[12] because we still want to modify existing
2742      # files, not create new ones, per above.)
2743      n=0
2744      make=${MAKE-make}
2745      until test $n -eq 3; do
2746        echo one > conftest.ts1
2747        sleep $am_try_res
2748        echo two > conftest.ts2 # ts2 should now be newer than ts1
2749        if $make -f conftest.mk | grep 'up to date' >/dev/null; then
2750          make_ok=false
2751          break # out of $n loop
2752        fi
2753        n=`expr $n + 1`
2754      done
2755    fi
2756    #
2757    if $make_ok; then
2758      # Everything we know to check worked out, so call this resolution good.
2759      am_cv_filesystem_timestamp_resolution=$am_try_res
2760      break # out of $am_try_res loop
2761    fi
2762    # Otherwise, we'll go on to check the next resolution.
2763  fi
2764done
2765rm -f conftest.ts?
2766# (end _am_filesystem_timestamp_resolution)
2767 ;;
2768esac
2769fi
2770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
2771printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
2772
2773# This check should not be cached, as it may vary across builds of
2774# different projects.
2775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2776printf %s "checking whether build environment is sane... " >&6; }
2777# Reject unsafe characters in $srcdir or the absolute working directory
2778# name.  Accept space and tab only in the latter.
2779am_lf='
2780'
2781case `pwd` in
2782  *[\\\"\#\$\&\'\`$am_lf]*)
2783    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2784esac
2785case $srcdir in
2786  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2787    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2788esac
2789
2790# Do 'set' in a subshell so we don't clobber the current shell's
2791# arguments.  Must try -L first in case configure is actually a
2792# symlink; some systems play weird games with the mod time of symlinks
2793# (eg FreeBSD returns the mod time of the symlink's containing
2794# directory).
2795am_build_env_is_sane=no
2796am_has_slept=no
2797rm -f conftest.file
2798for am_try in 1 2; do
2799  echo "timestamp, slept: $am_has_slept" > conftest.file
2800  if (
2801    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2802    if test "$*" = "X"; then
2803      # -L didn't work.
2804      set X `ls -t "$srcdir/configure" conftest.file`
2805    fi
2806    test "$2" = conftest.file
2807  ); then
2808    am_build_env_is_sane=yes
2809    break
2810  fi
2811  # Just in case.
2812  sleep "$am_cv_filesystem_timestamp_resolution"
2813  am_has_slept=yes
2814done
2815
2816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
2817printf "%s\n" "$am_build_env_is_sane" >&6; }
2818if test "$am_build_env_is_sane" = no; then
2819  as_fn_error $? "newly created file is older than distributed files!
2820Check your system clock" "$LINENO" 5
2821fi
2822
2823# If we didn't sleep, we still need to ensure time stamps of config.status and
2824# generated files are strictly newer.
2825am_sleep_pid=
2826if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
2827then :
2828
2829else case e in #(
2830  e)   ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
2831  am_sleep_pid=$!
2832 ;;
2833esac
2834fi
2835
2836rm -f conftest.file
2837
2838test "$program_prefix" != NONE &&
2839  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2840# Use a double $ so make ignores it.
2841test "$program_suffix" != NONE &&
2842  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2843# Double any \ or $.
2844# By default was 's,x,x', remove it if useless.
2845ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2846program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2847
2848
2849# Expand $ac_aux_dir to an absolute path.
2850am_aux_dir=`cd "$ac_aux_dir" && pwd`
2851
2852
2853  if test x"${MISSING+set}" != xset; then
2854  MISSING="\${SHELL} '$am_aux_dir/missing'"
2855fi
2856# Use eval to expand $SHELL
2857if eval "$MISSING --is-lightweight"; then
2858  am_missing_run="$MISSING "
2859else
2860  am_missing_run=
2861  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2862printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2863fi
2864
2865if test x"${install_sh+set}" != xset; then
2866  case $am_aux_dir in
2867  *\ * | *\	*)
2868    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2869  *)
2870    install_sh="\${SHELL} $am_aux_dir/install-sh"
2871  esac
2872fi
2873
2874# Installed binaries are usually stripped using 'strip' when the user
2875# run "make install-strip".  However 'strip' might not be the right
2876# tool to use in cross-compilation environments, therefore Automake
2877# will honor the 'STRIP' environment variable to overrule this program.
2878if test "$cross_compiling" != no; then
2879  if test -n "$ac_tool_prefix"; then
2880  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2881set dummy ${ac_tool_prefix}strip; ac_word=$2
2882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883printf %s "checking for $ac_word... " >&6; }
2884if test ${ac_cv_prog_STRIP+y}
2885then :
2886  printf %s "(cached) " >&6
2887else case e in #(
2888  e) if test -n "$STRIP"; then
2889  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2890else
2891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892for as_dir in $PATH
2893do
2894  IFS=$as_save_IFS
2895  case $as_dir in #(((
2896    '') as_dir=./ ;;
2897    */) ;;
2898    *) as_dir=$as_dir/ ;;
2899  esac
2900    for ac_exec_ext in '' $ac_executable_extensions; do
2901  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2902    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2903    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2904    break 2
2905  fi
2906done
2907  done
2908IFS=$as_save_IFS
2909
2910fi ;;
2911esac
2912fi
2913STRIP=$ac_cv_prog_STRIP
2914if test -n "$STRIP"; then
2915  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2916printf "%s\n" "$STRIP" >&6; }
2917else
2918  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919printf "%s\n" "no" >&6; }
2920fi
2921
2922
2923fi
2924if test -z "$ac_cv_prog_STRIP"; then
2925  ac_ct_STRIP=$STRIP
2926  # Extract the first word of "strip", so it can be a program name with args.
2927set dummy strip; ac_word=$2
2928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929printf %s "checking for $ac_word... " >&6; }
2930if test ${ac_cv_prog_ac_ct_STRIP+y}
2931then :
2932  printf %s "(cached) " >&6
2933else case e in #(
2934  e) if test -n "$ac_ct_STRIP"; then
2935  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2936else
2937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938for as_dir in $PATH
2939do
2940  IFS=$as_save_IFS
2941  case $as_dir in #(((
2942    '') as_dir=./ ;;
2943    */) ;;
2944    *) as_dir=$as_dir/ ;;
2945  esac
2946    for ac_exec_ext in '' $ac_executable_extensions; do
2947  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2948    ac_cv_prog_ac_ct_STRIP="strip"
2949    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2950    break 2
2951  fi
2952done
2953  done
2954IFS=$as_save_IFS
2955
2956fi ;;
2957esac
2958fi
2959ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2960if test -n "$ac_ct_STRIP"; then
2961  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2962printf "%s\n" "$ac_ct_STRIP" >&6; }
2963else
2964  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965printf "%s\n" "no" >&6; }
2966fi
2967
2968  if test "x$ac_ct_STRIP" = x; then
2969    STRIP=":"
2970  else
2971    case $cross_compiling:$ac_tool_warned in
2972yes:)
2973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2974printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2975ac_tool_warned=yes ;;
2976esac
2977    STRIP=$ac_ct_STRIP
2978  fi
2979else
2980  STRIP="$ac_cv_prog_STRIP"
2981fi
2982
2983fi
2984INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2985
2986
2987  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2988printf %s "checking for a race-free mkdir -p... " >&6; }
2989if test -z "$MKDIR_P"; then
2990  if test ${ac_cv_path_mkdir+y}
2991then :
2992  printf %s "(cached) " >&6
2993else case e in #(
2994  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2996do
2997  IFS=$as_save_IFS
2998  case $as_dir in #(((
2999    '') as_dir=./ ;;
3000    */) ;;
3001    *) as_dir=$as_dir/ ;;
3002  esac
3003    for ac_prog in mkdir gmkdir; do
3004	 for ac_exec_ext in '' $ac_executable_extensions; do
3005	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3006	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3007	     'mkdir ('*'coreutils) '* | \
3008	     *'BusyBox '* | \
3009	     'mkdir (fileutils) '4.1*)
3010	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3011	       break 3;;
3012	   esac
3013	 done
3014       done
3015  done
3016IFS=$as_save_IFS
3017 ;;
3018esac
3019fi
3020
3021  test -d ./--version && rmdir ./--version
3022  if test ${ac_cv_path_mkdir+y}; then
3023    MKDIR_P="$ac_cv_path_mkdir -p"
3024  else
3025    # As a last resort, use plain mkdir -p,
3026    # in the hope it doesn't have the bugs of ancient mkdir.
3027    MKDIR_P='mkdir -p'
3028  fi
3029fi
3030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3031printf "%s\n" "$MKDIR_P" >&6; }
3032
3033for ac_prog in gawk mawk nawk awk
3034do
3035  # Extract the first word of "$ac_prog", so it can be a program name with args.
3036set dummy $ac_prog; ac_word=$2
3037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038printf %s "checking for $ac_word... " >&6; }
3039if test ${ac_cv_prog_AWK+y}
3040then :
3041  printf %s "(cached) " >&6
3042else case e in #(
3043  e) if test -n "$AWK"; then
3044  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3045else
3046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047for as_dir in $PATH
3048do
3049  IFS=$as_save_IFS
3050  case $as_dir in #(((
3051    '') as_dir=./ ;;
3052    */) ;;
3053    *) as_dir=$as_dir/ ;;
3054  esac
3055    for ac_exec_ext in '' $ac_executable_extensions; do
3056  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3057    ac_cv_prog_AWK="$ac_prog"
3058    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3059    break 2
3060  fi
3061done
3062  done
3063IFS=$as_save_IFS
3064
3065fi ;;
3066esac
3067fi
3068AWK=$ac_cv_prog_AWK
3069if test -n "$AWK"; then
3070  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3071printf "%s\n" "$AWK" >&6; }
3072else
3073  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074printf "%s\n" "no" >&6; }
3075fi
3076
3077
3078  test -n "$AWK" && break
3079done
3080
3081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3082printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3083set x ${MAKE-make}
3084ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3085if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3086then :
3087  printf %s "(cached) " >&6
3088else case e in #(
3089  e) cat >conftest.make <<\_ACEOF
3090SHELL = /bin/sh
3091all:
3092	@echo '@@@%%%=$(MAKE)=@@@%%%'
3093_ACEOF
3094# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3095case `${MAKE-make} -f conftest.make 2>/dev/null` in
3096  *@@@%%%=?*=@@@%%%*)
3097    eval ac_cv_prog_make_${ac_make}_set=yes;;
3098  *)
3099    eval ac_cv_prog_make_${ac_make}_set=no;;
3100esac
3101rm -f conftest.make ;;
3102esac
3103fi
3104if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3105  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3106printf "%s\n" "yes" >&6; }
3107  SET_MAKE=
3108else
3109  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110printf "%s\n" "no" >&6; }
3111  SET_MAKE="MAKE=${MAKE-make}"
3112fi
3113
3114rm -rf .tst 2>/dev/null
3115mkdir .tst 2>/dev/null
3116if test -d .tst; then
3117  am__leading_dot=.
3118else
3119  am__leading_dot=_
3120fi
3121rmdir .tst 2>/dev/null
3122
3123AM_DEFAULT_VERBOSITY=1
3124# Check whether --enable-silent-rules was given.
3125if test ${enable_silent_rules+y}
3126then :
3127  enableval=$enable_silent_rules;
3128fi
3129
3130am_make=${MAKE-make}
3131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3132printf %s "checking whether $am_make supports nested variables... " >&6; }
3133if test ${am_cv_make_support_nested_variables+y}
3134then :
3135  printf %s "(cached) " >&6
3136else case e in #(
3137  e) if printf "%s\n" 'TRUE=$(BAR$(V))
3138BAR0=false
3139BAR1=true
3140V=1
3141am__doit:
3142	@$(TRUE)
3143.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3144  am_cv_make_support_nested_variables=yes
3145else
3146  am_cv_make_support_nested_variables=no
3147fi ;;
3148esac
3149fi
3150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3151printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3152AM_BACKSLASH='\'
3153
3154am__rm_f_notfound=
3155if (rm -f && rm -fr && rm -rf) 2>/dev/null
3156then :
3157
3158else case e in #(
3159  e) am__rm_f_notfound='""' ;;
3160esac
3161fi
3162
3163
3164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3165printf %s "checking xargs -n works... " >&6; }
3166if test ${am_cv_xargs_n_works+y}
3167then :
3168  printf %s "(cached) " >&6
3169else case e in #(
3170  e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
31713"
3172then :
3173  am_cv_xargs_n_works=yes
3174else case e in #(
3175  e) am_cv_xargs_n_works=no ;;
3176esac
3177fi ;;
3178esac
3179fi
3180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3181printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3182if test "$am_cv_xargs_n_works" = yes
3183then :
3184  am__xargs_n='xargs -n'
3185else case e in #(
3186  e)   am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3187 ;;
3188esac
3189fi
3190
3191if test "`cd $srcdir && pwd`" != "`pwd`"; then
3192  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3193  # is not polluted with repeated "-I."
3194  am__isrc=' -I$(srcdir)'
3195  # test to see if srcdir already configured
3196  if test -f $srcdir/config.status; then
3197    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3198  fi
3199fi
3200
3201# test whether we have cygpath
3202if test -z "$CYGPATH_W"; then
3203  if (cygpath --version) >/dev/null 2>/dev/null; then
3204    CYGPATH_W='cygpath -w'
3205  else
3206    CYGPATH_W=echo
3207  fi
3208fi
3209
3210
3211# Define the identity of the package.
3212 PACKAGE='xcmsdb'
3213 VERSION='1.0.7'
3214
3215
3216printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3217
3218
3219printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3220
3221# Some tools Automake needs.
3222
3223ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3224
3225
3226AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3227
3228
3229AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3230
3231
3232AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3233
3234
3235MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3236
3237# For better backward compatibility.  To be removed once Automake 1.9.x
3238# dies out for good.  For more background, see:
3239# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3240# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3241mkdir_p='$(MKDIR_P)'
3242
3243# We need awk for the "check" target (and possibly the TAP driver).  The
3244# system "awk" is bad on some platforms.
3245# Always define AMTAR for backward compatibility.  Yes, it's still used
3246# in the wild :-(  We should find a proper way to deprecate it ...
3247AMTAR='$${TAR-tar}'
3248
3249
3250# We'll loop over all known methods to create a tar archive until one works.
3251_am_tools='gnutar  pax cpio none'
3252
3253am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3254
3255
3256
3257
3258
3259# Variables for tags utilities; see am/tags.am
3260if test -z "$CTAGS"; then
3261  CTAGS=ctags
3262fi
3263
3264if test -z "$ETAGS"; then
3265  ETAGS=etags
3266fi
3267
3268if test -z "$CSCOPE"; then
3269  CSCOPE=cscope
3270fi
3271
3272
3273
3274
3275
3276
3277
3278
3279# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300DEPDIR="${am__leading_dot}deps"
3301
3302ac_config_commands="$ac_config_commands depfiles"
3303
3304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3305printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3306cat > confinc.mk << 'END'
3307am__doit:
3308	@echo this is the am__doit target >confinc.out
3309.PHONY: am__doit
3310END
3311am__include="#"
3312am__quote=
3313# BSD make does it like this.
3314echo '.include "confinc.mk" # ignored' > confmf.BSD
3315# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3316echo 'include confinc.mk # ignored' > confmf.GNU
3317_am_result=no
3318for s in GNU BSD; do
3319  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3320   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3321   ac_status=$?
3322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323   (exit $ac_status); }
3324  case $?:`cat confinc.out 2>/dev/null` in #(
3325  '0:this is the am__doit target') :
3326    case $s in #(
3327  BSD) :
3328    am__include='.include' am__quote='"' ;; #(
3329  *) :
3330    am__include='include' am__quote='' ;;
3331esac ;; #(
3332  *) :
3333     ;;
3334esac
3335  if test "$am__include" != "#"; then
3336    _am_result="yes ($s style)"
3337    break
3338  fi
3339done
3340rm -f confinc.* confmf.*
3341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3342printf "%s\n" "${_am_result}" >&6; }
3343
3344# Check whether --enable-dependency-tracking was given.
3345if test ${enable_dependency_tracking+y}
3346then :
3347  enableval=$enable_dependency_tracking;
3348fi
3349
3350if test "x$enable_dependency_tracking" != xno; then
3351  am_depcomp="$ac_aux_dir/depcomp"
3352  AMDEPBACKSLASH='\'
3353  am__nodep='_no'
3354fi
3355 if test "x$enable_dependency_tracking" != xno; then
3356  AMDEP_TRUE=
3357  AMDEP_FALSE='#'
3358else
3359  AMDEP_TRUE='#'
3360  AMDEP_FALSE=
3361fi
3362
3363
3364ac_ext=c
3365ac_cpp='$CPP $CPPFLAGS'
3366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3368ac_compiler_gnu=$ac_cv_c_compiler_gnu
3369if test -n "$ac_tool_prefix"; then
3370  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3371set dummy ${ac_tool_prefix}gcc; ac_word=$2
3372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373printf %s "checking for $ac_word... " >&6; }
3374if test ${ac_cv_prog_CC+y}
3375then :
3376  printf %s "(cached) " >&6
3377else case e in #(
3378  e) if test -n "$CC"; then
3379  ac_cv_prog_CC="$CC" # Let the user override the test.
3380else
3381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382for as_dir in $PATH
3383do
3384  IFS=$as_save_IFS
3385  case $as_dir in #(((
3386    '') as_dir=./ ;;
3387    */) ;;
3388    *) as_dir=$as_dir/ ;;
3389  esac
3390    for ac_exec_ext in '' $ac_executable_extensions; do
3391  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3392    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3393    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3394    break 2
3395  fi
3396done
3397  done
3398IFS=$as_save_IFS
3399
3400fi ;;
3401esac
3402fi
3403CC=$ac_cv_prog_CC
3404if test -n "$CC"; then
3405  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3406printf "%s\n" "$CC" >&6; }
3407else
3408  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409printf "%s\n" "no" >&6; }
3410fi
3411
3412
3413fi
3414if test -z "$ac_cv_prog_CC"; then
3415  ac_ct_CC=$CC
3416  # Extract the first word of "gcc", so it can be a program name with args.
3417set dummy gcc; ac_word=$2
3418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3419printf %s "checking for $ac_word... " >&6; }
3420if test ${ac_cv_prog_ac_ct_CC+y}
3421then :
3422  printf %s "(cached) " >&6
3423else case e in #(
3424  e) if test -n "$ac_ct_CC"; then
3425  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3426else
3427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428for as_dir in $PATH
3429do
3430  IFS=$as_save_IFS
3431  case $as_dir in #(((
3432    '') as_dir=./ ;;
3433    */) ;;
3434    *) as_dir=$as_dir/ ;;
3435  esac
3436    for ac_exec_ext in '' $ac_executable_extensions; do
3437  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3438    ac_cv_prog_ac_ct_CC="gcc"
3439    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3440    break 2
3441  fi
3442done
3443  done
3444IFS=$as_save_IFS
3445
3446fi ;;
3447esac
3448fi
3449ac_ct_CC=$ac_cv_prog_ac_ct_CC
3450if test -n "$ac_ct_CC"; then
3451  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3452printf "%s\n" "$ac_ct_CC" >&6; }
3453else
3454  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455printf "%s\n" "no" >&6; }
3456fi
3457
3458  if test "x$ac_ct_CC" = x; then
3459    CC=""
3460  else
3461    case $cross_compiling:$ac_tool_warned in
3462yes:)
3463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3464printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3465ac_tool_warned=yes ;;
3466esac
3467    CC=$ac_ct_CC
3468  fi
3469else
3470  CC="$ac_cv_prog_CC"
3471fi
3472
3473if test -z "$CC"; then
3474          if test -n "$ac_tool_prefix"; then
3475    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3476set dummy ${ac_tool_prefix}cc; ac_word=$2
3477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3478printf %s "checking for $ac_word... " >&6; }
3479if test ${ac_cv_prog_CC+y}
3480then :
3481  printf %s "(cached) " >&6
3482else case e in #(
3483  e) if test -n "$CC"; then
3484  ac_cv_prog_CC="$CC" # Let the user override the test.
3485else
3486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487for as_dir in $PATH
3488do
3489  IFS=$as_save_IFS
3490  case $as_dir in #(((
3491    '') as_dir=./ ;;
3492    */) ;;
3493    *) as_dir=$as_dir/ ;;
3494  esac
3495    for ac_exec_ext in '' $ac_executable_extensions; do
3496  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3497    ac_cv_prog_CC="${ac_tool_prefix}cc"
3498    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3499    break 2
3500  fi
3501done
3502  done
3503IFS=$as_save_IFS
3504
3505fi ;;
3506esac
3507fi
3508CC=$ac_cv_prog_CC
3509if test -n "$CC"; then
3510  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3511printf "%s\n" "$CC" >&6; }
3512else
3513  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514printf "%s\n" "no" >&6; }
3515fi
3516
3517
3518  fi
3519fi
3520if test -z "$CC"; then
3521  # Extract the first word of "cc", so it can be a program name with args.
3522set dummy cc; ac_word=$2
3523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3524printf %s "checking for $ac_word... " >&6; }
3525if test ${ac_cv_prog_CC+y}
3526then :
3527  printf %s "(cached) " >&6
3528else case e in #(
3529  e) if test -n "$CC"; then
3530  ac_cv_prog_CC="$CC" # Let the user override the test.
3531else
3532  ac_prog_rejected=no
3533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534for as_dir in $PATH
3535do
3536  IFS=$as_save_IFS
3537  case $as_dir in #(((
3538    '') as_dir=./ ;;
3539    */) ;;
3540    *) as_dir=$as_dir/ ;;
3541  esac
3542    for ac_exec_ext in '' $ac_executable_extensions; do
3543  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3544    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3545       ac_prog_rejected=yes
3546       continue
3547     fi
3548    ac_cv_prog_CC="cc"
3549    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3550    break 2
3551  fi
3552done
3553  done
3554IFS=$as_save_IFS
3555
3556if test $ac_prog_rejected = yes; then
3557  # We found a bogon in the path, so make sure we never use it.
3558  set dummy $ac_cv_prog_CC
3559  shift
3560  if test $# != 0; then
3561    # We chose a different compiler from the bogus one.
3562    # However, it has the same basename, so the bogon will be chosen
3563    # first if we set CC to just the basename; use the full file name.
3564    shift
3565    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3566  fi
3567fi
3568fi ;;
3569esac
3570fi
3571CC=$ac_cv_prog_CC
3572if test -n "$CC"; then
3573  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3574printf "%s\n" "$CC" >&6; }
3575else
3576  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3577printf "%s\n" "no" >&6; }
3578fi
3579
3580
3581fi
3582if test -z "$CC"; then
3583  if test -n "$ac_tool_prefix"; then
3584  for ac_prog in cl.exe
3585  do
3586    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3587set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589printf %s "checking for $ac_word... " >&6; }
3590if test ${ac_cv_prog_CC+y}
3591then :
3592  printf %s "(cached) " >&6
3593else case e in #(
3594  e) if test -n "$CC"; then
3595  ac_cv_prog_CC="$CC" # Let the user override the test.
3596else
3597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598for as_dir in $PATH
3599do
3600  IFS=$as_save_IFS
3601  case $as_dir in #(((
3602    '') as_dir=./ ;;
3603    */) ;;
3604    *) as_dir=$as_dir/ ;;
3605  esac
3606    for ac_exec_ext in '' $ac_executable_extensions; do
3607  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3608    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3609    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3610    break 2
3611  fi
3612done
3613  done
3614IFS=$as_save_IFS
3615
3616fi ;;
3617esac
3618fi
3619CC=$ac_cv_prog_CC
3620if test -n "$CC"; then
3621  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3622printf "%s\n" "$CC" >&6; }
3623else
3624  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625printf "%s\n" "no" >&6; }
3626fi
3627
3628
3629    test -n "$CC" && break
3630  done
3631fi
3632if test -z "$CC"; then
3633  ac_ct_CC=$CC
3634  for ac_prog in cl.exe
3635do
3636  # Extract the first word of "$ac_prog", so it can be a program name with args.
3637set dummy $ac_prog; ac_word=$2
3638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3639printf %s "checking for $ac_word... " >&6; }
3640if test ${ac_cv_prog_ac_ct_CC+y}
3641then :
3642  printf %s "(cached) " >&6
3643else case e in #(
3644  e) if test -n "$ac_ct_CC"; then
3645  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3646else
3647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648for as_dir in $PATH
3649do
3650  IFS=$as_save_IFS
3651  case $as_dir in #(((
3652    '') as_dir=./ ;;
3653    */) ;;
3654    *) as_dir=$as_dir/ ;;
3655  esac
3656    for ac_exec_ext in '' $ac_executable_extensions; do
3657  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3658    ac_cv_prog_ac_ct_CC="$ac_prog"
3659    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3660    break 2
3661  fi
3662done
3663  done
3664IFS=$as_save_IFS
3665
3666fi ;;
3667esac
3668fi
3669ac_ct_CC=$ac_cv_prog_ac_ct_CC
3670if test -n "$ac_ct_CC"; then
3671  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3672printf "%s\n" "$ac_ct_CC" >&6; }
3673else
3674  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675printf "%s\n" "no" >&6; }
3676fi
3677
3678
3679  test -n "$ac_ct_CC" && break
3680done
3681
3682  if test "x$ac_ct_CC" = x; then
3683    CC=""
3684  else
3685    case $cross_compiling:$ac_tool_warned in
3686yes:)
3687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3688printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3689ac_tool_warned=yes ;;
3690esac
3691    CC=$ac_ct_CC
3692  fi
3693fi
3694
3695fi
3696if test -z "$CC"; then
3697  if test -n "$ac_tool_prefix"; then
3698  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3699set dummy ${ac_tool_prefix}clang; ac_word=$2
3700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3701printf %s "checking for $ac_word... " >&6; }
3702if test ${ac_cv_prog_CC+y}
3703then :
3704  printf %s "(cached) " >&6
3705else case e in #(
3706  e) if test -n "$CC"; then
3707  ac_cv_prog_CC="$CC" # Let the user override the test.
3708else
3709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710for as_dir in $PATH
3711do
3712  IFS=$as_save_IFS
3713  case $as_dir in #(((
3714    '') as_dir=./ ;;
3715    */) ;;
3716    *) as_dir=$as_dir/ ;;
3717  esac
3718    for ac_exec_ext in '' $ac_executable_extensions; do
3719  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3720    ac_cv_prog_CC="${ac_tool_prefix}clang"
3721    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3722    break 2
3723  fi
3724done
3725  done
3726IFS=$as_save_IFS
3727
3728fi ;;
3729esac
3730fi
3731CC=$ac_cv_prog_CC
3732if test -n "$CC"; then
3733  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3734printf "%s\n" "$CC" >&6; }
3735else
3736  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737printf "%s\n" "no" >&6; }
3738fi
3739
3740
3741fi
3742if test -z "$ac_cv_prog_CC"; then
3743  ac_ct_CC=$CC
3744  # Extract the first word of "clang", so it can be a program name with args.
3745set dummy clang; ac_word=$2
3746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3747printf %s "checking for $ac_word... " >&6; }
3748if test ${ac_cv_prog_ac_ct_CC+y}
3749then :
3750  printf %s "(cached) " >&6
3751else case e in #(
3752  e) if test -n "$ac_ct_CC"; then
3753  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3754else
3755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756for as_dir in $PATH
3757do
3758  IFS=$as_save_IFS
3759  case $as_dir in #(((
3760    '') as_dir=./ ;;
3761    */) ;;
3762    *) as_dir=$as_dir/ ;;
3763  esac
3764    for ac_exec_ext in '' $ac_executable_extensions; do
3765  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3766    ac_cv_prog_ac_ct_CC="clang"
3767    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3768    break 2
3769  fi
3770done
3771  done
3772IFS=$as_save_IFS
3773
3774fi ;;
3775esac
3776fi
3777ac_ct_CC=$ac_cv_prog_ac_ct_CC
3778if test -n "$ac_ct_CC"; then
3779  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3780printf "%s\n" "$ac_ct_CC" >&6; }
3781else
3782  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783printf "%s\n" "no" >&6; }
3784fi
3785
3786  if test "x$ac_ct_CC" = x; then
3787    CC=""
3788  else
3789    case $cross_compiling:$ac_tool_warned in
3790yes:)
3791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3792printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3793ac_tool_warned=yes ;;
3794esac
3795    CC=$ac_ct_CC
3796  fi
3797else
3798  CC="$ac_cv_prog_CC"
3799fi
3800
3801fi
3802
3803
3804test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3805printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3806as_fn_error $? "no acceptable C compiler found in \$PATH
3807See 'config.log' for more details" "$LINENO" 5; }
3808
3809# Provide some information about the compiler.
3810printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3811set X $ac_compile
3812ac_compiler=$2
3813for ac_option in --version -v -V -qversion -version; do
3814  { { ac_try="$ac_compiler $ac_option >&5"
3815case "(($ac_try" in
3816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817  *) ac_try_echo=$ac_try;;
3818esac
3819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3820printf "%s\n" "$ac_try_echo"; } >&5
3821  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3822  ac_status=$?
3823  if test -s conftest.err; then
3824    sed '10a\
3825... rest of stderr output deleted ...
3826         10q' conftest.err >conftest.er1
3827    cat conftest.er1 >&5
3828  fi
3829  rm -f conftest.er1 conftest.err
3830  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3831  test $ac_status = 0; }
3832done
3833
3834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835/* end confdefs.h.  */
3836
3837int
3838main (void)
3839{
3840
3841  ;
3842  return 0;
3843}
3844_ACEOF
3845ac_clean_files_save=$ac_clean_files
3846ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3847# Try to create an executable without -o first, disregard a.out.
3848# It will help us diagnose broken compilers, and finding out an intuition
3849# of exeext.
3850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3851printf %s "checking whether the C compiler works... " >&6; }
3852ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3853
3854# The possible output files:
3855ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3856
3857ac_rmfiles=
3858for ac_file in $ac_files
3859do
3860  case $ac_file in
3861    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3862    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3863  esac
3864done
3865rm -f $ac_rmfiles
3866
3867if { { ac_try="$ac_link_default"
3868case "(($ac_try" in
3869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870  *) ac_try_echo=$ac_try;;
3871esac
3872eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3873printf "%s\n" "$ac_try_echo"; } >&5
3874  (eval "$ac_link_default") 2>&5
3875  ac_status=$?
3876  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3877  test $ac_status = 0; }
3878then :
3879  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3880# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3881# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3882# so that the user can short-circuit this test for compilers unknown to
3883# Autoconf.
3884for ac_file in $ac_files ''
3885do
3886  test -f "$ac_file" || continue
3887  case $ac_file in
3888    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3889	;;
3890    [ab].out )
3891	# We found the default executable, but exeext='' is most
3892	# certainly right.
3893	break;;
3894    *.* )
3895	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3896	then :; else
3897	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3898	fi
3899	# We set ac_cv_exeext here because the later test for it is not
3900	# safe: cross compilers may not add the suffix if given an '-o'
3901	# argument, so we may need to know it at that point already.
3902	# Even if this section looks crufty: it has the advantage of
3903	# actually working.
3904	break;;
3905    * )
3906	break;;
3907  esac
3908done
3909test "$ac_cv_exeext" = no && ac_cv_exeext=
3910
3911else case e in #(
3912  e) ac_file='' ;;
3913esac
3914fi
3915if test -z "$ac_file"
3916then :
3917  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3918printf "%s\n" "no" >&6; }
3919printf "%s\n" "$as_me: failed program was:" >&5
3920sed 's/^/| /' conftest.$ac_ext >&5
3921
3922{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3923printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3924as_fn_error 77 "C compiler cannot create executables
3925See 'config.log' for more details" "$LINENO" 5; }
3926else case e in #(
3927  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3928printf "%s\n" "yes" >&6; } ;;
3929esac
3930fi
3931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3932printf %s "checking for C compiler default output file name... " >&6; }
3933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3934printf "%s\n" "$ac_file" >&6; }
3935ac_exeext=$ac_cv_exeext
3936
3937rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3938ac_clean_files=$ac_clean_files_save
3939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3940printf %s "checking for suffix of executables... " >&6; }
3941if { { ac_try="$ac_link"
3942case "(($ac_try" in
3943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944  *) ac_try_echo=$ac_try;;
3945esac
3946eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3947printf "%s\n" "$ac_try_echo"; } >&5
3948  (eval "$ac_link") 2>&5
3949  ac_status=$?
3950  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3951  test $ac_status = 0; }
3952then :
3953  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3954# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
3955# work properly (i.e., refer to 'conftest.exe'), while it won't with
3956# 'rm'.
3957for ac_file in conftest.exe conftest conftest.*; do
3958  test -f "$ac_file" || continue
3959  case $ac_file in
3960    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3961    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3962	  break;;
3963    * ) break;;
3964  esac
3965done
3966else case e in #(
3967  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3968printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3969as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3970See 'config.log' for more details" "$LINENO" 5; } ;;
3971esac
3972fi
3973rm -f conftest conftest$ac_cv_exeext
3974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3975printf "%s\n" "$ac_cv_exeext" >&6; }
3976
3977rm -f conftest.$ac_ext
3978EXEEXT=$ac_cv_exeext
3979ac_exeext=$EXEEXT
3980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981/* end confdefs.h.  */
3982#include <stdio.h>
3983int
3984main (void)
3985{
3986FILE *f = fopen ("conftest.out", "w");
3987 if (!f)
3988  return 1;
3989 return ferror (f) || fclose (f) != 0;
3990
3991  ;
3992  return 0;
3993}
3994_ACEOF
3995ac_clean_files="$ac_clean_files conftest.out"
3996# Check that the compiler produces executables we can run.  If not, either
3997# the compiler is broken, or we cross compile.
3998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3999printf %s "checking whether we are cross compiling... " >&6; }
4000if test "$cross_compiling" != yes; then
4001  { { ac_try="$ac_link"
4002case "(($ac_try" in
4003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004  *) ac_try_echo=$ac_try;;
4005esac
4006eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4007printf "%s\n" "$ac_try_echo"; } >&5
4008  (eval "$ac_link") 2>&5
4009  ac_status=$?
4010  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4011  test $ac_status = 0; }
4012  if { ac_try='./conftest$ac_cv_exeext'
4013  { { case "(($ac_try" in
4014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015  *) ac_try_echo=$ac_try;;
4016esac
4017eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4018printf "%s\n" "$ac_try_echo"; } >&5
4019  (eval "$ac_try") 2>&5
4020  ac_status=$?
4021  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4022  test $ac_status = 0; }; }; then
4023    cross_compiling=no
4024  else
4025    if test "$cross_compiling" = maybe; then
4026	cross_compiling=yes
4027    else
4028	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4029printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4030as_fn_error 77 "cannot run C compiled programs.
4031If you meant to cross compile, use '--host'.
4032See 'config.log' for more details" "$LINENO" 5; }
4033    fi
4034  fi
4035fi
4036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4037printf "%s\n" "$cross_compiling" >&6; }
4038
4039rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4040  conftest.o conftest.obj conftest.out
4041ac_clean_files=$ac_clean_files_save
4042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4043printf %s "checking for suffix of object files... " >&6; }
4044if test ${ac_cv_objext+y}
4045then :
4046  printf %s "(cached) " >&6
4047else case e in #(
4048  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049/* end confdefs.h.  */
4050
4051int
4052main (void)
4053{
4054
4055  ;
4056  return 0;
4057}
4058_ACEOF
4059rm -f conftest.o conftest.obj
4060if { { ac_try="$ac_compile"
4061case "(($ac_try" in
4062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063  *) ac_try_echo=$ac_try;;
4064esac
4065eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4066printf "%s\n" "$ac_try_echo"; } >&5
4067  (eval "$ac_compile") 2>&5
4068  ac_status=$?
4069  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4070  test $ac_status = 0; }
4071then :
4072  for ac_file in conftest.o conftest.obj conftest.*; do
4073  test -f "$ac_file" || continue;
4074  case $ac_file in
4075    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4076    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4077       break;;
4078  esac
4079done
4080else case e in #(
4081  e) printf "%s\n" "$as_me: failed program was:" >&5
4082sed 's/^/| /' conftest.$ac_ext >&5
4083
4084{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4085printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4086as_fn_error $? "cannot compute suffix of object files: cannot compile
4087See 'config.log' for more details" "$LINENO" 5; } ;;
4088esac
4089fi
4090rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4091esac
4092fi
4093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4094printf "%s\n" "$ac_cv_objext" >&6; }
4095OBJEXT=$ac_cv_objext
4096ac_objext=$OBJEXT
4097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4098printf %s "checking whether the compiler supports GNU C... " >&6; }
4099if test ${ac_cv_c_compiler_gnu+y}
4100then :
4101  printf %s "(cached) " >&6
4102else case e in #(
4103  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104/* end confdefs.h.  */
4105
4106int
4107main (void)
4108{
4109#ifndef __GNUC__
4110       choke me
4111#endif
4112
4113  ;
4114  return 0;
4115}
4116_ACEOF
4117if ac_fn_c_try_compile "$LINENO"
4118then :
4119  ac_compiler_gnu=yes
4120else case e in #(
4121  e) ac_compiler_gnu=no ;;
4122esac
4123fi
4124rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4125ac_cv_c_compiler_gnu=$ac_compiler_gnu
4126 ;;
4127esac
4128fi
4129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4130printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4131ac_compiler_gnu=$ac_cv_c_compiler_gnu
4132
4133if test $ac_compiler_gnu = yes; then
4134  GCC=yes
4135else
4136  GCC=
4137fi
4138ac_test_CFLAGS=${CFLAGS+y}
4139ac_save_CFLAGS=$CFLAGS
4140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4141printf %s "checking whether $CC accepts -g... " >&6; }
4142if test ${ac_cv_prog_cc_g+y}
4143then :
4144  printf %s "(cached) " >&6
4145else case e in #(
4146  e) ac_save_c_werror_flag=$ac_c_werror_flag
4147   ac_c_werror_flag=yes
4148   ac_cv_prog_cc_g=no
4149   CFLAGS="-g"
4150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151/* end confdefs.h.  */
4152
4153int
4154main (void)
4155{
4156
4157  ;
4158  return 0;
4159}
4160_ACEOF
4161if ac_fn_c_try_compile "$LINENO"
4162then :
4163  ac_cv_prog_cc_g=yes
4164else case e in #(
4165  e) CFLAGS=""
4166      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167/* end confdefs.h.  */
4168
4169int
4170main (void)
4171{
4172
4173  ;
4174  return 0;
4175}
4176_ACEOF
4177if ac_fn_c_try_compile "$LINENO"
4178then :
4179
4180else case e in #(
4181  e) ac_c_werror_flag=$ac_save_c_werror_flag
4182	 CFLAGS="-g"
4183	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184/* end confdefs.h.  */
4185
4186int
4187main (void)
4188{
4189
4190  ;
4191  return 0;
4192}
4193_ACEOF
4194if ac_fn_c_try_compile "$LINENO"
4195then :
4196  ac_cv_prog_cc_g=yes
4197fi
4198rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4199esac
4200fi
4201rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4202esac
4203fi
4204rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4205   ac_c_werror_flag=$ac_save_c_werror_flag ;;
4206esac
4207fi
4208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4209printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4210if test $ac_test_CFLAGS; then
4211  CFLAGS=$ac_save_CFLAGS
4212elif test $ac_cv_prog_cc_g = yes; then
4213  if test "$GCC" = yes; then
4214    CFLAGS="-g -O2"
4215  else
4216    CFLAGS="-g"
4217  fi
4218else
4219  if test "$GCC" = yes; then
4220    CFLAGS="-O2"
4221  else
4222    CFLAGS=
4223  fi
4224fi
4225ac_prog_cc_stdc=no
4226if test x$ac_prog_cc_stdc = xno
4227then :
4228  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4229printf %s "checking for $CC option to enable C11 features... " >&6; }
4230if test ${ac_cv_prog_cc_c11+y}
4231then :
4232  printf %s "(cached) " >&6
4233else case e in #(
4234  e) ac_cv_prog_cc_c11=no
4235ac_save_CC=$CC
4236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237/* end confdefs.h.  */
4238$ac_c_conftest_c11_program
4239_ACEOF
4240for ac_arg in '' -std=gnu11
4241do
4242  CC="$ac_save_CC $ac_arg"
4243  if ac_fn_c_try_compile "$LINENO"
4244then :
4245  ac_cv_prog_cc_c11=$ac_arg
4246fi
4247rm -f core conftest.err conftest.$ac_objext conftest.beam
4248  test "x$ac_cv_prog_cc_c11" != "xno" && break
4249done
4250rm -f conftest.$ac_ext
4251CC=$ac_save_CC ;;
4252esac
4253fi
4254
4255if test "x$ac_cv_prog_cc_c11" = xno
4256then :
4257  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4258printf "%s\n" "unsupported" >&6; }
4259else case e in #(
4260  e) if test "x$ac_cv_prog_cc_c11" = x
4261then :
4262  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4263printf "%s\n" "none needed" >&6; }
4264else case e in #(
4265  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4266printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4267     CC="$CC $ac_cv_prog_cc_c11" ;;
4268esac
4269fi
4270  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4271  ac_prog_cc_stdc=c11 ;;
4272esac
4273fi
4274fi
4275if test x$ac_prog_cc_stdc = xno
4276then :
4277  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4278printf %s "checking for $CC option to enable C99 features... " >&6; }
4279if test ${ac_cv_prog_cc_c99+y}
4280then :
4281  printf %s "(cached) " >&6
4282else case e in #(
4283  e) ac_cv_prog_cc_c99=no
4284ac_save_CC=$CC
4285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286/* end confdefs.h.  */
4287$ac_c_conftest_c99_program
4288_ACEOF
4289for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4290do
4291  CC="$ac_save_CC $ac_arg"
4292  if ac_fn_c_try_compile "$LINENO"
4293then :
4294  ac_cv_prog_cc_c99=$ac_arg
4295fi
4296rm -f core conftest.err conftest.$ac_objext conftest.beam
4297  test "x$ac_cv_prog_cc_c99" != "xno" && break
4298done
4299rm -f conftest.$ac_ext
4300CC=$ac_save_CC ;;
4301esac
4302fi
4303
4304if test "x$ac_cv_prog_cc_c99" = xno
4305then :
4306  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4307printf "%s\n" "unsupported" >&6; }
4308else case e in #(
4309  e) if test "x$ac_cv_prog_cc_c99" = x
4310then :
4311  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4312printf "%s\n" "none needed" >&6; }
4313else case e in #(
4314  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4315printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4316     CC="$CC $ac_cv_prog_cc_c99" ;;
4317esac
4318fi
4319  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4320  ac_prog_cc_stdc=c99 ;;
4321esac
4322fi
4323fi
4324if test x$ac_prog_cc_stdc = xno
4325then :
4326  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4327printf %s "checking for $CC option to enable C89 features... " >&6; }
4328if test ${ac_cv_prog_cc_c89+y}
4329then :
4330  printf %s "(cached) " >&6
4331else case e in #(
4332  e) ac_cv_prog_cc_c89=no
4333ac_save_CC=$CC
4334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335/* end confdefs.h.  */
4336$ac_c_conftest_c89_program
4337_ACEOF
4338for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4339do
4340  CC="$ac_save_CC $ac_arg"
4341  if ac_fn_c_try_compile "$LINENO"
4342then :
4343  ac_cv_prog_cc_c89=$ac_arg
4344fi
4345rm -f core conftest.err conftest.$ac_objext conftest.beam
4346  test "x$ac_cv_prog_cc_c89" != "xno" && break
4347done
4348rm -f conftest.$ac_ext
4349CC=$ac_save_CC ;;
4350esac
4351fi
4352
4353if test "x$ac_cv_prog_cc_c89" = xno
4354then :
4355  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4356printf "%s\n" "unsupported" >&6; }
4357else case e in #(
4358  e) if test "x$ac_cv_prog_cc_c89" = x
4359then :
4360  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4361printf "%s\n" "none needed" >&6; }
4362else case e in #(
4363  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4364printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4365     CC="$CC $ac_cv_prog_cc_c89" ;;
4366esac
4367fi
4368  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4369  ac_prog_cc_stdc=c89 ;;
4370esac
4371fi
4372fi
4373
4374ac_ext=c
4375ac_cpp='$CPP $CPPFLAGS'
4376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378ac_compiler_gnu=$ac_cv_c_compiler_gnu
4379
4380
4381  ac_ext=c
4382ac_cpp='$CPP $CPPFLAGS'
4383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385ac_compiler_gnu=$ac_cv_c_compiler_gnu
4386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4387printf %s "checking whether $CC understands -c and -o together... " >&6; }
4388if test ${am_cv_prog_cc_c_o+y}
4389then :
4390  printf %s "(cached) " >&6
4391else case e in #(
4392  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393/* end confdefs.h.  */
4394
4395int
4396main (void)
4397{
4398
4399  ;
4400  return 0;
4401}
4402_ACEOF
4403  # Make sure it works both with $CC and with simple cc.
4404  # Following AC_PROG_CC_C_O, we do the test twice because some
4405  # compilers refuse to overwrite an existing .o file with -o,
4406  # though they will create one.
4407  am_cv_prog_cc_c_o=yes
4408  for am_i in 1 2; do
4409    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4410   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4411   ac_status=$?
4412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413   (exit $ac_status); } \
4414         && test -f conftest2.$ac_objext; then
4415      : OK
4416    else
4417      am_cv_prog_cc_c_o=no
4418      break
4419    fi
4420  done
4421  rm -f core conftest*
4422  unset am_i ;;
4423esac
4424fi
4425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4426printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4427if test "$am_cv_prog_cc_c_o" != yes; then
4428   # Losing compiler, so override with the script.
4429   # FIXME: It is wrong to rewrite CC.
4430   # But if we don't then we get into trouble of one sort or another.
4431   # A longer-term fix would be to have automake use am__CC in this case,
4432   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4433   CC="$am_aux_dir/compile $CC"
4434fi
4435ac_ext=c
4436ac_cpp='$CPP $CPPFLAGS'
4437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4439ac_compiler_gnu=$ac_cv_c_compiler_gnu
4440
4441
4442depcc="$CC"   am_compiler_list=
4443
4444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4445printf %s "checking dependency style of $depcc... " >&6; }
4446if test ${am_cv_CC_dependencies_compiler_type+y}
4447then :
4448  printf %s "(cached) " >&6
4449else case e in #(
4450  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4451  # We make a subdir and do the tests there.  Otherwise we can end up
4452  # making bogus files that we don't know about and never remove.  For
4453  # instance it was reported that on HP-UX the gcc test will end up
4454  # making a dummy file named 'D' -- because '-MD' means "put the output
4455  # in D".
4456  rm -rf conftest.dir
4457  mkdir conftest.dir
4458  # Copy depcomp to subdir because otherwise we won't find it if we're
4459  # using a relative directory.
4460  cp "$am_depcomp" conftest.dir
4461  cd conftest.dir
4462  # We will build objects and dependencies in a subdirectory because
4463  # it helps to detect inapplicable dependency modes.  For instance
4464  # both Tru64's cc and ICC support -MD to output dependencies as a
4465  # side effect of compilation, but ICC will put the dependencies in
4466  # the current directory while Tru64 will put them in the object
4467  # directory.
4468  mkdir sub
4469
4470  am_cv_CC_dependencies_compiler_type=none
4471  if test "$am_compiler_list" = ""; then
4472     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4473  fi
4474  am__universal=false
4475  case " $depcc " in #(
4476     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4477     esac
4478
4479  for depmode in $am_compiler_list; do
4480    # Setup a source with many dependencies, because some compilers
4481    # like to wrap large dependency lists on column 80 (with \), and
4482    # we should not choose a depcomp mode which is confused by this.
4483    #
4484    # We need to recreate these files for each test, as the compiler may
4485    # overwrite some of them when testing with obscure command lines.
4486    # This happens at least with the AIX C compiler.
4487    : > sub/conftest.c
4488    for i in 1 2 3 4 5 6; do
4489      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4490      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4491      # Solaris 10 /bin/sh.
4492      echo '/* dummy */' > sub/conftst$i.h
4493    done
4494    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4495
4496    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4497    # mode.  It turns out that the SunPro C++ compiler does not properly
4498    # handle '-M -o', and we need to detect this.  Also, some Intel
4499    # versions had trouble with output in subdirs.
4500    am__obj=sub/conftest.${OBJEXT-o}
4501    am__minus_obj="-o $am__obj"
4502    case $depmode in
4503    gcc)
4504      # This depmode causes a compiler race in universal mode.
4505      test "$am__universal" = false || continue
4506      ;;
4507    nosideeffect)
4508      # After this tag, mechanisms are not by side-effect, so they'll
4509      # only be used when explicitly requested.
4510      if test "x$enable_dependency_tracking" = xyes; then
4511	continue
4512      else
4513	break
4514      fi
4515      ;;
4516    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4517      # This compiler won't grok '-c -o', but also, the minuso test has
4518      # not run yet.  These depmodes are late enough in the game, and
4519      # so weak that their functioning should not be impacted.
4520      am__obj=conftest.${OBJEXT-o}
4521      am__minus_obj=
4522      ;;
4523    none) break ;;
4524    esac
4525    if depmode=$depmode \
4526       source=sub/conftest.c object=$am__obj \
4527       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4528       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4529         >/dev/null 2>conftest.err &&
4530       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4531       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4532       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4533       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4534      # icc doesn't choke on unknown options, it will just issue warnings
4535      # or remarks (even with -Werror).  So we grep stderr for any message
4536      # that says an option was ignored or not supported.
4537      # When given -MP, icc 7.0 and 7.1 complain thus:
4538      #   icc: Command line warning: ignoring option '-M'; no argument required
4539      # The diagnosis changed in icc 8.0:
4540      #   icc: Command line remark: option '-MP' not supported
4541      if (grep 'ignoring option' conftest.err ||
4542          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4543        am_cv_CC_dependencies_compiler_type=$depmode
4544        break
4545      fi
4546    fi
4547  done
4548
4549  cd ..
4550  rm -rf conftest.dir
4551else
4552  am_cv_CC_dependencies_compiler_type=none
4553fi
4554 ;;
4555esac
4556fi
4557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4558printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4559CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4560
4561 if
4562  test "x$enable_dependency_tracking" != xno \
4563  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4564  am__fastdepCC_TRUE=
4565  am__fastdepCC_FALSE='#'
4566else
4567  am__fastdepCC_TRUE='#'
4568  am__fastdepCC_FALSE=
4569fi
4570
4571
4572
4573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4574printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4575if test ${ac_cv_c_undeclared_builtin_options+y}
4576then :
4577  printf %s "(cached) " >&6
4578else case e in #(
4579  e) ac_save_CFLAGS=$CFLAGS
4580   ac_cv_c_undeclared_builtin_options='cannot detect'
4581   for ac_arg in '' -fno-builtin; do
4582     CFLAGS="$ac_save_CFLAGS $ac_arg"
4583     # This test program should *not* compile successfully.
4584     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585/* end confdefs.h.  */
4586
4587int
4588main (void)
4589{
4590(void) strchr;
4591  ;
4592  return 0;
4593}
4594_ACEOF
4595if ac_fn_c_try_compile "$LINENO"
4596then :
4597
4598else case e in #(
4599  e) # This test program should compile successfully.
4600        # No library function is consistently available on
4601        # freestanding implementations, so test against a dummy
4602        # declaration.  Include always-available headers on the
4603        # off chance that they somehow elicit warnings.
4604        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605/* end confdefs.h.  */
4606#include <float.h>
4607#include <limits.h>
4608#include <stdarg.h>
4609#include <stddef.h>
4610extern void ac_decl (int, char *);
4611
4612int
4613main (void)
4614{
4615(void) ac_decl (0, (char *) 0);
4616  (void) ac_decl;
4617
4618  ;
4619  return 0;
4620}
4621_ACEOF
4622if ac_fn_c_try_compile "$LINENO"
4623then :
4624  if test x"$ac_arg" = x
4625then :
4626  ac_cv_c_undeclared_builtin_options='none needed'
4627else case e in #(
4628  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4629esac
4630fi
4631          break
4632fi
4633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4634esac
4635fi
4636rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4637    done
4638    CFLAGS=$ac_save_CFLAGS
4639   ;;
4640esac
4641fi
4642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4643printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4644  case $ac_cv_c_undeclared_builtin_options in #(
4645  'cannot detect') :
4646    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4647printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4648as_fn_error $? "cannot make $CC report undeclared builtins
4649See 'config.log' for more details" "$LINENO" 5; } ;; #(
4650  'none needed') :
4651    ac_c_undeclared_builtin_options='' ;; #(
4652  *) :
4653    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4654esac
4655
4656ac_header= ac_cache=
4657for ac_item in $ac_header_c_list
4658do
4659  if test $ac_cache; then
4660    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4661    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4662      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4663    fi
4664    ac_header= ac_cache=
4665  elif test $ac_header; then
4666    ac_cache=$ac_item
4667  else
4668    ac_header=$ac_item
4669  fi
4670done
4671
4672
4673
4674
4675
4676
4677
4678
4679if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4680then :
4681
4682printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4683
4684fi
4685
4686
4687
4688
4689ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4690if test "x$ac_cv_have_decl___clang__" = xyes
4691then :
4692  CLANGCC="yes"
4693else case e in #(
4694  e) CLANGCC="no" ;;
4695esac
4696fi
4697ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4698if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4699then :
4700  INTELCC="yes"
4701else case e in #(
4702  e) INTELCC="no" ;;
4703esac
4704fi
4705ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4706if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4707then :
4708  SUNCC="yes"
4709else case e in #(
4710  e) SUNCC="no" ;;
4711esac
4712fi
4713
4714
4715
4716
4717
4718
4719
4720
4721if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4722	if test -n "$ac_tool_prefix"; then
4723  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4724set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4726printf %s "checking for $ac_word... " >&6; }
4727if test ${ac_cv_path_PKG_CONFIG+y}
4728then :
4729  printf %s "(cached) " >&6
4730else case e in #(
4731  e) case $PKG_CONFIG in
4732  [\\/]* | ?:[\\/]*)
4733  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4734  ;;
4735  *)
4736  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737for as_dir in $PATH
4738do
4739  IFS=$as_save_IFS
4740  case $as_dir in #(((
4741    '') as_dir=./ ;;
4742    */) ;;
4743    *) as_dir=$as_dir/ ;;
4744  esac
4745    for ac_exec_ext in '' $ac_executable_extensions; do
4746  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4747    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4748    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4749    break 2
4750  fi
4751done
4752  done
4753IFS=$as_save_IFS
4754
4755  ;;
4756esac ;;
4757esac
4758fi
4759PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4760if test -n "$PKG_CONFIG"; then
4761  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4762printf "%s\n" "$PKG_CONFIG" >&6; }
4763else
4764  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4765printf "%s\n" "no" >&6; }
4766fi
4767
4768
4769fi
4770if test -z "$ac_cv_path_PKG_CONFIG"; then
4771  ac_pt_PKG_CONFIG=$PKG_CONFIG
4772  # Extract the first word of "pkg-config", so it can be a program name with args.
4773set dummy pkg-config; ac_word=$2
4774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4775printf %s "checking for $ac_word... " >&6; }
4776if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4777then :
4778  printf %s "(cached) " >&6
4779else case e in #(
4780  e) case $ac_pt_PKG_CONFIG in
4781  [\\/]* | ?:[\\/]*)
4782  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4783  ;;
4784  *)
4785  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786for as_dir in $PATH
4787do
4788  IFS=$as_save_IFS
4789  case $as_dir in #(((
4790    '') as_dir=./ ;;
4791    */) ;;
4792    *) as_dir=$as_dir/ ;;
4793  esac
4794    for ac_exec_ext in '' $ac_executable_extensions; do
4795  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4796    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4797    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4798    break 2
4799  fi
4800done
4801  done
4802IFS=$as_save_IFS
4803
4804  ;;
4805esac ;;
4806esac
4807fi
4808ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4809if test -n "$ac_pt_PKG_CONFIG"; then
4810  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4811printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4812else
4813  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4814printf "%s\n" "no" >&6; }
4815fi
4816
4817  if test "x$ac_pt_PKG_CONFIG" = x; then
4818    PKG_CONFIG=""
4819  else
4820    case $cross_compiling:$ac_tool_warned in
4821yes:)
4822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4823printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4824ac_tool_warned=yes ;;
4825esac
4826    PKG_CONFIG=$ac_pt_PKG_CONFIG
4827  fi
4828else
4829  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4830fi
4831
4832fi
4833if test -n "$PKG_CONFIG"; then
4834	_pkg_min_version=0.9.0
4835	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4836printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4837	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4838		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4839printf "%s\n" "yes" >&6; }
4840	else
4841		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842printf "%s\n" "no" >&6; }
4843		PKG_CONFIG=""
4844	fi
4845fi
4846
4847
4848  # Make sure we can run config.sub.
4849$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4850  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4851
4852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4853printf %s "checking build system type... " >&6; }
4854if test ${ac_cv_build+y}
4855then :
4856  printf %s "(cached) " >&6
4857else case e in #(
4858  e) ac_build_alias=$build_alias
4859test "x$ac_build_alias" = x &&
4860  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4861test "x$ac_build_alias" = x &&
4862  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4863ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4864  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4865 ;;
4866esac
4867fi
4868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4869printf "%s\n" "$ac_cv_build" >&6; }
4870case $ac_cv_build in
4871*-*-*) ;;
4872*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4873esac
4874build=$ac_cv_build
4875ac_save_IFS=$IFS; IFS='-'
4876set x $ac_cv_build
4877shift
4878build_cpu=$1
4879build_vendor=$2
4880shift; shift
4881# Remember, the first character of IFS is used to create $*,
4882# except with old shells:
4883build_os=$*
4884IFS=$ac_save_IFS
4885case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4886
4887
4888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4889printf %s "checking host system type... " >&6; }
4890if test ${ac_cv_host+y}
4891then :
4892  printf %s "(cached) " >&6
4893else case e in #(
4894  e) if test "x$host_alias" = x; then
4895  ac_cv_host=$ac_cv_build
4896else
4897  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4898    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4899fi
4900 ;;
4901esac
4902fi
4903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4904printf "%s\n" "$ac_cv_host" >&6; }
4905case $ac_cv_host in
4906*-*-*) ;;
4907*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4908esac
4909host=$ac_cv_host
4910ac_save_IFS=$IFS; IFS='-'
4911set x $ac_cv_host
4912shift
4913host_cpu=$1
4914host_vendor=$2
4915shift; shift
4916# Remember, the first character of IFS is used to create $*,
4917# except with old shells:
4918host_os=$*
4919IFS=$ac_save_IFS
4920case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4921
4922
4923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4924printf %s "checking for a sed that does not truncate output... " >&6; }
4925if test ${ac_cv_path_SED+y}
4926then :
4927  printf %s "(cached) " >&6
4928else case e in #(
4929  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4930     for ac_i in 1 2 3 4 5 6 7; do
4931       ac_script="$ac_script$as_nl$ac_script"
4932     done
4933     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4934     { ac_script=; unset ac_script;}
4935     if test -z "$SED"; then
4936  ac_path_SED_found=false
4937  # Loop through the user's path and test for each of PROGNAME-LIST
4938  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939for as_dir in $PATH
4940do
4941  IFS=$as_save_IFS
4942  case $as_dir in #(((
4943    '') as_dir=./ ;;
4944    */) ;;
4945    *) as_dir=$as_dir/ ;;
4946  esac
4947    for ac_prog in sed gsed
4948   do
4949    for ac_exec_ext in '' $ac_executable_extensions; do
4950      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4951      as_fn_executable_p "$ac_path_SED" || continue
4952# Check for GNU ac_path_SED and select it if it is found.
4953  # Check for GNU $ac_path_SED
4954case `"$ac_path_SED" --version 2>&1` in #(
4955*GNU*)
4956  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4957#(
4958*)
4959  ac_count=0
4960  printf %s 0123456789 >"conftest.in"
4961  while :
4962  do
4963    cat "conftest.in" "conftest.in" >"conftest.tmp"
4964    mv "conftest.tmp" "conftest.in"
4965    cp "conftest.in" "conftest.nl"
4966    printf "%s\n" '' >> "conftest.nl"
4967    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4968    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4969    as_fn_arith $ac_count + 1 && ac_count=$as_val
4970    if test $ac_count -gt ${ac_path_SED_max-0}; then
4971      # Best one so far, save it but keep looking for a better one
4972      ac_cv_path_SED="$ac_path_SED"
4973      ac_path_SED_max=$ac_count
4974    fi
4975    # 10*(2^10) chars as input seems more than enough
4976    test $ac_count -gt 10 && break
4977  done
4978  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4979esac
4980
4981      $ac_path_SED_found && break 3
4982    done
4983  done
4984  done
4985IFS=$as_save_IFS
4986  if test -z "$ac_cv_path_SED"; then
4987    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4988  fi
4989else
4990  ac_cv_path_SED=$SED
4991fi
4992 ;;
4993esac
4994fi
4995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4996printf "%s\n" "$ac_cv_path_SED" >&6; }
4997 SED="$ac_cv_path_SED"
4998  rm -f conftest.sed
4999
5000
5001
5002
5003
5004
5005# Check whether --enable-selective-werror was given.
5006if test ${enable_selective_werror+y}
5007then :
5008  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5009else case e in #(
5010  e) SELECTIVE_WERROR=yes ;;
5011esac
5012fi
5013
5014
5015
5016
5017
5018# -v is too short to test reliably with XORG_TESTSET_CFLAG
5019if test "x$SUNCC" = "xyes"; then
5020    BASE_CFLAGS="-v"
5021else
5022    BASE_CFLAGS=""
5023fi
5024
5025# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039xorg_testset_save_CFLAGS="$CFLAGS"
5040
5041if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5042	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5043	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5044printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5045if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5046then :
5047  printf %s "(cached) " >&6
5048else case e in #(
5049  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050/* end confdefs.h.  */
5051int i;
5052_ACEOF
5053if ac_fn_c_try_compile "$LINENO"
5054then :
5055  xorg_cv_cc_flag_unknown_warning_option=yes
5056else case e in #(
5057  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5058esac
5059fi
5060rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5061esac
5062fi
5063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5064printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5065	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5066	CFLAGS="$xorg_testset_save_CFLAGS"
5067fi
5068
5069if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5070	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5071		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5072	fi
5073	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5074	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5075printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5076if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5077then :
5078  printf %s "(cached) " >&6
5079else case e in #(
5080  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5081/* end confdefs.h.  */
5082int i;
5083_ACEOF
5084if ac_fn_c_try_compile "$LINENO"
5085then :
5086  xorg_cv_cc_flag_unused_command_line_argument=yes
5087else case e in #(
5088  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5089esac
5090fi
5091rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5092esac
5093fi
5094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5095printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5096	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5097	CFLAGS="$xorg_testset_save_CFLAGS"
5098fi
5099
5100found="no"
5101
5102	if test $found = "no" ; then
5103		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5104			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5105		fi
5106
5107		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5108			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5109		fi
5110
5111		CFLAGS="$CFLAGS -Wall"
5112
5113		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5114printf %s "checking if $CC supports -Wall... " >&6; }
5115		cacheid=xorg_cv_cc_flag__Wall
5116		if eval test \${$cacheid+y}
5117then :
5118  printf %s "(cached) " >&6
5119else case e in #(
5120  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121/* end confdefs.h.  */
5122int i;
5123int
5124main (void)
5125{
5126
5127  ;
5128  return 0;
5129}
5130_ACEOF
5131if ac_fn_c_try_link "$LINENO"
5132then :
5133  eval $cacheid=yes
5134else case e in #(
5135  e) eval $cacheid=no ;;
5136esac
5137fi
5138rm -f core conftest.err conftest.$ac_objext conftest.beam \
5139    conftest$ac_exeext conftest.$ac_ext ;;
5140esac
5141fi
5142
5143
5144		CFLAGS="$xorg_testset_save_CFLAGS"
5145
5146		eval supported=\$$cacheid
5147		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5148printf "%s\n" "$supported" >&6; }
5149		if test "$supported" = "yes" ; then
5150			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5151			found="yes"
5152		fi
5153	fi
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169xorg_testset_save_CFLAGS="$CFLAGS"
5170
5171if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5172	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5173	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5174printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5175if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5176then :
5177  printf %s "(cached) " >&6
5178else case e in #(
5179  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180/* end confdefs.h.  */
5181int i;
5182_ACEOF
5183if ac_fn_c_try_compile "$LINENO"
5184then :
5185  xorg_cv_cc_flag_unknown_warning_option=yes
5186else case e in #(
5187  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5188esac
5189fi
5190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5191esac
5192fi
5193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5194printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5195	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5196	CFLAGS="$xorg_testset_save_CFLAGS"
5197fi
5198
5199if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5200	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5201		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5202	fi
5203	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5204	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5205printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5206if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5207then :
5208  printf %s "(cached) " >&6
5209else case e in #(
5210  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211/* end confdefs.h.  */
5212int i;
5213_ACEOF
5214if ac_fn_c_try_compile "$LINENO"
5215then :
5216  xorg_cv_cc_flag_unused_command_line_argument=yes
5217else case e in #(
5218  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5219esac
5220fi
5221rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5222esac
5223fi
5224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5225printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5226	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5227	CFLAGS="$xorg_testset_save_CFLAGS"
5228fi
5229
5230found="no"
5231
5232	if test $found = "no" ; then
5233		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5234			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5235		fi
5236
5237		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5238			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5239		fi
5240
5241		CFLAGS="$CFLAGS -Wpointer-arith"
5242
5243		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5244printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5245		cacheid=xorg_cv_cc_flag__Wpointer_arith
5246		if eval test \${$cacheid+y}
5247then :
5248  printf %s "(cached) " >&6
5249else case e in #(
5250  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5251/* end confdefs.h.  */
5252int i;
5253int
5254main (void)
5255{
5256
5257  ;
5258  return 0;
5259}
5260_ACEOF
5261if ac_fn_c_try_link "$LINENO"
5262then :
5263  eval $cacheid=yes
5264else case e in #(
5265  e) eval $cacheid=no ;;
5266esac
5267fi
5268rm -f core conftest.err conftest.$ac_objext conftest.beam \
5269    conftest$ac_exeext conftest.$ac_ext ;;
5270esac
5271fi
5272
5273
5274		CFLAGS="$xorg_testset_save_CFLAGS"
5275
5276		eval supported=\$$cacheid
5277		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5278printf "%s\n" "$supported" >&6; }
5279		if test "$supported" = "yes" ; then
5280			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5281			found="yes"
5282		fi
5283	fi
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299xorg_testset_save_CFLAGS="$CFLAGS"
5300
5301if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5302	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5303	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5304printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5305if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5306then :
5307  printf %s "(cached) " >&6
5308else case e in #(
5309  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310/* end confdefs.h.  */
5311int i;
5312_ACEOF
5313if ac_fn_c_try_compile "$LINENO"
5314then :
5315  xorg_cv_cc_flag_unknown_warning_option=yes
5316else case e in #(
5317  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5318esac
5319fi
5320rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5321esac
5322fi
5323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5324printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5325	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5326	CFLAGS="$xorg_testset_save_CFLAGS"
5327fi
5328
5329if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5330	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5331		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5332	fi
5333	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5334	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5335printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5336if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5337then :
5338  printf %s "(cached) " >&6
5339else case e in #(
5340  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341/* end confdefs.h.  */
5342int i;
5343_ACEOF
5344if ac_fn_c_try_compile "$LINENO"
5345then :
5346  xorg_cv_cc_flag_unused_command_line_argument=yes
5347else case e in #(
5348  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5349esac
5350fi
5351rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5352esac
5353fi
5354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5355printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5356	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5357	CFLAGS="$xorg_testset_save_CFLAGS"
5358fi
5359
5360found="no"
5361
5362	if test $found = "no" ; then
5363		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5364			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5365		fi
5366
5367		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5368			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5369		fi
5370
5371		CFLAGS="$CFLAGS -Wmissing-declarations"
5372
5373		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5374printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5375		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5376		if eval test \${$cacheid+y}
5377then :
5378  printf %s "(cached) " >&6
5379else case e in #(
5380  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5381/* end confdefs.h.  */
5382int i;
5383int
5384main (void)
5385{
5386
5387  ;
5388  return 0;
5389}
5390_ACEOF
5391if ac_fn_c_try_link "$LINENO"
5392then :
5393  eval $cacheid=yes
5394else case e in #(
5395  e) eval $cacheid=no ;;
5396esac
5397fi
5398rm -f core conftest.err conftest.$ac_objext conftest.beam \
5399    conftest$ac_exeext conftest.$ac_ext ;;
5400esac
5401fi
5402
5403
5404		CFLAGS="$xorg_testset_save_CFLAGS"
5405
5406		eval supported=\$$cacheid
5407		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5408printf "%s\n" "$supported" >&6; }
5409		if test "$supported" = "yes" ; then
5410			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5411			found="yes"
5412		fi
5413	fi
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429xorg_testset_save_CFLAGS="$CFLAGS"
5430
5431if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5432	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5433	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5434printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5435if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5436then :
5437  printf %s "(cached) " >&6
5438else case e in #(
5439  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440/* end confdefs.h.  */
5441int i;
5442_ACEOF
5443if ac_fn_c_try_compile "$LINENO"
5444then :
5445  xorg_cv_cc_flag_unknown_warning_option=yes
5446else case e in #(
5447  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5448esac
5449fi
5450rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5451esac
5452fi
5453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5454printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5455	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5456	CFLAGS="$xorg_testset_save_CFLAGS"
5457fi
5458
5459if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5460	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5461		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5462	fi
5463	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5464	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5465printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5466if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5467then :
5468  printf %s "(cached) " >&6
5469else case e in #(
5470  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471/* end confdefs.h.  */
5472int i;
5473_ACEOF
5474if ac_fn_c_try_compile "$LINENO"
5475then :
5476  xorg_cv_cc_flag_unused_command_line_argument=yes
5477else case e in #(
5478  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5479esac
5480fi
5481rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5482esac
5483fi
5484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5485printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5486	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5487	CFLAGS="$xorg_testset_save_CFLAGS"
5488fi
5489
5490found="no"
5491
5492	if test $found = "no" ; then
5493		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5494			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5495		fi
5496
5497		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5498			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5499		fi
5500
5501		CFLAGS="$CFLAGS -Wformat=2"
5502
5503		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5504printf %s "checking if $CC supports -Wformat=2... " >&6; }
5505		cacheid=xorg_cv_cc_flag__Wformat_2
5506		if eval test \${$cacheid+y}
5507then :
5508  printf %s "(cached) " >&6
5509else case e in #(
5510  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511/* end confdefs.h.  */
5512int i;
5513int
5514main (void)
5515{
5516
5517  ;
5518  return 0;
5519}
5520_ACEOF
5521if ac_fn_c_try_link "$LINENO"
5522then :
5523  eval $cacheid=yes
5524else case e in #(
5525  e) eval $cacheid=no ;;
5526esac
5527fi
5528rm -f core conftest.err conftest.$ac_objext conftest.beam \
5529    conftest$ac_exeext conftest.$ac_ext ;;
5530esac
5531fi
5532
5533
5534		CFLAGS="$xorg_testset_save_CFLAGS"
5535
5536		eval supported=\$$cacheid
5537		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5538printf "%s\n" "$supported" >&6; }
5539		if test "$supported" = "yes" ; then
5540			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5541			found="yes"
5542		fi
5543	fi
5544
5545	if test $found = "no" ; then
5546		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5547			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5548		fi
5549
5550		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5551			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5552		fi
5553
5554		CFLAGS="$CFLAGS -Wformat"
5555
5556		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5557printf %s "checking if $CC supports -Wformat... " >&6; }
5558		cacheid=xorg_cv_cc_flag__Wformat
5559		if eval test \${$cacheid+y}
5560then :
5561  printf %s "(cached) " >&6
5562else case e in #(
5563  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564/* end confdefs.h.  */
5565int i;
5566int
5567main (void)
5568{
5569
5570  ;
5571  return 0;
5572}
5573_ACEOF
5574if ac_fn_c_try_link "$LINENO"
5575then :
5576  eval $cacheid=yes
5577else case e in #(
5578  e) eval $cacheid=no ;;
5579esac
5580fi
5581rm -f core conftest.err conftest.$ac_objext conftest.beam \
5582    conftest$ac_exeext conftest.$ac_ext ;;
5583esac
5584fi
5585
5586
5587		CFLAGS="$xorg_testset_save_CFLAGS"
5588
5589		eval supported=\$$cacheid
5590		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5591printf "%s\n" "$supported" >&6; }
5592		if test "$supported" = "yes" ; then
5593			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5594			found="yes"
5595		fi
5596	fi
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614xorg_testset_save_CFLAGS="$CFLAGS"
5615
5616if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5617	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5618	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5619printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5620if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5621then :
5622  printf %s "(cached) " >&6
5623else case e in #(
5624  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625/* end confdefs.h.  */
5626int i;
5627_ACEOF
5628if ac_fn_c_try_compile "$LINENO"
5629then :
5630  xorg_cv_cc_flag_unknown_warning_option=yes
5631else case e in #(
5632  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5633esac
5634fi
5635rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5636esac
5637fi
5638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5639printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5640	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5641	CFLAGS="$xorg_testset_save_CFLAGS"
5642fi
5643
5644if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5645	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5646		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5647	fi
5648	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5649	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5650printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5651if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5652then :
5653  printf %s "(cached) " >&6
5654else case e in #(
5655  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656/* end confdefs.h.  */
5657int i;
5658_ACEOF
5659if ac_fn_c_try_compile "$LINENO"
5660then :
5661  xorg_cv_cc_flag_unused_command_line_argument=yes
5662else case e in #(
5663  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5664esac
5665fi
5666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5667esac
5668fi
5669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5670printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5671	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5672	CFLAGS="$xorg_testset_save_CFLAGS"
5673fi
5674
5675found="no"
5676
5677	if test $found = "no" ; then
5678		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5679			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5680		fi
5681
5682		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5683			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5684		fi
5685
5686		CFLAGS="$CFLAGS -Wstrict-prototypes"
5687
5688		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5689printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5690		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5691		if eval test \${$cacheid+y}
5692then :
5693  printf %s "(cached) " >&6
5694else case e in #(
5695  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696/* end confdefs.h.  */
5697int i;
5698int
5699main (void)
5700{
5701
5702  ;
5703  return 0;
5704}
5705_ACEOF
5706if ac_fn_c_try_link "$LINENO"
5707then :
5708  eval $cacheid=yes
5709else case e in #(
5710  e) eval $cacheid=no ;;
5711esac
5712fi
5713rm -f core conftest.err conftest.$ac_objext conftest.beam \
5714    conftest$ac_exeext conftest.$ac_ext ;;
5715esac
5716fi
5717
5718
5719		CFLAGS="$xorg_testset_save_CFLAGS"
5720
5721		eval supported=\$$cacheid
5722		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5723printf "%s\n" "$supported" >&6; }
5724		if test "$supported" = "yes" ; then
5725			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5726			found="yes"
5727		fi
5728	fi
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744xorg_testset_save_CFLAGS="$CFLAGS"
5745
5746if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5747	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5748	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5749printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5750if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5751then :
5752  printf %s "(cached) " >&6
5753else case e in #(
5754  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5755/* end confdefs.h.  */
5756int i;
5757_ACEOF
5758if ac_fn_c_try_compile "$LINENO"
5759then :
5760  xorg_cv_cc_flag_unknown_warning_option=yes
5761else case e in #(
5762  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5763esac
5764fi
5765rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5766esac
5767fi
5768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5769printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5770	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5771	CFLAGS="$xorg_testset_save_CFLAGS"
5772fi
5773
5774if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5775	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5776		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5777	fi
5778	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5779	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5780printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5781if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5782then :
5783  printf %s "(cached) " >&6
5784else case e in #(
5785  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786/* end confdefs.h.  */
5787int i;
5788_ACEOF
5789if ac_fn_c_try_compile "$LINENO"
5790then :
5791  xorg_cv_cc_flag_unused_command_line_argument=yes
5792else case e in #(
5793  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5794esac
5795fi
5796rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5797esac
5798fi
5799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5800printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5801	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5802	CFLAGS="$xorg_testset_save_CFLAGS"
5803fi
5804
5805found="no"
5806
5807	if test $found = "no" ; then
5808		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5809			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5810		fi
5811
5812		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5813			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5814		fi
5815
5816		CFLAGS="$CFLAGS -Wmissing-prototypes"
5817
5818		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5819printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5820		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5821		if eval test \${$cacheid+y}
5822then :
5823  printf %s "(cached) " >&6
5824else case e in #(
5825  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826/* end confdefs.h.  */
5827int i;
5828int
5829main (void)
5830{
5831
5832  ;
5833  return 0;
5834}
5835_ACEOF
5836if ac_fn_c_try_link "$LINENO"
5837then :
5838  eval $cacheid=yes
5839else case e in #(
5840  e) eval $cacheid=no ;;
5841esac
5842fi
5843rm -f core conftest.err conftest.$ac_objext conftest.beam \
5844    conftest$ac_exeext conftest.$ac_ext ;;
5845esac
5846fi
5847
5848
5849		CFLAGS="$xorg_testset_save_CFLAGS"
5850
5851		eval supported=\$$cacheid
5852		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5853printf "%s\n" "$supported" >&6; }
5854		if test "$supported" = "yes" ; then
5855			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5856			found="yes"
5857		fi
5858	fi
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874xorg_testset_save_CFLAGS="$CFLAGS"
5875
5876if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5877	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5878	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5879printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5880if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5881then :
5882  printf %s "(cached) " >&6
5883else case e in #(
5884  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885/* end confdefs.h.  */
5886int i;
5887_ACEOF
5888if ac_fn_c_try_compile "$LINENO"
5889then :
5890  xorg_cv_cc_flag_unknown_warning_option=yes
5891else case e in #(
5892  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5893esac
5894fi
5895rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5896esac
5897fi
5898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5899printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5900	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5901	CFLAGS="$xorg_testset_save_CFLAGS"
5902fi
5903
5904if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5905	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5906		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5907	fi
5908	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5909	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5910printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5911if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5912then :
5913  printf %s "(cached) " >&6
5914else case e in #(
5915  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916/* end confdefs.h.  */
5917int i;
5918_ACEOF
5919if ac_fn_c_try_compile "$LINENO"
5920then :
5921  xorg_cv_cc_flag_unused_command_line_argument=yes
5922else case e in #(
5923  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5924esac
5925fi
5926rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5927esac
5928fi
5929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5930printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5931	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5932	CFLAGS="$xorg_testset_save_CFLAGS"
5933fi
5934
5935found="no"
5936
5937	if test $found = "no" ; then
5938		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5939			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5940		fi
5941
5942		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5943			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5944		fi
5945
5946		CFLAGS="$CFLAGS -Wnested-externs"
5947
5948		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5949printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5950		cacheid=xorg_cv_cc_flag__Wnested_externs
5951		if eval test \${$cacheid+y}
5952then :
5953  printf %s "(cached) " >&6
5954else case e in #(
5955  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5956/* end confdefs.h.  */
5957int i;
5958int
5959main (void)
5960{
5961
5962  ;
5963  return 0;
5964}
5965_ACEOF
5966if ac_fn_c_try_link "$LINENO"
5967then :
5968  eval $cacheid=yes
5969else case e in #(
5970  e) eval $cacheid=no ;;
5971esac
5972fi
5973rm -f core conftest.err conftest.$ac_objext conftest.beam \
5974    conftest$ac_exeext conftest.$ac_ext ;;
5975esac
5976fi
5977
5978
5979		CFLAGS="$xorg_testset_save_CFLAGS"
5980
5981		eval supported=\$$cacheid
5982		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5983printf "%s\n" "$supported" >&6; }
5984		if test "$supported" = "yes" ; then
5985			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5986			found="yes"
5987		fi
5988	fi
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004xorg_testset_save_CFLAGS="$CFLAGS"
6005
6006if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6007	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6008	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6009printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6010if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6011then :
6012  printf %s "(cached) " >&6
6013else case e in #(
6014  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015/* end confdefs.h.  */
6016int i;
6017_ACEOF
6018if ac_fn_c_try_compile "$LINENO"
6019then :
6020  xorg_cv_cc_flag_unknown_warning_option=yes
6021else case e in #(
6022  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6023esac
6024fi
6025rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6026esac
6027fi
6028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6029printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6030	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6031	CFLAGS="$xorg_testset_save_CFLAGS"
6032fi
6033
6034if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6035	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6036		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6037	fi
6038	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6039	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6040printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6041if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6042then :
6043  printf %s "(cached) " >&6
6044else case e in #(
6045  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046/* end confdefs.h.  */
6047int i;
6048_ACEOF
6049if ac_fn_c_try_compile "$LINENO"
6050then :
6051  xorg_cv_cc_flag_unused_command_line_argument=yes
6052else case e in #(
6053  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6054esac
6055fi
6056rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6057esac
6058fi
6059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6060printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6061	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6062	CFLAGS="$xorg_testset_save_CFLAGS"
6063fi
6064
6065found="no"
6066
6067	if test $found = "no" ; then
6068		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6069			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6070		fi
6071
6072		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6073			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6074		fi
6075
6076		CFLAGS="$CFLAGS -Wbad-function-cast"
6077
6078		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6079printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6080		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6081		if eval test \${$cacheid+y}
6082then :
6083  printf %s "(cached) " >&6
6084else case e in #(
6085  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6086/* end confdefs.h.  */
6087int i;
6088int
6089main (void)
6090{
6091
6092  ;
6093  return 0;
6094}
6095_ACEOF
6096if ac_fn_c_try_link "$LINENO"
6097then :
6098  eval $cacheid=yes
6099else case e in #(
6100  e) eval $cacheid=no ;;
6101esac
6102fi
6103rm -f core conftest.err conftest.$ac_objext conftest.beam \
6104    conftest$ac_exeext conftest.$ac_ext ;;
6105esac
6106fi
6107
6108
6109		CFLAGS="$xorg_testset_save_CFLAGS"
6110
6111		eval supported=\$$cacheid
6112		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6113printf "%s\n" "$supported" >&6; }
6114		if test "$supported" = "yes" ; then
6115			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6116			found="yes"
6117		fi
6118	fi
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134xorg_testset_save_CFLAGS="$CFLAGS"
6135
6136if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6137	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6138	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6139printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6140if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6141then :
6142  printf %s "(cached) " >&6
6143else case e in #(
6144  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145/* end confdefs.h.  */
6146int i;
6147_ACEOF
6148if ac_fn_c_try_compile "$LINENO"
6149then :
6150  xorg_cv_cc_flag_unknown_warning_option=yes
6151else case e in #(
6152  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6153esac
6154fi
6155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6156esac
6157fi
6158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6159printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6160	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6161	CFLAGS="$xorg_testset_save_CFLAGS"
6162fi
6163
6164if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6165	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6166		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6167	fi
6168	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6169	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6170printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6171if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6172then :
6173  printf %s "(cached) " >&6
6174else case e in #(
6175  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6176/* end confdefs.h.  */
6177int i;
6178_ACEOF
6179if ac_fn_c_try_compile "$LINENO"
6180then :
6181  xorg_cv_cc_flag_unused_command_line_argument=yes
6182else case e in #(
6183  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6184esac
6185fi
6186rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6187esac
6188fi
6189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6190printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6191	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6192	CFLAGS="$xorg_testset_save_CFLAGS"
6193fi
6194
6195found="no"
6196
6197	if test $found = "no" ; then
6198		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6199			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6200		fi
6201
6202		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6203			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6204		fi
6205
6206		CFLAGS="$CFLAGS -Wold-style-definition"
6207
6208		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6209printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6210		cacheid=xorg_cv_cc_flag__Wold_style_definition
6211		if eval test \${$cacheid+y}
6212then :
6213  printf %s "(cached) " >&6
6214else case e in #(
6215  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216/* end confdefs.h.  */
6217int i;
6218int
6219main (void)
6220{
6221
6222  ;
6223  return 0;
6224}
6225_ACEOF
6226if ac_fn_c_try_link "$LINENO"
6227then :
6228  eval $cacheid=yes
6229else case e in #(
6230  e) eval $cacheid=no ;;
6231esac
6232fi
6233rm -f core conftest.err conftest.$ac_objext conftest.beam \
6234    conftest$ac_exeext conftest.$ac_ext ;;
6235esac
6236fi
6237
6238
6239		CFLAGS="$xorg_testset_save_CFLAGS"
6240
6241		eval supported=\$$cacheid
6242		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6243printf "%s\n" "$supported" >&6; }
6244		if test "$supported" = "yes" ; then
6245			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6246			found="yes"
6247		fi
6248	fi
6249
6250	if test $found = "no" ; then
6251		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6252			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6253		fi
6254
6255		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6256			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6257		fi
6258
6259		CFLAGS="$CFLAGS -fd"
6260
6261		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6262printf %s "checking if $CC supports -fd... " >&6; }
6263		cacheid=xorg_cv_cc_flag__fd
6264		if eval test \${$cacheid+y}
6265then :
6266  printf %s "(cached) " >&6
6267else case e in #(
6268  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269/* end confdefs.h.  */
6270int i;
6271int
6272main (void)
6273{
6274
6275  ;
6276  return 0;
6277}
6278_ACEOF
6279if ac_fn_c_try_link "$LINENO"
6280then :
6281  eval $cacheid=yes
6282else case e in #(
6283  e) eval $cacheid=no ;;
6284esac
6285fi
6286rm -f core conftest.err conftest.$ac_objext conftest.beam \
6287    conftest$ac_exeext conftest.$ac_ext ;;
6288esac
6289fi
6290
6291
6292		CFLAGS="$xorg_testset_save_CFLAGS"
6293
6294		eval supported=\$$cacheid
6295		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6296printf "%s\n" "$supported" >&6; }
6297		if test "$supported" = "yes" ; then
6298			BASE_CFLAGS="$BASE_CFLAGS -fd"
6299			found="yes"
6300		fi
6301	fi
6302
6303
6304
6305
6306
6307# This chunk adds additional warnings that could catch undesired effects.
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321xorg_testset_save_CFLAGS="$CFLAGS"
6322
6323if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6324	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6325	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6326printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6327if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6328then :
6329  printf %s "(cached) " >&6
6330else case e in #(
6331  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6332/* end confdefs.h.  */
6333int i;
6334_ACEOF
6335if ac_fn_c_try_compile "$LINENO"
6336then :
6337  xorg_cv_cc_flag_unknown_warning_option=yes
6338else case e in #(
6339  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6340esac
6341fi
6342rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6343esac
6344fi
6345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6346printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6347	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6348	CFLAGS="$xorg_testset_save_CFLAGS"
6349fi
6350
6351if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6352	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6353		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6354	fi
6355	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6356	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6357printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6358if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6359then :
6360  printf %s "(cached) " >&6
6361else case e in #(
6362  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6363/* end confdefs.h.  */
6364int i;
6365_ACEOF
6366if ac_fn_c_try_compile "$LINENO"
6367then :
6368  xorg_cv_cc_flag_unused_command_line_argument=yes
6369else case e in #(
6370  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6371esac
6372fi
6373rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6374esac
6375fi
6376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6377printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6378	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6379	CFLAGS="$xorg_testset_save_CFLAGS"
6380fi
6381
6382found="no"
6383
6384	if test $found = "no" ; then
6385		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6386			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6387		fi
6388
6389		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6390			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6391		fi
6392
6393		CFLAGS="$CFLAGS -Wunused"
6394
6395		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6396printf %s "checking if $CC supports -Wunused... " >&6; }
6397		cacheid=xorg_cv_cc_flag__Wunused
6398		if eval test \${$cacheid+y}
6399then :
6400  printf %s "(cached) " >&6
6401else case e in #(
6402  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403/* end confdefs.h.  */
6404int i;
6405int
6406main (void)
6407{
6408
6409  ;
6410  return 0;
6411}
6412_ACEOF
6413if ac_fn_c_try_link "$LINENO"
6414then :
6415  eval $cacheid=yes
6416else case e in #(
6417  e) eval $cacheid=no ;;
6418esac
6419fi
6420rm -f core conftest.err conftest.$ac_objext conftest.beam \
6421    conftest$ac_exeext conftest.$ac_ext ;;
6422esac
6423fi
6424
6425
6426		CFLAGS="$xorg_testset_save_CFLAGS"
6427
6428		eval supported=\$$cacheid
6429		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6430printf "%s\n" "$supported" >&6; }
6431		if test "$supported" = "yes" ; then
6432			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6433			found="yes"
6434		fi
6435	fi
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451xorg_testset_save_CFLAGS="$CFLAGS"
6452
6453if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6454	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6455	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6456printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6457if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6458then :
6459  printf %s "(cached) " >&6
6460else case e in #(
6461  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462/* end confdefs.h.  */
6463int i;
6464_ACEOF
6465if ac_fn_c_try_compile "$LINENO"
6466then :
6467  xorg_cv_cc_flag_unknown_warning_option=yes
6468else case e in #(
6469  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6470esac
6471fi
6472rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6473esac
6474fi
6475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6476printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6477	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6478	CFLAGS="$xorg_testset_save_CFLAGS"
6479fi
6480
6481if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6482	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6483		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6484	fi
6485	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6486	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6487printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6488if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6489then :
6490  printf %s "(cached) " >&6
6491else case e in #(
6492  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6493/* end confdefs.h.  */
6494int i;
6495_ACEOF
6496if ac_fn_c_try_compile "$LINENO"
6497then :
6498  xorg_cv_cc_flag_unused_command_line_argument=yes
6499else case e in #(
6500  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6501esac
6502fi
6503rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6504esac
6505fi
6506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6507printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6508	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6509	CFLAGS="$xorg_testset_save_CFLAGS"
6510fi
6511
6512found="no"
6513
6514	if test $found = "no" ; then
6515		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6516			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6517		fi
6518
6519		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6520			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6521		fi
6522
6523		CFLAGS="$CFLAGS -Wuninitialized"
6524
6525		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6526printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6527		cacheid=xorg_cv_cc_flag__Wuninitialized
6528		if eval test \${$cacheid+y}
6529then :
6530  printf %s "(cached) " >&6
6531else case e in #(
6532  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6533/* end confdefs.h.  */
6534int i;
6535int
6536main (void)
6537{
6538
6539  ;
6540  return 0;
6541}
6542_ACEOF
6543if ac_fn_c_try_link "$LINENO"
6544then :
6545  eval $cacheid=yes
6546else case e in #(
6547  e) eval $cacheid=no ;;
6548esac
6549fi
6550rm -f core conftest.err conftest.$ac_objext conftest.beam \
6551    conftest$ac_exeext conftest.$ac_ext ;;
6552esac
6553fi
6554
6555
6556		CFLAGS="$xorg_testset_save_CFLAGS"
6557
6558		eval supported=\$$cacheid
6559		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6560printf "%s\n" "$supported" >&6; }
6561		if test "$supported" = "yes" ; then
6562			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6563			found="yes"
6564		fi
6565	fi
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581xorg_testset_save_CFLAGS="$CFLAGS"
6582
6583if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6584	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6585	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6586printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6587if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6588then :
6589  printf %s "(cached) " >&6
6590else case e in #(
6591  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6592/* end confdefs.h.  */
6593int i;
6594_ACEOF
6595if ac_fn_c_try_compile "$LINENO"
6596then :
6597  xorg_cv_cc_flag_unknown_warning_option=yes
6598else case e in #(
6599  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6600esac
6601fi
6602rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6603esac
6604fi
6605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6606printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6607	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6608	CFLAGS="$xorg_testset_save_CFLAGS"
6609fi
6610
6611if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6612	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6613		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6614	fi
6615	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6616	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6617printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6618if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6619then :
6620  printf %s "(cached) " >&6
6621else case e in #(
6622  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6623/* end confdefs.h.  */
6624int i;
6625_ACEOF
6626if ac_fn_c_try_compile "$LINENO"
6627then :
6628  xorg_cv_cc_flag_unused_command_line_argument=yes
6629else case e in #(
6630  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6631esac
6632fi
6633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6634esac
6635fi
6636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6637printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6638	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6639	CFLAGS="$xorg_testset_save_CFLAGS"
6640fi
6641
6642found="no"
6643
6644	if test $found = "no" ; then
6645		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6646			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6647		fi
6648
6649		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6650			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6651		fi
6652
6653		CFLAGS="$CFLAGS -Wshadow"
6654
6655		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6656printf %s "checking if $CC supports -Wshadow... " >&6; }
6657		cacheid=xorg_cv_cc_flag__Wshadow
6658		if eval test \${$cacheid+y}
6659then :
6660  printf %s "(cached) " >&6
6661else case e in #(
6662  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663/* end confdefs.h.  */
6664int i;
6665int
6666main (void)
6667{
6668
6669  ;
6670  return 0;
6671}
6672_ACEOF
6673if ac_fn_c_try_link "$LINENO"
6674then :
6675  eval $cacheid=yes
6676else case e in #(
6677  e) eval $cacheid=no ;;
6678esac
6679fi
6680rm -f core conftest.err conftest.$ac_objext conftest.beam \
6681    conftest$ac_exeext conftest.$ac_ext ;;
6682esac
6683fi
6684
6685
6686		CFLAGS="$xorg_testset_save_CFLAGS"
6687
6688		eval supported=\$$cacheid
6689		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6690printf "%s\n" "$supported" >&6; }
6691		if test "$supported" = "yes" ; then
6692			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6693			found="yes"
6694		fi
6695	fi
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711xorg_testset_save_CFLAGS="$CFLAGS"
6712
6713if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6714	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6715	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6716printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6717if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6718then :
6719  printf %s "(cached) " >&6
6720else case e in #(
6721  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722/* end confdefs.h.  */
6723int i;
6724_ACEOF
6725if ac_fn_c_try_compile "$LINENO"
6726then :
6727  xorg_cv_cc_flag_unknown_warning_option=yes
6728else case e in #(
6729  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6730esac
6731fi
6732rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6733esac
6734fi
6735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6736printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6737	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6738	CFLAGS="$xorg_testset_save_CFLAGS"
6739fi
6740
6741if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6742	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6743		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6744	fi
6745	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6746	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6747printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6748if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6749then :
6750  printf %s "(cached) " >&6
6751else case e in #(
6752  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6753/* end confdefs.h.  */
6754int i;
6755_ACEOF
6756if ac_fn_c_try_compile "$LINENO"
6757then :
6758  xorg_cv_cc_flag_unused_command_line_argument=yes
6759else case e in #(
6760  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6761esac
6762fi
6763rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6764esac
6765fi
6766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6767printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6768	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6769	CFLAGS="$xorg_testset_save_CFLAGS"
6770fi
6771
6772found="no"
6773
6774	if test $found = "no" ; then
6775		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6776			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6777		fi
6778
6779		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6780			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6781		fi
6782
6783		CFLAGS="$CFLAGS -Wmissing-noreturn"
6784
6785		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6786printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6787		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6788		if eval test \${$cacheid+y}
6789then :
6790  printf %s "(cached) " >&6
6791else case e in #(
6792  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6793/* end confdefs.h.  */
6794int i;
6795int
6796main (void)
6797{
6798
6799  ;
6800  return 0;
6801}
6802_ACEOF
6803if ac_fn_c_try_link "$LINENO"
6804then :
6805  eval $cacheid=yes
6806else case e in #(
6807  e) eval $cacheid=no ;;
6808esac
6809fi
6810rm -f core conftest.err conftest.$ac_objext conftest.beam \
6811    conftest$ac_exeext conftest.$ac_ext ;;
6812esac
6813fi
6814
6815
6816		CFLAGS="$xorg_testset_save_CFLAGS"
6817
6818		eval supported=\$$cacheid
6819		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6820printf "%s\n" "$supported" >&6; }
6821		if test "$supported" = "yes" ; then
6822			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6823			found="yes"
6824		fi
6825	fi
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841xorg_testset_save_CFLAGS="$CFLAGS"
6842
6843if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6844	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6845	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6846printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6847if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6848then :
6849  printf %s "(cached) " >&6
6850else case e in #(
6851  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852/* end confdefs.h.  */
6853int i;
6854_ACEOF
6855if ac_fn_c_try_compile "$LINENO"
6856then :
6857  xorg_cv_cc_flag_unknown_warning_option=yes
6858else case e in #(
6859  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6860esac
6861fi
6862rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6863esac
6864fi
6865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6866printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6867	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6868	CFLAGS="$xorg_testset_save_CFLAGS"
6869fi
6870
6871if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6872	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6873		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6874	fi
6875	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6876	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6877printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6878if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6879then :
6880  printf %s "(cached) " >&6
6881else case e in #(
6882  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883/* end confdefs.h.  */
6884int i;
6885_ACEOF
6886if ac_fn_c_try_compile "$LINENO"
6887then :
6888  xorg_cv_cc_flag_unused_command_line_argument=yes
6889else case e in #(
6890  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6891esac
6892fi
6893rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6894esac
6895fi
6896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6897printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6898	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6899	CFLAGS="$xorg_testset_save_CFLAGS"
6900fi
6901
6902found="no"
6903
6904	if test $found = "no" ; then
6905		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6906			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6907		fi
6908
6909		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6910			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6911		fi
6912
6913		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6914
6915		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6916printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6917		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6918		if eval test \${$cacheid+y}
6919then :
6920  printf %s "(cached) " >&6
6921else case e in #(
6922  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923/* end confdefs.h.  */
6924int i;
6925int
6926main (void)
6927{
6928
6929  ;
6930  return 0;
6931}
6932_ACEOF
6933if ac_fn_c_try_link "$LINENO"
6934then :
6935  eval $cacheid=yes
6936else case e in #(
6937  e) eval $cacheid=no ;;
6938esac
6939fi
6940rm -f core conftest.err conftest.$ac_objext conftest.beam \
6941    conftest$ac_exeext conftest.$ac_ext ;;
6942esac
6943fi
6944
6945
6946		CFLAGS="$xorg_testset_save_CFLAGS"
6947
6948		eval supported=\$$cacheid
6949		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6950printf "%s\n" "$supported" >&6; }
6951		if test "$supported" = "yes" ; then
6952			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6953			found="yes"
6954		fi
6955	fi
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971xorg_testset_save_CFLAGS="$CFLAGS"
6972
6973if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6974	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6975	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6976printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6977if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6978then :
6979  printf %s "(cached) " >&6
6980else case e in #(
6981  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982/* end confdefs.h.  */
6983int i;
6984_ACEOF
6985if ac_fn_c_try_compile "$LINENO"
6986then :
6987  xorg_cv_cc_flag_unknown_warning_option=yes
6988else case e in #(
6989  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6990esac
6991fi
6992rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6993esac
6994fi
6995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6996printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6997	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6998	CFLAGS="$xorg_testset_save_CFLAGS"
6999fi
7000
7001if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7002	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7003		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7004	fi
7005	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7006	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7007printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7008if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7009then :
7010  printf %s "(cached) " >&6
7011else case e in #(
7012  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013/* end confdefs.h.  */
7014int i;
7015_ACEOF
7016if ac_fn_c_try_compile "$LINENO"
7017then :
7018  xorg_cv_cc_flag_unused_command_line_argument=yes
7019else case e in #(
7020  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7021esac
7022fi
7023rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7024esac
7025fi
7026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7027printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7028	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7029	CFLAGS="$xorg_testset_save_CFLAGS"
7030fi
7031
7032found="no"
7033
7034	if test $found = "no" ; then
7035		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7036			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7037		fi
7038
7039		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7040			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7041		fi
7042
7043		CFLAGS="$CFLAGS -Wredundant-decls"
7044
7045		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7046printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7047		cacheid=xorg_cv_cc_flag__Wredundant_decls
7048		if eval test \${$cacheid+y}
7049then :
7050  printf %s "(cached) " >&6
7051else case e in #(
7052  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053/* end confdefs.h.  */
7054int i;
7055int
7056main (void)
7057{
7058
7059  ;
7060  return 0;
7061}
7062_ACEOF
7063if ac_fn_c_try_link "$LINENO"
7064then :
7065  eval $cacheid=yes
7066else case e in #(
7067  e) eval $cacheid=no ;;
7068esac
7069fi
7070rm -f core conftest.err conftest.$ac_objext conftest.beam \
7071    conftest$ac_exeext conftest.$ac_ext ;;
7072esac
7073fi
7074
7075
7076		CFLAGS="$xorg_testset_save_CFLAGS"
7077
7078		eval supported=\$$cacheid
7079		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7080printf "%s\n" "$supported" >&6; }
7081		if test "$supported" = "yes" ; then
7082			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7083			found="yes"
7084		fi
7085	fi
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101xorg_testset_save_CFLAGS="$CFLAGS"
7102
7103if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7104	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7105	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7106printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7107if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7108then :
7109  printf %s "(cached) " >&6
7110else case e in #(
7111  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112/* end confdefs.h.  */
7113int i;
7114_ACEOF
7115if ac_fn_c_try_compile "$LINENO"
7116then :
7117  xorg_cv_cc_flag_unknown_warning_option=yes
7118else case e in #(
7119  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7120esac
7121fi
7122rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7123esac
7124fi
7125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7126printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7127	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7128	CFLAGS="$xorg_testset_save_CFLAGS"
7129fi
7130
7131if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7132	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7133		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7134	fi
7135	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7136	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7137printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7138if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7139then :
7140  printf %s "(cached) " >&6
7141else case e in #(
7142  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7143/* end confdefs.h.  */
7144int i;
7145_ACEOF
7146if ac_fn_c_try_compile "$LINENO"
7147then :
7148  xorg_cv_cc_flag_unused_command_line_argument=yes
7149else case e in #(
7150  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7151esac
7152fi
7153rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7154esac
7155fi
7156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7157printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7158	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7159	CFLAGS="$xorg_testset_save_CFLAGS"
7160fi
7161
7162found="no"
7163
7164	if test $found = "no" ; then
7165		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7166			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7167		fi
7168
7169		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7170			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7171		fi
7172
7173		CFLAGS="$CFLAGS -Wlogical-op"
7174
7175		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7176printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7177		cacheid=xorg_cv_cc_flag__Wlogical_op
7178		if eval test \${$cacheid+y}
7179then :
7180  printf %s "(cached) " >&6
7181else case e in #(
7182  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7183/* end confdefs.h.  */
7184int i;
7185int
7186main (void)
7187{
7188
7189  ;
7190  return 0;
7191}
7192_ACEOF
7193if ac_fn_c_try_link "$LINENO"
7194then :
7195  eval $cacheid=yes
7196else case e in #(
7197  e) eval $cacheid=no ;;
7198esac
7199fi
7200rm -f core conftest.err conftest.$ac_objext conftest.beam \
7201    conftest$ac_exeext conftest.$ac_ext ;;
7202esac
7203fi
7204
7205
7206		CFLAGS="$xorg_testset_save_CFLAGS"
7207
7208		eval supported=\$$cacheid
7209		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7210printf "%s\n" "$supported" >&6; }
7211		if test "$supported" = "yes" ; then
7212			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7213			found="yes"
7214		fi
7215	fi
7216
7217
7218
7219# These are currently disabled because they are noisy.  They will be enabled
7220# in the future once the codebase is sufficiently modernized to silence
7221# them.  For now, I don't want them to drown out the other warnings.
7222# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7223# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7224# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7225
7226# Turn some warnings into errors, so we don't accidentally get successful builds
7227# when there are problems that should be fixed.
7228
7229if test "x$SELECTIVE_WERROR" = "xyes" ; then
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243xorg_testset_save_CFLAGS="$CFLAGS"
7244
7245if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7246	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7247	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7248printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7249if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7250then :
7251  printf %s "(cached) " >&6
7252else case e in #(
7253  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7254/* end confdefs.h.  */
7255int i;
7256_ACEOF
7257if ac_fn_c_try_compile "$LINENO"
7258then :
7259  xorg_cv_cc_flag_unknown_warning_option=yes
7260else case e in #(
7261  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7262esac
7263fi
7264rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7265esac
7266fi
7267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7268printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7269	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7270	CFLAGS="$xorg_testset_save_CFLAGS"
7271fi
7272
7273if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7274	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7275		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7276	fi
7277	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7278	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7279printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7280if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7281then :
7282  printf %s "(cached) " >&6
7283else case e in #(
7284  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285/* end confdefs.h.  */
7286int i;
7287_ACEOF
7288if ac_fn_c_try_compile "$LINENO"
7289then :
7290  xorg_cv_cc_flag_unused_command_line_argument=yes
7291else case e in #(
7292  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7293esac
7294fi
7295rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7296esac
7297fi
7298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7299printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7300	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7301	CFLAGS="$xorg_testset_save_CFLAGS"
7302fi
7303
7304found="no"
7305
7306	if test $found = "no" ; then
7307		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7308			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7309		fi
7310
7311		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7312			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7313		fi
7314
7315		CFLAGS="$CFLAGS -Werror=implicit"
7316
7317		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7318printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7319		cacheid=xorg_cv_cc_flag__Werror_implicit
7320		if eval test \${$cacheid+y}
7321then :
7322  printf %s "(cached) " >&6
7323else case e in #(
7324  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325/* end confdefs.h.  */
7326int i;
7327int
7328main (void)
7329{
7330
7331  ;
7332  return 0;
7333}
7334_ACEOF
7335if ac_fn_c_try_link "$LINENO"
7336then :
7337  eval $cacheid=yes
7338else case e in #(
7339  e) eval $cacheid=no ;;
7340esac
7341fi
7342rm -f core conftest.err conftest.$ac_objext conftest.beam \
7343    conftest$ac_exeext conftest.$ac_ext ;;
7344esac
7345fi
7346
7347
7348		CFLAGS="$xorg_testset_save_CFLAGS"
7349
7350		eval supported=\$$cacheid
7351		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7352printf "%s\n" "$supported" >&6; }
7353		if test "$supported" = "yes" ; then
7354			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7355			found="yes"
7356		fi
7357	fi
7358
7359	if test $found = "no" ; then
7360		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7361			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7362		fi
7363
7364		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7365			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7366		fi
7367
7368		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7369
7370		{ 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
7371printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7372		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7373		if eval test \${$cacheid+y}
7374then :
7375  printf %s "(cached) " >&6
7376else case e in #(
7377  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378/* end confdefs.h.  */
7379int i;
7380int
7381main (void)
7382{
7383
7384  ;
7385  return 0;
7386}
7387_ACEOF
7388if ac_fn_c_try_link "$LINENO"
7389then :
7390  eval $cacheid=yes
7391else case e in #(
7392  e) eval $cacheid=no ;;
7393esac
7394fi
7395rm -f core conftest.err conftest.$ac_objext conftest.beam \
7396    conftest$ac_exeext conftest.$ac_ext ;;
7397esac
7398fi
7399
7400
7401		CFLAGS="$xorg_testset_save_CFLAGS"
7402
7403		eval supported=\$$cacheid
7404		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7405printf "%s\n" "$supported" >&6; }
7406		if test "$supported" = "yes" ; then
7407			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7408			found="yes"
7409		fi
7410	fi
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426xorg_testset_save_CFLAGS="$CFLAGS"
7427
7428if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7429	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7430	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7431printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7432if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7433then :
7434  printf %s "(cached) " >&6
7435else case e in #(
7436  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437/* end confdefs.h.  */
7438int i;
7439_ACEOF
7440if ac_fn_c_try_compile "$LINENO"
7441then :
7442  xorg_cv_cc_flag_unknown_warning_option=yes
7443else case e in #(
7444  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7445esac
7446fi
7447rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7448esac
7449fi
7450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7451printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7452	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7453	CFLAGS="$xorg_testset_save_CFLAGS"
7454fi
7455
7456if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7457	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7458		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7459	fi
7460	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7461	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7462printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7463if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7464then :
7465  printf %s "(cached) " >&6
7466else case e in #(
7467  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468/* end confdefs.h.  */
7469int i;
7470_ACEOF
7471if ac_fn_c_try_compile "$LINENO"
7472then :
7473  xorg_cv_cc_flag_unused_command_line_argument=yes
7474else case e in #(
7475  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7476esac
7477fi
7478rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7479esac
7480fi
7481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7482printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7483	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7484	CFLAGS="$xorg_testset_save_CFLAGS"
7485fi
7486
7487found="no"
7488
7489	if test $found = "no" ; then
7490		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7491			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7492		fi
7493
7494		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7495			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7496		fi
7497
7498		CFLAGS="$CFLAGS -Werror=nonnull"
7499
7500		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7501printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7502		cacheid=xorg_cv_cc_flag__Werror_nonnull
7503		if eval test \${$cacheid+y}
7504then :
7505  printf %s "(cached) " >&6
7506else case e in #(
7507  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508/* end confdefs.h.  */
7509int i;
7510int
7511main (void)
7512{
7513
7514  ;
7515  return 0;
7516}
7517_ACEOF
7518if ac_fn_c_try_link "$LINENO"
7519then :
7520  eval $cacheid=yes
7521else case e in #(
7522  e) eval $cacheid=no ;;
7523esac
7524fi
7525rm -f core conftest.err conftest.$ac_objext conftest.beam \
7526    conftest$ac_exeext conftest.$ac_ext ;;
7527esac
7528fi
7529
7530
7531		CFLAGS="$xorg_testset_save_CFLAGS"
7532
7533		eval supported=\$$cacheid
7534		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7535printf "%s\n" "$supported" >&6; }
7536		if test "$supported" = "yes" ; then
7537			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7538			found="yes"
7539		fi
7540	fi
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556xorg_testset_save_CFLAGS="$CFLAGS"
7557
7558if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7559	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7560	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7561printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7562if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7563then :
7564  printf %s "(cached) " >&6
7565else case e in #(
7566  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7567/* end confdefs.h.  */
7568int i;
7569_ACEOF
7570if ac_fn_c_try_compile "$LINENO"
7571then :
7572  xorg_cv_cc_flag_unknown_warning_option=yes
7573else case e in #(
7574  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7575esac
7576fi
7577rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7578esac
7579fi
7580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7581printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7582	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7583	CFLAGS="$xorg_testset_save_CFLAGS"
7584fi
7585
7586if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7587	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7588		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7589	fi
7590	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7591	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7592printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7593if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7594then :
7595  printf %s "(cached) " >&6
7596else case e in #(
7597  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7598/* end confdefs.h.  */
7599int i;
7600_ACEOF
7601if ac_fn_c_try_compile "$LINENO"
7602then :
7603  xorg_cv_cc_flag_unused_command_line_argument=yes
7604else case e in #(
7605  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7606esac
7607fi
7608rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7609esac
7610fi
7611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7612printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7613	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7614	CFLAGS="$xorg_testset_save_CFLAGS"
7615fi
7616
7617found="no"
7618
7619	if test $found = "no" ; then
7620		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7621			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7622		fi
7623
7624		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7625			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7626		fi
7627
7628		CFLAGS="$CFLAGS -Werror=init-self"
7629
7630		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7631printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7632		cacheid=xorg_cv_cc_flag__Werror_init_self
7633		if eval test \${$cacheid+y}
7634then :
7635  printf %s "(cached) " >&6
7636else case e in #(
7637  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638/* end confdefs.h.  */
7639int i;
7640int
7641main (void)
7642{
7643
7644  ;
7645  return 0;
7646}
7647_ACEOF
7648if ac_fn_c_try_link "$LINENO"
7649then :
7650  eval $cacheid=yes
7651else case e in #(
7652  e) eval $cacheid=no ;;
7653esac
7654fi
7655rm -f core conftest.err conftest.$ac_objext conftest.beam \
7656    conftest$ac_exeext conftest.$ac_ext ;;
7657esac
7658fi
7659
7660
7661		CFLAGS="$xorg_testset_save_CFLAGS"
7662
7663		eval supported=\$$cacheid
7664		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7665printf "%s\n" "$supported" >&6; }
7666		if test "$supported" = "yes" ; then
7667			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7668			found="yes"
7669		fi
7670	fi
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686xorg_testset_save_CFLAGS="$CFLAGS"
7687
7688if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7689	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7690	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7691printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7692if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7693then :
7694  printf %s "(cached) " >&6
7695else case e in #(
7696  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697/* end confdefs.h.  */
7698int i;
7699_ACEOF
7700if ac_fn_c_try_compile "$LINENO"
7701then :
7702  xorg_cv_cc_flag_unknown_warning_option=yes
7703else case e in #(
7704  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7705esac
7706fi
7707rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7708esac
7709fi
7710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7711printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7712	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7713	CFLAGS="$xorg_testset_save_CFLAGS"
7714fi
7715
7716if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7717	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7718		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7719	fi
7720	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7721	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7722printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7723if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7724then :
7725  printf %s "(cached) " >&6
7726else case e in #(
7727  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7728/* end confdefs.h.  */
7729int i;
7730_ACEOF
7731if ac_fn_c_try_compile "$LINENO"
7732then :
7733  xorg_cv_cc_flag_unused_command_line_argument=yes
7734else case e in #(
7735  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7736esac
7737fi
7738rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7739esac
7740fi
7741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7742printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7743	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7744	CFLAGS="$xorg_testset_save_CFLAGS"
7745fi
7746
7747found="no"
7748
7749	if test $found = "no" ; then
7750		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7751			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7752		fi
7753
7754		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7755			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7756		fi
7757
7758		CFLAGS="$CFLAGS -Werror=main"
7759
7760		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7761printf %s "checking if $CC supports -Werror=main... " >&6; }
7762		cacheid=xorg_cv_cc_flag__Werror_main
7763		if eval test \${$cacheid+y}
7764then :
7765  printf %s "(cached) " >&6
7766else case e in #(
7767  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7768/* end confdefs.h.  */
7769int i;
7770int
7771main (void)
7772{
7773
7774  ;
7775  return 0;
7776}
7777_ACEOF
7778if ac_fn_c_try_link "$LINENO"
7779then :
7780  eval $cacheid=yes
7781else case e in #(
7782  e) eval $cacheid=no ;;
7783esac
7784fi
7785rm -f core conftest.err conftest.$ac_objext conftest.beam \
7786    conftest$ac_exeext conftest.$ac_ext ;;
7787esac
7788fi
7789
7790
7791		CFLAGS="$xorg_testset_save_CFLAGS"
7792
7793		eval supported=\$$cacheid
7794		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7795printf "%s\n" "$supported" >&6; }
7796		if test "$supported" = "yes" ; then
7797			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7798			found="yes"
7799		fi
7800	fi
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816xorg_testset_save_CFLAGS="$CFLAGS"
7817
7818if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7819	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7820	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7821printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7822if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7823then :
7824  printf %s "(cached) " >&6
7825else case e in #(
7826  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827/* end confdefs.h.  */
7828int i;
7829_ACEOF
7830if ac_fn_c_try_compile "$LINENO"
7831then :
7832  xorg_cv_cc_flag_unknown_warning_option=yes
7833else case e in #(
7834  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7835esac
7836fi
7837rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7838esac
7839fi
7840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7841printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7842	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7843	CFLAGS="$xorg_testset_save_CFLAGS"
7844fi
7845
7846if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7847	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7848		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7849	fi
7850	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7851	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7852printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7853if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7854then :
7855  printf %s "(cached) " >&6
7856else case e in #(
7857  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7858/* end confdefs.h.  */
7859int i;
7860_ACEOF
7861if ac_fn_c_try_compile "$LINENO"
7862then :
7863  xorg_cv_cc_flag_unused_command_line_argument=yes
7864else case e in #(
7865  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7866esac
7867fi
7868rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7869esac
7870fi
7871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7872printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7873	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7874	CFLAGS="$xorg_testset_save_CFLAGS"
7875fi
7876
7877found="no"
7878
7879	if test $found = "no" ; then
7880		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7881			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7882		fi
7883
7884		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7885			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7886		fi
7887
7888		CFLAGS="$CFLAGS -Werror=missing-braces"
7889
7890		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7891printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7892		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7893		if eval test \${$cacheid+y}
7894then :
7895  printf %s "(cached) " >&6
7896else case e in #(
7897  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898/* end confdefs.h.  */
7899int i;
7900int
7901main (void)
7902{
7903
7904  ;
7905  return 0;
7906}
7907_ACEOF
7908if ac_fn_c_try_link "$LINENO"
7909then :
7910  eval $cacheid=yes
7911else case e in #(
7912  e) eval $cacheid=no ;;
7913esac
7914fi
7915rm -f core conftest.err conftest.$ac_objext conftest.beam \
7916    conftest$ac_exeext conftest.$ac_ext ;;
7917esac
7918fi
7919
7920
7921		CFLAGS="$xorg_testset_save_CFLAGS"
7922
7923		eval supported=\$$cacheid
7924		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7925printf "%s\n" "$supported" >&6; }
7926		if test "$supported" = "yes" ; then
7927			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7928			found="yes"
7929		fi
7930	fi
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946xorg_testset_save_CFLAGS="$CFLAGS"
7947
7948if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7949	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7950	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7951printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7952if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7953then :
7954  printf %s "(cached) " >&6
7955else case e in #(
7956  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957/* end confdefs.h.  */
7958int i;
7959_ACEOF
7960if ac_fn_c_try_compile "$LINENO"
7961then :
7962  xorg_cv_cc_flag_unknown_warning_option=yes
7963else case e in #(
7964  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7965esac
7966fi
7967rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7968esac
7969fi
7970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7971printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7972	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7973	CFLAGS="$xorg_testset_save_CFLAGS"
7974fi
7975
7976if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7977	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7978		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7979	fi
7980	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7981	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7982printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7983if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7984then :
7985  printf %s "(cached) " >&6
7986else case e in #(
7987  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7988/* end confdefs.h.  */
7989int i;
7990_ACEOF
7991if ac_fn_c_try_compile "$LINENO"
7992then :
7993  xorg_cv_cc_flag_unused_command_line_argument=yes
7994else case e in #(
7995  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7996esac
7997fi
7998rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7999esac
8000fi
8001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8002printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8003	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8004	CFLAGS="$xorg_testset_save_CFLAGS"
8005fi
8006
8007found="no"
8008
8009	if test $found = "no" ; then
8010		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8011			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8012		fi
8013
8014		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8015			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8016		fi
8017
8018		CFLAGS="$CFLAGS -Werror=sequence-point"
8019
8020		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8021printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8022		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8023		if eval test \${$cacheid+y}
8024then :
8025  printf %s "(cached) " >&6
8026else case e in #(
8027  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8028/* end confdefs.h.  */
8029int i;
8030int
8031main (void)
8032{
8033
8034  ;
8035  return 0;
8036}
8037_ACEOF
8038if ac_fn_c_try_link "$LINENO"
8039then :
8040  eval $cacheid=yes
8041else case e in #(
8042  e) eval $cacheid=no ;;
8043esac
8044fi
8045rm -f core conftest.err conftest.$ac_objext conftest.beam \
8046    conftest$ac_exeext conftest.$ac_ext ;;
8047esac
8048fi
8049
8050
8051		CFLAGS="$xorg_testset_save_CFLAGS"
8052
8053		eval supported=\$$cacheid
8054		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8055printf "%s\n" "$supported" >&6; }
8056		if test "$supported" = "yes" ; then
8057			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8058			found="yes"
8059		fi
8060	fi
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076xorg_testset_save_CFLAGS="$CFLAGS"
8077
8078if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8079	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8080	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8081printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8082if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8083then :
8084  printf %s "(cached) " >&6
8085else case e in #(
8086  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8087/* end confdefs.h.  */
8088int i;
8089_ACEOF
8090if ac_fn_c_try_compile "$LINENO"
8091then :
8092  xorg_cv_cc_flag_unknown_warning_option=yes
8093else case e in #(
8094  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8095esac
8096fi
8097rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8098esac
8099fi
8100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8101printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8102	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8103	CFLAGS="$xorg_testset_save_CFLAGS"
8104fi
8105
8106if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8107	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8108		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8109	fi
8110	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8111	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8112printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8113if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8114then :
8115  printf %s "(cached) " >&6
8116else case e in #(
8117  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8118/* end confdefs.h.  */
8119int i;
8120_ACEOF
8121if ac_fn_c_try_compile "$LINENO"
8122then :
8123  xorg_cv_cc_flag_unused_command_line_argument=yes
8124else case e in #(
8125  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8126esac
8127fi
8128rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8129esac
8130fi
8131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8132printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8133	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8134	CFLAGS="$xorg_testset_save_CFLAGS"
8135fi
8136
8137found="no"
8138
8139	if test $found = "no" ; then
8140		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8141			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8142		fi
8143
8144		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8145			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8146		fi
8147
8148		CFLAGS="$CFLAGS -Werror=return-type"
8149
8150		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8151printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8152		cacheid=xorg_cv_cc_flag__Werror_return_type
8153		if eval test \${$cacheid+y}
8154then :
8155  printf %s "(cached) " >&6
8156else case e in #(
8157  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158/* end confdefs.h.  */
8159int i;
8160int
8161main (void)
8162{
8163
8164  ;
8165  return 0;
8166}
8167_ACEOF
8168if ac_fn_c_try_link "$LINENO"
8169then :
8170  eval $cacheid=yes
8171else case e in #(
8172  e) eval $cacheid=no ;;
8173esac
8174fi
8175rm -f core conftest.err conftest.$ac_objext conftest.beam \
8176    conftest$ac_exeext conftest.$ac_ext ;;
8177esac
8178fi
8179
8180
8181		CFLAGS="$xorg_testset_save_CFLAGS"
8182
8183		eval supported=\$$cacheid
8184		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8185printf "%s\n" "$supported" >&6; }
8186		if test "$supported" = "yes" ; then
8187			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8188			found="yes"
8189		fi
8190	fi
8191
8192	if test $found = "no" ; then
8193		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8194			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8195		fi
8196
8197		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8198			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8199		fi
8200
8201		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8202
8203		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8204printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8205		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8206		if eval test \${$cacheid+y}
8207then :
8208  printf %s "(cached) " >&6
8209else case e in #(
8210  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8211/* end confdefs.h.  */
8212int i;
8213int
8214main (void)
8215{
8216
8217  ;
8218  return 0;
8219}
8220_ACEOF
8221if ac_fn_c_try_link "$LINENO"
8222then :
8223  eval $cacheid=yes
8224else case e in #(
8225  e) eval $cacheid=no ;;
8226esac
8227fi
8228rm -f core conftest.err conftest.$ac_objext conftest.beam \
8229    conftest$ac_exeext conftest.$ac_ext ;;
8230esac
8231fi
8232
8233
8234		CFLAGS="$xorg_testset_save_CFLAGS"
8235
8236		eval supported=\$$cacheid
8237		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8238printf "%s\n" "$supported" >&6; }
8239		if test "$supported" = "yes" ; then
8240			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8241			found="yes"
8242		fi
8243	fi
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259xorg_testset_save_CFLAGS="$CFLAGS"
8260
8261if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8262	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8263	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8264printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8265if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8266then :
8267  printf %s "(cached) " >&6
8268else case e in #(
8269  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8270/* end confdefs.h.  */
8271int i;
8272_ACEOF
8273if ac_fn_c_try_compile "$LINENO"
8274then :
8275  xorg_cv_cc_flag_unknown_warning_option=yes
8276else case e in #(
8277  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8278esac
8279fi
8280rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8281esac
8282fi
8283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8284printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8285	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8286	CFLAGS="$xorg_testset_save_CFLAGS"
8287fi
8288
8289if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8290	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8291		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8292	fi
8293	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8294	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8295printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8296if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8297then :
8298  printf %s "(cached) " >&6
8299else case e in #(
8300  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8301/* end confdefs.h.  */
8302int i;
8303_ACEOF
8304if ac_fn_c_try_compile "$LINENO"
8305then :
8306  xorg_cv_cc_flag_unused_command_line_argument=yes
8307else case e in #(
8308  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8309esac
8310fi
8311rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8312esac
8313fi
8314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8315printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8316	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8317	CFLAGS="$xorg_testset_save_CFLAGS"
8318fi
8319
8320found="no"
8321
8322	if test $found = "no" ; then
8323		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8324			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8325		fi
8326
8327		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8328			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8329		fi
8330
8331		CFLAGS="$CFLAGS -Werror=trigraphs"
8332
8333		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8334printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8335		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8336		if eval test \${$cacheid+y}
8337then :
8338  printf %s "(cached) " >&6
8339else case e in #(
8340  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8341/* end confdefs.h.  */
8342int i;
8343int
8344main (void)
8345{
8346
8347  ;
8348  return 0;
8349}
8350_ACEOF
8351if ac_fn_c_try_link "$LINENO"
8352then :
8353  eval $cacheid=yes
8354else case e in #(
8355  e) eval $cacheid=no ;;
8356esac
8357fi
8358rm -f core conftest.err conftest.$ac_objext conftest.beam \
8359    conftest$ac_exeext conftest.$ac_ext ;;
8360esac
8361fi
8362
8363
8364		CFLAGS="$xorg_testset_save_CFLAGS"
8365
8366		eval supported=\$$cacheid
8367		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8368printf "%s\n" "$supported" >&6; }
8369		if test "$supported" = "yes" ; then
8370			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8371			found="yes"
8372		fi
8373	fi
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389xorg_testset_save_CFLAGS="$CFLAGS"
8390
8391if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8392	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8393	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8394printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8395if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8396then :
8397  printf %s "(cached) " >&6
8398else case e in #(
8399  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8400/* end confdefs.h.  */
8401int i;
8402_ACEOF
8403if ac_fn_c_try_compile "$LINENO"
8404then :
8405  xorg_cv_cc_flag_unknown_warning_option=yes
8406else case e in #(
8407  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8408esac
8409fi
8410rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8411esac
8412fi
8413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8414printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8415	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8416	CFLAGS="$xorg_testset_save_CFLAGS"
8417fi
8418
8419if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8420	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8421		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8422	fi
8423	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8424	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8425printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8426if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8427then :
8428  printf %s "(cached) " >&6
8429else case e in #(
8430  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8431/* end confdefs.h.  */
8432int i;
8433_ACEOF
8434if ac_fn_c_try_compile "$LINENO"
8435then :
8436  xorg_cv_cc_flag_unused_command_line_argument=yes
8437else case e in #(
8438  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8439esac
8440fi
8441rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8442esac
8443fi
8444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8445printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8446	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8447	CFLAGS="$xorg_testset_save_CFLAGS"
8448fi
8449
8450found="no"
8451
8452	if test $found = "no" ; then
8453		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8454			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8455		fi
8456
8457		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8458			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8459		fi
8460
8461		CFLAGS="$CFLAGS -Werror=array-bounds"
8462
8463		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8464printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8465		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8466		if eval test \${$cacheid+y}
8467then :
8468  printf %s "(cached) " >&6
8469else case e in #(
8470  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471/* end confdefs.h.  */
8472int i;
8473int
8474main (void)
8475{
8476
8477  ;
8478  return 0;
8479}
8480_ACEOF
8481if ac_fn_c_try_link "$LINENO"
8482then :
8483  eval $cacheid=yes
8484else case e in #(
8485  e) eval $cacheid=no ;;
8486esac
8487fi
8488rm -f core conftest.err conftest.$ac_objext conftest.beam \
8489    conftest$ac_exeext conftest.$ac_ext ;;
8490esac
8491fi
8492
8493
8494		CFLAGS="$xorg_testset_save_CFLAGS"
8495
8496		eval supported=\$$cacheid
8497		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8498printf "%s\n" "$supported" >&6; }
8499		if test "$supported" = "yes" ; then
8500			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8501			found="yes"
8502		fi
8503	fi
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519xorg_testset_save_CFLAGS="$CFLAGS"
8520
8521if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8522	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8523	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8524printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8525if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8526then :
8527  printf %s "(cached) " >&6
8528else case e in #(
8529  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8530/* end confdefs.h.  */
8531int i;
8532_ACEOF
8533if ac_fn_c_try_compile "$LINENO"
8534then :
8535  xorg_cv_cc_flag_unknown_warning_option=yes
8536else case e in #(
8537  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8538esac
8539fi
8540rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8541esac
8542fi
8543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8544printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8545	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8546	CFLAGS="$xorg_testset_save_CFLAGS"
8547fi
8548
8549if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8550	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8551		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8552	fi
8553	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8554	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8555printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8556if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8557then :
8558  printf %s "(cached) " >&6
8559else case e in #(
8560  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8561/* end confdefs.h.  */
8562int i;
8563_ACEOF
8564if ac_fn_c_try_compile "$LINENO"
8565then :
8566  xorg_cv_cc_flag_unused_command_line_argument=yes
8567else case e in #(
8568  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8569esac
8570fi
8571rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8572esac
8573fi
8574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8575printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8576	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8577	CFLAGS="$xorg_testset_save_CFLAGS"
8578fi
8579
8580found="no"
8581
8582	if test $found = "no" ; then
8583		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8584			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8585		fi
8586
8587		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8588			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8589		fi
8590
8591		CFLAGS="$CFLAGS -Werror=write-strings"
8592
8593		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8594printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8595		cacheid=xorg_cv_cc_flag__Werror_write_strings
8596		if eval test \${$cacheid+y}
8597then :
8598  printf %s "(cached) " >&6
8599else case e in #(
8600  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8601/* end confdefs.h.  */
8602int i;
8603int
8604main (void)
8605{
8606
8607  ;
8608  return 0;
8609}
8610_ACEOF
8611if ac_fn_c_try_link "$LINENO"
8612then :
8613  eval $cacheid=yes
8614else case e in #(
8615  e) eval $cacheid=no ;;
8616esac
8617fi
8618rm -f core conftest.err conftest.$ac_objext conftest.beam \
8619    conftest$ac_exeext conftest.$ac_ext ;;
8620esac
8621fi
8622
8623
8624		CFLAGS="$xorg_testset_save_CFLAGS"
8625
8626		eval supported=\$$cacheid
8627		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8628printf "%s\n" "$supported" >&6; }
8629		if test "$supported" = "yes" ; then
8630			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8631			found="yes"
8632		fi
8633	fi
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649xorg_testset_save_CFLAGS="$CFLAGS"
8650
8651if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8652	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8653	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8654printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8655if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8656then :
8657  printf %s "(cached) " >&6
8658else case e in #(
8659  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8660/* end confdefs.h.  */
8661int i;
8662_ACEOF
8663if ac_fn_c_try_compile "$LINENO"
8664then :
8665  xorg_cv_cc_flag_unknown_warning_option=yes
8666else case e in #(
8667  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8668esac
8669fi
8670rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8671esac
8672fi
8673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8674printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8675	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8676	CFLAGS="$xorg_testset_save_CFLAGS"
8677fi
8678
8679if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8680	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8681		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8682	fi
8683	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8684	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8685printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8686if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8687then :
8688  printf %s "(cached) " >&6
8689else case e in #(
8690  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8691/* end confdefs.h.  */
8692int i;
8693_ACEOF
8694if ac_fn_c_try_compile "$LINENO"
8695then :
8696  xorg_cv_cc_flag_unused_command_line_argument=yes
8697else case e in #(
8698  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8699esac
8700fi
8701rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8702esac
8703fi
8704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8705printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8706	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8707	CFLAGS="$xorg_testset_save_CFLAGS"
8708fi
8709
8710found="no"
8711
8712	if test $found = "no" ; then
8713		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8714			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8715		fi
8716
8717		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8718			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8719		fi
8720
8721		CFLAGS="$CFLAGS -Werror=address"
8722
8723		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8724printf %s "checking if $CC supports -Werror=address... " >&6; }
8725		cacheid=xorg_cv_cc_flag__Werror_address
8726		if eval test \${$cacheid+y}
8727then :
8728  printf %s "(cached) " >&6
8729else case e in #(
8730  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8731/* end confdefs.h.  */
8732int i;
8733int
8734main (void)
8735{
8736
8737  ;
8738  return 0;
8739}
8740_ACEOF
8741if ac_fn_c_try_link "$LINENO"
8742then :
8743  eval $cacheid=yes
8744else case e in #(
8745  e) eval $cacheid=no ;;
8746esac
8747fi
8748rm -f core conftest.err conftest.$ac_objext conftest.beam \
8749    conftest$ac_exeext conftest.$ac_ext ;;
8750esac
8751fi
8752
8753
8754		CFLAGS="$xorg_testset_save_CFLAGS"
8755
8756		eval supported=\$$cacheid
8757		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8758printf "%s\n" "$supported" >&6; }
8759		if test "$supported" = "yes" ; then
8760			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8761			found="yes"
8762		fi
8763	fi
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779xorg_testset_save_CFLAGS="$CFLAGS"
8780
8781if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8782	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8783	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8784printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8785if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8786then :
8787  printf %s "(cached) " >&6
8788else case e in #(
8789  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790/* end confdefs.h.  */
8791int i;
8792_ACEOF
8793if ac_fn_c_try_compile "$LINENO"
8794then :
8795  xorg_cv_cc_flag_unknown_warning_option=yes
8796else case e in #(
8797  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8798esac
8799fi
8800rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8801esac
8802fi
8803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8804printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8805	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8806	CFLAGS="$xorg_testset_save_CFLAGS"
8807fi
8808
8809if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8810	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8811		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8812	fi
8813	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8814	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8815printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8816if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8817then :
8818  printf %s "(cached) " >&6
8819else case e in #(
8820  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8821/* end confdefs.h.  */
8822int i;
8823_ACEOF
8824if ac_fn_c_try_compile "$LINENO"
8825then :
8826  xorg_cv_cc_flag_unused_command_line_argument=yes
8827else case e in #(
8828  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8829esac
8830fi
8831rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8832esac
8833fi
8834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8835printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8836	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8837	CFLAGS="$xorg_testset_save_CFLAGS"
8838fi
8839
8840found="no"
8841
8842	if test $found = "no" ; then
8843		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8844			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8845		fi
8846
8847		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8848			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8849		fi
8850
8851		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8852
8853		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8854printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8855		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8856		if eval test \${$cacheid+y}
8857then :
8858  printf %s "(cached) " >&6
8859else case e in #(
8860  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861/* end confdefs.h.  */
8862int i;
8863int
8864main (void)
8865{
8866
8867  ;
8868  return 0;
8869}
8870_ACEOF
8871if ac_fn_c_try_link "$LINENO"
8872then :
8873  eval $cacheid=yes
8874else case e in #(
8875  e) eval $cacheid=no ;;
8876esac
8877fi
8878rm -f core conftest.err conftest.$ac_objext conftest.beam \
8879    conftest$ac_exeext conftest.$ac_ext ;;
8880esac
8881fi
8882
8883
8884		CFLAGS="$xorg_testset_save_CFLAGS"
8885
8886		eval supported=\$$cacheid
8887		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8888printf "%s\n" "$supported" >&6; }
8889		if test "$supported" = "yes" ; then
8890			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8891			found="yes"
8892		fi
8893	fi
8894
8895	if test $found = "no" ; then
8896		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8897			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8898		fi
8899
8900		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8901			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8902		fi
8903
8904		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8905
8906		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8907printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8908		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8909		if eval test \${$cacheid+y}
8910then :
8911  printf %s "(cached) " >&6
8912else case e in #(
8913  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914/* end confdefs.h.  */
8915int i;
8916int
8917main (void)
8918{
8919
8920  ;
8921  return 0;
8922}
8923_ACEOF
8924if ac_fn_c_try_link "$LINENO"
8925then :
8926  eval $cacheid=yes
8927else case e in #(
8928  e) eval $cacheid=no ;;
8929esac
8930fi
8931rm -f core conftest.err conftest.$ac_objext conftest.beam \
8932    conftest$ac_exeext conftest.$ac_ext ;;
8933esac
8934fi
8935
8936
8937		CFLAGS="$xorg_testset_save_CFLAGS"
8938
8939		eval supported=\$$cacheid
8940		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8941printf "%s\n" "$supported" >&6; }
8942		if test "$supported" = "yes" ; then
8943			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8944			found="yes"
8945		fi
8946	fi
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962xorg_testset_save_CFLAGS="$CFLAGS"
8963
8964if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8965	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8966	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8967printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8968if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8969then :
8970  printf %s "(cached) " >&6
8971else case e in #(
8972  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8973/* end confdefs.h.  */
8974int i;
8975_ACEOF
8976if ac_fn_c_try_compile "$LINENO"
8977then :
8978  xorg_cv_cc_flag_unknown_warning_option=yes
8979else case e in #(
8980  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8981esac
8982fi
8983rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8984esac
8985fi
8986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8987printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8988	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8989	CFLAGS="$xorg_testset_save_CFLAGS"
8990fi
8991
8992if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8993	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8994		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8995	fi
8996	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8997	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8998printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8999if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9000then :
9001  printf %s "(cached) " >&6
9002else case e in #(
9003  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004/* end confdefs.h.  */
9005int i;
9006_ACEOF
9007if ac_fn_c_try_compile "$LINENO"
9008then :
9009  xorg_cv_cc_flag_unused_command_line_argument=yes
9010else case e in #(
9011  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9012esac
9013fi
9014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9015esac
9016fi
9017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9018printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9019	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9020	CFLAGS="$xorg_testset_save_CFLAGS"
9021fi
9022
9023found="no"
9024
9025	if test $found = "no" ; then
9026		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9027			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9028		fi
9029
9030		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9031			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9032		fi
9033
9034		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9035
9036		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9037printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9038		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9039		if eval test \${$cacheid+y}
9040then :
9041  printf %s "(cached) " >&6
9042else case e in #(
9043  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044/* end confdefs.h.  */
9045int i;
9046int
9047main (void)
9048{
9049
9050  ;
9051  return 0;
9052}
9053_ACEOF
9054if ac_fn_c_try_link "$LINENO"
9055then :
9056  eval $cacheid=yes
9057else case e in #(
9058  e) eval $cacheid=no ;;
9059esac
9060fi
9061rm -f core conftest.err conftest.$ac_objext conftest.beam \
9062    conftest$ac_exeext conftest.$ac_ext ;;
9063esac
9064fi
9065
9066
9067		CFLAGS="$xorg_testset_save_CFLAGS"
9068
9069		eval supported=\$$cacheid
9070		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9071printf "%s\n" "$supported" >&6; }
9072		if test "$supported" = "yes" ; then
9073			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9074			found="yes"
9075		fi
9076	fi
9077
9078 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9079else
9080{ 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
9081printf "%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;}
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095xorg_testset_save_CFLAGS="$CFLAGS"
9096
9097if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9098	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9099	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9100printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9101if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9102then :
9103  printf %s "(cached) " >&6
9104else case e in #(
9105  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9106/* end confdefs.h.  */
9107int i;
9108_ACEOF
9109if ac_fn_c_try_compile "$LINENO"
9110then :
9111  xorg_cv_cc_flag_unknown_warning_option=yes
9112else case e in #(
9113  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9114esac
9115fi
9116rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9117esac
9118fi
9119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9120printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9121	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9122	CFLAGS="$xorg_testset_save_CFLAGS"
9123fi
9124
9125if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9126	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9127		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9128	fi
9129	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9130	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9131printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9132if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9133then :
9134  printf %s "(cached) " >&6
9135else case e in #(
9136  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9137/* end confdefs.h.  */
9138int i;
9139_ACEOF
9140if ac_fn_c_try_compile "$LINENO"
9141then :
9142  xorg_cv_cc_flag_unused_command_line_argument=yes
9143else case e in #(
9144  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9145esac
9146fi
9147rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9148esac
9149fi
9150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9151printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9152	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9153	CFLAGS="$xorg_testset_save_CFLAGS"
9154fi
9155
9156found="no"
9157
9158	if test $found = "no" ; then
9159		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9160			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9161		fi
9162
9163		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9164			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9165		fi
9166
9167		CFLAGS="$CFLAGS -Wimplicit"
9168
9169		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9170printf %s "checking if $CC supports -Wimplicit... " >&6; }
9171		cacheid=xorg_cv_cc_flag__Wimplicit
9172		if eval test \${$cacheid+y}
9173then :
9174  printf %s "(cached) " >&6
9175else case e in #(
9176  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9177/* end confdefs.h.  */
9178int i;
9179int
9180main (void)
9181{
9182
9183  ;
9184  return 0;
9185}
9186_ACEOF
9187if ac_fn_c_try_link "$LINENO"
9188then :
9189  eval $cacheid=yes
9190else case e in #(
9191  e) eval $cacheid=no ;;
9192esac
9193fi
9194rm -f core conftest.err conftest.$ac_objext conftest.beam \
9195    conftest$ac_exeext conftest.$ac_ext ;;
9196esac
9197fi
9198
9199
9200		CFLAGS="$xorg_testset_save_CFLAGS"
9201
9202		eval supported=\$$cacheid
9203		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9204printf "%s\n" "$supported" >&6; }
9205		if test "$supported" = "yes" ; then
9206			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9207			found="yes"
9208		fi
9209	fi
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225xorg_testset_save_CFLAGS="$CFLAGS"
9226
9227if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9228	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9229	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9230printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9231if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9232then :
9233  printf %s "(cached) " >&6
9234else case e in #(
9235  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9236/* end confdefs.h.  */
9237int i;
9238_ACEOF
9239if ac_fn_c_try_compile "$LINENO"
9240then :
9241  xorg_cv_cc_flag_unknown_warning_option=yes
9242else case e in #(
9243  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9244esac
9245fi
9246rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9247esac
9248fi
9249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9250printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9251	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9252	CFLAGS="$xorg_testset_save_CFLAGS"
9253fi
9254
9255if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9256	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9257		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9258	fi
9259	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9260	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9261printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9262if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9263then :
9264  printf %s "(cached) " >&6
9265else case e in #(
9266  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9267/* end confdefs.h.  */
9268int i;
9269_ACEOF
9270if ac_fn_c_try_compile "$LINENO"
9271then :
9272  xorg_cv_cc_flag_unused_command_line_argument=yes
9273else case e in #(
9274  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9275esac
9276fi
9277rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9278esac
9279fi
9280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9281printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9282	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9283	CFLAGS="$xorg_testset_save_CFLAGS"
9284fi
9285
9286found="no"
9287
9288	if test $found = "no" ; then
9289		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9290			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9291		fi
9292
9293		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9294			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9295		fi
9296
9297		CFLAGS="$CFLAGS -Wnonnull"
9298
9299		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9300printf %s "checking if $CC supports -Wnonnull... " >&6; }
9301		cacheid=xorg_cv_cc_flag__Wnonnull
9302		if eval test \${$cacheid+y}
9303then :
9304  printf %s "(cached) " >&6
9305else case e in #(
9306  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9307/* end confdefs.h.  */
9308int i;
9309int
9310main (void)
9311{
9312
9313  ;
9314  return 0;
9315}
9316_ACEOF
9317if ac_fn_c_try_link "$LINENO"
9318then :
9319  eval $cacheid=yes
9320else case e in #(
9321  e) eval $cacheid=no ;;
9322esac
9323fi
9324rm -f core conftest.err conftest.$ac_objext conftest.beam \
9325    conftest$ac_exeext conftest.$ac_ext ;;
9326esac
9327fi
9328
9329
9330		CFLAGS="$xorg_testset_save_CFLAGS"
9331
9332		eval supported=\$$cacheid
9333		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9334printf "%s\n" "$supported" >&6; }
9335		if test "$supported" = "yes" ; then
9336			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9337			found="yes"
9338		fi
9339	fi
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355xorg_testset_save_CFLAGS="$CFLAGS"
9356
9357if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9358	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9359	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9360printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9361if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9362then :
9363  printf %s "(cached) " >&6
9364else case e in #(
9365  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9366/* end confdefs.h.  */
9367int i;
9368_ACEOF
9369if ac_fn_c_try_compile "$LINENO"
9370then :
9371  xorg_cv_cc_flag_unknown_warning_option=yes
9372else case e in #(
9373  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9374esac
9375fi
9376rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9377esac
9378fi
9379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9380printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9381	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9382	CFLAGS="$xorg_testset_save_CFLAGS"
9383fi
9384
9385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9386	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9387		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9388	fi
9389	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9390	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9391printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9392if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9393then :
9394  printf %s "(cached) " >&6
9395else case e in #(
9396  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9397/* end confdefs.h.  */
9398int i;
9399_ACEOF
9400if ac_fn_c_try_compile "$LINENO"
9401then :
9402  xorg_cv_cc_flag_unused_command_line_argument=yes
9403else case e in #(
9404  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9405esac
9406fi
9407rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9408esac
9409fi
9410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9411printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9412	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9413	CFLAGS="$xorg_testset_save_CFLAGS"
9414fi
9415
9416found="no"
9417
9418	if test $found = "no" ; then
9419		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9420			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9421		fi
9422
9423		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9424			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9425		fi
9426
9427		CFLAGS="$CFLAGS -Winit-self"
9428
9429		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9430printf %s "checking if $CC supports -Winit-self... " >&6; }
9431		cacheid=xorg_cv_cc_flag__Winit_self
9432		if eval test \${$cacheid+y}
9433then :
9434  printf %s "(cached) " >&6
9435else case e in #(
9436  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9437/* end confdefs.h.  */
9438int i;
9439int
9440main (void)
9441{
9442
9443  ;
9444  return 0;
9445}
9446_ACEOF
9447if ac_fn_c_try_link "$LINENO"
9448then :
9449  eval $cacheid=yes
9450else case e in #(
9451  e) eval $cacheid=no ;;
9452esac
9453fi
9454rm -f core conftest.err conftest.$ac_objext conftest.beam \
9455    conftest$ac_exeext conftest.$ac_ext ;;
9456esac
9457fi
9458
9459
9460		CFLAGS="$xorg_testset_save_CFLAGS"
9461
9462		eval supported=\$$cacheid
9463		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9464printf "%s\n" "$supported" >&6; }
9465		if test "$supported" = "yes" ; then
9466			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9467			found="yes"
9468		fi
9469	fi
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485xorg_testset_save_CFLAGS="$CFLAGS"
9486
9487if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9488	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9489	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9490printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9491if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9492then :
9493  printf %s "(cached) " >&6
9494else case e in #(
9495  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9496/* end confdefs.h.  */
9497int i;
9498_ACEOF
9499if ac_fn_c_try_compile "$LINENO"
9500then :
9501  xorg_cv_cc_flag_unknown_warning_option=yes
9502else case e in #(
9503  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9504esac
9505fi
9506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9507esac
9508fi
9509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9510printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9511	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9512	CFLAGS="$xorg_testset_save_CFLAGS"
9513fi
9514
9515if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9516	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9517		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9518	fi
9519	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9520	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9521printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9522if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9523then :
9524  printf %s "(cached) " >&6
9525else case e in #(
9526  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9527/* end confdefs.h.  */
9528int i;
9529_ACEOF
9530if ac_fn_c_try_compile "$LINENO"
9531then :
9532  xorg_cv_cc_flag_unused_command_line_argument=yes
9533else case e in #(
9534  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9535esac
9536fi
9537rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9538esac
9539fi
9540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9541printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9542	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9543	CFLAGS="$xorg_testset_save_CFLAGS"
9544fi
9545
9546found="no"
9547
9548	if test $found = "no" ; then
9549		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9550			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9551		fi
9552
9553		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9554			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9555		fi
9556
9557		CFLAGS="$CFLAGS -Wmain"
9558
9559		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9560printf %s "checking if $CC supports -Wmain... " >&6; }
9561		cacheid=xorg_cv_cc_flag__Wmain
9562		if eval test \${$cacheid+y}
9563then :
9564  printf %s "(cached) " >&6
9565else case e in #(
9566  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567/* end confdefs.h.  */
9568int i;
9569int
9570main (void)
9571{
9572
9573  ;
9574  return 0;
9575}
9576_ACEOF
9577if ac_fn_c_try_link "$LINENO"
9578then :
9579  eval $cacheid=yes
9580else case e in #(
9581  e) eval $cacheid=no ;;
9582esac
9583fi
9584rm -f core conftest.err conftest.$ac_objext conftest.beam \
9585    conftest$ac_exeext conftest.$ac_ext ;;
9586esac
9587fi
9588
9589
9590		CFLAGS="$xorg_testset_save_CFLAGS"
9591
9592		eval supported=\$$cacheid
9593		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9594printf "%s\n" "$supported" >&6; }
9595		if test "$supported" = "yes" ; then
9596			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9597			found="yes"
9598		fi
9599	fi
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615xorg_testset_save_CFLAGS="$CFLAGS"
9616
9617if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9618	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9619	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9620printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9621if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9622then :
9623  printf %s "(cached) " >&6
9624else case e in #(
9625  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9626/* end confdefs.h.  */
9627int i;
9628_ACEOF
9629if ac_fn_c_try_compile "$LINENO"
9630then :
9631  xorg_cv_cc_flag_unknown_warning_option=yes
9632else case e in #(
9633  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9634esac
9635fi
9636rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9637esac
9638fi
9639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9640printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9641	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9642	CFLAGS="$xorg_testset_save_CFLAGS"
9643fi
9644
9645if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9646	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9647		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9648	fi
9649	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9650	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9651printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9652if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9653then :
9654  printf %s "(cached) " >&6
9655else case e in #(
9656  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9657/* end confdefs.h.  */
9658int i;
9659_ACEOF
9660if ac_fn_c_try_compile "$LINENO"
9661then :
9662  xorg_cv_cc_flag_unused_command_line_argument=yes
9663else case e in #(
9664  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9665esac
9666fi
9667rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9668esac
9669fi
9670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9671printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9672	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9673	CFLAGS="$xorg_testset_save_CFLAGS"
9674fi
9675
9676found="no"
9677
9678	if test $found = "no" ; then
9679		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9680			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9681		fi
9682
9683		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9684			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9685		fi
9686
9687		CFLAGS="$CFLAGS -Wmissing-braces"
9688
9689		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9690printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9691		cacheid=xorg_cv_cc_flag__Wmissing_braces
9692		if eval test \${$cacheid+y}
9693then :
9694  printf %s "(cached) " >&6
9695else case e in #(
9696  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9697/* end confdefs.h.  */
9698int i;
9699int
9700main (void)
9701{
9702
9703  ;
9704  return 0;
9705}
9706_ACEOF
9707if ac_fn_c_try_link "$LINENO"
9708then :
9709  eval $cacheid=yes
9710else case e in #(
9711  e) eval $cacheid=no ;;
9712esac
9713fi
9714rm -f core conftest.err conftest.$ac_objext conftest.beam \
9715    conftest$ac_exeext conftest.$ac_ext ;;
9716esac
9717fi
9718
9719
9720		CFLAGS="$xorg_testset_save_CFLAGS"
9721
9722		eval supported=\$$cacheid
9723		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9724printf "%s\n" "$supported" >&6; }
9725		if test "$supported" = "yes" ; then
9726			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9727			found="yes"
9728		fi
9729	fi
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745xorg_testset_save_CFLAGS="$CFLAGS"
9746
9747if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9748	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9749	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9750printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9751if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9752then :
9753  printf %s "(cached) " >&6
9754else case e in #(
9755  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9756/* end confdefs.h.  */
9757int i;
9758_ACEOF
9759if ac_fn_c_try_compile "$LINENO"
9760then :
9761  xorg_cv_cc_flag_unknown_warning_option=yes
9762else case e in #(
9763  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9764esac
9765fi
9766rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9767esac
9768fi
9769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9770printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9771	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9772	CFLAGS="$xorg_testset_save_CFLAGS"
9773fi
9774
9775if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9776	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9777		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9778	fi
9779	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9780	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9781printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9782if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9783then :
9784  printf %s "(cached) " >&6
9785else case e in #(
9786  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9787/* end confdefs.h.  */
9788int i;
9789_ACEOF
9790if ac_fn_c_try_compile "$LINENO"
9791then :
9792  xorg_cv_cc_flag_unused_command_line_argument=yes
9793else case e in #(
9794  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9795esac
9796fi
9797rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9798esac
9799fi
9800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9801printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9802	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9803	CFLAGS="$xorg_testset_save_CFLAGS"
9804fi
9805
9806found="no"
9807
9808	if test $found = "no" ; then
9809		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9810			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9811		fi
9812
9813		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9814			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9815		fi
9816
9817		CFLAGS="$CFLAGS -Wsequence-point"
9818
9819		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9820printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9821		cacheid=xorg_cv_cc_flag__Wsequence_point
9822		if eval test \${$cacheid+y}
9823then :
9824  printf %s "(cached) " >&6
9825else case e in #(
9826  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9827/* end confdefs.h.  */
9828int i;
9829int
9830main (void)
9831{
9832
9833  ;
9834  return 0;
9835}
9836_ACEOF
9837if ac_fn_c_try_link "$LINENO"
9838then :
9839  eval $cacheid=yes
9840else case e in #(
9841  e) eval $cacheid=no ;;
9842esac
9843fi
9844rm -f core conftest.err conftest.$ac_objext conftest.beam \
9845    conftest$ac_exeext conftest.$ac_ext ;;
9846esac
9847fi
9848
9849
9850		CFLAGS="$xorg_testset_save_CFLAGS"
9851
9852		eval supported=\$$cacheid
9853		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9854printf "%s\n" "$supported" >&6; }
9855		if test "$supported" = "yes" ; then
9856			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9857			found="yes"
9858		fi
9859	fi
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875xorg_testset_save_CFLAGS="$CFLAGS"
9876
9877if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9878	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9879	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9880printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9881if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9882then :
9883  printf %s "(cached) " >&6
9884else case e in #(
9885  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9886/* end confdefs.h.  */
9887int i;
9888_ACEOF
9889if ac_fn_c_try_compile "$LINENO"
9890then :
9891  xorg_cv_cc_flag_unknown_warning_option=yes
9892else case e in #(
9893  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9894esac
9895fi
9896rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9897esac
9898fi
9899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9900printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9901	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9902	CFLAGS="$xorg_testset_save_CFLAGS"
9903fi
9904
9905if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9906	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9907		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9908	fi
9909	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9910	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9911printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9912if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9913then :
9914  printf %s "(cached) " >&6
9915else case e in #(
9916  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9917/* end confdefs.h.  */
9918int i;
9919_ACEOF
9920if ac_fn_c_try_compile "$LINENO"
9921then :
9922  xorg_cv_cc_flag_unused_command_line_argument=yes
9923else case e in #(
9924  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9925esac
9926fi
9927rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9928esac
9929fi
9930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9931printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9932	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9933	CFLAGS="$xorg_testset_save_CFLAGS"
9934fi
9935
9936found="no"
9937
9938	if test $found = "no" ; then
9939		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9940			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9941		fi
9942
9943		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9944			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9945		fi
9946
9947		CFLAGS="$CFLAGS -Wreturn-type"
9948
9949		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9950printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9951		cacheid=xorg_cv_cc_flag__Wreturn_type
9952		if eval test \${$cacheid+y}
9953then :
9954  printf %s "(cached) " >&6
9955else case e in #(
9956  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9957/* end confdefs.h.  */
9958int i;
9959int
9960main (void)
9961{
9962
9963  ;
9964  return 0;
9965}
9966_ACEOF
9967if ac_fn_c_try_link "$LINENO"
9968then :
9969  eval $cacheid=yes
9970else case e in #(
9971  e) eval $cacheid=no ;;
9972esac
9973fi
9974rm -f core conftest.err conftest.$ac_objext conftest.beam \
9975    conftest$ac_exeext conftest.$ac_ext ;;
9976esac
9977fi
9978
9979
9980		CFLAGS="$xorg_testset_save_CFLAGS"
9981
9982		eval supported=\$$cacheid
9983		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9984printf "%s\n" "$supported" >&6; }
9985		if test "$supported" = "yes" ; then
9986			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9987			found="yes"
9988		fi
9989	fi
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005xorg_testset_save_CFLAGS="$CFLAGS"
10006
10007if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10008	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10009	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10010printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10011if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10012then :
10013  printf %s "(cached) " >&6
10014else case e in #(
10015  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016/* end confdefs.h.  */
10017int i;
10018_ACEOF
10019if ac_fn_c_try_compile "$LINENO"
10020then :
10021  xorg_cv_cc_flag_unknown_warning_option=yes
10022else case e in #(
10023  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10024esac
10025fi
10026rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10027esac
10028fi
10029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10030printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10031	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10032	CFLAGS="$xorg_testset_save_CFLAGS"
10033fi
10034
10035if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10036	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10037		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10038	fi
10039	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10040	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10041printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10042if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10043then :
10044  printf %s "(cached) " >&6
10045else case e in #(
10046  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10047/* end confdefs.h.  */
10048int i;
10049_ACEOF
10050if ac_fn_c_try_compile "$LINENO"
10051then :
10052  xorg_cv_cc_flag_unused_command_line_argument=yes
10053else case e in #(
10054  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10055esac
10056fi
10057rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10058esac
10059fi
10060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10061printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10062	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10063	CFLAGS="$xorg_testset_save_CFLAGS"
10064fi
10065
10066found="no"
10067
10068	if test $found = "no" ; then
10069		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10070			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10071		fi
10072
10073		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10074			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10075		fi
10076
10077		CFLAGS="$CFLAGS -Wtrigraphs"
10078
10079		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10080printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10081		cacheid=xorg_cv_cc_flag__Wtrigraphs
10082		if eval test \${$cacheid+y}
10083then :
10084  printf %s "(cached) " >&6
10085else case e in #(
10086  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10087/* end confdefs.h.  */
10088int i;
10089int
10090main (void)
10091{
10092
10093  ;
10094  return 0;
10095}
10096_ACEOF
10097if ac_fn_c_try_link "$LINENO"
10098then :
10099  eval $cacheid=yes
10100else case e in #(
10101  e) eval $cacheid=no ;;
10102esac
10103fi
10104rm -f core conftest.err conftest.$ac_objext conftest.beam \
10105    conftest$ac_exeext conftest.$ac_ext ;;
10106esac
10107fi
10108
10109
10110		CFLAGS="$xorg_testset_save_CFLAGS"
10111
10112		eval supported=\$$cacheid
10113		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10114printf "%s\n" "$supported" >&6; }
10115		if test "$supported" = "yes" ; then
10116			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10117			found="yes"
10118		fi
10119	fi
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135xorg_testset_save_CFLAGS="$CFLAGS"
10136
10137if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10138	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10139	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10140printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10141if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10142then :
10143  printf %s "(cached) " >&6
10144else case e in #(
10145  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10146/* end confdefs.h.  */
10147int i;
10148_ACEOF
10149if ac_fn_c_try_compile "$LINENO"
10150then :
10151  xorg_cv_cc_flag_unknown_warning_option=yes
10152else case e in #(
10153  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10154esac
10155fi
10156rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10157esac
10158fi
10159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10160printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10161	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10162	CFLAGS="$xorg_testset_save_CFLAGS"
10163fi
10164
10165if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10166	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10167		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10168	fi
10169	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10170	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10171printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10172if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10173then :
10174  printf %s "(cached) " >&6
10175else case e in #(
10176  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10177/* end confdefs.h.  */
10178int i;
10179_ACEOF
10180if ac_fn_c_try_compile "$LINENO"
10181then :
10182  xorg_cv_cc_flag_unused_command_line_argument=yes
10183else case e in #(
10184  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10185esac
10186fi
10187rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10188esac
10189fi
10190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10191printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10192	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10193	CFLAGS="$xorg_testset_save_CFLAGS"
10194fi
10195
10196found="no"
10197
10198	if test $found = "no" ; then
10199		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10200			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10201		fi
10202
10203		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10204			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10205		fi
10206
10207		CFLAGS="$CFLAGS -Warray-bounds"
10208
10209		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10210printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10211		cacheid=xorg_cv_cc_flag__Warray_bounds
10212		if eval test \${$cacheid+y}
10213then :
10214  printf %s "(cached) " >&6
10215else case e in #(
10216  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217/* end confdefs.h.  */
10218int i;
10219int
10220main (void)
10221{
10222
10223  ;
10224  return 0;
10225}
10226_ACEOF
10227if ac_fn_c_try_link "$LINENO"
10228then :
10229  eval $cacheid=yes
10230else case e in #(
10231  e) eval $cacheid=no ;;
10232esac
10233fi
10234rm -f core conftest.err conftest.$ac_objext conftest.beam \
10235    conftest$ac_exeext conftest.$ac_ext ;;
10236esac
10237fi
10238
10239
10240		CFLAGS="$xorg_testset_save_CFLAGS"
10241
10242		eval supported=\$$cacheid
10243		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10244printf "%s\n" "$supported" >&6; }
10245		if test "$supported" = "yes" ; then
10246			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10247			found="yes"
10248		fi
10249	fi
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265xorg_testset_save_CFLAGS="$CFLAGS"
10266
10267if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10268	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10269	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10270printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10271if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10272then :
10273  printf %s "(cached) " >&6
10274else case e in #(
10275  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10276/* end confdefs.h.  */
10277int i;
10278_ACEOF
10279if ac_fn_c_try_compile "$LINENO"
10280then :
10281  xorg_cv_cc_flag_unknown_warning_option=yes
10282else case e in #(
10283  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10284esac
10285fi
10286rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10287esac
10288fi
10289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10290printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10291	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10292	CFLAGS="$xorg_testset_save_CFLAGS"
10293fi
10294
10295if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10296	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10297		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10298	fi
10299	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10300	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10301printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10302if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10303then :
10304  printf %s "(cached) " >&6
10305else case e in #(
10306  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10307/* end confdefs.h.  */
10308int i;
10309_ACEOF
10310if ac_fn_c_try_compile "$LINENO"
10311then :
10312  xorg_cv_cc_flag_unused_command_line_argument=yes
10313else case e in #(
10314  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10315esac
10316fi
10317rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10318esac
10319fi
10320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10321printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10322	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10323	CFLAGS="$xorg_testset_save_CFLAGS"
10324fi
10325
10326found="no"
10327
10328	if test $found = "no" ; then
10329		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10330			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10331		fi
10332
10333		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10334			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10335		fi
10336
10337		CFLAGS="$CFLAGS -Wwrite-strings"
10338
10339		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10340printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10341		cacheid=xorg_cv_cc_flag__Wwrite_strings
10342		if eval test \${$cacheid+y}
10343then :
10344  printf %s "(cached) " >&6
10345else case e in #(
10346  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10347/* end confdefs.h.  */
10348int i;
10349int
10350main (void)
10351{
10352
10353  ;
10354  return 0;
10355}
10356_ACEOF
10357if ac_fn_c_try_link "$LINENO"
10358then :
10359  eval $cacheid=yes
10360else case e in #(
10361  e) eval $cacheid=no ;;
10362esac
10363fi
10364rm -f core conftest.err conftest.$ac_objext conftest.beam \
10365    conftest$ac_exeext conftest.$ac_ext ;;
10366esac
10367fi
10368
10369
10370		CFLAGS="$xorg_testset_save_CFLAGS"
10371
10372		eval supported=\$$cacheid
10373		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10374printf "%s\n" "$supported" >&6; }
10375		if test "$supported" = "yes" ; then
10376			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10377			found="yes"
10378		fi
10379	fi
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395xorg_testset_save_CFLAGS="$CFLAGS"
10396
10397if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10398	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10399	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10400printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10401if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10402then :
10403  printf %s "(cached) " >&6
10404else case e in #(
10405  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10406/* end confdefs.h.  */
10407int i;
10408_ACEOF
10409if ac_fn_c_try_compile "$LINENO"
10410then :
10411  xorg_cv_cc_flag_unknown_warning_option=yes
10412else case e in #(
10413  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10414esac
10415fi
10416rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10417esac
10418fi
10419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10420printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10421	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10422	CFLAGS="$xorg_testset_save_CFLAGS"
10423fi
10424
10425if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10426	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10427		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10428	fi
10429	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10430	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10431printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10432if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10433then :
10434  printf %s "(cached) " >&6
10435else case e in #(
10436  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10437/* end confdefs.h.  */
10438int i;
10439_ACEOF
10440if ac_fn_c_try_compile "$LINENO"
10441then :
10442  xorg_cv_cc_flag_unused_command_line_argument=yes
10443else case e in #(
10444  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10445esac
10446fi
10447rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10448esac
10449fi
10450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10451printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10452	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10453	CFLAGS="$xorg_testset_save_CFLAGS"
10454fi
10455
10456found="no"
10457
10458	if test $found = "no" ; then
10459		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10460			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10461		fi
10462
10463		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10464			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10465		fi
10466
10467		CFLAGS="$CFLAGS -Waddress"
10468
10469		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10470printf %s "checking if $CC supports -Waddress... " >&6; }
10471		cacheid=xorg_cv_cc_flag__Waddress
10472		if eval test \${$cacheid+y}
10473then :
10474  printf %s "(cached) " >&6
10475else case e in #(
10476  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10477/* end confdefs.h.  */
10478int i;
10479int
10480main (void)
10481{
10482
10483  ;
10484  return 0;
10485}
10486_ACEOF
10487if ac_fn_c_try_link "$LINENO"
10488then :
10489  eval $cacheid=yes
10490else case e in #(
10491  e) eval $cacheid=no ;;
10492esac
10493fi
10494rm -f core conftest.err conftest.$ac_objext conftest.beam \
10495    conftest$ac_exeext conftest.$ac_ext ;;
10496esac
10497fi
10498
10499
10500		CFLAGS="$xorg_testset_save_CFLAGS"
10501
10502		eval supported=\$$cacheid
10503		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10504printf "%s\n" "$supported" >&6; }
10505		if test "$supported" = "yes" ; then
10506			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10507			found="yes"
10508		fi
10509	fi
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525xorg_testset_save_CFLAGS="$CFLAGS"
10526
10527if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10528	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10529	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10530printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10531if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10532then :
10533  printf %s "(cached) " >&6
10534else case e in #(
10535  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10536/* end confdefs.h.  */
10537int i;
10538_ACEOF
10539if ac_fn_c_try_compile "$LINENO"
10540then :
10541  xorg_cv_cc_flag_unknown_warning_option=yes
10542else case e in #(
10543  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10544esac
10545fi
10546rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10547esac
10548fi
10549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10550printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10551	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10552	CFLAGS="$xorg_testset_save_CFLAGS"
10553fi
10554
10555if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10556	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10557		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10558	fi
10559	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10560	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10561printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10562if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10563then :
10564  printf %s "(cached) " >&6
10565else case e in #(
10566  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10567/* end confdefs.h.  */
10568int i;
10569_ACEOF
10570if ac_fn_c_try_compile "$LINENO"
10571then :
10572  xorg_cv_cc_flag_unused_command_line_argument=yes
10573else case e in #(
10574  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10575esac
10576fi
10577rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10578esac
10579fi
10580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10581printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10582	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10583	CFLAGS="$xorg_testset_save_CFLAGS"
10584fi
10585
10586found="no"
10587
10588	if test $found = "no" ; then
10589		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10590			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10591		fi
10592
10593		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10594			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10595		fi
10596
10597		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10598
10599		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10600printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10601		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10602		if eval test \${$cacheid+y}
10603then :
10604  printf %s "(cached) " >&6
10605else case e in #(
10606  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607/* end confdefs.h.  */
10608int i;
10609int
10610main (void)
10611{
10612
10613  ;
10614  return 0;
10615}
10616_ACEOF
10617if ac_fn_c_try_link "$LINENO"
10618then :
10619  eval $cacheid=yes
10620else case e in #(
10621  e) eval $cacheid=no ;;
10622esac
10623fi
10624rm -f core conftest.err conftest.$ac_objext conftest.beam \
10625    conftest$ac_exeext conftest.$ac_ext ;;
10626esac
10627fi
10628
10629
10630		CFLAGS="$xorg_testset_save_CFLAGS"
10631
10632		eval supported=\$$cacheid
10633		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10634printf "%s\n" "$supported" >&6; }
10635		if test "$supported" = "yes" ; then
10636			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10637			found="yes"
10638		fi
10639	fi
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655xorg_testset_save_CFLAGS="$CFLAGS"
10656
10657if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10658	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10659	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10660printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10661if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10662then :
10663  printf %s "(cached) " >&6
10664else case e in #(
10665  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10666/* end confdefs.h.  */
10667int i;
10668_ACEOF
10669if ac_fn_c_try_compile "$LINENO"
10670then :
10671  xorg_cv_cc_flag_unknown_warning_option=yes
10672else case e in #(
10673  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10674esac
10675fi
10676rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10677esac
10678fi
10679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10680printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10681	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10682	CFLAGS="$xorg_testset_save_CFLAGS"
10683fi
10684
10685if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10686	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10687		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10688	fi
10689	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10690	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10691printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10692if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10693then :
10694  printf %s "(cached) " >&6
10695else case e in #(
10696  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10697/* end confdefs.h.  */
10698int i;
10699_ACEOF
10700if ac_fn_c_try_compile "$LINENO"
10701then :
10702  xorg_cv_cc_flag_unused_command_line_argument=yes
10703else case e in #(
10704  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10705esac
10706fi
10707rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10708esac
10709fi
10710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10711printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10712	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10713	CFLAGS="$xorg_testset_save_CFLAGS"
10714fi
10715
10716found="no"
10717
10718	if test $found = "no" ; then
10719		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10720			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10721		fi
10722
10723		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10724			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10725		fi
10726
10727		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10728
10729		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10730printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10731		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10732		if eval test \${$cacheid+y}
10733then :
10734  printf %s "(cached) " >&6
10735else case e in #(
10736  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10737/* end confdefs.h.  */
10738int i;
10739int
10740main (void)
10741{
10742
10743  ;
10744  return 0;
10745}
10746_ACEOF
10747if ac_fn_c_try_link "$LINENO"
10748then :
10749  eval $cacheid=yes
10750else case e in #(
10751  e) eval $cacheid=no ;;
10752esac
10753fi
10754rm -f core conftest.err conftest.$ac_objext conftest.beam \
10755    conftest$ac_exeext conftest.$ac_ext ;;
10756esac
10757fi
10758
10759
10760		CFLAGS="$xorg_testset_save_CFLAGS"
10761
10762		eval supported=\$$cacheid
10763		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10764printf "%s\n" "$supported" >&6; }
10765		if test "$supported" = "yes" ; then
10766			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10767			found="yes"
10768		fi
10769	fi
10770
10771
10772fi
10773
10774
10775
10776
10777
10778
10779
10780		CWARNFLAGS="$BASE_CFLAGS"
10781		if  test "x$GCC" = xyes ; then
10782		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10783		fi
10784
10785
10786
10787
10788
10789
10790
10791
10792# Check whether --enable-strict-compilation was given.
10793if test ${enable_strict_compilation+y}
10794then :
10795  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10796else case e in #(
10797  e) STRICT_COMPILE=no ;;
10798esac
10799fi
10800
10801
10802
10803
10804
10805
10806STRICT_CFLAGS=""
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820xorg_testset_save_CFLAGS="$CFLAGS"
10821
10822if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10823	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10824	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10825printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10826if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10827then :
10828  printf %s "(cached) " >&6
10829else case e in #(
10830  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831/* end confdefs.h.  */
10832int i;
10833_ACEOF
10834if ac_fn_c_try_compile "$LINENO"
10835then :
10836  xorg_cv_cc_flag_unknown_warning_option=yes
10837else case e in #(
10838  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10839esac
10840fi
10841rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10842esac
10843fi
10844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10845printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10846	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10847	CFLAGS="$xorg_testset_save_CFLAGS"
10848fi
10849
10850if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10851	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10852		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10853	fi
10854	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10855	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10856printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10857if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10858then :
10859  printf %s "(cached) " >&6
10860else case e in #(
10861  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10862/* end confdefs.h.  */
10863int i;
10864_ACEOF
10865if ac_fn_c_try_compile "$LINENO"
10866then :
10867  xorg_cv_cc_flag_unused_command_line_argument=yes
10868else case e in #(
10869  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10870esac
10871fi
10872rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10873esac
10874fi
10875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10876printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10877	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10878	CFLAGS="$xorg_testset_save_CFLAGS"
10879fi
10880
10881found="no"
10882
10883	if test $found = "no" ; then
10884		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10885			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10886		fi
10887
10888		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10889			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10890		fi
10891
10892		CFLAGS="$CFLAGS -pedantic"
10893
10894		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10895printf %s "checking if $CC supports -pedantic... " >&6; }
10896		cacheid=xorg_cv_cc_flag__pedantic
10897		if eval test \${$cacheid+y}
10898then :
10899  printf %s "(cached) " >&6
10900else case e in #(
10901  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10902/* end confdefs.h.  */
10903int i;
10904int
10905main (void)
10906{
10907
10908  ;
10909  return 0;
10910}
10911_ACEOF
10912if ac_fn_c_try_link "$LINENO"
10913then :
10914  eval $cacheid=yes
10915else case e in #(
10916  e) eval $cacheid=no ;;
10917esac
10918fi
10919rm -f core conftest.err conftest.$ac_objext conftest.beam \
10920    conftest$ac_exeext conftest.$ac_ext ;;
10921esac
10922fi
10923
10924
10925		CFLAGS="$xorg_testset_save_CFLAGS"
10926
10927		eval supported=\$$cacheid
10928		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10929printf "%s\n" "$supported" >&6; }
10930		if test "$supported" = "yes" ; then
10931			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10932			found="yes"
10933		fi
10934	fi
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950xorg_testset_save_CFLAGS="$CFLAGS"
10951
10952if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10953	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10954	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10955printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10956if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10957then :
10958  printf %s "(cached) " >&6
10959else case e in #(
10960  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10961/* end confdefs.h.  */
10962int i;
10963_ACEOF
10964if ac_fn_c_try_compile "$LINENO"
10965then :
10966  xorg_cv_cc_flag_unknown_warning_option=yes
10967else case e in #(
10968  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10969esac
10970fi
10971rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10972esac
10973fi
10974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10975printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10976	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10977	CFLAGS="$xorg_testset_save_CFLAGS"
10978fi
10979
10980if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10981	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10982		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10983	fi
10984	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10985	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10986printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10987if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10988then :
10989  printf %s "(cached) " >&6
10990else case e in #(
10991  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10992/* end confdefs.h.  */
10993int i;
10994_ACEOF
10995if ac_fn_c_try_compile "$LINENO"
10996then :
10997  xorg_cv_cc_flag_unused_command_line_argument=yes
10998else case e in #(
10999  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11000esac
11001fi
11002rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11003esac
11004fi
11005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11006printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11007	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11008	CFLAGS="$xorg_testset_save_CFLAGS"
11009fi
11010
11011found="no"
11012
11013	if test $found = "no" ; then
11014		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11015			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11016		fi
11017
11018		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11019			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11020		fi
11021
11022		CFLAGS="$CFLAGS -Werror"
11023
11024		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11025printf %s "checking if $CC supports -Werror... " >&6; }
11026		cacheid=xorg_cv_cc_flag__Werror
11027		if eval test \${$cacheid+y}
11028then :
11029  printf %s "(cached) " >&6
11030else case e in #(
11031  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11032/* end confdefs.h.  */
11033int i;
11034int
11035main (void)
11036{
11037
11038  ;
11039  return 0;
11040}
11041_ACEOF
11042if ac_fn_c_try_link "$LINENO"
11043then :
11044  eval $cacheid=yes
11045else case e in #(
11046  e) eval $cacheid=no ;;
11047esac
11048fi
11049rm -f core conftest.err conftest.$ac_objext conftest.beam \
11050    conftest$ac_exeext conftest.$ac_ext ;;
11051esac
11052fi
11053
11054
11055		CFLAGS="$xorg_testset_save_CFLAGS"
11056
11057		eval supported=\$$cacheid
11058		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11059printf "%s\n" "$supported" >&6; }
11060		if test "$supported" = "yes" ; then
11061			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11062			found="yes"
11063		fi
11064	fi
11065
11066	if test $found = "no" ; then
11067		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11068			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11069		fi
11070
11071		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11072			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11073		fi
11074
11075		CFLAGS="$CFLAGS -errwarn"
11076
11077		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11078printf %s "checking if $CC supports -errwarn... " >&6; }
11079		cacheid=xorg_cv_cc_flag__errwarn
11080		if eval test \${$cacheid+y}
11081then :
11082  printf %s "(cached) " >&6
11083else case e in #(
11084  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11085/* end confdefs.h.  */
11086int i;
11087int
11088main (void)
11089{
11090
11091  ;
11092  return 0;
11093}
11094_ACEOF
11095if ac_fn_c_try_link "$LINENO"
11096then :
11097  eval $cacheid=yes
11098else case e in #(
11099  e) eval $cacheid=no ;;
11100esac
11101fi
11102rm -f core conftest.err conftest.$ac_objext conftest.beam \
11103    conftest$ac_exeext conftest.$ac_ext ;;
11104esac
11105fi
11106
11107
11108		CFLAGS="$xorg_testset_save_CFLAGS"
11109
11110		eval supported=\$$cacheid
11111		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11112printf "%s\n" "$supported" >&6; }
11113		if test "$supported" = "yes" ; then
11114			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11115			found="yes"
11116		fi
11117	fi
11118
11119
11120
11121# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11122# activate it with -Werror, so we add it here explicitly.
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136xorg_testset_save_CFLAGS="$CFLAGS"
11137
11138if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11139	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11140	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11141printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11142if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11143then :
11144  printf %s "(cached) " >&6
11145else case e in #(
11146  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11147/* end confdefs.h.  */
11148int i;
11149_ACEOF
11150if ac_fn_c_try_compile "$LINENO"
11151then :
11152  xorg_cv_cc_flag_unknown_warning_option=yes
11153else case e in #(
11154  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11155esac
11156fi
11157rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11158esac
11159fi
11160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11161printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11162	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11163	CFLAGS="$xorg_testset_save_CFLAGS"
11164fi
11165
11166if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11167	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11168		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11169	fi
11170	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11171	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11172printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11173if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11174then :
11175  printf %s "(cached) " >&6
11176else case e in #(
11177  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11178/* end confdefs.h.  */
11179int i;
11180_ACEOF
11181if ac_fn_c_try_compile "$LINENO"
11182then :
11183  xorg_cv_cc_flag_unused_command_line_argument=yes
11184else case e in #(
11185  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11186esac
11187fi
11188rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11189esac
11190fi
11191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11192printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11193	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11194	CFLAGS="$xorg_testset_save_CFLAGS"
11195fi
11196
11197found="no"
11198
11199	if test $found = "no" ; then
11200		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11201			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11202		fi
11203
11204		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11205			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11206		fi
11207
11208		CFLAGS="$CFLAGS -Werror=attributes"
11209
11210		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11211printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11212		cacheid=xorg_cv_cc_flag__Werror_attributes
11213		if eval test \${$cacheid+y}
11214then :
11215  printf %s "(cached) " >&6
11216else case e in #(
11217  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11218/* end confdefs.h.  */
11219int i;
11220int
11221main (void)
11222{
11223
11224  ;
11225  return 0;
11226}
11227_ACEOF
11228if ac_fn_c_try_link "$LINENO"
11229then :
11230  eval $cacheid=yes
11231else case e in #(
11232  e) eval $cacheid=no ;;
11233esac
11234fi
11235rm -f core conftest.err conftest.$ac_objext conftest.beam \
11236    conftest$ac_exeext conftest.$ac_ext ;;
11237esac
11238fi
11239
11240
11241		CFLAGS="$xorg_testset_save_CFLAGS"
11242
11243		eval supported=\$$cacheid
11244		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11245printf "%s\n" "$supported" >&6; }
11246		if test "$supported" = "yes" ; then
11247			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11248			found="yes"
11249		fi
11250	fi
11251
11252
11253
11254if test "x$STRICT_COMPILE" = "xyes"; then
11255    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11256    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11257fi
11258
11259
11260
11261
11262
11263
11264
11265
11266cat >>confdefs.h <<_ACEOF
11267#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11268_ACEOF
11269
11270	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11271	if test "x$PVM" = "x"; then
11272		PVM="0"
11273	fi
11274
11275printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11276
11277	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11278	if test "x$PVP" = "x"; then
11279		PVP="0"
11280	fi
11281
11282printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11283
11284
11285
11286CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11287mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11288|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11289touch \$(top_srcdir)/ChangeLog; \
11290echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11291
11292
11293
11294
11295macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11296INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11297mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11298|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11299touch \$(top_srcdir)/INSTALL; \
11300echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11301
11302
11303
11304
11305
11306
11307case $host_os in
11308    solaris*)
11309        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11310        # check for a man page file found in later versions that use
11311        # traditional section numbers instead
11312        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11313printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11314if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11315then :
11316  printf %s "(cached) " >&6
11317else case e in #(
11318  e) test "$cross_compiling" = yes &&
11319  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11320if test -r "/usr/share/man/man7/attributes.7"; then
11321  ac_cv_file__usr_share_man_man7_attributes_7=yes
11322else
11323  ac_cv_file__usr_share_man_man7_attributes_7=no
11324fi ;;
11325esac
11326fi
11327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11328printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11329if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11330then :
11331  SYSV_MAN_SECTIONS=false
11332else case e in #(
11333  e) SYSV_MAN_SECTIONS=true ;;
11334esac
11335fi
11336
11337        ;;
11338    *) SYSV_MAN_SECTIONS=false ;;
11339esac
11340
11341if test x$APP_MAN_SUFFIX = x    ; then
11342    APP_MAN_SUFFIX=1
11343fi
11344if test x$APP_MAN_DIR = x    ; then
11345    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11346fi
11347
11348if test x$LIB_MAN_SUFFIX = x    ; then
11349    LIB_MAN_SUFFIX=3
11350fi
11351if test x$LIB_MAN_DIR = x    ; then
11352    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11353fi
11354
11355if test x$FILE_MAN_SUFFIX = x    ; then
11356    case $SYSV_MAN_SECTIONS in
11357	true)				FILE_MAN_SUFFIX=4  ;;
11358	*)				FILE_MAN_SUFFIX=5  ;;
11359    esac
11360fi
11361if test x$FILE_MAN_DIR = x    ; then
11362    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11363fi
11364
11365if test x$MISC_MAN_SUFFIX = x    ; then
11366    case $SYSV_MAN_SECTIONS in
11367	true)				MISC_MAN_SUFFIX=5  ;;
11368	*)				MISC_MAN_SUFFIX=7  ;;
11369    esac
11370fi
11371if test x$MISC_MAN_DIR = x    ; then
11372    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11373fi
11374
11375if test x$DRIVER_MAN_SUFFIX = x    ; then
11376    case $SYSV_MAN_SECTIONS in
11377	true)				DRIVER_MAN_SUFFIX=7  ;;
11378	*)				DRIVER_MAN_SUFFIX=4  ;;
11379    esac
11380fi
11381if test x$DRIVER_MAN_DIR = x    ; then
11382    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11383fi
11384
11385if test x$ADMIN_MAN_SUFFIX = x    ; then
11386    case $SYSV_MAN_SECTIONS in
11387	true)				ADMIN_MAN_SUFFIX=1m ;;
11388	*)				ADMIN_MAN_SUFFIX=8  ;;
11389    esac
11390fi
11391if test x$ADMIN_MAN_DIR = x    ; then
11392    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11393fi
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409XORG_MAN_PAGE="X Version 11"
11410
11411MAN_SUBSTS="\
11412	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11413	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11414	-e 's|__xservername__|Xorg|g' \
11415	-e 's|__xconfigfile__|xorg.conf|g' \
11416	-e 's|__projectroot__|\$(prefix)|g' \
11417	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11418	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11419	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11420	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11421	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11422	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11423	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11424
11425
11426
11427
11428AM_DEFAULT_VERBOSITY=0
11429
11430
11431
11432# Checks for typedefs, structures, and compiler characteristics.
11433# Check whether --enable-largefile was given.
11434if test ${enable_largefile+y}
11435then :
11436  enableval=$enable_largefile;
11437fi
11438if test "$enable_largefile,$enable_year2038" != no,no
11439then :
11440  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
11441printf %s "checking for $CC option to enable large file support... " >&6; }
11442if test ${ac_cv_sys_largefile_opts+y}
11443then :
11444  printf %s "(cached) " >&6
11445else case e in #(
11446  e) ac_save_CC="$CC"
11447  ac_opt_found=no
11448  for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
11449    if test x"$ac_opt" != x"none needed"
11450then :
11451  CC="$ac_save_CC $ac_opt"
11452fi
11453    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11454/* end confdefs.h.  */
11455#include <sys/types.h>
11456#ifndef FTYPE
11457# define FTYPE off_t
11458#endif
11459 /* Check that FTYPE can represent 2**63 - 1 correctly.
11460    We can't simply define LARGE_FTYPE to be 9223372036854775807,
11461    since some C++ compilers masquerading as C compilers
11462    incorrectly reject 9223372036854775807.  */
11463#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
11464  int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
11465		       && LARGE_FTYPE % 2147483647 == 1)
11466		      ? 1 : -1];
11467int
11468main (void)
11469{
11470
11471  ;
11472  return 0;
11473}
11474_ACEOF
11475if ac_fn_c_try_compile "$LINENO"
11476then :
11477  if test x"$ac_opt" = x"none needed"
11478then :
11479  # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
11480	 CC="$CC -DFTYPE=ino_t"
11481	 if ac_fn_c_try_compile "$LINENO"
11482then :
11483
11484else case e in #(
11485  e) CC="$CC -D_FILE_OFFSET_BITS=64"
11486	    if ac_fn_c_try_compile "$LINENO"
11487then :
11488  ac_opt='-D_FILE_OFFSET_BITS=64'
11489fi
11490rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
11491esac
11492fi
11493rm -f core conftest.err conftest.$ac_objext conftest.beam
11494fi
11495      ac_cv_sys_largefile_opts=$ac_opt
11496      ac_opt_found=yes
11497fi
11498rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11499    test $ac_opt_found = no || break
11500  done
11501  CC="$ac_save_CC"
11502
11503  test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
11504esac
11505fi
11506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
11507printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
11508
11509ac_have_largefile=yes
11510case $ac_cv_sys_largefile_opts in #(
11511  "none needed") :
11512     ;; #(
11513  "supported through gnulib") :
11514     ;; #(
11515  "support not detected") :
11516    ac_have_largefile=no ;; #(
11517  "-D_FILE_OFFSET_BITS=64") :
11518
11519printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
11520 ;; #(
11521  "-D_LARGE_FILES=1") :
11522
11523printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
11524 ;; #(
11525  "-n32") :
11526    CC="$CC -n32" ;; #(
11527  *) :
11528    as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
11529esac
11530
11531if test "$enable_year2038" != no
11532then :
11533  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
11534printf %s "checking for $CC option for timestamps after 2038... " >&6; }
11535if test ${ac_cv_sys_year2038_opts+y}
11536then :
11537  printf %s "(cached) " >&6
11538else case e in #(
11539  e) ac_save_CPPFLAGS="$CPPFLAGS"
11540  ac_opt_found=no
11541  for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
11542    if test x"$ac_opt" != x"none needed"
11543then :
11544  CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
11545fi
11546    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11547/* end confdefs.h.  */
11548
11549  #include <time.h>
11550  /* Check that time_t can represent 2**32 - 1 correctly.  */
11551  #define LARGE_TIME_T \\
11552    ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
11553  int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
11554                           && LARGE_TIME_T % 65537 == 0)
11555                          ? 1 : -1];
11556
11557int
11558main (void)
11559{
11560
11561  ;
11562  return 0;
11563}
11564_ACEOF
11565if ac_fn_c_try_compile "$LINENO"
11566then :
11567  ac_cv_sys_year2038_opts="$ac_opt"
11568      ac_opt_found=yes
11569fi
11570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11571    test $ac_opt_found = no || break
11572  done
11573  CPPFLAGS="$ac_save_CPPFLAGS"
11574  test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
11575esac
11576fi
11577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
11578printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
11579
11580ac_have_year2038=yes
11581case $ac_cv_sys_year2038_opts in #(
11582  "none needed") :
11583     ;; #(
11584  "support not detected") :
11585    ac_have_year2038=no ;; #(
11586  "-D_TIME_BITS=64") :
11587
11588printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
11589 ;; #(
11590  "-D__MINGW_USE_VC2005_COMPAT") :
11591
11592printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
11593 ;; #(
11594  "-U_USE_32_BIT_TIME_T"*) :
11595    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11596printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11597as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
11598will stop working after mid-January 2038. Remove
11599_USE_32BIT_TIME_T from the compiler flags.
11600See 'config.log' for more details" "$LINENO" 5; } ;; #(
11601  *) :
11602    as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
11603esac
11604
11605fi
11606
11607fi
11608
11609# Checks for pkg-config packages
11610
11611pkg_failed=no
11612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XCMSDB" >&5
11613printf %s "checking for XCMSDB... " >&6; }
11614
11615if test -n "$XCMSDB_CFLAGS"; then
11616    pkg_cv_XCMSDB_CFLAGS="$XCMSDB_CFLAGS"
11617 elif test -n "$PKG_CONFIG"; then
11618    if test -n "$PKG_CONFIG" && \
11619    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
11620  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
11621  ac_status=$?
11622  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11623  test $ac_status = 0; }; then
11624  pkg_cv_XCMSDB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
11625		      test "x$?" != "x0" && pkg_failed=yes
11626else
11627  pkg_failed=yes
11628fi
11629 else
11630    pkg_failed=untried
11631fi
11632if test -n "$XCMSDB_LIBS"; then
11633    pkg_cv_XCMSDB_LIBS="$XCMSDB_LIBS"
11634 elif test -n "$PKG_CONFIG"; then
11635    if test -n "$PKG_CONFIG" && \
11636    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
11637  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
11638  ac_status=$?
11639  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11640  test $ac_status = 0; }; then
11641  pkg_cv_XCMSDB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
11642		      test "x$?" != "x0" && pkg_failed=yes
11643else
11644  pkg_failed=yes
11645fi
11646 else
11647    pkg_failed=untried
11648fi
11649
11650
11651
11652if test $pkg_failed = yes; then
11653   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654printf "%s\n" "no" >&6; }
11655
11656if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11657        _pkg_short_errors_supported=yes
11658else
11659        _pkg_short_errors_supported=no
11660fi
11661        if test $_pkg_short_errors_supported = yes; then
11662	        XCMSDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
11663        else
11664	        XCMSDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
11665        fi
11666	# Put the nasty error message in config.log where it belongs
11667	echo "$XCMSDB_PKG_ERRORS" >&5
11668
11669	as_fn_error $? "Package requirements (x11) were not met:
11670
11671$XCMSDB_PKG_ERRORS
11672
11673Consider adjusting the PKG_CONFIG_PATH environment variable if you
11674installed software in a non-standard prefix.
11675
11676Alternatively, you may set the environment variables XCMSDB_CFLAGS
11677and XCMSDB_LIBS to avoid the need to call pkg-config.
11678See the pkg-config man page for more details." "$LINENO" 5
11679elif test $pkg_failed = untried; then
11680     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11681printf "%s\n" "no" >&6; }
11682	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11683printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11684as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11685is in your PATH or set the PKG_CONFIG environment variable to the full
11686path to pkg-config.
11687
11688Alternatively, you may set the environment variables XCMSDB_CFLAGS
11689and XCMSDB_LIBS to avoid the need to call pkg-config.
11690See the pkg-config man page for more details.
11691
11692To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11693See 'config.log' for more details" "$LINENO" 5; }
11694else
11695	XCMSDB_CFLAGS=$pkg_cv_XCMSDB_CFLAGS
11696	XCMSDB_LIBS=$pkg_cv_XCMSDB_LIBS
11697        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11698printf "%s\n" "yes" >&6; }
11699
11700fi
11701
11702ac_config_files="$ac_config_files Makefile man/Makefile"
11703
11704cat >confcache <<\_ACEOF
11705# This file is a shell script that caches the results of configure
11706# tests run on this system so they can be shared between configure
11707# scripts and configure runs, see configure's option --config-cache.
11708# It is not useful on other systems.  If it contains results you don't
11709# want to keep, you may remove or edit it.
11710#
11711# config.status only pays attention to the cache file if you give it
11712# the --recheck option to rerun configure.
11713#
11714# 'ac_cv_env_foo' variables (set or unset) will be overridden when
11715# loading this file, other *unset* 'ac_cv_foo' will be assigned the
11716# following values.
11717
11718_ACEOF
11719
11720# The following way of writing the cache mishandles newlines in values,
11721# but we know of no workaround that is simple, portable, and efficient.
11722# So, we kill variables containing newlines.
11723# Ultrix sh set writes to stderr and can't be redirected directly,
11724# and sets the high bit in the cache file unless we assign to the vars.
11725(
11726  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11727    eval ac_val=\$$ac_var
11728    case $ac_val in #(
11729    *${as_nl}*)
11730      case $ac_var in #(
11731      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11732printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11733      esac
11734      case $ac_var in #(
11735      _ | IFS | as_nl) ;; #(
11736      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11737      *) { eval $ac_var=; unset $ac_var;} ;;
11738      esac ;;
11739    esac
11740  done
11741
11742  (set) 2>&1 |
11743    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11744    *${as_nl}ac_space=\ *)
11745      # 'set' does not quote correctly, so add quotes: double-quote
11746      # substitution turns \\\\ into \\, and sed turns \\ into \.
11747      sed -n \
11748	"s/'/'\\\\''/g;
11749	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11750      ;; #(
11751    *)
11752      # 'set' quotes correctly as required by POSIX, so do not add quotes.
11753      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11754      ;;
11755    esac |
11756    sort
11757) |
11758  sed '
11759     /^ac_cv_env_/b end
11760     t clear
11761     :clear
11762     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11763     t end
11764     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11765     :end' >>confcache
11766if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11767  if test -w "$cache_file"; then
11768    if test "x$cache_file" != "x/dev/null"; then
11769      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11770printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11771      if test ! -f "$cache_file" || test -h "$cache_file"; then
11772	cat confcache >"$cache_file"
11773      else
11774        case $cache_file in #(
11775        */* | ?:*)
11776	  mv -f confcache "$cache_file"$$ &&
11777	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11778        *)
11779	  mv -f confcache "$cache_file" ;;
11780	esac
11781      fi
11782    fi
11783  else
11784    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11785printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11786  fi
11787fi
11788rm -f confcache
11789
11790test "x$prefix" = xNONE && prefix=$ac_default_prefix
11791# Let make expand exec_prefix.
11792test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11793
11794DEFS=-DHAVE_CONFIG_H
11795
11796ac_libobjs=
11797ac_ltlibobjs=
11798U=
11799for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11800  # 1. Remove the extension, and $U if already installed.
11801  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11802  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11803  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11804  #    will be set to the directory where LIBOBJS objects are built.
11805  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11806  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11807done
11808LIBOBJS=$ac_libobjs
11809
11810LTLIBOBJS=$ac_ltlibobjs
11811
11812
11813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11814printf %s "checking that generated files are newer than configure... " >&6; }
11815   if test -n "$am_sleep_pid"; then
11816     # Hide warnings about reused PIDs.
11817     wait $am_sleep_pid 2>/dev/null
11818   fi
11819   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11820printf "%s\n" "done" >&6; }
11821case $enable_silent_rules in # (((
11822  yes) AM_DEFAULT_VERBOSITY=0;;
11823   no) AM_DEFAULT_VERBOSITY=1;;
11824esac
11825if test $am_cv_make_support_nested_variables = yes; then
11826    AM_V='$(V)'
11827  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11828else
11829  AM_V=$AM_DEFAULT_VERBOSITY
11830  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11831fi
11832
11833 if test -n "$EXEEXT"; then
11834  am__EXEEXT_TRUE=
11835  am__EXEEXT_FALSE='#'
11836else
11837  am__EXEEXT_TRUE='#'
11838  am__EXEEXT_FALSE=
11839fi
11840
11841if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11842  as_fn_error $? "conditional \"AMDEP\" was never defined.
11843Usually this means the macro was only invoked conditionally." "$LINENO" 5
11844fi
11845if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11846  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11847Usually this means the macro was only invoked conditionally." "$LINENO" 5
11848fi
11849# Check whether --enable-year2038 was given.
11850if test ${enable_year2038+y}
11851then :
11852  enableval=$enable_year2038;
11853fi
11854
11855
11856: "${CONFIG_STATUS=./config.status}"
11857ac_write_fail=0
11858ac_clean_files_save=$ac_clean_files
11859ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11861printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11862as_write_fail=0
11863cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11864#! $SHELL
11865# Generated by $as_me.
11866# Run this file to recreate the current configuration.
11867# Compiler output produced by configure, useful for debugging
11868# configure, is in config.log if it exists.
11869
11870debug=false
11871ac_cs_recheck=false
11872ac_cs_silent=false
11873
11874SHELL=\${CONFIG_SHELL-$SHELL}
11875export SHELL
11876_ASEOF
11877cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11878## -------------------- ##
11879## M4sh Initialization. ##
11880## -------------------- ##
11881
11882# Be more Bourne compatible
11883DUALCASE=1; export DUALCASE # for MKS sh
11884if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11885then :
11886  emulate sh
11887  NULLCMD=:
11888  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11889  # is contrary to our usage.  Disable this feature.
11890  alias -g '${1+"$@"}'='"$@"'
11891  setopt NO_GLOB_SUBST
11892else case e in #(
11893  e) case `(set -o) 2>/dev/null` in #(
11894  *posix*) :
11895    set -o posix ;; #(
11896  *) :
11897     ;;
11898esac ;;
11899esac
11900fi
11901
11902
11903
11904# Reset variables that may have inherited troublesome values from
11905# the environment.
11906
11907# IFS needs to be set, to space, tab, and newline, in precisely that order.
11908# (If _AS_PATH_WALK were called with IFS unset, it would have the
11909# side effect of setting IFS to empty, thus disabling word splitting.)
11910# Quoting is to prevent editors from complaining about space-tab.
11911as_nl='
11912'
11913export as_nl
11914IFS=" ""	$as_nl"
11915
11916PS1='$ '
11917PS2='> '
11918PS4='+ '
11919
11920# Ensure predictable behavior from utilities with locale-dependent output.
11921LC_ALL=C
11922export LC_ALL
11923LANGUAGE=C
11924export LANGUAGE
11925
11926# We cannot yet rely on "unset" to work, but we need these variables
11927# to be unset--not just set to an empty or harmless value--now, to
11928# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11929# also avoids known problems related to "unset" and subshell syntax
11930# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11931for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11932do eval test \${$as_var+y} \
11933  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11934done
11935
11936# Ensure that fds 0, 1, and 2 are open.
11937if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11938if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11939if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
11940
11941# The user is always right.
11942if ${PATH_SEPARATOR+false} :; then
11943  PATH_SEPARATOR=:
11944  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11945    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11946      PATH_SEPARATOR=';'
11947  }
11948fi
11949
11950
11951# Find who we are.  Look in the path if we contain no directory separator.
11952as_myself=
11953case $0 in #((
11954  *[\\/]* ) as_myself=$0 ;;
11955  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11956for as_dir in $PATH
11957do
11958  IFS=$as_save_IFS
11959  case $as_dir in #(((
11960    '') as_dir=./ ;;
11961    */) ;;
11962    *) as_dir=$as_dir/ ;;
11963  esac
11964    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11965  done
11966IFS=$as_save_IFS
11967
11968     ;;
11969esac
11970# We did not find ourselves, most probably we were run as 'sh COMMAND'
11971# in which case we are not to be found in the path.
11972if test "x$as_myself" = x; then
11973  as_myself=$0
11974fi
11975if test ! -f "$as_myself"; then
11976  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11977  exit 1
11978fi
11979
11980
11981
11982# as_fn_error STATUS ERROR [LINENO LOG_FD]
11983# ----------------------------------------
11984# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11985# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11986# script with STATUS, using 1 if that was 0.
11987as_fn_error ()
11988{
11989  as_status=$1; test $as_status -eq 0 && as_status=1
11990  if test "$4"; then
11991    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11992    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11993  fi
11994  printf "%s\n" "$as_me: error: $2" >&2
11995  as_fn_exit $as_status
11996} # as_fn_error
11997
11998
11999# as_fn_set_status STATUS
12000# -----------------------
12001# Set $? to STATUS, without forking.
12002as_fn_set_status ()
12003{
12004  return $1
12005} # as_fn_set_status
12006
12007# as_fn_exit STATUS
12008# -----------------
12009# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12010as_fn_exit ()
12011{
12012  set +e
12013  as_fn_set_status $1
12014  exit $1
12015} # as_fn_exit
12016
12017# as_fn_unset VAR
12018# ---------------
12019# Portably unset VAR.
12020as_fn_unset ()
12021{
12022  { eval $1=; unset $1;}
12023}
12024as_unset=as_fn_unset
12025
12026# as_fn_append VAR VALUE
12027# ----------------------
12028# Append the text in VALUE to the end of the definition contained in VAR. Take
12029# advantage of any shell optimizations that allow amortized linear growth over
12030# repeated appends, instead of the typical quadratic growth present in naive
12031# implementations.
12032if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12033then :
12034  eval 'as_fn_append ()
12035  {
12036    eval $1+=\$2
12037  }'
12038else case e in #(
12039  e) as_fn_append ()
12040  {
12041    eval $1=\$$1\$2
12042  } ;;
12043esac
12044fi # as_fn_append
12045
12046# as_fn_arith ARG...
12047# ------------------
12048# Perform arithmetic evaluation on the ARGs, and store the result in the
12049# global $as_val. Take advantage of shells that can avoid forks. The arguments
12050# must be portable across $(()) and expr.
12051if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12052then :
12053  eval 'as_fn_arith ()
12054  {
12055    as_val=$(( $* ))
12056  }'
12057else case e in #(
12058  e) as_fn_arith ()
12059  {
12060    as_val=`expr "$@" || test $? -eq 1`
12061  } ;;
12062esac
12063fi # as_fn_arith
12064
12065
12066if expr a : '\(a\)' >/dev/null 2>&1 &&
12067   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12068  as_expr=expr
12069else
12070  as_expr=false
12071fi
12072
12073if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12074  as_basename=basename
12075else
12076  as_basename=false
12077fi
12078
12079if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12080  as_dirname=dirname
12081else
12082  as_dirname=false
12083fi
12084
12085as_me=`$as_basename -- "$0" ||
12086$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12087	 X"$0" : 'X\(//\)$' \| \
12088	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12089printf "%s\n" X/"$0" |
12090    sed '/^.*\/\([^/][^/]*\)\/*$/{
12091	    s//\1/
12092	    q
12093	  }
12094	  /^X\/\(\/\/\)$/{
12095	    s//\1/
12096	    q
12097	  }
12098	  /^X\/\(\/\).*/{
12099	    s//\1/
12100	    q
12101	  }
12102	  s/.*/./; q'`
12103
12104# Avoid depending upon Character Ranges.
12105as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12106as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12107as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12108as_cr_digits='0123456789'
12109as_cr_alnum=$as_cr_Letters$as_cr_digits
12110
12111
12112# Determine whether it's possible to make 'echo' print without a newline.
12113# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12114# for compatibility with existing Makefiles.
12115ECHO_C= ECHO_N= ECHO_T=
12116case `echo -n x` in #(((((
12117-n*)
12118  case `echo 'xy\c'` in
12119  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12120  xy)  ECHO_C='\c';;
12121  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12122       ECHO_T='	';;
12123  esac;;
12124*)
12125  ECHO_N='-n';;
12126esac
12127
12128# For backward compatibility with old third-party macros, we provide
12129# the shell variables $as_echo and $as_echo_n.  New code should use
12130# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12131as_echo='printf %s\n'
12132as_echo_n='printf %s'
12133
12134rm -f conf$$ conf$$.exe conf$$.file
12135if test -d conf$$.dir; then
12136  rm -f conf$$.dir/conf$$.file
12137else
12138  rm -f conf$$.dir
12139  mkdir conf$$.dir 2>/dev/null
12140fi
12141if (echo >conf$$.file) 2>/dev/null; then
12142  if ln -s conf$$.file conf$$ 2>/dev/null; then
12143    as_ln_s='ln -s'
12144    # ... but there are two gotchas:
12145    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12146    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12147    # In both cases, we have to default to 'cp -pR'.
12148    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12149      as_ln_s='cp -pR'
12150  elif ln conf$$.file conf$$ 2>/dev/null; then
12151    as_ln_s=ln
12152  else
12153    as_ln_s='cp -pR'
12154  fi
12155else
12156  as_ln_s='cp -pR'
12157fi
12158rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12159rmdir conf$$.dir 2>/dev/null
12160
12161
12162# as_fn_mkdir_p
12163# -------------
12164# Create "$as_dir" as a directory, including parents if necessary.
12165as_fn_mkdir_p ()
12166{
12167
12168  case $as_dir in #(
12169  -*) as_dir=./$as_dir;;
12170  esac
12171  test -d "$as_dir" || eval $as_mkdir_p || {
12172    as_dirs=
12173    while :; do
12174      case $as_dir in #(
12175      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12176      *) as_qdir=$as_dir;;
12177      esac
12178      as_dirs="'$as_qdir' $as_dirs"
12179      as_dir=`$as_dirname -- "$as_dir" ||
12180$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12181	 X"$as_dir" : 'X\(//\)[^/]' \| \
12182	 X"$as_dir" : 'X\(//\)$' \| \
12183	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12184printf "%s\n" X"$as_dir" |
12185    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12186	    s//\1/
12187	    q
12188	  }
12189	  /^X\(\/\/\)[^/].*/{
12190	    s//\1/
12191	    q
12192	  }
12193	  /^X\(\/\/\)$/{
12194	    s//\1/
12195	    q
12196	  }
12197	  /^X\(\/\).*/{
12198	    s//\1/
12199	    q
12200	  }
12201	  s/.*/./; q'`
12202      test -d "$as_dir" && break
12203    done
12204    test -z "$as_dirs" || eval "mkdir $as_dirs"
12205  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12206
12207
12208} # as_fn_mkdir_p
12209if mkdir -p . 2>/dev/null; then
12210  as_mkdir_p='mkdir -p "$as_dir"'
12211else
12212  test -d ./-p && rmdir ./-p
12213  as_mkdir_p=false
12214fi
12215
12216
12217# as_fn_executable_p FILE
12218# -----------------------
12219# Test if FILE is an executable regular file.
12220as_fn_executable_p ()
12221{
12222  test -f "$1" && test -x "$1"
12223} # as_fn_executable_p
12224as_test_x='test -x'
12225as_executable_p=as_fn_executable_p
12226
12227# Sed expression to map a string onto a valid CPP name.
12228as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12229as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12230
12231# Sed expression to map a string onto a valid variable name.
12232as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12233as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12234
12235
12236exec 6>&1
12237## ----------------------------------- ##
12238## Main body of $CONFIG_STATUS script. ##
12239## ----------------------------------- ##
12240_ASEOF
12241test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12242
12243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12244# Save the log message, to keep $0 and so on meaningful, and to
12245# report actual input values of CONFIG_FILES etc. instead of their
12246# values after options handling.
12247ac_log="
12248This file was extended by xcmsdb $as_me 1.0.7, which was
12249generated by GNU Autoconf 2.72.  Invocation command line was
12250
12251  CONFIG_FILES    = $CONFIG_FILES
12252  CONFIG_HEADERS  = $CONFIG_HEADERS
12253  CONFIG_LINKS    = $CONFIG_LINKS
12254  CONFIG_COMMANDS = $CONFIG_COMMANDS
12255  $ $0 $@
12256
12257on `(hostname || uname -n) 2>/dev/null | sed 1q`
12258"
12259
12260_ACEOF
12261
12262case $ac_config_files in *"
12263"*) set x $ac_config_files; shift; ac_config_files=$*;;
12264esac
12265
12266case $ac_config_headers in *"
12267"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12268esac
12269
12270
12271cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12272# Files that config.status was made for.
12273config_files="$ac_config_files"
12274config_headers="$ac_config_headers"
12275config_commands="$ac_config_commands"
12276
12277_ACEOF
12278
12279cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12280ac_cs_usage="\
12281'$as_me' instantiates files and other configuration actions
12282from templates according to the current configuration.  Unless the files
12283and actions are specified as TAGs, all are instantiated by default.
12284
12285Usage: $0 [OPTION]... [TAG]...
12286
12287  -h, --help       print this help, then exit
12288  -V, --version    print version number and configuration settings, then exit
12289      --config     print configuration, then exit
12290  -q, --quiet, --silent
12291                   do not print progress messages
12292  -d, --debug      don't remove temporary files
12293      --recheck    update $as_me by reconfiguring in the same conditions
12294      --file=FILE[:TEMPLATE]
12295                   instantiate the configuration file FILE
12296      --header=FILE[:TEMPLATE]
12297                   instantiate the configuration header FILE
12298
12299Configuration files:
12300$config_files
12301
12302Configuration headers:
12303$config_headers
12304
12305Configuration commands:
12306$config_commands
12307
12308Report bugs to <https://gitlab.freedesktop.org/xorg/app/xcmsdb/-/issues>."
12309
12310_ACEOF
12311ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12312ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12313cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12314ac_cs_config='$ac_cs_config_escaped'
12315ac_cs_version="\\
12316xcmsdb config.status 1.0.7
12317configured by $0, generated by GNU Autoconf 2.72,
12318  with options \\"\$ac_cs_config\\"
12319
12320Copyright (C) 2023 Free Software Foundation, Inc.
12321This config.status script is free software; the Free Software Foundation
12322gives unlimited permission to copy, distribute and modify it."
12323
12324ac_pwd='$ac_pwd'
12325srcdir='$srcdir'
12326INSTALL='$INSTALL'
12327MKDIR_P='$MKDIR_P'
12328AWK='$AWK'
12329test -n "\$AWK" || AWK=awk
12330_ACEOF
12331
12332cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12333# The default lists apply if the user does not specify any file.
12334ac_need_defaults=:
12335while test $# != 0
12336do
12337  case $1 in
12338  --*=?*)
12339    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12340    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12341    ac_shift=:
12342    ;;
12343  --*=)
12344    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12345    ac_optarg=
12346    ac_shift=:
12347    ;;
12348  *)
12349    ac_option=$1
12350    ac_optarg=$2
12351    ac_shift=shift
12352    ;;
12353  esac
12354
12355  case $ac_option in
12356  # Handling of the options.
12357  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12358    ac_cs_recheck=: ;;
12359  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12360    printf "%s\n" "$ac_cs_version"; exit ;;
12361  --config | --confi | --conf | --con | --co | --c )
12362    printf "%s\n" "$ac_cs_config"; exit ;;
12363  --debug | --debu | --deb | --de | --d | -d )
12364    debug=: ;;
12365  --file | --fil | --fi | --f )
12366    $ac_shift
12367    case $ac_optarg in
12368    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12369    '') as_fn_error $? "missing file argument" ;;
12370    esac
12371    as_fn_append CONFIG_FILES " '$ac_optarg'"
12372    ac_need_defaults=false;;
12373  --header | --heade | --head | --hea )
12374    $ac_shift
12375    case $ac_optarg in
12376    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12377    esac
12378    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12379    ac_need_defaults=false;;
12380  --he | --h)
12381    # Conflict between --help and --header
12382    as_fn_error $? "ambiguous option: '$1'
12383Try '$0 --help' for more information.";;
12384  --help | --hel | -h )
12385    printf "%s\n" "$ac_cs_usage"; exit ;;
12386  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12387  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12388    ac_cs_silent=: ;;
12389
12390  # This is an error.
12391  -*) as_fn_error $? "unrecognized option: '$1'
12392Try '$0 --help' for more information." ;;
12393
12394  *) as_fn_append ac_config_targets " $1"
12395     ac_need_defaults=false ;;
12396
12397  esac
12398  shift
12399done
12400
12401ac_configure_extra_args=
12402
12403if $ac_cs_silent; then
12404  exec 6>/dev/null
12405  ac_configure_extra_args="$ac_configure_extra_args --silent"
12406fi
12407
12408_ACEOF
12409cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12410if \$ac_cs_recheck; then
12411  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12412  shift
12413  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12414  CONFIG_SHELL='$SHELL'
12415  export CONFIG_SHELL
12416  exec "\$@"
12417fi
12418
12419_ACEOF
12420cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12421exec 5>>config.log
12422{
12423  echo
12424  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12425## Running $as_me. ##
12426_ASBOX
12427  printf "%s\n" "$ac_log"
12428} >&5
12429
12430_ACEOF
12431cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12432#
12433# INIT-COMMANDS
12434#
12435AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12436
12437_ACEOF
12438
12439cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12440
12441# Handling of arguments.
12442for ac_config_target in $ac_config_targets
12443do
12444  case $ac_config_target in
12445    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12446    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12447    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12448    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12449
12450  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12451  esac
12452done
12453
12454
12455# If the user did not use the arguments to specify the items to instantiate,
12456# then the envvar interface is used.  Set only those that are not.
12457# We use the long form for the default assignment because of an extremely
12458# bizarre bug on SunOS 4.1.3.
12459if $ac_need_defaults; then
12460  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12461  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12462  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12463fi
12464
12465# Have a temporary directory for convenience.  Make it in the build tree
12466# simply because there is no reason against having it here, and in addition,
12467# creating and moving files from /tmp can sometimes cause problems.
12468# Hook for its removal unless debugging.
12469# Note that there is a small window in which the directory will not be cleaned:
12470# after its creation but before its name has been assigned to '$tmp'.
12471$debug ||
12472{
12473  tmp= ac_tmp=
12474  trap 'exit_status=$?
12475  : "${ac_tmp:=$tmp}"
12476  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12477' 0
12478  trap 'as_fn_exit 1' 1 2 13 15
12479}
12480# Create a (secure) tmp directory for tmp files.
12481
12482{
12483  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12484  test -d "$tmp"
12485}  ||
12486{
12487  tmp=./conf$$-$RANDOM
12488  (umask 077 && mkdir "$tmp")
12489} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12490ac_tmp=$tmp
12491
12492# Set up the scripts for CONFIG_FILES section.
12493# No need to generate them if there are no CONFIG_FILES.
12494# This happens for instance with './config.status config.h'.
12495if test -n "$CONFIG_FILES"; then
12496
12497
12498ac_cr=`echo X | tr X '\015'`
12499# On cygwin, bash can eat \r inside `` if the user requested igncr.
12500# But we know of no other shell where ac_cr would be empty at this
12501# point, so we can use a bashism as a fallback.
12502if test "x$ac_cr" = x; then
12503  eval ac_cr=\$\'\\r\'
12504fi
12505ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12506if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12507  ac_cs_awk_cr='\\r'
12508else
12509  ac_cs_awk_cr=$ac_cr
12510fi
12511
12512echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12513_ACEOF
12514
12515
12516{
12517  echo "cat >conf$$subs.awk <<_ACEOF" &&
12518  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12519  echo "_ACEOF"
12520} >conf$$subs.sh ||
12521  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12522ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12523ac_delim='%!_!# '
12524for ac_last_try in false false false false false :; do
12525  . ./conf$$subs.sh ||
12526    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12527
12528  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12529  if test $ac_delim_n = $ac_delim_num; then
12530    break
12531  elif $ac_last_try; then
12532    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12533  else
12534    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12535  fi
12536done
12537rm -f conf$$subs.sh
12538
12539cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12540cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12541_ACEOF
12542sed -n '
12543h
12544s/^/S["/; s/!.*/"]=/
12545p
12546g
12547s/^[^!]*!//
12548:repl
12549t repl
12550s/'"$ac_delim"'$//
12551t delim
12552:nl
12553h
12554s/\(.\{148\}\)..*/\1/
12555t more1
12556s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12557p
12558n
12559b repl
12560:more1
12561s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12562p
12563g
12564s/.\{148\}//
12565t nl
12566:delim
12567h
12568s/\(.\{148\}\)..*/\1/
12569t more2
12570s/["\\]/\\&/g; s/^/"/; s/$/"/
12571p
12572b
12573:more2
12574s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12575p
12576g
12577s/.\{148\}//
12578t delim
12579' <conf$$subs.awk | sed '
12580/^[^""]/{
12581  N
12582  s/\n//
12583}
12584' >>$CONFIG_STATUS || ac_write_fail=1
12585rm -f conf$$subs.awk
12586cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12587_ACAWK
12588cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12589  for (key in S) S_is_set[key] = 1
12590  FS = ""
12591
12592}
12593{
12594  line = $ 0
12595  nfields = split(line, field, "@")
12596  substed = 0
12597  len = length(field[1])
12598  for (i = 2; i < nfields; i++) {
12599    key = field[i]
12600    keylen = length(key)
12601    if (S_is_set[key]) {
12602      value = S[key]
12603      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12604      len += length(value) + length(field[++i])
12605      substed = 1
12606    } else
12607      len += 1 + keylen
12608  }
12609
12610  print line
12611}
12612
12613_ACAWK
12614_ACEOF
12615cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12616if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12617  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12618else
12619  cat
12620fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12621  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12622_ACEOF
12623
12624# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12625# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12626# trailing colons and then remove the whole line if VPATH becomes empty
12627# (actually we leave an empty line to preserve line numbers).
12628if test "x$srcdir" = x.; then
12629  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12630h
12631s///
12632s/^/:/
12633s/[	 ]*$/:/
12634s/:\$(srcdir):/:/g
12635s/:\${srcdir}:/:/g
12636s/:@srcdir@:/:/g
12637s/^:*//
12638s/:*$//
12639x
12640s/\(=[	 ]*\).*/\1/
12641G
12642s/\n//
12643s/^[^=]*=[	 ]*$//
12644}'
12645fi
12646
12647cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12648fi # test -n "$CONFIG_FILES"
12649
12650# Set up the scripts for CONFIG_HEADERS section.
12651# No need to generate them if there are no CONFIG_HEADERS.
12652# This happens for instance with './config.status Makefile'.
12653if test -n "$CONFIG_HEADERS"; then
12654cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12655BEGIN {
12656_ACEOF
12657
12658# Transform confdefs.h into an awk script 'defines.awk', embedded as
12659# here-document in config.status, that substitutes the proper values into
12660# config.h.in to produce config.h.
12661
12662# Create a delimiter string that does not exist in confdefs.h, to ease
12663# handling of long lines.
12664ac_delim='%!_!# '
12665for ac_last_try in false false :; do
12666  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12667  if test -z "$ac_tt"; then
12668    break
12669  elif $ac_last_try; then
12670    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12671  else
12672    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12673  fi
12674done
12675
12676# For the awk script, D is an array of macro values keyed by name,
12677# likewise P contains macro parameters if any.  Preserve backslash
12678# newline sequences.
12679
12680ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12681sed -n '
12682s/.\{148\}/&'"$ac_delim"'/g
12683t rset
12684:rset
12685s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12686t def
12687d
12688:def
12689s/\\$//
12690t bsnl
12691s/["\\]/\\&/g
12692s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12693D["\1"]=" \3"/p
12694s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12695d
12696:bsnl
12697s/["\\]/\\&/g
12698s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12699D["\1"]=" \3\\\\\\n"\\/p
12700t cont
12701s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12702t cont
12703d
12704:cont
12705n
12706s/.\{148\}/&'"$ac_delim"'/g
12707t clear
12708:clear
12709s/\\$//
12710t bsnlc
12711s/["\\]/\\&/g; s/^/"/; s/$/"/p
12712d
12713:bsnlc
12714s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12715b cont
12716' <confdefs.h | sed '
12717s/'"$ac_delim"'/"\\\
12718"/g' >>$CONFIG_STATUS || ac_write_fail=1
12719
12720cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12721  for (key in D) D_is_set[key] = 1
12722  FS = ""
12723}
12724/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12725  line = \$ 0
12726  split(line, arg, " ")
12727  if (arg[1] == "#") {
12728    defundef = arg[2]
12729    mac1 = arg[3]
12730  } else {
12731    defundef = substr(arg[1], 2)
12732    mac1 = arg[2]
12733  }
12734  split(mac1, mac2, "(") #)
12735  macro = mac2[1]
12736  prefix = substr(line, 1, index(line, defundef) - 1)
12737  if (D_is_set[macro]) {
12738    # Preserve the white space surrounding the "#".
12739    print prefix "define", macro P[macro] D[macro]
12740    next
12741  } else {
12742    # Replace #undef with comments.  This is necessary, for example,
12743    # in the case of _POSIX_SOURCE, which is predefined and required
12744    # on some systems where configure will not decide to define it.
12745    if (defundef == "undef") {
12746      print "/*", prefix defundef, macro, "*/"
12747      next
12748    }
12749  }
12750}
12751{ print }
12752_ACAWK
12753_ACEOF
12754cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12755  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12756fi # test -n "$CONFIG_HEADERS"
12757
12758
12759eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12760shift
12761for ac_tag
12762do
12763  case $ac_tag in
12764  :[FHLC]) ac_mode=$ac_tag; continue;;
12765  esac
12766  case $ac_mode$ac_tag in
12767  :[FHL]*:*);;
12768  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
12769  :[FH]-) ac_tag=-:-;;
12770  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12771  esac
12772  ac_save_IFS=$IFS
12773  IFS=:
12774  set x $ac_tag
12775  IFS=$ac_save_IFS
12776  shift
12777  ac_file=$1
12778  shift
12779
12780  case $ac_mode in
12781  :L) ac_source=$1;;
12782  :[FH])
12783    ac_file_inputs=
12784    for ac_f
12785    do
12786      case $ac_f in
12787      -) ac_f="$ac_tmp/stdin";;
12788      *) # Look for the file first in the build tree, then in the source tree
12789	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12790	 # because $ac_f cannot contain ':'.
12791	 test -f "$ac_f" ||
12792	   case $ac_f in
12793	   [\\/$]*) false;;
12794	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12795	   esac ||
12796	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
12797      esac
12798      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12799      as_fn_append ac_file_inputs " '$ac_f'"
12800    done
12801
12802    # Let's still pretend it is 'configure' which instantiates (i.e., don't
12803    # use $as_me), people would be surprised to read:
12804    #    /* config.h.  Generated by config.status.  */
12805    configure_input='Generated from '`
12806	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12807	`' by configure.'
12808    if test x"$ac_file" != x-; then
12809      configure_input="$ac_file.  $configure_input"
12810      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12811printf "%s\n" "$as_me: creating $ac_file" >&6;}
12812    fi
12813    # Neutralize special characters interpreted by sed in replacement strings.
12814    case $configure_input in #(
12815    *\&* | *\|* | *\\* )
12816       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12817       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12818    *) ac_sed_conf_input=$configure_input;;
12819    esac
12820
12821    case $ac_tag in
12822    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12823      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12824    esac
12825    ;;
12826  esac
12827
12828  ac_dir=`$as_dirname -- "$ac_file" ||
12829$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12830	 X"$ac_file" : 'X\(//\)[^/]' \| \
12831	 X"$ac_file" : 'X\(//\)$' \| \
12832	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12833printf "%s\n" X"$ac_file" |
12834    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12835	    s//\1/
12836	    q
12837	  }
12838	  /^X\(\/\/\)[^/].*/{
12839	    s//\1/
12840	    q
12841	  }
12842	  /^X\(\/\/\)$/{
12843	    s//\1/
12844	    q
12845	  }
12846	  /^X\(\/\).*/{
12847	    s//\1/
12848	    q
12849	  }
12850	  s/.*/./; q'`
12851  as_dir="$ac_dir"; as_fn_mkdir_p
12852  ac_builddir=.
12853
12854case "$ac_dir" in
12855.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12856*)
12857  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12858  # A ".." for each directory in $ac_dir_suffix.
12859  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12860  case $ac_top_builddir_sub in
12861  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12862  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12863  esac ;;
12864esac
12865ac_abs_top_builddir=$ac_pwd
12866ac_abs_builddir=$ac_pwd$ac_dir_suffix
12867# for backward compatibility:
12868ac_top_builddir=$ac_top_build_prefix
12869
12870case $srcdir in
12871  .)  # We are building in place.
12872    ac_srcdir=.
12873    ac_top_srcdir=$ac_top_builddir_sub
12874    ac_abs_top_srcdir=$ac_pwd ;;
12875  [\\/]* | ?:[\\/]* )  # Absolute name.
12876    ac_srcdir=$srcdir$ac_dir_suffix;
12877    ac_top_srcdir=$srcdir
12878    ac_abs_top_srcdir=$srcdir ;;
12879  *) # Relative name.
12880    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12881    ac_top_srcdir=$ac_top_build_prefix$srcdir
12882    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12883esac
12884ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12885
12886
12887  case $ac_mode in
12888  :F)
12889  #
12890  # CONFIG_FILE
12891  #
12892
12893  case $INSTALL in
12894  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12895  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12896  esac
12897  ac_MKDIR_P=$MKDIR_P
12898  case $MKDIR_P in
12899  [\\/$]* | ?:[\\/]* ) ;;
12900  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12901  esac
12902_ACEOF
12903
12904cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12905# If the template does not know about datarootdir, expand it.
12906# FIXME: This hack should be removed a few years after 2.60.
12907ac_datarootdir_hack=; ac_datarootdir_seen=
12908ac_sed_dataroot='
12909/datarootdir/ {
12910  p
12911  q
12912}
12913/@datadir@/p
12914/@docdir@/p
12915/@infodir@/p
12916/@localedir@/p
12917/@mandir@/p'
12918case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12919*datarootdir*) ac_datarootdir_seen=yes;;
12920*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12921  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12922printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12923_ACEOF
12924cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12925  ac_datarootdir_hack='
12926  s&@datadir@&$datadir&g
12927  s&@docdir@&$docdir&g
12928  s&@infodir@&$infodir&g
12929  s&@localedir@&$localedir&g
12930  s&@mandir@&$mandir&g
12931  s&\\\${datarootdir}&$datarootdir&g' ;;
12932esac
12933_ACEOF
12934
12935# Neutralize VPATH when '$srcdir' = '.'.
12936# Shell code in configure.ac might set extrasub.
12937# FIXME: do we really want to maintain this feature?
12938cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12939ac_sed_extra="$ac_vpsub
12940$extrasub
12941_ACEOF
12942cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12943:t
12944/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12945s|@configure_input@|$ac_sed_conf_input|;t t
12946s&@top_builddir@&$ac_top_builddir_sub&;t t
12947s&@top_build_prefix@&$ac_top_build_prefix&;t t
12948s&@srcdir@&$ac_srcdir&;t t
12949s&@abs_srcdir@&$ac_abs_srcdir&;t t
12950s&@top_srcdir@&$ac_top_srcdir&;t t
12951s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12952s&@builddir@&$ac_builddir&;t t
12953s&@abs_builddir@&$ac_abs_builddir&;t t
12954s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12955s&@INSTALL@&$ac_INSTALL&;t t
12956s&@MKDIR_P@&$ac_MKDIR_P&;t t
12957$ac_datarootdir_hack
12958"
12959eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12960  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12961
12962test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12963  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12964  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12965      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12966  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12967which seems to be undefined.  Please make sure it is defined" >&5
12968printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12969which seems to be undefined.  Please make sure it is defined" >&2;}
12970
12971  rm -f "$ac_tmp/stdin"
12972  case $ac_file in
12973  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12974  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12975  esac \
12976  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12977 ;;
12978  :H)
12979  #
12980  # CONFIG_HEADER
12981  #
12982  if test x"$ac_file" != x-; then
12983    {
12984      printf "%s\n" "/* $configure_input  */" >&1 \
12985      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12986    } >"$ac_tmp/config.h" \
12987      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12988    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12989      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12990printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12991    else
12992      rm -f "$ac_file"
12993      mv "$ac_tmp/config.h" "$ac_file" \
12994	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12995    fi
12996  else
12997    printf "%s\n" "/* $configure_input  */" >&1 \
12998      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12999      || as_fn_error $? "could not create -" "$LINENO" 5
13000  fi
13001# Compute "$ac_file"'s index in $config_headers.
13002_am_arg="$ac_file"
13003_am_stamp_count=1
13004for _am_header in $config_headers :; do
13005  case $_am_header in
13006    $_am_arg | $_am_arg:* )
13007      break ;;
13008    * )
13009      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13010  esac
13011done
13012echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13013$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13014	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13015	 X"$_am_arg" : 'X\(//\)$' \| \
13016	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13017printf "%s\n" X"$_am_arg" |
13018    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13019	    s//\1/
13020	    q
13021	  }
13022	  /^X\(\/\/\)[^/].*/{
13023	    s//\1/
13024	    q
13025	  }
13026	  /^X\(\/\/\)$/{
13027	    s//\1/
13028	    q
13029	  }
13030	  /^X\(\/\).*/{
13031	    s//\1/
13032	    q
13033	  }
13034	  s/.*/./; q'`/stamp-h$_am_stamp_count
13035 ;;
13036
13037  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13038printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13039 ;;
13040  esac
13041
13042
13043  case $ac_file$ac_mode in
13044    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13045  # Older Autoconf quotes --file arguments for eval, but not when files
13046  # are listed without --file.  Let's play safe and only enable the eval
13047  # if we detect the quoting.
13048  # TODO: see whether this extra hack can be removed once we start
13049  # requiring Autoconf 2.70 or later.
13050  case $CONFIG_FILES in #(
13051  *\'*) :
13052    eval set x "$CONFIG_FILES" ;; #(
13053  *) :
13054    set x $CONFIG_FILES ;; #(
13055  *) :
13056     ;;
13057esac
13058  shift
13059  # Used to flag and report bootstrapping failures.
13060  am_rc=0
13061  for am_mf
13062  do
13063    # Strip MF so we end up with the name of the file.
13064    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13065    # Check whether this is an Automake generated Makefile which includes
13066    # dependency-tracking related rules and includes.
13067    # Grep'ing the whole file directly is not great: AIX grep has a line
13068    # limit of 2048, but all sed's we know have understand at least 4000.
13069    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13070      || continue
13071    am_dirpart=`$as_dirname -- "$am_mf" ||
13072$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13073	 X"$am_mf" : 'X\(//\)[^/]' \| \
13074	 X"$am_mf" : 'X\(//\)$' \| \
13075	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13076printf "%s\n" X"$am_mf" |
13077    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13078	    s//\1/
13079	    q
13080	  }
13081	  /^X\(\/\/\)[^/].*/{
13082	    s//\1/
13083	    q
13084	  }
13085	  /^X\(\/\/\)$/{
13086	    s//\1/
13087	    q
13088	  }
13089	  /^X\(\/\).*/{
13090	    s//\1/
13091	    q
13092	  }
13093	  s/.*/./; q'`
13094    am_filepart=`$as_basename -- "$am_mf" ||
13095$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13096	 X"$am_mf" : 'X\(//\)$' \| \
13097	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13098printf "%s\n" X/"$am_mf" |
13099    sed '/^.*\/\([^/][^/]*\)\/*$/{
13100	    s//\1/
13101	    q
13102	  }
13103	  /^X\/\(\/\/\)$/{
13104	    s//\1/
13105	    q
13106	  }
13107	  /^X\/\(\/\).*/{
13108	    s//\1/
13109	    q
13110	  }
13111	  s/.*/./; q'`
13112    { echo "$as_me:$LINENO: cd "$am_dirpart" \
13113      && sed -e '/# am--include-marker/d' "$am_filepart" \
13114        | $MAKE -f - am--depfiles" >&5
13115   (cd "$am_dirpart" \
13116      && sed -e '/# am--include-marker/d' "$am_filepart" \
13117        | $MAKE -f - am--depfiles) >&5 2>&5
13118   ac_status=$?
13119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120   (exit $ac_status); } || am_rc=$?
13121  done
13122  if test $am_rc -ne 0; then
13123    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13124printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13125as_fn_error $? "Something went wrong bootstrapping makefile fragments
13126    for automatic dependency tracking.  If GNU make was not used, consider
13127    re-running the configure script with MAKE=\"gmake\" (or whatever is
13128    necessary).  You can also try re-running configure with the
13129    '--disable-dependency-tracking' option to at least be able to build
13130    the package (albeit without support for automatic dependency tracking).
13131See 'config.log' for more details" "$LINENO" 5; }
13132  fi
13133  { am_dirpart=; unset am_dirpart;}
13134  { am_filepart=; unset am_filepart;}
13135  { am_mf=; unset am_mf;}
13136  { am_rc=; unset am_rc;}
13137  rm -f conftest-deps.mk
13138}
13139 ;;
13140
13141  esac
13142done # for ac_tag
13143
13144
13145as_fn_exit 0
13146_ACEOF
13147ac_clean_files=$ac_clean_files_save
13148
13149test $ac_write_fail = 0 ||
13150  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13151
13152
13153# configure is writing to config.log, and then calls config.status.
13154# config.status does its own redirection, appending to config.log.
13155# Unfortunately, on DOS this fails, as config.log is still kept open
13156# by configure, so config.status won't be able to write to it; its
13157# output is simply discarded.  So we exec the FD to /dev/null,
13158# effectively closing config.log, so it can be properly (re)opened and
13159# appended to by config.status.  When coming back to configure, we
13160# need to make the FD available again.
13161if test "$no_create" != yes; then
13162  ac_cs_success=:
13163  ac_config_status_args=
13164  test "$silent" = yes &&
13165    ac_config_status_args="$ac_config_status_args --quiet"
13166  exec 5>/dev/null
13167  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13168  exec 5>>config.log
13169  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13170  # would make configure fail if this is the last instruction.
13171  $ac_cs_success || as_fn_exit 1
13172fi
13173if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13174  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13175printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13176fi
13177
13178
13179