configure revision 352bf44e
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for editres 1.0.8.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/editres/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 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
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
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="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
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 \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186test \$(( 1 + 1 )) = 2 || exit 1"
187  if (eval "$as_required") 2>/dev/null
188then :
189  as_have_required=yes
190else $as_nop
191  as_have_required=no
192fi
193  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194then :
195
196else $as_nop
197  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198as_found=false
199for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200do
201  IFS=$as_save_IFS
202  case $as_dir in #(((
203    '') as_dir=./ ;;
204    */) ;;
205    *) as_dir=$as_dir/ ;;
206  esac
207  as_found=:
208  case $as_dir in #(
209	 /*)
210	   for as_base in sh bash ksh sh5; do
211	     # Try only shells that exist, to save several forks.
212	     as_shell=$as_dir$as_base
213	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215then :
216  CONFIG_SHELL=$as_shell as_have_required=yes
217		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218then :
219  break 2
220fi
221fi
222	   done;;
223       esac
224  as_found=false
225done
226IFS=$as_save_IFS
227if $as_found
228then :
229
230else $as_nop
231  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233then :
234  CONFIG_SHELL=$SHELL as_have_required=yes
235fi
236fi
237
238
239      if test "x$CONFIG_SHELL" != x
240then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno
263then :
264  printf "%s\n" "$0: This script requires a shell more modern than all"
265  printf "%s\n" "$0: the shells that I found on your system."
266  if test ${ZSH_VERSION+y} ; then
267    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269  else
270    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
271$0: https://gitlab.freedesktop.org/xorg/app/editres/issues
272$0: about your system, including any error possibly output
273$0: before this message. Then install a modern shell, or
274$0: manually run the script under such a shell if you do
275$0: have one."
276  fi
277  exit 1
278fi
279fi
280fi
281SHELL=${CONFIG_SHELL-/bin/sh}
282export SHELL
283# Unset more variables known to interfere with behavior of common tools.
284CLICOLOR_FORCE= GREP_OPTIONS=
285unset CLICOLOR_FORCE GREP_OPTIONS
286
287## --------------------- ##
288## M4sh Shell Functions. ##
289## --------------------- ##
290# as_fn_unset VAR
291# ---------------
292# Portably unset VAR.
293as_fn_unset ()
294{
295  { eval $1=; unset $1;}
296}
297as_unset=as_fn_unset
298
299
300# as_fn_set_status STATUS
301# -----------------------
302# Set $? to STATUS, without forking.
303as_fn_set_status ()
304{
305  return $1
306} # as_fn_set_status
307
308# as_fn_exit STATUS
309# -----------------
310# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311as_fn_exit ()
312{
313  set +e
314  as_fn_set_status $1
315  exit $1
316} # as_fn_exit
317# as_fn_nop
318# ---------
319# Do nothing but, unlike ":", preserve the value of $?.
320as_fn_nop ()
321{
322  return $?
323}
324as_nop=as_fn_nop
325
326# as_fn_mkdir_p
327# -------------
328# Create "$as_dir" as a directory, including parents if necessary.
329as_fn_mkdir_p ()
330{
331
332  case $as_dir in #(
333  -*) as_dir=./$as_dir;;
334  esac
335  test -d "$as_dir" || eval $as_mkdir_p || {
336    as_dirs=
337    while :; do
338      case $as_dir in #(
339      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340      *) as_qdir=$as_dir;;
341      esac
342      as_dirs="'$as_qdir' $as_dirs"
343      as_dir=`$as_dirname -- "$as_dir" ||
344$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345	 X"$as_dir" : 'X\(//\)[^/]' \| \
346	 X"$as_dir" : 'X\(//\)$' \| \
347	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348printf "%s\n" X"$as_dir" |
349    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350	    s//\1/
351	    q
352	  }
353	  /^X\(\/\/\)[^/].*/{
354	    s//\1/
355	    q
356	  }
357	  /^X\(\/\/\)$/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\).*/{
362	    s//\1/
363	    q
364	  }
365	  s/.*/./; q'`
366      test -d "$as_dir" && break
367    done
368    test -z "$as_dirs" || eval "mkdir $as_dirs"
369  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372} # as_fn_mkdir_p
373
374# as_fn_executable_p FILE
375# -----------------------
376# Test if FILE is an executable regular file.
377as_fn_executable_p ()
378{
379  test -f "$1" && test -x "$1"
380} # as_fn_executable_p
381# as_fn_append VAR VALUE
382# ----------------------
383# Append the text in VALUE to the end of the definition contained in VAR. Take
384# advantage of any shell optimizations that allow amortized linear growth over
385# repeated appends, instead of the typical quadratic growth present in naive
386# implementations.
387if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388then :
389  eval 'as_fn_append ()
390  {
391    eval $1+=\$2
392  }'
393else $as_nop
394  as_fn_append ()
395  {
396    eval $1=\$$1\$2
397  }
398fi # as_fn_append
399
400# as_fn_arith ARG...
401# ------------------
402# Perform arithmetic evaluation on the ARGs, and store the result in the
403# global $as_val. Take advantage of shells that can avoid forks. The arguments
404# must be portable across $(()) and expr.
405if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
406then :
407  eval 'as_fn_arith ()
408  {
409    as_val=$(( $* ))
410  }'
411else $as_nop
412  as_fn_arith ()
413  {
414    as_val=`expr "$@" || test $? -eq 1`
415  }
416fi # as_fn_arith
417
418# as_fn_nop
419# ---------
420# Do nothing but, unlike ":", preserve the value of $?.
421as_fn_nop ()
422{
423  return $?
424}
425as_nop=as_fn_nop
426
427# as_fn_error STATUS ERROR [LINENO LOG_FD]
428# ----------------------------------------
429# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
430# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
431# script with STATUS, using 1 if that was 0.
432as_fn_error ()
433{
434  as_status=$1; test $as_status -eq 0 && as_status=1
435  if test "$4"; then
436    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
437    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438  fi
439  printf "%s\n" "$as_me: error: $2" >&2
440  as_fn_exit $as_status
441} # as_fn_error
442
443if expr a : '\(a\)' >/dev/null 2>&1 &&
444   test "X`expr 00001 : '.*\(...\)'`" = X001; then
445  as_expr=expr
446else
447  as_expr=false
448fi
449
450if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
451  as_basename=basename
452else
453  as_basename=false
454fi
455
456if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
457  as_dirname=dirname
458else
459  as_dirname=false
460fi
461
462as_me=`$as_basename -- "$0" ||
463$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
464	 X"$0" : 'X\(//\)$' \| \
465	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
466printf "%s\n" X/"$0" |
467    sed '/^.*\/\([^/][^/]*\)\/*$/{
468	    s//\1/
469	    q
470	  }
471	  /^X\/\(\/\/\)$/{
472	    s//\1/
473	    q
474	  }
475	  /^X\/\(\/\).*/{
476	    s//\1/
477	    q
478	  }
479	  s/.*/./; q'`
480
481# Avoid depending upon Character Ranges.
482as_cr_letters='abcdefghijklmnopqrstuvwxyz'
483as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
484as_cr_Letters=$as_cr_letters$as_cr_LETTERS
485as_cr_digits='0123456789'
486as_cr_alnum=$as_cr_Letters$as_cr_digits
487
488
489  as_lineno_1=$LINENO as_lineno_1a=$LINENO
490  as_lineno_2=$LINENO as_lineno_2a=$LINENO
491  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
492  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
493  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
494  sed -n '
495    p
496    /[$]LINENO/=
497  ' <$as_myself |
498    sed '
499      s/[$]LINENO.*/&-/
500      t lineno
501      b
502      :lineno
503      N
504      :loop
505      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506      t loop
507      s/-\n.*//
508    ' >$as_me.lineno &&
509  chmod +x "$as_me.lineno" ||
510    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513  # already done that, so ensure we don't try to do so again and fall
514  # in an infinite loop.  This has already happened in practice.
515  _as_can_reexec=no; export _as_can_reexec
516  # Don't try to exec as it changes $[0], causing all sort of problems
517  # (the dirname of $[0] is not the place where we might find the
518  # original and so on.  Autoconf is especially sensitive to this).
519  . "./$as_me.lineno"
520  # Exit status is that of the last command.
521  exit
522}
523
524
525# Determine whether it's possible to make 'echo' print without a newline.
526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527# for compatibility with existing Makefiles.
528ECHO_C= ECHO_N= ECHO_T=
529case `echo -n x` in #(((((
530-n*)
531  case `echo 'xy\c'` in
532  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
533  xy)  ECHO_C='\c';;
534  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
535       ECHO_T='	';;
536  esac;;
537*)
538  ECHO_N='-n';;
539esac
540
541# For backward compatibility with old third-party macros, we provide
542# the shell variables $as_echo and $as_echo_n.  New code should use
543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544as_echo='printf %s\n'
545as_echo_n='printf %s'
546
547
548rm -f conf$$ conf$$.exe conf$$.file
549if test -d conf$$.dir; then
550  rm -f conf$$.dir/conf$$.file
551else
552  rm -f conf$$.dir
553  mkdir conf$$.dir 2>/dev/null
554fi
555if (echo >conf$$.file) 2>/dev/null; then
556  if ln -s conf$$.file conf$$ 2>/dev/null; then
557    as_ln_s='ln -s'
558    # ... but there are two gotchas:
559    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
560    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
561    # In both cases, we have to default to `cp -pR'.
562    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563      as_ln_s='cp -pR'
564  elif ln conf$$.file conf$$ 2>/dev/null; then
565    as_ln_s=ln
566  else
567    as_ln_s='cp -pR'
568  fi
569else
570  as_ln_s='cp -pR'
571fi
572rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
573rmdir conf$$.dir 2>/dev/null
574
575if mkdir -p . 2>/dev/null; then
576  as_mkdir_p='mkdir -p "$as_dir"'
577else
578  test -d ./-p && rmdir ./-p
579  as_mkdir_p=false
580fi
581
582as_test_x='test -x'
583as_executable_p=as_fn_executable_p
584
585# Sed expression to map a string onto a valid CPP name.
586as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587
588# Sed expression to map a string onto a valid variable name.
589as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590
591
592test -n "$DJDIR" || exec 7<&0 </dev/null
593exec 6>&1
594
595# Name of the host.
596# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
597# so uname gets run too.
598ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
599
600#
601# Initializations.
602#
603ac_default_prefix=/usr/local
604ac_clean_files=
605ac_config_libobj_dir=.
606LIBOBJS=
607cross_compiling=no
608subdirs=
609MFLAGS=
610MAKEFLAGS=
611
612# Identity of this package.
613PACKAGE_NAME='editres'
614PACKAGE_TARNAME='editres'
615PACKAGE_VERSION='1.0.8'
616PACKAGE_STRING='editres 1.0.8'
617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/editres/issues'
618PACKAGE_URL=''
619
620ac_unique_file="Makefile.am"
621# Factoring default headers for most tests.
622ac_includes_default="\
623#include <stddef.h>
624#ifdef HAVE_STDIO_H
625# include <stdio.h>
626#endif
627#ifdef HAVE_STDLIB_H
628# include <stdlib.h>
629#endif
630#ifdef HAVE_STRING_H
631# include <string.h>
632#endif
633#ifdef HAVE_INTTYPES_H
634# include <inttypes.h>
635#endif
636#ifdef HAVE_STDINT_H
637# include <stdint.h>
638#endif
639#ifdef HAVE_STRINGS_H
640# include <strings.h>
641#endif
642#ifdef HAVE_SYS_TYPES_H
643# include <sys/types.h>
644#endif
645#ifdef HAVE_SYS_STAT_H
646# include <sys/stat.h>
647#endif
648#ifdef HAVE_UNISTD_H
649# include <unistd.h>
650#endif"
651
652ac_header_c_list=
653ac_subst_vars='am__EXEEXT_FALSE
654am__EXEEXT_TRUE
655LTLIBOBJS
656LIBOBJS
657appdefaultdir
658APPDEFS_LIBS
659APPDEFS_CFLAGS
660EDITRES_LIBS
661EDITRES_CFLAGS
662MAN_SUBSTS
663XORG_MAN_PAGE
664ADMIN_MAN_DIR
665DRIVER_MAN_DIR
666MISC_MAN_DIR
667FILE_MAN_DIR
668LIB_MAN_DIR
669APP_MAN_DIR
670ADMIN_MAN_SUFFIX
671DRIVER_MAN_SUFFIX
672MISC_MAN_SUFFIX
673FILE_MAN_SUFFIX
674LIB_MAN_SUFFIX
675APP_MAN_SUFFIX
676SED
677host_os
678host_vendor
679host_cpu
680host
681build_os
682build_vendor
683build_cpu
684build
685INSTALL_CMD
686PKG_CONFIG_LIBDIR
687PKG_CONFIG_PATH
688PKG_CONFIG
689CHANGELOG_CMD
690STRICT_CFLAGS
691CWARNFLAGS
692BASE_CFLAGS
693am__fastdepCC_FALSE
694am__fastdepCC_TRUE
695CCDEPMODE
696am__nodep
697AMDEPBACKSLASH
698AMDEP_FALSE
699AMDEP_TRUE
700am__include
701DEPDIR
702OBJEXT
703EXEEXT
704ac_ct_CC
705CPPFLAGS
706LDFLAGS
707CFLAGS
708CC
709AM_BACKSLASH
710AM_DEFAULT_VERBOSITY
711AM_DEFAULT_V
712AM_V
713CSCOPE
714ETAGS
715CTAGS
716am__untar
717am__tar
718AMTAR
719am__leading_dot
720SET_MAKE
721AWK
722mkdir_p
723MKDIR_P
724INSTALL_STRIP_PROGRAM
725STRIP
726install_sh
727MAKEINFO
728AUTOHEADER
729AUTOMAKE
730AUTOCONF
731ACLOCAL
732VERSION
733PACKAGE
734CYGPATH_W
735am__isrc
736INSTALL_DATA
737INSTALL_SCRIPT
738INSTALL_PROGRAM
739target_alias
740host_alias
741build_alias
742LIBS
743ECHO_T
744ECHO_N
745ECHO_C
746DEFS
747mandir
748localedir
749libdir
750psdir
751pdfdir
752dvidir
753htmldir
754infodir
755docdir
756oldincludedir
757includedir
758runstatedir
759localstatedir
760sharedstatedir
761sysconfdir
762datadir
763datarootdir
764libexecdir
765sbindir
766bindir
767program_transform_name
768prefix
769exec_prefix
770PACKAGE_URL
771PACKAGE_BUGREPORT
772PACKAGE_STRING
773PACKAGE_VERSION
774PACKAGE_TARNAME
775PACKAGE_NAME
776PATH_SEPARATOR
777SHELL
778am__quote'
779ac_subst_files=''
780ac_user_opts='
781enable_option_checking
782enable_silent_rules
783enable_dependency_tracking
784enable_selective_werror
785enable_strict_compilation
786with_appdefaultdir
787'
788      ac_precious_vars='build_alias
789host_alias
790target_alias
791CC
792CFLAGS
793LDFLAGS
794LIBS
795CPPFLAGS
796PKG_CONFIG
797PKG_CONFIG_PATH
798PKG_CONFIG_LIBDIR
799EDITRES_CFLAGS
800EDITRES_LIBS
801APPDEFS_CFLAGS
802APPDEFS_LIBS'
803
804
805# Initialize some variables set by options.
806ac_init_help=
807ac_init_version=false
808ac_unrecognized_opts=
809ac_unrecognized_sep=
810# The variables have the same names as the options, with
811# dashes changed to underlines.
812cache_file=/dev/null
813exec_prefix=NONE
814no_create=
815no_recursion=
816prefix=NONE
817program_prefix=NONE
818program_suffix=NONE
819program_transform_name=s,x,x,
820silent=
821site=
822srcdir=
823verbose=
824x_includes=NONE
825x_libraries=NONE
826
827# Installation directory options.
828# These are left unexpanded so users can "make install exec_prefix=/foo"
829# and all the variables that are supposed to be based on exec_prefix
830# by default will actually change.
831# Use braces instead of parens because sh, perl, etc. also accept them.
832# (The list follows the same order as the GNU Coding Standards.)
833bindir='${exec_prefix}/bin'
834sbindir='${exec_prefix}/sbin'
835libexecdir='${exec_prefix}/libexec'
836datarootdir='${prefix}/share'
837datadir='${datarootdir}'
838sysconfdir='${prefix}/etc'
839sharedstatedir='${prefix}/com'
840localstatedir='${prefix}/var'
841runstatedir='${localstatedir}/run'
842includedir='${prefix}/include'
843oldincludedir='/usr/include'
844docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
845infodir='${datarootdir}/info'
846htmldir='${docdir}'
847dvidir='${docdir}'
848pdfdir='${docdir}'
849psdir='${docdir}'
850libdir='${exec_prefix}/lib'
851localedir='${datarootdir}/locale'
852mandir='${datarootdir}/man'
853
854ac_prev=
855ac_dashdash=
856for ac_option
857do
858  # If the previous option needs an argument, assign it.
859  if test -n "$ac_prev"; then
860    eval $ac_prev=\$ac_option
861    ac_prev=
862    continue
863  fi
864
865  case $ac_option in
866  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867  *=)   ac_optarg= ;;
868  *)    ac_optarg=yes ;;
869  esac
870
871  case $ac_dashdash$ac_option in
872  --)
873    ac_dashdash=yes ;;
874
875  -bindir | --bindir | --bindi | --bind | --bin | --bi)
876    ac_prev=bindir ;;
877  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
878    bindir=$ac_optarg ;;
879
880  -build | --build | --buil | --bui | --bu)
881    ac_prev=build_alias ;;
882  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
883    build_alias=$ac_optarg ;;
884
885  -cache-file | --cache-file | --cache-fil | --cache-fi \
886  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
887    ac_prev=cache_file ;;
888  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
889  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
890    cache_file=$ac_optarg ;;
891
892  --config-cache | -C)
893    cache_file=config.cache ;;
894
895  -datadir | --datadir | --datadi | --datad)
896    ac_prev=datadir ;;
897  -datadir=* | --datadir=* | --datadi=* | --datad=*)
898    datadir=$ac_optarg ;;
899
900  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
901  | --dataroo | --dataro | --datar)
902    ac_prev=datarootdir ;;
903  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
904  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
905    datarootdir=$ac_optarg ;;
906
907  -disable-* | --disable-*)
908    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
909    # Reject names that are not valid shell variable names.
910    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911      as_fn_error $? "invalid feature name: \`$ac_useropt'"
912    ac_useropt_orig=$ac_useropt
913    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
914    case $ac_user_opts in
915      *"
916"enable_$ac_useropt"
917"*) ;;
918      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
919	 ac_unrecognized_sep=', ';;
920    esac
921    eval enable_$ac_useropt=no ;;
922
923  -docdir | --docdir | --docdi | --doc | --do)
924    ac_prev=docdir ;;
925  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
926    docdir=$ac_optarg ;;
927
928  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
929    ac_prev=dvidir ;;
930  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
931    dvidir=$ac_optarg ;;
932
933  -enable-* | --enable-*)
934    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
935    # Reject names that are not valid shell variable names.
936    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937      as_fn_error $? "invalid feature name: \`$ac_useropt'"
938    ac_useropt_orig=$ac_useropt
939    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
940    case $ac_user_opts in
941      *"
942"enable_$ac_useropt"
943"*) ;;
944      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
945	 ac_unrecognized_sep=', ';;
946    esac
947    eval enable_$ac_useropt=\$ac_optarg ;;
948
949  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951  | --exec | --exe | --ex)
952    ac_prev=exec_prefix ;;
953  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955  | --exec=* | --exe=* | --ex=*)
956    exec_prefix=$ac_optarg ;;
957
958  -gas | --gas | --ga | --g)
959    # Obsolete; use --with-gas.
960    with_gas=yes ;;
961
962  -help | --help | --hel | --he | -h)
963    ac_init_help=long ;;
964  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965    ac_init_help=recursive ;;
966  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967    ac_init_help=short ;;
968
969  -host | --host | --hos | --ho)
970    ac_prev=host_alias ;;
971  -host=* | --host=* | --hos=* | --ho=*)
972    host_alias=$ac_optarg ;;
973
974  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975    ac_prev=htmldir ;;
976  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977  | --ht=*)
978    htmldir=$ac_optarg ;;
979
980  -includedir | --includedir | --includedi | --included | --include \
981  | --includ | --inclu | --incl | --inc)
982    ac_prev=includedir ;;
983  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984  | --includ=* | --inclu=* | --incl=* | --inc=*)
985    includedir=$ac_optarg ;;
986
987  -infodir | --infodir | --infodi | --infod | --info | --inf)
988    ac_prev=infodir ;;
989  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990    infodir=$ac_optarg ;;
991
992  -libdir | --libdir | --libdi | --libd)
993    ac_prev=libdir ;;
994  -libdir=* | --libdir=* | --libdi=* | --libd=*)
995    libdir=$ac_optarg ;;
996
997  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998  | --libexe | --libex | --libe)
999    ac_prev=libexecdir ;;
1000  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001  | --libexe=* | --libex=* | --libe=*)
1002    libexecdir=$ac_optarg ;;
1003
1004  -localedir | --localedir | --localedi | --localed | --locale)
1005    ac_prev=localedir ;;
1006  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007    localedir=$ac_optarg ;;
1008
1009  -localstatedir | --localstatedir | --localstatedi | --localstated \
1010  | --localstate | --localstat | --localsta | --localst | --locals)
1011    ac_prev=localstatedir ;;
1012  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014    localstatedir=$ac_optarg ;;
1015
1016  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017    ac_prev=mandir ;;
1018  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019    mandir=$ac_optarg ;;
1020
1021  -nfp | --nfp | --nf)
1022    # Obsolete; use --without-fp.
1023    with_fp=no ;;
1024
1025  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026  | --no-cr | --no-c | -n)
1027    no_create=yes ;;
1028
1029  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031    no_recursion=yes ;;
1032
1033  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035  | --oldin | --oldi | --old | --ol | --o)
1036    ac_prev=oldincludedir ;;
1037  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040    oldincludedir=$ac_optarg ;;
1041
1042  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043    ac_prev=prefix ;;
1044  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045    prefix=$ac_optarg ;;
1046
1047  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048  | --program-pre | --program-pr | --program-p)
1049    ac_prev=program_prefix ;;
1050  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052    program_prefix=$ac_optarg ;;
1053
1054  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055  | --program-suf | --program-su | --program-s)
1056    ac_prev=program_suffix ;;
1057  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059    program_suffix=$ac_optarg ;;
1060
1061  -program-transform-name | --program-transform-name \
1062  | --program-transform-nam | --program-transform-na \
1063  | --program-transform-n | --program-transform- \
1064  | --program-transform | --program-transfor \
1065  | --program-transfo | --program-transf \
1066  | --program-trans | --program-tran \
1067  | --progr-tra | --program-tr | --program-t)
1068    ac_prev=program_transform_name ;;
1069  -program-transform-name=* | --program-transform-name=* \
1070  | --program-transform-nam=* | --program-transform-na=* \
1071  | --program-transform-n=* | --program-transform-=* \
1072  | --program-transform=* | --program-transfor=* \
1073  | --program-transfo=* | --program-transf=* \
1074  | --program-trans=* | --program-tran=* \
1075  | --progr-tra=* | --program-tr=* | --program-t=*)
1076    program_transform_name=$ac_optarg ;;
1077
1078  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079    ac_prev=pdfdir ;;
1080  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081    pdfdir=$ac_optarg ;;
1082
1083  -psdir | --psdir | --psdi | --psd | --ps)
1084    ac_prev=psdir ;;
1085  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086    psdir=$ac_optarg ;;
1087
1088  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089  | -silent | --silent | --silen | --sile | --sil)
1090    silent=yes ;;
1091
1092  -runstatedir | --runstatedir | --runstatedi | --runstated \
1093  | --runstate | --runstat | --runsta | --runst | --runs \
1094  | --run | --ru | --r)
1095    ac_prev=runstatedir ;;
1096  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1097  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1098  | --run=* | --ru=* | --r=*)
1099    runstatedir=$ac_optarg ;;
1100
1101  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102    ac_prev=sbindir ;;
1103  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104  | --sbi=* | --sb=*)
1105    sbindir=$ac_optarg ;;
1106
1107  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109  | --sharedst | --shareds | --shared | --share | --shar \
1110  | --sha | --sh)
1111    ac_prev=sharedstatedir ;;
1112  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115  | --sha=* | --sh=*)
1116    sharedstatedir=$ac_optarg ;;
1117
1118  -site | --site | --sit)
1119    ac_prev=site ;;
1120  -site=* | --site=* | --sit=*)
1121    site=$ac_optarg ;;
1122
1123  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124    ac_prev=srcdir ;;
1125  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1126    srcdir=$ac_optarg ;;
1127
1128  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129  | --syscon | --sysco | --sysc | --sys | --sy)
1130    ac_prev=sysconfdir ;;
1131  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1133    sysconfdir=$ac_optarg ;;
1134
1135  -target | --target | --targe | --targ | --tar | --ta | --t)
1136    ac_prev=target_alias ;;
1137  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1138    target_alias=$ac_optarg ;;
1139
1140  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1141    verbose=yes ;;
1142
1143  -version | --version | --versio | --versi | --vers | -V)
1144    ac_init_version=: ;;
1145
1146  -with-* | --with-*)
1147    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1148    # Reject names that are not valid shell variable names.
1149    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150      as_fn_error $? "invalid package name: \`$ac_useropt'"
1151    ac_useropt_orig=$ac_useropt
1152    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1153    case $ac_user_opts in
1154      *"
1155"with_$ac_useropt"
1156"*) ;;
1157      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1158	 ac_unrecognized_sep=', ';;
1159    esac
1160    eval with_$ac_useropt=\$ac_optarg ;;
1161
1162  -without-* | --without-*)
1163    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1164    # Reject names that are not valid shell variable names.
1165    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166      as_fn_error $? "invalid package name: \`$ac_useropt'"
1167    ac_useropt_orig=$ac_useropt
1168    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1169    case $ac_user_opts in
1170      *"
1171"with_$ac_useropt"
1172"*) ;;
1173      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1174	 ac_unrecognized_sep=', ';;
1175    esac
1176    eval with_$ac_useropt=no ;;
1177
1178  --x)
1179    # Obsolete; use --with-x.
1180    with_x=yes ;;
1181
1182  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1183  | --x-incl | --x-inc | --x-in | --x-i)
1184    ac_prev=x_includes ;;
1185  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1186  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1187    x_includes=$ac_optarg ;;
1188
1189  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1190  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1191    ac_prev=x_libraries ;;
1192  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1193  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1194    x_libraries=$ac_optarg ;;
1195
1196  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1197Try \`$0 --help' for more information"
1198    ;;
1199
1200  *=*)
1201    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1202    # Reject names that are not valid shell variable names.
1203    case $ac_envvar in #(
1204      '' | [0-9]* | *[!_$as_cr_alnum]* )
1205      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1206    esac
1207    eval $ac_envvar=\$ac_optarg
1208    export $ac_envvar ;;
1209
1210  *)
1211    # FIXME: should be removed in autoconf 3.0.
1212    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1213    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1214      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1215    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1216    ;;
1217
1218  esac
1219done
1220
1221if test -n "$ac_prev"; then
1222  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1223  as_fn_error $? "missing argument to $ac_option"
1224fi
1225
1226if test -n "$ac_unrecognized_opts"; then
1227  case $enable_option_checking in
1228    no) ;;
1229    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1230    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1231  esac
1232fi
1233
1234# Check all directory arguments for consistency.
1235for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1236		datadir sysconfdir sharedstatedir localstatedir includedir \
1237		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1238		libdir localedir mandir runstatedir
1239do
1240  eval ac_val=\$$ac_var
1241  # Remove trailing slashes.
1242  case $ac_val in
1243    */ )
1244      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1245      eval $ac_var=\$ac_val;;
1246  esac
1247  # Be sure to have absolute directory names.
1248  case $ac_val in
1249    [\\/$]* | ?:[\\/]* )  continue;;
1250    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1251  esac
1252  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1253done
1254
1255# There might be people who depend on the old broken behavior: `$host'
1256# used to hold the argument of --host etc.
1257# FIXME: To remove some day.
1258build=$build_alias
1259host=$host_alias
1260target=$target_alias
1261
1262# FIXME: To remove some day.
1263if test "x$host_alias" != x; then
1264  if test "x$build_alias" = x; then
1265    cross_compiling=maybe
1266  elif test "x$build_alias" != "x$host_alias"; then
1267    cross_compiling=yes
1268  fi
1269fi
1270
1271ac_tool_prefix=
1272test -n "$host_alias" && ac_tool_prefix=$host_alias-
1273
1274test "$silent" = yes && exec 6>/dev/null
1275
1276
1277ac_pwd=`pwd` && test -n "$ac_pwd" &&
1278ac_ls_di=`ls -di .` &&
1279ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1280  as_fn_error $? "working directory cannot be determined"
1281test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1282  as_fn_error $? "pwd does not report name of working directory"
1283
1284
1285# Find the source files, if location was not specified.
1286if test -z "$srcdir"; then
1287  ac_srcdir_defaulted=yes
1288  # Try the directory containing this script, then the parent directory.
1289  ac_confdir=`$as_dirname -- "$as_myself" ||
1290$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1291	 X"$as_myself" : 'X\(//\)[^/]' \| \
1292	 X"$as_myself" : 'X\(//\)$' \| \
1293	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1294printf "%s\n" X"$as_myself" |
1295    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296	    s//\1/
1297	    q
1298	  }
1299	  /^X\(\/\/\)[^/].*/{
1300	    s//\1/
1301	    q
1302	  }
1303	  /^X\(\/\/\)$/{
1304	    s//\1/
1305	    q
1306	  }
1307	  /^X\(\/\).*/{
1308	    s//\1/
1309	    q
1310	  }
1311	  s/.*/./; q'`
1312  srcdir=$ac_confdir
1313  if test ! -r "$srcdir/$ac_unique_file"; then
1314    srcdir=..
1315  fi
1316else
1317  ac_srcdir_defaulted=no
1318fi
1319if test ! -r "$srcdir/$ac_unique_file"; then
1320  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1321  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1322fi
1323ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1324ac_abs_confdir=`(
1325	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1326	pwd)`
1327# When building in place, set srcdir=.
1328if test "$ac_abs_confdir" = "$ac_pwd"; then
1329  srcdir=.
1330fi
1331# Remove unnecessary trailing slashes from srcdir.
1332# Double slashes in file names in object file debugging info
1333# mess up M-x gdb in Emacs.
1334case $srcdir in
1335*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1336esac
1337for ac_var in $ac_precious_vars; do
1338  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1339  eval ac_env_${ac_var}_value=\$${ac_var}
1340  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1341  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1342done
1343
1344#
1345# Report the --help message.
1346#
1347if test "$ac_init_help" = "long"; then
1348  # Omit some internal or obsolete options to make the list less imposing.
1349  # This message is too long to be a string in the A/UX 3.1 sh.
1350  cat <<_ACEOF
1351\`configure' configures editres 1.0.8 to adapt to many kinds of systems.
1352
1353Usage: $0 [OPTION]... [VAR=VALUE]...
1354
1355To assign environment variables (e.g., CC, CFLAGS...), specify them as
1356VAR=VALUE.  See below for descriptions of some of the useful variables.
1357
1358Defaults for the options are specified in brackets.
1359
1360Configuration:
1361  -h, --help              display this help and exit
1362      --help=short        display options specific to this package
1363      --help=recursive    display the short help of all the included packages
1364  -V, --version           display version information and exit
1365  -q, --quiet, --silent   do not print \`checking ...' messages
1366      --cache-file=FILE   cache test results in FILE [disabled]
1367  -C, --config-cache      alias for \`--cache-file=config.cache'
1368  -n, --no-create         do not create output files
1369      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1370
1371Installation directories:
1372  --prefix=PREFIX         install architecture-independent files in PREFIX
1373                          [$ac_default_prefix]
1374  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1375                          [PREFIX]
1376
1377By default, \`make install' will install all the files in
1378\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1379an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1380for instance \`--prefix=\$HOME'.
1381
1382For better control, use the options below.
1383
1384Fine tuning of the installation directories:
1385  --bindir=DIR            user executables [EPREFIX/bin]
1386  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1387  --libexecdir=DIR        program executables [EPREFIX/libexec]
1388  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1389  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1390  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1391  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1392  --libdir=DIR            object code libraries [EPREFIX/lib]
1393  --includedir=DIR        C header files [PREFIX/include]
1394  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1395  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1396  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1397  --infodir=DIR           info documentation [DATAROOTDIR/info]
1398  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1399  --mandir=DIR            man documentation [DATAROOTDIR/man]
1400  --docdir=DIR            documentation root [DATAROOTDIR/doc/editres]
1401  --htmldir=DIR           html documentation [DOCDIR]
1402  --dvidir=DIR            dvi documentation [DOCDIR]
1403  --pdfdir=DIR            pdf documentation [DOCDIR]
1404  --psdir=DIR             ps documentation [DOCDIR]
1405_ACEOF
1406
1407  cat <<\_ACEOF
1408
1409Program names:
1410  --program-prefix=PREFIX            prepend PREFIX to installed program names
1411  --program-suffix=SUFFIX            append SUFFIX to installed program names
1412  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1413
1414System types:
1415  --build=BUILD     configure for building on BUILD [guessed]
1416  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1417_ACEOF
1418fi
1419
1420if test -n "$ac_init_help"; then
1421  case $ac_init_help in
1422     short | recursive ) echo "Configuration of editres 1.0.8:";;
1423   esac
1424  cat <<\_ACEOF
1425
1426Optional Features:
1427  --disable-option-checking  ignore unrecognized --enable/--with options
1428  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1429  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1430  --enable-silent-rules   less verbose build output (undo: "make V=1")
1431  --disable-silent-rules  verbose build output (undo: "make V=0")
1432  --enable-dependency-tracking
1433                          do not reject slow dependency extractors
1434  --disable-dependency-tracking
1435                          speeds up one-time build
1436  --disable-selective-werror
1437                          Turn off selective compiler errors. (default:
1438                          enabled)
1439  --enable-strict-compilation
1440                          Enable all warnings from compiler and make them
1441                          errors (default: disabled)
1442
1443Optional Packages:
1444  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1445  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1446  --with-appdefaultdir=<pathname>
1447                          specify directory for app-defaults files (default is
1448                          autodetected)
1449
1450Some influential environment variables:
1451  CC          C compiler command
1452  CFLAGS      C compiler flags
1453  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1454              nonstandard directory <lib dir>
1455  LIBS        libraries to pass to the linker, e.g. -l<library>
1456  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1457              you have headers in a nonstandard directory <include dir>
1458  PKG_CONFIG  path to pkg-config utility
1459  PKG_CONFIG_PATH
1460              directories to add to pkg-config's search path
1461  PKG_CONFIG_LIBDIR
1462              path overriding pkg-config's built-in search path
1463  EDITRES_CFLAGS
1464              C compiler flags for EDITRES, overriding pkg-config
1465  EDITRES_LIBS
1466              linker flags for EDITRES, overriding pkg-config
1467  APPDEFS_CFLAGS
1468              C compiler flags for APPDEFS, overriding pkg-config
1469  APPDEFS_LIBS
1470              linker flags for APPDEFS, overriding pkg-config
1471
1472Use these variables to override the choices made by `configure' or to help
1473it to find libraries and programs with nonstandard names/locations.
1474
1475Report bugs to <https://gitlab.freedesktop.org/xorg/app/editres/issues>.
1476_ACEOF
1477ac_status=$?
1478fi
1479
1480if test "$ac_init_help" = "recursive"; then
1481  # If there are subdirs, report their specific --help.
1482  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483    test -d "$ac_dir" ||
1484      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1485      continue
1486    ac_builddir=.
1487
1488case "$ac_dir" in
1489.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490*)
1491  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1492  # A ".." for each directory in $ac_dir_suffix.
1493  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494  case $ac_top_builddir_sub in
1495  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497  esac ;;
1498esac
1499ac_abs_top_builddir=$ac_pwd
1500ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501# for backward compatibility:
1502ac_top_builddir=$ac_top_build_prefix
1503
1504case $srcdir in
1505  .)  # We are building in place.
1506    ac_srcdir=.
1507    ac_top_srcdir=$ac_top_builddir_sub
1508    ac_abs_top_srcdir=$ac_pwd ;;
1509  [\\/]* | ?:[\\/]* )  # Absolute name.
1510    ac_srcdir=$srcdir$ac_dir_suffix;
1511    ac_top_srcdir=$srcdir
1512    ac_abs_top_srcdir=$srcdir ;;
1513  *) # Relative name.
1514    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515    ac_top_srcdir=$ac_top_build_prefix$srcdir
1516    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517esac
1518ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519
1520    cd "$ac_dir" || { ac_status=$?; continue; }
1521    # Check for configure.gnu first; this name is used for a wrapper for
1522    # Metaconfig's "Configure" on case-insensitive file systems.
1523    if test -f "$ac_srcdir/configure.gnu"; then
1524      echo &&
1525      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1526    elif test -f "$ac_srcdir/configure"; then
1527      echo &&
1528      $SHELL "$ac_srcdir/configure" --help=recursive
1529    else
1530      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1531    fi || ac_status=$?
1532    cd "$ac_pwd" || { ac_status=$?; break; }
1533  done
1534fi
1535
1536test -n "$ac_init_help" && exit $ac_status
1537if $ac_init_version; then
1538  cat <<\_ACEOF
1539editres configure 1.0.8
1540generated by GNU Autoconf 2.71
1541
1542Copyright (C) 2021 Free Software Foundation, Inc.
1543This configure script is free software; the Free Software Foundation
1544gives unlimited permission to copy, distribute and modify it.
1545_ACEOF
1546  exit
1547fi
1548
1549## ------------------------ ##
1550## Autoconf initialization. ##
1551## ------------------------ ##
1552
1553# ac_fn_c_try_compile LINENO
1554# --------------------------
1555# Try to compile conftest.$ac_ext, and return whether this succeeded.
1556ac_fn_c_try_compile ()
1557{
1558  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559  rm -f conftest.$ac_objext conftest.beam
1560  if { { ac_try="$ac_compile"
1561case "(($ac_try" in
1562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563  *) ac_try_echo=$ac_try;;
1564esac
1565eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566printf "%s\n" "$ac_try_echo"; } >&5
1567  (eval "$ac_compile") 2>conftest.err
1568  ac_status=$?
1569  if test -s conftest.err; then
1570    grep -v '^ *+' conftest.err >conftest.er1
1571    cat conftest.er1 >&5
1572    mv -f conftest.er1 conftest.err
1573  fi
1574  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575  test $ac_status = 0; } && {
1576	 test -z "$ac_c_werror_flag" ||
1577	 test ! -s conftest.err
1578       } && test -s conftest.$ac_objext
1579then :
1580  ac_retval=0
1581else $as_nop
1582  printf "%s\n" "$as_me: failed program was:" >&5
1583sed 's/^/| /' conftest.$ac_ext >&5
1584
1585	ac_retval=1
1586fi
1587  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588  as_fn_set_status $ac_retval
1589
1590} # ac_fn_c_try_compile
1591
1592# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1593# ------------------------------------------------------------------
1594# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1595# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1596ac_fn_check_decl ()
1597{
1598  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599  as_decl_name=`echo $2|sed 's/ *(.*//'`
1600  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1601printf %s "checking whether $as_decl_name is declared... " >&6; }
1602if eval test \${$3+y}
1603then :
1604  printf %s "(cached) " >&6
1605else $as_nop
1606  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1607  eval ac_save_FLAGS=\$$6
1608  as_fn_append $6 " $5"
1609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1610/* end confdefs.h.  */
1611$4
1612int
1613main (void)
1614{
1615#ifndef $as_decl_name
1616#ifdef __cplusplus
1617  (void) $as_decl_use;
1618#else
1619  (void) $as_decl_name;
1620#endif
1621#endif
1622
1623  ;
1624  return 0;
1625}
1626_ACEOF
1627if ac_fn_c_try_compile "$LINENO"
1628then :
1629  eval "$3=yes"
1630else $as_nop
1631  eval "$3=no"
1632fi
1633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1634  eval $6=\$ac_save_FLAGS
1635
1636fi
1637eval ac_res=\$$3
1638	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1639printf "%s\n" "$ac_res" >&6; }
1640  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641
1642} # ac_fn_check_decl
1643
1644# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1645# -------------------------------------------------------
1646# Tests whether HEADER exists and can be compiled using the include files in
1647# INCLUDES, setting the cache variable VAR accordingly.
1648ac_fn_c_check_header_compile ()
1649{
1650  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1652printf %s "checking for $2... " >&6; }
1653if eval test \${$3+y}
1654then :
1655  printf %s "(cached) " >&6
1656else $as_nop
1657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658/* end confdefs.h.  */
1659$4
1660#include <$2>
1661_ACEOF
1662if ac_fn_c_try_compile "$LINENO"
1663then :
1664  eval "$3=yes"
1665else $as_nop
1666  eval "$3=no"
1667fi
1668rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1669fi
1670eval ac_res=\$$3
1671	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1672printf "%s\n" "$ac_res" >&6; }
1673  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674
1675} # ac_fn_c_check_header_compile
1676
1677# ac_fn_c_try_link LINENO
1678# -----------------------
1679# Try to link conftest.$ac_ext, and return whether this succeeded.
1680ac_fn_c_try_link ()
1681{
1682  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1684  if { { ac_try="$ac_link"
1685case "(($ac_try" in
1686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687  *) ac_try_echo=$ac_try;;
1688esac
1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690printf "%s\n" "$ac_try_echo"; } >&5
1691  (eval "$ac_link") 2>conftest.err
1692  ac_status=$?
1693  if test -s conftest.err; then
1694    grep -v '^ *+' conftest.err >conftest.er1
1695    cat conftest.er1 >&5
1696    mv -f conftest.er1 conftest.err
1697  fi
1698  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699  test $ac_status = 0; } && {
1700	 test -z "$ac_c_werror_flag" ||
1701	 test ! -s conftest.err
1702       } && test -s conftest$ac_exeext && {
1703	 test "$cross_compiling" = yes ||
1704	 test -x conftest$ac_exeext
1705       }
1706then :
1707  ac_retval=0
1708else $as_nop
1709  printf "%s\n" "$as_me: failed program was:" >&5
1710sed 's/^/| /' conftest.$ac_ext >&5
1711
1712	ac_retval=1
1713fi
1714  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1715  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1716  # interfere with the next link command; also delete a directory that is
1717  # left behind by Apple's compiler.  We do this before executing the actions.
1718  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720  as_fn_set_status $ac_retval
1721
1722} # ac_fn_c_try_link
1723ac_configure_args_raw=
1724for ac_arg
1725do
1726  case $ac_arg in
1727  *\'*)
1728    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1729  esac
1730  as_fn_append ac_configure_args_raw " '$ac_arg'"
1731done
1732
1733case $ac_configure_args_raw in
1734  *$as_nl*)
1735    ac_safe_unquote= ;;
1736  *)
1737    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1738    ac_unsafe_a="$ac_unsafe_z#~"
1739    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1740    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1741esac
1742
1743cat >config.log <<_ACEOF
1744This file contains any messages produced by compilers while
1745running configure, to aid debugging if configure makes a mistake.
1746
1747It was created by editres $as_me 1.0.8, which was
1748generated by GNU Autoconf 2.71.  Invocation command line was
1749
1750  $ $0$ac_configure_args_raw
1751
1752_ACEOF
1753exec 5>>config.log
1754{
1755cat <<_ASUNAME
1756## --------- ##
1757## Platform. ##
1758## --------- ##
1759
1760hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1761uname -m = `(uname -m) 2>/dev/null || echo unknown`
1762uname -r = `(uname -r) 2>/dev/null || echo unknown`
1763uname -s = `(uname -s) 2>/dev/null || echo unknown`
1764uname -v = `(uname -v) 2>/dev/null || echo unknown`
1765
1766/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1767/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1768
1769/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1770/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1771/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1772/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1773/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1774/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1775/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1776
1777_ASUNAME
1778
1779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780for as_dir in $PATH
1781do
1782  IFS=$as_save_IFS
1783  case $as_dir in #(((
1784    '') as_dir=./ ;;
1785    */) ;;
1786    *) as_dir=$as_dir/ ;;
1787  esac
1788    printf "%s\n" "PATH: $as_dir"
1789  done
1790IFS=$as_save_IFS
1791
1792} >&5
1793
1794cat >&5 <<_ACEOF
1795
1796
1797## ----------- ##
1798## Core tests. ##
1799## ----------- ##
1800
1801_ACEOF
1802
1803
1804# Keep a trace of the command line.
1805# Strip out --no-create and --no-recursion so they do not pile up.
1806# Strip out --silent because we don't want to record it for future runs.
1807# Also quote any args containing shell meta-characters.
1808# Make two passes to allow for proper duplicate-argument suppression.
1809ac_configure_args=
1810ac_configure_args0=
1811ac_configure_args1=
1812ac_must_keep_next=false
1813for ac_pass in 1 2
1814do
1815  for ac_arg
1816  do
1817    case $ac_arg in
1818    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1819    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1820    | -silent | --silent | --silen | --sile | --sil)
1821      continue ;;
1822    *\'*)
1823      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1824    esac
1825    case $ac_pass in
1826    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1827    2)
1828      as_fn_append ac_configure_args1 " '$ac_arg'"
1829      if test $ac_must_keep_next = true; then
1830	ac_must_keep_next=false # Got value, back to normal.
1831      else
1832	case $ac_arg in
1833	  *=* | --config-cache | -C | -disable-* | --disable-* \
1834	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1835	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1836	  | -with-* | --with-* | -without-* | --without-* | --x)
1837	    case "$ac_configure_args0 " in
1838	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1839	    esac
1840	    ;;
1841	  -* ) ac_must_keep_next=true ;;
1842	esac
1843      fi
1844      as_fn_append ac_configure_args " '$ac_arg'"
1845      ;;
1846    esac
1847  done
1848done
1849{ ac_configure_args0=; unset ac_configure_args0;}
1850{ ac_configure_args1=; unset ac_configure_args1;}
1851
1852# When interrupted or exit'd, cleanup temporary files, and complete
1853# config.log.  We remove comments because anyway the quotes in there
1854# would cause problems or look ugly.
1855# WARNING: Use '\'' to represent an apostrophe within the trap.
1856# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1857trap 'exit_status=$?
1858  # Sanitize IFS.
1859  IFS=" ""	$as_nl"
1860  # Save into config.log some information that might help in debugging.
1861  {
1862    echo
1863
1864    printf "%s\n" "## ---------------- ##
1865## Cache variables. ##
1866## ---------------- ##"
1867    echo
1868    # The following way of writing the cache mishandles newlines in values,
1869(
1870  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1871    eval ac_val=\$$ac_var
1872    case $ac_val in #(
1873    *${as_nl}*)
1874      case $ac_var in #(
1875      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1876printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1877      esac
1878      case $ac_var in #(
1879      _ | IFS | as_nl) ;; #(
1880      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1881      *) { eval $ac_var=; unset $ac_var;} ;;
1882      esac ;;
1883    esac
1884  done
1885  (set) 2>&1 |
1886    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1887    *${as_nl}ac_space=\ *)
1888      sed -n \
1889	"s/'\''/'\''\\\\'\'''\''/g;
1890	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1891      ;; #(
1892    *)
1893      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1894      ;;
1895    esac |
1896    sort
1897)
1898    echo
1899
1900    printf "%s\n" "## ----------------- ##
1901## Output variables. ##
1902## ----------------- ##"
1903    echo
1904    for ac_var in $ac_subst_vars
1905    do
1906      eval ac_val=\$$ac_var
1907      case $ac_val in
1908      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1909      esac
1910      printf "%s\n" "$ac_var='\''$ac_val'\''"
1911    done | sort
1912    echo
1913
1914    if test -n "$ac_subst_files"; then
1915      printf "%s\n" "## ------------------- ##
1916## File substitutions. ##
1917## ------------------- ##"
1918      echo
1919      for ac_var in $ac_subst_files
1920      do
1921	eval ac_val=\$$ac_var
1922	case $ac_val in
1923	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1924	esac
1925	printf "%s\n" "$ac_var='\''$ac_val'\''"
1926      done | sort
1927      echo
1928    fi
1929
1930    if test -s confdefs.h; then
1931      printf "%s\n" "## ----------- ##
1932## confdefs.h. ##
1933## ----------- ##"
1934      echo
1935      cat confdefs.h
1936      echo
1937    fi
1938    test "$ac_signal" != 0 &&
1939      printf "%s\n" "$as_me: caught signal $ac_signal"
1940    printf "%s\n" "$as_me: exit $exit_status"
1941  } >&5
1942  rm -f core *.core core.conftest.* &&
1943    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1944    exit $exit_status
1945' 0
1946for ac_signal in 1 2 13 15; do
1947  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1948done
1949ac_signal=0
1950
1951# confdefs.h avoids OS command line length limits that DEFS can exceed.
1952rm -f -r conftest* confdefs.h
1953
1954printf "%s\n" "/* confdefs.h */" > confdefs.h
1955
1956# Predefined preprocessor variables.
1957
1958printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1959
1960printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1961
1962printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1963
1964printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1965
1966printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1967
1968printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1969
1970
1971# Let the site file select an alternate cache file if it wants to.
1972# Prefer an explicitly selected file to automatically selected ones.
1973if test -n "$CONFIG_SITE"; then
1974  ac_site_files="$CONFIG_SITE"
1975elif test "x$prefix" != xNONE; then
1976  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1977else
1978  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1979fi
1980
1981for ac_site_file in $ac_site_files
1982do
1983  case $ac_site_file in #(
1984  */*) :
1985     ;; #(
1986  *) :
1987    ac_site_file=./$ac_site_file ;;
1988esac
1989  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1990    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1991printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1992    sed 's/^/| /' "$ac_site_file" >&5
1993    . "$ac_site_file" \
1994      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1995printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1996as_fn_error $? "failed to load site script $ac_site_file
1997See \`config.log' for more details" "$LINENO" 5; }
1998  fi
1999done
2000
2001if test -r "$cache_file"; then
2002  # Some versions of bash will fail to source /dev/null (special files
2003  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2004  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2005    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2006printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2007    case $cache_file in
2008      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2009      *)                      . "./$cache_file";;
2010    esac
2011  fi
2012else
2013  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2014printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2015  >$cache_file
2016fi
2017
2018# Test code for whether the C compiler supports C89 (global declarations)
2019ac_c_conftest_c89_globals='
2020/* Does the compiler advertise C89 conformance?
2021   Do not test the value of __STDC__, because some compilers set it to 0
2022   while being otherwise adequately conformant. */
2023#if !defined __STDC__
2024# error "Compiler does not advertise C89 conformance"
2025#endif
2026
2027#include <stddef.h>
2028#include <stdarg.h>
2029struct stat;
2030/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2031struct buf { int x; };
2032struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2033static char *e (p, i)
2034     char **p;
2035     int i;
2036{
2037  return p[i];
2038}
2039static char *f (char * (*g) (char **, int), char **p, ...)
2040{
2041  char *s;
2042  va_list v;
2043  va_start (v,p);
2044  s = g (p, va_arg (v,int));
2045  va_end (v);
2046  return s;
2047}
2048
2049/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2050   function prototypes and stuff, but not \xHH hex character constants.
2051   These do not provoke an error unfortunately, instead are silently treated
2052   as an "x".  The following induces an error, until -std is added to get
2053   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2054   array size at least.  It is necessary to write \x00 == 0 to get something
2055   that is true only with -std.  */
2056int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2057
2058/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2059   inside strings and character constants.  */
2060#define FOO(x) '\''x'\''
2061int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2062
2063int test (int i, double x);
2064struct s1 {int (*f) (int a);};
2065struct s2 {int (*f) (double a);};
2066int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2067               int, int);'
2068
2069# Test code for whether the C compiler supports C89 (body of main).
2070ac_c_conftest_c89_main='
2071ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2072'
2073
2074# Test code for whether the C compiler supports C99 (global declarations)
2075ac_c_conftest_c99_globals='
2076// Does the compiler advertise C99 conformance?
2077#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2078# error "Compiler does not advertise C99 conformance"
2079#endif
2080
2081#include <stdbool.h>
2082extern int puts (const char *);
2083extern int printf (const char *, ...);
2084extern int dprintf (int, const char *, ...);
2085extern void *malloc (size_t);
2086
2087// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2088// dprintf is used instead of fprintf to avoid needing to declare
2089// FILE and stderr.
2090#define debug(...) dprintf (2, __VA_ARGS__)
2091#define showlist(...) puts (#__VA_ARGS__)
2092#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2093static void
2094test_varargs_macros (void)
2095{
2096  int x = 1234;
2097  int y = 5678;
2098  debug ("Flag");
2099  debug ("X = %d\n", x);
2100  showlist (The first, second, and third items.);
2101  report (x>y, "x is %d but y is %d", x, y);
2102}
2103
2104// Check long long types.
2105#define BIG64 18446744073709551615ull
2106#define BIG32 4294967295ul
2107#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2108#if !BIG_OK
2109  #error "your preprocessor is broken"
2110#endif
2111#if BIG_OK
2112#else
2113  #error "your preprocessor is broken"
2114#endif
2115static long long int bignum = -9223372036854775807LL;
2116static unsigned long long int ubignum = BIG64;
2117
2118struct incomplete_array
2119{
2120  int datasize;
2121  double data[];
2122};
2123
2124struct named_init {
2125  int number;
2126  const wchar_t *name;
2127  double average;
2128};
2129
2130typedef const char *ccp;
2131
2132static inline int
2133test_restrict (ccp restrict text)
2134{
2135  // See if C++-style comments work.
2136  // Iterate through items via the restricted pointer.
2137  // Also check for declarations in for loops.
2138  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2139    continue;
2140  return 0;
2141}
2142
2143// Check varargs and va_copy.
2144static bool
2145test_varargs (const char *format, ...)
2146{
2147  va_list args;
2148  va_start (args, format);
2149  va_list args_copy;
2150  va_copy (args_copy, args);
2151
2152  const char *str = "";
2153  int number = 0;
2154  float fnumber = 0;
2155
2156  while (*format)
2157    {
2158      switch (*format++)
2159	{
2160	case '\''s'\'': // string
2161	  str = va_arg (args_copy, const char *);
2162	  break;
2163	case '\''d'\'': // int
2164	  number = va_arg (args_copy, int);
2165	  break;
2166	case '\''f'\'': // float
2167	  fnumber = va_arg (args_copy, double);
2168	  break;
2169	default:
2170	  break;
2171	}
2172    }
2173  va_end (args_copy);
2174  va_end (args);
2175
2176  return *str && number && fnumber;
2177}
2178'
2179
2180# Test code for whether the C compiler supports C99 (body of main).
2181ac_c_conftest_c99_main='
2182  // Check bool.
2183  _Bool success = false;
2184  success |= (argc != 0);
2185
2186  // Check restrict.
2187  if (test_restrict ("String literal") == 0)
2188    success = true;
2189  char *restrict newvar = "Another string";
2190
2191  // Check varargs.
2192  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2193  test_varargs_macros ();
2194
2195  // Check flexible array members.
2196  struct incomplete_array *ia =
2197    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2198  ia->datasize = 10;
2199  for (int i = 0; i < ia->datasize; ++i)
2200    ia->data[i] = i * 1.234;
2201
2202  // Check named initializers.
2203  struct named_init ni = {
2204    .number = 34,
2205    .name = L"Test wide string",
2206    .average = 543.34343,
2207  };
2208
2209  ni.number = 58;
2210
2211  int dynamic_array[ni.number];
2212  dynamic_array[0] = argv[0][0];
2213  dynamic_array[ni.number - 1] = 543;
2214
2215  // work around unused variable warnings
2216  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2217	 || dynamic_array[ni.number - 1] != 543);
2218'
2219
2220# Test code for whether the C compiler supports C11 (global declarations)
2221ac_c_conftest_c11_globals='
2222// Does the compiler advertise C11 conformance?
2223#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2224# error "Compiler does not advertise C11 conformance"
2225#endif
2226
2227// Check _Alignas.
2228char _Alignas (double) aligned_as_double;
2229char _Alignas (0) no_special_alignment;
2230extern char aligned_as_int;
2231char _Alignas (0) _Alignas (int) aligned_as_int;
2232
2233// Check _Alignof.
2234enum
2235{
2236  int_alignment = _Alignof (int),
2237  int_array_alignment = _Alignof (int[100]),
2238  char_alignment = _Alignof (char)
2239};
2240_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2241
2242// Check _Noreturn.
2243int _Noreturn does_not_return (void) { for (;;) continue; }
2244
2245// Check _Static_assert.
2246struct test_static_assert
2247{
2248  int x;
2249  _Static_assert (sizeof (int) <= sizeof (long int),
2250                  "_Static_assert does not work in struct");
2251  long int y;
2252};
2253
2254// Check UTF-8 literals.
2255#define u8 syntax error!
2256char const utf8_literal[] = u8"happens to be ASCII" "another string";
2257
2258// Check duplicate typedefs.
2259typedef long *long_ptr;
2260typedef long int *long_ptr;
2261typedef long_ptr long_ptr;
2262
2263// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2264struct anonymous
2265{
2266  union {
2267    struct { int i; int j; };
2268    struct { int k; long int l; } w;
2269  };
2270  int m;
2271} v1;
2272'
2273
2274# Test code for whether the C compiler supports C11 (body of main).
2275ac_c_conftest_c11_main='
2276  _Static_assert ((offsetof (struct anonymous, i)
2277		   == offsetof (struct anonymous, w.k)),
2278		  "Anonymous union alignment botch");
2279  v1.i = 2;
2280  v1.w.k = 5;
2281  ok |= v1.i != 5;
2282'
2283
2284# Test code for whether the C compiler supports C11 (complete).
2285ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2286${ac_c_conftest_c99_globals}
2287${ac_c_conftest_c11_globals}
2288
2289int
2290main (int argc, char **argv)
2291{
2292  int ok = 0;
2293  ${ac_c_conftest_c89_main}
2294  ${ac_c_conftest_c99_main}
2295  ${ac_c_conftest_c11_main}
2296  return ok;
2297}
2298"
2299
2300# Test code for whether the C compiler supports C99 (complete).
2301ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2302${ac_c_conftest_c99_globals}
2303
2304int
2305main (int argc, char **argv)
2306{
2307  int ok = 0;
2308  ${ac_c_conftest_c89_main}
2309  ${ac_c_conftest_c99_main}
2310  return ok;
2311}
2312"
2313
2314# Test code for whether the C compiler supports C89 (complete).
2315ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2316
2317int
2318main (int argc, char **argv)
2319{
2320  int ok = 0;
2321  ${ac_c_conftest_c89_main}
2322  return ok;
2323}
2324"
2325
2326as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2327as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2328as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2329as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2330as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2331as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2332as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2333as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2334as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2335
2336# Auxiliary files required by this configure script.
2337ac_aux_files="config.guess config.sub compile missing install-sh"
2338
2339# Locations in which to look for auxiliary files.
2340ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2341
2342# Search for a directory containing all of the required auxiliary files,
2343# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2344# If we don't find one directory that contains all the files we need,
2345# we report the set of missing files from the *first* directory in
2346# $ac_aux_dir_candidates and give up.
2347ac_missing_aux_files=""
2348ac_first_candidate=:
2349printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351as_found=false
2352for as_dir in $ac_aux_dir_candidates
2353do
2354  IFS=$as_save_IFS
2355  case $as_dir in #(((
2356    '') as_dir=./ ;;
2357    */) ;;
2358    *) as_dir=$as_dir/ ;;
2359  esac
2360  as_found=:
2361
2362  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2363  ac_aux_dir_found=yes
2364  ac_install_sh=
2365  for ac_aux in $ac_aux_files
2366  do
2367    # As a special case, if "install-sh" is required, that requirement
2368    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2369    # and $ac_install_sh is set appropriately for whichever one is found.
2370    if test x"$ac_aux" = x"install-sh"
2371    then
2372      if test -f "${as_dir}install-sh"; then
2373        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2374        ac_install_sh="${as_dir}install-sh -c"
2375      elif test -f "${as_dir}install.sh"; then
2376        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2377        ac_install_sh="${as_dir}install.sh -c"
2378      elif test -f "${as_dir}shtool"; then
2379        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2380        ac_install_sh="${as_dir}shtool install -c"
2381      else
2382        ac_aux_dir_found=no
2383        if $ac_first_candidate; then
2384          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2385        else
2386          break
2387        fi
2388      fi
2389    else
2390      if test -f "${as_dir}${ac_aux}"; then
2391        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2392      else
2393        ac_aux_dir_found=no
2394        if $ac_first_candidate; then
2395          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2396        else
2397          break
2398        fi
2399      fi
2400    fi
2401  done
2402  if test "$ac_aux_dir_found" = yes; then
2403    ac_aux_dir="$as_dir"
2404    break
2405  fi
2406  ac_first_candidate=false
2407
2408  as_found=false
2409done
2410IFS=$as_save_IFS
2411if $as_found
2412then :
2413
2414else $as_nop
2415  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2416fi
2417
2418
2419# These three variables are undocumented and unsupported,
2420# and are intended to be withdrawn in a future Autoconf release.
2421# They can cause serious problems if a builder's source tree is in a directory
2422# whose full name contains unusual characters.
2423if test -f "${ac_aux_dir}config.guess"; then
2424  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2425fi
2426if test -f "${ac_aux_dir}config.sub"; then
2427  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2428fi
2429if test -f "$ac_aux_dir/configure"; then
2430  ac_configure="$SHELL ${ac_aux_dir}configure"
2431fi
2432
2433# Check that the precious variables saved in the cache have kept the same
2434# value.
2435ac_cache_corrupted=false
2436for ac_var in $ac_precious_vars; do
2437  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2438  eval ac_new_set=\$ac_env_${ac_var}_set
2439  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2440  eval ac_new_val=\$ac_env_${ac_var}_value
2441  case $ac_old_set,$ac_new_set in
2442    set,)
2443      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2444printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2445      ac_cache_corrupted=: ;;
2446    ,set)
2447      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2448printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2449      ac_cache_corrupted=: ;;
2450    ,);;
2451    *)
2452      if test "x$ac_old_val" != "x$ac_new_val"; then
2453	# differences in whitespace do not lead to failure.
2454	ac_old_val_w=`echo x $ac_old_val`
2455	ac_new_val_w=`echo x $ac_new_val`
2456	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2457	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2458printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2459	  ac_cache_corrupted=:
2460	else
2461	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2462printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2463	  eval $ac_var=\$ac_old_val
2464	fi
2465	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2466printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2467	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2468printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2469      fi;;
2470  esac
2471  # Pass precious variables to config.status.
2472  if test "$ac_new_set" = set; then
2473    case $ac_new_val in
2474    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2475    *) ac_arg=$ac_var=$ac_new_val ;;
2476    esac
2477    case " $ac_configure_args " in
2478      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2479      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2480    esac
2481  fi
2482done
2483if $ac_cache_corrupted; then
2484  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2485printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2486  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2487printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2488  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2489	    and start over" "$LINENO" 5
2490fi
2491## -------------------- ##
2492## Main body of script. ##
2493## -------------------- ##
2494
2495ac_ext=c
2496ac_cpp='$CPP $CPPFLAGS'
2497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2499ac_compiler_gnu=$ac_cv_c_compiler_gnu
2500
2501
2502
2503ac_config_headers="$ac_config_headers config.h"
2504
2505
2506# Initialize Automake
2507am__api_version='1.16'
2508
2509
2510
2511  # Find a good install program.  We prefer a C program (faster),
2512# so one script is as good as another.  But avoid the broken or
2513# incompatible versions:
2514# SysV /etc/install, /usr/sbin/install
2515# SunOS /usr/etc/install
2516# IRIX /sbin/install
2517# AIX /bin/install
2518# AmigaOS /C/install, which installs bootblocks on floppy discs
2519# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2520# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2521# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2522# OS/2's system install, which has a completely different semantic
2523# ./install, which can be erroneously created by make from ./install.sh.
2524# Reject install programs that cannot install multiple files.
2525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2526printf %s "checking for a BSD-compatible install... " >&6; }
2527if test -z "$INSTALL"; then
2528if test ${ac_cv_path_install+y}
2529then :
2530  printf %s "(cached) " >&6
2531else $as_nop
2532  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533for as_dir in $PATH
2534do
2535  IFS=$as_save_IFS
2536  case $as_dir in #(((
2537    '') as_dir=./ ;;
2538    */) ;;
2539    *) as_dir=$as_dir/ ;;
2540  esac
2541    # Account for fact that we put trailing slashes in our PATH walk.
2542case $as_dir in #((
2543  ./ | /[cC]/* | \
2544  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2545  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2546  /usr/ucb/* ) ;;
2547  *)
2548    # OSF1 and SCO ODT 3.0 have their own names for install.
2549    # Don't use installbsd from OSF since it installs stuff as root
2550    # by default.
2551    for ac_prog in ginstall scoinst install; do
2552      for ac_exec_ext in '' $ac_executable_extensions; do
2553	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2554	  if test $ac_prog = install &&
2555	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2556	    # AIX install.  It has an incompatible calling convention.
2557	    :
2558	  elif test $ac_prog = install &&
2559	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2560	    # program-specific install script used by HP pwplus--don't use.
2561	    :
2562	  else
2563	    rm -rf conftest.one conftest.two conftest.dir
2564	    echo one > conftest.one
2565	    echo two > conftest.two
2566	    mkdir conftest.dir
2567	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2568	      test -s conftest.one && test -s conftest.two &&
2569	      test -s conftest.dir/conftest.one &&
2570	      test -s conftest.dir/conftest.two
2571	    then
2572	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2573	      break 3
2574	    fi
2575	  fi
2576	fi
2577      done
2578    done
2579    ;;
2580esac
2581
2582  done
2583IFS=$as_save_IFS
2584
2585rm -rf conftest.one conftest.two conftest.dir
2586
2587fi
2588  if test ${ac_cv_path_install+y}; then
2589    INSTALL=$ac_cv_path_install
2590  else
2591    # As a last resort, use the slow shell script.  Don't cache a
2592    # value for INSTALL within a source directory, because that will
2593    # break other packages using the cache if that directory is
2594    # removed, or if the value is a relative name.
2595    INSTALL=$ac_install_sh
2596  fi
2597fi
2598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2599printf "%s\n" "$INSTALL" >&6; }
2600
2601# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2602# It thinks the first close brace ends the variable substitution.
2603test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2604
2605test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2606
2607test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2608
2609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2610printf %s "checking whether build environment is sane... " >&6; }
2611# Reject unsafe characters in $srcdir or the absolute working directory
2612# name.  Accept space and tab only in the latter.
2613am_lf='
2614'
2615case `pwd` in
2616  *[\\\"\#\$\&\'\`$am_lf]*)
2617    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2618esac
2619case $srcdir in
2620  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2621    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2622esac
2623
2624# Do 'set' in a subshell so we don't clobber the current shell's
2625# arguments.  Must try -L first in case configure is actually a
2626# symlink; some systems play weird games with the mod time of symlinks
2627# (eg FreeBSD returns the mod time of the symlink's containing
2628# directory).
2629if (
2630   am_has_slept=no
2631   for am_try in 1 2; do
2632     echo "timestamp, slept: $am_has_slept" > conftest.file
2633     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2634     if test "$*" = "X"; then
2635	# -L didn't work.
2636	set X `ls -t "$srcdir/configure" conftest.file`
2637     fi
2638     if test "$*" != "X $srcdir/configure conftest.file" \
2639	&& test "$*" != "X conftest.file $srcdir/configure"; then
2640
2641	# If neither matched, then we have a broken ls.  This can happen
2642	# if, for instance, CONFIG_SHELL is bash and it inherits a
2643	# broken ls alias from the environment.  This has actually
2644	# happened.  Such a system could not be considered "sane".
2645	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2646  alias in your environment" "$LINENO" 5
2647     fi
2648     if test "$2" = conftest.file || test $am_try -eq 2; then
2649       break
2650     fi
2651     # Just in case.
2652     sleep 1
2653     am_has_slept=yes
2654   done
2655   test "$2" = conftest.file
2656   )
2657then
2658   # Ok.
2659   :
2660else
2661   as_fn_error $? "newly created file is older than distributed files!
2662Check your system clock" "$LINENO" 5
2663fi
2664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2665printf "%s\n" "yes" >&6; }
2666# If we didn't sleep, we still need to ensure time stamps of config.status and
2667# generated files are strictly newer.
2668am_sleep_pid=
2669if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2670  ( sleep 1 ) &
2671  am_sleep_pid=$!
2672fi
2673
2674rm -f conftest.file
2675
2676test "$program_prefix" != NONE &&
2677  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2678# Use a double $ so make ignores it.
2679test "$program_suffix" != NONE &&
2680  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2681# Double any \ or $.
2682# By default was `s,x,x', remove it if useless.
2683ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2684program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2685
2686
2687# Expand $ac_aux_dir to an absolute path.
2688am_aux_dir=`cd "$ac_aux_dir" && pwd`
2689
2690
2691  if test x"${MISSING+set}" != xset; then
2692  MISSING="\${SHELL} '$am_aux_dir/missing'"
2693fi
2694# Use eval to expand $SHELL
2695if eval "$MISSING --is-lightweight"; then
2696  am_missing_run="$MISSING "
2697else
2698  am_missing_run=
2699  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2700printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2701fi
2702
2703if test x"${install_sh+set}" != xset; then
2704  case $am_aux_dir in
2705  *\ * | *\	*)
2706    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2707  *)
2708    install_sh="\${SHELL} $am_aux_dir/install-sh"
2709  esac
2710fi
2711
2712# Installed binaries are usually stripped using 'strip' when the user
2713# run "make install-strip".  However 'strip' might not be the right
2714# tool to use in cross-compilation environments, therefore Automake
2715# will honor the 'STRIP' environment variable to overrule this program.
2716if test "$cross_compiling" != no; then
2717  if test -n "$ac_tool_prefix"; then
2718  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2719set dummy ${ac_tool_prefix}strip; ac_word=$2
2720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2721printf %s "checking for $ac_word... " >&6; }
2722if test ${ac_cv_prog_STRIP+y}
2723then :
2724  printf %s "(cached) " >&6
2725else $as_nop
2726  if test -n "$STRIP"; then
2727  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2728else
2729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730for as_dir in $PATH
2731do
2732  IFS=$as_save_IFS
2733  case $as_dir in #(((
2734    '') as_dir=./ ;;
2735    */) ;;
2736    *) as_dir=$as_dir/ ;;
2737  esac
2738    for ac_exec_ext in '' $ac_executable_extensions; do
2739  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2740    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2741    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2742    break 2
2743  fi
2744done
2745  done
2746IFS=$as_save_IFS
2747
2748fi
2749fi
2750STRIP=$ac_cv_prog_STRIP
2751if test -n "$STRIP"; then
2752  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2753printf "%s\n" "$STRIP" >&6; }
2754else
2755  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2756printf "%s\n" "no" >&6; }
2757fi
2758
2759
2760fi
2761if test -z "$ac_cv_prog_STRIP"; then
2762  ac_ct_STRIP=$STRIP
2763  # Extract the first word of "strip", so it can be a program name with args.
2764set dummy strip; ac_word=$2
2765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2766printf %s "checking for $ac_word... " >&6; }
2767if test ${ac_cv_prog_ac_ct_STRIP+y}
2768then :
2769  printf %s "(cached) " >&6
2770else $as_nop
2771  if test -n "$ac_ct_STRIP"; then
2772  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2773else
2774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775for as_dir in $PATH
2776do
2777  IFS=$as_save_IFS
2778  case $as_dir in #(((
2779    '') as_dir=./ ;;
2780    */) ;;
2781    *) as_dir=$as_dir/ ;;
2782  esac
2783    for ac_exec_ext in '' $ac_executable_extensions; do
2784  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2785    ac_cv_prog_ac_ct_STRIP="strip"
2786    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2787    break 2
2788  fi
2789done
2790  done
2791IFS=$as_save_IFS
2792
2793fi
2794fi
2795ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2796if test -n "$ac_ct_STRIP"; then
2797  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2798printf "%s\n" "$ac_ct_STRIP" >&6; }
2799else
2800  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801printf "%s\n" "no" >&6; }
2802fi
2803
2804  if test "x$ac_ct_STRIP" = x; then
2805    STRIP=":"
2806  else
2807    case $cross_compiling:$ac_tool_warned in
2808yes:)
2809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2810printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2811ac_tool_warned=yes ;;
2812esac
2813    STRIP=$ac_ct_STRIP
2814  fi
2815else
2816  STRIP="$ac_cv_prog_STRIP"
2817fi
2818
2819fi
2820INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2821
2822
2823  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2824printf %s "checking for a race-free mkdir -p... " >&6; }
2825if test -z "$MKDIR_P"; then
2826  if test ${ac_cv_path_mkdir+y}
2827then :
2828  printf %s "(cached) " >&6
2829else $as_nop
2830  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2832do
2833  IFS=$as_save_IFS
2834  case $as_dir in #(((
2835    '') as_dir=./ ;;
2836    */) ;;
2837    *) as_dir=$as_dir/ ;;
2838  esac
2839    for ac_prog in mkdir gmkdir; do
2840	 for ac_exec_ext in '' $ac_executable_extensions; do
2841	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2842	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2843	     'mkdir ('*'coreutils) '* | \
2844	     'BusyBox '* | \
2845	     'mkdir (fileutils) '4.1*)
2846	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2847	       break 3;;
2848	   esac
2849	 done
2850       done
2851  done
2852IFS=$as_save_IFS
2853
2854fi
2855
2856  test -d ./--version && rmdir ./--version
2857  if test ${ac_cv_path_mkdir+y}; then
2858    MKDIR_P="$ac_cv_path_mkdir -p"
2859  else
2860    # As a last resort, use the slow shell script.  Don't cache a
2861    # value for MKDIR_P within a source directory, because that will
2862    # break other packages using the cache if that directory is
2863    # removed, or if the value is a relative name.
2864    MKDIR_P="$ac_install_sh -d"
2865  fi
2866fi
2867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2868printf "%s\n" "$MKDIR_P" >&6; }
2869
2870for ac_prog in gawk mawk nawk awk
2871do
2872  # Extract the first word of "$ac_prog", so it can be a program name with args.
2873set dummy $ac_prog; ac_word=$2
2874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875printf %s "checking for $ac_word... " >&6; }
2876if test ${ac_cv_prog_AWK+y}
2877then :
2878  printf %s "(cached) " >&6
2879else $as_nop
2880  if test -n "$AWK"; then
2881  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2882else
2883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884for as_dir in $PATH
2885do
2886  IFS=$as_save_IFS
2887  case $as_dir in #(((
2888    '') as_dir=./ ;;
2889    */) ;;
2890    *) as_dir=$as_dir/ ;;
2891  esac
2892    for ac_exec_ext in '' $ac_executable_extensions; do
2893  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2894    ac_cv_prog_AWK="$ac_prog"
2895    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2896    break 2
2897  fi
2898done
2899  done
2900IFS=$as_save_IFS
2901
2902fi
2903fi
2904AWK=$ac_cv_prog_AWK
2905if test -n "$AWK"; then
2906  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2907printf "%s\n" "$AWK" >&6; }
2908else
2909  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910printf "%s\n" "no" >&6; }
2911fi
2912
2913
2914  test -n "$AWK" && break
2915done
2916
2917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2918printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2919set x ${MAKE-make}
2920ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2921if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2922then :
2923  printf %s "(cached) " >&6
2924else $as_nop
2925  cat >conftest.make <<\_ACEOF
2926SHELL = /bin/sh
2927all:
2928	@echo '@@@%%%=$(MAKE)=@@@%%%'
2929_ACEOF
2930# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2931case `${MAKE-make} -f conftest.make 2>/dev/null` in
2932  *@@@%%%=?*=@@@%%%*)
2933    eval ac_cv_prog_make_${ac_make}_set=yes;;
2934  *)
2935    eval ac_cv_prog_make_${ac_make}_set=no;;
2936esac
2937rm -f conftest.make
2938fi
2939if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2940  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2941printf "%s\n" "yes" >&6; }
2942  SET_MAKE=
2943else
2944  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945printf "%s\n" "no" >&6; }
2946  SET_MAKE="MAKE=${MAKE-make}"
2947fi
2948
2949rm -rf .tst 2>/dev/null
2950mkdir .tst 2>/dev/null
2951if test -d .tst; then
2952  am__leading_dot=.
2953else
2954  am__leading_dot=_
2955fi
2956rmdir .tst 2>/dev/null
2957
2958# Check whether --enable-silent-rules was given.
2959if test ${enable_silent_rules+y}
2960then :
2961  enableval=$enable_silent_rules;
2962fi
2963
2964case $enable_silent_rules in # (((
2965  yes) AM_DEFAULT_VERBOSITY=0;;
2966   no) AM_DEFAULT_VERBOSITY=1;;
2967    *) AM_DEFAULT_VERBOSITY=1;;
2968esac
2969am_make=${MAKE-make}
2970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2971printf %s "checking whether $am_make supports nested variables... " >&6; }
2972if test ${am_cv_make_support_nested_variables+y}
2973then :
2974  printf %s "(cached) " >&6
2975else $as_nop
2976  if printf "%s\n" 'TRUE=$(BAR$(V))
2977BAR0=false
2978BAR1=true
2979V=1
2980am__doit:
2981	@$(TRUE)
2982.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2983  am_cv_make_support_nested_variables=yes
2984else
2985  am_cv_make_support_nested_variables=no
2986fi
2987fi
2988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2989printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
2990if test $am_cv_make_support_nested_variables = yes; then
2991    AM_V='$(V)'
2992  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2993else
2994  AM_V=$AM_DEFAULT_VERBOSITY
2995  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2996fi
2997AM_BACKSLASH='\'
2998
2999if test "`cd $srcdir && pwd`" != "`pwd`"; then
3000  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3001  # is not polluted with repeated "-I."
3002  am__isrc=' -I$(srcdir)'
3003  # test to see if srcdir already configured
3004  if test -f $srcdir/config.status; then
3005    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3006  fi
3007fi
3008
3009# test whether we have cygpath
3010if test -z "$CYGPATH_W"; then
3011  if (cygpath --version) >/dev/null 2>/dev/null; then
3012    CYGPATH_W='cygpath -w'
3013  else
3014    CYGPATH_W=echo
3015  fi
3016fi
3017
3018
3019# Define the identity of the package.
3020 PACKAGE='editres'
3021 VERSION='1.0.8'
3022
3023
3024printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3025
3026
3027printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3028
3029# Some tools Automake needs.
3030
3031ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3032
3033
3034AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3035
3036
3037AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3038
3039
3040AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3041
3042
3043MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3044
3045# For better backward compatibility.  To be removed once Automake 1.9.x
3046# dies out for good.  For more background, see:
3047# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3048# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3049mkdir_p='$(MKDIR_P)'
3050
3051# We need awk for the "check" target (and possibly the TAP driver).  The
3052# system "awk" is bad on some platforms.
3053# Always define AMTAR for backward compatibility.  Yes, it's still used
3054# in the wild :-(  We should find a proper way to deprecate it ...
3055AMTAR='$${TAR-tar}'
3056
3057
3058# We'll loop over all known methods to create a tar archive until one works.
3059_am_tools='gnutar  pax cpio none'
3060
3061am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3062
3063
3064
3065
3066
3067# Variables for tags utilities; see am/tags.am
3068if test -z "$CTAGS"; then
3069  CTAGS=ctags
3070fi
3071
3072if test -z "$ETAGS"; then
3073  ETAGS=etags
3074fi
3075
3076if test -z "$CSCOPE"; then
3077  CSCOPE=cscope
3078fi
3079
3080
3081
3082# POSIX will say in a future version that running "rm -f" with no argument
3083# is OK; and we want to be able to make that assumption in our Makefile
3084# recipes.  So use an aggressive probe to check that the usage we want is
3085# actually supported "in the wild" to an acceptable degree.
3086# See automake bug#10828.
3087# To make any issue more visible, cause the running configure to be aborted
3088# by default if the 'rm' program in use doesn't match our expectations; the
3089# user can still override this though.
3090if rm -f && rm -fr && rm -rf; then : OK; else
3091  cat >&2 <<'END'
3092Oops!
3093
3094Your 'rm' program seems unable to run without file operands specified
3095on the command line, even when the '-f' option is present.  This is contrary
3096to the behaviour of most rm programs out there, and not conforming with
3097the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3098
3099Please tell bug-automake@gnu.org about your system, including the value
3100of your $PATH and any error possibly output before this message.  This
3101can help us improve future automake versions.
3102
3103END
3104  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3105    echo 'Configuration will proceed anyway, since you have set the' >&2
3106    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3107    echo >&2
3108  else
3109    cat >&2 <<'END'
3110Aborting the configuration process, to ensure you take notice of the issue.
3111
3112You can download and install GNU coreutils to get an 'rm' implementation
3113that behaves properly: <https://www.gnu.org/software/coreutils/>.
3114
3115If you want to complete the configuration process using your problematic
3116'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3117to "yes", and re-run configure.
3118
3119END
3120    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3121  fi
3122fi
3123
3124
3125# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146DEPDIR="${am__leading_dot}deps"
3147
3148ac_config_commands="$ac_config_commands depfiles"
3149
3150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3151printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3152cat > confinc.mk << 'END'
3153am__doit:
3154	@echo this is the am__doit target >confinc.out
3155.PHONY: am__doit
3156END
3157am__include="#"
3158am__quote=
3159# BSD make does it like this.
3160echo '.include "confinc.mk" # ignored' > confmf.BSD
3161# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3162echo 'include confinc.mk # ignored' > confmf.GNU
3163_am_result=no
3164for s in GNU BSD; do
3165  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3166   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3167   ac_status=$?
3168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169   (exit $ac_status); }
3170  case $?:`cat confinc.out 2>/dev/null` in #(
3171  '0:this is the am__doit target') :
3172    case $s in #(
3173  BSD) :
3174    am__include='.include' am__quote='"' ;; #(
3175  *) :
3176    am__include='include' am__quote='' ;;
3177esac ;; #(
3178  *) :
3179     ;;
3180esac
3181  if test "$am__include" != "#"; then
3182    _am_result="yes ($s style)"
3183    break
3184  fi
3185done
3186rm -f confinc.* confmf.*
3187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3188printf "%s\n" "${_am_result}" >&6; }
3189
3190# Check whether --enable-dependency-tracking was given.
3191if test ${enable_dependency_tracking+y}
3192then :
3193  enableval=$enable_dependency_tracking;
3194fi
3195
3196if test "x$enable_dependency_tracking" != xno; then
3197  am_depcomp="$ac_aux_dir/depcomp"
3198  AMDEPBACKSLASH='\'
3199  am__nodep='_no'
3200fi
3201 if test "x$enable_dependency_tracking" != xno; then
3202  AMDEP_TRUE=
3203  AMDEP_FALSE='#'
3204else
3205  AMDEP_TRUE='#'
3206  AMDEP_FALSE=
3207fi
3208
3209
3210ac_ext=c
3211ac_cpp='$CPP $CPPFLAGS'
3212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215if test -n "$ac_tool_prefix"; then
3216  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3217set dummy ${ac_tool_prefix}gcc; ac_word=$2
3218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3219printf %s "checking for $ac_word... " >&6; }
3220if test ${ac_cv_prog_CC+y}
3221then :
3222  printf %s "(cached) " >&6
3223else $as_nop
3224  if test -n "$CC"; then
3225  ac_cv_prog_CC="$CC" # Let the user override the test.
3226else
3227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228for as_dir in $PATH
3229do
3230  IFS=$as_save_IFS
3231  case $as_dir in #(((
3232    '') as_dir=./ ;;
3233    */) ;;
3234    *) as_dir=$as_dir/ ;;
3235  esac
3236    for ac_exec_ext in '' $ac_executable_extensions; do
3237  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3238    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3239    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3240    break 2
3241  fi
3242done
3243  done
3244IFS=$as_save_IFS
3245
3246fi
3247fi
3248CC=$ac_cv_prog_CC
3249if test -n "$CC"; then
3250  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3251printf "%s\n" "$CC" >&6; }
3252else
3253  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254printf "%s\n" "no" >&6; }
3255fi
3256
3257
3258fi
3259if test -z "$ac_cv_prog_CC"; then
3260  ac_ct_CC=$CC
3261  # Extract the first word of "gcc", so it can be a program name with args.
3262set dummy gcc; ac_word=$2
3263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3264printf %s "checking for $ac_word... " >&6; }
3265if test ${ac_cv_prog_ac_ct_CC+y}
3266then :
3267  printf %s "(cached) " >&6
3268else $as_nop
3269  if test -n "$ac_ct_CC"; then
3270  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3271else
3272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273for as_dir in $PATH
3274do
3275  IFS=$as_save_IFS
3276  case $as_dir in #(((
3277    '') as_dir=./ ;;
3278    */) ;;
3279    *) as_dir=$as_dir/ ;;
3280  esac
3281    for ac_exec_ext in '' $ac_executable_extensions; do
3282  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3283    ac_cv_prog_ac_ct_CC="gcc"
3284    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3285    break 2
3286  fi
3287done
3288  done
3289IFS=$as_save_IFS
3290
3291fi
3292fi
3293ac_ct_CC=$ac_cv_prog_ac_ct_CC
3294if test -n "$ac_ct_CC"; then
3295  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3296printf "%s\n" "$ac_ct_CC" >&6; }
3297else
3298  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299printf "%s\n" "no" >&6; }
3300fi
3301
3302  if test "x$ac_ct_CC" = x; then
3303    CC=""
3304  else
3305    case $cross_compiling:$ac_tool_warned in
3306yes:)
3307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3308printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3309ac_tool_warned=yes ;;
3310esac
3311    CC=$ac_ct_CC
3312  fi
3313else
3314  CC="$ac_cv_prog_CC"
3315fi
3316
3317if test -z "$CC"; then
3318          if test -n "$ac_tool_prefix"; then
3319    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3320set dummy ${ac_tool_prefix}cc; ac_word=$2
3321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3322printf %s "checking for $ac_word... " >&6; }
3323if test ${ac_cv_prog_CC+y}
3324then :
3325  printf %s "(cached) " >&6
3326else $as_nop
3327  if test -n "$CC"; then
3328  ac_cv_prog_CC="$CC" # Let the user override the test.
3329else
3330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331for as_dir in $PATH
3332do
3333  IFS=$as_save_IFS
3334  case $as_dir in #(((
3335    '') as_dir=./ ;;
3336    */) ;;
3337    *) as_dir=$as_dir/ ;;
3338  esac
3339    for ac_exec_ext in '' $ac_executable_extensions; do
3340  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3341    ac_cv_prog_CC="${ac_tool_prefix}cc"
3342    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3343    break 2
3344  fi
3345done
3346  done
3347IFS=$as_save_IFS
3348
3349fi
3350fi
3351CC=$ac_cv_prog_CC
3352if test -n "$CC"; then
3353  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3354printf "%s\n" "$CC" >&6; }
3355else
3356  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3357printf "%s\n" "no" >&6; }
3358fi
3359
3360
3361  fi
3362fi
3363if test -z "$CC"; then
3364  # Extract the first word of "cc", so it can be a program name with args.
3365set dummy cc; ac_word=$2
3366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367printf %s "checking for $ac_word... " >&6; }
3368if test ${ac_cv_prog_CC+y}
3369then :
3370  printf %s "(cached) " >&6
3371else $as_nop
3372  if test -n "$CC"; then
3373  ac_cv_prog_CC="$CC" # Let the user override the test.
3374else
3375  ac_prog_rejected=no
3376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377for as_dir in $PATH
3378do
3379  IFS=$as_save_IFS
3380  case $as_dir in #(((
3381    '') as_dir=./ ;;
3382    */) ;;
3383    *) as_dir=$as_dir/ ;;
3384  esac
3385    for ac_exec_ext in '' $ac_executable_extensions; do
3386  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3387    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3388       ac_prog_rejected=yes
3389       continue
3390     fi
3391    ac_cv_prog_CC="cc"
3392    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3393    break 2
3394  fi
3395done
3396  done
3397IFS=$as_save_IFS
3398
3399if test $ac_prog_rejected = yes; then
3400  # We found a bogon in the path, so make sure we never use it.
3401  set dummy $ac_cv_prog_CC
3402  shift
3403  if test $# != 0; then
3404    # We chose a different compiler from the bogus one.
3405    # However, it has the same basename, so the bogon will be chosen
3406    # first if we set CC to just the basename; use the full file name.
3407    shift
3408    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3409  fi
3410fi
3411fi
3412fi
3413CC=$ac_cv_prog_CC
3414if test -n "$CC"; then
3415  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3416printf "%s\n" "$CC" >&6; }
3417else
3418  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419printf "%s\n" "no" >&6; }
3420fi
3421
3422
3423fi
3424if test -z "$CC"; then
3425  if test -n "$ac_tool_prefix"; then
3426  for ac_prog in cl.exe
3427  do
3428    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3429set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431printf %s "checking for $ac_word... " >&6; }
3432if test ${ac_cv_prog_CC+y}
3433then :
3434  printf %s "(cached) " >&6
3435else $as_nop
3436  if test -n "$CC"; then
3437  ac_cv_prog_CC="$CC" # Let the user override the test.
3438else
3439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440for as_dir in $PATH
3441do
3442  IFS=$as_save_IFS
3443  case $as_dir in #(((
3444    '') as_dir=./ ;;
3445    */) ;;
3446    *) as_dir=$as_dir/ ;;
3447  esac
3448    for ac_exec_ext in '' $ac_executable_extensions; do
3449  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3450    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3451    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3452    break 2
3453  fi
3454done
3455  done
3456IFS=$as_save_IFS
3457
3458fi
3459fi
3460CC=$ac_cv_prog_CC
3461if test -n "$CC"; then
3462  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3463printf "%s\n" "$CC" >&6; }
3464else
3465  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466printf "%s\n" "no" >&6; }
3467fi
3468
3469
3470    test -n "$CC" && break
3471  done
3472fi
3473if test -z "$CC"; then
3474  ac_ct_CC=$CC
3475  for ac_prog in cl.exe
3476do
3477  # Extract the first word of "$ac_prog", so it can be a program name with args.
3478set dummy $ac_prog; ac_word=$2
3479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480printf %s "checking for $ac_word... " >&6; }
3481if test ${ac_cv_prog_ac_ct_CC+y}
3482then :
3483  printf %s "(cached) " >&6
3484else $as_nop
3485  if test -n "$ac_ct_CC"; then
3486  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3487else
3488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489for as_dir in $PATH
3490do
3491  IFS=$as_save_IFS
3492  case $as_dir in #(((
3493    '') as_dir=./ ;;
3494    */) ;;
3495    *) as_dir=$as_dir/ ;;
3496  esac
3497    for ac_exec_ext in '' $ac_executable_extensions; do
3498  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3499    ac_cv_prog_ac_ct_CC="$ac_prog"
3500    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3501    break 2
3502  fi
3503done
3504  done
3505IFS=$as_save_IFS
3506
3507fi
3508fi
3509ac_ct_CC=$ac_cv_prog_ac_ct_CC
3510if test -n "$ac_ct_CC"; then
3511  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3512printf "%s\n" "$ac_ct_CC" >&6; }
3513else
3514  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515printf "%s\n" "no" >&6; }
3516fi
3517
3518
3519  test -n "$ac_ct_CC" && break
3520done
3521
3522  if test "x$ac_ct_CC" = x; then
3523    CC=""
3524  else
3525    case $cross_compiling:$ac_tool_warned in
3526yes:)
3527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3528printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3529ac_tool_warned=yes ;;
3530esac
3531    CC=$ac_ct_CC
3532  fi
3533fi
3534
3535fi
3536if test -z "$CC"; then
3537  if test -n "$ac_tool_prefix"; then
3538  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3539set dummy ${ac_tool_prefix}clang; ac_word=$2
3540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3541printf %s "checking for $ac_word... " >&6; }
3542if test ${ac_cv_prog_CC+y}
3543then :
3544  printf %s "(cached) " >&6
3545else $as_nop
3546  if test -n "$CC"; then
3547  ac_cv_prog_CC="$CC" # Let the user override the test.
3548else
3549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550for as_dir in $PATH
3551do
3552  IFS=$as_save_IFS
3553  case $as_dir in #(((
3554    '') as_dir=./ ;;
3555    */) ;;
3556    *) as_dir=$as_dir/ ;;
3557  esac
3558    for ac_exec_ext in '' $ac_executable_extensions; do
3559  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3560    ac_cv_prog_CC="${ac_tool_prefix}clang"
3561    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3562    break 2
3563  fi
3564done
3565  done
3566IFS=$as_save_IFS
3567
3568fi
3569fi
3570CC=$ac_cv_prog_CC
3571if test -n "$CC"; then
3572  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3573printf "%s\n" "$CC" >&6; }
3574else
3575  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576printf "%s\n" "no" >&6; }
3577fi
3578
3579
3580fi
3581if test -z "$ac_cv_prog_CC"; then
3582  ac_ct_CC=$CC
3583  # Extract the first word of "clang", so it can be a program name with args.
3584set dummy clang; ac_word=$2
3585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3586printf %s "checking for $ac_word... " >&6; }
3587if test ${ac_cv_prog_ac_ct_CC+y}
3588then :
3589  printf %s "(cached) " >&6
3590else $as_nop
3591  if test -n "$ac_ct_CC"; then
3592  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3593else
3594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595for as_dir in $PATH
3596do
3597  IFS=$as_save_IFS
3598  case $as_dir in #(((
3599    '') as_dir=./ ;;
3600    */) ;;
3601    *) as_dir=$as_dir/ ;;
3602  esac
3603    for ac_exec_ext in '' $ac_executable_extensions; do
3604  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3605    ac_cv_prog_ac_ct_CC="clang"
3606    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3607    break 2
3608  fi
3609done
3610  done
3611IFS=$as_save_IFS
3612
3613fi
3614fi
3615ac_ct_CC=$ac_cv_prog_ac_ct_CC
3616if test -n "$ac_ct_CC"; then
3617  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3618printf "%s\n" "$ac_ct_CC" >&6; }
3619else
3620  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621printf "%s\n" "no" >&6; }
3622fi
3623
3624  if test "x$ac_ct_CC" = x; then
3625    CC=""
3626  else
3627    case $cross_compiling:$ac_tool_warned in
3628yes:)
3629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3630printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3631ac_tool_warned=yes ;;
3632esac
3633    CC=$ac_ct_CC
3634  fi
3635else
3636  CC="$ac_cv_prog_CC"
3637fi
3638
3639fi
3640
3641
3642test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3643printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3644as_fn_error $? "no acceptable C compiler found in \$PATH
3645See \`config.log' for more details" "$LINENO" 5; }
3646
3647# Provide some information about the compiler.
3648printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3649set X $ac_compile
3650ac_compiler=$2
3651for ac_option in --version -v -V -qversion -version; do
3652  { { ac_try="$ac_compiler $ac_option >&5"
3653case "(($ac_try" in
3654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655  *) ac_try_echo=$ac_try;;
3656esac
3657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3658printf "%s\n" "$ac_try_echo"; } >&5
3659  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3660  ac_status=$?
3661  if test -s conftest.err; then
3662    sed '10a\
3663... rest of stderr output deleted ...
3664         10q' conftest.err >conftest.er1
3665    cat conftest.er1 >&5
3666  fi
3667  rm -f conftest.er1 conftest.err
3668  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3669  test $ac_status = 0; }
3670done
3671
3672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673/* end confdefs.h.  */
3674
3675int
3676main (void)
3677{
3678
3679  ;
3680  return 0;
3681}
3682_ACEOF
3683ac_clean_files_save=$ac_clean_files
3684ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3685# Try to create an executable without -o first, disregard a.out.
3686# It will help us diagnose broken compilers, and finding out an intuition
3687# of exeext.
3688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3689printf %s "checking whether the C compiler works... " >&6; }
3690ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3691
3692# The possible output files:
3693ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3694
3695ac_rmfiles=
3696for ac_file in $ac_files
3697do
3698  case $ac_file in
3699    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3700    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3701  esac
3702done
3703rm -f $ac_rmfiles
3704
3705if { { ac_try="$ac_link_default"
3706case "(($ac_try" in
3707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708  *) ac_try_echo=$ac_try;;
3709esac
3710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3711printf "%s\n" "$ac_try_echo"; } >&5
3712  (eval "$ac_link_default") 2>&5
3713  ac_status=$?
3714  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3715  test $ac_status = 0; }
3716then :
3717  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3718# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3719# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3720# so that the user can short-circuit this test for compilers unknown to
3721# Autoconf.
3722for ac_file in $ac_files ''
3723do
3724  test -f "$ac_file" || continue
3725  case $ac_file in
3726    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3727	;;
3728    [ab].out )
3729	# We found the default executable, but exeext='' is most
3730	# certainly right.
3731	break;;
3732    *.* )
3733	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3734	then :; else
3735	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3736	fi
3737	# We set ac_cv_exeext here because the later test for it is not
3738	# safe: cross compilers may not add the suffix if given an `-o'
3739	# argument, so we may need to know it at that point already.
3740	# Even if this section looks crufty: it has the advantage of
3741	# actually working.
3742	break;;
3743    * )
3744	break;;
3745  esac
3746done
3747test "$ac_cv_exeext" = no && ac_cv_exeext=
3748
3749else $as_nop
3750  ac_file=''
3751fi
3752if test -z "$ac_file"
3753then :
3754  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755printf "%s\n" "no" >&6; }
3756printf "%s\n" "$as_me: failed program was:" >&5
3757sed 's/^/| /' conftest.$ac_ext >&5
3758
3759{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3760printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3761as_fn_error 77 "C compiler cannot create executables
3762See \`config.log' for more details" "$LINENO" 5; }
3763else $as_nop
3764  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3765printf "%s\n" "yes" >&6; }
3766fi
3767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3768printf %s "checking for C compiler default output file name... " >&6; }
3769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3770printf "%s\n" "$ac_file" >&6; }
3771ac_exeext=$ac_cv_exeext
3772
3773rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3774ac_clean_files=$ac_clean_files_save
3775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3776printf %s "checking for suffix of executables... " >&6; }
3777if { { ac_try="$ac_link"
3778case "(($ac_try" in
3779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780  *) ac_try_echo=$ac_try;;
3781esac
3782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3783printf "%s\n" "$ac_try_echo"; } >&5
3784  (eval "$ac_link") 2>&5
3785  ac_status=$?
3786  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3787  test $ac_status = 0; }
3788then :
3789  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3790# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3791# work properly (i.e., refer to `conftest.exe'), while it won't with
3792# `rm'.
3793for ac_file in conftest.exe conftest conftest.*; do
3794  test -f "$ac_file" || continue
3795  case $ac_file in
3796    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3797    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3798	  break;;
3799    * ) break;;
3800  esac
3801done
3802else $as_nop
3803  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3804printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3805as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3806See \`config.log' for more details" "$LINENO" 5; }
3807fi
3808rm -f conftest conftest$ac_cv_exeext
3809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3810printf "%s\n" "$ac_cv_exeext" >&6; }
3811
3812rm -f conftest.$ac_ext
3813EXEEXT=$ac_cv_exeext
3814ac_exeext=$EXEEXT
3815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816/* end confdefs.h.  */
3817#include <stdio.h>
3818int
3819main (void)
3820{
3821FILE *f = fopen ("conftest.out", "w");
3822 return ferror (f) || fclose (f) != 0;
3823
3824  ;
3825  return 0;
3826}
3827_ACEOF
3828ac_clean_files="$ac_clean_files conftest.out"
3829# Check that the compiler produces executables we can run.  If not, either
3830# the compiler is broken, or we cross compile.
3831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3832printf %s "checking whether we are cross compiling... " >&6; }
3833if test "$cross_compiling" != yes; then
3834  { { ac_try="$ac_link"
3835case "(($ac_try" in
3836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837  *) ac_try_echo=$ac_try;;
3838esac
3839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3840printf "%s\n" "$ac_try_echo"; } >&5
3841  (eval "$ac_link") 2>&5
3842  ac_status=$?
3843  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3844  test $ac_status = 0; }
3845  if { ac_try='./conftest$ac_cv_exeext'
3846  { { case "(($ac_try" in
3847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848  *) ac_try_echo=$ac_try;;
3849esac
3850eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3851printf "%s\n" "$ac_try_echo"; } >&5
3852  (eval "$ac_try") 2>&5
3853  ac_status=$?
3854  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3855  test $ac_status = 0; }; }; then
3856    cross_compiling=no
3857  else
3858    if test "$cross_compiling" = maybe; then
3859	cross_compiling=yes
3860    else
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 "cannot run C compiled programs.
3864If you meant to cross compile, use \`--host'.
3865See \`config.log' for more details" "$LINENO" 5; }
3866    fi
3867  fi
3868fi
3869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3870printf "%s\n" "$cross_compiling" >&6; }
3871
3872rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3873ac_clean_files=$ac_clean_files_save
3874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3875printf %s "checking for suffix of object files... " >&6; }
3876if test ${ac_cv_objext+y}
3877then :
3878  printf %s "(cached) " >&6
3879else $as_nop
3880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881/* end confdefs.h.  */
3882
3883int
3884main (void)
3885{
3886
3887  ;
3888  return 0;
3889}
3890_ACEOF
3891rm -f conftest.o conftest.obj
3892if { { ac_try="$ac_compile"
3893case "(($ac_try" in
3894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895  *) ac_try_echo=$ac_try;;
3896esac
3897eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3898printf "%s\n" "$ac_try_echo"; } >&5
3899  (eval "$ac_compile") 2>&5
3900  ac_status=$?
3901  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3902  test $ac_status = 0; }
3903then :
3904  for ac_file in conftest.o conftest.obj conftest.*; do
3905  test -f "$ac_file" || continue;
3906  case $ac_file in
3907    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3908    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3909       break;;
3910  esac
3911done
3912else $as_nop
3913  printf "%s\n" "$as_me: failed program was:" >&5
3914sed 's/^/| /' conftest.$ac_ext >&5
3915
3916{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3917printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3918as_fn_error $? "cannot compute suffix of object files: cannot compile
3919See \`config.log' for more details" "$LINENO" 5; }
3920fi
3921rm -f conftest.$ac_cv_objext conftest.$ac_ext
3922fi
3923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3924printf "%s\n" "$ac_cv_objext" >&6; }
3925OBJEXT=$ac_cv_objext
3926ac_objext=$OBJEXT
3927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3928printf %s "checking whether the compiler supports GNU C... " >&6; }
3929if test ${ac_cv_c_compiler_gnu+y}
3930then :
3931  printf %s "(cached) " >&6
3932else $as_nop
3933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934/* end confdefs.h.  */
3935
3936int
3937main (void)
3938{
3939#ifndef __GNUC__
3940       choke me
3941#endif
3942
3943  ;
3944  return 0;
3945}
3946_ACEOF
3947if ac_fn_c_try_compile "$LINENO"
3948then :
3949  ac_compiler_gnu=yes
3950else $as_nop
3951  ac_compiler_gnu=no
3952fi
3953rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3954ac_cv_c_compiler_gnu=$ac_compiler_gnu
3955
3956fi
3957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3958printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3959ac_compiler_gnu=$ac_cv_c_compiler_gnu
3960
3961if test $ac_compiler_gnu = yes; then
3962  GCC=yes
3963else
3964  GCC=
3965fi
3966ac_test_CFLAGS=${CFLAGS+y}
3967ac_save_CFLAGS=$CFLAGS
3968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3969printf %s "checking whether $CC accepts -g... " >&6; }
3970if test ${ac_cv_prog_cc_g+y}
3971then :
3972  printf %s "(cached) " >&6
3973else $as_nop
3974  ac_save_c_werror_flag=$ac_c_werror_flag
3975   ac_c_werror_flag=yes
3976   ac_cv_prog_cc_g=no
3977   CFLAGS="-g"
3978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979/* end confdefs.h.  */
3980
3981int
3982main (void)
3983{
3984
3985  ;
3986  return 0;
3987}
3988_ACEOF
3989if ac_fn_c_try_compile "$LINENO"
3990then :
3991  ac_cv_prog_cc_g=yes
3992else $as_nop
3993  CFLAGS=""
3994      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995/* end confdefs.h.  */
3996
3997int
3998main (void)
3999{
4000
4001  ;
4002  return 0;
4003}
4004_ACEOF
4005if ac_fn_c_try_compile "$LINENO"
4006then :
4007
4008else $as_nop
4009  ac_c_werror_flag=$ac_save_c_werror_flag
4010	 CFLAGS="-g"
4011	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012/* end confdefs.h.  */
4013
4014int
4015main (void)
4016{
4017
4018  ;
4019  return 0;
4020}
4021_ACEOF
4022if ac_fn_c_try_compile "$LINENO"
4023then :
4024  ac_cv_prog_cc_g=yes
4025fi
4026rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4027fi
4028rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4029fi
4030rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4031   ac_c_werror_flag=$ac_save_c_werror_flag
4032fi
4033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4034printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4035if test $ac_test_CFLAGS; then
4036  CFLAGS=$ac_save_CFLAGS
4037elif test $ac_cv_prog_cc_g = yes; then
4038  if test "$GCC" = yes; then
4039    CFLAGS="-g -O2"
4040  else
4041    CFLAGS="-g"
4042  fi
4043else
4044  if test "$GCC" = yes; then
4045    CFLAGS="-O2"
4046  else
4047    CFLAGS=
4048  fi
4049fi
4050ac_prog_cc_stdc=no
4051if test x$ac_prog_cc_stdc = xno
4052then :
4053  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4054printf %s "checking for $CC option to enable C11 features... " >&6; }
4055if test ${ac_cv_prog_cc_c11+y}
4056then :
4057  printf %s "(cached) " >&6
4058else $as_nop
4059  ac_cv_prog_cc_c11=no
4060ac_save_CC=$CC
4061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062/* end confdefs.h.  */
4063$ac_c_conftest_c11_program
4064_ACEOF
4065for ac_arg in '' -std=gnu11
4066do
4067  CC="$ac_save_CC $ac_arg"
4068  if ac_fn_c_try_compile "$LINENO"
4069then :
4070  ac_cv_prog_cc_c11=$ac_arg
4071fi
4072rm -f core conftest.err conftest.$ac_objext conftest.beam
4073  test "x$ac_cv_prog_cc_c11" != "xno" && break
4074done
4075rm -f conftest.$ac_ext
4076CC=$ac_save_CC
4077fi
4078
4079if test "x$ac_cv_prog_cc_c11" = xno
4080then :
4081  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4082printf "%s\n" "unsupported" >&6; }
4083else $as_nop
4084  if test "x$ac_cv_prog_cc_c11" = x
4085then :
4086  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4087printf "%s\n" "none needed" >&6; }
4088else $as_nop
4089  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4090printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4091     CC="$CC $ac_cv_prog_cc_c11"
4092fi
4093  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4094  ac_prog_cc_stdc=c11
4095fi
4096fi
4097if test x$ac_prog_cc_stdc = xno
4098then :
4099  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4100printf %s "checking for $CC option to enable C99 features... " >&6; }
4101if test ${ac_cv_prog_cc_c99+y}
4102then :
4103  printf %s "(cached) " >&6
4104else $as_nop
4105  ac_cv_prog_cc_c99=no
4106ac_save_CC=$CC
4107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108/* end confdefs.h.  */
4109$ac_c_conftest_c99_program
4110_ACEOF
4111for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4112do
4113  CC="$ac_save_CC $ac_arg"
4114  if ac_fn_c_try_compile "$LINENO"
4115then :
4116  ac_cv_prog_cc_c99=$ac_arg
4117fi
4118rm -f core conftest.err conftest.$ac_objext conftest.beam
4119  test "x$ac_cv_prog_cc_c99" != "xno" && break
4120done
4121rm -f conftest.$ac_ext
4122CC=$ac_save_CC
4123fi
4124
4125if test "x$ac_cv_prog_cc_c99" = xno
4126then :
4127  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4128printf "%s\n" "unsupported" >&6; }
4129else $as_nop
4130  if test "x$ac_cv_prog_cc_c99" = x
4131then :
4132  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4133printf "%s\n" "none needed" >&6; }
4134else $as_nop
4135  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4136printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4137     CC="$CC $ac_cv_prog_cc_c99"
4138fi
4139  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4140  ac_prog_cc_stdc=c99
4141fi
4142fi
4143if test x$ac_prog_cc_stdc = xno
4144then :
4145  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4146printf %s "checking for $CC option to enable C89 features... " >&6; }
4147if test ${ac_cv_prog_cc_c89+y}
4148then :
4149  printf %s "(cached) " >&6
4150else $as_nop
4151  ac_cv_prog_cc_c89=no
4152ac_save_CC=$CC
4153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154/* end confdefs.h.  */
4155$ac_c_conftest_c89_program
4156_ACEOF
4157for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4158do
4159  CC="$ac_save_CC $ac_arg"
4160  if ac_fn_c_try_compile "$LINENO"
4161then :
4162  ac_cv_prog_cc_c89=$ac_arg
4163fi
4164rm -f core conftest.err conftest.$ac_objext conftest.beam
4165  test "x$ac_cv_prog_cc_c89" != "xno" && break
4166done
4167rm -f conftest.$ac_ext
4168CC=$ac_save_CC
4169fi
4170
4171if test "x$ac_cv_prog_cc_c89" = xno
4172then :
4173  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4174printf "%s\n" "unsupported" >&6; }
4175else $as_nop
4176  if test "x$ac_cv_prog_cc_c89" = x
4177then :
4178  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4179printf "%s\n" "none needed" >&6; }
4180else $as_nop
4181  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4182printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4183     CC="$CC $ac_cv_prog_cc_c89"
4184fi
4185  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4186  ac_prog_cc_stdc=c89
4187fi
4188fi
4189
4190ac_ext=c
4191ac_cpp='$CPP $CPPFLAGS'
4192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4194ac_compiler_gnu=$ac_cv_c_compiler_gnu
4195
4196
4197  ac_ext=c
4198ac_cpp='$CPP $CPPFLAGS'
4199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201ac_compiler_gnu=$ac_cv_c_compiler_gnu
4202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4203printf %s "checking whether $CC understands -c and -o together... " >&6; }
4204if test ${am_cv_prog_cc_c_o+y}
4205then :
4206  printf %s "(cached) " >&6
4207else $as_nop
4208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209/* end confdefs.h.  */
4210
4211int
4212main (void)
4213{
4214
4215  ;
4216  return 0;
4217}
4218_ACEOF
4219  # Make sure it works both with $CC and with simple cc.
4220  # Following AC_PROG_CC_C_O, we do the test twice because some
4221  # compilers refuse to overwrite an existing .o file with -o,
4222  # though they will create one.
4223  am_cv_prog_cc_c_o=yes
4224  for am_i in 1 2; do
4225    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4226   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4227   ac_status=$?
4228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229   (exit $ac_status); } \
4230         && test -f conftest2.$ac_objext; then
4231      : OK
4232    else
4233      am_cv_prog_cc_c_o=no
4234      break
4235    fi
4236  done
4237  rm -f core conftest*
4238  unset am_i
4239fi
4240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4241printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4242if test "$am_cv_prog_cc_c_o" != yes; then
4243   # Losing compiler, so override with the script.
4244   # FIXME: It is wrong to rewrite CC.
4245   # But if we don't then we get into trouble of one sort or another.
4246   # A longer-term fix would be to have automake use am__CC in this case,
4247   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4248   CC="$am_aux_dir/compile $CC"
4249fi
4250ac_ext=c
4251ac_cpp='$CPP $CPPFLAGS'
4252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4254ac_compiler_gnu=$ac_cv_c_compiler_gnu
4255
4256
4257depcc="$CC"   am_compiler_list=
4258
4259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4260printf %s "checking dependency style of $depcc... " >&6; }
4261if test ${am_cv_CC_dependencies_compiler_type+y}
4262then :
4263  printf %s "(cached) " >&6
4264else $as_nop
4265  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4266  # We make a subdir and do the tests there.  Otherwise we can end up
4267  # making bogus files that we don't know about and never remove.  For
4268  # instance it was reported that on HP-UX the gcc test will end up
4269  # making a dummy file named 'D' -- because '-MD' means "put the output
4270  # in D".
4271  rm -rf conftest.dir
4272  mkdir conftest.dir
4273  # Copy depcomp to subdir because otherwise we won't find it if we're
4274  # using a relative directory.
4275  cp "$am_depcomp" conftest.dir
4276  cd conftest.dir
4277  # We will build objects and dependencies in a subdirectory because
4278  # it helps to detect inapplicable dependency modes.  For instance
4279  # both Tru64's cc and ICC support -MD to output dependencies as a
4280  # side effect of compilation, but ICC will put the dependencies in
4281  # the current directory while Tru64 will put them in the object
4282  # directory.
4283  mkdir sub
4284
4285  am_cv_CC_dependencies_compiler_type=none
4286  if test "$am_compiler_list" = ""; then
4287     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4288  fi
4289  am__universal=false
4290  case " $depcc " in #(
4291     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4292     esac
4293
4294  for depmode in $am_compiler_list; do
4295    # Setup a source with many dependencies, because some compilers
4296    # like to wrap large dependency lists on column 80 (with \), and
4297    # we should not choose a depcomp mode which is confused by this.
4298    #
4299    # We need to recreate these files for each test, as the compiler may
4300    # overwrite some of them when testing with obscure command lines.
4301    # This happens at least with the AIX C compiler.
4302    : > sub/conftest.c
4303    for i in 1 2 3 4 5 6; do
4304      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4305      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4306      # Solaris 10 /bin/sh.
4307      echo '/* dummy */' > sub/conftst$i.h
4308    done
4309    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4310
4311    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4312    # mode.  It turns out that the SunPro C++ compiler does not properly
4313    # handle '-M -o', and we need to detect this.  Also, some Intel
4314    # versions had trouble with output in subdirs.
4315    am__obj=sub/conftest.${OBJEXT-o}
4316    am__minus_obj="-o $am__obj"
4317    case $depmode in
4318    gcc)
4319      # This depmode causes a compiler race in universal mode.
4320      test "$am__universal" = false || continue
4321      ;;
4322    nosideeffect)
4323      # After this tag, mechanisms are not by side-effect, so they'll
4324      # only be used when explicitly requested.
4325      if test "x$enable_dependency_tracking" = xyes; then
4326	continue
4327      else
4328	break
4329      fi
4330      ;;
4331    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4332      # This compiler won't grok '-c -o', but also, the minuso test has
4333      # not run yet.  These depmodes are late enough in the game, and
4334      # so weak that their functioning should not be impacted.
4335      am__obj=conftest.${OBJEXT-o}
4336      am__minus_obj=
4337      ;;
4338    none) break ;;
4339    esac
4340    if depmode=$depmode \
4341       source=sub/conftest.c object=$am__obj \
4342       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4343       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4344         >/dev/null 2>conftest.err &&
4345       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4346       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4347       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4348       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4349      # icc doesn't choke on unknown options, it will just issue warnings
4350      # or remarks (even with -Werror).  So we grep stderr for any message
4351      # that says an option was ignored or not supported.
4352      # When given -MP, icc 7.0 and 7.1 complain thusly:
4353      #   icc: Command line warning: ignoring option '-M'; no argument required
4354      # The diagnosis changed in icc 8.0:
4355      #   icc: Command line remark: option '-MP' not supported
4356      if (grep 'ignoring option' conftest.err ||
4357          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4358        am_cv_CC_dependencies_compiler_type=$depmode
4359        break
4360      fi
4361    fi
4362  done
4363
4364  cd ..
4365  rm -rf conftest.dir
4366else
4367  am_cv_CC_dependencies_compiler_type=none
4368fi
4369
4370fi
4371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4372printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4373CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4374
4375 if
4376  test "x$enable_dependency_tracking" != xno \
4377  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4378  am__fastdepCC_TRUE=
4379  am__fastdepCC_FALSE='#'
4380else
4381  am__fastdepCC_TRUE='#'
4382  am__fastdepCC_FALSE=
4383fi
4384
4385
4386
4387
4388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4389printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4390if test ${ac_cv_c_undeclared_builtin_options+y}
4391then :
4392  printf %s "(cached) " >&6
4393else $as_nop
4394  ac_save_CFLAGS=$CFLAGS
4395   ac_cv_c_undeclared_builtin_options='cannot detect'
4396   for ac_arg in '' -fno-builtin; do
4397     CFLAGS="$ac_save_CFLAGS $ac_arg"
4398     # This test program should *not* compile successfully.
4399     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400/* end confdefs.h.  */
4401
4402int
4403main (void)
4404{
4405(void) strchr;
4406  ;
4407  return 0;
4408}
4409_ACEOF
4410if ac_fn_c_try_compile "$LINENO"
4411then :
4412
4413else $as_nop
4414  # This test program should compile successfully.
4415        # No library function is consistently available on
4416        # freestanding implementations, so test against a dummy
4417        # declaration.  Include always-available headers on the
4418        # off chance that they somehow elicit warnings.
4419        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420/* end confdefs.h.  */
4421#include <float.h>
4422#include <limits.h>
4423#include <stdarg.h>
4424#include <stddef.h>
4425extern void ac_decl (int, char *);
4426
4427int
4428main (void)
4429{
4430(void) ac_decl (0, (char *) 0);
4431  (void) ac_decl;
4432
4433  ;
4434  return 0;
4435}
4436_ACEOF
4437if ac_fn_c_try_compile "$LINENO"
4438then :
4439  if test x"$ac_arg" = x
4440then :
4441  ac_cv_c_undeclared_builtin_options='none needed'
4442else $as_nop
4443  ac_cv_c_undeclared_builtin_options=$ac_arg
4444fi
4445          break
4446fi
4447rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4448fi
4449rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4450    done
4451    CFLAGS=$ac_save_CFLAGS
4452
4453fi
4454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4455printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4456  case $ac_cv_c_undeclared_builtin_options in #(
4457  'cannot detect') :
4458    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4459printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4460as_fn_error $? "cannot make $CC report undeclared builtins
4461See \`config.log' for more details" "$LINENO" 5; } ;; #(
4462  'none needed') :
4463    ac_c_undeclared_builtin_options='' ;; #(
4464  *) :
4465    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4466esac
4467
4468ac_header= ac_cache=
4469for ac_item in $ac_header_c_list
4470do
4471  if test $ac_cache; then
4472    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4473    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4474      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4475    fi
4476    ac_header= ac_cache=
4477  elif test $ac_header; then
4478    ac_cache=$ac_item
4479  else
4480    ac_header=$ac_item
4481  fi
4482done
4483
4484
4485
4486
4487
4488
4489
4490
4491if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4492then :
4493
4494printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4495
4496fi
4497
4498
4499
4500
4501ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4502if test "x$ac_cv_have_decl___clang__" = xyes
4503then :
4504  CLANGCC="yes"
4505else $as_nop
4506  CLANGCC="no"
4507fi
4508ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4509if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4510then :
4511  INTELCC="yes"
4512else $as_nop
4513  INTELCC="no"
4514fi
4515ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4516if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4517then :
4518  SUNCC="yes"
4519else $as_nop
4520  SUNCC="no"
4521fi
4522
4523
4524
4525
4526
4527
4528
4529
4530if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4531	if test -n "$ac_tool_prefix"; then
4532  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4533set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4535printf %s "checking for $ac_word... " >&6; }
4536if test ${ac_cv_path_PKG_CONFIG+y}
4537then :
4538  printf %s "(cached) " >&6
4539else $as_nop
4540  case $PKG_CONFIG in
4541  [\\/]* | ?:[\\/]*)
4542  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4543  ;;
4544  *)
4545  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546for as_dir in $PATH
4547do
4548  IFS=$as_save_IFS
4549  case $as_dir in #(((
4550    '') as_dir=./ ;;
4551    */) ;;
4552    *) as_dir=$as_dir/ ;;
4553  esac
4554    for ac_exec_ext in '' $ac_executable_extensions; do
4555  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4556    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4557    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4558    break 2
4559  fi
4560done
4561  done
4562IFS=$as_save_IFS
4563
4564  ;;
4565esac
4566fi
4567PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4568if test -n "$PKG_CONFIG"; then
4569  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4570printf "%s\n" "$PKG_CONFIG" >&6; }
4571else
4572  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573printf "%s\n" "no" >&6; }
4574fi
4575
4576
4577fi
4578if test -z "$ac_cv_path_PKG_CONFIG"; then
4579  ac_pt_PKG_CONFIG=$PKG_CONFIG
4580  # Extract the first word of "pkg-config", so it can be a program name with args.
4581set dummy pkg-config; ac_word=$2
4582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4583printf %s "checking for $ac_word... " >&6; }
4584if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4585then :
4586  printf %s "(cached) " >&6
4587else $as_nop
4588  case $ac_pt_PKG_CONFIG in
4589  [\\/]* | ?:[\\/]*)
4590  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4591  ;;
4592  *)
4593  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594for as_dir in $PATH
4595do
4596  IFS=$as_save_IFS
4597  case $as_dir in #(((
4598    '') as_dir=./ ;;
4599    */) ;;
4600    *) as_dir=$as_dir/ ;;
4601  esac
4602    for ac_exec_ext in '' $ac_executable_extensions; do
4603  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4604    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4605    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4606    break 2
4607  fi
4608done
4609  done
4610IFS=$as_save_IFS
4611
4612  ;;
4613esac
4614fi
4615ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4616if test -n "$ac_pt_PKG_CONFIG"; then
4617  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4618printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4619else
4620  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4621printf "%s\n" "no" >&6; }
4622fi
4623
4624  if test "x$ac_pt_PKG_CONFIG" = x; then
4625    PKG_CONFIG=""
4626  else
4627    case $cross_compiling:$ac_tool_warned in
4628yes:)
4629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4630printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4631ac_tool_warned=yes ;;
4632esac
4633    PKG_CONFIG=$ac_pt_PKG_CONFIG
4634  fi
4635else
4636  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4637fi
4638
4639fi
4640if test -n "$PKG_CONFIG"; then
4641	_pkg_min_version=0.9.0
4642	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4643printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4644	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4645		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4646printf "%s\n" "yes" >&6; }
4647	else
4648		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649printf "%s\n" "no" >&6; }
4650		PKG_CONFIG=""
4651	fi
4652fi
4653
4654
4655  # Make sure we can run config.sub.
4656$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4657  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4658
4659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4660printf %s "checking build system type... " >&6; }
4661if test ${ac_cv_build+y}
4662then :
4663  printf %s "(cached) " >&6
4664else $as_nop
4665  ac_build_alias=$build_alias
4666test "x$ac_build_alias" = x &&
4667  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4668test "x$ac_build_alias" = x &&
4669  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4670ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4671  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4672
4673fi
4674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4675printf "%s\n" "$ac_cv_build" >&6; }
4676case $ac_cv_build in
4677*-*-*) ;;
4678*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4679esac
4680build=$ac_cv_build
4681ac_save_IFS=$IFS; IFS='-'
4682set x $ac_cv_build
4683shift
4684build_cpu=$1
4685build_vendor=$2
4686shift; shift
4687# Remember, the first character of IFS is used to create $*,
4688# except with old shells:
4689build_os=$*
4690IFS=$ac_save_IFS
4691case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4692
4693
4694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4695printf %s "checking host system type... " >&6; }
4696if test ${ac_cv_host+y}
4697then :
4698  printf %s "(cached) " >&6
4699else $as_nop
4700  if test "x$host_alias" = x; then
4701  ac_cv_host=$ac_cv_build
4702else
4703  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4704    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4705fi
4706
4707fi
4708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4709printf "%s\n" "$ac_cv_host" >&6; }
4710case $ac_cv_host in
4711*-*-*) ;;
4712*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4713esac
4714host=$ac_cv_host
4715ac_save_IFS=$IFS; IFS='-'
4716set x $ac_cv_host
4717shift
4718host_cpu=$1
4719host_vendor=$2
4720shift; shift
4721# Remember, the first character of IFS is used to create $*,
4722# except with old shells:
4723host_os=$*
4724IFS=$ac_save_IFS
4725case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4726
4727
4728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4729printf %s "checking for a sed that does not truncate output... " >&6; }
4730if test ${ac_cv_path_SED+y}
4731then :
4732  printf %s "(cached) " >&6
4733else $as_nop
4734            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4735     for ac_i in 1 2 3 4 5 6 7; do
4736       ac_script="$ac_script$as_nl$ac_script"
4737     done
4738     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4739     { ac_script=; unset ac_script;}
4740     if test -z "$SED"; then
4741  ac_path_SED_found=false
4742  # Loop through the user's path and test for each of PROGNAME-LIST
4743  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744for as_dir in $PATH
4745do
4746  IFS=$as_save_IFS
4747  case $as_dir in #(((
4748    '') as_dir=./ ;;
4749    */) ;;
4750    *) as_dir=$as_dir/ ;;
4751  esac
4752    for ac_prog in sed gsed
4753   do
4754    for ac_exec_ext in '' $ac_executable_extensions; do
4755      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4756      as_fn_executable_p "$ac_path_SED" || continue
4757# Check for GNU ac_path_SED and select it if it is found.
4758  # Check for GNU $ac_path_SED
4759case `"$ac_path_SED" --version 2>&1` in
4760*GNU*)
4761  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4762*)
4763  ac_count=0
4764  printf %s 0123456789 >"conftest.in"
4765  while :
4766  do
4767    cat "conftest.in" "conftest.in" >"conftest.tmp"
4768    mv "conftest.tmp" "conftest.in"
4769    cp "conftest.in" "conftest.nl"
4770    printf "%s\n" '' >> "conftest.nl"
4771    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4772    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4773    as_fn_arith $ac_count + 1 && ac_count=$as_val
4774    if test $ac_count -gt ${ac_path_SED_max-0}; then
4775      # Best one so far, save it but keep looking for a better one
4776      ac_cv_path_SED="$ac_path_SED"
4777      ac_path_SED_max=$ac_count
4778    fi
4779    # 10*(2^10) chars as input seems more than enough
4780    test $ac_count -gt 10 && break
4781  done
4782  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4783esac
4784
4785      $ac_path_SED_found && break 3
4786    done
4787  done
4788  done
4789IFS=$as_save_IFS
4790  if test -z "$ac_cv_path_SED"; then
4791    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4792  fi
4793else
4794  ac_cv_path_SED=$SED
4795fi
4796
4797fi
4798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4799printf "%s\n" "$ac_cv_path_SED" >&6; }
4800 SED="$ac_cv_path_SED"
4801  rm -f conftest.sed
4802
4803
4804
4805
4806
4807
4808# Check whether --enable-selective-werror was given.
4809if test ${enable_selective_werror+y}
4810then :
4811  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4812else $as_nop
4813  SELECTIVE_WERROR=yes
4814fi
4815
4816
4817
4818
4819
4820# -v is too short to test reliably with XORG_TESTSET_CFLAG
4821if test "x$SUNCC" = "xyes"; then
4822    BASE_CFLAGS="-v"
4823else
4824    BASE_CFLAGS=""
4825fi
4826
4827# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841xorg_testset_save_CFLAGS="$CFLAGS"
4842
4843if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4844	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4845	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4846printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4847if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4848then :
4849  printf %s "(cached) " >&6
4850else $as_nop
4851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852/* end confdefs.h.  */
4853int i;
4854_ACEOF
4855if ac_fn_c_try_compile "$LINENO"
4856then :
4857  xorg_cv_cc_flag_unknown_warning_option=yes
4858else $as_nop
4859  xorg_cv_cc_flag_unknown_warning_option=no
4860fi
4861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4862fi
4863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4864printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4865	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4866	CFLAGS="$xorg_testset_save_CFLAGS"
4867fi
4868
4869if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4870	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4871		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4872	fi
4873	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4874	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4875printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4876if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4877then :
4878  printf %s "(cached) " >&6
4879else $as_nop
4880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4881/* end confdefs.h.  */
4882int i;
4883_ACEOF
4884if ac_fn_c_try_compile "$LINENO"
4885then :
4886  xorg_cv_cc_flag_unused_command_line_argument=yes
4887else $as_nop
4888  xorg_cv_cc_flag_unused_command_line_argument=no
4889fi
4890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4891fi
4892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4893printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4894	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4895	CFLAGS="$xorg_testset_save_CFLAGS"
4896fi
4897
4898found="no"
4899
4900	if test $found = "no" ; then
4901		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4902			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4903		fi
4904
4905		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4906			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4907		fi
4908
4909		CFLAGS="$CFLAGS -Wall"
4910
4911		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4912printf %s "checking if $CC supports -Wall... " >&6; }
4913		cacheid=xorg_cv_cc_flag__Wall
4914		if eval test \${$cacheid+y}
4915then :
4916  printf %s "(cached) " >&6
4917else $as_nop
4918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4919/* end confdefs.h.  */
4920int i;
4921int
4922main (void)
4923{
4924
4925  ;
4926  return 0;
4927}
4928_ACEOF
4929if ac_fn_c_try_link "$LINENO"
4930then :
4931  eval $cacheid=yes
4932else $as_nop
4933  eval $cacheid=no
4934fi
4935rm -f core conftest.err conftest.$ac_objext conftest.beam \
4936    conftest$ac_exeext conftest.$ac_ext
4937fi
4938
4939
4940		CFLAGS="$xorg_testset_save_CFLAGS"
4941
4942		eval supported=\$$cacheid
4943		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4944printf "%s\n" "$supported" >&6; }
4945		if test "$supported" = "yes" ; then
4946			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4947			found="yes"
4948		fi
4949	fi
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965xorg_testset_save_CFLAGS="$CFLAGS"
4966
4967if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4968	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4969	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4970printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4971if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4972then :
4973  printf %s "(cached) " >&6
4974else $as_nop
4975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976/* end confdefs.h.  */
4977int i;
4978_ACEOF
4979if ac_fn_c_try_compile "$LINENO"
4980then :
4981  xorg_cv_cc_flag_unknown_warning_option=yes
4982else $as_nop
4983  xorg_cv_cc_flag_unknown_warning_option=no
4984fi
4985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4986fi
4987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4988printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4989	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4990	CFLAGS="$xorg_testset_save_CFLAGS"
4991fi
4992
4993if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4994	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4995		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4996	fi
4997	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4998	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4999printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5000if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5001then :
5002  printf %s "(cached) " >&6
5003else $as_nop
5004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005/* end confdefs.h.  */
5006int i;
5007_ACEOF
5008if ac_fn_c_try_compile "$LINENO"
5009then :
5010  xorg_cv_cc_flag_unused_command_line_argument=yes
5011else $as_nop
5012  xorg_cv_cc_flag_unused_command_line_argument=no
5013fi
5014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5015fi
5016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5017printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5018	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5019	CFLAGS="$xorg_testset_save_CFLAGS"
5020fi
5021
5022found="no"
5023
5024	if test $found = "no" ; then
5025		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5026			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5027		fi
5028
5029		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5030			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5031		fi
5032
5033		CFLAGS="$CFLAGS -Wpointer-arith"
5034
5035		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5036printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5037		cacheid=xorg_cv_cc_flag__Wpointer_arith
5038		if eval test \${$cacheid+y}
5039then :
5040  printf %s "(cached) " >&6
5041else $as_nop
5042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043/* end confdefs.h.  */
5044int i;
5045int
5046main (void)
5047{
5048
5049  ;
5050  return 0;
5051}
5052_ACEOF
5053if ac_fn_c_try_link "$LINENO"
5054then :
5055  eval $cacheid=yes
5056else $as_nop
5057  eval $cacheid=no
5058fi
5059rm -f core conftest.err conftest.$ac_objext conftest.beam \
5060    conftest$ac_exeext conftest.$ac_ext
5061fi
5062
5063
5064		CFLAGS="$xorg_testset_save_CFLAGS"
5065
5066		eval supported=\$$cacheid
5067		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5068printf "%s\n" "$supported" >&6; }
5069		if test "$supported" = "yes" ; then
5070			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5071			found="yes"
5072		fi
5073	fi
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089xorg_testset_save_CFLAGS="$CFLAGS"
5090
5091if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5092	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5093	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5094printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5095if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5096then :
5097  printf %s "(cached) " >&6
5098else $as_nop
5099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5100/* end confdefs.h.  */
5101int i;
5102_ACEOF
5103if ac_fn_c_try_compile "$LINENO"
5104then :
5105  xorg_cv_cc_flag_unknown_warning_option=yes
5106else $as_nop
5107  xorg_cv_cc_flag_unknown_warning_option=no
5108fi
5109rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5110fi
5111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5112printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5113	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5114	CFLAGS="$xorg_testset_save_CFLAGS"
5115fi
5116
5117if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5118	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5119		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5120	fi
5121	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5122	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5123printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5124if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5125then :
5126  printf %s "(cached) " >&6
5127else $as_nop
5128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129/* end confdefs.h.  */
5130int i;
5131_ACEOF
5132if ac_fn_c_try_compile "$LINENO"
5133then :
5134  xorg_cv_cc_flag_unused_command_line_argument=yes
5135else $as_nop
5136  xorg_cv_cc_flag_unused_command_line_argument=no
5137fi
5138rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5139fi
5140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5141printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5142	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5143	CFLAGS="$xorg_testset_save_CFLAGS"
5144fi
5145
5146found="no"
5147
5148	if test $found = "no" ; then
5149		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5150			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5151		fi
5152
5153		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5154			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5155		fi
5156
5157		CFLAGS="$CFLAGS -Wmissing-declarations"
5158
5159		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5160printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5161		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5162		if eval test \${$cacheid+y}
5163then :
5164  printf %s "(cached) " >&6
5165else $as_nop
5166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167/* end confdefs.h.  */
5168int i;
5169int
5170main (void)
5171{
5172
5173  ;
5174  return 0;
5175}
5176_ACEOF
5177if ac_fn_c_try_link "$LINENO"
5178then :
5179  eval $cacheid=yes
5180else $as_nop
5181  eval $cacheid=no
5182fi
5183rm -f core conftest.err conftest.$ac_objext conftest.beam \
5184    conftest$ac_exeext conftest.$ac_ext
5185fi
5186
5187
5188		CFLAGS="$xorg_testset_save_CFLAGS"
5189
5190		eval supported=\$$cacheid
5191		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5192printf "%s\n" "$supported" >&6; }
5193		if test "$supported" = "yes" ; then
5194			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5195			found="yes"
5196		fi
5197	fi
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213xorg_testset_save_CFLAGS="$CFLAGS"
5214
5215if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5216	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5217	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5218printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5219if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5220then :
5221  printf %s "(cached) " >&6
5222else $as_nop
5223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224/* end confdefs.h.  */
5225int i;
5226_ACEOF
5227if ac_fn_c_try_compile "$LINENO"
5228then :
5229  xorg_cv_cc_flag_unknown_warning_option=yes
5230else $as_nop
5231  xorg_cv_cc_flag_unknown_warning_option=no
5232fi
5233rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5234fi
5235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5236printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5237	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5238	CFLAGS="$xorg_testset_save_CFLAGS"
5239fi
5240
5241if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5242	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5243		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5244	fi
5245	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5246	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5247printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5248if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5249then :
5250  printf %s "(cached) " >&6
5251else $as_nop
5252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253/* end confdefs.h.  */
5254int i;
5255_ACEOF
5256if ac_fn_c_try_compile "$LINENO"
5257then :
5258  xorg_cv_cc_flag_unused_command_line_argument=yes
5259else $as_nop
5260  xorg_cv_cc_flag_unused_command_line_argument=no
5261fi
5262rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5263fi
5264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5265printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5266	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5267	CFLAGS="$xorg_testset_save_CFLAGS"
5268fi
5269
5270found="no"
5271
5272	if test $found = "no" ; then
5273		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5274			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5275		fi
5276
5277		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5278			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5279		fi
5280
5281		CFLAGS="$CFLAGS -Wformat=2"
5282
5283		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5284printf %s "checking if $CC supports -Wformat=2... " >&6; }
5285		cacheid=xorg_cv_cc_flag__Wformat_2
5286		if eval test \${$cacheid+y}
5287then :
5288  printf %s "(cached) " >&6
5289else $as_nop
5290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291/* end confdefs.h.  */
5292int i;
5293int
5294main (void)
5295{
5296
5297  ;
5298  return 0;
5299}
5300_ACEOF
5301if ac_fn_c_try_link "$LINENO"
5302then :
5303  eval $cacheid=yes
5304else $as_nop
5305  eval $cacheid=no
5306fi
5307rm -f core conftest.err conftest.$ac_objext conftest.beam \
5308    conftest$ac_exeext conftest.$ac_ext
5309fi
5310
5311
5312		CFLAGS="$xorg_testset_save_CFLAGS"
5313
5314		eval supported=\$$cacheid
5315		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5316printf "%s\n" "$supported" >&6; }
5317		if test "$supported" = "yes" ; then
5318			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5319			found="yes"
5320		fi
5321	fi
5322
5323	if test $found = "no" ; then
5324		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5325			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5326		fi
5327
5328		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5329			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5330		fi
5331
5332		CFLAGS="$CFLAGS -Wformat"
5333
5334		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5335printf %s "checking if $CC supports -Wformat... " >&6; }
5336		cacheid=xorg_cv_cc_flag__Wformat
5337		if eval test \${$cacheid+y}
5338then :
5339  printf %s "(cached) " >&6
5340else $as_nop
5341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342/* end confdefs.h.  */
5343int i;
5344int
5345main (void)
5346{
5347
5348  ;
5349  return 0;
5350}
5351_ACEOF
5352if ac_fn_c_try_link "$LINENO"
5353then :
5354  eval $cacheid=yes
5355else $as_nop
5356  eval $cacheid=no
5357fi
5358rm -f core conftest.err conftest.$ac_objext conftest.beam \
5359    conftest$ac_exeext conftest.$ac_ext
5360fi
5361
5362
5363		CFLAGS="$xorg_testset_save_CFLAGS"
5364
5365		eval supported=\$$cacheid
5366		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5367printf "%s\n" "$supported" >&6; }
5368		if test "$supported" = "yes" ; then
5369			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5370			found="yes"
5371		fi
5372	fi
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390xorg_testset_save_CFLAGS="$CFLAGS"
5391
5392if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5393	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5394	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5395printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5396if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5397then :
5398  printf %s "(cached) " >&6
5399else $as_nop
5400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401/* end confdefs.h.  */
5402int i;
5403_ACEOF
5404if ac_fn_c_try_compile "$LINENO"
5405then :
5406  xorg_cv_cc_flag_unknown_warning_option=yes
5407else $as_nop
5408  xorg_cv_cc_flag_unknown_warning_option=no
5409fi
5410rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5411fi
5412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5413printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5414	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5415	CFLAGS="$xorg_testset_save_CFLAGS"
5416fi
5417
5418if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5419	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5420		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5421	fi
5422	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5423	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5424printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5425if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5426then :
5427  printf %s "(cached) " >&6
5428else $as_nop
5429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430/* end confdefs.h.  */
5431int i;
5432_ACEOF
5433if ac_fn_c_try_compile "$LINENO"
5434then :
5435  xorg_cv_cc_flag_unused_command_line_argument=yes
5436else $as_nop
5437  xorg_cv_cc_flag_unused_command_line_argument=no
5438fi
5439rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5440fi
5441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5442printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5443	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5444	CFLAGS="$xorg_testset_save_CFLAGS"
5445fi
5446
5447found="no"
5448
5449	if test $found = "no" ; then
5450		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5451			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5452		fi
5453
5454		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5455			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5456		fi
5457
5458		CFLAGS="$CFLAGS -Wstrict-prototypes"
5459
5460		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5461printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5462		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5463		if eval test \${$cacheid+y}
5464then :
5465  printf %s "(cached) " >&6
5466else $as_nop
5467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468/* end confdefs.h.  */
5469int i;
5470int
5471main (void)
5472{
5473
5474  ;
5475  return 0;
5476}
5477_ACEOF
5478if ac_fn_c_try_link "$LINENO"
5479then :
5480  eval $cacheid=yes
5481else $as_nop
5482  eval $cacheid=no
5483fi
5484rm -f core conftest.err conftest.$ac_objext conftest.beam \
5485    conftest$ac_exeext conftest.$ac_ext
5486fi
5487
5488
5489		CFLAGS="$xorg_testset_save_CFLAGS"
5490
5491		eval supported=\$$cacheid
5492		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5493printf "%s\n" "$supported" >&6; }
5494		if test "$supported" = "yes" ; then
5495			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5496			found="yes"
5497		fi
5498	fi
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514xorg_testset_save_CFLAGS="$CFLAGS"
5515
5516if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5517	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5518	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5519printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5520if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5521then :
5522  printf %s "(cached) " >&6
5523else $as_nop
5524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525/* end confdefs.h.  */
5526int i;
5527_ACEOF
5528if ac_fn_c_try_compile "$LINENO"
5529then :
5530  xorg_cv_cc_flag_unknown_warning_option=yes
5531else $as_nop
5532  xorg_cv_cc_flag_unknown_warning_option=no
5533fi
5534rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5535fi
5536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5537printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5538	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5539	CFLAGS="$xorg_testset_save_CFLAGS"
5540fi
5541
5542if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5543	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5544		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5545	fi
5546	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5547	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5548printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5549if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5550then :
5551  printf %s "(cached) " >&6
5552else $as_nop
5553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554/* end confdefs.h.  */
5555int i;
5556_ACEOF
5557if ac_fn_c_try_compile "$LINENO"
5558then :
5559  xorg_cv_cc_flag_unused_command_line_argument=yes
5560else $as_nop
5561  xorg_cv_cc_flag_unused_command_line_argument=no
5562fi
5563rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5564fi
5565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5566printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5567	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5568	CFLAGS="$xorg_testset_save_CFLAGS"
5569fi
5570
5571found="no"
5572
5573	if test $found = "no" ; then
5574		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5575			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5576		fi
5577
5578		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5579			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5580		fi
5581
5582		CFLAGS="$CFLAGS -Wmissing-prototypes"
5583
5584		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5585printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5586		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5587		if eval test \${$cacheid+y}
5588then :
5589  printf %s "(cached) " >&6
5590else $as_nop
5591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592/* end confdefs.h.  */
5593int i;
5594int
5595main (void)
5596{
5597
5598  ;
5599  return 0;
5600}
5601_ACEOF
5602if ac_fn_c_try_link "$LINENO"
5603then :
5604  eval $cacheid=yes
5605else $as_nop
5606  eval $cacheid=no
5607fi
5608rm -f core conftest.err conftest.$ac_objext conftest.beam \
5609    conftest$ac_exeext conftest.$ac_ext
5610fi
5611
5612
5613		CFLAGS="$xorg_testset_save_CFLAGS"
5614
5615		eval supported=\$$cacheid
5616		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5617printf "%s\n" "$supported" >&6; }
5618		if test "$supported" = "yes" ; then
5619			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5620			found="yes"
5621		fi
5622	fi
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638xorg_testset_save_CFLAGS="$CFLAGS"
5639
5640if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5641	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5642	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5643printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5644if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5645then :
5646  printf %s "(cached) " >&6
5647else $as_nop
5648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649/* end confdefs.h.  */
5650int i;
5651_ACEOF
5652if ac_fn_c_try_compile "$LINENO"
5653then :
5654  xorg_cv_cc_flag_unknown_warning_option=yes
5655else $as_nop
5656  xorg_cv_cc_flag_unknown_warning_option=no
5657fi
5658rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5659fi
5660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5661printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5662	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5663	CFLAGS="$xorg_testset_save_CFLAGS"
5664fi
5665
5666if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5667	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5668		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5669	fi
5670	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5671	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5672printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5673if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5674then :
5675  printf %s "(cached) " >&6
5676else $as_nop
5677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678/* end confdefs.h.  */
5679int i;
5680_ACEOF
5681if ac_fn_c_try_compile "$LINENO"
5682then :
5683  xorg_cv_cc_flag_unused_command_line_argument=yes
5684else $as_nop
5685  xorg_cv_cc_flag_unused_command_line_argument=no
5686fi
5687rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5688fi
5689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5690printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5691	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5692	CFLAGS="$xorg_testset_save_CFLAGS"
5693fi
5694
5695found="no"
5696
5697	if test $found = "no" ; then
5698		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5699			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5700		fi
5701
5702		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5703			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5704		fi
5705
5706		CFLAGS="$CFLAGS -Wnested-externs"
5707
5708		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5709printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5710		cacheid=xorg_cv_cc_flag__Wnested_externs
5711		if eval test \${$cacheid+y}
5712then :
5713  printf %s "(cached) " >&6
5714else $as_nop
5715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716/* end confdefs.h.  */
5717int i;
5718int
5719main (void)
5720{
5721
5722  ;
5723  return 0;
5724}
5725_ACEOF
5726if ac_fn_c_try_link "$LINENO"
5727then :
5728  eval $cacheid=yes
5729else $as_nop
5730  eval $cacheid=no
5731fi
5732rm -f core conftest.err conftest.$ac_objext conftest.beam \
5733    conftest$ac_exeext conftest.$ac_ext
5734fi
5735
5736
5737		CFLAGS="$xorg_testset_save_CFLAGS"
5738
5739		eval supported=\$$cacheid
5740		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5741printf "%s\n" "$supported" >&6; }
5742		if test "$supported" = "yes" ; then
5743			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5744			found="yes"
5745		fi
5746	fi
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762xorg_testset_save_CFLAGS="$CFLAGS"
5763
5764if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5765	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5766	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5767printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5768if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5769then :
5770  printf %s "(cached) " >&6
5771else $as_nop
5772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773/* end confdefs.h.  */
5774int i;
5775_ACEOF
5776if ac_fn_c_try_compile "$LINENO"
5777then :
5778  xorg_cv_cc_flag_unknown_warning_option=yes
5779else $as_nop
5780  xorg_cv_cc_flag_unknown_warning_option=no
5781fi
5782rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5783fi
5784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5785printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5786	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5787	CFLAGS="$xorg_testset_save_CFLAGS"
5788fi
5789
5790if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5791	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5792		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5793	fi
5794	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5795	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5796printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5797if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5798then :
5799  printf %s "(cached) " >&6
5800else $as_nop
5801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802/* end confdefs.h.  */
5803int i;
5804_ACEOF
5805if ac_fn_c_try_compile "$LINENO"
5806then :
5807  xorg_cv_cc_flag_unused_command_line_argument=yes
5808else $as_nop
5809  xorg_cv_cc_flag_unused_command_line_argument=no
5810fi
5811rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5812fi
5813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5814printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5815	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5816	CFLAGS="$xorg_testset_save_CFLAGS"
5817fi
5818
5819found="no"
5820
5821	if test $found = "no" ; then
5822		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5823			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5824		fi
5825
5826		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5827			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5828		fi
5829
5830		CFLAGS="$CFLAGS -Wbad-function-cast"
5831
5832		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5833printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5834		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5835		if eval test \${$cacheid+y}
5836then :
5837  printf %s "(cached) " >&6
5838else $as_nop
5839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840/* end confdefs.h.  */
5841int i;
5842int
5843main (void)
5844{
5845
5846  ;
5847  return 0;
5848}
5849_ACEOF
5850if ac_fn_c_try_link "$LINENO"
5851then :
5852  eval $cacheid=yes
5853else $as_nop
5854  eval $cacheid=no
5855fi
5856rm -f core conftest.err conftest.$ac_objext conftest.beam \
5857    conftest$ac_exeext conftest.$ac_ext
5858fi
5859
5860
5861		CFLAGS="$xorg_testset_save_CFLAGS"
5862
5863		eval supported=\$$cacheid
5864		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5865printf "%s\n" "$supported" >&6; }
5866		if test "$supported" = "yes" ; then
5867			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5868			found="yes"
5869		fi
5870	fi
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886xorg_testset_save_CFLAGS="$CFLAGS"
5887
5888if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5889	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5890	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5891printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5892if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5893then :
5894  printf %s "(cached) " >&6
5895else $as_nop
5896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897/* end confdefs.h.  */
5898int i;
5899_ACEOF
5900if ac_fn_c_try_compile "$LINENO"
5901then :
5902  xorg_cv_cc_flag_unknown_warning_option=yes
5903else $as_nop
5904  xorg_cv_cc_flag_unknown_warning_option=no
5905fi
5906rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5907fi
5908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5909printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5910	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5911	CFLAGS="$xorg_testset_save_CFLAGS"
5912fi
5913
5914if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5915	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5916		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5917	fi
5918	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5919	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5920printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5921if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5922then :
5923  printf %s "(cached) " >&6
5924else $as_nop
5925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926/* end confdefs.h.  */
5927int i;
5928_ACEOF
5929if ac_fn_c_try_compile "$LINENO"
5930then :
5931  xorg_cv_cc_flag_unused_command_line_argument=yes
5932else $as_nop
5933  xorg_cv_cc_flag_unused_command_line_argument=no
5934fi
5935rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5936fi
5937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5938printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5939	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5940	CFLAGS="$xorg_testset_save_CFLAGS"
5941fi
5942
5943found="no"
5944
5945	if test $found = "no" ; then
5946		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5947			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5948		fi
5949
5950		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5951			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5952		fi
5953
5954		CFLAGS="$CFLAGS -Wold-style-definition"
5955
5956		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5957printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
5958		cacheid=xorg_cv_cc_flag__Wold_style_definition
5959		if eval test \${$cacheid+y}
5960then :
5961  printf %s "(cached) " >&6
5962else $as_nop
5963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5964/* end confdefs.h.  */
5965int i;
5966int
5967main (void)
5968{
5969
5970  ;
5971  return 0;
5972}
5973_ACEOF
5974if ac_fn_c_try_link "$LINENO"
5975then :
5976  eval $cacheid=yes
5977else $as_nop
5978  eval $cacheid=no
5979fi
5980rm -f core conftest.err conftest.$ac_objext conftest.beam \
5981    conftest$ac_exeext conftest.$ac_ext
5982fi
5983
5984
5985		CFLAGS="$xorg_testset_save_CFLAGS"
5986
5987		eval supported=\$$cacheid
5988		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5989printf "%s\n" "$supported" >&6; }
5990		if test "$supported" = "yes" ; then
5991			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5992			found="yes"
5993		fi
5994	fi
5995
5996	if test $found = "no" ; then
5997		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5998			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5999		fi
6000
6001		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6002			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6003		fi
6004
6005		CFLAGS="$CFLAGS -fd"
6006
6007		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6008printf %s "checking if $CC supports -fd... " >&6; }
6009		cacheid=xorg_cv_cc_flag__fd
6010		if eval test \${$cacheid+y}
6011then :
6012  printf %s "(cached) " >&6
6013else $as_nop
6014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015/* end confdefs.h.  */
6016int i;
6017int
6018main (void)
6019{
6020
6021  ;
6022  return 0;
6023}
6024_ACEOF
6025if ac_fn_c_try_link "$LINENO"
6026then :
6027  eval $cacheid=yes
6028else $as_nop
6029  eval $cacheid=no
6030fi
6031rm -f core conftest.err conftest.$ac_objext conftest.beam \
6032    conftest$ac_exeext conftest.$ac_ext
6033fi
6034
6035
6036		CFLAGS="$xorg_testset_save_CFLAGS"
6037
6038		eval supported=\$$cacheid
6039		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6040printf "%s\n" "$supported" >&6; }
6041		if test "$supported" = "yes" ; then
6042			BASE_CFLAGS="$BASE_CFLAGS -fd"
6043			found="yes"
6044		fi
6045	fi
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061xorg_testset_save_CFLAGS="$CFLAGS"
6062
6063if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6064	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6065	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6066printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6067if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6068then :
6069  printf %s "(cached) " >&6
6070else $as_nop
6071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072/* end confdefs.h.  */
6073int i;
6074_ACEOF
6075if ac_fn_c_try_compile "$LINENO"
6076then :
6077  xorg_cv_cc_flag_unknown_warning_option=yes
6078else $as_nop
6079  xorg_cv_cc_flag_unknown_warning_option=no
6080fi
6081rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6082fi
6083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6084printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6085	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6086	CFLAGS="$xorg_testset_save_CFLAGS"
6087fi
6088
6089if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6090	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6091		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6092	fi
6093	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6094	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6095printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6096if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6097then :
6098  printf %s "(cached) " >&6
6099else $as_nop
6100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101/* end confdefs.h.  */
6102int i;
6103_ACEOF
6104if ac_fn_c_try_compile "$LINENO"
6105then :
6106  xorg_cv_cc_flag_unused_command_line_argument=yes
6107else $as_nop
6108  xorg_cv_cc_flag_unused_command_line_argument=no
6109fi
6110rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6111fi
6112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6113printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6114	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6115	CFLAGS="$xorg_testset_save_CFLAGS"
6116fi
6117
6118found="no"
6119
6120	if test $found = "no" ; then
6121		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6122			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6123		fi
6124
6125		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6126			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6127		fi
6128
6129		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6130
6131		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6132printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6133		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6134		if eval test \${$cacheid+y}
6135then :
6136  printf %s "(cached) " >&6
6137else $as_nop
6138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6139/* end confdefs.h.  */
6140int i;
6141int
6142main (void)
6143{
6144
6145  ;
6146  return 0;
6147}
6148_ACEOF
6149if ac_fn_c_try_link "$LINENO"
6150then :
6151  eval $cacheid=yes
6152else $as_nop
6153  eval $cacheid=no
6154fi
6155rm -f core conftest.err conftest.$ac_objext conftest.beam \
6156    conftest$ac_exeext conftest.$ac_ext
6157fi
6158
6159
6160		CFLAGS="$xorg_testset_save_CFLAGS"
6161
6162		eval supported=\$$cacheid
6163		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6164printf "%s\n" "$supported" >&6; }
6165		if test "$supported" = "yes" ; then
6166			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6167			found="yes"
6168		fi
6169	fi
6170
6171
6172
6173
6174
6175# This chunk adds additional warnings that could catch undesired effects.
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189xorg_testset_save_CFLAGS="$CFLAGS"
6190
6191if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6192	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6193	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6194printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6195if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6196then :
6197  printf %s "(cached) " >&6
6198else $as_nop
6199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6200/* end confdefs.h.  */
6201int i;
6202_ACEOF
6203if ac_fn_c_try_compile "$LINENO"
6204then :
6205  xorg_cv_cc_flag_unknown_warning_option=yes
6206else $as_nop
6207  xorg_cv_cc_flag_unknown_warning_option=no
6208fi
6209rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6210fi
6211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6212printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6213	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6214	CFLAGS="$xorg_testset_save_CFLAGS"
6215fi
6216
6217if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6218	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6219		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6220	fi
6221	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6222	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6223printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6224if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6225then :
6226  printf %s "(cached) " >&6
6227else $as_nop
6228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229/* end confdefs.h.  */
6230int i;
6231_ACEOF
6232if ac_fn_c_try_compile "$LINENO"
6233then :
6234  xorg_cv_cc_flag_unused_command_line_argument=yes
6235else $as_nop
6236  xorg_cv_cc_flag_unused_command_line_argument=no
6237fi
6238rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6239fi
6240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6241printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6242	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6243	CFLAGS="$xorg_testset_save_CFLAGS"
6244fi
6245
6246found="no"
6247
6248	if test $found = "no" ; then
6249		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6250			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6251		fi
6252
6253		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6254			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6255		fi
6256
6257		CFLAGS="$CFLAGS -Wunused"
6258
6259		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6260printf %s "checking if $CC supports -Wunused... " >&6; }
6261		cacheid=xorg_cv_cc_flag__Wunused
6262		if eval test \${$cacheid+y}
6263then :
6264  printf %s "(cached) " >&6
6265else $as_nop
6266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267/* end confdefs.h.  */
6268int i;
6269int
6270main (void)
6271{
6272
6273  ;
6274  return 0;
6275}
6276_ACEOF
6277if ac_fn_c_try_link "$LINENO"
6278then :
6279  eval $cacheid=yes
6280else $as_nop
6281  eval $cacheid=no
6282fi
6283rm -f core conftest.err conftest.$ac_objext conftest.beam \
6284    conftest$ac_exeext conftest.$ac_ext
6285fi
6286
6287
6288		CFLAGS="$xorg_testset_save_CFLAGS"
6289
6290		eval supported=\$$cacheid
6291		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6292printf "%s\n" "$supported" >&6; }
6293		if test "$supported" = "yes" ; then
6294			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6295			found="yes"
6296		fi
6297	fi
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313xorg_testset_save_CFLAGS="$CFLAGS"
6314
6315if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6316	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6317	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6318printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6319if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6320then :
6321  printf %s "(cached) " >&6
6322else $as_nop
6323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324/* end confdefs.h.  */
6325int i;
6326_ACEOF
6327if ac_fn_c_try_compile "$LINENO"
6328then :
6329  xorg_cv_cc_flag_unknown_warning_option=yes
6330else $as_nop
6331  xorg_cv_cc_flag_unknown_warning_option=no
6332fi
6333rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6334fi
6335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6336printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6337	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6338	CFLAGS="$xorg_testset_save_CFLAGS"
6339fi
6340
6341if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6342	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6343		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6344	fi
6345	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6346	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6347printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6348if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6349then :
6350  printf %s "(cached) " >&6
6351else $as_nop
6352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6353/* end confdefs.h.  */
6354int i;
6355_ACEOF
6356if ac_fn_c_try_compile "$LINENO"
6357then :
6358  xorg_cv_cc_flag_unused_command_line_argument=yes
6359else $as_nop
6360  xorg_cv_cc_flag_unused_command_line_argument=no
6361fi
6362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6363fi
6364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6365printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6366	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6367	CFLAGS="$xorg_testset_save_CFLAGS"
6368fi
6369
6370found="no"
6371
6372	if test $found = "no" ; then
6373		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6374			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6375		fi
6376
6377		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6378			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6379		fi
6380
6381		CFLAGS="$CFLAGS -Wuninitialized"
6382
6383		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6384printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6385		cacheid=xorg_cv_cc_flag__Wuninitialized
6386		if eval test \${$cacheid+y}
6387then :
6388  printf %s "(cached) " >&6
6389else $as_nop
6390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391/* end confdefs.h.  */
6392int i;
6393int
6394main (void)
6395{
6396
6397  ;
6398  return 0;
6399}
6400_ACEOF
6401if ac_fn_c_try_link "$LINENO"
6402then :
6403  eval $cacheid=yes
6404else $as_nop
6405  eval $cacheid=no
6406fi
6407rm -f core conftest.err conftest.$ac_objext conftest.beam \
6408    conftest$ac_exeext conftest.$ac_ext
6409fi
6410
6411
6412		CFLAGS="$xorg_testset_save_CFLAGS"
6413
6414		eval supported=\$$cacheid
6415		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6416printf "%s\n" "$supported" >&6; }
6417		if test "$supported" = "yes" ; then
6418			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6419			found="yes"
6420		fi
6421	fi
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437xorg_testset_save_CFLAGS="$CFLAGS"
6438
6439if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6440	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6441	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6442printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6443if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6444then :
6445  printf %s "(cached) " >&6
6446else $as_nop
6447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448/* end confdefs.h.  */
6449int i;
6450_ACEOF
6451if ac_fn_c_try_compile "$LINENO"
6452then :
6453  xorg_cv_cc_flag_unknown_warning_option=yes
6454else $as_nop
6455  xorg_cv_cc_flag_unknown_warning_option=no
6456fi
6457rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6458fi
6459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6460printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6461	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6462	CFLAGS="$xorg_testset_save_CFLAGS"
6463fi
6464
6465if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6466	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6467		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6468	fi
6469	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6470	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6471printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6472if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6473then :
6474  printf %s "(cached) " >&6
6475else $as_nop
6476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477/* end confdefs.h.  */
6478int i;
6479_ACEOF
6480if ac_fn_c_try_compile "$LINENO"
6481then :
6482  xorg_cv_cc_flag_unused_command_line_argument=yes
6483else $as_nop
6484  xorg_cv_cc_flag_unused_command_line_argument=no
6485fi
6486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6487fi
6488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6489printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6490	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6491	CFLAGS="$xorg_testset_save_CFLAGS"
6492fi
6493
6494found="no"
6495
6496	if test $found = "no" ; then
6497		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6498			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6499		fi
6500
6501		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6502			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6503		fi
6504
6505		CFLAGS="$CFLAGS -Wshadow"
6506
6507		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6508printf %s "checking if $CC supports -Wshadow... " >&6; }
6509		cacheid=xorg_cv_cc_flag__Wshadow
6510		if eval test \${$cacheid+y}
6511then :
6512  printf %s "(cached) " >&6
6513else $as_nop
6514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6515/* end confdefs.h.  */
6516int i;
6517int
6518main (void)
6519{
6520
6521  ;
6522  return 0;
6523}
6524_ACEOF
6525if ac_fn_c_try_link "$LINENO"
6526then :
6527  eval $cacheid=yes
6528else $as_nop
6529  eval $cacheid=no
6530fi
6531rm -f core conftest.err conftest.$ac_objext conftest.beam \
6532    conftest$ac_exeext conftest.$ac_ext
6533fi
6534
6535
6536		CFLAGS="$xorg_testset_save_CFLAGS"
6537
6538		eval supported=\$$cacheid
6539		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6540printf "%s\n" "$supported" >&6; }
6541		if test "$supported" = "yes" ; then
6542			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6543			found="yes"
6544		fi
6545	fi
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561xorg_testset_save_CFLAGS="$CFLAGS"
6562
6563if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6564	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6565	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6566printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6567if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6568then :
6569  printf %s "(cached) " >&6
6570else $as_nop
6571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572/* end confdefs.h.  */
6573int i;
6574_ACEOF
6575if ac_fn_c_try_compile "$LINENO"
6576then :
6577  xorg_cv_cc_flag_unknown_warning_option=yes
6578else $as_nop
6579  xorg_cv_cc_flag_unknown_warning_option=no
6580fi
6581rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6582fi
6583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6584printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6585	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6586	CFLAGS="$xorg_testset_save_CFLAGS"
6587fi
6588
6589if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6590	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6591		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6592	fi
6593	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6594	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6595printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6596if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6597then :
6598  printf %s "(cached) " >&6
6599else $as_nop
6600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6601/* end confdefs.h.  */
6602int i;
6603_ACEOF
6604if ac_fn_c_try_compile "$LINENO"
6605then :
6606  xorg_cv_cc_flag_unused_command_line_argument=yes
6607else $as_nop
6608  xorg_cv_cc_flag_unused_command_line_argument=no
6609fi
6610rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6611fi
6612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6613printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6614	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6615	CFLAGS="$xorg_testset_save_CFLAGS"
6616fi
6617
6618found="no"
6619
6620	if test $found = "no" ; then
6621		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6622			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6623		fi
6624
6625		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6626			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6627		fi
6628
6629		CFLAGS="$CFLAGS -Wmissing-noreturn"
6630
6631		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6632printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6633		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6634		if eval test \${$cacheid+y}
6635then :
6636  printf %s "(cached) " >&6
6637else $as_nop
6638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6639/* end confdefs.h.  */
6640int i;
6641int
6642main (void)
6643{
6644
6645  ;
6646  return 0;
6647}
6648_ACEOF
6649if ac_fn_c_try_link "$LINENO"
6650then :
6651  eval $cacheid=yes
6652else $as_nop
6653  eval $cacheid=no
6654fi
6655rm -f core conftest.err conftest.$ac_objext conftest.beam \
6656    conftest$ac_exeext conftest.$ac_ext
6657fi
6658
6659
6660		CFLAGS="$xorg_testset_save_CFLAGS"
6661
6662		eval supported=\$$cacheid
6663		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6664printf "%s\n" "$supported" >&6; }
6665		if test "$supported" = "yes" ; then
6666			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6667			found="yes"
6668		fi
6669	fi
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685xorg_testset_save_CFLAGS="$CFLAGS"
6686
6687if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6688	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6689	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6690printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6691if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6692then :
6693  printf %s "(cached) " >&6
6694else $as_nop
6695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696/* end confdefs.h.  */
6697int i;
6698_ACEOF
6699if ac_fn_c_try_compile "$LINENO"
6700then :
6701  xorg_cv_cc_flag_unknown_warning_option=yes
6702else $as_nop
6703  xorg_cv_cc_flag_unknown_warning_option=no
6704fi
6705rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6706fi
6707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6708printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6709	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6710	CFLAGS="$xorg_testset_save_CFLAGS"
6711fi
6712
6713if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6714	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6715		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6716	fi
6717	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6718	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6719printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6720if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6721then :
6722  printf %s "(cached) " >&6
6723else $as_nop
6724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725/* end confdefs.h.  */
6726int i;
6727_ACEOF
6728if ac_fn_c_try_compile "$LINENO"
6729then :
6730  xorg_cv_cc_flag_unused_command_line_argument=yes
6731else $as_nop
6732  xorg_cv_cc_flag_unused_command_line_argument=no
6733fi
6734rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6735fi
6736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6737printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6738	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6739	CFLAGS="$xorg_testset_save_CFLAGS"
6740fi
6741
6742found="no"
6743
6744	if test $found = "no" ; then
6745		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6746			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6747		fi
6748
6749		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6750			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6751		fi
6752
6753		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6754
6755		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6756printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6757		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6758		if eval test \${$cacheid+y}
6759then :
6760  printf %s "(cached) " >&6
6761else $as_nop
6762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6763/* end confdefs.h.  */
6764int i;
6765int
6766main (void)
6767{
6768
6769  ;
6770  return 0;
6771}
6772_ACEOF
6773if ac_fn_c_try_link "$LINENO"
6774then :
6775  eval $cacheid=yes
6776else $as_nop
6777  eval $cacheid=no
6778fi
6779rm -f core conftest.err conftest.$ac_objext conftest.beam \
6780    conftest$ac_exeext conftest.$ac_ext
6781fi
6782
6783
6784		CFLAGS="$xorg_testset_save_CFLAGS"
6785
6786		eval supported=\$$cacheid
6787		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6788printf "%s\n" "$supported" >&6; }
6789		if test "$supported" = "yes" ; then
6790			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6791			found="yes"
6792		fi
6793	fi
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809xorg_testset_save_CFLAGS="$CFLAGS"
6810
6811if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6812	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6813	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6814printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6815if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6816then :
6817  printf %s "(cached) " >&6
6818else $as_nop
6819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6820/* end confdefs.h.  */
6821int i;
6822_ACEOF
6823if ac_fn_c_try_compile "$LINENO"
6824then :
6825  xorg_cv_cc_flag_unknown_warning_option=yes
6826else $as_nop
6827  xorg_cv_cc_flag_unknown_warning_option=no
6828fi
6829rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6830fi
6831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6832printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6833	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6834	CFLAGS="$xorg_testset_save_CFLAGS"
6835fi
6836
6837if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6838	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6839		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6840	fi
6841	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6842	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6843printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6844if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6845then :
6846  printf %s "(cached) " >&6
6847else $as_nop
6848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849/* end confdefs.h.  */
6850int i;
6851_ACEOF
6852if ac_fn_c_try_compile "$LINENO"
6853then :
6854  xorg_cv_cc_flag_unused_command_line_argument=yes
6855else $as_nop
6856  xorg_cv_cc_flag_unused_command_line_argument=no
6857fi
6858rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6859fi
6860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6861printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6862	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6863	CFLAGS="$xorg_testset_save_CFLAGS"
6864fi
6865
6866found="no"
6867
6868	if test $found = "no" ; then
6869		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6870			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6871		fi
6872
6873		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6874			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6875		fi
6876
6877		CFLAGS="$CFLAGS -Wredundant-decls"
6878
6879		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6880printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6881		cacheid=xorg_cv_cc_flag__Wredundant_decls
6882		if eval test \${$cacheid+y}
6883then :
6884  printf %s "(cached) " >&6
6885else $as_nop
6886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887/* end confdefs.h.  */
6888int i;
6889int
6890main (void)
6891{
6892
6893  ;
6894  return 0;
6895}
6896_ACEOF
6897if ac_fn_c_try_link "$LINENO"
6898then :
6899  eval $cacheid=yes
6900else $as_nop
6901  eval $cacheid=no
6902fi
6903rm -f core conftest.err conftest.$ac_objext conftest.beam \
6904    conftest$ac_exeext conftest.$ac_ext
6905fi
6906
6907
6908		CFLAGS="$xorg_testset_save_CFLAGS"
6909
6910		eval supported=\$$cacheid
6911		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6912printf "%s\n" "$supported" >&6; }
6913		if test "$supported" = "yes" ; then
6914			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6915			found="yes"
6916		fi
6917	fi
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933xorg_testset_save_CFLAGS="$CFLAGS"
6934
6935if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6936	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6937	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6938printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6939if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6940then :
6941  printf %s "(cached) " >&6
6942else $as_nop
6943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6944/* end confdefs.h.  */
6945int i;
6946_ACEOF
6947if ac_fn_c_try_compile "$LINENO"
6948then :
6949  xorg_cv_cc_flag_unknown_warning_option=yes
6950else $as_nop
6951  xorg_cv_cc_flag_unknown_warning_option=no
6952fi
6953rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6954fi
6955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6956printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6957	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6958	CFLAGS="$xorg_testset_save_CFLAGS"
6959fi
6960
6961if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6962	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6963		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6964	fi
6965	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6966	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6967printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6968if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6969then :
6970  printf %s "(cached) " >&6
6971else $as_nop
6972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973/* end confdefs.h.  */
6974int i;
6975_ACEOF
6976if ac_fn_c_try_compile "$LINENO"
6977then :
6978  xorg_cv_cc_flag_unused_command_line_argument=yes
6979else $as_nop
6980  xorg_cv_cc_flag_unused_command_line_argument=no
6981fi
6982rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6983fi
6984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6985printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6986	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6987	CFLAGS="$xorg_testset_save_CFLAGS"
6988fi
6989
6990found="no"
6991
6992	if test $found = "no" ; then
6993		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6994			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6995		fi
6996
6997		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6998			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6999		fi
7000
7001		CFLAGS="$CFLAGS -Wlogical-op"
7002
7003		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7004printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7005		cacheid=xorg_cv_cc_flag__Wlogical_op
7006		if eval test \${$cacheid+y}
7007then :
7008  printf %s "(cached) " >&6
7009else $as_nop
7010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7011/* end confdefs.h.  */
7012int i;
7013int
7014main (void)
7015{
7016
7017  ;
7018  return 0;
7019}
7020_ACEOF
7021if ac_fn_c_try_link "$LINENO"
7022then :
7023  eval $cacheid=yes
7024else $as_nop
7025  eval $cacheid=no
7026fi
7027rm -f core conftest.err conftest.$ac_objext conftest.beam \
7028    conftest$ac_exeext conftest.$ac_ext
7029fi
7030
7031
7032		CFLAGS="$xorg_testset_save_CFLAGS"
7033
7034		eval supported=\$$cacheid
7035		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7036printf "%s\n" "$supported" >&6; }
7037		if test "$supported" = "yes" ; then
7038			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7039			found="yes"
7040		fi
7041	fi
7042
7043
7044
7045# These are currently disabled because they are noisy.  They will be enabled
7046# in the future once the codebase is sufficiently modernized to silence
7047# them.  For now, I don't want them to drown out the other warnings.
7048# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7049# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7050# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7051
7052# Turn some warnings into errors, so we don't accidently get successful builds
7053# when there are problems that should be fixed.
7054
7055if test "x$SELECTIVE_WERROR" = "xyes" ; then
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069xorg_testset_save_CFLAGS="$CFLAGS"
7070
7071if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7072	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7073	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7074printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7075if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7076then :
7077  printf %s "(cached) " >&6
7078else $as_nop
7079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7080/* end confdefs.h.  */
7081int i;
7082_ACEOF
7083if ac_fn_c_try_compile "$LINENO"
7084then :
7085  xorg_cv_cc_flag_unknown_warning_option=yes
7086else $as_nop
7087  xorg_cv_cc_flag_unknown_warning_option=no
7088fi
7089rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7090fi
7091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7092printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7093	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7094	CFLAGS="$xorg_testset_save_CFLAGS"
7095fi
7096
7097if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7098	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7099		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7100	fi
7101	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7102	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7103printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7104if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7105then :
7106  printf %s "(cached) " >&6
7107else $as_nop
7108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7109/* end confdefs.h.  */
7110int i;
7111_ACEOF
7112if ac_fn_c_try_compile "$LINENO"
7113then :
7114  xorg_cv_cc_flag_unused_command_line_argument=yes
7115else $as_nop
7116  xorg_cv_cc_flag_unused_command_line_argument=no
7117fi
7118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7119fi
7120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7121printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7122	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7123	CFLAGS="$xorg_testset_save_CFLAGS"
7124fi
7125
7126found="no"
7127
7128	if test $found = "no" ; then
7129		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7130			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7131		fi
7132
7133		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7134			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7135		fi
7136
7137		CFLAGS="$CFLAGS -Werror=implicit"
7138
7139		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7140printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7141		cacheid=xorg_cv_cc_flag__Werror_implicit
7142		if eval test \${$cacheid+y}
7143then :
7144  printf %s "(cached) " >&6
7145else $as_nop
7146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147/* end confdefs.h.  */
7148int i;
7149int
7150main (void)
7151{
7152
7153  ;
7154  return 0;
7155}
7156_ACEOF
7157if ac_fn_c_try_link "$LINENO"
7158then :
7159  eval $cacheid=yes
7160else $as_nop
7161  eval $cacheid=no
7162fi
7163rm -f core conftest.err conftest.$ac_objext conftest.beam \
7164    conftest$ac_exeext conftest.$ac_ext
7165fi
7166
7167
7168		CFLAGS="$xorg_testset_save_CFLAGS"
7169
7170		eval supported=\$$cacheid
7171		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7172printf "%s\n" "$supported" >&6; }
7173		if test "$supported" = "yes" ; then
7174			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7175			found="yes"
7176		fi
7177	fi
7178
7179	if test $found = "no" ; then
7180		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7181			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7182		fi
7183
7184		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7185			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7186		fi
7187
7188		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7189
7190		{ 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
7191printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7192		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7193		if eval test \${$cacheid+y}
7194then :
7195  printf %s "(cached) " >&6
7196else $as_nop
7197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198/* end confdefs.h.  */
7199int i;
7200int
7201main (void)
7202{
7203
7204  ;
7205  return 0;
7206}
7207_ACEOF
7208if ac_fn_c_try_link "$LINENO"
7209then :
7210  eval $cacheid=yes
7211else $as_nop
7212  eval $cacheid=no
7213fi
7214rm -f core conftest.err conftest.$ac_objext conftest.beam \
7215    conftest$ac_exeext conftest.$ac_ext
7216fi
7217
7218
7219		CFLAGS="$xorg_testset_save_CFLAGS"
7220
7221		eval supported=\$$cacheid
7222		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7223printf "%s\n" "$supported" >&6; }
7224		if test "$supported" = "yes" ; then
7225			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7226			found="yes"
7227		fi
7228	fi
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244xorg_testset_save_CFLAGS="$CFLAGS"
7245
7246if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7247	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7248	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7249printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7250if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7251then :
7252  printf %s "(cached) " >&6
7253else $as_nop
7254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255/* end confdefs.h.  */
7256int i;
7257_ACEOF
7258if ac_fn_c_try_compile "$LINENO"
7259then :
7260  xorg_cv_cc_flag_unknown_warning_option=yes
7261else $as_nop
7262  xorg_cv_cc_flag_unknown_warning_option=no
7263fi
7264rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7265fi
7266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7267printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7268	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7269	CFLAGS="$xorg_testset_save_CFLAGS"
7270fi
7271
7272if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7273	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7274		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7275	fi
7276	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7277	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7278printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7279if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7280then :
7281  printf %s "(cached) " >&6
7282else $as_nop
7283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284/* end confdefs.h.  */
7285int i;
7286_ACEOF
7287if ac_fn_c_try_compile "$LINENO"
7288then :
7289  xorg_cv_cc_flag_unused_command_line_argument=yes
7290else $as_nop
7291  xorg_cv_cc_flag_unused_command_line_argument=no
7292fi
7293rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7294fi
7295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7296printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7297	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7298	CFLAGS="$xorg_testset_save_CFLAGS"
7299fi
7300
7301found="no"
7302
7303	if test $found = "no" ; then
7304		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7305			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7306		fi
7307
7308		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7309			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7310		fi
7311
7312		CFLAGS="$CFLAGS -Werror=nonnull"
7313
7314		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7315printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7316		cacheid=xorg_cv_cc_flag__Werror_nonnull
7317		if eval test \${$cacheid+y}
7318then :
7319  printf %s "(cached) " >&6
7320else $as_nop
7321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322/* end confdefs.h.  */
7323int i;
7324int
7325main (void)
7326{
7327
7328  ;
7329  return 0;
7330}
7331_ACEOF
7332if ac_fn_c_try_link "$LINENO"
7333then :
7334  eval $cacheid=yes
7335else $as_nop
7336  eval $cacheid=no
7337fi
7338rm -f core conftest.err conftest.$ac_objext conftest.beam \
7339    conftest$ac_exeext conftest.$ac_ext
7340fi
7341
7342
7343		CFLAGS="$xorg_testset_save_CFLAGS"
7344
7345		eval supported=\$$cacheid
7346		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7347printf "%s\n" "$supported" >&6; }
7348		if test "$supported" = "yes" ; then
7349			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7350			found="yes"
7351		fi
7352	fi
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368xorg_testset_save_CFLAGS="$CFLAGS"
7369
7370if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7371	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7372	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7373printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7374if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7375then :
7376  printf %s "(cached) " >&6
7377else $as_nop
7378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7379/* end confdefs.h.  */
7380int i;
7381_ACEOF
7382if ac_fn_c_try_compile "$LINENO"
7383then :
7384  xorg_cv_cc_flag_unknown_warning_option=yes
7385else $as_nop
7386  xorg_cv_cc_flag_unknown_warning_option=no
7387fi
7388rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7389fi
7390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7391printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7392	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7393	CFLAGS="$xorg_testset_save_CFLAGS"
7394fi
7395
7396if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7397	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7398		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7399	fi
7400	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7401	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7402printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7403if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7404then :
7405  printf %s "(cached) " >&6
7406else $as_nop
7407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408/* end confdefs.h.  */
7409int i;
7410_ACEOF
7411if ac_fn_c_try_compile "$LINENO"
7412then :
7413  xorg_cv_cc_flag_unused_command_line_argument=yes
7414else $as_nop
7415  xorg_cv_cc_flag_unused_command_line_argument=no
7416fi
7417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7418fi
7419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7420printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7421	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7422	CFLAGS="$xorg_testset_save_CFLAGS"
7423fi
7424
7425found="no"
7426
7427	if test $found = "no" ; then
7428		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7429			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7430		fi
7431
7432		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7433			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7434		fi
7435
7436		CFLAGS="$CFLAGS -Werror=init-self"
7437
7438		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7439printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7440		cacheid=xorg_cv_cc_flag__Werror_init_self
7441		if eval test \${$cacheid+y}
7442then :
7443  printf %s "(cached) " >&6
7444else $as_nop
7445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7446/* end confdefs.h.  */
7447int i;
7448int
7449main (void)
7450{
7451
7452  ;
7453  return 0;
7454}
7455_ACEOF
7456if ac_fn_c_try_link "$LINENO"
7457then :
7458  eval $cacheid=yes
7459else $as_nop
7460  eval $cacheid=no
7461fi
7462rm -f core conftest.err conftest.$ac_objext conftest.beam \
7463    conftest$ac_exeext conftest.$ac_ext
7464fi
7465
7466
7467		CFLAGS="$xorg_testset_save_CFLAGS"
7468
7469		eval supported=\$$cacheid
7470		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7471printf "%s\n" "$supported" >&6; }
7472		if test "$supported" = "yes" ; then
7473			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7474			found="yes"
7475		fi
7476	fi
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492xorg_testset_save_CFLAGS="$CFLAGS"
7493
7494if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7495	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7496	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7497printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7498if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7499then :
7500  printf %s "(cached) " >&6
7501else $as_nop
7502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503/* end confdefs.h.  */
7504int i;
7505_ACEOF
7506if ac_fn_c_try_compile "$LINENO"
7507then :
7508  xorg_cv_cc_flag_unknown_warning_option=yes
7509else $as_nop
7510  xorg_cv_cc_flag_unknown_warning_option=no
7511fi
7512rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7513fi
7514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7515printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7516	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7517	CFLAGS="$xorg_testset_save_CFLAGS"
7518fi
7519
7520if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7521	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7522		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7523	fi
7524	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7525	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7526printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7527if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7528then :
7529  printf %s "(cached) " >&6
7530else $as_nop
7531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532/* end confdefs.h.  */
7533int i;
7534_ACEOF
7535if ac_fn_c_try_compile "$LINENO"
7536then :
7537  xorg_cv_cc_flag_unused_command_line_argument=yes
7538else $as_nop
7539  xorg_cv_cc_flag_unused_command_line_argument=no
7540fi
7541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7542fi
7543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7544printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7545	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7546	CFLAGS="$xorg_testset_save_CFLAGS"
7547fi
7548
7549found="no"
7550
7551	if test $found = "no" ; then
7552		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7553			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7554		fi
7555
7556		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7557			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7558		fi
7559
7560		CFLAGS="$CFLAGS -Werror=main"
7561
7562		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7563printf %s "checking if $CC supports -Werror=main... " >&6; }
7564		cacheid=xorg_cv_cc_flag__Werror_main
7565		if eval test \${$cacheid+y}
7566then :
7567  printf %s "(cached) " >&6
7568else $as_nop
7569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570/* end confdefs.h.  */
7571int i;
7572int
7573main (void)
7574{
7575
7576  ;
7577  return 0;
7578}
7579_ACEOF
7580if ac_fn_c_try_link "$LINENO"
7581then :
7582  eval $cacheid=yes
7583else $as_nop
7584  eval $cacheid=no
7585fi
7586rm -f core conftest.err conftest.$ac_objext conftest.beam \
7587    conftest$ac_exeext conftest.$ac_ext
7588fi
7589
7590
7591		CFLAGS="$xorg_testset_save_CFLAGS"
7592
7593		eval supported=\$$cacheid
7594		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7595printf "%s\n" "$supported" >&6; }
7596		if test "$supported" = "yes" ; then
7597			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7598			found="yes"
7599		fi
7600	fi
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616xorg_testset_save_CFLAGS="$CFLAGS"
7617
7618if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7619	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7620	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7621printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7622if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7623then :
7624  printf %s "(cached) " >&6
7625else $as_nop
7626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627/* end confdefs.h.  */
7628int i;
7629_ACEOF
7630if ac_fn_c_try_compile "$LINENO"
7631then :
7632  xorg_cv_cc_flag_unknown_warning_option=yes
7633else $as_nop
7634  xorg_cv_cc_flag_unknown_warning_option=no
7635fi
7636rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7637fi
7638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7639printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7640	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7641	CFLAGS="$xorg_testset_save_CFLAGS"
7642fi
7643
7644if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7645	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7646		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7647	fi
7648	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7649	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7650printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7651if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7652then :
7653  printf %s "(cached) " >&6
7654else $as_nop
7655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656/* end confdefs.h.  */
7657int i;
7658_ACEOF
7659if ac_fn_c_try_compile "$LINENO"
7660then :
7661  xorg_cv_cc_flag_unused_command_line_argument=yes
7662else $as_nop
7663  xorg_cv_cc_flag_unused_command_line_argument=no
7664fi
7665rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7666fi
7667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7668printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7669	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7670	CFLAGS="$xorg_testset_save_CFLAGS"
7671fi
7672
7673found="no"
7674
7675	if test $found = "no" ; then
7676		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7677			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7678		fi
7679
7680		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7681			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7682		fi
7683
7684		CFLAGS="$CFLAGS -Werror=missing-braces"
7685
7686		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7687printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7688		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7689		if eval test \${$cacheid+y}
7690then :
7691  printf %s "(cached) " >&6
7692else $as_nop
7693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694/* end confdefs.h.  */
7695int i;
7696int
7697main (void)
7698{
7699
7700  ;
7701  return 0;
7702}
7703_ACEOF
7704if ac_fn_c_try_link "$LINENO"
7705then :
7706  eval $cacheid=yes
7707else $as_nop
7708  eval $cacheid=no
7709fi
7710rm -f core conftest.err conftest.$ac_objext conftest.beam \
7711    conftest$ac_exeext conftest.$ac_ext
7712fi
7713
7714
7715		CFLAGS="$xorg_testset_save_CFLAGS"
7716
7717		eval supported=\$$cacheid
7718		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7719printf "%s\n" "$supported" >&6; }
7720		if test "$supported" = "yes" ; then
7721			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7722			found="yes"
7723		fi
7724	fi
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740xorg_testset_save_CFLAGS="$CFLAGS"
7741
7742if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7743	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7744	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7745printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7746if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7747then :
7748  printf %s "(cached) " >&6
7749else $as_nop
7750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751/* end confdefs.h.  */
7752int i;
7753_ACEOF
7754if ac_fn_c_try_compile "$LINENO"
7755then :
7756  xorg_cv_cc_flag_unknown_warning_option=yes
7757else $as_nop
7758  xorg_cv_cc_flag_unknown_warning_option=no
7759fi
7760rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7761fi
7762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7763printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7764	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7765	CFLAGS="$xorg_testset_save_CFLAGS"
7766fi
7767
7768if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7769	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7770		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7771	fi
7772	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7773	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7774printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7775if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7776then :
7777  printf %s "(cached) " >&6
7778else $as_nop
7779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780/* end confdefs.h.  */
7781int i;
7782_ACEOF
7783if ac_fn_c_try_compile "$LINENO"
7784then :
7785  xorg_cv_cc_flag_unused_command_line_argument=yes
7786else $as_nop
7787  xorg_cv_cc_flag_unused_command_line_argument=no
7788fi
7789rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7790fi
7791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7792printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7793	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7794	CFLAGS="$xorg_testset_save_CFLAGS"
7795fi
7796
7797found="no"
7798
7799	if test $found = "no" ; then
7800		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7801			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7802		fi
7803
7804		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7805			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7806		fi
7807
7808		CFLAGS="$CFLAGS -Werror=sequence-point"
7809
7810		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7811printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7812		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7813		if eval test \${$cacheid+y}
7814then :
7815  printf %s "(cached) " >&6
7816else $as_nop
7817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818/* end confdefs.h.  */
7819int i;
7820int
7821main (void)
7822{
7823
7824  ;
7825  return 0;
7826}
7827_ACEOF
7828if ac_fn_c_try_link "$LINENO"
7829then :
7830  eval $cacheid=yes
7831else $as_nop
7832  eval $cacheid=no
7833fi
7834rm -f core conftest.err conftest.$ac_objext conftest.beam \
7835    conftest$ac_exeext conftest.$ac_ext
7836fi
7837
7838
7839		CFLAGS="$xorg_testset_save_CFLAGS"
7840
7841		eval supported=\$$cacheid
7842		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7843printf "%s\n" "$supported" >&6; }
7844		if test "$supported" = "yes" ; then
7845			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7846			found="yes"
7847		fi
7848	fi
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864xorg_testset_save_CFLAGS="$CFLAGS"
7865
7866if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7867	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7868	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7869printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7870if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7871then :
7872  printf %s "(cached) " >&6
7873else $as_nop
7874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875/* end confdefs.h.  */
7876int i;
7877_ACEOF
7878if ac_fn_c_try_compile "$LINENO"
7879then :
7880  xorg_cv_cc_flag_unknown_warning_option=yes
7881else $as_nop
7882  xorg_cv_cc_flag_unknown_warning_option=no
7883fi
7884rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7885fi
7886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7887printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7888	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7889	CFLAGS="$xorg_testset_save_CFLAGS"
7890fi
7891
7892if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7893	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7894		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7895	fi
7896	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7897	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7898printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7899if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7900then :
7901  printf %s "(cached) " >&6
7902else $as_nop
7903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904/* end confdefs.h.  */
7905int i;
7906_ACEOF
7907if ac_fn_c_try_compile "$LINENO"
7908then :
7909  xorg_cv_cc_flag_unused_command_line_argument=yes
7910else $as_nop
7911  xorg_cv_cc_flag_unused_command_line_argument=no
7912fi
7913rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7914fi
7915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7916printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7917	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7918	CFLAGS="$xorg_testset_save_CFLAGS"
7919fi
7920
7921found="no"
7922
7923	if test $found = "no" ; then
7924		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7925			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7926		fi
7927
7928		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7929			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7930		fi
7931
7932		CFLAGS="$CFLAGS -Werror=return-type"
7933
7934		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7935printf %s "checking if $CC supports -Werror=return-type... " >&6; }
7936		cacheid=xorg_cv_cc_flag__Werror_return_type
7937		if eval test \${$cacheid+y}
7938then :
7939  printf %s "(cached) " >&6
7940else $as_nop
7941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942/* end confdefs.h.  */
7943int i;
7944int
7945main (void)
7946{
7947
7948  ;
7949  return 0;
7950}
7951_ACEOF
7952if ac_fn_c_try_link "$LINENO"
7953then :
7954  eval $cacheid=yes
7955else $as_nop
7956  eval $cacheid=no
7957fi
7958rm -f core conftest.err conftest.$ac_objext conftest.beam \
7959    conftest$ac_exeext conftest.$ac_ext
7960fi
7961
7962
7963		CFLAGS="$xorg_testset_save_CFLAGS"
7964
7965		eval supported=\$$cacheid
7966		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7967printf "%s\n" "$supported" >&6; }
7968		if test "$supported" = "yes" ; then
7969			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7970			found="yes"
7971		fi
7972	fi
7973
7974	if test $found = "no" ; then
7975		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7976			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7977		fi
7978
7979		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7980			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7981		fi
7982
7983		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7984
7985		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7986printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7987		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7988		if eval test \${$cacheid+y}
7989then :
7990  printf %s "(cached) " >&6
7991else $as_nop
7992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993/* end confdefs.h.  */
7994int i;
7995int
7996main (void)
7997{
7998
7999  ;
8000  return 0;
8001}
8002_ACEOF
8003if ac_fn_c_try_link "$LINENO"
8004then :
8005  eval $cacheid=yes
8006else $as_nop
8007  eval $cacheid=no
8008fi
8009rm -f core conftest.err conftest.$ac_objext conftest.beam \
8010    conftest$ac_exeext conftest.$ac_ext
8011fi
8012
8013
8014		CFLAGS="$xorg_testset_save_CFLAGS"
8015
8016		eval supported=\$$cacheid
8017		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8018printf "%s\n" "$supported" >&6; }
8019		if test "$supported" = "yes" ; then
8020			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8021			found="yes"
8022		fi
8023	fi
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039xorg_testset_save_CFLAGS="$CFLAGS"
8040
8041if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8042	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8043	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8044printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8045if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8046then :
8047  printf %s "(cached) " >&6
8048else $as_nop
8049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050/* end confdefs.h.  */
8051int i;
8052_ACEOF
8053if ac_fn_c_try_compile "$LINENO"
8054then :
8055  xorg_cv_cc_flag_unknown_warning_option=yes
8056else $as_nop
8057  xorg_cv_cc_flag_unknown_warning_option=no
8058fi
8059rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8060fi
8061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8062printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8063	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8064	CFLAGS="$xorg_testset_save_CFLAGS"
8065fi
8066
8067if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8068	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8069		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8070	fi
8071	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8072	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8073printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8074if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8075then :
8076  printf %s "(cached) " >&6
8077else $as_nop
8078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8079/* end confdefs.h.  */
8080int i;
8081_ACEOF
8082if ac_fn_c_try_compile "$LINENO"
8083then :
8084  xorg_cv_cc_flag_unused_command_line_argument=yes
8085else $as_nop
8086  xorg_cv_cc_flag_unused_command_line_argument=no
8087fi
8088rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8089fi
8090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8091printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8092	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8093	CFLAGS="$xorg_testset_save_CFLAGS"
8094fi
8095
8096found="no"
8097
8098	if test $found = "no" ; then
8099		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8100			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8101		fi
8102
8103		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8104			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8105		fi
8106
8107		CFLAGS="$CFLAGS -Werror=trigraphs"
8108
8109		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8110printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8111		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8112		if eval test \${$cacheid+y}
8113then :
8114  printf %s "(cached) " >&6
8115else $as_nop
8116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117/* end confdefs.h.  */
8118int i;
8119int
8120main (void)
8121{
8122
8123  ;
8124  return 0;
8125}
8126_ACEOF
8127if ac_fn_c_try_link "$LINENO"
8128then :
8129  eval $cacheid=yes
8130else $as_nop
8131  eval $cacheid=no
8132fi
8133rm -f core conftest.err conftest.$ac_objext conftest.beam \
8134    conftest$ac_exeext conftest.$ac_ext
8135fi
8136
8137
8138		CFLAGS="$xorg_testset_save_CFLAGS"
8139
8140		eval supported=\$$cacheid
8141		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8142printf "%s\n" "$supported" >&6; }
8143		if test "$supported" = "yes" ; then
8144			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8145			found="yes"
8146		fi
8147	fi
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163xorg_testset_save_CFLAGS="$CFLAGS"
8164
8165if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8166	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8167	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8168printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8169if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8170then :
8171  printf %s "(cached) " >&6
8172else $as_nop
8173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8174/* end confdefs.h.  */
8175int i;
8176_ACEOF
8177if ac_fn_c_try_compile "$LINENO"
8178then :
8179  xorg_cv_cc_flag_unknown_warning_option=yes
8180else $as_nop
8181  xorg_cv_cc_flag_unknown_warning_option=no
8182fi
8183rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8184fi
8185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8186printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8187	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8188	CFLAGS="$xorg_testset_save_CFLAGS"
8189fi
8190
8191if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8192	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8193		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8194	fi
8195	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8196	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8197printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8198if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8199then :
8200  printf %s "(cached) " >&6
8201else $as_nop
8202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8203/* end confdefs.h.  */
8204int i;
8205_ACEOF
8206if ac_fn_c_try_compile "$LINENO"
8207then :
8208  xorg_cv_cc_flag_unused_command_line_argument=yes
8209else $as_nop
8210  xorg_cv_cc_flag_unused_command_line_argument=no
8211fi
8212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8213fi
8214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8215printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8216	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8217	CFLAGS="$xorg_testset_save_CFLAGS"
8218fi
8219
8220found="no"
8221
8222	if test $found = "no" ; then
8223		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8224			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8225		fi
8226
8227		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8228			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8229		fi
8230
8231		CFLAGS="$CFLAGS -Werror=array-bounds"
8232
8233		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8234printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8235		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8236		if eval test \${$cacheid+y}
8237then :
8238  printf %s "(cached) " >&6
8239else $as_nop
8240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241/* end confdefs.h.  */
8242int i;
8243int
8244main (void)
8245{
8246
8247  ;
8248  return 0;
8249}
8250_ACEOF
8251if ac_fn_c_try_link "$LINENO"
8252then :
8253  eval $cacheid=yes
8254else $as_nop
8255  eval $cacheid=no
8256fi
8257rm -f core conftest.err conftest.$ac_objext conftest.beam \
8258    conftest$ac_exeext conftest.$ac_ext
8259fi
8260
8261
8262		CFLAGS="$xorg_testset_save_CFLAGS"
8263
8264		eval supported=\$$cacheid
8265		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8266printf "%s\n" "$supported" >&6; }
8267		if test "$supported" = "yes" ; then
8268			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8269			found="yes"
8270		fi
8271	fi
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287xorg_testset_save_CFLAGS="$CFLAGS"
8288
8289if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8290	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8291	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8292printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8293if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8294then :
8295  printf %s "(cached) " >&6
8296else $as_nop
8297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8298/* end confdefs.h.  */
8299int i;
8300_ACEOF
8301if ac_fn_c_try_compile "$LINENO"
8302then :
8303  xorg_cv_cc_flag_unknown_warning_option=yes
8304else $as_nop
8305  xorg_cv_cc_flag_unknown_warning_option=no
8306fi
8307rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8308fi
8309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8310printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8311	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8312	CFLAGS="$xorg_testset_save_CFLAGS"
8313fi
8314
8315if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8316	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8317		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8318	fi
8319	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8320	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8321printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8322if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8323then :
8324  printf %s "(cached) " >&6
8325else $as_nop
8326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327/* end confdefs.h.  */
8328int i;
8329_ACEOF
8330if ac_fn_c_try_compile "$LINENO"
8331then :
8332  xorg_cv_cc_flag_unused_command_line_argument=yes
8333else $as_nop
8334  xorg_cv_cc_flag_unused_command_line_argument=no
8335fi
8336rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8337fi
8338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8339printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8340	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8341	CFLAGS="$xorg_testset_save_CFLAGS"
8342fi
8343
8344found="no"
8345
8346	if test $found = "no" ; then
8347		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8348			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8349		fi
8350
8351		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8352			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8353		fi
8354
8355		CFLAGS="$CFLAGS -Werror=write-strings"
8356
8357		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8358printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8359		cacheid=xorg_cv_cc_flag__Werror_write_strings
8360		if eval test \${$cacheid+y}
8361then :
8362  printf %s "(cached) " >&6
8363else $as_nop
8364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365/* end confdefs.h.  */
8366int i;
8367int
8368main (void)
8369{
8370
8371  ;
8372  return 0;
8373}
8374_ACEOF
8375if ac_fn_c_try_link "$LINENO"
8376then :
8377  eval $cacheid=yes
8378else $as_nop
8379  eval $cacheid=no
8380fi
8381rm -f core conftest.err conftest.$ac_objext conftest.beam \
8382    conftest$ac_exeext conftest.$ac_ext
8383fi
8384
8385
8386		CFLAGS="$xorg_testset_save_CFLAGS"
8387
8388		eval supported=\$$cacheid
8389		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8390printf "%s\n" "$supported" >&6; }
8391		if test "$supported" = "yes" ; then
8392			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8393			found="yes"
8394		fi
8395	fi
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411xorg_testset_save_CFLAGS="$CFLAGS"
8412
8413if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8414	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8415	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8416printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8417if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8418then :
8419  printf %s "(cached) " >&6
8420else $as_nop
8421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8422/* end confdefs.h.  */
8423int i;
8424_ACEOF
8425if ac_fn_c_try_compile "$LINENO"
8426then :
8427  xorg_cv_cc_flag_unknown_warning_option=yes
8428else $as_nop
8429  xorg_cv_cc_flag_unknown_warning_option=no
8430fi
8431rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8432fi
8433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8434printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8435	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8436	CFLAGS="$xorg_testset_save_CFLAGS"
8437fi
8438
8439if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8440	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8441		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8442	fi
8443	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8444	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8445printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8446if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8447then :
8448  printf %s "(cached) " >&6
8449else $as_nop
8450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8451/* end confdefs.h.  */
8452int i;
8453_ACEOF
8454if ac_fn_c_try_compile "$LINENO"
8455then :
8456  xorg_cv_cc_flag_unused_command_line_argument=yes
8457else $as_nop
8458  xorg_cv_cc_flag_unused_command_line_argument=no
8459fi
8460rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8461fi
8462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8463printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8464	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8465	CFLAGS="$xorg_testset_save_CFLAGS"
8466fi
8467
8468found="no"
8469
8470	if test $found = "no" ; then
8471		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8472			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8473		fi
8474
8475		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8476			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8477		fi
8478
8479		CFLAGS="$CFLAGS -Werror=address"
8480
8481		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8482printf %s "checking if $CC supports -Werror=address... " >&6; }
8483		cacheid=xorg_cv_cc_flag__Werror_address
8484		if eval test \${$cacheid+y}
8485then :
8486  printf %s "(cached) " >&6
8487else $as_nop
8488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489/* end confdefs.h.  */
8490int i;
8491int
8492main (void)
8493{
8494
8495  ;
8496  return 0;
8497}
8498_ACEOF
8499if ac_fn_c_try_link "$LINENO"
8500then :
8501  eval $cacheid=yes
8502else $as_nop
8503  eval $cacheid=no
8504fi
8505rm -f core conftest.err conftest.$ac_objext conftest.beam \
8506    conftest$ac_exeext conftest.$ac_ext
8507fi
8508
8509
8510		CFLAGS="$xorg_testset_save_CFLAGS"
8511
8512		eval supported=\$$cacheid
8513		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8514printf "%s\n" "$supported" >&6; }
8515		if test "$supported" = "yes" ; then
8516			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8517			found="yes"
8518		fi
8519	fi
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535xorg_testset_save_CFLAGS="$CFLAGS"
8536
8537if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8538	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8539	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8540printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8541if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8542then :
8543  printf %s "(cached) " >&6
8544else $as_nop
8545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8546/* end confdefs.h.  */
8547int i;
8548_ACEOF
8549if ac_fn_c_try_compile "$LINENO"
8550then :
8551  xorg_cv_cc_flag_unknown_warning_option=yes
8552else $as_nop
8553  xorg_cv_cc_flag_unknown_warning_option=no
8554fi
8555rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8556fi
8557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8558printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8559	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8560	CFLAGS="$xorg_testset_save_CFLAGS"
8561fi
8562
8563if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8564	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8565		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8566	fi
8567	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8568	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8569printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8570if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8571then :
8572  printf %s "(cached) " >&6
8573else $as_nop
8574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575/* end confdefs.h.  */
8576int i;
8577_ACEOF
8578if ac_fn_c_try_compile "$LINENO"
8579then :
8580  xorg_cv_cc_flag_unused_command_line_argument=yes
8581else $as_nop
8582  xorg_cv_cc_flag_unused_command_line_argument=no
8583fi
8584rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8585fi
8586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8587printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8588	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8589	CFLAGS="$xorg_testset_save_CFLAGS"
8590fi
8591
8592found="no"
8593
8594	if test $found = "no" ; then
8595		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8596			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8597		fi
8598
8599		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8600			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8601		fi
8602
8603		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8604
8605		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8606printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8607		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8608		if eval test \${$cacheid+y}
8609then :
8610  printf %s "(cached) " >&6
8611else $as_nop
8612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613/* end confdefs.h.  */
8614int i;
8615int
8616main (void)
8617{
8618
8619  ;
8620  return 0;
8621}
8622_ACEOF
8623if ac_fn_c_try_link "$LINENO"
8624then :
8625  eval $cacheid=yes
8626else $as_nop
8627  eval $cacheid=no
8628fi
8629rm -f core conftest.err conftest.$ac_objext conftest.beam \
8630    conftest$ac_exeext conftest.$ac_ext
8631fi
8632
8633
8634		CFLAGS="$xorg_testset_save_CFLAGS"
8635
8636		eval supported=\$$cacheid
8637		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8638printf "%s\n" "$supported" >&6; }
8639		if test "$supported" = "yes" ; then
8640			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8641			found="yes"
8642		fi
8643	fi
8644
8645	if test $found = "no" ; then
8646		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8647			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8648		fi
8649
8650		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8651			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8652		fi
8653
8654		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8655
8656		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8657printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8658		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8659		if eval test \${$cacheid+y}
8660then :
8661  printf %s "(cached) " >&6
8662else $as_nop
8663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8664/* end confdefs.h.  */
8665int i;
8666int
8667main (void)
8668{
8669
8670  ;
8671  return 0;
8672}
8673_ACEOF
8674if ac_fn_c_try_link "$LINENO"
8675then :
8676  eval $cacheid=yes
8677else $as_nop
8678  eval $cacheid=no
8679fi
8680rm -f core conftest.err conftest.$ac_objext conftest.beam \
8681    conftest$ac_exeext conftest.$ac_ext
8682fi
8683
8684
8685		CFLAGS="$xorg_testset_save_CFLAGS"
8686
8687		eval supported=\$$cacheid
8688		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8689printf "%s\n" "$supported" >&6; }
8690		if test "$supported" = "yes" ; then
8691			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8692			found="yes"
8693		fi
8694	fi
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710xorg_testset_save_CFLAGS="$CFLAGS"
8711
8712if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8713	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8714	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8715printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8716if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8717then :
8718  printf %s "(cached) " >&6
8719else $as_nop
8720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8721/* end confdefs.h.  */
8722int i;
8723_ACEOF
8724if ac_fn_c_try_compile "$LINENO"
8725then :
8726  xorg_cv_cc_flag_unknown_warning_option=yes
8727else $as_nop
8728  xorg_cv_cc_flag_unknown_warning_option=no
8729fi
8730rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8731fi
8732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8733printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8734	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8735	CFLAGS="$xorg_testset_save_CFLAGS"
8736fi
8737
8738if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8739	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8740		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8741	fi
8742	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8743	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8744printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8745if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8746then :
8747  printf %s "(cached) " >&6
8748else $as_nop
8749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8750/* end confdefs.h.  */
8751int i;
8752_ACEOF
8753if ac_fn_c_try_compile "$LINENO"
8754then :
8755  xorg_cv_cc_flag_unused_command_line_argument=yes
8756else $as_nop
8757  xorg_cv_cc_flag_unused_command_line_argument=no
8758fi
8759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8760fi
8761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8762printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8763	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8764	CFLAGS="$xorg_testset_save_CFLAGS"
8765fi
8766
8767found="no"
8768
8769	if test $found = "no" ; then
8770		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8771			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8772		fi
8773
8774		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8775			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8776		fi
8777
8778		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8779
8780		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8781printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8782		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8783		if eval test \${$cacheid+y}
8784then :
8785  printf %s "(cached) " >&6
8786else $as_nop
8787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788/* end confdefs.h.  */
8789int i;
8790int
8791main (void)
8792{
8793
8794  ;
8795  return 0;
8796}
8797_ACEOF
8798if ac_fn_c_try_link "$LINENO"
8799then :
8800  eval $cacheid=yes
8801else $as_nop
8802  eval $cacheid=no
8803fi
8804rm -f core conftest.err conftest.$ac_objext conftest.beam \
8805    conftest$ac_exeext conftest.$ac_ext
8806fi
8807
8808
8809		CFLAGS="$xorg_testset_save_CFLAGS"
8810
8811		eval supported=\$$cacheid
8812		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8813printf "%s\n" "$supported" >&6; }
8814		if test "$supported" = "yes" ; then
8815			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8816			found="yes"
8817		fi
8818	fi
8819
8820 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8821else
8822{ 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
8823printf "%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;}
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837xorg_testset_save_CFLAGS="$CFLAGS"
8838
8839if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8840	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8841	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8842printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8843if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8844then :
8845  printf %s "(cached) " >&6
8846else $as_nop
8847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8848/* end confdefs.h.  */
8849int i;
8850_ACEOF
8851if ac_fn_c_try_compile "$LINENO"
8852then :
8853  xorg_cv_cc_flag_unknown_warning_option=yes
8854else $as_nop
8855  xorg_cv_cc_flag_unknown_warning_option=no
8856fi
8857rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8858fi
8859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8860printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8861	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8862	CFLAGS="$xorg_testset_save_CFLAGS"
8863fi
8864
8865if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8866	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8867		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8868	fi
8869	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8870	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8871printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8872if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8873then :
8874  printf %s "(cached) " >&6
8875else $as_nop
8876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8877/* end confdefs.h.  */
8878int i;
8879_ACEOF
8880if ac_fn_c_try_compile "$LINENO"
8881then :
8882  xorg_cv_cc_flag_unused_command_line_argument=yes
8883else $as_nop
8884  xorg_cv_cc_flag_unused_command_line_argument=no
8885fi
8886rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8887fi
8888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8889printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8890	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8891	CFLAGS="$xorg_testset_save_CFLAGS"
8892fi
8893
8894found="no"
8895
8896	if test $found = "no" ; then
8897		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8898			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8899		fi
8900
8901		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8902			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8903		fi
8904
8905		CFLAGS="$CFLAGS -Wimplicit"
8906
8907		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8908printf %s "checking if $CC supports -Wimplicit... " >&6; }
8909		cacheid=xorg_cv_cc_flag__Wimplicit
8910		if eval test \${$cacheid+y}
8911then :
8912  printf %s "(cached) " >&6
8913else $as_nop
8914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8915/* end confdefs.h.  */
8916int i;
8917int
8918main (void)
8919{
8920
8921  ;
8922  return 0;
8923}
8924_ACEOF
8925if ac_fn_c_try_link "$LINENO"
8926then :
8927  eval $cacheid=yes
8928else $as_nop
8929  eval $cacheid=no
8930fi
8931rm -f core conftest.err conftest.$ac_objext conftest.beam \
8932    conftest$ac_exeext conftest.$ac_ext
8933fi
8934
8935
8936		CFLAGS="$xorg_testset_save_CFLAGS"
8937
8938		eval supported=\$$cacheid
8939		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8940printf "%s\n" "$supported" >&6; }
8941		if test "$supported" = "yes" ; then
8942			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8943			found="yes"
8944		fi
8945	fi
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961xorg_testset_save_CFLAGS="$CFLAGS"
8962
8963if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8964	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8965	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8966printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8967if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8968then :
8969  printf %s "(cached) " >&6
8970else $as_nop
8971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8972/* end confdefs.h.  */
8973int i;
8974_ACEOF
8975if ac_fn_c_try_compile "$LINENO"
8976then :
8977  xorg_cv_cc_flag_unknown_warning_option=yes
8978else $as_nop
8979  xorg_cv_cc_flag_unknown_warning_option=no
8980fi
8981rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8982fi
8983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8984printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8985	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8986	CFLAGS="$xorg_testset_save_CFLAGS"
8987fi
8988
8989if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8990	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8991		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8992	fi
8993	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8994	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8995printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8996if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8997then :
8998  printf %s "(cached) " >&6
8999else $as_nop
9000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001/* end confdefs.h.  */
9002int i;
9003_ACEOF
9004if ac_fn_c_try_compile "$LINENO"
9005then :
9006  xorg_cv_cc_flag_unused_command_line_argument=yes
9007else $as_nop
9008  xorg_cv_cc_flag_unused_command_line_argument=no
9009fi
9010rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9011fi
9012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9013printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9014	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9015	CFLAGS="$xorg_testset_save_CFLAGS"
9016fi
9017
9018found="no"
9019
9020	if test $found = "no" ; then
9021		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9022			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9023		fi
9024
9025		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9026			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9027		fi
9028
9029		CFLAGS="$CFLAGS -Wnonnull"
9030
9031		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9032printf %s "checking if $CC supports -Wnonnull... " >&6; }
9033		cacheid=xorg_cv_cc_flag__Wnonnull
9034		if eval test \${$cacheid+y}
9035then :
9036  printf %s "(cached) " >&6
9037else $as_nop
9038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039/* end confdefs.h.  */
9040int i;
9041int
9042main (void)
9043{
9044
9045  ;
9046  return 0;
9047}
9048_ACEOF
9049if ac_fn_c_try_link "$LINENO"
9050then :
9051  eval $cacheid=yes
9052else $as_nop
9053  eval $cacheid=no
9054fi
9055rm -f core conftest.err conftest.$ac_objext conftest.beam \
9056    conftest$ac_exeext conftest.$ac_ext
9057fi
9058
9059
9060		CFLAGS="$xorg_testset_save_CFLAGS"
9061
9062		eval supported=\$$cacheid
9063		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9064printf "%s\n" "$supported" >&6; }
9065		if test "$supported" = "yes" ; then
9066			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9067			found="yes"
9068		fi
9069	fi
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085xorg_testset_save_CFLAGS="$CFLAGS"
9086
9087if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9088	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9089	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9090printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9091if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9092then :
9093  printf %s "(cached) " >&6
9094else $as_nop
9095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9096/* end confdefs.h.  */
9097int i;
9098_ACEOF
9099if ac_fn_c_try_compile "$LINENO"
9100then :
9101  xorg_cv_cc_flag_unknown_warning_option=yes
9102else $as_nop
9103  xorg_cv_cc_flag_unknown_warning_option=no
9104fi
9105rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9106fi
9107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9108printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9109	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9110	CFLAGS="$xorg_testset_save_CFLAGS"
9111fi
9112
9113if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9114	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9115		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9116	fi
9117	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9118	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9119printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9120if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9121then :
9122  printf %s "(cached) " >&6
9123else $as_nop
9124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125/* end confdefs.h.  */
9126int i;
9127_ACEOF
9128if ac_fn_c_try_compile "$LINENO"
9129then :
9130  xorg_cv_cc_flag_unused_command_line_argument=yes
9131else $as_nop
9132  xorg_cv_cc_flag_unused_command_line_argument=no
9133fi
9134rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9135fi
9136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9137printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9138	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9139	CFLAGS="$xorg_testset_save_CFLAGS"
9140fi
9141
9142found="no"
9143
9144	if test $found = "no" ; then
9145		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9146			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9147		fi
9148
9149		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9150			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9151		fi
9152
9153		CFLAGS="$CFLAGS -Winit-self"
9154
9155		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9156printf %s "checking if $CC supports -Winit-self... " >&6; }
9157		cacheid=xorg_cv_cc_flag__Winit_self
9158		if eval test \${$cacheid+y}
9159then :
9160  printf %s "(cached) " >&6
9161else $as_nop
9162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163/* end confdefs.h.  */
9164int i;
9165int
9166main (void)
9167{
9168
9169  ;
9170  return 0;
9171}
9172_ACEOF
9173if ac_fn_c_try_link "$LINENO"
9174then :
9175  eval $cacheid=yes
9176else $as_nop
9177  eval $cacheid=no
9178fi
9179rm -f core conftest.err conftest.$ac_objext conftest.beam \
9180    conftest$ac_exeext conftest.$ac_ext
9181fi
9182
9183
9184		CFLAGS="$xorg_testset_save_CFLAGS"
9185
9186		eval supported=\$$cacheid
9187		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9188printf "%s\n" "$supported" >&6; }
9189		if test "$supported" = "yes" ; then
9190			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9191			found="yes"
9192		fi
9193	fi
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209xorg_testset_save_CFLAGS="$CFLAGS"
9210
9211if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9212	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9213	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9214printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9215if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9216then :
9217  printf %s "(cached) " >&6
9218else $as_nop
9219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9220/* end confdefs.h.  */
9221int i;
9222_ACEOF
9223if ac_fn_c_try_compile "$LINENO"
9224then :
9225  xorg_cv_cc_flag_unknown_warning_option=yes
9226else $as_nop
9227  xorg_cv_cc_flag_unknown_warning_option=no
9228fi
9229rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9230fi
9231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9232printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9233	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9234	CFLAGS="$xorg_testset_save_CFLAGS"
9235fi
9236
9237if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9238	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9239		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9240	fi
9241	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9242	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9243printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9244if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9245then :
9246  printf %s "(cached) " >&6
9247else $as_nop
9248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249/* end confdefs.h.  */
9250int i;
9251_ACEOF
9252if ac_fn_c_try_compile "$LINENO"
9253then :
9254  xorg_cv_cc_flag_unused_command_line_argument=yes
9255else $as_nop
9256  xorg_cv_cc_flag_unused_command_line_argument=no
9257fi
9258rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9259fi
9260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9261printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9262	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9263	CFLAGS="$xorg_testset_save_CFLAGS"
9264fi
9265
9266found="no"
9267
9268	if test $found = "no" ; then
9269		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9270			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9271		fi
9272
9273		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9274			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9275		fi
9276
9277		CFLAGS="$CFLAGS -Wmain"
9278
9279		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9280printf %s "checking if $CC supports -Wmain... " >&6; }
9281		cacheid=xorg_cv_cc_flag__Wmain
9282		if eval test \${$cacheid+y}
9283then :
9284  printf %s "(cached) " >&6
9285else $as_nop
9286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9287/* end confdefs.h.  */
9288int i;
9289int
9290main (void)
9291{
9292
9293  ;
9294  return 0;
9295}
9296_ACEOF
9297if ac_fn_c_try_link "$LINENO"
9298then :
9299  eval $cacheid=yes
9300else $as_nop
9301  eval $cacheid=no
9302fi
9303rm -f core conftest.err conftest.$ac_objext conftest.beam \
9304    conftest$ac_exeext conftest.$ac_ext
9305fi
9306
9307
9308		CFLAGS="$xorg_testset_save_CFLAGS"
9309
9310		eval supported=\$$cacheid
9311		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9312printf "%s\n" "$supported" >&6; }
9313		if test "$supported" = "yes" ; then
9314			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9315			found="yes"
9316		fi
9317	fi
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333xorg_testset_save_CFLAGS="$CFLAGS"
9334
9335if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9336	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9337	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9338printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9339if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9340then :
9341  printf %s "(cached) " >&6
9342else $as_nop
9343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9344/* end confdefs.h.  */
9345int i;
9346_ACEOF
9347if ac_fn_c_try_compile "$LINENO"
9348then :
9349  xorg_cv_cc_flag_unknown_warning_option=yes
9350else $as_nop
9351  xorg_cv_cc_flag_unknown_warning_option=no
9352fi
9353rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9354fi
9355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9356printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9357	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9358	CFLAGS="$xorg_testset_save_CFLAGS"
9359fi
9360
9361if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9362	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9363		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9364	fi
9365	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9366	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9367printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9368if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9369then :
9370  printf %s "(cached) " >&6
9371else $as_nop
9372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373/* end confdefs.h.  */
9374int i;
9375_ACEOF
9376if ac_fn_c_try_compile "$LINENO"
9377then :
9378  xorg_cv_cc_flag_unused_command_line_argument=yes
9379else $as_nop
9380  xorg_cv_cc_flag_unused_command_line_argument=no
9381fi
9382rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9383fi
9384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9385printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9386	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9387	CFLAGS="$xorg_testset_save_CFLAGS"
9388fi
9389
9390found="no"
9391
9392	if test $found = "no" ; then
9393		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9394			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9395		fi
9396
9397		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9398			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9399		fi
9400
9401		CFLAGS="$CFLAGS -Wmissing-braces"
9402
9403		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9404printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9405		cacheid=xorg_cv_cc_flag__Wmissing_braces
9406		if eval test \${$cacheid+y}
9407then :
9408  printf %s "(cached) " >&6
9409else $as_nop
9410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9411/* end confdefs.h.  */
9412int i;
9413int
9414main (void)
9415{
9416
9417  ;
9418  return 0;
9419}
9420_ACEOF
9421if ac_fn_c_try_link "$LINENO"
9422then :
9423  eval $cacheid=yes
9424else $as_nop
9425  eval $cacheid=no
9426fi
9427rm -f core conftest.err conftest.$ac_objext conftest.beam \
9428    conftest$ac_exeext conftest.$ac_ext
9429fi
9430
9431
9432		CFLAGS="$xorg_testset_save_CFLAGS"
9433
9434		eval supported=\$$cacheid
9435		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9436printf "%s\n" "$supported" >&6; }
9437		if test "$supported" = "yes" ; then
9438			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9439			found="yes"
9440		fi
9441	fi
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457xorg_testset_save_CFLAGS="$CFLAGS"
9458
9459if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9460	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9461	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9462printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9463if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9464then :
9465  printf %s "(cached) " >&6
9466else $as_nop
9467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9468/* end confdefs.h.  */
9469int i;
9470_ACEOF
9471if ac_fn_c_try_compile "$LINENO"
9472then :
9473  xorg_cv_cc_flag_unknown_warning_option=yes
9474else $as_nop
9475  xorg_cv_cc_flag_unknown_warning_option=no
9476fi
9477rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9478fi
9479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9480printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9481	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9482	CFLAGS="$xorg_testset_save_CFLAGS"
9483fi
9484
9485if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9486	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9487		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9488	fi
9489	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9490	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9491printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9492if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9493then :
9494  printf %s "(cached) " >&6
9495else $as_nop
9496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497/* end confdefs.h.  */
9498int i;
9499_ACEOF
9500if ac_fn_c_try_compile "$LINENO"
9501then :
9502  xorg_cv_cc_flag_unused_command_line_argument=yes
9503else $as_nop
9504  xorg_cv_cc_flag_unused_command_line_argument=no
9505fi
9506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9507fi
9508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9509printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9510	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9511	CFLAGS="$xorg_testset_save_CFLAGS"
9512fi
9513
9514found="no"
9515
9516	if test $found = "no" ; then
9517		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9518			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9519		fi
9520
9521		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9522			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9523		fi
9524
9525		CFLAGS="$CFLAGS -Wsequence-point"
9526
9527		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9528printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9529		cacheid=xorg_cv_cc_flag__Wsequence_point
9530		if eval test \${$cacheid+y}
9531then :
9532  printf %s "(cached) " >&6
9533else $as_nop
9534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9535/* end confdefs.h.  */
9536int i;
9537int
9538main (void)
9539{
9540
9541  ;
9542  return 0;
9543}
9544_ACEOF
9545if ac_fn_c_try_link "$LINENO"
9546then :
9547  eval $cacheid=yes
9548else $as_nop
9549  eval $cacheid=no
9550fi
9551rm -f core conftest.err conftest.$ac_objext conftest.beam \
9552    conftest$ac_exeext conftest.$ac_ext
9553fi
9554
9555
9556		CFLAGS="$xorg_testset_save_CFLAGS"
9557
9558		eval supported=\$$cacheid
9559		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9560printf "%s\n" "$supported" >&6; }
9561		if test "$supported" = "yes" ; then
9562			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9563			found="yes"
9564		fi
9565	fi
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581xorg_testset_save_CFLAGS="$CFLAGS"
9582
9583if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9584	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9585	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9586printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9587if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9588then :
9589  printf %s "(cached) " >&6
9590else $as_nop
9591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9592/* end confdefs.h.  */
9593int i;
9594_ACEOF
9595if ac_fn_c_try_compile "$LINENO"
9596then :
9597  xorg_cv_cc_flag_unknown_warning_option=yes
9598else $as_nop
9599  xorg_cv_cc_flag_unknown_warning_option=no
9600fi
9601rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9602fi
9603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9604printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9605	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9606	CFLAGS="$xorg_testset_save_CFLAGS"
9607fi
9608
9609if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9610	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9611		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9612	fi
9613	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9614	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9615printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9616if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9617then :
9618  printf %s "(cached) " >&6
9619else $as_nop
9620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621/* end confdefs.h.  */
9622int i;
9623_ACEOF
9624if ac_fn_c_try_compile "$LINENO"
9625then :
9626  xorg_cv_cc_flag_unused_command_line_argument=yes
9627else $as_nop
9628  xorg_cv_cc_flag_unused_command_line_argument=no
9629fi
9630rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9631fi
9632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9633printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9634	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9635	CFLAGS="$xorg_testset_save_CFLAGS"
9636fi
9637
9638found="no"
9639
9640	if test $found = "no" ; then
9641		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9642			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9643		fi
9644
9645		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9646			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9647		fi
9648
9649		CFLAGS="$CFLAGS -Wreturn-type"
9650
9651		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9652printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9653		cacheid=xorg_cv_cc_flag__Wreturn_type
9654		if eval test \${$cacheid+y}
9655then :
9656  printf %s "(cached) " >&6
9657else $as_nop
9658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9659/* end confdefs.h.  */
9660int i;
9661int
9662main (void)
9663{
9664
9665  ;
9666  return 0;
9667}
9668_ACEOF
9669if ac_fn_c_try_link "$LINENO"
9670then :
9671  eval $cacheid=yes
9672else $as_nop
9673  eval $cacheid=no
9674fi
9675rm -f core conftest.err conftest.$ac_objext conftest.beam \
9676    conftest$ac_exeext conftest.$ac_ext
9677fi
9678
9679
9680		CFLAGS="$xorg_testset_save_CFLAGS"
9681
9682		eval supported=\$$cacheid
9683		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9684printf "%s\n" "$supported" >&6; }
9685		if test "$supported" = "yes" ; then
9686			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9687			found="yes"
9688		fi
9689	fi
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705xorg_testset_save_CFLAGS="$CFLAGS"
9706
9707if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9708	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9709	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9710printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9711if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9712then :
9713  printf %s "(cached) " >&6
9714else $as_nop
9715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9716/* end confdefs.h.  */
9717int i;
9718_ACEOF
9719if ac_fn_c_try_compile "$LINENO"
9720then :
9721  xorg_cv_cc_flag_unknown_warning_option=yes
9722else $as_nop
9723  xorg_cv_cc_flag_unknown_warning_option=no
9724fi
9725rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9726fi
9727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9728printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9729	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9730	CFLAGS="$xorg_testset_save_CFLAGS"
9731fi
9732
9733if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9734	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9735		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9736	fi
9737	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9738	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9739printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9740if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9741then :
9742  printf %s "(cached) " >&6
9743else $as_nop
9744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745/* end confdefs.h.  */
9746int i;
9747_ACEOF
9748if ac_fn_c_try_compile "$LINENO"
9749then :
9750  xorg_cv_cc_flag_unused_command_line_argument=yes
9751else $as_nop
9752  xorg_cv_cc_flag_unused_command_line_argument=no
9753fi
9754rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9755fi
9756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9757printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9758	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9759	CFLAGS="$xorg_testset_save_CFLAGS"
9760fi
9761
9762found="no"
9763
9764	if test $found = "no" ; then
9765		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9766			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9767		fi
9768
9769		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9770			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9771		fi
9772
9773		CFLAGS="$CFLAGS -Wtrigraphs"
9774
9775		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9776printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9777		cacheid=xorg_cv_cc_flag__Wtrigraphs
9778		if eval test \${$cacheid+y}
9779then :
9780  printf %s "(cached) " >&6
9781else $as_nop
9782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9783/* end confdefs.h.  */
9784int i;
9785int
9786main (void)
9787{
9788
9789  ;
9790  return 0;
9791}
9792_ACEOF
9793if ac_fn_c_try_link "$LINENO"
9794then :
9795  eval $cacheid=yes
9796else $as_nop
9797  eval $cacheid=no
9798fi
9799rm -f core conftest.err conftest.$ac_objext conftest.beam \
9800    conftest$ac_exeext conftest.$ac_ext
9801fi
9802
9803
9804		CFLAGS="$xorg_testset_save_CFLAGS"
9805
9806		eval supported=\$$cacheid
9807		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9808printf "%s\n" "$supported" >&6; }
9809		if test "$supported" = "yes" ; then
9810			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9811			found="yes"
9812		fi
9813	fi
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829xorg_testset_save_CFLAGS="$CFLAGS"
9830
9831if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9832	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9833	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9834printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9835if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9836then :
9837  printf %s "(cached) " >&6
9838else $as_nop
9839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840/* end confdefs.h.  */
9841int i;
9842_ACEOF
9843if ac_fn_c_try_compile "$LINENO"
9844then :
9845  xorg_cv_cc_flag_unknown_warning_option=yes
9846else $as_nop
9847  xorg_cv_cc_flag_unknown_warning_option=no
9848fi
9849rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9850fi
9851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9852printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9853	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9854	CFLAGS="$xorg_testset_save_CFLAGS"
9855fi
9856
9857if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9858	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9859		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9860	fi
9861	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9862	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9863printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9864if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9865then :
9866  printf %s "(cached) " >&6
9867else $as_nop
9868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869/* end confdefs.h.  */
9870int i;
9871_ACEOF
9872if ac_fn_c_try_compile "$LINENO"
9873then :
9874  xorg_cv_cc_flag_unused_command_line_argument=yes
9875else $as_nop
9876  xorg_cv_cc_flag_unused_command_line_argument=no
9877fi
9878rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9879fi
9880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9881printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9882	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9883	CFLAGS="$xorg_testset_save_CFLAGS"
9884fi
9885
9886found="no"
9887
9888	if test $found = "no" ; then
9889		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9890			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9891		fi
9892
9893		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9894			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9895		fi
9896
9897		CFLAGS="$CFLAGS -Warray-bounds"
9898
9899		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9900printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9901		cacheid=xorg_cv_cc_flag__Warray_bounds
9902		if eval test \${$cacheid+y}
9903then :
9904  printf %s "(cached) " >&6
9905else $as_nop
9906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907/* end confdefs.h.  */
9908int i;
9909int
9910main (void)
9911{
9912
9913  ;
9914  return 0;
9915}
9916_ACEOF
9917if ac_fn_c_try_link "$LINENO"
9918then :
9919  eval $cacheid=yes
9920else $as_nop
9921  eval $cacheid=no
9922fi
9923rm -f core conftest.err conftest.$ac_objext conftest.beam \
9924    conftest$ac_exeext conftest.$ac_ext
9925fi
9926
9927
9928		CFLAGS="$xorg_testset_save_CFLAGS"
9929
9930		eval supported=\$$cacheid
9931		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9932printf "%s\n" "$supported" >&6; }
9933		if test "$supported" = "yes" ; then
9934			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9935			found="yes"
9936		fi
9937	fi
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953xorg_testset_save_CFLAGS="$CFLAGS"
9954
9955if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9956	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9957	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9958printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9959if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9960then :
9961  printf %s "(cached) " >&6
9962else $as_nop
9963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9964/* end confdefs.h.  */
9965int i;
9966_ACEOF
9967if ac_fn_c_try_compile "$LINENO"
9968then :
9969  xorg_cv_cc_flag_unknown_warning_option=yes
9970else $as_nop
9971  xorg_cv_cc_flag_unknown_warning_option=no
9972fi
9973rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9974fi
9975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9976printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9977	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9978	CFLAGS="$xorg_testset_save_CFLAGS"
9979fi
9980
9981if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9982	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9983		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9984	fi
9985	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9986	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9987printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9988if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9989then :
9990  printf %s "(cached) " >&6
9991else $as_nop
9992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993/* end confdefs.h.  */
9994int i;
9995_ACEOF
9996if ac_fn_c_try_compile "$LINENO"
9997then :
9998  xorg_cv_cc_flag_unused_command_line_argument=yes
9999else $as_nop
10000  xorg_cv_cc_flag_unused_command_line_argument=no
10001fi
10002rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10003fi
10004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10005printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10006	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10007	CFLAGS="$xorg_testset_save_CFLAGS"
10008fi
10009
10010found="no"
10011
10012	if test $found = "no" ; then
10013		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10014			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10015		fi
10016
10017		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10018			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10019		fi
10020
10021		CFLAGS="$CFLAGS -Wwrite-strings"
10022
10023		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10024printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10025		cacheid=xorg_cv_cc_flag__Wwrite_strings
10026		if eval test \${$cacheid+y}
10027then :
10028  printf %s "(cached) " >&6
10029else $as_nop
10030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10031/* end confdefs.h.  */
10032int i;
10033int
10034main (void)
10035{
10036
10037  ;
10038  return 0;
10039}
10040_ACEOF
10041if ac_fn_c_try_link "$LINENO"
10042then :
10043  eval $cacheid=yes
10044else $as_nop
10045  eval $cacheid=no
10046fi
10047rm -f core conftest.err conftest.$ac_objext conftest.beam \
10048    conftest$ac_exeext conftest.$ac_ext
10049fi
10050
10051
10052		CFLAGS="$xorg_testset_save_CFLAGS"
10053
10054		eval supported=\$$cacheid
10055		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10056printf "%s\n" "$supported" >&6; }
10057		if test "$supported" = "yes" ; then
10058			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10059			found="yes"
10060		fi
10061	fi
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077xorg_testset_save_CFLAGS="$CFLAGS"
10078
10079if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10080	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10081	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10082printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10083if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10084then :
10085  printf %s "(cached) " >&6
10086else $as_nop
10087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10088/* end confdefs.h.  */
10089int i;
10090_ACEOF
10091if ac_fn_c_try_compile "$LINENO"
10092then :
10093  xorg_cv_cc_flag_unknown_warning_option=yes
10094else $as_nop
10095  xorg_cv_cc_flag_unknown_warning_option=no
10096fi
10097rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10098fi
10099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10100printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10101	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10102	CFLAGS="$xorg_testset_save_CFLAGS"
10103fi
10104
10105if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10106	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10107		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10108	fi
10109	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10110	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10111printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10112if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10113then :
10114  printf %s "(cached) " >&6
10115else $as_nop
10116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117/* end confdefs.h.  */
10118int i;
10119_ACEOF
10120if ac_fn_c_try_compile "$LINENO"
10121then :
10122  xorg_cv_cc_flag_unused_command_line_argument=yes
10123else $as_nop
10124  xorg_cv_cc_flag_unused_command_line_argument=no
10125fi
10126rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10127fi
10128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10129printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10130	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10131	CFLAGS="$xorg_testset_save_CFLAGS"
10132fi
10133
10134found="no"
10135
10136	if test $found = "no" ; then
10137		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10138			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10139		fi
10140
10141		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10142			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10143		fi
10144
10145		CFLAGS="$CFLAGS -Waddress"
10146
10147		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10148printf %s "checking if $CC supports -Waddress... " >&6; }
10149		cacheid=xorg_cv_cc_flag__Waddress
10150		if eval test \${$cacheid+y}
10151then :
10152  printf %s "(cached) " >&6
10153else $as_nop
10154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10155/* end confdefs.h.  */
10156int i;
10157int
10158main (void)
10159{
10160
10161  ;
10162  return 0;
10163}
10164_ACEOF
10165if ac_fn_c_try_link "$LINENO"
10166then :
10167  eval $cacheid=yes
10168else $as_nop
10169  eval $cacheid=no
10170fi
10171rm -f core conftest.err conftest.$ac_objext conftest.beam \
10172    conftest$ac_exeext conftest.$ac_ext
10173fi
10174
10175
10176		CFLAGS="$xorg_testset_save_CFLAGS"
10177
10178		eval supported=\$$cacheid
10179		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10180printf "%s\n" "$supported" >&6; }
10181		if test "$supported" = "yes" ; then
10182			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10183			found="yes"
10184		fi
10185	fi
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201xorg_testset_save_CFLAGS="$CFLAGS"
10202
10203if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10204	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10205	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10206printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10207if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10208then :
10209  printf %s "(cached) " >&6
10210else $as_nop
10211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10212/* end confdefs.h.  */
10213int i;
10214_ACEOF
10215if ac_fn_c_try_compile "$LINENO"
10216then :
10217  xorg_cv_cc_flag_unknown_warning_option=yes
10218else $as_nop
10219  xorg_cv_cc_flag_unknown_warning_option=no
10220fi
10221rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10222fi
10223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10224printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10225	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10226	CFLAGS="$xorg_testset_save_CFLAGS"
10227fi
10228
10229if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10230	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10231		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10232	fi
10233	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10234	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10235printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10236if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10237then :
10238  printf %s "(cached) " >&6
10239else $as_nop
10240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10241/* end confdefs.h.  */
10242int i;
10243_ACEOF
10244if ac_fn_c_try_compile "$LINENO"
10245then :
10246  xorg_cv_cc_flag_unused_command_line_argument=yes
10247else $as_nop
10248  xorg_cv_cc_flag_unused_command_line_argument=no
10249fi
10250rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10251fi
10252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10253printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10254	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10255	CFLAGS="$xorg_testset_save_CFLAGS"
10256fi
10257
10258found="no"
10259
10260	if test $found = "no" ; then
10261		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10262			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10263		fi
10264
10265		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10266			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10267		fi
10268
10269		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10270
10271		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10272printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10273		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10274		if eval test \${$cacheid+y}
10275then :
10276  printf %s "(cached) " >&6
10277else $as_nop
10278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10279/* end confdefs.h.  */
10280int i;
10281int
10282main (void)
10283{
10284
10285  ;
10286  return 0;
10287}
10288_ACEOF
10289if ac_fn_c_try_link "$LINENO"
10290then :
10291  eval $cacheid=yes
10292else $as_nop
10293  eval $cacheid=no
10294fi
10295rm -f core conftest.err conftest.$ac_objext conftest.beam \
10296    conftest$ac_exeext conftest.$ac_ext
10297fi
10298
10299
10300		CFLAGS="$xorg_testset_save_CFLAGS"
10301
10302		eval supported=\$$cacheid
10303		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10304printf "%s\n" "$supported" >&6; }
10305		if test "$supported" = "yes" ; then
10306			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10307			found="yes"
10308		fi
10309	fi
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325xorg_testset_save_CFLAGS="$CFLAGS"
10326
10327if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10328	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10329	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10330printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10331if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10332then :
10333  printf %s "(cached) " >&6
10334else $as_nop
10335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10336/* end confdefs.h.  */
10337int i;
10338_ACEOF
10339if ac_fn_c_try_compile "$LINENO"
10340then :
10341  xorg_cv_cc_flag_unknown_warning_option=yes
10342else $as_nop
10343  xorg_cv_cc_flag_unknown_warning_option=no
10344fi
10345rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10346fi
10347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10348printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10349	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10350	CFLAGS="$xorg_testset_save_CFLAGS"
10351fi
10352
10353if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10354	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10355		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10356	fi
10357	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10358	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10359printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10360if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10361then :
10362  printf %s "(cached) " >&6
10363else $as_nop
10364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365/* end confdefs.h.  */
10366int i;
10367_ACEOF
10368if ac_fn_c_try_compile "$LINENO"
10369then :
10370  xorg_cv_cc_flag_unused_command_line_argument=yes
10371else $as_nop
10372  xorg_cv_cc_flag_unused_command_line_argument=no
10373fi
10374rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10375fi
10376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10377printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10378	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10379	CFLAGS="$xorg_testset_save_CFLAGS"
10380fi
10381
10382found="no"
10383
10384	if test $found = "no" ; then
10385		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10386			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10387		fi
10388
10389		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10390			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10391		fi
10392
10393		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10394
10395		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10396printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10397		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10398		if eval test \${$cacheid+y}
10399then :
10400  printf %s "(cached) " >&6
10401else $as_nop
10402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403/* end confdefs.h.  */
10404int i;
10405int
10406main (void)
10407{
10408
10409  ;
10410  return 0;
10411}
10412_ACEOF
10413if ac_fn_c_try_link "$LINENO"
10414then :
10415  eval $cacheid=yes
10416else $as_nop
10417  eval $cacheid=no
10418fi
10419rm -f core conftest.err conftest.$ac_objext conftest.beam \
10420    conftest$ac_exeext conftest.$ac_ext
10421fi
10422
10423
10424		CFLAGS="$xorg_testset_save_CFLAGS"
10425
10426		eval supported=\$$cacheid
10427		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10428printf "%s\n" "$supported" >&6; }
10429		if test "$supported" = "yes" ; then
10430			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10431			found="yes"
10432		fi
10433	fi
10434
10435
10436fi
10437
10438
10439
10440
10441
10442
10443
10444		CWARNFLAGS="$BASE_CFLAGS"
10445		if  test "x$GCC" = xyes ; then
10446		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10447		fi
10448
10449
10450
10451
10452
10453
10454
10455
10456# Check whether --enable-strict-compilation was given.
10457if test ${enable_strict_compilation+y}
10458then :
10459  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10460else $as_nop
10461  STRICT_COMPILE=no
10462fi
10463
10464
10465
10466
10467
10468
10469STRICT_CFLAGS=""
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483xorg_testset_save_CFLAGS="$CFLAGS"
10484
10485if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10486	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10487	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10488printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10489if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10490then :
10491  printf %s "(cached) " >&6
10492else $as_nop
10493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494/* end confdefs.h.  */
10495int i;
10496_ACEOF
10497if ac_fn_c_try_compile "$LINENO"
10498then :
10499  xorg_cv_cc_flag_unknown_warning_option=yes
10500else $as_nop
10501  xorg_cv_cc_flag_unknown_warning_option=no
10502fi
10503rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10504fi
10505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10506printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10507	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10508	CFLAGS="$xorg_testset_save_CFLAGS"
10509fi
10510
10511if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10512	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10513		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10514	fi
10515	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10516	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10517printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10518if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10519then :
10520  printf %s "(cached) " >&6
10521else $as_nop
10522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10523/* end confdefs.h.  */
10524int i;
10525_ACEOF
10526if ac_fn_c_try_compile "$LINENO"
10527then :
10528  xorg_cv_cc_flag_unused_command_line_argument=yes
10529else $as_nop
10530  xorg_cv_cc_flag_unused_command_line_argument=no
10531fi
10532rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10533fi
10534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10535printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10536	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10537	CFLAGS="$xorg_testset_save_CFLAGS"
10538fi
10539
10540found="no"
10541
10542	if test $found = "no" ; then
10543		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10544			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10545		fi
10546
10547		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10548			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10549		fi
10550
10551		CFLAGS="$CFLAGS -pedantic"
10552
10553		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10554printf %s "checking if $CC supports -pedantic... " >&6; }
10555		cacheid=xorg_cv_cc_flag__pedantic
10556		if eval test \${$cacheid+y}
10557then :
10558  printf %s "(cached) " >&6
10559else $as_nop
10560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10561/* end confdefs.h.  */
10562int i;
10563int
10564main (void)
10565{
10566
10567  ;
10568  return 0;
10569}
10570_ACEOF
10571if ac_fn_c_try_link "$LINENO"
10572then :
10573  eval $cacheid=yes
10574else $as_nop
10575  eval $cacheid=no
10576fi
10577rm -f core conftest.err conftest.$ac_objext conftest.beam \
10578    conftest$ac_exeext conftest.$ac_ext
10579fi
10580
10581
10582		CFLAGS="$xorg_testset_save_CFLAGS"
10583
10584		eval supported=\$$cacheid
10585		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10586printf "%s\n" "$supported" >&6; }
10587		if test "$supported" = "yes" ; then
10588			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10589			found="yes"
10590		fi
10591	fi
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607xorg_testset_save_CFLAGS="$CFLAGS"
10608
10609if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10610	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10611	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10612printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10613if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10614then :
10615  printf %s "(cached) " >&6
10616else $as_nop
10617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10618/* end confdefs.h.  */
10619int i;
10620_ACEOF
10621if ac_fn_c_try_compile "$LINENO"
10622then :
10623  xorg_cv_cc_flag_unknown_warning_option=yes
10624else $as_nop
10625  xorg_cv_cc_flag_unknown_warning_option=no
10626fi
10627rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10628fi
10629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10630printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10631	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10632	CFLAGS="$xorg_testset_save_CFLAGS"
10633fi
10634
10635if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10636	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10637		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10638	fi
10639	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10640	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10641printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10642if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10643then :
10644  printf %s "(cached) " >&6
10645else $as_nop
10646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10647/* end confdefs.h.  */
10648int i;
10649_ACEOF
10650if ac_fn_c_try_compile "$LINENO"
10651then :
10652  xorg_cv_cc_flag_unused_command_line_argument=yes
10653else $as_nop
10654  xorg_cv_cc_flag_unused_command_line_argument=no
10655fi
10656rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10657fi
10658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10659printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10660	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10661	CFLAGS="$xorg_testset_save_CFLAGS"
10662fi
10663
10664found="no"
10665
10666	if test $found = "no" ; then
10667		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10668			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10669		fi
10670
10671		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10672			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10673		fi
10674
10675		CFLAGS="$CFLAGS -Werror"
10676
10677		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10678printf %s "checking if $CC supports -Werror... " >&6; }
10679		cacheid=xorg_cv_cc_flag__Werror
10680		if eval test \${$cacheid+y}
10681then :
10682  printf %s "(cached) " >&6
10683else $as_nop
10684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10685/* end confdefs.h.  */
10686int i;
10687int
10688main (void)
10689{
10690
10691  ;
10692  return 0;
10693}
10694_ACEOF
10695if ac_fn_c_try_link "$LINENO"
10696then :
10697  eval $cacheid=yes
10698else $as_nop
10699  eval $cacheid=no
10700fi
10701rm -f core conftest.err conftest.$ac_objext conftest.beam \
10702    conftest$ac_exeext conftest.$ac_ext
10703fi
10704
10705
10706		CFLAGS="$xorg_testset_save_CFLAGS"
10707
10708		eval supported=\$$cacheid
10709		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10710printf "%s\n" "$supported" >&6; }
10711		if test "$supported" = "yes" ; then
10712			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10713			found="yes"
10714		fi
10715	fi
10716
10717	if test $found = "no" ; then
10718		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10719			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10720		fi
10721
10722		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10723			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10724		fi
10725
10726		CFLAGS="$CFLAGS -errwarn"
10727
10728		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10729printf %s "checking if $CC supports -errwarn... " >&6; }
10730		cacheid=xorg_cv_cc_flag__errwarn
10731		if eval test \${$cacheid+y}
10732then :
10733  printf %s "(cached) " >&6
10734else $as_nop
10735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736/* end confdefs.h.  */
10737int i;
10738int
10739main (void)
10740{
10741
10742  ;
10743  return 0;
10744}
10745_ACEOF
10746if ac_fn_c_try_link "$LINENO"
10747then :
10748  eval $cacheid=yes
10749else $as_nop
10750  eval $cacheid=no
10751fi
10752rm -f core conftest.err conftest.$ac_objext conftest.beam \
10753    conftest$ac_exeext conftest.$ac_ext
10754fi
10755
10756
10757		CFLAGS="$xorg_testset_save_CFLAGS"
10758
10759		eval supported=\$$cacheid
10760		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10761printf "%s\n" "$supported" >&6; }
10762		if test "$supported" = "yes" ; then
10763			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10764			found="yes"
10765		fi
10766	fi
10767
10768
10769
10770# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10771# activate it with -Werror, so we add it here explicitly.
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785xorg_testset_save_CFLAGS="$CFLAGS"
10786
10787if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10788	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10789	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10790printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10791if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10792then :
10793  printf %s "(cached) " >&6
10794else $as_nop
10795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10796/* end confdefs.h.  */
10797int i;
10798_ACEOF
10799if ac_fn_c_try_compile "$LINENO"
10800then :
10801  xorg_cv_cc_flag_unknown_warning_option=yes
10802else $as_nop
10803  xorg_cv_cc_flag_unknown_warning_option=no
10804fi
10805rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10806fi
10807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10808printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10809	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10810	CFLAGS="$xorg_testset_save_CFLAGS"
10811fi
10812
10813if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10814	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10815		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10816	fi
10817	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10818	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10819printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10820if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10821then :
10822  printf %s "(cached) " >&6
10823else $as_nop
10824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825/* end confdefs.h.  */
10826int i;
10827_ACEOF
10828if ac_fn_c_try_compile "$LINENO"
10829then :
10830  xorg_cv_cc_flag_unused_command_line_argument=yes
10831else $as_nop
10832  xorg_cv_cc_flag_unused_command_line_argument=no
10833fi
10834rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10835fi
10836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10837printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10838	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10839	CFLAGS="$xorg_testset_save_CFLAGS"
10840fi
10841
10842found="no"
10843
10844	if test $found = "no" ; then
10845		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10846			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10847		fi
10848
10849		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10850			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10851		fi
10852
10853		CFLAGS="$CFLAGS -Werror=attributes"
10854
10855		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10856printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10857		cacheid=xorg_cv_cc_flag__Werror_attributes
10858		if eval test \${$cacheid+y}
10859then :
10860  printf %s "(cached) " >&6
10861else $as_nop
10862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10863/* end confdefs.h.  */
10864int i;
10865int
10866main (void)
10867{
10868
10869  ;
10870  return 0;
10871}
10872_ACEOF
10873if ac_fn_c_try_link "$LINENO"
10874then :
10875  eval $cacheid=yes
10876else $as_nop
10877  eval $cacheid=no
10878fi
10879rm -f core conftest.err conftest.$ac_objext conftest.beam \
10880    conftest$ac_exeext conftest.$ac_ext
10881fi
10882
10883
10884		CFLAGS="$xorg_testset_save_CFLAGS"
10885
10886		eval supported=\$$cacheid
10887		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10888printf "%s\n" "$supported" >&6; }
10889		if test "$supported" = "yes" ; then
10890			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10891			found="yes"
10892		fi
10893	fi
10894
10895
10896
10897if test "x$STRICT_COMPILE" = "xyes"; then
10898    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10899    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10900fi
10901
10902
10903
10904
10905
10906
10907cat >>confdefs.h <<_ACEOF
10908#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10909_ACEOF
10910
10911	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10912	if test "x$PVM" = "x"; then
10913		PVM="0"
10914	fi
10915
10916printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10917
10918	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10919	if test "x$PVP" = "x"; then
10920		PVP="0"
10921	fi
10922
10923printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10924
10925
10926
10927CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10928mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10929|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10930touch \$(top_srcdir)/ChangeLog; \
10931echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10932
10933
10934
10935
10936macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10937INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10938mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10939|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10940touch \$(top_srcdir)/INSTALL; \
10941echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10942
10943
10944
10945
10946
10947
10948case $host_os in
10949    solaris*)
10950        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10951        # check for a man page file found in later versions that use
10952        # traditional section numbers instead
10953        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10954printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
10955if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
10956then :
10957  printf %s "(cached) " >&6
10958else $as_nop
10959  test "$cross_compiling" = yes &&
10960  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10961if test -r "/usr/share/man/man7/attributes.7"; then
10962  ac_cv_file__usr_share_man_man7_attributes_7=yes
10963else
10964  ac_cv_file__usr_share_man_man7_attributes_7=no
10965fi
10966fi
10967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10968printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10969if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
10970then :
10971  SYSV_MAN_SECTIONS=false
10972else $as_nop
10973  SYSV_MAN_SECTIONS=true
10974fi
10975
10976        ;;
10977    *) SYSV_MAN_SECTIONS=false ;;
10978esac
10979
10980if test x$APP_MAN_SUFFIX = x    ; then
10981    APP_MAN_SUFFIX=1
10982fi
10983if test x$APP_MAN_DIR = x    ; then
10984    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10985fi
10986
10987if test x$LIB_MAN_SUFFIX = x    ; then
10988    LIB_MAN_SUFFIX=3
10989fi
10990if test x$LIB_MAN_DIR = x    ; then
10991    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10992fi
10993
10994if test x$FILE_MAN_SUFFIX = x    ; then
10995    case $SYSV_MAN_SECTIONS in
10996	true)				FILE_MAN_SUFFIX=4  ;;
10997	*)				FILE_MAN_SUFFIX=5  ;;
10998    esac
10999fi
11000if test x$FILE_MAN_DIR = x    ; then
11001    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11002fi
11003
11004if test x$MISC_MAN_SUFFIX = x    ; then
11005    case $SYSV_MAN_SECTIONS in
11006	true)				MISC_MAN_SUFFIX=5  ;;
11007	*)				MISC_MAN_SUFFIX=7  ;;
11008    esac
11009fi
11010if test x$MISC_MAN_DIR = x    ; then
11011    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11012fi
11013
11014if test x$DRIVER_MAN_SUFFIX = x    ; then
11015    case $SYSV_MAN_SECTIONS in
11016	true)				DRIVER_MAN_SUFFIX=7  ;;
11017	*)				DRIVER_MAN_SUFFIX=4  ;;
11018    esac
11019fi
11020if test x$DRIVER_MAN_DIR = x    ; then
11021    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11022fi
11023
11024if test x$ADMIN_MAN_SUFFIX = x    ; then
11025    case $SYSV_MAN_SECTIONS in
11026	true)				ADMIN_MAN_SUFFIX=1m ;;
11027	*)				ADMIN_MAN_SUFFIX=8  ;;
11028    esac
11029fi
11030if test x$ADMIN_MAN_DIR = x    ; then
11031    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11032fi
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048XORG_MAN_PAGE="X Version 11"
11049
11050MAN_SUBSTS="\
11051	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11052	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11053	-e 's|__xservername__|Xorg|g' \
11054	-e 's|__xconfigfile__|xorg.conf|g' \
11055	-e 's|__projectroot__|\$(prefix)|g' \
11056	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11057	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11058	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11059	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11060	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11061	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11062	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11063
11064
11065
11066# Check whether --enable-silent-rules was given.
11067if test ${enable_silent_rules+y}
11068then :
11069  enableval=$enable_silent_rules;
11070fi
11071
11072case $enable_silent_rules in # (((
11073  yes) AM_DEFAULT_VERBOSITY=0;;
11074   no) AM_DEFAULT_VERBOSITY=1;;
11075    *) AM_DEFAULT_VERBOSITY=0;;
11076esac
11077am_make=${MAKE-make}
11078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11079printf %s "checking whether $am_make supports nested variables... " >&6; }
11080if test ${am_cv_make_support_nested_variables+y}
11081then :
11082  printf %s "(cached) " >&6
11083else $as_nop
11084  if printf "%s\n" 'TRUE=$(BAR$(V))
11085BAR0=false
11086BAR1=true
11087V=1
11088am__doit:
11089	@$(TRUE)
11090.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11091  am_cv_make_support_nested_variables=yes
11092else
11093  am_cv_make_support_nested_variables=no
11094fi
11095fi
11096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11097printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11098if test $am_cv_make_support_nested_variables = yes; then
11099    AM_V='$(V)'
11100  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11101else
11102  AM_V=$AM_DEFAULT_VERBOSITY
11103  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11104fi
11105AM_BACKSLASH='\'
11106
11107
11108
11109# Obtain compiler/linker options from dependencies
11110
11111pkg_failed=no
11112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EDITRES" >&5
11113printf %s "checking for EDITRES... " >&6; }
11114
11115if test -n "$EDITRES_CFLAGS"; then
11116    pkg_cv_EDITRES_CFLAGS="$EDITRES_CFLAGS"
11117 elif test -n "$PKG_CONFIG"; then
11118    if test -n "$PKG_CONFIG" && \
11119    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17\""; } >&5
11120  ($PKG_CONFIG --exists --print-errors "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17") 2>&5
11121  ac_status=$?
11122  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11123  test $ac_status = 0; }; then
11124  pkg_cv_EDITRES_CFLAGS=`$PKG_CONFIG --cflags "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17" 2>/dev/null`
11125		      test "x$?" != "x0" && pkg_failed=yes
11126else
11127  pkg_failed=yes
11128fi
11129 else
11130    pkg_failed=untried
11131fi
11132if test -n "$EDITRES_LIBS"; then
11133    pkg_cv_EDITRES_LIBS="$EDITRES_LIBS"
11134 elif test -n "$PKG_CONFIG"; then
11135    if test -n "$PKG_CONFIG" && \
11136    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17\""; } >&5
11137  ($PKG_CONFIG --exists --print-errors "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17") 2>&5
11138  ac_status=$?
11139  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11140  test $ac_status = 0; }; then
11141  pkg_cv_EDITRES_LIBS=`$PKG_CONFIG --libs "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17" 2>/dev/null`
11142		      test "x$?" != "x0" && pkg_failed=yes
11143else
11144  pkg_failed=yes
11145fi
11146 else
11147    pkg_failed=untried
11148fi
11149
11150
11151
11152if test $pkg_failed = yes; then
11153   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11154printf "%s\n" "no" >&6; }
11155
11156if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11157        _pkg_short_errors_supported=yes
11158else
11159        _pkg_short_errors_supported=no
11160fi
11161        if test $_pkg_short_errors_supported = yes; then
11162	        EDITRES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17" 2>&1`
11163        else
11164	        EDITRES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17" 2>&1`
11165        fi
11166	# Put the nasty error message in config.log where it belongs
11167	echo "$EDITRES_PKG_ERRORS" >&5
11168
11169	as_fn_error $? "Package requirements (xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17) were not met:
11170
11171$EDITRES_PKG_ERRORS
11172
11173Consider adjusting the PKG_CONFIG_PATH environment variable if you
11174installed software in a non-standard prefix.
11175
11176Alternatively, you may set the environment variables EDITRES_CFLAGS
11177and EDITRES_LIBS to avoid the need to call pkg-config.
11178See the pkg-config man page for more details." "$LINENO" 5
11179elif test $pkg_failed = untried; then
11180     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11181printf "%s\n" "no" >&6; }
11182	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11183printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11184as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11185is in your PATH or set the PKG_CONFIG environment variable to the full
11186path to pkg-config.
11187
11188Alternatively, you may set the environment variables EDITRES_CFLAGS
11189and EDITRES_LIBS to avoid the need to call pkg-config.
11190See the pkg-config man page for more details.
11191
11192To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11193See \`config.log' for more details" "$LINENO" 5; }
11194else
11195	EDITRES_CFLAGS=$pkg_cv_EDITRES_CFLAGS
11196	EDITRES_LIBS=$pkg_cv_EDITRES_LIBS
11197        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11198printf "%s\n" "yes" >&6; }
11199
11200fi
11201
11202
11203pkg_failed=no
11204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
11205printf %s "checking for APPDEFS... " >&6; }
11206
11207if test -n "$APPDEFS_CFLAGS"; then
11208    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
11209 elif test -n "$PKG_CONFIG"; then
11210    if test -n "$PKG_CONFIG" && \
11211    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11212  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11213  ac_status=$?
11214  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11215  test $ac_status = 0; }; then
11216  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
11217		      test "x$?" != "x0" && pkg_failed=yes
11218else
11219  pkg_failed=yes
11220fi
11221 else
11222    pkg_failed=untried
11223fi
11224if test -n "$APPDEFS_LIBS"; then
11225    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
11226 elif test -n "$PKG_CONFIG"; then
11227    if test -n "$PKG_CONFIG" && \
11228    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11229  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11230  ac_status=$?
11231  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11232  test $ac_status = 0; }; then
11233  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
11234		      test "x$?" != "x0" && pkg_failed=yes
11235else
11236  pkg_failed=yes
11237fi
11238 else
11239    pkg_failed=untried
11240fi
11241
11242
11243
11244if test $pkg_failed = yes; then
11245   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11246printf "%s\n" "no" >&6; }
11247
11248if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11249        _pkg_short_errors_supported=yes
11250else
11251        _pkg_short_errors_supported=no
11252fi
11253        if test $_pkg_short_errors_supported = yes; then
11254	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
11255        else
11256	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
11257        fi
11258	# Put the nasty error message in config.log where it belongs
11259	echo "$APPDEFS_PKG_ERRORS" >&5
11260
11261	as_fn_error $? "Package requirements (xt) were not met:
11262
11263$APPDEFS_PKG_ERRORS
11264
11265Consider adjusting the PKG_CONFIG_PATH environment variable if you
11266installed software in a non-standard prefix.
11267
11268Alternatively, you may set the environment variables APPDEFS_CFLAGS
11269and APPDEFS_LIBS to avoid the need to call pkg-config.
11270See the pkg-config man page for more details." "$LINENO" 5
11271elif test $pkg_failed = untried; then
11272     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273printf "%s\n" "no" >&6; }
11274	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11275printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11276as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11277is in your PATH or set the PKG_CONFIG environment variable to the full
11278path to pkg-config.
11279
11280Alternatively, you may set the environment variables APPDEFS_CFLAGS
11281and APPDEFS_LIBS to avoid the need to call pkg-config.
11282See the pkg-config man page for more details.
11283
11284To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11285See \`config.log' for more details" "$LINENO" 5; }
11286else
11287	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
11288	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
11289        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11290printf "%s\n" "yes" >&6; }
11291
11292fi
11293xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11294
11295# Check whether --with-appdefaultdir was given.
11296if test ${with_appdefaultdir+y}
11297then :
11298  withval=$with_appdefaultdir; appdefaultdir="$withval"
11299else $as_nop
11300  appdefaultdir="${xt_appdefaultdir}"
11301fi
11302
11303
11304
11305ac_config_files="$ac_config_files Makefile man/Makefile"
11306
11307cat >confcache <<\_ACEOF
11308# This file is a shell script that caches the results of configure
11309# tests run on this system so they can be shared between configure
11310# scripts and configure runs, see configure's option --config-cache.
11311# It is not useful on other systems.  If it contains results you don't
11312# want to keep, you may remove or edit it.
11313#
11314# config.status only pays attention to the cache file if you give it
11315# the --recheck option to rerun configure.
11316#
11317# `ac_cv_env_foo' variables (set or unset) will be overridden when
11318# loading this file, other *unset* `ac_cv_foo' will be assigned the
11319# following values.
11320
11321_ACEOF
11322
11323# The following way of writing the cache mishandles newlines in values,
11324# but we know of no workaround that is simple, portable, and efficient.
11325# So, we kill variables containing newlines.
11326# Ultrix sh set writes to stderr and can't be redirected directly,
11327# and sets the high bit in the cache file unless we assign to the vars.
11328(
11329  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11330    eval ac_val=\$$ac_var
11331    case $ac_val in #(
11332    *${as_nl}*)
11333      case $ac_var in #(
11334      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11335printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11336      esac
11337      case $ac_var in #(
11338      _ | IFS | as_nl) ;; #(
11339      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11340      *) { eval $ac_var=; unset $ac_var;} ;;
11341      esac ;;
11342    esac
11343  done
11344
11345  (set) 2>&1 |
11346    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11347    *${as_nl}ac_space=\ *)
11348      # `set' does not quote correctly, so add quotes: double-quote
11349      # substitution turns \\\\ into \\, and sed turns \\ into \.
11350      sed -n \
11351	"s/'/'\\\\''/g;
11352	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11353      ;; #(
11354    *)
11355      # `set' quotes correctly as required by POSIX, so do not add quotes.
11356      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11357      ;;
11358    esac |
11359    sort
11360) |
11361  sed '
11362     /^ac_cv_env_/b end
11363     t clear
11364     :clear
11365     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11366     t end
11367     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11368     :end' >>confcache
11369if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11370  if test -w "$cache_file"; then
11371    if test "x$cache_file" != "x/dev/null"; then
11372      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11373printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11374      if test ! -f "$cache_file" || test -h "$cache_file"; then
11375	cat confcache >"$cache_file"
11376      else
11377        case $cache_file in #(
11378        */* | ?:*)
11379	  mv -f confcache "$cache_file"$$ &&
11380	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11381        *)
11382	  mv -f confcache "$cache_file" ;;
11383	esac
11384      fi
11385    fi
11386  else
11387    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11388printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11389  fi
11390fi
11391rm -f confcache
11392
11393test "x$prefix" = xNONE && prefix=$ac_default_prefix
11394# Let make expand exec_prefix.
11395test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11396
11397DEFS=-DHAVE_CONFIG_H
11398
11399ac_libobjs=
11400ac_ltlibobjs=
11401U=
11402for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11403  # 1. Remove the extension, and $U if already installed.
11404  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11405  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11406  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11407  #    will be set to the directory where LIBOBJS objects are built.
11408  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11409  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11410done
11411LIBOBJS=$ac_libobjs
11412
11413LTLIBOBJS=$ac_ltlibobjs
11414
11415
11416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11417printf %s "checking that generated files are newer than configure... " >&6; }
11418   if test -n "$am_sleep_pid"; then
11419     # Hide warnings about reused PIDs.
11420     wait $am_sleep_pid 2>/dev/null
11421   fi
11422   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11423printf "%s\n" "done" >&6; }
11424 if test -n "$EXEEXT"; then
11425  am__EXEEXT_TRUE=
11426  am__EXEEXT_FALSE='#'
11427else
11428  am__EXEEXT_TRUE='#'
11429  am__EXEEXT_FALSE=
11430fi
11431
11432if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11433  as_fn_error $? "conditional \"AMDEP\" was never defined.
11434Usually this means the macro was only invoked conditionally." "$LINENO" 5
11435fi
11436if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11437  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11438Usually this means the macro was only invoked conditionally." "$LINENO" 5
11439fi
11440
11441: "${CONFIG_STATUS=./config.status}"
11442ac_write_fail=0
11443ac_clean_files_save=$ac_clean_files
11444ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11446printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11447as_write_fail=0
11448cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11449#! $SHELL
11450# Generated by $as_me.
11451# Run this file to recreate the current configuration.
11452# Compiler output produced by configure, useful for debugging
11453# configure, is in config.log if it exists.
11454
11455debug=false
11456ac_cs_recheck=false
11457ac_cs_silent=false
11458
11459SHELL=\${CONFIG_SHELL-$SHELL}
11460export SHELL
11461_ASEOF
11462cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11463## -------------------- ##
11464## M4sh Initialization. ##
11465## -------------------- ##
11466
11467# Be more Bourne compatible
11468DUALCASE=1; export DUALCASE # for MKS sh
11469as_nop=:
11470if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11471then :
11472  emulate sh
11473  NULLCMD=:
11474  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11475  # is contrary to our usage.  Disable this feature.
11476  alias -g '${1+"$@"}'='"$@"'
11477  setopt NO_GLOB_SUBST
11478else $as_nop
11479  case `(set -o) 2>/dev/null` in #(
11480  *posix*) :
11481    set -o posix ;; #(
11482  *) :
11483     ;;
11484esac
11485fi
11486
11487
11488
11489# Reset variables that may have inherited troublesome values from
11490# the environment.
11491
11492# IFS needs to be set, to space, tab, and newline, in precisely that order.
11493# (If _AS_PATH_WALK were called with IFS unset, it would have the
11494# side effect of setting IFS to empty, thus disabling word splitting.)
11495# Quoting is to prevent editors from complaining about space-tab.
11496as_nl='
11497'
11498export as_nl
11499IFS=" ""	$as_nl"
11500
11501PS1='$ '
11502PS2='> '
11503PS4='+ '
11504
11505# Ensure predictable behavior from utilities with locale-dependent output.
11506LC_ALL=C
11507export LC_ALL
11508LANGUAGE=C
11509export LANGUAGE
11510
11511# We cannot yet rely on "unset" to work, but we need these variables
11512# to be unset--not just set to an empty or harmless value--now, to
11513# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11514# also avoids known problems related to "unset" and subshell syntax
11515# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11516for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11517do eval test \${$as_var+y} \
11518  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11519done
11520
11521# Ensure that fds 0, 1, and 2 are open.
11522if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11523if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11524if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
11525
11526# The user is always right.
11527if ${PATH_SEPARATOR+false} :; then
11528  PATH_SEPARATOR=:
11529  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11530    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11531      PATH_SEPARATOR=';'
11532  }
11533fi
11534
11535
11536# Find who we are.  Look in the path if we contain no directory separator.
11537as_myself=
11538case $0 in #((
11539  *[\\/]* ) as_myself=$0 ;;
11540  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11541for as_dir in $PATH
11542do
11543  IFS=$as_save_IFS
11544  case $as_dir in #(((
11545    '') as_dir=./ ;;
11546    */) ;;
11547    *) as_dir=$as_dir/ ;;
11548  esac
11549    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11550  done
11551IFS=$as_save_IFS
11552
11553     ;;
11554esac
11555# We did not find ourselves, most probably we were run as `sh COMMAND'
11556# in which case we are not to be found in the path.
11557if test "x$as_myself" = x; then
11558  as_myself=$0
11559fi
11560if test ! -f "$as_myself"; then
11561  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11562  exit 1
11563fi
11564
11565
11566
11567# as_fn_error STATUS ERROR [LINENO LOG_FD]
11568# ----------------------------------------
11569# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11570# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11571# script with STATUS, using 1 if that was 0.
11572as_fn_error ()
11573{
11574  as_status=$1; test $as_status -eq 0 && as_status=1
11575  if test "$4"; then
11576    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11577    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11578  fi
11579  printf "%s\n" "$as_me: error: $2" >&2
11580  as_fn_exit $as_status
11581} # as_fn_error
11582
11583
11584
11585# as_fn_set_status STATUS
11586# -----------------------
11587# Set $? to STATUS, without forking.
11588as_fn_set_status ()
11589{
11590  return $1
11591} # as_fn_set_status
11592
11593# as_fn_exit STATUS
11594# -----------------
11595# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11596as_fn_exit ()
11597{
11598  set +e
11599  as_fn_set_status $1
11600  exit $1
11601} # as_fn_exit
11602
11603# as_fn_unset VAR
11604# ---------------
11605# Portably unset VAR.
11606as_fn_unset ()
11607{
11608  { eval $1=; unset $1;}
11609}
11610as_unset=as_fn_unset
11611
11612# as_fn_append VAR VALUE
11613# ----------------------
11614# Append the text in VALUE to the end of the definition contained in VAR. Take
11615# advantage of any shell optimizations that allow amortized linear growth over
11616# repeated appends, instead of the typical quadratic growth present in naive
11617# implementations.
11618if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11619then :
11620  eval 'as_fn_append ()
11621  {
11622    eval $1+=\$2
11623  }'
11624else $as_nop
11625  as_fn_append ()
11626  {
11627    eval $1=\$$1\$2
11628  }
11629fi # as_fn_append
11630
11631# as_fn_arith ARG...
11632# ------------------
11633# Perform arithmetic evaluation on the ARGs, and store the result in the
11634# global $as_val. Take advantage of shells that can avoid forks. The arguments
11635# must be portable across $(()) and expr.
11636if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11637then :
11638  eval 'as_fn_arith ()
11639  {
11640    as_val=$(( $* ))
11641  }'
11642else $as_nop
11643  as_fn_arith ()
11644  {
11645    as_val=`expr "$@" || test $? -eq 1`
11646  }
11647fi # as_fn_arith
11648
11649
11650if expr a : '\(a\)' >/dev/null 2>&1 &&
11651   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11652  as_expr=expr
11653else
11654  as_expr=false
11655fi
11656
11657if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11658  as_basename=basename
11659else
11660  as_basename=false
11661fi
11662
11663if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11664  as_dirname=dirname
11665else
11666  as_dirname=false
11667fi
11668
11669as_me=`$as_basename -- "$0" ||
11670$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11671	 X"$0" : 'X\(//\)$' \| \
11672	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11673printf "%s\n" X/"$0" |
11674    sed '/^.*\/\([^/][^/]*\)\/*$/{
11675	    s//\1/
11676	    q
11677	  }
11678	  /^X\/\(\/\/\)$/{
11679	    s//\1/
11680	    q
11681	  }
11682	  /^X\/\(\/\).*/{
11683	    s//\1/
11684	    q
11685	  }
11686	  s/.*/./; q'`
11687
11688# Avoid depending upon Character Ranges.
11689as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11690as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11691as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11692as_cr_digits='0123456789'
11693as_cr_alnum=$as_cr_Letters$as_cr_digits
11694
11695
11696# Determine whether it's possible to make 'echo' print without a newline.
11697# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11698# for compatibility with existing Makefiles.
11699ECHO_C= ECHO_N= ECHO_T=
11700case `echo -n x` in #(((((
11701-n*)
11702  case `echo 'xy\c'` in
11703  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11704  xy)  ECHO_C='\c';;
11705  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11706       ECHO_T='	';;
11707  esac;;
11708*)
11709  ECHO_N='-n';;
11710esac
11711
11712# For backward compatibility with old third-party macros, we provide
11713# the shell variables $as_echo and $as_echo_n.  New code should use
11714# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11715as_echo='printf %s\n'
11716as_echo_n='printf %s'
11717
11718rm -f conf$$ conf$$.exe conf$$.file
11719if test -d conf$$.dir; then
11720  rm -f conf$$.dir/conf$$.file
11721else
11722  rm -f conf$$.dir
11723  mkdir conf$$.dir 2>/dev/null
11724fi
11725if (echo >conf$$.file) 2>/dev/null; then
11726  if ln -s conf$$.file conf$$ 2>/dev/null; then
11727    as_ln_s='ln -s'
11728    # ... but there are two gotchas:
11729    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11730    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11731    # In both cases, we have to default to `cp -pR'.
11732    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11733      as_ln_s='cp -pR'
11734  elif ln conf$$.file conf$$ 2>/dev/null; then
11735    as_ln_s=ln
11736  else
11737    as_ln_s='cp -pR'
11738  fi
11739else
11740  as_ln_s='cp -pR'
11741fi
11742rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11743rmdir conf$$.dir 2>/dev/null
11744
11745
11746# as_fn_mkdir_p
11747# -------------
11748# Create "$as_dir" as a directory, including parents if necessary.
11749as_fn_mkdir_p ()
11750{
11751
11752  case $as_dir in #(
11753  -*) as_dir=./$as_dir;;
11754  esac
11755  test -d "$as_dir" || eval $as_mkdir_p || {
11756    as_dirs=
11757    while :; do
11758      case $as_dir in #(
11759      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11760      *) as_qdir=$as_dir;;
11761      esac
11762      as_dirs="'$as_qdir' $as_dirs"
11763      as_dir=`$as_dirname -- "$as_dir" ||
11764$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11765	 X"$as_dir" : 'X\(//\)[^/]' \| \
11766	 X"$as_dir" : 'X\(//\)$' \| \
11767	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11768printf "%s\n" X"$as_dir" |
11769    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11770	    s//\1/
11771	    q
11772	  }
11773	  /^X\(\/\/\)[^/].*/{
11774	    s//\1/
11775	    q
11776	  }
11777	  /^X\(\/\/\)$/{
11778	    s//\1/
11779	    q
11780	  }
11781	  /^X\(\/\).*/{
11782	    s//\1/
11783	    q
11784	  }
11785	  s/.*/./; q'`
11786      test -d "$as_dir" && break
11787    done
11788    test -z "$as_dirs" || eval "mkdir $as_dirs"
11789  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11790
11791
11792} # as_fn_mkdir_p
11793if mkdir -p . 2>/dev/null; then
11794  as_mkdir_p='mkdir -p "$as_dir"'
11795else
11796  test -d ./-p && rmdir ./-p
11797  as_mkdir_p=false
11798fi
11799
11800
11801# as_fn_executable_p FILE
11802# -----------------------
11803# Test if FILE is an executable regular file.
11804as_fn_executable_p ()
11805{
11806  test -f "$1" && test -x "$1"
11807} # as_fn_executable_p
11808as_test_x='test -x'
11809as_executable_p=as_fn_executable_p
11810
11811# Sed expression to map a string onto a valid CPP name.
11812as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11813
11814# Sed expression to map a string onto a valid variable name.
11815as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11816
11817
11818exec 6>&1
11819## ----------------------------------- ##
11820## Main body of $CONFIG_STATUS script. ##
11821## ----------------------------------- ##
11822_ASEOF
11823test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11824
11825cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11826# Save the log message, to keep $0 and so on meaningful, and to
11827# report actual input values of CONFIG_FILES etc. instead of their
11828# values after options handling.
11829ac_log="
11830This file was extended by editres $as_me 1.0.8, which was
11831generated by GNU Autoconf 2.71.  Invocation command line was
11832
11833  CONFIG_FILES    = $CONFIG_FILES
11834  CONFIG_HEADERS  = $CONFIG_HEADERS
11835  CONFIG_LINKS    = $CONFIG_LINKS
11836  CONFIG_COMMANDS = $CONFIG_COMMANDS
11837  $ $0 $@
11838
11839on `(hostname || uname -n) 2>/dev/null | sed 1q`
11840"
11841
11842_ACEOF
11843
11844case $ac_config_files in *"
11845"*) set x $ac_config_files; shift; ac_config_files=$*;;
11846esac
11847
11848case $ac_config_headers in *"
11849"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11850esac
11851
11852
11853cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11854# Files that config.status was made for.
11855config_files="$ac_config_files"
11856config_headers="$ac_config_headers"
11857config_commands="$ac_config_commands"
11858
11859_ACEOF
11860
11861cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11862ac_cs_usage="\
11863\`$as_me' instantiates files and other configuration actions
11864from templates according to the current configuration.  Unless the files
11865and actions are specified as TAGs, all are instantiated by default.
11866
11867Usage: $0 [OPTION]... [TAG]...
11868
11869  -h, --help       print this help, then exit
11870  -V, --version    print version number and configuration settings, then exit
11871      --config     print configuration, then exit
11872  -q, --quiet, --silent
11873                   do not print progress messages
11874  -d, --debug      don't remove temporary files
11875      --recheck    update $as_me by reconfiguring in the same conditions
11876      --file=FILE[:TEMPLATE]
11877                   instantiate the configuration file FILE
11878      --header=FILE[:TEMPLATE]
11879                   instantiate the configuration header FILE
11880
11881Configuration files:
11882$config_files
11883
11884Configuration headers:
11885$config_headers
11886
11887Configuration commands:
11888$config_commands
11889
11890Report bugs to <https://gitlab.freedesktop.org/xorg/app/editres/issues>."
11891
11892_ACEOF
11893ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
11894ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
11895cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11896ac_cs_config='$ac_cs_config_escaped'
11897ac_cs_version="\\
11898editres config.status 1.0.8
11899configured by $0, generated by GNU Autoconf 2.71,
11900  with options \\"\$ac_cs_config\\"
11901
11902Copyright (C) 2021 Free Software Foundation, Inc.
11903This config.status script is free software; the Free Software Foundation
11904gives unlimited permission to copy, distribute and modify it."
11905
11906ac_pwd='$ac_pwd'
11907srcdir='$srcdir'
11908INSTALL='$INSTALL'
11909MKDIR_P='$MKDIR_P'
11910AWK='$AWK'
11911test -n "\$AWK" || AWK=awk
11912_ACEOF
11913
11914cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11915# The default lists apply if the user does not specify any file.
11916ac_need_defaults=:
11917while test $# != 0
11918do
11919  case $1 in
11920  --*=?*)
11921    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11922    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11923    ac_shift=:
11924    ;;
11925  --*=)
11926    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11927    ac_optarg=
11928    ac_shift=:
11929    ;;
11930  *)
11931    ac_option=$1
11932    ac_optarg=$2
11933    ac_shift=shift
11934    ;;
11935  esac
11936
11937  case $ac_option in
11938  # Handling of the options.
11939  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11940    ac_cs_recheck=: ;;
11941  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11942    printf "%s\n" "$ac_cs_version"; exit ;;
11943  --config | --confi | --conf | --con | --co | --c )
11944    printf "%s\n" "$ac_cs_config"; exit ;;
11945  --debug | --debu | --deb | --de | --d | -d )
11946    debug=: ;;
11947  --file | --fil | --fi | --f )
11948    $ac_shift
11949    case $ac_optarg in
11950    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11951    '') as_fn_error $? "missing file argument" ;;
11952    esac
11953    as_fn_append CONFIG_FILES " '$ac_optarg'"
11954    ac_need_defaults=false;;
11955  --header | --heade | --head | --hea )
11956    $ac_shift
11957    case $ac_optarg in
11958    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11959    esac
11960    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11961    ac_need_defaults=false;;
11962  --he | --h)
11963    # Conflict between --help and --header
11964    as_fn_error $? "ambiguous option: \`$1'
11965Try \`$0 --help' for more information.";;
11966  --help | --hel | -h )
11967    printf "%s\n" "$ac_cs_usage"; exit ;;
11968  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11969  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11970    ac_cs_silent=: ;;
11971
11972  # This is an error.
11973  -*) as_fn_error $? "unrecognized option: \`$1'
11974Try \`$0 --help' for more information." ;;
11975
11976  *) as_fn_append ac_config_targets " $1"
11977     ac_need_defaults=false ;;
11978
11979  esac
11980  shift
11981done
11982
11983ac_configure_extra_args=
11984
11985if $ac_cs_silent; then
11986  exec 6>/dev/null
11987  ac_configure_extra_args="$ac_configure_extra_args --silent"
11988fi
11989
11990_ACEOF
11991cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11992if \$ac_cs_recheck; then
11993  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11994  shift
11995  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
11996  CONFIG_SHELL='$SHELL'
11997  export CONFIG_SHELL
11998  exec "\$@"
11999fi
12000
12001_ACEOF
12002cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12003exec 5>>config.log
12004{
12005  echo
12006  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12007## Running $as_me. ##
12008_ASBOX
12009  printf "%s\n" "$ac_log"
12010} >&5
12011
12012_ACEOF
12013cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12014#
12015# INIT-COMMANDS
12016#
12017AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12018
12019_ACEOF
12020
12021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12022
12023# Handling of arguments.
12024for ac_config_target in $ac_config_targets
12025do
12026  case $ac_config_target in
12027    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12028    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12029    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12030    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12031
12032  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12033  esac
12034done
12035
12036
12037# If the user did not use the arguments to specify the items to instantiate,
12038# then the envvar interface is used.  Set only those that are not.
12039# We use the long form for the default assignment because of an extremely
12040# bizarre bug on SunOS 4.1.3.
12041if $ac_need_defaults; then
12042  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12043  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12044  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12045fi
12046
12047# Have a temporary directory for convenience.  Make it in the build tree
12048# simply because there is no reason against having it here, and in addition,
12049# creating and moving files from /tmp can sometimes cause problems.
12050# Hook for its removal unless debugging.
12051# Note that there is a small window in which the directory will not be cleaned:
12052# after its creation but before its name has been assigned to `$tmp'.
12053$debug ||
12054{
12055  tmp= ac_tmp=
12056  trap 'exit_status=$?
12057  : "${ac_tmp:=$tmp}"
12058  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12059' 0
12060  trap 'as_fn_exit 1' 1 2 13 15
12061}
12062# Create a (secure) tmp directory for tmp files.
12063
12064{
12065  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12066  test -d "$tmp"
12067}  ||
12068{
12069  tmp=./conf$$-$RANDOM
12070  (umask 077 && mkdir "$tmp")
12071} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12072ac_tmp=$tmp
12073
12074# Set up the scripts for CONFIG_FILES section.
12075# No need to generate them if there are no CONFIG_FILES.
12076# This happens for instance with `./config.status config.h'.
12077if test -n "$CONFIG_FILES"; then
12078
12079
12080ac_cr=`echo X | tr X '\015'`
12081# On cygwin, bash can eat \r inside `` if the user requested igncr.
12082# But we know of no other shell where ac_cr would be empty at this
12083# point, so we can use a bashism as a fallback.
12084if test "x$ac_cr" = x; then
12085  eval ac_cr=\$\'\\r\'
12086fi
12087ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12088if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12089  ac_cs_awk_cr='\\r'
12090else
12091  ac_cs_awk_cr=$ac_cr
12092fi
12093
12094echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12095_ACEOF
12096
12097
12098{
12099  echo "cat >conf$$subs.awk <<_ACEOF" &&
12100  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12101  echo "_ACEOF"
12102} >conf$$subs.sh ||
12103  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12104ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12105ac_delim='%!_!# '
12106for ac_last_try in false false false false false :; do
12107  . ./conf$$subs.sh ||
12108    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12109
12110  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12111  if test $ac_delim_n = $ac_delim_num; then
12112    break
12113  elif $ac_last_try; then
12114    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12115  else
12116    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12117  fi
12118done
12119rm -f conf$$subs.sh
12120
12121cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12122cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12123_ACEOF
12124sed -n '
12125h
12126s/^/S["/; s/!.*/"]=/
12127p
12128g
12129s/^[^!]*!//
12130:repl
12131t repl
12132s/'"$ac_delim"'$//
12133t delim
12134:nl
12135h
12136s/\(.\{148\}\)..*/\1/
12137t more1
12138s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12139p
12140n
12141b repl
12142:more1
12143s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12144p
12145g
12146s/.\{148\}//
12147t nl
12148:delim
12149h
12150s/\(.\{148\}\)..*/\1/
12151t more2
12152s/["\\]/\\&/g; s/^/"/; s/$/"/
12153p
12154b
12155:more2
12156s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12157p
12158g
12159s/.\{148\}//
12160t delim
12161' <conf$$subs.awk | sed '
12162/^[^""]/{
12163  N
12164  s/\n//
12165}
12166' >>$CONFIG_STATUS || ac_write_fail=1
12167rm -f conf$$subs.awk
12168cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12169_ACAWK
12170cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12171  for (key in S) S_is_set[key] = 1
12172  FS = ""
12173
12174}
12175{
12176  line = $ 0
12177  nfields = split(line, field, "@")
12178  substed = 0
12179  len = length(field[1])
12180  for (i = 2; i < nfields; i++) {
12181    key = field[i]
12182    keylen = length(key)
12183    if (S_is_set[key]) {
12184      value = S[key]
12185      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12186      len += length(value) + length(field[++i])
12187      substed = 1
12188    } else
12189      len += 1 + keylen
12190  }
12191
12192  print line
12193}
12194
12195_ACAWK
12196_ACEOF
12197cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12198if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12199  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12200else
12201  cat
12202fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12203  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12204_ACEOF
12205
12206# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12207# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12208# trailing colons and then remove the whole line if VPATH becomes empty
12209# (actually we leave an empty line to preserve line numbers).
12210if test "x$srcdir" = x.; then
12211  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12212h
12213s///
12214s/^/:/
12215s/[	 ]*$/:/
12216s/:\$(srcdir):/:/g
12217s/:\${srcdir}:/:/g
12218s/:@srcdir@:/:/g
12219s/^:*//
12220s/:*$//
12221x
12222s/\(=[	 ]*\).*/\1/
12223G
12224s/\n//
12225s/^[^=]*=[	 ]*$//
12226}'
12227fi
12228
12229cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12230fi # test -n "$CONFIG_FILES"
12231
12232# Set up the scripts for CONFIG_HEADERS section.
12233# No need to generate them if there are no CONFIG_HEADERS.
12234# This happens for instance with `./config.status Makefile'.
12235if test -n "$CONFIG_HEADERS"; then
12236cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12237BEGIN {
12238_ACEOF
12239
12240# Transform confdefs.h into an awk script `defines.awk', embedded as
12241# here-document in config.status, that substitutes the proper values into
12242# config.h.in to produce config.h.
12243
12244# Create a delimiter string that does not exist in confdefs.h, to ease
12245# handling of long lines.
12246ac_delim='%!_!# '
12247for ac_last_try in false false :; do
12248  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12249  if test -z "$ac_tt"; then
12250    break
12251  elif $ac_last_try; then
12252    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12253  else
12254    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12255  fi
12256done
12257
12258# For the awk script, D is an array of macro values keyed by name,
12259# likewise P contains macro parameters if any.  Preserve backslash
12260# newline sequences.
12261
12262ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12263sed -n '
12264s/.\{148\}/&'"$ac_delim"'/g
12265t rset
12266:rset
12267s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12268t def
12269d
12270:def
12271s/\\$//
12272t bsnl
12273s/["\\]/\\&/g
12274s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12275D["\1"]=" \3"/p
12276s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12277d
12278:bsnl
12279s/["\\]/\\&/g
12280s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12281D["\1"]=" \3\\\\\\n"\\/p
12282t cont
12283s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12284t cont
12285d
12286:cont
12287n
12288s/.\{148\}/&'"$ac_delim"'/g
12289t clear
12290:clear
12291s/\\$//
12292t bsnlc
12293s/["\\]/\\&/g; s/^/"/; s/$/"/p
12294d
12295:bsnlc
12296s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12297b cont
12298' <confdefs.h | sed '
12299s/'"$ac_delim"'/"\\\
12300"/g' >>$CONFIG_STATUS || ac_write_fail=1
12301
12302cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12303  for (key in D) D_is_set[key] = 1
12304  FS = ""
12305}
12306/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12307  line = \$ 0
12308  split(line, arg, " ")
12309  if (arg[1] == "#") {
12310    defundef = arg[2]
12311    mac1 = arg[3]
12312  } else {
12313    defundef = substr(arg[1], 2)
12314    mac1 = arg[2]
12315  }
12316  split(mac1, mac2, "(") #)
12317  macro = mac2[1]
12318  prefix = substr(line, 1, index(line, defundef) - 1)
12319  if (D_is_set[macro]) {
12320    # Preserve the white space surrounding the "#".
12321    print prefix "define", macro P[macro] D[macro]
12322    next
12323  } else {
12324    # Replace #undef with comments.  This is necessary, for example,
12325    # in the case of _POSIX_SOURCE, which is predefined and required
12326    # on some systems where configure will not decide to define it.
12327    if (defundef == "undef") {
12328      print "/*", prefix defundef, macro, "*/"
12329      next
12330    }
12331  }
12332}
12333{ print }
12334_ACAWK
12335_ACEOF
12336cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12337  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12338fi # test -n "$CONFIG_HEADERS"
12339
12340
12341eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12342shift
12343for ac_tag
12344do
12345  case $ac_tag in
12346  :[FHLC]) ac_mode=$ac_tag; continue;;
12347  esac
12348  case $ac_mode$ac_tag in
12349  :[FHL]*:*);;
12350  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12351  :[FH]-) ac_tag=-:-;;
12352  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12353  esac
12354  ac_save_IFS=$IFS
12355  IFS=:
12356  set x $ac_tag
12357  IFS=$ac_save_IFS
12358  shift
12359  ac_file=$1
12360  shift
12361
12362  case $ac_mode in
12363  :L) ac_source=$1;;
12364  :[FH])
12365    ac_file_inputs=
12366    for ac_f
12367    do
12368      case $ac_f in
12369      -) ac_f="$ac_tmp/stdin";;
12370      *) # Look for the file first in the build tree, then in the source tree
12371	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12372	 # because $ac_f cannot contain `:'.
12373	 test -f "$ac_f" ||
12374	   case $ac_f in
12375	   [\\/$]*) false;;
12376	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12377	   esac ||
12378	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12379      esac
12380      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12381      as_fn_append ac_file_inputs " '$ac_f'"
12382    done
12383
12384    # Let's still pretend it is `configure' which instantiates (i.e., don't
12385    # use $as_me), people would be surprised to read:
12386    #    /* config.h.  Generated by config.status.  */
12387    configure_input='Generated from '`
12388	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12389	`' by configure.'
12390    if test x"$ac_file" != x-; then
12391      configure_input="$ac_file.  $configure_input"
12392      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12393printf "%s\n" "$as_me: creating $ac_file" >&6;}
12394    fi
12395    # Neutralize special characters interpreted by sed in replacement strings.
12396    case $configure_input in #(
12397    *\&* | *\|* | *\\* )
12398       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12399       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12400    *) ac_sed_conf_input=$configure_input;;
12401    esac
12402
12403    case $ac_tag in
12404    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12405      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12406    esac
12407    ;;
12408  esac
12409
12410  ac_dir=`$as_dirname -- "$ac_file" ||
12411$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12412	 X"$ac_file" : 'X\(//\)[^/]' \| \
12413	 X"$ac_file" : 'X\(//\)$' \| \
12414	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12415printf "%s\n" X"$ac_file" |
12416    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12417	    s//\1/
12418	    q
12419	  }
12420	  /^X\(\/\/\)[^/].*/{
12421	    s//\1/
12422	    q
12423	  }
12424	  /^X\(\/\/\)$/{
12425	    s//\1/
12426	    q
12427	  }
12428	  /^X\(\/\).*/{
12429	    s//\1/
12430	    q
12431	  }
12432	  s/.*/./; q'`
12433  as_dir="$ac_dir"; as_fn_mkdir_p
12434  ac_builddir=.
12435
12436case "$ac_dir" in
12437.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12438*)
12439  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12440  # A ".." for each directory in $ac_dir_suffix.
12441  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12442  case $ac_top_builddir_sub in
12443  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12444  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12445  esac ;;
12446esac
12447ac_abs_top_builddir=$ac_pwd
12448ac_abs_builddir=$ac_pwd$ac_dir_suffix
12449# for backward compatibility:
12450ac_top_builddir=$ac_top_build_prefix
12451
12452case $srcdir in
12453  .)  # We are building in place.
12454    ac_srcdir=.
12455    ac_top_srcdir=$ac_top_builddir_sub
12456    ac_abs_top_srcdir=$ac_pwd ;;
12457  [\\/]* | ?:[\\/]* )  # Absolute name.
12458    ac_srcdir=$srcdir$ac_dir_suffix;
12459    ac_top_srcdir=$srcdir
12460    ac_abs_top_srcdir=$srcdir ;;
12461  *) # Relative name.
12462    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12463    ac_top_srcdir=$ac_top_build_prefix$srcdir
12464    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12465esac
12466ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12467
12468
12469  case $ac_mode in
12470  :F)
12471  #
12472  # CONFIG_FILE
12473  #
12474
12475  case $INSTALL in
12476  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12477  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12478  esac
12479  ac_MKDIR_P=$MKDIR_P
12480  case $MKDIR_P in
12481  [\\/$]* | ?:[\\/]* ) ;;
12482  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12483  esac
12484_ACEOF
12485
12486cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12487# If the template does not know about datarootdir, expand it.
12488# FIXME: This hack should be removed a few years after 2.60.
12489ac_datarootdir_hack=; ac_datarootdir_seen=
12490ac_sed_dataroot='
12491/datarootdir/ {
12492  p
12493  q
12494}
12495/@datadir@/p
12496/@docdir@/p
12497/@infodir@/p
12498/@localedir@/p
12499/@mandir@/p'
12500case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12501*datarootdir*) ac_datarootdir_seen=yes;;
12502*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12503  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12504printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12505_ACEOF
12506cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12507  ac_datarootdir_hack='
12508  s&@datadir@&$datadir&g
12509  s&@docdir@&$docdir&g
12510  s&@infodir@&$infodir&g
12511  s&@localedir@&$localedir&g
12512  s&@mandir@&$mandir&g
12513  s&\\\${datarootdir}&$datarootdir&g' ;;
12514esac
12515_ACEOF
12516
12517# Neutralize VPATH when `$srcdir' = `.'.
12518# Shell code in configure.ac might set extrasub.
12519# FIXME: do we really want to maintain this feature?
12520cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12521ac_sed_extra="$ac_vpsub
12522$extrasub
12523_ACEOF
12524cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12525:t
12526/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12527s|@configure_input@|$ac_sed_conf_input|;t t
12528s&@top_builddir@&$ac_top_builddir_sub&;t t
12529s&@top_build_prefix@&$ac_top_build_prefix&;t t
12530s&@srcdir@&$ac_srcdir&;t t
12531s&@abs_srcdir@&$ac_abs_srcdir&;t t
12532s&@top_srcdir@&$ac_top_srcdir&;t t
12533s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12534s&@builddir@&$ac_builddir&;t t
12535s&@abs_builddir@&$ac_abs_builddir&;t t
12536s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12537s&@INSTALL@&$ac_INSTALL&;t t
12538s&@MKDIR_P@&$ac_MKDIR_P&;t t
12539$ac_datarootdir_hack
12540"
12541eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12542  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12543
12544test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12545  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12546  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12547      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12548  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12549which seems to be undefined.  Please make sure it is defined" >&5
12550printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12551which seems to be undefined.  Please make sure it is defined" >&2;}
12552
12553  rm -f "$ac_tmp/stdin"
12554  case $ac_file in
12555  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12556  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12557  esac \
12558  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12559 ;;
12560  :H)
12561  #
12562  # CONFIG_HEADER
12563  #
12564  if test x"$ac_file" != x-; then
12565    {
12566      printf "%s\n" "/* $configure_input  */" >&1 \
12567      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12568    } >"$ac_tmp/config.h" \
12569      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12570    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12571      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12572printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12573    else
12574      rm -f "$ac_file"
12575      mv "$ac_tmp/config.h" "$ac_file" \
12576	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12577    fi
12578  else
12579    printf "%s\n" "/* $configure_input  */" >&1 \
12580      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12581      || as_fn_error $? "could not create -" "$LINENO" 5
12582  fi
12583# Compute "$ac_file"'s index in $config_headers.
12584_am_arg="$ac_file"
12585_am_stamp_count=1
12586for _am_header in $config_headers :; do
12587  case $_am_header in
12588    $_am_arg | $_am_arg:* )
12589      break ;;
12590    * )
12591      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12592  esac
12593done
12594echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12595$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12596	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12597	 X"$_am_arg" : 'X\(//\)$' \| \
12598	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12599printf "%s\n" X"$_am_arg" |
12600    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12601	    s//\1/
12602	    q
12603	  }
12604	  /^X\(\/\/\)[^/].*/{
12605	    s//\1/
12606	    q
12607	  }
12608	  /^X\(\/\/\)$/{
12609	    s//\1/
12610	    q
12611	  }
12612	  /^X\(\/\).*/{
12613	    s//\1/
12614	    q
12615	  }
12616	  s/.*/./; q'`/stamp-h$_am_stamp_count
12617 ;;
12618
12619  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12620printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12621 ;;
12622  esac
12623
12624
12625  case $ac_file$ac_mode in
12626    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12627  # Older Autoconf quotes --file arguments for eval, but not when files
12628  # are listed without --file.  Let's play safe and only enable the eval
12629  # if we detect the quoting.
12630  # TODO: see whether this extra hack can be removed once we start
12631  # requiring Autoconf 2.70 or later.
12632  case $CONFIG_FILES in #(
12633  *\'*) :
12634    eval set x "$CONFIG_FILES" ;; #(
12635  *) :
12636    set x $CONFIG_FILES ;; #(
12637  *) :
12638     ;;
12639esac
12640  shift
12641  # Used to flag and report bootstrapping failures.
12642  am_rc=0
12643  for am_mf
12644  do
12645    # Strip MF so we end up with the name of the file.
12646    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12647    # Check whether this is an Automake generated Makefile which includes
12648    # dependency-tracking related rules and includes.
12649    # Grep'ing the whole file directly is not great: AIX grep has a line
12650    # limit of 2048, but all sed's we know have understand at least 4000.
12651    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12652      || continue
12653    am_dirpart=`$as_dirname -- "$am_mf" ||
12654$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12655	 X"$am_mf" : 'X\(//\)[^/]' \| \
12656	 X"$am_mf" : 'X\(//\)$' \| \
12657	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12658printf "%s\n" X"$am_mf" |
12659    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12660	    s//\1/
12661	    q
12662	  }
12663	  /^X\(\/\/\)[^/].*/{
12664	    s//\1/
12665	    q
12666	  }
12667	  /^X\(\/\/\)$/{
12668	    s//\1/
12669	    q
12670	  }
12671	  /^X\(\/\).*/{
12672	    s//\1/
12673	    q
12674	  }
12675	  s/.*/./; q'`
12676    am_filepart=`$as_basename -- "$am_mf" ||
12677$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12678	 X"$am_mf" : 'X\(//\)$' \| \
12679	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12680printf "%s\n" X/"$am_mf" |
12681    sed '/^.*\/\([^/][^/]*\)\/*$/{
12682	    s//\1/
12683	    q
12684	  }
12685	  /^X\/\(\/\/\)$/{
12686	    s//\1/
12687	    q
12688	  }
12689	  /^X\/\(\/\).*/{
12690	    s//\1/
12691	    q
12692	  }
12693	  s/.*/./; q'`
12694    { echo "$as_me:$LINENO: cd "$am_dirpart" \
12695      && sed -e '/# am--include-marker/d' "$am_filepart" \
12696        | $MAKE -f - am--depfiles" >&5
12697   (cd "$am_dirpart" \
12698      && sed -e '/# am--include-marker/d' "$am_filepart" \
12699        | $MAKE -f - am--depfiles) >&5 2>&5
12700   ac_status=$?
12701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702   (exit $ac_status); } || am_rc=$?
12703  done
12704  if test $am_rc -ne 0; then
12705    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12706printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12707as_fn_error $? "Something went wrong bootstrapping makefile fragments
12708    for automatic dependency tracking.  If GNU make was not used, consider
12709    re-running the configure script with MAKE=\"gmake\" (or whatever is
12710    necessary).  You can also try re-running configure with the
12711    '--disable-dependency-tracking' option to at least be able to build
12712    the package (albeit without support for automatic dependency tracking).
12713See \`config.log' for more details" "$LINENO" 5; }
12714  fi
12715  { am_dirpart=; unset am_dirpart;}
12716  { am_filepart=; unset am_filepart;}
12717  { am_mf=; unset am_mf;}
12718  { am_rc=; unset am_rc;}
12719  rm -f conftest-deps.mk
12720}
12721 ;;
12722
12723  esac
12724done # for ac_tag
12725
12726
12727as_fn_exit 0
12728_ACEOF
12729ac_clean_files=$ac_clean_files_save
12730
12731test $ac_write_fail = 0 ||
12732  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12733
12734
12735# configure is writing to config.log, and then calls config.status.
12736# config.status does its own redirection, appending to config.log.
12737# Unfortunately, on DOS this fails, as config.log is still kept open
12738# by configure, so config.status won't be able to write to it; its
12739# output is simply discarded.  So we exec the FD to /dev/null,
12740# effectively closing config.log, so it can be properly (re)opened and
12741# appended to by config.status.  When coming back to configure, we
12742# need to make the FD available again.
12743if test "$no_create" != yes; then
12744  ac_cs_success=:
12745  ac_config_status_args=
12746  test "$silent" = yes &&
12747    ac_config_status_args="$ac_config_status_args --quiet"
12748  exec 5>/dev/null
12749  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12750  exec 5>>config.log
12751  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12752  # would make configure fail if this is the last instruction.
12753  $ac_cs_success || as_fn_exit 1
12754fi
12755if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12756  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12757printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12758fi
12759
12760
12761