1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for imake 1.0.10.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/util/imake/-/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/util/imake/-/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='imake'
607PACKAGE_TARNAME='imake'
608PACKAGE_VERSION='1.0.10'
609PACKAGE_STRING='imake 1.0.10'
610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/util/imake/-/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
651XPROTO_LIBS
652XPROTO_CFLAGS
653BUILD_MKHTMLINDEX_FALSE
654BUILD_MKHTMLINDEX_TRUE
655BUILD_CLEANLINKS_FALSE
656BUILD_CLEANLINKS_TRUE
657BUILD_MKDIRHIER_FALSE
658BUILD_MKDIRHIER_TRUE
659BUILD_MERGELIB_FALSE
660BUILD_MERGELIB_TRUE
661BUILD_CCMAKEDEP_FALSE
662BUILD_CCMAKEDEP_TRUE
663BUILD_XMKMF_FALSE
664BUILD_XMKMF_TRUE
665BUILD_MAKEG_FALSE
666BUILD_MAKEG_TRUE
667BUILD_REVPATH_FALSE
668BUILD_REVPATH_TRUE
669RANLIB
670ARCMD
671PREPROCESSCMD_MKDEPEND
672XCONFDIR
673HAS_PERL_FALSE
674HAS_PERL_TRUE
675HAS_PERL
676CPP_PROGRAM
677TRADITIONALCPPFLAGS
678RAWCPPFLAGS
679RAWCPP
680CPP
681MAN_SUBSTS
682XORG_MAN_PAGE
683ADMIN_MAN_DIR
684DRIVER_MAN_DIR
685MISC_MAN_DIR
686FILE_MAN_DIR
687LIB_MAN_DIR
688APP_MAN_DIR
689ADMIN_MAN_SUFFIX
690DRIVER_MAN_SUFFIX
691MISC_MAN_SUFFIX
692FILE_MAN_SUFFIX
693LIB_MAN_SUFFIX
694APP_MAN_SUFFIX
695SED
696host_os
697host_vendor
698host_cpu
699host
700build_os
701build_vendor
702build_cpu
703build
704INSTALL_CMD
705PKG_CONFIG_LIBDIR
706PKG_CONFIG_PATH
707PKG_CONFIG
708CHANGELOG_CMD
709STRICT_CFLAGS
710CWARNFLAGS
711BASE_CFLAGS
712am__fastdepCC_FALSE
713am__fastdepCC_TRUE
714CCDEPMODE
715am__nodep
716AMDEPBACKSLASH
717AMDEP_FALSE
718AMDEP_TRUE
719am__include
720DEPDIR
721OBJEXT
722EXEEXT
723ac_ct_CC
724CPPFLAGS
725LDFLAGS
726CFLAGS
727CC
728AM_BACKSLASH
729AM_DEFAULT_VERBOSITY
730AM_DEFAULT_V
731AM_V
732CSCOPE
733ETAGS
734CTAGS
735am__untar
736am__tar
737AMTAR
738am__leading_dot
739SET_MAKE
740AWK
741mkdir_p
742MKDIR_P
743INSTALL_STRIP_PROGRAM
744STRIP
745install_sh
746MAKEINFO
747AUTOHEADER
748AUTOMAKE
749AUTOCONF
750ACLOCAL
751VERSION
752PACKAGE
753CYGPATH_W
754am__isrc
755INSTALL_DATA
756INSTALL_SCRIPT
757INSTALL_PROGRAM
758target_alias
759host_alias
760build_alias
761LIBS
762ECHO_T
763ECHO_N
764ECHO_C
765DEFS
766mandir
767localedir
768libdir
769psdir
770pdfdir
771dvidir
772htmldir
773infodir
774docdir
775oldincludedir
776includedir
777runstatedir
778localstatedir
779sharedstatedir
780sysconfdir
781datadir
782datarootdir
783libexecdir
784sbindir
785bindir
786program_transform_name
787prefix
788exec_prefix
789PACKAGE_URL
790PACKAGE_BUGREPORT
791PACKAGE_STRING
792PACKAGE_VERSION
793PACKAGE_TARNAME
794PACKAGE_NAME
795PATH_SEPARATOR
796SHELL
797am__quote'
798ac_subst_files=''
799ac_user_opts='
800enable_option_checking
801enable_silent_rules
802enable_dependency_tracking
803enable_selective_werror
804enable_strict_compilation
805enable_largefile
806with_config_dir
807with_script_preproc_cmd
808with_create_lib_cmd
809with_clean_lib_cmd
810enable_revpath
811enable_makeg
812enable_xmkmf
813enable_ccmakedep
814enable_mergelib
815enable_mkdirhier
816enable_cleanlinks
817enable_mkhtmlindex
818enable_year2038
819'
820      ac_precious_vars='build_alias
821host_alias
822target_alias
823CC
824CFLAGS
825LDFLAGS
826LIBS
827CPPFLAGS
828PKG_CONFIG
829PKG_CONFIG_PATH
830PKG_CONFIG_LIBDIR
831CPP
832XPROTO_CFLAGS
833XPROTO_LIBS'
834
835
836# Initialize some variables set by options.
837ac_init_help=
838ac_init_version=false
839ac_unrecognized_opts=
840ac_unrecognized_sep=
841# The variables have the same names as the options, with
842# dashes changed to underlines.
843cache_file=/dev/null
844exec_prefix=NONE
845no_create=
846no_recursion=
847prefix=NONE
848program_prefix=NONE
849program_suffix=NONE
850program_transform_name=s,x,x,
851silent=
852site=
853srcdir=
854verbose=
855x_includes=NONE
856x_libraries=NONE
857
858# Installation directory options.
859# These are left unexpanded so users can "make install exec_prefix=/foo"
860# and all the variables that are supposed to be based on exec_prefix
861# by default will actually change.
862# Use braces instead of parens because sh, perl, etc. also accept them.
863# (The list follows the same order as the GNU Coding Standards.)
864bindir='${exec_prefix}/bin'
865sbindir='${exec_prefix}/sbin'
866libexecdir='${exec_prefix}/libexec'
867datarootdir='${prefix}/share'
868datadir='${datarootdir}'
869sysconfdir='${prefix}/etc'
870sharedstatedir='${prefix}/com'
871localstatedir='${prefix}/var'
872runstatedir='${localstatedir}/run'
873includedir='${prefix}/include'
874oldincludedir='/usr/include'
875docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876infodir='${datarootdir}/info'
877htmldir='${docdir}'
878dvidir='${docdir}'
879pdfdir='${docdir}'
880psdir='${docdir}'
881libdir='${exec_prefix}/lib'
882localedir='${datarootdir}/locale'
883mandir='${datarootdir}/man'
884
885ac_prev=
886ac_dashdash=
887for ac_option
888do
889  # If the previous option needs an argument, assign it.
890  if test -n "$ac_prev"; then
891    eval $ac_prev=\$ac_option
892    ac_prev=
893    continue
894  fi
895
896  case $ac_option in
897  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898  *=)   ac_optarg= ;;
899  *)    ac_optarg=yes ;;
900  esac
901
902  case $ac_dashdash$ac_option in
903  --)
904    ac_dashdash=yes ;;
905
906  -bindir | --bindir | --bindi | --bind | --bin | --bi)
907    ac_prev=bindir ;;
908  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
909    bindir=$ac_optarg ;;
910
911  -build | --build | --buil | --bui | --bu)
912    ac_prev=build_alias ;;
913  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
914    build_alias=$ac_optarg ;;
915
916  -cache-file | --cache-file | --cache-fil | --cache-fi \
917  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
918    ac_prev=cache_file ;;
919  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
920  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
921    cache_file=$ac_optarg ;;
922
923  --config-cache | -C)
924    cache_file=config.cache ;;
925
926  -datadir | --datadir | --datadi | --datad)
927    ac_prev=datadir ;;
928  -datadir=* | --datadir=* | --datadi=* | --datad=*)
929    datadir=$ac_optarg ;;
930
931  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
932  | --dataroo | --dataro | --datar)
933    ac_prev=datarootdir ;;
934  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
935  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
936    datarootdir=$ac_optarg ;;
937
938  -disable-* | --disable-*)
939    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940    # Reject names that are not valid shell variable names.
941    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942      as_fn_error $? "invalid feature name: '$ac_useropt'"
943    ac_useropt_orig=$ac_useropt
944    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
945    case $ac_user_opts in
946      *"
947"enable_$ac_useropt"
948"*) ;;
949      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
950	 ac_unrecognized_sep=', ';;
951    esac
952    eval enable_$ac_useropt=no ;;
953
954  -docdir | --docdir | --docdi | --doc | --do)
955    ac_prev=docdir ;;
956  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
957    docdir=$ac_optarg ;;
958
959  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
960    ac_prev=dvidir ;;
961  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
962    dvidir=$ac_optarg ;;
963
964  -enable-* | --enable-*)
965    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
966    # Reject names that are not valid shell variable names.
967    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968      as_fn_error $? "invalid feature name: '$ac_useropt'"
969    ac_useropt_orig=$ac_useropt
970    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
971    case $ac_user_opts in
972      *"
973"enable_$ac_useropt"
974"*) ;;
975      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
976	 ac_unrecognized_sep=', ';;
977    esac
978    eval enable_$ac_useropt=\$ac_optarg ;;
979
980  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
981  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
982  | --exec | --exe | --ex)
983    ac_prev=exec_prefix ;;
984  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
985  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
986  | --exec=* | --exe=* | --ex=*)
987    exec_prefix=$ac_optarg ;;
988
989  -gas | --gas | --ga | --g)
990    # Obsolete; use --with-gas.
991    with_gas=yes ;;
992
993  -help | --help | --hel | --he | -h)
994    ac_init_help=long ;;
995  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
996    ac_init_help=recursive ;;
997  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
998    ac_init_help=short ;;
999
1000  -host | --host | --hos | --ho)
1001    ac_prev=host_alias ;;
1002  -host=* | --host=* | --hos=* | --ho=*)
1003    host_alias=$ac_optarg ;;
1004
1005  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1006    ac_prev=htmldir ;;
1007  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1008  | --ht=*)
1009    htmldir=$ac_optarg ;;
1010
1011  -includedir | --includedir | --includedi | --included | --include \
1012  | --includ | --inclu | --incl | --inc)
1013    ac_prev=includedir ;;
1014  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1015  | --includ=* | --inclu=* | --incl=* | --inc=*)
1016    includedir=$ac_optarg ;;
1017
1018  -infodir | --infodir | --infodi | --infod | --info | --inf)
1019    ac_prev=infodir ;;
1020  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1021    infodir=$ac_optarg ;;
1022
1023  -libdir | --libdir | --libdi | --libd)
1024    ac_prev=libdir ;;
1025  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1026    libdir=$ac_optarg ;;
1027
1028  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1029  | --libexe | --libex | --libe)
1030    ac_prev=libexecdir ;;
1031  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1032  | --libexe=* | --libex=* | --libe=*)
1033    libexecdir=$ac_optarg ;;
1034
1035  -localedir | --localedir | --localedi | --localed | --locale)
1036    ac_prev=localedir ;;
1037  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1038    localedir=$ac_optarg ;;
1039
1040  -localstatedir | --localstatedir | --localstatedi | --localstated \
1041  | --localstate | --localstat | --localsta | --localst | --locals)
1042    ac_prev=localstatedir ;;
1043  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1044  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1045    localstatedir=$ac_optarg ;;
1046
1047  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1048    ac_prev=mandir ;;
1049  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1050    mandir=$ac_optarg ;;
1051
1052  -nfp | --nfp | --nf)
1053    # Obsolete; use --without-fp.
1054    with_fp=no ;;
1055
1056  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1057  | --no-cr | --no-c | -n)
1058    no_create=yes ;;
1059
1060  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1061  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1062    no_recursion=yes ;;
1063
1064  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1065  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1066  | --oldin | --oldi | --old | --ol | --o)
1067    ac_prev=oldincludedir ;;
1068  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1069  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1070  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1071    oldincludedir=$ac_optarg ;;
1072
1073  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1074    ac_prev=prefix ;;
1075  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1076    prefix=$ac_optarg ;;
1077
1078  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1079  | --program-pre | --program-pr | --program-p)
1080    ac_prev=program_prefix ;;
1081  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1082  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1083    program_prefix=$ac_optarg ;;
1084
1085  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1086  | --program-suf | --program-su | --program-s)
1087    ac_prev=program_suffix ;;
1088  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1089  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1090    program_suffix=$ac_optarg ;;
1091
1092  -program-transform-name | --program-transform-name \
1093  | --program-transform-nam | --program-transform-na \
1094  | --program-transform-n | --program-transform- \
1095  | --program-transform | --program-transfor \
1096  | --program-transfo | --program-transf \
1097  | --program-trans | --program-tran \
1098  | --progr-tra | --program-tr | --program-t)
1099    ac_prev=program_transform_name ;;
1100  -program-transform-name=* | --program-transform-name=* \
1101  | --program-transform-nam=* | --program-transform-na=* \
1102  | --program-transform-n=* | --program-transform-=* \
1103  | --program-transform=* | --program-transfor=* \
1104  | --program-transfo=* | --program-transf=* \
1105  | --program-trans=* | --program-tran=* \
1106  | --progr-tra=* | --program-tr=* | --program-t=*)
1107    program_transform_name=$ac_optarg ;;
1108
1109  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1110    ac_prev=pdfdir ;;
1111  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1112    pdfdir=$ac_optarg ;;
1113
1114  -psdir | --psdir | --psdi | --psd | --ps)
1115    ac_prev=psdir ;;
1116  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1117    psdir=$ac_optarg ;;
1118
1119  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120  | -silent | --silent | --silen | --sile | --sil)
1121    silent=yes ;;
1122
1123  -runstatedir | --runstatedir | --runstatedi | --runstated \
1124  | --runstate | --runstat | --runsta | --runst | --runs \
1125  | --run | --ru | --r)
1126    ac_prev=runstatedir ;;
1127  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1128  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1129  | --run=* | --ru=* | --r=*)
1130    runstatedir=$ac_optarg ;;
1131
1132  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1133    ac_prev=sbindir ;;
1134  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1135  | --sbi=* | --sb=*)
1136    sbindir=$ac_optarg ;;
1137
1138  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1139  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1140  | --sharedst | --shareds | --shared | --share | --shar \
1141  | --sha | --sh)
1142    ac_prev=sharedstatedir ;;
1143  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1144  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1145  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1146  | --sha=* | --sh=*)
1147    sharedstatedir=$ac_optarg ;;
1148
1149  -site | --site | --sit)
1150    ac_prev=site ;;
1151  -site=* | --site=* | --sit=*)
1152    site=$ac_optarg ;;
1153
1154  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1155    ac_prev=srcdir ;;
1156  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1157    srcdir=$ac_optarg ;;
1158
1159  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1160  | --syscon | --sysco | --sysc | --sys | --sy)
1161    ac_prev=sysconfdir ;;
1162  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1163  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1164    sysconfdir=$ac_optarg ;;
1165
1166  -target | --target | --targe | --targ | --tar | --ta | --t)
1167    ac_prev=target_alias ;;
1168  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1169    target_alias=$ac_optarg ;;
1170
1171  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1172    verbose=yes ;;
1173
1174  -version | --version | --versio | --versi | --vers | -V)
1175    ac_init_version=: ;;
1176
1177  -with-* | --with-*)
1178    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1179    # Reject names that are not valid shell variable names.
1180    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181      as_fn_error $? "invalid package name: '$ac_useropt'"
1182    ac_useropt_orig=$ac_useropt
1183    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1184    case $ac_user_opts in
1185      *"
1186"with_$ac_useropt"
1187"*) ;;
1188      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189	 ac_unrecognized_sep=', ';;
1190    esac
1191    eval with_$ac_useropt=\$ac_optarg ;;
1192
1193  -without-* | --without-*)
1194    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195    # Reject names that are not valid shell variable names.
1196    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197      as_fn_error $? "invalid package name: '$ac_useropt'"
1198    ac_useropt_orig=$ac_useropt
1199    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1200    case $ac_user_opts in
1201      *"
1202"with_$ac_useropt"
1203"*) ;;
1204      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205	 ac_unrecognized_sep=', ';;
1206    esac
1207    eval with_$ac_useropt=no ;;
1208
1209  --x)
1210    # Obsolete; use --with-x.
1211    with_x=yes ;;
1212
1213  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214  | --x-incl | --x-inc | --x-in | --x-i)
1215    ac_prev=x_includes ;;
1216  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218    x_includes=$ac_optarg ;;
1219
1220  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222    ac_prev=x_libraries ;;
1223  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225    x_libraries=$ac_optarg ;;
1226
1227  -*) as_fn_error $? "unrecognized option: '$ac_option'
1228Try '$0 --help' for more information"
1229    ;;
1230
1231  *=*)
1232    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1233    # Reject names that are not valid shell variable names.
1234    case $ac_envvar in #(
1235      '' | [0-9]* | *[!_$as_cr_alnum]* )
1236      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1237    esac
1238    eval $ac_envvar=\$ac_optarg
1239    export $ac_envvar ;;
1240
1241  *)
1242    # FIXME: should be removed in autoconf 3.0.
1243    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1244    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1246    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1247    ;;
1248
1249  esac
1250done
1251
1252if test -n "$ac_prev"; then
1253  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1254  as_fn_error $? "missing argument to $ac_option"
1255fi
1256
1257if test -n "$ac_unrecognized_opts"; then
1258  case $enable_option_checking in
1259    no) ;;
1260    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1261    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1262  esac
1263fi
1264
1265# Check all directory arguments for consistency.
1266for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267		datadir sysconfdir sharedstatedir localstatedir includedir \
1268		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269		libdir localedir mandir runstatedir
1270do
1271  eval ac_val=\$$ac_var
1272  # Remove trailing slashes.
1273  case $ac_val in
1274    */ )
1275      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276      eval $ac_var=\$ac_val;;
1277  esac
1278  # Be sure to have absolute directory names.
1279  case $ac_val in
1280    [\\/$]* | ?:[\\/]* )  continue;;
1281    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1282  esac
1283  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1284done
1285
1286# There might be people who depend on the old broken behavior: '$host'
1287# used to hold the argument of --host etc.
1288# FIXME: To remove some day.
1289build=$build_alias
1290host=$host_alias
1291target=$target_alias
1292
1293# FIXME: To remove some day.
1294if test "x$host_alias" != x; then
1295  if test "x$build_alias" = x; then
1296    cross_compiling=maybe
1297  elif test "x$build_alias" != "x$host_alias"; then
1298    cross_compiling=yes
1299  fi
1300fi
1301
1302ac_tool_prefix=
1303test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304
1305test "$silent" = yes && exec 6>/dev/null
1306
1307
1308ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309ac_ls_di=`ls -di .` &&
1310ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311  as_fn_error $? "working directory cannot be determined"
1312test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313  as_fn_error $? "pwd does not report name of working directory"
1314
1315
1316# Find the source files, if location was not specified.
1317if test -z "$srcdir"; then
1318  ac_srcdir_defaulted=yes
1319  # Try the directory containing this script, then the parent directory.
1320  ac_confdir=`$as_dirname -- "$as_myself" ||
1321$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322	 X"$as_myself" : 'X\(//\)[^/]' \| \
1323	 X"$as_myself" : 'X\(//\)$' \| \
1324	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325printf "%s\n" X"$as_myself" |
1326    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327	    s//\1/
1328	    q
1329	  }
1330	  /^X\(\/\/\)[^/].*/{
1331	    s//\1/
1332	    q
1333	  }
1334	  /^X\(\/\/\)$/{
1335	    s//\1/
1336	    q
1337	  }
1338	  /^X\(\/\).*/{
1339	    s//\1/
1340	    q
1341	  }
1342	  s/.*/./; q'`
1343  srcdir=$ac_confdir
1344  if test ! -r "$srcdir/$ac_unique_file"; then
1345    srcdir=..
1346  fi
1347else
1348  ac_srcdir_defaulted=no
1349fi
1350if test ! -r "$srcdir/$ac_unique_file"; then
1351  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1353fi
1354ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1355ac_abs_confdir=`(
1356	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1357	pwd)`
1358# When building in place, set srcdir=.
1359if test "$ac_abs_confdir" = "$ac_pwd"; then
1360  srcdir=.
1361fi
1362# Remove unnecessary trailing slashes from srcdir.
1363# Double slashes in file names in object file debugging info
1364# mess up M-x gdb in Emacs.
1365case $srcdir in
1366*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367esac
1368for ac_var in $ac_precious_vars; do
1369  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1370  eval ac_env_${ac_var}_value=\$${ac_var}
1371  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1372  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373done
1374
1375#
1376# Report the --help message.
1377#
1378if test "$ac_init_help" = "long"; then
1379  # Omit some internal or obsolete options to make the list less imposing.
1380  # This message is too long to be a string in the A/UX 3.1 sh.
1381  cat <<_ACEOF
1382'configure' configures imake 1.0.10 to adapt to many kinds of systems.
1383
1384Usage: $0 [OPTION]... [VAR=VALUE]...
1385
1386To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387VAR=VALUE.  See below for descriptions of some of the useful variables.
1388
1389Defaults for the options are specified in brackets.
1390
1391Configuration:
1392  -h, --help              display this help and exit
1393      --help=short        display options specific to this package
1394      --help=recursive    display the short help of all the included packages
1395  -V, --version           display version information and exit
1396  -q, --quiet, --silent   do not print 'checking ...' messages
1397      --cache-file=FILE   cache test results in FILE [disabled]
1398  -C, --config-cache      alias for '--cache-file=config.cache'
1399  -n, --no-create         do not create output files
1400      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1401
1402Installation directories:
1403  --prefix=PREFIX         install architecture-independent files in PREFIX
1404                          [$ac_default_prefix]
1405  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1406                          [PREFIX]
1407
1408By default, 'make install' will install all the files in
1409'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1410an installation prefix other than '$ac_default_prefix' using '--prefix',
1411for instance '--prefix=\$HOME'.
1412
1413For better control, use the options below.
1414
1415Fine tuning of the installation directories:
1416  --bindir=DIR            user executables [EPREFIX/bin]
1417  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1418  --libexecdir=DIR        program executables [EPREFIX/libexec]
1419  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1420  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1421  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1422  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1423  --libdir=DIR            object code libraries [EPREFIX/lib]
1424  --includedir=DIR        C header files [PREFIX/include]
1425  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1426  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1427  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1428  --infodir=DIR           info documentation [DATAROOTDIR/info]
1429  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1430  --mandir=DIR            man documentation [DATAROOTDIR/man]
1431  --docdir=DIR            documentation root [DATAROOTDIR/doc/imake]
1432  --htmldir=DIR           html documentation [DOCDIR]
1433  --dvidir=DIR            dvi documentation [DOCDIR]
1434  --pdfdir=DIR            pdf documentation [DOCDIR]
1435  --psdir=DIR             ps documentation [DOCDIR]
1436_ACEOF
1437
1438  cat <<\_ACEOF
1439
1440Program names:
1441  --program-prefix=PREFIX            prepend PREFIX to installed program names
1442  --program-suffix=SUFFIX            append SUFFIX to installed program names
1443  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1444
1445System types:
1446  --build=BUILD     configure for building on BUILD [guessed]
1447  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1448_ACEOF
1449fi
1450
1451if test -n "$ac_init_help"; then
1452  case $ac_init_help in
1453     short | recursive ) echo "Configuration of imake 1.0.10:";;
1454   esac
1455  cat <<\_ACEOF
1456
1457Optional Features:
1458  --disable-option-checking  ignore unrecognized --enable/--with options
1459  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1460  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1461  --enable-silent-rules   less verbose build output (undo: "make V=1")
1462  --disable-silent-rules  verbose build output (undo: "make V=0")
1463  --enable-dependency-tracking
1464                          do not reject slow dependency extractors
1465  --disable-dependency-tracking
1466                          speeds up one-time build
1467  --disable-selective-werror
1468                          Turn off selective compiler errors. (default:
1469                          enabled)
1470  --enable-strict-compilation
1471                          Enable all warnings from compiler and make them
1472                          errors (default: disabled)
1473  --disable-largefile     omit support for large files
1474  --disable-revpath       Build revpath (default: enabled)
1475  --disable-makeg         Build makeg (default: enabled)
1476  --disable-xmkmf         Build xmkmf (default: enabled)
1477  --disable-ccmakedep     Build ccmakedep (default: enabled)
1478  --disable-mergelib      Build mergelib (default: enabled)
1479  --disable-mkdirhier     Build mkdirhier (default: enabled)
1480  --disable-cleanlinks    Build cleanlinks (default: enabled)
1481  --disable-mkhtmlindex   Build mkhtmlindex (default: enabled)
1482  --enable-year2038       support timestamps after 2038
1483
1484Optional Packages:
1485  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1486  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1487  --with-config-dir=<path>
1488                          Path to config dir (default: ${libdir}/X11/config)
1489  --with-script-preproc-cmd=CMD
1490                          Preprocessor command to run on scripts (default:
1491                          "gcc -E")
1492  --with-create-lib-cmd=CMD
1493                          Command to create libraries (default: "ar clq")
1494  --with-clean-lib-cmd=CMD
1495                          Command to clean up libraries (default: "ranlib")
1496
1497Some influential environment variables:
1498  CC          C compiler command
1499  CFLAGS      C compiler flags
1500  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1501              nonstandard directory <lib dir>
1502  LIBS        libraries to pass to the linker, e.g. -l<library>
1503  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1504              you have headers in a nonstandard directory <include dir>
1505  PKG_CONFIG  path to pkg-config utility
1506  PKG_CONFIG_PATH
1507              directories to add to pkg-config's search path
1508  PKG_CONFIG_LIBDIR
1509              path overriding pkg-config's built-in search path
1510  CPP         C preprocessor
1511  XPROTO_CFLAGS
1512              C compiler flags for XPROTO, overriding pkg-config
1513  XPROTO_LIBS linker flags for XPROTO, overriding pkg-config
1514
1515Use these variables to override the choices made by 'configure' or to help
1516it to find libraries and programs with nonstandard names/locations.
1517
1518Report bugs to <https://gitlab.freedesktop.org/xorg/util/imake/-/issues>.
1519_ACEOF
1520ac_status=$?
1521fi
1522
1523if test "$ac_init_help" = "recursive"; then
1524  # If there are subdirs, report their specific --help.
1525  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1526    test -d "$ac_dir" ||
1527      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1528      continue
1529    ac_builddir=.
1530
1531case "$ac_dir" in
1532.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533*)
1534  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1535  # A ".." for each directory in $ac_dir_suffix.
1536  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1537  case $ac_top_builddir_sub in
1538  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1540  esac ;;
1541esac
1542ac_abs_top_builddir=$ac_pwd
1543ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544# for backward compatibility:
1545ac_top_builddir=$ac_top_build_prefix
1546
1547case $srcdir in
1548  .)  # We are building in place.
1549    ac_srcdir=.
1550    ac_top_srcdir=$ac_top_builddir_sub
1551    ac_abs_top_srcdir=$ac_pwd ;;
1552  [\\/]* | ?:[\\/]* )  # Absolute name.
1553    ac_srcdir=$srcdir$ac_dir_suffix;
1554    ac_top_srcdir=$srcdir
1555    ac_abs_top_srcdir=$srcdir ;;
1556  *) # Relative name.
1557    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558    ac_top_srcdir=$ac_top_build_prefix$srcdir
1559    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1560esac
1561ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562
1563    cd "$ac_dir" || { ac_status=$?; continue; }
1564    # Check for configure.gnu first; this name is used for a wrapper for
1565    # Metaconfig's "Configure" on case-insensitive file systems.
1566    if test -f "$ac_srcdir/configure.gnu"; then
1567      echo &&
1568      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1569    elif test -f "$ac_srcdir/configure"; then
1570      echo &&
1571      $SHELL "$ac_srcdir/configure" --help=recursive
1572    else
1573      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1574    fi || ac_status=$?
1575    cd "$ac_pwd" || { ac_status=$?; break; }
1576  done
1577fi
1578
1579test -n "$ac_init_help" && exit $ac_status
1580if $ac_init_version; then
1581  cat <<\_ACEOF
1582imake configure 1.0.10
1583generated by GNU Autoconf 2.72
1584
1585Copyright (C) 2023 Free Software Foundation, Inc.
1586This configure script is free software; the Free Software Foundation
1587gives unlimited permission to copy, distribute and modify it.
1588_ACEOF
1589  exit
1590fi
1591
1592## ------------------------ ##
1593## Autoconf initialization. ##
1594## ------------------------ ##
1595
1596# ac_fn_c_try_compile LINENO
1597# --------------------------
1598# Try to compile conftest.$ac_ext, and return whether this succeeded.
1599ac_fn_c_try_compile ()
1600{
1601  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602  rm -f conftest.$ac_objext conftest.beam
1603  if { { ac_try="$ac_compile"
1604case "(($ac_try" in
1605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606  *) ac_try_echo=$ac_try;;
1607esac
1608eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609printf "%s\n" "$ac_try_echo"; } >&5
1610  (eval "$ac_compile") 2>conftest.err
1611  ac_status=$?
1612  if test -s conftest.err; then
1613    grep -v '^ *+' conftest.err >conftest.er1
1614    cat conftest.er1 >&5
1615    mv -f conftest.er1 conftest.err
1616  fi
1617  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618  test $ac_status = 0; } && {
1619	 test -z "$ac_c_werror_flag" ||
1620	 test ! -s conftest.err
1621       } && test -s conftest.$ac_objext
1622then :
1623  ac_retval=0
1624else case e in #(
1625  e) printf "%s\n" "$as_me: failed program was:" >&5
1626sed 's/^/| /' conftest.$ac_ext >&5
1627
1628	ac_retval=1 ;;
1629esac
1630fi
1631  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632  as_fn_set_status $ac_retval
1633
1634} # ac_fn_c_try_compile
1635
1636# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1637# ------------------------------------------------------------------
1638# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1639# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1640ac_fn_check_decl ()
1641{
1642  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643  as_decl_name=`echo $2|sed 's/ *(.*//'`
1644  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1645printf %s "checking whether $as_decl_name is declared... " >&6; }
1646if eval test \${$3+y}
1647then :
1648  printf %s "(cached) " >&6
1649else case e in #(
1650  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1651  eval ac_save_FLAGS=\$$6
1652  as_fn_append $6 " $5"
1653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654/* end confdefs.h.  */
1655$4
1656int
1657main (void)
1658{
1659#ifndef $as_decl_name
1660#ifdef __cplusplus
1661  (void) $as_decl_use;
1662#else
1663  (void) $as_decl_name;
1664#endif
1665#endif
1666
1667  ;
1668  return 0;
1669}
1670_ACEOF
1671if ac_fn_c_try_compile "$LINENO"
1672then :
1673  eval "$3=yes"
1674else case e in #(
1675  e) eval "$3=no" ;;
1676esac
1677fi
1678rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1679  eval $6=\$ac_save_FLAGS
1680 ;;
1681esac
1682fi
1683eval ac_res=\$$3
1684	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1685printf "%s\n" "$ac_res" >&6; }
1686  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687
1688} # ac_fn_check_decl
1689
1690# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1691# -------------------------------------------------------
1692# Tests whether HEADER exists and can be compiled using the include files in
1693# INCLUDES, setting the cache variable VAR accordingly.
1694ac_fn_c_check_header_compile ()
1695{
1696  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1698printf %s "checking for $2... " >&6; }
1699if eval test \${$3+y}
1700then :
1701  printf %s "(cached) " >&6
1702else case e in #(
1703  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704/* end confdefs.h.  */
1705$4
1706#include <$2>
1707_ACEOF
1708if ac_fn_c_try_compile "$LINENO"
1709then :
1710  eval "$3=yes"
1711else case e in #(
1712  e) eval "$3=no" ;;
1713esac
1714fi
1715rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1716esac
1717fi
1718eval ac_res=\$$3
1719	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720printf "%s\n" "$ac_res" >&6; }
1721  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722
1723} # ac_fn_c_check_header_compile
1724
1725# ac_fn_c_try_link LINENO
1726# -----------------------
1727# Try to link conftest.$ac_ext, and return whether this succeeded.
1728ac_fn_c_try_link ()
1729{
1730  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1732  if { { ac_try="$ac_link"
1733case "(($ac_try" in
1734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735  *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738printf "%s\n" "$ac_try_echo"; } >&5
1739  (eval "$ac_link") 2>conftest.err
1740  ac_status=$?
1741  if test -s conftest.err; then
1742    grep -v '^ *+' conftest.err >conftest.er1
1743    cat conftest.er1 >&5
1744    mv -f conftest.er1 conftest.err
1745  fi
1746  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747  test $ac_status = 0; } && {
1748	 test -z "$ac_c_werror_flag" ||
1749	 test ! -s conftest.err
1750       } && test -s conftest$ac_exeext && {
1751	 test "$cross_compiling" = yes ||
1752	 test -x conftest$ac_exeext
1753       }
1754then :
1755  ac_retval=0
1756else case e in #(
1757  e) printf "%s\n" "$as_me: failed program was:" >&5
1758sed 's/^/| /' conftest.$ac_ext >&5
1759
1760	ac_retval=1 ;;
1761esac
1762fi
1763  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1764  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1765  # interfere with the next link command; also delete a directory that is
1766  # left behind by Apple's compiler.  We do this before executing the actions.
1767  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1768  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769  as_fn_set_status $ac_retval
1770
1771} # ac_fn_c_try_link
1772
1773# ac_fn_c_try_cpp LINENO
1774# ----------------------
1775# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1776ac_fn_c_try_cpp ()
1777{
1778  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779  if { { ac_try="$ac_cpp conftest.$ac_ext"
1780case "(($ac_try" in
1781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782  *) ac_try_echo=$ac_try;;
1783esac
1784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785printf "%s\n" "$ac_try_echo"; } >&5
1786  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1787  ac_status=$?
1788  if test -s conftest.err; then
1789    grep -v '^ *+' conftest.err >conftest.er1
1790    cat conftest.er1 >&5
1791    mv -f conftest.er1 conftest.err
1792  fi
1793  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794  test $ac_status = 0; } > conftest.i && {
1795	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1796	 test ! -s conftest.err
1797       }
1798then :
1799  ac_retval=0
1800else case e in #(
1801  e) printf "%s\n" "$as_me: failed program was:" >&5
1802sed 's/^/| /' conftest.$ac_ext >&5
1803
1804    ac_retval=1 ;;
1805esac
1806fi
1807  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808  as_fn_set_status $ac_retval
1809
1810} # ac_fn_c_try_cpp
1811
1812# ac_fn_c_check_func LINENO FUNC VAR
1813# ----------------------------------
1814# Tests whether FUNC exists, setting the cache variable VAR accordingly
1815ac_fn_c_check_func ()
1816{
1817  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819printf %s "checking for $2... " >&6; }
1820if eval test \${$3+y}
1821then :
1822  printf %s "(cached) " >&6
1823else case e in #(
1824  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825/* end confdefs.h.  */
1826/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1828#define $2 innocuous_$2
1829
1830/* System header to define __stub macros and hopefully few prototypes,
1831   which can conflict with char $2 (void); below.  */
1832
1833#include <limits.h>
1834#undef $2
1835
1836/* Override any GCC internal prototype to avoid an error.
1837   Use char because int might match the return type of a GCC
1838   builtin and then its argument prototype would still apply.  */
1839#ifdef __cplusplus
1840extern "C"
1841#endif
1842char $2 (void);
1843/* The GNU C library defines this for functions which it implements
1844    to always fail with ENOSYS.  Some functions are actually named
1845    something starting with __ and the normal name is an alias.  */
1846#if defined __stub_$2 || defined __stub___$2
1847choke me
1848#endif
1849
1850int
1851main (void)
1852{
1853return $2 ();
1854  ;
1855  return 0;
1856}
1857_ACEOF
1858if ac_fn_c_try_link "$LINENO"
1859then :
1860  eval "$3=yes"
1861else case e in #(
1862  e) eval "$3=no" ;;
1863esac
1864fi
1865rm -f core conftest.err conftest.$ac_objext conftest.beam \
1866    conftest$ac_exeext conftest.$ac_ext ;;
1867esac
1868fi
1869eval ac_res=\$$3
1870	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871printf "%s\n" "$ac_res" >&6; }
1872  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873
1874} # ac_fn_c_check_func
1875ac_configure_args_raw=
1876for ac_arg
1877do
1878  case $ac_arg in
1879  *\'*)
1880    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1881  esac
1882  as_fn_append ac_configure_args_raw " '$ac_arg'"
1883done
1884
1885case $ac_configure_args_raw in
1886  *$as_nl*)
1887    ac_safe_unquote= ;;
1888  *)
1889    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1890    ac_unsafe_a="$ac_unsafe_z#~"
1891    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1892    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1893esac
1894
1895cat >config.log <<_ACEOF
1896This file contains any messages produced by compilers while
1897running configure, to aid debugging if configure makes a mistake.
1898
1899It was created by imake $as_me 1.0.10, which was
1900generated by GNU Autoconf 2.72.  Invocation command line was
1901
1902  $ $0$ac_configure_args_raw
1903
1904_ACEOF
1905exec 5>>config.log
1906{
1907cat <<_ASUNAME
1908## --------- ##
1909## Platform. ##
1910## --------- ##
1911
1912hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1913uname -m = `(uname -m) 2>/dev/null || echo unknown`
1914uname -r = `(uname -r) 2>/dev/null || echo unknown`
1915uname -s = `(uname -s) 2>/dev/null || echo unknown`
1916uname -v = `(uname -v) 2>/dev/null || echo unknown`
1917
1918/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1919/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1920
1921/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1922/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1923/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1924/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1925/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1926/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1927/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1928
1929_ASUNAME
1930
1931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932for as_dir in $PATH
1933do
1934  IFS=$as_save_IFS
1935  case $as_dir in #(((
1936    '') as_dir=./ ;;
1937    */) ;;
1938    *) as_dir=$as_dir/ ;;
1939  esac
1940    printf "%s\n" "PATH: $as_dir"
1941  done
1942IFS=$as_save_IFS
1943
1944} >&5
1945
1946cat >&5 <<_ACEOF
1947
1948
1949## ----------- ##
1950## Core tests. ##
1951## ----------- ##
1952
1953_ACEOF
1954
1955
1956# Keep a trace of the command line.
1957# Strip out --no-create and --no-recursion so they do not pile up.
1958# Strip out --silent because we don't want to record it for future runs.
1959# Also quote any args containing shell meta-characters.
1960# Make two passes to allow for proper duplicate-argument suppression.
1961ac_configure_args=
1962ac_configure_args0=
1963ac_configure_args1=
1964ac_must_keep_next=false
1965for ac_pass in 1 2
1966do
1967  for ac_arg
1968  do
1969    case $ac_arg in
1970    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1971    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1972    | -silent | --silent | --silen | --sile | --sil)
1973      continue ;;
1974    *\'*)
1975      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1976    esac
1977    case $ac_pass in
1978    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1979    2)
1980      as_fn_append ac_configure_args1 " '$ac_arg'"
1981      if test $ac_must_keep_next = true; then
1982	ac_must_keep_next=false # Got value, back to normal.
1983      else
1984	case $ac_arg in
1985	  *=* | --config-cache | -C | -disable-* | --disable-* \
1986	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1987	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1988	  | -with-* | --with-* | -without-* | --without-* | --x)
1989	    case "$ac_configure_args0 " in
1990	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1991	    esac
1992	    ;;
1993	  -* ) ac_must_keep_next=true ;;
1994	esac
1995      fi
1996      as_fn_append ac_configure_args " '$ac_arg'"
1997      ;;
1998    esac
1999  done
2000done
2001{ ac_configure_args0=; unset ac_configure_args0;}
2002{ ac_configure_args1=; unset ac_configure_args1;}
2003
2004# When interrupted or exit'd, cleanup temporary files, and complete
2005# config.log.  We remove comments because anyway the quotes in there
2006# would cause problems or look ugly.
2007# WARNING: Use '\'' to represent an apostrophe within the trap.
2008# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2009trap 'exit_status=$?
2010  # Sanitize IFS.
2011  IFS=" ""	$as_nl"
2012  # Save into config.log some information that might help in debugging.
2013  {
2014    echo
2015
2016    printf "%s\n" "## ---------------- ##
2017## Cache variables. ##
2018## ---------------- ##"
2019    echo
2020    # The following way of writing the cache mishandles newlines in values,
2021(
2022  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2023    eval ac_val=\$$ac_var
2024    case $ac_val in #(
2025    *${as_nl}*)
2026      case $ac_var in #(
2027      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2028printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2029      esac
2030      case $ac_var in #(
2031      _ | IFS | as_nl) ;; #(
2032      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2033      *) { eval $ac_var=; unset $ac_var;} ;;
2034      esac ;;
2035    esac
2036  done
2037  (set) 2>&1 |
2038    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2039    *${as_nl}ac_space=\ *)
2040      sed -n \
2041	"s/'\''/'\''\\\\'\'''\''/g;
2042	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2043      ;; #(
2044    *)
2045      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2046      ;;
2047    esac |
2048    sort
2049)
2050    echo
2051
2052    printf "%s\n" "## ----------------- ##
2053## Output variables. ##
2054## ----------------- ##"
2055    echo
2056    for ac_var in $ac_subst_vars
2057    do
2058      eval ac_val=\$$ac_var
2059      case $ac_val in
2060      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2061      esac
2062      printf "%s\n" "$ac_var='\''$ac_val'\''"
2063    done | sort
2064    echo
2065
2066    if test -n "$ac_subst_files"; then
2067      printf "%s\n" "## ------------------- ##
2068## File substitutions. ##
2069## ------------------- ##"
2070      echo
2071      for ac_var in $ac_subst_files
2072      do
2073	eval ac_val=\$$ac_var
2074	case $ac_val in
2075	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2076	esac
2077	printf "%s\n" "$ac_var='\''$ac_val'\''"
2078      done | sort
2079      echo
2080    fi
2081
2082    if test -s confdefs.h; then
2083      printf "%s\n" "## ----------- ##
2084## confdefs.h. ##
2085## ----------- ##"
2086      echo
2087      cat confdefs.h
2088      echo
2089    fi
2090    test "$ac_signal" != 0 &&
2091      printf "%s\n" "$as_me: caught signal $ac_signal"
2092    printf "%s\n" "$as_me: exit $exit_status"
2093  } >&5
2094  rm -f core *.core core.conftest.* &&
2095    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2096    exit $exit_status
2097' 0
2098for ac_signal in 1 2 13 15; do
2099  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2100done
2101ac_signal=0
2102
2103# confdefs.h avoids OS command line length limits that DEFS can exceed.
2104rm -f -r conftest* confdefs.h
2105
2106printf "%s\n" "/* confdefs.h */" > confdefs.h
2107
2108# Predefined preprocessor variables.
2109
2110printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2111
2112printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2113
2114printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2115
2116printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2117
2118printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2119
2120printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2121
2122
2123# Let the site file select an alternate cache file if it wants to.
2124# Prefer an explicitly selected file to automatically selected ones.
2125if test -n "$CONFIG_SITE"; then
2126  ac_site_files="$CONFIG_SITE"
2127elif test "x$prefix" != xNONE; then
2128  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2129else
2130  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2131fi
2132
2133for ac_site_file in $ac_site_files
2134do
2135  case $ac_site_file in #(
2136  */*) :
2137     ;; #(
2138  *) :
2139    ac_site_file=./$ac_site_file ;;
2140esac
2141  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2142    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2143printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2144    sed 's/^/| /' "$ac_site_file" >&5
2145    . "$ac_site_file" \
2146      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2147printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2148as_fn_error $? "failed to load site script $ac_site_file
2149See 'config.log' for more details" "$LINENO" 5; }
2150  fi
2151done
2152
2153if test -r "$cache_file"; then
2154  # Some versions of bash will fail to source /dev/null (special files
2155  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2156  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2157    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2158printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2159    case $cache_file in
2160      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2161      *)                      . "./$cache_file";;
2162    esac
2163  fi
2164else
2165  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2166printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2167  >$cache_file
2168fi
2169
2170# Test code for whether the C compiler supports C89 (global declarations)
2171ac_c_conftest_c89_globals='
2172/* Does the compiler advertise C89 conformance?
2173   Do not test the value of __STDC__, because some compilers set it to 0
2174   while being otherwise adequately conformant. */
2175#if !defined __STDC__
2176# error "Compiler does not advertise C89 conformance"
2177#endif
2178
2179#include <stddef.h>
2180#include <stdarg.h>
2181struct stat;
2182/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2183struct buf { int x; };
2184struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2185static char *e (char **p, int i)
2186{
2187  return p[i];
2188}
2189static char *f (char * (*g) (char **, int), char **p, ...)
2190{
2191  char *s;
2192  va_list v;
2193  va_start (v,p);
2194  s = g (p, va_arg (v,int));
2195  va_end (v);
2196  return s;
2197}
2198
2199/* C89 style stringification. */
2200#define noexpand_stringify(a) #a
2201const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2202
2203/* C89 style token pasting.  Exercises some of the corner cases that
2204   e.g. old MSVC gets wrong, but not very hard. */
2205#define noexpand_concat(a,b) a##b
2206#define expand_concat(a,b) noexpand_concat(a,b)
2207extern int vA;
2208extern int vbee;
2209#define aye A
2210#define bee B
2211int *pvA = &expand_concat(v,aye);
2212int *pvbee = &noexpand_concat(v,bee);
2213
2214/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2215   function prototypes and stuff, but not \xHH hex character constants.
2216   These do not provoke an error unfortunately, instead are silently treated
2217   as an "x".  The following induces an error, until -std is added to get
2218   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2219   array size at least.  It is necessary to write \x00 == 0 to get something
2220   that is true only with -std.  */
2221int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2222
2223/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2224   inside strings and character constants.  */
2225#define FOO(x) '\''x'\''
2226int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2227
2228int test (int i, double x);
2229struct s1 {int (*f) (int a);};
2230struct s2 {int (*f) (double a);};
2231int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2232               int, int);'
2233
2234# Test code for whether the C compiler supports C89 (body of main).
2235ac_c_conftest_c89_main='
2236ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2237'
2238
2239# Test code for whether the C compiler supports C99 (global declarations)
2240ac_c_conftest_c99_globals='
2241/* Does the compiler advertise C99 conformance? */
2242#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2243# error "Compiler does not advertise C99 conformance"
2244#endif
2245
2246// See if C++-style comments work.
2247
2248#include <stdbool.h>
2249extern int puts (const char *);
2250extern int printf (const char *, ...);
2251extern int dprintf (int, const char *, ...);
2252extern void *malloc (size_t);
2253extern void free (void *);
2254
2255// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2256// dprintf is used instead of fprintf to avoid needing to declare
2257// FILE and stderr.
2258#define debug(...) dprintf (2, __VA_ARGS__)
2259#define showlist(...) puts (#__VA_ARGS__)
2260#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2261static void
2262test_varargs_macros (void)
2263{
2264  int x = 1234;
2265  int y = 5678;
2266  debug ("Flag");
2267  debug ("X = %d\n", x);
2268  showlist (The first, second, and third items.);
2269  report (x>y, "x is %d but y is %d", x, y);
2270}
2271
2272// Check long long types.
2273#define BIG64 18446744073709551615ull
2274#define BIG32 4294967295ul
2275#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2276#if !BIG_OK
2277  #error "your preprocessor is broken"
2278#endif
2279#if BIG_OK
2280#else
2281  #error "your preprocessor is broken"
2282#endif
2283static long long int bignum = -9223372036854775807LL;
2284static unsigned long long int ubignum = BIG64;
2285
2286struct incomplete_array
2287{
2288  int datasize;
2289  double data[];
2290};
2291
2292struct named_init {
2293  int number;
2294  const wchar_t *name;
2295  double average;
2296};
2297
2298typedef const char *ccp;
2299
2300static inline int
2301test_restrict (ccp restrict text)
2302{
2303  // Iterate through items via the restricted pointer.
2304  // Also check for declarations in for loops.
2305  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2306    continue;
2307  return 0;
2308}
2309
2310// Check varargs and va_copy.
2311static bool
2312test_varargs (const char *format, ...)
2313{
2314  va_list args;
2315  va_start (args, format);
2316  va_list args_copy;
2317  va_copy (args_copy, args);
2318
2319  const char *str = "";
2320  int number = 0;
2321  float fnumber = 0;
2322
2323  while (*format)
2324    {
2325      switch (*format++)
2326	{
2327	case '\''s'\'': // string
2328	  str = va_arg (args_copy, const char *);
2329	  break;
2330	case '\''d'\'': // int
2331	  number = va_arg (args_copy, int);
2332	  break;
2333	case '\''f'\'': // float
2334	  fnumber = va_arg (args_copy, double);
2335	  break;
2336	default:
2337	  break;
2338	}
2339    }
2340  va_end (args_copy);
2341  va_end (args);
2342
2343  return *str && number && fnumber;
2344}
2345'
2346
2347# Test code for whether the C compiler supports C99 (body of main).
2348ac_c_conftest_c99_main='
2349  // Check bool.
2350  _Bool success = false;
2351  success |= (argc != 0);
2352
2353  // Check restrict.
2354  if (test_restrict ("String literal") == 0)
2355    success = true;
2356  char *restrict newvar = "Another string";
2357
2358  // Check varargs.
2359  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2360  test_varargs_macros ();
2361
2362  // Check flexible array members.
2363  struct incomplete_array *ia =
2364    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2365  ia->datasize = 10;
2366  for (int i = 0; i < ia->datasize; ++i)
2367    ia->data[i] = i * 1.234;
2368  // Work around memory leak warnings.
2369  free (ia);
2370
2371  // Check named initializers.
2372  struct named_init ni = {
2373    .number = 34,
2374    .name = L"Test wide string",
2375    .average = 543.34343,
2376  };
2377
2378  ni.number = 58;
2379
2380  int dynamic_array[ni.number];
2381  dynamic_array[0] = argv[0][0];
2382  dynamic_array[ni.number - 1] = 543;
2383
2384  // work around unused variable warnings
2385  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2386	 || dynamic_array[ni.number - 1] != 543);
2387'
2388
2389# Test code for whether the C compiler supports C11 (global declarations)
2390ac_c_conftest_c11_globals='
2391/* Does the compiler advertise C11 conformance? */
2392#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2393# error "Compiler does not advertise C11 conformance"
2394#endif
2395
2396// Check _Alignas.
2397char _Alignas (double) aligned_as_double;
2398char _Alignas (0) no_special_alignment;
2399extern char aligned_as_int;
2400char _Alignas (0) _Alignas (int) aligned_as_int;
2401
2402// Check _Alignof.
2403enum
2404{
2405  int_alignment = _Alignof (int),
2406  int_array_alignment = _Alignof (int[100]),
2407  char_alignment = _Alignof (char)
2408};
2409_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2410
2411// Check _Noreturn.
2412int _Noreturn does_not_return (void) { for (;;) continue; }
2413
2414// Check _Static_assert.
2415struct test_static_assert
2416{
2417  int x;
2418  _Static_assert (sizeof (int) <= sizeof (long int),
2419                  "_Static_assert does not work in struct");
2420  long int y;
2421};
2422
2423// Check UTF-8 literals.
2424#define u8 syntax error!
2425char const utf8_literal[] = u8"happens to be ASCII" "another string";
2426
2427// Check duplicate typedefs.
2428typedef long *long_ptr;
2429typedef long int *long_ptr;
2430typedef long_ptr long_ptr;
2431
2432// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2433struct anonymous
2434{
2435  union {
2436    struct { int i; int j; };
2437    struct { int k; long int l; } w;
2438  };
2439  int m;
2440} v1;
2441'
2442
2443# Test code for whether the C compiler supports C11 (body of main).
2444ac_c_conftest_c11_main='
2445  _Static_assert ((offsetof (struct anonymous, i)
2446		   == offsetof (struct anonymous, w.k)),
2447		  "Anonymous union alignment botch");
2448  v1.i = 2;
2449  v1.w.k = 5;
2450  ok |= v1.i != 5;
2451'
2452
2453# Test code for whether the C compiler supports C11 (complete).
2454ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2455${ac_c_conftest_c99_globals}
2456${ac_c_conftest_c11_globals}
2457
2458int
2459main (int argc, char **argv)
2460{
2461  int ok = 0;
2462  ${ac_c_conftest_c89_main}
2463  ${ac_c_conftest_c99_main}
2464  ${ac_c_conftest_c11_main}
2465  return ok;
2466}
2467"
2468
2469# Test code for whether the C compiler supports C99 (complete).
2470ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2471${ac_c_conftest_c99_globals}
2472
2473int
2474main (int argc, char **argv)
2475{
2476  int ok = 0;
2477  ${ac_c_conftest_c89_main}
2478  ${ac_c_conftest_c99_main}
2479  return ok;
2480}
2481"
2482
2483# Test code for whether the C compiler supports C89 (complete).
2484ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2485
2486int
2487main (int argc, char **argv)
2488{
2489  int ok = 0;
2490  ${ac_c_conftest_c89_main}
2491  return ok;
2492}
2493"
2494
2495as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2496as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2497as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2498as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2499as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2500as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2501as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2502as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2503as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2504
2505# Auxiliary files required by this configure script.
2506ac_aux_files="config.guess config.sub compile missing install-sh"
2507
2508# Locations in which to look for auxiliary files.
2509ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2510
2511# Search for a directory containing all of the required auxiliary files,
2512# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2513# If we don't find one directory that contains all the files we need,
2514# we report the set of missing files from the *first* directory in
2515# $ac_aux_dir_candidates and give up.
2516ac_missing_aux_files=""
2517ac_first_candidate=:
2518printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520as_found=false
2521for as_dir in $ac_aux_dir_candidates
2522do
2523  IFS=$as_save_IFS
2524  case $as_dir in #(((
2525    '') as_dir=./ ;;
2526    */) ;;
2527    *) as_dir=$as_dir/ ;;
2528  esac
2529  as_found=:
2530
2531  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2532  ac_aux_dir_found=yes
2533  ac_install_sh=
2534  for ac_aux in $ac_aux_files
2535  do
2536    # As a special case, if "install-sh" is required, that requirement
2537    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2538    # and $ac_install_sh is set appropriately for whichever one is found.
2539    if test x"$ac_aux" = x"install-sh"
2540    then
2541      if test -f "${as_dir}install-sh"; then
2542        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2543        ac_install_sh="${as_dir}install-sh -c"
2544      elif test -f "${as_dir}install.sh"; then
2545        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2546        ac_install_sh="${as_dir}install.sh -c"
2547      elif test -f "${as_dir}shtool"; then
2548        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2549        ac_install_sh="${as_dir}shtool install -c"
2550      else
2551        ac_aux_dir_found=no
2552        if $ac_first_candidate; then
2553          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2554        else
2555          break
2556        fi
2557      fi
2558    else
2559      if test -f "${as_dir}${ac_aux}"; then
2560        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2561      else
2562        ac_aux_dir_found=no
2563        if $ac_first_candidate; then
2564          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2565        else
2566          break
2567        fi
2568      fi
2569    fi
2570  done
2571  if test "$ac_aux_dir_found" = yes; then
2572    ac_aux_dir="$as_dir"
2573    break
2574  fi
2575  ac_first_candidate=false
2576
2577  as_found=false
2578done
2579IFS=$as_save_IFS
2580if $as_found
2581then :
2582
2583else case e in #(
2584  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2585esac
2586fi
2587
2588
2589# These three variables are undocumented and unsupported,
2590# and are intended to be withdrawn in a future Autoconf release.
2591# They can cause serious problems if a builder's source tree is in a directory
2592# whose full name contains unusual characters.
2593if test -f "${ac_aux_dir}config.guess"; then
2594  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2595fi
2596if test -f "${ac_aux_dir}config.sub"; then
2597  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2598fi
2599if test -f "$ac_aux_dir/configure"; then
2600  ac_configure="$SHELL ${ac_aux_dir}configure"
2601fi
2602
2603# Check that the precious variables saved in the cache have kept the same
2604# value.
2605ac_cache_corrupted=false
2606for ac_var in $ac_precious_vars; do
2607  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2608  eval ac_new_set=\$ac_env_${ac_var}_set
2609  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2610  eval ac_new_val=\$ac_env_${ac_var}_value
2611  case $ac_old_set,$ac_new_set in
2612    set,)
2613      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2614printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2615      ac_cache_corrupted=: ;;
2616    ,set)
2617      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2618printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2619      ac_cache_corrupted=: ;;
2620    ,);;
2621    *)
2622      if test "x$ac_old_val" != "x$ac_new_val"; then
2623	# differences in whitespace do not lead to failure.
2624	ac_old_val_w=`echo x $ac_old_val`
2625	ac_new_val_w=`echo x $ac_new_val`
2626	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2627	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2628printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2629	  ac_cache_corrupted=:
2630	else
2631	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2632printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2633	  eval $ac_var=\$ac_old_val
2634	fi
2635	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2636printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2637	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2638printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2639      fi;;
2640  esac
2641  # Pass precious variables to config.status.
2642  if test "$ac_new_set" = set; then
2643    case $ac_new_val in
2644    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2645    *) ac_arg=$ac_var=$ac_new_val ;;
2646    esac
2647    case " $ac_configure_args " in
2648      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2649      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2650    esac
2651  fi
2652done
2653if $ac_cache_corrupted; then
2654  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2655printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2656  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2657printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2658  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2659	    and start over" "$LINENO" 5
2660fi
2661## -------------------- ##
2662## Main body of script. ##
2663## -------------------- ##
2664
2665ac_ext=c
2666ac_cpp='$CPP $CPPFLAGS'
2667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2669ac_compiler_gnu=$ac_cv_c_compiler_gnu
2670
2671
2672
2673ac_config_headers="$ac_config_headers config.h"
2674
2675
2676# Initialize Automake
2677am__api_version='1.16'
2678
2679
2680
2681  # Find a good install program.  We prefer a C program (faster),
2682# so one script is as good as another.  But avoid the broken or
2683# incompatible versions:
2684# SysV /etc/install, /usr/sbin/install
2685# SunOS /usr/etc/install
2686# IRIX /sbin/install
2687# AIX /bin/install
2688# AmigaOS /C/install, which installs bootblocks on floppy discs
2689# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2690# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2691# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2692# OS/2's system install, which has a completely different semantic
2693# ./install, which can be erroneously created by make from ./install.sh.
2694# Reject install programs that cannot install multiple files.
2695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2696printf %s "checking for a BSD-compatible install... " >&6; }
2697if test -z "$INSTALL"; then
2698if test ${ac_cv_path_install+y}
2699then :
2700  printf %s "(cached) " >&6
2701else case e in #(
2702  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703for as_dir in $PATH
2704do
2705  IFS=$as_save_IFS
2706  case $as_dir in #(((
2707    '') as_dir=./ ;;
2708    */) ;;
2709    *) as_dir=$as_dir/ ;;
2710  esac
2711    # Account for fact that we put trailing slashes in our PATH walk.
2712case $as_dir in #((
2713  ./ | /[cC]/* | \
2714  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2715  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2716  /usr/ucb/* ) ;;
2717  *)
2718    # OSF1 and SCO ODT 3.0 have their own names for install.
2719    # Don't use installbsd from OSF since it installs stuff as root
2720    # by default.
2721    for ac_prog in ginstall scoinst install; do
2722      for ac_exec_ext in '' $ac_executable_extensions; do
2723	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2724	  if test $ac_prog = install &&
2725	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2726	    # AIX install.  It has an incompatible calling convention.
2727	    :
2728	  elif test $ac_prog = install &&
2729	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2730	    # program-specific install script used by HP pwplus--don't use.
2731	    :
2732	  else
2733	    rm -rf conftest.one conftest.two conftest.dir
2734	    echo one > conftest.one
2735	    echo two > conftest.two
2736	    mkdir conftest.dir
2737	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2738	      test -s conftest.one && test -s conftest.two &&
2739	      test -s conftest.dir/conftest.one &&
2740	      test -s conftest.dir/conftest.two
2741	    then
2742	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2743	      break 3
2744	    fi
2745	  fi
2746	fi
2747      done
2748    done
2749    ;;
2750esac
2751
2752  done
2753IFS=$as_save_IFS
2754
2755rm -rf conftest.one conftest.two conftest.dir
2756 ;;
2757esac
2758fi
2759  if test ${ac_cv_path_install+y}; then
2760    INSTALL=$ac_cv_path_install
2761  else
2762    # As a last resort, use the slow shell script.  Don't cache a
2763    # value for INSTALL within a source directory, because that will
2764    # break other packages using the cache if that directory is
2765    # removed, or if the value is a relative name.
2766    INSTALL=$ac_install_sh
2767  fi
2768fi
2769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2770printf "%s\n" "$INSTALL" >&6; }
2771
2772# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2773# It thinks the first close brace ends the variable substitution.
2774test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2775
2776test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2777
2778test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2779
2780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2781printf %s "checking whether build environment is sane... " >&6; }
2782# Reject unsafe characters in $srcdir or the absolute working directory
2783# name.  Accept space and tab only in the latter.
2784am_lf='
2785'
2786case `pwd` in
2787  *[\\\"\#\$\&\'\`$am_lf]*)
2788    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2789esac
2790case $srcdir in
2791  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2792    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2793esac
2794
2795# Do 'set' in a subshell so we don't clobber the current shell's
2796# arguments.  Must try -L first in case configure is actually a
2797# symlink; some systems play weird games with the mod time of symlinks
2798# (eg FreeBSD returns the mod time of the symlink's containing
2799# directory).
2800if (
2801   am_has_slept=no
2802   for am_try in 1 2; do
2803     echo "timestamp, slept: $am_has_slept" > conftest.file
2804     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2805     if test "$*" = "X"; then
2806	# -L didn't work.
2807	set X `ls -t "$srcdir/configure" conftest.file`
2808     fi
2809     if test "$*" != "X $srcdir/configure conftest.file" \
2810	&& test "$*" != "X conftest.file $srcdir/configure"; then
2811
2812	# If neither matched, then we have a broken ls.  This can happen
2813	# if, for instance, CONFIG_SHELL is bash and it inherits a
2814	# broken ls alias from the environment.  This has actually
2815	# happened.  Such a system could not be considered "sane".
2816	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2817  alias in your environment" "$LINENO" 5
2818     fi
2819     if test "$2" = conftest.file || test $am_try -eq 2; then
2820       break
2821     fi
2822     # Just in case.
2823     sleep 1
2824     am_has_slept=yes
2825   done
2826   test "$2" = conftest.file
2827   )
2828then
2829   # Ok.
2830   :
2831else
2832   as_fn_error $? "newly created file is older than distributed files!
2833Check your system clock" "$LINENO" 5
2834fi
2835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2836printf "%s\n" "yes" >&6; }
2837# If we didn't sleep, we still need to ensure time stamps of config.status and
2838# generated files are strictly newer.
2839am_sleep_pid=
2840if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2841  ( sleep 1 ) &
2842  am_sleep_pid=$!
2843fi
2844
2845rm -f conftest.file
2846
2847test "$program_prefix" != NONE &&
2848  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2849# Use a double $ so make ignores it.
2850test "$program_suffix" != NONE &&
2851  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2852# Double any \ or $.
2853# By default was 's,x,x', remove it if useless.
2854ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2855program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2856
2857
2858# Expand $ac_aux_dir to an absolute path.
2859am_aux_dir=`cd "$ac_aux_dir" && pwd`
2860
2861
2862  if test x"${MISSING+set}" != xset; then
2863  MISSING="\${SHELL} '$am_aux_dir/missing'"
2864fi
2865# Use eval to expand $SHELL
2866if eval "$MISSING --is-lightweight"; then
2867  am_missing_run="$MISSING "
2868else
2869  am_missing_run=
2870  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2871printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2872fi
2873
2874if test x"${install_sh+set}" != xset; then
2875  case $am_aux_dir in
2876  *\ * | *\	*)
2877    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2878  *)
2879    install_sh="\${SHELL} $am_aux_dir/install-sh"
2880  esac
2881fi
2882
2883# Installed binaries are usually stripped using 'strip' when the user
2884# run "make install-strip".  However 'strip' might not be the right
2885# tool to use in cross-compilation environments, therefore Automake
2886# will honor the 'STRIP' environment variable to overrule this program.
2887if test "$cross_compiling" != no; then
2888  if test -n "$ac_tool_prefix"; then
2889  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2890set dummy ${ac_tool_prefix}strip; ac_word=$2
2891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892printf %s "checking for $ac_word... " >&6; }
2893if test ${ac_cv_prog_STRIP+y}
2894then :
2895  printf %s "(cached) " >&6
2896else case e in #(
2897  e) if test -n "$STRIP"; then
2898  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2899else
2900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901for as_dir in $PATH
2902do
2903  IFS=$as_save_IFS
2904  case $as_dir in #(((
2905    '') as_dir=./ ;;
2906    */) ;;
2907    *) as_dir=$as_dir/ ;;
2908  esac
2909    for ac_exec_ext in '' $ac_executable_extensions; do
2910  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2911    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2912    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2913    break 2
2914  fi
2915done
2916  done
2917IFS=$as_save_IFS
2918
2919fi ;;
2920esac
2921fi
2922STRIP=$ac_cv_prog_STRIP
2923if test -n "$STRIP"; then
2924  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2925printf "%s\n" "$STRIP" >&6; }
2926else
2927  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928printf "%s\n" "no" >&6; }
2929fi
2930
2931
2932fi
2933if test -z "$ac_cv_prog_STRIP"; then
2934  ac_ct_STRIP=$STRIP
2935  # Extract the first word of "strip", so it can be a program name with args.
2936set dummy strip; ac_word=$2
2937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938printf %s "checking for $ac_word... " >&6; }
2939if test ${ac_cv_prog_ac_ct_STRIP+y}
2940then :
2941  printf %s "(cached) " >&6
2942else case e in #(
2943  e) if test -n "$ac_ct_STRIP"; then
2944  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2945else
2946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947for as_dir in $PATH
2948do
2949  IFS=$as_save_IFS
2950  case $as_dir in #(((
2951    '') as_dir=./ ;;
2952    */) ;;
2953    *) as_dir=$as_dir/ ;;
2954  esac
2955    for ac_exec_ext in '' $ac_executable_extensions; do
2956  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2957    ac_cv_prog_ac_ct_STRIP="strip"
2958    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2959    break 2
2960  fi
2961done
2962  done
2963IFS=$as_save_IFS
2964
2965fi ;;
2966esac
2967fi
2968ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2969if test -n "$ac_ct_STRIP"; then
2970  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2971printf "%s\n" "$ac_ct_STRIP" >&6; }
2972else
2973  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974printf "%s\n" "no" >&6; }
2975fi
2976
2977  if test "x$ac_ct_STRIP" = x; then
2978    STRIP=":"
2979  else
2980    case $cross_compiling:$ac_tool_warned in
2981yes:)
2982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2983printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2984ac_tool_warned=yes ;;
2985esac
2986    STRIP=$ac_ct_STRIP
2987  fi
2988else
2989  STRIP="$ac_cv_prog_STRIP"
2990fi
2991
2992fi
2993INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2994
2995
2996  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2997printf %s "checking for a race-free mkdir -p... " >&6; }
2998if test -z "$MKDIR_P"; then
2999  if test ${ac_cv_path_mkdir+y}
3000then :
3001  printf %s "(cached) " >&6
3002else case e in #(
3003  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3005do
3006  IFS=$as_save_IFS
3007  case $as_dir in #(((
3008    '') as_dir=./ ;;
3009    */) ;;
3010    *) as_dir=$as_dir/ ;;
3011  esac
3012    for ac_prog in mkdir gmkdir; do
3013	 for ac_exec_ext in '' $ac_executable_extensions; do
3014	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3015	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3016	     'mkdir ('*'coreutils) '* | \
3017	     *'BusyBox '* | \
3018	     'mkdir (fileutils) '4.1*)
3019	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3020	       break 3;;
3021	   esac
3022	 done
3023       done
3024  done
3025IFS=$as_save_IFS
3026 ;;
3027esac
3028fi
3029
3030  test -d ./--version && rmdir ./--version
3031  if test ${ac_cv_path_mkdir+y}; then
3032    MKDIR_P="$ac_cv_path_mkdir -p"
3033  else
3034    # As a last resort, use plain mkdir -p,
3035    # in the hope it doesn't have the bugs of ancient mkdir.
3036    MKDIR_P='mkdir -p'
3037  fi
3038fi
3039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3040printf "%s\n" "$MKDIR_P" >&6; }
3041
3042for ac_prog in gawk mawk nawk awk
3043do
3044  # Extract the first word of "$ac_prog", so it can be a program name with args.
3045set dummy $ac_prog; ac_word=$2
3046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047printf %s "checking for $ac_word... " >&6; }
3048if test ${ac_cv_prog_AWK+y}
3049then :
3050  printf %s "(cached) " >&6
3051else case e in #(
3052  e) if test -n "$AWK"; then
3053  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3054else
3055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056for as_dir in $PATH
3057do
3058  IFS=$as_save_IFS
3059  case $as_dir in #(((
3060    '') as_dir=./ ;;
3061    */) ;;
3062    *) as_dir=$as_dir/ ;;
3063  esac
3064    for ac_exec_ext in '' $ac_executable_extensions; do
3065  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3066    ac_cv_prog_AWK="$ac_prog"
3067    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3068    break 2
3069  fi
3070done
3071  done
3072IFS=$as_save_IFS
3073
3074fi ;;
3075esac
3076fi
3077AWK=$ac_cv_prog_AWK
3078if test -n "$AWK"; then
3079  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3080printf "%s\n" "$AWK" >&6; }
3081else
3082  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083printf "%s\n" "no" >&6; }
3084fi
3085
3086
3087  test -n "$AWK" && break
3088done
3089
3090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3091printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3092set x ${MAKE-make}
3093ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3094if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3095then :
3096  printf %s "(cached) " >&6
3097else case e in #(
3098  e) cat >conftest.make <<\_ACEOF
3099SHELL = /bin/sh
3100all:
3101	@echo '@@@%%%=$(MAKE)=@@@%%%'
3102_ACEOF
3103# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3104case `${MAKE-make} -f conftest.make 2>/dev/null` in
3105  *@@@%%%=?*=@@@%%%*)
3106    eval ac_cv_prog_make_${ac_make}_set=yes;;
3107  *)
3108    eval ac_cv_prog_make_${ac_make}_set=no;;
3109esac
3110rm -f conftest.make ;;
3111esac
3112fi
3113if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3114  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3115printf "%s\n" "yes" >&6; }
3116  SET_MAKE=
3117else
3118  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119printf "%s\n" "no" >&6; }
3120  SET_MAKE="MAKE=${MAKE-make}"
3121fi
3122
3123rm -rf .tst 2>/dev/null
3124mkdir .tst 2>/dev/null
3125if test -d .tst; then
3126  am__leading_dot=.
3127else
3128  am__leading_dot=_
3129fi
3130rmdir .tst 2>/dev/null
3131
3132# Check whether --enable-silent-rules was given.
3133if test ${enable_silent_rules+y}
3134then :
3135  enableval=$enable_silent_rules;
3136fi
3137
3138case $enable_silent_rules in # (((
3139  yes) AM_DEFAULT_VERBOSITY=0;;
3140   no) AM_DEFAULT_VERBOSITY=1;;
3141    *) AM_DEFAULT_VERBOSITY=1;;
3142esac
3143am_make=${MAKE-make}
3144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3145printf %s "checking whether $am_make supports nested variables... " >&6; }
3146if test ${am_cv_make_support_nested_variables+y}
3147then :
3148  printf %s "(cached) " >&6
3149else case e in #(
3150  e) if printf "%s\n" 'TRUE=$(BAR$(V))
3151BAR0=false
3152BAR1=true
3153V=1
3154am__doit:
3155	@$(TRUE)
3156.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3157  am_cv_make_support_nested_variables=yes
3158else
3159  am_cv_make_support_nested_variables=no
3160fi ;;
3161esac
3162fi
3163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3164printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3165if test $am_cv_make_support_nested_variables = yes; then
3166    AM_V='$(V)'
3167  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3168else
3169  AM_V=$AM_DEFAULT_VERBOSITY
3170  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3171fi
3172AM_BACKSLASH='\'
3173
3174if test "`cd $srcdir && pwd`" != "`pwd`"; then
3175  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3176  # is not polluted with repeated "-I."
3177  am__isrc=' -I$(srcdir)'
3178  # test to see if srcdir already configured
3179  if test -f $srcdir/config.status; then
3180    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3181  fi
3182fi
3183
3184# test whether we have cygpath
3185if test -z "$CYGPATH_W"; then
3186  if (cygpath --version) >/dev/null 2>/dev/null; then
3187    CYGPATH_W='cygpath -w'
3188  else
3189    CYGPATH_W=echo
3190  fi
3191fi
3192
3193
3194# Define the identity of the package.
3195 PACKAGE='imake'
3196 VERSION='1.0.10'
3197
3198
3199printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3200
3201
3202printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3203
3204# Some tools Automake needs.
3205
3206ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3207
3208
3209AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3210
3211
3212AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3213
3214
3215AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3216
3217
3218MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3219
3220# For better backward compatibility.  To be removed once Automake 1.9.x
3221# dies out for good.  For more background, see:
3222# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3223# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3224mkdir_p='$(MKDIR_P)'
3225
3226# We need awk for the "check" target (and possibly the TAP driver).  The
3227# system "awk" is bad on some platforms.
3228# Always define AMTAR for backward compatibility.  Yes, it's still used
3229# in the wild :-(  We should find a proper way to deprecate it ...
3230AMTAR='$${TAR-tar}'
3231
3232
3233# We'll loop over all known methods to create a tar archive until one works.
3234_am_tools='gnutar  pax cpio none'
3235
3236am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3237
3238
3239
3240
3241
3242# Variables for tags utilities; see am/tags.am
3243if test -z "$CTAGS"; then
3244  CTAGS=ctags
3245fi
3246
3247if test -z "$ETAGS"; then
3248  ETAGS=etags
3249fi
3250
3251if test -z "$CSCOPE"; then
3252  CSCOPE=cscope
3253fi
3254
3255
3256
3257# POSIX will say in a future version that running "rm -f" with no argument
3258# is OK; and we want to be able to make that assumption in our Makefile
3259# recipes.  So use an aggressive probe to check that the usage we want is
3260# actually supported "in the wild" to an acceptable degree.
3261# See automake bug#10828.
3262# To make any issue more visible, cause the running configure to be aborted
3263# by default if the 'rm' program in use doesn't match our expectations; the
3264# user can still override this though.
3265if rm -f && rm -fr && rm -rf; then : OK; else
3266  cat >&2 <<'END'
3267Oops!
3268
3269Your 'rm' program seems unable to run without file operands specified
3270on the command line, even when the '-f' option is present.  This is contrary
3271to the behaviour of most rm programs out there, and not conforming with
3272the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3273
3274Please tell bug-automake@gnu.org about your system, including the value
3275of your $PATH and any error possibly output before this message.  This
3276can help us improve future automake versions.
3277
3278END
3279  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3280    echo 'Configuration will proceed anyway, since you have set the' >&2
3281    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3282    echo >&2
3283  else
3284    cat >&2 <<'END'
3285Aborting the configuration process, to ensure you take notice of the issue.
3286
3287You can download and install GNU coreutils to get an 'rm' implementation
3288that behaves properly: <https://www.gnu.org/software/coreutils/>.
3289
3290If you want to complete the configuration process using your problematic
3291'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3292to "yes", and re-run configure.
3293
3294END
3295    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3296  fi
3297fi
3298
3299
3300# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321DEPDIR="${am__leading_dot}deps"
3322
3323ac_config_commands="$ac_config_commands depfiles"
3324
3325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3326printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3327cat > confinc.mk << 'END'
3328am__doit:
3329	@echo this is the am__doit target >confinc.out
3330.PHONY: am__doit
3331END
3332am__include="#"
3333am__quote=
3334# BSD make does it like this.
3335echo '.include "confinc.mk" # ignored' > confmf.BSD
3336# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3337echo 'include confinc.mk # ignored' > confmf.GNU
3338_am_result=no
3339for s in GNU BSD; do
3340  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3341   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3342   ac_status=$?
3343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344   (exit $ac_status); }
3345  case $?:`cat confinc.out 2>/dev/null` in #(
3346  '0:this is the am__doit target') :
3347    case $s in #(
3348  BSD) :
3349    am__include='.include' am__quote='"' ;; #(
3350  *) :
3351    am__include='include' am__quote='' ;;
3352esac ;; #(
3353  *) :
3354     ;;
3355esac
3356  if test "$am__include" != "#"; then
3357    _am_result="yes ($s style)"
3358    break
3359  fi
3360done
3361rm -f confinc.* confmf.*
3362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3363printf "%s\n" "${_am_result}" >&6; }
3364
3365# Check whether --enable-dependency-tracking was given.
3366if test ${enable_dependency_tracking+y}
3367then :
3368  enableval=$enable_dependency_tracking;
3369fi
3370
3371if test "x$enable_dependency_tracking" != xno; then
3372  am_depcomp="$ac_aux_dir/depcomp"
3373  AMDEPBACKSLASH='\'
3374  am__nodep='_no'
3375fi
3376 if test "x$enable_dependency_tracking" != xno; then
3377  AMDEP_TRUE=
3378  AMDEP_FALSE='#'
3379else
3380  AMDEP_TRUE='#'
3381  AMDEP_FALSE=
3382fi
3383
3384
3385ac_ext=c
3386ac_cpp='$CPP $CPPFLAGS'
3387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390if test -n "$ac_tool_prefix"; then
3391  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3392set dummy ${ac_tool_prefix}gcc; ac_word=$2
3393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394printf %s "checking for $ac_word... " >&6; }
3395if test ${ac_cv_prog_CC+y}
3396then :
3397  printf %s "(cached) " >&6
3398else case e in #(
3399  e) if test -n "$CC"; then
3400  ac_cv_prog_CC="$CC" # Let the user override the test.
3401else
3402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403for as_dir in $PATH
3404do
3405  IFS=$as_save_IFS
3406  case $as_dir in #(((
3407    '') as_dir=./ ;;
3408    */) ;;
3409    *) as_dir=$as_dir/ ;;
3410  esac
3411    for ac_exec_ext in '' $ac_executable_extensions; do
3412  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3413    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3414    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3415    break 2
3416  fi
3417done
3418  done
3419IFS=$as_save_IFS
3420
3421fi ;;
3422esac
3423fi
3424CC=$ac_cv_prog_CC
3425if test -n "$CC"; then
3426  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3427printf "%s\n" "$CC" >&6; }
3428else
3429  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430printf "%s\n" "no" >&6; }
3431fi
3432
3433
3434fi
3435if test -z "$ac_cv_prog_CC"; then
3436  ac_ct_CC=$CC
3437  # Extract the first word of "gcc", so it can be a program name with args.
3438set dummy gcc; ac_word=$2
3439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440printf %s "checking for $ac_word... " >&6; }
3441if test ${ac_cv_prog_ac_ct_CC+y}
3442then :
3443  printf %s "(cached) " >&6
3444else case e in #(
3445  e) if test -n "$ac_ct_CC"; then
3446  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3447else
3448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449for as_dir in $PATH
3450do
3451  IFS=$as_save_IFS
3452  case $as_dir in #(((
3453    '') as_dir=./ ;;
3454    */) ;;
3455    *) as_dir=$as_dir/ ;;
3456  esac
3457    for ac_exec_ext in '' $ac_executable_extensions; do
3458  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3459    ac_cv_prog_ac_ct_CC="gcc"
3460    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3461    break 2
3462  fi
3463done
3464  done
3465IFS=$as_save_IFS
3466
3467fi ;;
3468esac
3469fi
3470ac_ct_CC=$ac_cv_prog_ac_ct_CC
3471if test -n "$ac_ct_CC"; then
3472  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3473printf "%s\n" "$ac_ct_CC" >&6; }
3474else
3475  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3476printf "%s\n" "no" >&6; }
3477fi
3478
3479  if test "x$ac_ct_CC" = x; then
3480    CC=""
3481  else
3482    case $cross_compiling:$ac_tool_warned in
3483yes:)
3484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3485printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3486ac_tool_warned=yes ;;
3487esac
3488    CC=$ac_ct_CC
3489  fi
3490else
3491  CC="$ac_cv_prog_CC"
3492fi
3493
3494if test -z "$CC"; then
3495          if test -n "$ac_tool_prefix"; then
3496    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3497set dummy ${ac_tool_prefix}cc; ac_word=$2
3498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3499printf %s "checking for $ac_word... " >&6; }
3500if test ${ac_cv_prog_CC+y}
3501then :
3502  printf %s "(cached) " >&6
3503else case e in #(
3504  e) if test -n "$CC"; then
3505  ac_cv_prog_CC="$CC" # Let the user override the test.
3506else
3507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508for as_dir in $PATH
3509do
3510  IFS=$as_save_IFS
3511  case $as_dir in #(((
3512    '') as_dir=./ ;;
3513    */) ;;
3514    *) as_dir=$as_dir/ ;;
3515  esac
3516    for ac_exec_ext in '' $ac_executable_extensions; do
3517  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3518    ac_cv_prog_CC="${ac_tool_prefix}cc"
3519    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3520    break 2
3521  fi
3522done
3523  done
3524IFS=$as_save_IFS
3525
3526fi ;;
3527esac
3528fi
3529CC=$ac_cv_prog_CC
3530if test -n "$CC"; then
3531  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3532printf "%s\n" "$CC" >&6; }
3533else
3534  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535printf "%s\n" "no" >&6; }
3536fi
3537
3538
3539  fi
3540fi
3541if test -z "$CC"; then
3542  # Extract the first word of "cc", so it can be a program name with args.
3543set dummy cc; ac_word=$2
3544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545printf %s "checking for $ac_word... " >&6; }
3546if test ${ac_cv_prog_CC+y}
3547then :
3548  printf %s "(cached) " >&6
3549else case e in #(
3550  e) if test -n "$CC"; then
3551  ac_cv_prog_CC="$CC" # Let the user override the test.
3552else
3553  ac_prog_rejected=no
3554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555for as_dir in $PATH
3556do
3557  IFS=$as_save_IFS
3558  case $as_dir in #(((
3559    '') as_dir=./ ;;
3560    */) ;;
3561    *) as_dir=$as_dir/ ;;
3562  esac
3563    for ac_exec_ext in '' $ac_executable_extensions; do
3564  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3565    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3566       ac_prog_rejected=yes
3567       continue
3568     fi
3569    ac_cv_prog_CC="cc"
3570    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3571    break 2
3572  fi
3573done
3574  done
3575IFS=$as_save_IFS
3576
3577if test $ac_prog_rejected = yes; then
3578  # We found a bogon in the path, so make sure we never use it.
3579  set dummy $ac_cv_prog_CC
3580  shift
3581  if test $# != 0; then
3582    # We chose a different compiler from the bogus one.
3583    # However, it has the same basename, so the bogon will be chosen
3584    # first if we set CC to just the basename; use the full file name.
3585    shift
3586    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3587  fi
3588fi
3589fi ;;
3590esac
3591fi
3592CC=$ac_cv_prog_CC
3593if test -n "$CC"; then
3594  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3595printf "%s\n" "$CC" >&6; }
3596else
3597  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3598printf "%s\n" "no" >&6; }
3599fi
3600
3601
3602fi
3603if test -z "$CC"; then
3604  if test -n "$ac_tool_prefix"; then
3605  for ac_prog in cl.exe
3606  do
3607    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3608set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3610printf %s "checking for $ac_word... " >&6; }
3611if test ${ac_cv_prog_CC+y}
3612then :
3613  printf %s "(cached) " >&6
3614else case e in #(
3615  e) if test -n "$CC"; then
3616  ac_cv_prog_CC="$CC" # Let the user override the test.
3617else
3618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619for as_dir in $PATH
3620do
3621  IFS=$as_save_IFS
3622  case $as_dir in #(((
3623    '') as_dir=./ ;;
3624    */) ;;
3625    *) as_dir=$as_dir/ ;;
3626  esac
3627    for ac_exec_ext in '' $ac_executable_extensions; do
3628  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3629    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3630    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3631    break 2
3632  fi
3633done
3634  done
3635IFS=$as_save_IFS
3636
3637fi ;;
3638esac
3639fi
3640CC=$ac_cv_prog_CC
3641if test -n "$CC"; then
3642  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3643printf "%s\n" "$CC" >&6; }
3644else
3645  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3646printf "%s\n" "no" >&6; }
3647fi
3648
3649
3650    test -n "$CC" && break
3651  done
3652fi
3653if test -z "$CC"; then
3654  ac_ct_CC=$CC
3655  for ac_prog in cl.exe
3656do
3657  # Extract the first word of "$ac_prog", so it can be a program name with args.
3658set dummy $ac_prog; ac_word=$2
3659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3660printf %s "checking for $ac_word... " >&6; }
3661if test ${ac_cv_prog_ac_ct_CC+y}
3662then :
3663  printf %s "(cached) " >&6
3664else case e in #(
3665  e) if test -n "$ac_ct_CC"; then
3666  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3667else
3668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669for as_dir in $PATH
3670do
3671  IFS=$as_save_IFS
3672  case $as_dir in #(((
3673    '') as_dir=./ ;;
3674    */) ;;
3675    *) as_dir=$as_dir/ ;;
3676  esac
3677    for ac_exec_ext in '' $ac_executable_extensions; do
3678  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3679    ac_cv_prog_ac_ct_CC="$ac_prog"
3680    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3681    break 2
3682  fi
3683done
3684  done
3685IFS=$as_save_IFS
3686
3687fi ;;
3688esac
3689fi
3690ac_ct_CC=$ac_cv_prog_ac_ct_CC
3691if test -n "$ac_ct_CC"; then
3692  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3693printf "%s\n" "$ac_ct_CC" >&6; }
3694else
3695  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3696printf "%s\n" "no" >&6; }
3697fi
3698
3699
3700  test -n "$ac_ct_CC" && break
3701done
3702
3703  if test "x$ac_ct_CC" = x; then
3704    CC=""
3705  else
3706    case $cross_compiling:$ac_tool_warned in
3707yes:)
3708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3709printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3710ac_tool_warned=yes ;;
3711esac
3712    CC=$ac_ct_CC
3713  fi
3714fi
3715
3716fi
3717if test -z "$CC"; then
3718  if test -n "$ac_tool_prefix"; then
3719  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3720set dummy ${ac_tool_prefix}clang; ac_word=$2
3721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722printf %s "checking for $ac_word... " >&6; }
3723if test ${ac_cv_prog_CC+y}
3724then :
3725  printf %s "(cached) " >&6
3726else case e in #(
3727  e) if test -n "$CC"; then
3728  ac_cv_prog_CC="$CC" # Let the user override the test.
3729else
3730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731for as_dir in $PATH
3732do
3733  IFS=$as_save_IFS
3734  case $as_dir in #(((
3735    '') as_dir=./ ;;
3736    */) ;;
3737    *) as_dir=$as_dir/ ;;
3738  esac
3739    for ac_exec_ext in '' $ac_executable_extensions; do
3740  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3741    ac_cv_prog_CC="${ac_tool_prefix}clang"
3742    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3743    break 2
3744  fi
3745done
3746  done
3747IFS=$as_save_IFS
3748
3749fi ;;
3750esac
3751fi
3752CC=$ac_cv_prog_CC
3753if test -n "$CC"; then
3754  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3755printf "%s\n" "$CC" >&6; }
3756else
3757  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758printf "%s\n" "no" >&6; }
3759fi
3760
3761
3762fi
3763if test -z "$ac_cv_prog_CC"; then
3764  ac_ct_CC=$CC
3765  # Extract the first word of "clang", so it can be a program name with args.
3766set dummy clang; ac_word=$2
3767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3768printf %s "checking for $ac_word... " >&6; }
3769if test ${ac_cv_prog_ac_ct_CC+y}
3770then :
3771  printf %s "(cached) " >&6
3772else case e in #(
3773  e) if test -n "$ac_ct_CC"; then
3774  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3775else
3776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777for as_dir in $PATH
3778do
3779  IFS=$as_save_IFS
3780  case $as_dir in #(((
3781    '') as_dir=./ ;;
3782    */) ;;
3783    *) as_dir=$as_dir/ ;;
3784  esac
3785    for ac_exec_ext in '' $ac_executable_extensions; do
3786  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3787    ac_cv_prog_ac_ct_CC="clang"
3788    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3789    break 2
3790  fi
3791done
3792  done
3793IFS=$as_save_IFS
3794
3795fi ;;
3796esac
3797fi
3798ac_ct_CC=$ac_cv_prog_ac_ct_CC
3799if test -n "$ac_ct_CC"; then
3800  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3801printf "%s\n" "$ac_ct_CC" >&6; }
3802else
3803  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3804printf "%s\n" "no" >&6; }
3805fi
3806
3807  if test "x$ac_ct_CC" = x; then
3808    CC=""
3809  else
3810    case $cross_compiling:$ac_tool_warned in
3811yes:)
3812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3813printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3814ac_tool_warned=yes ;;
3815esac
3816    CC=$ac_ct_CC
3817  fi
3818else
3819  CC="$ac_cv_prog_CC"
3820fi
3821
3822fi
3823
3824
3825test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3826printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3827as_fn_error $? "no acceptable C compiler found in \$PATH
3828See 'config.log' for more details" "$LINENO" 5; }
3829
3830# Provide some information about the compiler.
3831printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3832set X $ac_compile
3833ac_compiler=$2
3834for ac_option in --version -v -V -qversion -version; do
3835  { { ac_try="$ac_compiler $ac_option >&5"
3836case "(($ac_try" in
3837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838  *) ac_try_echo=$ac_try;;
3839esac
3840eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3841printf "%s\n" "$ac_try_echo"; } >&5
3842  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3843  ac_status=$?
3844  if test -s conftest.err; then
3845    sed '10a\
3846... rest of stderr output deleted ...
3847         10q' conftest.err >conftest.er1
3848    cat conftest.er1 >&5
3849  fi
3850  rm -f conftest.er1 conftest.err
3851  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3852  test $ac_status = 0; }
3853done
3854
3855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856/* end confdefs.h.  */
3857
3858int
3859main (void)
3860{
3861
3862  ;
3863  return 0;
3864}
3865_ACEOF
3866ac_clean_files_save=$ac_clean_files
3867ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3868# Try to create an executable without -o first, disregard a.out.
3869# It will help us diagnose broken compilers, and finding out an intuition
3870# of exeext.
3871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3872printf %s "checking whether the C compiler works... " >&6; }
3873ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3874
3875# The possible output files:
3876ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3877
3878ac_rmfiles=
3879for ac_file in $ac_files
3880do
3881  case $ac_file in
3882    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3883    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3884  esac
3885done
3886rm -f $ac_rmfiles
3887
3888if { { ac_try="$ac_link_default"
3889case "(($ac_try" in
3890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891  *) ac_try_echo=$ac_try;;
3892esac
3893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3894printf "%s\n" "$ac_try_echo"; } >&5
3895  (eval "$ac_link_default") 2>&5
3896  ac_status=$?
3897  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3898  test $ac_status = 0; }
3899then :
3900  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3901# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3902# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3903# so that the user can short-circuit this test for compilers unknown to
3904# Autoconf.
3905for ac_file in $ac_files ''
3906do
3907  test -f "$ac_file" || continue
3908  case $ac_file in
3909    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3910	;;
3911    [ab].out )
3912	# We found the default executable, but exeext='' is most
3913	# certainly right.
3914	break;;
3915    *.* )
3916	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3917	then :; else
3918	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3919	fi
3920	# We set ac_cv_exeext here because the later test for it is not
3921	# safe: cross compilers may not add the suffix if given an '-o'
3922	# argument, so we may need to know it at that point already.
3923	# Even if this section looks crufty: it has the advantage of
3924	# actually working.
3925	break;;
3926    * )
3927	break;;
3928  esac
3929done
3930test "$ac_cv_exeext" = no && ac_cv_exeext=
3931
3932else case e in #(
3933  e) ac_file='' ;;
3934esac
3935fi
3936if test -z "$ac_file"
3937then :
3938  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939printf "%s\n" "no" >&6; }
3940printf "%s\n" "$as_me: failed program was:" >&5
3941sed 's/^/| /' conftest.$ac_ext >&5
3942
3943{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3944printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3945as_fn_error 77 "C compiler cannot create executables
3946See 'config.log' for more details" "$LINENO" 5; }
3947else case e in #(
3948  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3949printf "%s\n" "yes" >&6; } ;;
3950esac
3951fi
3952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3953printf %s "checking for C compiler default output file name... " >&6; }
3954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3955printf "%s\n" "$ac_file" >&6; }
3956ac_exeext=$ac_cv_exeext
3957
3958rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3959ac_clean_files=$ac_clean_files_save
3960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3961printf %s "checking for suffix of executables... " >&6; }
3962if { { ac_try="$ac_link"
3963case "(($ac_try" in
3964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965  *) ac_try_echo=$ac_try;;
3966esac
3967eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3968printf "%s\n" "$ac_try_echo"; } >&5
3969  (eval "$ac_link") 2>&5
3970  ac_status=$?
3971  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3972  test $ac_status = 0; }
3973then :
3974  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3975# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
3976# work properly (i.e., refer to 'conftest.exe'), while it won't with
3977# 'rm'.
3978for ac_file in conftest.exe conftest conftest.*; do
3979  test -f "$ac_file" || continue
3980  case $ac_file in
3981    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3982    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3983	  break;;
3984    * ) break;;
3985  esac
3986done
3987else case e in #(
3988  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3989printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3990as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3991See 'config.log' for more details" "$LINENO" 5; } ;;
3992esac
3993fi
3994rm -f conftest conftest$ac_cv_exeext
3995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3996printf "%s\n" "$ac_cv_exeext" >&6; }
3997
3998rm -f conftest.$ac_ext
3999EXEEXT=$ac_cv_exeext
4000ac_exeext=$EXEEXT
4001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002/* end confdefs.h.  */
4003#include <stdio.h>
4004int
4005main (void)
4006{
4007FILE *f = fopen ("conftest.out", "w");
4008 if (!f)
4009  return 1;
4010 return ferror (f) || fclose (f) != 0;
4011
4012  ;
4013  return 0;
4014}
4015_ACEOF
4016ac_clean_files="$ac_clean_files conftest.out"
4017# Check that the compiler produces executables we can run.  If not, either
4018# the compiler is broken, or we cross compile.
4019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4020printf %s "checking whether we are cross compiling... " >&6; }
4021if test "$cross_compiling" != yes; then
4022  { { ac_try="$ac_link"
4023case "(($ac_try" in
4024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025  *) ac_try_echo=$ac_try;;
4026esac
4027eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4028printf "%s\n" "$ac_try_echo"; } >&5
4029  (eval "$ac_link") 2>&5
4030  ac_status=$?
4031  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4032  test $ac_status = 0; }
4033  if { ac_try='./conftest$ac_cv_exeext'
4034  { { case "(($ac_try" in
4035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036  *) ac_try_echo=$ac_try;;
4037esac
4038eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4039printf "%s\n" "$ac_try_echo"; } >&5
4040  (eval "$ac_try") 2>&5
4041  ac_status=$?
4042  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4043  test $ac_status = 0; }; }; then
4044    cross_compiling=no
4045  else
4046    if test "$cross_compiling" = maybe; then
4047	cross_compiling=yes
4048    else
4049	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4050printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4051as_fn_error 77 "cannot run C compiled programs.
4052If you meant to cross compile, use '--host'.
4053See 'config.log' for more details" "$LINENO" 5; }
4054    fi
4055  fi
4056fi
4057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4058printf "%s\n" "$cross_compiling" >&6; }
4059
4060rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4061  conftest.o conftest.obj conftest.out
4062ac_clean_files=$ac_clean_files_save
4063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4064printf %s "checking for suffix of object files... " >&6; }
4065if test ${ac_cv_objext+y}
4066then :
4067  printf %s "(cached) " >&6
4068else case e in #(
4069  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070/* end confdefs.h.  */
4071
4072int
4073main (void)
4074{
4075
4076  ;
4077  return 0;
4078}
4079_ACEOF
4080rm -f conftest.o conftest.obj
4081if { { ac_try="$ac_compile"
4082case "(($ac_try" in
4083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084  *) ac_try_echo=$ac_try;;
4085esac
4086eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4087printf "%s\n" "$ac_try_echo"; } >&5
4088  (eval "$ac_compile") 2>&5
4089  ac_status=$?
4090  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4091  test $ac_status = 0; }
4092then :
4093  for ac_file in conftest.o conftest.obj conftest.*; do
4094  test -f "$ac_file" || continue;
4095  case $ac_file in
4096    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4097    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4098       break;;
4099  esac
4100done
4101else case e in #(
4102  e) printf "%s\n" "$as_me: failed program was:" >&5
4103sed 's/^/| /' conftest.$ac_ext >&5
4104
4105{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4106printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4107as_fn_error $? "cannot compute suffix of object files: cannot compile
4108See 'config.log' for more details" "$LINENO" 5; } ;;
4109esac
4110fi
4111rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4112esac
4113fi
4114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4115printf "%s\n" "$ac_cv_objext" >&6; }
4116OBJEXT=$ac_cv_objext
4117ac_objext=$OBJEXT
4118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4119printf %s "checking whether the compiler supports GNU C... " >&6; }
4120if test ${ac_cv_c_compiler_gnu+y}
4121then :
4122  printf %s "(cached) " >&6
4123else case e in #(
4124  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125/* end confdefs.h.  */
4126
4127int
4128main (void)
4129{
4130#ifndef __GNUC__
4131       choke me
4132#endif
4133
4134  ;
4135  return 0;
4136}
4137_ACEOF
4138if ac_fn_c_try_compile "$LINENO"
4139then :
4140  ac_compiler_gnu=yes
4141else case e in #(
4142  e) ac_compiler_gnu=no ;;
4143esac
4144fi
4145rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4146ac_cv_c_compiler_gnu=$ac_compiler_gnu
4147 ;;
4148esac
4149fi
4150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4151printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4152ac_compiler_gnu=$ac_cv_c_compiler_gnu
4153
4154if test $ac_compiler_gnu = yes; then
4155  GCC=yes
4156else
4157  GCC=
4158fi
4159ac_test_CFLAGS=${CFLAGS+y}
4160ac_save_CFLAGS=$CFLAGS
4161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4162printf %s "checking whether $CC accepts -g... " >&6; }
4163if test ${ac_cv_prog_cc_g+y}
4164then :
4165  printf %s "(cached) " >&6
4166else case e in #(
4167  e) ac_save_c_werror_flag=$ac_c_werror_flag
4168   ac_c_werror_flag=yes
4169   ac_cv_prog_cc_g=no
4170   CFLAGS="-g"
4171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172/* end confdefs.h.  */
4173
4174int
4175main (void)
4176{
4177
4178  ;
4179  return 0;
4180}
4181_ACEOF
4182if ac_fn_c_try_compile "$LINENO"
4183then :
4184  ac_cv_prog_cc_g=yes
4185else case e in #(
4186  e) CFLAGS=""
4187      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188/* end confdefs.h.  */
4189
4190int
4191main (void)
4192{
4193
4194  ;
4195  return 0;
4196}
4197_ACEOF
4198if ac_fn_c_try_compile "$LINENO"
4199then :
4200
4201else case e in #(
4202  e) ac_c_werror_flag=$ac_save_c_werror_flag
4203	 CFLAGS="-g"
4204	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205/* end confdefs.h.  */
4206
4207int
4208main (void)
4209{
4210
4211  ;
4212  return 0;
4213}
4214_ACEOF
4215if ac_fn_c_try_compile "$LINENO"
4216then :
4217  ac_cv_prog_cc_g=yes
4218fi
4219rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4220esac
4221fi
4222rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4223esac
4224fi
4225rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4226   ac_c_werror_flag=$ac_save_c_werror_flag ;;
4227esac
4228fi
4229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4230printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4231if test $ac_test_CFLAGS; then
4232  CFLAGS=$ac_save_CFLAGS
4233elif test $ac_cv_prog_cc_g = yes; then
4234  if test "$GCC" = yes; then
4235    CFLAGS="-g -O2"
4236  else
4237    CFLAGS="-g"
4238  fi
4239else
4240  if test "$GCC" = yes; then
4241    CFLAGS="-O2"
4242  else
4243    CFLAGS=
4244  fi
4245fi
4246ac_prog_cc_stdc=no
4247if test x$ac_prog_cc_stdc = xno
4248then :
4249  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4250printf %s "checking for $CC option to enable C11 features... " >&6; }
4251if test ${ac_cv_prog_cc_c11+y}
4252then :
4253  printf %s "(cached) " >&6
4254else case e in #(
4255  e) ac_cv_prog_cc_c11=no
4256ac_save_CC=$CC
4257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258/* end confdefs.h.  */
4259$ac_c_conftest_c11_program
4260_ACEOF
4261for ac_arg in '' -std=gnu11
4262do
4263  CC="$ac_save_CC $ac_arg"
4264  if ac_fn_c_try_compile "$LINENO"
4265then :
4266  ac_cv_prog_cc_c11=$ac_arg
4267fi
4268rm -f core conftest.err conftest.$ac_objext conftest.beam
4269  test "x$ac_cv_prog_cc_c11" != "xno" && break
4270done
4271rm -f conftest.$ac_ext
4272CC=$ac_save_CC ;;
4273esac
4274fi
4275
4276if test "x$ac_cv_prog_cc_c11" = xno
4277then :
4278  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4279printf "%s\n" "unsupported" >&6; }
4280else case e in #(
4281  e) if test "x$ac_cv_prog_cc_c11" = x
4282then :
4283  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4284printf "%s\n" "none needed" >&6; }
4285else case e in #(
4286  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4287printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4288     CC="$CC $ac_cv_prog_cc_c11" ;;
4289esac
4290fi
4291  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4292  ac_prog_cc_stdc=c11 ;;
4293esac
4294fi
4295fi
4296if test x$ac_prog_cc_stdc = xno
4297then :
4298  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4299printf %s "checking for $CC option to enable C99 features... " >&6; }
4300if test ${ac_cv_prog_cc_c99+y}
4301then :
4302  printf %s "(cached) " >&6
4303else case e in #(
4304  e) ac_cv_prog_cc_c99=no
4305ac_save_CC=$CC
4306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307/* end confdefs.h.  */
4308$ac_c_conftest_c99_program
4309_ACEOF
4310for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4311do
4312  CC="$ac_save_CC $ac_arg"
4313  if ac_fn_c_try_compile "$LINENO"
4314then :
4315  ac_cv_prog_cc_c99=$ac_arg
4316fi
4317rm -f core conftest.err conftest.$ac_objext conftest.beam
4318  test "x$ac_cv_prog_cc_c99" != "xno" && break
4319done
4320rm -f conftest.$ac_ext
4321CC=$ac_save_CC ;;
4322esac
4323fi
4324
4325if test "x$ac_cv_prog_cc_c99" = xno
4326then :
4327  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4328printf "%s\n" "unsupported" >&6; }
4329else case e in #(
4330  e) if test "x$ac_cv_prog_cc_c99" = x
4331then :
4332  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4333printf "%s\n" "none needed" >&6; }
4334else case e in #(
4335  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4336printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4337     CC="$CC $ac_cv_prog_cc_c99" ;;
4338esac
4339fi
4340  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4341  ac_prog_cc_stdc=c99 ;;
4342esac
4343fi
4344fi
4345if test x$ac_prog_cc_stdc = xno
4346then :
4347  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4348printf %s "checking for $CC option to enable C89 features... " >&6; }
4349if test ${ac_cv_prog_cc_c89+y}
4350then :
4351  printf %s "(cached) " >&6
4352else case e in #(
4353  e) ac_cv_prog_cc_c89=no
4354ac_save_CC=$CC
4355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356/* end confdefs.h.  */
4357$ac_c_conftest_c89_program
4358_ACEOF
4359for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4360do
4361  CC="$ac_save_CC $ac_arg"
4362  if ac_fn_c_try_compile "$LINENO"
4363then :
4364  ac_cv_prog_cc_c89=$ac_arg
4365fi
4366rm -f core conftest.err conftest.$ac_objext conftest.beam
4367  test "x$ac_cv_prog_cc_c89" != "xno" && break
4368done
4369rm -f conftest.$ac_ext
4370CC=$ac_save_CC ;;
4371esac
4372fi
4373
4374if test "x$ac_cv_prog_cc_c89" = xno
4375then :
4376  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4377printf "%s\n" "unsupported" >&6; }
4378else case e in #(
4379  e) if test "x$ac_cv_prog_cc_c89" = x
4380then :
4381  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4382printf "%s\n" "none needed" >&6; }
4383else case e in #(
4384  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4385printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4386     CC="$CC $ac_cv_prog_cc_c89" ;;
4387esac
4388fi
4389  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4390  ac_prog_cc_stdc=c89 ;;
4391esac
4392fi
4393fi
4394
4395ac_ext=c
4396ac_cpp='$CPP $CPPFLAGS'
4397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4399ac_compiler_gnu=$ac_cv_c_compiler_gnu
4400
4401
4402  ac_ext=c
4403ac_cpp='$CPP $CPPFLAGS'
4404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4406ac_compiler_gnu=$ac_cv_c_compiler_gnu
4407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4408printf %s "checking whether $CC understands -c and -o together... " >&6; }
4409if test ${am_cv_prog_cc_c_o+y}
4410then :
4411  printf %s "(cached) " >&6
4412else case e in #(
4413  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414/* end confdefs.h.  */
4415
4416int
4417main (void)
4418{
4419
4420  ;
4421  return 0;
4422}
4423_ACEOF
4424  # Make sure it works both with $CC and with simple cc.
4425  # Following AC_PROG_CC_C_O, we do the test twice because some
4426  # compilers refuse to overwrite an existing .o file with -o,
4427  # though they will create one.
4428  am_cv_prog_cc_c_o=yes
4429  for am_i in 1 2; do
4430    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4431   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4432   ac_status=$?
4433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434   (exit $ac_status); } \
4435         && test -f conftest2.$ac_objext; then
4436      : OK
4437    else
4438      am_cv_prog_cc_c_o=no
4439      break
4440    fi
4441  done
4442  rm -f core conftest*
4443  unset am_i ;;
4444esac
4445fi
4446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4447printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4448if test "$am_cv_prog_cc_c_o" != yes; then
4449   # Losing compiler, so override with the script.
4450   # FIXME: It is wrong to rewrite CC.
4451   # But if we don't then we get into trouble of one sort or another.
4452   # A longer-term fix would be to have automake use am__CC in this case,
4453   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4454   CC="$am_aux_dir/compile $CC"
4455fi
4456ac_ext=c
4457ac_cpp='$CPP $CPPFLAGS'
4458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4460ac_compiler_gnu=$ac_cv_c_compiler_gnu
4461
4462
4463depcc="$CC"   am_compiler_list=
4464
4465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4466printf %s "checking dependency style of $depcc... " >&6; }
4467if test ${am_cv_CC_dependencies_compiler_type+y}
4468then :
4469  printf %s "(cached) " >&6
4470else case e in #(
4471  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4472  # We make a subdir and do the tests there.  Otherwise we can end up
4473  # making bogus files that we don't know about and never remove.  For
4474  # instance it was reported that on HP-UX the gcc test will end up
4475  # making a dummy file named 'D' -- because '-MD' means "put the output
4476  # in D".
4477  rm -rf conftest.dir
4478  mkdir conftest.dir
4479  # Copy depcomp to subdir because otherwise we won't find it if we're
4480  # using a relative directory.
4481  cp "$am_depcomp" conftest.dir
4482  cd conftest.dir
4483  # We will build objects and dependencies in a subdirectory because
4484  # it helps to detect inapplicable dependency modes.  For instance
4485  # both Tru64's cc and ICC support -MD to output dependencies as a
4486  # side effect of compilation, but ICC will put the dependencies in
4487  # the current directory while Tru64 will put them in the object
4488  # directory.
4489  mkdir sub
4490
4491  am_cv_CC_dependencies_compiler_type=none
4492  if test "$am_compiler_list" = ""; then
4493     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4494  fi
4495  am__universal=false
4496  case " $depcc " in #(
4497     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4498     esac
4499
4500  for depmode in $am_compiler_list; do
4501    # Setup a source with many dependencies, because some compilers
4502    # like to wrap large dependency lists on column 80 (with \), and
4503    # we should not choose a depcomp mode which is confused by this.
4504    #
4505    # We need to recreate these files for each test, as the compiler may
4506    # overwrite some of them when testing with obscure command lines.
4507    # This happens at least with the AIX C compiler.
4508    : > sub/conftest.c
4509    for i in 1 2 3 4 5 6; do
4510      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4511      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4512      # Solaris 10 /bin/sh.
4513      echo '/* dummy */' > sub/conftst$i.h
4514    done
4515    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4516
4517    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4518    # mode.  It turns out that the SunPro C++ compiler does not properly
4519    # handle '-M -o', and we need to detect this.  Also, some Intel
4520    # versions had trouble with output in subdirs.
4521    am__obj=sub/conftest.${OBJEXT-o}
4522    am__minus_obj="-o $am__obj"
4523    case $depmode in
4524    gcc)
4525      # This depmode causes a compiler race in universal mode.
4526      test "$am__universal" = false || continue
4527      ;;
4528    nosideeffect)
4529      # After this tag, mechanisms are not by side-effect, so they'll
4530      # only be used when explicitly requested.
4531      if test "x$enable_dependency_tracking" = xyes; then
4532	continue
4533      else
4534	break
4535      fi
4536      ;;
4537    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4538      # This compiler won't grok '-c -o', but also, the minuso test has
4539      # not run yet.  These depmodes are late enough in the game, and
4540      # so weak that their functioning should not be impacted.
4541      am__obj=conftest.${OBJEXT-o}
4542      am__minus_obj=
4543      ;;
4544    none) break ;;
4545    esac
4546    if depmode=$depmode \
4547       source=sub/conftest.c object=$am__obj \
4548       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4549       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4550         >/dev/null 2>conftest.err &&
4551       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4552       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4553       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4554       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4555      # icc doesn't choke on unknown options, it will just issue warnings
4556      # or remarks (even with -Werror).  So we grep stderr for any message
4557      # that says an option was ignored or not supported.
4558      # When given -MP, icc 7.0 and 7.1 complain thusly:
4559      #   icc: Command line warning: ignoring option '-M'; no argument required
4560      # The diagnosis changed in icc 8.0:
4561      #   icc: Command line remark: option '-MP' not supported
4562      if (grep 'ignoring option' conftest.err ||
4563          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4564        am_cv_CC_dependencies_compiler_type=$depmode
4565        break
4566      fi
4567    fi
4568  done
4569
4570  cd ..
4571  rm -rf conftest.dir
4572else
4573  am_cv_CC_dependencies_compiler_type=none
4574fi
4575 ;;
4576esac
4577fi
4578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4579printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4580CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4581
4582 if
4583  test "x$enable_dependency_tracking" != xno \
4584  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4585  am__fastdepCC_TRUE=
4586  am__fastdepCC_FALSE='#'
4587else
4588  am__fastdepCC_TRUE='#'
4589  am__fastdepCC_FALSE=
4590fi
4591
4592
4593
4594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4595printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4596if test ${ac_cv_c_undeclared_builtin_options+y}
4597then :
4598  printf %s "(cached) " >&6
4599else case e in #(
4600  e) ac_save_CFLAGS=$CFLAGS
4601   ac_cv_c_undeclared_builtin_options='cannot detect'
4602   for ac_arg in '' -fno-builtin; do
4603     CFLAGS="$ac_save_CFLAGS $ac_arg"
4604     # This test program should *not* compile successfully.
4605     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606/* end confdefs.h.  */
4607
4608int
4609main (void)
4610{
4611(void) strchr;
4612  ;
4613  return 0;
4614}
4615_ACEOF
4616if ac_fn_c_try_compile "$LINENO"
4617then :
4618
4619else case e in #(
4620  e) # This test program should compile successfully.
4621        # No library function is consistently available on
4622        # freestanding implementations, so test against a dummy
4623        # declaration.  Include always-available headers on the
4624        # off chance that they somehow elicit warnings.
4625        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626/* end confdefs.h.  */
4627#include <float.h>
4628#include <limits.h>
4629#include <stdarg.h>
4630#include <stddef.h>
4631extern void ac_decl (int, char *);
4632
4633int
4634main (void)
4635{
4636(void) ac_decl (0, (char *) 0);
4637  (void) ac_decl;
4638
4639  ;
4640  return 0;
4641}
4642_ACEOF
4643if ac_fn_c_try_compile "$LINENO"
4644then :
4645  if test x"$ac_arg" = x
4646then :
4647  ac_cv_c_undeclared_builtin_options='none needed'
4648else case e in #(
4649  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4650esac
4651fi
4652          break
4653fi
4654rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4655esac
4656fi
4657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4658    done
4659    CFLAGS=$ac_save_CFLAGS
4660   ;;
4661esac
4662fi
4663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4664printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4665  case $ac_cv_c_undeclared_builtin_options in #(
4666  'cannot detect') :
4667    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4668printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4669as_fn_error $? "cannot make $CC report undeclared builtins
4670See 'config.log' for more details" "$LINENO" 5; } ;; #(
4671  'none needed') :
4672    ac_c_undeclared_builtin_options='' ;; #(
4673  *) :
4674    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4675esac
4676
4677ac_header= ac_cache=
4678for ac_item in $ac_header_c_list
4679do
4680  if test $ac_cache; then
4681    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4682    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4683      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4684    fi
4685    ac_header= ac_cache=
4686  elif test $ac_header; then
4687    ac_cache=$ac_item
4688  else
4689    ac_header=$ac_item
4690  fi
4691done
4692
4693
4694
4695
4696
4697
4698
4699
4700if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4701then :
4702
4703printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4704
4705fi
4706
4707
4708
4709
4710ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4711if test "x$ac_cv_have_decl___clang__" = xyes
4712then :
4713  CLANGCC="yes"
4714else case e in #(
4715  e) CLANGCC="no" ;;
4716esac
4717fi
4718ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4719if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4720then :
4721  INTELCC="yes"
4722else case e in #(
4723  e) INTELCC="no" ;;
4724esac
4725fi
4726ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4727if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4728then :
4729  SUNCC="yes"
4730else case e in #(
4731  e) SUNCC="no" ;;
4732esac
4733fi
4734
4735
4736
4737
4738
4739
4740
4741
4742if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4743	if test -n "$ac_tool_prefix"; then
4744  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4745set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4747printf %s "checking for $ac_word... " >&6; }
4748if test ${ac_cv_path_PKG_CONFIG+y}
4749then :
4750  printf %s "(cached) " >&6
4751else case e in #(
4752  e) case $PKG_CONFIG in
4753  [\\/]* | ?:[\\/]*)
4754  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4755  ;;
4756  *)
4757  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758for as_dir in $PATH
4759do
4760  IFS=$as_save_IFS
4761  case $as_dir in #(((
4762    '') as_dir=./ ;;
4763    */) ;;
4764    *) as_dir=$as_dir/ ;;
4765  esac
4766    for ac_exec_ext in '' $ac_executable_extensions; do
4767  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4768    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4769    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4770    break 2
4771  fi
4772done
4773  done
4774IFS=$as_save_IFS
4775
4776  ;;
4777esac ;;
4778esac
4779fi
4780PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4781if test -n "$PKG_CONFIG"; then
4782  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4783printf "%s\n" "$PKG_CONFIG" >&6; }
4784else
4785  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786printf "%s\n" "no" >&6; }
4787fi
4788
4789
4790fi
4791if test -z "$ac_cv_path_PKG_CONFIG"; then
4792  ac_pt_PKG_CONFIG=$PKG_CONFIG
4793  # Extract the first word of "pkg-config", so it can be a program name with args.
4794set dummy pkg-config; ac_word=$2
4795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4796printf %s "checking for $ac_word... " >&6; }
4797if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4798then :
4799  printf %s "(cached) " >&6
4800else case e in #(
4801  e) case $ac_pt_PKG_CONFIG in
4802  [\\/]* | ?:[\\/]*)
4803  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4804  ;;
4805  *)
4806  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807for as_dir in $PATH
4808do
4809  IFS=$as_save_IFS
4810  case $as_dir in #(((
4811    '') as_dir=./ ;;
4812    */) ;;
4813    *) as_dir=$as_dir/ ;;
4814  esac
4815    for ac_exec_ext in '' $ac_executable_extensions; do
4816  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4817    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4818    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4819    break 2
4820  fi
4821done
4822  done
4823IFS=$as_save_IFS
4824
4825  ;;
4826esac ;;
4827esac
4828fi
4829ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4830if test -n "$ac_pt_PKG_CONFIG"; then
4831  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4832printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4833else
4834  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4835printf "%s\n" "no" >&6; }
4836fi
4837
4838  if test "x$ac_pt_PKG_CONFIG" = x; then
4839    PKG_CONFIG=""
4840  else
4841    case $cross_compiling:$ac_tool_warned in
4842yes:)
4843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4844printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4845ac_tool_warned=yes ;;
4846esac
4847    PKG_CONFIG=$ac_pt_PKG_CONFIG
4848  fi
4849else
4850  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4851fi
4852
4853fi
4854if test -n "$PKG_CONFIG"; then
4855	_pkg_min_version=0.9.0
4856	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4857printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4858	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4859		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4860printf "%s\n" "yes" >&6; }
4861	else
4862		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863printf "%s\n" "no" >&6; }
4864		PKG_CONFIG=""
4865	fi
4866fi
4867
4868
4869  # Make sure we can run config.sub.
4870$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4871  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4872
4873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4874printf %s "checking build system type... " >&6; }
4875if test ${ac_cv_build+y}
4876then :
4877  printf %s "(cached) " >&6
4878else case e in #(
4879  e) ac_build_alias=$build_alias
4880test "x$ac_build_alias" = x &&
4881  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4882test "x$ac_build_alias" = x &&
4883  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4884ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4885  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4886 ;;
4887esac
4888fi
4889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4890printf "%s\n" "$ac_cv_build" >&6; }
4891case $ac_cv_build in
4892*-*-*) ;;
4893*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4894esac
4895build=$ac_cv_build
4896ac_save_IFS=$IFS; IFS='-'
4897set x $ac_cv_build
4898shift
4899build_cpu=$1
4900build_vendor=$2
4901shift; shift
4902# Remember, the first character of IFS is used to create $*,
4903# except with old shells:
4904build_os=$*
4905IFS=$ac_save_IFS
4906case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4907
4908
4909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4910printf %s "checking host system type... " >&6; }
4911if test ${ac_cv_host+y}
4912then :
4913  printf %s "(cached) " >&6
4914else case e in #(
4915  e) if test "x$host_alias" = x; then
4916  ac_cv_host=$ac_cv_build
4917else
4918  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4919    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4920fi
4921 ;;
4922esac
4923fi
4924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4925printf "%s\n" "$ac_cv_host" >&6; }
4926case $ac_cv_host in
4927*-*-*) ;;
4928*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4929esac
4930host=$ac_cv_host
4931ac_save_IFS=$IFS; IFS='-'
4932set x $ac_cv_host
4933shift
4934host_cpu=$1
4935host_vendor=$2
4936shift; shift
4937# Remember, the first character of IFS is used to create $*,
4938# except with old shells:
4939host_os=$*
4940IFS=$ac_save_IFS
4941case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4942
4943
4944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4945printf %s "checking for a sed that does not truncate output... " >&6; }
4946if test ${ac_cv_path_SED+y}
4947then :
4948  printf %s "(cached) " >&6
4949else case e in #(
4950  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4951     for ac_i in 1 2 3 4 5 6 7; do
4952       ac_script="$ac_script$as_nl$ac_script"
4953     done
4954     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4955     { ac_script=; unset ac_script;}
4956     if test -z "$SED"; then
4957  ac_path_SED_found=false
4958  # Loop through the user's path and test for each of PROGNAME-LIST
4959  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960for as_dir in $PATH
4961do
4962  IFS=$as_save_IFS
4963  case $as_dir in #(((
4964    '') as_dir=./ ;;
4965    */) ;;
4966    *) as_dir=$as_dir/ ;;
4967  esac
4968    for ac_prog in sed gsed
4969   do
4970    for ac_exec_ext in '' $ac_executable_extensions; do
4971      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4972      as_fn_executable_p "$ac_path_SED" || continue
4973# Check for GNU ac_path_SED and select it if it is found.
4974  # Check for GNU $ac_path_SED
4975case `"$ac_path_SED" --version 2>&1` in #(
4976*GNU*)
4977  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4978#(
4979*)
4980  ac_count=0
4981  printf %s 0123456789 >"conftest.in"
4982  while :
4983  do
4984    cat "conftest.in" "conftest.in" >"conftest.tmp"
4985    mv "conftest.tmp" "conftest.in"
4986    cp "conftest.in" "conftest.nl"
4987    printf "%s\n" '' >> "conftest.nl"
4988    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4989    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4990    as_fn_arith $ac_count + 1 && ac_count=$as_val
4991    if test $ac_count -gt ${ac_path_SED_max-0}; then
4992      # Best one so far, save it but keep looking for a better one
4993      ac_cv_path_SED="$ac_path_SED"
4994      ac_path_SED_max=$ac_count
4995    fi
4996    # 10*(2^10) chars as input seems more than enough
4997    test $ac_count -gt 10 && break
4998  done
4999  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5000esac
5001
5002      $ac_path_SED_found && break 3
5003    done
5004  done
5005  done
5006IFS=$as_save_IFS
5007  if test -z "$ac_cv_path_SED"; then
5008    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5009  fi
5010else
5011  ac_cv_path_SED=$SED
5012fi
5013 ;;
5014esac
5015fi
5016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5017printf "%s\n" "$ac_cv_path_SED" >&6; }
5018 SED="$ac_cv_path_SED"
5019  rm -f conftest.sed
5020
5021
5022
5023
5024
5025
5026# Check whether --enable-selective-werror was given.
5027if test ${enable_selective_werror+y}
5028then :
5029  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5030else case e in #(
5031  e) SELECTIVE_WERROR=yes ;;
5032esac
5033fi
5034
5035
5036
5037
5038
5039# -v is too short to test reliably with XORG_TESTSET_CFLAG
5040if test "x$SUNCC" = "xyes"; then
5041    BASE_CFLAGS="-v"
5042else
5043    BASE_CFLAGS=""
5044fi
5045
5046# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060xorg_testset_save_CFLAGS="$CFLAGS"
5061
5062if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5063	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5064	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5065printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5066if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5067then :
5068  printf %s "(cached) " >&6
5069else case e in #(
5070  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071/* end confdefs.h.  */
5072int i;
5073_ACEOF
5074if ac_fn_c_try_compile "$LINENO"
5075then :
5076  xorg_cv_cc_flag_unknown_warning_option=yes
5077else case e in #(
5078  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5079esac
5080fi
5081rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5082esac
5083fi
5084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5085printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5086	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5087	CFLAGS="$xorg_testset_save_CFLAGS"
5088fi
5089
5090if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5091	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5092		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5093	fi
5094	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5095	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5096printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5097if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5098then :
5099  printf %s "(cached) " >&6
5100else case e in #(
5101  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102/* end confdefs.h.  */
5103int i;
5104_ACEOF
5105if ac_fn_c_try_compile "$LINENO"
5106then :
5107  xorg_cv_cc_flag_unused_command_line_argument=yes
5108else case e in #(
5109  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5110esac
5111fi
5112rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5113esac
5114fi
5115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5116printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5117	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5118	CFLAGS="$xorg_testset_save_CFLAGS"
5119fi
5120
5121found="no"
5122
5123	if test $found = "no" ; then
5124		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5125			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5126		fi
5127
5128		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5129			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5130		fi
5131
5132		CFLAGS="$CFLAGS -Wall"
5133
5134		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5135printf %s "checking if $CC supports -Wall... " >&6; }
5136		cacheid=xorg_cv_cc_flag__Wall
5137		if eval test \${$cacheid+y}
5138then :
5139  printf %s "(cached) " >&6
5140else case e in #(
5141  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142/* end confdefs.h.  */
5143int i;
5144int
5145main (void)
5146{
5147
5148  ;
5149  return 0;
5150}
5151_ACEOF
5152if ac_fn_c_try_link "$LINENO"
5153then :
5154  eval $cacheid=yes
5155else case e in #(
5156  e) eval $cacheid=no ;;
5157esac
5158fi
5159rm -f core conftest.err conftest.$ac_objext conftest.beam \
5160    conftest$ac_exeext conftest.$ac_ext ;;
5161esac
5162fi
5163
5164
5165		CFLAGS="$xorg_testset_save_CFLAGS"
5166
5167		eval supported=\$$cacheid
5168		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5169printf "%s\n" "$supported" >&6; }
5170		if test "$supported" = "yes" ; then
5171			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5172			found="yes"
5173		fi
5174	fi
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190xorg_testset_save_CFLAGS="$CFLAGS"
5191
5192if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5193	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5194	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5195printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5196if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5197then :
5198  printf %s "(cached) " >&6
5199else case e in #(
5200  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201/* end confdefs.h.  */
5202int i;
5203_ACEOF
5204if ac_fn_c_try_compile "$LINENO"
5205then :
5206  xorg_cv_cc_flag_unknown_warning_option=yes
5207else case e in #(
5208  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5209esac
5210fi
5211rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5212esac
5213fi
5214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5215printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5216	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5217	CFLAGS="$xorg_testset_save_CFLAGS"
5218fi
5219
5220if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5221	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5222		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5223	fi
5224	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5225	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5226printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5227if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5228then :
5229  printf %s "(cached) " >&6
5230else case e in #(
5231  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232/* end confdefs.h.  */
5233int i;
5234_ACEOF
5235if ac_fn_c_try_compile "$LINENO"
5236then :
5237  xorg_cv_cc_flag_unused_command_line_argument=yes
5238else case e in #(
5239  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5240esac
5241fi
5242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5243esac
5244fi
5245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5246printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5247	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5248	CFLAGS="$xorg_testset_save_CFLAGS"
5249fi
5250
5251found="no"
5252
5253	if test $found = "no" ; then
5254		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5255			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5256		fi
5257
5258		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5259			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5260		fi
5261
5262		CFLAGS="$CFLAGS -Wpointer-arith"
5263
5264		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5265printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5266		cacheid=xorg_cv_cc_flag__Wpointer_arith
5267		if eval test \${$cacheid+y}
5268then :
5269  printf %s "(cached) " >&6
5270else case e in #(
5271  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272/* end confdefs.h.  */
5273int i;
5274int
5275main (void)
5276{
5277
5278  ;
5279  return 0;
5280}
5281_ACEOF
5282if ac_fn_c_try_link "$LINENO"
5283then :
5284  eval $cacheid=yes
5285else case e in #(
5286  e) eval $cacheid=no ;;
5287esac
5288fi
5289rm -f core conftest.err conftest.$ac_objext conftest.beam \
5290    conftest$ac_exeext conftest.$ac_ext ;;
5291esac
5292fi
5293
5294
5295		CFLAGS="$xorg_testset_save_CFLAGS"
5296
5297		eval supported=\$$cacheid
5298		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5299printf "%s\n" "$supported" >&6; }
5300		if test "$supported" = "yes" ; then
5301			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5302			found="yes"
5303		fi
5304	fi
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320xorg_testset_save_CFLAGS="$CFLAGS"
5321
5322if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5323	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5324	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5325printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5326if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5327then :
5328  printf %s "(cached) " >&6
5329else case e in #(
5330  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331/* end confdefs.h.  */
5332int i;
5333_ACEOF
5334if ac_fn_c_try_compile "$LINENO"
5335then :
5336  xorg_cv_cc_flag_unknown_warning_option=yes
5337else case e in #(
5338  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5339esac
5340fi
5341rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5342esac
5343fi
5344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5345printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5346	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5347	CFLAGS="$xorg_testset_save_CFLAGS"
5348fi
5349
5350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5351	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5352		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5353	fi
5354	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5355	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5356printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5357if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5358then :
5359  printf %s "(cached) " >&6
5360else case e in #(
5361  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5362/* end confdefs.h.  */
5363int i;
5364_ACEOF
5365if ac_fn_c_try_compile "$LINENO"
5366then :
5367  xorg_cv_cc_flag_unused_command_line_argument=yes
5368else case e in #(
5369  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5370esac
5371fi
5372rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5373esac
5374fi
5375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5376printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5377	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5378	CFLAGS="$xorg_testset_save_CFLAGS"
5379fi
5380
5381found="no"
5382
5383	if test $found = "no" ; then
5384		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5385			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5386		fi
5387
5388		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5389			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5390		fi
5391
5392		CFLAGS="$CFLAGS -Wmissing-declarations"
5393
5394		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5395printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5396		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5397		if eval test \${$cacheid+y}
5398then :
5399  printf %s "(cached) " >&6
5400else case e in #(
5401  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402/* end confdefs.h.  */
5403int i;
5404int
5405main (void)
5406{
5407
5408  ;
5409  return 0;
5410}
5411_ACEOF
5412if ac_fn_c_try_link "$LINENO"
5413then :
5414  eval $cacheid=yes
5415else case e in #(
5416  e) eval $cacheid=no ;;
5417esac
5418fi
5419rm -f core conftest.err conftest.$ac_objext conftest.beam \
5420    conftest$ac_exeext conftest.$ac_ext ;;
5421esac
5422fi
5423
5424
5425		CFLAGS="$xorg_testset_save_CFLAGS"
5426
5427		eval supported=\$$cacheid
5428		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5429printf "%s\n" "$supported" >&6; }
5430		if test "$supported" = "yes" ; then
5431			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5432			found="yes"
5433		fi
5434	fi
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450xorg_testset_save_CFLAGS="$CFLAGS"
5451
5452if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5453	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5454	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5455printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5456if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5457then :
5458  printf %s "(cached) " >&6
5459else case e in #(
5460  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461/* end confdefs.h.  */
5462int i;
5463_ACEOF
5464if ac_fn_c_try_compile "$LINENO"
5465then :
5466  xorg_cv_cc_flag_unknown_warning_option=yes
5467else case e in #(
5468  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5469esac
5470fi
5471rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5472esac
5473fi
5474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5475printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5476	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5477	CFLAGS="$xorg_testset_save_CFLAGS"
5478fi
5479
5480if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5481	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5482		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5483	fi
5484	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5485	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5486printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5487if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5488then :
5489  printf %s "(cached) " >&6
5490else case e in #(
5491  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492/* end confdefs.h.  */
5493int i;
5494_ACEOF
5495if ac_fn_c_try_compile "$LINENO"
5496then :
5497  xorg_cv_cc_flag_unused_command_line_argument=yes
5498else case e in #(
5499  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5500esac
5501fi
5502rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5503esac
5504fi
5505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5506printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5507	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5508	CFLAGS="$xorg_testset_save_CFLAGS"
5509fi
5510
5511found="no"
5512
5513	if test $found = "no" ; then
5514		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5515			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5516		fi
5517
5518		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5519			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5520		fi
5521
5522		CFLAGS="$CFLAGS -Wformat=2"
5523
5524		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5525printf %s "checking if $CC supports -Wformat=2... " >&6; }
5526		cacheid=xorg_cv_cc_flag__Wformat_2
5527		if eval test \${$cacheid+y}
5528then :
5529  printf %s "(cached) " >&6
5530else case e in #(
5531  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532/* end confdefs.h.  */
5533int i;
5534int
5535main (void)
5536{
5537
5538  ;
5539  return 0;
5540}
5541_ACEOF
5542if ac_fn_c_try_link "$LINENO"
5543then :
5544  eval $cacheid=yes
5545else case e in #(
5546  e) eval $cacheid=no ;;
5547esac
5548fi
5549rm -f core conftest.err conftest.$ac_objext conftest.beam \
5550    conftest$ac_exeext conftest.$ac_ext ;;
5551esac
5552fi
5553
5554
5555		CFLAGS="$xorg_testset_save_CFLAGS"
5556
5557		eval supported=\$$cacheid
5558		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5559printf "%s\n" "$supported" >&6; }
5560		if test "$supported" = "yes" ; then
5561			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5562			found="yes"
5563		fi
5564	fi
5565
5566	if test $found = "no" ; then
5567		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5568			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5569		fi
5570
5571		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5572			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5573		fi
5574
5575		CFLAGS="$CFLAGS -Wformat"
5576
5577		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5578printf %s "checking if $CC supports -Wformat... " >&6; }
5579		cacheid=xorg_cv_cc_flag__Wformat
5580		if eval test \${$cacheid+y}
5581then :
5582  printf %s "(cached) " >&6
5583else case e in #(
5584  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585/* end confdefs.h.  */
5586int i;
5587int
5588main (void)
5589{
5590
5591  ;
5592  return 0;
5593}
5594_ACEOF
5595if ac_fn_c_try_link "$LINENO"
5596then :
5597  eval $cacheid=yes
5598else case e in #(
5599  e) eval $cacheid=no ;;
5600esac
5601fi
5602rm -f core conftest.err conftest.$ac_objext conftest.beam \
5603    conftest$ac_exeext conftest.$ac_ext ;;
5604esac
5605fi
5606
5607
5608		CFLAGS="$xorg_testset_save_CFLAGS"
5609
5610		eval supported=\$$cacheid
5611		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5612printf "%s\n" "$supported" >&6; }
5613		if test "$supported" = "yes" ; then
5614			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5615			found="yes"
5616		fi
5617	fi
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635xorg_testset_save_CFLAGS="$CFLAGS"
5636
5637if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5638	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5639	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5640printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5641if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5642then :
5643  printf %s "(cached) " >&6
5644else case e in #(
5645  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646/* end confdefs.h.  */
5647int i;
5648_ACEOF
5649if ac_fn_c_try_compile "$LINENO"
5650then :
5651  xorg_cv_cc_flag_unknown_warning_option=yes
5652else case e in #(
5653  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5654esac
5655fi
5656rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5657esac
5658fi
5659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5660printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5661	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5662	CFLAGS="$xorg_testset_save_CFLAGS"
5663fi
5664
5665if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5666	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5667		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5668	fi
5669	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5670	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5671printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5672if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5673then :
5674  printf %s "(cached) " >&6
5675else case e in #(
5676  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677/* end confdefs.h.  */
5678int i;
5679_ACEOF
5680if ac_fn_c_try_compile "$LINENO"
5681then :
5682  xorg_cv_cc_flag_unused_command_line_argument=yes
5683else case e in #(
5684  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5685esac
5686fi
5687rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5688esac
5689fi
5690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5691printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5692	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5693	CFLAGS="$xorg_testset_save_CFLAGS"
5694fi
5695
5696found="no"
5697
5698	if test $found = "no" ; then
5699		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5700			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5701		fi
5702
5703		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5704			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5705		fi
5706
5707		CFLAGS="$CFLAGS -Wstrict-prototypes"
5708
5709		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5710printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5711		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5712		if eval test \${$cacheid+y}
5713then :
5714  printf %s "(cached) " >&6
5715else case e in #(
5716  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5717/* end confdefs.h.  */
5718int i;
5719int
5720main (void)
5721{
5722
5723  ;
5724  return 0;
5725}
5726_ACEOF
5727if ac_fn_c_try_link "$LINENO"
5728then :
5729  eval $cacheid=yes
5730else case e in #(
5731  e) eval $cacheid=no ;;
5732esac
5733fi
5734rm -f core conftest.err conftest.$ac_objext conftest.beam \
5735    conftest$ac_exeext conftest.$ac_ext ;;
5736esac
5737fi
5738
5739
5740		CFLAGS="$xorg_testset_save_CFLAGS"
5741
5742		eval supported=\$$cacheid
5743		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5744printf "%s\n" "$supported" >&6; }
5745		if test "$supported" = "yes" ; then
5746			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5747			found="yes"
5748		fi
5749	fi
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765xorg_testset_save_CFLAGS="$CFLAGS"
5766
5767if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5768	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5769	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5770printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5771if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5772then :
5773  printf %s "(cached) " >&6
5774else case e in #(
5775  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776/* end confdefs.h.  */
5777int i;
5778_ACEOF
5779if ac_fn_c_try_compile "$LINENO"
5780then :
5781  xorg_cv_cc_flag_unknown_warning_option=yes
5782else case e in #(
5783  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5784esac
5785fi
5786rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5787esac
5788fi
5789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5790printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5791	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5792	CFLAGS="$xorg_testset_save_CFLAGS"
5793fi
5794
5795if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5796	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5797		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5798	fi
5799	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5800	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5801printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5802if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5803then :
5804  printf %s "(cached) " >&6
5805else case e in #(
5806  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5807/* end confdefs.h.  */
5808int i;
5809_ACEOF
5810if ac_fn_c_try_compile "$LINENO"
5811then :
5812  xorg_cv_cc_flag_unused_command_line_argument=yes
5813else case e in #(
5814  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5815esac
5816fi
5817rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5818esac
5819fi
5820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5821printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5822	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5823	CFLAGS="$xorg_testset_save_CFLAGS"
5824fi
5825
5826found="no"
5827
5828	if test $found = "no" ; then
5829		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5830			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5831		fi
5832
5833		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5834			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5835		fi
5836
5837		CFLAGS="$CFLAGS -Wmissing-prototypes"
5838
5839		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5840printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5841		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5842		if eval test \${$cacheid+y}
5843then :
5844  printf %s "(cached) " >&6
5845else case e in #(
5846  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847/* end confdefs.h.  */
5848int i;
5849int
5850main (void)
5851{
5852
5853  ;
5854  return 0;
5855}
5856_ACEOF
5857if ac_fn_c_try_link "$LINENO"
5858then :
5859  eval $cacheid=yes
5860else case e in #(
5861  e) eval $cacheid=no ;;
5862esac
5863fi
5864rm -f core conftest.err conftest.$ac_objext conftest.beam \
5865    conftest$ac_exeext conftest.$ac_ext ;;
5866esac
5867fi
5868
5869
5870		CFLAGS="$xorg_testset_save_CFLAGS"
5871
5872		eval supported=\$$cacheid
5873		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5874printf "%s\n" "$supported" >&6; }
5875		if test "$supported" = "yes" ; then
5876			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5877			found="yes"
5878		fi
5879	fi
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895xorg_testset_save_CFLAGS="$CFLAGS"
5896
5897if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5898	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5899	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5900printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5901if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5902then :
5903  printf %s "(cached) " >&6
5904else case e in #(
5905  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906/* end confdefs.h.  */
5907int i;
5908_ACEOF
5909if ac_fn_c_try_compile "$LINENO"
5910then :
5911  xorg_cv_cc_flag_unknown_warning_option=yes
5912else case e in #(
5913  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5914esac
5915fi
5916rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5917esac
5918fi
5919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5920printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5921	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5922	CFLAGS="$xorg_testset_save_CFLAGS"
5923fi
5924
5925if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5926	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5927		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5928	fi
5929	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5930	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5931printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5932if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5933then :
5934  printf %s "(cached) " >&6
5935else case e in #(
5936  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5937/* end confdefs.h.  */
5938int i;
5939_ACEOF
5940if ac_fn_c_try_compile "$LINENO"
5941then :
5942  xorg_cv_cc_flag_unused_command_line_argument=yes
5943else case e in #(
5944  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5945esac
5946fi
5947rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5948esac
5949fi
5950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5951printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5952	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5953	CFLAGS="$xorg_testset_save_CFLAGS"
5954fi
5955
5956found="no"
5957
5958	if test $found = "no" ; then
5959		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5960			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5961		fi
5962
5963		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5964			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5965		fi
5966
5967		CFLAGS="$CFLAGS -Wnested-externs"
5968
5969		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5970printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5971		cacheid=xorg_cv_cc_flag__Wnested_externs
5972		if eval test \${$cacheid+y}
5973then :
5974  printf %s "(cached) " >&6
5975else case e in #(
5976  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977/* end confdefs.h.  */
5978int i;
5979int
5980main (void)
5981{
5982
5983  ;
5984  return 0;
5985}
5986_ACEOF
5987if ac_fn_c_try_link "$LINENO"
5988then :
5989  eval $cacheid=yes
5990else case e in #(
5991  e) eval $cacheid=no ;;
5992esac
5993fi
5994rm -f core conftest.err conftest.$ac_objext conftest.beam \
5995    conftest$ac_exeext conftest.$ac_ext ;;
5996esac
5997fi
5998
5999
6000		CFLAGS="$xorg_testset_save_CFLAGS"
6001
6002		eval supported=\$$cacheid
6003		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6004printf "%s\n" "$supported" >&6; }
6005		if test "$supported" = "yes" ; then
6006			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6007			found="yes"
6008		fi
6009	fi
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025xorg_testset_save_CFLAGS="$CFLAGS"
6026
6027if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6028	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6029	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6030printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6031if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6032then :
6033  printf %s "(cached) " >&6
6034else case e in #(
6035  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036/* end confdefs.h.  */
6037int i;
6038_ACEOF
6039if ac_fn_c_try_compile "$LINENO"
6040then :
6041  xorg_cv_cc_flag_unknown_warning_option=yes
6042else case e in #(
6043  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6044esac
6045fi
6046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6047esac
6048fi
6049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6050printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6051	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6052	CFLAGS="$xorg_testset_save_CFLAGS"
6053fi
6054
6055if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6056	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6057		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6058	fi
6059	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6060	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6061printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6062if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6063then :
6064  printf %s "(cached) " >&6
6065else case e in #(
6066  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6067/* end confdefs.h.  */
6068int i;
6069_ACEOF
6070if ac_fn_c_try_compile "$LINENO"
6071then :
6072  xorg_cv_cc_flag_unused_command_line_argument=yes
6073else case e in #(
6074  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6075esac
6076fi
6077rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6078esac
6079fi
6080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6081printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6082	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6083	CFLAGS="$xorg_testset_save_CFLAGS"
6084fi
6085
6086found="no"
6087
6088	if test $found = "no" ; then
6089		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6090			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6091		fi
6092
6093		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6094			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6095		fi
6096
6097		CFLAGS="$CFLAGS -Wbad-function-cast"
6098
6099		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6100printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6101		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6102		if eval test \${$cacheid+y}
6103then :
6104  printf %s "(cached) " >&6
6105else case e in #(
6106  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6107/* end confdefs.h.  */
6108int i;
6109int
6110main (void)
6111{
6112
6113  ;
6114  return 0;
6115}
6116_ACEOF
6117if ac_fn_c_try_link "$LINENO"
6118then :
6119  eval $cacheid=yes
6120else case e in #(
6121  e) eval $cacheid=no ;;
6122esac
6123fi
6124rm -f core conftest.err conftest.$ac_objext conftest.beam \
6125    conftest$ac_exeext conftest.$ac_ext ;;
6126esac
6127fi
6128
6129
6130		CFLAGS="$xorg_testset_save_CFLAGS"
6131
6132		eval supported=\$$cacheid
6133		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6134printf "%s\n" "$supported" >&6; }
6135		if test "$supported" = "yes" ; then
6136			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6137			found="yes"
6138		fi
6139	fi
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155xorg_testset_save_CFLAGS="$CFLAGS"
6156
6157if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6158	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6159	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6160printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6161if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6162then :
6163  printf %s "(cached) " >&6
6164else case e in #(
6165  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6166/* end confdefs.h.  */
6167int i;
6168_ACEOF
6169if ac_fn_c_try_compile "$LINENO"
6170then :
6171  xorg_cv_cc_flag_unknown_warning_option=yes
6172else case e in #(
6173  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6174esac
6175fi
6176rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6177esac
6178fi
6179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6180printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6181	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6182	CFLAGS="$xorg_testset_save_CFLAGS"
6183fi
6184
6185if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6186	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6187		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6188	fi
6189	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6190	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6191printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6192if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6193then :
6194  printf %s "(cached) " >&6
6195else case e in #(
6196  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197/* end confdefs.h.  */
6198int i;
6199_ACEOF
6200if ac_fn_c_try_compile "$LINENO"
6201then :
6202  xorg_cv_cc_flag_unused_command_line_argument=yes
6203else case e in #(
6204  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6205esac
6206fi
6207rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6208esac
6209fi
6210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6211printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6212	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6213	CFLAGS="$xorg_testset_save_CFLAGS"
6214fi
6215
6216found="no"
6217
6218	if test $found = "no" ; then
6219		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6220			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6221		fi
6222
6223		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6224			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6225		fi
6226
6227		CFLAGS="$CFLAGS -Wold-style-definition"
6228
6229		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6230printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6231		cacheid=xorg_cv_cc_flag__Wold_style_definition
6232		if eval test \${$cacheid+y}
6233then :
6234  printf %s "(cached) " >&6
6235else case e in #(
6236  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237/* end confdefs.h.  */
6238int i;
6239int
6240main (void)
6241{
6242
6243  ;
6244  return 0;
6245}
6246_ACEOF
6247if ac_fn_c_try_link "$LINENO"
6248then :
6249  eval $cacheid=yes
6250else case e in #(
6251  e) eval $cacheid=no ;;
6252esac
6253fi
6254rm -f core conftest.err conftest.$ac_objext conftest.beam \
6255    conftest$ac_exeext conftest.$ac_ext ;;
6256esac
6257fi
6258
6259
6260		CFLAGS="$xorg_testset_save_CFLAGS"
6261
6262		eval supported=\$$cacheid
6263		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6264printf "%s\n" "$supported" >&6; }
6265		if test "$supported" = "yes" ; then
6266			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6267			found="yes"
6268		fi
6269	fi
6270
6271	if test $found = "no" ; then
6272		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6273			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6274		fi
6275
6276		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6277			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6278		fi
6279
6280		CFLAGS="$CFLAGS -fd"
6281
6282		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6283printf %s "checking if $CC supports -fd... " >&6; }
6284		cacheid=xorg_cv_cc_flag__fd
6285		if eval test \${$cacheid+y}
6286then :
6287  printf %s "(cached) " >&6
6288else case e in #(
6289  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6290/* end confdefs.h.  */
6291int i;
6292int
6293main (void)
6294{
6295
6296  ;
6297  return 0;
6298}
6299_ACEOF
6300if ac_fn_c_try_link "$LINENO"
6301then :
6302  eval $cacheid=yes
6303else case e in #(
6304  e) eval $cacheid=no ;;
6305esac
6306fi
6307rm -f core conftest.err conftest.$ac_objext conftest.beam \
6308    conftest$ac_exeext conftest.$ac_ext ;;
6309esac
6310fi
6311
6312
6313		CFLAGS="$xorg_testset_save_CFLAGS"
6314
6315		eval supported=\$$cacheid
6316		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6317printf "%s\n" "$supported" >&6; }
6318		if test "$supported" = "yes" ; then
6319			BASE_CFLAGS="$BASE_CFLAGS -fd"
6320			found="yes"
6321		fi
6322	fi
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338xorg_testset_save_CFLAGS="$CFLAGS"
6339
6340if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6341	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6342	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6343printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6344if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6345then :
6346  printf %s "(cached) " >&6
6347else case e in #(
6348  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349/* end confdefs.h.  */
6350int i;
6351_ACEOF
6352if ac_fn_c_try_compile "$LINENO"
6353then :
6354  xorg_cv_cc_flag_unknown_warning_option=yes
6355else case e in #(
6356  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6357esac
6358fi
6359rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6360esac
6361fi
6362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6363printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6364	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6365	CFLAGS="$xorg_testset_save_CFLAGS"
6366fi
6367
6368if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6369	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6370		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6371	fi
6372	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6373	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6374printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6375if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6376then :
6377  printf %s "(cached) " >&6
6378else case e in #(
6379  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6380/* end confdefs.h.  */
6381int i;
6382_ACEOF
6383if ac_fn_c_try_compile "$LINENO"
6384then :
6385  xorg_cv_cc_flag_unused_command_line_argument=yes
6386else case e in #(
6387  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6388esac
6389fi
6390rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6391esac
6392fi
6393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6394printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6395	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6396	CFLAGS="$xorg_testset_save_CFLAGS"
6397fi
6398
6399found="no"
6400
6401	if test $found = "no" ; then
6402		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6403			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6404		fi
6405
6406		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6407			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6408		fi
6409
6410		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6411
6412		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6413printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6414		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6415		if eval test \${$cacheid+y}
6416then :
6417  printf %s "(cached) " >&6
6418else case e in #(
6419  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6420/* end confdefs.h.  */
6421int i;
6422int
6423main (void)
6424{
6425
6426  ;
6427  return 0;
6428}
6429_ACEOF
6430if ac_fn_c_try_link "$LINENO"
6431then :
6432  eval $cacheid=yes
6433else case e in #(
6434  e) eval $cacheid=no ;;
6435esac
6436fi
6437rm -f core conftest.err conftest.$ac_objext conftest.beam \
6438    conftest$ac_exeext conftest.$ac_ext ;;
6439esac
6440fi
6441
6442
6443		CFLAGS="$xorg_testset_save_CFLAGS"
6444
6445		eval supported=\$$cacheid
6446		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6447printf "%s\n" "$supported" >&6; }
6448		if test "$supported" = "yes" ; then
6449			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6450			found="yes"
6451		fi
6452	fi
6453
6454
6455
6456
6457
6458# This chunk adds additional warnings that could catch undesired effects.
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472xorg_testset_save_CFLAGS="$CFLAGS"
6473
6474if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6475	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6476	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6477printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6478if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6479then :
6480  printf %s "(cached) " >&6
6481else case e in #(
6482  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483/* end confdefs.h.  */
6484int i;
6485_ACEOF
6486if ac_fn_c_try_compile "$LINENO"
6487then :
6488  xorg_cv_cc_flag_unknown_warning_option=yes
6489else case e in #(
6490  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6491esac
6492fi
6493rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6494esac
6495fi
6496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6497printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6498	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6499	CFLAGS="$xorg_testset_save_CFLAGS"
6500fi
6501
6502if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6503	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6504		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6505	fi
6506	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6507	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6508printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6509if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6510then :
6511  printf %s "(cached) " >&6
6512else case e in #(
6513  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514/* end confdefs.h.  */
6515int i;
6516_ACEOF
6517if ac_fn_c_try_compile "$LINENO"
6518then :
6519  xorg_cv_cc_flag_unused_command_line_argument=yes
6520else case e in #(
6521  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6522esac
6523fi
6524rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6525esac
6526fi
6527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6528printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6529	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6530	CFLAGS="$xorg_testset_save_CFLAGS"
6531fi
6532
6533found="no"
6534
6535	if test $found = "no" ; then
6536		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6537			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6538		fi
6539
6540		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6541			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6542		fi
6543
6544		CFLAGS="$CFLAGS -Wunused"
6545
6546		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6547printf %s "checking if $CC supports -Wunused... " >&6; }
6548		cacheid=xorg_cv_cc_flag__Wunused
6549		if eval test \${$cacheid+y}
6550then :
6551  printf %s "(cached) " >&6
6552else case e in #(
6553  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554/* end confdefs.h.  */
6555int i;
6556int
6557main (void)
6558{
6559
6560  ;
6561  return 0;
6562}
6563_ACEOF
6564if ac_fn_c_try_link "$LINENO"
6565then :
6566  eval $cacheid=yes
6567else case e in #(
6568  e) eval $cacheid=no ;;
6569esac
6570fi
6571rm -f core conftest.err conftest.$ac_objext conftest.beam \
6572    conftest$ac_exeext conftest.$ac_ext ;;
6573esac
6574fi
6575
6576
6577		CFLAGS="$xorg_testset_save_CFLAGS"
6578
6579		eval supported=\$$cacheid
6580		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6581printf "%s\n" "$supported" >&6; }
6582		if test "$supported" = "yes" ; then
6583			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6584			found="yes"
6585		fi
6586	fi
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602xorg_testset_save_CFLAGS="$CFLAGS"
6603
6604if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6605	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6606	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6607printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6608if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6609then :
6610  printf %s "(cached) " >&6
6611else case e in #(
6612  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613/* end confdefs.h.  */
6614int i;
6615_ACEOF
6616if ac_fn_c_try_compile "$LINENO"
6617then :
6618  xorg_cv_cc_flag_unknown_warning_option=yes
6619else case e in #(
6620  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6621esac
6622fi
6623rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6624esac
6625fi
6626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6627printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6628	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6629	CFLAGS="$xorg_testset_save_CFLAGS"
6630fi
6631
6632if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6633	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6634		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6635	fi
6636	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6637	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6638printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6639if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6640then :
6641  printf %s "(cached) " >&6
6642else case e in #(
6643  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6644/* end confdefs.h.  */
6645int i;
6646_ACEOF
6647if ac_fn_c_try_compile "$LINENO"
6648then :
6649  xorg_cv_cc_flag_unused_command_line_argument=yes
6650else case e in #(
6651  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6652esac
6653fi
6654rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6655esac
6656fi
6657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6658printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6659	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6660	CFLAGS="$xorg_testset_save_CFLAGS"
6661fi
6662
6663found="no"
6664
6665	if test $found = "no" ; then
6666		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6667			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6668		fi
6669
6670		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6671			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6672		fi
6673
6674		CFLAGS="$CFLAGS -Wuninitialized"
6675
6676		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6677printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6678		cacheid=xorg_cv_cc_flag__Wuninitialized
6679		if eval test \${$cacheid+y}
6680then :
6681  printf %s "(cached) " >&6
6682else case e in #(
6683  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684/* end confdefs.h.  */
6685int i;
6686int
6687main (void)
6688{
6689
6690  ;
6691  return 0;
6692}
6693_ACEOF
6694if ac_fn_c_try_link "$LINENO"
6695then :
6696  eval $cacheid=yes
6697else case e in #(
6698  e) eval $cacheid=no ;;
6699esac
6700fi
6701rm -f core conftest.err conftest.$ac_objext conftest.beam \
6702    conftest$ac_exeext conftest.$ac_ext ;;
6703esac
6704fi
6705
6706
6707		CFLAGS="$xorg_testset_save_CFLAGS"
6708
6709		eval supported=\$$cacheid
6710		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6711printf "%s\n" "$supported" >&6; }
6712		if test "$supported" = "yes" ; then
6713			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6714			found="yes"
6715		fi
6716	fi
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732xorg_testset_save_CFLAGS="$CFLAGS"
6733
6734if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6735	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6736	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6737printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6738if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6739then :
6740  printf %s "(cached) " >&6
6741else case e in #(
6742  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6743/* end confdefs.h.  */
6744int i;
6745_ACEOF
6746if ac_fn_c_try_compile "$LINENO"
6747then :
6748  xorg_cv_cc_flag_unknown_warning_option=yes
6749else case e in #(
6750  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6751esac
6752fi
6753rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6754esac
6755fi
6756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6757printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6758	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6759	CFLAGS="$xorg_testset_save_CFLAGS"
6760fi
6761
6762if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6763	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6764		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6765	fi
6766	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6767	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6768printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6769if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6770then :
6771  printf %s "(cached) " >&6
6772else case e in #(
6773  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6774/* end confdefs.h.  */
6775int i;
6776_ACEOF
6777if ac_fn_c_try_compile "$LINENO"
6778then :
6779  xorg_cv_cc_flag_unused_command_line_argument=yes
6780else case e in #(
6781  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6782esac
6783fi
6784rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6785esac
6786fi
6787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6788printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6789	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6790	CFLAGS="$xorg_testset_save_CFLAGS"
6791fi
6792
6793found="no"
6794
6795	if test $found = "no" ; then
6796		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6797			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6798		fi
6799
6800		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6801			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6802		fi
6803
6804		CFLAGS="$CFLAGS -Wshadow"
6805
6806		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6807printf %s "checking if $CC supports -Wshadow... " >&6; }
6808		cacheid=xorg_cv_cc_flag__Wshadow
6809		if eval test \${$cacheid+y}
6810then :
6811  printf %s "(cached) " >&6
6812else case e in #(
6813  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814/* end confdefs.h.  */
6815int i;
6816int
6817main (void)
6818{
6819
6820  ;
6821  return 0;
6822}
6823_ACEOF
6824if ac_fn_c_try_link "$LINENO"
6825then :
6826  eval $cacheid=yes
6827else case e in #(
6828  e) eval $cacheid=no ;;
6829esac
6830fi
6831rm -f core conftest.err conftest.$ac_objext conftest.beam \
6832    conftest$ac_exeext conftest.$ac_ext ;;
6833esac
6834fi
6835
6836
6837		CFLAGS="$xorg_testset_save_CFLAGS"
6838
6839		eval supported=\$$cacheid
6840		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6841printf "%s\n" "$supported" >&6; }
6842		if test "$supported" = "yes" ; then
6843			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6844			found="yes"
6845		fi
6846	fi
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862xorg_testset_save_CFLAGS="$CFLAGS"
6863
6864if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6865	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6866	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6867printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6868if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6869then :
6870  printf %s "(cached) " >&6
6871else case e in #(
6872  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873/* end confdefs.h.  */
6874int i;
6875_ACEOF
6876if ac_fn_c_try_compile "$LINENO"
6877then :
6878  xorg_cv_cc_flag_unknown_warning_option=yes
6879else case e in #(
6880  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6881esac
6882fi
6883rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6884esac
6885fi
6886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6887printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6888	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6889	CFLAGS="$xorg_testset_save_CFLAGS"
6890fi
6891
6892if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6893	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6894		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6895	fi
6896	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6897	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6898printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6899if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6900then :
6901  printf %s "(cached) " >&6
6902else case e in #(
6903  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904/* end confdefs.h.  */
6905int i;
6906_ACEOF
6907if ac_fn_c_try_compile "$LINENO"
6908then :
6909  xorg_cv_cc_flag_unused_command_line_argument=yes
6910else case e in #(
6911  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6912esac
6913fi
6914rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6915esac
6916fi
6917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6918printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6919	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6920	CFLAGS="$xorg_testset_save_CFLAGS"
6921fi
6922
6923found="no"
6924
6925	if test $found = "no" ; then
6926		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6927			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6928		fi
6929
6930		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6931			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6932		fi
6933
6934		CFLAGS="$CFLAGS -Wmissing-noreturn"
6935
6936		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6937printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6938		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6939		if eval test \${$cacheid+y}
6940then :
6941  printf %s "(cached) " >&6
6942else case e in #(
6943  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6944/* end confdefs.h.  */
6945int i;
6946int
6947main (void)
6948{
6949
6950  ;
6951  return 0;
6952}
6953_ACEOF
6954if ac_fn_c_try_link "$LINENO"
6955then :
6956  eval $cacheid=yes
6957else case e in #(
6958  e) eval $cacheid=no ;;
6959esac
6960fi
6961rm -f core conftest.err conftest.$ac_objext conftest.beam \
6962    conftest$ac_exeext conftest.$ac_ext ;;
6963esac
6964fi
6965
6966
6967		CFLAGS="$xorg_testset_save_CFLAGS"
6968
6969		eval supported=\$$cacheid
6970		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6971printf "%s\n" "$supported" >&6; }
6972		if test "$supported" = "yes" ; then
6973			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6974			found="yes"
6975		fi
6976	fi
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992xorg_testset_save_CFLAGS="$CFLAGS"
6993
6994if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6995	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6996	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6997printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6998if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6999then :
7000  printf %s "(cached) " >&6
7001else case e in #(
7002  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7003/* end confdefs.h.  */
7004int i;
7005_ACEOF
7006if ac_fn_c_try_compile "$LINENO"
7007then :
7008  xorg_cv_cc_flag_unknown_warning_option=yes
7009else case e in #(
7010  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7011esac
7012fi
7013rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7014esac
7015fi
7016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7017printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7018	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7019	CFLAGS="$xorg_testset_save_CFLAGS"
7020fi
7021
7022if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7023	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7024		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7025	fi
7026	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7027	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7028printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7029if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7030then :
7031  printf %s "(cached) " >&6
7032else case e in #(
7033  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034/* end confdefs.h.  */
7035int i;
7036_ACEOF
7037if ac_fn_c_try_compile "$LINENO"
7038then :
7039  xorg_cv_cc_flag_unused_command_line_argument=yes
7040else case e in #(
7041  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7042esac
7043fi
7044rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7045esac
7046fi
7047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7048printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7049	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7050	CFLAGS="$xorg_testset_save_CFLAGS"
7051fi
7052
7053found="no"
7054
7055	if test $found = "no" ; then
7056		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7057			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7058		fi
7059
7060		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7061			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7062		fi
7063
7064		CFLAGS="$CFLAGS -Wmissing-format-attribute"
7065
7066		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7067printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7068		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7069		if eval test \${$cacheid+y}
7070then :
7071  printf %s "(cached) " >&6
7072else case e in #(
7073  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7074/* end confdefs.h.  */
7075int i;
7076int
7077main (void)
7078{
7079
7080  ;
7081  return 0;
7082}
7083_ACEOF
7084if ac_fn_c_try_link "$LINENO"
7085then :
7086  eval $cacheid=yes
7087else case e in #(
7088  e) eval $cacheid=no ;;
7089esac
7090fi
7091rm -f core conftest.err conftest.$ac_objext conftest.beam \
7092    conftest$ac_exeext conftest.$ac_ext ;;
7093esac
7094fi
7095
7096
7097		CFLAGS="$xorg_testset_save_CFLAGS"
7098
7099		eval supported=\$$cacheid
7100		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7101printf "%s\n" "$supported" >&6; }
7102		if test "$supported" = "yes" ; then
7103			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7104			found="yes"
7105		fi
7106	fi
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122xorg_testset_save_CFLAGS="$CFLAGS"
7123
7124if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7125	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7126	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7127printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7128if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7129then :
7130  printf %s "(cached) " >&6
7131else case e in #(
7132  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133/* end confdefs.h.  */
7134int i;
7135_ACEOF
7136if ac_fn_c_try_compile "$LINENO"
7137then :
7138  xorg_cv_cc_flag_unknown_warning_option=yes
7139else case e in #(
7140  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7141esac
7142fi
7143rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7144esac
7145fi
7146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7147printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7148	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7149	CFLAGS="$xorg_testset_save_CFLAGS"
7150fi
7151
7152if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7153	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7154		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7155	fi
7156	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7157	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7158printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7159if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7160then :
7161  printf %s "(cached) " >&6
7162else case e in #(
7163  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164/* end confdefs.h.  */
7165int i;
7166_ACEOF
7167if ac_fn_c_try_compile "$LINENO"
7168then :
7169  xorg_cv_cc_flag_unused_command_line_argument=yes
7170else case e in #(
7171  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7172esac
7173fi
7174rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7175esac
7176fi
7177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7178printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7179	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7180	CFLAGS="$xorg_testset_save_CFLAGS"
7181fi
7182
7183found="no"
7184
7185	if test $found = "no" ; then
7186		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7187			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7188		fi
7189
7190		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7191			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7192		fi
7193
7194		CFLAGS="$CFLAGS -Wredundant-decls"
7195
7196		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7197printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7198		cacheid=xorg_cv_cc_flag__Wredundant_decls
7199		if eval test \${$cacheid+y}
7200then :
7201  printf %s "(cached) " >&6
7202else case e in #(
7203  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7204/* end confdefs.h.  */
7205int i;
7206int
7207main (void)
7208{
7209
7210  ;
7211  return 0;
7212}
7213_ACEOF
7214if ac_fn_c_try_link "$LINENO"
7215then :
7216  eval $cacheid=yes
7217else case e in #(
7218  e) eval $cacheid=no ;;
7219esac
7220fi
7221rm -f core conftest.err conftest.$ac_objext conftest.beam \
7222    conftest$ac_exeext conftest.$ac_ext ;;
7223esac
7224fi
7225
7226
7227		CFLAGS="$xorg_testset_save_CFLAGS"
7228
7229		eval supported=\$$cacheid
7230		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7231printf "%s\n" "$supported" >&6; }
7232		if test "$supported" = "yes" ; then
7233			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7234			found="yes"
7235		fi
7236	fi
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252xorg_testset_save_CFLAGS="$CFLAGS"
7253
7254if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7255	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7256	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7257printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7258if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7259then :
7260  printf %s "(cached) " >&6
7261else case e in #(
7262  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263/* end confdefs.h.  */
7264int i;
7265_ACEOF
7266if ac_fn_c_try_compile "$LINENO"
7267then :
7268  xorg_cv_cc_flag_unknown_warning_option=yes
7269else case e in #(
7270  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7271esac
7272fi
7273rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7274esac
7275fi
7276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7277printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7278	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7279	CFLAGS="$xorg_testset_save_CFLAGS"
7280fi
7281
7282if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7283	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7284		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7285	fi
7286	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7287	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7288printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7289if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7290then :
7291  printf %s "(cached) " >&6
7292else case e in #(
7293  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7294/* end confdefs.h.  */
7295int i;
7296_ACEOF
7297if ac_fn_c_try_compile "$LINENO"
7298then :
7299  xorg_cv_cc_flag_unused_command_line_argument=yes
7300else case e in #(
7301  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7302esac
7303fi
7304rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7305esac
7306fi
7307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7308printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7309	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7310	CFLAGS="$xorg_testset_save_CFLAGS"
7311fi
7312
7313found="no"
7314
7315	if test $found = "no" ; then
7316		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7317			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7318		fi
7319
7320		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7321			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7322		fi
7323
7324		CFLAGS="$CFLAGS -Wlogical-op"
7325
7326		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7327printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7328		cacheid=xorg_cv_cc_flag__Wlogical_op
7329		if eval test \${$cacheid+y}
7330then :
7331  printf %s "(cached) " >&6
7332else case e in #(
7333  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7334/* end confdefs.h.  */
7335int i;
7336int
7337main (void)
7338{
7339
7340  ;
7341  return 0;
7342}
7343_ACEOF
7344if ac_fn_c_try_link "$LINENO"
7345then :
7346  eval $cacheid=yes
7347else case e in #(
7348  e) eval $cacheid=no ;;
7349esac
7350fi
7351rm -f core conftest.err conftest.$ac_objext conftest.beam \
7352    conftest$ac_exeext conftest.$ac_ext ;;
7353esac
7354fi
7355
7356
7357		CFLAGS="$xorg_testset_save_CFLAGS"
7358
7359		eval supported=\$$cacheid
7360		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7361printf "%s\n" "$supported" >&6; }
7362		if test "$supported" = "yes" ; then
7363			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7364			found="yes"
7365		fi
7366	fi
7367
7368
7369
7370# These are currently disabled because they are noisy.  They will be enabled
7371# in the future once the codebase is sufficiently modernized to silence
7372# them.  For now, I don't want them to drown out the other warnings.
7373# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7374# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7375# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7376
7377# Turn some warnings into errors, so we don't accidentally get successful builds
7378# when there are problems that should be fixed.
7379
7380if test "x$SELECTIVE_WERROR" = "xyes" ; then
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394xorg_testset_save_CFLAGS="$CFLAGS"
7395
7396if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7397	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7398	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7399printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7400if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7401then :
7402  printf %s "(cached) " >&6
7403else case e in #(
7404  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405/* end confdefs.h.  */
7406int i;
7407_ACEOF
7408if ac_fn_c_try_compile "$LINENO"
7409then :
7410  xorg_cv_cc_flag_unknown_warning_option=yes
7411else case e in #(
7412  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7413esac
7414fi
7415rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7416esac
7417fi
7418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7419printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7420	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7421	CFLAGS="$xorg_testset_save_CFLAGS"
7422fi
7423
7424if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7425	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7426		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7427	fi
7428	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7429	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7430printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7431if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7432then :
7433  printf %s "(cached) " >&6
7434else case e in #(
7435  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436/* end confdefs.h.  */
7437int i;
7438_ACEOF
7439if ac_fn_c_try_compile "$LINENO"
7440then :
7441  xorg_cv_cc_flag_unused_command_line_argument=yes
7442else case e in #(
7443  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7444esac
7445fi
7446rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7447esac
7448fi
7449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7450printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7451	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7452	CFLAGS="$xorg_testset_save_CFLAGS"
7453fi
7454
7455found="no"
7456
7457	if test $found = "no" ; then
7458		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7459			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7460		fi
7461
7462		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7463			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7464		fi
7465
7466		CFLAGS="$CFLAGS -Werror=implicit"
7467
7468		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7469printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7470		cacheid=xorg_cv_cc_flag__Werror_implicit
7471		if eval test \${$cacheid+y}
7472then :
7473  printf %s "(cached) " >&6
7474else case e in #(
7475  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476/* end confdefs.h.  */
7477int i;
7478int
7479main (void)
7480{
7481
7482  ;
7483  return 0;
7484}
7485_ACEOF
7486if ac_fn_c_try_link "$LINENO"
7487then :
7488  eval $cacheid=yes
7489else case e in #(
7490  e) eval $cacheid=no ;;
7491esac
7492fi
7493rm -f core conftest.err conftest.$ac_objext conftest.beam \
7494    conftest$ac_exeext conftest.$ac_ext ;;
7495esac
7496fi
7497
7498
7499		CFLAGS="$xorg_testset_save_CFLAGS"
7500
7501		eval supported=\$$cacheid
7502		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7503printf "%s\n" "$supported" >&6; }
7504		if test "$supported" = "yes" ; then
7505			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7506			found="yes"
7507		fi
7508	fi
7509
7510	if test $found = "no" ; then
7511		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7512			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7513		fi
7514
7515		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7516			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7517		fi
7518
7519		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7520
7521		{ 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
7522printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7523		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7524		if eval test \${$cacheid+y}
7525then :
7526  printf %s "(cached) " >&6
7527else case e in #(
7528  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7529/* end confdefs.h.  */
7530int i;
7531int
7532main (void)
7533{
7534
7535  ;
7536  return 0;
7537}
7538_ACEOF
7539if ac_fn_c_try_link "$LINENO"
7540then :
7541  eval $cacheid=yes
7542else case e in #(
7543  e) eval $cacheid=no ;;
7544esac
7545fi
7546rm -f core conftest.err conftest.$ac_objext conftest.beam \
7547    conftest$ac_exeext conftest.$ac_ext ;;
7548esac
7549fi
7550
7551
7552		CFLAGS="$xorg_testset_save_CFLAGS"
7553
7554		eval supported=\$$cacheid
7555		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7556printf "%s\n" "$supported" >&6; }
7557		if test "$supported" = "yes" ; then
7558			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7559			found="yes"
7560		fi
7561	fi
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577xorg_testset_save_CFLAGS="$CFLAGS"
7578
7579if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7580	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7581	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7582printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7583if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7584then :
7585  printf %s "(cached) " >&6
7586else case e in #(
7587  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7588/* end confdefs.h.  */
7589int i;
7590_ACEOF
7591if ac_fn_c_try_compile "$LINENO"
7592then :
7593  xorg_cv_cc_flag_unknown_warning_option=yes
7594else case e in #(
7595  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7596esac
7597fi
7598rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7599esac
7600fi
7601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7602printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7603	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7604	CFLAGS="$xorg_testset_save_CFLAGS"
7605fi
7606
7607if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7608	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7609		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7610	fi
7611	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7612	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7613printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7614if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7615then :
7616  printf %s "(cached) " >&6
7617else case e in #(
7618  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619/* end confdefs.h.  */
7620int i;
7621_ACEOF
7622if ac_fn_c_try_compile "$LINENO"
7623then :
7624  xorg_cv_cc_flag_unused_command_line_argument=yes
7625else case e in #(
7626  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7627esac
7628fi
7629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7630esac
7631fi
7632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7633printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7634	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7635	CFLAGS="$xorg_testset_save_CFLAGS"
7636fi
7637
7638found="no"
7639
7640	if test $found = "no" ; then
7641		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7642			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7643		fi
7644
7645		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7646			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7647		fi
7648
7649		CFLAGS="$CFLAGS -Werror=nonnull"
7650
7651		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7652printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7653		cacheid=xorg_cv_cc_flag__Werror_nonnull
7654		if eval test \${$cacheid+y}
7655then :
7656  printf %s "(cached) " >&6
7657else case e in #(
7658  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659/* end confdefs.h.  */
7660int i;
7661int
7662main (void)
7663{
7664
7665  ;
7666  return 0;
7667}
7668_ACEOF
7669if ac_fn_c_try_link "$LINENO"
7670then :
7671  eval $cacheid=yes
7672else case e in #(
7673  e) eval $cacheid=no ;;
7674esac
7675fi
7676rm -f core conftest.err conftest.$ac_objext conftest.beam \
7677    conftest$ac_exeext conftest.$ac_ext ;;
7678esac
7679fi
7680
7681
7682		CFLAGS="$xorg_testset_save_CFLAGS"
7683
7684		eval supported=\$$cacheid
7685		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7686printf "%s\n" "$supported" >&6; }
7687		if test "$supported" = "yes" ; then
7688			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7689			found="yes"
7690		fi
7691	fi
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707xorg_testset_save_CFLAGS="$CFLAGS"
7708
7709if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7710	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7711	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7712printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7713if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7714then :
7715  printf %s "(cached) " >&6
7716else case e in #(
7717  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718/* end confdefs.h.  */
7719int i;
7720_ACEOF
7721if ac_fn_c_try_compile "$LINENO"
7722then :
7723  xorg_cv_cc_flag_unknown_warning_option=yes
7724else case e in #(
7725  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7726esac
7727fi
7728rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7729esac
7730fi
7731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7732printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7733	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7734	CFLAGS="$xorg_testset_save_CFLAGS"
7735fi
7736
7737if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7738	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7739		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7740	fi
7741	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7742	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7743printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7744if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7745then :
7746  printf %s "(cached) " >&6
7747else case e in #(
7748  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7749/* end confdefs.h.  */
7750int i;
7751_ACEOF
7752if ac_fn_c_try_compile "$LINENO"
7753then :
7754  xorg_cv_cc_flag_unused_command_line_argument=yes
7755else case e in #(
7756  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7757esac
7758fi
7759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7760esac
7761fi
7762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7763printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7764	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7765	CFLAGS="$xorg_testset_save_CFLAGS"
7766fi
7767
7768found="no"
7769
7770	if test $found = "no" ; then
7771		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7772			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7773		fi
7774
7775		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7776			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7777		fi
7778
7779		CFLAGS="$CFLAGS -Werror=init-self"
7780
7781		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7782printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7783		cacheid=xorg_cv_cc_flag__Werror_init_self
7784		if eval test \${$cacheid+y}
7785then :
7786  printf %s "(cached) " >&6
7787else case e in #(
7788  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789/* end confdefs.h.  */
7790int i;
7791int
7792main (void)
7793{
7794
7795  ;
7796  return 0;
7797}
7798_ACEOF
7799if ac_fn_c_try_link "$LINENO"
7800then :
7801  eval $cacheid=yes
7802else case e in #(
7803  e) eval $cacheid=no ;;
7804esac
7805fi
7806rm -f core conftest.err conftest.$ac_objext conftest.beam \
7807    conftest$ac_exeext conftest.$ac_ext ;;
7808esac
7809fi
7810
7811
7812		CFLAGS="$xorg_testset_save_CFLAGS"
7813
7814		eval supported=\$$cacheid
7815		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7816printf "%s\n" "$supported" >&6; }
7817		if test "$supported" = "yes" ; then
7818			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7819			found="yes"
7820		fi
7821	fi
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837xorg_testset_save_CFLAGS="$CFLAGS"
7838
7839if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7840	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7841	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7842printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7843if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7844then :
7845  printf %s "(cached) " >&6
7846else case e in #(
7847  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848/* end confdefs.h.  */
7849int i;
7850_ACEOF
7851if ac_fn_c_try_compile "$LINENO"
7852then :
7853  xorg_cv_cc_flag_unknown_warning_option=yes
7854else case e in #(
7855  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7856esac
7857fi
7858rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7859esac
7860fi
7861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7862printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7863	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7864	CFLAGS="$xorg_testset_save_CFLAGS"
7865fi
7866
7867if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7868	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7869		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7870	fi
7871	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7872	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7873printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7874if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7875then :
7876  printf %s "(cached) " >&6
7877else case e in #(
7878  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879/* end confdefs.h.  */
7880int i;
7881_ACEOF
7882if ac_fn_c_try_compile "$LINENO"
7883then :
7884  xorg_cv_cc_flag_unused_command_line_argument=yes
7885else case e in #(
7886  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7887esac
7888fi
7889rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7890esac
7891fi
7892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7893printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7894	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7895	CFLAGS="$xorg_testset_save_CFLAGS"
7896fi
7897
7898found="no"
7899
7900	if test $found = "no" ; then
7901		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7902			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7903		fi
7904
7905		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7906			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7907		fi
7908
7909		CFLAGS="$CFLAGS -Werror=main"
7910
7911		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7912printf %s "checking if $CC supports -Werror=main... " >&6; }
7913		cacheid=xorg_cv_cc_flag__Werror_main
7914		if eval test \${$cacheid+y}
7915then :
7916  printf %s "(cached) " >&6
7917else case e in #(
7918  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919/* end confdefs.h.  */
7920int i;
7921int
7922main (void)
7923{
7924
7925  ;
7926  return 0;
7927}
7928_ACEOF
7929if ac_fn_c_try_link "$LINENO"
7930then :
7931  eval $cacheid=yes
7932else case e in #(
7933  e) eval $cacheid=no ;;
7934esac
7935fi
7936rm -f core conftest.err conftest.$ac_objext conftest.beam \
7937    conftest$ac_exeext conftest.$ac_ext ;;
7938esac
7939fi
7940
7941
7942		CFLAGS="$xorg_testset_save_CFLAGS"
7943
7944		eval supported=\$$cacheid
7945		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7946printf "%s\n" "$supported" >&6; }
7947		if test "$supported" = "yes" ; then
7948			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7949			found="yes"
7950		fi
7951	fi
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967xorg_testset_save_CFLAGS="$CFLAGS"
7968
7969if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7970	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7971	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7972printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7973if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7974then :
7975  printf %s "(cached) " >&6
7976else case e in #(
7977  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7978/* end confdefs.h.  */
7979int i;
7980_ACEOF
7981if ac_fn_c_try_compile "$LINENO"
7982then :
7983  xorg_cv_cc_flag_unknown_warning_option=yes
7984else case e in #(
7985  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7986esac
7987fi
7988rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7989esac
7990fi
7991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7992printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7993	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7994	CFLAGS="$xorg_testset_save_CFLAGS"
7995fi
7996
7997if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7998	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7999		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8000	fi
8001	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8002	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8003printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8004if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8005then :
8006  printf %s "(cached) " >&6
8007else case e in #(
8008  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8009/* end confdefs.h.  */
8010int i;
8011_ACEOF
8012if ac_fn_c_try_compile "$LINENO"
8013then :
8014  xorg_cv_cc_flag_unused_command_line_argument=yes
8015else case e in #(
8016  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8017esac
8018fi
8019rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8020esac
8021fi
8022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8023printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8024	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8025	CFLAGS="$xorg_testset_save_CFLAGS"
8026fi
8027
8028found="no"
8029
8030	if test $found = "no" ; then
8031		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8032			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8033		fi
8034
8035		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8036			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8037		fi
8038
8039		CFLAGS="$CFLAGS -Werror=missing-braces"
8040
8041		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8042printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8043		cacheid=xorg_cv_cc_flag__Werror_missing_braces
8044		if eval test \${$cacheid+y}
8045then :
8046  printf %s "(cached) " >&6
8047else case e in #(
8048  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049/* end confdefs.h.  */
8050int i;
8051int
8052main (void)
8053{
8054
8055  ;
8056  return 0;
8057}
8058_ACEOF
8059if ac_fn_c_try_link "$LINENO"
8060then :
8061  eval $cacheid=yes
8062else case e in #(
8063  e) eval $cacheid=no ;;
8064esac
8065fi
8066rm -f core conftest.err conftest.$ac_objext conftest.beam \
8067    conftest$ac_exeext conftest.$ac_ext ;;
8068esac
8069fi
8070
8071
8072		CFLAGS="$xorg_testset_save_CFLAGS"
8073
8074		eval supported=\$$cacheid
8075		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8076printf "%s\n" "$supported" >&6; }
8077		if test "$supported" = "yes" ; then
8078			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8079			found="yes"
8080		fi
8081	fi
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097xorg_testset_save_CFLAGS="$CFLAGS"
8098
8099if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8100	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8101	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8102printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8103if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8104then :
8105  printf %s "(cached) " >&6
8106else case e in #(
8107  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8108/* end confdefs.h.  */
8109int i;
8110_ACEOF
8111if ac_fn_c_try_compile "$LINENO"
8112then :
8113  xorg_cv_cc_flag_unknown_warning_option=yes
8114else case e in #(
8115  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8116esac
8117fi
8118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8119esac
8120fi
8121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8122printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8123	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8124	CFLAGS="$xorg_testset_save_CFLAGS"
8125fi
8126
8127if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8128	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8129		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8130	fi
8131	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8132	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8133printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8134if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8135then :
8136  printf %s "(cached) " >&6
8137else case e in #(
8138  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139/* end confdefs.h.  */
8140int i;
8141_ACEOF
8142if ac_fn_c_try_compile "$LINENO"
8143then :
8144  xorg_cv_cc_flag_unused_command_line_argument=yes
8145else case e in #(
8146  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8147esac
8148fi
8149rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8150esac
8151fi
8152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8153printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8154	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8155	CFLAGS="$xorg_testset_save_CFLAGS"
8156fi
8157
8158found="no"
8159
8160	if test $found = "no" ; then
8161		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8162			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8163		fi
8164
8165		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8166			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8167		fi
8168
8169		CFLAGS="$CFLAGS -Werror=sequence-point"
8170
8171		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8172printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8173		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8174		if eval test \${$cacheid+y}
8175then :
8176  printf %s "(cached) " >&6
8177else case e in #(
8178  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179/* end confdefs.h.  */
8180int i;
8181int
8182main (void)
8183{
8184
8185  ;
8186  return 0;
8187}
8188_ACEOF
8189if ac_fn_c_try_link "$LINENO"
8190then :
8191  eval $cacheid=yes
8192else case e in #(
8193  e) eval $cacheid=no ;;
8194esac
8195fi
8196rm -f core conftest.err conftest.$ac_objext conftest.beam \
8197    conftest$ac_exeext conftest.$ac_ext ;;
8198esac
8199fi
8200
8201
8202		CFLAGS="$xorg_testset_save_CFLAGS"
8203
8204		eval supported=\$$cacheid
8205		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8206printf "%s\n" "$supported" >&6; }
8207		if test "$supported" = "yes" ; then
8208			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8209			found="yes"
8210		fi
8211	fi
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227xorg_testset_save_CFLAGS="$CFLAGS"
8228
8229if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8230	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8231	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8232printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8233if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8234then :
8235  printf %s "(cached) " >&6
8236else case e in #(
8237  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238/* end confdefs.h.  */
8239int i;
8240_ACEOF
8241if ac_fn_c_try_compile "$LINENO"
8242then :
8243  xorg_cv_cc_flag_unknown_warning_option=yes
8244else case e in #(
8245  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8246esac
8247fi
8248rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8249esac
8250fi
8251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8252printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8253	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8254	CFLAGS="$xorg_testset_save_CFLAGS"
8255fi
8256
8257if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8258	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8259		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8260	fi
8261	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8262	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8263printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8264if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8265then :
8266  printf %s "(cached) " >&6
8267else case e in #(
8268  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8269/* end confdefs.h.  */
8270int i;
8271_ACEOF
8272if ac_fn_c_try_compile "$LINENO"
8273then :
8274  xorg_cv_cc_flag_unused_command_line_argument=yes
8275else case e in #(
8276  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8277esac
8278fi
8279rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8280esac
8281fi
8282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8283printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8284	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8285	CFLAGS="$xorg_testset_save_CFLAGS"
8286fi
8287
8288found="no"
8289
8290	if test $found = "no" ; then
8291		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8292			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8293		fi
8294
8295		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8296			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8297		fi
8298
8299		CFLAGS="$CFLAGS -Werror=return-type"
8300
8301		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8302printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8303		cacheid=xorg_cv_cc_flag__Werror_return_type
8304		if eval test \${$cacheid+y}
8305then :
8306  printf %s "(cached) " >&6
8307else case e in #(
8308  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8309/* end confdefs.h.  */
8310int i;
8311int
8312main (void)
8313{
8314
8315  ;
8316  return 0;
8317}
8318_ACEOF
8319if ac_fn_c_try_link "$LINENO"
8320then :
8321  eval $cacheid=yes
8322else case e in #(
8323  e) eval $cacheid=no ;;
8324esac
8325fi
8326rm -f core conftest.err conftest.$ac_objext conftest.beam \
8327    conftest$ac_exeext conftest.$ac_ext ;;
8328esac
8329fi
8330
8331
8332		CFLAGS="$xorg_testset_save_CFLAGS"
8333
8334		eval supported=\$$cacheid
8335		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8336printf "%s\n" "$supported" >&6; }
8337		if test "$supported" = "yes" ; then
8338			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8339			found="yes"
8340		fi
8341	fi
8342
8343	if test $found = "no" ; then
8344		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8345			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8346		fi
8347
8348		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8349			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8350		fi
8351
8352		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8353
8354		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8355printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8356		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8357		if eval test \${$cacheid+y}
8358then :
8359  printf %s "(cached) " >&6
8360else case e in #(
8361  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362/* end confdefs.h.  */
8363int i;
8364int
8365main (void)
8366{
8367
8368  ;
8369  return 0;
8370}
8371_ACEOF
8372if ac_fn_c_try_link "$LINENO"
8373then :
8374  eval $cacheid=yes
8375else case e in #(
8376  e) eval $cacheid=no ;;
8377esac
8378fi
8379rm -f core conftest.err conftest.$ac_objext conftest.beam \
8380    conftest$ac_exeext conftest.$ac_ext ;;
8381esac
8382fi
8383
8384
8385		CFLAGS="$xorg_testset_save_CFLAGS"
8386
8387		eval supported=\$$cacheid
8388		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8389printf "%s\n" "$supported" >&6; }
8390		if test "$supported" = "yes" ; then
8391			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8392			found="yes"
8393		fi
8394	fi
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410xorg_testset_save_CFLAGS="$CFLAGS"
8411
8412if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8413	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8414	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8415printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8416if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8417then :
8418  printf %s "(cached) " >&6
8419else case e in #(
8420  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421/* end confdefs.h.  */
8422int i;
8423_ACEOF
8424if ac_fn_c_try_compile "$LINENO"
8425then :
8426  xorg_cv_cc_flag_unknown_warning_option=yes
8427else case e in #(
8428  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8429esac
8430fi
8431rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8432esac
8433fi
8434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8435printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8436	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8437	CFLAGS="$xorg_testset_save_CFLAGS"
8438fi
8439
8440if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8441	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8442		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8443	fi
8444	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8445	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8446printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8447if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8448then :
8449  printf %s "(cached) " >&6
8450else case e in #(
8451  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452/* end confdefs.h.  */
8453int i;
8454_ACEOF
8455if ac_fn_c_try_compile "$LINENO"
8456then :
8457  xorg_cv_cc_flag_unused_command_line_argument=yes
8458else case e in #(
8459  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8460esac
8461fi
8462rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8463esac
8464fi
8465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8466printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8467	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8468	CFLAGS="$xorg_testset_save_CFLAGS"
8469fi
8470
8471found="no"
8472
8473	if test $found = "no" ; then
8474		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8475			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8476		fi
8477
8478		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8479			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8480		fi
8481
8482		CFLAGS="$CFLAGS -Werror=trigraphs"
8483
8484		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8485printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8486		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8487		if eval test \${$cacheid+y}
8488then :
8489  printf %s "(cached) " >&6
8490else case e in #(
8491  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492/* end confdefs.h.  */
8493int i;
8494int
8495main (void)
8496{
8497
8498  ;
8499  return 0;
8500}
8501_ACEOF
8502if ac_fn_c_try_link "$LINENO"
8503then :
8504  eval $cacheid=yes
8505else case e in #(
8506  e) eval $cacheid=no ;;
8507esac
8508fi
8509rm -f core conftest.err conftest.$ac_objext conftest.beam \
8510    conftest$ac_exeext conftest.$ac_ext ;;
8511esac
8512fi
8513
8514
8515		CFLAGS="$xorg_testset_save_CFLAGS"
8516
8517		eval supported=\$$cacheid
8518		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8519printf "%s\n" "$supported" >&6; }
8520		if test "$supported" = "yes" ; then
8521			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8522			found="yes"
8523		fi
8524	fi
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540xorg_testset_save_CFLAGS="$CFLAGS"
8541
8542if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8543	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8544	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8545printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8546if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8547then :
8548  printf %s "(cached) " >&6
8549else case e in #(
8550  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8551/* end confdefs.h.  */
8552int i;
8553_ACEOF
8554if ac_fn_c_try_compile "$LINENO"
8555then :
8556  xorg_cv_cc_flag_unknown_warning_option=yes
8557else case e in #(
8558  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8559esac
8560fi
8561rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8562esac
8563fi
8564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8565printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8566	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8567	CFLAGS="$xorg_testset_save_CFLAGS"
8568fi
8569
8570if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8571	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8572		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8573	fi
8574	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8575	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8576printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8577if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8578then :
8579  printf %s "(cached) " >&6
8580else case e in #(
8581  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8582/* end confdefs.h.  */
8583int i;
8584_ACEOF
8585if ac_fn_c_try_compile "$LINENO"
8586then :
8587  xorg_cv_cc_flag_unused_command_line_argument=yes
8588else case e in #(
8589  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8590esac
8591fi
8592rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8593esac
8594fi
8595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8596printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8597	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8598	CFLAGS="$xorg_testset_save_CFLAGS"
8599fi
8600
8601found="no"
8602
8603	if test $found = "no" ; then
8604		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8605			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8606		fi
8607
8608		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8609			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8610		fi
8611
8612		CFLAGS="$CFLAGS -Werror=array-bounds"
8613
8614		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8615printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8616		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8617		if eval test \${$cacheid+y}
8618then :
8619  printf %s "(cached) " >&6
8620else case e in #(
8621  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8622/* end confdefs.h.  */
8623int i;
8624int
8625main (void)
8626{
8627
8628  ;
8629  return 0;
8630}
8631_ACEOF
8632if ac_fn_c_try_link "$LINENO"
8633then :
8634  eval $cacheid=yes
8635else case e in #(
8636  e) eval $cacheid=no ;;
8637esac
8638fi
8639rm -f core conftest.err conftest.$ac_objext conftest.beam \
8640    conftest$ac_exeext conftest.$ac_ext ;;
8641esac
8642fi
8643
8644
8645		CFLAGS="$xorg_testset_save_CFLAGS"
8646
8647		eval supported=\$$cacheid
8648		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8649printf "%s\n" "$supported" >&6; }
8650		if test "$supported" = "yes" ; then
8651			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8652			found="yes"
8653		fi
8654	fi
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670xorg_testset_save_CFLAGS="$CFLAGS"
8671
8672if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8673	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8674	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8675printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8676if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8677then :
8678  printf %s "(cached) " >&6
8679else case e in #(
8680  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8681/* end confdefs.h.  */
8682int i;
8683_ACEOF
8684if ac_fn_c_try_compile "$LINENO"
8685then :
8686  xorg_cv_cc_flag_unknown_warning_option=yes
8687else case e in #(
8688  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8689esac
8690fi
8691rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8692esac
8693fi
8694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8695printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8696	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8697	CFLAGS="$xorg_testset_save_CFLAGS"
8698fi
8699
8700if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8701	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8702		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8703	fi
8704	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8705	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8706printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8707if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8708then :
8709  printf %s "(cached) " >&6
8710else case e in #(
8711  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8712/* end confdefs.h.  */
8713int i;
8714_ACEOF
8715if ac_fn_c_try_compile "$LINENO"
8716then :
8717  xorg_cv_cc_flag_unused_command_line_argument=yes
8718else case e in #(
8719  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8720esac
8721fi
8722rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8723esac
8724fi
8725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8726printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8727	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8728	CFLAGS="$xorg_testset_save_CFLAGS"
8729fi
8730
8731found="no"
8732
8733	if test $found = "no" ; then
8734		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8735			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8736		fi
8737
8738		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8739			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8740		fi
8741
8742		CFLAGS="$CFLAGS -Werror=write-strings"
8743
8744		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8745printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8746		cacheid=xorg_cv_cc_flag__Werror_write_strings
8747		if eval test \${$cacheid+y}
8748then :
8749  printf %s "(cached) " >&6
8750else case e in #(
8751  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8752/* end confdefs.h.  */
8753int i;
8754int
8755main (void)
8756{
8757
8758  ;
8759  return 0;
8760}
8761_ACEOF
8762if ac_fn_c_try_link "$LINENO"
8763then :
8764  eval $cacheid=yes
8765else case e in #(
8766  e) eval $cacheid=no ;;
8767esac
8768fi
8769rm -f core conftest.err conftest.$ac_objext conftest.beam \
8770    conftest$ac_exeext conftest.$ac_ext ;;
8771esac
8772fi
8773
8774
8775		CFLAGS="$xorg_testset_save_CFLAGS"
8776
8777		eval supported=\$$cacheid
8778		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8779printf "%s\n" "$supported" >&6; }
8780		if test "$supported" = "yes" ; then
8781			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8782			found="yes"
8783		fi
8784	fi
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800xorg_testset_save_CFLAGS="$CFLAGS"
8801
8802if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8803	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8804	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8805printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8806if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8807then :
8808  printf %s "(cached) " >&6
8809else case e in #(
8810  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8811/* end confdefs.h.  */
8812int i;
8813_ACEOF
8814if ac_fn_c_try_compile "$LINENO"
8815then :
8816  xorg_cv_cc_flag_unknown_warning_option=yes
8817else case e in #(
8818  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8819esac
8820fi
8821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8822esac
8823fi
8824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8825printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8826	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8827	CFLAGS="$xorg_testset_save_CFLAGS"
8828fi
8829
8830if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8831	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8832		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8833	fi
8834	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8835	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8836printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8837if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8838then :
8839  printf %s "(cached) " >&6
8840else case e in #(
8841  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8842/* end confdefs.h.  */
8843int i;
8844_ACEOF
8845if ac_fn_c_try_compile "$LINENO"
8846then :
8847  xorg_cv_cc_flag_unused_command_line_argument=yes
8848else case e in #(
8849  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8850esac
8851fi
8852rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8853esac
8854fi
8855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8856printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8857	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8858	CFLAGS="$xorg_testset_save_CFLAGS"
8859fi
8860
8861found="no"
8862
8863	if test $found = "no" ; then
8864		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8865			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8866		fi
8867
8868		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8869			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8870		fi
8871
8872		CFLAGS="$CFLAGS -Werror=address"
8873
8874		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8875printf %s "checking if $CC supports -Werror=address... " >&6; }
8876		cacheid=xorg_cv_cc_flag__Werror_address
8877		if eval test \${$cacheid+y}
8878then :
8879  printf %s "(cached) " >&6
8880else case e in #(
8881  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8882/* end confdefs.h.  */
8883int i;
8884int
8885main (void)
8886{
8887
8888  ;
8889  return 0;
8890}
8891_ACEOF
8892if ac_fn_c_try_link "$LINENO"
8893then :
8894  eval $cacheid=yes
8895else case e in #(
8896  e) eval $cacheid=no ;;
8897esac
8898fi
8899rm -f core conftest.err conftest.$ac_objext conftest.beam \
8900    conftest$ac_exeext conftest.$ac_ext ;;
8901esac
8902fi
8903
8904
8905		CFLAGS="$xorg_testset_save_CFLAGS"
8906
8907		eval supported=\$$cacheid
8908		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8909printf "%s\n" "$supported" >&6; }
8910		if test "$supported" = "yes" ; then
8911			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8912			found="yes"
8913		fi
8914	fi
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930xorg_testset_save_CFLAGS="$CFLAGS"
8931
8932if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8933	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8934	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8935printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8936if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8937then :
8938  printf %s "(cached) " >&6
8939else case e in #(
8940  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941/* end confdefs.h.  */
8942int i;
8943_ACEOF
8944if ac_fn_c_try_compile "$LINENO"
8945then :
8946  xorg_cv_cc_flag_unknown_warning_option=yes
8947else case e in #(
8948  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8949esac
8950fi
8951rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8952esac
8953fi
8954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8955printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8956	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8957	CFLAGS="$xorg_testset_save_CFLAGS"
8958fi
8959
8960if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8961	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8962		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8963	fi
8964	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8965	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8966printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8967if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8968then :
8969  printf %s "(cached) " >&6
8970else case e in #(
8971  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8972/* end confdefs.h.  */
8973int i;
8974_ACEOF
8975if ac_fn_c_try_compile "$LINENO"
8976then :
8977  xorg_cv_cc_flag_unused_command_line_argument=yes
8978else case e in #(
8979  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8980esac
8981fi
8982rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8983esac
8984fi
8985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8986printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8987	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8988	CFLAGS="$xorg_testset_save_CFLAGS"
8989fi
8990
8991found="no"
8992
8993	if test $found = "no" ; then
8994		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8995			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8996		fi
8997
8998		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8999			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9000		fi
9001
9002		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9003
9004		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9005printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9006		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9007		if eval test \${$cacheid+y}
9008then :
9009  printf %s "(cached) " >&6
9010else case e in #(
9011  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9012/* end confdefs.h.  */
9013int i;
9014int
9015main (void)
9016{
9017
9018  ;
9019  return 0;
9020}
9021_ACEOF
9022if ac_fn_c_try_link "$LINENO"
9023then :
9024  eval $cacheid=yes
9025else case e in #(
9026  e) eval $cacheid=no ;;
9027esac
9028fi
9029rm -f core conftest.err conftest.$ac_objext conftest.beam \
9030    conftest$ac_exeext conftest.$ac_ext ;;
9031esac
9032fi
9033
9034
9035		CFLAGS="$xorg_testset_save_CFLAGS"
9036
9037		eval supported=\$$cacheid
9038		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9039printf "%s\n" "$supported" >&6; }
9040		if test "$supported" = "yes" ; then
9041			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9042			found="yes"
9043		fi
9044	fi
9045
9046	if test $found = "no" ; then
9047		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9048			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9049		fi
9050
9051		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9052			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9053		fi
9054
9055		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9056
9057		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9058printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9059		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9060		if eval test \${$cacheid+y}
9061then :
9062  printf %s "(cached) " >&6
9063else case e in #(
9064  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9065/* end confdefs.h.  */
9066int i;
9067int
9068main (void)
9069{
9070
9071  ;
9072  return 0;
9073}
9074_ACEOF
9075if ac_fn_c_try_link "$LINENO"
9076then :
9077  eval $cacheid=yes
9078else case e in #(
9079  e) eval $cacheid=no ;;
9080esac
9081fi
9082rm -f core conftest.err conftest.$ac_objext conftest.beam \
9083    conftest$ac_exeext conftest.$ac_ext ;;
9084esac
9085fi
9086
9087
9088		CFLAGS="$xorg_testset_save_CFLAGS"
9089
9090		eval supported=\$$cacheid
9091		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9092printf "%s\n" "$supported" >&6; }
9093		if test "$supported" = "yes" ; then
9094			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9095			found="yes"
9096		fi
9097	fi
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113xorg_testset_save_CFLAGS="$CFLAGS"
9114
9115if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9116	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9117	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9118printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9119if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9120then :
9121  printf %s "(cached) " >&6
9122else case e in #(
9123  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9124/* end confdefs.h.  */
9125int i;
9126_ACEOF
9127if ac_fn_c_try_compile "$LINENO"
9128then :
9129  xorg_cv_cc_flag_unknown_warning_option=yes
9130else case e in #(
9131  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9132esac
9133fi
9134rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9135esac
9136fi
9137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9138printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9139	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9140	CFLAGS="$xorg_testset_save_CFLAGS"
9141fi
9142
9143if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9144	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9145		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9146	fi
9147	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9148	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9149printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9150if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9151then :
9152  printf %s "(cached) " >&6
9153else case e in #(
9154  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9155/* end confdefs.h.  */
9156int i;
9157_ACEOF
9158if ac_fn_c_try_compile "$LINENO"
9159then :
9160  xorg_cv_cc_flag_unused_command_line_argument=yes
9161else case e in #(
9162  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9163esac
9164fi
9165rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9166esac
9167fi
9168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9169printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9170	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9171	CFLAGS="$xorg_testset_save_CFLAGS"
9172fi
9173
9174found="no"
9175
9176	if test $found = "no" ; then
9177		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9178			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9179		fi
9180
9181		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9182			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9183		fi
9184
9185		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9186
9187		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9188printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9189		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9190		if eval test \${$cacheid+y}
9191then :
9192  printf %s "(cached) " >&6
9193else case e in #(
9194  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9195/* end confdefs.h.  */
9196int i;
9197int
9198main (void)
9199{
9200
9201  ;
9202  return 0;
9203}
9204_ACEOF
9205if ac_fn_c_try_link "$LINENO"
9206then :
9207  eval $cacheid=yes
9208else case e in #(
9209  e) eval $cacheid=no ;;
9210esac
9211fi
9212rm -f core conftest.err conftest.$ac_objext conftest.beam \
9213    conftest$ac_exeext conftest.$ac_ext ;;
9214esac
9215fi
9216
9217
9218		CFLAGS="$xorg_testset_save_CFLAGS"
9219
9220		eval supported=\$$cacheid
9221		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9222printf "%s\n" "$supported" >&6; }
9223		if test "$supported" = "yes" ; then
9224			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9225			found="yes"
9226		fi
9227	fi
9228
9229 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9230else
9231{ 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
9232printf "%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;}
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246xorg_testset_save_CFLAGS="$CFLAGS"
9247
9248if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9249	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9250	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9251printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9252if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9253then :
9254  printf %s "(cached) " >&6
9255else case e in #(
9256  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9257/* end confdefs.h.  */
9258int i;
9259_ACEOF
9260if ac_fn_c_try_compile "$LINENO"
9261then :
9262  xorg_cv_cc_flag_unknown_warning_option=yes
9263else case e in #(
9264  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9265esac
9266fi
9267rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9268esac
9269fi
9270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9271printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9272	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9273	CFLAGS="$xorg_testset_save_CFLAGS"
9274fi
9275
9276if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9277	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9278		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9279	fi
9280	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9281	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9282printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9283if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9284then :
9285  printf %s "(cached) " >&6
9286else case e in #(
9287  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9288/* end confdefs.h.  */
9289int i;
9290_ACEOF
9291if ac_fn_c_try_compile "$LINENO"
9292then :
9293  xorg_cv_cc_flag_unused_command_line_argument=yes
9294else case e in #(
9295  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9296esac
9297fi
9298rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9299esac
9300fi
9301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9302printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9303	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9304	CFLAGS="$xorg_testset_save_CFLAGS"
9305fi
9306
9307found="no"
9308
9309	if test $found = "no" ; then
9310		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9311			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9312		fi
9313
9314		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9315			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9316		fi
9317
9318		CFLAGS="$CFLAGS -Wimplicit"
9319
9320		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9321printf %s "checking if $CC supports -Wimplicit... " >&6; }
9322		cacheid=xorg_cv_cc_flag__Wimplicit
9323		if eval test \${$cacheid+y}
9324then :
9325  printf %s "(cached) " >&6
9326else case e in #(
9327  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9328/* end confdefs.h.  */
9329int i;
9330int
9331main (void)
9332{
9333
9334  ;
9335  return 0;
9336}
9337_ACEOF
9338if ac_fn_c_try_link "$LINENO"
9339then :
9340  eval $cacheid=yes
9341else case e in #(
9342  e) eval $cacheid=no ;;
9343esac
9344fi
9345rm -f core conftest.err conftest.$ac_objext conftest.beam \
9346    conftest$ac_exeext conftest.$ac_ext ;;
9347esac
9348fi
9349
9350
9351		CFLAGS="$xorg_testset_save_CFLAGS"
9352
9353		eval supported=\$$cacheid
9354		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9355printf "%s\n" "$supported" >&6; }
9356		if test "$supported" = "yes" ; then
9357			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9358			found="yes"
9359		fi
9360	fi
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376xorg_testset_save_CFLAGS="$CFLAGS"
9377
9378if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9379	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9380	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9381printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9382if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9383then :
9384  printf %s "(cached) " >&6
9385else case e in #(
9386  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9387/* end confdefs.h.  */
9388int i;
9389_ACEOF
9390if ac_fn_c_try_compile "$LINENO"
9391then :
9392  xorg_cv_cc_flag_unknown_warning_option=yes
9393else case e in #(
9394  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9395esac
9396fi
9397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9398esac
9399fi
9400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9401printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9402	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9403	CFLAGS="$xorg_testset_save_CFLAGS"
9404fi
9405
9406if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9407	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9408		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9409	fi
9410	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9411	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9412printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9413if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9414then :
9415  printf %s "(cached) " >&6
9416else case e in #(
9417  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9418/* end confdefs.h.  */
9419int i;
9420_ACEOF
9421if ac_fn_c_try_compile "$LINENO"
9422then :
9423  xorg_cv_cc_flag_unused_command_line_argument=yes
9424else case e in #(
9425  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9426esac
9427fi
9428rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9429esac
9430fi
9431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9432printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9433	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9434	CFLAGS="$xorg_testset_save_CFLAGS"
9435fi
9436
9437found="no"
9438
9439	if test $found = "no" ; then
9440		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9441			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9442		fi
9443
9444		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9445			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9446		fi
9447
9448		CFLAGS="$CFLAGS -Wnonnull"
9449
9450		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9451printf %s "checking if $CC supports -Wnonnull... " >&6; }
9452		cacheid=xorg_cv_cc_flag__Wnonnull
9453		if eval test \${$cacheid+y}
9454then :
9455  printf %s "(cached) " >&6
9456else case e in #(
9457  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9458/* end confdefs.h.  */
9459int i;
9460int
9461main (void)
9462{
9463
9464  ;
9465  return 0;
9466}
9467_ACEOF
9468if ac_fn_c_try_link "$LINENO"
9469then :
9470  eval $cacheid=yes
9471else case e in #(
9472  e) eval $cacheid=no ;;
9473esac
9474fi
9475rm -f core conftest.err conftest.$ac_objext conftest.beam \
9476    conftest$ac_exeext conftest.$ac_ext ;;
9477esac
9478fi
9479
9480
9481		CFLAGS="$xorg_testset_save_CFLAGS"
9482
9483		eval supported=\$$cacheid
9484		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9485printf "%s\n" "$supported" >&6; }
9486		if test "$supported" = "yes" ; then
9487			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9488			found="yes"
9489		fi
9490	fi
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506xorg_testset_save_CFLAGS="$CFLAGS"
9507
9508if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9509	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9510	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9511printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9512if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9513then :
9514  printf %s "(cached) " >&6
9515else case e in #(
9516  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9517/* end confdefs.h.  */
9518int i;
9519_ACEOF
9520if ac_fn_c_try_compile "$LINENO"
9521then :
9522  xorg_cv_cc_flag_unknown_warning_option=yes
9523else case e in #(
9524  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9525esac
9526fi
9527rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9528esac
9529fi
9530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9531printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9532	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9533	CFLAGS="$xorg_testset_save_CFLAGS"
9534fi
9535
9536if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9537	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9538		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9539	fi
9540	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9541	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9542printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9543if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9544then :
9545  printf %s "(cached) " >&6
9546else case e in #(
9547  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9548/* end confdefs.h.  */
9549int i;
9550_ACEOF
9551if ac_fn_c_try_compile "$LINENO"
9552then :
9553  xorg_cv_cc_flag_unused_command_line_argument=yes
9554else case e in #(
9555  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9556esac
9557fi
9558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9559esac
9560fi
9561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9562printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9563	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9564	CFLAGS="$xorg_testset_save_CFLAGS"
9565fi
9566
9567found="no"
9568
9569	if test $found = "no" ; then
9570		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9571			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9572		fi
9573
9574		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9575			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9576		fi
9577
9578		CFLAGS="$CFLAGS -Winit-self"
9579
9580		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9581printf %s "checking if $CC supports -Winit-self... " >&6; }
9582		cacheid=xorg_cv_cc_flag__Winit_self
9583		if eval test \${$cacheid+y}
9584then :
9585  printf %s "(cached) " >&6
9586else case e in #(
9587  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588/* end confdefs.h.  */
9589int i;
9590int
9591main (void)
9592{
9593
9594  ;
9595  return 0;
9596}
9597_ACEOF
9598if ac_fn_c_try_link "$LINENO"
9599then :
9600  eval $cacheid=yes
9601else case e in #(
9602  e) eval $cacheid=no ;;
9603esac
9604fi
9605rm -f core conftest.err conftest.$ac_objext conftest.beam \
9606    conftest$ac_exeext conftest.$ac_ext ;;
9607esac
9608fi
9609
9610
9611		CFLAGS="$xorg_testset_save_CFLAGS"
9612
9613		eval supported=\$$cacheid
9614		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9615printf "%s\n" "$supported" >&6; }
9616		if test "$supported" = "yes" ; then
9617			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9618			found="yes"
9619		fi
9620	fi
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636xorg_testset_save_CFLAGS="$CFLAGS"
9637
9638if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9639	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9640	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9641printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9642if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9643then :
9644  printf %s "(cached) " >&6
9645else case e in #(
9646  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647/* end confdefs.h.  */
9648int i;
9649_ACEOF
9650if ac_fn_c_try_compile "$LINENO"
9651then :
9652  xorg_cv_cc_flag_unknown_warning_option=yes
9653else case e in #(
9654  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9655esac
9656fi
9657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9658esac
9659fi
9660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9661printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9662	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9663	CFLAGS="$xorg_testset_save_CFLAGS"
9664fi
9665
9666if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9667	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9668		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9669	fi
9670	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9671	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9672printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9673if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9674then :
9675  printf %s "(cached) " >&6
9676else case e in #(
9677  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9678/* end confdefs.h.  */
9679int i;
9680_ACEOF
9681if ac_fn_c_try_compile "$LINENO"
9682then :
9683  xorg_cv_cc_flag_unused_command_line_argument=yes
9684else case e in #(
9685  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9686esac
9687fi
9688rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9689esac
9690fi
9691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9692printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9693	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9694	CFLAGS="$xorg_testset_save_CFLAGS"
9695fi
9696
9697found="no"
9698
9699	if test $found = "no" ; then
9700		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9701			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9702		fi
9703
9704		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9705			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9706		fi
9707
9708		CFLAGS="$CFLAGS -Wmain"
9709
9710		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9711printf %s "checking if $CC supports -Wmain... " >&6; }
9712		cacheid=xorg_cv_cc_flag__Wmain
9713		if eval test \${$cacheid+y}
9714then :
9715  printf %s "(cached) " >&6
9716else case e in #(
9717  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9718/* end confdefs.h.  */
9719int i;
9720int
9721main (void)
9722{
9723
9724  ;
9725  return 0;
9726}
9727_ACEOF
9728if ac_fn_c_try_link "$LINENO"
9729then :
9730  eval $cacheid=yes
9731else case e in #(
9732  e) eval $cacheid=no ;;
9733esac
9734fi
9735rm -f core conftest.err conftest.$ac_objext conftest.beam \
9736    conftest$ac_exeext conftest.$ac_ext ;;
9737esac
9738fi
9739
9740
9741		CFLAGS="$xorg_testset_save_CFLAGS"
9742
9743		eval supported=\$$cacheid
9744		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9745printf "%s\n" "$supported" >&6; }
9746		if test "$supported" = "yes" ; then
9747			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9748			found="yes"
9749		fi
9750	fi
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766xorg_testset_save_CFLAGS="$CFLAGS"
9767
9768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9769	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9770	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9771printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9772if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9773then :
9774  printf %s "(cached) " >&6
9775else case e in #(
9776  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777/* end confdefs.h.  */
9778int i;
9779_ACEOF
9780if ac_fn_c_try_compile "$LINENO"
9781then :
9782  xorg_cv_cc_flag_unknown_warning_option=yes
9783else case e in #(
9784  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9785esac
9786fi
9787rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9788esac
9789fi
9790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9791printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9792	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9793	CFLAGS="$xorg_testset_save_CFLAGS"
9794fi
9795
9796if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9797	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9798		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9799	fi
9800	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9801	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9802printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9803if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9804then :
9805  printf %s "(cached) " >&6
9806else case e in #(
9807  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9808/* end confdefs.h.  */
9809int i;
9810_ACEOF
9811if ac_fn_c_try_compile "$LINENO"
9812then :
9813  xorg_cv_cc_flag_unused_command_line_argument=yes
9814else case e in #(
9815  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9816esac
9817fi
9818rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9819esac
9820fi
9821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9822printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9823	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9824	CFLAGS="$xorg_testset_save_CFLAGS"
9825fi
9826
9827found="no"
9828
9829	if test $found = "no" ; then
9830		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9831			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9832		fi
9833
9834		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9835			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9836		fi
9837
9838		CFLAGS="$CFLAGS -Wmissing-braces"
9839
9840		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9841printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9842		cacheid=xorg_cv_cc_flag__Wmissing_braces
9843		if eval test \${$cacheid+y}
9844then :
9845  printf %s "(cached) " >&6
9846else case e in #(
9847  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9848/* end confdefs.h.  */
9849int i;
9850int
9851main (void)
9852{
9853
9854  ;
9855  return 0;
9856}
9857_ACEOF
9858if ac_fn_c_try_link "$LINENO"
9859then :
9860  eval $cacheid=yes
9861else case e in #(
9862  e) eval $cacheid=no ;;
9863esac
9864fi
9865rm -f core conftest.err conftest.$ac_objext conftest.beam \
9866    conftest$ac_exeext conftest.$ac_ext ;;
9867esac
9868fi
9869
9870
9871		CFLAGS="$xorg_testset_save_CFLAGS"
9872
9873		eval supported=\$$cacheid
9874		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9875printf "%s\n" "$supported" >&6; }
9876		if test "$supported" = "yes" ; then
9877			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9878			found="yes"
9879		fi
9880	fi
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896xorg_testset_save_CFLAGS="$CFLAGS"
9897
9898if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9899	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9900	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9901printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9902if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9903then :
9904  printf %s "(cached) " >&6
9905else case e in #(
9906  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907/* end confdefs.h.  */
9908int i;
9909_ACEOF
9910if ac_fn_c_try_compile "$LINENO"
9911then :
9912  xorg_cv_cc_flag_unknown_warning_option=yes
9913else case e in #(
9914  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9915esac
9916fi
9917rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9918esac
9919fi
9920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9921printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9922	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9923	CFLAGS="$xorg_testset_save_CFLAGS"
9924fi
9925
9926if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9927	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9928		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9929	fi
9930	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9931	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9932printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9933if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9934then :
9935  printf %s "(cached) " >&6
9936else case e in #(
9937  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9938/* end confdefs.h.  */
9939int i;
9940_ACEOF
9941if ac_fn_c_try_compile "$LINENO"
9942then :
9943  xorg_cv_cc_flag_unused_command_line_argument=yes
9944else case e in #(
9945  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9946esac
9947fi
9948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9949esac
9950fi
9951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9952printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9953	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9954	CFLAGS="$xorg_testset_save_CFLAGS"
9955fi
9956
9957found="no"
9958
9959	if test $found = "no" ; then
9960		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9961			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9962		fi
9963
9964		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9965			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9966		fi
9967
9968		CFLAGS="$CFLAGS -Wsequence-point"
9969
9970		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9971printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9972		cacheid=xorg_cv_cc_flag__Wsequence_point
9973		if eval test \${$cacheid+y}
9974then :
9975  printf %s "(cached) " >&6
9976else case e in #(
9977  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9978/* end confdefs.h.  */
9979int i;
9980int
9981main (void)
9982{
9983
9984  ;
9985  return 0;
9986}
9987_ACEOF
9988if ac_fn_c_try_link "$LINENO"
9989then :
9990  eval $cacheid=yes
9991else case e in #(
9992  e) eval $cacheid=no ;;
9993esac
9994fi
9995rm -f core conftest.err conftest.$ac_objext conftest.beam \
9996    conftest$ac_exeext conftest.$ac_ext ;;
9997esac
9998fi
9999
10000
10001		CFLAGS="$xorg_testset_save_CFLAGS"
10002
10003		eval supported=\$$cacheid
10004		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10005printf "%s\n" "$supported" >&6; }
10006		if test "$supported" = "yes" ; then
10007			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
10008			found="yes"
10009		fi
10010	fi
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026xorg_testset_save_CFLAGS="$CFLAGS"
10027
10028if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10029	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10030	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10031printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10032if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10033then :
10034  printf %s "(cached) " >&6
10035else case e in #(
10036  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10037/* end confdefs.h.  */
10038int i;
10039_ACEOF
10040if ac_fn_c_try_compile "$LINENO"
10041then :
10042  xorg_cv_cc_flag_unknown_warning_option=yes
10043else case e in #(
10044  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10045esac
10046fi
10047rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10048esac
10049fi
10050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10051printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10052	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10053	CFLAGS="$xorg_testset_save_CFLAGS"
10054fi
10055
10056if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10057	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10058		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10059	fi
10060	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10061	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10062printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10063if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10064then :
10065  printf %s "(cached) " >&6
10066else case e in #(
10067  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10068/* end confdefs.h.  */
10069int i;
10070_ACEOF
10071if ac_fn_c_try_compile "$LINENO"
10072then :
10073  xorg_cv_cc_flag_unused_command_line_argument=yes
10074else case e in #(
10075  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10076esac
10077fi
10078rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10079esac
10080fi
10081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10082printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10083	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10084	CFLAGS="$xorg_testset_save_CFLAGS"
10085fi
10086
10087found="no"
10088
10089	if test $found = "no" ; then
10090		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10091			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10092		fi
10093
10094		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10095			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10096		fi
10097
10098		CFLAGS="$CFLAGS -Wreturn-type"
10099
10100		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10101printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10102		cacheid=xorg_cv_cc_flag__Wreturn_type
10103		if eval test \${$cacheid+y}
10104then :
10105  printf %s "(cached) " >&6
10106else case e in #(
10107  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108/* end confdefs.h.  */
10109int i;
10110int
10111main (void)
10112{
10113
10114  ;
10115  return 0;
10116}
10117_ACEOF
10118if ac_fn_c_try_link "$LINENO"
10119then :
10120  eval $cacheid=yes
10121else case e in #(
10122  e) eval $cacheid=no ;;
10123esac
10124fi
10125rm -f core conftest.err conftest.$ac_objext conftest.beam \
10126    conftest$ac_exeext conftest.$ac_ext ;;
10127esac
10128fi
10129
10130
10131		CFLAGS="$xorg_testset_save_CFLAGS"
10132
10133		eval supported=\$$cacheid
10134		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10135printf "%s\n" "$supported" >&6; }
10136		if test "$supported" = "yes" ; then
10137			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10138			found="yes"
10139		fi
10140	fi
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156xorg_testset_save_CFLAGS="$CFLAGS"
10157
10158if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10159	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10160	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10161printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10162if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10163then :
10164  printf %s "(cached) " >&6
10165else case e in #(
10166  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10167/* end confdefs.h.  */
10168int i;
10169_ACEOF
10170if ac_fn_c_try_compile "$LINENO"
10171then :
10172  xorg_cv_cc_flag_unknown_warning_option=yes
10173else case e in #(
10174  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10175esac
10176fi
10177rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10178esac
10179fi
10180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10181printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10182	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10183	CFLAGS="$xorg_testset_save_CFLAGS"
10184fi
10185
10186if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10187	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10188		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10189	fi
10190	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10191	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10192printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10193if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10194then :
10195  printf %s "(cached) " >&6
10196else case e in #(
10197  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10198/* end confdefs.h.  */
10199int i;
10200_ACEOF
10201if ac_fn_c_try_compile "$LINENO"
10202then :
10203  xorg_cv_cc_flag_unused_command_line_argument=yes
10204else case e in #(
10205  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10206esac
10207fi
10208rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10209esac
10210fi
10211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10212printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10213	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10214	CFLAGS="$xorg_testset_save_CFLAGS"
10215fi
10216
10217found="no"
10218
10219	if test $found = "no" ; then
10220		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10221			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10222		fi
10223
10224		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10225			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10226		fi
10227
10228		CFLAGS="$CFLAGS -Wtrigraphs"
10229
10230		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10231printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10232		cacheid=xorg_cv_cc_flag__Wtrigraphs
10233		if eval test \${$cacheid+y}
10234then :
10235  printf %s "(cached) " >&6
10236else case e in #(
10237  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238/* end confdefs.h.  */
10239int i;
10240int
10241main (void)
10242{
10243
10244  ;
10245  return 0;
10246}
10247_ACEOF
10248if ac_fn_c_try_link "$LINENO"
10249then :
10250  eval $cacheid=yes
10251else case e in #(
10252  e) eval $cacheid=no ;;
10253esac
10254fi
10255rm -f core conftest.err conftest.$ac_objext conftest.beam \
10256    conftest$ac_exeext conftest.$ac_ext ;;
10257esac
10258fi
10259
10260
10261		CFLAGS="$xorg_testset_save_CFLAGS"
10262
10263		eval supported=\$$cacheid
10264		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10265printf "%s\n" "$supported" >&6; }
10266		if test "$supported" = "yes" ; then
10267			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10268			found="yes"
10269		fi
10270	fi
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286xorg_testset_save_CFLAGS="$CFLAGS"
10287
10288if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10289	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10290	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10291printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10292if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10293then :
10294  printf %s "(cached) " >&6
10295else case e in #(
10296  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10297/* end confdefs.h.  */
10298int i;
10299_ACEOF
10300if ac_fn_c_try_compile "$LINENO"
10301then :
10302  xorg_cv_cc_flag_unknown_warning_option=yes
10303else case e in #(
10304  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10305esac
10306fi
10307rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10308esac
10309fi
10310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10311printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10312	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10313	CFLAGS="$xorg_testset_save_CFLAGS"
10314fi
10315
10316if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10317	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10318		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10319	fi
10320	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10321	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10322printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10323if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10324then :
10325  printf %s "(cached) " >&6
10326else case e in #(
10327  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10328/* end confdefs.h.  */
10329int i;
10330_ACEOF
10331if ac_fn_c_try_compile "$LINENO"
10332then :
10333  xorg_cv_cc_flag_unused_command_line_argument=yes
10334else case e in #(
10335  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10336esac
10337fi
10338rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10339esac
10340fi
10341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10342printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10343	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10344	CFLAGS="$xorg_testset_save_CFLAGS"
10345fi
10346
10347found="no"
10348
10349	if test $found = "no" ; then
10350		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10351			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10352		fi
10353
10354		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10355			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10356		fi
10357
10358		CFLAGS="$CFLAGS -Warray-bounds"
10359
10360		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10361printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10362		cacheid=xorg_cv_cc_flag__Warray_bounds
10363		if eval test \${$cacheid+y}
10364then :
10365  printf %s "(cached) " >&6
10366else case e in #(
10367  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10368/* end confdefs.h.  */
10369int i;
10370int
10371main (void)
10372{
10373
10374  ;
10375  return 0;
10376}
10377_ACEOF
10378if ac_fn_c_try_link "$LINENO"
10379then :
10380  eval $cacheid=yes
10381else case e in #(
10382  e) eval $cacheid=no ;;
10383esac
10384fi
10385rm -f core conftest.err conftest.$ac_objext conftest.beam \
10386    conftest$ac_exeext conftest.$ac_ext ;;
10387esac
10388fi
10389
10390
10391		CFLAGS="$xorg_testset_save_CFLAGS"
10392
10393		eval supported=\$$cacheid
10394		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10395printf "%s\n" "$supported" >&6; }
10396		if test "$supported" = "yes" ; then
10397			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10398			found="yes"
10399		fi
10400	fi
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416xorg_testset_save_CFLAGS="$CFLAGS"
10417
10418if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10419	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10420	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10421printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10422if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10423then :
10424  printf %s "(cached) " >&6
10425else case e in #(
10426  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427/* end confdefs.h.  */
10428int i;
10429_ACEOF
10430if ac_fn_c_try_compile "$LINENO"
10431then :
10432  xorg_cv_cc_flag_unknown_warning_option=yes
10433else case e in #(
10434  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10435esac
10436fi
10437rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10438esac
10439fi
10440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10441printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10442	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10443	CFLAGS="$xorg_testset_save_CFLAGS"
10444fi
10445
10446if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10447	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10448		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10449	fi
10450	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10451	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10452printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10453if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10454then :
10455  printf %s "(cached) " >&6
10456else case e in #(
10457  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10458/* end confdefs.h.  */
10459int i;
10460_ACEOF
10461if ac_fn_c_try_compile "$LINENO"
10462then :
10463  xorg_cv_cc_flag_unused_command_line_argument=yes
10464else case e in #(
10465  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10466esac
10467fi
10468rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10469esac
10470fi
10471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10472printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10473	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10474	CFLAGS="$xorg_testset_save_CFLAGS"
10475fi
10476
10477found="no"
10478
10479	if test $found = "no" ; then
10480		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10481			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10482		fi
10483
10484		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10485			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10486		fi
10487
10488		CFLAGS="$CFLAGS -Wwrite-strings"
10489
10490		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10491printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10492		cacheid=xorg_cv_cc_flag__Wwrite_strings
10493		if eval test \${$cacheid+y}
10494then :
10495  printf %s "(cached) " >&6
10496else case e in #(
10497  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10498/* end confdefs.h.  */
10499int i;
10500int
10501main (void)
10502{
10503
10504  ;
10505  return 0;
10506}
10507_ACEOF
10508if ac_fn_c_try_link "$LINENO"
10509then :
10510  eval $cacheid=yes
10511else case e in #(
10512  e) eval $cacheid=no ;;
10513esac
10514fi
10515rm -f core conftest.err conftest.$ac_objext conftest.beam \
10516    conftest$ac_exeext conftest.$ac_ext ;;
10517esac
10518fi
10519
10520
10521		CFLAGS="$xorg_testset_save_CFLAGS"
10522
10523		eval supported=\$$cacheid
10524		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10525printf "%s\n" "$supported" >&6; }
10526		if test "$supported" = "yes" ; then
10527			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10528			found="yes"
10529		fi
10530	fi
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546xorg_testset_save_CFLAGS="$CFLAGS"
10547
10548if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10549	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10550	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10551printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10552if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10553then :
10554  printf %s "(cached) " >&6
10555else case e in #(
10556  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10557/* end confdefs.h.  */
10558int i;
10559_ACEOF
10560if ac_fn_c_try_compile "$LINENO"
10561then :
10562  xorg_cv_cc_flag_unknown_warning_option=yes
10563else case e in #(
10564  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10565esac
10566fi
10567rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10568esac
10569fi
10570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10571printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10572	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10573	CFLAGS="$xorg_testset_save_CFLAGS"
10574fi
10575
10576if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10577	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10578		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10579	fi
10580	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10581	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10582printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10583if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10584then :
10585  printf %s "(cached) " >&6
10586else case e in #(
10587  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10588/* end confdefs.h.  */
10589int i;
10590_ACEOF
10591if ac_fn_c_try_compile "$LINENO"
10592then :
10593  xorg_cv_cc_flag_unused_command_line_argument=yes
10594else case e in #(
10595  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10596esac
10597fi
10598rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10599esac
10600fi
10601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10602printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10603	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10604	CFLAGS="$xorg_testset_save_CFLAGS"
10605fi
10606
10607found="no"
10608
10609	if test $found = "no" ; then
10610		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10611			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10612		fi
10613
10614		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10615			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10616		fi
10617
10618		CFLAGS="$CFLAGS -Waddress"
10619
10620		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10621printf %s "checking if $CC supports -Waddress... " >&6; }
10622		cacheid=xorg_cv_cc_flag__Waddress
10623		if eval test \${$cacheid+y}
10624then :
10625  printf %s "(cached) " >&6
10626else case e in #(
10627  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10628/* end confdefs.h.  */
10629int i;
10630int
10631main (void)
10632{
10633
10634  ;
10635  return 0;
10636}
10637_ACEOF
10638if ac_fn_c_try_link "$LINENO"
10639then :
10640  eval $cacheid=yes
10641else case e in #(
10642  e) eval $cacheid=no ;;
10643esac
10644fi
10645rm -f core conftest.err conftest.$ac_objext conftest.beam \
10646    conftest$ac_exeext conftest.$ac_ext ;;
10647esac
10648fi
10649
10650
10651		CFLAGS="$xorg_testset_save_CFLAGS"
10652
10653		eval supported=\$$cacheid
10654		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10655printf "%s\n" "$supported" >&6; }
10656		if test "$supported" = "yes" ; then
10657			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10658			found="yes"
10659		fi
10660	fi
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676xorg_testset_save_CFLAGS="$CFLAGS"
10677
10678if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10679	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10680	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10681printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10682if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10683then :
10684  printf %s "(cached) " >&6
10685else case e in #(
10686  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10687/* end confdefs.h.  */
10688int i;
10689_ACEOF
10690if ac_fn_c_try_compile "$LINENO"
10691then :
10692  xorg_cv_cc_flag_unknown_warning_option=yes
10693else case e in #(
10694  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10695esac
10696fi
10697rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10698esac
10699fi
10700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10701printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10702	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10703	CFLAGS="$xorg_testset_save_CFLAGS"
10704fi
10705
10706if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10707	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10708		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10709	fi
10710	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10711	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10712printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10713if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10714then :
10715  printf %s "(cached) " >&6
10716else case e in #(
10717  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10718/* end confdefs.h.  */
10719int i;
10720_ACEOF
10721if ac_fn_c_try_compile "$LINENO"
10722then :
10723  xorg_cv_cc_flag_unused_command_line_argument=yes
10724else case e in #(
10725  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10726esac
10727fi
10728rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10729esac
10730fi
10731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10732printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10733	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10734	CFLAGS="$xorg_testset_save_CFLAGS"
10735fi
10736
10737found="no"
10738
10739	if test $found = "no" ; then
10740		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10741			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10742		fi
10743
10744		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10745			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10746		fi
10747
10748		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10749
10750		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10751printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10752		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10753		if eval test \${$cacheid+y}
10754then :
10755  printf %s "(cached) " >&6
10756else case e in #(
10757  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10758/* end confdefs.h.  */
10759int i;
10760int
10761main (void)
10762{
10763
10764  ;
10765  return 0;
10766}
10767_ACEOF
10768if ac_fn_c_try_link "$LINENO"
10769then :
10770  eval $cacheid=yes
10771else case e in #(
10772  e) eval $cacheid=no ;;
10773esac
10774fi
10775rm -f core conftest.err conftest.$ac_objext conftest.beam \
10776    conftest$ac_exeext conftest.$ac_ext ;;
10777esac
10778fi
10779
10780
10781		CFLAGS="$xorg_testset_save_CFLAGS"
10782
10783		eval supported=\$$cacheid
10784		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10785printf "%s\n" "$supported" >&6; }
10786		if test "$supported" = "yes" ; then
10787			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10788			found="yes"
10789		fi
10790	fi
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806xorg_testset_save_CFLAGS="$CFLAGS"
10807
10808if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10809	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10810	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10811printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10812if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10813then :
10814  printf %s "(cached) " >&6
10815else case e in #(
10816  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10817/* end confdefs.h.  */
10818int i;
10819_ACEOF
10820if ac_fn_c_try_compile "$LINENO"
10821then :
10822  xorg_cv_cc_flag_unknown_warning_option=yes
10823else case e in #(
10824  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10825esac
10826fi
10827rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10828esac
10829fi
10830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10831printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10832	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10833	CFLAGS="$xorg_testset_save_CFLAGS"
10834fi
10835
10836if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10837	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10838		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10839	fi
10840	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10841	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10842printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10843if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10844then :
10845  printf %s "(cached) " >&6
10846else case e in #(
10847  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10848/* end confdefs.h.  */
10849int i;
10850_ACEOF
10851if ac_fn_c_try_compile "$LINENO"
10852then :
10853  xorg_cv_cc_flag_unused_command_line_argument=yes
10854else case e in #(
10855  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10856esac
10857fi
10858rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10859esac
10860fi
10861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10862printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10863	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10864	CFLAGS="$xorg_testset_save_CFLAGS"
10865fi
10866
10867found="no"
10868
10869	if test $found = "no" ; then
10870		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10871			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10872		fi
10873
10874		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10875			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10876		fi
10877
10878		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10879
10880		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10881printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10882		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10883		if eval test \${$cacheid+y}
10884then :
10885  printf %s "(cached) " >&6
10886else case e in #(
10887  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10888/* end confdefs.h.  */
10889int i;
10890int
10891main (void)
10892{
10893
10894  ;
10895  return 0;
10896}
10897_ACEOF
10898if ac_fn_c_try_link "$LINENO"
10899then :
10900  eval $cacheid=yes
10901else case e in #(
10902  e) eval $cacheid=no ;;
10903esac
10904fi
10905rm -f core conftest.err conftest.$ac_objext conftest.beam \
10906    conftest$ac_exeext conftest.$ac_ext ;;
10907esac
10908fi
10909
10910
10911		CFLAGS="$xorg_testset_save_CFLAGS"
10912
10913		eval supported=\$$cacheid
10914		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10915printf "%s\n" "$supported" >&6; }
10916		if test "$supported" = "yes" ; then
10917			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10918			found="yes"
10919		fi
10920	fi
10921
10922
10923fi
10924
10925
10926
10927
10928
10929
10930
10931		CWARNFLAGS="$BASE_CFLAGS"
10932		if  test "x$GCC" = xyes ; then
10933		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10934		fi
10935
10936
10937
10938
10939
10940
10941
10942
10943# Check whether --enable-strict-compilation was given.
10944if test ${enable_strict_compilation+y}
10945then :
10946  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10947else case e in #(
10948  e) STRICT_COMPILE=no ;;
10949esac
10950fi
10951
10952
10953
10954
10955
10956
10957STRICT_CFLAGS=""
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971xorg_testset_save_CFLAGS="$CFLAGS"
10972
10973if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10974	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10975	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10976printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10977if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10978then :
10979  printf %s "(cached) " >&6
10980else case e in #(
10981  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10982/* end confdefs.h.  */
10983int i;
10984_ACEOF
10985if ac_fn_c_try_compile "$LINENO"
10986then :
10987  xorg_cv_cc_flag_unknown_warning_option=yes
10988else case e in #(
10989  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10990esac
10991fi
10992rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10993esac
10994fi
10995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10996printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10997	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10998	CFLAGS="$xorg_testset_save_CFLAGS"
10999fi
11000
11001if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11002	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11003		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11004	fi
11005	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11006	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11007printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11008if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11009then :
11010  printf %s "(cached) " >&6
11011else case e in #(
11012  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11013/* end confdefs.h.  */
11014int i;
11015_ACEOF
11016if ac_fn_c_try_compile "$LINENO"
11017then :
11018  xorg_cv_cc_flag_unused_command_line_argument=yes
11019else case e in #(
11020  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11021esac
11022fi
11023rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11024esac
11025fi
11026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11027printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11028	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11029	CFLAGS="$xorg_testset_save_CFLAGS"
11030fi
11031
11032found="no"
11033
11034	if test $found = "no" ; then
11035		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11036			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11037		fi
11038
11039		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11040			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11041		fi
11042
11043		CFLAGS="$CFLAGS -pedantic"
11044
11045		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11046printf %s "checking if $CC supports -pedantic... " >&6; }
11047		cacheid=xorg_cv_cc_flag__pedantic
11048		if eval test \${$cacheid+y}
11049then :
11050  printf %s "(cached) " >&6
11051else case e in #(
11052  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11053/* end confdefs.h.  */
11054int i;
11055int
11056main (void)
11057{
11058
11059  ;
11060  return 0;
11061}
11062_ACEOF
11063if ac_fn_c_try_link "$LINENO"
11064then :
11065  eval $cacheid=yes
11066else case e in #(
11067  e) eval $cacheid=no ;;
11068esac
11069fi
11070rm -f core conftest.err conftest.$ac_objext conftest.beam \
11071    conftest$ac_exeext conftest.$ac_ext ;;
11072esac
11073fi
11074
11075
11076		CFLAGS="$xorg_testset_save_CFLAGS"
11077
11078		eval supported=\$$cacheid
11079		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11080printf "%s\n" "$supported" >&6; }
11081		if test "$supported" = "yes" ; then
11082			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11083			found="yes"
11084		fi
11085	fi
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101xorg_testset_save_CFLAGS="$CFLAGS"
11102
11103if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11104	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11105	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11106printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11107if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11108then :
11109  printf %s "(cached) " >&6
11110else case e in #(
11111  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11112/* end confdefs.h.  */
11113int i;
11114_ACEOF
11115if ac_fn_c_try_compile "$LINENO"
11116then :
11117  xorg_cv_cc_flag_unknown_warning_option=yes
11118else case e in #(
11119  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11120esac
11121fi
11122rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11123esac
11124fi
11125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11126printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11127	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11128	CFLAGS="$xorg_testset_save_CFLAGS"
11129fi
11130
11131if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11132	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11133		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11134	fi
11135	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11136	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11137printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11138if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11139then :
11140  printf %s "(cached) " >&6
11141else case e in #(
11142  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11143/* end confdefs.h.  */
11144int i;
11145_ACEOF
11146if ac_fn_c_try_compile "$LINENO"
11147then :
11148  xorg_cv_cc_flag_unused_command_line_argument=yes
11149else case e in #(
11150  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11151esac
11152fi
11153rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11154esac
11155fi
11156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11157printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11158	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11159	CFLAGS="$xorg_testset_save_CFLAGS"
11160fi
11161
11162found="no"
11163
11164	if test $found = "no" ; then
11165		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11166			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11167		fi
11168
11169		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11170			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11171		fi
11172
11173		CFLAGS="$CFLAGS -Werror"
11174
11175		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11176printf %s "checking if $CC supports -Werror... " >&6; }
11177		cacheid=xorg_cv_cc_flag__Werror
11178		if eval test \${$cacheid+y}
11179then :
11180  printf %s "(cached) " >&6
11181else case e in #(
11182  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11183/* end confdefs.h.  */
11184int i;
11185int
11186main (void)
11187{
11188
11189  ;
11190  return 0;
11191}
11192_ACEOF
11193if ac_fn_c_try_link "$LINENO"
11194then :
11195  eval $cacheid=yes
11196else case e in #(
11197  e) eval $cacheid=no ;;
11198esac
11199fi
11200rm -f core conftest.err conftest.$ac_objext conftest.beam \
11201    conftest$ac_exeext conftest.$ac_ext ;;
11202esac
11203fi
11204
11205
11206		CFLAGS="$xorg_testset_save_CFLAGS"
11207
11208		eval supported=\$$cacheid
11209		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11210printf "%s\n" "$supported" >&6; }
11211		if test "$supported" = "yes" ; then
11212			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11213			found="yes"
11214		fi
11215	fi
11216
11217	if test $found = "no" ; then
11218		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11219			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11220		fi
11221
11222		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11223			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11224		fi
11225
11226		CFLAGS="$CFLAGS -errwarn"
11227
11228		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11229printf %s "checking if $CC supports -errwarn... " >&6; }
11230		cacheid=xorg_cv_cc_flag__errwarn
11231		if eval test \${$cacheid+y}
11232then :
11233  printf %s "(cached) " >&6
11234else case e in #(
11235  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11236/* end confdefs.h.  */
11237int i;
11238int
11239main (void)
11240{
11241
11242  ;
11243  return 0;
11244}
11245_ACEOF
11246if ac_fn_c_try_link "$LINENO"
11247then :
11248  eval $cacheid=yes
11249else case e in #(
11250  e) eval $cacheid=no ;;
11251esac
11252fi
11253rm -f core conftest.err conftest.$ac_objext conftest.beam \
11254    conftest$ac_exeext conftest.$ac_ext ;;
11255esac
11256fi
11257
11258
11259		CFLAGS="$xorg_testset_save_CFLAGS"
11260
11261		eval supported=\$$cacheid
11262		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11263printf "%s\n" "$supported" >&6; }
11264		if test "$supported" = "yes" ; then
11265			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11266			found="yes"
11267		fi
11268	fi
11269
11270
11271
11272# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11273# activate it with -Werror, so we add it here explicitly.
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287xorg_testset_save_CFLAGS="$CFLAGS"
11288
11289if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11290	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11291	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11292printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11293if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11294then :
11295  printf %s "(cached) " >&6
11296else case e in #(
11297  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11298/* end confdefs.h.  */
11299int i;
11300_ACEOF
11301if ac_fn_c_try_compile "$LINENO"
11302then :
11303  xorg_cv_cc_flag_unknown_warning_option=yes
11304else case e in #(
11305  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11306esac
11307fi
11308rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11309esac
11310fi
11311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11312printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11313	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11314	CFLAGS="$xorg_testset_save_CFLAGS"
11315fi
11316
11317if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11318	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11319		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11320	fi
11321	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11322	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11323printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11324if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11325then :
11326  printf %s "(cached) " >&6
11327else case e in #(
11328  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11329/* end confdefs.h.  */
11330int i;
11331_ACEOF
11332if ac_fn_c_try_compile "$LINENO"
11333then :
11334  xorg_cv_cc_flag_unused_command_line_argument=yes
11335else case e in #(
11336  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11337esac
11338fi
11339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11340esac
11341fi
11342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11343printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11344	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11345	CFLAGS="$xorg_testset_save_CFLAGS"
11346fi
11347
11348found="no"
11349
11350	if test $found = "no" ; then
11351		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11352			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11353		fi
11354
11355		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11356			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11357		fi
11358
11359		CFLAGS="$CFLAGS -Werror=attributes"
11360
11361		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11362printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11363		cacheid=xorg_cv_cc_flag__Werror_attributes
11364		if eval test \${$cacheid+y}
11365then :
11366  printf %s "(cached) " >&6
11367else case e in #(
11368  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11369/* end confdefs.h.  */
11370int i;
11371int
11372main (void)
11373{
11374
11375  ;
11376  return 0;
11377}
11378_ACEOF
11379if ac_fn_c_try_link "$LINENO"
11380then :
11381  eval $cacheid=yes
11382else case e in #(
11383  e) eval $cacheid=no ;;
11384esac
11385fi
11386rm -f core conftest.err conftest.$ac_objext conftest.beam \
11387    conftest$ac_exeext conftest.$ac_ext ;;
11388esac
11389fi
11390
11391
11392		CFLAGS="$xorg_testset_save_CFLAGS"
11393
11394		eval supported=\$$cacheid
11395		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11396printf "%s\n" "$supported" >&6; }
11397		if test "$supported" = "yes" ; then
11398			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11399			found="yes"
11400		fi
11401	fi
11402
11403
11404
11405if test "x$STRICT_COMPILE" = "xyes"; then
11406    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11407    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11408fi
11409
11410
11411
11412
11413
11414
11415
11416
11417cat >>confdefs.h <<_ACEOF
11418#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11419_ACEOF
11420
11421	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11422	if test "x$PVM" = "x"; then
11423		PVM="0"
11424	fi
11425
11426printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11427
11428	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11429	if test "x$PVP" = "x"; then
11430		PVP="0"
11431	fi
11432
11433printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11434
11435
11436
11437CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11438mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11439|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11440touch \$(top_srcdir)/ChangeLog; \
11441echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11442
11443
11444
11445
11446macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11447INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11448mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11449|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11450touch \$(top_srcdir)/INSTALL; \
11451echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11452
11453
11454
11455
11456
11457
11458case $host_os in
11459    solaris*)
11460        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11461        # check for a man page file found in later versions that use
11462        # traditional section numbers instead
11463        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11464printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11465if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11466then :
11467  printf %s "(cached) " >&6
11468else case e in #(
11469  e) test "$cross_compiling" = yes &&
11470  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11471if test -r "/usr/share/man/man7/attributes.7"; then
11472  ac_cv_file__usr_share_man_man7_attributes_7=yes
11473else
11474  ac_cv_file__usr_share_man_man7_attributes_7=no
11475fi ;;
11476esac
11477fi
11478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11479printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11480if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11481then :
11482  SYSV_MAN_SECTIONS=false
11483else case e in #(
11484  e) SYSV_MAN_SECTIONS=true ;;
11485esac
11486fi
11487
11488        ;;
11489    *) SYSV_MAN_SECTIONS=false ;;
11490esac
11491
11492if test x$APP_MAN_SUFFIX = x    ; then
11493    APP_MAN_SUFFIX=1
11494fi
11495if test x$APP_MAN_DIR = x    ; then
11496    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11497fi
11498
11499if test x$LIB_MAN_SUFFIX = x    ; then
11500    LIB_MAN_SUFFIX=3
11501fi
11502if test x$LIB_MAN_DIR = x    ; then
11503    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11504fi
11505
11506if test x$FILE_MAN_SUFFIX = x    ; then
11507    case $SYSV_MAN_SECTIONS in
11508	true)				FILE_MAN_SUFFIX=4  ;;
11509	*)				FILE_MAN_SUFFIX=5  ;;
11510    esac
11511fi
11512if test x$FILE_MAN_DIR = x    ; then
11513    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11514fi
11515
11516if test x$MISC_MAN_SUFFIX = x    ; then
11517    case $SYSV_MAN_SECTIONS in
11518	true)				MISC_MAN_SUFFIX=5  ;;
11519	*)				MISC_MAN_SUFFIX=7  ;;
11520    esac
11521fi
11522if test x$MISC_MAN_DIR = x    ; then
11523    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11524fi
11525
11526if test x$DRIVER_MAN_SUFFIX = x    ; then
11527    case $SYSV_MAN_SECTIONS in
11528	true)				DRIVER_MAN_SUFFIX=7  ;;
11529	*)				DRIVER_MAN_SUFFIX=4  ;;
11530    esac
11531fi
11532if test x$DRIVER_MAN_DIR = x    ; then
11533    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11534fi
11535
11536if test x$ADMIN_MAN_SUFFIX = x    ; then
11537    case $SYSV_MAN_SECTIONS in
11538	true)				ADMIN_MAN_SUFFIX=1m ;;
11539	*)				ADMIN_MAN_SUFFIX=8  ;;
11540    esac
11541fi
11542if test x$ADMIN_MAN_DIR = x    ; then
11543    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11544fi
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560XORG_MAN_PAGE="X Version 11"
11561
11562MAN_SUBSTS="\
11563	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11564	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11565	-e 's|__xservername__|Xorg|g' \
11566	-e 's|__xconfigfile__|xorg.conf|g' \
11567	-e 's|__projectroot__|\$(prefix)|g' \
11568	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11569	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11570	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11571	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11572	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11573	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11574	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11575
11576
11577
11578# Check whether --enable-silent-rules was given.
11579if test ${enable_silent_rules+y}
11580then :
11581  enableval=$enable_silent_rules;
11582fi
11583
11584case $enable_silent_rules in # (((
11585  yes) AM_DEFAULT_VERBOSITY=0;;
11586   no) AM_DEFAULT_VERBOSITY=1;;
11587    *) AM_DEFAULT_VERBOSITY=0;;
11588esac
11589am_make=${MAKE-make}
11590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11591printf %s "checking whether $am_make supports nested variables... " >&6; }
11592if test ${am_cv_make_support_nested_variables+y}
11593then :
11594  printf %s "(cached) " >&6
11595else case e in #(
11596  e) if printf "%s\n" 'TRUE=$(BAR$(V))
11597BAR0=false
11598BAR1=true
11599V=1
11600am__doit:
11601	@$(TRUE)
11602.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11603  am_cv_make_support_nested_variables=yes
11604else
11605  am_cv_make_support_nested_variables=no
11606fi ;;
11607esac
11608fi
11609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11610printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11611if test $am_cv_make_support_nested_variables = yes; then
11612    AM_V='$(V)'
11613  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11614else
11615  AM_V=$AM_DEFAULT_VERBOSITY
11616  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11617fi
11618AM_BACKSLASH='\'
11619
11620
11621
11622
11623ac_ext=c
11624ac_cpp='$CPP $CPPFLAGS'
11625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11627ac_compiler_gnu=$ac_cv_c_compiler_gnu
11628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11629printf %s "checking how to run the C preprocessor... " >&6; }
11630# On Suns, sometimes $CPP names a directory.
11631if test -n "$CPP" && test -d "$CPP"; then
11632  CPP=
11633fi
11634if test -z "$CPP"; then
11635  if test ${ac_cv_prog_CPP+y}
11636then :
11637  printf %s "(cached) " >&6
11638else case e in #(
11639  e)     # Double quotes because $CC needs to be expanded
11640    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
11641    do
11642      ac_preproc_ok=false
11643for ac_c_preproc_warn_flag in '' yes
11644do
11645  # Use a header file that comes with gcc, so configuring glibc
11646  # with a fresh cross-compiler works.
11647  # On the NeXT, cc -E runs the code through the compiler's parser,
11648  # not just through cpp. "Syntax error" is here to catch this case.
11649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11650/* end confdefs.h.  */
11651#include <limits.h>
11652		     Syntax error
11653_ACEOF
11654if ac_fn_c_try_cpp "$LINENO"
11655then :
11656
11657else case e in #(
11658  e) # Broken: fails on valid input.
11659continue ;;
11660esac
11661fi
11662rm -f conftest.err conftest.i conftest.$ac_ext
11663
11664  # OK, works on sane cases.  Now check whether nonexistent headers
11665  # can be detected and how.
11666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11667/* end confdefs.h.  */
11668#include <ac_nonexistent.h>
11669_ACEOF
11670if ac_fn_c_try_cpp "$LINENO"
11671then :
11672  # Broken: success on invalid input.
11673continue
11674else case e in #(
11675  e) # Passes both tests.
11676ac_preproc_ok=:
11677break ;;
11678esac
11679fi
11680rm -f conftest.err conftest.i conftest.$ac_ext
11681
11682done
11683# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11684rm -f conftest.i conftest.err conftest.$ac_ext
11685if $ac_preproc_ok
11686then :
11687  break
11688fi
11689
11690    done
11691    ac_cv_prog_CPP=$CPP
11692   ;;
11693esac
11694fi
11695  CPP=$ac_cv_prog_CPP
11696else
11697  ac_cv_prog_CPP=$CPP
11698fi
11699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11700printf "%s\n" "$CPP" >&6; }
11701ac_preproc_ok=false
11702for ac_c_preproc_warn_flag in '' yes
11703do
11704  # Use a header file that comes with gcc, so configuring glibc
11705  # with a fresh cross-compiler works.
11706  # On the NeXT, cc -E runs the code through the compiler's parser,
11707  # not just through cpp. "Syntax error" is here to catch this case.
11708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11709/* end confdefs.h.  */
11710#include <limits.h>
11711		     Syntax error
11712_ACEOF
11713if ac_fn_c_try_cpp "$LINENO"
11714then :
11715
11716else case e in #(
11717  e) # Broken: fails on valid input.
11718continue ;;
11719esac
11720fi
11721rm -f conftest.err conftest.i conftest.$ac_ext
11722
11723  # OK, works on sane cases.  Now check whether nonexistent headers
11724  # can be detected and how.
11725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11726/* end confdefs.h.  */
11727#include <ac_nonexistent.h>
11728_ACEOF
11729if ac_fn_c_try_cpp "$LINENO"
11730then :
11731  # Broken: success on invalid input.
11732continue
11733else case e in #(
11734  e) # Passes both tests.
11735ac_preproc_ok=:
11736break ;;
11737esac
11738fi
11739rm -f conftest.err conftest.i conftest.$ac_ext
11740
11741done
11742# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11743rm -f conftest.i conftest.err conftest.$ac_ext
11744if $ac_preproc_ok
11745then :
11746
11747else case e in #(
11748  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11749printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11750as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
11751See 'config.log' for more details" "$LINENO" 5; } ;;
11752esac
11753fi
11754
11755ac_ext=c
11756ac_cpp='$CPP $CPPFLAGS'
11757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11759ac_compiler_gnu=$ac_cv_c_compiler_gnu
11760
11761
11762
11763if test -n "$ac_tool_prefix"; then
11764  # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
11765set dummy ${ac_tool_prefix}cpp; ac_word=$2
11766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11767printf %s "checking for $ac_word... " >&6; }
11768if test ${ac_cv_path_RAWCPP+y}
11769then :
11770  printf %s "(cached) " >&6
11771else case e in #(
11772  e) case $RAWCPP in
11773  [\\/]* | ?:[\\/]*)
11774  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
11775  ;;
11776  *)
11777  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11778as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
11779for as_dir in $as_dummy
11780do
11781  IFS=$as_save_IFS
11782  case $as_dir in #(((
11783    '') as_dir=./ ;;
11784    */) ;;
11785    *) as_dir=$as_dir/ ;;
11786  esac
11787    for ac_exec_ext in '' $ac_executable_extensions; do
11788  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11789    ac_cv_path_RAWCPP="$as_dir$ac_word$ac_exec_ext"
11790    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11791    break 2
11792  fi
11793done
11794  done
11795IFS=$as_save_IFS
11796
11797  ;;
11798esac ;;
11799esac
11800fi
11801RAWCPP=$ac_cv_path_RAWCPP
11802if test -n "$RAWCPP"; then
11803  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
11804printf "%s\n" "$RAWCPP" >&6; }
11805else
11806  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11807printf "%s\n" "no" >&6; }
11808fi
11809
11810
11811fi
11812if test -z "$ac_cv_path_RAWCPP"; then
11813  ac_pt_RAWCPP=$RAWCPP
11814  # Extract the first word of "cpp", so it can be a program name with args.
11815set dummy cpp; ac_word=$2
11816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11817printf %s "checking for $ac_word... " >&6; }
11818if test ${ac_cv_path_ac_pt_RAWCPP+y}
11819then :
11820  printf %s "(cached) " >&6
11821else case e in #(
11822  e) case $ac_pt_RAWCPP in
11823  [\\/]* | ?:[\\/]*)
11824  ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path.
11825  ;;
11826  *)
11827  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11828as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
11829for as_dir in $as_dummy
11830do
11831  IFS=$as_save_IFS
11832  case $as_dir in #(((
11833    '') as_dir=./ ;;
11834    */) ;;
11835    *) as_dir=$as_dir/ ;;
11836  esac
11837    for ac_exec_ext in '' $ac_executable_extensions; do
11838  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11839    ac_cv_path_ac_pt_RAWCPP="$as_dir$ac_word$ac_exec_ext"
11840    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11841    break 2
11842  fi
11843done
11844  done
11845IFS=$as_save_IFS
11846
11847  ;;
11848esac ;;
11849esac
11850fi
11851ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP
11852if test -n "$ac_pt_RAWCPP"; then
11853  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5
11854printf "%s\n" "$ac_pt_RAWCPP" >&6; }
11855else
11856  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11857printf "%s\n" "no" >&6; }
11858fi
11859
11860  if test "x$ac_pt_RAWCPP" = x; then
11861    RAWCPP="${CPP}"
11862  else
11863    case $cross_compiling:$ac_tool_warned in
11864yes:)
11865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11866printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11867ac_tool_warned=yes ;;
11868esac
11869    RAWCPP=$ac_pt_RAWCPP
11870  fi
11871else
11872  RAWCPP="$ac_cv_path_RAWCPP"
11873fi
11874
11875
11876# Check for flag to avoid builtin definitions - assumes unix is predefined,
11877# which is not the best choice for supporting other OS'es, but covers most
11878# of the ones we need for now.
11879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
11880printf %s "checking if $RAWCPP requires -undef... " >&6; }
11881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11882/* end confdefs.h.  */
11883Does cpp redefine unix ?
11884_ACEOF
11885if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
11886	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887printf "%s\n" "no" >&6; }
11888else
11889	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
11890		RAWCPPFLAGS=-undef
11891		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11892printf "%s\n" "yes" >&6; }
11893	# under Cygwin unix is still defined even with -undef
11894	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
11895		RAWCPPFLAGS="-undef -ansi"
11896		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
11897printf "%s\n" "yes, with -ansi" >&6; }
11898	else
11899		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
11900	fi
11901fi
11902rm -f conftest.$ac_ext
11903
11904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
11905printf %s "checking if $RAWCPP requires -traditional... " >&6; }
11906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11907/* end confdefs.h.  */
11908Does cpp preserve   "whitespace"?
11909_ACEOF
11910if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
11911	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11912printf "%s\n" "no" >&6; }
11913else
11914	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
11915		TRADITIONALCPPFLAGS="-traditional"
11916		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
11917		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11918printf "%s\n" "yes" >&6; }
11919	else
11920		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
11921	fi
11922fi
11923rm -f conftest.$ac_ext
11924
11925
11926
11927CPP_PROGRAM=${RAWCPP}
11928
11929
11930# Checks for library functions.
11931ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
11932if test "x$ac_cv_func_mkstemp" = xyes
11933then :
11934  printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
11935
11936fi
11937
11938
11939# Checks for typedefs, structures, and compiler characteristics.
11940# Check whether --enable-largefile was given.
11941if test ${enable_largefile+y}
11942then :
11943  enableval=$enable_largefile;
11944fi
11945if test "$enable_largefile,$enable_year2038" != no,no
11946then :
11947  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
11948printf %s "checking for $CC option to enable large file support... " >&6; }
11949if test ${ac_cv_sys_largefile_opts+y}
11950then :
11951  printf %s "(cached) " >&6
11952else case e in #(
11953  e) ac_save_CC="$CC"
11954  ac_opt_found=no
11955  for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
11956    if test x"$ac_opt" != x"none needed"
11957then :
11958  CC="$ac_save_CC $ac_opt"
11959fi
11960    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961/* end confdefs.h.  */
11962#include <sys/types.h>
11963#ifndef FTYPE
11964# define FTYPE off_t
11965#endif
11966 /* Check that FTYPE can represent 2**63 - 1 correctly.
11967    We can't simply define LARGE_FTYPE to be 9223372036854775807,
11968    since some C++ compilers masquerading as C compilers
11969    incorrectly reject 9223372036854775807.  */
11970#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
11971  int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
11972		       && LARGE_FTYPE % 2147483647 == 1)
11973		      ? 1 : -1];
11974int
11975main (void)
11976{
11977
11978  ;
11979  return 0;
11980}
11981_ACEOF
11982if ac_fn_c_try_compile "$LINENO"
11983then :
11984  if test x"$ac_opt" = x"none needed"
11985then :
11986  # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
11987	 CC="$CC -DFTYPE=ino_t"
11988	 if ac_fn_c_try_compile "$LINENO"
11989then :
11990
11991else case e in #(
11992  e) CC="$CC -D_FILE_OFFSET_BITS=64"
11993	    if ac_fn_c_try_compile "$LINENO"
11994then :
11995  ac_opt='-D_FILE_OFFSET_BITS=64'
11996fi
11997rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
11998esac
11999fi
12000rm -f core conftest.err conftest.$ac_objext conftest.beam
12001fi
12002      ac_cv_sys_largefile_opts=$ac_opt
12003      ac_opt_found=yes
12004fi
12005rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12006    test $ac_opt_found = no || break
12007  done
12008  CC="$ac_save_CC"
12009
12010  test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
12011esac
12012fi
12013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
12014printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
12015
12016ac_have_largefile=yes
12017case $ac_cv_sys_largefile_opts in #(
12018  "none needed") :
12019     ;; #(
12020  "supported through gnulib") :
12021     ;; #(
12022  "support not detected") :
12023    ac_have_largefile=no ;; #(
12024  "-D_FILE_OFFSET_BITS=64") :
12025
12026printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
12027 ;; #(
12028  "-D_LARGE_FILES=1") :
12029
12030printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
12031 ;; #(
12032  "-n32") :
12033    CC="$CC -n32" ;; #(
12034  *) :
12035    as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
12036esac
12037
12038if test "$enable_year2038" != no
12039then :
12040  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
12041printf %s "checking for $CC option for timestamps after 2038... " >&6; }
12042if test ${ac_cv_sys_year2038_opts+y}
12043then :
12044  printf %s "(cached) " >&6
12045else case e in #(
12046  e) ac_save_CPPFLAGS="$CPPFLAGS"
12047  ac_opt_found=no
12048  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
12049    if test x"$ac_opt" != x"none needed"
12050then :
12051  CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
12052fi
12053    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12054/* end confdefs.h.  */
12055
12056  #include <time.h>
12057  /* Check that time_t can represent 2**32 - 1 correctly.  */
12058  #define LARGE_TIME_T \\
12059    ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
12060  int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
12061                           && LARGE_TIME_T % 65537 == 0)
12062                          ? 1 : -1];
12063
12064int
12065main (void)
12066{
12067
12068  ;
12069  return 0;
12070}
12071_ACEOF
12072if ac_fn_c_try_compile "$LINENO"
12073then :
12074  ac_cv_sys_year2038_opts="$ac_opt"
12075      ac_opt_found=yes
12076fi
12077rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12078    test $ac_opt_found = no || break
12079  done
12080  CPPFLAGS="$ac_save_CPPFLAGS"
12081  test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
12082esac
12083fi
12084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
12085printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
12086
12087ac_have_year2038=yes
12088case $ac_cv_sys_year2038_opts in #(
12089  "none needed") :
12090     ;; #(
12091  "support not detected") :
12092    ac_have_year2038=no ;; #(
12093  "-D_TIME_BITS=64") :
12094
12095printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
12096 ;; #(
12097  "-D__MINGW_USE_VC2005_COMPAT") :
12098
12099printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
12100 ;; #(
12101  "-U_USE_32_BIT_TIME_T"*) :
12102    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12103printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12104as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
12105will stop working after mid-January 2038. Remove
12106_USE_32BIT_TIME_T from the compiler flags.
12107See 'config.log' for more details" "$LINENO" 5; } ;; #(
12108  *) :
12109    as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
12110esac
12111
12112fi
12113
12114fi
12115
12116# Extract the first word of "perl", so it can be a program name with args.
12117set dummy perl; ac_word=$2
12118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12119printf %s "checking for $ac_word... " >&6; }
12120if test ${ac_cv_prog_HAS_PERL+y}
12121then :
12122  printf %s "(cached) " >&6
12123else case e in #(
12124  e) if test -n "$HAS_PERL"; then
12125  ac_cv_prog_HAS_PERL="$HAS_PERL" # Let the user override the test.
12126else
12127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12128for as_dir in $PATH
12129do
12130  IFS=$as_save_IFS
12131  case $as_dir in #(((
12132    '') as_dir=./ ;;
12133    */) ;;
12134    *) as_dir=$as_dir/ ;;
12135  esac
12136    for ac_exec_ext in '' $ac_executable_extensions; do
12137  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12138    ac_cv_prog_HAS_PERL="yes"
12139    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12140    break 2
12141  fi
12142done
12143  done
12144IFS=$as_save_IFS
12145
12146fi ;;
12147esac
12148fi
12149HAS_PERL=$ac_cv_prog_HAS_PERL
12150if test -n "$HAS_PERL"; then
12151  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAS_PERL" >&5
12152printf "%s\n" "$HAS_PERL" >&6; }
12153else
12154  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12155printf "%s\n" "no" >&6; }
12156fi
12157
12158
12159 if test "x$HAS_PERL" = xyes; then
12160  HAS_PERL_TRUE=
12161  HAS_PERL_FALSE='#'
12162else
12163  HAS_PERL_TRUE='#'
12164  HAS_PERL_FALSE=
12165fi
12166
12167
12168
12169
12170DEFAULT_XCONFDIR="${libdir}/X11/config"
12171
12172# Check whether --with-config-dir was given.
12173if test ${with_config_dir+y}
12174then :
12175  withval=$with_config_dir; XCONFDIR="$withval"
12176else case e in #(
12177  e) XCONFDIR="$DEFAULT_XCONFDIR" ;;
12178esac
12179fi
12180
12181
12182
12183DEFAULT_PREPROCESSCMD_MKDEPEND="gcc -E"
12184
12185# Check whether --with-script-preproc-cmd was given.
12186if test ${with_script_preproc_cmd+y}
12187then :
12188  withval=$with_script_preproc_cmd; PREPROCESSCMD_MKDEPEND="$withval"
12189else case e in #(
12190  e) PREPROCESSCMD_MKDEPEND="$DEFAULT_PREPROCESSCMD_MKDEPEND" ;;
12191esac
12192fi
12193
12194
12195
12196DEFAULT_ARCMD="ar clq"
12197
12198# Check whether --with-create-lib-cmd was given.
12199if test ${with_create_lib_cmd+y}
12200then :
12201  withval=$with_create_lib_cmd; ARCMD="$withval"
12202else case e in #(
12203  e) ARCMD="$DEFAULT_ARCMD" ;;
12204esac
12205fi
12206
12207
12208
12209DEFAULT_RANLIB="ranlib"
12210
12211# Check whether --with-clean-lib-cmd was given.
12212if test ${with_clean_lib_cmd+y}
12213then :
12214  withval=$with_clean_lib_cmd; RANLIB="$withval"
12215else case e in #(
12216  e) RANLIB="$DEFAULT_RANLIB" ;;
12217esac
12218fi
12219
12220
12221
12222# Check whether --enable-revpath was given.
12223if test ${enable_revpath+y}
12224then :
12225  enableval=$enable_revpath; BUILD_REVPATH="$enableval"
12226else case e in #(
12227  e) BUILD_REVPATH=yes ;;
12228esac
12229fi
12230
12231 if test "x$BUILD_REVPATH" = xyes; then
12232  BUILD_REVPATH_TRUE=
12233  BUILD_REVPATH_FALSE='#'
12234else
12235  BUILD_REVPATH_TRUE='#'
12236  BUILD_REVPATH_FALSE=
12237fi
12238
12239
12240# Check whether --enable-makeg was given.
12241if test ${enable_makeg+y}
12242then :
12243  enableval=$enable_makeg; BUILD_MAKEG="$enableval"
12244else case e in #(
12245  e) BUILD_MAKEG=yes ;;
12246esac
12247fi
12248
12249 if test "x$BUILD_MAKEG" = xyes; then
12250  BUILD_MAKEG_TRUE=
12251  BUILD_MAKEG_FALSE='#'
12252else
12253  BUILD_MAKEG_TRUE='#'
12254  BUILD_MAKEG_FALSE=
12255fi
12256
12257
12258# Check whether --enable-xmkmf was given.
12259if test ${enable_xmkmf+y}
12260then :
12261  enableval=$enable_xmkmf; BUILD_XMKMF="$enableval"
12262else case e in #(
12263  e) BUILD_XMKMF=yes ;;
12264esac
12265fi
12266
12267 if test "x$BUILD_XMKMF" = xyes; then
12268  BUILD_XMKMF_TRUE=
12269  BUILD_XMKMF_FALSE='#'
12270else
12271  BUILD_XMKMF_TRUE='#'
12272  BUILD_XMKMF_FALSE=
12273fi
12274
12275
12276# Check whether --enable-ccmakedep was given.
12277if test ${enable_ccmakedep+y}
12278then :
12279  enableval=$enable_ccmakedep; BUILD_CCMAKEDEP="$enableval"
12280else case e in #(
12281  e) BUILD_CCMAKEDEP=yes ;;
12282esac
12283fi
12284
12285 if test "x$BUILD_CCMAKEDEP" = xyes; then
12286  BUILD_CCMAKEDEP_TRUE=
12287  BUILD_CCMAKEDEP_FALSE='#'
12288else
12289  BUILD_CCMAKEDEP_TRUE='#'
12290  BUILD_CCMAKEDEP_FALSE=
12291fi
12292
12293
12294# Check whether --enable-mergelib was given.
12295if test ${enable_mergelib+y}
12296then :
12297  enableval=$enable_mergelib; BUILD_MERGELIB="$enableval"
12298else case e in #(
12299  e) BUILD_MERGELIB=yes ;;
12300esac
12301fi
12302
12303 if test "x$BUILD_MERGELIB" = xyes; then
12304  BUILD_MERGELIB_TRUE=
12305  BUILD_MERGELIB_FALSE='#'
12306else
12307  BUILD_MERGELIB_TRUE='#'
12308  BUILD_MERGELIB_FALSE=
12309fi
12310
12311
12312# Check whether --enable-mkdirhier was given.
12313if test ${enable_mkdirhier+y}
12314then :
12315  enableval=$enable_mkdirhier; BUILD_MKDIRHIER="$enableval"
12316else case e in #(
12317  e) BUILD_MKDIRHIER=yes ;;
12318esac
12319fi
12320
12321 if test "x$BUILD_MKDIRHIER" = xyes; then
12322  BUILD_MKDIRHIER_TRUE=
12323  BUILD_MKDIRHIER_FALSE='#'
12324else
12325  BUILD_MKDIRHIER_TRUE='#'
12326  BUILD_MKDIRHIER_FALSE=
12327fi
12328
12329
12330# Check whether --enable-cleanlinks was given.
12331if test ${enable_cleanlinks+y}
12332then :
12333  enableval=$enable_cleanlinks; BUILD_CLEANLINKS="$enableval"
12334else case e in #(
12335  e) BUILD_CLEANLINKS=yes ;;
12336esac
12337fi
12338
12339 if test "x$BUILD_CLEANLINKS" = xyes; then
12340  BUILD_CLEANLINKS_TRUE=
12341  BUILD_CLEANLINKS_FALSE='#'
12342else
12343  BUILD_CLEANLINKS_TRUE='#'
12344  BUILD_CLEANLINKS_FALSE=
12345fi
12346
12347
12348# Check whether --enable-mkhtmlindex was given.
12349if test ${enable_mkhtmlindex+y}
12350then :
12351  enableval=$enable_mkhtmlindex; BUILD_MKHTMLINDEX="$enableval"
12352else case e in #(
12353  e) BUILD_MKHTMLINDEX=yes ;;
12354esac
12355fi
12356
12357 if test "x$BUILD_MKHTMLINDEX" = xyes; then
12358  BUILD_MKHTMLINDEX_TRUE=
12359  BUILD_MKHTMLINDEX_FALSE='#'
12360else
12361  BUILD_MKHTMLINDEX_TRUE='#'
12362  BUILD_MKHTMLINDEX_FALSE=
12363fi
12364
12365
12366# Checks for pkg-config packages
12367
12368pkg_failed=no
12369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XPROTO" >&5
12370printf %s "checking for XPROTO... " >&6; }
12371
12372if test -n "$XPROTO_CFLAGS"; then
12373    pkg_cv_XPROTO_CFLAGS="$XPROTO_CFLAGS"
12374 elif test -n "$PKG_CONFIG"; then
12375    if test -n "$PKG_CONFIG" && \
12376    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
12377  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
12378  ac_status=$?
12379  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12380  test $ac_status = 0; }; then
12381  pkg_cv_XPROTO_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
12382		      test "x$?" != "x0" && pkg_failed=yes
12383else
12384  pkg_failed=yes
12385fi
12386 else
12387    pkg_failed=untried
12388fi
12389if test -n "$XPROTO_LIBS"; then
12390    pkg_cv_XPROTO_LIBS="$XPROTO_LIBS"
12391 elif test -n "$PKG_CONFIG"; then
12392    if test -n "$PKG_CONFIG" && \
12393    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
12394  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
12395  ac_status=$?
12396  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12397  test $ac_status = 0; }; then
12398  pkg_cv_XPROTO_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
12399		      test "x$?" != "x0" && pkg_failed=yes
12400else
12401  pkg_failed=yes
12402fi
12403 else
12404    pkg_failed=untried
12405fi
12406
12407
12408
12409if test $pkg_failed = yes; then
12410   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12411printf "%s\n" "no" >&6; }
12412
12413if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12414        _pkg_short_errors_supported=yes
12415else
12416        _pkg_short_errors_supported=no
12417fi
12418        if test $_pkg_short_errors_supported = yes; then
12419	        XPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto" 2>&1`
12420        else
12421	        XPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto" 2>&1`
12422        fi
12423	# Put the nasty error message in config.log where it belongs
12424	echo "$XPROTO_PKG_ERRORS" >&5
12425
12426	as_fn_error $? "Package requirements (xproto) were not met:
12427
12428$XPROTO_PKG_ERRORS
12429
12430Consider adjusting the PKG_CONFIG_PATH environment variable if you
12431installed software in a non-standard prefix.
12432
12433Alternatively, you may set the environment variables XPROTO_CFLAGS
12434and XPROTO_LIBS to avoid the need to call pkg-config.
12435See the pkg-config man page for more details." "$LINENO" 5
12436elif test $pkg_failed = untried; then
12437     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12438printf "%s\n" "no" >&6; }
12439	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12440printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12441as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12442is in your PATH or set the PKG_CONFIG environment variable to the full
12443path to pkg-config.
12444
12445Alternatively, you may set the environment variables XPROTO_CFLAGS
12446and XPROTO_LIBS to avoid the need to call pkg-config.
12447See the pkg-config man page for more details.
12448
12449To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12450See 'config.log' for more details" "$LINENO" 5; }
12451else
12452	XPROTO_CFLAGS=$pkg_cv_XPROTO_CFLAGS
12453	XPROTO_LIBS=$pkg_cv_XPROTO_LIBS
12454        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12455printf "%s\n" "yes" >&6; }
12456
12457fi
12458
12459ac_config_files="$ac_config_files Makefile"
12460
12461cat >confcache <<\_ACEOF
12462# This file is a shell script that caches the results of configure
12463# tests run on this system so they can be shared between configure
12464# scripts and configure runs, see configure's option --config-cache.
12465# It is not useful on other systems.  If it contains results you don't
12466# want to keep, you may remove or edit it.
12467#
12468# config.status only pays attention to the cache file if you give it
12469# the --recheck option to rerun configure.
12470#
12471# 'ac_cv_env_foo' variables (set or unset) will be overridden when
12472# loading this file, other *unset* 'ac_cv_foo' will be assigned the
12473# following values.
12474
12475_ACEOF
12476
12477# The following way of writing the cache mishandles newlines in values,
12478# but we know of no workaround that is simple, portable, and efficient.
12479# So, we kill variables containing newlines.
12480# Ultrix sh set writes to stderr and can't be redirected directly,
12481# and sets the high bit in the cache file unless we assign to the vars.
12482(
12483  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12484    eval ac_val=\$$ac_var
12485    case $ac_val in #(
12486    *${as_nl}*)
12487      case $ac_var in #(
12488      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12489printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12490      esac
12491      case $ac_var in #(
12492      _ | IFS | as_nl) ;; #(
12493      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12494      *) { eval $ac_var=; unset $ac_var;} ;;
12495      esac ;;
12496    esac
12497  done
12498
12499  (set) 2>&1 |
12500    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12501    *${as_nl}ac_space=\ *)
12502      # 'set' does not quote correctly, so add quotes: double-quote
12503      # substitution turns \\\\ into \\, and sed turns \\ into \.
12504      sed -n \
12505	"s/'/'\\\\''/g;
12506	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12507      ;; #(
12508    *)
12509      # 'set' quotes correctly as required by POSIX, so do not add quotes.
12510      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12511      ;;
12512    esac |
12513    sort
12514) |
12515  sed '
12516     /^ac_cv_env_/b end
12517     t clear
12518     :clear
12519     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12520     t end
12521     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12522     :end' >>confcache
12523if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12524  if test -w "$cache_file"; then
12525    if test "x$cache_file" != "x/dev/null"; then
12526      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12527printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12528      if test ! -f "$cache_file" || test -h "$cache_file"; then
12529	cat confcache >"$cache_file"
12530      else
12531        case $cache_file in #(
12532        */* | ?:*)
12533	  mv -f confcache "$cache_file"$$ &&
12534	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12535        *)
12536	  mv -f confcache "$cache_file" ;;
12537	esac
12538      fi
12539    fi
12540  else
12541    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12542printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12543  fi
12544fi
12545rm -f confcache
12546
12547test "x$prefix" = xNONE && prefix=$ac_default_prefix
12548# Let make expand exec_prefix.
12549test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12550
12551DEFS=-DHAVE_CONFIG_H
12552
12553ac_libobjs=
12554ac_ltlibobjs=
12555U=
12556for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12557  # 1. Remove the extension, and $U if already installed.
12558  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12559  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12560  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12561  #    will be set to the directory where LIBOBJS objects are built.
12562  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12563  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12564done
12565LIBOBJS=$ac_libobjs
12566
12567LTLIBOBJS=$ac_ltlibobjs
12568
12569
12570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12571printf %s "checking that generated files are newer than configure... " >&6; }
12572   if test -n "$am_sleep_pid"; then
12573     # Hide warnings about reused PIDs.
12574     wait $am_sleep_pid 2>/dev/null
12575   fi
12576   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12577printf "%s\n" "done" >&6; }
12578 if test -n "$EXEEXT"; then
12579  am__EXEEXT_TRUE=
12580  am__EXEEXT_FALSE='#'
12581else
12582  am__EXEEXT_TRUE='#'
12583  am__EXEEXT_FALSE=
12584fi
12585
12586if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12587  as_fn_error $? "conditional \"AMDEP\" was never defined.
12588Usually this means the macro was only invoked conditionally." "$LINENO" 5
12589fi
12590if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12591  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12592Usually this means the macro was only invoked conditionally." "$LINENO" 5
12593fi
12594# Check whether --enable-year2038 was given.
12595if test ${enable_year2038+y}
12596then :
12597  enableval=$enable_year2038;
12598fi
12599
12600if test -z "${HAS_PERL_TRUE}" && test -z "${HAS_PERL_FALSE}"; then
12601  as_fn_error $? "conditional \"HAS_PERL\" was never defined.
12602Usually this means the macro was only invoked conditionally." "$LINENO" 5
12603fi
12604if test -z "${BUILD_REVPATH_TRUE}" && test -z "${BUILD_REVPATH_FALSE}"; then
12605  as_fn_error $? "conditional \"BUILD_REVPATH\" was never defined.
12606Usually this means the macro was only invoked conditionally." "$LINENO" 5
12607fi
12608if test -z "${BUILD_MAKEG_TRUE}" && test -z "${BUILD_MAKEG_FALSE}"; then
12609  as_fn_error $? "conditional \"BUILD_MAKEG\" was never defined.
12610Usually this means the macro was only invoked conditionally." "$LINENO" 5
12611fi
12612if test -z "${BUILD_XMKMF_TRUE}" && test -z "${BUILD_XMKMF_FALSE}"; then
12613  as_fn_error $? "conditional \"BUILD_XMKMF\" was never defined.
12614Usually this means the macro was only invoked conditionally." "$LINENO" 5
12615fi
12616if test -z "${BUILD_CCMAKEDEP_TRUE}" && test -z "${BUILD_CCMAKEDEP_FALSE}"; then
12617  as_fn_error $? "conditional \"BUILD_CCMAKEDEP\" was never defined.
12618Usually this means the macro was only invoked conditionally." "$LINENO" 5
12619fi
12620if test -z "${BUILD_MERGELIB_TRUE}" && test -z "${BUILD_MERGELIB_FALSE}"; then
12621  as_fn_error $? "conditional \"BUILD_MERGELIB\" was never defined.
12622Usually this means the macro was only invoked conditionally." "$LINENO" 5
12623fi
12624if test -z "${BUILD_MKDIRHIER_TRUE}" && test -z "${BUILD_MKDIRHIER_FALSE}"; then
12625  as_fn_error $? "conditional \"BUILD_MKDIRHIER\" was never defined.
12626Usually this means the macro was only invoked conditionally." "$LINENO" 5
12627fi
12628if test -z "${BUILD_CLEANLINKS_TRUE}" && test -z "${BUILD_CLEANLINKS_FALSE}"; then
12629  as_fn_error $? "conditional \"BUILD_CLEANLINKS\" was never defined.
12630Usually this means the macro was only invoked conditionally." "$LINENO" 5
12631fi
12632if test -z "${BUILD_MKHTMLINDEX_TRUE}" && test -z "${BUILD_MKHTMLINDEX_FALSE}"; then
12633  as_fn_error $? "conditional \"BUILD_MKHTMLINDEX\" was never defined.
12634Usually this means the macro was only invoked conditionally." "$LINENO" 5
12635fi
12636
12637: "${CONFIG_STATUS=./config.status}"
12638ac_write_fail=0
12639ac_clean_files_save=$ac_clean_files
12640ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12642printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12643as_write_fail=0
12644cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12645#! $SHELL
12646# Generated by $as_me.
12647# Run this file to recreate the current configuration.
12648# Compiler output produced by configure, useful for debugging
12649# configure, is in config.log if it exists.
12650
12651debug=false
12652ac_cs_recheck=false
12653ac_cs_silent=false
12654
12655SHELL=\${CONFIG_SHELL-$SHELL}
12656export SHELL
12657_ASEOF
12658cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12659## -------------------- ##
12660## M4sh Initialization. ##
12661## -------------------- ##
12662
12663# Be more Bourne compatible
12664DUALCASE=1; export DUALCASE # for MKS sh
12665if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12666then :
12667  emulate sh
12668  NULLCMD=:
12669  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12670  # is contrary to our usage.  Disable this feature.
12671  alias -g '${1+"$@"}'='"$@"'
12672  setopt NO_GLOB_SUBST
12673else case e in #(
12674  e) case `(set -o) 2>/dev/null` in #(
12675  *posix*) :
12676    set -o posix ;; #(
12677  *) :
12678     ;;
12679esac ;;
12680esac
12681fi
12682
12683
12684
12685# Reset variables that may have inherited troublesome values from
12686# the environment.
12687
12688# IFS needs to be set, to space, tab, and newline, in precisely that order.
12689# (If _AS_PATH_WALK were called with IFS unset, it would have the
12690# side effect of setting IFS to empty, thus disabling word splitting.)
12691# Quoting is to prevent editors from complaining about space-tab.
12692as_nl='
12693'
12694export as_nl
12695IFS=" ""	$as_nl"
12696
12697PS1='$ '
12698PS2='> '
12699PS4='+ '
12700
12701# Ensure predictable behavior from utilities with locale-dependent output.
12702LC_ALL=C
12703export LC_ALL
12704LANGUAGE=C
12705export LANGUAGE
12706
12707# We cannot yet rely on "unset" to work, but we need these variables
12708# to be unset--not just set to an empty or harmless value--now, to
12709# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
12710# also avoids known problems related to "unset" and subshell syntax
12711# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12712for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12713do eval test \${$as_var+y} \
12714  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12715done
12716
12717# Ensure that fds 0, 1, and 2 are open.
12718if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12719if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12720if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
12721
12722# The user is always right.
12723if ${PATH_SEPARATOR+false} :; then
12724  PATH_SEPARATOR=:
12725  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12726    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12727      PATH_SEPARATOR=';'
12728  }
12729fi
12730
12731
12732# Find who we are.  Look in the path if we contain no directory separator.
12733as_myself=
12734case $0 in #((
12735  *[\\/]* ) as_myself=$0 ;;
12736  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12737for as_dir in $PATH
12738do
12739  IFS=$as_save_IFS
12740  case $as_dir in #(((
12741    '') as_dir=./ ;;
12742    */) ;;
12743    *) as_dir=$as_dir/ ;;
12744  esac
12745    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12746  done
12747IFS=$as_save_IFS
12748
12749     ;;
12750esac
12751# We did not find ourselves, most probably we were run as 'sh COMMAND'
12752# in which case we are not to be found in the path.
12753if test "x$as_myself" = x; then
12754  as_myself=$0
12755fi
12756if test ! -f "$as_myself"; then
12757  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12758  exit 1
12759fi
12760
12761
12762
12763# as_fn_error STATUS ERROR [LINENO LOG_FD]
12764# ----------------------------------------
12765# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12766# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12767# script with STATUS, using 1 if that was 0.
12768as_fn_error ()
12769{
12770  as_status=$1; test $as_status -eq 0 && as_status=1
12771  if test "$4"; then
12772    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12773    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12774  fi
12775  printf "%s\n" "$as_me: error: $2" >&2
12776  as_fn_exit $as_status
12777} # as_fn_error
12778
12779
12780# as_fn_set_status STATUS
12781# -----------------------
12782# Set $? to STATUS, without forking.
12783as_fn_set_status ()
12784{
12785  return $1
12786} # as_fn_set_status
12787
12788# as_fn_exit STATUS
12789# -----------------
12790# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12791as_fn_exit ()
12792{
12793  set +e
12794  as_fn_set_status $1
12795  exit $1
12796} # as_fn_exit
12797
12798# as_fn_unset VAR
12799# ---------------
12800# Portably unset VAR.
12801as_fn_unset ()
12802{
12803  { eval $1=; unset $1;}
12804}
12805as_unset=as_fn_unset
12806
12807# as_fn_append VAR VALUE
12808# ----------------------
12809# Append the text in VALUE to the end of the definition contained in VAR. Take
12810# advantage of any shell optimizations that allow amortized linear growth over
12811# repeated appends, instead of the typical quadratic growth present in naive
12812# implementations.
12813if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12814then :
12815  eval 'as_fn_append ()
12816  {
12817    eval $1+=\$2
12818  }'
12819else case e in #(
12820  e) as_fn_append ()
12821  {
12822    eval $1=\$$1\$2
12823  } ;;
12824esac
12825fi # as_fn_append
12826
12827# as_fn_arith ARG...
12828# ------------------
12829# Perform arithmetic evaluation on the ARGs, and store the result in the
12830# global $as_val. Take advantage of shells that can avoid forks. The arguments
12831# must be portable across $(()) and expr.
12832if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12833then :
12834  eval 'as_fn_arith ()
12835  {
12836    as_val=$(( $* ))
12837  }'
12838else case e in #(
12839  e) as_fn_arith ()
12840  {
12841    as_val=`expr "$@" || test $? -eq 1`
12842  } ;;
12843esac
12844fi # as_fn_arith
12845
12846
12847if expr a : '\(a\)' >/dev/null 2>&1 &&
12848   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12849  as_expr=expr
12850else
12851  as_expr=false
12852fi
12853
12854if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12855  as_basename=basename
12856else
12857  as_basename=false
12858fi
12859
12860if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12861  as_dirname=dirname
12862else
12863  as_dirname=false
12864fi
12865
12866as_me=`$as_basename -- "$0" ||
12867$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12868	 X"$0" : 'X\(//\)$' \| \
12869	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12870printf "%s\n" X/"$0" |
12871    sed '/^.*\/\([^/][^/]*\)\/*$/{
12872	    s//\1/
12873	    q
12874	  }
12875	  /^X\/\(\/\/\)$/{
12876	    s//\1/
12877	    q
12878	  }
12879	  /^X\/\(\/\).*/{
12880	    s//\1/
12881	    q
12882	  }
12883	  s/.*/./; q'`
12884
12885# Avoid depending upon Character Ranges.
12886as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12887as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12888as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12889as_cr_digits='0123456789'
12890as_cr_alnum=$as_cr_Letters$as_cr_digits
12891
12892
12893# Determine whether it's possible to make 'echo' print without a newline.
12894# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12895# for compatibility with existing Makefiles.
12896ECHO_C= ECHO_N= ECHO_T=
12897case `echo -n x` in #(((((
12898-n*)
12899  case `echo 'xy\c'` in
12900  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12901  xy)  ECHO_C='\c';;
12902  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12903       ECHO_T='	';;
12904  esac;;
12905*)
12906  ECHO_N='-n';;
12907esac
12908
12909# For backward compatibility with old third-party macros, we provide
12910# the shell variables $as_echo and $as_echo_n.  New code should use
12911# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12912as_echo='printf %s\n'
12913as_echo_n='printf %s'
12914
12915rm -f conf$$ conf$$.exe conf$$.file
12916if test -d conf$$.dir; then
12917  rm -f conf$$.dir/conf$$.file
12918else
12919  rm -f conf$$.dir
12920  mkdir conf$$.dir 2>/dev/null
12921fi
12922if (echo >conf$$.file) 2>/dev/null; then
12923  if ln -s conf$$.file conf$$ 2>/dev/null; then
12924    as_ln_s='ln -s'
12925    # ... but there are two gotchas:
12926    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12927    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12928    # In both cases, we have to default to 'cp -pR'.
12929    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12930      as_ln_s='cp -pR'
12931  elif ln conf$$.file conf$$ 2>/dev/null; then
12932    as_ln_s=ln
12933  else
12934    as_ln_s='cp -pR'
12935  fi
12936else
12937  as_ln_s='cp -pR'
12938fi
12939rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12940rmdir conf$$.dir 2>/dev/null
12941
12942
12943# as_fn_mkdir_p
12944# -------------
12945# Create "$as_dir" as a directory, including parents if necessary.
12946as_fn_mkdir_p ()
12947{
12948
12949  case $as_dir in #(
12950  -*) as_dir=./$as_dir;;
12951  esac
12952  test -d "$as_dir" || eval $as_mkdir_p || {
12953    as_dirs=
12954    while :; do
12955      case $as_dir in #(
12956      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12957      *) as_qdir=$as_dir;;
12958      esac
12959      as_dirs="'$as_qdir' $as_dirs"
12960      as_dir=`$as_dirname -- "$as_dir" ||
12961$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12962	 X"$as_dir" : 'X\(//\)[^/]' \| \
12963	 X"$as_dir" : 'X\(//\)$' \| \
12964	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12965printf "%s\n" X"$as_dir" |
12966    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12967	    s//\1/
12968	    q
12969	  }
12970	  /^X\(\/\/\)[^/].*/{
12971	    s//\1/
12972	    q
12973	  }
12974	  /^X\(\/\/\)$/{
12975	    s//\1/
12976	    q
12977	  }
12978	  /^X\(\/\).*/{
12979	    s//\1/
12980	    q
12981	  }
12982	  s/.*/./; q'`
12983      test -d "$as_dir" && break
12984    done
12985    test -z "$as_dirs" || eval "mkdir $as_dirs"
12986  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12987
12988
12989} # as_fn_mkdir_p
12990if mkdir -p . 2>/dev/null; then
12991  as_mkdir_p='mkdir -p "$as_dir"'
12992else
12993  test -d ./-p && rmdir ./-p
12994  as_mkdir_p=false
12995fi
12996
12997
12998# as_fn_executable_p FILE
12999# -----------------------
13000# Test if FILE is an executable regular file.
13001as_fn_executable_p ()
13002{
13003  test -f "$1" && test -x "$1"
13004} # as_fn_executable_p
13005as_test_x='test -x'
13006as_executable_p=as_fn_executable_p
13007
13008# Sed expression to map a string onto a valid CPP name.
13009as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
13010as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
13011
13012# Sed expression to map a string onto a valid variable name.
13013as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
13014as_tr_sh="eval sed '$as_sed_sh'" # deprecated
13015
13016
13017exec 6>&1
13018## ----------------------------------- ##
13019## Main body of $CONFIG_STATUS script. ##
13020## ----------------------------------- ##
13021_ASEOF
13022test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13023
13024cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13025# Save the log message, to keep $0 and so on meaningful, and to
13026# report actual input values of CONFIG_FILES etc. instead of their
13027# values after options handling.
13028ac_log="
13029This file was extended by imake $as_me 1.0.10, which was
13030generated by GNU Autoconf 2.72.  Invocation command line was
13031
13032  CONFIG_FILES    = $CONFIG_FILES
13033  CONFIG_HEADERS  = $CONFIG_HEADERS
13034  CONFIG_LINKS    = $CONFIG_LINKS
13035  CONFIG_COMMANDS = $CONFIG_COMMANDS
13036  $ $0 $@
13037
13038on `(hostname || uname -n) 2>/dev/null | sed 1q`
13039"
13040
13041_ACEOF
13042
13043case $ac_config_files in *"
13044"*) set x $ac_config_files; shift; ac_config_files=$*;;
13045esac
13046
13047case $ac_config_headers in *"
13048"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13049esac
13050
13051
13052cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13053# Files that config.status was made for.
13054config_files="$ac_config_files"
13055config_headers="$ac_config_headers"
13056config_commands="$ac_config_commands"
13057
13058_ACEOF
13059
13060cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13061ac_cs_usage="\
13062'$as_me' instantiates files and other configuration actions
13063from templates according to the current configuration.  Unless the files
13064and actions are specified as TAGs, all are instantiated by default.
13065
13066Usage: $0 [OPTION]... [TAG]...
13067
13068  -h, --help       print this help, then exit
13069  -V, --version    print version number and configuration settings, then exit
13070      --config     print configuration, then exit
13071  -q, --quiet, --silent
13072                   do not print progress messages
13073  -d, --debug      don't remove temporary files
13074      --recheck    update $as_me by reconfiguring in the same conditions
13075      --file=FILE[:TEMPLATE]
13076                   instantiate the configuration file FILE
13077      --header=FILE[:TEMPLATE]
13078                   instantiate the configuration header FILE
13079
13080Configuration files:
13081$config_files
13082
13083Configuration headers:
13084$config_headers
13085
13086Configuration commands:
13087$config_commands
13088
13089Report bugs to <https://gitlab.freedesktop.org/xorg/util/imake/-/issues>."
13090
13091_ACEOF
13092ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
13093ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
13094cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13095ac_cs_config='$ac_cs_config_escaped'
13096ac_cs_version="\\
13097imake config.status 1.0.10
13098configured by $0, generated by GNU Autoconf 2.72,
13099  with options \\"\$ac_cs_config\\"
13100
13101Copyright (C) 2023 Free Software Foundation, Inc.
13102This config.status script is free software; the Free Software Foundation
13103gives unlimited permission to copy, distribute and modify it."
13104
13105ac_pwd='$ac_pwd'
13106srcdir='$srcdir'
13107INSTALL='$INSTALL'
13108MKDIR_P='$MKDIR_P'
13109AWK='$AWK'
13110test -n "\$AWK" || AWK=awk
13111_ACEOF
13112
13113cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13114# The default lists apply if the user does not specify any file.
13115ac_need_defaults=:
13116while test $# != 0
13117do
13118  case $1 in
13119  --*=?*)
13120    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13121    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13122    ac_shift=:
13123    ;;
13124  --*=)
13125    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13126    ac_optarg=
13127    ac_shift=:
13128    ;;
13129  *)
13130    ac_option=$1
13131    ac_optarg=$2
13132    ac_shift=shift
13133    ;;
13134  esac
13135
13136  case $ac_option in
13137  # Handling of the options.
13138  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13139    ac_cs_recheck=: ;;
13140  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13141    printf "%s\n" "$ac_cs_version"; exit ;;
13142  --config | --confi | --conf | --con | --co | --c )
13143    printf "%s\n" "$ac_cs_config"; exit ;;
13144  --debug | --debu | --deb | --de | --d | -d )
13145    debug=: ;;
13146  --file | --fil | --fi | --f )
13147    $ac_shift
13148    case $ac_optarg in
13149    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13150    '') as_fn_error $? "missing file argument" ;;
13151    esac
13152    as_fn_append CONFIG_FILES " '$ac_optarg'"
13153    ac_need_defaults=false;;
13154  --header | --heade | --head | --hea )
13155    $ac_shift
13156    case $ac_optarg in
13157    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13158    esac
13159    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13160    ac_need_defaults=false;;
13161  --he | --h)
13162    # Conflict between --help and --header
13163    as_fn_error $? "ambiguous option: '$1'
13164Try '$0 --help' for more information.";;
13165  --help | --hel | -h )
13166    printf "%s\n" "$ac_cs_usage"; exit ;;
13167  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13168  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13169    ac_cs_silent=: ;;
13170
13171  # This is an error.
13172  -*) as_fn_error $? "unrecognized option: '$1'
13173Try '$0 --help' for more information." ;;
13174
13175  *) as_fn_append ac_config_targets " $1"
13176     ac_need_defaults=false ;;
13177
13178  esac
13179  shift
13180done
13181
13182ac_configure_extra_args=
13183
13184if $ac_cs_silent; then
13185  exec 6>/dev/null
13186  ac_configure_extra_args="$ac_configure_extra_args --silent"
13187fi
13188
13189_ACEOF
13190cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13191if \$ac_cs_recheck; then
13192  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13193  shift
13194  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
13195  CONFIG_SHELL='$SHELL'
13196  export CONFIG_SHELL
13197  exec "\$@"
13198fi
13199
13200_ACEOF
13201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13202exec 5>>config.log
13203{
13204  echo
13205  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13206## Running $as_me. ##
13207_ASBOX
13208  printf "%s\n" "$ac_log"
13209} >&5
13210
13211_ACEOF
13212cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13213#
13214# INIT-COMMANDS
13215#
13216AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13217
13218_ACEOF
13219
13220cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13221
13222# Handling of arguments.
13223for ac_config_target in $ac_config_targets
13224do
13225  case $ac_config_target in
13226    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13227    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13228    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13229
13230  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
13231  esac
13232done
13233
13234
13235# If the user did not use the arguments to specify the items to instantiate,
13236# then the envvar interface is used.  Set only those that are not.
13237# We use the long form for the default assignment because of an extremely
13238# bizarre bug on SunOS 4.1.3.
13239if $ac_need_defaults; then
13240  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
13241  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
13242  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
13243fi
13244
13245# Have a temporary directory for convenience.  Make it in the build tree
13246# simply because there is no reason against having it here, and in addition,
13247# creating and moving files from /tmp can sometimes cause problems.
13248# Hook for its removal unless debugging.
13249# Note that there is a small window in which the directory will not be cleaned:
13250# after its creation but before its name has been assigned to '$tmp'.
13251$debug ||
13252{
13253  tmp= ac_tmp=
13254  trap 'exit_status=$?
13255  : "${ac_tmp:=$tmp}"
13256  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13257' 0
13258  trap 'as_fn_exit 1' 1 2 13 15
13259}
13260# Create a (secure) tmp directory for tmp files.
13261
13262{
13263  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13264  test -d "$tmp"
13265}  ||
13266{
13267  tmp=./conf$$-$RANDOM
13268  (umask 077 && mkdir "$tmp")
13269} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13270ac_tmp=$tmp
13271
13272# Set up the scripts for CONFIG_FILES section.
13273# No need to generate them if there are no CONFIG_FILES.
13274# This happens for instance with './config.status config.h'.
13275if test -n "$CONFIG_FILES"; then
13276
13277
13278ac_cr=`echo X | tr X '\015'`
13279# On cygwin, bash can eat \r inside `` if the user requested igncr.
13280# But we know of no other shell where ac_cr would be empty at this
13281# point, so we can use a bashism as a fallback.
13282if test "x$ac_cr" = x; then
13283  eval ac_cr=\$\'\\r\'
13284fi
13285ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13286if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13287  ac_cs_awk_cr='\\r'
13288else
13289  ac_cs_awk_cr=$ac_cr
13290fi
13291
13292echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13293_ACEOF
13294
13295
13296{
13297  echo "cat >conf$$subs.awk <<_ACEOF" &&
13298  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13299  echo "_ACEOF"
13300} >conf$$subs.sh ||
13301  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13302ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13303ac_delim='%!_!# '
13304for ac_last_try in false false false false false :; do
13305  . ./conf$$subs.sh ||
13306    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13307
13308  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13309  if test $ac_delim_n = $ac_delim_num; then
13310    break
13311  elif $ac_last_try; then
13312    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13313  else
13314    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13315  fi
13316done
13317rm -f conf$$subs.sh
13318
13319cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13320cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13321_ACEOF
13322sed -n '
13323h
13324s/^/S["/; s/!.*/"]=/
13325p
13326g
13327s/^[^!]*!//
13328:repl
13329t repl
13330s/'"$ac_delim"'$//
13331t delim
13332:nl
13333h
13334s/\(.\{148\}\)..*/\1/
13335t more1
13336s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13337p
13338n
13339b repl
13340:more1
13341s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13342p
13343g
13344s/.\{148\}//
13345t nl
13346:delim
13347h
13348s/\(.\{148\}\)..*/\1/
13349t more2
13350s/["\\]/\\&/g; s/^/"/; s/$/"/
13351p
13352b
13353:more2
13354s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13355p
13356g
13357s/.\{148\}//
13358t delim
13359' <conf$$subs.awk | sed '
13360/^[^""]/{
13361  N
13362  s/\n//
13363}
13364' >>$CONFIG_STATUS || ac_write_fail=1
13365rm -f conf$$subs.awk
13366cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13367_ACAWK
13368cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13369  for (key in S) S_is_set[key] = 1
13370  FS = ""
13371
13372}
13373{
13374  line = $ 0
13375  nfields = split(line, field, "@")
13376  substed = 0
13377  len = length(field[1])
13378  for (i = 2; i < nfields; i++) {
13379    key = field[i]
13380    keylen = length(key)
13381    if (S_is_set[key]) {
13382      value = S[key]
13383      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13384      len += length(value) + length(field[++i])
13385      substed = 1
13386    } else
13387      len += 1 + keylen
13388  }
13389
13390  print line
13391}
13392
13393_ACAWK
13394_ACEOF
13395cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13396if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13397  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13398else
13399  cat
13400fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13401  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13402_ACEOF
13403
13404# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13405# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13406# trailing colons and then remove the whole line if VPATH becomes empty
13407# (actually we leave an empty line to preserve line numbers).
13408if test "x$srcdir" = x.; then
13409  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13410h
13411s///
13412s/^/:/
13413s/[	 ]*$/:/
13414s/:\$(srcdir):/:/g
13415s/:\${srcdir}:/:/g
13416s/:@srcdir@:/:/g
13417s/^:*//
13418s/:*$//
13419x
13420s/\(=[	 ]*\).*/\1/
13421G
13422s/\n//
13423s/^[^=]*=[	 ]*$//
13424}'
13425fi
13426
13427cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13428fi # test -n "$CONFIG_FILES"
13429
13430# Set up the scripts for CONFIG_HEADERS section.
13431# No need to generate them if there are no CONFIG_HEADERS.
13432# This happens for instance with './config.status Makefile'.
13433if test -n "$CONFIG_HEADERS"; then
13434cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13435BEGIN {
13436_ACEOF
13437
13438# Transform confdefs.h into an awk script 'defines.awk', embedded as
13439# here-document in config.status, that substitutes the proper values into
13440# config.h.in to produce config.h.
13441
13442# Create a delimiter string that does not exist in confdefs.h, to ease
13443# handling of long lines.
13444ac_delim='%!_!# '
13445for ac_last_try in false false :; do
13446  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13447  if test -z "$ac_tt"; then
13448    break
13449  elif $ac_last_try; then
13450    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13451  else
13452    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13453  fi
13454done
13455
13456# For the awk script, D is an array of macro values keyed by name,
13457# likewise P contains macro parameters if any.  Preserve backslash
13458# newline sequences.
13459
13460ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13461sed -n '
13462s/.\{148\}/&'"$ac_delim"'/g
13463t rset
13464:rset
13465s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13466t def
13467d
13468:def
13469s/\\$//
13470t bsnl
13471s/["\\]/\\&/g
13472s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13473D["\1"]=" \3"/p
13474s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13475d
13476:bsnl
13477s/["\\]/\\&/g
13478s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13479D["\1"]=" \3\\\\\\n"\\/p
13480t cont
13481s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13482t cont
13483d
13484:cont
13485n
13486s/.\{148\}/&'"$ac_delim"'/g
13487t clear
13488:clear
13489s/\\$//
13490t bsnlc
13491s/["\\]/\\&/g; s/^/"/; s/$/"/p
13492d
13493:bsnlc
13494s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13495b cont
13496' <confdefs.h | sed '
13497s/'"$ac_delim"'/"\\\
13498"/g' >>$CONFIG_STATUS || ac_write_fail=1
13499
13500cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13501  for (key in D) D_is_set[key] = 1
13502  FS = ""
13503}
13504/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13505  line = \$ 0
13506  split(line, arg, " ")
13507  if (arg[1] == "#") {
13508    defundef = arg[2]
13509    mac1 = arg[3]
13510  } else {
13511    defundef = substr(arg[1], 2)
13512    mac1 = arg[2]
13513  }
13514  split(mac1, mac2, "(") #)
13515  macro = mac2[1]
13516  prefix = substr(line, 1, index(line, defundef) - 1)
13517  if (D_is_set[macro]) {
13518    # Preserve the white space surrounding the "#".
13519    print prefix "define", macro P[macro] D[macro]
13520    next
13521  } else {
13522    # Replace #undef with comments.  This is necessary, for example,
13523    # in the case of _POSIX_SOURCE, which is predefined and required
13524    # on some systems where configure will not decide to define it.
13525    if (defundef == "undef") {
13526      print "/*", prefix defundef, macro, "*/"
13527      next
13528    }
13529  }
13530}
13531{ print }
13532_ACAWK
13533_ACEOF
13534cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13535  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13536fi # test -n "$CONFIG_HEADERS"
13537
13538
13539eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13540shift
13541for ac_tag
13542do
13543  case $ac_tag in
13544  :[FHLC]) ac_mode=$ac_tag; continue;;
13545  esac
13546  case $ac_mode$ac_tag in
13547  :[FHL]*:*);;
13548  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
13549  :[FH]-) ac_tag=-:-;;
13550  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13551  esac
13552  ac_save_IFS=$IFS
13553  IFS=:
13554  set x $ac_tag
13555  IFS=$ac_save_IFS
13556  shift
13557  ac_file=$1
13558  shift
13559
13560  case $ac_mode in
13561  :L) ac_source=$1;;
13562  :[FH])
13563    ac_file_inputs=
13564    for ac_f
13565    do
13566      case $ac_f in
13567      -) ac_f="$ac_tmp/stdin";;
13568      *) # Look for the file first in the build tree, then in the source tree
13569	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13570	 # because $ac_f cannot contain ':'.
13571	 test -f "$ac_f" ||
13572	   case $ac_f in
13573	   [\\/$]*) false;;
13574	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13575	   esac ||
13576	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
13577      esac
13578      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13579      as_fn_append ac_file_inputs " '$ac_f'"
13580    done
13581
13582    # Let's still pretend it is 'configure' which instantiates (i.e., don't
13583    # use $as_me), people would be surprised to read:
13584    #    /* config.h.  Generated by config.status.  */
13585    configure_input='Generated from '`
13586	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13587	`' by configure.'
13588    if test x"$ac_file" != x-; then
13589      configure_input="$ac_file.  $configure_input"
13590      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13591printf "%s\n" "$as_me: creating $ac_file" >&6;}
13592    fi
13593    # Neutralize special characters interpreted by sed in replacement strings.
13594    case $configure_input in #(
13595    *\&* | *\|* | *\\* )
13596       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13597       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13598    *) ac_sed_conf_input=$configure_input;;
13599    esac
13600
13601    case $ac_tag in
13602    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13603      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13604    esac
13605    ;;
13606  esac
13607
13608  ac_dir=`$as_dirname -- "$ac_file" ||
13609$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13610	 X"$ac_file" : 'X\(//\)[^/]' \| \
13611	 X"$ac_file" : 'X\(//\)$' \| \
13612	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13613printf "%s\n" X"$ac_file" |
13614    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13615	    s//\1/
13616	    q
13617	  }
13618	  /^X\(\/\/\)[^/].*/{
13619	    s//\1/
13620	    q
13621	  }
13622	  /^X\(\/\/\)$/{
13623	    s//\1/
13624	    q
13625	  }
13626	  /^X\(\/\).*/{
13627	    s//\1/
13628	    q
13629	  }
13630	  s/.*/./; q'`
13631  as_dir="$ac_dir"; as_fn_mkdir_p
13632  ac_builddir=.
13633
13634case "$ac_dir" in
13635.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13636*)
13637  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13638  # A ".." for each directory in $ac_dir_suffix.
13639  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13640  case $ac_top_builddir_sub in
13641  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13642  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13643  esac ;;
13644esac
13645ac_abs_top_builddir=$ac_pwd
13646ac_abs_builddir=$ac_pwd$ac_dir_suffix
13647# for backward compatibility:
13648ac_top_builddir=$ac_top_build_prefix
13649
13650case $srcdir in
13651  .)  # We are building in place.
13652    ac_srcdir=.
13653    ac_top_srcdir=$ac_top_builddir_sub
13654    ac_abs_top_srcdir=$ac_pwd ;;
13655  [\\/]* | ?:[\\/]* )  # Absolute name.
13656    ac_srcdir=$srcdir$ac_dir_suffix;
13657    ac_top_srcdir=$srcdir
13658    ac_abs_top_srcdir=$srcdir ;;
13659  *) # Relative name.
13660    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13661    ac_top_srcdir=$ac_top_build_prefix$srcdir
13662    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13663esac
13664ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13665
13666
13667  case $ac_mode in
13668  :F)
13669  #
13670  # CONFIG_FILE
13671  #
13672
13673  case $INSTALL in
13674  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13675  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13676  esac
13677  ac_MKDIR_P=$MKDIR_P
13678  case $MKDIR_P in
13679  [\\/$]* | ?:[\\/]* ) ;;
13680  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13681  esac
13682_ACEOF
13683
13684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13685# If the template does not know about datarootdir, expand it.
13686# FIXME: This hack should be removed a few years after 2.60.
13687ac_datarootdir_hack=; ac_datarootdir_seen=
13688ac_sed_dataroot='
13689/datarootdir/ {
13690  p
13691  q
13692}
13693/@datadir@/p
13694/@docdir@/p
13695/@infodir@/p
13696/@localedir@/p
13697/@mandir@/p'
13698case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13699*datarootdir*) ac_datarootdir_seen=yes;;
13700*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13701  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13702printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13703_ACEOF
13704cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13705  ac_datarootdir_hack='
13706  s&@datadir@&$datadir&g
13707  s&@docdir@&$docdir&g
13708  s&@infodir@&$infodir&g
13709  s&@localedir@&$localedir&g
13710  s&@mandir@&$mandir&g
13711  s&\\\${datarootdir}&$datarootdir&g' ;;
13712esac
13713_ACEOF
13714
13715# Neutralize VPATH when '$srcdir' = '.'.
13716# Shell code in configure.ac might set extrasub.
13717# FIXME: do we really want to maintain this feature?
13718cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13719ac_sed_extra="$ac_vpsub
13720$extrasub
13721_ACEOF
13722cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13723:t
13724/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13725s|@configure_input@|$ac_sed_conf_input|;t t
13726s&@top_builddir@&$ac_top_builddir_sub&;t t
13727s&@top_build_prefix@&$ac_top_build_prefix&;t t
13728s&@srcdir@&$ac_srcdir&;t t
13729s&@abs_srcdir@&$ac_abs_srcdir&;t t
13730s&@top_srcdir@&$ac_top_srcdir&;t t
13731s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13732s&@builddir@&$ac_builddir&;t t
13733s&@abs_builddir@&$ac_abs_builddir&;t t
13734s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13735s&@INSTALL@&$ac_INSTALL&;t t
13736s&@MKDIR_P@&$ac_MKDIR_P&;t t
13737$ac_datarootdir_hack
13738"
13739eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13740  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13741
13742test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13743  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13744  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13745      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13746  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13747which seems to be undefined.  Please make sure it is defined" >&5
13748printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13749which seems to be undefined.  Please make sure it is defined" >&2;}
13750
13751  rm -f "$ac_tmp/stdin"
13752  case $ac_file in
13753  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13754  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13755  esac \
13756  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13757 ;;
13758  :H)
13759  #
13760  # CONFIG_HEADER
13761  #
13762  if test x"$ac_file" != x-; then
13763    {
13764      printf "%s\n" "/* $configure_input  */" >&1 \
13765      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13766    } >"$ac_tmp/config.h" \
13767      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13768    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13769      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13770printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13771    else
13772      rm -f "$ac_file"
13773      mv "$ac_tmp/config.h" "$ac_file" \
13774	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13775    fi
13776  else
13777    printf "%s\n" "/* $configure_input  */" >&1 \
13778      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13779      || as_fn_error $? "could not create -" "$LINENO" 5
13780  fi
13781# Compute "$ac_file"'s index in $config_headers.
13782_am_arg="$ac_file"
13783_am_stamp_count=1
13784for _am_header in $config_headers :; do
13785  case $_am_header in
13786    $_am_arg | $_am_arg:* )
13787      break ;;
13788    * )
13789      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13790  esac
13791done
13792echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13793$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13794	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13795	 X"$_am_arg" : 'X\(//\)$' \| \
13796	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13797printf "%s\n" X"$_am_arg" |
13798    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13799	    s//\1/
13800	    q
13801	  }
13802	  /^X\(\/\/\)[^/].*/{
13803	    s//\1/
13804	    q
13805	  }
13806	  /^X\(\/\/\)$/{
13807	    s//\1/
13808	    q
13809	  }
13810	  /^X\(\/\).*/{
13811	    s//\1/
13812	    q
13813	  }
13814	  s/.*/./; q'`/stamp-h$_am_stamp_count
13815 ;;
13816
13817  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13818printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13819 ;;
13820  esac
13821
13822
13823  case $ac_file$ac_mode in
13824    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13825  # Older Autoconf quotes --file arguments for eval, but not when files
13826  # are listed without --file.  Let's play safe and only enable the eval
13827  # if we detect the quoting.
13828  # TODO: see whether this extra hack can be removed once we start
13829  # requiring Autoconf 2.70 or later.
13830  case $CONFIG_FILES in #(
13831  *\'*) :
13832    eval set x "$CONFIG_FILES" ;; #(
13833  *) :
13834    set x $CONFIG_FILES ;; #(
13835  *) :
13836     ;;
13837esac
13838  shift
13839  # Used to flag and report bootstrapping failures.
13840  am_rc=0
13841  for am_mf
13842  do
13843    # Strip MF so we end up with the name of the file.
13844    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13845    # Check whether this is an Automake generated Makefile which includes
13846    # dependency-tracking related rules and includes.
13847    # Grep'ing the whole file directly is not great: AIX grep has a line
13848    # limit of 2048, but all sed's we know have understand at least 4000.
13849    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13850      || continue
13851    am_dirpart=`$as_dirname -- "$am_mf" ||
13852$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13853	 X"$am_mf" : 'X\(//\)[^/]' \| \
13854	 X"$am_mf" : 'X\(//\)$' \| \
13855	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13856printf "%s\n" X"$am_mf" |
13857    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13858	    s//\1/
13859	    q
13860	  }
13861	  /^X\(\/\/\)[^/].*/{
13862	    s//\1/
13863	    q
13864	  }
13865	  /^X\(\/\/\)$/{
13866	    s//\1/
13867	    q
13868	  }
13869	  /^X\(\/\).*/{
13870	    s//\1/
13871	    q
13872	  }
13873	  s/.*/./; q'`
13874    am_filepart=`$as_basename -- "$am_mf" ||
13875$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13876	 X"$am_mf" : 'X\(//\)$' \| \
13877	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13878printf "%s\n" X/"$am_mf" |
13879    sed '/^.*\/\([^/][^/]*\)\/*$/{
13880	    s//\1/
13881	    q
13882	  }
13883	  /^X\/\(\/\/\)$/{
13884	    s//\1/
13885	    q
13886	  }
13887	  /^X\/\(\/\).*/{
13888	    s//\1/
13889	    q
13890	  }
13891	  s/.*/./; q'`
13892    { echo "$as_me:$LINENO: cd "$am_dirpart" \
13893      && sed -e '/# am--include-marker/d' "$am_filepart" \
13894        | $MAKE -f - am--depfiles" >&5
13895   (cd "$am_dirpart" \
13896      && sed -e '/# am--include-marker/d' "$am_filepart" \
13897        | $MAKE -f - am--depfiles) >&5 2>&5
13898   ac_status=$?
13899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900   (exit $ac_status); } || am_rc=$?
13901  done
13902  if test $am_rc -ne 0; then
13903    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13904printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13905as_fn_error $? "Something went wrong bootstrapping makefile fragments
13906    for automatic dependency tracking.  If GNU make was not used, consider
13907    re-running the configure script with MAKE=\"gmake\" (or whatever is
13908    necessary).  You can also try re-running configure with the
13909    '--disable-dependency-tracking' option to at least be able to build
13910    the package (albeit without support for automatic dependency tracking).
13911See 'config.log' for more details" "$LINENO" 5; }
13912  fi
13913  { am_dirpart=; unset am_dirpart;}
13914  { am_filepart=; unset am_filepart;}
13915  { am_mf=; unset am_mf;}
13916  { am_rc=; unset am_rc;}
13917  rm -f conftest-deps.mk
13918}
13919 ;;
13920
13921  esac
13922done # for ac_tag
13923
13924
13925as_fn_exit 0
13926_ACEOF
13927ac_clean_files=$ac_clean_files_save
13928
13929test $ac_write_fail = 0 ||
13930  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13931
13932
13933# configure is writing to config.log, and then calls config.status.
13934# config.status does its own redirection, appending to config.log.
13935# Unfortunately, on DOS this fails, as config.log is still kept open
13936# by configure, so config.status won't be able to write to it; its
13937# output is simply discarded.  So we exec the FD to /dev/null,
13938# effectively closing config.log, so it can be properly (re)opened and
13939# appended to by config.status.  When coming back to configure, we
13940# need to make the FD available again.
13941if test "$no_create" != yes; then
13942  ac_cs_success=:
13943  ac_config_status_args=
13944  test "$silent" = yes &&
13945    ac_config_status_args="$ac_config_status_args --quiet"
13946  exec 5>/dev/null
13947  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13948  exec 5>>config.log
13949  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13950  # would make configure fail if this is the last instruction.
13951  $ac_cs_success || as_fn_exit 1
13952fi
13953if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13954  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13955printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13956fi
13957
13958
13959