1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for xedit 1.2.4.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xedit/-/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/xedit/-/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='xedit'
607PACKAGE_TARNAME='xedit'
608PACKAGE_VERSION='1.2.4'
609PACKAGE_STRING='xedit 1.2.4'
610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xedit/-/issues'
611PACKAGE_URL=''
612
613# Factoring default headers for most tests.
614ac_includes_default="\
615#include <stddef.h>
616#ifdef HAVE_STDIO_H
617# include <stdio.h>
618#endif
619#ifdef HAVE_STDLIB_H
620# include <stdlib.h>
621#endif
622#ifdef HAVE_STRING_H
623# include <string.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_STRINGS_H
632# include <strings.h>
633#endif
634#ifdef HAVE_SYS_TYPES_H
635# include <sys/types.h>
636#endif
637#ifdef HAVE_SYS_STAT_H
638# include <sys/stat.h>
639#endif
640#ifdef HAVE_UNISTD_H
641# include <unistd.h>
642#endif"
643
644ac_header_c_list=
645ac_subst_vars='am__EXEEXT_FALSE
646am__EXEEXT_TRUE
647LTLIBOBJS
648LIBOBJS
649appdefaultdir
650APPDEFS_LIBS
651APPDEFS_CFLAGS
652NEED_UNSETENV_FALSE
653NEED_UNSETENV_TRUE
654NEED_STRCASECMP_FALSE
655NEED_STRCASECMP_TRUE
656NEED_REALPATH_FALSE
657NEED_REALPATH_TRUE
658LISPDIR
659PKGDEPS_LIBS
660PKGDEPS_CFLAGS
661RANLIB
662ac_ct_AR
663AR
664MAN_SUBSTS
665XORG_MAN_PAGE
666ADMIN_MAN_DIR
667DRIVER_MAN_DIR
668MISC_MAN_DIR
669FILE_MAN_DIR
670LIB_MAN_DIR
671APP_MAN_DIR
672ADMIN_MAN_SUFFIX
673DRIVER_MAN_SUFFIX
674MISC_MAN_SUFFIX
675FILE_MAN_SUFFIX
676LIB_MAN_SUFFIX
677APP_MAN_SUFFIX
678SED
679host_os
680host_vendor
681host_cpu
682host
683build_os
684build_vendor
685build_cpu
686build
687INSTALL_CMD
688PKG_CONFIG_LIBDIR
689PKG_CONFIG_PATH
690PKG_CONFIG
691CHANGELOG_CMD
692STRICT_CFLAGS
693CWARNFLAGS
694BASE_CFLAGS
695am__fastdepCC_FALSE
696am__fastdepCC_TRUE
697CCDEPMODE
698am__nodep
699AMDEPBACKSLASH
700AMDEP_FALSE
701AMDEP_TRUE
702am__include
703DEPDIR
704OBJEXT
705EXEEXT
706ac_ct_CC
707CPPFLAGS
708LDFLAGS
709CFLAGS
710CC
711AM_BACKSLASH
712AM_DEFAULT_VERBOSITY
713AM_DEFAULT_V
714AM_V
715CSCOPE
716ETAGS
717CTAGS
718am__untar
719am__tar
720AMTAR
721am__leading_dot
722SET_MAKE
723AWK
724mkdir_p
725MKDIR_P
726INSTALL_STRIP_PROGRAM
727STRIP
728install_sh
729MAKEINFO
730AUTOHEADER
731AUTOMAKE
732AUTOCONF
733ACLOCAL
734VERSION
735PACKAGE
736CYGPATH_W
737am__isrc
738INSTALL_DATA
739INSTALL_SCRIPT
740INSTALL_PROGRAM
741target_alias
742host_alias
743build_alias
744LIBS
745ECHO_T
746ECHO_N
747ECHO_C
748DEFS
749mandir
750localedir
751libdir
752psdir
753pdfdir
754dvidir
755htmldir
756infodir
757docdir
758oldincludedir
759includedir
760runstatedir
761localstatedir
762sharedstatedir
763sysconfdir
764datadir
765datarootdir
766libexecdir
767sbindir
768bindir
769program_transform_name
770prefix
771exec_prefix
772PACKAGE_URL
773PACKAGE_BUGREPORT
774PACKAGE_STRING
775PACKAGE_VERSION
776PACKAGE_TARNAME
777PACKAGE_NAME
778PATH_SEPARATOR
779SHELL
780am__quote'
781ac_subst_files=''
782ac_user_opts='
783enable_option_checking
784enable_silent_rules
785enable_dependency_tracking
786enable_selective_werror
787enable_strict_compilation
788with_lispdir
789with_appdefaultdir
790'
791      ac_precious_vars='build_alias
792host_alias
793target_alias
794CC
795CFLAGS
796LDFLAGS
797LIBS
798CPPFLAGS
799PKG_CONFIG
800PKG_CONFIG_PATH
801PKG_CONFIG_LIBDIR
802PKGDEPS_CFLAGS
803PKGDEPS_LIBS
804APPDEFS_CFLAGS
805APPDEFS_LIBS'
806
807
808# Initialize some variables set by options.
809ac_init_help=
810ac_init_version=false
811ac_unrecognized_opts=
812ac_unrecognized_sep=
813# The variables have the same names as the options, with
814# dashes changed to underlines.
815cache_file=/dev/null
816exec_prefix=NONE
817no_create=
818no_recursion=
819prefix=NONE
820program_prefix=NONE
821program_suffix=NONE
822program_transform_name=s,x,x,
823silent=
824site=
825srcdir=
826verbose=
827x_includes=NONE
828x_libraries=NONE
829
830# Installation directory options.
831# These are left unexpanded so users can "make install exec_prefix=/foo"
832# and all the variables that are supposed to be based on exec_prefix
833# by default will actually change.
834# Use braces instead of parens because sh, perl, etc. also accept them.
835# (The list follows the same order as the GNU Coding Standards.)
836bindir='${exec_prefix}/bin'
837sbindir='${exec_prefix}/sbin'
838libexecdir='${exec_prefix}/libexec'
839datarootdir='${prefix}/share'
840datadir='${datarootdir}'
841sysconfdir='${prefix}/etc'
842sharedstatedir='${prefix}/com'
843localstatedir='${prefix}/var'
844runstatedir='${localstatedir}/run'
845includedir='${prefix}/include'
846oldincludedir='/usr/include'
847docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
848infodir='${datarootdir}/info'
849htmldir='${docdir}'
850dvidir='${docdir}'
851pdfdir='${docdir}'
852psdir='${docdir}'
853libdir='${exec_prefix}/lib'
854localedir='${datarootdir}/locale'
855mandir='${datarootdir}/man'
856
857ac_prev=
858ac_dashdash=
859for ac_option
860do
861  # If the previous option needs an argument, assign it.
862  if test -n "$ac_prev"; then
863    eval $ac_prev=\$ac_option
864    ac_prev=
865    continue
866  fi
867
868  case $ac_option in
869  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870  *=)   ac_optarg= ;;
871  *)    ac_optarg=yes ;;
872  esac
873
874  case $ac_dashdash$ac_option in
875  --)
876    ac_dashdash=yes ;;
877
878  -bindir | --bindir | --bindi | --bind | --bin | --bi)
879    ac_prev=bindir ;;
880  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
881    bindir=$ac_optarg ;;
882
883  -build | --build | --buil | --bui | --bu)
884    ac_prev=build_alias ;;
885  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
886    build_alias=$ac_optarg ;;
887
888  -cache-file | --cache-file | --cache-fil | --cache-fi \
889  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
890    ac_prev=cache_file ;;
891  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
892  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
893    cache_file=$ac_optarg ;;
894
895  --config-cache | -C)
896    cache_file=config.cache ;;
897
898  -datadir | --datadir | --datadi | --datad)
899    ac_prev=datadir ;;
900  -datadir=* | --datadir=* | --datadi=* | --datad=*)
901    datadir=$ac_optarg ;;
902
903  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
904  | --dataroo | --dataro | --datar)
905    ac_prev=datarootdir ;;
906  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
907  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
908    datarootdir=$ac_optarg ;;
909
910  -disable-* | --disable-*)
911    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
912    # Reject names that are not valid shell variable names.
913    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914      as_fn_error $? "invalid feature name: '$ac_useropt'"
915    ac_useropt_orig=$ac_useropt
916    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
917    case $ac_user_opts in
918      *"
919"enable_$ac_useropt"
920"*) ;;
921      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
922	 ac_unrecognized_sep=', ';;
923    esac
924    eval enable_$ac_useropt=no ;;
925
926  -docdir | --docdir | --docdi | --doc | --do)
927    ac_prev=docdir ;;
928  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929    docdir=$ac_optarg ;;
930
931  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932    ac_prev=dvidir ;;
933  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934    dvidir=$ac_optarg ;;
935
936  -enable-* | --enable-*)
937    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938    # Reject names that are not valid shell variable names.
939    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940      as_fn_error $? "invalid feature name: '$ac_useropt'"
941    ac_useropt_orig=$ac_useropt
942    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
943    case $ac_user_opts in
944      *"
945"enable_$ac_useropt"
946"*) ;;
947      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
948	 ac_unrecognized_sep=', ';;
949    esac
950    eval enable_$ac_useropt=\$ac_optarg ;;
951
952  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954  | --exec | --exe | --ex)
955    ac_prev=exec_prefix ;;
956  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958  | --exec=* | --exe=* | --ex=*)
959    exec_prefix=$ac_optarg ;;
960
961  -gas | --gas | --ga | --g)
962    # Obsolete; use --with-gas.
963    with_gas=yes ;;
964
965  -help | --help | --hel | --he | -h)
966    ac_init_help=long ;;
967  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968    ac_init_help=recursive ;;
969  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970    ac_init_help=short ;;
971
972  -host | --host | --hos | --ho)
973    ac_prev=host_alias ;;
974  -host=* | --host=* | --hos=* | --ho=*)
975    host_alias=$ac_optarg ;;
976
977  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978    ac_prev=htmldir ;;
979  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980  | --ht=*)
981    htmldir=$ac_optarg ;;
982
983  -includedir | --includedir | --includedi | --included | --include \
984  | --includ | --inclu | --incl | --inc)
985    ac_prev=includedir ;;
986  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987  | --includ=* | --inclu=* | --incl=* | --inc=*)
988    includedir=$ac_optarg ;;
989
990  -infodir | --infodir | --infodi | --infod | --info | --inf)
991    ac_prev=infodir ;;
992  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993    infodir=$ac_optarg ;;
994
995  -libdir | --libdir | --libdi | --libd)
996    ac_prev=libdir ;;
997  -libdir=* | --libdir=* | --libdi=* | --libd=*)
998    libdir=$ac_optarg ;;
999
1000  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001  | --libexe | --libex | --libe)
1002    ac_prev=libexecdir ;;
1003  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004  | --libexe=* | --libex=* | --libe=*)
1005    libexecdir=$ac_optarg ;;
1006
1007  -localedir | --localedir | --localedi | --localed | --locale)
1008    ac_prev=localedir ;;
1009  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010    localedir=$ac_optarg ;;
1011
1012  -localstatedir | --localstatedir | --localstatedi | --localstated \
1013  | --localstate | --localstat | --localsta | --localst | --locals)
1014    ac_prev=localstatedir ;;
1015  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1016  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1017    localstatedir=$ac_optarg ;;
1018
1019  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020    ac_prev=mandir ;;
1021  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022    mandir=$ac_optarg ;;
1023
1024  -nfp | --nfp | --nf)
1025    # Obsolete; use --without-fp.
1026    with_fp=no ;;
1027
1028  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029  | --no-cr | --no-c | -n)
1030    no_create=yes ;;
1031
1032  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034    no_recursion=yes ;;
1035
1036  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038  | --oldin | --oldi | --old | --ol | --o)
1039    ac_prev=oldincludedir ;;
1040  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043    oldincludedir=$ac_optarg ;;
1044
1045  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046    ac_prev=prefix ;;
1047  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048    prefix=$ac_optarg ;;
1049
1050  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051  | --program-pre | --program-pr | --program-p)
1052    ac_prev=program_prefix ;;
1053  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055    program_prefix=$ac_optarg ;;
1056
1057  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058  | --program-suf | --program-su | --program-s)
1059    ac_prev=program_suffix ;;
1060  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062    program_suffix=$ac_optarg ;;
1063
1064  -program-transform-name | --program-transform-name \
1065  | --program-transform-nam | --program-transform-na \
1066  | --program-transform-n | --program-transform- \
1067  | --program-transform | --program-transfor \
1068  | --program-transfo | --program-transf \
1069  | --program-trans | --program-tran \
1070  | --progr-tra | --program-tr | --program-t)
1071    ac_prev=program_transform_name ;;
1072  -program-transform-name=* | --program-transform-name=* \
1073  | --program-transform-nam=* | --program-transform-na=* \
1074  | --program-transform-n=* | --program-transform-=* \
1075  | --program-transform=* | --program-transfor=* \
1076  | --program-transfo=* | --program-transf=* \
1077  | --program-trans=* | --program-tran=* \
1078  | --progr-tra=* | --program-tr=* | --program-t=*)
1079    program_transform_name=$ac_optarg ;;
1080
1081  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082    ac_prev=pdfdir ;;
1083  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084    pdfdir=$ac_optarg ;;
1085
1086  -psdir | --psdir | --psdi | --psd | --ps)
1087    ac_prev=psdir ;;
1088  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089    psdir=$ac_optarg ;;
1090
1091  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092  | -silent | --silent | --silen | --sile | --sil)
1093    silent=yes ;;
1094
1095  -runstatedir | --runstatedir | --runstatedi | --runstated \
1096  | --runstate | --runstat | --runsta | --runst | --runs \
1097  | --run | --ru | --r)
1098    ac_prev=runstatedir ;;
1099  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1100  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1101  | --run=* | --ru=* | --r=*)
1102    runstatedir=$ac_optarg ;;
1103
1104  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105    ac_prev=sbindir ;;
1106  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107  | --sbi=* | --sb=*)
1108    sbindir=$ac_optarg ;;
1109
1110  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112  | --sharedst | --shareds | --shared | --share | --shar \
1113  | --sha | --sh)
1114    ac_prev=sharedstatedir ;;
1115  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118  | --sha=* | --sh=*)
1119    sharedstatedir=$ac_optarg ;;
1120
1121  -site | --site | --sit)
1122    ac_prev=site ;;
1123  -site=* | --site=* | --sit=*)
1124    site=$ac_optarg ;;
1125
1126  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127    ac_prev=srcdir ;;
1128  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129    srcdir=$ac_optarg ;;
1130
1131  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132  | --syscon | --sysco | --sysc | --sys | --sy)
1133    ac_prev=sysconfdir ;;
1134  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136    sysconfdir=$ac_optarg ;;
1137
1138  -target | --target | --targe | --targ | --tar | --ta | --t)
1139    ac_prev=target_alias ;;
1140  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141    target_alias=$ac_optarg ;;
1142
1143  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144    verbose=yes ;;
1145
1146  -version | --version | --versio | --versi | --vers | -V)
1147    ac_init_version=: ;;
1148
1149  -with-* | --with-*)
1150    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151    # Reject names that are not valid shell variable names.
1152    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153      as_fn_error $? "invalid package name: '$ac_useropt'"
1154    ac_useropt_orig=$ac_useropt
1155    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1156    case $ac_user_opts in
1157      *"
1158"with_$ac_useropt"
1159"*) ;;
1160      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161	 ac_unrecognized_sep=', ';;
1162    esac
1163    eval with_$ac_useropt=\$ac_optarg ;;
1164
1165  -without-* | --without-*)
1166    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167    # Reject names that are not valid shell variable names.
1168    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169      as_fn_error $? "invalid package name: '$ac_useropt'"
1170    ac_useropt_orig=$ac_useropt
1171    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1172    case $ac_user_opts in
1173      *"
1174"with_$ac_useropt"
1175"*) ;;
1176      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177	 ac_unrecognized_sep=', ';;
1178    esac
1179    eval with_$ac_useropt=no ;;
1180
1181  --x)
1182    # Obsolete; use --with-x.
1183    with_x=yes ;;
1184
1185  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186  | --x-incl | --x-inc | --x-in | --x-i)
1187    ac_prev=x_includes ;;
1188  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1190    x_includes=$ac_optarg ;;
1191
1192  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194    ac_prev=x_libraries ;;
1195  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197    x_libraries=$ac_optarg ;;
1198
1199  -*) as_fn_error $? "unrecognized option: '$ac_option'
1200Try '$0 --help' for more information"
1201    ;;
1202
1203  *=*)
1204    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205    # Reject names that are not valid shell variable names.
1206    case $ac_envvar in #(
1207      '' | [0-9]* | *[!_$as_cr_alnum]* )
1208      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1209    esac
1210    eval $ac_envvar=\$ac_optarg
1211    export $ac_envvar ;;
1212
1213  *)
1214    # FIXME: should be removed in autoconf 3.0.
1215    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1216    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1218    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1219    ;;
1220
1221  esac
1222done
1223
1224if test -n "$ac_prev"; then
1225  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1226  as_fn_error $? "missing argument to $ac_option"
1227fi
1228
1229if test -n "$ac_unrecognized_opts"; then
1230  case $enable_option_checking in
1231    no) ;;
1232    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1233    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234  esac
1235fi
1236
1237# Check all directory arguments for consistency.
1238for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239		datadir sysconfdir sharedstatedir localstatedir includedir \
1240		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241		libdir localedir mandir runstatedir
1242do
1243  eval ac_val=\$$ac_var
1244  # Remove trailing slashes.
1245  case $ac_val in
1246    */ )
1247      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248      eval $ac_var=\$ac_val;;
1249  esac
1250  # Be sure to have absolute directory names.
1251  case $ac_val in
1252    [\\/$]* | ?:[\\/]* )  continue;;
1253    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1254  esac
1255  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1256done
1257
1258# There might be people who depend on the old broken behavior: '$host'
1259# used to hold the argument of --host etc.
1260# FIXME: To remove some day.
1261build=$build_alias
1262host=$host_alias
1263target=$target_alias
1264
1265# FIXME: To remove some day.
1266if test "x$host_alias" != x; then
1267  if test "x$build_alias" = x; then
1268    cross_compiling=maybe
1269  elif test "x$build_alias" != "x$host_alias"; then
1270    cross_compiling=yes
1271  fi
1272fi
1273
1274ac_tool_prefix=
1275test -n "$host_alias" && ac_tool_prefix=$host_alias-
1276
1277test "$silent" = yes && exec 6>/dev/null
1278
1279
1280ac_pwd=`pwd` && test -n "$ac_pwd" &&
1281ac_ls_di=`ls -di .` &&
1282ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1283  as_fn_error $? "working directory cannot be determined"
1284test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285  as_fn_error $? "pwd does not report name of working directory"
1286
1287
1288# Find the source files, if location was not specified.
1289if test -z "$srcdir"; then
1290  ac_srcdir_defaulted=yes
1291  # Try the directory containing this script, then the parent directory.
1292  ac_confdir=`$as_dirname -- "$as_myself" ||
1293$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294	 X"$as_myself" : 'X\(//\)[^/]' \| \
1295	 X"$as_myself" : 'X\(//\)$' \| \
1296	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297printf "%s\n" X"$as_myself" |
1298    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299	    s//\1/
1300	    q
1301	  }
1302	  /^X\(\/\/\)[^/].*/{
1303	    s//\1/
1304	    q
1305	  }
1306	  /^X\(\/\/\)$/{
1307	    s//\1/
1308	    q
1309	  }
1310	  /^X\(\/\).*/{
1311	    s//\1/
1312	    q
1313	  }
1314	  s/.*/./; q'`
1315  srcdir=$ac_confdir
1316  if test ! -r "$srcdir/$ac_unique_file"; then
1317    srcdir=..
1318  fi
1319else
1320  ac_srcdir_defaulted=no
1321fi
1322if test ! -r "$srcdir/$ac_unique_file"; then
1323  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1324  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1325fi
1326ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1327ac_abs_confdir=`(
1328	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1329	pwd)`
1330# When building in place, set srcdir=.
1331if test "$ac_abs_confdir" = "$ac_pwd"; then
1332  srcdir=.
1333fi
1334# Remove unnecessary trailing slashes from srcdir.
1335# Double slashes in file names in object file debugging info
1336# mess up M-x gdb in Emacs.
1337case $srcdir in
1338*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339esac
1340for ac_var in $ac_precious_vars; do
1341  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342  eval ac_env_${ac_var}_value=\$${ac_var}
1343  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1345done
1346
1347#
1348# Report the --help message.
1349#
1350if test "$ac_init_help" = "long"; then
1351  # Omit some internal or obsolete options to make the list less imposing.
1352  # This message is too long to be a string in the A/UX 3.1 sh.
1353  cat <<_ACEOF
1354'configure' configures xedit 1.2.4 to adapt to many kinds of systems.
1355
1356Usage: $0 [OPTION]... [VAR=VALUE]...
1357
1358To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359VAR=VALUE.  See below for descriptions of some of the useful variables.
1360
1361Defaults for the options are specified in brackets.
1362
1363Configuration:
1364  -h, --help              display this help and exit
1365      --help=short        display options specific to this package
1366      --help=recursive    display the short help of all the included packages
1367  -V, --version           display version information and exit
1368  -q, --quiet, --silent   do not print 'checking ...' messages
1369      --cache-file=FILE   cache test results in FILE [disabled]
1370  -C, --config-cache      alias for '--cache-file=config.cache'
1371  -n, --no-create         do not create output files
1372      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1373
1374Installation directories:
1375  --prefix=PREFIX         install architecture-independent files in PREFIX
1376                          [$ac_default_prefix]
1377  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1378                          [PREFIX]
1379
1380By default, 'make install' will install all the files in
1381'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1382an installation prefix other than '$ac_default_prefix' using '--prefix',
1383for instance '--prefix=\$HOME'.
1384
1385For better control, use the options below.
1386
1387Fine tuning of the installation directories:
1388  --bindir=DIR            user executables [EPREFIX/bin]
1389  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1390  --libexecdir=DIR        program executables [EPREFIX/libexec]
1391  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1392  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1393  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1394  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1395  --libdir=DIR            object code libraries [EPREFIX/lib]
1396  --includedir=DIR        C header files [PREFIX/include]
1397  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1398  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1399  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1400  --infodir=DIR           info documentation [DATAROOTDIR/info]
1401  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1402  --mandir=DIR            man documentation [DATAROOTDIR/man]
1403  --docdir=DIR            documentation root [DATAROOTDIR/doc/xedit]
1404  --htmldir=DIR           html documentation [DOCDIR]
1405  --dvidir=DIR            dvi documentation [DOCDIR]
1406  --pdfdir=DIR            pdf documentation [DOCDIR]
1407  --psdir=DIR             ps documentation [DOCDIR]
1408_ACEOF
1409
1410  cat <<\_ACEOF
1411
1412Program names:
1413  --program-prefix=PREFIX            prepend PREFIX to installed program names
1414  --program-suffix=SUFFIX            append SUFFIX to installed program names
1415  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1416
1417System types:
1418  --build=BUILD     configure for building on BUILD [guessed]
1419  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1420_ACEOF
1421fi
1422
1423if test -n "$ac_init_help"; then
1424  case $ac_init_help in
1425     short | recursive ) echo "Configuration of xedit 1.2.4:";;
1426   esac
1427  cat <<\_ACEOF
1428
1429Optional Features:
1430  --disable-option-checking  ignore unrecognized --enable/--with options
1431  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1432  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1433  --enable-silent-rules   less verbose build output (undo: "make V=1")
1434  --disable-silent-rules  verbose build output (undo: "make V=0")
1435  --enable-dependency-tracking
1436                          do not reject slow dependency extractors
1437  --disable-dependency-tracking
1438                          speeds up one-time build
1439  --disable-selective-werror
1440                          Turn off selective compiler errors. (default:
1441                          enabled)
1442  --enable-strict-compilation
1443                          Enable all warnings from compiler and make them
1444                          errors (default: disabled)
1445
1446Optional Packages:
1447  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1448  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1449  --with-lispdir=PATH     Directory to install lisp files (default:
1450                          $libdir/X11/xedit/lisp)
1451  --with-appdefaultdir=<pathname>
1452                          specify directory for app-defaults files (default is
1453                          autodetected)
1454
1455Some influential environment variables:
1456  CC          C compiler command
1457  CFLAGS      C compiler flags
1458  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1459              nonstandard directory <lib dir>
1460  LIBS        libraries to pass to the linker, e.g. -l<library>
1461  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1462              you have headers in a nonstandard directory <include dir>
1463  PKG_CONFIG  path to pkg-config utility
1464  PKG_CONFIG_PATH
1465              directories to add to pkg-config's search path
1466  PKG_CONFIG_LIBDIR
1467              path overriding pkg-config's built-in search path
1468  PKGDEPS_CFLAGS
1469              C compiler flags for PKGDEPS, overriding pkg-config
1470  PKGDEPS_LIBS
1471              linker flags for PKGDEPS, overriding pkg-config
1472  APPDEFS_CFLAGS
1473              C compiler flags for APPDEFS, overriding pkg-config
1474  APPDEFS_LIBS
1475              linker flags for APPDEFS, overriding pkg-config
1476
1477Use these variables to override the choices made by 'configure' or to help
1478it to find libraries and programs with nonstandard names/locations.
1479
1480Report bugs to <https://gitlab.freedesktop.org/xorg/app/xedit/-/issues>.
1481_ACEOF
1482ac_status=$?
1483fi
1484
1485if test "$ac_init_help" = "recursive"; then
1486  # If there are subdirs, report their specific --help.
1487  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488    test -d "$ac_dir" ||
1489      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1490      continue
1491    ac_builddir=.
1492
1493case "$ac_dir" in
1494.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495*)
1496  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1497  # A ".." for each directory in $ac_dir_suffix.
1498  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1499  case $ac_top_builddir_sub in
1500  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502  esac ;;
1503esac
1504ac_abs_top_builddir=$ac_pwd
1505ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506# for backward compatibility:
1507ac_top_builddir=$ac_top_build_prefix
1508
1509case $srcdir in
1510  .)  # We are building in place.
1511    ac_srcdir=.
1512    ac_top_srcdir=$ac_top_builddir_sub
1513    ac_abs_top_srcdir=$ac_pwd ;;
1514  [\\/]* | ?:[\\/]* )  # Absolute name.
1515    ac_srcdir=$srcdir$ac_dir_suffix;
1516    ac_top_srcdir=$srcdir
1517    ac_abs_top_srcdir=$srcdir ;;
1518  *) # Relative name.
1519    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520    ac_top_srcdir=$ac_top_build_prefix$srcdir
1521    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522esac
1523ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524
1525    cd "$ac_dir" || { ac_status=$?; continue; }
1526    # Check for configure.gnu first; this name is used for a wrapper for
1527    # Metaconfig's "Configure" on case-insensitive file systems.
1528    if test -f "$ac_srcdir/configure.gnu"; then
1529      echo &&
1530      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531    elif test -f "$ac_srcdir/configure"; then
1532      echo &&
1533      $SHELL "$ac_srcdir/configure" --help=recursive
1534    else
1535      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536    fi || ac_status=$?
1537    cd "$ac_pwd" || { ac_status=$?; break; }
1538  done
1539fi
1540
1541test -n "$ac_init_help" && exit $ac_status
1542if $ac_init_version; then
1543  cat <<\_ACEOF
1544xedit configure 1.2.4
1545generated by GNU Autoconf 2.72
1546
1547Copyright (C) 2023 Free Software Foundation, Inc.
1548This configure script is free software; the Free Software Foundation
1549gives unlimited permission to copy, distribute and modify it.
1550_ACEOF
1551  exit
1552fi
1553
1554## ------------------------ ##
1555## Autoconf initialization. ##
1556## ------------------------ ##
1557
1558# ac_fn_c_try_compile LINENO
1559# --------------------------
1560# Try to compile conftest.$ac_ext, and return whether this succeeded.
1561ac_fn_c_try_compile ()
1562{
1563  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564  rm -f conftest.$ac_objext conftest.beam
1565  if { { ac_try="$ac_compile"
1566case "(($ac_try" in
1567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568  *) ac_try_echo=$ac_try;;
1569esac
1570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571printf "%s\n" "$ac_try_echo"; } >&5
1572  (eval "$ac_compile") 2>conftest.err
1573  ac_status=$?
1574  if test -s conftest.err; then
1575    grep -v '^ *+' conftest.err >conftest.er1
1576    cat conftest.er1 >&5
1577    mv -f conftest.er1 conftest.err
1578  fi
1579  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580  test $ac_status = 0; } && {
1581	 test -z "$ac_c_werror_flag" ||
1582	 test ! -s conftest.err
1583       } && test -s conftest.$ac_objext
1584then :
1585  ac_retval=0
1586else case e in #(
1587  e) printf "%s\n" "$as_me: failed program was:" >&5
1588sed 's/^/| /' conftest.$ac_ext >&5
1589
1590	ac_retval=1 ;;
1591esac
1592fi
1593  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594  as_fn_set_status $ac_retval
1595
1596} # ac_fn_c_try_compile
1597
1598# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1599# ------------------------------------------------------------------
1600# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1601# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1602ac_fn_check_decl ()
1603{
1604  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605  as_decl_name=`echo $2|sed 's/ *(.*//'`
1606  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1607printf %s "checking whether $as_decl_name is declared... " >&6; }
1608if eval test \${$3+y}
1609then :
1610  printf %s "(cached) " >&6
1611else case e in #(
1612  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1613  eval ac_save_FLAGS=\$$6
1614  as_fn_append $6 " $5"
1615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1616/* end confdefs.h.  */
1617$4
1618int
1619main (void)
1620{
1621#ifndef $as_decl_name
1622#ifdef __cplusplus
1623  (void) $as_decl_use;
1624#else
1625  (void) $as_decl_name;
1626#endif
1627#endif
1628
1629  ;
1630  return 0;
1631}
1632_ACEOF
1633if ac_fn_c_try_compile "$LINENO"
1634then :
1635  eval "$3=yes"
1636else case e in #(
1637  e) eval "$3=no" ;;
1638esac
1639fi
1640rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1641  eval $6=\$ac_save_FLAGS
1642 ;;
1643esac
1644fi
1645eval ac_res=\$$3
1646	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1647printf "%s\n" "$ac_res" >&6; }
1648  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649
1650} # ac_fn_check_decl
1651
1652# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1653# -------------------------------------------------------
1654# Tests whether HEADER exists and can be compiled using the include files in
1655# INCLUDES, setting the cache variable VAR accordingly.
1656ac_fn_c_check_header_compile ()
1657{
1658  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660printf %s "checking for $2... " >&6; }
1661if eval test \${$3+y}
1662then :
1663  printf %s "(cached) " >&6
1664else case e in #(
1665  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666/* end confdefs.h.  */
1667$4
1668#include <$2>
1669_ACEOF
1670if ac_fn_c_try_compile "$LINENO"
1671then :
1672  eval "$3=yes"
1673else case e in #(
1674  e) eval "$3=no" ;;
1675esac
1676fi
1677rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1678esac
1679fi
1680eval ac_res=\$$3
1681	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1682printf "%s\n" "$ac_res" >&6; }
1683  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684
1685} # ac_fn_c_check_header_compile
1686
1687# ac_fn_c_try_link LINENO
1688# -----------------------
1689# Try to link conftest.$ac_ext, and return whether this succeeded.
1690ac_fn_c_try_link ()
1691{
1692  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1694  if { { ac_try="$ac_link"
1695case "(($ac_try" in
1696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697  *) ac_try_echo=$ac_try;;
1698esac
1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700printf "%s\n" "$ac_try_echo"; } >&5
1701  (eval "$ac_link") 2>conftest.err
1702  ac_status=$?
1703  if test -s conftest.err; then
1704    grep -v '^ *+' conftest.err >conftest.er1
1705    cat conftest.er1 >&5
1706    mv -f conftest.er1 conftest.err
1707  fi
1708  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709  test $ac_status = 0; } && {
1710	 test -z "$ac_c_werror_flag" ||
1711	 test ! -s conftest.err
1712       } && test -s conftest$ac_exeext && {
1713	 test "$cross_compiling" = yes ||
1714	 test -x conftest$ac_exeext
1715       }
1716then :
1717  ac_retval=0
1718else case e in #(
1719  e) printf "%s\n" "$as_me: failed program was:" >&5
1720sed 's/^/| /' conftest.$ac_ext >&5
1721
1722	ac_retval=1 ;;
1723esac
1724fi
1725  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1726  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1727  # interfere with the next link command; also delete a directory that is
1728  # left behind by Apple's compiler.  We do this before executing the actions.
1729  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731  as_fn_set_status $ac_retval
1732
1733} # ac_fn_c_try_link
1734
1735# ac_fn_c_check_func LINENO FUNC VAR
1736# ----------------------------------
1737# Tests whether FUNC exists, setting the cache variable VAR accordingly
1738ac_fn_c_check_func ()
1739{
1740  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742printf %s "checking for $2... " >&6; }
1743if eval test \${$3+y}
1744then :
1745  printf %s "(cached) " >&6
1746else case e in #(
1747  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748/* end confdefs.h.  */
1749/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1750   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1751#define $2 innocuous_$2
1752
1753/* System header to define __stub macros and hopefully few prototypes,
1754   which can conflict with char $2 (void); below.  */
1755
1756#include <limits.h>
1757#undef $2
1758
1759/* Override any GCC internal prototype to avoid an error.
1760   Use char because int might match the return type of a GCC
1761   builtin and then its argument prototype would still apply.  */
1762#ifdef __cplusplus
1763extern "C"
1764#endif
1765char $2 (void);
1766/* The GNU C library defines this for functions which it implements
1767    to always fail with ENOSYS.  Some functions are actually named
1768    something starting with __ and the normal name is an alias.  */
1769#if defined __stub_$2 || defined __stub___$2
1770choke me
1771#endif
1772
1773int
1774main (void)
1775{
1776return $2 ();
1777  ;
1778  return 0;
1779}
1780_ACEOF
1781if ac_fn_c_try_link "$LINENO"
1782then :
1783  eval "$3=yes"
1784else case e in #(
1785  e) eval "$3=no" ;;
1786esac
1787fi
1788rm -f core conftest.err conftest.$ac_objext conftest.beam \
1789    conftest$ac_exeext conftest.$ac_ext ;;
1790esac
1791fi
1792eval ac_res=\$$3
1793	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794printf "%s\n" "$ac_res" >&6; }
1795  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796
1797} # ac_fn_c_check_func
1798ac_configure_args_raw=
1799for ac_arg
1800do
1801  case $ac_arg in
1802  *\'*)
1803    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1804  esac
1805  as_fn_append ac_configure_args_raw " '$ac_arg'"
1806done
1807
1808case $ac_configure_args_raw in
1809  *$as_nl*)
1810    ac_safe_unquote= ;;
1811  *)
1812    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1813    ac_unsafe_a="$ac_unsafe_z#~"
1814    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1815    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1816esac
1817
1818cat >config.log <<_ACEOF
1819This file contains any messages produced by compilers while
1820running configure, to aid debugging if configure makes a mistake.
1821
1822It was created by xedit $as_me 1.2.4, which was
1823generated by GNU Autoconf 2.72.  Invocation command line was
1824
1825  $ $0$ac_configure_args_raw
1826
1827_ACEOF
1828exec 5>>config.log
1829{
1830cat <<_ASUNAME
1831## --------- ##
1832## Platform. ##
1833## --------- ##
1834
1835hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1836uname -m = `(uname -m) 2>/dev/null || echo unknown`
1837uname -r = `(uname -r) 2>/dev/null || echo unknown`
1838uname -s = `(uname -s) 2>/dev/null || echo unknown`
1839uname -v = `(uname -v) 2>/dev/null || echo unknown`
1840
1841/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1842/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1843
1844/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1845/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1846/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1847/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1848/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1849/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1850/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1851
1852_ASUNAME
1853
1854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855for as_dir in $PATH
1856do
1857  IFS=$as_save_IFS
1858  case $as_dir in #(((
1859    '') as_dir=./ ;;
1860    */) ;;
1861    *) as_dir=$as_dir/ ;;
1862  esac
1863    printf "%s\n" "PATH: $as_dir"
1864  done
1865IFS=$as_save_IFS
1866
1867} >&5
1868
1869cat >&5 <<_ACEOF
1870
1871
1872## ----------- ##
1873## Core tests. ##
1874## ----------- ##
1875
1876_ACEOF
1877
1878
1879# Keep a trace of the command line.
1880# Strip out --no-create and --no-recursion so they do not pile up.
1881# Strip out --silent because we don't want to record it for future runs.
1882# Also quote any args containing shell meta-characters.
1883# Make two passes to allow for proper duplicate-argument suppression.
1884ac_configure_args=
1885ac_configure_args0=
1886ac_configure_args1=
1887ac_must_keep_next=false
1888for ac_pass in 1 2
1889do
1890  for ac_arg
1891  do
1892    case $ac_arg in
1893    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1894    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1895    | -silent | --silent | --silen | --sile | --sil)
1896      continue ;;
1897    *\'*)
1898      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1899    esac
1900    case $ac_pass in
1901    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1902    2)
1903      as_fn_append ac_configure_args1 " '$ac_arg'"
1904      if test $ac_must_keep_next = true; then
1905	ac_must_keep_next=false # Got value, back to normal.
1906      else
1907	case $ac_arg in
1908	  *=* | --config-cache | -C | -disable-* | --disable-* \
1909	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1910	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1911	  | -with-* | --with-* | -without-* | --without-* | --x)
1912	    case "$ac_configure_args0 " in
1913	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1914	    esac
1915	    ;;
1916	  -* ) ac_must_keep_next=true ;;
1917	esac
1918      fi
1919      as_fn_append ac_configure_args " '$ac_arg'"
1920      ;;
1921    esac
1922  done
1923done
1924{ ac_configure_args0=; unset ac_configure_args0;}
1925{ ac_configure_args1=; unset ac_configure_args1;}
1926
1927# When interrupted or exit'd, cleanup temporary files, and complete
1928# config.log.  We remove comments because anyway the quotes in there
1929# would cause problems or look ugly.
1930# WARNING: Use '\'' to represent an apostrophe within the trap.
1931# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1932trap 'exit_status=$?
1933  # Sanitize IFS.
1934  IFS=" ""	$as_nl"
1935  # Save into config.log some information that might help in debugging.
1936  {
1937    echo
1938
1939    printf "%s\n" "## ---------------- ##
1940## Cache variables. ##
1941## ---------------- ##"
1942    echo
1943    # The following way of writing the cache mishandles newlines in values,
1944(
1945  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1946    eval ac_val=\$$ac_var
1947    case $ac_val in #(
1948    *${as_nl}*)
1949      case $ac_var in #(
1950      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1951printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1952      esac
1953      case $ac_var in #(
1954      _ | IFS | as_nl) ;; #(
1955      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1956      *) { eval $ac_var=; unset $ac_var;} ;;
1957      esac ;;
1958    esac
1959  done
1960  (set) 2>&1 |
1961    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1962    *${as_nl}ac_space=\ *)
1963      sed -n \
1964	"s/'\''/'\''\\\\'\'''\''/g;
1965	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1966      ;; #(
1967    *)
1968      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1969      ;;
1970    esac |
1971    sort
1972)
1973    echo
1974
1975    printf "%s\n" "## ----------------- ##
1976## Output variables. ##
1977## ----------------- ##"
1978    echo
1979    for ac_var in $ac_subst_vars
1980    do
1981      eval ac_val=\$$ac_var
1982      case $ac_val in
1983      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1984      esac
1985      printf "%s\n" "$ac_var='\''$ac_val'\''"
1986    done | sort
1987    echo
1988
1989    if test -n "$ac_subst_files"; then
1990      printf "%s\n" "## ------------------- ##
1991## File substitutions. ##
1992## ------------------- ##"
1993      echo
1994      for ac_var in $ac_subst_files
1995      do
1996	eval ac_val=\$$ac_var
1997	case $ac_val in
1998	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1999	esac
2000	printf "%s\n" "$ac_var='\''$ac_val'\''"
2001      done | sort
2002      echo
2003    fi
2004
2005    if test -s confdefs.h; then
2006      printf "%s\n" "## ----------- ##
2007## confdefs.h. ##
2008## ----------- ##"
2009      echo
2010      cat confdefs.h
2011      echo
2012    fi
2013    test "$ac_signal" != 0 &&
2014      printf "%s\n" "$as_me: caught signal $ac_signal"
2015    printf "%s\n" "$as_me: exit $exit_status"
2016  } >&5
2017  rm -f core *.core core.conftest.* &&
2018    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2019    exit $exit_status
2020' 0
2021for ac_signal in 1 2 13 15; do
2022  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2023done
2024ac_signal=0
2025
2026# confdefs.h avoids OS command line length limits that DEFS can exceed.
2027rm -f -r conftest* confdefs.h
2028
2029printf "%s\n" "/* confdefs.h */" > confdefs.h
2030
2031# Predefined preprocessor variables.
2032
2033printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2034
2035printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2036
2037printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2038
2039printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2040
2041printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2042
2043printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2044
2045
2046# Let the site file select an alternate cache file if it wants to.
2047# Prefer an explicitly selected file to automatically selected ones.
2048if test -n "$CONFIG_SITE"; then
2049  ac_site_files="$CONFIG_SITE"
2050elif test "x$prefix" != xNONE; then
2051  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2052else
2053  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2054fi
2055
2056for ac_site_file in $ac_site_files
2057do
2058  case $ac_site_file in #(
2059  */*) :
2060     ;; #(
2061  *) :
2062    ac_site_file=./$ac_site_file ;;
2063esac
2064  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2065    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2066printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2067    sed 's/^/| /' "$ac_site_file" >&5
2068    . "$ac_site_file" \
2069      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2070printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2071as_fn_error $? "failed to load site script $ac_site_file
2072See 'config.log' for more details" "$LINENO" 5; }
2073  fi
2074done
2075
2076if test -r "$cache_file"; then
2077  # Some versions of bash will fail to source /dev/null (special files
2078  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2079  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2080    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2081printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2082    case $cache_file in
2083      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2084      *)                      . "./$cache_file";;
2085    esac
2086  fi
2087else
2088  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2089printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2090  >$cache_file
2091fi
2092
2093# Test code for whether the C compiler supports C89 (global declarations)
2094ac_c_conftest_c89_globals='
2095/* Does the compiler advertise C89 conformance?
2096   Do not test the value of __STDC__, because some compilers set it to 0
2097   while being otherwise adequately conformant. */
2098#if !defined __STDC__
2099# error "Compiler does not advertise C89 conformance"
2100#endif
2101
2102#include <stddef.h>
2103#include <stdarg.h>
2104struct stat;
2105/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2106struct buf { int x; };
2107struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2108static char *e (char **p, int i)
2109{
2110  return p[i];
2111}
2112static char *f (char * (*g) (char **, int), char **p, ...)
2113{
2114  char *s;
2115  va_list v;
2116  va_start (v,p);
2117  s = g (p, va_arg (v,int));
2118  va_end (v);
2119  return s;
2120}
2121
2122/* C89 style stringification. */
2123#define noexpand_stringify(a) #a
2124const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2125
2126/* C89 style token pasting.  Exercises some of the corner cases that
2127   e.g. old MSVC gets wrong, but not very hard. */
2128#define noexpand_concat(a,b) a##b
2129#define expand_concat(a,b) noexpand_concat(a,b)
2130extern int vA;
2131extern int vbee;
2132#define aye A
2133#define bee B
2134int *pvA = &expand_concat(v,aye);
2135int *pvbee = &noexpand_concat(v,bee);
2136
2137/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2138   function prototypes and stuff, but not \xHH hex character constants.
2139   These do not provoke an error unfortunately, instead are silently treated
2140   as an "x".  The following induces an error, until -std is added to get
2141   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2142   array size at least.  It is necessary to write \x00 == 0 to get something
2143   that is true only with -std.  */
2144int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2145
2146/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2147   inside strings and character constants.  */
2148#define FOO(x) '\''x'\''
2149int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2150
2151int test (int i, double x);
2152struct s1 {int (*f) (int a);};
2153struct s2 {int (*f) (double a);};
2154int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2155               int, int);'
2156
2157# Test code for whether the C compiler supports C89 (body of main).
2158ac_c_conftest_c89_main='
2159ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2160'
2161
2162# Test code for whether the C compiler supports C99 (global declarations)
2163ac_c_conftest_c99_globals='
2164/* Does the compiler advertise C99 conformance? */
2165#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2166# error "Compiler does not advertise C99 conformance"
2167#endif
2168
2169// See if C++-style comments work.
2170
2171#include <stdbool.h>
2172extern int puts (const char *);
2173extern int printf (const char *, ...);
2174extern int dprintf (int, const char *, ...);
2175extern void *malloc (size_t);
2176extern void free (void *);
2177
2178// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2179// dprintf is used instead of fprintf to avoid needing to declare
2180// FILE and stderr.
2181#define debug(...) dprintf (2, __VA_ARGS__)
2182#define showlist(...) puts (#__VA_ARGS__)
2183#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2184static void
2185test_varargs_macros (void)
2186{
2187  int x = 1234;
2188  int y = 5678;
2189  debug ("Flag");
2190  debug ("X = %d\n", x);
2191  showlist (The first, second, and third items.);
2192  report (x>y, "x is %d but y is %d", x, y);
2193}
2194
2195// Check long long types.
2196#define BIG64 18446744073709551615ull
2197#define BIG32 4294967295ul
2198#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2199#if !BIG_OK
2200  #error "your preprocessor is broken"
2201#endif
2202#if BIG_OK
2203#else
2204  #error "your preprocessor is broken"
2205#endif
2206static long long int bignum = -9223372036854775807LL;
2207static unsigned long long int ubignum = BIG64;
2208
2209struct incomplete_array
2210{
2211  int datasize;
2212  double data[];
2213};
2214
2215struct named_init {
2216  int number;
2217  const wchar_t *name;
2218  double average;
2219};
2220
2221typedef const char *ccp;
2222
2223static inline int
2224test_restrict (ccp restrict text)
2225{
2226  // Iterate through items via the restricted pointer.
2227  // Also check for declarations in for loops.
2228  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2229    continue;
2230  return 0;
2231}
2232
2233// Check varargs and va_copy.
2234static bool
2235test_varargs (const char *format, ...)
2236{
2237  va_list args;
2238  va_start (args, format);
2239  va_list args_copy;
2240  va_copy (args_copy, args);
2241
2242  const char *str = "";
2243  int number = 0;
2244  float fnumber = 0;
2245
2246  while (*format)
2247    {
2248      switch (*format++)
2249	{
2250	case '\''s'\'': // string
2251	  str = va_arg (args_copy, const char *);
2252	  break;
2253	case '\''d'\'': // int
2254	  number = va_arg (args_copy, int);
2255	  break;
2256	case '\''f'\'': // float
2257	  fnumber = va_arg (args_copy, double);
2258	  break;
2259	default:
2260	  break;
2261	}
2262    }
2263  va_end (args_copy);
2264  va_end (args);
2265
2266  return *str && number && fnumber;
2267}
2268'
2269
2270# Test code for whether the C compiler supports C99 (body of main).
2271ac_c_conftest_c99_main='
2272  // Check bool.
2273  _Bool success = false;
2274  success |= (argc != 0);
2275
2276  // Check restrict.
2277  if (test_restrict ("String literal") == 0)
2278    success = true;
2279  char *restrict newvar = "Another string";
2280
2281  // Check varargs.
2282  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2283  test_varargs_macros ();
2284
2285  // Check flexible array members.
2286  struct incomplete_array *ia =
2287    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2288  ia->datasize = 10;
2289  for (int i = 0; i < ia->datasize; ++i)
2290    ia->data[i] = i * 1.234;
2291  // Work around memory leak warnings.
2292  free (ia);
2293
2294  // Check named initializers.
2295  struct named_init ni = {
2296    .number = 34,
2297    .name = L"Test wide string",
2298    .average = 543.34343,
2299  };
2300
2301  ni.number = 58;
2302
2303  int dynamic_array[ni.number];
2304  dynamic_array[0] = argv[0][0];
2305  dynamic_array[ni.number - 1] = 543;
2306
2307  // work around unused variable warnings
2308  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2309	 || dynamic_array[ni.number - 1] != 543);
2310'
2311
2312# Test code for whether the C compiler supports C11 (global declarations)
2313ac_c_conftest_c11_globals='
2314/* Does the compiler advertise C11 conformance? */
2315#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2316# error "Compiler does not advertise C11 conformance"
2317#endif
2318
2319// Check _Alignas.
2320char _Alignas (double) aligned_as_double;
2321char _Alignas (0) no_special_alignment;
2322extern char aligned_as_int;
2323char _Alignas (0) _Alignas (int) aligned_as_int;
2324
2325// Check _Alignof.
2326enum
2327{
2328  int_alignment = _Alignof (int),
2329  int_array_alignment = _Alignof (int[100]),
2330  char_alignment = _Alignof (char)
2331};
2332_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2333
2334// Check _Noreturn.
2335int _Noreturn does_not_return (void) { for (;;) continue; }
2336
2337// Check _Static_assert.
2338struct test_static_assert
2339{
2340  int x;
2341  _Static_assert (sizeof (int) <= sizeof (long int),
2342                  "_Static_assert does not work in struct");
2343  long int y;
2344};
2345
2346// Check UTF-8 literals.
2347#define u8 syntax error!
2348char const utf8_literal[] = u8"happens to be ASCII" "another string";
2349
2350// Check duplicate typedefs.
2351typedef long *long_ptr;
2352typedef long int *long_ptr;
2353typedef long_ptr long_ptr;
2354
2355// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2356struct anonymous
2357{
2358  union {
2359    struct { int i; int j; };
2360    struct { int k; long int l; } w;
2361  };
2362  int m;
2363} v1;
2364'
2365
2366# Test code for whether the C compiler supports C11 (body of main).
2367ac_c_conftest_c11_main='
2368  _Static_assert ((offsetof (struct anonymous, i)
2369		   == offsetof (struct anonymous, w.k)),
2370		  "Anonymous union alignment botch");
2371  v1.i = 2;
2372  v1.w.k = 5;
2373  ok |= v1.i != 5;
2374'
2375
2376# Test code for whether the C compiler supports C11 (complete).
2377ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2378${ac_c_conftest_c99_globals}
2379${ac_c_conftest_c11_globals}
2380
2381int
2382main (int argc, char **argv)
2383{
2384  int ok = 0;
2385  ${ac_c_conftest_c89_main}
2386  ${ac_c_conftest_c99_main}
2387  ${ac_c_conftest_c11_main}
2388  return ok;
2389}
2390"
2391
2392# Test code for whether the C compiler supports C99 (complete).
2393ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2394${ac_c_conftest_c99_globals}
2395
2396int
2397main (int argc, char **argv)
2398{
2399  int ok = 0;
2400  ${ac_c_conftest_c89_main}
2401  ${ac_c_conftest_c99_main}
2402  return ok;
2403}
2404"
2405
2406# Test code for whether the C compiler supports C89 (complete).
2407ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2408
2409int
2410main (int argc, char **argv)
2411{
2412  int ok = 0;
2413  ${ac_c_conftest_c89_main}
2414  return ok;
2415}
2416"
2417
2418as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2419as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2420as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2421as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2422as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2423as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2424as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2425as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2426as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2427
2428# Auxiliary files required by this configure script.
2429ac_aux_files="ar-lib config.guess config.sub compile missing install-sh"
2430
2431# Locations in which to look for auxiliary files.
2432ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2433
2434# Search for a directory containing all of the required auxiliary files,
2435# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2436# If we don't find one directory that contains all the files we need,
2437# we report the set of missing files from the *first* directory in
2438# $ac_aux_dir_candidates and give up.
2439ac_missing_aux_files=""
2440ac_first_candidate=:
2441printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443as_found=false
2444for as_dir in $ac_aux_dir_candidates
2445do
2446  IFS=$as_save_IFS
2447  case $as_dir in #(((
2448    '') as_dir=./ ;;
2449    */) ;;
2450    *) as_dir=$as_dir/ ;;
2451  esac
2452  as_found=:
2453
2454  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2455  ac_aux_dir_found=yes
2456  ac_install_sh=
2457  for ac_aux in $ac_aux_files
2458  do
2459    # As a special case, if "install-sh" is required, that requirement
2460    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2461    # and $ac_install_sh is set appropriately for whichever one is found.
2462    if test x"$ac_aux" = x"install-sh"
2463    then
2464      if test -f "${as_dir}install-sh"; then
2465        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2466        ac_install_sh="${as_dir}install-sh -c"
2467      elif test -f "${as_dir}install.sh"; then
2468        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2469        ac_install_sh="${as_dir}install.sh -c"
2470      elif test -f "${as_dir}shtool"; then
2471        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2472        ac_install_sh="${as_dir}shtool install -c"
2473      else
2474        ac_aux_dir_found=no
2475        if $ac_first_candidate; then
2476          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2477        else
2478          break
2479        fi
2480      fi
2481    else
2482      if test -f "${as_dir}${ac_aux}"; then
2483        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2484      else
2485        ac_aux_dir_found=no
2486        if $ac_first_candidate; then
2487          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2488        else
2489          break
2490        fi
2491      fi
2492    fi
2493  done
2494  if test "$ac_aux_dir_found" = yes; then
2495    ac_aux_dir="$as_dir"
2496    break
2497  fi
2498  ac_first_candidate=false
2499
2500  as_found=false
2501done
2502IFS=$as_save_IFS
2503if $as_found
2504then :
2505
2506else case e in #(
2507  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2508esac
2509fi
2510
2511
2512# These three variables are undocumented and unsupported,
2513# and are intended to be withdrawn in a future Autoconf release.
2514# They can cause serious problems if a builder's source tree is in a directory
2515# whose full name contains unusual characters.
2516if test -f "${ac_aux_dir}config.guess"; then
2517  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2518fi
2519if test -f "${ac_aux_dir}config.sub"; then
2520  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2521fi
2522if test -f "$ac_aux_dir/configure"; then
2523  ac_configure="$SHELL ${ac_aux_dir}configure"
2524fi
2525
2526# Check that the precious variables saved in the cache have kept the same
2527# value.
2528ac_cache_corrupted=false
2529for ac_var in $ac_precious_vars; do
2530  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2531  eval ac_new_set=\$ac_env_${ac_var}_set
2532  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2533  eval ac_new_val=\$ac_env_${ac_var}_value
2534  case $ac_old_set,$ac_new_set in
2535    set,)
2536      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2537printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2538      ac_cache_corrupted=: ;;
2539    ,set)
2540      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2541printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2542      ac_cache_corrupted=: ;;
2543    ,);;
2544    *)
2545      if test "x$ac_old_val" != "x$ac_new_val"; then
2546	# differences in whitespace do not lead to failure.
2547	ac_old_val_w=`echo x $ac_old_val`
2548	ac_new_val_w=`echo x $ac_new_val`
2549	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2550	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2551printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2552	  ac_cache_corrupted=:
2553	else
2554	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2555printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2556	  eval $ac_var=\$ac_old_val
2557	fi
2558	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2559printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2560	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2561printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2562      fi;;
2563  esac
2564  # Pass precious variables to config.status.
2565  if test "$ac_new_set" = set; then
2566    case $ac_new_val in
2567    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2568    *) ac_arg=$ac_var=$ac_new_val ;;
2569    esac
2570    case " $ac_configure_args " in
2571      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2572      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2573    esac
2574  fi
2575done
2576if $ac_cache_corrupted; then
2577  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2578printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2579  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2580printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2581  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2582	    and start over" "$LINENO" 5
2583fi
2584## -------------------- ##
2585## Main body of script. ##
2586## -------------------- ##
2587
2588ac_ext=c
2589ac_cpp='$CPP $CPPFLAGS'
2590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2592ac_compiler_gnu=$ac_cv_c_compiler_gnu
2593
2594
2595am__api_version='1.16'
2596
2597
2598
2599  # Find a good install program.  We prefer a C program (faster),
2600# so one script is as good as another.  But avoid the broken or
2601# incompatible versions:
2602# SysV /etc/install, /usr/sbin/install
2603# SunOS /usr/etc/install
2604# IRIX /sbin/install
2605# AIX /bin/install
2606# AmigaOS /C/install, which installs bootblocks on floppy discs
2607# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2608# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2609# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2610# OS/2's system install, which has a completely different semantic
2611# ./install, which can be erroneously created by make from ./install.sh.
2612# Reject install programs that cannot install multiple files.
2613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2614printf %s "checking for a BSD-compatible install... " >&6; }
2615if test -z "$INSTALL"; then
2616if test ${ac_cv_path_install+y}
2617then :
2618  printf %s "(cached) " >&6
2619else case e in #(
2620  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621for as_dir in $PATH
2622do
2623  IFS=$as_save_IFS
2624  case $as_dir in #(((
2625    '') as_dir=./ ;;
2626    */) ;;
2627    *) as_dir=$as_dir/ ;;
2628  esac
2629    # Account for fact that we put trailing slashes in our PATH walk.
2630case $as_dir in #((
2631  ./ | /[cC]/* | \
2632  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2633  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2634  /usr/ucb/* ) ;;
2635  *)
2636    # OSF1 and SCO ODT 3.0 have their own names for install.
2637    # Don't use installbsd from OSF since it installs stuff as root
2638    # by default.
2639    for ac_prog in ginstall scoinst install; do
2640      for ac_exec_ext in '' $ac_executable_extensions; do
2641	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2642	  if test $ac_prog = install &&
2643	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2644	    # AIX install.  It has an incompatible calling convention.
2645	    :
2646	  elif test $ac_prog = install &&
2647	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2648	    # program-specific install script used by HP pwplus--don't use.
2649	    :
2650	  else
2651	    rm -rf conftest.one conftest.two conftest.dir
2652	    echo one > conftest.one
2653	    echo two > conftest.two
2654	    mkdir conftest.dir
2655	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2656	      test -s conftest.one && test -s conftest.two &&
2657	      test -s conftest.dir/conftest.one &&
2658	      test -s conftest.dir/conftest.two
2659	    then
2660	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2661	      break 3
2662	    fi
2663	  fi
2664	fi
2665      done
2666    done
2667    ;;
2668esac
2669
2670  done
2671IFS=$as_save_IFS
2672
2673rm -rf conftest.one conftest.two conftest.dir
2674 ;;
2675esac
2676fi
2677  if test ${ac_cv_path_install+y}; then
2678    INSTALL=$ac_cv_path_install
2679  else
2680    # As a last resort, use the slow shell script.  Don't cache a
2681    # value for INSTALL within a source directory, because that will
2682    # break other packages using the cache if that directory is
2683    # removed, or if the value is a relative name.
2684    INSTALL=$ac_install_sh
2685  fi
2686fi
2687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2688printf "%s\n" "$INSTALL" >&6; }
2689
2690# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2691# It thinks the first close brace ends the variable substitution.
2692test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2693
2694test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2695
2696test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2697
2698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2699printf %s "checking whether build environment is sane... " >&6; }
2700# Reject unsafe characters in $srcdir or the absolute working directory
2701# name.  Accept space and tab only in the latter.
2702am_lf='
2703'
2704case `pwd` in
2705  *[\\\"\#\$\&\'\`$am_lf]*)
2706    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2707esac
2708case $srcdir in
2709  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2710    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2711esac
2712
2713# Do 'set' in a subshell so we don't clobber the current shell's
2714# arguments.  Must try -L first in case configure is actually a
2715# symlink; some systems play weird games with the mod time of symlinks
2716# (eg FreeBSD returns the mod time of the symlink's containing
2717# directory).
2718if (
2719   am_has_slept=no
2720   for am_try in 1 2; do
2721     echo "timestamp, slept: $am_has_slept" > conftest.file
2722     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2723     if test "$*" = "X"; then
2724	# -L didn't work.
2725	set X `ls -t "$srcdir/configure" conftest.file`
2726     fi
2727     if test "$*" != "X $srcdir/configure conftest.file" \
2728	&& test "$*" != "X conftest.file $srcdir/configure"; then
2729
2730	# If neither matched, then we have a broken ls.  This can happen
2731	# if, for instance, CONFIG_SHELL is bash and it inherits a
2732	# broken ls alias from the environment.  This has actually
2733	# happened.  Such a system could not be considered "sane".
2734	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2735  alias in your environment" "$LINENO" 5
2736     fi
2737     if test "$2" = conftest.file || test $am_try -eq 2; then
2738       break
2739     fi
2740     # Just in case.
2741     sleep 1
2742     am_has_slept=yes
2743   done
2744   test "$2" = conftest.file
2745   )
2746then
2747   # Ok.
2748   :
2749else
2750   as_fn_error $? "newly created file is older than distributed files!
2751Check your system clock" "$LINENO" 5
2752fi
2753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2754printf "%s\n" "yes" >&6; }
2755# If we didn't sleep, we still need to ensure time stamps of config.status and
2756# generated files are strictly newer.
2757am_sleep_pid=
2758if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2759  ( sleep 1 ) &
2760  am_sleep_pid=$!
2761fi
2762
2763rm -f conftest.file
2764
2765test "$program_prefix" != NONE &&
2766  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2767# Use a double $ so make ignores it.
2768test "$program_suffix" != NONE &&
2769  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2770# Double any \ or $.
2771# By default was 's,x,x', remove it if useless.
2772ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2773program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2774
2775
2776# Expand $ac_aux_dir to an absolute path.
2777am_aux_dir=`cd "$ac_aux_dir" && pwd`
2778
2779
2780  if test x"${MISSING+set}" != xset; then
2781  MISSING="\${SHELL} '$am_aux_dir/missing'"
2782fi
2783# Use eval to expand $SHELL
2784if eval "$MISSING --is-lightweight"; then
2785  am_missing_run="$MISSING "
2786else
2787  am_missing_run=
2788  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2789printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2790fi
2791
2792if test x"${install_sh+set}" != xset; then
2793  case $am_aux_dir in
2794  *\ * | *\	*)
2795    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2796  *)
2797    install_sh="\${SHELL} $am_aux_dir/install-sh"
2798  esac
2799fi
2800
2801# Installed binaries are usually stripped using 'strip' when the user
2802# run "make install-strip".  However 'strip' might not be the right
2803# tool to use in cross-compilation environments, therefore Automake
2804# will honor the 'STRIP' environment variable to overrule this program.
2805if test "$cross_compiling" != no; then
2806  if test -n "$ac_tool_prefix"; then
2807  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2808set dummy ${ac_tool_prefix}strip; ac_word=$2
2809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810printf %s "checking for $ac_word... " >&6; }
2811if test ${ac_cv_prog_STRIP+y}
2812then :
2813  printf %s "(cached) " >&6
2814else case e in #(
2815  e) if test -n "$STRIP"; then
2816  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2817else
2818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819for as_dir in $PATH
2820do
2821  IFS=$as_save_IFS
2822  case $as_dir in #(((
2823    '') as_dir=./ ;;
2824    */) ;;
2825    *) as_dir=$as_dir/ ;;
2826  esac
2827    for ac_exec_ext in '' $ac_executable_extensions; do
2828  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2829    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2830    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2831    break 2
2832  fi
2833done
2834  done
2835IFS=$as_save_IFS
2836
2837fi ;;
2838esac
2839fi
2840STRIP=$ac_cv_prog_STRIP
2841if test -n "$STRIP"; then
2842  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2843printf "%s\n" "$STRIP" >&6; }
2844else
2845  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2846printf "%s\n" "no" >&6; }
2847fi
2848
2849
2850fi
2851if test -z "$ac_cv_prog_STRIP"; then
2852  ac_ct_STRIP=$STRIP
2853  # Extract the first word of "strip", so it can be a program name with args.
2854set dummy strip; ac_word=$2
2855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2856printf %s "checking for $ac_word... " >&6; }
2857if test ${ac_cv_prog_ac_ct_STRIP+y}
2858then :
2859  printf %s "(cached) " >&6
2860else case e in #(
2861  e) if test -n "$ac_ct_STRIP"; then
2862  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2863else
2864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865for as_dir in $PATH
2866do
2867  IFS=$as_save_IFS
2868  case $as_dir in #(((
2869    '') as_dir=./ ;;
2870    */) ;;
2871    *) as_dir=$as_dir/ ;;
2872  esac
2873    for ac_exec_ext in '' $ac_executable_extensions; do
2874  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2875    ac_cv_prog_ac_ct_STRIP="strip"
2876    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2877    break 2
2878  fi
2879done
2880  done
2881IFS=$as_save_IFS
2882
2883fi ;;
2884esac
2885fi
2886ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2887if test -n "$ac_ct_STRIP"; then
2888  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2889printf "%s\n" "$ac_ct_STRIP" >&6; }
2890else
2891  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892printf "%s\n" "no" >&6; }
2893fi
2894
2895  if test "x$ac_ct_STRIP" = x; then
2896    STRIP=":"
2897  else
2898    case $cross_compiling:$ac_tool_warned in
2899yes:)
2900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2901printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2902ac_tool_warned=yes ;;
2903esac
2904    STRIP=$ac_ct_STRIP
2905  fi
2906else
2907  STRIP="$ac_cv_prog_STRIP"
2908fi
2909
2910fi
2911INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2912
2913
2914  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2915printf %s "checking for a race-free mkdir -p... " >&6; }
2916if test -z "$MKDIR_P"; then
2917  if test ${ac_cv_path_mkdir+y}
2918then :
2919  printf %s "(cached) " >&6
2920else case e in #(
2921  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2923do
2924  IFS=$as_save_IFS
2925  case $as_dir in #(((
2926    '') as_dir=./ ;;
2927    */) ;;
2928    *) as_dir=$as_dir/ ;;
2929  esac
2930    for ac_prog in mkdir gmkdir; do
2931	 for ac_exec_ext in '' $ac_executable_extensions; do
2932	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2933	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2934	     'mkdir ('*'coreutils) '* | \
2935	     *'BusyBox '* | \
2936	     'mkdir (fileutils) '4.1*)
2937	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2938	       break 3;;
2939	   esac
2940	 done
2941       done
2942  done
2943IFS=$as_save_IFS
2944 ;;
2945esac
2946fi
2947
2948  test -d ./--version && rmdir ./--version
2949  if test ${ac_cv_path_mkdir+y}; then
2950    MKDIR_P="$ac_cv_path_mkdir -p"
2951  else
2952    # As a last resort, use plain mkdir -p,
2953    # in the hope it doesn't have the bugs of ancient mkdir.
2954    MKDIR_P='mkdir -p'
2955  fi
2956fi
2957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2958printf "%s\n" "$MKDIR_P" >&6; }
2959
2960for ac_prog in gawk mawk nawk awk
2961do
2962  # Extract the first word of "$ac_prog", so it can be a program name with args.
2963set dummy $ac_prog; ac_word=$2
2964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965printf %s "checking for $ac_word... " >&6; }
2966if test ${ac_cv_prog_AWK+y}
2967then :
2968  printf %s "(cached) " >&6
2969else case e in #(
2970  e) if test -n "$AWK"; then
2971  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2972else
2973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974for as_dir in $PATH
2975do
2976  IFS=$as_save_IFS
2977  case $as_dir in #(((
2978    '') as_dir=./ ;;
2979    */) ;;
2980    *) as_dir=$as_dir/ ;;
2981  esac
2982    for ac_exec_ext in '' $ac_executable_extensions; do
2983  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2984    ac_cv_prog_AWK="$ac_prog"
2985    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2986    break 2
2987  fi
2988done
2989  done
2990IFS=$as_save_IFS
2991
2992fi ;;
2993esac
2994fi
2995AWK=$ac_cv_prog_AWK
2996if test -n "$AWK"; then
2997  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2998printf "%s\n" "$AWK" >&6; }
2999else
3000  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001printf "%s\n" "no" >&6; }
3002fi
3003
3004
3005  test -n "$AWK" && break
3006done
3007
3008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3009printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3010set x ${MAKE-make}
3011ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3012if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3013then :
3014  printf %s "(cached) " >&6
3015else case e in #(
3016  e) cat >conftest.make <<\_ACEOF
3017SHELL = /bin/sh
3018all:
3019	@echo '@@@%%%=$(MAKE)=@@@%%%'
3020_ACEOF
3021# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3022case `${MAKE-make} -f conftest.make 2>/dev/null` in
3023  *@@@%%%=?*=@@@%%%*)
3024    eval ac_cv_prog_make_${ac_make}_set=yes;;
3025  *)
3026    eval ac_cv_prog_make_${ac_make}_set=no;;
3027esac
3028rm -f conftest.make ;;
3029esac
3030fi
3031if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3032  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3033printf "%s\n" "yes" >&6; }
3034  SET_MAKE=
3035else
3036  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037printf "%s\n" "no" >&6; }
3038  SET_MAKE="MAKE=${MAKE-make}"
3039fi
3040
3041rm -rf .tst 2>/dev/null
3042mkdir .tst 2>/dev/null
3043if test -d .tst; then
3044  am__leading_dot=.
3045else
3046  am__leading_dot=_
3047fi
3048rmdir .tst 2>/dev/null
3049
3050# Check whether --enable-silent-rules was given.
3051if test ${enable_silent_rules+y}
3052then :
3053  enableval=$enable_silent_rules;
3054fi
3055
3056case $enable_silent_rules in # (((
3057  yes) AM_DEFAULT_VERBOSITY=0;;
3058   no) AM_DEFAULT_VERBOSITY=1;;
3059    *) AM_DEFAULT_VERBOSITY=1;;
3060esac
3061am_make=${MAKE-make}
3062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3063printf %s "checking whether $am_make supports nested variables... " >&6; }
3064if test ${am_cv_make_support_nested_variables+y}
3065then :
3066  printf %s "(cached) " >&6
3067else case e in #(
3068  e) if printf "%s\n" 'TRUE=$(BAR$(V))
3069BAR0=false
3070BAR1=true
3071V=1
3072am__doit:
3073	@$(TRUE)
3074.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3075  am_cv_make_support_nested_variables=yes
3076else
3077  am_cv_make_support_nested_variables=no
3078fi ;;
3079esac
3080fi
3081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3082printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3083if test $am_cv_make_support_nested_variables = yes; then
3084    AM_V='$(V)'
3085  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3086else
3087  AM_V=$AM_DEFAULT_VERBOSITY
3088  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3089fi
3090AM_BACKSLASH='\'
3091
3092if test "`cd $srcdir && pwd`" != "`pwd`"; then
3093  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3094  # is not polluted with repeated "-I."
3095  am__isrc=' -I$(srcdir)'
3096  # test to see if srcdir already configured
3097  if test -f $srcdir/config.status; then
3098    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3099  fi
3100fi
3101
3102# test whether we have cygpath
3103if test -z "$CYGPATH_W"; then
3104  if (cygpath --version) >/dev/null 2>/dev/null; then
3105    CYGPATH_W='cygpath -w'
3106  else
3107    CYGPATH_W=echo
3108  fi
3109fi
3110
3111
3112# Define the identity of the package.
3113 PACKAGE='xedit'
3114 VERSION='1.2.4'
3115
3116
3117printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3118
3119
3120printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3121
3122# Some tools Automake needs.
3123
3124ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3125
3126
3127AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3128
3129
3130AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3131
3132
3133AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3134
3135
3136MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3137
3138# For better backward compatibility.  To be removed once Automake 1.9.x
3139# dies out for good.  For more background, see:
3140# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3141# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3142mkdir_p='$(MKDIR_P)'
3143
3144# We need awk for the "check" target (and possibly the TAP driver).  The
3145# system "awk" is bad on some platforms.
3146# Always define AMTAR for backward compatibility.  Yes, it's still used
3147# in the wild :-(  We should find a proper way to deprecate it ...
3148AMTAR='$${TAR-tar}'
3149
3150
3151# We'll loop over all known methods to create a tar archive until one works.
3152_am_tools='gnutar  pax cpio none'
3153
3154am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3155
3156
3157
3158
3159
3160# Variables for tags utilities; see am/tags.am
3161if test -z "$CTAGS"; then
3162  CTAGS=ctags
3163fi
3164
3165if test -z "$ETAGS"; then
3166  ETAGS=etags
3167fi
3168
3169if test -z "$CSCOPE"; then
3170  CSCOPE=cscope
3171fi
3172
3173
3174
3175# POSIX will say in a future version that running "rm -f" with no argument
3176# is OK; and we want to be able to make that assumption in our Makefile
3177# recipes.  So use an aggressive probe to check that the usage we want is
3178# actually supported "in the wild" to an acceptable degree.
3179# See automake bug#10828.
3180# To make any issue more visible, cause the running configure to be aborted
3181# by default if the 'rm' program in use doesn't match our expectations; the
3182# user can still override this though.
3183if rm -f && rm -fr && rm -rf; then : OK; else
3184  cat >&2 <<'END'
3185Oops!
3186
3187Your 'rm' program seems unable to run without file operands specified
3188on the command line, even when the '-f' option is present.  This is contrary
3189to the behaviour of most rm programs out there, and not conforming with
3190the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3191
3192Please tell bug-automake@gnu.org about your system, including the value
3193of your $PATH and any error possibly output before this message.  This
3194can help us improve future automake versions.
3195
3196END
3197  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3198    echo 'Configuration will proceed anyway, since you have set the' >&2
3199    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3200    echo >&2
3201  else
3202    cat >&2 <<'END'
3203Aborting the configuration process, to ensure you take notice of the issue.
3204
3205You can download and install GNU coreutils to get an 'rm' implementation
3206that behaves properly: <https://www.gnu.org/software/coreutils/>.
3207
3208If you want to complete the configuration process using your problematic
3209'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3210to "yes", and re-run configure.
3211
3212END
3213    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3214  fi
3215fi
3216
3217
3218# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239DEPDIR="${am__leading_dot}deps"
3240
3241ac_config_commands="$ac_config_commands depfiles"
3242
3243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3244printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3245cat > confinc.mk << 'END'
3246am__doit:
3247	@echo this is the am__doit target >confinc.out
3248.PHONY: am__doit
3249END
3250am__include="#"
3251am__quote=
3252# BSD make does it like this.
3253echo '.include "confinc.mk" # ignored' > confmf.BSD
3254# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3255echo 'include confinc.mk # ignored' > confmf.GNU
3256_am_result=no
3257for s in GNU BSD; do
3258  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3259   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3260   ac_status=$?
3261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262   (exit $ac_status); }
3263  case $?:`cat confinc.out 2>/dev/null` in #(
3264  '0:this is the am__doit target') :
3265    case $s in #(
3266  BSD) :
3267    am__include='.include' am__quote='"' ;; #(
3268  *) :
3269    am__include='include' am__quote='' ;;
3270esac ;; #(
3271  *) :
3272     ;;
3273esac
3274  if test "$am__include" != "#"; then
3275    _am_result="yes ($s style)"
3276    break
3277  fi
3278done
3279rm -f confinc.* confmf.*
3280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3281printf "%s\n" "${_am_result}" >&6; }
3282
3283# Check whether --enable-dependency-tracking was given.
3284if test ${enable_dependency_tracking+y}
3285then :
3286  enableval=$enable_dependency_tracking;
3287fi
3288
3289if test "x$enable_dependency_tracking" != xno; then
3290  am_depcomp="$ac_aux_dir/depcomp"
3291  AMDEPBACKSLASH='\'
3292  am__nodep='_no'
3293fi
3294 if test "x$enable_dependency_tracking" != xno; then
3295  AMDEP_TRUE=
3296  AMDEP_FALSE='#'
3297else
3298  AMDEP_TRUE='#'
3299  AMDEP_FALSE=
3300fi
3301
3302
3303ac_ext=c
3304ac_cpp='$CPP $CPPFLAGS'
3305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3307ac_compiler_gnu=$ac_cv_c_compiler_gnu
3308if test -n "$ac_tool_prefix"; then
3309  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3310set dummy ${ac_tool_prefix}gcc; ac_word=$2
3311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312printf %s "checking for $ac_word... " >&6; }
3313if test ${ac_cv_prog_CC+y}
3314then :
3315  printf %s "(cached) " >&6
3316else case e in #(
3317  e) if test -n "$CC"; then
3318  ac_cv_prog_CC="$CC" # Let the user override the test.
3319else
3320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321for as_dir in $PATH
3322do
3323  IFS=$as_save_IFS
3324  case $as_dir in #(((
3325    '') as_dir=./ ;;
3326    */) ;;
3327    *) as_dir=$as_dir/ ;;
3328  esac
3329    for ac_exec_ext in '' $ac_executable_extensions; do
3330  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3331    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3332    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3333    break 2
3334  fi
3335done
3336  done
3337IFS=$as_save_IFS
3338
3339fi ;;
3340esac
3341fi
3342CC=$ac_cv_prog_CC
3343if test -n "$CC"; then
3344  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3345printf "%s\n" "$CC" >&6; }
3346else
3347  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348printf "%s\n" "no" >&6; }
3349fi
3350
3351
3352fi
3353if test -z "$ac_cv_prog_CC"; then
3354  ac_ct_CC=$CC
3355  # Extract the first word of "gcc", so it can be a program name with args.
3356set dummy gcc; ac_word=$2
3357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3358printf %s "checking for $ac_word... " >&6; }
3359if test ${ac_cv_prog_ac_ct_CC+y}
3360then :
3361  printf %s "(cached) " >&6
3362else case e in #(
3363  e) if test -n "$ac_ct_CC"; then
3364  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3365else
3366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367for as_dir in $PATH
3368do
3369  IFS=$as_save_IFS
3370  case $as_dir in #(((
3371    '') as_dir=./ ;;
3372    */) ;;
3373    *) as_dir=$as_dir/ ;;
3374  esac
3375    for ac_exec_ext in '' $ac_executable_extensions; do
3376  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3377    ac_cv_prog_ac_ct_CC="gcc"
3378    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3379    break 2
3380  fi
3381done
3382  done
3383IFS=$as_save_IFS
3384
3385fi ;;
3386esac
3387fi
3388ac_ct_CC=$ac_cv_prog_ac_ct_CC
3389if test -n "$ac_ct_CC"; then
3390  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3391printf "%s\n" "$ac_ct_CC" >&6; }
3392else
3393  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3394printf "%s\n" "no" >&6; }
3395fi
3396
3397  if test "x$ac_ct_CC" = x; then
3398    CC=""
3399  else
3400    case $cross_compiling:$ac_tool_warned in
3401yes:)
3402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3403printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3404ac_tool_warned=yes ;;
3405esac
3406    CC=$ac_ct_CC
3407  fi
3408else
3409  CC="$ac_cv_prog_CC"
3410fi
3411
3412if test -z "$CC"; then
3413          if test -n "$ac_tool_prefix"; then
3414    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3415set dummy ${ac_tool_prefix}cc; ac_word=$2
3416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417printf %s "checking for $ac_word... " >&6; }
3418if test ${ac_cv_prog_CC+y}
3419then :
3420  printf %s "(cached) " >&6
3421else case e in #(
3422  e) if test -n "$CC"; then
3423  ac_cv_prog_CC="$CC" # Let the user override the test.
3424else
3425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426for as_dir in $PATH
3427do
3428  IFS=$as_save_IFS
3429  case $as_dir in #(((
3430    '') as_dir=./ ;;
3431    */) ;;
3432    *) as_dir=$as_dir/ ;;
3433  esac
3434    for ac_exec_ext in '' $ac_executable_extensions; do
3435  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3436    ac_cv_prog_CC="${ac_tool_prefix}cc"
3437    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3438    break 2
3439  fi
3440done
3441  done
3442IFS=$as_save_IFS
3443
3444fi ;;
3445esac
3446fi
3447CC=$ac_cv_prog_CC
3448if test -n "$CC"; then
3449  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3450printf "%s\n" "$CC" >&6; }
3451else
3452  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453printf "%s\n" "no" >&6; }
3454fi
3455
3456
3457  fi
3458fi
3459if test -z "$CC"; then
3460  # Extract the first word of "cc", so it can be a program name with args.
3461set dummy cc; ac_word=$2
3462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463printf %s "checking for $ac_word... " >&6; }
3464if test ${ac_cv_prog_CC+y}
3465then :
3466  printf %s "(cached) " >&6
3467else case e in #(
3468  e) if test -n "$CC"; then
3469  ac_cv_prog_CC="$CC" # Let the user override the test.
3470else
3471  ac_prog_rejected=no
3472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473for as_dir in $PATH
3474do
3475  IFS=$as_save_IFS
3476  case $as_dir in #(((
3477    '') as_dir=./ ;;
3478    */) ;;
3479    *) as_dir=$as_dir/ ;;
3480  esac
3481    for ac_exec_ext in '' $ac_executable_extensions; do
3482  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3483    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3484       ac_prog_rejected=yes
3485       continue
3486     fi
3487    ac_cv_prog_CC="cc"
3488    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3489    break 2
3490  fi
3491done
3492  done
3493IFS=$as_save_IFS
3494
3495if test $ac_prog_rejected = yes; then
3496  # We found a bogon in the path, so make sure we never use it.
3497  set dummy $ac_cv_prog_CC
3498  shift
3499  if test $# != 0; then
3500    # We chose a different compiler from the bogus one.
3501    # However, it has the same basename, so the bogon will be chosen
3502    # first if we set CC to just the basename; use the full file name.
3503    shift
3504    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3505  fi
3506fi
3507fi ;;
3508esac
3509fi
3510CC=$ac_cv_prog_CC
3511if test -n "$CC"; then
3512  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3513printf "%s\n" "$CC" >&6; }
3514else
3515  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3516printf "%s\n" "no" >&6; }
3517fi
3518
3519
3520fi
3521if test -z "$CC"; then
3522  if test -n "$ac_tool_prefix"; then
3523  for ac_prog in cl.exe
3524  do
3525    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3526set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3528printf %s "checking for $ac_word... " >&6; }
3529if test ${ac_cv_prog_CC+y}
3530then :
3531  printf %s "(cached) " >&6
3532else case e in #(
3533  e) if test -n "$CC"; then
3534  ac_cv_prog_CC="$CC" # Let the user override the test.
3535else
3536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537for as_dir in $PATH
3538do
3539  IFS=$as_save_IFS
3540  case $as_dir in #(((
3541    '') as_dir=./ ;;
3542    */) ;;
3543    *) as_dir=$as_dir/ ;;
3544  esac
3545    for ac_exec_ext in '' $ac_executable_extensions; do
3546  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3547    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3548    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3549    break 2
3550  fi
3551done
3552  done
3553IFS=$as_save_IFS
3554
3555fi ;;
3556esac
3557fi
3558CC=$ac_cv_prog_CC
3559if test -n "$CC"; then
3560  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3561printf "%s\n" "$CC" >&6; }
3562else
3563  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564printf "%s\n" "no" >&6; }
3565fi
3566
3567
3568    test -n "$CC" && break
3569  done
3570fi
3571if test -z "$CC"; then
3572  ac_ct_CC=$CC
3573  for ac_prog in cl.exe
3574do
3575  # Extract the first word of "$ac_prog", so it can be a program name with args.
3576set dummy $ac_prog; ac_word=$2
3577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578printf %s "checking for $ac_word... " >&6; }
3579if test ${ac_cv_prog_ac_ct_CC+y}
3580then :
3581  printf %s "(cached) " >&6
3582else case e in #(
3583  e) if test -n "$ac_ct_CC"; then
3584  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3585else
3586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587for as_dir in $PATH
3588do
3589  IFS=$as_save_IFS
3590  case $as_dir in #(((
3591    '') as_dir=./ ;;
3592    */) ;;
3593    *) as_dir=$as_dir/ ;;
3594  esac
3595    for ac_exec_ext in '' $ac_executable_extensions; do
3596  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3597    ac_cv_prog_ac_ct_CC="$ac_prog"
3598    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3599    break 2
3600  fi
3601done
3602  done
3603IFS=$as_save_IFS
3604
3605fi ;;
3606esac
3607fi
3608ac_ct_CC=$ac_cv_prog_ac_ct_CC
3609if test -n "$ac_ct_CC"; then
3610  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3611printf "%s\n" "$ac_ct_CC" >&6; }
3612else
3613  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614printf "%s\n" "no" >&6; }
3615fi
3616
3617
3618  test -n "$ac_ct_CC" && break
3619done
3620
3621  if test "x$ac_ct_CC" = x; then
3622    CC=""
3623  else
3624    case $cross_compiling:$ac_tool_warned in
3625yes:)
3626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3627printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3628ac_tool_warned=yes ;;
3629esac
3630    CC=$ac_ct_CC
3631  fi
3632fi
3633
3634fi
3635if test -z "$CC"; then
3636  if test -n "$ac_tool_prefix"; then
3637  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3638set dummy ${ac_tool_prefix}clang; ac_word=$2
3639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3640printf %s "checking for $ac_word... " >&6; }
3641if test ${ac_cv_prog_CC+y}
3642then :
3643  printf %s "(cached) " >&6
3644else case e in #(
3645  e) if test -n "$CC"; then
3646  ac_cv_prog_CC="$CC" # Let the user override the test.
3647else
3648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649for as_dir in $PATH
3650do
3651  IFS=$as_save_IFS
3652  case $as_dir in #(((
3653    '') as_dir=./ ;;
3654    */) ;;
3655    *) as_dir=$as_dir/ ;;
3656  esac
3657    for ac_exec_ext in '' $ac_executable_extensions; do
3658  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3659    ac_cv_prog_CC="${ac_tool_prefix}clang"
3660    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3661    break 2
3662  fi
3663done
3664  done
3665IFS=$as_save_IFS
3666
3667fi ;;
3668esac
3669fi
3670CC=$ac_cv_prog_CC
3671if test -n "$CC"; then
3672  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3673printf "%s\n" "$CC" >&6; }
3674else
3675  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3676printf "%s\n" "no" >&6; }
3677fi
3678
3679
3680fi
3681if test -z "$ac_cv_prog_CC"; then
3682  ac_ct_CC=$CC
3683  # Extract the first word of "clang", so it can be a program name with args.
3684set dummy clang; ac_word=$2
3685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3686printf %s "checking for $ac_word... " >&6; }
3687if test ${ac_cv_prog_ac_ct_CC+y}
3688then :
3689  printf %s "(cached) " >&6
3690else case e in #(
3691  e) if test -n "$ac_ct_CC"; then
3692  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3693else
3694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695for as_dir in $PATH
3696do
3697  IFS=$as_save_IFS
3698  case $as_dir in #(((
3699    '') as_dir=./ ;;
3700    */) ;;
3701    *) as_dir=$as_dir/ ;;
3702  esac
3703    for ac_exec_ext in '' $ac_executable_extensions; do
3704  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3705    ac_cv_prog_ac_ct_CC="clang"
3706    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3707    break 2
3708  fi
3709done
3710  done
3711IFS=$as_save_IFS
3712
3713fi ;;
3714esac
3715fi
3716ac_ct_CC=$ac_cv_prog_ac_ct_CC
3717if test -n "$ac_ct_CC"; then
3718  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3719printf "%s\n" "$ac_ct_CC" >&6; }
3720else
3721  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3722printf "%s\n" "no" >&6; }
3723fi
3724
3725  if test "x$ac_ct_CC" = x; then
3726    CC=""
3727  else
3728    case $cross_compiling:$ac_tool_warned in
3729yes:)
3730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3731printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3732ac_tool_warned=yes ;;
3733esac
3734    CC=$ac_ct_CC
3735  fi
3736else
3737  CC="$ac_cv_prog_CC"
3738fi
3739
3740fi
3741
3742
3743test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3744printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3745as_fn_error $? "no acceptable C compiler found in \$PATH
3746See 'config.log' for more details" "$LINENO" 5; }
3747
3748# Provide some information about the compiler.
3749printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3750set X $ac_compile
3751ac_compiler=$2
3752for ac_option in --version -v -V -qversion -version; do
3753  { { ac_try="$ac_compiler $ac_option >&5"
3754case "(($ac_try" in
3755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756  *) ac_try_echo=$ac_try;;
3757esac
3758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3759printf "%s\n" "$ac_try_echo"; } >&5
3760  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3761  ac_status=$?
3762  if test -s conftest.err; then
3763    sed '10a\
3764... rest of stderr output deleted ...
3765         10q' conftest.err >conftest.er1
3766    cat conftest.er1 >&5
3767  fi
3768  rm -f conftest.er1 conftest.err
3769  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3770  test $ac_status = 0; }
3771done
3772
3773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774/* end confdefs.h.  */
3775
3776int
3777main (void)
3778{
3779
3780  ;
3781  return 0;
3782}
3783_ACEOF
3784ac_clean_files_save=$ac_clean_files
3785ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3786# Try to create an executable without -o first, disregard a.out.
3787# It will help us diagnose broken compilers, and finding out an intuition
3788# of exeext.
3789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3790printf %s "checking whether the C compiler works... " >&6; }
3791ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3792
3793# The possible output files:
3794ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3795
3796ac_rmfiles=
3797for ac_file in $ac_files
3798do
3799  case $ac_file in
3800    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3801    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3802  esac
3803done
3804rm -f $ac_rmfiles
3805
3806if { { ac_try="$ac_link_default"
3807case "(($ac_try" in
3808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3809  *) ac_try_echo=$ac_try;;
3810esac
3811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3812printf "%s\n" "$ac_try_echo"; } >&5
3813  (eval "$ac_link_default") 2>&5
3814  ac_status=$?
3815  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3816  test $ac_status = 0; }
3817then :
3818  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3819# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3820# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3821# so that the user can short-circuit this test for compilers unknown to
3822# Autoconf.
3823for ac_file in $ac_files ''
3824do
3825  test -f "$ac_file" || continue
3826  case $ac_file in
3827    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3828	;;
3829    [ab].out )
3830	# We found the default executable, but exeext='' is most
3831	# certainly right.
3832	break;;
3833    *.* )
3834	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3835	then :; else
3836	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3837	fi
3838	# We set ac_cv_exeext here because the later test for it is not
3839	# safe: cross compilers may not add the suffix if given an '-o'
3840	# argument, so we may need to know it at that point already.
3841	# Even if this section looks crufty: it has the advantage of
3842	# actually working.
3843	break;;
3844    * )
3845	break;;
3846  esac
3847done
3848test "$ac_cv_exeext" = no && ac_cv_exeext=
3849
3850else case e in #(
3851  e) ac_file='' ;;
3852esac
3853fi
3854if test -z "$ac_file"
3855then :
3856  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857printf "%s\n" "no" >&6; }
3858printf "%s\n" "$as_me: failed program was:" >&5
3859sed 's/^/| /' conftest.$ac_ext >&5
3860
3861{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3862printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3863as_fn_error 77 "C compiler cannot create executables
3864See 'config.log' for more details" "$LINENO" 5; }
3865else case e in #(
3866  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3867printf "%s\n" "yes" >&6; } ;;
3868esac
3869fi
3870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3871printf %s "checking for C compiler default output file name... " >&6; }
3872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3873printf "%s\n" "$ac_file" >&6; }
3874ac_exeext=$ac_cv_exeext
3875
3876rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3877ac_clean_files=$ac_clean_files_save
3878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3879printf %s "checking for suffix of executables... " >&6; }
3880if { { ac_try="$ac_link"
3881case "(($ac_try" in
3882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883  *) ac_try_echo=$ac_try;;
3884esac
3885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3886printf "%s\n" "$ac_try_echo"; } >&5
3887  (eval "$ac_link") 2>&5
3888  ac_status=$?
3889  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3890  test $ac_status = 0; }
3891then :
3892  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3893# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
3894# work properly (i.e., refer to 'conftest.exe'), while it won't with
3895# 'rm'.
3896for ac_file in conftest.exe conftest conftest.*; do
3897  test -f "$ac_file" || continue
3898  case $ac_file in
3899    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3900    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3901	  break;;
3902    * ) break;;
3903  esac
3904done
3905else case e in #(
3906  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3907printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3908as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3909See 'config.log' for more details" "$LINENO" 5; } ;;
3910esac
3911fi
3912rm -f conftest conftest$ac_cv_exeext
3913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3914printf "%s\n" "$ac_cv_exeext" >&6; }
3915
3916rm -f conftest.$ac_ext
3917EXEEXT=$ac_cv_exeext
3918ac_exeext=$EXEEXT
3919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920/* end confdefs.h.  */
3921#include <stdio.h>
3922int
3923main (void)
3924{
3925FILE *f = fopen ("conftest.out", "w");
3926 if (!f)
3927  return 1;
3928 return ferror (f) || fclose (f) != 0;
3929
3930  ;
3931  return 0;
3932}
3933_ACEOF
3934ac_clean_files="$ac_clean_files conftest.out"
3935# Check that the compiler produces executables we can run.  If not, either
3936# the compiler is broken, or we cross compile.
3937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3938printf %s "checking whether we are cross compiling... " >&6; }
3939if test "$cross_compiling" != yes; then
3940  { { ac_try="$ac_link"
3941case "(($ac_try" in
3942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943  *) ac_try_echo=$ac_try;;
3944esac
3945eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3946printf "%s\n" "$ac_try_echo"; } >&5
3947  (eval "$ac_link") 2>&5
3948  ac_status=$?
3949  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3950  test $ac_status = 0; }
3951  if { ac_try='./conftest$ac_cv_exeext'
3952  { { case "(($ac_try" in
3953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954  *) ac_try_echo=$ac_try;;
3955esac
3956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957printf "%s\n" "$ac_try_echo"; } >&5
3958  (eval "$ac_try") 2>&5
3959  ac_status=$?
3960  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961  test $ac_status = 0; }; }; then
3962    cross_compiling=no
3963  else
3964    if test "$cross_compiling" = maybe; then
3965	cross_compiling=yes
3966    else
3967	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3968printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3969as_fn_error 77 "cannot run C compiled programs.
3970If you meant to cross compile, use '--host'.
3971See 'config.log' for more details" "$LINENO" 5; }
3972    fi
3973  fi
3974fi
3975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3976printf "%s\n" "$cross_compiling" >&6; }
3977
3978rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3979  conftest.o conftest.obj conftest.out
3980ac_clean_files=$ac_clean_files_save
3981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3982printf %s "checking for suffix of object files... " >&6; }
3983if test ${ac_cv_objext+y}
3984then :
3985  printf %s "(cached) " >&6
3986else case e in #(
3987  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988/* end confdefs.h.  */
3989
3990int
3991main (void)
3992{
3993
3994  ;
3995  return 0;
3996}
3997_ACEOF
3998rm -f conftest.o conftest.obj
3999if { { ac_try="$ac_compile"
4000case "(($ac_try" in
4001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002  *) ac_try_echo=$ac_try;;
4003esac
4004eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005printf "%s\n" "$ac_try_echo"; } >&5
4006  (eval "$ac_compile") 2>&5
4007  ac_status=$?
4008  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009  test $ac_status = 0; }
4010then :
4011  for ac_file in conftest.o conftest.obj conftest.*; do
4012  test -f "$ac_file" || continue;
4013  case $ac_file in
4014    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4015    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4016       break;;
4017  esac
4018done
4019else case e in #(
4020  e) printf "%s\n" "$as_me: failed program was:" >&5
4021sed 's/^/| /' conftest.$ac_ext >&5
4022
4023{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4024printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4025as_fn_error $? "cannot compute suffix of object files: cannot compile
4026See 'config.log' for more details" "$LINENO" 5; } ;;
4027esac
4028fi
4029rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4030esac
4031fi
4032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4033printf "%s\n" "$ac_cv_objext" >&6; }
4034OBJEXT=$ac_cv_objext
4035ac_objext=$OBJEXT
4036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4037printf %s "checking whether the compiler supports GNU C... " >&6; }
4038if test ${ac_cv_c_compiler_gnu+y}
4039then :
4040  printf %s "(cached) " >&6
4041else case e in #(
4042  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043/* end confdefs.h.  */
4044
4045int
4046main (void)
4047{
4048#ifndef __GNUC__
4049       choke me
4050#endif
4051
4052  ;
4053  return 0;
4054}
4055_ACEOF
4056if ac_fn_c_try_compile "$LINENO"
4057then :
4058  ac_compiler_gnu=yes
4059else case e in #(
4060  e) ac_compiler_gnu=no ;;
4061esac
4062fi
4063rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4064ac_cv_c_compiler_gnu=$ac_compiler_gnu
4065 ;;
4066esac
4067fi
4068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4069printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4070ac_compiler_gnu=$ac_cv_c_compiler_gnu
4071
4072if test $ac_compiler_gnu = yes; then
4073  GCC=yes
4074else
4075  GCC=
4076fi
4077ac_test_CFLAGS=${CFLAGS+y}
4078ac_save_CFLAGS=$CFLAGS
4079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4080printf %s "checking whether $CC accepts -g... " >&6; }
4081if test ${ac_cv_prog_cc_g+y}
4082then :
4083  printf %s "(cached) " >&6
4084else case e in #(
4085  e) ac_save_c_werror_flag=$ac_c_werror_flag
4086   ac_c_werror_flag=yes
4087   ac_cv_prog_cc_g=no
4088   CFLAGS="-g"
4089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090/* end confdefs.h.  */
4091
4092int
4093main (void)
4094{
4095
4096  ;
4097  return 0;
4098}
4099_ACEOF
4100if ac_fn_c_try_compile "$LINENO"
4101then :
4102  ac_cv_prog_cc_g=yes
4103else case e in #(
4104  e) CFLAGS=""
4105      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106/* end confdefs.h.  */
4107
4108int
4109main (void)
4110{
4111
4112  ;
4113  return 0;
4114}
4115_ACEOF
4116if ac_fn_c_try_compile "$LINENO"
4117then :
4118
4119else case e in #(
4120  e) ac_c_werror_flag=$ac_save_c_werror_flag
4121	 CFLAGS="-g"
4122	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123/* end confdefs.h.  */
4124
4125int
4126main (void)
4127{
4128
4129  ;
4130  return 0;
4131}
4132_ACEOF
4133if ac_fn_c_try_compile "$LINENO"
4134then :
4135  ac_cv_prog_cc_g=yes
4136fi
4137rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4138esac
4139fi
4140rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4141esac
4142fi
4143rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4144   ac_c_werror_flag=$ac_save_c_werror_flag ;;
4145esac
4146fi
4147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4148printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4149if test $ac_test_CFLAGS; then
4150  CFLAGS=$ac_save_CFLAGS
4151elif test $ac_cv_prog_cc_g = yes; then
4152  if test "$GCC" = yes; then
4153    CFLAGS="-g -O2"
4154  else
4155    CFLAGS="-g"
4156  fi
4157else
4158  if test "$GCC" = yes; then
4159    CFLAGS="-O2"
4160  else
4161    CFLAGS=
4162  fi
4163fi
4164ac_prog_cc_stdc=no
4165if test x$ac_prog_cc_stdc = xno
4166then :
4167  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4168printf %s "checking for $CC option to enable C11 features... " >&6; }
4169if test ${ac_cv_prog_cc_c11+y}
4170then :
4171  printf %s "(cached) " >&6
4172else case e in #(
4173  e) ac_cv_prog_cc_c11=no
4174ac_save_CC=$CC
4175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176/* end confdefs.h.  */
4177$ac_c_conftest_c11_program
4178_ACEOF
4179for ac_arg in '' -std=gnu11
4180do
4181  CC="$ac_save_CC $ac_arg"
4182  if ac_fn_c_try_compile "$LINENO"
4183then :
4184  ac_cv_prog_cc_c11=$ac_arg
4185fi
4186rm -f core conftest.err conftest.$ac_objext conftest.beam
4187  test "x$ac_cv_prog_cc_c11" != "xno" && break
4188done
4189rm -f conftest.$ac_ext
4190CC=$ac_save_CC ;;
4191esac
4192fi
4193
4194if test "x$ac_cv_prog_cc_c11" = xno
4195then :
4196  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4197printf "%s\n" "unsupported" >&6; }
4198else case e in #(
4199  e) if test "x$ac_cv_prog_cc_c11" = x
4200then :
4201  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4202printf "%s\n" "none needed" >&6; }
4203else case e in #(
4204  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4205printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4206     CC="$CC $ac_cv_prog_cc_c11" ;;
4207esac
4208fi
4209  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4210  ac_prog_cc_stdc=c11 ;;
4211esac
4212fi
4213fi
4214if test x$ac_prog_cc_stdc = xno
4215then :
4216  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4217printf %s "checking for $CC option to enable C99 features... " >&6; }
4218if test ${ac_cv_prog_cc_c99+y}
4219then :
4220  printf %s "(cached) " >&6
4221else case e in #(
4222  e) ac_cv_prog_cc_c99=no
4223ac_save_CC=$CC
4224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225/* end confdefs.h.  */
4226$ac_c_conftest_c99_program
4227_ACEOF
4228for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4229do
4230  CC="$ac_save_CC $ac_arg"
4231  if ac_fn_c_try_compile "$LINENO"
4232then :
4233  ac_cv_prog_cc_c99=$ac_arg
4234fi
4235rm -f core conftest.err conftest.$ac_objext conftest.beam
4236  test "x$ac_cv_prog_cc_c99" != "xno" && break
4237done
4238rm -f conftest.$ac_ext
4239CC=$ac_save_CC ;;
4240esac
4241fi
4242
4243if test "x$ac_cv_prog_cc_c99" = xno
4244then :
4245  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4246printf "%s\n" "unsupported" >&6; }
4247else case e in #(
4248  e) if test "x$ac_cv_prog_cc_c99" = x
4249then :
4250  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4251printf "%s\n" "none needed" >&6; }
4252else case e in #(
4253  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4254printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4255     CC="$CC $ac_cv_prog_cc_c99" ;;
4256esac
4257fi
4258  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4259  ac_prog_cc_stdc=c99 ;;
4260esac
4261fi
4262fi
4263if test x$ac_prog_cc_stdc = xno
4264then :
4265  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4266printf %s "checking for $CC option to enable C89 features... " >&6; }
4267if test ${ac_cv_prog_cc_c89+y}
4268then :
4269  printf %s "(cached) " >&6
4270else case e in #(
4271  e) ac_cv_prog_cc_c89=no
4272ac_save_CC=$CC
4273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274/* end confdefs.h.  */
4275$ac_c_conftest_c89_program
4276_ACEOF
4277for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4278do
4279  CC="$ac_save_CC $ac_arg"
4280  if ac_fn_c_try_compile "$LINENO"
4281then :
4282  ac_cv_prog_cc_c89=$ac_arg
4283fi
4284rm -f core conftest.err conftest.$ac_objext conftest.beam
4285  test "x$ac_cv_prog_cc_c89" != "xno" && break
4286done
4287rm -f conftest.$ac_ext
4288CC=$ac_save_CC ;;
4289esac
4290fi
4291
4292if test "x$ac_cv_prog_cc_c89" = xno
4293then :
4294  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4295printf "%s\n" "unsupported" >&6; }
4296else case e in #(
4297  e) if test "x$ac_cv_prog_cc_c89" = x
4298then :
4299  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4300printf "%s\n" "none needed" >&6; }
4301else case e in #(
4302  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4303printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4304     CC="$CC $ac_cv_prog_cc_c89" ;;
4305esac
4306fi
4307  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4308  ac_prog_cc_stdc=c89 ;;
4309esac
4310fi
4311fi
4312
4313ac_ext=c
4314ac_cpp='$CPP $CPPFLAGS'
4315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317ac_compiler_gnu=$ac_cv_c_compiler_gnu
4318
4319
4320  ac_ext=c
4321ac_cpp='$CPP $CPPFLAGS'
4322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4324ac_compiler_gnu=$ac_cv_c_compiler_gnu
4325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4326printf %s "checking whether $CC understands -c and -o together... " >&6; }
4327if test ${am_cv_prog_cc_c_o+y}
4328then :
4329  printf %s "(cached) " >&6
4330else case e in #(
4331  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332/* end confdefs.h.  */
4333
4334int
4335main (void)
4336{
4337
4338  ;
4339  return 0;
4340}
4341_ACEOF
4342  # Make sure it works both with $CC and with simple cc.
4343  # Following AC_PROG_CC_C_O, we do the test twice because some
4344  # compilers refuse to overwrite an existing .o file with -o,
4345  # though they will create one.
4346  am_cv_prog_cc_c_o=yes
4347  for am_i in 1 2; do
4348    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4349   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4350   ac_status=$?
4351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352   (exit $ac_status); } \
4353         && test -f conftest2.$ac_objext; then
4354      : OK
4355    else
4356      am_cv_prog_cc_c_o=no
4357      break
4358    fi
4359  done
4360  rm -f core conftest*
4361  unset am_i ;;
4362esac
4363fi
4364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4365printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4366if test "$am_cv_prog_cc_c_o" != yes; then
4367   # Losing compiler, so override with the script.
4368   # FIXME: It is wrong to rewrite CC.
4369   # But if we don't then we get into trouble of one sort or another.
4370   # A longer-term fix would be to have automake use am__CC in this case,
4371   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4372   CC="$am_aux_dir/compile $CC"
4373fi
4374ac_ext=c
4375ac_cpp='$CPP $CPPFLAGS'
4376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378ac_compiler_gnu=$ac_cv_c_compiler_gnu
4379
4380
4381depcc="$CC"   am_compiler_list=
4382
4383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4384printf %s "checking dependency style of $depcc... " >&6; }
4385if test ${am_cv_CC_dependencies_compiler_type+y}
4386then :
4387  printf %s "(cached) " >&6
4388else case e in #(
4389  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4390  # We make a subdir and do the tests there.  Otherwise we can end up
4391  # making bogus files that we don't know about and never remove.  For
4392  # instance it was reported that on HP-UX the gcc test will end up
4393  # making a dummy file named 'D' -- because '-MD' means "put the output
4394  # in D".
4395  rm -rf conftest.dir
4396  mkdir conftest.dir
4397  # Copy depcomp to subdir because otherwise we won't find it if we're
4398  # using a relative directory.
4399  cp "$am_depcomp" conftest.dir
4400  cd conftest.dir
4401  # We will build objects and dependencies in a subdirectory because
4402  # it helps to detect inapplicable dependency modes.  For instance
4403  # both Tru64's cc and ICC support -MD to output dependencies as a
4404  # side effect of compilation, but ICC will put the dependencies in
4405  # the current directory while Tru64 will put them in the object
4406  # directory.
4407  mkdir sub
4408
4409  am_cv_CC_dependencies_compiler_type=none
4410  if test "$am_compiler_list" = ""; then
4411     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4412  fi
4413  am__universal=false
4414  case " $depcc " in #(
4415     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4416     esac
4417
4418  for depmode in $am_compiler_list; do
4419    # Setup a source with many dependencies, because some compilers
4420    # like to wrap large dependency lists on column 80 (with \), and
4421    # we should not choose a depcomp mode which is confused by this.
4422    #
4423    # We need to recreate these files for each test, as the compiler may
4424    # overwrite some of them when testing with obscure command lines.
4425    # This happens at least with the AIX C compiler.
4426    : > sub/conftest.c
4427    for i in 1 2 3 4 5 6; do
4428      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4429      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4430      # Solaris 10 /bin/sh.
4431      echo '/* dummy */' > sub/conftst$i.h
4432    done
4433    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4434
4435    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4436    # mode.  It turns out that the SunPro C++ compiler does not properly
4437    # handle '-M -o', and we need to detect this.  Also, some Intel
4438    # versions had trouble with output in subdirs.
4439    am__obj=sub/conftest.${OBJEXT-o}
4440    am__minus_obj="-o $am__obj"
4441    case $depmode in
4442    gcc)
4443      # This depmode causes a compiler race in universal mode.
4444      test "$am__universal" = false || continue
4445      ;;
4446    nosideeffect)
4447      # After this tag, mechanisms are not by side-effect, so they'll
4448      # only be used when explicitly requested.
4449      if test "x$enable_dependency_tracking" = xyes; then
4450	continue
4451      else
4452	break
4453      fi
4454      ;;
4455    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4456      # This compiler won't grok '-c -o', but also, the minuso test has
4457      # not run yet.  These depmodes are late enough in the game, and
4458      # so weak that their functioning should not be impacted.
4459      am__obj=conftest.${OBJEXT-o}
4460      am__minus_obj=
4461      ;;
4462    none) break ;;
4463    esac
4464    if depmode=$depmode \
4465       source=sub/conftest.c object=$am__obj \
4466       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4467       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4468         >/dev/null 2>conftest.err &&
4469       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4470       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4471       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4472       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4473      # icc doesn't choke on unknown options, it will just issue warnings
4474      # or remarks (even with -Werror).  So we grep stderr for any message
4475      # that says an option was ignored or not supported.
4476      # When given -MP, icc 7.0 and 7.1 complain thusly:
4477      #   icc: Command line warning: ignoring option '-M'; no argument required
4478      # The diagnosis changed in icc 8.0:
4479      #   icc: Command line remark: option '-MP' not supported
4480      if (grep 'ignoring option' conftest.err ||
4481          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4482        am_cv_CC_dependencies_compiler_type=$depmode
4483        break
4484      fi
4485    fi
4486  done
4487
4488  cd ..
4489  rm -rf conftest.dir
4490else
4491  am_cv_CC_dependencies_compiler_type=none
4492fi
4493 ;;
4494esac
4495fi
4496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4497printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4498CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4499
4500 if
4501  test "x$enable_dependency_tracking" != xno \
4502  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4503  am__fastdepCC_TRUE=
4504  am__fastdepCC_FALSE='#'
4505else
4506  am__fastdepCC_TRUE='#'
4507  am__fastdepCC_FALSE=
4508fi
4509
4510
4511
4512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4513printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4514if test ${ac_cv_c_undeclared_builtin_options+y}
4515then :
4516  printf %s "(cached) " >&6
4517else case e in #(
4518  e) ac_save_CFLAGS=$CFLAGS
4519   ac_cv_c_undeclared_builtin_options='cannot detect'
4520   for ac_arg in '' -fno-builtin; do
4521     CFLAGS="$ac_save_CFLAGS $ac_arg"
4522     # This test program should *not* compile successfully.
4523     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524/* end confdefs.h.  */
4525
4526int
4527main (void)
4528{
4529(void) strchr;
4530  ;
4531  return 0;
4532}
4533_ACEOF
4534if ac_fn_c_try_compile "$LINENO"
4535then :
4536
4537else case e in #(
4538  e) # This test program should compile successfully.
4539        # No library function is consistently available on
4540        # freestanding implementations, so test against a dummy
4541        # declaration.  Include always-available headers on the
4542        # off chance that they somehow elicit warnings.
4543        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544/* end confdefs.h.  */
4545#include <float.h>
4546#include <limits.h>
4547#include <stdarg.h>
4548#include <stddef.h>
4549extern void ac_decl (int, char *);
4550
4551int
4552main (void)
4553{
4554(void) ac_decl (0, (char *) 0);
4555  (void) ac_decl;
4556
4557  ;
4558  return 0;
4559}
4560_ACEOF
4561if ac_fn_c_try_compile "$LINENO"
4562then :
4563  if test x"$ac_arg" = x
4564then :
4565  ac_cv_c_undeclared_builtin_options='none needed'
4566else case e in #(
4567  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4568esac
4569fi
4570          break
4571fi
4572rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4573esac
4574fi
4575rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4576    done
4577    CFLAGS=$ac_save_CFLAGS
4578   ;;
4579esac
4580fi
4581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4582printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4583  case $ac_cv_c_undeclared_builtin_options in #(
4584  'cannot detect') :
4585    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4586printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4587as_fn_error $? "cannot make $CC report undeclared builtins
4588See 'config.log' for more details" "$LINENO" 5; } ;; #(
4589  'none needed') :
4590    ac_c_undeclared_builtin_options='' ;; #(
4591  *) :
4592    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4593esac
4594
4595ac_header= ac_cache=
4596for ac_item in $ac_header_c_list
4597do
4598  if test $ac_cache; then
4599    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4600    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4601      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4602    fi
4603    ac_header= ac_cache=
4604  elif test $ac_header; then
4605    ac_cache=$ac_item
4606  else
4607    ac_header=$ac_item
4608  fi
4609done
4610
4611
4612
4613
4614
4615
4616
4617
4618if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4619then :
4620
4621printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4622
4623fi
4624
4625
4626
4627
4628ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4629if test "x$ac_cv_have_decl___clang__" = xyes
4630then :
4631  CLANGCC="yes"
4632else case e in #(
4633  e) CLANGCC="no" ;;
4634esac
4635fi
4636ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4637if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4638then :
4639  INTELCC="yes"
4640else case e in #(
4641  e) INTELCC="no" ;;
4642esac
4643fi
4644ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4645if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4646then :
4647  SUNCC="yes"
4648else case e in #(
4649  e) SUNCC="no" ;;
4650esac
4651fi
4652
4653
4654
4655
4656
4657
4658
4659
4660if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4661	if test -n "$ac_tool_prefix"; then
4662  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4663set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4665printf %s "checking for $ac_word... " >&6; }
4666if test ${ac_cv_path_PKG_CONFIG+y}
4667then :
4668  printf %s "(cached) " >&6
4669else case e in #(
4670  e) case $PKG_CONFIG in
4671  [\\/]* | ?:[\\/]*)
4672  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4673  ;;
4674  *)
4675  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676for as_dir in $PATH
4677do
4678  IFS=$as_save_IFS
4679  case $as_dir in #(((
4680    '') as_dir=./ ;;
4681    */) ;;
4682    *) as_dir=$as_dir/ ;;
4683  esac
4684    for ac_exec_ext in '' $ac_executable_extensions; do
4685  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4686    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4687    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4688    break 2
4689  fi
4690done
4691  done
4692IFS=$as_save_IFS
4693
4694  ;;
4695esac ;;
4696esac
4697fi
4698PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4699if test -n "$PKG_CONFIG"; then
4700  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4701printf "%s\n" "$PKG_CONFIG" >&6; }
4702else
4703  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704printf "%s\n" "no" >&6; }
4705fi
4706
4707
4708fi
4709if test -z "$ac_cv_path_PKG_CONFIG"; then
4710  ac_pt_PKG_CONFIG=$PKG_CONFIG
4711  # Extract the first word of "pkg-config", so it can be a program name with args.
4712set dummy pkg-config; ac_word=$2
4713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4714printf %s "checking for $ac_word... " >&6; }
4715if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4716then :
4717  printf %s "(cached) " >&6
4718else case e in #(
4719  e) case $ac_pt_PKG_CONFIG in
4720  [\\/]* | ?:[\\/]*)
4721  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4722  ;;
4723  *)
4724  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725for as_dir in $PATH
4726do
4727  IFS=$as_save_IFS
4728  case $as_dir in #(((
4729    '') as_dir=./ ;;
4730    */) ;;
4731    *) as_dir=$as_dir/ ;;
4732  esac
4733    for ac_exec_ext in '' $ac_executable_extensions; do
4734  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4735    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4736    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4737    break 2
4738  fi
4739done
4740  done
4741IFS=$as_save_IFS
4742
4743  ;;
4744esac ;;
4745esac
4746fi
4747ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4748if test -n "$ac_pt_PKG_CONFIG"; then
4749  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4750printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4751else
4752  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753printf "%s\n" "no" >&6; }
4754fi
4755
4756  if test "x$ac_pt_PKG_CONFIG" = x; then
4757    PKG_CONFIG=""
4758  else
4759    case $cross_compiling:$ac_tool_warned in
4760yes:)
4761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4762printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4763ac_tool_warned=yes ;;
4764esac
4765    PKG_CONFIG=$ac_pt_PKG_CONFIG
4766  fi
4767else
4768  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4769fi
4770
4771fi
4772if test -n "$PKG_CONFIG"; then
4773	_pkg_min_version=0.9.0
4774	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4775printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4776	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4777		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4778printf "%s\n" "yes" >&6; }
4779	else
4780		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4781printf "%s\n" "no" >&6; }
4782		PKG_CONFIG=""
4783	fi
4784fi
4785
4786
4787  # Make sure we can run config.sub.
4788$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4789  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4790
4791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4792printf %s "checking build system type... " >&6; }
4793if test ${ac_cv_build+y}
4794then :
4795  printf %s "(cached) " >&6
4796else case e in #(
4797  e) ac_build_alias=$build_alias
4798test "x$ac_build_alias" = x &&
4799  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4800test "x$ac_build_alias" = x &&
4801  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4802ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4803  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4804 ;;
4805esac
4806fi
4807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4808printf "%s\n" "$ac_cv_build" >&6; }
4809case $ac_cv_build in
4810*-*-*) ;;
4811*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4812esac
4813build=$ac_cv_build
4814ac_save_IFS=$IFS; IFS='-'
4815set x $ac_cv_build
4816shift
4817build_cpu=$1
4818build_vendor=$2
4819shift; shift
4820# Remember, the first character of IFS is used to create $*,
4821# except with old shells:
4822build_os=$*
4823IFS=$ac_save_IFS
4824case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4825
4826
4827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4828printf %s "checking host system type... " >&6; }
4829if test ${ac_cv_host+y}
4830then :
4831  printf %s "(cached) " >&6
4832else case e in #(
4833  e) if test "x$host_alias" = x; then
4834  ac_cv_host=$ac_cv_build
4835else
4836  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4837    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4838fi
4839 ;;
4840esac
4841fi
4842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4843printf "%s\n" "$ac_cv_host" >&6; }
4844case $ac_cv_host in
4845*-*-*) ;;
4846*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4847esac
4848host=$ac_cv_host
4849ac_save_IFS=$IFS; IFS='-'
4850set x $ac_cv_host
4851shift
4852host_cpu=$1
4853host_vendor=$2
4854shift; shift
4855# Remember, the first character of IFS is used to create $*,
4856# except with old shells:
4857host_os=$*
4858IFS=$ac_save_IFS
4859case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4860
4861
4862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4863printf %s "checking for a sed that does not truncate output... " >&6; }
4864if test ${ac_cv_path_SED+y}
4865then :
4866  printf %s "(cached) " >&6
4867else case e in #(
4868  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4869     for ac_i in 1 2 3 4 5 6 7; do
4870       ac_script="$ac_script$as_nl$ac_script"
4871     done
4872     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4873     { ac_script=; unset ac_script;}
4874     if test -z "$SED"; then
4875  ac_path_SED_found=false
4876  # Loop through the user's path and test for each of PROGNAME-LIST
4877  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878for as_dir in $PATH
4879do
4880  IFS=$as_save_IFS
4881  case $as_dir in #(((
4882    '') as_dir=./ ;;
4883    */) ;;
4884    *) as_dir=$as_dir/ ;;
4885  esac
4886    for ac_prog in sed gsed
4887   do
4888    for ac_exec_ext in '' $ac_executable_extensions; do
4889      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4890      as_fn_executable_p "$ac_path_SED" || continue
4891# Check for GNU ac_path_SED and select it if it is found.
4892  # Check for GNU $ac_path_SED
4893case `"$ac_path_SED" --version 2>&1` in #(
4894*GNU*)
4895  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4896#(
4897*)
4898  ac_count=0
4899  printf %s 0123456789 >"conftest.in"
4900  while :
4901  do
4902    cat "conftest.in" "conftest.in" >"conftest.tmp"
4903    mv "conftest.tmp" "conftest.in"
4904    cp "conftest.in" "conftest.nl"
4905    printf "%s\n" '' >> "conftest.nl"
4906    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4907    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4908    as_fn_arith $ac_count + 1 && ac_count=$as_val
4909    if test $ac_count -gt ${ac_path_SED_max-0}; then
4910      # Best one so far, save it but keep looking for a better one
4911      ac_cv_path_SED="$ac_path_SED"
4912      ac_path_SED_max=$ac_count
4913    fi
4914    # 10*(2^10) chars as input seems more than enough
4915    test $ac_count -gt 10 && break
4916  done
4917  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4918esac
4919
4920      $ac_path_SED_found && break 3
4921    done
4922  done
4923  done
4924IFS=$as_save_IFS
4925  if test -z "$ac_cv_path_SED"; then
4926    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4927  fi
4928else
4929  ac_cv_path_SED=$SED
4930fi
4931 ;;
4932esac
4933fi
4934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4935printf "%s\n" "$ac_cv_path_SED" >&6; }
4936 SED="$ac_cv_path_SED"
4937  rm -f conftest.sed
4938
4939
4940
4941
4942
4943
4944# Check whether --enable-selective-werror was given.
4945if test ${enable_selective_werror+y}
4946then :
4947  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4948else case e in #(
4949  e) SELECTIVE_WERROR=yes ;;
4950esac
4951fi
4952
4953
4954
4955
4956
4957# -v is too short to test reliably with XORG_TESTSET_CFLAG
4958if test "x$SUNCC" = "xyes"; then
4959    BASE_CFLAGS="-v"
4960else
4961    BASE_CFLAGS=""
4962fi
4963
4964# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978xorg_testset_save_CFLAGS="$CFLAGS"
4979
4980if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4981	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4982	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4983printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4984if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4985then :
4986  printf %s "(cached) " >&6
4987else case e in #(
4988  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989/* end confdefs.h.  */
4990int i;
4991_ACEOF
4992if ac_fn_c_try_compile "$LINENO"
4993then :
4994  xorg_cv_cc_flag_unknown_warning_option=yes
4995else case e in #(
4996  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
4997esac
4998fi
4999rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5000esac
5001fi
5002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5003printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5004	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5005	CFLAGS="$xorg_testset_save_CFLAGS"
5006fi
5007
5008if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5009	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5010		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5011	fi
5012	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5013	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5014printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5015if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5016then :
5017  printf %s "(cached) " >&6
5018else case e in #(
5019  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020/* end confdefs.h.  */
5021int i;
5022_ACEOF
5023if ac_fn_c_try_compile "$LINENO"
5024then :
5025  xorg_cv_cc_flag_unused_command_line_argument=yes
5026else case e in #(
5027  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5028esac
5029fi
5030rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5031esac
5032fi
5033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5034printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5035	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5036	CFLAGS="$xorg_testset_save_CFLAGS"
5037fi
5038
5039found="no"
5040
5041	if test $found = "no" ; then
5042		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5043			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5044		fi
5045
5046		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5047			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5048		fi
5049
5050		CFLAGS="$CFLAGS -Wall"
5051
5052		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5053printf %s "checking if $CC supports -Wall... " >&6; }
5054		cacheid=xorg_cv_cc_flag__Wall
5055		if eval test \${$cacheid+y}
5056then :
5057  printf %s "(cached) " >&6
5058else case e in #(
5059  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060/* end confdefs.h.  */
5061int i;
5062int
5063main (void)
5064{
5065
5066  ;
5067  return 0;
5068}
5069_ACEOF
5070if ac_fn_c_try_link "$LINENO"
5071then :
5072  eval $cacheid=yes
5073else case e in #(
5074  e) eval $cacheid=no ;;
5075esac
5076fi
5077rm -f core conftest.err conftest.$ac_objext conftest.beam \
5078    conftest$ac_exeext conftest.$ac_ext ;;
5079esac
5080fi
5081
5082
5083		CFLAGS="$xorg_testset_save_CFLAGS"
5084
5085		eval supported=\$$cacheid
5086		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5087printf "%s\n" "$supported" >&6; }
5088		if test "$supported" = "yes" ; then
5089			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5090			found="yes"
5091		fi
5092	fi
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108xorg_testset_save_CFLAGS="$CFLAGS"
5109
5110if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5111	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5112	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5113printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5114if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5115then :
5116  printf %s "(cached) " >&6
5117else case e in #(
5118  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119/* end confdefs.h.  */
5120int i;
5121_ACEOF
5122if ac_fn_c_try_compile "$LINENO"
5123then :
5124  xorg_cv_cc_flag_unknown_warning_option=yes
5125else case e in #(
5126  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5127esac
5128fi
5129rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5130esac
5131fi
5132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5133printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5134	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5135	CFLAGS="$xorg_testset_save_CFLAGS"
5136fi
5137
5138if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5139	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5140		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5141	fi
5142	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5143	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5144printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5145if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5146then :
5147  printf %s "(cached) " >&6
5148else case e in #(
5149  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150/* end confdefs.h.  */
5151int i;
5152_ACEOF
5153if ac_fn_c_try_compile "$LINENO"
5154then :
5155  xorg_cv_cc_flag_unused_command_line_argument=yes
5156else case e in #(
5157  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5158esac
5159fi
5160rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5161esac
5162fi
5163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5164printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5165	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5166	CFLAGS="$xorg_testset_save_CFLAGS"
5167fi
5168
5169found="no"
5170
5171	if test $found = "no" ; then
5172		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5173			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5174		fi
5175
5176		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5177			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5178		fi
5179
5180		CFLAGS="$CFLAGS -Wpointer-arith"
5181
5182		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5183printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5184		cacheid=xorg_cv_cc_flag__Wpointer_arith
5185		if eval test \${$cacheid+y}
5186then :
5187  printf %s "(cached) " >&6
5188else case e in #(
5189  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190/* end confdefs.h.  */
5191int i;
5192int
5193main (void)
5194{
5195
5196  ;
5197  return 0;
5198}
5199_ACEOF
5200if ac_fn_c_try_link "$LINENO"
5201then :
5202  eval $cacheid=yes
5203else case e in #(
5204  e) eval $cacheid=no ;;
5205esac
5206fi
5207rm -f core conftest.err conftest.$ac_objext conftest.beam \
5208    conftest$ac_exeext conftest.$ac_ext ;;
5209esac
5210fi
5211
5212
5213		CFLAGS="$xorg_testset_save_CFLAGS"
5214
5215		eval supported=\$$cacheid
5216		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5217printf "%s\n" "$supported" >&6; }
5218		if test "$supported" = "yes" ; then
5219			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5220			found="yes"
5221		fi
5222	fi
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238xorg_testset_save_CFLAGS="$CFLAGS"
5239
5240if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5241	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5242	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5243printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5244if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5245then :
5246  printf %s "(cached) " >&6
5247else case e in #(
5248  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249/* end confdefs.h.  */
5250int i;
5251_ACEOF
5252if ac_fn_c_try_compile "$LINENO"
5253then :
5254  xorg_cv_cc_flag_unknown_warning_option=yes
5255else case e in #(
5256  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5257esac
5258fi
5259rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5260esac
5261fi
5262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5263printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5264	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5265	CFLAGS="$xorg_testset_save_CFLAGS"
5266fi
5267
5268if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5269	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5270		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5271	fi
5272	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5273	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5274printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5275if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5276then :
5277  printf %s "(cached) " >&6
5278else case e in #(
5279  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280/* end confdefs.h.  */
5281int i;
5282_ACEOF
5283if ac_fn_c_try_compile "$LINENO"
5284then :
5285  xorg_cv_cc_flag_unused_command_line_argument=yes
5286else case e in #(
5287  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5288esac
5289fi
5290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5291esac
5292fi
5293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5294printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5295	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5296	CFLAGS="$xorg_testset_save_CFLAGS"
5297fi
5298
5299found="no"
5300
5301	if test $found = "no" ; then
5302		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5303			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5304		fi
5305
5306		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5307			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5308		fi
5309
5310		CFLAGS="$CFLAGS -Wmissing-declarations"
5311
5312		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5313printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5314		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5315		if eval test \${$cacheid+y}
5316then :
5317  printf %s "(cached) " >&6
5318else case e in #(
5319  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320/* end confdefs.h.  */
5321int i;
5322int
5323main (void)
5324{
5325
5326  ;
5327  return 0;
5328}
5329_ACEOF
5330if ac_fn_c_try_link "$LINENO"
5331then :
5332  eval $cacheid=yes
5333else case e in #(
5334  e) eval $cacheid=no ;;
5335esac
5336fi
5337rm -f core conftest.err conftest.$ac_objext conftest.beam \
5338    conftest$ac_exeext conftest.$ac_ext ;;
5339esac
5340fi
5341
5342
5343		CFLAGS="$xorg_testset_save_CFLAGS"
5344
5345		eval supported=\$$cacheid
5346		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5347printf "%s\n" "$supported" >&6; }
5348		if test "$supported" = "yes" ; then
5349			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5350			found="yes"
5351		fi
5352	fi
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368xorg_testset_save_CFLAGS="$CFLAGS"
5369
5370if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5371	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5372	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5373printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5374if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5375then :
5376  printf %s "(cached) " >&6
5377else case e in #(
5378  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379/* end confdefs.h.  */
5380int i;
5381_ACEOF
5382if ac_fn_c_try_compile "$LINENO"
5383then :
5384  xorg_cv_cc_flag_unknown_warning_option=yes
5385else case e in #(
5386  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5387esac
5388fi
5389rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5390esac
5391fi
5392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5393printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5394	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5395	CFLAGS="$xorg_testset_save_CFLAGS"
5396fi
5397
5398if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5399	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5400		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5401	fi
5402	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5403	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5404printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5405if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5406then :
5407  printf %s "(cached) " >&6
5408else case e in #(
5409  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410/* end confdefs.h.  */
5411int i;
5412_ACEOF
5413if ac_fn_c_try_compile "$LINENO"
5414then :
5415  xorg_cv_cc_flag_unused_command_line_argument=yes
5416else case e in #(
5417  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5418esac
5419fi
5420rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5421esac
5422fi
5423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5424printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5425	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5426	CFLAGS="$xorg_testset_save_CFLAGS"
5427fi
5428
5429found="no"
5430
5431	if test $found = "no" ; then
5432		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5433			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5434		fi
5435
5436		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5437			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5438		fi
5439
5440		CFLAGS="$CFLAGS -Wformat=2"
5441
5442		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5443printf %s "checking if $CC supports -Wformat=2... " >&6; }
5444		cacheid=xorg_cv_cc_flag__Wformat_2
5445		if eval test \${$cacheid+y}
5446then :
5447  printf %s "(cached) " >&6
5448else case e in #(
5449  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5450/* end confdefs.h.  */
5451int i;
5452int
5453main (void)
5454{
5455
5456  ;
5457  return 0;
5458}
5459_ACEOF
5460if ac_fn_c_try_link "$LINENO"
5461then :
5462  eval $cacheid=yes
5463else case e in #(
5464  e) eval $cacheid=no ;;
5465esac
5466fi
5467rm -f core conftest.err conftest.$ac_objext conftest.beam \
5468    conftest$ac_exeext conftest.$ac_ext ;;
5469esac
5470fi
5471
5472
5473		CFLAGS="$xorg_testset_save_CFLAGS"
5474
5475		eval supported=\$$cacheid
5476		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5477printf "%s\n" "$supported" >&6; }
5478		if test "$supported" = "yes" ; then
5479			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5480			found="yes"
5481		fi
5482	fi
5483
5484	if test $found = "no" ; then
5485		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5486			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5487		fi
5488
5489		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5490			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5491		fi
5492
5493		CFLAGS="$CFLAGS -Wformat"
5494
5495		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5496printf %s "checking if $CC supports -Wformat... " >&6; }
5497		cacheid=xorg_cv_cc_flag__Wformat
5498		if eval test \${$cacheid+y}
5499then :
5500  printf %s "(cached) " >&6
5501else case e in #(
5502  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503/* end confdefs.h.  */
5504int i;
5505int
5506main (void)
5507{
5508
5509  ;
5510  return 0;
5511}
5512_ACEOF
5513if ac_fn_c_try_link "$LINENO"
5514then :
5515  eval $cacheid=yes
5516else case e in #(
5517  e) eval $cacheid=no ;;
5518esac
5519fi
5520rm -f core conftest.err conftest.$ac_objext conftest.beam \
5521    conftest$ac_exeext conftest.$ac_ext ;;
5522esac
5523fi
5524
5525
5526		CFLAGS="$xorg_testset_save_CFLAGS"
5527
5528		eval supported=\$$cacheid
5529		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5530printf "%s\n" "$supported" >&6; }
5531		if test "$supported" = "yes" ; then
5532			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5533			found="yes"
5534		fi
5535	fi
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553xorg_testset_save_CFLAGS="$CFLAGS"
5554
5555if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5556	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5557	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5558printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5559if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5560then :
5561  printf %s "(cached) " >&6
5562else case e in #(
5563  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564/* end confdefs.h.  */
5565int i;
5566_ACEOF
5567if ac_fn_c_try_compile "$LINENO"
5568then :
5569  xorg_cv_cc_flag_unknown_warning_option=yes
5570else case e in #(
5571  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5572esac
5573fi
5574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5575esac
5576fi
5577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5578printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5579	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5580	CFLAGS="$xorg_testset_save_CFLAGS"
5581fi
5582
5583if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5584	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5585		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5586	fi
5587	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5588	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5589printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5590if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5591then :
5592  printf %s "(cached) " >&6
5593else case e in #(
5594  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5595/* end confdefs.h.  */
5596int i;
5597_ACEOF
5598if ac_fn_c_try_compile "$LINENO"
5599then :
5600  xorg_cv_cc_flag_unused_command_line_argument=yes
5601else case e in #(
5602  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5603esac
5604fi
5605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5606esac
5607fi
5608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5609printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5610	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5611	CFLAGS="$xorg_testset_save_CFLAGS"
5612fi
5613
5614found="no"
5615
5616	if test $found = "no" ; then
5617		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5618			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5619		fi
5620
5621		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5622			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5623		fi
5624
5625		CFLAGS="$CFLAGS -Wstrict-prototypes"
5626
5627		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5628printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5629		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5630		if eval test \${$cacheid+y}
5631then :
5632  printf %s "(cached) " >&6
5633else case e in #(
5634  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635/* end confdefs.h.  */
5636int i;
5637int
5638main (void)
5639{
5640
5641  ;
5642  return 0;
5643}
5644_ACEOF
5645if ac_fn_c_try_link "$LINENO"
5646then :
5647  eval $cacheid=yes
5648else case e in #(
5649  e) eval $cacheid=no ;;
5650esac
5651fi
5652rm -f core conftest.err conftest.$ac_objext conftest.beam \
5653    conftest$ac_exeext conftest.$ac_ext ;;
5654esac
5655fi
5656
5657
5658		CFLAGS="$xorg_testset_save_CFLAGS"
5659
5660		eval supported=\$$cacheid
5661		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5662printf "%s\n" "$supported" >&6; }
5663		if test "$supported" = "yes" ; then
5664			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5665			found="yes"
5666		fi
5667	fi
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683xorg_testset_save_CFLAGS="$CFLAGS"
5684
5685if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5686	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5687	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5688printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5689if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5690then :
5691  printf %s "(cached) " >&6
5692else case e in #(
5693  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694/* end confdefs.h.  */
5695int i;
5696_ACEOF
5697if ac_fn_c_try_compile "$LINENO"
5698then :
5699  xorg_cv_cc_flag_unknown_warning_option=yes
5700else case e in #(
5701  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5702esac
5703fi
5704rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5705esac
5706fi
5707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5708printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5709	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5710	CFLAGS="$xorg_testset_save_CFLAGS"
5711fi
5712
5713if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5714	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5715		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5716	fi
5717	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5718	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5719printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5720if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5721then :
5722  printf %s "(cached) " >&6
5723else case e in #(
5724  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5725/* end confdefs.h.  */
5726int i;
5727_ACEOF
5728if ac_fn_c_try_compile "$LINENO"
5729then :
5730  xorg_cv_cc_flag_unused_command_line_argument=yes
5731else case e in #(
5732  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5733esac
5734fi
5735rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5736esac
5737fi
5738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5739printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5740	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5741	CFLAGS="$xorg_testset_save_CFLAGS"
5742fi
5743
5744found="no"
5745
5746	if test $found = "no" ; then
5747		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5748			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5749		fi
5750
5751		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5752			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5753		fi
5754
5755		CFLAGS="$CFLAGS -Wmissing-prototypes"
5756
5757		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5758printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5759		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5760		if eval test \${$cacheid+y}
5761then :
5762  printf %s "(cached) " >&6
5763else case e in #(
5764  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5765/* end confdefs.h.  */
5766int i;
5767int
5768main (void)
5769{
5770
5771  ;
5772  return 0;
5773}
5774_ACEOF
5775if ac_fn_c_try_link "$LINENO"
5776then :
5777  eval $cacheid=yes
5778else case e in #(
5779  e) eval $cacheid=no ;;
5780esac
5781fi
5782rm -f core conftest.err conftest.$ac_objext conftest.beam \
5783    conftest$ac_exeext conftest.$ac_ext ;;
5784esac
5785fi
5786
5787
5788		CFLAGS="$xorg_testset_save_CFLAGS"
5789
5790		eval supported=\$$cacheid
5791		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5792printf "%s\n" "$supported" >&6; }
5793		if test "$supported" = "yes" ; then
5794			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5795			found="yes"
5796		fi
5797	fi
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813xorg_testset_save_CFLAGS="$CFLAGS"
5814
5815if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5816	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5817	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5818printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5819if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5820then :
5821  printf %s "(cached) " >&6
5822else case e in #(
5823  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5824/* end confdefs.h.  */
5825int i;
5826_ACEOF
5827if ac_fn_c_try_compile "$LINENO"
5828then :
5829  xorg_cv_cc_flag_unknown_warning_option=yes
5830else case e in #(
5831  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5832esac
5833fi
5834rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5835esac
5836fi
5837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5838printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5839	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5840	CFLAGS="$xorg_testset_save_CFLAGS"
5841fi
5842
5843if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5844	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5845		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5846	fi
5847	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5848	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5849printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5850if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5851then :
5852  printf %s "(cached) " >&6
5853else case e in #(
5854  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5855/* end confdefs.h.  */
5856int i;
5857_ACEOF
5858if ac_fn_c_try_compile "$LINENO"
5859then :
5860  xorg_cv_cc_flag_unused_command_line_argument=yes
5861else case e in #(
5862  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5863esac
5864fi
5865rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5866esac
5867fi
5868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5869printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5870	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5871	CFLAGS="$xorg_testset_save_CFLAGS"
5872fi
5873
5874found="no"
5875
5876	if test $found = "no" ; then
5877		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5878			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5879		fi
5880
5881		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5882			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5883		fi
5884
5885		CFLAGS="$CFLAGS -Wnested-externs"
5886
5887		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5888printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5889		cacheid=xorg_cv_cc_flag__Wnested_externs
5890		if eval test \${$cacheid+y}
5891then :
5892  printf %s "(cached) " >&6
5893else case e in #(
5894  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895/* end confdefs.h.  */
5896int i;
5897int
5898main (void)
5899{
5900
5901  ;
5902  return 0;
5903}
5904_ACEOF
5905if ac_fn_c_try_link "$LINENO"
5906then :
5907  eval $cacheid=yes
5908else case e in #(
5909  e) eval $cacheid=no ;;
5910esac
5911fi
5912rm -f core conftest.err conftest.$ac_objext conftest.beam \
5913    conftest$ac_exeext conftest.$ac_ext ;;
5914esac
5915fi
5916
5917
5918		CFLAGS="$xorg_testset_save_CFLAGS"
5919
5920		eval supported=\$$cacheid
5921		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5922printf "%s\n" "$supported" >&6; }
5923		if test "$supported" = "yes" ; then
5924			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5925			found="yes"
5926		fi
5927	fi
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943xorg_testset_save_CFLAGS="$CFLAGS"
5944
5945if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5946	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5947	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5948printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5949if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5950then :
5951  printf %s "(cached) " >&6
5952else case e in #(
5953  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954/* end confdefs.h.  */
5955int i;
5956_ACEOF
5957if ac_fn_c_try_compile "$LINENO"
5958then :
5959  xorg_cv_cc_flag_unknown_warning_option=yes
5960else case e in #(
5961  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5962esac
5963fi
5964rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5965esac
5966fi
5967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5968printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5969	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5970	CFLAGS="$xorg_testset_save_CFLAGS"
5971fi
5972
5973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5974	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5975		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5976	fi
5977	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5978	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5979printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5980if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5981then :
5982  printf %s "(cached) " >&6
5983else case e in #(
5984  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5985/* end confdefs.h.  */
5986int i;
5987_ACEOF
5988if ac_fn_c_try_compile "$LINENO"
5989then :
5990  xorg_cv_cc_flag_unused_command_line_argument=yes
5991else case e in #(
5992  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5993esac
5994fi
5995rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5996esac
5997fi
5998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5999printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6000	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6001	CFLAGS="$xorg_testset_save_CFLAGS"
6002fi
6003
6004found="no"
6005
6006	if test $found = "no" ; then
6007		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6008			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6009		fi
6010
6011		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6012			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6013		fi
6014
6015		CFLAGS="$CFLAGS -Wbad-function-cast"
6016
6017		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6018printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6019		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6020		if eval test \${$cacheid+y}
6021then :
6022  printf %s "(cached) " >&6
6023else case e in #(
6024  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6025/* end confdefs.h.  */
6026int i;
6027int
6028main (void)
6029{
6030
6031  ;
6032  return 0;
6033}
6034_ACEOF
6035if ac_fn_c_try_link "$LINENO"
6036then :
6037  eval $cacheid=yes
6038else case e in #(
6039  e) eval $cacheid=no ;;
6040esac
6041fi
6042rm -f core conftest.err conftest.$ac_objext conftest.beam \
6043    conftest$ac_exeext conftest.$ac_ext ;;
6044esac
6045fi
6046
6047
6048		CFLAGS="$xorg_testset_save_CFLAGS"
6049
6050		eval supported=\$$cacheid
6051		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6052printf "%s\n" "$supported" >&6; }
6053		if test "$supported" = "yes" ; then
6054			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6055			found="yes"
6056		fi
6057	fi
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073xorg_testset_save_CFLAGS="$CFLAGS"
6074
6075if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6076	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6077	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6078printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6079if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6080then :
6081  printf %s "(cached) " >&6
6082else case e in #(
6083  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084/* end confdefs.h.  */
6085int i;
6086_ACEOF
6087if ac_fn_c_try_compile "$LINENO"
6088then :
6089  xorg_cv_cc_flag_unknown_warning_option=yes
6090else case e in #(
6091  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6092esac
6093fi
6094rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6095esac
6096fi
6097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6098printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6099	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6100	CFLAGS="$xorg_testset_save_CFLAGS"
6101fi
6102
6103if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6104	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6105		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6106	fi
6107	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6108	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6109printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6110if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6111then :
6112  printf %s "(cached) " >&6
6113else case e in #(
6114  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6115/* end confdefs.h.  */
6116int i;
6117_ACEOF
6118if ac_fn_c_try_compile "$LINENO"
6119then :
6120  xorg_cv_cc_flag_unused_command_line_argument=yes
6121else case e in #(
6122  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6123esac
6124fi
6125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6126esac
6127fi
6128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6129printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6130	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6131	CFLAGS="$xorg_testset_save_CFLAGS"
6132fi
6133
6134found="no"
6135
6136	if test $found = "no" ; then
6137		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6138			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6139		fi
6140
6141		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6142			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6143		fi
6144
6145		CFLAGS="$CFLAGS -Wold-style-definition"
6146
6147		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6148printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6149		cacheid=xorg_cv_cc_flag__Wold_style_definition
6150		if eval test \${$cacheid+y}
6151then :
6152  printf %s "(cached) " >&6
6153else case e in #(
6154  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155/* end confdefs.h.  */
6156int i;
6157int
6158main (void)
6159{
6160
6161  ;
6162  return 0;
6163}
6164_ACEOF
6165if ac_fn_c_try_link "$LINENO"
6166then :
6167  eval $cacheid=yes
6168else case e in #(
6169  e) eval $cacheid=no ;;
6170esac
6171fi
6172rm -f core conftest.err conftest.$ac_objext conftest.beam \
6173    conftest$ac_exeext conftest.$ac_ext ;;
6174esac
6175fi
6176
6177
6178		CFLAGS="$xorg_testset_save_CFLAGS"
6179
6180		eval supported=\$$cacheid
6181		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6182printf "%s\n" "$supported" >&6; }
6183		if test "$supported" = "yes" ; then
6184			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6185			found="yes"
6186		fi
6187	fi
6188
6189	if test $found = "no" ; then
6190		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6191			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6192		fi
6193
6194		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6195			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6196		fi
6197
6198		CFLAGS="$CFLAGS -fd"
6199
6200		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6201printf %s "checking if $CC supports -fd... " >&6; }
6202		cacheid=xorg_cv_cc_flag__fd
6203		if eval test \${$cacheid+y}
6204then :
6205  printf %s "(cached) " >&6
6206else case e in #(
6207  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208/* end confdefs.h.  */
6209int i;
6210int
6211main (void)
6212{
6213
6214  ;
6215  return 0;
6216}
6217_ACEOF
6218if ac_fn_c_try_link "$LINENO"
6219then :
6220  eval $cacheid=yes
6221else case e in #(
6222  e) eval $cacheid=no ;;
6223esac
6224fi
6225rm -f core conftest.err conftest.$ac_objext conftest.beam \
6226    conftest$ac_exeext conftest.$ac_ext ;;
6227esac
6228fi
6229
6230
6231		CFLAGS="$xorg_testset_save_CFLAGS"
6232
6233		eval supported=\$$cacheid
6234		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6235printf "%s\n" "$supported" >&6; }
6236		if test "$supported" = "yes" ; then
6237			BASE_CFLAGS="$BASE_CFLAGS -fd"
6238			found="yes"
6239		fi
6240	fi
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256xorg_testset_save_CFLAGS="$CFLAGS"
6257
6258if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6259	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6260	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6261printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6262if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6263then :
6264  printf %s "(cached) " >&6
6265else case e in #(
6266  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267/* end confdefs.h.  */
6268int i;
6269_ACEOF
6270if ac_fn_c_try_compile "$LINENO"
6271then :
6272  xorg_cv_cc_flag_unknown_warning_option=yes
6273else case e in #(
6274  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6275esac
6276fi
6277rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6278esac
6279fi
6280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6281printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6282	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6283	CFLAGS="$xorg_testset_save_CFLAGS"
6284fi
6285
6286if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6287	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6288		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6289	fi
6290	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6291	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6292printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6293if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6294then :
6295  printf %s "(cached) " >&6
6296else case e in #(
6297  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298/* end confdefs.h.  */
6299int i;
6300_ACEOF
6301if ac_fn_c_try_compile "$LINENO"
6302then :
6303  xorg_cv_cc_flag_unused_command_line_argument=yes
6304else case e in #(
6305  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6306esac
6307fi
6308rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6309esac
6310fi
6311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6312printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6313	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6314	CFLAGS="$xorg_testset_save_CFLAGS"
6315fi
6316
6317found="no"
6318
6319	if test $found = "no" ; then
6320		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6321			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6322		fi
6323
6324		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6325			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6326		fi
6327
6328		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6329
6330		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6331printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6332		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6333		if eval test \${$cacheid+y}
6334then :
6335  printf %s "(cached) " >&6
6336else case e in #(
6337  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6338/* end confdefs.h.  */
6339int i;
6340int
6341main (void)
6342{
6343
6344  ;
6345  return 0;
6346}
6347_ACEOF
6348if ac_fn_c_try_link "$LINENO"
6349then :
6350  eval $cacheid=yes
6351else case e in #(
6352  e) eval $cacheid=no ;;
6353esac
6354fi
6355rm -f core conftest.err conftest.$ac_objext conftest.beam \
6356    conftest$ac_exeext conftest.$ac_ext ;;
6357esac
6358fi
6359
6360
6361		CFLAGS="$xorg_testset_save_CFLAGS"
6362
6363		eval supported=\$$cacheid
6364		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6365printf "%s\n" "$supported" >&6; }
6366		if test "$supported" = "yes" ; then
6367			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6368			found="yes"
6369		fi
6370	fi
6371
6372
6373
6374
6375
6376# This chunk adds additional warnings that could catch undesired effects.
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390xorg_testset_save_CFLAGS="$CFLAGS"
6391
6392if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6393	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6394	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6395printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6396if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6397then :
6398  printf %s "(cached) " >&6
6399else case e in #(
6400  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6401/* end confdefs.h.  */
6402int i;
6403_ACEOF
6404if ac_fn_c_try_compile "$LINENO"
6405then :
6406  xorg_cv_cc_flag_unknown_warning_option=yes
6407else case e in #(
6408  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6409esac
6410fi
6411rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6412esac
6413fi
6414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6415printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6416	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6417	CFLAGS="$xorg_testset_save_CFLAGS"
6418fi
6419
6420if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6421	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6422		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6423	fi
6424	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6425	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6426printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6427if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6428then :
6429  printf %s "(cached) " >&6
6430else case e in #(
6431  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6432/* end confdefs.h.  */
6433int i;
6434_ACEOF
6435if ac_fn_c_try_compile "$LINENO"
6436then :
6437  xorg_cv_cc_flag_unused_command_line_argument=yes
6438else case e in #(
6439  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6440esac
6441fi
6442rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6443esac
6444fi
6445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6446printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6447	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6448	CFLAGS="$xorg_testset_save_CFLAGS"
6449fi
6450
6451found="no"
6452
6453	if test $found = "no" ; then
6454		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6455			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6456		fi
6457
6458		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6459			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6460		fi
6461
6462		CFLAGS="$CFLAGS -Wunused"
6463
6464		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6465printf %s "checking if $CC supports -Wunused... " >&6; }
6466		cacheid=xorg_cv_cc_flag__Wunused
6467		if eval test \${$cacheid+y}
6468then :
6469  printf %s "(cached) " >&6
6470else case e in #(
6471  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6472/* end confdefs.h.  */
6473int i;
6474int
6475main (void)
6476{
6477
6478  ;
6479  return 0;
6480}
6481_ACEOF
6482if ac_fn_c_try_link "$LINENO"
6483then :
6484  eval $cacheid=yes
6485else case e in #(
6486  e) eval $cacheid=no ;;
6487esac
6488fi
6489rm -f core conftest.err conftest.$ac_objext conftest.beam \
6490    conftest$ac_exeext conftest.$ac_ext ;;
6491esac
6492fi
6493
6494
6495		CFLAGS="$xorg_testset_save_CFLAGS"
6496
6497		eval supported=\$$cacheid
6498		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6499printf "%s\n" "$supported" >&6; }
6500		if test "$supported" = "yes" ; then
6501			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6502			found="yes"
6503		fi
6504	fi
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520xorg_testset_save_CFLAGS="$CFLAGS"
6521
6522if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6523	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6524	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6525printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6526if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6527then :
6528  printf %s "(cached) " >&6
6529else case e in #(
6530  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531/* end confdefs.h.  */
6532int i;
6533_ACEOF
6534if ac_fn_c_try_compile "$LINENO"
6535then :
6536  xorg_cv_cc_flag_unknown_warning_option=yes
6537else case e in #(
6538  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6539esac
6540fi
6541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6542esac
6543fi
6544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6545printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6546	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6547	CFLAGS="$xorg_testset_save_CFLAGS"
6548fi
6549
6550if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6551	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6552		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6553	fi
6554	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6555	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6556printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6557if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6558then :
6559  printf %s "(cached) " >&6
6560else case e in #(
6561  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6562/* end confdefs.h.  */
6563int i;
6564_ACEOF
6565if ac_fn_c_try_compile "$LINENO"
6566then :
6567  xorg_cv_cc_flag_unused_command_line_argument=yes
6568else case e in #(
6569  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6570esac
6571fi
6572rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6573esac
6574fi
6575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6576printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6577	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6578	CFLAGS="$xorg_testset_save_CFLAGS"
6579fi
6580
6581found="no"
6582
6583	if test $found = "no" ; then
6584		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6585			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6586		fi
6587
6588		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6589			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6590		fi
6591
6592		CFLAGS="$CFLAGS -Wuninitialized"
6593
6594		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6595printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6596		cacheid=xorg_cv_cc_flag__Wuninitialized
6597		if eval test \${$cacheid+y}
6598then :
6599  printf %s "(cached) " >&6
6600else case e in #(
6601  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6602/* end confdefs.h.  */
6603int i;
6604int
6605main (void)
6606{
6607
6608  ;
6609  return 0;
6610}
6611_ACEOF
6612if ac_fn_c_try_link "$LINENO"
6613then :
6614  eval $cacheid=yes
6615else case e in #(
6616  e) eval $cacheid=no ;;
6617esac
6618fi
6619rm -f core conftest.err conftest.$ac_objext conftest.beam \
6620    conftest$ac_exeext conftest.$ac_ext ;;
6621esac
6622fi
6623
6624
6625		CFLAGS="$xorg_testset_save_CFLAGS"
6626
6627		eval supported=\$$cacheid
6628		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6629printf "%s\n" "$supported" >&6; }
6630		if test "$supported" = "yes" ; then
6631			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6632			found="yes"
6633		fi
6634	fi
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650xorg_testset_save_CFLAGS="$CFLAGS"
6651
6652if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6653	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6654	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6655printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6656if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6657then :
6658  printf %s "(cached) " >&6
6659else case e in #(
6660  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661/* end confdefs.h.  */
6662int i;
6663_ACEOF
6664if ac_fn_c_try_compile "$LINENO"
6665then :
6666  xorg_cv_cc_flag_unknown_warning_option=yes
6667else case e in #(
6668  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6669esac
6670fi
6671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6672esac
6673fi
6674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6675printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6676	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6677	CFLAGS="$xorg_testset_save_CFLAGS"
6678fi
6679
6680if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6681	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6682		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6683	fi
6684	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6685	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6686printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6687if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6688then :
6689  printf %s "(cached) " >&6
6690else case e in #(
6691  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6692/* end confdefs.h.  */
6693int i;
6694_ACEOF
6695if ac_fn_c_try_compile "$LINENO"
6696then :
6697  xorg_cv_cc_flag_unused_command_line_argument=yes
6698else case e in #(
6699  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6700esac
6701fi
6702rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6703esac
6704fi
6705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6706printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6707	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6708	CFLAGS="$xorg_testset_save_CFLAGS"
6709fi
6710
6711found="no"
6712
6713	if test $found = "no" ; then
6714		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6715			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6716		fi
6717
6718		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6719			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6720		fi
6721
6722		CFLAGS="$CFLAGS -Wshadow"
6723
6724		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6725printf %s "checking if $CC supports -Wshadow... " >&6; }
6726		cacheid=xorg_cv_cc_flag__Wshadow
6727		if eval test \${$cacheid+y}
6728then :
6729  printf %s "(cached) " >&6
6730else case e in #(
6731  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6732/* end confdefs.h.  */
6733int i;
6734int
6735main (void)
6736{
6737
6738  ;
6739  return 0;
6740}
6741_ACEOF
6742if ac_fn_c_try_link "$LINENO"
6743then :
6744  eval $cacheid=yes
6745else case e in #(
6746  e) eval $cacheid=no ;;
6747esac
6748fi
6749rm -f core conftest.err conftest.$ac_objext conftest.beam \
6750    conftest$ac_exeext conftest.$ac_ext ;;
6751esac
6752fi
6753
6754
6755		CFLAGS="$xorg_testset_save_CFLAGS"
6756
6757		eval supported=\$$cacheid
6758		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6759printf "%s\n" "$supported" >&6; }
6760		if test "$supported" = "yes" ; then
6761			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6762			found="yes"
6763		fi
6764	fi
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780xorg_testset_save_CFLAGS="$CFLAGS"
6781
6782if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6783	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6784	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6785printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6786if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6787then :
6788  printf %s "(cached) " >&6
6789else case e in #(
6790  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6791/* end confdefs.h.  */
6792int i;
6793_ACEOF
6794if ac_fn_c_try_compile "$LINENO"
6795then :
6796  xorg_cv_cc_flag_unknown_warning_option=yes
6797else case e in #(
6798  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6799esac
6800fi
6801rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6802esac
6803fi
6804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6805printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6806	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6807	CFLAGS="$xorg_testset_save_CFLAGS"
6808fi
6809
6810if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6811	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6812		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6813	fi
6814	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6815	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6816printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6817if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6818then :
6819  printf %s "(cached) " >&6
6820else case e in #(
6821  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822/* end confdefs.h.  */
6823int i;
6824_ACEOF
6825if ac_fn_c_try_compile "$LINENO"
6826then :
6827  xorg_cv_cc_flag_unused_command_line_argument=yes
6828else case e in #(
6829  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6830esac
6831fi
6832rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6833esac
6834fi
6835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6836printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6837	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6838	CFLAGS="$xorg_testset_save_CFLAGS"
6839fi
6840
6841found="no"
6842
6843	if test $found = "no" ; then
6844		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6845			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6846		fi
6847
6848		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6849			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6850		fi
6851
6852		CFLAGS="$CFLAGS -Wmissing-noreturn"
6853
6854		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6855printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6856		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6857		if eval test \${$cacheid+y}
6858then :
6859  printf %s "(cached) " >&6
6860else case e in #(
6861  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862/* end confdefs.h.  */
6863int i;
6864int
6865main (void)
6866{
6867
6868  ;
6869  return 0;
6870}
6871_ACEOF
6872if ac_fn_c_try_link "$LINENO"
6873then :
6874  eval $cacheid=yes
6875else case e in #(
6876  e) eval $cacheid=no ;;
6877esac
6878fi
6879rm -f core conftest.err conftest.$ac_objext conftest.beam \
6880    conftest$ac_exeext conftest.$ac_ext ;;
6881esac
6882fi
6883
6884
6885		CFLAGS="$xorg_testset_save_CFLAGS"
6886
6887		eval supported=\$$cacheid
6888		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6889printf "%s\n" "$supported" >&6; }
6890		if test "$supported" = "yes" ; then
6891			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6892			found="yes"
6893		fi
6894	fi
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910xorg_testset_save_CFLAGS="$CFLAGS"
6911
6912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6913	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6914	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6915printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6916if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6917then :
6918  printf %s "(cached) " >&6
6919else case e in #(
6920  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921/* end confdefs.h.  */
6922int i;
6923_ACEOF
6924if ac_fn_c_try_compile "$LINENO"
6925then :
6926  xorg_cv_cc_flag_unknown_warning_option=yes
6927else case e in #(
6928  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6929esac
6930fi
6931rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6932esac
6933fi
6934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6935printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6936	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6937	CFLAGS="$xorg_testset_save_CFLAGS"
6938fi
6939
6940if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6941	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6942		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6943	fi
6944	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6945	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6946printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6947if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6948then :
6949  printf %s "(cached) " >&6
6950else case e in #(
6951  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6952/* end confdefs.h.  */
6953int i;
6954_ACEOF
6955if ac_fn_c_try_compile "$LINENO"
6956then :
6957  xorg_cv_cc_flag_unused_command_line_argument=yes
6958else case e in #(
6959  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6960esac
6961fi
6962rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6963esac
6964fi
6965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6966printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6967	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6968	CFLAGS="$xorg_testset_save_CFLAGS"
6969fi
6970
6971found="no"
6972
6973	if test $found = "no" ; then
6974		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6975			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6976		fi
6977
6978		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6979			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6980		fi
6981
6982		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6983
6984		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6985printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6986		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6987		if eval test \${$cacheid+y}
6988then :
6989  printf %s "(cached) " >&6
6990else case e in #(
6991  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992/* end confdefs.h.  */
6993int i;
6994int
6995main (void)
6996{
6997
6998  ;
6999  return 0;
7000}
7001_ACEOF
7002if ac_fn_c_try_link "$LINENO"
7003then :
7004  eval $cacheid=yes
7005else case e in #(
7006  e) eval $cacheid=no ;;
7007esac
7008fi
7009rm -f core conftest.err conftest.$ac_objext conftest.beam \
7010    conftest$ac_exeext conftest.$ac_ext ;;
7011esac
7012fi
7013
7014
7015		CFLAGS="$xorg_testset_save_CFLAGS"
7016
7017		eval supported=\$$cacheid
7018		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7019printf "%s\n" "$supported" >&6; }
7020		if test "$supported" = "yes" ; then
7021			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7022			found="yes"
7023		fi
7024	fi
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040xorg_testset_save_CFLAGS="$CFLAGS"
7041
7042if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7043	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7044	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7045printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7046if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7047then :
7048  printf %s "(cached) " >&6
7049else case e in #(
7050  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051/* end confdefs.h.  */
7052int i;
7053_ACEOF
7054if ac_fn_c_try_compile "$LINENO"
7055then :
7056  xorg_cv_cc_flag_unknown_warning_option=yes
7057else case e in #(
7058  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7059esac
7060fi
7061rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7062esac
7063fi
7064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7065printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7066	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7067	CFLAGS="$xorg_testset_save_CFLAGS"
7068fi
7069
7070if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7071	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7072		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7073	fi
7074	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7075	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7076printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7077if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7078then :
7079  printf %s "(cached) " >&6
7080else case e in #(
7081  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7082/* end confdefs.h.  */
7083int i;
7084_ACEOF
7085if ac_fn_c_try_compile "$LINENO"
7086then :
7087  xorg_cv_cc_flag_unused_command_line_argument=yes
7088else case e in #(
7089  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7090esac
7091fi
7092rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7093esac
7094fi
7095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7096printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7097	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7098	CFLAGS="$xorg_testset_save_CFLAGS"
7099fi
7100
7101found="no"
7102
7103	if test $found = "no" ; then
7104		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7105			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7106		fi
7107
7108		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7109			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7110		fi
7111
7112		CFLAGS="$CFLAGS -Wredundant-decls"
7113
7114		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7115printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7116		cacheid=xorg_cv_cc_flag__Wredundant_decls
7117		if eval test \${$cacheid+y}
7118then :
7119  printf %s "(cached) " >&6
7120else case e in #(
7121  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122/* end confdefs.h.  */
7123int i;
7124int
7125main (void)
7126{
7127
7128  ;
7129  return 0;
7130}
7131_ACEOF
7132if ac_fn_c_try_link "$LINENO"
7133then :
7134  eval $cacheid=yes
7135else case e in #(
7136  e) eval $cacheid=no ;;
7137esac
7138fi
7139rm -f core conftest.err conftest.$ac_objext conftest.beam \
7140    conftest$ac_exeext conftest.$ac_ext ;;
7141esac
7142fi
7143
7144
7145		CFLAGS="$xorg_testset_save_CFLAGS"
7146
7147		eval supported=\$$cacheid
7148		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7149printf "%s\n" "$supported" >&6; }
7150		if test "$supported" = "yes" ; then
7151			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7152			found="yes"
7153		fi
7154	fi
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170xorg_testset_save_CFLAGS="$CFLAGS"
7171
7172if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7173	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7174	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7175printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7176if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7177then :
7178  printf %s "(cached) " >&6
7179else case e in #(
7180  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181/* end confdefs.h.  */
7182int i;
7183_ACEOF
7184if ac_fn_c_try_compile "$LINENO"
7185then :
7186  xorg_cv_cc_flag_unknown_warning_option=yes
7187else case e in #(
7188  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7189esac
7190fi
7191rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7192esac
7193fi
7194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7195printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7196	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7197	CFLAGS="$xorg_testset_save_CFLAGS"
7198fi
7199
7200if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7201	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7202		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7203	fi
7204	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7205	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7206printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7207if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7208then :
7209  printf %s "(cached) " >&6
7210else case e in #(
7211  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212/* end confdefs.h.  */
7213int i;
7214_ACEOF
7215if ac_fn_c_try_compile "$LINENO"
7216then :
7217  xorg_cv_cc_flag_unused_command_line_argument=yes
7218else case e in #(
7219  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7220esac
7221fi
7222rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7223esac
7224fi
7225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7226printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7227	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7228	CFLAGS="$xorg_testset_save_CFLAGS"
7229fi
7230
7231found="no"
7232
7233	if test $found = "no" ; then
7234		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7235			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7236		fi
7237
7238		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7239			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7240		fi
7241
7242		CFLAGS="$CFLAGS -Wlogical-op"
7243
7244		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7245printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7246		cacheid=xorg_cv_cc_flag__Wlogical_op
7247		if eval test \${$cacheid+y}
7248then :
7249  printf %s "(cached) " >&6
7250else case e in #(
7251  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7252/* end confdefs.h.  */
7253int i;
7254int
7255main (void)
7256{
7257
7258  ;
7259  return 0;
7260}
7261_ACEOF
7262if ac_fn_c_try_link "$LINENO"
7263then :
7264  eval $cacheid=yes
7265else case e in #(
7266  e) eval $cacheid=no ;;
7267esac
7268fi
7269rm -f core conftest.err conftest.$ac_objext conftest.beam \
7270    conftest$ac_exeext conftest.$ac_ext ;;
7271esac
7272fi
7273
7274
7275		CFLAGS="$xorg_testset_save_CFLAGS"
7276
7277		eval supported=\$$cacheid
7278		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7279printf "%s\n" "$supported" >&6; }
7280		if test "$supported" = "yes" ; then
7281			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7282			found="yes"
7283		fi
7284	fi
7285
7286
7287
7288# These are currently disabled because they are noisy.  They will be enabled
7289# in the future once the codebase is sufficiently modernized to silence
7290# them.  For now, I don't want them to drown out the other warnings.
7291# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7292# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7293# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7294
7295# Turn some warnings into errors, so we don't accidentally get successful builds
7296# when there are problems that should be fixed.
7297
7298if test "x$SELECTIVE_WERROR" = "xyes" ; then
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312xorg_testset_save_CFLAGS="$CFLAGS"
7313
7314if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7315	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7316	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7317printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7318if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7319then :
7320  printf %s "(cached) " >&6
7321else case e in #(
7322  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7323/* end confdefs.h.  */
7324int i;
7325_ACEOF
7326if ac_fn_c_try_compile "$LINENO"
7327then :
7328  xorg_cv_cc_flag_unknown_warning_option=yes
7329else case e in #(
7330  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7331esac
7332fi
7333rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7334esac
7335fi
7336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7337printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7338	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7339	CFLAGS="$xorg_testset_save_CFLAGS"
7340fi
7341
7342if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7343	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7344		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7345	fi
7346	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7347	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7348printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7349if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7350then :
7351  printf %s "(cached) " >&6
7352else case e in #(
7353  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354/* end confdefs.h.  */
7355int i;
7356_ACEOF
7357if ac_fn_c_try_compile "$LINENO"
7358then :
7359  xorg_cv_cc_flag_unused_command_line_argument=yes
7360else case e in #(
7361  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7362esac
7363fi
7364rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7365esac
7366fi
7367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7368printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7369	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7370	CFLAGS="$xorg_testset_save_CFLAGS"
7371fi
7372
7373found="no"
7374
7375	if test $found = "no" ; then
7376		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7377			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7378		fi
7379
7380		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7381			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7382		fi
7383
7384		CFLAGS="$CFLAGS -Werror=implicit"
7385
7386		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7387printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7388		cacheid=xorg_cv_cc_flag__Werror_implicit
7389		if eval test \${$cacheid+y}
7390then :
7391  printf %s "(cached) " >&6
7392else case e in #(
7393  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394/* end confdefs.h.  */
7395int i;
7396int
7397main (void)
7398{
7399
7400  ;
7401  return 0;
7402}
7403_ACEOF
7404if ac_fn_c_try_link "$LINENO"
7405then :
7406  eval $cacheid=yes
7407else case e in #(
7408  e) eval $cacheid=no ;;
7409esac
7410fi
7411rm -f core conftest.err conftest.$ac_objext conftest.beam \
7412    conftest$ac_exeext conftest.$ac_ext ;;
7413esac
7414fi
7415
7416
7417		CFLAGS="$xorg_testset_save_CFLAGS"
7418
7419		eval supported=\$$cacheid
7420		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7421printf "%s\n" "$supported" >&6; }
7422		if test "$supported" = "yes" ; then
7423			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7424			found="yes"
7425		fi
7426	fi
7427
7428	if test $found = "no" ; then
7429		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7430			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7431		fi
7432
7433		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7434			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7435		fi
7436
7437		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7438
7439		{ 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
7440printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7441		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7442		if eval test \${$cacheid+y}
7443then :
7444  printf %s "(cached) " >&6
7445else case e in #(
7446  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7447/* end confdefs.h.  */
7448int i;
7449int
7450main (void)
7451{
7452
7453  ;
7454  return 0;
7455}
7456_ACEOF
7457if ac_fn_c_try_link "$LINENO"
7458then :
7459  eval $cacheid=yes
7460else case e in #(
7461  e) eval $cacheid=no ;;
7462esac
7463fi
7464rm -f core conftest.err conftest.$ac_objext conftest.beam \
7465    conftest$ac_exeext conftest.$ac_ext ;;
7466esac
7467fi
7468
7469
7470		CFLAGS="$xorg_testset_save_CFLAGS"
7471
7472		eval supported=\$$cacheid
7473		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7474printf "%s\n" "$supported" >&6; }
7475		if test "$supported" = "yes" ; then
7476			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7477			found="yes"
7478		fi
7479	fi
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495xorg_testset_save_CFLAGS="$CFLAGS"
7496
7497if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7498	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7499	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7500printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7501if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7502then :
7503  printf %s "(cached) " >&6
7504else case e in #(
7505  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506/* end confdefs.h.  */
7507int i;
7508_ACEOF
7509if ac_fn_c_try_compile "$LINENO"
7510then :
7511  xorg_cv_cc_flag_unknown_warning_option=yes
7512else case e in #(
7513  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7514esac
7515fi
7516rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7517esac
7518fi
7519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7520printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7521	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7522	CFLAGS="$xorg_testset_save_CFLAGS"
7523fi
7524
7525if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7526	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7527		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7528	fi
7529	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7530	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7531printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7532if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7533then :
7534  printf %s "(cached) " >&6
7535else case e in #(
7536  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7537/* end confdefs.h.  */
7538int i;
7539_ACEOF
7540if ac_fn_c_try_compile "$LINENO"
7541then :
7542  xorg_cv_cc_flag_unused_command_line_argument=yes
7543else case e in #(
7544  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7545esac
7546fi
7547rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7548esac
7549fi
7550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7551printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7552	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7553	CFLAGS="$xorg_testset_save_CFLAGS"
7554fi
7555
7556found="no"
7557
7558	if test $found = "no" ; then
7559		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7560			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7561		fi
7562
7563		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7564			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7565		fi
7566
7567		CFLAGS="$CFLAGS -Werror=nonnull"
7568
7569		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7570printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7571		cacheid=xorg_cv_cc_flag__Werror_nonnull
7572		if eval test \${$cacheid+y}
7573then :
7574  printf %s "(cached) " >&6
7575else case e in #(
7576  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7577/* end confdefs.h.  */
7578int i;
7579int
7580main (void)
7581{
7582
7583  ;
7584  return 0;
7585}
7586_ACEOF
7587if ac_fn_c_try_link "$LINENO"
7588then :
7589  eval $cacheid=yes
7590else case e in #(
7591  e) eval $cacheid=no ;;
7592esac
7593fi
7594rm -f core conftest.err conftest.$ac_objext conftest.beam \
7595    conftest$ac_exeext conftest.$ac_ext ;;
7596esac
7597fi
7598
7599
7600		CFLAGS="$xorg_testset_save_CFLAGS"
7601
7602		eval supported=\$$cacheid
7603		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7604printf "%s\n" "$supported" >&6; }
7605		if test "$supported" = "yes" ; then
7606			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7607			found="yes"
7608		fi
7609	fi
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625xorg_testset_save_CFLAGS="$CFLAGS"
7626
7627if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7628	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7629	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7630printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7631if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7632then :
7633  printf %s "(cached) " >&6
7634else case e in #(
7635  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636/* end confdefs.h.  */
7637int i;
7638_ACEOF
7639if ac_fn_c_try_compile "$LINENO"
7640then :
7641  xorg_cv_cc_flag_unknown_warning_option=yes
7642else case e in #(
7643  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7644esac
7645fi
7646rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7647esac
7648fi
7649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7650printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7651	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7652	CFLAGS="$xorg_testset_save_CFLAGS"
7653fi
7654
7655if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7656	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7657		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7658	fi
7659	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7660	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7661printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7662if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7663then :
7664  printf %s "(cached) " >&6
7665else case e in #(
7666  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7667/* end confdefs.h.  */
7668int i;
7669_ACEOF
7670if ac_fn_c_try_compile "$LINENO"
7671then :
7672  xorg_cv_cc_flag_unused_command_line_argument=yes
7673else case e in #(
7674  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7675esac
7676fi
7677rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7678esac
7679fi
7680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7681printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7682	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7683	CFLAGS="$xorg_testset_save_CFLAGS"
7684fi
7685
7686found="no"
7687
7688	if test $found = "no" ; then
7689		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7690			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7691		fi
7692
7693		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7694			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7695		fi
7696
7697		CFLAGS="$CFLAGS -Werror=init-self"
7698
7699		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7700printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7701		cacheid=xorg_cv_cc_flag__Werror_init_self
7702		if eval test \${$cacheid+y}
7703then :
7704  printf %s "(cached) " >&6
7705else case e in #(
7706  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7707/* end confdefs.h.  */
7708int i;
7709int
7710main (void)
7711{
7712
7713  ;
7714  return 0;
7715}
7716_ACEOF
7717if ac_fn_c_try_link "$LINENO"
7718then :
7719  eval $cacheid=yes
7720else case e in #(
7721  e) eval $cacheid=no ;;
7722esac
7723fi
7724rm -f core conftest.err conftest.$ac_objext conftest.beam \
7725    conftest$ac_exeext conftest.$ac_ext ;;
7726esac
7727fi
7728
7729
7730		CFLAGS="$xorg_testset_save_CFLAGS"
7731
7732		eval supported=\$$cacheid
7733		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7734printf "%s\n" "$supported" >&6; }
7735		if test "$supported" = "yes" ; then
7736			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7737			found="yes"
7738		fi
7739	fi
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755xorg_testset_save_CFLAGS="$CFLAGS"
7756
7757if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7758	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7759	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7760printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7761if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7762then :
7763  printf %s "(cached) " >&6
7764else case e in #(
7765  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7766/* end confdefs.h.  */
7767int i;
7768_ACEOF
7769if ac_fn_c_try_compile "$LINENO"
7770then :
7771  xorg_cv_cc_flag_unknown_warning_option=yes
7772else case e in #(
7773  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7774esac
7775fi
7776rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7777esac
7778fi
7779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7780printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7781	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7782	CFLAGS="$xorg_testset_save_CFLAGS"
7783fi
7784
7785if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7786	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7787		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7788	fi
7789	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7790	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7791printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7792if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7793then :
7794  printf %s "(cached) " >&6
7795else case e in #(
7796  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797/* end confdefs.h.  */
7798int i;
7799_ACEOF
7800if ac_fn_c_try_compile "$LINENO"
7801then :
7802  xorg_cv_cc_flag_unused_command_line_argument=yes
7803else case e in #(
7804  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7805esac
7806fi
7807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7808esac
7809fi
7810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7811printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7812	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7813	CFLAGS="$xorg_testset_save_CFLAGS"
7814fi
7815
7816found="no"
7817
7818	if test $found = "no" ; then
7819		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7820			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7821		fi
7822
7823		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7824			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7825		fi
7826
7827		CFLAGS="$CFLAGS -Werror=main"
7828
7829		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7830printf %s "checking if $CC supports -Werror=main... " >&6; }
7831		cacheid=xorg_cv_cc_flag__Werror_main
7832		if eval test \${$cacheid+y}
7833then :
7834  printf %s "(cached) " >&6
7835else case e in #(
7836  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7837/* end confdefs.h.  */
7838int i;
7839int
7840main (void)
7841{
7842
7843  ;
7844  return 0;
7845}
7846_ACEOF
7847if ac_fn_c_try_link "$LINENO"
7848then :
7849  eval $cacheid=yes
7850else case e in #(
7851  e) eval $cacheid=no ;;
7852esac
7853fi
7854rm -f core conftest.err conftest.$ac_objext conftest.beam \
7855    conftest$ac_exeext conftest.$ac_ext ;;
7856esac
7857fi
7858
7859
7860		CFLAGS="$xorg_testset_save_CFLAGS"
7861
7862		eval supported=\$$cacheid
7863		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7864printf "%s\n" "$supported" >&6; }
7865		if test "$supported" = "yes" ; then
7866			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7867			found="yes"
7868		fi
7869	fi
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885xorg_testset_save_CFLAGS="$CFLAGS"
7886
7887if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7888	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7889	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7890printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7891if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7892then :
7893  printf %s "(cached) " >&6
7894else case e in #(
7895  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896/* end confdefs.h.  */
7897int i;
7898_ACEOF
7899if ac_fn_c_try_compile "$LINENO"
7900then :
7901  xorg_cv_cc_flag_unknown_warning_option=yes
7902else case e in #(
7903  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7904esac
7905fi
7906rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7907esac
7908fi
7909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7910printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7911	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7912	CFLAGS="$xorg_testset_save_CFLAGS"
7913fi
7914
7915if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7916	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7917		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7918	fi
7919	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7920	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7921printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7922if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7923then :
7924  printf %s "(cached) " >&6
7925else case e in #(
7926  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927/* end confdefs.h.  */
7928int i;
7929_ACEOF
7930if ac_fn_c_try_compile "$LINENO"
7931then :
7932  xorg_cv_cc_flag_unused_command_line_argument=yes
7933else case e in #(
7934  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7935esac
7936fi
7937rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7938esac
7939fi
7940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7941printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7942	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7943	CFLAGS="$xorg_testset_save_CFLAGS"
7944fi
7945
7946found="no"
7947
7948	if test $found = "no" ; then
7949		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7950			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7951		fi
7952
7953		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7954			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7955		fi
7956
7957		CFLAGS="$CFLAGS -Werror=missing-braces"
7958
7959		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7960printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7961		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7962		if eval test \${$cacheid+y}
7963then :
7964  printf %s "(cached) " >&6
7965else case e in #(
7966  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7967/* end confdefs.h.  */
7968int i;
7969int
7970main (void)
7971{
7972
7973  ;
7974  return 0;
7975}
7976_ACEOF
7977if ac_fn_c_try_link "$LINENO"
7978then :
7979  eval $cacheid=yes
7980else case e in #(
7981  e) eval $cacheid=no ;;
7982esac
7983fi
7984rm -f core conftest.err conftest.$ac_objext conftest.beam \
7985    conftest$ac_exeext conftest.$ac_ext ;;
7986esac
7987fi
7988
7989
7990		CFLAGS="$xorg_testset_save_CFLAGS"
7991
7992		eval supported=\$$cacheid
7993		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7994printf "%s\n" "$supported" >&6; }
7995		if test "$supported" = "yes" ; then
7996			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7997			found="yes"
7998		fi
7999	fi
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015xorg_testset_save_CFLAGS="$CFLAGS"
8016
8017if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8018	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8019	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8020printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8021if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8022then :
8023  printf %s "(cached) " >&6
8024else case e in #(
8025  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8026/* end confdefs.h.  */
8027int i;
8028_ACEOF
8029if ac_fn_c_try_compile "$LINENO"
8030then :
8031  xorg_cv_cc_flag_unknown_warning_option=yes
8032else case e in #(
8033  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8034esac
8035fi
8036rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8037esac
8038fi
8039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8040printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8041	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8042	CFLAGS="$xorg_testset_save_CFLAGS"
8043fi
8044
8045if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8046	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8047		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8048	fi
8049	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8050	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8051printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8052if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8053then :
8054  printf %s "(cached) " >&6
8055else case e in #(
8056  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057/* end confdefs.h.  */
8058int i;
8059_ACEOF
8060if ac_fn_c_try_compile "$LINENO"
8061then :
8062  xorg_cv_cc_flag_unused_command_line_argument=yes
8063else case e in #(
8064  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8065esac
8066fi
8067rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8068esac
8069fi
8070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8071printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8072	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8073	CFLAGS="$xorg_testset_save_CFLAGS"
8074fi
8075
8076found="no"
8077
8078	if test $found = "no" ; then
8079		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8080			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8081		fi
8082
8083		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8084			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8085		fi
8086
8087		CFLAGS="$CFLAGS -Werror=sequence-point"
8088
8089		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8090printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8091		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8092		if eval test \${$cacheid+y}
8093then :
8094  printf %s "(cached) " >&6
8095else case e in #(
8096  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8097/* end confdefs.h.  */
8098int i;
8099int
8100main (void)
8101{
8102
8103  ;
8104  return 0;
8105}
8106_ACEOF
8107if ac_fn_c_try_link "$LINENO"
8108then :
8109  eval $cacheid=yes
8110else case e in #(
8111  e) eval $cacheid=no ;;
8112esac
8113fi
8114rm -f core conftest.err conftest.$ac_objext conftest.beam \
8115    conftest$ac_exeext conftest.$ac_ext ;;
8116esac
8117fi
8118
8119
8120		CFLAGS="$xorg_testset_save_CFLAGS"
8121
8122		eval supported=\$$cacheid
8123		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8124printf "%s\n" "$supported" >&6; }
8125		if test "$supported" = "yes" ; then
8126			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8127			found="yes"
8128		fi
8129	fi
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145xorg_testset_save_CFLAGS="$CFLAGS"
8146
8147if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8148	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8149	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8150printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8151if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8152then :
8153  printf %s "(cached) " >&6
8154else case e in #(
8155  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8156/* end confdefs.h.  */
8157int i;
8158_ACEOF
8159if ac_fn_c_try_compile "$LINENO"
8160then :
8161  xorg_cv_cc_flag_unknown_warning_option=yes
8162else case e in #(
8163  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8164esac
8165fi
8166rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8167esac
8168fi
8169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8170printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8171	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8172	CFLAGS="$xorg_testset_save_CFLAGS"
8173fi
8174
8175if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8176	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8177		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8178	fi
8179	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8180	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8181printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8182if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8183then :
8184  printf %s "(cached) " >&6
8185else case e in #(
8186  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8187/* end confdefs.h.  */
8188int i;
8189_ACEOF
8190if ac_fn_c_try_compile "$LINENO"
8191then :
8192  xorg_cv_cc_flag_unused_command_line_argument=yes
8193else case e in #(
8194  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8195esac
8196fi
8197rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8198esac
8199fi
8200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8201printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8202	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8203	CFLAGS="$xorg_testset_save_CFLAGS"
8204fi
8205
8206found="no"
8207
8208	if test $found = "no" ; then
8209		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8210			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8211		fi
8212
8213		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8214			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8215		fi
8216
8217		CFLAGS="$CFLAGS -Werror=return-type"
8218
8219		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8220printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8221		cacheid=xorg_cv_cc_flag__Werror_return_type
8222		if eval test \${$cacheid+y}
8223then :
8224  printf %s "(cached) " >&6
8225else case e in #(
8226  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8227/* end confdefs.h.  */
8228int i;
8229int
8230main (void)
8231{
8232
8233  ;
8234  return 0;
8235}
8236_ACEOF
8237if ac_fn_c_try_link "$LINENO"
8238then :
8239  eval $cacheid=yes
8240else case e in #(
8241  e) eval $cacheid=no ;;
8242esac
8243fi
8244rm -f core conftest.err conftest.$ac_objext conftest.beam \
8245    conftest$ac_exeext conftest.$ac_ext ;;
8246esac
8247fi
8248
8249
8250		CFLAGS="$xorg_testset_save_CFLAGS"
8251
8252		eval supported=\$$cacheid
8253		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8254printf "%s\n" "$supported" >&6; }
8255		if test "$supported" = "yes" ; then
8256			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8257			found="yes"
8258		fi
8259	fi
8260
8261	if test $found = "no" ; then
8262		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8263			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8264		fi
8265
8266		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8267			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8268		fi
8269
8270		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8271
8272		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8273printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8274		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8275		if eval test \${$cacheid+y}
8276then :
8277  printf %s "(cached) " >&6
8278else case e in #(
8279  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8280/* end confdefs.h.  */
8281int i;
8282int
8283main (void)
8284{
8285
8286  ;
8287  return 0;
8288}
8289_ACEOF
8290if ac_fn_c_try_link "$LINENO"
8291then :
8292  eval $cacheid=yes
8293else case e in #(
8294  e) eval $cacheid=no ;;
8295esac
8296fi
8297rm -f core conftest.err conftest.$ac_objext conftest.beam \
8298    conftest$ac_exeext conftest.$ac_ext ;;
8299esac
8300fi
8301
8302
8303		CFLAGS="$xorg_testset_save_CFLAGS"
8304
8305		eval supported=\$$cacheid
8306		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8307printf "%s\n" "$supported" >&6; }
8308		if test "$supported" = "yes" ; then
8309			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8310			found="yes"
8311		fi
8312	fi
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328xorg_testset_save_CFLAGS="$CFLAGS"
8329
8330if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8331	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8332	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8333printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8334if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8335then :
8336  printf %s "(cached) " >&6
8337else case e in #(
8338  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339/* end confdefs.h.  */
8340int i;
8341_ACEOF
8342if ac_fn_c_try_compile "$LINENO"
8343then :
8344  xorg_cv_cc_flag_unknown_warning_option=yes
8345else case e in #(
8346  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8347esac
8348fi
8349rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8350esac
8351fi
8352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8353printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8354	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8355	CFLAGS="$xorg_testset_save_CFLAGS"
8356fi
8357
8358if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8359	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8360		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8361	fi
8362	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8363	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8364printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8365if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8366then :
8367  printf %s "(cached) " >&6
8368else case e in #(
8369  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8370/* end confdefs.h.  */
8371int i;
8372_ACEOF
8373if ac_fn_c_try_compile "$LINENO"
8374then :
8375  xorg_cv_cc_flag_unused_command_line_argument=yes
8376else case e in #(
8377  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8378esac
8379fi
8380rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8381esac
8382fi
8383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8384printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8385	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8386	CFLAGS="$xorg_testset_save_CFLAGS"
8387fi
8388
8389found="no"
8390
8391	if test $found = "no" ; then
8392		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8393			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8394		fi
8395
8396		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8397			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8398		fi
8399
8400		CFLAGS="$CFLAGS -Werror=trigraphs"
8401
8402		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8403printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8404		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8405		if eval test \${$cacheid+y}
8406then :
8407  printf %s "(cached) " >&6
8408else case e in #(
8409  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8410/* end confdefs.h.  */
8411int i;
8412int
8413main (void)
8414{
8415
8416  ;
8417  return 0;
8418}
8419_ACEOF
8420if ac_fn_c_try_link "$LINENO"
8421then :
8422  eval $cacheid=yes
8423else case e in #(
8424  e) eval $cacheid=no ;;
8425esac
8426fi
8427rm -f core conftest.err conftest.$ac_objext conftest.beam \
8428    conftest$ac_exeext conftest.$ac_ext ;;
8429esac
8430fi
8431
8432
8433		CFLAGS="$xorg_testset_save_CFLAGS"
8434
8435		eval supported=\$$cacheid
8436		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8437printf "%s\n" "$supported" >&6; }
8438		if test "$supported" = "yes" ; then
8439			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8440			found="yes"
8441		fi
8442	fi
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458xorg_testset_save_CFLAGS="$CFLAGS"
8459
8460if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8461	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8462	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8463printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8464if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8465then :
8466  printf %s "(cached) " >&6
8467else case e in #(
8468  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8469/* end confdefs.h.  */
8470int i;
8471_ACEOF
8472if ac_fn_c_try_compile "$LINENO"
8473then :
8474  xorg_cv_cc_flag_unknown_warning_option=yes
8475else case e in #(
8476  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8477esac
8478fi
8479rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8480esac
8481fi
8482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8483printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8484	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8485	CFLAGS="$xorg_testset_save_CFLAGS"
8486fi
8487
8488if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8489	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8490		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8491	fi
8492	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8493	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8494printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8495if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8496then :
8497  printf %s "(cached) " >&6
8498else case e in #(
8499  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8500/* end confdefs.h.  */
8501int i;
8502_ACEOF
8503if ac_fn_c_try_compile "$LINENO"
8504then :
8505  xorg_cv_cc_flag_unused_command_line_argument=yes
8506else case e in #(
8507  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8508esac
8509fi
8510rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8511esac
8512fi
8513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8514printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8515	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8516	CFLAGS="$xorg_testset_save_CFLAGS"
8517fi
8518
8519found="no"
8520
8521	if test $found = "no" ; then
8522		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8523			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8524		fi
8525
8526		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8527			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8528		fi
8529
8530		CFLAGS="$CFLAGS -Werror=array-bounds"
8531
8532		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8533printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8534		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8535		if eval test \${$cacheid+y}
8536then :
8537  printf %s "(cached) " >&6
8538else case e in #(
8539  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8540/* end confdefs.h.  */
8541int i;
8542int
8543main (void)
8544{
8545
8546  ;
8547  return 0;
8548}
8549_ACEOF
8550if ac_fn_c_try_link "$LINENO"
8551then :
8552  eval $cacheid=yes
8553else case e in #(
8554  e) eval $cacheid=no ;;
8555esac
8556fi
8557rm -f core conftest.err conftest.$ac_objext conftest.beam \
8558    conftest$ac_exeext conftest.$ac_ext ;;
8559esac
8560fi
8561
8562
8563		CFLAGS="$xorg_testset_save_CFLAGS"
8564
8565		eval supported=\$$cacheid
8566		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8567printf "%s\n" "$supported" >&6; }
8568		if test "$supported" = "yes" ; then
8569			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8570			found="yes"
8571		fi
8572	fi
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588xorg_testset_save_CFLAGS="$CFLAGS"
8589
8590if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8591	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8592	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8593printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8594if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8595then :
8596  printf %s "(cached) " >&6
8597else case e in #(
8598  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599/* end confdefs.h.  */
8600int i;
8601_ACEOF
8602if ac_fn_c_try_compile "$LINENO"
8603then :
8604  xorg_cv_cc_flag_unknown_warning_option=yes
8605else case e in #(
8606  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8607esac
8608fi
8609rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8610esac
8611fi
8612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8613printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8614	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8615	CFLAGS="$xorg_testset_save_CFLAGS"
8616fi
8617
8618if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8619	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8620		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8621	fi
8622	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8623	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8624printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8625if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8626then :
8627  printf %s "(cached) " >&6
8628else case e in #(
8629  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8630/* end confdefs.h.  */
8631int i;
8632_ACEOF
8633if ac_fn_c_try_compile "$LINENO"
8634then :
8635  xorg_cv_cc_flag_unused_command_line_argument=yes
8636else case e in #(
8637  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8638esac
8639fi
8640rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8641esac
8642fi
8643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8644printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8645	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8646	CFLAGS="$xorg_testset_save_CFLAGS"
8647fi
8648
8649found="no"
8650
8651	if test $found = "no" ; then
8652		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8653			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8654		fi
8655
8656		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8657			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8658		fi
8659
8660		CFLAGS="$CFLAGS -Werror=write-strings"
8661
8662		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8663printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8664		cacheid=xorg_cv_cc_flag__Werror_write_strings
8665		if eval test \${$cacheid+y}
8666then :
8667  printf %s "(cached) " >&6
8668else case e in #(
8669  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8670/* end confdefs.h.  */
8671int i;
8672int
8673main (void)
8674{
8675
8676  ;
8677  return 0;
8678}
8679_ACEOF
8680if ac_fn_c_try_link "$LINENO"
8681then :
8682  eval $cacheid=yes
8683else case e in #(
8684  e) eval $cacheid=no ;;
8685esac
8686fi
8687rm -f core conftest.err conftest.$ac_objext conftest.beam \
8688    conftest$ac_exeext conftest.$ac_ext ;;
8689esac
8690fi
8691
8692
8693		CFLAGS="$xorg_testset_save_CFLAGS"
8694
8695		eval supported=\$$cacheid
8696		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8697printf "%s\n" "$supported" >&6; }
8698		if test "$supported" = "yes" ; then
8699			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8700			found="yes"
8701		fi
8702	fi
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718xorg_testset_save_CFLAGS="$CFLAGS"
8719
8720if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8721	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8722	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8723printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8724if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8725then :
8726  printf %s "(cached) " >&6
8727else case e in #(
8728  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729/* end confdefs.h.  */
8730int i;
8731_ACEOF
8732if ac_fn_c_try_compile "$LINENO"
8733then :
8734  xorg_cv_cc_flag_unknown_warning_option=yes
8735else case e in #(
8736  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8737esac
8738fi
8739rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8740esac
8741fi
8742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8743printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8744	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8745	CFLAGS="$xorg_testset_save_CFLAGS"
8746fi
8747
8748if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8749	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8750		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8751	fi
8752	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8753	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8754printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8755if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8756then :
8757  printf %s "(cached) " >&6
8758else case e in #(
8759  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760/* end confdefs.h.  */
8761int i;
8762_ACEOF
8763if ac_fn_c_try_compile "$LINENO"
8764then :
8765  xorg_cv_cc_flag_unused_command_line_argument=yes
8766else case e in #(
8767  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8768esac
8769fi
8770rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8771esac
8772fi
8773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8774printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8775	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8776	CFLAGS="$xorg_testset_save_CFLAGS"
8777fi
8778
8779found="no"
8780
8781	if test $found = "no" ; then
8782		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8783			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8784		fi
8785
8786		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8787			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8788		fi
8789
8790		CFLAGS="$CFLAGS -Werror=address"
8791
8792		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8793printf %s "checking if $CC supports -Werror=address... " >&6; }
8794		cacheid=xorg_cv_cc_flag__Werror_address
8795		if eval test \${$cacheid+y}
8796then :
8797  printf %s "(cached) " >&6
8798else case e in #(
8799  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8800/* end confdefs.h.  */
8801int i;
8802int
8803main (void)
8804{
8805
8806  ;
8807  return 0;
8808}
8809_ACEOF
8810if ac_fn_c_try_link "$LINENO"
8811then :
8812  eval $cacheid=yes
8813else case e in #(
8814  e) eval $cacheid=no ;;
8815esac
8816fi
8817rm -f core conftest.err conftest.$ac_objext conftest.beam \
8818    conftest$ac_exeext conftest.$ac_ext ;;
8819esac
8820fi
8821
8822
8823		CFLAGS="$xorg_testset_save_CFLAGS"
8824
8825		eval supported=\$$cacheid
8826		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8827printf "%s\n" "$supported" >&6; }
8828		if test "$supported" = "yes" ; then
8829			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8830			found="yes"
8831		fi
8832	fi
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848xorg_testset_save_CFLAGS="$CFLAGS"
8849
8850if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8851	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8852	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8853printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8854if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8855then :
8856  printf %s "(cached) " >&6
8857else case e in #(
8858  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8859/* end confdefs.h.  */
8860int i;
8861_ACEOF
8862if ac_fn_c_try_compile "$LINENO"
8863then :
8864  xorg_cv_cc_flag_unknown_warning_option=yes
8865else case e in #(
8866  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8867esac
8868fi
8869rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8870esac
8871fi
8872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8873printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8874	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8875	CFLAGS="$xorg_testset_save_CFLAGS"
8876fi
8877
8878if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8879	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8880		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8881	fi
8882	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8883	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8884printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8885if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8886then :
8887  printf %s "(cached) " >&6
8888else case e in #(
8889  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8890/* end confdefs.h.  */
8891int i;
8892_ACEOF
8893if ac_fn_c_try_compile "$LINENO"
8894then :
8895  xorg_cv_cc_flag_unused_command_line_argument=yes
8896else case e in #(
8897  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8898esac
8899fi
8900rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8901esac
8902fi
8903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8904printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8905	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8906	CFLAGS="$xorg_testset_save_CFLAGS"
8907fi
8908
8909found="no"
8910
8911	if test $found = "no" ; then
8912		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8913			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8914		fi
8915
8916		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8917			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8918		fi
8919
8920		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8921
8922		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8923printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8924		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8925		if eval test \${$cacheid+y}
8926then :
8927  printf %s "(cached) " >&6
8928else case e in #(
8929  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930/* end confdefs.h.  */
8931int i;
8932int
8933main (void)
8934{
8935
8936  ;
8937  return 0;
8938}
8939_ACEOF
8940if ac_fn_c_try_link "$LINENO"
8941then :
8942  eval $cacheid=yes
8943else case e in #(
8944  e) eval $cacheid=no ;;
8945esac
8946fi
8947rm -f core conftest.err conftest.$ac_objext conftest.beam \
8948    conftest$ac_exeext conftest.$ac_ext ;;
8949esac
8950fi
8951
8952
8953		CFLAGS="$xorg_testset_save_CFLAGS"
8954
8955		eval supported=\$$cacheid
8956		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8957printf "%s\n" "$supported" >&6; }
8958		if test "$supported" = "yes" ; then
8959			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8960			found="yes"
8961		fi
8962	fi
8963
8964	if test $found = "no" ; then
8965		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8966			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8967		fi
8968
8969		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8970			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8971		fi
8972
8973		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8974
8975		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8976printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8977		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8978		if eval test \${$cacheid+y}
8979then :
8980  printf %s "(cached) " >&6
8981else case e in #(
8982  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8983/* end confdefs.h.  */
8984int i;
8985int
8986main (void)
8987{
8988
8989  ;
8990  return 0;
8991}
8992_ACEOF
8993if ac_fn_c_try_link "$LINENO"
8994then :
8995  eval $cacheid=yes
8996else case e in #(
8997  e) eval $cacheid=no ;;
8998esac
8999fi
9000rm -f core conftest.err conftest.$ac_objext conftest.beam \
9001    conftest$ac_exeext conftest.$ac_ext ;;
9002esac
9003fi
9004
9005
9006		CFLAGS="$xorg_testset_save_CFLAGS"
9007
9008		eval supported=\$$cacheid
9009		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9010printf "%s\n" "$supported" >&6; }
9011		if test "$supported" = "yes" ; then
9012			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9013			found="yes"
9014		fi
9015	fi
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031xorg_testset_save_CFLAGS="$CFLAGS"
9032
9033if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9034	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9035	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9036printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9037if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9038then :
9039  printf %s "(cached) " >&6
9040else case e in #(
9041  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9042/* end confdefs.h.  */
9043int i;
9044_ACEOF
9045if ac_fn_c_try_compile "$LINENO"
9046then :
9047  xorg_cv_cc_flag_unknown_warning_option=yes
9048else case e in #(
9049  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9050esac
9051fi
9052rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9053esac
9054fi
9055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9056printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9057	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9058	CFLAGS="$xorg_testset_save_CFLAGS"
9059fi
9060
9061if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9062	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9063		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9064	fi
9065	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9066	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9067printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9068if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9069then :
9070  printf %s "(cached) " >&6
9071else case e in #(
9072  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9073/* end confdefs.h.  */
9074int i;
9075_ACEOF
9076if ac_fn_c_try_compile "$LINENO"
9077then :
9078  xorg_cv_cc_flag_unused_command_line_argument=yes
9079else case e in #(
9080  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9081esac
9082fi
9083rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9084esac
9085fi
9086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9087printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9088	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9089	CFLAGS="$xorg_testset_save_CFLAGS"
9090fi
9091
9092found="no"
9093
9094	if test $found = "no" ; then
9095		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9096			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9097		fi
9098
9099		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9100			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9101		fi
9102
9103		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9104
9105		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9106printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9107		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9108		if eval test \${$cacheid+y}
9109then :
9110  printf %s "(cached) " >&6
9111else case e in #(
9112  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9113/* end confdefs.h.  */
9114int i;
9115int
9116main (void)
9117{
9118
9119  ;
9120  return 0;
9121}
9122_ACEOF
9123if ac_fn_c_try_link "$LINENO"
9124then :
9125  eval $cacheid=yes
9126else case e in #(
9127  e) eval $cacheid=no ;;
9128esac
9129fi
9130rm -f core conftest.err conftest.$ac_objext conftest.beam \
9131    conftest$ac_exeext conftest.$ac_ext ;;
9132esac
9133fi
9134
9135
9136		CFLAGS="$xorg_testset_save_CFLAGS"
9137
9138		eval supported=\$$cacheid
9139		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9140printf "%s\n" "$supported" >&6; }
9141		if test "$supported" = "yes" ; then
9142			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9143			found="yes"
9144		fi
9145	fi
9146
9147 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9148else
9149{ 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
9150printf "%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;}
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164xorg_testset_save_CFLAGS="$CFLAGS"
9165
9166if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9167	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9168	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9169printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9170if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9171then :
9172  printf %s "(cached) " >&6
9173else case e in #(
9174  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9175/* end confdefs.h.  */
9176int i;
9177_ACEOF
9178if ac_fn_c_try_compile "$LINENO"
9179then :
9180  xorg_cv_cc_flag_unknown_warning_option=yes
9181else case e in #(
9182  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9183esac
9184fi
9185rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9186esac
9187fi
9188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9189printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9190	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9191	CFLAGS="$xorg_testset_save_CFLAGS"
9192fi
9193
9194if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9195	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9196		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9197	fi
9198	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9199	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9200printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9201if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9202then :
9203  printf %s "(cached) " >&6
9204else case e in #(
9205  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206/* end confdefs.h.  */
9207int i;
9208_ACEOF
9209if ac_fn_c_try_compile "$LINENO"
9210then :
9211  xorg_cv_cc_flag_unused_command_line_argument=yes
9212else case e in #(
9213  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9214esac
9215fi
9216rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9217esac
9218fi
9219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9220printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9221	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9222	CFLAGS="$xorg_testset_save_CFLAGS"
9223fi
9224
9225found="no"
9226
9227	if test $found = "no" ; then
9228		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9229			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9230		fi
9231
9232		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9233			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9234		fi
9235
9236		CFLAGS="$CFLAGS -Wimplicit"
9237
9238		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9239printf %s "checking if $CC supports -Wimplicit... " >&6; }
9240		cacheid=xorg_cv_cc_flag__Wimplicit
9241		if eval test \${$cacheid+y}
9242then :
9243  printf %s "(cached) " >&6
9244else case e in #(
9245  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9246/* end confdefs.h.  */
9247int i;
9248int
9249main (void)
9250{
9251
9252  ;
9253  return 0;
9254}
9255_ACEOF
9256if ac_fn_c_try_link "$LINENO"
9257then :
9258  eval $cacheid=yes
9259else case e in #(
9260  e) eval $cacheid=no ;;
9261esac
9262fi
9263rm -f core conftest.err conftest.$ac_objext conftest.beam \
9264    conftest$ac_exeext conftest.$ac_ext ;;
9265esac
9266fi
9267
9268
9269		CFLAGS="$xorg_testset_save_CFLAGS"
9270
9271		eval supported=\$$cacheid
9272		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9273printf "%s\n" "$supported" >&6; }
9274		if test "$supported" = "yes" ; then
9275			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9276			found="yes"
9277		fi
9278	fi
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294xorg_testset_save_CFLAGS="$CFLAGS"
9295
9296if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9297	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9298	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9299printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9300if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9301then :
9302  printf %s "(cached) " >&6
9303else case e in #(
9304  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9305/* end confdefs.h.  */
9306int i;
9307_ACEOF
9308if ac_fn_c_try_compile "$LINENO"
9309then :
9310  xorg_cv_cc_flag_unknown_warning_option=yes
9311else case e in #(
9312  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9313esac
9314fi
9315rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9316esac
9317fi
9318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9319printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9320	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9321	CFLAGS="$xorg_testset_save_CFLAGS"
9322fi
9323
9324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9325	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9326		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9327	fi
9328	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9329	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9330printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9331if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9332then :
9333  printf %s "(cached) " >&6
9334else case e in #(
9335  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9336/* end confdefs.h.  */
9337int i;
9338_ACEOF
9339if ac_fn_c_try_compile "$LINENO"
9340then :
9341  xorg_cv_cc_flag_unused_command_line_argument=yes
9342else case e in #(
9343  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9344esac
9345fi
9346rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9347esac
9348fi
9349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9350printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9351	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9352	CFLAGS="$xorg_testset_save_CFLAGS"
9353fi
9354
9355found="no"
9356
9357	if test $found = "no" ; then
9358		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9359			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9360		fi
9361
9362		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9363			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9364		fi
9365
9366		CFLAGS="$CFLAGS -Wnonnull"
9367
9368		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9369printf %s "checking if $CC supports -Wnonnull... " >&6; }
9370		cacheid=xorg_cv_cc_flag__Wnonnull
9371		if eval test \${$cacheid+y}
9372then :
9373  printf %s "(cached) " >&6
9374else case e in #(
9375  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9376/* end confdefs.h.  */
9377int i;
9378int
9379main (void)
9380{
9381
9382  ;
9383  return 0;
9384}
9385_ACEOF
9386if ac_fn_c_try_link "$LINENO"
9387then :
9388  eval $cacheid=yes
9389else case e in #(
9390  e) eval $cacheid=no ;;
9391esac
9392fi
9393rm -f core conftest.err conftest.$ac_objext conftest.beam \
9394    conftest$ac_exeext conftest.$ac_ext ;;
9395esac
9396fi
9397
9398
9399		CFLAGS="$xorg_testset_save_CFLAGS"
9400
9401		eval supported=\$$cacheid
9402		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9403printf "%s\n" "$supported" >&6; }
9404		if test "$supported" = "yes" ; then
9405			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9406			found="yes"
9407		fi
9408	fi
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424xorg_testset_save_CFLAGS="$CFLAGS"
9425
9426if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9427	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9428	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9429printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9430if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9431then :
9432  printf %s "(cached) " >&6
9433else case e in #(
9434  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9435/* end confdefs.h.  */
9436int i;
9437_ACEOF
9438if ac_fn_c_try_compile "$LINENO"
9439then :
9440  xorg_cv_cc_flag_unknown_warning_option=yes
9441else case e in #(
9442  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9443esac
9444fi
9445rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9446esac
9447fi
9448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9449printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9450	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9451	CFLAGS="$xorg_testset_save_CFLAGS"
9452fi
9453
9454if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9455	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9456		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9457	fi
9458	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9459	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9460printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9461if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9462then :
9463  printf %s "(cached) " >&6
9464else case e in #(
9465  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9466/* end confdefs.h.  */
9467int i;
9468_ACEOF
9469if ac_fn_c_try_compile "$LINENO"
9470then :
9471  xorg_cv_cc_flag_unused_command_line_argument=yes
9472else case e in #(
9473  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9474esac
9475fi
9476rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9477esac
9478fi
9479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9480printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9481	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9482	CFLAGS="$xorg_testset_save_CFLAGS"
9483fi
9484
9485found="no"
9486
9487	if test $found = "no" ; then
9488		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9489			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9490		fi
9491
9492		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9493			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9494		fi
9495
9496		CFLAGS="$CFLAGS -Winit-self"
9497
9498		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9499printf %s "checking if $CC supports -Winit-self... " >&6; }
9500		cacheid=xorg_cv_cc_flag__Winit_self
9501		if eval test \${$cacheid+y}
9502then :
9503  printf %s "(cached) " >&6
9504else case e in #(
9505  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9506/* end confdefs.h.  */
9507int i;
9508int
9509main (void)
9510{
9511
9512  ;
9513  return 0;
9514}
9515_ACEOF
9516if ac_fn_c_try_link "$LINENO"
9517then :
9518  eval $cacheid=yes
9519else case e in #(
9520  e) eval $cacheid=no ;;
9521esac
9522fi
9523rm -f core conftest.err conftest.$ac_objext conftest.beam \
9524    conftest$ac_exeext conftest.$ac_ext ;;
9525esac
9526fi
9527
9528
9529		CFLAGS="$xorg_testset_save_CFLAGS"
9530
9531		eval supported=\$$cacheid
9532		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9533printf "%s\n" "$supported" >&6; }
9534		if test "$supported" = "yes" ; then
9535			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9536			found="yes"
9537		fi
9538	fi
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554xorg_testset_save_CFLAGS="$CFLAGS"
9555
9556if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9557	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9558	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9559printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9560if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9561then :
9562  printf %s "(cached) " >&6
9563else case e in #(
9564  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9565/* end confdefs.h.  */
9566int i;
9567_ACEOF
9568if ac_fn_c_try_compile "$LINENO"
9569then :
9570  xorg_cv_cc_flag_unknown_warning_option=yes
9571else case e in #(
9572  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9573esac
9574fi
9575rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9576esac
9577fi
9578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9579printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9580	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9581	CFLAGS="$xorg_testset_save_CFLAGS"
9582fi
9583
9584if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9585	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9586		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9587	fi
9588	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9589	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9590printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9591if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9592then :
9593  printf %s "(cached) " >&6
9594else case e in #(
9595  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596/* end confdefs.h.  */
9597int i;
9598_ACEOF
9599if ac_fn_c_try_compile "$LINENO"
9600then :
9601  xorg_cv_cc_flag_unused_command_line_argument=yes
9602else case e in #(
9603  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9604esac
9605fi
9606rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9607esac
9608fi
9609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9610printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9611	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9612	CFLAGS="$xorg_testset_save_CFLAGS"
9613fi
9614
9615found="no"
9616
9617	if test $found = "no" ; then
9618		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9619			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9620		fi
9621
9622		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9623			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9624		fi
9625
9626		CFLAGS="$CFLAGS -Wmain"
9627
9628		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9629printf %s "checking if $CC supports -Wmain... " >&6; }
9630		cacheid=xorg_cv_cc_flag__Wmain
9631		if eval test \${$cacheid+y}
9632then :
9633  printf %s "(cached) " >&6
9634else case e in #(
9635  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636/* end confdefs.h.  */
9637int i;
9638int
9639main (void)
9640{
9641
9642  ;
9643  return 0;
9644}
9645_ACEOF
9646if ac_fn_c_try_link "$LINENO"
9647then :
9648  eval $cacheid=yes
9649else case e in #(
9650  e) eval $cacheid=no ;;
9651esac
9652fi
9653rm -f core conftest.err conftest.$ac_objext conftest.beam \
9654    conftest$ac_exeext conftest.$ac_ext ;;
9655esac
9656fi
9657
9658
9659		CFLAGS="$xorg_testset_save_CFLAGS"
9660
9661		eval supported=\$$cacheid
9662		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9663printf "%s\n" "$supported" >&6; }
9664		if test "$supported" = "yes" ; then
9665			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9666			found="yes"
9667		fi
9668	fi
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684xorg_testset_save_CFLAGS="$CFLAGS"
9685
9686if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9687	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9688	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9689printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9690if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9691then :
9692  printf %s "(cached) " >&6
9693else case e in #(
9694  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9695/* end confdefs.h.  */
9696int i;
9697_ACEOF
9698if ac_fn_c_try_compile "$LINENO"
9699then :
9700  xorg_cv_cc_flag_unknown_warning_option=yes
9701else case e in #(
9702  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9703esac
9704fi
9705rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9706esac
9707fi
9708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9709printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9710	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9711	CFLAGS="$xorg_testset_save_CFLAGS"
9712fi
9713
9714if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9715	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9716		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9717	fi
9718	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9719	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9720printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9721if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9722then :
9723  printf %s "(cached) " >&6
9724else case e in #(
9725  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9726/* end confdefs.h.  */
9727int i;
9728_ACEOF
9729if ac_fn_c_try_compile "$LINENO"
9730then :
9731  xorg_cv_cc_flag_unused_command_line_argument=yes
9732else case e in #(
9733  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9734esac
9735fi
9736rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9737esac
9738fi
9739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9740printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9741	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9742	CFLAGS="$xorg_testset_save_CFLAGS"
9743fi
9744
9745found="no"
9746
9747	if test $found = "no" ; then
9748		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9749			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9750		fi
9751
9752		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9753			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9754		fi
9755
9756		CFLAGS="$CFLAGS -Wmissing-braces"
9757
9758		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9759printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9760		cacheid=xorg_cv_cc_flag__Wmissing_braces
9761		if eval test \${$cacheid+y}
9762then :
9763  printf %s "(cached) " >&6
9764else case e in #(
9765  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9766/* end confdefs.h.  */
9767int i;
9768int
9769main (void)
9770{
9771
9772  ;
9773  return 0;
9774}
9775_ACEOF
9776if ac_fn_c_try_link "$LINENO"
9777then :
9778  eval $cacheid=yes
9779else case e in #(
9780  e) eval $cacheid=no ;;
9781esac
9782fi
9783rm -f core conftest.err conftest.$ac_objext conftest.beam \
9784    conftest$ac_exeext conftest.$ac_ext ;;
9785esac
9786fi
9787
9788
9789		CFLAGS="$xorg_testset_save_CFLAGS"
9790
9791		eval supported=\$$cacheid
9792		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9793printf "%s\n" "$supported" >&6; }
9794		if test "$supported" = "yes" ; then
9795			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9796			found="yes"
9797		fi
9798	fi
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814xorg_testset_save_CFLAGS="$CFLAGS"
9815
9816if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9817	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9818	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9819printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9820if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9821then :
9822  printf %s "(cached) " >&6
9823else case e in #(
9824  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9825/* end confdefs.h.  */
9826int i;
9827_ACEOF
9828if ac_fn_c_try_compile "$LINENO"
9829then :
9830  xorg_cv_cc_flag_unknown_warning_option=yes
9831else case e in #(
9832  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9833esac
9834fi
9835rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9836esac
9837fi
9838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9839printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9840	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9841	CFLAGS="$xorg_testset_save_CFLAGS"
9842fi
9843
9844if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9845	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9846		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9847	fi
9848	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9849	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9850printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9851if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9852then :
9853  printf %s "(cached) " >&6
9854else case e in #(
9855  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9856/* end confdefs.h.  */
9857int i;
9858_ACEOF
9859if ac_fn_c_try_compile "$LINENO"
9860then :
9861  xorg_cv_cc_flag_unused_command_line_argument=yes
9862else case e in #(
9863  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9864esac
9865fi
9866rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9867esac
9868fi
9869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9870printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9871	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9872	CFLAGS="$xorg_testset_save_CFLAGS"
9873fi
9874
9875found="no"
9876
9877	if test $found = "no" ; then
9878		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9879			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9880		fi
9881
9882		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9883			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9884		fi
9885
9886		CFLAGS="$CFLAGS -Wsequence-point"
9887
9888		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9889printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9890		cacheid=xorg_cv_cc_flag__Wsequence_point
9891		if eval test \${$cacheid+y}
9892then :
9893  printf %s "(cached) " >&6
9894else case e in #(
9895  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9896/* end confdefs.h.  */
9897int i;
9898int
9899main (void)
9900{
9901
9902  ;
9903  return 0;
9904}
9905_ACEOF
9906if ac_fn_c_try_link "$LINENO"
9907then :
9908  eval $cacheid=yes
9909else case e in #(
9910  e) eval $cacheid=no ;;
9911esac
9912fi
9913rm -f core conftest.err conftest.$ac_objext conftest.beam \
9914    conftest$ac_exeext conftest.$ac_ext ;;
9915esac
9916fi
9917
9918
9919		CFLAGS="$xorg_testset_save_CFLAGS"
9920
9921		eval supported=\$$cacheid
9922		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9923printf "%s\n" "$supported" >&6; }
9924		if test "$supported" = "yes" ; then
9925			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9926			found="yes"
9927		fi
9928	fi
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944xorg_testset_save_CFLAGS="$CFLAGS"
9945
9946if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9947	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9948	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9949printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9950if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9951then :
9952  printf %s "(cached) " >&6
9953else case e in #(
9954  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955/* end confdefs.h.  */
9956int i;
9957_ACEOF
9958if ac_fn_c_try_compile "$LINENO"
9959then :
9960  xorg_cv_cc_flag_unknown_warning_option=yes
9961else case e in #(
9962  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9963esac
9964fi
9965rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9966esac
9967fi
9968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9969printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9970	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9971	CFLAGS="$xorg_testset_save_CFLAGS"
9972fi
9973
9974if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9975	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9976		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9977	fi
9978	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9979	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9980printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9981if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9982then :
9983  printf %s "(cached) " >&6
9984else case e in #(
9985  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9986/* end confdefs.h.  */
9987int i;
9988_ACEOF
9989if ac_fn_c_try_compile "$LINENO"
9990then :
9991  xorg_cv_cc_flag_unused_command_line_argument=yes
9992else case e in #(
9993  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9994esac
9995fi
9996rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9997esac
9998fi
9999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10000printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10001	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10002	CFLAGS="$xorg_testset_save_CFLAGS"
10003fi
10004
10005found="no"
10006
10007	if test $found = "no" ; then
10008		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10009			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10010		fi
10011
10012		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10013			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10014		fi
10015
10016		CFLAGS="$CFLAGS -Wreturn-type"
10017
10018		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10019printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10020		cacheid=xorg_cv_cc_flag__Wreturn_type
10021		if eval test \${$cacheid+y}
10022then :
10023  printf %s "(cached) " >&6
10024else case e in #(
10025  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10026/* end confdefs.h.  */
10027int i;
10028int
10029main (void)
10030{
10031
10032  ;
10033  return 0;
10034}
10035_ACEOF
10036if ac_fn_c_try_link "$LINENO"
10037then :
10038  eval $cacheid=yes
10039else case e in #(
10040  e) eval $cacheid=no ;;
10041esac
10042fi
10043rm -f core conftest.err conftest.$ac_objext conftest.beam \
10044    conftest$ac_exeext conftest.$ac_ext ;;
10045esac
10046fi
10047
10048
10049		CFLAGS="$xorg_testset_save_CFLAGS"
10050
10051		eval supported=\$$cacheid
10052		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10053printf "%s\n" "$supported" >&6; }
10054		if test "$supported" = "yes" ; then
10055			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10056			found="yes"
10057		fi
10058	fi
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074xorg_testset_save_CFLAGS="$CFLAGS"
10075
10076if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10077	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10078	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10079printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10080if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10081then :
10082  printf %s "(cached) " >&6
10083else case e in #(
10084  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10085/* end confdefs.h.  */
10086int i;
10087_ACEOF
10088if ac_fn_c_try_compile "$LINENO"
10089then :
10090  xorg_cv_cc_flag_unknown_warning_option=yes
10091else case e in #(
10092  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10093esac
10094fi
10095rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10096esac
10097fi
10098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10099printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10100	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10101	CFLAGS="$xorg_testset_save_CFLAGS"
10102fi
10103
10104if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10105	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10106		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10107	fi
10108	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10109	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10110printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10111if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10112then :
10113  printf %s "(cached) " >&6
10114else case e in #(
10115  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10116/* end confdefs.h.  */
10117int i;
10118_ACEOF
10119if ac_fn_c_try_compile "$LINENO"
10120then :
10121  xorg_cv_cc_flag_unused_command_line_argument=yes
10122else case e in #(
10123  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10124esac
10125fi
10126rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10127esac
10128fi
10129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10130printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10131	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10132	CFLAGS="$xorg_testset_save_CFLAGS"
10133fi
10134
10135found="no"
10136
10137	if test $found = "no" ; then
10138		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10139			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10140		fi
10141
10142		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10143			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10144		fi
10145
10146		CFLAGS="$CFLAGS -Wtrigraphs"
10147
10148		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10149printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10150		cacheid=xorg_cv_cc_flag__Wtrigraphs
10151		if eval test \${$cacheid+y}
10152then :
10153  printf %s "(cached) " >&6
10154else case e in #(
10155  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10156/* end confdefs.h.  */
10157int i;
10158int
10159main (void)
10160{
10161
10162  ;
10163  return 0;
10164}
10165_ACEOF
10166if ac_fn_c_try_link "$LINENO"
10167then :
10168  eval $cacheid=yes
10169else case e in #(
10170  e) eval $cacheid=no ;;
10171esac
10172fi
10173rm -f core conftest.err conftest.$ac_objext conftest.beam \
10174    conftest$ac_exeext conftest.$ac_ext ;;
10175esac
10176fi
10177
10178
10179		CFLAGS="$xorg_testset_save_CFLAGS"
10180
10181		eval supported=\$$cacheid
10182		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10183printf "%s\n" "$supported" >&6; }
10184		if test "$supported" = "yes" ; then
10185			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10186			found="yes"
10187		fi
10188	fi
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204xorg_testset_save_CFLAGS="$CFLAGS"
10205
10206if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10207	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10208	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10209printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10210if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10211then :
10212  printf %s "(cached) " >&6
10213else case e in #(
10214  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10215/* end confdefs.h.  */
10216int i;
10217_ACEOF
10218if ac_fn_c_try_compile "$LINENO"
10219then :
10220  xorg_cv_cc_flag_unknown_warning_option=yes
10221else case e in #(
10222  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10223esac
10224fi
10225rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10226esac
10227fi
10228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10229printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10230	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10231	CFLAGS="$xorg_testset_save_CFLAGS"
10232fi
10233
10234if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10235	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10236		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10237	fi
10238	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10239	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10240printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10241if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10242then :
10243  printf %s "(cached) " >&6
10244else case e in #(
10245  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10246/* end confdefs.h.  */
10247int i;
10248_ACEOF
10249if ac_fn_c_try_compile "$LINENO"
10250then :
10251  xorg_cv_cc_flag_unused_command_line_argument=yes
10252else case e in #(
10253  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10254esac
10255fi
10256rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10257esac
10258fi
10259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10260printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10261	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10262	CFLAGS="$xorg_testset_save_CFLAGS"
10263fi
10264
10265found="no"
10266
10267	if test $found = "no" ; then
10268		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10269			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10270		fi
10271
10272		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10273			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10274		fi
10275
10276		CFLAGS="$CFLAGS -Warray-bounds"
10277
10278		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10279printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10280		cacheid=xorg_cv_cc_flag__Warray_bounds
10281		if eval test \${$cacheid+y}
10282then :
10283  printf %s "(cached) " >&6
10284else case e in #(
10285  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10286/* end confdefs.h.  */
10287int i;
10288int
10289main (void)
10290{
10291
10292  ;
10293  return 0;
10294}
10295_ACEOF
10296if ac_fn_c_try_link "$LINENO"
10297then :
10298  eval $cacheid=yes
10299else case e in #(
10300  e) eval $cacheid=no ;;
10301esac
10302fi
10303rm -f core conftest.err conftest.$ac_objext conftest.beam \
10304    conftest$ac_exeext conftest.$ac_ext ;;
10305esac
10306fi
10307
10308
10309		CFLAGS="$xorg_testset_save_CFLAGS"
10310
10311		eval supported=\$$cacheid
10312		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10313printf "%s\n" "$supported" >&6; }
10314		if test "$supported" = "yes" ; then
10315			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10316			found="yes"
10317		fi
10318	fi
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334xorg_testset_save_CFLAGS="$CFLAGS"
10335
10336if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10337	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10338	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10339printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10340if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10341then :
10342  printf %s "(cached) " >&6
10343else case e in #(
10344  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10345/* end confdefs.h.  */
10346int i;
10347_ACEOF
10348if ac_fn_c_try_compile "$LINENO"
10349then :
10350  xorg_cv_cc_flag_unknown_warning_option=yes
10351else case e in #(
10352  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10353esac
10354fi
10355rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10356esac
10357fi
10358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10359printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10360	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10361	CFLAGS="$xorg_testset_save_CFLAGS"
10362fi
10363
10364if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10365	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10366		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10367	fi
10368	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10369	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10370printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10371if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10372then :
10373  printf %s "(cached) " >&6
10374else case e in #(
10375  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10376/* end confdefs.h.  */
10377int i;
10378_ACEOF
10379if ac_fn_c_try_compile "$LINENO"
10380then :
10381  xorg_cv_cc_flag_unused_command_line_argument=yes
10382else case e in #(
10383  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10384esac
10385fi
10386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10387esac
10388fi
10389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10390printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10391	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10392	CFLAGS="$xorg_testset_save_CFLAGS"
10393fi
10394
10395found="no"
10396
10397	if test $found = "no" ; then
10398		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10399			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10400		fi
10401
10402		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10403			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10404		fi
10405
10406		CFLAGS="$CFLAGS -Wwrite-strings"
10407
10408		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10409printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10410		cacheid=xorg_cv_cc_flag__Wwrite_strings
10411		if eval test \${$cacheid+y}
10412then :
10413  printf %s "(cached) " >&6
10414else case e in #(
10415  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10416/* end confdefs.h.  */
10417int i;
10418int
10419main (void)
10420{
10421
10422  ;
10423  return 0;
10424}
10425_ACEOF
10426if ac_fn_c_try_link "$LINENO"
10427then :
10428  eval $cacheid=yes
10429else case e in #(
10430  e) eval $cacheid=no ;;
10431esac
10432fi
10433rm -f core conftest.err conftest.$ac_objext conftest.beam \
10434    conftest$ac_exeext conftest.$ac_ext ;;
10435esac
10436fi
10437
10438
10439		CFLAGS="$xorg_testset_save_CFLAGS"
10440
10441		eval supported=\$$cacheid
10442		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10443printf "%s\n" "$supported" >&6; }
10444		if test "$supported" = "yes" ; then
10445			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10446			found="yes"
10447		fi
10448	fi
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464xorg_testset_save_CFLAGS="$CFLAGS"
10465
10466if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10467	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10468	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10469printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10470if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10471then :
10472  printf %s "(cached) " >&6
10473else case e in #(
10474  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10475/* end confdefs.h.  */
10476int i;
10477_ACEOF
10478if ac_fn_c_try_compile "$LINENO"
10479then :
10480  xorg_cv_cc_flag_unknown_warning_option=yes
10481else case e in #(
10482  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10483esac
10484fi
10485rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10486esac
10487fi
10488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10489printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10490	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10491	CFLAGS="$xorg_testset_save_CFLAGS"
10492fi
10493
10494if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10495	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10496		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10497	fi
10498	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10499	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10500printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10501if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10502then :
10503  printf %s "(cached) " >&6
10504else case e in #(
10505  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10506/* end confdefs.h.  */
10507int i;
10508_ACEOF
10509if ac_fn_c_try_compile "$LINENO"
10510then :
10511  xorg_cv_cc_flag_unused_command_line_argument=yes
10512else case e in #(
10513  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10514esac
10515fi
10516rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10517esac
10518fi
10519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10520printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10521	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10522	CFLAGS="$xorg_testset_save_CFLAGS"
10523fi
10524
10525found="no"
10526
10527	if test $found = "no" ; then
10528		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10529			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10530		fi
10531
10532		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10533			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10534		fi
10535
10536		CFLAGS="$CFLAGS -Waddress"
10537
10538		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10539printf %s "checking if $CC supports -Waddress... " >&6; }
10540		cacheid=xorg_cv_cc_flag__Waddress
10541		if eval test \${$cacheid+y}
10542then :
10543  printf %s "(cached) " >&6
10544else case e in #(
10545  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10546/* end confdefs.h.  */
10547int i;
10548int
10549main (void)
10550{
10551
10552  ;
10553  return 0;
10554}
10555_ACEOF
10556if ac_fn_c_try_link "$LINENO"
10557then :
10558  eval $cacheid=yes
10559else case e in #(
10560  e) eval $cacheid=no ;;
10561esac
10562fi
10563rm -f core conftest.err conftest.$ac_objext conftest.beam \
10564    conftest$ac_exeext conftest.$ac_ext ;;
10565esac
10566fi
10567
10568
10569		CFLAGS="$xorg_testset_save_CFLAGS"
10570
10571		eval supported=\$$cacheid
10572		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10573printf "%s\n" "$supported" >&6; }
10574		if test "$supported" = "yes" ; then
10575			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10576			found="yes"
10577		fi
10578	fi
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594xorg_testset_save_CFLAGS="$CFLAGS"
10595
10596if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10597	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10598	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10599printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10600if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10601then :
10602  printf %s "(cached) " >&6
10603else case e in #(
10604  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10605/* end confdefs.h.  */
10606int i;
10607_ACEOF
10608if ac_fn_c_try_compile "$LINENO"
10609then :
10610  xorg_cv_cc_flag_unknown_warning_option=yes
10611else case e in #(
10612  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10613esac
10614fi
10615rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10616esac
10617fi
10618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10619printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10620	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10621	CFLAGS="$xorg_testset_save_CFLAGS"
10622fi
10623
10624if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10625	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10626		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10627	fi
10628	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10629	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10630printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10631if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10632then :
10633  printf %s "(cached) " >&6
10634else case e in #(
10635  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10636/* end confdefs.h.  */
10637int i;
10638_ACEOF
10639if ac_fn_c_try_compile "$LINENO"
10640then :
10641  xorg_cv_cc_flag_unused_command_line_argument=yes
10642else case e in #(
10643  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10644esac
10645fi
10646rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10647esac
10648fi
10649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10650printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10651	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10652	CFLAGS="$xorg_testset_save_CFLAGS"
10653fi
10654
10655found="no"
10656
10657	if test $found = "no" ; then
10658		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10659			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10660		fi
10661
10662		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10663			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10664		fi
10665
10666		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10667
10668		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10669printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10670		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10671		if eval test \${$cacheid+y}
10672then :
10673  printf %s "(cached) " >&6
10674else case e in #(
10675  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676/* end confdefs.h.  */
10677int i;
10678int
10679main (void)
10680{
10681
10682  ;
10683  return 0;
10684}
10685_ACEOF
10686if ac_fn_c_try_link "$LINENO"
10687then :
10688  eval $cacheid=yes
10689else case e in #(
10690  e) eval $cacheid=no ;;
10691esac
10692fi
10693rm -f core conftest.err conftest.$ac_objext conftest.beam \
10694    conftest$ac_exeext conftest.$ac_ext ;;
10695esac
10696fi
10697
10698
10699		CFLAGS="$xorg_testset_save_CFLAGS"
10700
10701		eval supported=\$$cacheid
10702		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10703printf "%s\n" "$supported" >&6; }
10704		if test "$supported" = "yes" ; then
10705			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10706			found="yes"
10707		fi
10708	fi
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724xorg_testset_save_CFLAGS="$CFLAGS"
10725
10726if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10727	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10728	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10729printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10730if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10731then :
10732  printf %s "(cached) " >&6
10733else case e in #(
10734  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10735/* end confdefs.h.  */
10736int i;
10737_ACEOF
10738if ac_fn_c_try_compile "$LINENO"
10739then :
10740  xorg_cv_cc_flag_unknown_warning_option=yes
10741else case e in #(
10742  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10743esac
10744fi
10745rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10746esac
10747fi
10748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10749printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10750	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10751	CFLAGS="$xorg_testset_save_CFLAGS"
10752fi
10753
10754if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10755	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10756		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10757	fi
10758	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10759	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10760printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10761if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10762then :
10763  printf %s "(cached) " >&6
10764else case e in #(
10765  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10766/* end confdefs.h.  */
10767int i;
10768_ACEOF
10769if ac_fn_c_try_compile "$LINENO"
10770then :
10771  xorg_cv_cc_flag_unused_command_line_argument=yes
10772else case e in #(
10773  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10774esac
10775fi
10776rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10777esac
10778fi
10779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10780printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10781	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10782	CFLAGS="$xorg_testset_save_CFLAGS"
10783fi
10784
10785found="no"
10786
10787	if test $found = "no" ; then
10788		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10789			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10790		fi
10791
10792		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10793			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10794		fi
10795
10796		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10797
10798		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10799printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10800		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10801		if eval test \${$cacheid+y}
10802then :
10803  printf %s "(cached) " >&6
10804else case e in #(
10805  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10806/* end confdefs.h.  */
10807int i;
10808int
10809main (void)
10810{
10811
10812  ;
10813  return 0;
10814}
10815_ACEOF
10816if ac_fn_c_try_link "$LINENO"
10817then :
10818  eval $cacheid=yes
10819else case e in #(
10820  e) eval $cacheid=no ;;
10821esac
10822fi
10823rm -f core conftest.err conftest.$ac_objext conftest.beam \
10824    conftest$ac_exeext conftest.$ac_ext ;;
10825esac
10826fi
10827
10828
10829		CFLAGS="$xorg_testset_save_CFLAGS"
10830
10831		eval supported=\$$cacheid
10832		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10833printf "%s\n" "$supported" >&6; }
10834		if test "$supported" = "yes" ; then
10835			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10836			found="yes"
10837		fi
10838	fi
10839
10840
10841fi
10842
10843
10844
10845
10846
10847
10848
10849		CWARNFLAGS="$BASE_CFLAGS"
10850		if  test "x$GCC" = xyes ; then
10851		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10852		fi
10853
10854
10855
10856
10857
10858
10859
10860
10861# Check whether --enable-strict-compilation was given.
10862if test ${enable_strict_compilation+y}
10863then :
10864  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10865else case e in #(
10866  e) STRICT_COMPILE=no ;;
10867esac
10868fi
10869
10870
10871
10872
10873
10874
10875STRICT_CFLAGS=""
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889xorg_testset_save_CFLAGS="$CFLAGS"
10890
10891if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10892	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10893	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10894printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10895if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10896then :
10897  printf %s "(cached) " >&6
10898else case e in #(
10899  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10900/* end confdefs.h.  */
10901int i;
10902_ACEOF
10903if ac_fn_c_try_compile "$LINENO"
10904then :
10905  xorg_cv_cc_flag_unknown_warning_option=yes
10906else case e in #(
10907  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10908esac
10909fi
10910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10911esac
10912fi
10913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10914printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10915	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10916	CFLAGS="$xorg_testset_save_CFLAGS"
10917fi
10918
10919if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10920	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10921		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10922	fi
10923	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10924	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10925printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10926if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10927then :
10928  printf %s "(cached) " >&6
10929else case e in #(
10930  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10931/* end confdefs.h.  */
10932int i;
10933_ACEOF
10934if ac_fn_c_try_compile "$LINENO"
10935then :
10936  xorg_cv_cc_flag_unused_command_line_argument=yes
10937else case e in #(
10938  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10939esac
10940fi
10941rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10942esac
10943fi
10944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10945printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10946	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10947	CFLAGS="$xorg_testset_save_CFLAGS"
10948fi
10949
10950found="no"
10951
10952	if test $found = "no" ; then
10953		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10954			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10955		fi
10956
10957		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10958			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10959		fi
10960
10961		CFLAGS="$CFLAGS -pedantic"
10962
10963		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10964printf %s "checking if $CC supports -pedantic... " >&6; }
10965		cacheid=xorg_cv_cc_flag__pedantic
10966		if eval test \${$cacheid+y}
10967then :
10968  printf %s "(cached) " >&6
10969else case e in #(
10970  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10971/* end confdefs.h.  */
10972int i;
10973int
10974main (void)
10975{
10976
10977  ;
10978  return 0;
10979}
10980_ACEOF
10981if ac_fn_c_try_link "$LINENO"
10982then :
10983  eval $cacheid=yes
10984else case e in #(
10985  e) eval $cacheid=no ;;
10986esac
10987fi
10988rm -f core conftest.err conftest.$ac_objext conftest.beam \
10989    conftest$ac_exeext conftest.$ac_ext ;;
10990esac
10991fi
10992
10993
10994		CFLAGS="$xorg_testset_save_CFLAGS"
10995
10996		eval supported=\$$cacheid
10997		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10998printf "%s\n" "$supported" >&6; }
10999		if test "$supported" = "yes" ; then
11000			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11001			found="yes"
11002		fi
11003	fi
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019xorg_testset_save_CFLAGS="$CFLAGS"
11020
11021if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11022	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11023	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11024printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11025if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11026then :
11027  printf %s "(cached) " >&6
11028else case e in #(
11029  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11030/* end confdefs.h.  */
11031int i;
11032_ACEOF
11033if ac_fn_c_try_compile "$LINENO"
11034then :
11035  xorg_cv_cc_flag_unknown_warning_option=yes
11036else case e in #(
11037  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11038esac
11039fi
11040rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11041esac
11042fi
11043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11044printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11045	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11046	CFLAGS="$xorg_testset_save_CFLAGS"
11047fi
11048
11049if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11050	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11051		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11052	fi
11053	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11054	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11055printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11056if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11057then :
11058  printf %s "(cached) " >&6
11059else case e in #(
11060  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11061/* end confdefs.h.  */
11062int i;
11063_ACEOF
11064if ac_fn_c_try_compile "$LINENO"
11065then :
11066  xorg_cv_cc_flag_unused_command_line_argument=yes
11067else case e in #(
11068  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11069esac
11070fi
11071rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11072esac
11073fi
11074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11075printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11076	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11077	CFLAGS="$xorg_testset_save_CFLAGS"
11078fi
11079
11080found="no"
11081
11082	if test $found = "no" ; then
11083		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11084			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11085		fi
11086
11087		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11088			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11089		fi
11090
11091		CFLAGS="$CFLAGS -Werror"
11092
11093		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11094printf %s "checking if $CC supports -Werror... " >&6; }
11095		cacheid=xorg_cv_cc_flag__Werror
11096		if eval test \${$cacheid+y}
11097then :
11098  printf %s "(cached) " >&6
11099else case e in #(
11100  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11101/* end confdefs.h.  */
11102int i;
11103int
11104main (void)
11105{
11106
11107  ;
11108  return 0;
11109}
11110_ACEOF
11111if ac_fn_c_try_link "$LINENO"
11112then :
11113  eval $cacheid=yes
11114else case e in #(
11115  e) eval $cacheid=no ;;
11116esac
11117fi
11118rm -f core conftest.err conftest.$ac_objext conftest.beam \
11119    conftest$ac_exeext conftest.$ac_ext ;;
11120esac
11121fi
11122
11123
11124		CFLAGS="$xorg_testset_save_CFLAGS"
11125
11126		eval supported=\$$cacheid
11127		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11128printf "%s\n" "$supported" >&6; }
11129		if test "$supported" = "yes" ; then
11130			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11131			found="yes"
11132		fi
11133	fi
11134
11135	if test $found = "no" ; then
11136		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11137			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11138		fi
11139
11140		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11141			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11142		fi
11143
11144		CFLAGS="$CFLAGS -errwarn"
11145
11146		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11147printf %s "checking if $CC supports -errwarn... " >&6; }
11148		cacheid=xorg_cv_cc_flag__errwarn
11149		if eval test \${$cacheid+y}
11150then :
11151  printf %s "(cached) " >&6
11152else case e in #(
11153  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154/* end confdefs.h.  */
11155int i;
11156int
11157main (void)
11158{
11159
11160  ;
11161  return 0;
11162}
11163_ACEOF
11164if ac_fn_c_try_link "$LINENO"
11165then :
11166  eval $cacheid=yes
11167else case e in #(
11168  e) eval $cacheid=no ;;
11169esac
11170fi
11171rm -f core conftest.err conftest.$ac_objext conftest.beam \
11172    conftest$ac_exeext conftest.$ac_ext ;;
11173esac
11174fi
11175
11176
11177		CFLAGS="$xorg_testset_save_CFLAGS"
11178
11179		eval supported=\$$cacheid
11180		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11181printf "%s\n" "$supported" >&6; }
11182		if test "$supported" = "yes" ; then
11183			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11184			found="yes"
11185		fi
11186	fi
11187
11188
11189
11190# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11191# activate it with -Werror, so we add it here explicitly.
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205xorg_testset_save_CFLAGS="$CFLAGS"
11206
11207if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11208	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11209	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11210printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11211if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11212then :
11213  printf %s "(cached) " >&6
11214else case e in #(
11215  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11216/* end confdefs.h.  */
11217int i;
11218_ACEOF
11219if ac_fn_c_try_compile "$LINENO"
11220then :
11221  xorg_cv_cc_flag_unknown_warning_option=yes
11222else case e in #(
11223  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11224esac
11225fi
11226rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11227esac
11228fi
11229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11230printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11231	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11232	CFLAGS="$xorg_testset_save_CFLAGS"
11233fi
11234
11235if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11236	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11237		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11238	fi
11239	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11240	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11241printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11242if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11243then :
11244  printf %s "(cached) " >&6
11245else case e in #(
11246  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11247/* end confdefs.h.  */
11248int i;
11249_ACEOF
11250if ac_fn_c_try_compile "$LINENO"
11251then :
11252  xorg_cv_cc_flag_unused_command_line_argument=yes
11253else case e in #(
11254  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11255esac
11256fi
11257rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11258esac
11259fi
11260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11261printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11262	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11263	CFLAGS="$xorg_testset_save_CFLAGS"
11264fi
11265
11266found="no"
11267
11268	if test $found = "no" ; then
11269		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11270			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11271		fi
11272
11273		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11274			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11275		fi
11276
11277		CFLAGS="$CFLAGS -Werror=attributes"
11278
11279		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11280printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11281		cacheid=xorg_cv_cc_flag__Werror_attributes
11282		if eval test \${$cacheid+y}
11283then :
11284  printf %s "(cached) " >&6
11285else case e in #(
11286  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11287/* end confdefs.h.  */
11288int i;
11289int
11290main (void)
11291{
11292
11293  ;
11294  return 0;
11295}
11296_ACEOF
11297if ac_fn_c_try_link "$LINENO"
11298then :
11299  eval $cacheid=yes
11300else case e in #(
11301  e) eval $cacheid=no ;;
11302esac
11303fi
11304rm -f core conftest.err conftest.$ac_objext conftest.beam \
11305    conftest$ac_exeext conftest.$ac_ext ;;
11306esac
11307fi
11308
11309
11310		CFLAGS="$xorg_testset_save_CFLAGS"
11311
11312		eval supported=\$$cacheid
11313		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11314printf "%s\n" "$supported" >&6; }
11315		if test "$supported" = "yes" ; then
11316			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11317			found="yes"
11318		fi
11319	fi
11320
11321
11322
11323if test "x$STRICT_COMPILE" = "xyes"; then
11324    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11325    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11326fi
11327
11328
11329
11330
11331
11332
11333
11334
11335cat >>confdefs.h <<_ACEOF
11336#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11337_ACEOF
11338
11339	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11340	if test "x$PVM" = "x"; then
11341		PVM="0"
11342	fi
11343
11344printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11345
11346	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11347	if test "x$PVP" = "x"; then
11348		PVP="0"
11349	fi
11350
11351printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11352
11353
11354
11355CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11356mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11357|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11358touch \$(top_srcdir)/ChangeLog; \
11359echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11360
11361
11362
11363
11364macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11365INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11366mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11367|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11368touch \$(top_srcdir)/INSTALL; \
11369echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11370
11371
11372
11373
11374
11375
11376case $host_os in
11377    solaris*)
11378        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11379        # check for a man page file found in later versions that use
11380        # traditional section numbers instead
11381        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11382printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11383if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11384then :
11385  printf %s "(cached) " >&6
11386else case e in #(
11387  e) test "$cross_compiling" = yes &&
11388  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11389if test -r "/usr/share/man/man7/attributes.7"; then
11390  ac_cv_file__usr_share_man_man7_attributes_7=yes
11391else
11392  ac_cv_file__usr_share_man_man7_attributes_7=no
11393fi ;;
11394esac
11395fi
11396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11397printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11398if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11399then :
11400  SYSV_MAN_SECTIONS=false
11401else case e in #(
11402  e) SYSV_MAN_SECTIONS=true ;;
11403esac
11404fi
11405
11406        ;;
11407    *) SYSV_MAN_SECTIONS=false ;;
11408esac
11409
11410if test x$APP_MAN_SUFFIX = x    ; then
11411    APP_MAN_SUFFIX=1
11412fi
11413if test x$APP_MAN_DIR = x    ; then
11414    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11415fi
11416
11417if test x$LIB_MAN_SUFFIX = x    ; then
11418    LIB_MAN_SUFFIX=3
11419fi
11420if test x$LIB_MAN_DIR = x    ; then
11421    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11422fi
11423
11424if test x$FILE_MAN_SUFFIX = x    ; then
11425    case $SYSV_MAN_SECTIONS in
11426	true)				FILE_MAN_SUFFIX=4  ;;
11427	*)				FILE_MAN_SUFFIX=5  ;;
11428    esac
11429fi
11430if test x$FILE_MAN_DIR = x    ; then
11431    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11432fi
11433
11434if test x$MISC_MAN_SUFFIX = x    ; then
11435    case $SYSV_MAN_SECTIONS in
11436	true)				MISC_MAN_SUFFIX=5  ;;
11437	*)				MISC_MAN_SUFFIX=7  ;;
11438    esac
11439fi
11440if test x$MISC_MAN_DIR = x    ; then
11441    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11442fi
11443
11444if test x$DRIVER_MAN_SUFFIX = x    ; then
11445    case $SYSV_MAN_SECTIONS in
11446	true)				DRIVER_MAN_SUFFIX=7  ;;
11447	*)				DRIVER_MAN_SUFFIX=4  ;;
11448    esac
11449fi
11450if test x$DRIVER_MAN_DIR = x    ; then
11451    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11452fi
11453
11454if test x$ADMIN_MAN_SUFFIX = x    ; then
11455    case $SYSV_MAN_SECTIONS in
11456	true)				ADMIN_MAN_SUFFIX=1m ;;
11457	*)				ADMIN_MAN_SUFFIX=8  ;;
11458    esac
11459fi
11460if test x$ADMIN_MAN_DIR = x    ; then
11461    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11462fi
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478XORG_MAN_PAGE="X Version 11"
11479
11480MAN_SUBSTS="\
11481	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11482	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11483	-e 's|__xservername__|Xorg|g' \
11484	-e 's|__xconfigfile__|xorg.conf|g' \
11485	-e 's|__projectroot__|\$(prefix)|g' \
11486	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11487	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11488	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11489	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11490	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11491	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11492	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11493
11494
11495
11496# Check whether --enable-silent-rules was given.
11497if test ${enable_silent_rules+y}
11498then :
11499  enableval=$enable_silent_rules;
11500fi
11501
11502case $enable_silent_rules in # (((
11503  yes) AM_DEFAULT_VERBOSITY=0;;
11504   no) AM_DEFAULT_VERBOSITY=1;;
11505    *) AM_DEFAULT_VERBOSITY=0;;
11506esac
11507am_make=${MAKE-make}
11508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11509printf %s "checking whether $am_make supports nested variables... " >&6; }
11510if test ${am_cv_make_support_nested_variables+y}
11511then :
11512  printf %s "(cached) " >&6
11513else case e in #(
11514  e) if printf "%s\n" 'TRUE=$(BAR$(V))
11515BAR0=false
11516BAR1=true
11517V=1
11518am__doit:
11519	@$(TRUE)
11520.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11521  am_cv_make_support_nested_variables=yes
11522else
11523  am_cv_make_support_nested_variables=no
11524fi ;;
11525esac
11526fi
11527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11528printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11529if test $am_cv_make_support_nested_variables = yes; then
11530    AM_V='$(V)'
11531  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11532else
11533  AM_V=$AM_DEFAULT_VERBOSITY
11534  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11535fi
11536AM_BACKSLASH='\'
11537
11538
11539
11540
11541ac_config_headers="$ac_config_headers config.h"
11542
11543
11544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11545printf %s "checking for inline... " >&6; }
11546if test ${ac_cv_c_inline+y}
11547then :
11548  printf %s "(cached) " >&6
11549else case e in #(
11550  e) ac_cv_c_inline=no
11551for ac_kw in inline __inline__ __inline; do
11552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11553/* end confdefs.h.  */
11554#ifndef __cplusplus
11555typedef int foo_t;
11556static $ac_kw foo_t static_foo (void) {return 0; }
11557$ac_kw foo_t foo (void) {return 0; }
11558#endif
11559
11560_ACEOF
11561if ac_fn_c_try_compile "$LINENO"
11562then :
11563  ac_cv_c_inline=$ac_kw
11564fi
11565rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11566  test "$ac_cv_c_inline" != no && break
11567done
11568 ;;
11569esac
11570fi
11571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11572printf "%s\n" "$ac_cv_c_inline" >&6; }
11573
11574case $ac_cv_c_inline in
11575  inline | yes) ;;
11576  *)
11577    case $ac_cv_c_inline in
11578      no) ac_val=;;
11579      *) ac_val=$ac_cv_c_inline;;
11580    esac
11581    cat >>confdefs.h <<_ACEOF
11582#ifndef __cplusplus
11583#define inline $ac_val
11584#endif
11585_ACEOF
11586    ;;
11587esac
11588
11589
11590
11591  if test -n "$ac_tool_prefix"; then
11592  for ac_prog in ar lib "link -lib"
11593  do
11594    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11595set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11597printf %s "checking for $ac_word... " >&6; }
11598if test ${ac_cv_prog_AR+y}
11599then :
11600  printf %s "(cached) " >&6
11601else case e in #(
11602  e) if test -n "$AR"; then
11603  ac_cv_prog_AR="$AR" # Let the user override the test.
11604else
11605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11606for as_dir in $PATH
11607do
11608  IFS=$as_save_IFS
11609  case $as_dir in #(((
11610    '') as_dir=./ ;;
11611    */) ;;
11612    *) as_dir=$as_dir/ ;;
11613  esac
11614    for ac_exec_ext in '' $ac_executable_extensions; do
11615  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11616    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
11617    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11618    break 2
11619  fi
11620done
11621  done
11622IFS=$as_save_IFS
11623
11624fi ;;
11625esac
11626fi
11627AR=$ac_cv_prog_AR
11628if test -n "$AR"; then
11629  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11630printf "%s\n" "$AR" >&6; }
11631else
11632  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11633printf "%s\n" "no" >&6; }
11634fi
11635
11636
11637    test -n "$AR" && break
11638  done
11639fi
11640if test -z "$AR"; then
11641  ac_ct_AR=$AR
11642  for ac_prog in ar lib "link -lib"
11643do
11644  # Extract the first word of "$ac_prog", so it can be a program name with args.
11645set dummy $ac_prog; ac_word=$2
11646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11647printf %s "checking for $ac_word... " >&6; }
11648if test ${ac_cv_prog_ac_ct_AR+y}
11649then :
11650  printf %s "(cached) " >&6
11651else case e in #(
11652  e) if test -n "$ac_ct_AR"; then
11653  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11654else
11655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11656for as_dir in $PATH
11657do
11658  IFS=$as_save_IFS
11659  case $as_dir in #(((
11660    '') as_dir=./ ;;
11661    */) ;;
11662    *) as_dir=$as_dir/ ;;
11663  esac
11664    for ac_exec_ext in '' $ac_executable_extensions; do
11665  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11666    ac_cv_prog_ac_ct_AR="$ac_prog"
11667    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11668    break 2
11669  fi
11670done
11671  done
11672IFS=$as_save_IFS
11673
11674fi ;;
11675esac
11676fi
11677ac_ct_AR=$ac_cv_prog_ac_ct_AR
11678if test -n "$ac_ct_AR"; then
11679  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11680printf "%s\n" "$ac_ct_AR" >&6; }
11681else
11682  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11683printf "%s\n" "no" >&6; }
11684fi
11685
11686
11687  test -n "$ac_ct_AR" && break
11688done
11689
11690  if test "x$ac_ct_AR" = x; then
11691    AR="false"
11692  else
11693    case $cross_compiling:$ac_tool_warned in
11694yes:)
11695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11696printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11697ac_tool_warned=yes ;;
11698esac
11699    AR=$ac_ct_AR
11700  fi
11701fi
11702
11703: ${AR=ar}
11704
11705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
11706printf %s "checking the archiver ($AR) interface... " >&6; }
11707if test ${am_cv_ar_interface+y}
11708then :
11709  printf %s "(cached) " >&6
11710else case e in #(
11711  e) ac_ext=c
11712ac_cpp='$CPP $CPPFLAGS'
11713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11715ac_compiler_gnu=$ac_cv_c_compiler_gnu
11716
11717   am_cv_ar_interface=ar
11718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11719/* end confdefs.h.  */
11720int some_variable = 0;
11721_ACEOF
11722if ac_fn_c_try_compile "$LINENO"
11723then :
11724  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
11725      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
11726  (eval $am_ar_try) 2>&5
11727  ac_status=$?
11728  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11729  test $ac_status = 0; }
11730      if test "$ac_status" -eq 0; then
11731        am_cv_ar_interface=ar
11732      else
11733        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
11734        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
11735  (eval $am_ar_try) 2>&5
11736  ac_status=$?
11737  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11738  test $ac_status = 0; }
11739        if test "$ac_status" -eq 0; then
11740          am_cv_ar_interface=lib
11741        else
11742          am_cv_ar_interface=unknown
11743        fi
11744      fi
11745      rm -f conftest.lib libconftest.a
11746
11747fi
11748rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11749   ac_ext=c
11750ac_cpp='$CPP $CPPFLAGS'
11751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11753ac_compiler_gnu=$ac_cv_c_compiler_gnu
11754 ;;
11755esac
11756fi
11757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
11758printf "%s\n" "$am_cv_ar_interface" >&6; }
11759
11760case $am_cv_ar_interface in
11761ar)
11762  ;;
11763lib)
11764  # Microsoft lib, so override with the ar-lib wrapper script.
11765  # FIXME: It is wrong to rewrite AR.
11766  # But if we don't then we get into trouble of one sort or another.
11767  # A longer-term fix would be to have automake use am__AR in this case,
11768  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
11769  # similar.
11770  AR="$am_aux_dir/ar-lib $AR"
11771  ;;
11772unknown)
11773  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
11774  ;;
11775esac
11776
11777if test -n "$ac_tool_prefix"; then
11778  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11779set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11781printf %s "checking for $ac_word... " >&6; }
11782if test ${ac_cv_prog_RANLIB+y}
11783then :
11784  printf %s "(cached) " >&6
11785else case e in #(
11786  e) if test -n "$RANLIB"; then
11787  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11788else
11789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11790for as_dir in $PATH
11791do
11792  IFS=$as_save_IFS
11793  case $as_dir in #(((
11794    '') as_dir=./ ;;
11795    */) ;;
11796    *) as_dir=$as_dir/ ;;
11797  esac
11798    for ac_exec_ext in '' $ac_executable_extensions; do
11799  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11800    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11801    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11802    break 2
11803  fi
11804done
11805  done
11806IFS=$as_save_IFS
11807
11808fi ;;
11809esac
11810fi
11811RANLIB=$ac_cv_prog_RANLIB
11812if test -n "$RANLIB"; then
11813  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11814printf "%s\n" "$RANLIB" >&6; }
11815else
11816  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11817printf "%s\n" "no" >&6; }
11818fi
11819
11820
11821fi
11822if test -z "$ac_cv_prog_RANLIB"; then
11823  ac_ct_RANLIB=$RANLIB
11824  # Extract the first word of "ranlib", so it can be a program name with args.
11825set dummy ranlib; ac_word=$2
11826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11827printf %s "checking for $ac_word... " >&6; }
11828if test ${ac_cv_prog_ac_ct_RANLIB+y}
11829then :
11830  printf %s "(cached) " >&6
11831else case e in #(
11832  e) if test -n "$ac_ct_RANLIB"; then
11833  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11834else
11835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11836for as_dir in $PATH
11837do
11838  IFS=$as_save_IFS
11839  case $as_dir in #(((
11840    '') as_dir=./ ;;
11841    */) ;;
11842    *) as_dir=$as_dir/ ;;
11843  esac
11844    for ac_exec_ext in '' $ac_executable_extensions; do
11845  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11846    ac_cv_prog_ac_ct_RANLIB="ranlib"
11847    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11848    break 2
11849  fi
11850done
11851  done
11852IFS=$as_save_IFS
11853
11854fi ;;
11855esac
11856fi
11857ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11858if test -n "$ac_ct_RANLIB"; then
11859  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11860printf "%s\n" "$ac_ct_RANLIB" >&6; }
11861else
11862  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11863printf "%s\n" "no" >&6; }
11864fi
11865
11866  if test "x$ac_ct_RANLIB" = x; then
11867    RANLIB=":"
11868  else
11869    case $cross_compiling:$ac_tool_warned in
11870yes:)
11871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11872printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11873ac_tool_warned=yes ;;
11874esac
11875    RANLIB=$ac_ct_RANLIB
11876  fi
11877else
11878  RANLIB="$ac_cv_prog_RANLIB"
11879fi
11880
11881
11882
11883
11884
11885
11886
11887
11888if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11889	if test -n "$ac_tool_prefix"; then
11890  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11891set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11893printf %s "checking for $ac_word... " >&6; }
11894if test ${ac_cv_path_PKG_CONFIG+y}
11895then :
11896  printf %s "(cached) " >&6
11897else case e in #(
11898  e) case $PKG_CONFIG in
11899  [\\/]* | ?:[\\/]*)
11900  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11901  ;;
11902  *)
11903  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11904for as_dir in $PATH
11905do
11906  IFS=$as_save_IFS
11907  case $as_dir in #(((
11908    '') as_dir=./ ;;
11909    */) ;;
11910    *) as_dir=$as_dir/ ;;
11911  esac
11912    for ac_exec_ext in '' $ac_executable_extensions; do
11913  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11914    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
11915    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11916    break 2
11917  fi
11918done
11919  done
11920IFS=$as_save_IFS
11921
11922  ;;
11923esac ;;
11924esac
11925fi
11926PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11927if test -n "$PKG_CONFIG"; then
11928  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11929printf "%s\n" "$PKG_CONFIG" >&6; }
11930else
11931  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11932printf "%s\n" "no" >&6; }
11933fi
11934
11935
11936fi
11937if test -z "$ac_cv_path_PKG_CONFIG"; then
11938  ac_pt_PKG_CONFIG=$PKG_CONFIG
11939  # Extract the first word of "pkg-config", so it can be a program name with args.
11940set dummy pkg-config; ac_word=$2
11941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11942printf %s "checking for $ac_word... " >&6; }
11943if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
11944then :
11945  printf %s "(cached) " >&6
11946else case e in #(
11947  e) case $ac_pt_PKG_CONFIG in
11948  [\\/]* | ?:[\\/]*)
11949  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11950  ;;
11951  *)
11952  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11953for as_dir in $PATH
11954do
11955  IFS=$as_save_IFS
11956  case $as_dir in #(((
11957    '') as_dir=./ ;;
11958    */) ;;
11959    *) as_dir=$as_dir/ ;;
11960  esac
11961    for ac_exec_ext in '' $ac_executable_extensions; do
11962  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11963    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
11964    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11965    break 2
11966  fi
11967done
11968  done
11969IFS=$as_save_IFS
11970
11971  ;;
11972esac ;;
11973esac
11974fi
11975ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11976if test -n "$ac_pt_PKG_CONFIG"; then
11977  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11978printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
11979else
11980  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11981printf "%s\n" "no" >&6; }
11982fi
11983
11984  if test "x$ac_pt_PKG_CONFIG" = x; then
11985    PKG_CONFIG=""
11986  else
11987    case $cross_compiling:$ac_tool_warned in
11988yes:)
11989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11990printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11991ac_tool_warned=yes ;;
11992esac
11993    PKG_CONFIG=$ac_pt_PKG_CONFIG
11994  fi
11995else
11996  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11997fi
11998
11999fi
12000if test -n "$PKG_CONFIG"; then
12001	_pkg_min_version=0.9.0
12002	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12003printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12004	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12005		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12006printf "%s\n" "yes" >&6; }
12007	else
12008		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12009printf "%s\n" "no" >&6; }
12010		PKG_CONFIG=""
12011	fi
12012fi
12013
12014
12015pkg_failed=no
12016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PKGDEPS" >&5
12017printf %s "checking for PKGDEPS... " >&6; }
12018
12019if test -n "$PKGDEPS_CFLAGS"; then
12020    pkg_cv_PKGDEPS_CFLAGS="$PKGDEPS_CFLAGS"
12021 elif test -n "$PKG_CONFIG"; then
12022    if test -n "$PKG_CONFIG" && \
12023    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.0 x11\""; } >&5
12024  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.0 x11") 2>&5
12025  ac_status=$?
12026  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12027  test $ac_status = 0; }; then
12028  pkg_cv_PKGDEPS_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt >= 1.0 x11" 2>/dev/null`
12029		      test "x$?" != "x0" && pkg_failed=yes
12030else
12031  pkg_failed=yes
12032fi
12033 else
12034    pkg_failed=untried
12035fi
12036if test -n "$PKGDEPS_LIBS"; then
12037    pkg_cv_PKGDEPS_LIBS="$PKGDEPS_LIBS"
12038 elif test -n "$PKG_CONFIG"; then
12039    if test -n "$PKG_CONFIG" && \
12040    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.0 x11\""; } >&5
12041  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.0 x11") 2>&5
12042  ac_status=$?
12043  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12044  test $ac_status = 0; }; then
12045  pkg_cv_PKGDEPS_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt >= 1.0 x11" 2>/dev/null`
12046		      test "x$?" != "x0" && pkg_failed=yes
12047else
12048  pkg_failed=yes
12049fi
12050 else
12051    pkg_failed=untried
12052fi
12053
12054
12055
12056if test $pkg_failed = yes; then
12057   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12058printf "%s\n" "no" >&6; }
12059
12060if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12061        _pkg_short_errors_supported=yes
12062else
12063        _pkg_short_errors_supported=no
12064fi
12065        if test $_pkg_short_errors_supported = yes; then
12066	        PKGDEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt >= 1.0 x11" 2>&1`
12067        else
12068	        PKGDEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt >= 1.0 x11" 2>&1`
12069        fi
12070	# Put the nasty error message in config.log where it belongs
12071	echo "$PKGDEPS_PKG_ERRORS" >&5
12072
12073	as_fn_error $? "Package requirements (xaw7 xmu xt >= 1.0 x11) were not met:
12074
12075$PKGDEPS_PKG_ERRORS
12076
12077Consider adjusting the PKG_CONFIG_PATH environment variable if you
12078installed software in a non-standard prefix.
12079
12080Alternatively, you may set the environment variables PKGDEPS_CFLAGS
12081and PKGDEPS_LIBS to avoid the need to call pkg-config.
12082See the pkg-config man page for more details." "$LINENO" 5
12083elif test $pkg_failed = untried; then
12084     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12085printf "%s\n" "no" >&6; }
12086	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12087printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12088as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12089is in your PATH or set the PKG_CONFIG environment variable to the full
12090path to pkg-config.
12091
12092Alternatively, you may set the environment variables PKGDEPS_CFLAGS
12093and PKGDEPS_LIBS to avoid the need to call pkg-config.
12094See the pkg-config man page for more details.
12095
12096To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12097See 'config.log' for more details" "$LINENO" 5; }
12098else
12099	PKGDEPS_CFLAGS=$pkg_cv_PKGDEPS_CFLAGS
12100	PKGDEPS_LIBS=$pkg_cv_PKGDEPS_LIBS
12101        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12102printf "%s\n" "yes" >&6; }
12103
12104fi
12105
12106
12107# Check whether --with-lispdir was given.
12108if test ${with_lispdir+y}
12109then :
12110  withval=$with_lispdir;  lispdir="$withval"
12111else case e in #(
12112  e)  lispdir=${libdir}/X11/xedit/lisp  ;;
12113esac
12114fi
12115
12116LISPDIR=$lispdir
12117
12118
12119ac_fn_check_decl "$LINENO" "_SC_PAGESIZE" "ac_cv_have_decl__SC_PAGESIZE" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12120if test "x$ac_cv_have_decl__SC_PAGESIZE" = xyes
12121then :
12122  ac_have_decl=1
12123else case e in #(
12124  e) ac_have_decl=0 ;;
12125esac
12126fi
12127printf "%s\n" "#define HAVE_DECL__SC_PAGESIZE $ac_have_decl" >>confdefs.h
12128
12129ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12130if test "x$ac_cv_func_getpagesize" = xyes
12131then :
12132  printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h
12133
12134fi
12135
12136
12137ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
12138if test "x$ac_cv_func_realpath" = xyes
12139then :
12140
12141else case e in #(
12142  e) have_realpath=yes ;;
12143esac
12144fi
12145
12146 if test x$have_realpath = xyes; then
12147  NEED_REALPATH_TRUE=
12148  NEED_REALPATH_FALSE='#'
12149else
12150  NEED_REALPATH_TRUE='#'
12151  NEED_REALPATH_FALSE=
12152fi
12153
12154ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
12155if test "x$ac_cv_func_strcasecmp" = xyes
12156then :
12157
12158else case e in #(
12159  e) have_strcasecmp=yes ;;
12160esac
12161fi
12162
12163 if test x$have_strcasecmp = xyes; then
12164  NEED_STRCASECMP_TRUE=
12165  NEED_STRCASECMP_FALSE='#'
12166else
12167  NEED_STRCASECMP_TRUE='#'
12168  NEED_STRCASECMP_FALSE=
12169fi
12170
12171ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
12172if test "x$ac_cv_func_unsetenv" = xyes
12173then :
12174
12175else case e in #(
12176  e) have_unsetenv=yes ;;
12177esac
12178fi
12179
12180 if test x$have_unsetenv = xyes; then
12181  NEED_UNSETENV_TRUE=
12182  NEED_UNSETENV_FALSE='#'
12183else
12184  NEED_UNSETENV_TRUE='#'
12185  NEED_UNSETENV_FALSE=
12186fi
12187
12188
12189
12190pkg_failed=no
12191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
12192printf %s "checking for APPDEFS... " >&6; }
12193
12194if test -n "$APPDEFS_CFLAGS"; then
12195    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
12196 elif test -n "$PKG_CONFIG"; then
12197    if test -n "$PKG_CONFIG" && \
12198    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
12199  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
12200  ac_status=$?
12201  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12202  test $ac_status = 0; }; then
12203  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
12204		      test "x$?" != "x0" && pkg_failed=yes
12205else
12206  pkg_failed=yes
12207fi
12208 else
12209    pkg_failed=untried
12210fi
12211if test -n "$APPDEFS_LIBS"; then
12212    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
12213 elif test -n "$PKG_CONFIG"; then
12214    if test -n "$PKG_CONFIG" && \
12215    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
12216  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
12217  ac_status=$?
12218  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12219  test $ac_status = 0; }; then
12220  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
12221		      test "x$?" != "x0" && pkg_failed=yes
12222else
12223  pkg_failed=yes
12224fi
12225 else
12226    pkg_failed=untried
12227fi
12228
12229
12230
12231if test $pkg_failed = yes; then
12232   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12233printf "%s\n" "no" >&6; }
12234
12235if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12236        _pkg_short_errors_supported=yes
12237else
12238        _pkg_short_errors_supported=no
12239fi
12240        if test $_pkg_short_errors_supported = yes; then
12241	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
12242        else
12243	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
12244        fi
12245	# Put the nasty error message in config.log where it belongs
12246	echo "$APPDEFS_PKG_ERRORS" >&5
12247
12248	as_fn_error $? "Package requirements (xt) were not met:
12249
12250$APPDEFS_PKG_ERRORS
12251
12252Consider adjusting the PKG_CONFIG_PATH environment variable if you
12253installed software in a non-standard prefix.
12254
12255Alternatively, you may set the environment variables APPDEFS_CFLAGS
12256and APPDEFS_LIBS to avoid the need to call pkg-config.
12257See the pkg-config man page for more details." "$LINENO" 5
12258elif test $pkg_failed = untried; then
12259     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12260printf "%s\n" "no" >&6; }
12261	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12262printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12263as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12264is in your PATH or set the PKG_CONFIG environment variable to the full
12265path to pkg-config.
12266
12267Alternatively, you may set the environment variables APPDEFS_CFLAGS
12268and APPDEFS_LIBS to avoid the need to call pkg-config.
12269See the pkg-config man page for more details.
12270
12271To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12272See 'config.log' for more details" "$LINENO" 5; }
12273else
12274	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
12275	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
12276        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12277printf "%s\n" "yes" >&6; }
12278
12279fi
12280xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
12281
12282# Check whether --with-appdefaultdir was given.
12283if test ${with_appdefaultdir+y}
12284then :
12285  withval=$with_appdefaultdir; appdefaultdir="$withval"
12286else case e in #(
12287  e) appdefaultdir="${xt_appdefaultdir}" ;;
12288esac
12289fi
12290
12291
12292
12293
12294ac_config_files="$ac_config_files Makefile man/Makefile"
12295
12296cat >confcache <<\_ACEOF
12297# This file is a shell script that caches the results of configure
12298# tests run on this system so they can be shared between configure
12299# scripts and configure runs, see configure's option --config-cache.
12300# It is not useful on other systems.  If it contains results you don't
12301# want to keep, you may remove or edit it.
12302#
12303# config.status only pays attention to the cache file if you give it
12304# the --recheck option to rerun configure.
12305#
12306# 'ac_cv_env_foo' variables (set or unset) will be overridden when
12307# loading this file, other *unset* 'ac_cv_foo' will be assigned the
12308# following values.
12309
12310_ACEOF
12311
12312# The following way of writing the cache mishandles newlines in values,
12313# but we know of no workaround that is simple, portable, and efficient.
12314# So, we kill variables containing newlines.
12315# Ultrix sh set writes to stderr and can't be redirected directly,
12316# and sets the high bit in the cache file unless we assign to the vars.
12317(
12318  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12319    eval ac_val=\$$ac_var
12320    case $ac_val in #(
12321    *${as_nl}*)
12322      case $ac_var in #(
12323      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12324printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12325      esac
12326      case $ac_var in #(
12327      _ | IFS | as_nl) ;; #(
12328      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12329      *) { eval $ac_var=; unset $ac_var;} ;;
12330      esac ;;
12331    esac
12332  done
12333
12334  (set) 2>&1 |
12335    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12336    *${as_nl}ac_space=\ *)
12337      # 'set' does not quote correctly, so add quotes: double-quote
12338      # substitution turns \\\\ into \\, and sed turns \\ into \.
12339      sed -n \
12340	"s/'/'\\\\''/g;
12341	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12342      ;; #(
12343    *)
12344      # 'set' quotes correctly as required by POSIX, so do not add quotes.
12345      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12346      ;;
12347    esac |
12348    sort
12349) |
12350  sed '
12351     /^ac_cv_env_/b end
12352     t clear
12353     :clear
12354     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12355     t end
12356     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12357     :end' >>confcache
12358if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12359  if test -w "$cache_file"; then
12360    if test "x$cache_file" != "x/dev/null"; then
12361      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12362printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12363      if test ! -f "$cache_file" || test -h "$cache_file"; then
12364	cat confcache >"$cache_file"
12365      else
12366        case $cache_file in #(
12367        */* | ?:*)
12368	  mv -f confcache "$cache_file"$$ &&
12369	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12370        *)
12371	  mv -f confcache "$cache_file" ;;
12372	esac
12373      fi
12374    fi
12375  else
12376    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12377printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12378  fi
12379fi
12380rm -f confcache
12381
12382test "x$prefix" = xNONE && prefix=$ac_default_prefix
12383# Let make expand exec_prefix.
12384test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12385
12386DEFS=-DHAVE_CONFIG_H
12387
12388ac_libobjs=
12389ac_ltlibobjs=
12390U=
12391for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12392  # 1. Remove the extension, and $U if already installed.
12393  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12394  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12395  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12396  #    will be set to the directory where LIBOBJS objects are built.
12397  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12398  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12399done
12400LIBOBJS=$ac_libobjs
12401
12402LTLIBOBJS=$ac_ltlibobjs
12403
12404
12405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12406printf %s "checking that generated files are newer than configure... " >&6; }
12407   if test -n "$am_sleep_pid"; then
12408     # Hide warnings about reused PIDs.
12409     wait $am_sleep_pid 2>/dev/null
12410   fi
12411   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12412printf "%s\n" "done" >&6; }
12413 if test -n "$EXEEXT"; then
12414  am__EXEEXT_TRUE=
12415  am__EXEEXT_FALSE='#'
12416else
12417  am__EXEEXT_TRUE='#'
12418  am__EXEEXT_FALSE=
12419fi
12420
12421if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12422  as_fn_error $? "conditional \"AMDEP\" was never defined.
12423Usually this means the macro was only invoked conditionally." "$LINENO" 5
12424fi
12425if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12426  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12427Usually this means the macro was only invoked conditionally." "$LINENO" 5
12428fi
12429if test -z "${NEED_REALPATH_TRUE}" && test -z "${NEED_REALPATH_FALSE}"; then
12430  as_fn_error $? "conditional \"NEED_REALPATH\" was never defined.
12431Usually this means the macro was only invoked conditionally." "$LINENO" 5
12432fi
12433if test -z "${NEED_STRCASECMP_TRUE}" && test -z "${NEED_STRCASECMP_FALSE}"; then
12434  as_fn_error $? "conditional \"NEED_STRCASECMP\" was never defined.
12435Usually this means the macro was only invoked conditionally." "$LINENO" 5
12436fi
12437if test -z "${NEED_UNSETENV_TRUE}" && test -z "${NEED_UNSETENV_FALSE}"; then
12438  as_fn_error $? "conditional \"NEED_UNSETENV\" was never defined.
12439Usually this means the macro was only invoked conditionally." "$LINENO" 5
12440fi
12441
12442: "${CONFIG_STATUS=./config.status}"
12443ac_write_fail=0
12444ac_clean_files_save=$ac_clean_files
12445ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12447printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12448as_write_fail=0
12449cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12450#! $SHELL
12451# Generated by $as_me.
12452# Run this file to recreate the current configuration.
12453# Compiler output produced by configure, useful for debugging
12454# configure, is in config.log if it exists.
12455
12456debug=false
12457ac_cs_recheck=false
12458ac_cs_silent=false
12459
12460SHELL=\${CONFIG_SHELL-$SHELL}
12461export SHELL
12462_ASEOF
12463cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12464## -------------------- ##
12465## M4sh Initialization. ##
12466## -------------------- ##
12467
12468# Be more Bourne compatible
12469DUALCASE=1; export DUALCASE # for MKS sh
12470if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12471then :
12472  emulate sh
12473  NULLCMD=:
12474  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12475  # is contrary to our usage.  Disable this feature.
12476  alias -g '${1+"$@"}'='"$@"'
12477  setopt NO_GLOB_SUBST
12478else case e in #(
12479  e) case `(set -o) 2>/dev/null` in #(
12480  *posix*) :
12481    set -o posix ;; #(
12482  *) :
12483     ;;
12484esac ;;
12485esac
12486fi
12487
12488
12489
12490# Reset variables that may have inherited troublesome values from
12491# the environment.
12492
12493# IFS needs to be set, to space, tab, and newline, in precisely that order.
12494# (If _AS_PATH_WALK were called with IFS unset, it would have the
12495# side effect of setting IFS to empty, thus disabling word splitting.)
12496# Quoting is to prevent editors from complaining about space-tab.
12497as_nl='
12498'
12499export as_nl
12500IFS=" ""	$as_nl"
12501
12502PS1='$ '
12503PS2='> '
12504PS4='+ '
12505
12506# Ensure predictable behavior from utilities with locale-dependent output.
12507LC_ALL=C
12508export LC_ALL
12509LANGUAGE=C
12510export LANGUAGE
12511
12512# We cannot yet rely on "unset" to work, but we need these variables
12513# to be unset--not just set to an empty or harmless value--now, to
12514# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
12515# also avoids known problems related to "unset" and subshell syntax
12516# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12517for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12518do eval test \${$as_var+y} \
12519  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12520done
12521
12522# Ensure that fds 0, 1, and 2 are open.
12523if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12524if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12525if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
12526
12527# The user is always right.
12528if ${PATH_SEPARATOR+false} :; then
12529  PATH_SEPARATOR=:
12530  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12531    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12532      PATH_SEPARATOR=';'
12533  }
12534fi
12535
12536
12537# Find who we are.  Look in the path if we contain no directory separator.
12538as_myself=
12539case $0 in #((
12540  *[\\/]* ) as_myself=$0 ;;
12541  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12542for as_dir in $PATH
12543do
12544  IFS=$as_save_IFS
12545  case $as_dir in #(((
12546    '') as_dir=./ ;;
12547    */) ;;
12548    *) as_dir=$as_dir/ ;;
12549  esac
12550    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12551  done
12552IFS=$as_save_IFS
12553
12554     ;;
12555esac
12556# We did not find ourselves, most probably we were run as 'sh COMMAND'
12557# in which case we are not to be found in the path.
12558if test "x$as_myself" = x; then
12559  as_myself=$0
12560fi
12561if test ! -f "$as_myself"; then
12562  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12563  exit 1
12564fi
12565
12566
12567
12568# as_fn_error STATUS ERROR [LINENO LOG_FD]
12569# ----------------------------------------
12570# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12571# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12572# script with STATUS, using 1 if that was 0.
12573as_fn_error ()
12574{
12575  as_status=$1; test $as_status -eq 0 && as_status=1
12576  if test "$4"; then
12577    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12578    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12579  fi
12580  printf "%s\n" "$as_me: error: $2" >&2
12581  as_fn_exit $as_status
12582} # as_fn_error
12583
12584
12585# as_fn_set_status STATUS
12586# -----------------------
12587# Set $? to STATUS, without forking.
12588as_fn_set_status ()
12589{
12590  return $1
12591} # as_fn_set_status
12592
12593# as_fn_exit STATUS
12594# -----------------
12595# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12596as_fn_exit ()
12597{
12598  set +e
12599  as_fn_set_status $1
12600  exit $1
12601} # as_fn_exit
12602
12603# as_fn_unset VAR
12604# ---------------
12605# Portably unset VAR.
12606as_fn_unset ()
12607{
12608  { eval $1=; unset $1;}
12609}
12610as_unset=as_fn_unset
12611
12612# as_fn_append VAR VALUE
12613# ----------------------
12614# Append the text in VALUE to the end of the definition contained in VAR. Take
12615# advantage of any shell optimizations that allow amortized linear growth over
12616# repeated appends, instead of the typical quadratic growth present in naive
12617# implementations.
12618if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12619then :
12620  eval 'as_fn_append ()
12621  {
12622    eval $1+=\$2
12623  }'
12624else case e in #(
12625  e) as_fn_append ()
12626  {
12627    eval $1=\$$1\$2
12628  } ;;
12629esac
12630fi # as_fn_append
12631
12632# as_fn_arith ARG...
12633# ------------------
12634# Perform arithmetic evaluation on the ARGs, and store the result in the
12635# global $as_val. Take advantage of shells that can avoid forks. The arguments
12636# must be portable across $(()) and expr.
12637if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12638then :
12639  eval 'as_fn_arith ()
12640  {
12641    as_val=$(( $* ))
12642  }'
12643else case e in #(
12644  e) as_fn_arith ()
12645  {
12646    as_val=`expr "$@" || test $? -eq 1`
12647  } ;;
12648esac
12649fi # as_fn_arith
12650
12651
12652if expr a : '\(a\)' >/dev/null 2>&1 &&
12653   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12654  as_expr=expr
12655else
12656  as_expr=false
12657fi
12658
12659if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12660  as_basename=basename
12661else
12662  as_basename=false
12663fi
12664
12665if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12666  as_dirname=dirname
12667else
12668  as_dirname=false
12669fi
12670
12671as_me=`$as_basename -- "$0" ||
12672$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12673	 X"$0" : 'X\(//\)$' \| \
12674	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12675printf "%s\n" X/"$0" |
12676    sed '/^.*\/\([^/][^/]*\)\/*$/{
12677	    s//\1/
12678	    q
12679	  }
12680	  /^X\/\(\/\/\)$/{
12681	    s//\1/
12682	    q
12683	  }
12684	  /^X\/\(\/\).*/{
12685	    s//\1/
12686	    q
12687	  }
12688	  s/.*/./; q'`
12689
12690# Avoid depending upon Character Ranges.
12691as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12692as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12693as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12694as_cr_digits='0123456789'
12695as_cr_alnum=$as_cr_Letters$as_cr_digits
12696
12697
12698# Determine whether it's possible to make 'echo' print without a newline.
12699# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12700# for compatibility with existing Makefiles.
12701ECHO_C= ECHO_N= ECHO_T=
12702case `echo -n x` in #(((((
12703-n*)
12704  case `echo 'xy\c'` in
12705  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12706  xy)  ECHO_C='\c';;
12707  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12708       ECHO_T='	';;
12709  esac;;
12710*)
12711  ECHO_N='-n';;
12712esac
12713
12714# For backward compatibility with old third-party macros, we provide
12715# the shell variables $as_echo and $as_echo_n.  New code should use
12716# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12717as_echo='printf %s\n'
12718as_echo_n='printf %s'
12719
12720rm -f conf$$ conf$$.exe conf$$.file
12721if test -d conf$$.dir; then
12722  rm -f conf$$.dir/conf$$.file
12723else
12724  rm -f conf$$.dir
12725  mkdir conf$$.dir 2>/dev/null
12726fi
12727if (echo >conf$$.file) 2>/dev/null; then
12728  if ln -s conf$$.file conf$$ 2>/dev/null; then
12729    as_ln_s='ln -s'
12730    # ... but there are two gotchas:
12731    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12732    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12733    # In both cases, we have to default to 'cp -pR'.
12734    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12735      as_ln_s='cp -pR'
12736  elif ln conf$$.file conf$$ 2>/dev/null; then
12737    as_ln_s=ln
12738  else
12739    as_ln_s='cp -pR'
12740  fi
12741else
12742  as_ln_s='cp -pR'
12743fi
12744rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12745rmdir conf$$.dir 2>/dev/null
12746
12747
12748# as_fn_mkdir_p
12749# -------------
12750# Create "$as_dir" as a directory, including parents if necessary.
12751as_fn_mkdir_p ()
12752{
12753
12754  case $as_dir in #(
12755  -*) as_dir=./$as_dir;;
12756  esac
12757  test -d "$as_dir" || eval $as_mkdir_p || {
12758    as_dirs=
12759    while :; do
12760      case $as_dir in #(
12761      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12762      *) as_qdir=$as_dir;;
12763      esac
12764      as_dirs="'$as_qdir' $as_dirs"
12765      as_dir=`$as_dirname -- "$as_dir" ||
12766$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12767	 X"$as_dir" : 'X\(//\)[^/]' \| \
12768	 X"$as_dir" : 'X\(//\)$' \| \
12769	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12770printf "%s\n" X"$as_dir" |
12771    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12772	    s//\1/
12773	    q
12774	  }
12775	  /^X\(\/\/\)[^/].*/{
12776	    s//\1/
12777	    q
12778	  }
12779	  /^X\(\/\/\)$/{
12780	    s//\1/
12781	    q
12782	  }
12783	  /^X\(\/\).*/{
12784	    s//\1/
12785	    q
12786	  }
12787	  s/.*/./; q'`
12788      test -d "$as_dir" && break
12789    done
12790    test -z "$as_dirs" || eval "mkdir $as_dirs"
12791  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12792
12793
12794} # as_fn_mkdir_p
12795if mkdir -p . 2>/dev/null; then
12796  as_mkdir_p='mkdir -p "$as_dir"'
12797else
12798  test -d ./-p && rmdir ./-p
12799  as_mkdir_p=false
12800fi
12801
12802
12803# as_fn_executable_p FILE
12804# -----------------------
12805# Test if FILE is an executable regular file.
12806as_fn_executable_p ()
12807{
12808  test -f "$1" && test -x "$1"
12809} # as_fn_executable_p
12810as_test_x='test -x'
12811as_executable_p=as_fn_executable_p
12812
12813# Sed expression to map a string onto a valid CPP name.
12814as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12815as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12816
12817# Sed expression to map a string onto a valid variable name.
12818as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12819as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12820
12821
12822exec 6>&1
12823## ----------------------------------- ##
12824## Main body of $CONFIG_STATUS script. ##
12825## ----------------------------------- ##
12826_ASEOF
12827test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12828
12829cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12830# Save the log message, to keep $0 and so on meaningful, and to
12831# report actual input values of CONFIG_FILES etc. instead of their
12832# values after options handling.
12833ac_log="
12834This file was extended by xedit $as_me 1.2.4, which was
12835generated by GNU Autoconf 2.72.  Invocation command line was
12836
12837  CONFIG_FILES    = $CONFIG_FILES
12838  CONFIG_HEADERS  = $CONFIG_HEADERS
12839  CONFIG_LINKS    = $CONFIG_LINKS
12840  CONFIG_COMMANDS = $CONFIG_COMMANDS
12841  $ $0 $@
12842
12843on `(hostname || uname -n) 2>/dev/null | sed 1q`
12844"
12845
12846_ACEOF
12847
12848case $ac_config_files in *"
12849"*) set x $ac_config_files; shift; ac_config_files=$*;;
12850esac
12851
12852case $ac_config_headers in *"
12853"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12854esac
12855
12856
12857cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12858# Files that config.status was made for.
12859config_files="$ac_config_files"
12860config_headers="$ac_config_headers"
12861config_commands="$ac_config_commands"
12862
12863_ACEOF
12864
12865cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12866ac_cs_usage="\
12867'$as_me' instantiates files and other configuration actions
12868from templates according to the current configuration.  Unless the files
12869and actions are specified as TAGs, all are instantiated by default.
12870
12871Usage: $0 [OPTION]... [TAG]...
12872
12873  -h, --help       print this help, then exit
12874  -V, --version    print version number and configuration settings, then exit
12875      --config     print configuration, then exit
12876  -q, --quiet, --silent
12877                   do not print progress messages
12878  -d, --debug      don't remove temporary files
12879      --recheck    update $as_me by reconfiguring in the same conditions
12880      --file=FILE[:TEMPLATE]
12881                   instantiate the configuration file FILE
12882      --header=FILE[:TEMPLATE]
12883                   instantiate the configuration header FILE
12884
12885Configuration files:
12886$config_files
12887
12888Configuration headers:
12889$config_headers
12890
12891Configuration commands:
12892$config_commands
12893
12894Report bugs to <https://gitlab.freedesktop.org/xorg/app/xedit/-/issues>."
12895
12896_ACEOF
12897ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12898ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12899cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12900ac_cs_config='$ac_cs_config_escaped'
12901ac_cs_version="\\
12902xedit config.status 1.2.4
12903configured by $0, generated by GNU Autoconf 2.72,
12904  with options \\"\$ac_cs_config\\"
12905
12906Copyright (C) 2023 Free Software Foundation, Inc.
12907This config.status script is free software; the Free Software Foundation
12908gives unlimited permission to copy, distribute and modify it."
12909
12910ac_pwd='$ac_pwd'
12911srcdir='$srcdir'
12912INSTALL='$INSTALL'
12913MKDIR_P='$MKDIR_P'
12914AWK='$AWK'
12915test -n "\$AWK" || AWK=awk
12916_ACEOF
12917
12918cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12919# The default lists apply if the user does not specify any file.
12920ac_need_defaults=:
12921while test $# != 0
12922do
12923  case $1 in
12924  --*=?*)
12925    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12926    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12927    ac_shift=:
12928    ;;
12929  --*=)
12930    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12931    ac_optarg=
12932    ac_shift=:
12933    ;;
12934  *)
12935    ac_option=$1
12936    ac_optarg=$2
12937    ac_shift=shift
12938    ;;
12939  esac
12940
12941  case $ac_option in
12942  # Handling of the options.
12943  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12944    ac_cs_recheck=: ;;
12945  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12946    printf "%s\n" "$ac_cs_version"; exit ;;
12947  --config | --confi | --conf | --con | --co | --c )
12948    printf "%s\n" "$ac_cs_config"; exit ;;
12949  --debug | --debu | --deb | --de | --d | -d )
12950    debug=: ;;
12951  --file | --fil | --fi | --f )
12952    $ac_shift
12953    case $ac_optarg in
12954    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12955    '') as_fn_error $? "missing file argument" ;;
12956    esac
12957    as_fn_append CONFIG_FILES " '$ac_optarg'"
12958    ac_need_defaults=false;;
12959  --header | --heade | --head | --hea )
12960    $ac_shift
12961    case $ac_optarg in
12962    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12963    esac
12964    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12965    ac_need_defaults=false;;
12966  --he | --h)
12967    # Conflict between --help and --header
12968    as_fn_error $? "ambiguous option: '$1'
12969Try '$0 --help' for more information.";;
12970  --help | --hel | -h )
12971    printf "%s\n" "$ac_cs_usage"; exit ;;
12972  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12973  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12974    ac_cs_silent=: ;;
12975
12976  # This is an error.
12977  -*) as_fn_error $? "unrecognized option: '$1'
12978Try '$0 --help' for more information." ;;
12979
12980  *) as_fn_append ac_config_targets " $1"
12981     ac_need_defaults=false ;;
12982
12983  esac
12984  shift
12985done
12986
12987ac_configure_extra_args=
12988
12989if $ac_cs_silent; then
12990  exec 6>/dev/null
12991  ac_configure_extra_args="$ac_configure_extra_args --silent"
12992fi
12993
12994_ACEOF
12995cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12996if \$ac_cs_recheck; then
12997  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12998  shift
12999  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
13000  CONFIG_SHELL='$SHELL'
13001  export CONFIG_SHELL
13002  exec "\$@"
13003fi
13004
13005_ACEOF
13006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13007exec 5>>config.log
13008{
13009  echo
13010  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13011## Running $as_me. ##
13012_ASBOX
13013  printf "%s\n" "$ac_log"
13014} >&5
13015
13016_ACEOF
13017cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13018#
13019# INIT-COMMANDS
13020#
13021AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13022
13023_ACEOF
13024
13025cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13026
13027# Handling of arguments.
13028for ac_config_target in $ac_config_targets
13029do
13030  case $ac_config_target in
13031    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13032    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13033    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13034    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13035
13036  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
13037  esac
13038done
13039
13040
13041# If the user did not use the arguments to specify the items to instantiate,
13042# then the envvar interface is used.  Set only those that are not.
13043# We use the long form for the default assignment because of an extremely
13044# bizarre bug on SunOS 4.1.3.
13045if $ac_need_defaults; then
13046  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
13047  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
13048  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
13049fi
13050
13051# Have a temporary directory for convenience.  Make it in the build tree
13052# simply because there is no reason against having it here, and in addition,
13053# creating and moving files from /tmp can sometimes cause problems.
13054# Hook for its removal unless debugging.
13055# Note that there is a small window in which the directory will not be cleaned:
13056# after its creation but before its name has been assigned to '$tmp'.
13057$debug ||
13058{
13059  tmp= ac_tmp=
13060  trap 'exit_status=$?
13061  : "${ac_tmp:=$tmp}"
13062  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13063' 0
13064  trap 'as_fn_exit 1' 1 2 13 15
13065}
13066# Create a (secure) tmp directory for tmp files.
13067
13068{
13069  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13070  test -d "$tmp"
13071}  ||
13072{
13073  tmp=./conf$$-$RANDOM
13074  (umask 077 && mkdir "$tmp")
13075} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13076ac_tmp=$tmp
13077
13078# Set up the scripts for CONFIG_FILES section.
13079# No need to generate them if there are no CONFIG_FILES.
13080# This happens for instance with './config.status config.h'.
13081if test -n "$CONFIG_FILES"; then
13082
13083
13084ac_cr=`echo X | tr X '\015'`
13085# On cygwin, bash can eat \r inside `` if the user requested igncr.
13086# But we know of no other shell where ac_cr would be empty at this
13087# point, so we can use a bashism as a fallback.
13088if test "x$ac_cr" = x; then
13089  eval ac_cr=\$\'\\r\'
13090fi
13091ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13092if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13093  ac_cs_awk_cr='\\r'
13094else
13095  ac_cs_awk_cr=$ac_cr
13096fi
13097
13098echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13099_ACEOF
13100
13101
13102{
13103  echo "cat >conf$$subs.awk <<_ACEOF" &&
13104  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13105  echo "_ACEOF"
13106} >conf$$subs.sh ||
13107  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13108ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13109ac_delim='%!_!# '
13110for ac_last_try in false false false false false :; do
13111  . ./conf$$subs.sh ||
13112    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13113
13114  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13115  if test $ac_delim_n = $ac_delim_num; then
13116    break
13117  elif $ac_last_try; then
13118    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13119  else
13120    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13121  fi
13122done
13123rm -f conf$$subs.sh
13124
13125cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13126cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13127_ACEOF
13128sed -n '
13129h
13130s/^/S["/; s/!.*/"]=/
13131p
13132g
13133s/^[^!]*!//
13134:repl
13135t repl
13136s/'"$ac_delim"'$//
13137t delim
13138:nl
13139h
13140s/\(.\{148\}\)..*/\1/
13141t more1
13142s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13143p
13144n
13145b repl
13146:more1
13147s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13148p
13149g
13150s/.\{148\}//
13151t nl
13152:delim
13153h
13154s/\(.\{148\}\)..*/\1/
13155t more2
13156s/["\\]/\\&/g; s/^/"/; s/$/"/
13157p
13158b
13159:more2
13160s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13161p
13162g
13163s/.\{148\}//
13164t delim
13165' <conf$$subs.awk | sed '
13166/^[^""]/{
13167  N
13168  s/\n//
13169}
13170' >>$CONFIG_STATUS || ac_write_fail=1
13171rm -f conf$$subs.awk
13172cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13173_ACAWK
13174cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13175  for (key in S) S_is_set[key] = 1
13176  FS = ""
13177
13178}
13179{
13180  line = $ 0
13181  nfields = split(line, field, "@")
13182  substed = 0
13183  len = length(field[1])
13184  for (i = 2; i < nfields; i++) {
13185    key = field[i]
13186    keylen = length(key)
13187    if (S_is_set[key]) {
13188      value = S[key]
13189      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13190      len += length(value) + length(field[++i])
13191      substed = 1
13192    } else
13193      len += 1 + keylen
13194  }
13195
13196  print line
13197}
13198
13199_ACAWK
13200_ACEOF
13201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13202if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13203  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13204else
13205  cat
13206fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13207  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13208_ACEOF
13209
13210# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13211# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13212# trailing colons and then remove the whole line if VPATH becomes empty
13213# (actually we leave an empty line to preserve line numbers).
13214if test "x$srcdir" = x.; then
13215  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13216h
13217s///
13218s/^/:/
13219s/[	 ]*$/:/
13220s/:\$(srcdir):/:/g
13221s/:\${srcdir}:/:/g
13222s/:@srcdir@:/:/g
13223s/^:*//
13224s/:*$//
13225x
13226s/\(=[	 ]*\).*/\1/
13227G
13228s/\n//
13229s/^[^=]*=[	 ]*$//
13230}'
13231fi
13232
13233cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13234fi # test -n "$CONFIG_FILES"
13235
13236# Set up the scripts for CONFIG_HEADERS section.
13237# No need to generate them if there are no CONFIG_HEADERS.
13238# This happens for instance with './config.status Makefile'.
13239if test -n "$CONFIG_HEADERS"; then
13240cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13241BEGIN {
13242_ACEOF
13243
13244# Transform confdefs.h into an awk script 'defines.awk', embedded as
13245# here-document in config.status, that substitutes the proper values into
13246# config.h.in to produce config.h.
13247
13248# Create a delimiter string that does not exist in confdefs.h, to ease
13249# handling of long lines.
13250ac_delim='%!_!# '
13251for ac_last_try in false false :; do
13252  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13253  if test -z "$ac_tt"; then
13254    break
13255  elif $ac_last_try; then
13256    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13257  else
13258    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13259  fi
13260done
13261
13262# For the awk script, D is an array of macro values keyed by name,
13263# likewise P contains macro parameters if any.  Preserve backslash
13264# newline sequences.
13265
13266ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13267sed -n '
13268s/.\{148\}/&'"$ac_delim"'/g
13269t rset
13270:rset
13271s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13272t def
13273d
13274:def
13275s/\\$//
13276t bsnl
13277s/["\\]/\\&/g
13278s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13279D["\1"]=" \3"/p
13280s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13281d
13282:bsnl
13283s/["\\]/\\&/g
13284s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13285D["\1"]=" \3\\\\\\n"\\/p
13286t cont
13287s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13288t cont
13289d
13290:cont
13291n
13292s/.\{148\}/&'"$ac_delim"'/g
13293t clear
13294:clear
13295s/\\$//
13296t bsnlc
13297s/["\\]/\\&/g; s/^/"/; s/$/"/p
13298d
13299:bsnlc
13300s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13301b cont
13302' <confdefs.h | sed '
13303s/'"$ac_delim"'/"\\\
13304"/g' >>$CONFIG_STATUS || ac_write_fail=1
13305
13306cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13307  for (key in D) D_is_set[key] = 1
13308  FS = ""
13309}
13310/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13311  line = \$ 0
13312  split(line, arg, " ")
13313  if (arg[1] == "#") {
13314    defundef = arg[2]
13315    mac1 = arg[3]
13316  } else {
13317    defundef = substr(arg[1], 2)
13318    mac1 = arg[2]
13319  }
13320  split(mac1, mac2, "(") #)
13321  macro = mac2[1]
13322  prefix = substr(line, 1, index(line, defundef) - 1)
13323  if (D_is_set[macro]) {
13324    # Preserve the white space surrounding the "#".
13325    print prefix "define", macro P[macro] D[macro]
13326    next
13327  } else {
13328    # Replace #undef with comments.  This is necessary, for example,
13329    # in the case of _POSIX_SOURCE, which is predefined and required
13330    # on some systems where configure will not decide to define it.
13331    if (defundef == "undef") {
13332      print "/*", prefix defundef, macro, "*/"
13333      next
13334    }
13335  }
13336}
13337{ print }
13338_ACAWK
13339_ACEOF
13340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13341  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13342fi # test -n "$CONFIG_HEADERS"
13343
13344
13345eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13346shift
13347for ac_tag
13348do
13349  case $ac_tag in
13350  :[FHLC]) ac_mode=$ac_tag; continue;;
13351  esac
13352  case $ac_mode$ac_tag in
13353  :[FHL]*:*);;
13354  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
13355  :[FH]-) ac_tag=-:-;;
13356  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13357  esac
13358  ac_save_IFS=$IFS
13359  IFS=:
13360  set x $ac_tag
13361  IFS=$ac_save_IFS
13362  shift
13363  ac_file=$1
13364  shift
13365
13366  case $ac_mode in
13367  :L) ac_source=$1;;
13368  :[FH])
13369    ac_file_inputs=
13370    for ac_f
13371    do
13372      case $ac_f in
13373      -) ac_f="$ac_tmp/stdin";;
13374      *) # Look for the file first in the build tree, then in the source tree
13375	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13376	 # because $ac_f cannot contain ':'.
13377	 test -f "$ac_f" ||
13378	   case $ac_f in
13379	   [\\/$]*) false;;
13380	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13381	   esac ||
13382	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
13383      esac
13384      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13385      as_fn_append ac_file_inputs " '$ac_f'"
13386    done
13387
13388    # Let's still pretend it is 'configure' which instantiates (i.e., don't
13389    # use $as_me), people would be surprised to read:
13390    #    /* config.h.  Generated by config.status.  */
13391    configure_input='Generated from '`
13392	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13393	`' by configure.'
13394    if test x"$ac_file" != x-; then
13395      configure_input="$ac_file.  $configure_input"
13396      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13397printf "%s\n" "$as_me: creating $ac_file" >&6;}
13398    fi
13399    # Neutralize special characters interpreted by sed in replacement strings.
13400    case $configure_input in #(
13401    *\&* | *\|* | *\\* )
13402       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13403       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13404    *) ac_sed_conf_input=$configure_input;;
13405    esac
13406
13407    case $ac_tag in
13408    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13409      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13410    esac
13411    ;;
13412  esac
13413
13414  ac_dir=`$as_dirname -- "$ac_file" ||
13415$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13416	 X"$ac_file" : 'X\(//\)[^/]' \| \
13417	 X"$ac_file" : 'X\(//\)$' \| \
13418	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13419printf "%s\n" X"$ac_file" |
13420    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13421	    s//\1/
13422	    q
13423	  }
13424	  /^X\(\/\/\)[^/].*/{
13425	    s//\1/
13426	    q
13427	  }
13428	  /^X\(\/\/\)$/{
13429	    s//\1/
13430	    q
13431	  }
13432	  /^X\(\/\).*/{
13433	    s//\1/
13434	    q
13435	  }
13436	  s/.*/./; q'`
13437  as_dir="$ac_dir"; as_fn_mkdir_p
13438  ac_builddir=.
13439
13440case "$ac_dir" in
13441.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13442*)
13443  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13444  # A ".." for each directory in $ac_dir_suffix.
13445  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13446  case $ac_top_builddir_sub in
13447  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13448  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13449  esac ;;
13450esac
13451ac_abs_top_builddir=$ac_pwd
13452ac_abs_builddir=$ac_pwd$ac_dir_suffix
13453# for backward compatibility:
13454ac_top_builddir=$ac_top_build_prefix
13455
13456case $srcdir in
13457  .)  # We are building in place.
13458    ac_srcdir=.
13459    ac_top_srcdir=$ac_top_builddir_sub
13460    ac_abs_top_srcdir=$ac_pwd ;;
13461  [\\/]* | ?:[\\/]* )  # Absolute name.
13462    ac_srcdir=$srcdir$ac_dir_suffix;
13463    ac_top_srcdir=$srcdir
13464    ac_abs_top_srcdir=$srcdir ;;
13465  *) # Relative name.
13466    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13467    ac_top_srcdir=$ac_top_build_prefix$srcdir
13468    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13469esac
13470ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13471
13472
13473  case $ac_mode in
13474  :F)
13475  #
13476  # CONFIG_FILE
13477  #
13478
13479  case $INSTALL in
13480  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13481  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13482  esac
13483  ac_MKDIR_P=$MKDIR_P
13484  case $MKDIR_P in
13485  [\\/$]* | ?:[\\/]* ) ;;
13486  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13487  esac
13488_ACEOF
13489
13490cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13491# If the template does not know about datarootdir, expand it.
13492# FIXME: This hack should be removed a few years after 2.60.
13493ac_datarootdir_hack=; ac_datarootdir_seen=
13494ac_sed_dataroot='
13495/datarootdir/ {
13496  p
13497  q
13498}
13499/@datadir@/p
13500/@docdir@/p
13501/@infodir@/p
13502/@localedir@/p
13503/@mandir@/p'
13504case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13505*datarootdir*) ac_datarootdir_seen=yes;;
13506*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13507  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13508printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13509_ACEOF
13510cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13511  ac_datarootdir_hack='
13512  s&@datadir@&$datadir&g
13513  s&@docdir@&$docdir&g
13514  s&@infodir@&$infodir&g
13515  s&@localedir@&$localedir&g
13516  s&@mandir@&$mandir&g
13517  s&\\\${datarootdir}&$datarootdir&g' ;;
13518esac
13519_ACEOF
13520
13521# Neutralize VPATH when '$srcdir' = '.'.
13522# Shell code in configure.ac might set extrasub.
13523# FIXME: do we really want to maintain this feature?
13524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13525ac_sed_extra="$ac_vpsub
13526$extrasub
13527_ACEOF
13528cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13529:t
13530/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13531s|@configure_input@|$ac_sed_conf_input|;t t
13532s&@top_builddir@&$ac_top_builddir_sub&;t t
13533s&@top_build_prefix@&$ac_top_build_prefix&;t t
13534s&@srcdir@&$ac_srcdir&;t t
13535s&@abs_srcdir@&$ac_abs_srcdir&;t t
13536s&@top_srcdir@&$ac_top_srcdir&;t t
13537s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13538s&@builddir@&$ac_builddir&;t t
13539s&@abs_builddir@&$ac_abs_builddir&;t t
13540s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13541s&@INSTALL@&$ac_INSTALL&;t t
13542s&@MKDIR_P@&$ac_MKDIR_P&;t t
13543$ac_datarootdir_hack
13544"
13545eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13546  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13547
13548test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13549  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13550  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13551      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13552  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13553which seems to be undefined.  Please make sure it is defined" >&5
13554printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13555which seems to be undefined.  Please make sure it is defined" >&2;}
13556
13557  rm -f "$ac_tmp/stdin"
13558  case $ac_file in
13559  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13560  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13561  esac \
13562  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13563 ;;
13564  :H)
13565  #
13566  # CONFIG_HEADER
13567  #
13568  if test x"$ac_file" != x-; then
13569    {
13570      printf "%s\n" "/* $configure_input  */" >&1 \
13571      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13572    } >"$ac_tmp/config.h" \
13573      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13574    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13575      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13576printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13577    else
13578      rm -f "$ac_file"
13579      mv "$ac_tmp/config.h" "$ac_file" \
13580	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13581    fi
13582  else
13583    printf "%s\n" "/* $configure_input  */" >&1 \
13584      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13585      || as_fn_error $? "could not create -" "$LINENO" 5
13586  fi
13587# Compute "$ac_file"'s index in $config_headers.
13588_am_arg="$ac_file"
13589_am_stamp_count=1
13590for _am_header in $config_headers :; do
13591  case $_am_header in
13592    $_am_arg | $_am_arg:* )
13593      break ;;
13594    * )
13595      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13596  esac
13597done
13598echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13599$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13600	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13601	 X"$_am_arg" : 'X\(//\)$' \| \
13602	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13603printf "%s\n" X"$_am_arg" |
13604    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13605	    s//\1/
13606	    q
13607	  }
13608	  /^X\(\/\/\)[^/].*/{
13609	    s//\1/
13610	    q
13611	  }
13612	  /^X\(\/\/\)$/{
13613	    s//\1/
13614	    q
13615	  }
13616	  /^X\(\/\).*/{
13617	    s//\1/
13618	    q
13619	  }
13620	  s/.*/./; q'`/stamp-h$_am_stamp_count
13621 ;;
13622
13623  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13624printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13625 ;;
13626  esac
13627
13628
13629  case $ac_file$ac_mode in
13630    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13631  # Older Autoconf quotes --file arguments for eval, but not when files
13632  # are listed without --file.  Let's play safe and only enable the eval
13633  # if we detect the quoting.
13634  # TODO: see whether this extra hack can be removed once we start
13635  # requiring Autoconf 2.70 or later.
13636  case $CONFIG_FILES in #(
13637  *\'*) :
13638    eval set x "$CONFIG_FILES" ;; #(
13639  *) :
13640    set x $CONFIG_FILES ;; #(
13641  *) :
13642     ;;
13643esac
13644  shift
13645  # Used to flag and report bootstrapping failures.
13646  am_rc=0
13647  for am_mf
13648  do
13649    # Strip MF so we end up with the name of the file.
13650    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13651    # Check whether this is an Automake generated Makefile which includes
13652    # dependency-tracking related rules and includes.
13653    # Grep'ing the whole file directly is not great: AIX grep has a line
13654    # limit of 2048, but all sed's we know have understand at least 4000.
13655    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13656      || continue
13657    am_dirpart=`$as_dirname -- "$am_mf" ||
13658$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13659	 X"$am_mf" : 'X\(//\)[^/]' \| \
13660	 X"$am_mf" : 'X\(//\)$' \| \
13661	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13662printf "%s\n" X"$am_mf" |
13663    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13664	    s//\1/
13665	    q
13666	  }
13667	  /^X\(\/\/\)[^/].*/{
13668	    s//\1/
13669	    q
13670	  }
13671	  /^X\(\/\/\)$/{
13672	    s//\1/
13673	    q
13674	  }
13675	  /^X\(\/\).*/{
13676	    s//\1/
13677	    q
13678	  }
13679	  s/.*/./; q'`
13680    am_filepart=`$as_basename -- "$am_mf" ||
13681$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13682	 X"$am_mf" : 'X\(//\)$' \| \
13683	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13684printf "%s\n" X/"$am_mf" |
13685    sed '/^.*\/\([^/][^/]*\)\/*$/{
13686	    s//\1/
13687	    q
13688	  }
13689	  /^X\/\(\/\/\)$/{
13690	    s//\1/
13691	    q
13692	  }
13693	  /^X\/\(\/\).*/{
13694	    s//\1/
13695	    q
13696	  }
13697	  s/.*/./; q'`
13698    { echo "$as_me:$LINENO: cd "$am_dirpart" \
13699      && sed -e '/# am--include-marker/d' "$am_filepart" \
13700        | $MAKE -f - am--depfiles" >&5
13701   (cd "$am_dirpart" \
13702      && sed -e '/# am--include-marker/d' "$am_filepart" \
13703        | $MAKE -f - am--depfiles) >&5 2>&5
13704   ac_status=$?
13705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706   (exit $ac_status); } || am_rc=$?
13707  done
13708  if test $am_rc -ne 0; then
13709    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13710printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13711as_fn_error $? "Something went wrong bootstrapping makefile fragments
13712    for automatic dependency tracking.  If GNU make was not used, consider
13713    re-running the configure script with MAKE=\"gmake\" (or whatever is
13714    necessary).  You can also try re-running configure with the
13715    '--disable-dependency-tracking' option to at least be able to build
13716    the package (albeit without support for automatic dependency tracking).
13717See 'config.log' for more details" "$LINENO" 5; }
13718  fi
13719  { am_dirpart=; unset am_dirpart;}
13720  { am_filepart=; unset am_filepart;}
13721  { am_mf=; unset am_mf;}
13722  { am_rc=; unset am_rc;}
13723  rm -f conftest-deps.mk
13724}
13725 ;;
13726
13727  esac
13728done # for ac_tag
13729
13730
13731as_fn_exit 0
13732_ACEOF
13733ac_clean_files=$ac_clean_files_save
13734
13735test $ac_write_fail = 0 ||
13736  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13737
13738
13739# configure is writing to config.log, and then calls config.status.
13740# config.status does its own redirection, appending to config.log.
13741# Unfortunately, on DOS this fails, as config.log is still kept open
13742# by configure, so config.status won't be able to write to it; its
13743# output is simply discarded.  So we exec the FD to /dev/null,
13744# effectively closing config.log, so it can be properly (re)opened and
13745# appended to by config.status.  When coming back to configure, we
13746# need to make the FD available again.
13747if test "$no_create" != yes; then
13748  ac_cs_success=:
13749  ac_config_status_args=
13750  test "$silent" = yes &&
13751    ac_config_status_args="$ac_config_status_args --quiet"
13752  exec 5>/dev/null
13753  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13754  exec 5>>config.log
13755  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13756  # would make configure fail if this is the last instruction.
13757  $ac_cs_success || as_fn_exit 1
13758fi
13759if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13761printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13762fi
13763
13764
13765