configure revision 8d1e6323
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for xsm 1.0.6.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xsm/-/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else case e in #(
29  e) case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as 'sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed 'exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144then :
145  emulate sh
146  NULLCMD=:
147  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148  # is contrary to our usage.  Disable this feature.
149  alias -g '\${1+\"\$@\"}'='\"\$@\"'
150  setopt NO_GLOB_SUBST
151else case e in #(
152  e) case \`(set -o) 2>/dev/null\` in #(
153  *posix*) :
154    set -o posix ;; #(
155  *) :
156     ;;
157esac ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else case e in #(
176  e) exitcode=1; echo positional parameters were not saved. ;;
177esac
178fi
179test x\$exitcode = x0 || exit 1
180blah=\$(echo \$(echo blah))
181test x\"\$blah\" = xblah || exit 1
182test -x / || exit 1"
183  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187test \$(( 1 + 1 )) = 2 || exit 1"
188  if (eval "$as_required") 2>/dev/null
189then :
190  as_have_required=yes
191else case e in #(
192  e) as_have_required=no ;;
193esac
194fi
195  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196then :
197
198else case e in #(
199  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200as_found=false
201for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202do
203  IFS=$as_save_IFS
204  case $as_dir in #(((
205    '') as_dir=./ ;;
206    */) ;;
207    *) as_dir=$as_dir/ ;;
208  esac
209  as_found=:
210  case $as_dir in #(
211	 /*)
212	   for as_base in sh bash ksh sh5; do
213	     # Try only shells that exist, to save several forks.
214	     as_shell=$as_dir$as_base
215	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217then :
218  CONFIG_SHELL=$as_shell as_have_required=yes
219		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220then :
221  break 2
222fi
223fi
224	   done;;
225       esac
226  as_found=false
227done
228IFS=$as_save_IFS
229if $as_found
230then :
231
232else case e in #(
233  e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235then :
236  CONFIG_SHELL=$SHELL as_have_required=yes
237fi ;;
238esac
239fi
240
241
242      if test "x$CONFIG_SHELL" != x
243then :
244  export CONFIG_SHELL
245             # We cannot yet assume a decent shell, so we have to provide a
246# neutralization value for shells without unset; and this also
247# works around shells that cannot unset nonexistent variables.
248# Preserve -v and -x to the replacement shell.
249BASH_ENV=/dev/null
250ENV=/dev/null
251(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252case $- in # ((((
253  *v*x* | *x*v* ) as_opts=-vx ;;
254  *v* ) as_opts=-v ;;
255  *x* ) as_opts=-x ;;
256  * ) as_opts= ;;
257esac
258exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259# Admittedly, this is quite paranoid, since all the known shells bail
260# out after a failed 'exec'.
261printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262exit 255
263fi
264
265    if test x$as_have_required = xno
266then :
267  printf "%s\n" "$0: This script requires a shell more modern than all"
268  printf "%s\n" "$0: the shells that I found on your system."
269  if test ${ZSH_VERSION+y} ; then
270    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272  else
273    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
274$0: https://gitlab.freedesktop.org/xorg/app/xsm/-/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='xsm'
607PACKAGE_TARNAME='xsm'
608PACKAGE_VERSION='1.0.6'
609PACKAGE_STRING='xsm 1.0.6'
610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xsm/-/issues'
611PACKAGE_URL=''
612
613ac_unique_file="Makefile.am"
614# Factoring default headers for most tests.
615ac_includes_default="\
616#include <stddef.h>
617#ifdef HAVE_STDIO_H
618# include <stdio.h>
619#endif
620#ifdef HAVE_STDLIB_H
621# include <stdlib.h>
622#endif
623#ifdef HAVE_STRING_H
624# include <string.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_STRINGS_H
633# include <strings.h>
634#endif
635#ifdef HAVE_SYS_TYPES_H
636# include <sys/types.h>
637#endif
638#ifdef HAVE_SYS_STAT_H
639# include <sys/stat.h>
640#endif
641#ifdef HAVE_UNISTD_H
642# include <unistd.h>
643#endif"
644
645ac_header_c_list=
646ac_subst_vars='am__EXEEXT_FALSE
647am__EXEEXT_TRUE
648LTLIBOBJS
649LIBOBJS
650appdefaultdir
651XSM_LIBS
652XSM_CFLAGS
653RSH
654MAN_SUBSTS
655XORG_MAN_PAGE
656ADMIN_MAN_DIR
657DRIVER_MAN_DIR
658MISC_MAN_DIR
659FILE_MAN_DIR
660LIB_MAN_DIR
661APP_MAN_DIR
662ADMIN_MAN_SUFFIX
663DRIVER_MAN_SUFFIX
664MISC_MAN_SUFFIX
665FILE_MAN_SUFFIX
666LIB_MAN_SUFFIX
667APP_MAN_SUFFIX
668SED
669host_os
670host_vendor
671host_cpu
672host
673build_os
674build_vendor
675build_cpu
676build
677INSTALL_CMD
678PKG_CONFIG_LIBDIR
679PKG_CONFIG_PATH
680PKG_CONFIG
681CHANGELOG_CMD
682STRICT_CFLAGS
683CWARNFLAGS
684BASE_CFLAGS
685am__fastdepCC_FALSE
686am__fastdepCC_TRUE
687CCDEPMODE
688am__nodep
689AMDEPBACKSLASH
690AMDEP_FALSE
691AMDEP_TRUE
692am__include
693DEPDIR
694OBJEXT
695EXEEXT
696ac_ct_CC
697CPPFLAGS
698LDFLAGS
699CFLAGS
700CC
701AM_BACKSLASH
702AM_DEFAULT_VERBOSITY
703AM_DEFAULT_V
704AM_V
705CSCOPE
706ETAGS
707CTAGS
708am__untar
709am__tar
710AMTAR
711am__leading_dot
712SET_MAKE
713AWK
714mkdir_p
715MKDIR_P
716INSTALL_STRIP_PROGRAM
717STRIP
718install_sh
719MAKEINFO
720AUTOHEADER
721AUTOMAKE
722AUTOCONF
723ACLOCAL
724VERSION
725PACKAGE
726CYGPATH_W
727am__isrc
728INSTALL_DATA
729INSTALL_SCRIPT
730INSTALL_PROGRAM
731target_alias
732host_alias
733build_alias
734LIBS
735ECHO_T
736ECHO_N
737ECHO_C
738DEFS
739mandir
740localedir
741libdir
742psdir
743pdfdir
744dvidir
745htmldir
746infodir
747docdir
748oldincludedir
749includedir
750runstatedir
751localstatedir
752sharedstatedir
753sysconfdir
754datadir
755datarootdir
756libexecdir
757sbindir
758bindir
759program_transform_name
760prefix
761exec_prefix
762PACKAGE_URL
763PACKAGE_BUGREPORT
764PACKAGE_STRING
765PACKAGE_VERSION
766PACKAGE_TARNAME
767PACKAGE_NAME
768PATH_SEPARATOR
769SHELL
770am__quote'
771ac_subst_files=''
772ac_user_opts='
773enable_option_checking
774enable_silent_rules
775enable_dependency_tracking
776enable_selective_werror
777enable_strict_compilation
778with_rsh
779with_appdefaultdir
780'
781      ac_precious_vars='build_alias
782host_alias
783target_alias
784CC
785CFLAGS
786LDFLAGS
787LIBS
788CPPFLAGS
789PKG_CONFIG
790PKG_CONFIG_PATH
791PKG_CONFIG_LIBDIR
792XSM_CFLAGS
793XSM_LIBS'
794
795
796# Initialize some variables set by options.
797ac_init_help=
798ac_init_version=false
799ac_unrecognized_opts=
800ac_unrecognized_sep=
801# The variables have the same names as the options, with
802# dashes changed to underlines.
803cache_file=/dev/null
804exec_prefix=NONE
805no_create=
806no_recursion=
807prefix=NONE
808program_prefix=NONE
809program_suffix=NONE
810program_transform_name=s,x,x,
811silent=
812site=
813srcdir=
814verbose=
815x_includes=NONE
816x_libraries=NONE
817
818# Installation directory options.
819# These are left unexpanded so users can "make install exec_prefix=/foo"
820# and all the variables that are supposed to be based on exec_prefix
821# by default will actually change.
822# Use braces instead of parens because sh, perl, etc. also accept them.
823# (The list follows the same order as the GNU Coding Standards.)
824bindir='${exec_prefix}/bin'
825sbindir='${exec_prefix}/sbin'
826libexecdir='${exec_prefix}/libexec'
827datarootdir='${prefix}/share'
828datadir='${datarootdir}'
829sysconfdir='${prefix}/etc'
830sharedstatedir='${prefix}/com'
831localstatedir='${prefix}/var'
832runstatedir='${localstatedir}/run'
833includedir='${prefix}/include'
834oldincludedir='/usr/include'
835docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
836infodir='${datarootdir}/info'
837htmldir='${docdir}'
838dvidir='${docdir}'
839pdfdir='${docdir}'
840psdir='${docdir}'
841libdir='${exec_prefix}/lib'
842localedir='${datarootdir}/locale'
843mandir='${datarootdir}/man'
844
845ac_prev=
846ac_dashdash=
847for ac_option
848do
849  # If the previous option needs an argument, assign it.
850  if test -n "$ac_prev"; then
851    eval $ac_prev=\$ac_option
852    ac_prev=
853    continue
854  fi
855
856  case $ac_option in
857  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
858  *=)   ac_optarg= ;;
859  *)    ac_optarg=yes ;;
860  esac
861
862  case $ac_dashdash$ac_option in
863  --)
864    ac_dashdash=yes ;;
865
866  -bindir | --bindir | --bindi | --bind | --bin | --bi)
867    ac_prev=bindir ;;
868  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
869    bindir=$ac_optarg ;;
870
871  -build | --build | --buil | --bui | --bu)
872    ac_prev=build_alias ;;
873  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874    build_alias=$ac_optarg ;;
875
876  -cache-file | --cache-file | --cache-fil | --cache-fi \
877  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878    ac_prev=cache_file ;;
879  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881    cache_file=$ac_optarg ;;
882
883  --config-cache | -C)
884    cache_file=config.cache ;;
885
886  -datadir | --datadir | --datadi | --datad)
887    ac_prev=datadir ;;
888  -datadir=* | --datadir=* | --datadi=* | --datad=*)
889    datadir=$ac_optarg ;;
890
891  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892  | --dataroo | --dataro | --datar)
893    ac_prev=datarootdir ;;
894  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896    datarootdir=$ac_optarg ;;
897
898  -disable-* | --disable-*)
899    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900    # Reject names that are not valid shell variable names.
901    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902      as_fn_error $? "invalid feature name: '$ac_useropt'"
903    ac_useropt_orig=$ac_useropt
904    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
905    case $ac_user_opts in
906      *"
907"enable_$ac_useropt"
908"*) ;;
909      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910	 ac_unrecognized_sep=', ';;
911    esac
912    eval enable_$ac_useropt=no ;;
913
914  -docdir | --docdir | --docdi | --doc | --do)
915    ac_prev=docdir ;;
916  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917    docdir=$ac_optarg ;;
918
919  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920    ac_prev=dvidir ;;
921  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922    dvidir=$ac_optarg ;;
923
924  -enable-* | --enable-*)
925    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926    # Reject names that are not valid shell variable names.
927    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928      as_fn_error $? "invalid feature name: '$ac_useropt'"
929    ac_useropt_orig=$ac_useropt
930    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
931    case $ac_user_opts in
932      *"
933"enable_$ac_useropt"
934"*) ;;
935      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936	 ac_unrecognized_sep=', ';;
937    esac
938    eval enable_$ac_useropt=\$ac_optarg ;;
939
940  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942  | --exec | --exe | --ex)
943    ac_prev=exec_prefix ;;
944  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946  | --exec=* | --exe=* | --ex=*)
947    exec_prefix=$ac_optarg ;;
948
949  -gas | --gas | --ga | --g)
950    # Obsolete; use --with-gas.
951    with_gas=yes ;;
952
953  -help | --help | --hel | --he | -h)
954    ac_init_help=long ;;
955  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956    ac_init_help=recursive ;;
957  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958    ac_init_help=short ;;
959
960  -host | --host | --hos | --ho)
961    ac_prev=host_alias ;;
962  -host=* | --host=* | --hos=* | --ho=*)
963    host_alias=$ac_optarg ;;
964
965  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966    ac_prev=htmldir ;;
967  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968  | --ht=*)
969    htmldir=$ac_optarg ;;
970
971  -includedir | --includedir | --includedi | --included | --include \
972  | --includ | --inclu | --incl | --inc)
973    ac_prev=includedir ;;
974  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975  | --includ=* | --inclu=* | --incl=* | --inc=*)
976    includedir=$ac_optarg ;;
977
978  -infodir | --infodir | --infodi | --infod | --info | --inf)
979    ac_prev=infodir ;;
980  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981    infodir=$ac_optarg ;;
982
983  -libdir | --libdir | --libdi | --libd)
984    ac_prev=libdir ;;
985  -libdir=* | --libdir=* | --libdi=* | --libd=*)
986    libdir=$ac_optarg ;;
987
988  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989  | --libexe | --libex | --libe)
990    ac_prev=libexecdir ;;
991  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992  | --libexe=* | --libex=* | --libe=*)
993    libexecdir=$ac_optarg ;;
994
995  -localedir | --localedir | --localedi | --localed | --locale)
996    ac_prev=localedir ;;
997  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998    localedir=$ac_optarg ;;
999
1000  -localstatedir | --localstatedir | --localstatedi | --localstated \
1001  | --localstate | --localstat | --localsta | --localst | --locals)
1002    ac_prev=localstatedir ;;
1003  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005    localstatedir=$ac_optarg ;;
1006
1007  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008    ac_prev=mandir ;;
1009  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010    mandir=$ac_optarg ;;
1011
1012  -nfp | --nfp | --nf)
1013    # Obsolete; use --without-fp.
1014    with_fp=no ;;
1015
1016  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017  | --no-cr | --no-c | -n)
1018    no_create=yes ;;
1019
1020  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022    no_recursion=yes ;;
1023
1024  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026  | --oldin | --oldi | --old | --ol | --o)
1027    ac_prev=oldincludedir ;;
1028  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031    oldincludedir=$ac_optarg ;;
1032
1033  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034    ac_prev=prefix ;;
1035  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036    prefix=$ac_optarg ;;
1037
1038  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039  | --program-pre | --program-pr | --program-p)
1040    ac_prev=program_prefix ;;
1041  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043    program_prefix=$ac_optarg ;;
1044
1045  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046  | --program-suf | --program-su | --program-s)
1047    ac_prev=program_suffix ;;
1048  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050    program_suffix=$ac_optarg ;;
1051
1052  -program-transform-name | --program-transform-name \
1053  | --program-transform-nam | --program-transform-na \
1054  | --program-transform-n | --program-transform- \
1055  | --program-transform | --program-transfor \
1056  | --program-transfo | --program-transf \
1057  | --program-trans | --program-tran \
1058  | --progr-tra | --program-tr | --program-t)
1059    ac_prev=program_transform_name ;;
1060  -program-transform-name=* | --program-transform-name=* \
1061  | --program-transform-nam=* | --program-transform-na=* \
1062  | --program-transform-n=* | --program-transform-=* \
1063  | --program-transform=* | --program-transfor=* \
1064  | --program-transfo=* | --program-transf=* \
1065  | --program-trans=* | --program-tran=* \
1066  | --progr-tra=* | --program-tr=* | --program-t=*)
1067    program_transform_name=$ac_optarg ;;
1068
1069  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070    ac_prev=pdfdir ;;
1071  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072    pdfdir=$ac_optarg ;;
1073
1074  -psdir | --psdir | --psdi | --psd | --ps)
1075    ac_prev=psdir ;;
1076  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077    psdir=$ac_optarg ;;
1078
1079  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080  | -silent | --silent | --silen | --sile | --sil)
1081    silent=yes ;;
1082
1083  -runstatedir | --runstatedir | --runstatedi | --runstated \
1084  | --runstate | --runstat | --runsta | --runst | --runs \
1085  | --run | --ru | --r)
1086    ac_prev=runstatedir ;;
1087  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1088  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1089  | --run=* | --ru=* | --r=*)
1090    runstatedir=$ac_optarg ;;
1091
1092  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093    ac_prev=sbindir ;;
1094  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095  | --sbi=* | --sb=*)
1096    sbindir=$ac_optarg ;;
1097
1098  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100  | --sharedst | --shareds | --shared | --share | --shar \
1101  | --sha | --sh)
1102    ac_prev=sharedstatedir ;;
1103  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106  | --sha=* | --sh=*)
1107    sharedstatedir=$ac_optarg ;;
1108
1109  -site | --site | --sit)
1110    ac_prev=site ;;
1111  -site=* | --site=* | --sit=*)
1112    site=$ac_optarg ;;
1113
1114  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115    ac_prev=srcdir ;;
1116  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117    srcdir=$ac_optarg ;;
1118
1119  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120  | --syscon | --sysco | --sysc | --sys | --sy)
1121    ac_prev=sysconfdir ;;
1122  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124    sysconfdir=$ac_optarg ;;
1125
1126  -target | --target | --targe | --targ | --tar | --ta | --t)
1127    ac_prev=target_alias ;;
1128  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129    target_alias=$ac_optarg ;;
1130
1131  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132    verbose=yes ;;
1133
1134  -version | --version | --versio | --versi | --vers | -V)
1135    ac_init_version=: ;;
1136
1137  -with-* | --with-*)
1138    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139    # Reject names that are not valid shell variable names.
1140    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141      as_fn_error $? "invalid package name: '$ac_useropt'"
1142    ac_useropt_orig=$ac_useropt
1143    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1144    case $ac_user_opts in
1145      *"
1146"with_$ac_useropt"
1147"*) ;;
1148      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1149	 ac_unrecognized_sep=', ';;
1150    esac
1151    eval with_$ac_useropt=\$ac_optarg ;;
1152
1153  -without-* | --without-*)
1154    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1155    # Reject names that are not valid shell variable names.
1156    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157      as_fn_error $? "invalid package name: '$ac_useropt'"
1158    ac_useropt_orig=$ac_useropt
1159    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1160    case $ac_user_opts in
1161      *"
1162"with_$ac_useropt"
1163"*) ;;
1164      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1165	 ac_unrecognized_sep=', ';;
1166    esac
1167    eval with_$ac_useropt=no ;;
1168
1169  --x)
1170    # Obsolete; use --with-x.
1171    with_x=yes ;;
1172
1173  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1174  | --x-incl | --x-inc | --x-in | --x-i)
1175    ac_prev=x_includes ;;
1176  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1177  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1178    x_includes=$ac_optarg ;;
1179
1180  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1181  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1182    ac_prev=x_libraries ;;
1183  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1184  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1185    x_libraries=$ac_optarg ;;
1186
1187  -*) as_fn_error $? "unrecognized option: '$ac_option'
1188Try '$0 --help' for more information"
1189    ;;
1190
1191  *=*)
1192    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193    # Reject names that are not valid shell variable names.
1194    case $ac_envvar in #(
1195      '' | [0-9]* | *[!_$as_cr_alnum]* )
1196      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1197    esac
1198    eval $ac_envvar=\$ac_optarg
1199    export $ac_envvar ;;
1200
1201  *)
1202    # FIXME: should be removed in autoconf 3.0.
1203    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1204    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1205      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1206    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1207    ;;
1208
1209  esac
1210done
1211
1212if test -n "$ac_prev"; then
1213  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1214  as_fn_error $? "missing argument to $ac_option"
1215fi
1216
1217if test -n "$ac_unrecognized_opts"; then
1218  case $enable_option_checking in
1219    no) ;;
1220    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1221    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1222  esac
1223fi
1224
1225# Check all directory arguments for consistency.
1226for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1227		datadir sysconfdir sharedstatedir localstatedir includedir \
1228		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1229		libdir localedir mandir runstatedir
1230do
1231  eval ac_val=\$$ac_var
1232  # Remove trailing slashes.
1233  case $ac_val in
1234    */ )
1235      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1236      eval $ac_var=\$ac_val;;
1237  esac
1238  # Be sure to have absolute directory names.
1239  case $ac_val in
1240    [\\/$]* | ?:[\\/]* )  continue;;
1241    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1242  esac
1243  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1244done
1245
1246# There might be people who depend on the old broken behavior: '$host'
1247# used to hold the argument of --host etc.
1248# FIXME: To remove some day.
1249build=$build_alias
1250host=$host_alias
1251target=$target_alias
1252
1253# FIXME: To remove some day.
1254if test "x$host_alias" != x; then
1255  if test "x$build_alias" = x; then
1256    cross_compiling=maybe
1257  elif test "x$build_alias" != "x$host_alias"; then
1258    cross_compiling=yes
1259  fi
1260fi
1261
1262ac_tool_prefix=
1263test -n "$host_alias" && ac_tool_prefix=$host_alias-
1264
1265test "$silent" = yes && exec 6>/dev/null
1266
1267
1268ac_pwd=`pwd` && test -n "$ac_pwd" &&
1269ac_ls_di=`ls -di .` &&
1270ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1271  as_fn_error $? "working directory cannot be determined"
1272test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1273  as_fn_error $? "pwd does not report name of working directory"
1274
1275
1276# Find the source files, if location was not specified.
1277if test -z "$srcdir"; then
1278  ac_srcdir_defaulted=yes
1279  # Try the directory containing this script, then the parent directory.
1280  ac_confdir=`$as_dirname -- "$as_myself" ||
1281$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1282	 X"$as_myself" : 'X\(//\)[^/]' \| \
1283	 X"$as_myself" : 'X\(//\)$' \| \
1284	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1285printf "%s\n" X"$as_myself" |
1286    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1287	    s//\1/
1288	    q
1289	  }
1290	  /^X\(\/\/\)[^/].*/{
1291	    s//\1/
1292	    q
1293	  }
1294	  /^X\(\/\/\)$/{
1295	    s//\1/
1296	    q
1297	  }
1298	  /^X\(\/\).*/{
1299	    s//\1/
1300	    q
1301	  }
1302	  s/.*/./; q'`
1303  srcdir=$ac_confdir
1304  if test ! -r "$srcdir/$ac_unique_file"; then
1305    srcdir=..
1306  fi
1307else
1308  ac_srcdir_defaulted=no
1309fi
1310if test ! -r "$srcdir/$ac_unique_file"; then
1311  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1312  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1313fi
1314ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1315ac_abs_confdir=`(
1316	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1317	pwd)`
1318# When building in place, set srcdir=.
1319if test "$ac_abs_confdir" = "$ac_pwd"; then
1320  srcdir=.
1321fi
1322# Remove unnecessary trailing slashes from srcdir.
1323# Double slashes in file names in object file debugging info
1324# mess up M-x gdb in Emacs.
1325case $srcdir in
1326*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1327esac
1328for ac_var in $ac_precious_vars; do
1329  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1330  eval ac_env_${ac_var}_value=\$${ac_var}
1331  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1332  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1333done
1334
1335#
1336# Report the --help message.
1337#
1338if test "$ac_init_help" = "long"; then
1339  # Omit some internal or obsolete options to make the list less imposing.
1340  # This message is too long to be a string in the A/UX 3.1 sh.
1341  cat <<_ACEOF
1342'configure' configures xsm 1.0.6 to adapt to many kinds of systems.
1343
1344Usage: $0 [OPTION]... [VAR=VALUE]...
1345
1346To assign environment variables (e.g., CC, CFLAGS...), specify them as
1347VAR=VALUE.  See below for descriptions of some of the useful variables.
1348
1349Defaults for the options are specified in brackets.
1350
1351Configuration:
1352  -h, --help              display this help and exit
1353      --help=short        display options specific to this package
1354      --help=recursive    display the short help of all the included packages
1355  -V, --version           display version information and exit
1356  -q, --quiet, --silent   do not print 'checking ...' messages
1357      --cache-file=FILE   cache test results in FILE [disabled]
1358  -C, --config-cache      alias for '--cache-file=config.cache'
1359  -n, --no-create         do not create output files
1360      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1361
1362Installation directories:
1363  --prefix=PREFIX         install architecture-independent files in PREFIX
1364                          [$ac_default_prefix]
1365  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1366                          [PREFIX]
1367
1368By default, 'make install' will install all the files in
1369'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1370an installation prefix other than '$ac_default_prefix' using '--prefix',
1371for instance '--prefix=\$HOME'.
1372
1373For better control, use the options below.
1374
1375Fine tuning of the installation directories:
1376  --bindir=DIR            user executables [EPREFIX/bin]
1377  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1378  --libexecdir=DIR        program executables [EPREFIX/libexec]
1379  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1380  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1381  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1382  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1383  --libdir=DIR            object code libraries [EPREFIX/lib]
1384  --includedir=DIR        C header files [PREFIX/include]
1385  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1386  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1387  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1388  --infodir=DIR           info documentation [DATAROOTDIR/info]
1389  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1390  --mandir=DIR            man documentation [DATAROOTDIR/man]
1391  --docdir=DIR            documentation root [DATAROOTDIR/doc/xsm]
1392  --htmldir=DIR           html documentation [DOCDIR]
1393  --dvidir=DIR            dvi documentation [DOCDIR]
1394  --pdfdir=DIR            pdf documentation [DOCDIR]
1395  --psdir=DIR             ps documentation [DOCDIR]
1396_ACEOF
1397
1398  cat <<\_ACEOF
1399
1400Program names:
1401  --program-prefix=PREFIX            prepend PREFIX to installed program names
1402  --program-suffix=SUFFIX            append SUFFIX to installed program names
1403  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1404
1405System types:
1406  --build=BUILD     configure for building on BUILD [guessed]
1407  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1408_ACEOF
1409fi
1410
1411if test -n "$ac_init_help"; then
1412  case $ac_init_help in
1413     short | recursive ) echo "Configuration of xsm 1.0.6:";;
1414   esac
1415  cat <<\_ACEOF
1416
1417Optional Features:
1418  --disable-option-checking  ignore unrecognized --enable/--with options
1419  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1420  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1421  --enable-silent-rules   less verbose build output (undo: "make V=1")
1422  --disable-silent-rules  verbose build output (undo: "make V=0")
1423  --enable-dependency-tracking
1424                          do not reject slow dependency extractors
1425  --disable-dependency-tracking
1426                          speeds up one-time build
1427  --disable-selective-werror
1428                          Turn off selective compiler errors. (default:
1429                          enabled)
1430  --enable-strict-compilation
1431                          Enable all warnings from compiler and make them
1432                          errors (default: disabled)
1433
1434Optional Packages:
1435  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1436  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1437  --with-rsh=PATH         Rsh command to use (default: $bindir/ssh)
1438  --with-appdefaultdir=<pathname>
1439                          specify directory for app-defaults files (default is
1440                          autodetected)
1441
1442Some influential environment variables:
1443  CC          C compiler command
1444  CFLAGS      C compiler flags
1445  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1446              nonstandard directory <lib dir>
1447  LIBS        libraries to pass to the linker, e.g. -l<library>
1448  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1449              you have headers in a nonstandard directory <include dir>
1450  PKG_CONFIG  path to pkg-config utility
1451  PKG_CONFIG_PATH
1452              directories to add to pkg-config's search path
1453  PKG_CONFIG_LIBDIR
1454              path overriding pkg-config's built-in search path
1455  XSM_CFLAGS  C compiler flags for XSM, overriding pkg-config
1456  XSM_LIBS    linker flags for XSM, overriding pkg-config
1457
1458Use these variables to override the choices made by 'configure' or to help
1459it to find libraries and programs with nonstandard names/locations.
1460
1461Report bugs to <https://gitlab.freedesktop.org/xorg/app/xsm/-/issues>.
1462_ACEOF
1463ac_status=$?
1464fi
1465
1466if test "$ac_init_help" = "recursive"; then
1467  # If there are subdirs, report their specific --help.
1468  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1469    test -d "$ac_dir" ||
1470      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1471      continue
1472    ac_builddir=.
1473
1474case "$ac_dir" in
1475.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476*)
1477  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1478  # A ".." for each directory in $ac_dir_suffix.
1479  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1480  case $ac_top_builddir_sub in
1481  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1483  esac ;;
1484esac
1485ac_abs_top_builddir=$ac_pwd
1486ac_abs_builddir=$ac_pwd$ac_dir_suffix
1487# for backward compatibility:
1488ac_top_builddir=$ac_top_build_prefix
1489
1490case $srcdir in
1491  .)  # We are building in place.
1492    ac_srcdir=.
1493    ac_top_srcdir=$ac_top_builddir_sub
1494    ac_abs_top_srcdir=$ac_pwd ;;
1495  [\\/]* | ?:[\\/]* )  # Absolute name.
1496    ac_srcdir=$srcdir$ac_dir_suffix;
1497    ac_top_srcdir=$srcdir
1498    ac_abs_top_srcdir=$srcdir ;;
1499  *) # Relative name.
1500    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1501    ac_top_srcdir=$ac_top_build_prefix$srcdir
1502    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1503esac
1504ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1505
1506    cd "$ac_dir" || { ac_status=$?; continue; }
1507    # Check for configure.gnu first; this name is used for a wrapper for
1508    # Metaconfig's "Configure" on case-insensitive file systems.
1509    if test -f "$ac_srcdir/configure.gnu"; then
1510      echo &&
1511      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1512    elif test -f "$ac_srcdir/configure"; then
1513      echo &&
1514      $SHELL "$ac_srcdir/configure" --help=recursive
1515    else
1516      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1517    fi || ac_status=$?
1518    cd "$ac_pwd" || { ac_status=$?; break; }
1519  done
1520fi
1521
1522test -n "$ac_init_help" && exit $ac_status
1523if $ac_init_version; then
1524  cat <<\_ACEOF
1525xsm configure 1.0.6
1526generated by GNU Autoconf 2.72
1527
1528Copyright (C) 2023 Free Software Foundation, Inc.
1529This configure script is free software; the Free Software Foundation
1530gives unlimited permission to copy, distribute and modify it.
1531_ACEOF
1532  exit
1533fi
1534
1535## ------------------------ ##
1536## Autoconf initialization. ##
1537## ------------------------ ##
1538
1539# ac_fn_c_try_compile LINENO
1540# --------------------------
1541# Try to compile conftest.$ac_ext, and return whether this succeeded.
1542ac_fn_c_try_compile ()
1543{
1544  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545  rm -f conftest.$ac_objext conftest.beam
1546  if { { ac_try="$ac_compile"
1547case "(($ac_try" in
1548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549  *) ac_try_echo=$ac_try;;
1550esac
1551eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552printf "%s\n" "$ac_try_echo"; } >&5
1553  (eval "$ac_compile") 2>conftest.err
1554  ac_status=$?
1555  if test -s conftest.err; then
1556    grep -v '^ *+' conftest.err >conftest.er1
1557    cat conftest.er1 >&5
1558    mv -f conftest.er1 conftest.err
1559  fi
1560  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561  test $ac_status = 0; } && {
1562	 test -z "$ac_c_werror_flag" ||
1563	 test ! -s conftest.err
1564       } && test -s conftest.$ac_objext
1565then :
1566  ac_retval=0
1567else case e in #(
1568  e) printf "%s\n" "$as_me: failed program was:" >&5
1569sed 's/^/| /' conftest.$ac_ext >&5
1570
1571	ac_retval=1 ;;
1572esac
1573fi
1574  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575  as_fn_set_status $ac_retval
1576
1577} # ac_fn_c_try_compile
1578
1579# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1580# ------------------------------------------------------------------
1581# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1582# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1583ac_fn_check_decl ()
1584{
1585  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586  as_decl_name=`echo $2|sed 's/ *(.*//'`
1587  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1588printf %s "checking whether $as_decl_name is declared... " >&6; }
1589if eval test \${$3+y}
1590then :
1591  printf %s "(cached) " >&6
1592else case e in #(
1593  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1594  eval ac_save_FLAGS=\$$6
1595  as_fn_append $6 " $5"
1596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1597/* end confdefs.h.  */
1598$4
1599int
1600main (void)
1601{
1602#ifndef $as_decl_name
1603#ifdef __cplusplus
1604  (void) $as_decl_use;
1605#else
1606  (void) $as_decl_name;
1607#endif
1608#endif
1609
1610  ;
1611  return 0;
1612}
1613_ACEOF
1614if ac_fn_c_try_compile "$LINENO"
1615then :
1616  eval "$3=yes"
1617else case e in #(
1618  e) eval "$3=no" ;;
1619esac
1620fi
1621rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1622  eval $6=\$ac_save_FLAGS
1623 ;;
1624esac
1625fi
1626eval ac_res=\$$3
1627	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1628printf "%s\n" "$ac_res" >&6; }
1629  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630
1631} # ac_fn_check_decl
1632
1633# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1634# -------------------------------------------------------
1635# Tests whether HEADER exists and can be compiled using the include files in
1636# INCLUDES, setting the cache variable VAR accordingly.
1637ac_fn_c_check_header_compile ()
1638{
1639  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1641printf %s "checking for $2... " >&6; }
1642if eval test \${$3+y}
1643then :
1644  printf %s "(cached) " >&6
1645else case e in #(
1646  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1647/* end confdefs.h.  */
1648$4
1649#include <$2>
1650_ACEOF
1651if ac_fn_c_try_compile "$LINENO"
1652then :
1653  eval "$3=yes"
1654else case e in #(
1655  e) eval "$3=no" ;;
1656esac
1657fi
1658rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1659esac
1660fi
1661eval ac_res=\$$3
1662	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1663printf "%s\n" "$ac_res" >&6; }
1664  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665
1666} # ac_fn_c_check_header_compile
1667
1668# ac_fn_c_try_link LINENO
1669# -----------------------
1670# Try to link conftest.$ac_ext, and return whether this succeeded.
1671ac_fn_c_try_link ()
1672{
1673  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1675  if { { ac_try="$ac_link"
1676case "(($ac_try" in
1677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678  *) ac_try_echo=$ac_try;;
1679esac
1680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681printf "%s\n" "$ac_try_echo"; } >&5
1682  (eval "$ac_link") 2>conftest.err
1683  ac_status=$?
1684  if test -s conftest.err; then
1685    grep -v '^ *+' conftest.err >conftest.er1
1686    cat conftest.er1 >&5
1687    mv -f conftest.er1 conftest.err
1688  fi
1689  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690  test $ac_status = 0; } && {
1691	 test -z "$ac_c_werror_flag" ||
1692	 test ! -s conftest.err
1693       } && test -s conftest$ac_exeext && {
1694	 test "$cross_compiling" = yes ||
1695	 test -x conftest$ac_exeext
1696       }
1697then :
1698  ac_retval=0
1699else case e in #(
1700  e) printf "%s\n" "$as_me: failed program was:" >&5
1701sed 's/^/| /' conftest.$ac_ext >&5
1702
1703	ac_retval=1 ;;
1704esac
1705fi
1706  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1707  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1708  # interfere with the next link command; also delete a directory that is
1709  # left behind by Apple's compiler.  We do this before executing the actions.
1710  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712  as_fn_set_status $ac_retval
1713
1714} # ac_fn_c_try_link
1715
1716# ac_fn_c_check_func LINENO FUNC VAR
1717# ----------------------------------
1718# Tests whether FUNC exists, setting the cache variable VAR accordingly
1719ac_fn_c_check_func ()
1720{
1721  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723printf %s "checking for $2... " >&6; }
1724if eval test \${$3+y}
1725then :
1726  printf %s "(cached) " >&6
1727else case e in #(
1728  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729/* end confdefs.h.  */
1730/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1731   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1732#define $2 innocuous_$2
1733
1734/* System header to define __stub macros and hopefully few prototypes,
1735   which can conflict with char $2 (void); below.  */
1736
1737#include <limits.h>
1738#undef $2
1739
1740/* Override any GCC internal prototype to avoid an error.
1741   Use char because int might match the return type of a GCC
1742   builtin and then its argument prototype would still apply.  */
1743#ifdef __cplusplus
1744extern "C"
1745#endif
1746char $2 (void);
1747/* The GNU C library defines this for functions which it implements
1748    to always fail with ENOSYS.  Some functions are actually named
1749    something starting with __ and the normal name is an alias.  */
1750#if defined __stub_$2 || defined __stub___$2
1751choke me
1752#endif
1753
1754int
1755main (void)
1756{
1757return $2 ();
1758  ;
1759  return 0;
1760}
1761_ACEOF
1762if ac_fn_c_try_link "$LINENO"
1763then :
1764  eval "$3=yes"
1765else case e in #(
1766  e) eval "$3=no" ;;
1767esac
1768fi
1769rm -f core conftest.err conftest.$ac_objext conftest.beam \
1770    conftest$ac_exeext conftest.$ac_ext ;;
1771esac
1772fi
1773eval ac_res=\$$3
1774	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775printf "%s\n" "$ac_res" >&6; }
1776  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777
1778} # ac_fn_c_check_func
1779ac_configure_args_raw=
1780for ac_arg
1781do
1782  case $ac_arg in
1783  *\'*)
1784    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1785  esac
1786  as_fn_append ac_configure_args_raw " '$ac_arg'"
1787done
1788
1789case $ac_configure_args_raw in
1790  *$as_nl*)
1791    ac_safe_unquote= ;;
1792  *)
1793    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1794    ac_unsafe_a="$ac_unsafe_z#~"
1795    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1796    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1797esac
1798
1799cat >config.log <<_ACEOF
1800This file contains any messages produced by compilers while
1801running configure, to aid debugging if configure makes a mistake.
1802
1803It was created by xsm $as_me 1.0.6, which was
1804generated by GNU Autoconf 2.72.  Invocation command line was
1805
1806  $ $0$ac_configure_args_raw
1807
1808_ACEOF
1809exec 5>>config.log
1810{
1811cat <<_ASUNAME
1812## --------- ##
1813## Platform. ##
1814## --------- ##
1815
1816hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1817uname -m = `(uname -m) 2>/dev/null || echo unknown`
1818uname -r = `(uname -r) 2>/dev/null || echo unknown`
1819uname -s = `(uname -s) 2>/dev/null || echo unknown`
1820uname -v = `(uname -v) 2>/dev/null || echo unknown`
1821
1822/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1823/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1824
1825/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1826/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1827/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1828/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1829/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1830/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1831/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1832
1833_ASUNAME
1834
1835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836for as_dir in $PATH
1837do
1838  IFS=$as_save_IFS
1839  case $as_dir in #(((
1840    '') as_dir=./ ;;
1841    */) ;;
1842    *) as_dir=$as_dir/ ;;
1843  esac
1844    printf "%s\n" "PATH: $as_dir"
1845  done
1846IFS=$as_save_IFS
1847
1848} >&5
1849
1850cat >&5 <<_ACEOF
1851
1852
1853## ----------- ##
1854## Core tests. ##
1855## ----------- ##
1856
1857_ACEOF
1858
1859
1860# Keep a trace of the command line.
1861# Strip out --no-create and --no-recursion so they do not pile up.
1862# Strip out --silent because we don't want to record it for future runs.
1863# Also quote any args containing shell meta-characters.
1864# Make two passes to allow for proper duplicate-argument suppression.
1865ac_configure_args=
1866ac_configure_args0=
1867ac_configure_args1=
1868ac_must_keep_next=false
1869for ac_pass in 1 2
1870do
1871  for ac_arg
1872  do
1873    case $ac_arg in
1874    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1875    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1876    | -silent | --silent | --silen | --sile | --sil)
1877      continue ;;
1878    *\'*)
1879      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1880    esac
1881    case $ac_pass in
1882    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1883    2)
1884      as_fn_append ac_configure_args1 " '$ac_arg'"
1885      if test $ac_must_keep_next = true; then
1886	ac_must_keep_next=false # Got value, back to normal.
1887      else
1888	case $ac_arg in
1889	  *=* | --config-cache | -C | -disable-* | --disable-* \
1890	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1891	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1892	  | -with-* | --with-* | -without-* | --without-* | --x)
1893	    case "$ac_configure_args0 " in
1894	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1895	    esac
1896	    ;;
1897	  -* ) ac_must_keep_next=true ;;
1898	esac
1899      fi
1900      as_fn_append ac_configure_args " '$ac_arg'"
1901      ;;
1902    esac
1903  done
1904done
1905{ ac_configure_args0=; unset ac_configure_args0;}
1906{ ac_configure_args1=; unset ac_configure_args1;}
1907
1908# When interrupted or exit'd, cleanup temporary files, and complete
1909# config.log.  We remove comments because anyway the quotes in there
1910# would cause problems or look ugly.
1911# WARNING: Use '\'' to represent an apostrophe within the trap.
1912# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1913trap 'exit_status=$?
1914  # Sanitize IFS.
1915  IFS=" ""	$as_nl"
1916  # Save into config.log some information that might help in debugging.
1917  {
1918    echo
1919
1920    printf "%s\n" "## ---------------- ##
1921## Cache variables. ##
1922## ---------------- ##"
1923    echo
1924    # The following way of writing the cache mishandles newlines in values,
1925(
1926  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1927    eval ac_val=\$$ac_var
1928    case $ac_val in #(
1929    *${as_nl}*)
1930      case $ac_var in #(
1931      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1932printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1933      esac
1934      case $ac_var in #(
1935      _ | IFS | as_nl) ;; #(
1936      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1937      *) { eval $ac_var=; unset $ac_var;} ;;
1938      esac ;;
1939    esac
1940  done
1941  (set) 2>&1 |
1942    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1943    *${as_nl}ac_space=\ *)
1944      sed -n \
1945	"s/'\''/'\''\\\\'\'''\''/g;
1946	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1947      ;; #(
1948    *)
1949      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1950      ;;
1951    esac |
1952    sort
1953)
1954    echo
1955
1956    printf "%s\n" "## ----------------- ##
1957## Output variables. ##
1958## ----------------- ##"
1959    echo
1960    for ac_var in $ac_subst_vars
1961    do
1962      eval ac_val=\$$ac_var
1963      case $ac_val in
1964      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1965      esac
1966      printf "%s\n" "$ac_var='\''$ac_val'\''"
1967    done | sort
1968    echo
1969
1970    if test -n "$ac_subst_files"; then
1971      printf "%s\n" "## ------------------- ##
1972## File substitutions. ##
1973## ------------------- ##"
1974      echo
1975      for ac_var in $ac_subst_files
1976      do
1977	eval ac_val=\$$ac_var
1978	case $ac_val in
1979	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1980	esac
1981	printf "%s\n" "$ac_var='\''$ac_val'\''"
1982      done | sort
1983      echo
1984    fi
1985
1986    if test -s confdefs.h; then
1987      printf "%s\n" "## ----------- ##
1988## confdefs.h. ##
1989## ----------- ##"
1990      echo
1991      cat confdefs.h
1992      echo
1993    fi
1994    test "$ac_signal" != 0 &&
1995      printf "%s\n" "$as_me: caught signal $ac_signal"
1996    printf "%s\n" "$as_me: exit $exit_status"
1997  } >&5
1998  rm -f core *.core core.conftest.* &&
1999    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2000    exit $exit_status
2001' 0
2002for ac_signal in 1 2 13 15; do
2003  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2004done
2005ac_signal=0
2006
2007# confdefs.h avoids OS command line length limits that DEFS can exceed.
2008rm -f -r conftest* confdefs.h
2009
2010printf "%s\n" "/* confdefs.h */" > confdefs.h
2011
2012# Predefined preprocessor variables.
2013
2014printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2015
2016printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2017
2018printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2019
2020printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2021
2022printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2023
2024printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2025
2026
2027# Let the site file select an alternate cache file if it wants to.
2028# Prefer an explicitly selected file to automatically selected ones.
2029if test -n "$CONFIG_SITE"; then
2030  ac_site_files="$CONFIG_SITE"
2031elif test "x$prefix" != xNONE; then
2032  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2033else
2034  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2035fi
2036
2037for ac_site_file in $ac_site_files
2038do
2039  case $ac_site_file in #(
2040  */*) :
2041     ;; #(
2042  *) :
2043    ac_site_file=./$ac_site_file ;;
2044esac
2045  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2046    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2047printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2048    sed 's/^/| /' "$ac_site_file" >&5
2049    . "$ac_site_file" \
2050      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2051printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2052as_fn_error $? "failed to load site script $ac_site_file
2053See 'config.log' for more details" "$LINENO" 5; }
2054  fi
2055done
2056
2057if test -r "$cache_file"; then
2058  # Some versions of bash will fail to source /dev/null (special files
2059  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2060  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2061    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2062printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2063    case $cache_file in
2064      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2065      *)                      . "./$cache_file";;
2066    esac
2067  fi
2068else
2069  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2070printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2071  >$cache_file
2072fi
2073
2074# Test code for whether the C compiler supports C89 (global declarations)
2075ac_c_conftest_c89_globals='
2076/* Does the compiler advertise C89 conformance?
2077   Do not test the value of __STDC__, because some compilers set it to 0
2078   while being otherwise adequately conformant. */
2079#if !defined __STDC__
2080# error "Compiler does not advertise C89 conformance"
2081#endif
2082
2083#include <stddef.h>
2084#include <stdarg.h>
2085struct stat;
2086/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2087struct buf { int x; };
2088struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2089static char *e (char **p, int i)
2090{
2091  return p[i];
2092}
2093static char *f (char * (*g) (char **, int), char **p, ...)
2094{
2095  char *s;
2096  va_list v;
2097  va_start (v,p);
2098  s = g (p, va_arg (v,int));
2099  va_end (v);
2100  return s;
2101}
2102
2103/* C89 style stringification. */
2104#define noexpand_stringify(a) #a
2105const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2106
2107/* C89 style token pasting.  Exercises some of the corner cases that
2108   e.g. old MSVC gets wrong, but not very hard. */
2109#define noexpand_concat(a,b) a##b
2110#define expand_concat(a,b) noexpand_concat(a,b)
2111extern int vA;
2112extern int vbee;
2113#define aye A
2114#define bee B
2115int *pvA = &expand_concat(v,aye);
2116int *pvbee = &noexpand_concat(v,bee);
2117
2118/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2119   function prototypes and stuff, but not \xHH hex character constants.
2120   These do not provoke an error unfortunately, instead are silently treated
2121   as an "x".  The following induces an error, until -std is added to get
2122   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2123   array size at least.  It is necessary to write \x00 == 0 to get something
2124   that is true only with -std.  */
2125int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2126
2127/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2128   inside strings and character constants.  */
2129#define FOO(x) '\''x'\''
2130int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2131
2132int test (int i, double x);
2133struct s1 {int (*f) (int a);};
2134struct s2 {int (*f) (double a);};
2135int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2136               int, int);'
2137
2138# Test code for whether the C compiler supports C89 (body of main).
2139ac_c_conftest_c89_main='
2140ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2141'
2142
2143# Test code for whether the C compiler supports C99 (global declarations)
2144ac_c_conftest_c99_globals='
2145/* Does the compiler advertise C99 conformance? */
2146#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2147# error "Compiler does not advertise C99 conformance"
2148#endif
2149
2150// See if C++-style comments work.
2151
2152#include <stdbool.h>
2153extern int puts (const char *);
2154extern int printf (const char *, ...);
2155extern int dprintf (int, const char *, ...);
2156extern void *malloc (size_t);
2157extern void free (void *);
2158
2159// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2160// dprintf is used instead of fprintf to avoid needing to declare
2161// FILE and stderr.
2162#define debug(...) dprintf (2, __VA_ARGS__)
2163#define showlist(...) puts (#__VA_ARGS__)
2164#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2165static void
2166test_varargs_macros (void)
2167{
2168  int x = 1234;
2169  int y = 5678;
2170  debug ("Flag");
2171  debug ("X = %d\n", x);
2172  showlist (The first, second, and third items.);
2173  report (x>y, "x is %d but y is %d", x, y);
2174}
2175
2176// Check long long types.
2177#define BIG64 18446744073709551615ull
2178#define BIG32 4294967295ul
2179#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2180#if !BIG_OK
2181  #error "your preprocessor is broken"
2182#endif
2183#if BIG_OK
2184#else
2185  #error "your preprocessor is broken"
2186#endif
2187static long long int bignum = -9223372036854775807LL;
2188static unsigned long long int ubignum = BIG64;
2189
2190struct incomplete_array
2191{
2192  int datasize;
2193  double data[];
2194};
2195
2196struct named_init {
2197  int number;
2198  const wchar_t *name;
2199  double average;
2200};
2201
2202typedef const char *ccp;
2203
2204static inline int
2205test_restrict (ccp restrict text)
2206{
2207  // Iterate through items via the restricted pointer.
2208  // Also check for declarations in for loops.
2209  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2210    continue;
2211  return 0;
2212}
2213
2214// Check varargs and va_copy.
2215static bool
2216test_varargs (const char *format, ...)
2217{
2218  va_list args;
2219  va_start (args, format);
2220  va_list args_copy;
2221  va_copy (args_copy, args);
2222
2223  const char *str = "";
2224  int number = 0;
2225  float fnumber = 0;
2226
2227  while (*format)
2228    {
2229      switch (*format++)
2230	{
2231	case '\''s'\'': // string
2232	  str = va_arg (args_copy, const char *);
2233	  break;
2234	case '\''d'\'': // int
2235	  number = va_arg (args_copy, int);
2236	  break;
2237	case '\''f'\'': // float
2238	  fnumber = va_arg (args_copy, double);
2239	  break;
2240	default:
2241	  break;
2242	}
2243    }
2244  va_end (args_copy);
2245  va_end (args);
2246
2247  return *str && number && fnumber;
2248}
2249'
2250
2251# Test code for whether the C compiler supports C99 (body of main).
2252ac_c_conftest_c99_main='
2253  // Check bool.
2254  _Bool success = false;
2255  success |= (argc != 0);
2256
2257  // Check restrict.
2258  if (test_restrict ("String literal") == 0)
2259    success = true;
2260  char *restrict newvar = "Another string";
2261
2262  // Check varargs.
2263  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2264  test_varargs_macros ();
2265
2266  // Check flexible array members.
2267  struct incomplete_array *ia =
2268    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2269  ia->datasize = 10;
2270  for (int i = 0; i < ia->datasize; ++i)
2271    ia->data[i] = i * 1.234;
2272  // Work around memory leak warnings.
2273  free (ia);
2274
2275  // Check named initializers.
2276  struct named_init ni = {
2277    .number = 34,
2278    .name = L"Test wide string",
2279    .average = 543.34343,
2280  };
2281
2282  ni.number = 58;
2283
2284  int dynamic_array[ni.number];
2285  dynamic_array[0] = argv[0][0];
2286  dynamic_array[ni.number - 1] = 543;
2287
2288  // work around unused variable warnings
2289  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2290	 || dynamic_array[ni.number - 1] != 543);
2291'
2292
2293# Test code for whether the C compiler supports C11 (global declarations)
2294ac_c_conftest_c11_globals='
2295/* Does the compiler advertise C11 conformance? */
2296#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2297# error "Compiler does not advertise C11 conformance"
2298#endif
2299
2300// Check _Alignas.
2301char _Alignas (double) aligned_as_double;
2302char _Alignas (0) no_special_alignment;
2303extern char aligned_as_int;
2304char _Alignas (0) _Alignas (int) aligned_as_int;
2305
2306// Check _Alignof.
2307enum
2308{
2309  int_alignment = _Alignof (int),
2310  int_array_alignment = _Alignof (int[100]),
2311  char_alignment = _Alignof (char)
2312};
2313_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2314
2315// Check _Noreturn.
2316int _Noreturn does_not_return (void) { for (;;) continue; }
2317
2318// Check _Static_assert.
2319struct test_static_assert
2320{
2321  int x;
2322  _Static_assert (sizeof (int) <= sizeof (long int),
2323                  "_Static_assert does not work in struct");
2324  long int y;
2325};
2326
2327// Check UTF-8 literals.
2328#define u8 syntax error!
2329char const utf8_literal[] = u8"happens to be ASCII" "another string";
2330
2331// Check duplicate typedefs.
2332typedef long *long_ptr;
2333typedef long int *long_ptr;
2334typedef long_ptr long_ptr;
2335
2336// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2337struct anonymous
2338{
2339  union {
2340    struct { int i; int j; };
2341    struct { int k; long int l; } w;
2342  };
2343  int m;
2344} v1;
2345'
2346
2347# Test code for whether the C compiler supports C11 (body of main).
2348ac_c_conftest_c11_main='
2349  _Static_assert ((offsetof (struct anonymous, i)
2350		   == offsetof (struct anonymous, w.k)),
2351		  "Anonymous union alignment botch");
2352  v1.i = 2;
2353  v1.w.k = 5;
2354  ok |= v1.i != 5;
2355'
2356
2357# Test code for whether the C compiler supports C11 (complete).
2358ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2359${ac_c_conftest_c99_globals}
2360${ac_c_conftest_c11_globals}
2361
2362int
2363main (int argc, char **argv)
2364{
2365  int ok = 0;
2366  ${ac_c_conftest_c89_main}
2367  ${ac_c_conftest_c99_main}
2368  ${ac_c_conftest_c11_main}
2369  return ok;
2370}
2371"
2372
2373# Test code for whether the C compiler supports C99 (complete).
2374ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2375${ac_c_conftest_c99_globals}
2376
2377int
2378main (int argc, char **argv)
2379{
2380  int ok = 0;
2381  ${ac_c_conftest_c89_main}
2382  ${ac_c_conftest_c99_main}
2383  return ok;
2384}
2385"
2386
2387# Test code for whether the C compiler supports C89 (complete).
2388ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2389
2390int
2391main (int argc, char **argv)
2392{
2393  int ok = 0;
2394  ${ac_c_conftest_c89_main}
2395  return ok;
2396}
2397"
2398
2399as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2400as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2401as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2402as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2403as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2404as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2405as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2406as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2407as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2408
2409# Auxiliary files required by this configure script.
2410ac_aux_files="config.guess config.sub compile missing install-sh"
2411
2412# Locations in which to look for auxiliary files.
2413ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2414
2415# Search for a directory containing all of the required auxiliary files,
2416# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2417# If we don't find one directory that contains all the files we need,
2418# we report the set of missing files from the *first* directory in
2419# $ac_aux_dir_candidates and give up.
2420ac_missing_aux_files=""
2421ac_first_candidate=:
2422printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424as_found=false
2425for as_dir in $ac_aux_dir_candidates
2426do
2427  IFS=$as_save_IFS
2428  case $as_dir in #(((
2429    '') as_dir=./ ;;
2430    */) ;;
2431    *) as_dir=$as_dir/ ;;
2432  esac
2433  as_found=:
2434
2435  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2436  ac_aux_dir_found=yes
2437  ac_install_sh=
2438  for ac_aux in $ac_aux_files
2439  do
2440    # As a special case, if "install-sh" is required, that requirement
2441    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2442    # and $ac_install_sh is set appropriately for whichever one is found.
2443    if test x"$ac_aux" = x"install-sh"
2444    then
2445      if test -f "${as_dir}install-sh"; then
2446        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2447        ac_install_sh="${as_dir}install-sh -c"
2448      elif test -f "${as_dir}install.sh"; then
2449        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2450        ac_install_sh="${as_dir}install.sh -c"
2451      elif test -f "${as_dir}shtool"; then
2452        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2453        ac_install_sh="${as_dir}shtool install -c"
2454      else
2455        ac_aux_dir_found=no
2456        if $ac_first_candidate; then
2457          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2458        else
2459          break
2460        fi
2461      fi
2462    else
2463      if test -f "${as_dir}${ac_aux}"; then
2464        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2465      else
2466        ac_aux_dir_found=no
2467        if $ac_first_candidate; then
2468          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2469        else
2470          break
2471        fi
2472      fi
2473    fi
2474  done
2475  if test "$ac_aux_dir_found" = yes; then
2476    ac_aux_dir="$as_dir"
2477    break
2478  fi
2479  ac_first_candidate=false
2480
2481  as_found=false
2482done
2483IFS=$as_save_IFS
2484if $as_found
2485then :
2486
2487else case e in #(
2488  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2489esac
2490fi
2491
2492
2493# These three variables are undocumented and unsupported,
2494# and are intended to be withdrawn in a future Autoconf release.
2495# They can cause serious problems if a builder's source tree is in a directory
2496# whose full name contains unusual characters.
2497if test -f "${ac_aux_dir}config.guess"; then
2498  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2499fi
2500if test -f "${ac_aux_dir}config.sub"; then
2501  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2502fi
2503if test -f "$ac_aux_dir/configure"; then
2504  ac_configure="$SHELL ${ac_aux_dir}configure"
2505fi
2506
2507# Check that the precious variables saved in the cache have kept the same
2508# value.
2509ac_cache_corrupted=false
2510for ac_var in $ac_precious_vars; do
2511  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2512  eval ac_new_set=\$ac_env_${ac_var}_set
2513  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2514  eval ac_new_val=\$ac_env_${ac_var}_value
2515  case $ac_old_set,$ac_new_set in
2516    set,)
2517      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2518printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2519      ac_cache_corrupted=: ;;
2520    ,set)
2521      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2522printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2523      ac_cache_corrupted=: ;;
2524    ,);;
2525    *)
2526      if test "x$ac_old_val" != "x$ac_new_val"; then
2527	# differences in whitespace do not lead to failure.
2528	ac_old_val_w=`echo x $ac_old_val`
2529	ac_new_val_w=`echo x $ac_new_val`
2530	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2531	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2532printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2533	  ac_cache_corrupted=:
2534	else
2535	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2536printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2537	  eval $ac_var=\$ac_old_val
2538	fi
2539	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2540printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2541	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2542printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2543      fi;;
2544  esac
2545  # Pass precious variables to config.status.
2546  if test "$ac_new_set" = set; then
2547    case $ac_new_val in
2548    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2549    *) ac_arg=$ac_var=$ac_new_val ;;
2550    esac
2551    case " $ac_configure_args " in
2552      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2553      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2554    esac
2555  fi
2556done
2557if $ac_cache_corrupted; then
2558  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2559printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2560  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2561printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2562  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2563	    and start over" "$LINENO" 5
2564fi
2565## -------------------- ##
2566## Main body of script. ##
2567## -------------------- ##
2568
2569ac_ext=c
2570ac_cpp='$CPP $CPPFLAGS'
2571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2573ac_compiler_gnu=$ac_cv_c_compiler_gnu
2574
2575
2576
2577ac_config_headers="$ac_config_headers config.h"
2578
2579
2580# Initialize Automake
2581am__api_version='1.16'
2582
2583
2584
2585  # Find a good install program.  We prefer a C program (faster),
2586# so one script is as good as another.  But avoid the broken or
2587# incompatible versions:
2588# SysV /etc/install, /usr/sbin/install
2589# SunOS /usr/etc/install
2590# IRIX /sbin/install
2591# AIX /bin/install
2592# AmigaOS /C/install, which installs bootblocks on floppy discs
2593# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2594# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2595# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2596# OS/2's system install, which has a completely different semantic
2597# ./install, which can be erroneously created by make from ./install.sh.
2598# Reject install programs that cannot install multiple files.
2599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2600printf %s "checking for a BSD-compatible install... " >&6; }
2601if test -z "$INSTALL"; then
2602if test ${ac_cv_path_install+y}
2603then :
2604  printf %s "(cached) " >&6
2605else case e in #(
2606  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607for as_dir in $PATH
2608do
2609  IFS=$as_save_IFS
2610  case $as_dir in #(((
2611    '') as_dir=./ ;;
2612    */) ;;
2613    *) as_dir=$as_dir/ ;;
2614  esac
2615    # Account for fact that we put trailing slashes in our PATH walk.
2616case $as_dir in #((
2617  ./ | /[cC]/* | \
2618  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2619  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2620  /usr/ucb/* ) ;;
2621  *)
2622    # OSF1 and SCO ODT 3.0 have their own names for install.
2623    # Don't use installbsd from OSF since it installs stuff as root
2624    # by default.
2625    for ac_prog in ginstall scoinst install; do
2626      for ac_exec_ext in '' $ac_executable_extensions; do
2627	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2628	  if test $ac_prog = install &&
2629	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2630	    # AIX install.  It has an incompatible calling convention.
2631	    :
2632	  elif test $ac_prog = install &&
2633	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2634	    # program-specific install script used by HP pwplus--don't use.
2635	    :
2636	  else
2637	    rm -rf conftest.one conftest.two conftest.dir
2638	    echo one > conftest.one
2639	    echo two > conftest.two
2640	    mkdir conftest.dir
2641	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2642	      test -s conftest.one && test -s conftest.two &&
2643	      test -s conftest.dir/conftest.one &&
2644	      test -s conftest.dir/conftest.two
2645	    then
2646	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2647	      break 3
2648	    fi
2649	  fi
2650	fi
2651      done
2652    done
2653    ;;
2654esac
2655
2656  done
2657IFS=$as_save_IFS
2658
2659rm -rf conftest.one conftest.two conftest.dir
2660 ;;
2661esac
2662fi
2663  if test ${ac_cv_path_install+y}; then
2664    INSTALL=$ac_cv_path_install
2665  else
2666    # As a last resort, use the slow shell script.  Don't cache a
2667    # value for INSTALL within a source directory, because that will
2668    # break other packages using the cache if that directory is
2669    # removed, or if the value is a relative name.
2670    INSTALL=$ac_install_sh
2671  fi
2672fi
2673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2674printf "%s\n" "$INSTALL" >&6; }
2675
2676# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2677# It thinks the first close brace ends the variable substitution.
2678test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2679
2680test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2681
2682test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2683
2684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2685printf %s "checking whether build environment is sane... " >&6; }
2686# Reject unsafe characters in $srcdir or the absolute working directory
2687# name.  Accept space and tab only in the latter.
2688am_lf='
2689'
2690case `pwd` in
2691  *[\\\"\#\$\&\'\`$am_lf]*)
2692    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2693esac
2694case $srcdir in
2695  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2696    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2697esac
2698
2699# Do 'set' in a subshell so we don't clobber the current shell's
2700# arguments.  Must try -L first in case configure is actually a
2701# symlink; some systems play weird games with the mod time of symlinks
2702# (eg FreeBSD returns the mod time of the symlink's containing
2703# directory).
2704if (
2705   am_has_slept=no
2706   for am_try in 1 2; do
2707     echo "timestamp, slept: $am_has_slept" > conftest.file
2708     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2709     if test "$*" = "X"; then
2710	# -L didn't work.
2711	set X `ls -t "$srcdir/configure" conftest.file`
2712     fi
2713     if test "$*" != "X $srcdir/configure conftest.file" \
2714	&& test "$*" != "X conftest.file $srcdir/configure"; then
2715
2716	# If neither matched, then we have a broken ls.  This can happen
2717	# if, for instance, CONFIG_SHELL is bash and it inherits a
2718	# broken ls alias from the environment.  This has actually
2719	# happened.  Such a system could not be considered "sane".
2720	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2721  alias in your environment" "$LINENO" 5
2722     fi
2723     if test "$2" = conftest.file || test $am_try -eq 2; then
2724       break
2725     fi
2726     # Just in case.
2727     sleep 1
2728     am_has_slept=yes
2729   done
2730   test "$2" = conftest.file
2731   )
2732then
2733   # Ok.
2734   :
2735else
2736   as_fn_error $? "newly created file is older than distributed files!
2737Check your system clock" "$LINENO" 5
2738fi
2739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2740printf "%s\n" "yes" >&6; }
2741# If we didn't sleep, we still need to ensure time stamps of config.status and
2742# generated files are strictly newer.
2743am_sleep_pid=
2744if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2745  ( sleep 1 ) &
2746  am_sleep_pid=$!
2747fi
2748
2749rm -f conftest.file
2750
2751test "$program_prefix" != NONE &&
2752  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2753# Use a double $ so make ignores it.
2754test "$program_suffix" != NONE &&
2755  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2756# Double any \ or $.
2757# By default was 's,x,x', remove it if useless.
2758ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2759program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2760
2761
2762# Expand $ac_aux_dir to an absolute path.
2763am_aux_dir=`cd "$ac_aux_dir" && pwd`
2764
2765
2766  if test x"${MISSING+set}" != xset; then
2767  MISSING="\${SHELL} '$am_aux_dir/missing'"
2768fi
2769# Use eval to expand $SHELL
2770if eval "$MISSING --is-lightweight"; then
2771  am_missing_run="$MISSING "
2772else
2773  am_missing_run=
2774  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2775printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2776fi
2777
2778if test x"${install_sh+set}" != xset; then
2779  case $am_aux_dir in
2780  *\ * | *\	*)
2781    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2782  *)
2783    install_sh="\${SHELL} $am_aux_dir/install-sh"
2784  esac
2785fi
2786
2787# Installed binaries are usually stripped using 'strip' when the user
2788# run "make install-strip".  However 'strip' might not be the right
2789# tool to use in cross-compilation environments, therefore Automake
2790# will honor the 'STRIP' environment variable to overrule this program.
2791if test "$cross_compiling" != no; then
2792  if test -n "$ac_tool_prefix"; then
2793  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2794set dummy ${ac_tool_prefix}strip; ac_word=$2
2795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796printf %s "checking for $ac_word... " >&6; }
2797if test ${ac_cv_prog_STRIP+y}
2798then :
2799  printf %s "(cached) " >&6
2800else case e in #(
2801  e) if test -n "$STRIP"; then
2802  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2803else
2804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805for as_dir in $PATH
2806do
2807  IFS=$as_save_IFS
2808  case $as_dir in #(((
2809    '') as_dir=./ ;;
2810    */) ;;
2811    *) as_dir=$as_dir/ ;;
2812  esac
2813    for ac_exec_ext in '' $ac_executable_extensions; do
2814  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2815    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2816    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2817    break 2
2818  fi
2819done
2820  done
2821IFS=$as_save_IFS
2822
2823fi ;;
2824esac
2825fi
2826STRIP=$ac_cv_prog_STRIP
2827if test -n "$STRIP"; then
2828  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2829printf "%s\n" "$STRIP" >&6; }
2830else
2831  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832printf "%s\n" "no" >&6; }
2833fi
2834
2835
2836fi
2837if test -z "$ac_cv_prog_STRIP"; then
2838  ac_ct_STRIP=$STRIP
2839  # Extract the first word of "strip", so it can be a program name with args.
2840set dummy strip; ac_word=$2
2841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842printf %s "checking for $ac_word... " >&6; }
2843if test ${ac_cv_prog_ac_ct_STRIP+y}
2844then :
2845  printf %s "(cached) " >&6
2846else case e in #(
2847  e) if test -n "$ac_ct_STRIP"; then
2848  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2849else
2850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851for as_dir in $PATH
2852do
2853  IFS=$as_save_IFS
2854  case $as_dir in #(((
2855    '') as_dir=./ ;;
2856    */) ;;
2857    *) as_dir=$as_dir/ ;;
2858  esac
2859    for ac_exec_ext in '' $ac_executable_extensions; do
2860  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2861    ac_cv_prog_ac_ct_STRIP="strip"
2862    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2863    break 2
2864  fi
2865done
2866  done
2867IFS=$as_save_IFS
2868
2869fi ;;
2870esac
2871fi
2872ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2873if test -n "$ac_ct_STRIP"; then
2874  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2875printf "%s\n" "$ac_ct_STRIP" >&6; }
2876else
2877  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878printf "%s\n" "no" >&6; }
2879fi
2880
2881  if test "x$ac_ct_STRIP" = x; then
2882    STRIP=":"
2883  else
2884    case $cross_compiling:$ac_tool_warned in
2885yes:)
2886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2887printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2888ac_tool_warned=yes ;;
2889esac
2890    STRIP=$ac_ct_STRIP
2891  fi
2892else
2893  STRIP="$ac_cv_prog_STRIP"
2894fi
2895
2896fi
2897INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2898
2899
2900  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2901printf %s "checking for a race-free mkdir -p... " >&6; }
2902if test -z "$MKDIR_P"; then
2903  if test ${ac_cv_path_mkdir+y}
2904then :
2905  printf %s "(cached) " >&6
2906else case e in #(
2907  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2909do
2910  IFS=$as_save_IFS
2911  case $as_dir in #(((
2912    '') as_dir=./ ;;
2913    */) ;;
2914    *) as_dir=$as_dir/ ;;
2915  esac
2916    for ac_prog in mkdir gmkdir; do
2917	 for ac_exec_ext in '' $ac_executable_extensions; do
2918	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2919	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2920	     'mkdir ('*'coreutils) '* | \
2921	     *'BusyBox '* | \
2922	     'mkdir (fileutils) '4.1*)
2923	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2924	       break 3;;
2925	   esac
2926	 done
2927       done
2928  done
2929IFS=$as_save_IFS
2930 ;;
2931esac
2932fi
2933
2934  test -d ./--version && rmdir ./--version
2935  if test ${ac_cv_path_mkdir+y}; then
2936    MKDIR_P="$ac_cv_path_mkdir -p"
2937  else
2938    # As a last resort, use plain mkdir -p,
2939    # in the hope it doesn't have the bugs of ancient mkdir.
2940    MKDIR_P='mkdir -p'
2941  fi
2942fi
2943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2944printf "%s\n" "$MKDIR_P" >&6; }
2945
2946for ac_prog in gawk mawk nawk awk
2947do
2948  # Extract the first word of "$ac_prog", so it can be a program name with args.
2949set dummy $ac_prog; ac_word=$2
2950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951printf %s "checking for $ac_word... " >&6; }
2952if test ${ac_cv_prog_AWK+y}
2953then :
2954  printf %s "(cached) " >&6
2955else case e in #(
2956  e) if test -n "$AWK"; then
2957  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2958else
2959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960for as_dir in $PATH
2961do
2962  IFS=$as_save_IFS
2963  case $as_dir in #(((
2964    '') as_dir=./ ;;
2965    */) ;;
2966    *) as_dir=$as_dir/ ;;
2967  esac
2968    for ac_exec_ext in '' $ac_executable_extensions; do
2969  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2970    ac_cv_prog_AWK="$ac_prog"
2971    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2972    break 2
2973  fi
2974done
2975  done
2976IFS=$as_save_IFS
2977
2978fi ;;
2979esac
2980fi
2981AWK=$ac_cv_prog_AWK
2982if test -n "$AWK"; then
2983  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2984printf "%s\n" "$AWK" >&6; }
2985else
2986  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987printf "%s\n" "no" >&6; }
2988fi
2989
2990
2991  test -n "$AWK" && break
2992done
2993
2994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2995printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2996set x ${MAKE-make}
2997ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2998if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2999then :
3000  printf %s "(cached) " >&6
3001else case e in #(
3002  e) cat >conftest.make <<\_ACEOF
3003SHELL = /bin/sh
3004all:
3005	@echo '@@@%%%=$(MAKE)=@@@%%%'
3006_ACEOF
3007# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3008case `${MAKE-make} -f conftest.make 2>/dev/null` in
3009  *@@@%%%=?*=@@@%%%*)
3010    eval ac_cv_prog_make_${ac_make}_set=yes;;
3011  *)
3012    eval ac_cv_prog_make_${ac_make}_set=no;;
3013esac
3014rm -f conftest.make ;;
3015esac
3016fi
3017if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3018  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3019printf "%s\n" "yes" >&6; }
3020  SET_MAKE=
3021else
3022  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023printf "%s\n" "no" >&6; }
3024  SET_MAKE="MAKE=${MAKE-make}"
3025fi
3026
3027rm -rf .tst 2>/dev/null
3028mkdir .tst 2>/dev/null
3029if test -d .tst; then
3030  am__leading_dot=.
3031else
3032  am__leading_dot=_
3033fi
3034rmdir .tst 2>/dev/null
3035
3036# Check whether --enable-silent-rules was given.
3037if test ${enable_silent_rules+y}
3038then :
3039  enableval=$enable_silent_rules;
3040fi
3041
3042case $enable_silent_rules in # (((
3043  yes) AM_DEFAULT_VERBOSITY=0;;
3044   no) AM_DEFAULT_VERBOSITY=1;;
3045    *) AM_DEFAULT_VERBOSITY=1;;
3046esac
3047am_make=${MAKE-make}
3048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3049printf %s "checking whether $am_make supports nested variables... " >&6; }
3050if test ${am_cv_make_support_nested_variables+y}
3051then :
3052  printf %s "(cached) " >&6
3053else case e in #(
3054  e) if printf "%s\n" 'TRUE=$(BAR$(V))
3055BAR0=false
3056BAR1=true
3057V=1
3058am__doit:
3059	@$(TRUE)
3060.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3061  am_cv_make_support_nested_variables=yes
3062else
3063  am_cv_make_support_nested_variables=no
3064fi ;;
3065esac
3066fi
3067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3068printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3069if test $am_cv_make_support_nested_variables = yes; then
3070    AM_V='$(V)'
3071  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3072else
3073  AM_V=$AM_DEFAULT_VERBOSITY
3074  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3075fi
3076AM_BACKSLASH='\'
3077
3078if test "`cd $srcdir && pwd`" != "`pwd`"; then
3079  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3080  # is not polluted with repeated "-I."
3081  am__isrc=' -I$(srcdir)'
3082  # test to see if srcdir already configured
3083  if test -f $srcdir/config.status; then
3084    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3085  fi
3086fi
3087
3088# test whether we have cygpath
3089if test -z "$CYGPATH_W"; then
3090  if (cygpath --version) >/dev/null 2>/dev/null; then
3091    CYGPATH_W='cygpath -w'
3092  else
3093    CYGPATH_W=echo
3094  fi
3095fi
3096
3097
3098# Define the identity of the package.
3099 PACKAGE='xsm'
3100 VERSION='1.0.6'
3101
3102
3103printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3104
3105
3106printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3107
3108# Some tools Automake needs.
3109
3110ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3111
3112
3113AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3114
3115
3116AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3117
3118
3119AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3120
3121
3122MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3123
3124# For better backward compatibility.  To be removed once Automake 1.9.x
3125# dies out for good.  For more background, see:
3126# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3127# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3128mkdir_p='$(MKDIR_P)'
3129
3130# We need awk for the "check" target (and possibly the TAP driver).  The
3131# system "awk" is bad on some platforms.
3132# Always define AMTAR for backward compatibility.  Yes, it's still used
3133# in the wild :-(  We should find a proper way to deprecate it ...
3134AMTAR='$${TAR-tar}'
3135
3136
3137# We'll loop over all known methods to create a tar archive until one works.
3138_am_tools='gnutar  pax cpio none'
3139
3140am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3141
3142
3143
3144
3145
3146# Variables for tags utilities; see am/tags.am
3147if test -z "$CTAGS"; then
3148  CTAGS=ctags
3149fi
3150
3151if test -z "$ETAGS"; then
3152  ETAGS=etags
3153fi
3154
3155if test -z "$CSCOPE"; then
3156  CSCOPE=cscope
3157fi
3158
3159
3160
3161# POSIX will say in a future version that running "rm -f" with no argument
3162# is OK; and we want to be able to make that assumption in our Makefile
3163# recipes.  So use an aggressive probe to check that the usage we want is
3164# actually supported "in the wild" to an acceptable degree.
3165# See automake bug#10828.
3166# To make any issue more visible, cause the running configure to be aborted
3167# by default if the 'rm' program in use doesn't match our expectations; the
3168# user can still override this though.
3169if rm -f && rm -fr && rm -rf; then : OK; else
3170  cat >&2 <<'END'
3171Oops!
3172
3173Your 'rm' program seems unable to run without file operands specified
3174on the command line, even when the '-f' option is present.  This is contrary
3175to the behaviour of most rm programs out there, and not conforming with
3176the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3177
3178Please tell bug-automake@gnu.org about your system, including the value
3179of your $PATH and any error possibly output before this message.  This
3180can help us improve future automake versions.
3181
3182END
3183  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3184    echo 'Configuration will proceed anyway, since you have set the' >&2
3185    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3186    echo >&2
3187  else
3188    cat >&2 <<'END'
3189Aborting the configuration process, to ensure you take notice of the issue.
3190
3191You can download and install GNU coreutils to get an 'rm' implementation
3192that behaves properly: <https://www.gnu.org/software/coreutils/>.
3193
3194If you want to complete the configuration process using your problematic
3195'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3196to "yes", and re-run configure.
3197
3198END
3199    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3200  fi
3201fi
3202
3203
3204# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225DEPDIR="${am__leading_dot}deps"
3226
3227ac_config_commands="$ac_config_commands depfiles"
3228
3229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3230printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3231cat > confinc.mk << 'END'
3232am__doit:
3233	@echo this is the am__doit target >confinc.out
3234.PHONY: am__doit
3235END
3236am__include="#"
3237am__quote=
3238# BSD make does it like this.
3239echo '.include "confinc.mk" # ignored' > confmf.BSD
3240# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3241echo 'include confinc.mk # ignored' > confmf.GNU
3242_am_result=no
3243for s in GNU BSD; do
3244  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3245   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3246   ac_status=$?
3247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248   (exit $ac_status); }
3249  case $?:`cat confinc.out 2>/dev/null` in #(
3250  '0:this is the am__doit target') :
3251    case $s in #(
3252  BSD) :
3253    am__include='.include' am__quote='"' ;; #(
3254  *) :
3255    am__include='include' am__quote='' ;;
3256esac ;; #(
3257  *) :
3258     ;;
3259esac
3260  if test "$am__include" != "#"; then
3261    _am_result="yes ($s style)"
3262    break
3263  fi
3264done
3265rm -f confinc.* confmf.*
3266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3267printf "%s\n" "${_am_result}" >&6; }
3268
3269# Check whether --enable-dependency-tracking was given.
3270if test ${enable_dependency_tracking+y}
3271then :
3272  enableval=$enable_dependency_tracking;
3273fi
3274
3275if test "x$enable_dependency_tracking" != xno; then
3276  am_depcomp="$ac_aux_dir/depcomp"
3277  AMDEPBACKSLASH='\'
3278  am__nodep='_no'
3279fi
3280 if test "x$enable_dependency_tracking" != xno; then
3281  AMDEP_TRUE=
3282  AMDEP_FALSE='#'
3283else
3284  AMDEP_TRUE='#'
3285  AMDEP_FALSE=
3286fi
3287
3288
3289ac_ext=c
3290ac_cpp='$CPP $CPPFLAGS'
3291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294if test -n "$ac_tool_prefix"; then
3295  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3296set dummy ${ac_tool_prefix}gcc; ac_word=$2
3297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3298printf %s "checking for $ac_word... " >&6; }
3299if test ${ac_cv_prog_CC+y}
3300then :
3301  printf %s "(cached) " >&6
3302else case e in #(
3303  e) if test -n "$CC"; then
3304  ac_cv_prog_CC="$CC" # Let the user override the test.
3305else
3306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307for as_dir in $PATH
3308do
3309  IFS=$as_save_IFS
3310  case $as_dir in #(((
3311    '') as_dir=./ ;;
3312    */) ;;
3313    *) as_dir=$as_dir/ ;;
3314  esac
3315    for ac_exec_ext in '' $ac_executable_extensions; do
3316  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3317    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3318    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3319    break 2
3320  fi
3321done
3322  done
3323IFS=$as_save_IFS
3324
3325fi ;;
3326esac
3327fi
3328CC=$ac_cv_prog_CC
3329if test -n "$CC"; then
3330  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3331printf "%s\n" "$CC" >&6; }
3332else
3333  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334printf "%s\n" "no" >&6; }
3335fi
3336
3337
3338fi
3339if test -z "$ac_cv_prog_CC"; then
3340  ac_ct_CC=$CC
3341  # Extract the first word of "gcc", so it can be a program name with args.
3342set dummy gcc; ac_word=$2
3343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3344printf %s "checking for $ac_word... " >&6; }
3345if test ${ac_cv_prog_ac_ct_CC+y}
3346then :
3347  printf %s "(cached) " >&6
3348else case e in #(
3349  e) if test -n "$ac_ct_CC"; then
3350  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3351else
3352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353for as_dir in $PATH
3354do
3355  IFS=$as_save_IFS
3356  case $as_dir in #(((
3357    '') as_dir=./ ;;
3358    */) ;;
3359    *) as_dir=$as_dir/ ;;
3360  esac
3361    for ac_exec_ext in '' $ac_executable_extensions; do
3362  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3363    ac_cv_prog_ac_ct_CC="gcc"
3364    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3365    break 2
3366  fi
3367done
3368  done
3369IFS=$as_save_IFS
3370
3371fi ;;
3372esac
3373fi
3374ac_ct_CC=$ac_cv_prog_ac_ct_CC
3375if test -n "$ac_ct_CC"; then
3376  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3377printf "%s\n" "$ac_ct_CC" >&6; }
3378else
3379  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380printf "%s\n" "no" >&6; }
3381fi
3382
3383  if test "x$ac_ct_CC" = x; then
3384    CC=""
3385  else
3386    case $cross_compiling:$ac_tool_warned in
3387yes:)
3388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3389printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3390ac_tool_warned=yes ;;
3391esac
3392    CC=$ac_ct_CC
3393  fi
3394else
3395  CC="$ac_cv_prog_CC"
3396fi
3397
3398if test -z "$CC"; then
3399          if test -n "$ac_tool_prefix"; then
3400    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3401set dummy ${ac_tool_prefix}cc; ac_word=$2
3402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3403printf %s "checking for $ac_word... " >&6; }
3404if test ${ac_cv_prog_CC+y}
3405then :
3406  printf %s "(cached) " >&6
3407else case e in #(
3408  e) if test -n "$CC"; then
3409  ac_cv_prog_CC="$CC" # Let the user override the test.
3410else
3411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412for as_dir in $PATH
3413do
3414  IFS=$as_save_IFS
3415  case $as_dir in #(((
3416    '') as_dir=./ ;;
3417    */) ;;
3418    *) as_dir=$as_dir/ ;;
3419  esac
3420    for ac_exec_ext in '' $ac_executable_extensions; do
3421  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3422    ac_cv_prog_CC="${ac_tool_prefix}cc"
3423    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3424    break 2
3425  fi
3426done
3427  done
3428IFS=$as_save_IFS
3429
3430fi ;;
3431esac
3432fi
3433CC=$ac_cv_prog_CC
3434if test -n "$CC"; then
3435  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3436printf "%s\n" "$CC" >&6; }
3437else
3438  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439printf "%s\n" "no" >&6; }
3440fi
3441
3442
3443  fi
3444fi
3445if test -z "$CC"; then
3446  # Extract the first word of "cc", so it can be a program name with args.
3447set dummy cc; ac_word=$2
3448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3449printf %s "checking for $ac_word... " >&6; }
3450if test ${ac_cv_prog_CC+y}
3451then :
3452  printf %s "(cached) " >&6
3453else case e in #(
3454  e) if test -n "$CC"; then
3455  ac_cv_prog_CC="$CC" # Let the user override the test.
3456else
3457  ac_prog_rejected=no
3458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459for as_dir in $PATH
3460do
3461  IFS=$as_save_IFS
3462  case $as_dir in #(((
3463    '') as_dir=./ ;;
3464    */) ;;
3465    *) as_dir=$as_dir/ ;;
3466  esac
3467    for ac_exec_ext in '' $ac_executable_extensions; do
3468  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3469    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3470       ac_prog_rejected=yes
3471       continue
3472     fi
3473    ac_cv_prog_CC="cc"
3474    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3475    break 2
3476  fi
3477done
3478  done
3479IFS=$as_save_IFS
3480
3481if test $ac_prog_rejected = yes; then
3482  # We found a bogon in the path, so make sure we never use it.
3483  set dummy $ac_cv_prog_CC
3484  shift
3485  if test $# != 0; then
3486    # We chose a different compiler from the bogus one.
3487    # However, it has the same basename, so the bogon will be chosen
3488    # first if we set CC to just the basename; use the full file name.
3489    shift
3490    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3491  fi
3492fi
3493fi ;;
3494esac
3495fi
3496CC=$ac_cv_prog_CC
3497if test -n "$CC"; then
3498  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3499printf "%s\n" "$CC" >&6; }
3500else
3501  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502printf "%s\n" "no" >&6; }
3503fi
3504
3505
3506fi
3507if test -z "$CC"; then
3508  if test -n "$ac_tool_prefix"; then
3509  for ac_prog in cl.exe
3510  do
3511    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3512set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3514printf %s "checking for $ac_word... " >&6; }
3515if test ${ac_cv_prog_CC+y}
3516then :
3517  printf %s "(cached) " >&6
3518else case e in #(
3519  e) if test -n "$CC"; then
3520  ac_cv_prog_CC="$CC" # Let the user override the test.
3521else
3522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523for as_dir in $PATH
3524do
3525  IFS=$as_save_IFS
3526  case $as_dir in #(((
3527    '') as_dir=./ ;;
3528    */) ;;
3529    *) as_dir=$as_dir/ ;;
3530  esac
3531    for ac_exec_ext in '' $ac_executable_extensions; do
3532  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3533    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3534    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3535    break 2
3536  fi
3537done
3538  done
3539IFS=$as_save_IFS
3540
3541fi ;;
3542esac
3543fi
3544CC=$ac_cv_prog_CC
3545if test -n "$CC"; then
3546  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3547printf "%s\n" "$CC" >&6; }
3548else
3549  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3550printf "%s\n" "no" >&6; }
3551fi
3552
3553
3554    test -n "$CC" && break
3555  done
3556fi
3557if test -z "$CC"; then
3558  ac_ct_CC=$CC
3559  for ac_prog in cl.exe
3560do
3561  # Extract the first word of "$ac_prog", so it can be a program name with args.
3562set dummy $ac_prog; ac_word=$2
3563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564printf %s "checking for $ac_word... " >&6; }
3565if test ${ac_cv_prog_ac_ct_CC+y}
3566then :
3567  printf %s "(cached) " >&6
3568else case e in #(
3569  e) if test -n "$ac_ct_CC"; then
3570  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3571else
3572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573for as_dir in $PATH
3574do
3575  IFS=$as_save_IFS
3576  case $as_dir in #(((
3577    '') as_dir=./ ;;
3578    */) ;;
3579    *) as_dir=$as_dir/ ;;
3580  esac
3581    for ac_exec_ext in '' $ac_executable_extensions; do
3582  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3583    ac_cv_prog_ac_ct_CC="$ac_prog"
3584    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3585    break 2
3586  fi
3587done
3588  done
3589IFS=$as_save_IFS
3590
3591fi ;;
3592esac
3593fi
3594ac_ct_CC=$ac_cv_prog_ac_ct_CC
3595if test -n "$ac_ct_CC"; then
3596  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3597printf "%s\n" "$ac_ct_CC" >&6; }
3598else
3599  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600printf "%s\n" "no" >&6; }
3601fi
3602
3603
3604  test -n "$ac_ct_CC" && break
3605done
3606
3607  if test "x$ac_ct_CC" = x; then
3608    CC=""
3609  else
3610    case $cross_compiling:$ac_tool_warned in
3611yes:)
3612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3613printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3614ac_tool_warned=yes ;;
3615esac
3616    CC=$ac_ct_CC
3617  fi
3618fi
3619
3620fi
3621if test -z "$CC"; then
3622  if test -n "$ac_tool_prefix"; then
3623  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3624set dummy ${ac_tool_prefix}clang; ac_word=$2
3625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626printf %s "checking for $ac_word... " >&6; }
3627if test ${ac_cv_prog_CC+y}
3628then :
3629  printf %s "(cached) " >&6
3630else case e in #(
3631  e) if test -n "$CC"; then
3632  ac_cv_prog_CC="$CC" # Let the user override the test.
3633else
3634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635for as_dir in $PATH
3636do
3637  IFS=$as_save_IFS
3638  case $as_dir in #(((
3639    '') as_dir=./ ;;
3640    */) ;;
3641    *) as_dir=$as_dir/ ;;
3642  esac
3643    for ac_exec_ext in '' $ac_executable_extensions; do
3644  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3645    ac_cv_prog_CC="${ac_tool_prefix}clang"
3646    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3647    break 2
3648  fi
3649done
3650  done
3651IFS=$as_save_IFS
3652
3653fi ;;
3654esac
3655fi
3656CC=$ac_cv_prog_CC
3657if test -n "$CC"; then
3658  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3659printf "%s\n" "$CC" >&6; }
3660else
3661  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662printf "%s\n" "no" >&6; }
3663fi
3664
3665
3666fi
3667if test -z "$ac_cv_prog_CC"; then
3668  ac_ct_CC=$CC
3669  # Extract the first word of "clang", so it can be a program name with args.
3670set dummy clang; ac_word=$2
3671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3672printf %s "checking for $ac_word... " >&6; }
3673if test ${ac_cv_prog_ac_ct_CC+y}
3674then :
3675  printf %s "(cached) " >&6
3676else case e in #(
3677  e) if test -n "$ac_ct_CC"; then
3678  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3679else
3680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681for as_dir in $PATH
3682do
3683  IFS=$as_save_IFS
3684  case $as_dir in #(((
3685    '') as_dir=./ ;;
3686    */) ;;
3687    *) as_dir=$as_dir/ ;;
3688  esac
3689    for ac_exec_ext in '' $ac_executable_extensions; do
3690  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3691    ac_cv_prog_ac_ct_CC="clang"
3692    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3693    break 2
3694  fi
3695done
3696  done
3697IFS=$as_save_IFS
3698
3699fi ;;
3700esac
3701fi
3702ac_ct_CC=$ac_cv_prog_ac_ct_CC
3703if test -n "$ac_ct_CC"; then
3704  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3705printf "%s\n" "$ac_ct_CC" >&6; }
3706else
3707  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708printf "%s\n" "no" >&6; }
3709fi
3710
3711  if test "x$ac_ct_CC" = x; then
3712    CC=""
3713  else
3714    case $cross_compiling:$ac_tool_warned in
3715yes:)
3716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3717printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3718ac_tool_warned=yes ;;
3719esac
3720    CC=$ac_ct_CC
3721  fi
3722else
3723  CC="$ac_cv_prog_CC"
3724fi
3725
3726fi
3727
3728
3729test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3730printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3731as_fn_error $? "no acceptable C compiler found in \$PATH
3732See 'config.log' for more details" "$LINENO" 5; }
3733
3734# Provide some information about the compiler.
3735printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3736set X $ac_compile
3737ac_compiler=$2
3738for ac_option in --version -v -V -qversion -version; do
3739  { { ac_try="$ac_compiler $ac_option >&5"
3740case "(($ac_try" in
3741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742  *) ac_try_echo=$ac_try;;
3743esac
3744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3745printf "%s\n" "$ac_try_echo"; } >&5
3746  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3747  ac_status=$?
3748  if test -s conftest.err; then
3749    sed '10a\
3750... rest of stderr output deleted ...
3751         10q' conftest.err >conftest.er1
3752    cat conftest.er1 >&5
3753  fi
3754  rm -f conftest.er1 conftest.err
3755  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3756  test $ac_status = 0; }
3757done
3758
3759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760/* end confdefs.h.  */
3761
3762int
3763main (void)
3764{
3765
3766  ;
3767  return 0;
3768}
3769_ACEOF
3770ac_clean_files_save=$ac_clean_files
3771ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3772# Try to create an executable without -o first, disregard a.out.
3773# It will help us diagnose broken compilers, and finding out an intuition
3774# of exeext.
3775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3776printf %s "checking whether the C compiler works... " >&6; }
3777ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3778
3779# The possible output files:
3780ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3781
3782ac_rmfiles=
3783for ac_file in $ac_files
3784do
3785  case $ac_file in
3786    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3787    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3788  esac
3789done
3790rm -f $ac_rmfiles
3791
3792if { { ac_try="$ac_link_default"
3793case "(($ac_try" in
3794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795  *) ac_try_echo=$ac_try;;
3796esac
3797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3798printf "%s\n" "$ac_try_echo"; } >&5
3799  (eval "$ac_link_default") 2>&5
3800  ac_status=$?
3801  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3802  test $ac_status = 0; }
3803then :
3804  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3805# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3806# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3807# so that the user can short-circuit this test for compilers unknown to
3808# Autoconf.
3809for ac_file in $ac_files ''
3810do
3811  test -f "$ac_file" || continue
3812  case $ac_file in
3813    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3814	;;
3815    [ab].out )
3816	# We found the default executable, but exeext='' is most
3817	# certainly right.
3818	break;;
3819    *.* )
3820	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3821	then :; else
3822	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3823	fi
3824	# We set ac_cv_exeext here because the later test for it is not
3825	# safe: cross compilers may not add the suffix if given an '-o'
3826	# argument, so we may need to know it at that point already.
3827	# Even if this section looks crufty: it has the advantage of
3828	# actually working.
3829	break;;
3830    * )
3831	break;;
3832  esac
3833done
3834test "$ac_cv_exeext" = no && ac_cv_exeext=
3835
3836else case e in #(
3837  e) ac_file='' ;;
3838esac
3839fi
3840if test -z "$ac_file"
3841then :
3842  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843printf "%s\n" "no" >&6; }
3844printf "%s\n" "$as_me: failed program was:" >&5
3845sed 's/^/| /' conftest.$ac_ext >&5
3846
3847{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3848printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3849as_fn_error 77 "C compiler cannot create executables
3850See 'config.log' for more details" "$LINENO" 5; }
3851else case e in #(
3852  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3853printf "%s\n" "yes" >&6; } ;;
3854esac
3855fi
3856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3857printf %s "checking for C compiler default output file name... " >&6; }
3858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3859printf "%s\n" "$ac_file" >&6; }
3860ac_exeext=$ac_cv_exeext
3861
3862rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3863ac_clean_files=$ac_clean_files_save
3864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3865printf %s "checking for suffix of executables... " >&6; }
3866if { { ac_try="$ac_link"
3867case "(($ac_try" in
3868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869  *) ac_try_echo=$ac_try;;
3870esac
3871eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3872printf "%s\n" "$ac_try_echo"; } >&5
3873  (eval "$ac_link") 2>&5
3874  ac_status=$?
3875  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3876  test $ac_status = 0; }
3877then :
3878  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3879# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
3880# work properly (i.e., refer to 'conftest.exe'), while it won't with
3881# 'rm'.
3882for ac_file in conftest.exe conftest conftest.*; do
3883  test -f "$ac_file" || continue
3884  case $ac_file in
3885    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3886    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3887	  break;;
3888    * ) break;;
3889  esac
3890done
3891else case e in #(
3892  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3893printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3894as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3895See 'config.log' for more details" "$LINENO" 5; } ;;
3896esac
3897fi
3898rm -f conftest conftest$ac_cv_exeext
3899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3900printf "%s\n" "$ac_cv_exeext" >&6; }
3901
3902rm -f conftest.$ac_ext
3903EXEEXT=$ac_cv_exeext
3904ac_exeext=$EXEEXT
3905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906/* end confdefs.h.  */
3907#include <stdio.h>
3908int
3909main (void)
3910{
3911FILE *f = fopen ("conftest.out", "w");
3912 if (!f)
3913  return 1;
3914 return ferror (f) || fclose (f) != 0;
3915
3916  ;
3917  return 0;
3918}
3919_ACEOF
3920ac_clean_files="$ac_clean_files conftest.out"
3921# Check that the compiler produces executables we can run.  If not, either
3922# the compiler is broken, or we cross compile.
3923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3924printf %s "checking whether we are cross compiling... " >&6; }
3925if test "$cross_compiling" != yes; then
3926  { { ac_try="$ac_link"
3927case "(($ac_try" in
3928  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929  *) ac_try_echo=$ac_try;;
3930esac
3931eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3932printf "%s\n" "$ac_try_echo"; } >&5
3933  (eval "$ac_link") 2>&5
3934  ac_status=$?
3935  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3936  test $ac_status = 0; }
3937  if { ac_try='./conftest$ac_cv_exeext'
3938  { { case "(($ac_try" in
3939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940  *) ac_try_echo=$ac_try;;
3941esac
3942eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3943printf "%s\n" "$ac_try_echo"; } >&5
3944  (eval "$ac_try") 2>&5
3945  ac_status=$?
3946  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3947  test $ac_status = 0; }; }; then
3948    cross_compiling=no
3949  else
3950    if test "$cross_compiling" = maybe; then
3951	cross_compiling=yes
3952    else
3953	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3954printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3955as_fn_error 77 "cannot run C compiled programs.
3956If you meant to cross compile, use '--host'.
3957See 'config.log' for more details" "$LINENO" 5; }
3958    fi
3959  fi
3960fi
3961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3962printf "%s\n" "$cross_compiling" >&6; }
3963
3964rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3965  conftest.o conftest.obj conftest.out
3966ac_clean_files=$ac_clean_files_save
3967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3968printf %s "checking for suffix of object files... " >&6; }
3969if test ${ac_cv_objext+y}
3970then :
3971  printf %s "(cached) " >&6
3972else case e in #(
3973  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974/* end confdefs.h.  */
3975
3976int
3977main (void)
3978{
3979
3980  ;
3981  return 0;
3982}
3983_ACEOF
3984rm -f conftest.o conftest.obj
3985if { { ac_try="$ac_compile"
3986case "(($ac_try" in
3987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988  *) ac_try_echo=$ac_try;;
3989esac
3990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3991printf "%s\n" "$ac_try_echo"; } >&5
3992  (eval "$ac_compile") 2>&5
3993  ac_status=$?
3994  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3995  test $ac_status = 0; }
3996then :
3997  for ac_file in conftest.o conftest.obj conftest.*; do
3998  test -f "$ac_file" || continue;
3999  case $ac_file in
4000    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4001    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4002       break;;
4003  esac
4004done
4005else case e in #(
4006  e) printf "%s\n" "$as_me: failed program was:" >&5
4007sed 's/^/| /' conftest.$ac_ext >&5
4008
4009{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4010printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4011as_fn_error $? "cannot compute suffix of object files: cannot compile
4012See 'config.log' for more details" "$LINENO" 5; } ;;
4013esac
4014fi
4015rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4016esac
4017fi
4018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4019printf "%s\n" "$ac_cv_objext" >&6; }
4020OBJEXT=$ac_cv_objext
4021ac_objext=$OBJEXT
4022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4023printf %s "checking whether the compiler supports GNU C... " >&6; }
4024if test ${ac_cv_c_compiler_gnu+y}
4025then :
4026  printf %s "(cached) " >&6
4027else case e in #(
4028  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029/* end confdefs.h.  */
4030
4031int
4032main (void)
4033{
4034#ifndef __GNUC__
4035       choke me
4036#endif
4037
4038  ;
4039  return 0;
4040}
4041_ACEOF
4042if ac_fn_c_try_compile "$LINENO"
4043then :
4044  ac_compiler_gnu=yes
4045else case e in #(
4046  e) ac_compiler_gnu=no ;;
4047esac
4048fi
4049rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4050ac_cv_c_compiler_gnu=$ac_compiler_gnu
4051 ;;
4052esac
4053fi
4054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4055printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4056ac_compiler_gnu=$ac_cv_c_compiler_gnu
4057
4058if test $ac_compiler_gnu = yes; then
4059  GCC=yes
4060else
4061  GCC=
4062fi
4063ac_test_CFLAGS=${CFLAGS+y}
4064ac_save_CFLAGS=$CFLAGS
4065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4066printf %s "checking whether $CC accepts -g... " >&6; }
4067if test ${ac_cv_prog_cc_g+y}
4068then :
4069  printf %s "(cached) " >&6
4070else case e in #(
4071  e) ac_save_c_werror_flag=$ac_c_werror_flag
4072   ac_c_werror_flag=yes
4073   ac_cv_prog_cc_g=no
4074   CFLAGS="-g"
4075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076/* end confdefs.h.  */
4077
4078int
4079main (void)
4080{
4081
4082  ;
4083  return 0;
4084}
4085_ACEOF
4086if ac_fn_c_try_compile "$LINENO"
4087then :
4088  ac_cv_prog_cc_g=yes
4089else case e in #(
4090  e) CFLAGS=""
4091      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092/* end confdefs.h.  */
4093
4094int
4095main (void)
4096{
4097
4098  ;
4099  return 0;
4100}
4101_ACEOF
4102if ac_fn_c_try_compile "$LINENO"
4103then :
4104
4105else case e in #(
4106  e) ac_c_werror_flag=$ac_save_c_werror_flag
4107	 CFLAGS="-g"
4108	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109/* end confdefs.h.  */
4110
4111int
4112main (void)
4113{
4114
4115  ;
4116  return 0;
4117}
4118_ACEOF
4119if ac_fn_c_try_compile "$LINENO"
4120then :
4121  ac_cv_prog_cc_g=yes
4122fi
4123rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4124esac
4125fi
4126rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4127esac
4128fi
4129rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4130   ac_c_werror_flag=$ac_save_c_werror_flag ;;
4131esac
4132fi
4133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4134printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4135if test $ac_test_CFLAGS; then
4136  CFLAGS=$ac_save_CFLAGS
4137elif test $ac_cv_prog_cc_g = yes; then
4138  if test "$GCC" = yes; then
4139    CFLAGS="-g -O2"
4140  else
4141    CFLAGS="-g"
4142  fi
4143else
4144  if test "$GCC" = yes; then
4145    CFLAGS="-O2"
4146  else
4147    CFLAGS=
4148  fi
4149fi
4150ac_prog_cc_stdc=no
4151if test x$ac_prog_cc_stdc = xno
4152then :
4153  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4154printf %s "checking for $CC option to enable C11 features... " >&6; }
4155if test ${ac_cv_prog_cc_c11+y}
4156then :
4157  printf %s "(cached) " >&6
4158else case e in #(
4159  e) ac_cv_prog_cc_c11=no
4160ac_save_CC=$CC
4161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162/* end confdefs.h.  */
4163$ac_c_conftest_c11_program
4164_ACEOF
4165for ac_arg in '' -std=gnu11
4166do
4167  CC="$ac_save_CC $ac_arg"
4168  if ac_fn_c_try_compile "$LINENO"
4169then :
4170  ac_cv_prog_cc_c11=$ac_arg
4171fi
4172rm -f core conftest.err conftest.$ac_objext conftest.beam
4173  test "x$ac_cv_prog_cc_c11" != "xno" && break
4174done
4175rm -f conftest.$ac_ext
4176CC=$ac_save_CC ;;
4177esac
4178fi
4179
4180if test "x$ac_cv_prog_cc_c11" = xno
4181then :
4182  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4183printf "%s\n" "unsupported" >&6; }
4184else case e in #(
4185  e) if test "x$ac_cv_prog_cc_c11" = x
4186then :
4187  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4188printf "%s\n" "none needed" >&6; }
4189else case e in #(
4190  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4191printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4192     CC="$CC $ac_cv_prog_cc_c11" ;;
4193esac
4194fi
4195  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4196  ac_prog_cc_stdc=c11 ;;
4197esac
4198fi
4199fi
4200if test x$ac_prog_cc_stdc = xno
4201then :
4202  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4203printf %s "checking for $CC option to enable C99 features... " >&6; }
4204if test ${ac_cv_prog_cc_c99+y}
4205then :
4206  printf %s "(cached) " >&6
4207else case e in #(
4208  e) ac_cv_prog_cc_c99=no
4209ac_save_CC=$CC
4210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211/* end confdefs.h.  */
4212$ac_c_conftest_c99_program
4213_ACEOF
4214for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4215do
4216  CC="$ac_save_CC $ac_arg"
4217  if ac_fn_c_try_compile "$LINENO"
4218then :
4219  ac_cv_prog_cc_c99=$ac_arg
4220fi
4221rm -f core conftest.err conftest.$ac_objext conftest.beam
4222  test "x$ac_cv_prog_cc_c99" != "xno" && break
4223done
4224rm -f conftest.$ac_ext
4225CC=$ac_save_CC ;;
4226esac
4227fi
4228
4229if test "x$ac_cv_prog_cc_c99" = xno
4230then :
4231  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4232printf "%s\n" "unsupported" >&6; }
4233else case e in #(
4234  e) if test "x$ac_cv_prog_cc_c99" = x
4235then :
4236  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4237printf "%s\n" "none needed" >&6; }
4238else case e in #(
4239  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4240printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4241     CC="$CC $ac_cv_prog_cc_c99" ;;
4242esac
4243fi
4244  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4245  ac_prog_cc_stdc=c99 ;;
4246esac
4247fi
4248fi
4249if test x$ac_prog_cc_stdc = xno
4250then :
4251  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4252printf %s "checking for $CC option to enable C89 features... " >&6; }
4253if test ${ac_cv_prog_cc_c89+y}
4254then :
4255  printf %s "(cached) " >&6
4256else case e in #(
4257  e) ac_cv_prog_cc_c89=no
4258ac_save_CC=$CC
4259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260/* end confdefs.h.  */
4261$ac_c_conftest_c89_program
4262_ACEOF
4263for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4264do
4265  CC="$ac_save_CC $ac_arg"
4266  if ac_fn_c_try_compile "$LINENO"
4267then :
4268  ac_cv_prog_cc_c89=$ac_arg
4269fi
4270rm -f core conftest.err conftest.$ac_objext conftest.beam
4271  test "x$ac_cv_prog_cc_c89" != "xno" && break
4272done
4273rm -f conftest.$ac_ext
4274CC=$ac_save_CC ;;
4275esac
4276fi
4277
4278if test "x$ac_cv_prog_cc_c89" = xno
4279then :
4280  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4281printf "%s\n" "unsupported" >&6; }
4282else case e in #(
4283  e) if test "x$ac_cv_prog_cc_c89" = x
4284then :
4285  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4286printf "%s\n" "none needed" >&6; }
4287else case e in #(
4288  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4289printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4290     CC="$CC $ac_cv_prog_cc_c89" ;;
4291esac
4292fi
4293  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4294  ac_prog_cc_stdc=c89 ;;
4295esac
4296fi
4297fi
4298
4299ac_ext=c
4300ac_cpp='$CPP $CPPFLAGS'
4301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4303ac_compiler_gnu=$ac_cv_c_compiler_gnu
4304
4305
4306  ac_ext=c
4307ac_cpp='$CPP $CPPFLAGS'
4308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310ac_compiler_gnu=$ac_cv_c_compiler_gnu
4311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4312printf %s "checking whether $CC understands -c and -o together... " >&6; }
4313if test ${am_cv_prog_cc_c_o+y}
4314then :
4315  printf %s "(cached) " >&6
4316else case e in #(
4317  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318/* end confdefs.h.  */
4319
4320int
4321main (void)
4322{
4323
4324  ;
4325  return 0;
4326}
4327_ACEOF
4328  # Make sure it works both with $CC and with simple cc.
4329  # Following AC_PROG_CC_C_O, we do the test twice because some
4330  # compilers refuse to overwrite an existing .o file with -o,
4331  # though they will create one.
4332  am_cv_prog_cc_c_o=yes
4333  for am_i in 1 2; do
4334    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4335   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4336   ac_status=$?
4337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338   (exit $ac_status); } \
4339         && test -f conftest2.$ac_objext; then
4340      : OK
4341    else
4342      am_cv_prog_cc_c_o=no
4343      break
4344    fi
4345  done
4346  rm -f core conftest*
4347  unset am_i ;;
4348esac
4349fi
4350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4351printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4352if test "$am_cv_prog_cc_c_o" != yes; then
4353   # Losing compiler, so override with the script.
4354   # FIXME: It is wrong to rewrite CC.
4355   # But if we don't then we get into trouble of one sort or another.
4356   # A longer-term fix would be to have automake use am__CC in this case,
4357   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4358   CC="$am_aux_dir/compile $CC"
4359fi
4360ac_ext=c
4361ac_cpp='$CPP $CPPFLAGS'
4362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4364ac_compiler_gnu=$ac_cv_c_compiler_gnu
4365
4366
4367depcc="$CC"   am_compiler_list=
4368
4369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4370printf %s "checking dependency style of $depcc... " >&6; }
4371if test ${am_cv_CC_dependencies_compiler_type+y}
4372then :
4373  printf %s "(cached) " >&6
4374else case e in #(
4375  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4376  # We make a subdir and do the tests there.  Otherwise we can end up
4377  # making bogus files that we don't know about and never remove.  For
4378  # instance it was reported that on HP-UX the gcc test will end up
4379  # making a dummy file named 'D' -- because '-MD' means "put the output
4380  # in D".
4381  rm -rf conftest.dir
4382  mkdir conftest.dir
4383  # Copy depcomp to subdir because otherwise we won't find it if we're
4384  # using a relative directory.
4385  cp "$am_depcomp" conftest.dir
4386  cd conftest.dir
4387  # We will build objects and dependencies in a subdirectory because
4388  # it helps to detect inapplicable dependency modes.  For instance
4389  # both Tru64's cc and ICC support -MD to output dependencies as a
4390  # side effect of compilation, but ICC will put the dependencies in
4391  # the current directory while Tru64 will put them in the object
4392  # directory.
4393  mkdir sub
4394
4395  am_cv_CC_dependencies_compiler_type=none
4396  if test "$am_compiler_list" = ""; then
4397     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4398  fi
4399  am__universal=false
4400  case " $depcc " in #(
4401     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4402     esac
4403
4404  for depmode in $am_compiler_list; do
4405    # Setup a source with many dependencies, because some compilers
4406    # like to wrap large dependency lists on column 80 (with \), and
4407    # we should not choose a depcomp mode which is confused by this.
4408    #
4409    # We need to recreate these files for each test, as the compiler may
4410    # overwrite some of them when testing with obscure command lines.
4411    # This happens at least with the AIX C compiler.
4412    : > sub/conftest.c
4413    for i in 1 2 3 4 5 6; do
4414      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4415      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4416      # Solaris 10 /bin/sh.
4417      echo '/* dummy */' > sub/conftst$i.h
4418    done
4419    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4420
4421    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4422    # mode.  It turns out that the SunPro C++ compiler does not properly
4423    # handle '-M -o', and we need to detect this.  Also, some Intel
4424    # versions had trouble with output in subdirs.
4425    am__obj=sub/conftest.${OBJEXT-o}
4426    am__minus_obj="-o $am__obj"
4427    case $depmode in
4428    gcc)
4429      # This depmode causes a compiler race in universal mode.
4430      test "$am__universal" = false || continue
4431      ;;
4432    nosideeffect)
4433      # After this tag, mechanisms are not by side-effect, so they'll
4434      # only be used when explicitly requested.
4435      if test "x$enable_dependency_tracking" = xyes; then
4436	continue
4437      else
4438	break
4439      fi
4440      ;;
4441    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4442      # This compiler won't grok '-c -o', but also, the minuso test has
4443      # not run yet.  These depmodes are late enough in the game, and
4444      # so weak that their functioning should not be impacted.
4445      am__obj=conftest.${OBJEXT-o}
4446      am__minus_obj=
4447      ;;
4448    none) break ;;
4449    esac
4450    if depmode=$depmode \
4451       source=sub/conftest.c object=$am__obj \
4452       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4453       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4454         >/dev/null 2>conftest.err &&
4455       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4456       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4457       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4458       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4459      # icc doesn't choke on unknown options, it will just issue warnings
4460      # or remarks (even with -Werror).  So we grep stderr for any message
4461      # that says an option was ignored or not supported.
4462      # When given -MP, icc 7.0 and 7.1 complain thusly:
4463      #   icc: Command line warning: ignoring option '-M'; no argument required
4464      # The diagnosis changed in icc 8.0:
4465      #   icc: Command line remark: option '-MP' not supported
4466      if (grep 'ignoring option' conftest.err ||
4467          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4468        am_cv_CC_dependencies_compiler_type=$depmode
4469        break
4470      fi
4471    fi
4472  done
4473
4474  cd ..
4475  rm -rf conftest.dir
4476else
4477  am_cv_CC_dependencies_compiler_type=none
4478fi
4479 ;;
4480esac
4481fi
4482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4483printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4484CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4485
4486 if
4487  test "x$enable_dependency_tracking" != xno \
4488  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4489  am__fastdepCC_TRUE=
4490  am__fastdepCC_FALSE='#'
4491else
4492  am__fastdepCC_TRUE='#'
4493  am__fastdepCC_FALSE=
4494fi
4495
4496
4497
4498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4499printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4500if test ${ac_cv_c_undeclared_builtin_options+y}
4501then :
4502  printf %s "(cached) " >&6
4503else case e in #(
4504  e) ac_save_CFLAGS=$CFLAGS
4505   ac_cv_c_undeclared_builtin_options='cannot detect'
4506   for ac_arg in '' -fno-builtin; do
4507     CFLAGS="$ac_save_CFLAGS $ac_arg"
4508     # This test program should *not* compile successfully.
4509     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510/* end confdefs.h.  */
4511
4512int
4513main (void)
4514{
4515(void) strchr;
4516  ;
4517  return 0;
4518}
4519_ACEOF
4520if ac_fn_c_try_compile "$LINENO"
4521then :
4522
4523else case e in #(
4524  e) # This test program should compile successfully.
4525        # No library function is consistently available on
4526        # freestanding implementations, so test against a dummy
4527        # declaration.  Include always-available headers on the
4528        # off chance that they somehow elicit warnings.
4529        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530/* end confdefs.h.  */
4531#include <float.h>
4532#include <limits.h>
4533#include <stdarg.h>
4534#include <stddef.h>
4535extern void ac_decl (int, char *);
4536
4537int
4538main (void)
4539{
4540(void) ac_decl (0, (char *) 0);
4541  (void) ac_decl;
4542
4543  ;
4544  return 0;
4545}
4546_ACEOF
4547if ac_fn_c_try_compile "$LINENO"
4548then :
4549  if test x"$ac_arg" = x
4550then :
4551  ac_cv_c_undeclared_builtin_options='none needed'
4552else case e in #(
4553  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4554esac
4555fi
4556          break
4557fi
4558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4559esac
4560fi
4561rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4562    done
4563    CFLAGS=$ac_save_CFLAGS
4564   ;;
4565esac
4566fi
4567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4568printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4569  case $ac_cv_c_undeclared_builtin_options in #(
4570  'cannot detect') :
4571    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4572printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4573as_fn_error $? "cannot make $CC report undeclared builtins
4574See 'config.log' for more details" "$LINENO" 5; } ;; #(
4575  'none needed') :
4576    ac_c_undeclared_builtin_options='' ;; #(
4577  *) :
4578    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4579esac
4580
4581ac_header= ac_cache=
4582for ac_item in $ac_header_c_list
4583do
4584  if test $ac_cache; then
4585    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4586    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4587      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4588    fi
4589    ac_header= ac_cache=
4590  elif test $ac_header; then
4591    ac_cache=$ac_item
4592  else
4593    ac_header=$ac_item
4594  fi
4595done
4596
4597
4598
4599
4600
4601
4602
4603
4604if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4605then :
4606
4607printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4608
4609fi
4610
4611
4612
4613
4614ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4615if test "x$ac_cv_have_decl___clang__" = xyes
4616then :
4617  CLANGCC="yes"
4618else case e in #(
4619  e) CLANGCC="no" ;;
4620esac
4621fi
4622ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4623if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4624then :
4625  INTELCC="yes"
4626else case e in #(
4627  e) INTELCC="no" ;;
4628esac
4629fi
4630ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4631if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4632then :
4633  SUNCC="yes"
4634else case e in #(
4635  e) SUNCC="no" ;;
4636esac
4637fi
4638
4639
4640
4641
4642
4643
4644
4645
4646if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4647	if test -n "$ac_tool_prefix"; then
4648  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4649set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651printf %s "checking for $ac_word... " >&6; }
4652if test ${ac_cv_path_PKG_CONFIG+y}
4653then :
4654  printf %s "(cached) " >&6
4655else case e in #(
4656  e) case $PKG_CONFIG in
4657  [\\/]* | ?:[\\/]*)
4658  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4659  ;;
4660  *)
4661  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662for as_dir in $PATH
4663do
4664  IFS=$as_save_IFS
4665  case $as_dir in #(((
4666    '') as_dir=./ ;;
4667    */) ;;
4668    *) as_dir=$as_dir/ ;;
4669  esac
4670    for ac_exec_ext in '' $ac_executable_extensions; do
4671  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4672    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4673    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4674    break 2
4675  fi
4676done
4677  done
4678IFS=$as_save_IFS
4679
4680  ;;
4681esac ;;
4682esac
4683fi
4684PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4685if test -n "$PKG_CONFIG"; then
4686  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4687printf "%s\n" "$PKG_CONFIG" >&6; }
4688else
4689  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690printf "%s\n" "no" >&6; }
4691fi
4692
4693
4694fi
4695if test -z "$ac_cv_path_PKG_CONFIG"; then
4696  ac_pt_PKG_CONFIG=$PKG_CONFIG
4697  # Extract the first word of "pkg-config", so it can be a program name with args.
4698set dummy pkg-config; ac_word=$2
4699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4700printf %s "checking for $ac_word... " >&6; }
4701if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4702then :
4703  printf %s "(cached) " >&6
4704else case e in #(
4705  e) case $ac_pt_PKG_CONFIG in
4706  [\\/]* | ?:[\\/]*)
4707  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4708  ;;
4709  *)
4710  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711for as_dir in $PATH
4712do
4713  IFS=$as_save_IFS
4714  case $as_dir in #(((
4715    '') as_dir=./ ;;
4716    */) ;;
4717    *) as_dir=$as_dir/ ;;
4718  esac
4719    for ac_exec_ext in '' $ac_executable_extensions; do
4720  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4721    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4722    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4723    break 2
4724  fi
4725done
4726  done
4727IFS=$as_save_IFS
4728
4729  ;;
4730esac ;;
4731esac
4732fi
4733ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4734if test -n "$ac_pt_PKG_CONFIG"; then
4735  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4736printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4737else
4738  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4739printf "%s\n" "no" >&6; }
4740fi
4741
4742  if test "x$ac_pt_PKG_CONFIG" = x; then
4743    PKG_CONFIG=""
4744  else
4745    case $cross_compiling:$ac_tool_warned in
4746yes:)
4747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4748printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4749ac_tool_warned=yes ;;
4750esac
4751    PKG_CONFIG=$ac_pt_PKG_CONFIG
4752  fi
4753else
4754  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4755fi
4756
4757fi
4758if test -n "$PKG_CONFIG"; then
4759	_pkg_min_version=0.9.0
4760	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4761printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4762	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4763		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4764printf "%s\n" "yes" >&6; }
4765	else
4766		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767printf "%s\n" "no" >&6; }
4768		PKG_CONFIG=""
4769	fi
4770fi
4771
4772
4773  # Make sure we can run config.sub.
4774$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4775  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4776
4777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4778printf %s "checking build system type... " >&6; }
4779if test ${ac_cv_build+y}
4780then :
4781  printf %s "(cached) " >&6
4782else case e in #(
4783  e) ac_build_alias=$build_alias
4784test "x$ac_build_alias" = x &&
4785  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4786test "x$ac_build_alias" = x &&
4787  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4788ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4789  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4790 ;;
4791esac
4792fi
4793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4794printf "%s\n" "$ac_cv_build" >&6; }
4795case $ac_cv_build in
4796*-*-*) ;;
4797*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4798esac
4799build=$ac_cv_build
4800ac_save_IFS=$IFS; IFS='-'
4801set x $ac_cv_build
4802shift
4803build_cpu=$1
4804build_vendor=$2
4805shift; shift
4806# Remember, the first character of IFS is used to create $*,
4807# except with old shells:
4808build_os=$*
4809IFS=$ac_save_IFS
4810case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4811
4812
4813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4814printf %s "checking host system type... " >&6; }
4815if test ${ac_cv_host+y}
4816then :
4817  printf %s "(cached) " >&6
4818else case e in #(
4819  e) if test "x$host_alias" = x; then
4820  ac_cv_host=$ac_cv_build
4821else
4822  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4823    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4824fi
4825 ;;
4826esac
4827fi
4828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4829printf "%s\n" "$ac_cv_host" >&6; }
4830case $ac_cv_host in
4831*-*-*) ;;
4832*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4833esac
4834host=$ac_cv_host
4835ac_save_IFS=$IFS; IFS='-'
4836set x $ac_cv_host
4837shift
4838host_cpu=$1
4839host_vendor=$2
4840shift; shift
4841# Remember, the first character of IFS is used to create $*,
4842# except with old shells:
4843host_os=$*
4844IFS=$ac_save_IFS
4845case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4846
4847
4848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4849printf %s "checking for a sed that does not truncate output... " >&6; }
4850if test ${ac_cv_path_SED+y}
4851then :
4852  printf %s "(cached) " >&6
4853else case e in #(
4854  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4855     for ac_i in 1 2 3 4 5 6 7; do
4856       ac_script="$ac_script$as_nl$ac_script"
4857     done
4858     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4859     { ac_script=; unset ac_script;}
4860     if test -z "$SED"; then
4861  ac_path_SED_found=false
4862  # Loop through the user's path and test for each of PROGNAME-LIST
4863  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864for as_dir in $PATH
4865do
4866  IFS=$as_save_IFS
4867  case $as_dir in #(((
4868    '') as_dir=./ ;;
4869    */) ;;
4870    *) as_dir=$as_dir/ ;;
4871  esac
4872    for ac_prog in sed gsed
4873   do
4874    for ac_exec_ext in '' $ac_executable_extensions; do
4875      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4876      as_fn_executable_p "$ac_path_SED" || continue
4877# Check for GNU ac_path_SED and select it if it is found.
4878  # Check for GNU $ac_path_SED
4879case `"$ac_path_SED" --version 2>&1` in #(
4880*GNU*)
4881  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4882#(
4883*)
4884  ac_count=0
4885  printf %s 0123456789 >"conftest.in"
4886  while :
4887  do
4888    cat "conftest.in" "conftest.in" >"conftest.tmp"
4889    mv "conftest.tmp" "conftest.in"
4890    cp "conftest.in" "conftest.nl"
4891    printf "%s\n" '' >> "conftest.nl"
4892    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4893    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4894    as_fn_arith $ac_count + 1 && ac_count=$as_val
4895    if test $ac_count -gt ${ac_path_SED_max-0}; then
4896      # Best one so far, save it but keep looking for a better one
4897      ac_cv_path_SED="$ac_path_SED"
4898      ac_path_SED_max=$ac_count
4899    fi
4900    # 10*(2^10) chars as input seems more than enough
4901    test $ac_count -gt 10 && break
4902  done
4903  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4904esac
4905
4906      $ac_path_SED_found && break 3
4907    done
4908  done
4909  done
4910IFS=$as_save_IFS
4911  if test -z "$ac_cv_path_SED"; then
4912    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4913  fi
4914else
4915  ac_cv_path_SED=$SED
4916fi
4917 ;;
4918esac
4919fi
4920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4921printf "%s\n" "$ac_cv_path_SED" >&6; }
4922 SED="$ac_cv_path_SED"
4923  rm -f conftest.sed
4924
4925
4926
4927
4928
4929
4930# Check whether --enable-selective-werror was given.
4931if test ${enable_selective_werror+y}
4932then :
4933  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4934else case e in #(
4935  e) SELECTIVE_WERROR=yes ;;
4936esac
4937fi
4938
4939
4940
4941
4942
4943# -v is too short to test reliably with XORG_TESTSET_CFLAG
4944if test "x$SUNCC" = "xyes"; then
4945    BASE_CFLAGS="-v"
4946else
4947    BASE_CFLAGS=""
4948fi
4949
4950# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964xorg_testset_save_CFLAGS="$CFLAGS"
4965
4966if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4967	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4968	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4969printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4970if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4971then :
4972  printf %s "(cached) " >&6
4973else case e in #(
4974  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975/* end confdefs.h.  */
4976int i;
4977_ACEOF
4978if ac_fn_c_try_compile "$LINENO"
4979then :
4980  xorg_cv_cc_flag_unknown_warning_option=yes
4981else case e in #(
4982  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
4983esac
4984fi
4985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4986esac
4987fi
4988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4989printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4990	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4991	CFLAGS="$xorg_testset_save_CFLAGS"
4992fi
4993
4994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4995	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4996		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4997	fi
4998	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4999	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5000printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5001if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5002then :
5003  printf %s "(cached) " >&6
5004else case e in #(
5005  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5006/* end confdefs.h.  */
5007int i;
5008_ACEOF
5009if ac_fn_c_try_compile "$LINENO"
5010then :
5011  xorg_cv_cc_flag_unused_command_line_argument=yes
5012else case e in #(
5013  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5014esac
5015fi
5016rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5017esac
5018fi
5019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5020printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5021	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5022	CFLAGS="$xorg_testset_save_CFLAGS"
5023fi
5024
5025found="no"
5026
5027	if test $found = "no" ; then
5028		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5029			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5030		fi
5031
5032		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5033			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5034		fi
5035
5036		CFLAGS="$CFLAGS -Wall"
5037
5038		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5039printf %s "checking if $CC supports -Wall... " >&6; }
5040		cacheid=xorg_cv_cc_flag__Wall
5041		if eval test \${$cacheid+y}
5042then :
5043  printf %s "(cached) " >&6
5044else case e in #(
5045  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046/* end confdefs.h.  */
5047int i;
5048int
5049main (void)
5050{
5051
5052  ;
5053  return 0;
5054}
5055_ACEOF
5056if ac_fn_c_try_link "$LINENO"
5057then :
5058  eval $cacheid=yes
5059else case e in #(
5060  e) eval $cacheid=no ;;
5061esac
5062fi
5063rm -f core conftest.err conftest.$ac_objext conftest.beam \
5064    conftest$ac_exeext conftest.$ac_ext ;;
5065esac
5066fi
5067
5068
5069		CFLAGS="$xorg_testset_save_CFLAGS"
5070
5071		eval supported=\$$cacheid
5072		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5073printf "%s\n" "$supported" >&6; }
5074		if test "$supported" = "yes" ; then
5075			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5076			found="yes"
5077		fi
5078	fi
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094xorg_testset_save_CFLAGS="$CFLAGS"
5095
5096if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5097	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5098	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5099printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5100if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5101then :
5102  printf %s "(cached) " >&6
5103else case e in #(
5104  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105/* end confdefs.h.  */
5106int i;
5107_ACEOF
5108if ac_fn_c_try_compile "$LINENO"
5109then :
5110  xorg_cv_cc_flag_unknown_warning_option=yes
5111else case e in #(
5112  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5113esac
5114fi
5115rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5116esac
5117fi
5118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5119printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5120	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5121	CFLAGS="$xorg_testset_save_CFLAGS"
5122fi
5123
5124if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5125	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5126		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5127	fi
5128	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5129	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5130printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5131if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5132then :
5133  printf %s "(cached) " >&6
5134else case e in #(
5135  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136/* end confdefs.h.  */
5137int i;
5138_ACEOF
5139if ac_fn_c_try_compile "$LINENO"
5140then :
5141  xorg_cv_cc_flag_unused_command_line_argument=yes
5142else case e in #(
5143  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5144esac
5145fi
5146rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5147esac
5148fi
5149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5150printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5151	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5152	CFLAGS="$xorg_testset_save_CFLAGS"
5153fi
5154
5155found="no"
5156
5157	if test $found = "no" ; then
5158		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5159			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5160		fi
5161
5162		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5163			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5164		fi
5165
5166		CFLAGS="$CFLAGS -Wpointer-arith"
5167
5168		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5169printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5170		cacheid=xorg_cv_cc_flag__Wpointer_arith
5171		if eval test \${$cacheid+y}
5172then :
5173  printf %s "(cached) " >&6
5174else case e in #(
5175  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176/* end confdefs.h.  */
5177int i;
5178int
5179main (void)
5180{
5181
5182  ;
5183  return 0;
5184}
5185_ACEOF
5186if ac_fn_c_try_link "$LINENO"
5187then :
5188  eval $cacheid=yes
5189else case e in #(
5190  e) eval $cacheid=no ;;
5191esac
5192fi
5193rm -f core conftest.err conftest.$ac_objext conftest.beam \
5194    conftest$ac_exeext conftest.$ac_ext ;;
5195esac
5196fi
5197
5198
5199		CFLAGS="$xorg_testset_save_CFLAGS"
5200
5201		eval supported=\$$cacheid
5202		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5203printf "%s\n" "$supported" >&6; }
5204		if test "$supported" = "yes" ; then
5205			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5206			found="yes"
5207		fi
5208	fi
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224xorg_testset_save_CFLAGS="$CFLAGS"
5225
5226if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5227	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5228	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5229printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5230if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5231then :
5232  printf %s "(cached) " >&6
5233else case e in #(
5234  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5235/* end confdefs.h.  */
5236int i;
5237_ACEOF
5238if ac_fn_c_try_compile "$LINENO"
5239then :
5240  xorg_cv_cc_flag_unknown_warning_option=yes
5241else case e in #(
5242  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5243esac
5244fi
5245rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5246esac
5247fi
5248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5249printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5250	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5251	CFLAGS="$xorg_testset_save_CFLAGS"
5252fi
5253
5254if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5255	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5256		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5257	fi
5258	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5259	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5260printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5261if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5262then :
5263  printf %s "(cached) " >&6
5264else case e in #(
5265  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266/* end confdefs.h.  */
5267int i;
5268_ACEOF
5269if ac_fn_c_try_compile "$LINENO"
5270then :
5271  xorg_cv_cc_flag_unused_command_line_argument=yes
5272else case e in #(
5273  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5274esac
5275fi
5276rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5277esac
5278fi
5279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5280printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5281	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5282	CFLAGS="$xorg_testset_save_CFLAGS"
5283fi
5284
5285found="no"
5286
5287	if test $found = "no" ; then
5288		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5289			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5290		fi
5291
5292		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5293			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5294		fi
5295
5296		CFLAGS="$CFLAGS -Wmissing-declarations"
5297
5298		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5299printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5300		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5301		if eval test \${$cacheid+y}
5302then :
5303  printf %s "(cached) " >&6
5304else case e in #(
5305  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306/* end confdefs.h.  */
5307int i;
5308int
5309main (void)
5310{
5311
5312  ;
5313  return 0;
5314}
5315_ACEOF
5316if ac_fn_c_try_link "$LINENO"
5317then :
5318  eval $cacheid=yes
5319else case e in #(
5320  e) eval $cacheid=no ;;
5321esac
5322fi
5323rm -f core conftest.err conftest.$ac_objext conftest.beam \
5324    conftest$ac_exeext conftest.$ac_ext ;;
5325esac
5326fi
5327
5328
5329		CFLAGS="$xorg_testset_save_CFLAGS"
5330
5331		eval supported=\$$cacheid
5332		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5333printf "%s\n" "$supported" >&6; }
5334		if test "$supported" = "yes" ; then
5335			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5336			found="yes"
5337		fi
5338	fi
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354xorg_testset_save_CFLAGS="$CFLAGS"
5355
5356if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5357	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5358	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5359printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5360if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5361then :
5362  printf %s "(cached) " >&6
5363else case e in #(
5364  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365/* end confdefs.h.  */
5366int i;
5367_ACEOF
5368if ac_fn_c_try_compile "$LINENO"
5369then :
5370  xorg_cv_cc_flag_unknown_warning_option=yes
5371else case e in #(
5372  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5373esac
5374fi
5375rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5376esac
5377fi
5378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5379printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5380	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5381	CFLAGS="$xorg_testset_save_CFLAGS"
5382fi
5383
5384if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5385	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5386		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5387	fi
5388	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5389	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5390printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5391if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5392then :
5393  printf %s "(cached) " >&6
5394else case e in #(
5395  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396/* end confdefs.h.  */
5397int i;
5398_ACEOF
5399if ac_fn_c_try_compile "$LINENO"
5400then :
5401  xorg_cv_cc_flag_unused_command_line_argument=yes
5402else case e in #(
5403  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5404esac
5405fi
5406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5407esac
5408fi
5409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5410printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5411	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5412	CFLAGS="$xorg_testset_save_CFLAGS"
5413fi
5414
5415found="no"
5416
5417	if test $found = "no" ; then
5418		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5419			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5420		fi
5421
5422		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5423			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5424		fi
5425
5426		CFLAGS="$CFLAGS -Wformat=2"
5427
5428		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5429printf %s "checking if $CC supports -Wformat=2... " >&6; }
5430		cacheid=xorg_cv_cc_flag__Wformat_2
5431		if eval test \${$cacheid+y}
5432then :
5433  printf %s "(cached) " >&6
5434else case e in #(
5435  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436/* end confdefs.h.  */
5437int i;
5438int
5439main (void)
5440{
5441
5442  ;
5443  return 0;
5444}
5445_ACEOF
5446if ac_fn_c_try_link "$LINENO"
5447then :
5448  eval $cacheid=yes
5449else case e in #(
5450  e) eval $cacheid=no ;;
5451esac
5452fi
5453rm -f core conftest.err conftest.$ac_objext conftest.beam \
5454    conftest$ac_exeext conftest.$ac_ext ;;
5455esac
5456fi
5457
5458
5459		CFLAGS="$xorg_testset_save_CFLAGS"
5460
5461		eval supported=\$$cacheid
5462		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5463printf "%s\n" "$supported" >&6; }
5464		if test "$supported" = "yes" ; then
5465			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5466			found="yes"
5467		fi
5468	fi
5469
5470	if test $found = "no" ; then
5471		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5472			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5473		fi
5474
5475		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5476			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5477		fi
5478
5479		CFLAGS="$CFLAGS -Wformat"
5480
5481		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5482printf %s "checking if $CC supports -Wformat... " >&6; }
5483		cacheid=xorg_cv_cc_flag__Wformat
5484		if eval test \${$cacheid+y}
5485then :
5486  printf %s "(cached) " >&6
5487else case e in #(
5488  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5489/* end confdefs.h.  */
5490int i;
5491int
5492main (void)
5493{
5494
5495  ;
5496  return 0;
5497}
5498_ACEOF
5499if ac_fn_c_try_link "$LINENO"
5500then :
5501  eval $cacheid=yes
5502else case e in #(
5503  e) eval $cacheid=no ;;
5504esac
5505fi
5506rm -f core conftest.err conftest.$ac_objext conftest.beam \
5507    conftest$ac_exeext conftest.$ac_ext ;;
5508esac
5509fi
5510
5511
5512		CFLAGS="$xorg_testset_save_CFLAGS"
5513
5514		eval supported=\$$cacheid
5515		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5516printf "%s\n" "$supported" >&6; }
5517		if test "$supported" = "yes" ; then
5518			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5519			found="yes"
5520		fi
5521	fi
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539xorg_testset_save_CFLAGS="$CFLAGS"
5540
5541if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5542	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5543	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5544printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5545if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5546then :
5547  printf %s "(cached) " >&6
5548else case e in #(
5549  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550/* end confdefs.h.  */
5551int i;
5552_ACEOF
5553if ac_fn_c_try_compile "$LINENO"
5554then :
5555  xorg_cv_cc_flag_unknown_warning_option=yes
5556else case e in #(
5557  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5558esac
5559fi
5560rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5561esac
5562fi
5563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5564printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5565	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5566	CFLAGS="$xorg_testset_save_CFLAGS"
5567fi
5568
5569if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5570	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5571		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5572	fi
5573	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5574	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5575printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5576if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5577then :
5578  printf %s "(cached) " >&6
5579else case e in #(
5580  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581/* end confdefs.h.  */
5582int i;
5583_ACEOF
5584if ac_fn_c_try_compile "$LINENO"
5585then :
5586  xorg_cv_cc_flag_unused_command_line_argument=yes
5587else case e in #(
5588  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5589esac
5590fi
5591rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5592esac
5593fi
5594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5595printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5596	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5597	CFLAGS="$xorg_testset_save_CFLAGS"
5598fi
5599
5600found="no"
5601
5602	if test $found = "no" ; then
5603		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5604			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5605		fi
5606
5607		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5608			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5609		fi
5610
5611		CFLAGS="$CFLAGS -Wstrict-prototypes"
5612
5613		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5614printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5615		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5616		if eval test \${$cacheid+y}
5617then :
5618  printf %s "(cached) " >&6
5619else case e in #(
5620  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621/* end confdefs.h.  */
5622int i;
5623int
5624main (void)
5625{
5626
5627  ;
5628  return 0;
5629}
5630_ACEOF
5631if ac_fn_c_try_link "$LINENO"
5632then :
5633  eval $cacheid=yes
5634else case e in #(
5635  e) eval $cacheid=no ;;
5636esac
5637fi
5638rm -f core conftest.err conftest.$ac_objext conftest.beam \
5639    conftest$ac_exeext conftest.$ac_ext ;;
5640esac
5641fi
5642
5643
5644		CFLAGS="$xorg_testset_save_CFLAGS"
5645
5646		eval supported=\$$cacheid
5647		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5648printf "%s\n" "$supported" >&6; }
5649		if test "$supported" = "yes" ; then
5650			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5651			found="yes"
5652		fi
5653	fi
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669xorg_testset_save_CFLAGS="$CFLAGS"
5670
5671if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5672	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5673	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5674printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5675if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5676then :
5677  printf %s "(cached) " >&6
5678else case e in #(
5679  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680/* end confdefs.h.  */
5681int i;
5682_ACEOF
5683if ac_fn_c_try_compile "$LINENO"
5684then :
5685  xorg_cv_cc_flag_unknown_warning_option=yes
5686else case e in #(
5687  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5688esac
5689fi
5690rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5691esac
5692fi
5693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5694printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5695	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5696	CFLAGS="$xorg_testset_save_CFLAGS"
5697fi
5698
5699if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5700	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5701		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5702	fi
5703	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5704	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5705printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5706if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5707then :
5708  printf %s "(cached) " >&6
5709else case e in #(
5710  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711/* end confdefs.h.  */
5712int i;
5713_ACEOF
5714if ac_fn_c_try_compile "$LINENO"
5715then :
5716  xorg_cv_cc_flag_unused_command_line_argument=yes
5717else case e in #(
5718  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5719esac
5720fi
5721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5722esac
5723fi
5724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5725printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5726	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5727	CFLAGS="$xorg_testset_save_CFLAGS"
5728fi
5729
5730found="no"
5731
5732	if test $found = "no" ; then
5733		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5734			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5735		fi
5736
5737		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5738			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5739		fi
5740
5741		CFLAGS="$CFLAGS -Wmissing-prototypes"
5742
5743		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5744printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5745		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5746		if eval test \${$cacheid+y}
5747then :
5748  printf %s "(cached) " >&6
5749else case e in #(
5750  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751/* end confdefs.h.  */
5752int i;
5753int
5754main (void)
5755{
5756
5757  ;
5758  return 0;
5759}
5760_ACEOF
5761if ac_fn_c_try_link "$LINENO"
5762then :
5763  eval $cacheid=yes
5764else case e in #(
5765  e) eval $cacheid=no ;;
5766esac
5767fi
5768rm -f core conftest.err conftest.$ac_objext conftest.beam \
5769    conftest$ac_exeext conftest.$ac_ext ;;
5770esac
5771fi
5772
5773
5774		CFLAGS="$xorg_testset_save_CFLAGS"
5775
5776		eval supported=\$$cacheid
5777		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5778printf "%s\n" "$supported" >&6; }
5779		if test "$supported" = "yes" ; then
5780			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5781			found="yes"
5782		fi
5783	fi
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799xorg_testset_save_CFLAGS="$CFLAGS"
5800
5801if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5802	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5803	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5804printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5805if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5806then :
5807  printf %s "(cached) " >&6
5808else case e in #(
5809  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5810/* end confdefs.h.  */
5811int i;
5812_ACEOF
5813if ac_fn_c_try_compile "$LINENO"
5814then :
5815  xorg_cv_cc_flag_unknown_warning_option=yes
5816else case e in #(
5817  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5818esac
5819fi
5820rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5821esac
5822fi
5823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5824printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5825	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5826	CFLAGS="$xorg_testset_save_CFLAGS"
5827fi
5828
5829if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5830	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5831		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5832	fi
5833	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5834	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5835printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5836if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5837then :
5838  printf %s "(cached) " >&6
5839else case e in #(
5840  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841/* end confdefs.h.  */
5842int i;
5843_ACEOF
5844if ac_fn_c_try_compile "$LINENO"
5845then :
5846  xorg_cv_cc_flag_unused_command_line_argument=yes
5847else case e in #(
5848  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5849esac
5850fi
5851rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5852esac
5853fi
5854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5855printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5856	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5857	CFLAGS="$xorg_testset_save_CFLAGS"
5858fi
5859
5860found="no"
5861
5862	if test $found = "no" ; then
5863		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5864			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5865		fi
5866
5867		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5868			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5869		fi
5870
5871		CFLAGS="$CFLAGS -Wnested-externs"
5872
5873		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5874printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5875		cacheid=xorg_cv_cc_flag__Wnested_externs
5876		if eval test \${$cacheid+y}
5877then :
5878  printf %s "(cached) " >&6
5879else case e in #(
5880  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881/* end confdefs.h.  */
5882int i;
5883int
5884main (void)
5885{
5886
5887  ;
5888  return 0;
5889}
5890_ACEOF
5891if ac_fn_c_try_link "$LINENO"
5892then :
5893  eval $cacheid=yes
5894else case e in #(
5895  e) eval $cacheid=no ;;
5896esac
5897fi
5898rm -f core conftest.err conftest.$ac_objext conftest.beam \
5899    conftest$ac_exeext conftest.$ac_ext ;;
5900esac
5901fi
5902
5903
5904		CFLAGS="$xorg_testset_save_CFLAGS"
5905
5906		eval supported=\$$cacheid
5907		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5908printf "%s\n" "$supported" >&6; }
5909		if test "$supported" = "yes" ; then
5910			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5911			found="yes"
5912		fi
5913	fi
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929xorg_testset_save_CFLAGS="$CFLAGS"
5930
5931if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5932	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5933	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5934printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5935if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5936then :
5937  printf %s "(cached) " >&6
5938else case e in #(
5939  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5940/* end confdefs.h.  */
5941int i;
5942_ACEOF
5943if ac_fn_c_try_compile "$LINENO"
5944then :
5945  xorg_cv_cc_flag_unknown_warning_option=yes
5946else case e in #(
5947  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5948esac
5949fi
5950rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5951esac
5952fi
5953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5954printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5955	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5956	CFLAGS="$xorg_testset_save_CFLAGS"
5957fi
5958
5959if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5960	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5961		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5962	fi
5963	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5964	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5965printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5966if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5967then :
5968  printf %s "(cached) " >&6
5969else case e in #(
5970  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971/* end confdefs.h.  */
5972int i;
5973_ACEOF
5974if ac_fn_c_try_compile "$LINENO"
5975then :
5976  xorg_cv_cc_flag_unused_command_line_argument=yes
5977else case e in #(
5978  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5979esac
5980fi
5981rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5982esac
5983fi
5984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5985printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5986	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5987	CFLAGS="$xorg_testset_save_CFLAGS"
5988fi
5989
5990found="no"
5991
5992	if test $found = "no" ; then
5993		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5994			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5995		fi
5996
5997		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5998			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5999		fi
6000
6001		CFLAGS="$CFLAGS -Wbad-function-cast"
6002
6003		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6004printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6005		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6006		if eval test \${$cacheid+y}
6007then :
6008  printf %s "(cached) " >&6
6009else case e in #(
6010  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011/* end confdefs.h.  */
6012int i;
6013int
6014main (void)
6015{
6016
6017  ;
6018  return 0;
6019}
6020_ACEOF
6021if ac_fn_c_try_link "$LINENO"
6022then :
6023  eval $cacheid=yes
6024else case e in #(
6025  e) eval $cacheid=no ;;
6026esac
6027fi
6028rm -f core conftest.err conftest.$ac_objext conftest.beam \
6029    conftest$ac_exeext conftest.$ac_ext ;;
6030esac
6031fi
6032
6033
6034		CFLAGS="$xorg_testset_save_CFLAGS"
6035
6036		eval supported=\$$cacheid
6037		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6038printf "%s\n" "$supported" >&6; }
6039		if test "$supported" = "yes" ; then
6040			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6041			found="yes"
6042		fi
6043	fi
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059xorg_testset_save_CFLAGS="$CFLAGS"
6060
6061if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6062	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6063	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6064printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6065if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6066then :
6067  printf %s "(cached) " >&6
6068else case e in #(
6069  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070/* end confdefs.h.  */
6071int i;
6072_ACEOF
6073if ac_fn_c_try_compile "$LINENO"
6074then :
6075  xorg_cv_cc_flag_unknown_warning_option=yes
6076else case e in #(
6077  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6078esac
6079fi
6080rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6081esac
6082fi
6083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6084printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6085	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6086	CFLAGS="$xorg_testset_save_CFLAGS"
6087fi
6088
6089if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6090	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6091		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6092	fi
6093	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6094	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6095printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6096if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6097then :
6098  printf %s "(cached) " >&6
6099else case e in #(
6100  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101/* end confdefs.h.  */
6102int i;
6103_ACEOF
6104if ac_fn_c_try_compile "$LINENO"
6105then :
6106  xorg_cv_cc_flag_unused_command_line_argument=yes
6107else case e in #(
6108  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6109esac
6110fi
6111rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6112esac
6113fi
6114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6115printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6116	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6117	CFLAGS="$xorg_testset_save_CFLAGS"
6118fi
6119
6120found="no"
6121
6122	if test $found = "no" ; then
6123		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6124			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6125		fi
6126
6127		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6128			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6129		fi
6130
6131		CFLAGS="$CFLAGS -Wold-style-definition"
6132
6133		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6134printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6135		cacheid=xorg_cv_cc_flag__Wold_style_definition
6136		if eval test \${$cacheid+y}
6137then :
6138  printf %s "(cached) " >&6
6139else case e in #(
6140  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6141/* end confdefs.h.  */
6142int i;
6143int
6144main (void)
6145{
6146
6147  ;
6148  return 0;
6149}
6150_ACEOF
6151if ac_fn_c_try_link "$LINENO"
6152then :
6153  eval $cacheid=yes
6154else case e in #(
6155  e) eval $cacheid=no ;;
6156esac
6157fi
6158rm -f core conftest.err conftest.$ac_objext conftest.beam \
6159    conftest$ac_exeext conftest.$ac_ext ;;
6160esac
6161fi
6162
6163
6164		CFLAGS="$xorg_testset_save_CFLAGS"
6165
6166		eval supported=\$$cacheid
6167		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6168printf "%s\n" "$supported" >&6; }
6169		if test "$supported" = "yes" ; then
6170			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6171			found="yes"
6172		fi
6173	fi
6174
6175	if test $found = "no" ; then
6176		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6177			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6178		fi
6179
6180		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6181			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6182		fi
6183
6184		CFLAGS="$CFLAGS -fd"
6185
6186		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6187printf %s "checking if $CC supports -fd... " >&6; }
6188		cacheid=xorg_cv_cc_flag__fd
6189		if eval test \${$cacheid+y}
6190then :
6191  printf %s "(cached) " >&6
6192else case e in #(
6193  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194/* end confdefs.h.  */
6195int i;
6196int
6197main (void)
6198{
6199
6200  ;
6201  return 0;
6202}
6203_ACEOF
6204if ac_fn_c_try_link "$LINENO"
6205then :
6206  eval $cacheid=yes
6207else case e in #(
6208  e) eval $cacheid=no ;;
6209esac
6210fi
6211rm -f core conftest.err conftest.$ac_objext conftest.beam \
6212    conftest$ac_exeext conftest.$ac_ext ;;
6213esac
6214fi
6215
6216
6217		CFLAGS="$xorg_testset_save_CFLAGS"
6218
6219		eval supported=\$$cacheid
6220		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6221printf "%s\n" "$supported" >&6; }
6222		if test "$supported" = "yes" ; then
6223			BASE_CFLAGS="$BASE_CFLAGS -fd"
6224			found="yes"
6225		fi
6226	fi
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242xorg_testset_save_CFLAGS="$CFLAGS"
6243
6244if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6245	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6246	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6247printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6248if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6249then :
6250  printf %s "(cached) " >&6
6251else case e in #(
6252  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253/* end confdefs.h.  */
6254int i;
6255_ACEOF
6256if ac_fn_c_try_compile "$LINENO"
6257then :
6258  xorg_cv_cc_flag_unknown_warning_option=yes
6259else case e in #(
6260  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6261esac
6262fi
6263rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6264esac
6265fi
6266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6267printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6268	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6269	CFLAGS="$xorg_testset_save_CFLAGS"
6270fi
6271
6272if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6273	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6274		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6275	fi
6276	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6277	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6278printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6279if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6280then :
6281  printf %s "(cached) " >&6
6282else case e in #(
6283  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284/* end confdefs.h.  */
6285int i;
6286_ACEOF
6287if ac_fn_c_try_compile "$LINENO"
6288then :
6289  xorg_cv_cc_flag_unused_command_line_argument=yes
6290else case e in #(
6291  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6292esac
6293fi
6294rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6295esac
6296fi
6297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6298printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6299	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6300	CFLAGS="$xorg_testset_save_CFLAGS"
6301fi
6302
6303found="no"
6304
6305	if test $found = "no" ; then
6306		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6307			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6308		fi
6309
6310		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6311			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6312		fi
6313
6314		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6315
6316		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6317printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6318		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6319		if eval test \${$cacheid+y}
6320then :
6321  printf %s "(cached) " >&6
6322else case e in #(
6323  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324/* end confdefs.h.  */
6325int i;
6326int
6327main (void)
6328{
6329
6330  ;
6331  return 0;
6332}
6333_ACEOF
6334if ac_fn_c_try_link "$LINENO"
6335then :
6336  eval $cacheid=yes
6337else case e in #(
6338  e) eval $cacheid=no ;;
6339esac
6340fi
6341rm -f core conftest.err conftest.$ac_objext conftest.beam \
6342    conftest$ac_exeext conftest.$ac_ext ;;
6343esac
6344fi
6345
6346
6347		CFLAGS="$xorg_testset_save_CFLAGS"
6348
6349		eval supported=\$$cacheid
6350		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6351printf "%s\n" "$supported" >&6; }
6352		if test "$supported" = "yes" ; then
6353			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6354			found="yes"
6355		fi
6356	fi
6357
6358
6359
6360
6361
6362# This chunk adds additional warnings that could catch undesired effects.
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376xorg_testset_save_CFLAGS="$CFLAGS"
6377
6378if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6379	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6380	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6381printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6382if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6383then :
6384  printf %s "(cached) " >&6
6385else case e in #(
6386  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387/* end confdefs.h.  */
6388int i;
6389_ACEOF
6390if ac_fn_c_try_compile "$LINENO"
6391then :
6392  xorg_cv_cc_flag_unknown_warning_option=yes
6393else case e in #(
6394  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6395esac
6396fi
6397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6398esac
6399fi
6400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6401printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6402	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6403	CFLAGS="$xorg_testset_save_CFLAGS"
6404fi
6405
6406if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6407	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6408		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6409	fi
6410	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6411	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6412printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6413if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6414then :
6415  printf %s "(cached) " >&6
6416else case e in #(
6417  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6418/* end confdefs.h.  */
6419int i;
6420_ACEOF
6421if ac_fn_c_try_compile "$LINENO"
6422then :
6423  xorg_cv_cc_flag_unused_command_line_argument=yes
6424else case e in #(
6425  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6426esac
6427fi
6428rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6429esac
6430fi
6431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6432printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6433	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6434	CFLAGS="$xorg_testset_save_CFLAGS"
6435fi
6436
6437found="no"
6438
6439	if test $found = "no" ; then
6440		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6441			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6442		fi
6443
6444		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6445			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6446		fi
6447
6448		CFLAGS="$CFLAGS -Wunused"
6449
6450		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6451printf %s "checking if $CC supports -Wunused... " >&6; }
6452		cacheid=xorg_cv_cc_flag__Wunused
6453		if eval test \${$cacheid+y}
6454then :
6455  printf %s "(cached) " >&6
6456else case e in #(
6457  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458/* end confdefs.h.  */
6459int i;
6460int
6461main (void)
6462{
6463
6464  ;
6465  return 0;
6466}
6467_ACEOF
6468if ac_fn_c_try_link "$LINENO"
6469then :
6470  eval $cacheid=yes
6471else case e in #(
6472  e) eval $cacheid=no ;;
6473esac
6474fi
6475rm -f core conftest.err conftest.$ac_objext conftest.beam \
6476    conftest$ac_exeext conftest.$ac_ext ;;
6477esac
6478fi
6479
6480
6481		CFLAGS="$xorg_testset_save_CFLAGS"
6482
6483		eval supported=\$$cacheid
6484		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6485printf "%s\n" "$supported" >&6; }
6486		if test "$supported" = "yes" ; then
6487			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6488			found="yes"
6489		fi
6490	fi
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506xorg_testset_save_CFLAGS="$CFLAGS"
6507
6508if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6509	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6510	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6511printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6512if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6513then :
6514  printf %s "(cached) " >&6
6515else case e in #(
6516  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6517/* end confdefs.h.  */
6518int i;
6519_ACEOF
6520if ac_fn_c_try_compile "$LINENO"
6521then :
6522  xorg_cv_cc_flag_unknown_warning_option=yes
6523else case e in #(
6524  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6525esac
6526fi
6527rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6528esac
6529fi
6530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6531printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6532	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6533	CFLAGS="$xorg_testset_save_CFLAGS"
6534fi
6535
6536if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6537	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6538		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6539	fi
6540	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6541	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6542printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6543if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6544then :
6545  printf %s "(cached) " >&6
6546else case e in #(
6547  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548/* end confdefs.h.  */
6549int i;
6550_ACEOF
6551if ac_fn_c_try_compile "$LINENO"
6552then :
6553  xorg_cv_cc_flag_unused_command_line_argument=yes
6554else case e in #(
6555  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6556esac
6557fi
6558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6559esac
6560fi
6561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6562printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6563	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6564	CFLAGS="$xorg_testset_save_CFLAGS"
6565fi
6566
6567found="no"
6568
6569	if test $found = "no" ; then
6570		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6571			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6572		fi
6573
6574		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6575			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6576		fi
6577
6578		CFLAGS="$CFLAGS -Wuninitialized"
6579
6580		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6581printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6582		cacheid=xorg_cv_cc_flag__Wuninitialized
6583		if eval test \${$cacheid+y}
6584then :
6585  printf %s "(cached) " >&6
6586else case e in #(
6587  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588/* end confdefs.h.  */
6589int i;
6590int
6591main (void)
6592{
6593
6594  ;
6595  return 0;
6596}
6597_ACEOF
6598if ac_fn_c_try_link "$LINENO"
6599then :
6600  eval $cacheid=yes
6601else case e in #(
6602  e) eval $cacheid=no ;;
6603esac
6604fi
6605rm -f core conftest.err conftest.$ac_objext conftest.beam \
6606    conftest$ac_exeext conftest.$ac_ext ;;
6607esac
6608fi
6609
6610
6611		CFLAGS="$xorg_testset_save_CFLAGS"
6612
6613		eval supported=\$$cacheid
6614		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6615printf "%s\n" "$supported" >&6; }
6616		if test "$supported" = "yes" ; then
6617			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6618			found="yes"
6619		fi
6620	fi
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636xorg_testset_save_CFLAGS="$CFLAGS"
6637
6638if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6639	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6640	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6641printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6642if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6643then :
6644  printf %s "(cached) " >&6
6645else case e in #(
6646  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6647/* end confdefs.h.  */
6648int i;
6649_ACEOF
6650if ac_fn_c_try_compile "$LINENO"
6651then :
6652  xorg_cv_cc_flag_unknown_warning_option=yes
6653else case e in #(
6654  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6655esac
6656fi
6657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6658esac
6659fi
6660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6661printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6662	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6663	CFLAGS="$xorg_testset_save_CFLAGS"
6664fi
6665
6666if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6667	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6668		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6669	fi
6670	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6671	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6672printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6673if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6674then :
6675  printf %s "(cached) " >&6
6676else case e in #(
6677  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678/* end confdefs.h.  */
6679int i;
6680_ACEOF
6681if ac_fn_c_try_compile "$LINENO"
6682then :
6683  xorg_cv_cc_flag_unused_command_line_argument=yes
6684else case e in #(
6685  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6686esac
6687fi
6688rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6689esac
6690fi
6691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6692printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6693	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6694	CFLAGS="$xorg_testset_save_CFLAGS"
6695fi
6696
6697found="no"
6698
6699	if test $found = "no" ; then
6700		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6701			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6702		fi
6703
6704		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6705			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6706		fi
6707
6708		CFLAGS="$CFLAGS -Wshadow"
6709
6710		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6711printf %s "checking if $CC supports -Wshadow... " >&6; }
6712		cacheid=xorg_cv_cc_flag__Wshadow
6713		if eval test \${$cacheid+y}
6714then :
6715  printf %s "(cached) " >&6
6716else case e in #(
6717  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718/* end confdefs.h.  */
6719int i;
6720int
6721main (void)
6722{
6723
6724  ;
6725  return 0;
6726}
6727_ACEOF
6728if ac_fn_c_try_link "$LINENO"
6729then :
6730  eval $cacheid=yes
6731else case e in #(
6732  e) eval $cacheid=no ;;
6733esac
6734fi
6735rm -f core conftest.err conftest.$ac_objext conftest.beam \
6736    conftest$ac_exeext conftest.$ac_ext ;;
6737esac
6738fi
6739
6740
6741		CFLAGS="$xorg_testset_save_CFLAGS"
6742
6743		eval supported=\$$cacheid
6744		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6745printf "%s\n" "$supported" >&6; }
6746		if test "$supported" = "yes" ; then
6747			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6748			found="yes"
6749		fi
6750	fi
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766xorg_testset_save_CFLAGS="$CFLAGS"
6767
6768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6769	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6770	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6771printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6772if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6773then :
6774  printf %s "(cached) " >&6
6775else case e in #(
6776  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777/* end confdefs.h.  */
6778int i;
6779_ACEOF
6780if ac_fn_c_try_compile "$LINENO"
6781then :
6782  xorg_cv_cc_flag_unknown_warning_option=yes
6783else case e in #(
6784  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6785esac
6786fi
6787rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6788esac
6789fi
6790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6791printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6792	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6793	CFLAGS="$xorg_testset_save_CFLAGS"
6794fi
6795
6796if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6797	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6798		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6799	fi
6800	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6801	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6802printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6803if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6804then :
6805  printf %s "(cached) " >&6
6806else case e in #(
6807  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808/* end confdefs.h.  */
6809int i;
6810_ACEOF
6811if ac_fn_c_try_compile "$LINENO"
6812then :
6813  xorg_cv_cc_flag_unused_command_line_argument=yes
6814else case e in #(
6815  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6816esac
6817fi
6818rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6819esac
6820fi
6821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6822printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6823	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6824	CFLAGS="$xorg_testset_save_CFLAGS"
6825fi
6826
6827found="no"
6828
6829	if test $found = "no" ; then
6830		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6831			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6832		fi
6833
6834		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6835			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6836		fi
6837
6838		CFLAGS="$CFLAGS -Wmissing-noreturn"
6839
6840		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6841printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6842		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6843		if eval test \${$cacheid+y}
6844then :
6845  printf %s "(cached) " >&6
6846else case e in #(
6847  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848/* end confdefs.h.  */
6849int i;
6850int
6851main (void)
6852{
6853
6854  ;
6855  return 0;
6856}
6857_ACEOF
6858if ac_fn_c_try_link "$LINENO"
6859then :
6860  eval $cacheid=yes
6861else case e in #(
6862  e) eval $cacheid=no ;;
6863esac
6864fi
6865rm -f core conftest.err conftest.$ac_objext conftest.beam \
6866    conftest$ac_exeext conftest.$ac_ext ;;
6867esac
6868fi
6869
6870
6871		CFLAGS="$xorg_testset_save_CFLAGS"
6872
6873		eval supported=\$$cacheid
6874		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6875printf "%s\n" "$supported" >&6; }
6876		if test "$supported" = "yes" ; then
6877			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6878			found="yes"
6879		fi
6880	fi
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896xorg_testset_save_CFLAGS="$CFLAGS"
6897
6898if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6899	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6900	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6901printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6902if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6903then :
6904  printf %s "(cached) " >&6
6905else case e in #(
6906  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6907/* end confdefs.h.  */
6908int i;
6909_ACEOF
6910if ac_fn_c_try_compile "$LINENO"
6911then :
6912  xorg_cv_cc_flag_unknown_warning_option=yes
6913else case e in #(
6914  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6915esac
6916fi
6917rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6918esac
6919fi
6920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6921printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6922	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6923	CFLAGS="$xorg_testset_save_CFLAGS"
6924fi
6925
6926if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6927	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6928		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6929	fi
6930	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6931	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6932printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6933if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6934then :
6935  printf %s "(cached) " >&6
6936else case e in #(
6937  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6938/* end confdefs.h.  */
6939int i;
6940_ACEOF
6941if ac_fn_c_try_compile "$LINENO"
6942then :
6943  xorg_cv_cc_flag_unused_command_line_argument=yes
6944else case e in #(
6945  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6946esac
6947fi
6948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6949esac
6950fi
6951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6952printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6953	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6954	CFLAGS="$xorg_testset_save_CFLAGS"
6955fi
6956
6957found="no"
6958
6959	if test $found = "no" ; then
6960		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6961			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6962		fi
6963
6964		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6965			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6966		fi
6967
6968		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6969
6970		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6971printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6972		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6973		if eval test \${$cacheid+y}
6974then :
6975  printf %s "(cached) " >&6
6976else case e in #(
6977  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978/* end confdefs.h.  */
6979int i;
6980int
6981main (void)
6982{
6983
6984  ;
6985  return 0;
6986}
6987_ACEOF
6988if ac_fn_c_try_link "$LINENO"
6989then :
6990  eval $cacheid=yes
6991else case e in #(
6992  e) eval $cacheid=no ;;
6993esac
6994fi
6995rm -f core conftest.err conftest.$ac_objext conftest.beam \
6996    conftest$ac_exeext conftest.$ac_ext ;;
6997esac
6998fi
6999
7000
7001		CFLAGS="$xorg_testset_save_CFLAGS"
7002
7003		eval supported=\$$cacheid
7004		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7005printf "%s\n" "$supported" >&6; }
7006		if test "$supported" = "yes" ; then
7007			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7008			found="yes"
7009		fi
7010	fi
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026xorg_testset_save_CFLAGS="$CFLAGS"
7027
7028if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7029	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7030	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7031printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7032if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7033then :
7034  printf %s "(cached) " >&6
7035else case e in #(
7036  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037/* end confdefs.h.  */
7038int i;
7039_ACEOF
7040if ac_fn_c_try_compile "$LINENO"
7041then :
7042  xorg_cv_cc_flag_unknown_warning_option=yes
7043else case e in #(
7044  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7045esac
7046fi
7047rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7048esac
7049fi
7050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7051printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7052	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7053	CFLAGS="$xorg_testset_save_CFLAGS"
7054fi
7055
7056if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7057	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7058		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7059	fi
7060	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7061	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7062printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7063if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7064then :
7065  printf %s "(cached) " >&6
7066else case e in #(
7067  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068/* end confdefs.h.  */
7069int i;
7070_ACEOF
7071if ac_fn_c_try_compile "$LINENO"
7072then :
7073  xorg_cv_cc_flag_unused_command_line_argument=yes
7074else case e in #(
7075  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7076esac
7077fi
7078rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7079esac
7080fi
7081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7082printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7083	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7084	CFLAGS="$xorg_testset_save_CFLAGS"
7085fi
7086
7087found="no"
7088
7089	if test $found = "no" ; then
7090		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7091			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7092		fi
7093
7094		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7095			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7096		fi
7097
7098		CFLAGS="$CFLAGS -Wredundant-decls"
7099
7100		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7101printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7102		cacheid=xorg_cv_cc_flag__Wredundant_decls
7103		if eval test \${$cacheid+y}
7104then :
7105  printf %s "(cached) " >&6
7106else case e in #(
7107  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108/* end confdefs.h.  */
7109int i;
7110int
7111main (void)
7112{
7113
7114  ;
7115  return 0;
7116}
7117_ACEOF
7118if ac_fn_c_try_link "$LINENO"
7119then :
7120  eval $cacheid=yes
7121else case e in #(
7122  e) eval $cacheid=no ;;
7123esac
7124fi
7125rm -f core conftest.err conftest.$ac_objext conftest.beam \
7126    conftest$ac_exeext conftest.$ac_ext ;;
7127esac
7128fi
7129
7130
7131		CFLAGS="$xorg_testset_save_CFLAGS"
7132
7133		eval supported=\$$cacheid
7134		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7135printf "%s\n" "$supported" >&6; }
7136		if test "$supported" = "yes" ; then
7137			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7138			found="yes"
7139		fi
7140	fi
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156xorg_testset_save_CFLAGS="$CFLAGS"
7157
7158if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7159	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7160	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7161printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7162if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7163then :
7164  printf %s "(cached) " >&6
7165else case e in #(
7166  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167/* end confdefs.h.  */
7168int i;
7169_ACEOF
7170if ac_fn_c_try_compile "$LINENO"
7171then :
7172  xorg_cv_cc_flag_unknown_warning_option=yes
7173else case e in #(
7174  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7175esac
7176fi
7177rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7178esac
7179fi
7180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7181printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7182	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7183	CFLAGS="$xorg_testset_save_CFLAGS"
7184fi
7185
7186if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7187	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7188		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7189	fi
7190	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7191	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7192printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7193if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7194then :
7195  printf %s "(cached) " >&6
7196else case e in #(
7197  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198/* end confdefs.h.  */
7199int i;
7200_ACEOF
7201if ac_fn_c_try_compile "$LINENO"
7202then :
7203  xorg_cv_cc_flag_unused_command_line_argument=yes
7204else case e in #(
7205  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7206esac
7207fi
7208rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7209esac
7210fi
7211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7212printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7213	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7214	CFLAGS="$xorg_testset_save_CFLAGS"
7215fi
7216
7217found="no"
7218
7219	if test $found = "no" ; then
7220		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7221			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7222		fi
7223
7224		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7225			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7226		fi
7227
7228		CFLAGS="$CFLAGS -Wlogical-op"
7229
7230		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7231printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7232		cacheid=xorg_cv_cc_flag__Wlogical_op
7233		if eval test \${$cacheid+y}
7234then :
7235  printf %s "(cached) " >&6
7236else case e in #(
7237  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238/* end confdefs.h.  */
7239int i;
7240int
7241main (void)
7242{
7243
7244  ;
7245  return 0;
7246}
7247_ACEOF
7248if ac_fn_c_try_link "$LINENO"
7249then :
7250  eval $cacheid=yes
7251else case e in #(
7252  e) eval $cacheid=no ;;
7253esac
7254fi
7255rm -f core conftest.err conftest.$ac_objext conftest.beam \
7256    conftest$ac_exeext conftest.$ac_ext ;;
7257esac
7258fi
7259
7260
7261		CFLAGS="$xorg_testset_save_CFLAGS"
7262
7263		eval supported=\$$cacheid
7264		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7265printf "%s\n" "$supported" >&6; }
7266		if test "$supported" = "yes" ; then
7267			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7268			found="yes"
7269		fi
7270	fi
7271
7272
7273
7274# These are currently disabled because they are noisy.  They will be enabled
7275# in the future once the codebase is sufficiently modernized to silence
7276# them.  For now, I don't want them to drown out the other warnings.
7277# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7278# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7279# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7280
7281# Turn some warnings into errors, so we don't accidentally get successful builds
7282# when there are problems that should be fixed.
7283
7284if test "x$SELECTIVE_WERROR" = "xyes" ; then
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298xorg_testset_save_CFLAGS="$CFLAGS"
7299
7300if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7301	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7302	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7303printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7304if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7305then :
7306  printf %s "(cached) " >&6
7307else case e in #(
7308  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309/* end confdefs.h.  */
7310int i;
7311_ACEOF
7312if ac_fn_c_try_compile "$LINENO"
7313then :
7314  xorg_cv_cc_flag_unknown_warning_option=yes
7315else case e in #(
7316  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7317esac
7318fi
7319rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7320esac
7321fi
7322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7323printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7324	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7325	CFLAGS="$xorg_testset_save_CFLAGS"
7326fi
7327
7328if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7329	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7330		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7331	fi
7332	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7333	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7334printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7335if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7336then :
7337  printf %s "(cached) " >&6
7338else case e in #(
7339  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7340/* end confdefs.h.  */
7341int i;
7342_ACEOF
7343if ac_fn_c_try_compile "$LINENO"
7344then :
7345  xorg_cv_cc_flag_unused_command_line_argument=yes
7346else case e in #(
7347  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7348esac
7349fi
7350rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7351esac
7352fi
7353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7354printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7355	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7356	CFLAGS="$xorg_testset_save_CFLAGS"
7357fi
7358
7359found="no"
7360
7361	if test $found = "no" ; then
7362		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7363			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7364		fi
7365
7366		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7367			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7368		fi
7369
7370		CFLAGS="$CFLAGS -Werror=implicit"
7371
7372		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7373printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7374		cacheid=xorg_cv_cc_flag__Werror_implicit
7375		if eval test \${$cacheid+y}
7376then :
7377  printf %s "(cached) " >&6
7378else case e in #(
7379  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7380/* end confdefs.h.  */
7381int i;
7382int
7383main (void)
7384{
7385
7386  ;
7387  return 0;
7388}
7389_ACEOF
7390if ac_fn_c_try_link "$LINENO"
7391then :
7392  eval $cacheid=yes
7393else case e in #(
7394  e) eval $cacheid=no ;;
7395esac
7396fi
7397rm -f core conftest.err conftest.$ac_objext conftest.beam \
7398    conftest$ac_exeext conftest.$ac_ext ;;
7399esac
7400fi
7401
7402
7403		CFLAGS="$xorg_testset_save_CFLAGS"
7404
7405		eval supported=\$$cacheid
7406		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7407printf "%s\n" "$supported" >&6; }
7408		if test "$supported" = "yes" ; then
7409			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7410			found="yes"
7411		fi
7412	fi
7413
7414	if test $found = "no" ; then
7415		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7416			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7417		fi
7418
7419		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7420			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7421		fi
7422
7423		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7424
7425		{ 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
7426printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7427		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7428		if eval test \${$cacheid+y}
7429then :
7430  printf %s "(cached) " >&6
7431else case e in #(
7432  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433/* end confdefs.h.  */
7434int i;
7435int
7436main (void)
7437{
7438
7439  ;
7440  return 0;
7441}
7442_ACEOF
7443if ac_fn_c_try_link "$LINENO"
7444then :
7445  eval $cacheid=yes
7446else case e in #(
7447  e) eval $cacheid=no ;;
7448esac
7449fi
7450rm -f core conftest.err conftest.$ac_objext conftest.beam \
7451    conftest$ac_exeext conftest.$ac_ext ;;
7452esac
7453fi
7454
7455
7456		CFLAGS="$xorg_testset_save_CFLAGS"
7457
7458		eval supported=\$$cacheid
7459		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7460printf "%s\n" "$supported" >&6; }
7461		if test "$supported" = "yes" ; then
7462			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7463			found="yes"
7464		fi
7465	fi
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481xorg_testset_save_CFLAGS="$CFLAGS"
7482
7483if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7484	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7485	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7486printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7487if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7488then :
7489  printf %s "(cached) " >&6
7490else case e in #(
7491  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492/* end confdefs.h.  */
7493int i;
7494_ACEOF
7495if ac_fn_c_try_compile "$LINENO"
7496then :
7497  xorg_cv_cc_flag_unknown_warning_option=yes
7498else case e in #(
7499  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7500esac
7501fi
7502rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7503esac
7504fi
7505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7506printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7507	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7508	CFLAGS="$xorg_testset_save_CFLAGS"
7509fi
7510
7511if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7512	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7513		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7514	fi
7515	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7516	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7517printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7518if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7519then :
7520  printf %s "(cached) " >&6
7521else case e in #(
7522  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523/* end confdefs.h.  */
7524int i;
7525_ACEOF
7526if ac_fn_c_try_compile "$LINENO"
7527then :
7528  xorg_cv_cc_flag_unused_command_line_argument=yes
7529else case e in #(
7530  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7531esac
7532fi
7533rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7534esac
7535fi
7536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7537printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7538	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7539	CFLAGS="$xorg_testset_save_CFLAGS"
7540fi
7541
7542found="no"
7543
7544	if test $found = "no" ; then
7545		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7546			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7547		fi
7548
7549		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7550			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7551		fi
7552
7553		CFLAGS="$CFLAGS -Werror=nonnull"
7554
7555		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7556printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7557		cacheid=xorg_cv_cc_flag__Werror_nonnull
7558		if eval test \${$cacheid+y}
7559then :
7560  printf %s "(cached) " >&6
7561else case e in #(
7562  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563/* end confdefs.h.  */
7564int i;
7565int
7566main (void)
7567{
7568
7569  ;
7570  return 0;
7571}
7572_ACEOF
7573if ac_fn_c_try_link "$LINENO"
7574then :
7575  eval $cacheid=yes
7576else case e in #(
7577  e) eval $cacheid=no ;;
7578esac
7579fi
7580rm -f core conftest.err conftest.$ac_objext conftest.beam \
7581    conftest$ac_exeext conftest.$ac_ext ;;
7582esac
7583fi
7584
7585
7586		CFLAGS="$xorg_testset_save_CFLAGS"
7587
7588		eval supported=\$$cacheid
7589		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7590printf "%s\n" "$supported" >&6; }
7591		if test "$supported" = "yes" ; then
7592			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7593			found="yes"
7594		fi
7595	fi
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611xorg_testset_save_CFLAGS="$CFLAGS"
7612
7613if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7614	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7615	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7616printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7617if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7618then :
7619  printf %s "(cached) " >&6
7620else case e in #(
7621  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7622/* end confdefs.h.  */
7623int i;
7624_ACEOF
7625if ac_fn_c_try_compile "$LINENO"
7626then :
7627  xorg_cv_cc_flag_unknown_warning_option=yes
7628else case e in #(
7629  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7630esac
7631fi
7632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7633esac
7634fi
7635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7636printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7637	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7638	CFLAGS="$xorg_testset_save_CFLAGS"
7639fi
7640
7641if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7642	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7643		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7644	fi
7645	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7646	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7647printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7648if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7649then :
7650  printf %s "(cached) " >&6
7651else case e in #(
7652  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7653/* end confdefs.h.  */
7654int i;
7655_ACEOF
7656if ac_fn_c_try_compile "$LINENO"
7657then :
7658  xorg_cv_cc_flag_unused_command_line_argument=yes
7659else case e in #(
7660  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7661esac
7662fi
7663rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7664esac
7665fi
7666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7667printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7668	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7669	CFLAGS="$xorg_testset_save_CFLAGS"
7670fi
7671
7672found="no"
7673
7674	if test $found = "no" ; then
7675		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7676			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7677		fi
7678
7679		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7680			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7681		fi
7682
7683		CFLAGS="$CFLAGS -Werror=init-self"
7684
7685		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7686printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7687		cacheid=xorg_cv_cc_flag__Werror_init_self
7688		if eval test \${$cacheid+y}
7689then :
7690  printf %s "(cached) " >&6
7691else case e in #(
7692  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693/* end confdefs.h.  */
7694int i;
7695int
7696main (void)
7697{
7698
7699  ;
7700  return 0;
7701}
7702_ACEOF
7703if ac_fn_c_try_link "$LINENO"
7704then :
7705  eval $cacheid=yes
7706else case e in #(
7707  e) eval $cacheid=no ;;
7708esac
7709fi
7710rm -f core conftest.err conftest.$ac_objext conftest.beam \
7711    conftest$ac_exeext conftest.$ac_ext ;;
7712esac
7713fi
7714
7715
7716		CFLAGS="$xorg_testset_save_CFLAGS"
7717
7718		eval supported=\$$cacheid
7719		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7720printf "%s\n" "$supported" >&6; }
7721		if test "$supported" = "yes" ; then
7722			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7723			found="yes"
7724		fi
7725	fi
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741xorg_testset_save_CFLAGS="$CFLAGS"
7742
7743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7744	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7745	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7746printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7747if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7748then :
7749  printf %s "(cached) " >&6
7750else case e in #(
7751  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752/* end confdefs.h.  */
7753int i;
7754_ACEOF
7755if ac_fn_c_try_compile "$LINENO"
7756then :
7757  xorg_cv_cc_flag_unknown_warning_option=yes
7758else case e in #(
7759  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7760esac
7761fi
7762rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7763esac
7764fi
7765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7766printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7767	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7768	CFLAGS="$xorg_testset_save_CFLAGS"
7769fi
7770
7771if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7772	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7773		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7774	fi
7775	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7776	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7777printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7778if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7779then :
7780  printf %s "(cached) " >&6
7781else case e in #(
7782  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7783/* end confdefs.h.  */
7784int i;
7785_ACEOF
7786if ac_fn_c_try_compile "$LINENO"
7787then :
7788  xorg_cv_cc_flag_unused_command_line_argument=yes
7789else case e in #(
7790  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7791esac
7792fi
7793rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7794esac
7795fi
7796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7797printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7798	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7799	CFLAGS="$xorg_testset_save_CFLAGS"
7800fi
7801
7802found="no"
7803
7804	if test $found = "no" ; then
7805		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7806			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7807		fi
7808
7809		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7810			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7811		fi
7812
7813		CFLAGS="$CFLAGS -Werror=main"
7814
7815		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7816printf %s "checking if $CC supports -Werror=main... " >&6; }
7817		cacheid=xorg_cv_cc_flag__Werror_main
7818		if eval test \${$cacheid+y}
7819then :
7820  printf %s "(cached) " >&6
7821else case e in #(
7822  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7823/* end confdefs.h.  */
7824int i;
7825int
7826main (void)
7827{
7828
7829  ;
7830  return 0;
7831}
7832_ACEOF
7833if ac_fn_c_try_link "$LINENO"
7834then :
7835  eval $cacheid=yes
7836else case e in #(
7837  e) eval $cacheid=no ;;
7838esac
7839fi
7840rm -f core conftest.err conftest.$ac_objext conftest.beam \
7841    conftest$ac_exeext conftest.$ac_ext ;;
7842esac
7843fi
7844
7845
7846		CFLAGS="$xorg_testset_save_CFLAGS"
7847
7848		eval supported=\$$cacheid
7849		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7850printf "%s\n" "$supported" >&6; }
7851		if test "$supported" = "yes" ; then
7852			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7853			found="yes"
7854		fi
7855	fi
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871xorg_testset_save_CFLAGS="$CFLAGS"
7872
7873if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7874	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7875	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7876printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7877if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7878then :
7879  printf %s "(cached) " >&6
7880else case e in #(
7881  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882/* end confdefs.h.  */
7883int i;
7884_ACEOF
7885if ac_fn_c_try_compile "$LINENO"
7886then :
7887  xorg_cv_cc_flag_unknown_warning_option=yes
7888else case e in #(
7889  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7890esac
7891fi
7892rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7893esac
7894fi
7895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7896printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7897	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7898	CFLAGS="$xorg_testset_save_CFLAGS"
7899fi
7900
7901if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7902	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7903		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7904	fi
7905	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7906	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7907printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7908if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7909then :
7910  printf %s "(cached) " >&6
7911else case e in #(
7912  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913/* end confdefs.h.  */
7914int i;
7915_ACEOF
7916if ac_fn_c_try_compile "$LINENO"
7917then :
7918  xorg_cv_cc_flag_unused_command_line_argument=yes
7919else case e in #(
7920  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7921esac
7922fi
7923rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7924esac
7925fi
7926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7927printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7928	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7929	CFLAGS="$xorg_testset_save_CFLAGS"
7930fi
7931
7932found="no"
7933
7934	if test $found = "no" ; then
7935		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7936			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7937		fi
7938
7939		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7940			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7941		fi
7942
7943		CFLAGS="$CFLAGS -Werror=missing-braces"
7944
7945		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7946printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7947		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7948		if eval test \${$cacheid+y}
7949then :
7950  printf %s "(cached) " >&6
7951else case e in #(
7952  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953/* end confdefs.h.  */
7954int i;
7955int
7956main (void)
7957{
7958
7959  ;
7960  return 0;
7961}
7962_ACEOF
7963if ac_fn_c_try_link "$LINENO"
7964then :
7965  eval $cacheid=yes
7966else case e in #(
7967  e) eval $cacheid=no ;;
7968esac
7969fi
7970rm -f core conftest.err conftest.$ac_objext conftest.beam \
7971    conftest$ac_exeext conftest.$ac_ext ;;
7972esac
7973fi
7974
7975
7976		CFLAGS="$xorg_testset_save_CFLAGS"
7977
7978		eval supported=\$$cacheid
7979		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7980printf "%s\n" "$supported" >&6; }
7981		if test "$supported" = "yes" ; then
7982			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7983			found="yes"
7984		fi
7985	fi
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001xorg_testset_save_CFLAGS="$CFLAGS"
8002
8003if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8004	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8005	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8006printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8007if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8008then :
8009  printf %s "(cached) " >&6
8010else case e in #(
8011  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8012/* end confdefs.h.  */
8013int i;
8014_ACEOF
8015if ac_fn_c_try_compile "$LINENO"
8016then :
8017  xorg_cv_cc_flag_unknown_warning_option=yes
8018else case e in #(
8019  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8020esac
8021fi
8022rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8023esac
8024fi
8025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8026printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8027	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8028	CFLAGS="$xorg_testset_save_CFLAGS"
8029fi
8030
8031if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8032	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8033		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8034	fi
8035	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8036	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8037printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8038if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8039then :
8040  printf %s "(cached) " >&6
8041else case e in #(
8042  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043/* end confdefs.h.  */
8044int i;
8045_ACEOF
8046if ac_fn_c_try_compile "$LINENO"
8047then :
8048  xorg_cv_cc_flag_unused_command_line_argument=yes
8049else case e in #(
8050  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8051esac
8052fi
8053rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8054esac
8055fi
8056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8057printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8058	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8059	CFLAGS="$xorg_testset_save_CFLAGS"
8060fi
8061
8062found="no"
8063
8064	if test $found = "no" ; then
8065		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8066			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8067		fi
8068
8069		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8070			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8071		fi
8072
8073		CFLAGS="$CFLAGS -Werror=sequence-point"
8074
8075		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8076printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8077		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8078		if eval test \${$cacheid+y}
8079then :
8080  printf %s "(cached) " >&6
8081else case e in #(
8082  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8083/* end confdefs.h.  */
8084int i;
8085int
8086main (void)
8087{
8088
8089  ;
8090  return 0;
8091}
8092_ACEOF
8093if ac_fn_c_try_link "$LINENO"
8094then :
8095  eval $cacheid=yes
8096else case e in #(
8097  e) eval $cacheid=no ;;
8098esac
8099fi
8100rm -f core conftest.err conftest.$ac_objext conftest.beam \
8101    conftest$ac_exeext conftest.$ac_ext ;;
8102esac
8103fi
8104
8105
8106		CFLAGS="$xorg_testset_save_CFLAGS"
8107
8108		eval supported=\$$cacheid
8109		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8110printf "%s\n" "$supported" >&6; }
8111		if test "$supported" = "yes" ; then
8112			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8113			found="yes"
8114		fi
8115	fi
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131xorg_testset_save_CFLAGS="$CFLAGS"
8132
8133if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8134	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8135	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8136printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8137if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8138then :
8139  printf %s "(cached) " >&6
8140else case e in #(
8141  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8142/* end confdefs.h.  */
8143int i;
8144_ACEOF
8145if ac_fn_c_try_compile "$LINENO"
8146then :
8147  xorg_cv_cc_flag_unknown_warning_option=yes
8148else case e in #(
8149  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8150esac
8151fi
8152rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8153esac
8154fi
8155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8156printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8157	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8158	CFLAGS="$xorg_testset_save_CFLAGS"
8159fi
8160
8161if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8162	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8163		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8164	fi
8165	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8166	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8167printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8168if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8169then :
8170  printf %s "(cached) " >&6
8171else case e in #(
8172  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8173/* end confdefs.h.  */
8174int i;
8175_ACEOF
8176if ac_fn_c_try_compile "$LINENO"
8177then :
8178  xorg_cv_cc_flag_unused_command_line_argument=yes
8179else case e in #(
8180  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8181esac
8182fi
8183rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8184esac
8185fi
8186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8187printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8188	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8189	CFLAGS="$xorg_testset_save_CFLAGS"
8190fi
8191
8192found="no"
8193
8194	if test $found = "no" ; then
8195		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8196			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8197		fi
8198
8199		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8200			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8201		fi
8202
8203		CFLAGS="$CFLAGS -Werror=return-type"
8204
8205		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8206printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8207		cacheid=xorg_cv_cc_flag__Werror_return_type
8208		if eval test \${$cacheid+y}
8209then :
8210  printf %s "(cached) " >&6
8211else case e in #(
8212  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8213/* end confdefs.h.  */
8214int i;
8215int
8216main (void)
8217{
8218
8219  ;
8220  return 0;
8221}
8222_ACEOF
8223if ac_fn_c_try_link "$LINENO"
8224then :
8225  eval $cacheid=yes
8226else case e in #(
8227  e) eval $cacheid=no ;;
8228esac
8229fi
8230rm -f core conftest.err conftest.$ac_objext conftest.beam \
8231    conftest$ac_exeext conftest.$ac_ext ;;
8232esac
8233fi
8234
8235
8236		CFLAGS="$xorg_testset_save_CFLAGS"
8237
8238		eval supported=\$$cacheid
8239		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8240printf "%s\n" "$supported" >&6; }
8241		if test "$supported" = "yes" ; then
8242			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8243			found="yes"
8244		fi
8245	fi
8246
8247	if test $found = "no" ; then
8248		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8249			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8250		fi
8251
8252		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8253			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8254		fi
8255
8256		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8257
8258		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8259printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8260		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8261		if eval test \${$cacheid+y}
8262then :
8263  printf %s "(cached) " >&6
8264else case e in #(
8265  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266/* end confdefs.h.  */
8267int i;
8268int
8269main (void)
8270{
8271
8272  ;
8273  return 0;
8274}
8275_ACEOF
8276if ac_fn_c_try_link "$LINENO"
8277then :
8278  eval $cacheid=yes
8279else case e in #(
8280  e) eval $cacheid=no ;;
8281esac
8282fi
8283rm -f core conftest.err conftest.$ac_objext conftest.beam \
8284    conftest$ac_exeext conftest.$ac_ext ;;
8285esac
8286fi
8287
8288
8289		CFLAGS="$xorg_testset_save_CFLAGS"
8290
8291		eval supported=\$$cacheid
8292		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8293printf "%s\n" "$supported" >&6; }
8294		if test "$supported" = "yes" ; then
8295			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8296			found="yes"
8297		fi
8298	fi
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314xorg_testset_save_CFLAGS="$CFLAGS"
8315
8316if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8317	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8318	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8319printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8320if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8321then :
8322  printf %s "(cached) " >&6
8323else case e in #(
8324  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8325/* end confdefs.h.  */
8326int i;
8327_ACEOF
8328if ac_fn_c_try_compile "$LINENO"
8329then :
8330  xorg_cv_cc_flag_unknown_warning_option=yes
8331else case e in #(
8332  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8333esac
8334fi
8335rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8336esac
8337fi
8338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8339printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8340	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8341	CFLAGS="$xorg_testset_save_CFLAGS"
8342fi
8343
8344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8345	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8346		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8347	fi
8348	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8349	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8350printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8351if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8352then :
8353  printf %s "(cached) " >&6
8354else case e in #(
8355  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8356/* end confdefs.h.  */
8357int i;
8358_ACEOF
8359if ac_fn_c_try_compile "$LINENO"
8360then :
8361  xorg_cv_cc_flag_unused_command_line_argument=yes
8362else case e in #(
8363  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8364esac
8365fi
8366rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8367esac
8368fi
8369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8370printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8371	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8372	CFLAGS="$xorg_testset_save_CFLAGS"
8373fi
8374
8375found="no"
8376
8377	if test $found = "no" ; then
8378		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8379			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8380		fi
8381
8382		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8383			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8384		fi
8385
8386		CFLAGS="$CFLAGS -Werror=trigraphs"
8387
8388		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8389printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8390		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8391		if eval test \${$cacheid+y}
8392then :
8393  printf %s "(cached) " >&6
8394else case e in #(
8395  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8396/* end confdefs.h.  */
8397int i;
8398int
8399main (void)
8400{
8401
8402  ;
8403  return 0;
8404}
8405_ACEOF
8406if ac_fn_c_try_link "$LINENO"
8407then :
8408  eval $cacheid=yes
8409else case e in #(
8410  e) eval $cacheid=no ;;
8411esac
8412fi
8413rm -f core conftest.err conftest.$ac_objext conftest.beam \
8414    conftest$ac_exeext conftest.$ac_ext ;;
8415esac
8416fi
8417
8418
8419		CFLAGS="$xorg_testset_save_CFLAGS"
8420
8421		eval supported=\$$cacheid
8422		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8423printf "%s\n" "$supported" >&6; }
8424		if test "$supported" = "yes" ; then
8425			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8426			found="yes"
8427		fi
8428	fi
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444xorg_testset_save_CFLAGS="$CFLAGS"
8445
8446if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8447	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8448	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8449printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8450if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8451then :
8452  printf %s "(cached) " >&6
8453else case e in #(
8454  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455/* end confdefs.h.  */
8456int i;
8457_ACEOF
8458if ac_fn_c_try_compile "$LINENO"
8459then :
8460  xorg_cv_cc_flag_unknown_warning_option=yes
8461else case e in #(
8462  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8463esac
8464fi
8465rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8466esac
8467fi
8468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8469printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8470	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8471	CFLAGS="$xorg_testset_save_CFLAGS"
8472fi
8473
8474if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8475	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8476		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8477	fi
8478	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8479	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8480printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8481if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8482then :
8483  printf %s "(cached) " >&6
8484else case e in #(
8485  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486/* end confdefs.h.  */
8487int i;
8488_ACEOF
8489if ac_fn_c_try_compile "$LINENO"
8490then :
8491  xorg_cv_cc_flag_unused_command_line_argument=yes
8492else case e in #(
8493  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8494esac
8495fi
8496rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8497esac
8498fi
8499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8500printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8501	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8502	CFLAGS="$xorg_testset_save_CFLAGS"
8503fi
8504
8505found="no"
8506
8507	if test $found = "no" ; then
8508		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8509			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8510		fi
8511
8512		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8513			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8514		fi
8515
8516		CFLAGS="$CFLAGS -Werror=array-bounds"
8517
8518		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8519printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8520		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8521		if eval test \${$cacheid+y}
8522then :
8523  printf %s "(cached) " >&6
8524else case e in #(
8525  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8526/* end confdefs.h.  */
8527int i;
8528int
8529main (void)
8530{
8531
8532  ;
8533  return 0;
8534}
8535_ACEOF
8536if ac_fn_c_try_link "$LINENO"
8537then :
8538  eval $cacheid=yes
8539else case e in #(
8540  e) eval $cacheid=no ;;
8541esac
8542fi
8543rm -f core conftest.err conftest.$ac_objext conftest.beam \
8544    conftest$ac_exeext conftest.$ac_ext ;;
8545esac
8546fi
8547
8548
8549		CFLAGS="$xorg_testset_save_CFLAGS"
8550
8551		eval supported=\$$cacheid
8552		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8553printf "%s\n" "$supported" >&6; }
8554		if test "$supported" = "yes" ; then
8555			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8556			found="yes"
8557		fi
8558	fi
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574xorg_testset_save_CFLAGS="$CFLAGS"
8575
8576if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8577	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8578	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8579printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8580if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8581then :
8582  printf %s "(cached) " >&6
8583else case e in #(
8584  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8585/* end confdefs.h.  */
8586int i;
8587_ACEOF
8588if ac_fn_c_try_compile "$LINENO"
8589then :
8590  xorg_cv_cc_flag_unknown_warning_option=yes
8591else case e in #(
8592  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8593esac
8594fi
8595rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8596esac
8597fi
8598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8599printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8600	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8601	CFLAGS="$xorg_testset_save_CFLAGS"
8602fi
8603
8604if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8605	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8606		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8607	fi
8608	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8609	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8610printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8611if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8612then :
8613  printf %s "(cached) " >&6
8614else case e in #(
8615  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8616/* end confdefs.h.  */
8617int i;
8618_ACEOF
8619if ac_fn_c_try_compile "$LINENO"
8620then :
8621  xorg_cv_cc_flag_unused_command_line_argument=yes
8622else case e in #(
8623  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8624esac
8625fi
8626rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8627esac
8628fi
8629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8630printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8631	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8632	CFLAGS="$xorg_testset_save_CFLAGS"
8633fi
8634
8635found="no"
8636
8637	if test $found = "no" ; then
8638		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8639			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8640		fi
8641
8642		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8643			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8644		fi
8645
8646		CFLAGS="$CFLAGS -Werror=write-strings"
8647
8648		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8649printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8650		cacheid=xorg_cv_cc_flag__Werror_write_strings
8651		if eval test \${$cacheid+y}
8652then :
8653  printf %s "(cached) " >&6
8654else case e in #(
8655  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656/* end confdefs.h.  */
8657int i;
8658int
8659main (void)
8660{
8661
8662  ;
8663  return 0;
8664}
8665_ACEOF
8666if ac_fn_c_try_link "$LINENO"
8667then :
8668  eval $cacheid=yes
8669else case e in #(
8670  e) eval $cacheid=no ;;
8671esac
8672fi
8673rm -f core conftest.err conftest.$ac_objext conftest.beam \
8674    conftest$ac_exeext conftest.$ac_ext ;;
8675esac
8676fi
8677
8678
8679		CFLAGS="$xorg_testset_save_CFLAGS"
8680
8681		eval supported=\$$cacheid
8682		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8683printf "%s\n" "$supported" >&6; }
8684		if test "$supported" = "yes" ; then
8685			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8686			found="yes"
8687		fi
8688	fi
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704xorg_testset_save_CFLAGS="$CFLAGS"
8705
8706if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8707	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8708	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8709printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8710if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8711then :
8712  printf %s "(cached) " >&6
8713else case e in #(
8714  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8715/* end confdefs.h.  */
8716int i;
8717_ACEOF
8718if ac_fn_c_try_compile "$LINENO"
8719then :
8720  xorg_cv_cc_flag_unknown_warning_option=yes
8721else case e in #(
8722  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8723esac
8724fi
8725rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8726esac
8727fi
8728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8729printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8730	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8731	CFLAGS="$xorg_testset_save_CFLAGS"
8732fi
8733
8734if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8735	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8736		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8737	fi
8738	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8739	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8740printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8741if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8742then :
8743  printf %s "(cached) " >&6
8744else case e in #(
8745  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8746/* end confdefs.h.  */
8747int i;
8748_ACEOF
8749if ac_fn_c_try_compile "$LINENO"
8750then :
8751  xorg_cv_cc_flag_unused_command_line_argument=yes
8752else case e in #(
8753  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8754esac
8755fi
8756rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8757esac
8758fi
8759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8760printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8761	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8762	CFLAGS="$xorg_testset_save_CFLAGS"
8763fi
8764
8765found="no"
8766
8767	if test $found = "no" ; then
8768		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8769			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8770		fi
8771
8772		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8773			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8774		fi
8775
8776		CFLAGS="$CFLAGS -Werror=address"
8777
8778		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8779printf %s "checking if $CC supports -Werror=address... " >&6; }
8780		cacheid=xorg_cv_cc_flag__Werror_address
8781		if eval test \${$cacheid+y}
8782then :
8783  printf %s "(cached) " >&6
8784else case e in #(
8785  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8786/* end confdefs.h.  */
8787int i;
8788int
8789main (void)
8790{
8791
8792  ;
8793  return 0;
8794}
8795_ACEOF
8796if ac_fn_c_try_link "$LINENO"
8797then :
8798  eval $cacheid=yes
8799else case e in #(
8800  e) eval $cacheid=no ;;
8801esac
8802fi
8803rm -f core conftest.err conftest.$ac_objext conftest.beam \
8804    conftest$ac_exeext conftest.$ac_ext ;;
8805esac
8806fi
8807
8808
8809		CFLAGS="$xorg_testset_save_CFLAGS"
8810
8811		eval supported=\$$cacheid
8812		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8813printf "%s\n" "$supported" >&6; }
8814		if test "$supported" = "yes" ; then
8815			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8816			found="yes"
8817		fi
8818	fi
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834xorg_testset_save_CFLAGS="$CFLAGS"
8835
8836if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8837	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8838	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8839printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8840if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8841then :
8842  printf %s "(cached) " >&6
8843else case e in #(
8844  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8845/* end confdefs.h.  */
8846int i;
8847_ACEOF
8848if ac_fn_c_try_compile "$LINENO"
8849then :
8850  xorg_cv_cc_flag_unknown_warning_option=yes
8851else case e in #(
8852  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8853esac
8854fi
8855rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8856esac
8857fi
8858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8859printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8860	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8861	CFLAGS="$xorg_testset_save_CFLAGS"
8862fi
8863
8864if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8865	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8866		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8867	fi
8868	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8869	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8870printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8871if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8872then :
8873  printf %s "(cached) " >&6
8874else case e in #(
8875  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8876/* end confdefs.h.  */
8877int i;
8878_ACEOF
8879if ac_fn_c_try_compile "$LINENO"
8880then :
8881  xorg_cv_cc_flag_unused_command_line_argument=yes
8882else case e in #(
8883  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8884esac
8885fi
8886rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8887esac
8888fi
8889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8890printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8891	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8892	CFLAGS="$xorg_testset_save_CFLAGS"
8893fi
8894
8895found="no"
8896
8897	if test $found = "no" ; then
8898		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8899			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8900		fi
8901
8902		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8903			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8904		fi
8905
8906		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8907
8908		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8909printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8910		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8911		if eval test \${$cacheid+y}
8912then :
8913  printf %s "(cached) " >&6
8914else case e in #(
8915  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916/* end confdefs.h.  */
8917int i;
8918int
8919main (void)
8920{
8921
8922  ;
8923  return 0;
8924}
8925_ACEOF
8926if ac_fn_c_try_link "$LINENO"
8927then :
8928  eval $cacheid=yes
8929else case e in #(
8930  e) eval $cacheid=no ;;
8931esac
8932fi
8933rm -f core conftest.err conftest.$ac_objext conftest.beam \
8934    conftest$ac_exeext conftest.$ac_ext ;;
8935esac
8936fi
8937
8938
8939		CFLAGS="$xorg_testset_save_CFLAGS"
8940
8941		eval supported=\$$cacheid
8942		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8943printf "%s\n" "$supported" >&6; }
8944		if test "$supported" = "yes" ; then
8945			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8946			found="yes"
8947		fi
8948	fi
8949
8950	if test $found = "no" ; then
8951		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8952			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8953		fi
8954
8955		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8956			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8957		fi
8958
8959		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8960
8961		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8962printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8963		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8964		if eval test \${$cacheid+y}
8965then :
8966  printf %s "(cached) " >&6
8967else case e in #(
8968  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969/* end confdefs.h.  */
8970int i;
8971int
8972main (void)
8973{
8974
8975  ;
8976  return 0;
8977}
8978_ACEOF
8979if ac_fn_c_try_link "$LINENO"
8980then :
8981  eval $cacheid=yes
8982else case e in #(
8983  e) eval $cacheid=no ;;
8984esac
8985fi
8986rm -f core conftest.err conftest.$ac_objext conftest.beam \
8987    conftest$ac_exeext conftest.$ac_ext ;;
8988esac
8989fi
8990
8991
8992		CFLAGS="$xorg_testset_save_CFLAGS"
8993
8994		eval supported=\$$cacheid
8995		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8996printf "%s\n" "$supported" >&6; }
8997		if test "$supported" = "yes" ; then
8998			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8999			found="yes"
9000		fi
9001	fi
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017xorg_testset_save_CFLAGS="$CFLAGS"
9018
9019if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9020	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9021	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9022printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9023if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9024then :
9025  printf %s "(cached) " >&6
9026else case e in #(
9027  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028/* end confdefs.h.  */
9029int i;
9030_ACEOF
9031if ac_fn_c_try_compile "$LINENO"
9032then :
9033  xorg_cv_cc_flag_unknown_warning_option=yes
9034else case e in #(
9035  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9036esac
9037fi
9038rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9039esac
9040fi
9041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9042printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9043	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9044	CFLAGS="$xorg_testset_save_CFLAGS"
9045fi
9046
9047if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9048	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9049		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9050	fi
9051	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9052	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9053printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9054if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9055then :
9056  printf %s "(cached) " >&6
9057else case e in #(
9058  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059/* end confdefs.h.  */
9060int i;
9061_ACEOF
9062if ac_fn_c_try_compile "$LINENO"
9063then :
9064  xorg_cv_cc_flag_unused_command_line_argument=yes
9065else case e in #(
9066  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9067esac
9068fi
9069rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9070esac
9071fi
9072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9073printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9074	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9075	CFLAGS="$xorg_testset_save_CFLAGS"
9076fi
9077
9078found="no"
9079
9080	if test $found = "no" ; then
9081		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9082			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9083		fi
9084
9085		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9086			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9087		fi
9088
9089		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9090
9091		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9092printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9093		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9094		if eval test \${$cacheid+y}
9095then :
9096  printf %s "(cached) " >&6
9097else case e in #(
9098  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9099/* end confdefs.h.  */
9100int i;
9101int
9102main (void)
9103{
9104
9105  ;
9106  return 0;
9107}
9108_ACEOF
9109if ac_fn_c_try_link "$LINENO"
9110then :
9111  eval $cacheid=yes
9112else case e in #(
9113  e) eval $cacheid=no ;;
9114esac
9115fi
9116rm -f core conftest.err conftest.$ac_objext conftest.beam \
9117    conftest$ac_exeext conftest.$ac_ext ;;
9118esac
9119fi
9120
9121
9122		CFLAGS="$xorg_testset_save_CFLAGS"
9123
9124		eval supported=\$$cacheid
9125		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9126printf "%s\n" "$supported" >&6; }
9127		if test "$supported" = "yes" ; then
9128			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9129			found="yes"
9130		fi
9131	fi
9132
9133 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9134else
9135{ 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
9136printf "%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;}
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150xorg_testset_save_CFLAGS="$CFLAGS"
9151
9152if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9153	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9154	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9155printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9156if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9157then :
9158  printf %s "(cached) " >&6
9159else case e in #(
9160  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161/* end confdefs.h.  */
9162int i;
9163_ACEOF
9164if ac_fn_c_try_compile "$LINENO"
9165then :
9166  xorg_cv_cc_flag_unknown_warning_option=yes
9167else case e in #(
9168  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9169esac
9170fi
9171rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9172esac
9173fi
9174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9175printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9176	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9177	CFLAGS="$xorg_testset_save_CFLAGS"
9178fi
9179
9180if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9181	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9182		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9183	fi
9184	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9185	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9186printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9187if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9188then :
9189  printf %s "(cached) " >&6
9190else case e in #(
9191  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192/* end confdefs.h.  */
9193int i;
9194_ACEOF
9195if ac_fn_c_try_compile "$LINENO"
9196then :
9197  xorg_cv_cc_flag_unused_command_line_argument=yes
9198else case e in #(
9199  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9200esac
9201fi
9202rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9203esac
9204fi
9205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9206printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9207	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9208	CFLAGS="$xorg_testset_save_CFLAGS"
9209fi
9210
9211found="no"
9212
9213	if test $found = "no" ; then
9214		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9215			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9216		fi
9217
9218		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9219			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9220		fi
9221
9222		CFLAGS="$CFLAGS -Wimplicit"
9223
9224		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9225printf %s "checking if $CC supports -Wimplicit... " >&6; }
9226		cacheid=xorg_cv_cc_flag__Wimplicit
9227		if eval test \${$cacheid+y}
9228then :
9229  printf %s "(cached) " >&6
9230else case e in #(
9231  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232/* end confdefs.h.  */
9233int i;
9234int
9235main (void)
9236{
9237
9238  ;
9239  return 0;
9240}
9241_ACEOF
9242if ac_fn_c_try_link "$LINENO"
9243then :
9244  eval $cacheid=yes
9245else case e in #(
9246  e) eval $cacheid=no ;;
9247esac
9248fi
9249rm -f core conftest.err conftest.$ac_objext conftest.beam \
9250    conftest$ac_exeext conftest.$ac_ext ;;
9251esac
9252fi
9253
9254
9255		CFLAGS="$xorg_testset_save_CFLAGS"
9256
9257		eval supported=\$$cacheid
9258		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9259printf "%s\n" "$supported" >&6; }
9260		if test "$supported" = "yes" ; then
9261			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9262			found="yes"
9263		fi
9264	fi
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280xorg_testset_save_CFLAGS="$CFLAGS"
9281
9282if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9283	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9284	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9285printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9286if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9287then :
9288  printf %s "(cached) " >&6
9289else case e in #(
9290  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9291/* end confdefs.h.  */
9292int i;
9293_ACEOF
9294if ac_fn_c_try_compile "$LINENO"
9295then :
9296  xorg_cv_cc_flag_unknown_warning_option=yes
9297else case e in #(
9298  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9299esac
9300fi
9301rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9302esac
9303fi
9304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9305printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9306	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9307	CFLAGS="$xorg_testset_save_CFLAGS"
9308fi
9309
9310if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9311	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9312		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9313	fi
9314	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9315	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9316printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9317if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9318then :
9319  printf %s "(cached) " >&6
9320else case e in #(
9321  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9322/* end confdefs.h.  */
9323int i;
9324_ACEOF
9325if ac_fn_c_try_compile "$LINENO"
9326then :
9327  xorg_cv_cc_flag_unused_command_line_argument=yes
9328else case e in #(
9329  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9330esac
9331fi
9332rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9333esac
9334fi
9335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9336printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9337	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9338	CFLAGS="$xorg_testset_save_CFLAGS"
9339fi
9340
9341found="no"
9342
9343	if test $found = "no" ; then
9344		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9345			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9346		fi
9347
9348		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9349			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9350		fi
9351
9352		CFLAGS="$CFLAGS -Wnonnull"
9353
9354		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9355printf %s "checking if $CC supports -Wnonnull... " >&6; }
9356		cacheid=xorg_cv_cc_flag__Wnonnull
9357		if eval test \${$cacheid+y}
9358then :
9359  printf %s "(cached) " >&6
9360else case e in #(
9361  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9362/* end confdefs.h.  */
9363int i;
9364int
9365main (void)
9366{
9367
9368  ;
9369  return 0;
9370}
9371_ACEOF
9372if ac_fn_c_try_link "$LINENO"
9373then :
9374  eval $cacheid=yes
9375else case e in #(
9376  e) eval $cacheid=no ;;
9377esac
9378fi
9379rm -f core conftest.err conftest.$ac_objext conftest.beam \
9380    conftest$ac_exeext conftest.$ac_ext ;;
9381esac
9382fi
9383
9384
9385		CFLAGS="$xorg_testset_save_CFLAGS"
9386
9387		eval supported=\$$cacheid
9388		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9389printf "%s\n" "$supported" >&6; }
9390		if test "$supported" = "yes" ; then
9391			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9392			found="yes"
9393		fi
9394	fi
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410xorg_testset_save_CFLAGS="$CFLAGS"
9411
9412if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9413	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9414	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9415printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9416if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9417then :
9418  printf %s "(cached) " >&6
9419else case e in #(
9420  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421/* end confdefs.h.  */
9422int i;
9423_ACEOF
9424if ac_fn_c_try_compile "$LINENO"
9425then :
9426  xorg_cv_cc_flag_unknown_warning_option=yes
9427else case e in #(
9428  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9429esac
9430fi
9431rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9432esac
9433fi
9434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9435printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9436	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9437	CFLAGS="$xorg_testset_save_CFLAGS"
9438fi
9439
9440if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9441	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9442		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9443	fi
9444	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9445	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9446printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9447if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9448then :
9449  printf %s "(cached) " >&6
9450else case e in #(
9451  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9452/* end confdefs.h.  */
9453int i;
9454_ACEOF
9455if ac_fn_c_try_compile "$LINENO"
9456then :
9457  xorg_cv_cc_flag_unused_command_line_argument=yes
9458else case e in #(
9459  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9460esac
9461fi
9462rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9463esac
9464fi
9465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9466printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9467	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9468	CFLAGS="$xorg_testset_save_CFLAGS"
9469fi
9470
9471found="no"
9472
9473	if test $found = "no" ; then
9474		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9475			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9476		fi
9477
9478		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9479			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9480		fi
9481
9482		CFLAGS="$CFLAGS -Winit-self"
9483
9484		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9485printf %s "checking if $CC supports -Winit-self... " >&6; }
9486		cacheid=xorg_cv_cc_flag__Winit_self
9487		if eval test \${$cacheid+y}
9488then :
9489  printf %s "(cached) " >&6
9490else case e in #(
9491  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9492/* end confdefs.h.  */
9493int i;
9494int
9495main (void)
9496{
9497
9498  ;
9499  return 0;
9500}
9501_ACEOF
9502if ac_fn_c_try_link "$LINENO"
9503then :
9504  eval $cacheid=yes
9505else case e in #(
9506  e) eval $cacheid=no ;;
9507esac
9508fi
9509rm -f core conftest.err conftest.$ac_objext conftest.beam \
9510    conftest$ac_exeext conftest.$ac_ext ;;
9511esac
9512fi
9513
9514
9515		CFLAGS="$xorg_testset_save_CFLAGS"
9516
9517		eval supported=\$$cacheid
9518		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9519printf "%s\n" "$supported" >&6; }
9520		if test "$supported" = "yes" ; then
9521			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9522			found="yes"
9523		fi
9524	fi
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540xorg_testset_save_CFLAGS="$CFLAGS"
9541
9542if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9543	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9544	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9545printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9546if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9547then :
9548  printf %s "(cached) " >&6
9549else case e in #(
9550  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9551/* end confdefs.h.  */
9552int i;
9553_ACEOF
9554if ac_fn_c_try_compile "$LINENO"
9555then :
9556  xorg_cv_cc_flag_unknown_warning_option=yes
9557else case e in #(
9558  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9559esac
9560fi
9561rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9562esac
9563fi
9564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9565printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9566	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9567	CFLAGS="$xorg_testset_save_CFLAGS"
9568fi
9569
9570if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9571	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9572		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9573	fi
9574	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9575	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9576printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9577if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9578then :
9579  printf %s "(cached) " >&6
9580else case e in #(
9581  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9582/* end confdefs.h.  */
9583int i;
9584_ACEOF
9585if ac_fn_c_try_compile "$LINENO"
9586then :
9587  xorg_cv_cc_flag_unused_command_line_argument=yes
9588else case e in #(
9589  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9590esac
9591fi
9592rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9593esac
9594fi
9595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9596printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9597	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9598	CFLAGS="$xorg_testset_save_CFLAGS"
9599fi
9600
9601found="no"
9602
9603	if test $found = "no" ; then
9604		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9605			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9606		fi
9607
9608		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9609			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9610		fi
9611
9612		CFLAGS="$CFLAGS -Wmain"
9613
9614		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9615printf %s "checking if $CC supports -Wmain... " >&6; }
9616		cacheid=xorg_cv_cc_flag__Wmain
9617		if eval test \${$cacheid+y}
9618then :
9619  printf %s "(cached) " >&6
9620else case e in #(
9621  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9622/* end confdefs.h.  */
9623int i;
9624int
9625main (void)
9626{
9627
9628  ;
9629  return 0;
9630}
9631_ACEOF
9632if ac_fn_c_try_link "$LINENO"
9633then :
9634  eval $cacheid=yes
9635else case e in #(
9636  e) eval $cacheid=no ;;
9637esac
9638fi
9639rm -f core conftest.err conftest.$ac_objext conftest.beam \
9640    conftest$ac_exeext conftest.$ac_ext ;;
9641esac
9642fi
9643
9644
9645		CFLAGS="$xorg_testset_save_CFLAGS"
9646
9647		eval supported=\$$cacheid
9648		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9649printf "%s\n" "$supported" >&6; }
9650		if test "$supported" = "yes" ; then
9651			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9652			found="yes"
9653		fi
9654	fi
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670xorg_testset_save_CFLAGS="$CFLAGS"
9671
9672if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9673	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9674	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9675printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9676if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9677then :
9678  printf %s "(cached) " >&6
9679else case e in #(
9680  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9681/* end confdefs.h.  */
9682int i;
9683_ACEOF
9684if ac_fn_c_try_compile "$LINENO"
9685then :
9686  xorg_cv_cc_flag_unknown_warning_option=yes
9687else case e in #(
9688  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9689esac
9690fi
9691rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9692esac
9693fi
9694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9695printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9696	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9697	CFLAGS="$xorg_testset_save_CFLAGS"
9698fi
9699
9700if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9701	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9702		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9703	fi
9704	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9705	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9706printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9707if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9708then :
9709  printf %s "(cached) " >&6
9710else case e in #(
9711  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9712/* end confdefs.h.  */
9713int i;
9714_ACEOF
9715if ac_fn_c_try_compile "$LINENO"
9716then :
9717  xorg_cv_cc_flag_unused_command_line_argument=yes
9718else case e in #(
9719  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9720esac
9721fi
9722rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9723esac
9724fi
9725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9726printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9727	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9728	CFLAGS="$xorg_testset_save_CFLAGS"
9729fi
9730
9731found="no"
9732
9733	if test $found = "no" ; then
9734		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9735			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9736		fi
9737
9738		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9739			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9740		fi
9741
9742		CFLAGS="$CFLAGS -Wmissing-braces"
9743
9744		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9745printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9746		cacheid=xorg_cv_cc_flag__Wmissing_braces
9747		if eval test \${$cacheid+y}
9748then :
9749  printf %s "(cached) " >&6
9750else case e in #(
9751  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9752/* end confdefs.h.  */
9753int i;
9754int
9755main (void)
9756{
9757
9758  ;
9759  return 0;
9760}
9761_ACEOF
9762if ac_fn_c_try_link "$LINENO"
9763then :
9764  eval $cacheid=yes
9765else case e in #(
9766  e) eval $cacheid=no ;;
9767esac
9768fi
9769rm -f core conftest.err conftest.$ac_objext conftest.beam \
9770    conftest$ac_exeext conftest.$ac_ext ;;
9771esac
9772fi
9773
9774
9775		CFLAGS="$xorg_testset_save_CFLAGS"
9776
9777		eval supported=\$$cacheid
9778		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9779printf "%s\n" "$supported" >&6; }
9780		if test "$supported" = "yes" ; then
9781			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9782			found="yes"
9783		fi
9784	fi
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800xorg_testset_save_CFLAGS="$CFLAGS"
9801
9802if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9803	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9804	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9805printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9806if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9807then :
9808  printf %s "(cached) " >&6
9809else case e in #(
9810  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811/* end confdefs.h.  */
9812int i;
9813_ACEOF
9814if ac_fn_c_try_compile "$LINENO"
9815then :
9816  xorg_cv_cc_flag_unknown_warning_option=yes
9817else case e in #(
9818  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9819esac
9820fi
9821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9822esac
9823fi
9824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9825printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9826	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9827	CFLAGS="$xorg_testset_save_CFLAGS"
9828fi
9829
9830if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9831	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9832		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9833	fi
9834	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9835	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9836printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9837if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9838then :
9839  printf %s "(cached) " >&6
9840else case e in #(
9841  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9842/* end confdefs.h.  */
9843int i;
9844_ACEOF
9845if ac_fn_c_try_compile "$LINENO"
9846then :
9847  xorg_cv_cc_flag_unused_command_line_argument=yes
9848else case e in #(
9849  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9850esac
9851fi
9852rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9853esac
9854fi
9855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9856printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9857	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9858	CFLAGS="$xorg_testset_save_CFLAGS"
9859fi
9860
9861found="no"
9862
9863	if test $found = "no" ; then
9864		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9865			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9866		fi
9867
9868		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9869			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9870		fi
9871
9872		CFLAGS="$CFLAGS -Wsequence-point"
9873
9874		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9875printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9876		cacheid=xorg_cv_cc_flag__Wsequence_point
9877		if eval test \${$cacheid+y}
9878then :
9879  printf %s "(cached) " >&6
9880else case e in #(
9881  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9882/* end confdefs.h.  */
9883int i;
9884int
9885main (void)
9886{
9887
9888  ;
9889  return 0;
9890}
9891_ACEOF
9892if ac_fn_c_try_link "$LINENO"
9893then :
9894  eval $cacheid=yes
9895else case e in #(
9896  e) eval $cacheid=no ;;
9897esac
9898fi
9899rm -f core conftest.err conftest.$ac_objext conftest.beam \
9900    conftest$ac_exeext conftest.$ac_ext ;;
9901esac
9902fi
9903
9904
9905		CFLAGS="$xorg_testset_save_CFLAGS"
9906
9907		eval supported=\$$cacheid
9908		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9909printf "%s\n" "$supported" >&6; }
9910		if test "$supported" = "yes" ; then
9911			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9912			found="yes"
9913		fi
9914	fi
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930xorg_testset_save_CFLAGS="$CFLAGS"
9931
9932if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9933	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9934	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9935printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9936if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9937then :
9938  printf %s "(cached) " >&6
9939else case e in #(
9940  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941/* end confdefs.h.  */
9942int i;
9943_ACEOF
9944if ac_fn_c_try_compile "$LINENO"
9945then :
9946  xorg_cv_cc_flag_unknown_warning_option=yes
9947else case e in #(
9948  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9949esac
9950fi
9951rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9952esac
9953fi
9954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9955printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9956	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9957	CFLAGS="$xorg_testset_save_CFLAGS"
9958fi
9959
9960if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9961	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9962		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9963	fi
9964	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9965	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9966printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9967if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9968then :
9969  printf %s "(cached) " >&6
9970else case e in #(
9971  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9972/* end confdefs.h.  */
9973int i;
9974_ACEOF
9975if ac_fn_c_try_compile "$LINENO"
9976then :
9977  xorg_cv_cc_flag_unused_command_line_argument=yes
9978else case e in #(
9979  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9980esac
9981fi
9982rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9983esac
9984fi
9985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9986printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9987	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9988	CFLAGS="$xorg_testset_save_CFLAGS"
9989fi
9990
9991found="no"
9992
9993	if test $found = "no" ; then
9994		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9995			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9996		fi
9997
9998		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9999			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10000		fi
10001
10002		CFLAGS="$CFLAGS -Wreturn-type"
10003
10004		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10005printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10006		cacheid=xorg_cv_cc_flag__Wreturn_type
10007		if eval test \${$cacheid+y}
10008then :
10009  printf %s "(cached) " >&6
10010else case e in #(
10011  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10012/* end confdefs.h.  */
10013int i;
10014int
10015main (void)
10016{
10017
10018  ;
10019  return 0;
10020}
10021_ACEOF
10022if ac_fn_c_try_link "$LINENO"
10023then :
10024  eval $cacheid=yes
10025else case e in #(
10026  e) eval $cacheid=no ;;
10027esac
10028fi
10029rm -f core conftest.err conftest.$ac_objext conftest.beam \
10030    conftest$ac_exeext conftest.$ac_ext ;;
10031esac
10032fi
10033
10034
10035		CFLAGS="$xorg_testset_save_CFLAGS"
10036
10037		eval supported=\$$cacheid
10038		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10039printf "%s\n" "$supported" >&6; }
10040		if test "$supported" = "yes" ; then
10041			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10042			found="yes"
10043		fi
10044	fi
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060xorg_testset_save_CFLAGS="$CFLAGS"
10061
10062if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10063	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10064	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10065printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10066if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10067then :
10068  printf %s "(cached) " >&6
10069else case e in #(
10070  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10071/* end confdefs.h.  */
10072int i;
10073_ACEOF
10074if ac_fn_c_try_compile "$LINENO"
10075then :
10076  xorg_cv_cc_flag_unknown_warning_option=yes
10077else case e in #(
10078  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10079esac
10080fi
10081rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10082esac
10083fi
10084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10085printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10086	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10087	CFLAGS="$xorg_testset_save_CFLAGS"
10088fi
10089
10090if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10091	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10092		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10093	fi
10094	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10095	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10096printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10097if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10098then :
10099  printf %s "(cached) " >&6
10100else case e in #(
10101  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10102/* end confdefs.h.  */
10103int i;
10104_ACEOF
10105if ac_fn_c_try_compile "$LINENO"
10106then :
10107  xorg_cv_cc_flag_unused_command_line_argument=yes
10108else case e in #(
10109  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10110esac
10111fi
10112rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10113esac
10114fi
10115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10116printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10117	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10118	CFLAGS="$xorg_testset_save_CFLAGS"
10119fi
10120
10121found="no"
10122
10123	if test $found = "no" ; then
10124		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10125			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10126		fi
10127
10128		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10129			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10130		fi
10131
10132		CFLAGS="$CFLAGS -Wtrigraphs"
10133
10134		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10135printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10136		cacheid=xorg_cv_cc_flag__Wtrigraphs
10137		if eval test \${$cacheid+y}
10138then :
10139  printf %s "(cached) " >&6
10140else case e in #(
10141  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10142/* end confdefs.h.  */
10143int i;
10144int
10145main (void)
10146{
10147
10148  ;
10149  return 0;
10150}
10151_ACEOF
10152if ac_fn_c_try_link "$LINENO"
10153then :
10154  eval $cacheid=yes
10155else case e in #(
10156  e) eval $cacheid=no ;;
10157esac
10158fi
10159rm -f core conftest.err conftest.$ac_objext conftest.beam \
10160    conftest$ac_exeext conftest.$ac_ext ;;
10161esac
10162fi
10163
10164
10165		CFLAGS="$xorg_testset_save_CFLAGS"
10166
10167		eval supported=\$$cacheid
10168		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10169printf "%s\n" "$supported" >&6; }
10170		if test "$supported" = "yes" ; then
10171			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10172			found="yes"
10173		fi
10174	fi
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190xorg_testset_save_CFLAGS="$CFLAGS"
10191
10192if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10193	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10194	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10195printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10196if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10197then :
10198  printf %s "(cached) " >&6
10199else case e in #(
10200  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10201/* end confdefs.h.  */
10202int i;
10203_ACEOF
10204if ac_fn_c_try_compile "$LINENO"
10205then :
10206  xorg_cv_cc_flag_unknown_warning_option=yes
10207else case e in #(
10208  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10209esac
10210fi
10211rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10212esac
10213fi
10214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10215printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10216	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10217	CFLAGS="$xorg_testset_save_CFLAGS"
10218fi
10219
10220if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10221	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10222		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10223	fi
10224	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10225	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10226printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10227if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10228then :
10229  printf %s "(cached) " >&6
10230else case e in #(
10231  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10232/* end confdefs.h.  */
10233int i;
10234_ACEOF
10235if ac_fn_c_try_compile "$LINENO"
10236then :
10237  xorg_cv_cc_flag_unused_command_line_argument=yes
10238else case e in #(
10239  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10240esac
10241fi
10242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10243esac
10244fi
10245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10246printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10247	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10248	CFLAGS="$xorg_testset_save_CFLAGS"
10249fi
10250
10251found="no"
10252
10253	if test $found = "no" ; then
10254		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10255			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10256		fi
10257
10258		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10259			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10260		fi
10261
10262		CFLAGS="$CFLAGS -Warray-bounds"
10263
10264		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10265printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10266		cacheid=xorg_cv_cc_flag__Warray_bounds
10267		if eval test \${$cacheid+y}
10268then :
10269  printf %s "(cached) " >&6
10270else case e in #(
10271  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10272/* end confdefs.h.  */
10273int i;
10274int
10275main (void)
10276{
10277
10278  ;
10279  return 0;
10280}
10281_ACEOF
10282if ac_fn_c_try_link "$LINENO"
10283then :
10284  eval $cacheid=yes
10285else case e in #(
10286  e) eval $cacheid=no ;;
10287esac
10288fi
10289rm -f core conftest.err conftest.$ac_objext conftest.beam \
10290    conftest$ac_exeext conftest.$ac_ext ;;
10291esac
10292fi
10293
10294
10295		CFLAGS="$xorg_testset_save_CFLAGS"
10296
10297		eval supported=\$$cacheid
10298		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10299printf "%s\n" "$supported" >&6; }
10300		if test "$supported" = "yes" ; then
10301			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10302			found="yes"
10303		fi
10304	fi
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320xorg_testset_save_CFLAGS="$CFLAGS"
10321
10322if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10323	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10324	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10325printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10326if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10327then :
10328  printf %s "(cached) " >&6
10329else case e in #(
10330  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10331/* end confdefs.h.  */
10332int i;
10333_ACEOF
10334if ac_fn_c_try_compile "$LINENO"
10335then :
10336  xorg_cv_cc_flag_unknown_warning_option=yes
10337else case e in #(
10338  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10339esac
10340fi
10341rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10342esac
10343fi
10344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10345printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10346	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10347	CFLAGS="$xorg_testset_save_CFLAGS"
10348fi
10349
10350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10351	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10352		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10353	fi
10354	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10355	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10356printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10357if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10358then :
10359  printf %s "(cached) " >&6
10360else case e in #(
10361  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10362/* end confdefs.h.  */
10363int i;
10364_ACEOF
10365if ac_fn_c_try_compile "$LINENO"
10366then :
10367  xorg_cv_cc_flag_unused_command_line_argument=yes
10368else case e in #(
10369  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10370esac
10371fi
10372rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10373esac
10374fi
10375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10376printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10377	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10378	CFLAGS="$xorg_testset_save_CFLAGS"
10379fi
10380
10381found="no"
10382
10383	if test $found = "no" ; then
10384		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10385			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10386		fi
10387
10388		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10389			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10390		fi
10391
10392		CFLAGS="$CFLAGS -Wwrite-strings"
10393
10394		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10395printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10396		cacheid=xorg_cv_cc_flag__Wwrite_strings
10397		if eval test \${$cacheid+y}
10398then :
10399  printf %s "(cached) " >&6
10400else case e in #(
10401  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10402/* end confdefs.h.  */
10403int i;
10404int
10405main (void)
10406{
10407
10408  ;
10409  return 0;
10410}
10411_ACEOF
10412if ac_fn_c_try_link "$LINENO"
10413then :
10414  eval $cacheid=yes
10415else case e in #(
10416  e) eval $cacheid=no ;;
10417esac
10418fi
10419rm -f core conftest.err conftest.$ac_objext conftest.beam \
10420    conftest$ac_exeext conftest.$ac_ext ;;
10421esac
10422fi
10423
10424
10425		CFLAGS="$xorg_testset_save_CFLAGS"
10426
10427		eval supported=\$$cacheid
10428		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10429printf "%s\n" "$supported" >&6; }
10430		if test "$supported" = "yes" ; then
10431			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10432			found="yes"
10433		fi
10434	fi
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450xorg_testset_save_CFLAGS="$CFLAGS"
10451
10452if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10453	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10454	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10455printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10456if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10457then :
10458  printf %s "(cached) " >&6
10459else case e in #(
10460  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10461/* end confdefs.h.  */
10462int i;
10463_ACEOF
10464if ac_fn_c_try_compile "$LINENO"
10465then :
10466  xorg_cv_cc_flag_unknown_warning_option=yes
10467else case e in #(
10468  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10469esac
10470fi
10471rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10472esac
10473fi
10474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10475printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10476	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10477	CFLAGS="$xorg_testset_save_CFLAGS"
10478fi
10479
10480if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10481	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10482		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10483	fi
10484	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10485	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10486printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10487if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10488then :
10489  printf %s "(cached) " >&6
10490else case e in #(
10491  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10492/* end confdefs.h.  */
10493int i;
10494_ACEOF
10495if ac_fn_c_try_compile "$LINENO"
10496then :
10497  xorg_cv_cc_flag_unused_command_line_argument=yes
10498else case e in #(
10499  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10500esac
10501fi
10502rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10503esac
10504fi
10505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10506printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10507	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10508	CFLAGS="$xorg_testset_save_CFLAGS"
10509fi
10510
10511found="no"
10512
10513	if test $found = "no" ; then
10514		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10515			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10516		fi
10517
10518		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10519			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10520		fi
10521
10522		CFLAGS="$CFLAGS -Waddress"
10523
10524		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10525printf %s "checking if $CC supports -Waddress... " >&6; }
10526		cacheid=xorg_cv_cc_flag__Waddress
10527		if eval test \${$cacheid+y}
10528then :
10529  printf %s "(cached) " >&6
10530else case e in #(
10531  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10532/* end confdefs.h.  */
10533int i;
10534int
10535main (void)
10536{
10537
10538  ;
10539  return 0;
10540}
10541_ACEOF
10542if ac_fn_c_try_link "$LINENO"
10543then :
10544  eval $cacheid=yes
10545else case e in #(
10546  e) eval $cacheid=no ;;
10547esac
10548fi
10549rm -f core conftest.err conftest.$ac_objext conftest.beam \
10550    conftest$ac_exeext conftest.$ac_ext ;;
10551esac
10552fi
10553
10554
10555		CFLAGS="$xorg_testset_save_CFLAGS"
10556
10557		eval supported=\$$cacheid
10558		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10559printf "%s\n" "$supported" >&6; }
10560		if test "$supported" = "yes" ; then
10561			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10562			found="yes"
10563		fi
10564	fi
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580xorg_testset_save_CFLAGS="$CFLAGS"
10581
10582if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10583	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10584	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10585printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10586if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10587then :
10588  printf %s "(cached) " >&6
10589else case e in #(
10590  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10591/* end confdefs.h.  */
10592int i;
10593_ACEOF
10594if ac_fn_c_try_compile "$LINENO"
10595then :
10596  xorg_cv_cc_flag_unknown_warning_option=yes
10597else case e in #(
10598  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10599esac
10600fi
10601rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10602esac
10603fi
10604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10605printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10606	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10607	CFLAGS="$xorg_testset_save_CFLAGS"
10608fi
10609
10610if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10611	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10612		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10613	fi
10614	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10615	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10616printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10617if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10618then :
10619  printf %s "(cached) " >&6
10620else case e in #(
10621  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10622/* end confdefs.h.  */
10623int i;
10624_ACEOF
10625if ac_fn_c_try_compile "$LINENO"
10626then :
10627  xorg_cv_cc_flag_unused_command_line_argument=yes
10628else case e in #(
10629  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10630esac
10631fi
10632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10633esac
10634fi
10635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10636printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10637	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10638	CFLAGS="$xorg_testset_save_CFLAGS"
10639fi
10640
10641found="no"
10642
10643	if test $found = "no" ; then
10644		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10645			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10646		fi
10647
10648		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10649			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10650		fi
10651
10652		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10653
10654		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10655printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10656		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10657		if eval test \${$cacheid+y}
10658then :
10659  printf %s "(cached) " >&6
10660else case e in #(
10661  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10662/* end confdefs.h.  */
10663int i;
10664int
10665main (void)
10666{
10667
10668  ;
10669  return 0;
10670}
10671_ACEOF
10672if ac_fn_c_try_link "$LINENO"
10673then :
10674  eval $cacheid=yes
10675else case e in #(
10676  e) eval $cacheid=no ;;
10677esac
10678fi
10679rm -f core conftest.err conftest.$ac_objext conftest.beam \
10680    conftest$ac_exeext conftest.$ac_ext ;;
10681esac
10682fi
10683
10684
10685		CFLAGS="$xorg_testset_save_CFLAGS"
10686
10687		eval supported=\$$cacheid
10688		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10689printf "%s\n" "$supported" >&6; }
10690		if test "$supported" = "yes" ; then
10691			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10692			found="yes"
10693		fi
10694	fi
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710xorg_testset_save_CFLAGS="$CFLAGS"
10711
10712if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10713	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10714	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10715printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10716if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10717then :
10718  printf %s "(cached) " >&6
10719else case e in #(
10720  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10721/* end confdefs.h.  */
10722int i;
10723_ACEOF
10724if ac_fn_c_try_compile "$LINENO"
10725then :
10726  xorg_cv_cc_flag_unknown_warning_option=yes
10727else case e in #(
10728  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10729esac
10730fi
10731rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10732esac
10733fi
10734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10735printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10736	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10737	CFLAGS="$xorg_testset_save_CFLAGS"
10738fi
10739
10740if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10741	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10742		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10743	fi
10744	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10745	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10746printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10747if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10748then :
10749  printf %s "(cached) " >&6
10750else case e in #(
10751  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10752/* end confdefs.h.  */
10753int i;
10754_ACEOF
10755if ac_fn_c_try_compile "$LINENO"
10756then :
10757  xorg_cv_cc_flag_unused_command_line_argument=yes
10758else case e in #(
10759  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10760esac
10761fi
10762rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10763esac
10764fi
10765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10766printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10767	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10768	CFLAGS="$xorg_testset_save_CFLAGS"
10769fi
10770
10771found="no"
10772
10773	if test $found = "no" ; then
10774		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10775			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10776		fi
10777
10778		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10779			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10780		fi
10781
10782		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10783
10784		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10785printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10786		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10787		if eval test \${$cacheid+y}
10788then :
10789  printf %s "(cached) " >&6
10790else case e in #(
10791  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10792/* end confdefs.h.  */
10793int i;
10794int
10795main (void)
10796{
10797
10798  ;
10799  return 0;
10800}
10801_ACEOF
10802if ac_fn_c_try_link "$LINENO"
10803then :
10804  eval $cacheid=yes
10805else case e in #(
10806  e) eval $cacheid=no ;;
10807esac
10808fi
10809rm -f core conftest.err conftest.$ac_objext conftest.beam \
10810    conftest$ac_exeext conftest.$ac_ext ;;
10811esac
10812fi
10813
10814
10815		CFLAGS="$xorg_testset_save_CFLAGS"
10816
10817		eval supported=\$$cacheid
10818		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10819printf "%s\n" "$supported" >&6; }
10820		if test "$supported" = "yes" ; then
10821			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10822			found="yes"
10823		fi
10824	fi
10825
10826
10827fi
10828
10829
10830
10831
10832
10833
10834
10835		CWARNFLAGS="$BASE_CFLAGS"
10836		if  test "x$GCC" = xyes ; then
10837		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10838		fi
10839
10840
10841
10842
10843
10844
10845
10846
10847# Check whether --enable-strict-compilation was given.
10848if test ${enable_strict_compilation+y}
10849then :
10850  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10851else case e in #(
10852  e) STRICT_COMPILE=no ;;
10853esac
10854fi
10855
10856
10857
10858
10859
10860
10861STRICT_CFLAGS=""
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875xorg_testset_save_CFLAGS="$CFLAGS"
10876
10877if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10878	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10879	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10880printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10881if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10882then :
10883  printf %s "(cached) " >&6
10884else case e in #(
10885  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886/* end confdefs.h.  */
10887int i;
10888_ACEOF
10889if ac_fn_c_try_compile "$LINENO"
10890then :
10891  xorg_cv_cc_flag_unknown_warning_option=yes
10892else case e in #(
10893  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10894esac
10895fi
10896rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10897esac
10898fi
10899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10900printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10901	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10902	CFLAGS="$xorg_testset_save_CFLAGS"
10903fi
10904
10905if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10906	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10907		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10908	fi
10909	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10910	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10911printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10912if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10913then :
10914  printf %s "(cached) " >&6
10915else case e in #(
10916  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10917/* end confdefs.h.  */
10918int i;
10919_ACEOF
10920if ac_fn_c_try_compile "$LINENO"
10921then :
10922  xorg_cv_cc_flag_unused_command_line_argument=yes
10923else case e in #(
10924  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10925esac
10926fi
10927rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10928esac
10929fi
10930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10931printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10932	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10933	CFLAGS="$xorg_testset_save_CFLAGS"
10934fi
10935
10936found="no"
10937
10938	if test $found = "no" ; then
10939		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10940			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10941		fi
10942
10943		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10944			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10945		fi
10946
10947		CFLAGS="$CFLAGS -pedantic"
10948
10949		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10950printf %s "checking if $CC supports -pedantic... " >&6; }
10951		cacheid=xorg_cv_cc_flag__pedantic
10952		if eval test \${$cacheid+y}
10953then :
10954  printf %s "(cached) " >&6
10955else case e in #(
10956  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10957/* end confdefs.h.  */
10958int i;
10959int
10960main (void)
10961{
10962
10963  ;
10964  return 0;
10965}
10966_ACEOF
10967if ac_fn_c_try_link "$LINENO"
10968then :
10969  eval $cacheid=yes
10970else case e in #(
10971  e) eval $cacheid=no ;;
10972esac
10973fi
10974rm -f core conftest.err conftest.$ac_objext conftest.beam \
10975    conftest$ac_exeext conftest.$ac_ext ;;
10976esac
10977fi
10978
10979
10980		CFLAGS="$xorg_testset_save_CFLAGS"
10981
10982		eval supported=\$$cacheid
10983		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10984printf "%s\n" "$supported" >&6; }
10985		if test "$supported" = "yes" ; then
10986			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10987			found="yes"
10988		fi
10989	fi
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005xorg_testset_save_CFLAGS="$CFLAGS"
11006
11007if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11008	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11009	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11010printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11011if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11012then :
11013  printf %s "(cached) " >&6
11014else case e in #(
11015  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11016/* end confdefs.h.  */
11017int i;
11018_ACEOF
11019if ac_fn_c_try_compile "$LINENO"
11020then :
11021  xorg_cv_cc_flag_unknown_warning_option=yes
11022else case e in #(
11023  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11024esac
11025fi
11026rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11027esac
11028fi
11029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11030printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11031	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11032	CFLAGS="$xorg_testset_save_CFLAGS"
11033fi
11034
11035if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11036	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11037		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11038	fi
11039	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11040	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11041printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11042if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11043then :
11044  printf %s "(cached) " >&6
11045else case e in #(
11046  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11047/* end confdefs.h.  */
11048int i;
11049_ACEOF
11050if ac_fn_c_try_compile "$LINENO"
11051then :
11052  xorg_cv_cc_flag_unused_command_line_argument=yes
11053else case e in #(
11054  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11055esac
11056fi
11057rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11058esac
11059fi
11060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11061printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11062	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11063	CFLAGS="$xorg_testset_save_CFLAGS"
11064fi
11065
11066found="no"
11067
11068	if test $found = "no" ; then
11069		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11070			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11071		fi
11072
11073		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11074			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11075		fi
11076
11077		CFLAGS="$CFLAGS -Werror"
11078
11079		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11080printf %s "checking if $CC supports -Werror... " >&6; }
11081		cacheid=xorg_cv_cc_flag__Werror
11082		if eval test \${$cacheid+y}
11083then :
11084  printf %s "(cached) " >&6
11085else case e in #(
11086  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11087/* end confdefs.h.  */
11088int i;
11089int
11090main (void)
11091{
11092
11093  ;
11094  return 0;
11095}
11096_ACEOF
11097if ac_fn_c_try_link "$LINENO"
11098then :
11099  eval $cacheid=yes
11100else case e in #(
11101  e) eval $cacheid=no ;;
11102esac
11103fi
11104rm -f core conftest.err conftest.$ac_objext conftest.beam \
11105    conftest$ac_exeext conftest.$ac_ext ;;
11106esac
11107fi
11108
11109
11110		CFLAGS="$xorg_testset_save_CFLAGS"
11111
11112		eval supported=\$$cacheid
11113		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11114printf "%s\n" "$supported" >&6; }
11115		if test "$supported" = "yes" ; then
11116			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11117			found="yes"
11118		fi
11119	fi
11120
11121	if test $found = "no" ; then
11122		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11123			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11124		fi
11125
11126		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11127			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11128		fi
11129
11130		CFLAGS="$CFLAGS -errwarn"
11131
11132		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11133printf %s "checking if $CC supports -errwarn... " >&6; }
11134		cacheid=xorg_cv_cc_flag__errwarn
11135		if eval test \${$cacheid+y}
11136then :
11137  printf %s "(cached) " >&6
11138else case e in #(
11139  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11140/* end confdefs.h.  */
11141int i;
11142int
11143main (void)
11144{
11145
11146  ;
11147  return 0;
11148}
11149_ACEOF
11150if ac_fn_c_try_link "$LINENO"
11151then :
11152  eval $cacheid=yes
11153else case e in #(
11154  e) eval $cacheid=no ;;
11155esac
11156fi
11157rm -f core conftest.err conftest.$ac_objext conftest.beam \
11158    conftest$ac_exeext conftest.$ac_ext ;;
11159esac
11160fi
11161
11162
11163		CFLAGS="$xorg_testset_save_CFLAGS"
11164
11165		eval supported=\$$cacheid
11166		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11167printf "%s\n" "$supported" >&6; }
11168		if test "$supported" = "yes" ; then
11169			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11170			found="yes"
11171		fi
11172	fi
11173
11174
11175
11176# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11177# activate it with -Werror, so we add it here explicitly.
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191xorg_testset_save_CFLAGS="$CFLAGS"
11192
11193if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11194	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11195	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11196printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11197if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11198then :
11199  printf %s "(cached) " >&6
11200else case e in #(
11201  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11202/* end confdefs.h.  */
11203int i;
11204_ACEOF
11205if ac_fn_c_try_compile "$LINENO"
11206then :
11207  xorg_cv_cc_flag_unknown_warning_option=yes
11208else case e in #(
11209  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11210esac
11211fi
11212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11213esac
11214fi
11215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11216printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11217	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11218	CFLAGS="$xorg_testset_save_CFLAGS"
11219fi
11220
11221if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11222	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11223		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11224	fi
11225	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11226	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11227printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11228if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11229then :
11230  printf %s "(cached) " >&6
11231else case e in #(
11232  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11233/* end confdefs.h.  */
11234int i;
11235_ACEOF
11236if ac_fn_c_try_compile "$LINENO"
11237then :
11238  xorg_cv_cc_flag_unused_command_line_argument=yes
11239else case e in #(
11240  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11241esac
11242fi
11243rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11244esac
11245fi
11246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11247printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11248	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11249	CFLAGS="$xorg_testset_save_CFLAGS"
11250fi
11251
11252found="no"
11253
11254	if test $found = "no" ; then
11255		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11256			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11257		fi
11258
11259		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11260			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11261		fi
11262
11263		CFLAGS="$CFLAGS -Werror=attributes"
11264
11265		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11266printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11267		cacheid=xorg_cv_cc_flag__Werror_attributes
11268		if eval test \${$cacheid+y}
11269then :
11270  printf %s "(cached) " >&6
11271else case e in #(
11272  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11273/* end confdefs.h.  */
11274int i;
11275int
11276main (void)
11277{
11278
11279  ;
11280  return 0;
11281}
11282_ACEOF
11283if ac_fn_c_try_link "$LINENO"
11284then :
11285  eval $cacheid=yes
11286else case e in #(
11287  e) eval $cacheid=no ;;
11288esac
11289fi
11290rm -f core conftest.err conftest.$ac_objext conftest.beam \
11291    conftest$ac_exeext conftest.$ac_ext ;;
11292esac
11293fi
11294
11295
11296		CFLAGS="$xorg_testset_save_CFLAGS"
11297
11298		eval supported=\$$cacheid
11299		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11300printf "%s\n" "$supported" >&6; }
11301		if test "$supported" = "yes" ; then
11302			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11303			found="yes"
11304		fi
11305	fi
11306
11307
11308
11309if test "x$STRICT_COMPILE" = "xyes"; then
11310    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11311    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11312fi
11313
11314
11315
11316
11317
11318
11319
11320
11321cat >>confdefs.h <<_ACEOF
11322#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11323_ACEOF
11324
11325	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11326	if test "x$PVM" = "x"; then
11327		PVM="0"
11328	fi
11329
11330printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11331
11332	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11333	if test "x$PVP" = "x"; then
11334		PVP="0"
11335	fi
11336
11337printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11338
11339
11340
11341CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11342mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11343|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11344touch \$(top_srcdir)/ChangeLog; \
11345echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11346
11347
11348
11349
11350macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11351INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11352mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11353|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11354touch \$(top_srcdir)/INSTALL; \
11355echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11356
11357
11358
11359
11360
11361
11362case $host_os in
11363    solaris*)
11364        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11365        # check for a man page file found in later versions that use
11366        # traditional section numbers instead
11367        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11368printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11369if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11370then :
11371  printf %s "(cached) " >&6
11372else case e in #(
11373  e) test "$cross_compiling" = yes &&
11374  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11375if test -r "/usr/share/man/man7/attributes.7"; then
11376  ac_cv_file__usr_share_man_man7_attributes_7=yes
11377else
11378  ac_cv_file__usr_share_man_man7_attributes_7=no
11379fi ;;
11380esac
11381fi
11382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11383printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11384if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11385then :
11386  SYSV_MAN_SECTIONS=false
11387else case e in #(
11388  e) SYSV_MAN_SECTIONS=true ;;
11389esac
11390fi
11391
11392        ;;
11393    *) SYSV_MAN_SECTIONS=false ;;
11394esac
11395
11396if test x$APP_MAN_SUFFIX = x    ; then
11397    APP_MAN_SUFFIX=1
11398fi
11399if test x$APP_MAN_DIR = x    ; then
11400    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11401fi
11402
11403if test x$LIB_MAN_SUFFIX = x    ; then
11404    LIB_MAN_SUFFIX=3
11405fi
11406if test x$LIB_MAN_DIR = x    ; then
11407    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11408fi
11409
11410if test x$FILE_MAN_SUFFIX = x    ; then
11411    case $SYSV_MAN_SECTIONS in
11412	true)				FILE_MAN_SUFFIX=4  ;;
11413	*)				FILE_MAN_SUFFIX=5  ;;
11414    esac
11415fi
11416if test x$FILE_MAN_DIR = x    ; then
11417    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11418fi
11419
11420if test x$MISC_MAN_SUFFIX = x    ; then
11421    case $SYSV_MAN_SECTIONS in
11422	true)				MISC_MAN_SUFFIX=5  ;;
11423	*)				MISC_MAN_SUFFIX=7  ;;
11424    esac
11425fi
11426if test x$MISC_MAN_DIR = x    ; then
11427    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11428fi
11429
11430if test x$DRIVER_MAN_SUFFIX = x    ; then
11431    case $SYSV_MAN_SECTIONS in
11432	true)				DRIVER_MAN_SUFFIX=7  ;;
11433	*)				DRIVER_MAN_SUFFIX=4  ;;
11434    esac
11435fi
11436if test x$DRIVER_MAN_DIR = x    ; then
11437    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11438fi
11439
11440if test x$ADMIN_MAN_SUFFIX = x    ; then
11441    case $SYSV_MAN_SECTIONS in
11442	true)				ADMIN_MAN_SUFFIX=1m ;;
11443	*)				ADMIN_MAN_SUFFIX=8  ;;
11444    esac
11445fi
11446if test x$ADMIN_MAN_DIR = x    ; then
11447    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11448fi
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464XORG_MAN_PAGE="X Version 11"
11465
11466MAN_SUBSTS="\
11467	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11468	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11469	-e 's|__xservername__|Xorg|g' \
11470	-e 's|__xconfigfile__|xorg.conf|g' \
11471	-e 's|__projectroot__|\$(prefix)|g' \
11472	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11473	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11474	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11475	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11476	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11477	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11478	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11479
11480
11481
11482# Check whether --enable-silent-rules was given.
11483if test ${enable_silent_rules+y}
11484then :
11485  enableval=$enable_silent_rules;
11486fi
11487
11488case $enable_silent_rules in # (((
11489  yes) AM_DEFAULT_VERBOSITY=0;;
11490   no) AM_DEFAULT_VERBOSITY=1;;
11491    *) AM_DEFAULT_VERBOSITY=0;;
11492esac
11493am_make=${MAKE-make}
11494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11495printf %s "checking whether $am_make supports nested variables... " >&6; }
11496if test ${am_cv_make_support_nested_variables+y}
11497then :
11498  printf %s "(cached) " >&6
11499else case e in #(
11500  e) if printf "%s\n" 'TRUE=$(BAR$(V))
11501BAR0=false
11502BAR1=true
11503V=1
11504am__doit:
11505	@$(TRUE)
11506.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11507  am_cv_make_support_nested_variables=yes
11508else
11509  am_cv_make_support_nested_variables=no
11510fi ;;
11511esac
11512fi
11513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11514printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11515if test $am_cv_make_support_nested_variables = yes; then
11516    AM_V='$(V)'
11517  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11518else
11519  AM_V=$AM_DEFAULT_VERBOSITY
11520  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11521fi
11522AM_BACKSLASH='\'
11523
11524
11525
11526
11527
11528# Check whether --with-rsh was given.
11529if test ${with_rsh+y}
11530then :
11531  withval=$with_rsh;  rsh="$withval"
11532else case e in #(
11533  e)  rsh=${bindir}/ssh  ;;
11534esac
11535fi
11536
11537RSH=$rsh
11538
11539
11540ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
11541if test "x$ac_cv_func_mkstemp" = xyes
11542then :
11543  printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
11544
11545fi
11546ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
11547if test "x$ac_cv_func_putenv" = xyes
11548then :
11549  printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
11550
11551fi
11552
11553
11554# Checks for pkg-config packages
11555
11556pkg_failed=no
11557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XSM" >&5
11558printf %s "checking for XSM... " >&6; }
11559
11560if test -n "$XSM_CFLAGS"; then
11561    pkg_cv_XSM_CFLAGS="$XSM_CFLAGS"
11562 elif test -n "$PKG_CONFIG"; then
11563    if test -n "$PKG_CONFIG" && \
11564    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt > 1.0.99 ice sm xaw7 xproto >= 7.0.17\""; } >&5
11565  ($PKG_CONFIG --exists --print-errors "x11 xt > 1.0.99 ice sm xaw7 xproto >= 7.0.17") 2>&5
11566  ac_status=$?
11567  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11568  test $ac_status = 0; }; then
11569  pkg_cv_XSM_CFLAGS=`$PKG_CONFIG --cflags "x11 xt > 1.0.99 ice sm xaw7 xproto >= 7.0.17" 2>/dev/null`
11570		      test "x$?" != "x0" && pkg_failed=yes
11571else
11572  pkg_failed=yes
11573fi
11574 else
11575    pkg_failed=untried
11576fi
11577if test -n "$XSM_LIBS"; then
11578    pkg_cv_XSM_LIBS="$XSM_LIBS"
11579 elif test -n "$PKG_CONFIG"; then
11580    if test -n "$PKG_CONFIG" && \
11581    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt > 1.0.99 ice sm xaw7 xproto >= 7.0.17\""; } >&5
11582  ($PKG_CONFIG --exists --print-errors "x11 xt > 1.0.99 ice sm xaw7 xproto >= 7.0.17") 2>&5
11583  ac_status=$?
11584  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11585  test $ac_status = 0; }; then
11586  pkg_cv_XSM_LIBS=`$PKG_CONFIG --libs "x11 xt > 1.0.99 ice sm xaw7 xproto >= 7.0.17" 2>/dev/null`
11587		      test "x$?" != "x0" && pkg_failed=yes
11588else
11589  pkg_failed=yes
11590fi
11591 else
11592    pkg_failed=untried
11593fi
11594
11595
11596
11597if test $pkg_failed = yes; then
11598   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11599printf "%s\n" "no" >&6; }
11600
11601if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11602        _pkg_short_errors_supported=yes
11603else
11604        _pkg_short_errors_supported=no
11605fi
11606        if test $_pkg_short_errors_supported = yes; then
11607	        XSM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xt > 1.0.99 ice sm xaw7 xproto >= 7.0.17" 2>&1`
11608        else
11609	        XSM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xt > 1.0.99 ice sm xaw7 xproto >= 7.0.17" 2>&1`
11610        fi
11611	# Put the nasty error message in config.log where it belongs
11612	echo "$XSM_PKG_ERRORS" >&5
11613
11614	as_fn_error $? "Package requirements (x11 xt > 1.0.99 ice sm xaw7 xproto >= 7.0.17) were not met:
11615
11616$XSM_PKG_ERRORS
11617
11618Consider adjusting the PKG_CONFIG_PATH environment variable if you
11619installed software in a non-standard prefix.
11620
11621Alternatively, you may set the environment variables XSM_CFLAGS
11622and XSM_LIBS to avoid the need to call pkg-config.
11623See the pkg-config man page for more details." "$LINENO" 5
11624elif test $pkg_failed = untried; then
11625     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11626printf "%s\n" "no" >&6; }
11627	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11628printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11629as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11630is in your PATH or set the PKG_CONFIG environment variable to the full
11631path to pkg-config.
11632
11633Alternatively, you may set the environment variables XSM_CFLAGS
11634and XSM_LIBS to avoid the need to call pkg-config.
11635See the pkg-config man page for more details.
11636
11637To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11638See 'config.log' for more details" "$LINENO" 5; }
11639else
11640	XSM_CFLAGS=$pkg_cv_XSM_CFLAGS
11641	XSM_LIBS=$pkg_cv_XSM_LIBS
11642        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11643printf "%s\n" "yes" >&6; }
11644
11645fi
11646
11647xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11648
11649# Check whether --with-appdefaultdir was given.
11650if test ${with_appdefaultdir+y}
11651then :
11652  withval=$with_appdefaultdir; appdefaultdir="$withval"
11653else case e in #(
11654  e) appdefaultdir="${xt_appdefaultdir}" ;;
11655esac
11656fi
11657
11658
11659
11660
11661ac_config_files="$ac_config_files Makefile man/Makefile"
11662
11663cat >confcache <<\_ACEOF
11664# This file is a shell script that caches the results of configure
11665# tests run on this system so they can be shared between configure
11666# scripts and configure runs, see configure's option --config-cache.
11667# It is not useful on other systems.  If it contains results you don't
11668# want to keep, you may remove or edit it.
11669#
11670# config.status only pays attention to the cache file if you give it
11671# the --recheck option to rerun configure.
11672#
11673# 'ac_cv_env_foo' variables (set or unset) will be overridden when
11674# loading this file, other *unset* 'ac_cv_foo' will be assigned the
11675# following values.
11676
11677_ACEOF
11678
11679# The following way of writing the cache mishandles newlines in values,
11680# but we know of no workaround that is simple, portable, and efficient.
11681# So, we kill variables containing newlines.
11682# Ultrix sh set writes to stderr and can't be redirected directly,
11683# and sets the high bit in the cache file unless we assign to the vars.
11684(
11685  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11686    eval ac_val=\$$ac_var
11687    case $ac_val in #(
11688    *${as_nl}*)
11689      case $ac_var in #(
11690      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11691printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11692      esac
11693      case $ac_var in #(
11694      _ | IFS | as_nl) ;; #(
11695      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11696      *) { eval $ac_var=; unset $ac_var;} ;;
11697      esac ;;
11698    esac
11699  done
11700
11701  (set) 2>&1 |
11702    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11703    *${as_nl}ac_space=\ *)
11704      # 'set' does not quote correctly, so add quotes: double-quote
11705      # substitution turns \\\\ into \\, and sed turns \\ into \.
11706      sed -n \
11707	"s/'/'\\\\''/g;
11708	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11709      ;; #(
11710    *)
11711      # 'set' quotes correctly as required by POSIX, so do not add quotes.
11712      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11713      ;;
11714    esac |
11715    sort
11716) |
11717  sed '
11718     /^ac_cv_env_/b end
11719     t clear
11720     :clear
11721     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11722     t end
11723     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11724     :end' >>confcache
11725if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11726  if test -w "$cache_file"; then
11727    if test "x$cache_file" != "x/dev/null"; then
11728      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11729printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11730      if test ! -f "$cache_file" || test -h "$cache_file"; then
11731	cat confcache >"$cache_file"
11732      else
11733        case $cache_file in #(
11734        */* | ?:*)
11735	  mv -f confcache "$cache_file"$$ &&
11736	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11737        *)
11738	  mv -f confcache "$cache_file" ;;
11739	esac
11740      fi
11741    fi
11742  else
11743    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11744printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11745  fi
11746fi
11747rm -f confcache
11748
11749test "x$prefix" = xNONE && prefix=$ac_default_prefix
11750# Let make expand exec_prefix.
11751test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11752
11753DEFS=-DHAVE_CONFIG_H
11754
11755ac_libobjs=
11756ac_ltlibobjs=
11757U=
11758for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11759  # 1. Remove the extension, and $U if already installed.
11760  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11761  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11762  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11763  #    will be set to the directory where LIBOBJS objects are built.
11764  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11765  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11766done
11767LIBOBJS=$ac_libobjs
11768
11769LTLIBOBJS=$ac_ltlibobjs
11770
11771
11772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11773printf %s "checking that generated files are newer than configure... " >&6; }
11774   if test -n "$am_sleep_pid"; then
11775     # Hide warnings about reused PIDs.
11776     wait $am_sleep_pid 2>/dev/null
11777   fi
11778   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11779printf "%s\n" "done" >&6; }
11780 if test -n "$EXEEXT"; then
11781  am__EXEEXT_TRUE=
11782  am__EXEEXT_FALSE='#'
11783else
11784  am__EXEEXT_TRUE='#'
11785  am__EXEEXT_FALSE=
11786fi
11787
11788if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11789  as_fn_error $? "conditional \"AMDEP\" was never defined.
11790Usually this means the macro was only invoked conditionally." "$LINENO" 5
11791fi
11792if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11793  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11794Usually this means the macro was only invoked conditionally." "$LINENO" 5
11795fi
11796
11797: "${CONFIG_STATUS=./config.status}"
11798ac_write_fail=0
11799ac_clean_files_save=$ac_clean_files
11800ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11802printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11803as_write_fail=0
11804cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11805#! $SHELL
11806# Generated by $as_me.
11807# Run this file to recreate the current configuration.
11808# Compiler output produced by configure, useful for debugging
11809# configure, is in config.log if it exists.
11810
11811debug=false
11812ac_cs_recheck=false
11813ac_cs_silent=false
11814
11815SHELL=\${CONFIG_SHELL-$SHELL}
11816export SHELL
11817_ASEOF
11818cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11819## -------------------- ##
11820## M4sh Initialization. ##
11821## -------------------- ##
11822
11823# Be more Bourne compatible
11824DUALCASE=1; export DUALCASE # for MKS sh
11825if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11826then :
11827  emulate sh
11828  NULLCMD=:
11829  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11830  # is contrary to our usage.  Disable this feature.
11831  alias -g '${1+"$@"}'='"$@"'
11832  setopt NO_GLOB_SUBST
11833else case e in #(
11834  e) case `(set -o) 2>/dev/null` in #(
11835  *posix*) :
11836    set -o posix ;; #(
11837  *) :
11838     ;;
11839esac ;;
11840esac
11841fi
11842
11843
11844
11845# Reset variables that may have inherited troublesome values from
11846# the environment.
11847
11848# IFS needs to be set, to space, tab, and newline, in precisely that order.
11849# (If _AS_PATH_WALK were called with IFS unset, it would have the
11850# side effect of setting IFS to empty, thus disabling word splitting.)
11851# Quoting is to prevent editors from complaining about space-tab.
11852as_nl='
11853'
11854export as_nl
11855IFS=" ""	$as_nl"
11856
11857PS1='$ '
11858PS2='> '
11859PS4='+ '
11860
11861# Ensure predictable behavior from utilities with locale-dependent output.
11862LC_ALL=C
11863export LC_ALL
11864LANGUAGE=C
11865export LANGUAGE
11866
11867# We cannot yet rely on "unset" to work, but we need these variables
11868# to be unset--not just set to an empty or harmless value--now, to
11869# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11870# also avoids known problems related to "unset" and subshell syntax
11871# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11872for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11873do eval test \${$as_var+y} \
11874  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11875done
11876
11877# Ensure that fds 0, 1, and 2 are open.
11878if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11879if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11880if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
11881
11882# The user is always right.
11883if ${PATH_SEPARATOR+false} :; then
11884  PATH_SEPARATOR=:
11885  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11886    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11887      PATH_SEPARATOR=';'
11888  }
11889fi
11890
11891
11892# Find who we are.  Look in the path if we contain no directory separator.
11893as_myself=
11894case $0 in #((
11895  *[\\/]* ) as_myself=$0 ;;
11896  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11897for as_dir in $PATH
11898do
11899  IFS=$as_save_IFS
11900  case $as_dir in #(((
11901    '') as_dir=./ ;;
11902    */) ;;
11903    *) as_dir=$as_dir/ ;;
11904  esac
11905    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11906  done
11907IFS=$as_save_IFS
11908
11909     ;;
11910esac
11911# We did not find ourselves, most probably we were run as 'sh COMMAND'
11912# in which case we are not to be found in the path.
11913if test "x$as_myself" = x; then
11914  as_myself=$0
11915fi
11916if test ! -f "$as_myself"; then
11917  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11918  exit 1
11919fi
11920
11921
11922
11923# as_fn_error STATUS ERROR [LINENO LOG_FD]
11924# ----------------------------------------
11925# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11926# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11927# script with STATUS, using 1 if that was 0.
11928as_fn_error ()
11929{
11930  as_status=$1; test $as_status -eq 0 && as_status=1
11931  if test "$4"; then
11932    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11933    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11934  fi
11935  printf "%s\n" "$as_me: error: $2" >&2
11936  as_fn_exit $as_status
11937} # as_fn_error
11938
11939
11940# as_fn_set_status STATUS
11941# -----------------------
11942# Set $? to STATUS, without forking.
11943as_fn_set_status ()
11944{
11945  return $1
11946} # as_fn_set_status
11947
11948# as_fn_exit STATUS
11949# -----------------
11950# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11951as_fn_exit ()
11952{
11953  set +e
11954  as_fn_set_status $1
11955  exit $1
11956} # as_fn_exit
11957
11958# as_fn_unset VAR
11959# ---------------
11960# Portably unset VAR.
11961as_fn_unset ()
11962{
11963  { eval $1=; unset $1;}
11964}
11965as_unset=as_fn_unset
11966
11967# as_fn_append VAR VALUE
11968# ----------------------
11969# Append the text in VALUE to the end of the definition contained in VAR. Take
11970# advantage of any shell optimizations that allow amortized linear growth over
11971# repeated appends, instead of the typical quadratic growth present in naive
11972# implementations.
11973if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11974then :
11975  eval 'as_fn_append ()
11976  {
11977    eval $1+=\$2
11978  }'
11979else case e in #(
11980  e) as_fn_append ()
11981  {
11982    eval $1=\$$1\$2
11983  } ;;
11984esac
11985fi # as_fn_append
11986
11987# as_fn_arith ARG...
11988# ------------------
11989# Perform arithmetic evaluation on the ARGs, and store the result in the
11990# global $as_val. Take advantage of shells that can avoid forks. The arguments
11991# must be portable across $(()) and expr.
11992if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11993then :
11994  eval 'as_fn_arith ()
11995  {
11996    as_val=$(( $* ))
11997  }'
11998else case e in #(
11999  e) as_fn_arith ()
12000  {
12001    as_val=`expr "$@" || test $? -eq 1`
12002  } ;;
12003esac
12004fi # as_fn_arith
12005
12006
12007if expr a : '\(a\)' >/dev/null 2>&1 &&
12008   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12009  as_expr=expr
12010else
12011  as_expr=false
12012fi
12013
12014if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12015  as_basename=basename
12016else
12017  as_basename=false
12018fi
12019
12020if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12021  as_dirname=dirname
12022else
12023  as_dirname=false
12024fi
12025
12026as_me=`$as_basename -- "$0" ||
12027$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12028	 X"$0" : 'X\(//\)$' \| \
12029	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12030printf "%s\n" X/"$0" |
12031    sed '/^.*\/\([^/][^/]*\)\/*$/{
12032	    s//\1/
12033	    q
12034	  }
12035	  /^X\/\(\/\/\)$/{
12036	    s//\1/
12037	    q
12038	  }
12039	  /^X\/\(\/\).*/{
12040	    s//\1/
12041	    q
12042	  }
12043	  s/.*/./; q'`
12044
12045# Avoid depending upon Character Ranges.
12046as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12047as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12048as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12049as_cr_digits='0123456789'
12050as_cr_alnum=$as_cr_Letters$as_cr_digits
12051
12052
12053# Determine whether it's possible to make 'echo' print without a newline.
12054# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12055# for compatibility with existing Makefiles.
12056ECHO_C= ECHO_N= ECHO_T=
12057case `echo -n x` in #(((((
12058-n*)
12059  case `echo 'xy\c'` in
12060  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12061  xy)  ECHO_C='\c';;
12062  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12063       ECHO_T='	';;
12064  esac;;
12065*)
12066  ECHO_N='-n';;
12067esac
12068
12069# For backward compatibility with old third-party macros, we provide
12070# the shell variables $as_echo and $as_echo_n.  New code should use
12071# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12072as_echo='printf %s\n'
12073as_echo_n='printf %s'
12074
12075rm -f conf$$ conf$$.exe conf$$.file
12076if test -d conf$$.dir; then
12077  rm -f conf$$.dir/conf$$.file
12078else
12079  rm -f conf$$.dir
12080  mkdir conf$$.dir 2>/dev/null
12081fi
12082if (echo >conf$$.file) 2>/dev/null; then
12083  if ln -s conf$$.file conf$$ 2>/dev/null; then
12084    as_ln_s='ln -s'
12085    # ... but there are two gotchas:
12086    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12087    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12088    # In both cases, we have to default to 'cp -pR'.
12089    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12090      as_ln_s='cp -pR'
12091  elif ln conf$$.file conf$$ 2>/dev/null; then
12092    as_ln_s=ln
12093  else
12094    as_ln_s='cp -pR'
12095  fi
12096else
12097  as_ln_s='cp -pR'
12098fi
12099rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12100rmdir conf$$.dir 2>/dev/null
12101
12102
12103# as_fn_mkdir_p
12104# -------------
12105# Create "$as_dir" as a directory, including parents if necessary.
12106as_fn_mkdir_p ()
12107{
12108
12109  case $as_dir in #(
12110  -*) as_dir=./$as_dir;;
12111  esac
12112  test -d "$as_dir" || eval $as_mkdir_p || {
12113    as_dirs=
12114    while :; do
12115      case $as_dir in #(
12116      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12117      *) as_qdir=$as_dir;;
12118      esac
12119      as_dirs="'$as_qdir' $as_dirs"
12120      as_dir=`$as_dirname -- "$as_dir" ||
12121$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12122	 X"$as_dir" : 'X\(//\)[^/]' \| \
12123	 X"$as_dir" : 'X\(//\)$' \| \
12124	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12125printf "%s\n" X"$as_dir" |
12126    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12127	    s//\1/
12128	    q
12129	  }
12130	  /^X\(\/\/\)[^/].*/{
12131	    s//\1/
12132	    q
12133	  }
12134	  /^X\(\/\/\)$/{
12135	    s//\1/
12136	    q
12137	  }
12138	  /^X\(\/\).*/{
12139	    s//\1/
12140	    q
12141	  }
12142	  s/.*/./; q'`
12143      test -d "$as_dir" && break
12144    done
12145    test -z "$as_dirs" || eval "mkdir $as_dirs"
12146  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12147
12148
12149} # as_fn_mkdir_p
12150if mkdir -p . 2>/dev/null; then
12151  as_mkdir_p='mkdir -p "$as_dir"'
12152else
12153  test -d ./-p && rmdir ./-p
12154  as_mkdir_p=false
12155fi
12156
12157
12158# as_fn_executable_p FILE
12159# -----------------------
12160# Test if FILE is an executable regular file.
12161as_fn_executable_p ()
12162{
12163  test -f "$1" && test -x "$1"
12164} # as_fn_executable_p
12165as_test_x='test -x'
12166as_executable_p=as_fn_executable_p
12167
12168# Sed expression to map a string onto a valid CPP name.
12169as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12170as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12171
12172# Sed expression to map a string onto a valid variable name.
12173as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12174as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12175
12176
12177exec 6>&1
12178## ----------------------------------- ##
12179## Main body of $CONFIG_STATUS script. ##
12180## ----------------------------------- ##
12181_ASEOF
12182test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12183
12184cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12185# Save the log message, to keep $0 and so on meaningful, and to
12186# report actual input values of CONFIG_FILES etc. instead of their
12187# values after options handling.
12188ac_log="
12189This file was extended by xsm $as_me 1.0.6, which was
12190generated by GNU Autoconf 2.72.  Invocation command line was
12191
12192  CONFIG_FILES    = $CONFIG_FILES
12193  CONFIG_HEADERS  = $CONFIG_HEADERS
12194  CONFIG_LINKS    = $CONFIG_LINKS
12195  CONFIG_COMMANDS = $CONFIG_COMMANDS
12196  $ $0 $@
12197
12198on `(hostname || uname -n) 2>/dev/null | sed 1q`
12199"
12200
12201_ACEOF
12202
12203case $ac_config_files in *"
12204"*) set x $ac_config_files; shift; ac_config_files=$*;;
12205esac
12206
12207case $ac_config_headers in *"
12208"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12209esac
12210
12211
12212cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12213# Files that config.status was made for.
12214config_files="$ac_config_files"
12215config_headers="$ac_config_headers"
12216config_commands="$ac_config_commands"
12217
12218_ACEOF
12219
12220cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12221ac_cs_usage="\
12222'$as_me' instantiates files and other configuration actions
12223from templates according to the current configuration.  Unless the files
12224and actions are specified as TAGs, all are instantiated by default.
12225
12226Usage: $0 [OPTION]... [TAG]...
12227
12228  -h, --help       print this help, then exit
12229  -V, --version    print version number and configuration settings, then exit
12230      --config     print configuration, then exit
12231  -q, --quiet, --silent
12232                   do not print progress messages
12233  -d, --debug      don't remove temporary files
12234      --recheck    update $as_me by reconfiguring in the same conditions
12235      --file=FILE[:TEMPLATE]
12236                   instantiate the configuration file FILE
12237      --header=FILE[:TEMPLATE]
12238                   instantiate the configuration header FILE
12239
12240Configuration files:
12241$config_files
12242
12243Configuration headers:
12244$config_headers
12245
12246Configuration commands:
12247$config_commands
12248
12249Report bugs to <https://gitlab.freedesktop.org/xorg/app/xsm/-/issues>."
12250
12251_ACEOF
12252ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12253ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12255ac_cs_config='$ac_cs_config_escaped'
12256ac_cs_version="\\
12257xsm config.status 1.0.6
12258configured by $0, generated by GNU Autoconf 2.72,
12259  with options \\"\$ac_cs_config\\"
12260
12261Copyright (C) 2023 Free Software Foundation, Inc.
12262This config.status script is free software; the Free Software Foundation
12263gives unlimited permission to copy, distribute and modify it."
12264
12265ac_pwd='$ac_pwd'
12266srcdir='$srcdir'
12267INSTALL='$INSTALL'
12268MKDIR_P='$MKDIR_P'
12269AWK='$AWK'
12270test -n "\$AWK" || AWK=awk
12271_ACEOF
12272
12273cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12274# The default lists apply if the user does not specify any file.
12275ac_need_defaults=:
12276while test $# != 0
12277do
12278  case $1 in
12279  --*=?*)
12280    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12281    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12282    ac_shift=:
12283    ;;
12284  --*=)
12285    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12286    ac_optarg=
12287    ac_shift=:
12288    ;;
12289  *)
12290    ac_option=$1
12291    ac_optarg=$2
12292    ac_shift=shift
12293    ;;
12294  esac
12295
12296  case $ac_option in
12297  # Handling of the options.
12298  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12299    ac_cs_recheck=: ;;
12300  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12301    printf "%s\n" "$ac_cs_version"; exit ;;
12302  --config | --confi | --conf | --con | --co | --c )
12303    printf "%s\n" "$ac_cs_config"; exit ;;
12304  --debug | --debu | --deb | --de | --d | -d )
12305    debug=: ;;
12306  --file | --fil | --fi | --f )
12307    $ac_shift
12308    case $ac_optarg in
12309    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12310    '') as_fn_error $? "missing file argument" ;;
12311    esac
12312    as_fn_append CONFIG_FILES " '$ac_optarg'"
12313    ac_need_defaults=false;;
12314  --header | --heade | --head | --hea )
12315    $ac_shift
12316    case $ac_optarg in
12317    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12318    esac
12319    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12320    ac_need_defaults=false;;
12321  --he | --h)
12322    # Conflict between --help and --header
12323    as_fn_error $? "ambiguous option: '$1'
12324Try '$0 --help' for more information.";;
12325  --help | --hel | -h )
12326    printf "%s\n" "$ac_cs_usage"; exit ;;
12327  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12328  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12329    ac_cs_silent=: ;;
12330
12331  # This is an error.
12332  -*) as_fn_error $? "unrecognized option: '$1'
12333Try '$0 --help' for more information." ;;
12334
12335  *) as_fn_append ac_config_targets " $1"
12336     ac_need_defaults=false ;;
12337
12338  esac
12339  shift
12340done
12341
12342ac_configure_extra_args=
12343
12344if $ac_cs_silent; then
12345  exec 6>/dev/null
12346  ac_configure_extra_args="$ac_configure_extra_args --silent"
12347fi
12348
12349_ACEOF
12350cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12351if \$ac_cs_recheck; then
12352  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12353  shift
12354  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12355  CONFIG_SHELL='$SHELL'
12356  export CONFIG_SHELL
12357  exec "\$@"
12358fi
12359
12360_ACEOF
12361cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12362exec 5>>config.log
12363{
12364  echo
12365  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12366## Running $as_me. ##
12367_ASBOX
12368  printf "%s\n" "$ac_log"
12369} >&5
12370
12371_ACEOF
12372cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12373#
12374# INIT-COMMANDS
12375#
12376AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12377
12378_ACEOF
12379
12380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12381
12382# Handling of arguments.
12383for ac_config_target in $ac_config_targets
12384do
12385  case $ac_config_target in
12386    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12387    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12388    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12389    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12390
12391  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12392  esac
12393done
12394
12395
12396# If the user did not use the arguments to specify the items to instantiate,
12397# then the envvar interface is used.  Set only those that are not.
12398# We use the long form for the default assignment because of an extremely
12399# bizarre bug on SunOS 4.1.3.
12400if $ac_need_defaults; then
12401  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12402  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12403  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12404fi
12405
12406# Have a temporary directory for convenience.  Make it in the build tree
12407# simply because there is no reason against having it here, and in addition,
12408# creating and moving files from /tmp can sometimes cause problems.
12409# Hook for its removal unless debugging.
12410# Note that there is a small window in which the directory will not be cleaned:
12411# after its creation but before its name has been assigned to '$tmp'.
12412$debug ||
12413{
12414  tmp= ac_tmp=
12415  trap 'exit_status=$?
12416  : "${ac_tmp:=$tmp}"
12417  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12418' 0
12419  trap 'as_fn_exit 1' 1 2 13 15
12420}
12421# Create a (secure) tmp directory for tmp files.
12422
12423{
12424  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12425  test -d "$tmp"
12426}  ||
12427{
12428  tmp=./conf$$-$RANDOM
12429  (umask 077 && mkdir "$tmp")
12430} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12431ac_tmp=$tmp
12432
12433# Set up the scripts for CONFIG_FILES section.
12434# No need to generate them if there are no CONFIG_FILES.
12435# This happens for instance with './config.status config.h'.
12436if test -n "$CONFIG_FILES"; then
12437
12438
12439ac_cr=`echo X | tr X '\015'`
12440# On cygwin, bash can eat \r inside `` if the user requested igncr.
12441# But we know of no other shell where ac_cr would be empty at this
12442# point, so we can use a bashism as a fallback.
12443if test "x$ac_cr" = x; then
12444  eval ac_cr=\$\'\\r\'
12445fi
12446ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12447if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12448  ac_cs_awk_cr='\\r'
12449else
12450  ac_cs_awk_cr=$ac_cr
12451fi
12452
12453echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12454_ACEOF
12455
12456
12457{
12458  echo "cat >conf$$subs.awk <<_ACEOF" &&
12459  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12460  echo "_ACEOF"
12461} >conf$$subs.sh ||
12462  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12463ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12464ac_delim='%!_!# '
12465for ac_last_try in false false false false false :; do
12466  . ./conf$$subs.sh ||
12467    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12468
12469  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12470  if test $ac_delim_n = $ac_delim_num; then
12471    break
12472  elif $ac_last_try; then
12473    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12474  else
12475    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12476  fi
12477done
12478rm -f conf$$subs.sh
12479
12480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12481cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12482_ACEOF
12483sed -n '
12484h
12485s/^/S["/; s/!.*/"]=/
12486p
12487g
12488s/^[^!]*!//
12489:repl
12490t repl
12491s/'"$ac_delim"'$//
12492t delim
12493:nl
12494h
12495s/\(.\{148\}\)..*/\1/
12496t more1
12497s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12498p
12499n
12500b repl
12501:more1
12502s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12503p
12504g
12505s/.\{148\}//
12506t nl
12507:delim
12508h
12509s/\(.\{148\}\)..*/\1/
12510t more2
12511s/["\\]/\\&/g; s/^/"/; s/$/"/
12512p
12513b
12514:more2
12515s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12516p
12517g
12518s/.\{148\}//
12519t delim
12520' <conf$$subs.awk | sed '
12521/^[^""]/{
12522  N
12523  s/\n//
12524}
12525' >>$CONFIG_STATUS || ac_write_fail=1
12526rm -f conf$$subs.awk
12527cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12528_ACAWK
12529cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12530  for (key in S) S_is_set[key] = 1
12531  FS = ""
12532
12533}
12534{
12535  line = $ 0
12536  nfields = split(line, field, "@")
12537  substed = 0
12538  len = length(field[1])
12539  for (i = 2; i < nfields; i++) {
12540    key = field[i]
12541    keylen = length(key)
12542    if (S_is_set[key]) {
12543      value = S[key]
12544      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12545      len += length(value) + length(field[++i])
12546      substed = 1
12547    } else
12548      len += 1 + keylen
12549  }
12550
12551  print line
12552}
12553
12554_ACAWK
12555_ACEOF
12556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12557if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12558  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12559else
12560  cat
12561fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12562  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12563_ACEOF
12564
12565# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12566# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12567# trailing colons and then remove the whole line if VPATH becomes empty
12568# (actually we leave an empty line to preserve line numbers).
12569if test "x$srcdir" = x.; then
12570  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12571h
12572s///
12573s/^/:/
12574s/[	 ]*$/:/
12575s/:\$(srcdir):/:/g
12576s/:\${srcdir}:/:/g
12577s/:@srcdir@:/:/g
12578s/^:*//
12579s/:*$//
12580x
12581s/\(=[	 ]*\).*/\1/
12582G
12583s/\n//
12584s/^[^=]*=[	 ]*$//
12585}'
12586fi
12587
12588cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12589fi # test -n "$CONFIG_FILES"
12590
12591# Set up the scripts for CONFIG_HEADERS section.
12592# No need to generate them if there are no CONFIG_HEADERS.
12593# This happens for instance with './config.status Makefile'.
12594if test -n "$CONFIG_HEADERS"; then
12595cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12596BEGIN {
12597_ACEOF
12598
12599# Transform confdefs.h into an awk script 'defines.awk', embedded as
12600# here-document in config.status, that substitutes the proper values into
12601# config.h.in to produce config.h.
12602
12603# Create a delimiter string that does not exist in confdefs.h, to ease
12604# handling of long lines.
12605ac_delim='%!_!# '
12606for ac_last_try in false false :; do
12607  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12608  if test -z "$ac_tt"; then
12609    break
12610  elif $ac_last_try; then
12611    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12612  else
12613    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12614  fi
12615done
12616
12617# For the awk script, D is an array of macro values keyed by name,
12618# likewise P contains macro parameters if any.  Preserve backslash
12619# newline sequences.
12620
12621ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12622sed -n '
12623s/.\{148\}/&'"$ac_delim"'/g
12624t rset
12625:rset
12626s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12627t def
12628d
12629:def
12630s/\\$//
12631t bsnl
12632s/["\\]/\\&/g
12633s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12634D["\1"]=" \3"/p
12635s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12636d
12637:bsnl
12638s/["\\]/\\&/g
12639s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12640D["\1"]=" \3\\\\\\n"\\/p
12641t cont
12642s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12643t cont
12644d
12645:cont
12646n
12647s/.\{148\}/&'"$ac_delim"'/g
12648t clear
12649:clear
12650s/\\$//
12651t bsnlc
12652s/["\\]/\\&/g; s/^/"/; s/$/"/p
12653d
12654:bsnlc
12655s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12656b cont
12657' <confdefs.h | sed '
12658s/'"$ac_delim"'/"\\\
12659"/g' >>$CONFIG_STATUS || ac_write_fail=1
12660
12661cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12662  for (key in D) D_is_set[key] = 1
12663  FS = ""
12664}
12665/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12666  line = \$ 0
12667  split(line, arg, " ")
12668  if (arg[1] == "#") {
12669    defundef = arg[2]
12670    mac1 = arg[3]
12671  } else {
12672    defundef = substr(arg[1], 2)
12673    mac1 = arg[2]
12674  }
12675  split(mac1, mac2, "(") #)
12676  macro = mac2[1]
12677  prefix = substr(line, 1, index(line, defundef) - 1)
12678  if (D_is_set[macro]) {
12679    # Preserve the white space surrounding the "#".
12680    print prefix "define", macro P[macro] D[macro]
12681    next
12682  } else {
12683    # Replace #undef with comments.  This is necessary, for example,
12684    # in the case of _POSIX_SOURCE, which is predefined and required
12685    # on some systems where configure will not decide to define it.
12686    if (defundef == "undef") {
12687      print "/*", prefix defundef, macro, "*/"
12688      next
12689    }
12690  }
12691}
12692{ print }
12693_ACAWK
12694_ACEOF
12695cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12696  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12697fi # test -n "$CONFIG_HEADERS"
12698
12699
12700eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12701shift
12702for ac_tag
12703do
12704  case $ac_tag in
12705  :[FHLC]) ac_mode=$ac_tag; continue;;
12706  esac
12707  case $ac_mode$ac_tag in
12708  :[FHL]*:*);;
12709  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
12710  :[FH]-) ac_tag=-:-;;
12711  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12712  esac
12713  ac_save_IFS=$IFS
12714  IFS=:
12715  set x $ac_tag
12716  IFS=$ac_save_IFS
12717  shift
12718  ac_file=$1
12719  shift
12720
12721  case $ac_mode in
12722  :L) ac_source=$1;;
12723  :[FH])
12724    ac_file_inputs=
12725    for ac_f
12726    do
12727      case $ac_f in
12728      -) ac_f="$ac_tmp/stdin";;
12729      *) # Look for the file first in the build tree, then in the source tree
12730	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12731	 # because $ac_f cannot contain ':'.
12732	 test -f "$ac_f" ||
12733	   case $ac_f in
12734	   [\\/$]*) false;;
12735	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12736	   esac ||
12737	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
12738      esac
12739      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12740      as_fn_append ac_file_inputs " '$ac_f'"
12741    done
12742
12743    # Let's still pretend it is 'configure' which instantiates (i.e., don't
12744    # use $as_me), people would be surprised to read:
12745    #    /* config.h.  Generated by config.status.  */
12746    configure_input='Generated from '`
12747	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12748	`' by configure.'
12749    if test x"$ac_file" != x-; then
12750      configure_input="$ac_file.  $configure_input"
12751      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12752printf "%s\n" "$as_me: creating $ac_file" >&6;}
12753    fi
12754    # Neutralize special characters interpreted by sed in replacement strings.
12755    case $configure_input in #(
12756    *\&* | *\|* | *\\* )
12757       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12758       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12759    *) ac_sed_conf_input=$configure_input;;
12760    esac
12761
12762    case $ac_tag in
12763    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12764      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12765    esac
12766    ;;
12767  esac
12768
12769  ac_dir=`$as_dirname -- "$ac_file" ||
12770$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12771	 X"$ac_file" : 'X\(//\)[^/]' \| \
12772	 X"$ac_file" : 'X\(//\)$' \| \
12773	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12774printf "%s\n" X"$ac_file" |
12775    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12776	    s//\1/
12777	    q
12778	  }
12779	  /^X\(\/\/\)[^/].*/{
12780	    s//\1/
12781	    q
12782	  }
12783	  /^X\(\/\/\)$/{
12784	    s//\1/
12785	    q
12786	  }
12787	  /^X\(\/\).*/{
12788	    s//\1/
12789	    q
12790	  }
12791	  s/.*/./; q'`
12792  as_dir="$ac_dir"; as_fn_mkdir_p
12793  ac_builddir=.
12794
12795case "$ac_dir" in
12796.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12797*)
12798  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12799  # A ".." for each directory in $ac_dir_suffix.
12800  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12801  case $ac_top_builddir_sub in
12802  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12803  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12804  esac ;;
12805esac
12806ac_abs_top_builddir=$ac_pwd
12807ac_abs_builddir=$ac_pwd$ac_dir_suffix
12808# for backward compatibility:
12809ac_top_builddir=$ac_top_build_prefix
12810
12811case $srcdir in
12812  .)  # We are building in place.
12813    ac_srcdir=.
12814    ac_top_srcdir=$ac_top_builddir_sub
12815    ac_abs_top_srcdir=$ac_pwd ;;
12816  [\\/]* | ?:[\\/]* )  # Absolute name.
12817    ac_srcdir=$srcdir$ac_dir_suffix;
12818    ac_top_srcdir=$srcdir
12819    ac_abs_top_srcdir=$srcdir ;;
12820  *) # Relative name.
12821    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12822    ac_top_srcdir=$ac_top_build_prefix$srcdir
12823    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12824esac
12825ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12826
12827
12828  case $ac_mode in
12829  :F)
12830  #
12831  # CONFIG_FILE
12832  #
12833
12834  case $INSTALL in
12835  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12836  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12837  esac
12838  ac_MKDIR_P=$MKDIR_P
12839  case $MKDIR_P in
12840  [\\/$]* | ?:[\\/]* ) ;;
12841  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12842  esac
12843_ACEOF
12844
12845cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12846# If the template does not know about datarootdir, expand it.
12847# FIXME: This hack should be removed a few years after 2.60.
12848ac_datarootdir_hack=; ac_datarootdir_seen=
12849ac_sed_dataroot='
12850/datarootdir/ {
12851  p
12852  q
12853}
12854/@datadir@/p
12855/@docdir@/p
12856/@infodir@/p
12857/@localedir@/p
12858/@mandir@/p'
12859case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12860*datarootdir*) ac_datarootdir_seen=yes;;
12861*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12862  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12863printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12864_ACEOF
12865cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12866  ac_datarootdir_hack='
12867  s&@datadir@&$datadir&g
12868  s&@docdir@&$docdir&g
12869  s&@infodir@&$infodir&g
12870  s&@localedir@&$localedir&g
12871  s&@mandir@&$mandir&g
12872  s&\\\${datarootdir}&$datarootdir&g' ;;
12873esac
12874_ACEOF
12875
12876# Neutralize VPATH when '$srcdir' = '.'.
12877# Shell code in configure.ac might set extrasub.
12878# FIXME: do we really want to maintain this feature?
12879cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12880ac_sed_extra="$ac_vpsub
12881$extrasub
12882_ACEOF
12883cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12884:t
12885/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12886s|@configure_input@|$ac_sed_conf_input|;t t
12887s&@top_builddir@&$ac_top_builddir_sub&;t t
12888s&@top_build_prefix@&$ac_top_build_prefix&;t t
12889s&@srcdir@&$ac_srcdir&;t t
12890s&@abs_srcdir@&$ac_abs_srcdir&;t t
12891s&@top_srcdir@&$ac_top_srcdir&;t t
12892s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12893s&@builddir@&$ac_builddir&;t t
12894s&@abs_builddir@&$ac_abs_builddir&;t t
12895s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12896s&@INSTALL@&$ac_INSTALL&;t t
12897s&@MKDIR_P@&$ac_MKDIR_P&;t t
12898$ac_datarootdir_hack
12899"
12900eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12901  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12902
12903test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12904  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12905  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12906      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12907  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12908which seems to be undefined.  Please make sure it is defined" >&5
12909printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12910which seems to be undefined.  Please make sure it is defined" >&2;}
12911
12912  rm -f "$ac_tmp/stdin"
12913  case $ac_file in
12914  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12915  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12916  esac \
12917  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12918 ;;
12919  :H)
12920  #
12921  # CONFIG_HEADER
12922  #
12923  if test x"$ac_file" != x-; then
12924    {
12925      printf "%s\n" "/* $configure_input  */" >&1 \
12926      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12927    } >"$ac_tmp/config.h" \
12928      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12929    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12930      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12931printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12932    else
12933      rm -f "$ac_file"
12934      mv "$ac_tmp/config.h" "$ac_file" \
12935	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12936    fi
12937  else
12938    printf "%s\n" "/* $configure_input  */" >&1 \
12939      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12940      || as_fn_error $? "could not create -" "$LINENO" 5
12941  fi
12942# Compute "$ac_file"'s index in $config_headers.
12943_am_arg="$ac_file"
12944_am_stamp_count=1
12945for _am_header in $config_headers :; do
12946  case $_am_header in
12947    $_am_arg | $_am_arg:* )
12948      break ;;
12949    * )
12950      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12951  esac
12952done
12953echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12954$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12955	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12956	 X"$_am_arg" : 'X\(//\)$' \| \
12957	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12958printf "%s\n" X"$_am_arg" |
12959    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12960	    s//\1/
12961	    q
12962	  }
12963	  /^X\(\/\/\)[^/].*/{
12964	    s//\1/
12965	    q
12966	  }
12967	  /^X\(\/\/\)$/{
12968	    s//\1/
12969	    q
12970	  }
12971	  /^X\(\/\).*/{
12972	    s//\1/
12973	    q
12974	  }
12975	  s/.*/./; q'`/stamp-h$_am_stamp_count
12976 ;;
12977
12978  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12979printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12980 ;;
12981  esac
12982
12983
12984  case $ac_file$ac_mode in
12985    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12986  # Older Autoconf quotes --file arguments for eval, but not when files
12987  # are listed without --file.  Let's play safe and only enable the eval
12988  # if we detect the quoting.
12989  # TODO: see whether this extra hack can be removed once we start
12990  # requiring Autoconf 2.70 or later.
12991  case $CONFIG_FILES in #(
12992  *\'*) :
12993    eval set x "$CONFIG_FILES" ;; #(
12994  *) :
12995    set x $CONFIG_FILES ;; #(
12996  *) :
12997     ;;
12998esac
12999  shift
13000  # Used to flag and report bootstrapping failures.
13001  am_rc=0
13002  for am_mf
13003  do
13004    # Strip MF so we end up with the name of the file.
13005    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13006    # Check whether this is an Automake generated Makefile which includes
13007    # dependency-tracking related rules and includes.
13008    # Grep'ing the whole file directly is not great: AIX grep has a line
13009    # limit of 2048, but all sed's we know have understand at least 4000.
13010    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13011      || continue
13012    am_dirpart=`$as_dirname -- "$am_mf" ||
13013$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13014	 X"$am_mf" : 'X\(//\)[^/]' \| \
13015	 X"$am_mf" : 'X\(//\)$' \| \
13016	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13017printf "%s\n" X"$am_mf" |
13018    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13019	    s//\1/
13020	    q
13021	  }
13022	  /^X\(\/\/\)[^/].*/{
13023	    s//\1/
13024	    q
13025	  }
13026	  /^X\(\/\/\)$/{
13027	    s//\1/
13028	    q
13029	  }
13030	  /^X\(\/\).*/{
13031	    s//\1/
13032	    q
13033	  }
13034	  s/.*/./; q'`
13035    am_filepart=`$as_basename -- "$am_mf" ||
13036$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13037	 X"$am_mf" : 'X\(//\)$' \| \
13038	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13039printf "%s\n" X/"$am_mf" |
13040    sed '/^.*\/\([^/][^/]*\)\/*$/{
13041	    s//\1/
13042	    q
13043	  }
13044	  /^X\/\(\/\/\)$/{
13045	    s//\1/
13046	    q
13047	  }
13048	  /^X\/\(\/\).*/{
13049	    s//\1/
13050	    q
13051	  }
13052	  s/.*/./; q'`
13053    { echo "$as_me:$LINENO: cd "$am_dirpart" \
13054      && sed -e '/# am--include-marker/d' "$am_filepart" \
13055        | $MAKE -f - am--depfiles" >&5
13056   (cd "$am_dirpart" \
13057      && sed -e '/# am--include-marker/d' "$am_filepart" \
13058        | $MAKE -f - am--depfiles) >&5 2>&5
13059   ac_status=$?
13060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061   (exit $ac_status); } || am_rc=$?
13062  done
13063  if test $am_rc -ne 0; then
13064    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13065printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13066as_fn_error $? "Something went wrong bootstrapping makefile fragments
13067    for automatic dependency tracking.  If GNU make was not used, consider
13068    re-running the configure script with MAKE=\"gmake\" (or whatever is
13069    necessary).  You can also try re-running configure with the
13070    '--disable-dependency-tracking' option to at least be able to build
13071    the package (albeit without support for automatic dependency tracking).
13072See 'config.log' for more details" "$LINENO" 5; }
13073  fi
13074  { am_dirpart=; unset am_dirpart;}
13075  { am_filepart=; unset am_filepart;}
13076  { am_mf=; unset am_mf;}
13077  { am_rc=; unset am_rc;}
13078  rm -f conftest-deps.mk
13079}
13080 ;;
13081
13082  esac
13083done # for ac_tag
13084
13085
13086as_fn_exit 0
13087_ACEOF
13088ac_clean_files=$ac_clean_files_save
13089
13090test $ac_write_fail = 0 ||
13091  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13092
13093
13094# configure is writing to config.log, and then calls config.status.
13095# config.status does its own redirection, appending to config.log.
13096# Unfortunately, on DOS this fails, as config.log is still kept open
13097# by configure, so config.status won't be able to write to it; its
13098# output is simply discarded.  So we exec the FD to /dev/null,
13099# effectively closing config.log, so it can be properly (re)opened and
13100# appended to by config.status.  When coming back to configure, we
13101# need to make the FD available again.
13102if test "$no_create" != yes; then
13103  ac_cs_success=:
13104  ac_config_status_args=
13105  test "$silent" = yes &&
13106    ac_config_status_args="$ac_config_status_args --quiet"
13107  exec 5>/dev/null
13108  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13109  exec 5>>config.log
13110  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13111  # would make configure fail if this is the last instruction.
13112  $ac_cs_success || as_fn_exit 1
13113fi
13114if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13115  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13116printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13117fi
13118
13119
13120